<s> '''<STR_LIT>''' <EOL> import re <EOL> from resources . lib . libraries import client <EOL> def resolve ( url ) : <EOL> try : <EOL> id = re . compile ( '<STR_LIT>' ) . findall ( url ) <EOL> id += re . compile ( '<STR_LIT>' ) . findall ( url ) <EOL> id = id [ <NUM_LIT:0> ] <EOL> url = '<STR_LIT>' % id <EOL> result = client . request ( url ) <EOL> key = re . compile ( '<STR_LIT>' ) . findall ( result ) [ - <NUM_LIT:1> ] <EOL> try : key = re . compile ( '<STR_LIT>' % key ) . findall ( result ) [ - <NUM_LIT:1> ] <EOL> except : pass <EOL> url = '<STR_LIT>' % ( key , id ) <EOL> result = client . request ( url ) <EOL> url = re . compile ( '<STR_LIT>' ) . findall ( result ) [ <NUM_LIT:0> ] <EOL> return url <EOL> except : <EOL> return </s>
