<s> import random <EOL> import socket <EOL> import sys <EOL> import time <EOL> clear = '<STR_LIT>' <EOL> red = '<STR_LIT>' <EOL> yellow = '<STR_LIT>' <EOL> such_demon = "<STR_LIT>" . format ( red , clear , yellow ) <EOL> def get_ip ( url ) : <EOL> try : <EOL> ip = socket . gethostbyname_ex ( url ) [ <NUM_LIT:2> ] [ <NUM_LIT:0> ] <EOL> except : <EOL> sr = lambda : str ( random . randrange ( <NUM_LIT:0> , <NUM_LIT:255> ) ) <EOL> ip = sr ( ) + '<STR_LIT:.>' + sr ( ) + '<STR_LIT:.>' + sr ( ) + '<STR_LIT:.>' + sr ( ) <EOL> return ip <EOL> def dot ( i ) : <EOL> for i in xrange ( i ) : <EOL> sys . stdout . write ( '<STR_LIT:.>' ) <EOL> sys . stdout . flush ( ) <EOL> time . sleep ( <NUM_LIT> ) <EOL> sys . stdout . write ( '<STR_LIT>' . format ( '<STR_LIT>' , '<STR_LIT>' ) ) <EOL> time . sleep ( <NUM_LIT> ) <EOL> def main ( url ) : <EOL> print such_demon <EOL> print "<STR_LIT>" , <EOL> dot ( <NUM_LIT> ) <EOL> print "<STR_LIT>" . format ( url , get_ip ( url ) ) <EOL> print "<STR_LIT>" , <EOL> dot ( <NUM_LIT> ) <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" , <EOL> dot ( <NUM_LIT> ) <EOL> print '<STR_LIT>' <EOL> print "<STR_LIT>" , <EOL> dot ( <NUM_LIT> ) <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" , <EOL> dot ( <NUM_LIT:10> ) <EOL> print "<STR_LIT>" <EOL> sys . stdout . write ( '<STR_LIT>' ) <EOL> for i in xrange ( <NUM_LIT> ) : <EOL> sys . stdout . write ( '<STR_LIT:=>' ) <EOL> sys . stdout . flush ( ) <EOL> time . sleep ( <NUM_LIT> ) <EOL> sys . stdout . write ( '<STR_LIT>' ) <EOL> time . sleep ( <NUM_LIT:0.5> ) <EOL> print "<STR_LIT>" . format ( url ) , <EOL> sys . stdout . flush ( ) <EOL> time . sleep ( <NUM_LIT:5> ) </s>
