<s> import sys <EOL> from pygments . lexers import get_all_lexers , find_lexer_class <EOL> from pygments . lexer import Lexer <EOL> def main ( ) : <EOL> uses = { } <EOL> for name , aliases , filenames , mimetypes in get_all_lexers ( ) : <EOL> cls = find_lexer_class ( name ) <EOL> for f in filenames : <EOL> if f not in uses : <EOL> uses [ f ] = [ ] <EOL> uses [ f ] . append ( cls ) <EOL> ret = <NUM_LIT:0> <EOL> for k , v in uses . iteritems ( ) : <EOL> if len ( v ) > <NUM_LIT:1> : <EOL> for i in v : <EOL> if i . analyse_text is None : <EOL> print i , "<STR_LIT>" <EOL> ret |= <NUM_LIT:1> <EOL> elif Lexer . analyse_text . __doc__ == i . analyse_text . __doc__ : <EOL> print i , "<STR_LIT>" , k <EOL> ret |= <NUM_LIT:2> <EOL> return ret <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> sys . exit ( main ( ) ) </s>
