<s> """<STR_LIT>""" <EOL> from __future__ import print_function <EOL> from numpy import pi , cos , sin , linspace , roll <EOL> from bokeh . client import push_session <EOL> from bokeh . embed import autoload_server <EOL> from bokeh . plotting import figure , curdoc <EOL> M = <NUM_LIT:5> <EOL> N = M * <NUM_LIT:10> + <NUM_LIT:1> <EOL> r_base = <NUM_LIT:8> <EOL> theta = linspace ( <NUM_LIT:0> , <NUM_LIT:2> * pi , N ) <EOL> r_x = linspace ( <NUM_LIT:0> , <NUM_LIT:6> * pi , N - <NUM_LIT:1> ) <EOL> rmin = r_base - cos ( r_x ) - <NUM_LIT:1> <EOL> rmax = r_base + sin ( r_x ) + <NUM_LIT:1> <EOL> colors = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] * <NUM_LIT:5> <EOL> p = figure ( x_range = ( - <NUM_LIT:11> , <NUM_LIT:11> ) , y_range = ( - <NUM_LIT:11> , <NUM_LIT:11> ) ) <EOL> r = p . annular_wedge ( <NUM_LIT:0> , <NUM_LIT:0> , rmin , rmax , theta [ : - <NUM_LIT:1> ] , theta [ <NUM_LIT:1> : ] , <EOL> fill_color = colors , line_color = "<STR_LIT>" ) <EOL> session = push_session ( curdoc ( ) ) <EOL> html = """<STR_LIT>""" % autoload_server ( p , session_id = session . id ) <EOL> with open ( "<STR_LIT>" , "<STR_LIT>" ) as f : <EOL> f . write ( html ) <EOL> print ( __doc__ ) <EOL> ds = r . data_source <EOL> def update ( ) : <EOL> rmin = roll ( ds . data [ "<STR_LIT>" ] , <NUM_LIT:1> ) <EOL> rmax = roll ( ds . data [ "<STR_LIT>" ] , - <NUM_LIT:1> ) <EOL> ds . data . update ( inner_radius = rmin , outer_radius = rmax ) <EOL> curdoc ( ) . add_periodic_callback ( update , <NUM_LIT:30> ) <EOL> session . loop_until_closed ( ) </s>
