parameters: (self, filename)
return_statement: return attrs
docstring: Applies rules to a filename, to see if we care about it.
  
      Args:
        filename: Input filename.
  
      Returns:
        A dict of attributes for the file, accumulated from the right hand sides
            of rules which fired.
docstring_summary: Applies rules to a filename, to see if we care about it.
docstring_tokens: Applies rules to a filename to see if we care about it .
function: def ClassifyFile(self, filename):
      """Applies rules to a filename, to see if we care about it.
  
      Args:
        filename: Input filename.
  
      Returns:
        A dict of attributes for the file, accumulated from the right hand sides
            of rules which fired.
      """
      attrs = {}
  
      # Process all rules
      for regexp, rhs_dict in self.rules:
        if regexp.match(filename):
          attrs.update(rhs_dict)
  
      return attrs
function_tokens: def ClassifyFile ( self , filename ) : attrs = { } # Process all rules for regexp , rhs_dict in self . rules : if regexp . match ( filename ) : attrs . update ( rhs_dict ) return attrs