<s> import pyjd <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> pyjd . setup ( "<STR_LIT>" ) <EOL> from pyjamas import DeferredCommand <EOL> from pyjamas . ui . HTML import HTML <EOL> from pyjamas . ui . RootPanel import RootPanel <EOL> from pyjamas . chart import GChart <EOL> from pyjamas . Canvas . GWTCanvas import GWTCanvas <EOL> from TestGChart00 import TestGChart00 <EOL> from TestGChart01 import TestGChart01 <EOL> from TestGChart02 import TestGChart02 <EOL> from TestGChart05 import TestGChart05 <EOL> from GChartExample00 import GChartExample00 <EOL> from GChartExample00a import GChartExample00a <EOL> from GChartExample01 import GChartExample01 <EOL> from GChartExample02 import GChartExample02 <EOL> from GChartExample03 import GChartExample03 <EOL> from GChartExample04 import GChartExample04 <EOL> from GChartExample06 import GChartExample06 <EOL> from GChartExample07 import GChartExample07 <EOL> from GChartExample14 import GChartExample14 <EOL> from GChartExample17 import GChartExample17 <EOL> from GChartExample20 import GChartExample20 <EOL> from GChartExample21 import GChartExample21 <EOL> from GChartExample24 import GChartExample24 <EOL> from GChartExample25 import GChartExample25 <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> i = <NUM_LIT:0> <EOL> def rnd ( ) : <EOL> m = <NUM_LIT> <EOL> a = <NUM_LIT> <EOL> c = <NUM_LIT> <EOL> i = ( a * i + c ) % m <EOL> return i / m <EOL> """<STR_LIT>""" <EOL> from GChartTestAppUtil import getTitle <EOL> class AddOneChart : <EOL> def __init__ ( self , gchart , needsUpdate = True ) : <EOL> self . gchart = gchart <EOL> self . needsUpdate = needsUpdate <EOL> def execute ( self ) : <EOL> RootPanel ( "<STR_LIT>" ) . add ( HTML ( getTitle ( self . gchart ) ) ) <EOL> RootPanel ( "<STR_LIT>" ) . add ( self . gchart ) <EOL> if self . needsUpdate : <EOL> self . gchart . update ( ) <EOL> def addChart ( gchart ) : <EOL> DeferredCommand . add ( AddOneChart ( gchart , True ) ) <EOL> def addChartNoUpdate ( gchart ) : <EOL> DeferredCommand . add ( AddOneChart ( gchart , False ) ) <EOL> class GWTCanvasBasedCanvasFactory ( object ) : <EOL> def create ( self ) : <EOL> return GWTCanvas ( ) <EOL> def onModuleLoad ( ) : <EOL> GChart . setCanvasFactory ( GWTCanvasBasedCanvasFactory ( ) ) <EOL> addChart ( GChartExample02 ( ) ) <EOL> addChart ( GChartExample07 ( ) ) <EOL> addChart ( GChartExample20 ( ) ) <EOL> addChart ( GChartExample21 ( ) ) <EOL> addChart ( GChartExample24 ( ) ) <EOL> addChart ( TestGChart05 ( True ) ) <EOL> RootPanel ( "<STR_LIT>" ) . setVisible ( False ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> onModuleLoad ( ) <EOL> pyjd . run ( ) </s>
