<s> """<STR_LIT>""" <EOL> from nvd3 import cumulativeLineChart <EOL> import random <EOL> import datetime <EOL> import time <EOL> start_time = int ( time . mktime ( datetime . datetime ( <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT:1> ) . timetuple ( ) ) * <NUM_LIT:1000> ) <EOL> nb_element = <NUM_LIT:100> <EOL> output_file = open ( '<STR_LIT>' , '<STR_LIT:w>' ) <EOL> type = "<STR_LIT>" <EOL> chart = cumulativeLineChart ( name = type , height = <NUM_LIT> , x_is_date = True ) <EOL> chart . set_containerheader ( "<STR_LIT>" + type + "<STR_LIT>" ) <EOL> xdata = list ( range ( nb_element ) ) <EOL> xdata = [ start_time + x * <NUM_LIT> for x in xdata ] <EOL> ydata = [ i + random . randint ( <NUM_LIT:1> , <NUM_LIT:10> ) for i in range ( nb_element ) ] <EOL> ydata2 = [ x * <NUM_LIT:2> for x in ydata ] <EOL> extra_serie = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } } <EOL> chart . add_serie ( name = "<STR_LIT>" , y = ydata , x = xdata , extra = extra_serie ) <EOL> extra_serie = { "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT>" , "<STR_LIT>" : "<STR_LIT>" } } <EOL> chart . add_serie ( name = "<STR_LIT>" , y = ydata2 , x = xdata , extra = extra_serie ) <EOL> chart . buildhtml ( ) <EOL> output_file . write ( chart . htmlcontent ) <EOL> output_file . close ( ) </s>
