<s> """<STR_LIT>""" <EOL> import ConfigParser <EOL> class PorkchopUtil ( object ) : <EOL> @ classmethod <EOL> def parse_config ( self , path ) : <EOL> config = { } <EOL> cp = ConfigParser . ConfigParser ( ) <EOL> cp . read ( path ) <EOL> for s in cp . sections ( ) : <EOL> config . setdefault ( s , { } ) <EOL> for o in cp . options ( s ) : <EOL> config [ s ] [ o ] = cp . get ( s , o ) <EOL> return config <EOL> @ classmethod <EOL> def char_filter ( cls , s ) : <EOL> import string <EOL> wanted = string . letters + string . digits + string . punctuation <EOL> return "<STR_LIT>" . join ( c for c in s if c in wanted and not c == '<STR_LIT:.>' ) </s>
