parameters: (self, code)
return_statement: return code
docstring: Bruteforce approach of regex-based deobfuscation.
docstring_summary: Bruteforce approach of regex-based deobfuscation.
docstring_tokens: Bruteforce approach of regex - based deobfuscation .
function: def deobfuscate(self, code):
          """Bruteforce approach of regex-based deobfuscation."""
          changes = 1
          while changes:
              changes = 0
  
              for pattern, repl, flags in self.deobf:
                  count = 1
                  while count:
                      code, count = re.subn(pattern, repl, code, flags=flags)
                      changes += count
  
          return code
function_tokens: def deobfuscate ( self , code ) : changes = 1 while changes : changes = 0 for pattern , repl , flags in self . deobf : count = 1 while count : code , count = re . subn ( pattern , repl , code , flags = flags ) changes += count return code