<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> import csv <EOL> import check_nameserver_popularity <EOL> import sys <EOL> reader = csv . reader ( open ( sys . argv [ <NUM_LIT:1> ] ) ) <EOL> writer = csv . writer ( open ( '<STR_LIT>' , '<STR_LIT:w>' ) ) <EOL> sys . path . append ( '<STR_LIT:..>' ) <EOL> import third_party <EOL> from libnamebench import addr_util <EOL> from libnamebench import nameserver <EOL> for row in reader : <EOL> ip = row [ <NUM_LIT:0> ] <EOL> ns = nameserver . NameServer ( ip ) <EOL> ns . timeout = <NUM_LIT:0.5> <EOL> ns . health_timeout = <NUM_LIT:0.5> <EOL> try : <EOL> link_count = len ( check_nameserver_popularity . GetUrls ( ip ) ) <EOL> except : <EOL> link_count = '<STR_LIT>' <EOL> row . insert ( - <NUM_LIT:1> , link_count ) <EOL> row . append ( ns . version or '<STR_LIT>' ) <EOL> print "<STR_LIT>" % ( ip , ns . version ) <EOL> writer . writerow ( row ) </s>
