<s> """<STR_LIT>""" <EOL> import sys <EOL> import github <EOL> def usage ( ) : <EOL> """<STR_LIT>""" <EOL> print "<STR_LIT>" % ( sys . argv [ <NUM_LIT:0> ] ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> def mk_url ( repo ) : <EOL> return "<STR_LIT>" % ( repo . username , repo . name ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> g = github . GitHub ( ) <EOL> if len ( sys . argv ) < <NUM_LIT:2> : <EOL> usage ( ) <EOL> res = g . repos . search ( '<STR_LIT:U+0020>' . join ( sys . argv [ <NUM_LIT:1> : ] ) ) <EOL> for repo in res : <EOL> try : <EOL> print "<STR_LIT>" % ( repo . name , mk_url ( repo ) ) <EOL> except AttributeError : <EOL> print "<STR_LIT>" % repo . __dict__ </s>
