<s> import logging , os , redis , sys <EOL> REDIS_HOST = '<STR_LIT:localhost>' <EOL> log = logging . getLogger ( '<STR_LIT>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> logging . basicConfig ( level = logging . DEBUG ) <EOL> if len ( sys . argv ) < <NUM_LIT:2> : <EOL> print '<STR_LIT>' % ( sys . argv [ <NUM_LIT:0> ] ) <EOL> exit ( - <NUM_LIT:1> ) <EOL> redis = redis . Redis ( host = REDIS_HOST , port = <NUM_LIT> , db = <NUM_LIT:0> ) <EOL> search_string = os . path . join ( sys . argv [ <NUM_LIT:1> ] , '<STR_LIT:*>' ) <EOL> log . info ( '<STR_LIT>' , search_string ) <EOL> print '<STR_LIT:\n>' . join ( redis . keys ( search_string ) ) </s>
