parameters: (yarac, install_dir)
docstring: Compile all *.yara files in the given installation directory using the
      provided YARAC program into *.yarac files.
      Remove the source *.yara files.
docstring_summary: Compile all *.yara files in the given installation directory using the
      provided YARAC program into *.yarac files.
      Remove the source *.yara files.
docstring_tokens: Compile all * . yara files in the given installation directory using the provided YARAC program into * . yarac files . Remove the source * . yara files .
function: def compile_yara_files(yarac, install_dir):
      """ Compile all *.yara files in the given installation directory using the
      provided YARAC program into *.yarac files.
      Remove the source *.yara files.
      """
      inputs = []
      for root, dirnames, filenames in os.walk(install_dir):
          for filename in fnmatch.filter(filenames, '*.yara'):
              inputs.append(os.path.join(root, filename))
  
      if not inputs:
          return
  
      stdout_lock = threading.Lock()
      with multiprocessing.pool.ThreadPool() as pool:
          args = [
              (input_file, yarac, install_dir, stdout_lock) for input_file in inputs
          ]
          pool.starmap(compile_yara_file, args)
function_tokens: def compile_yara_files ( yarac , install_dir ) : inputs = [ ] for root , dirnames , filenames in os . walk ( install_dir ) : for filename in fnmatch . filter ( filenames , '*.yara' ) : inputs . append ( os . path . join ( root , filename ) ) if not inputs : return stdout_lock = threading . Lock ( ) with multiprocessing . pool . ThreadPool ( ) as pool : args = [ ( input_file , yarac , install_dir , stdout_lock ) for input_file in inputs ] pool . starmap ( compile_yara_file , args )