<s> """<STR_LIT>""" <EOL> from jinja2 import Template <EOL> import numpy as np <EOL> import folium <EOL> from folium import plugins <EOL> def test_marker_cluster ( ) : <EOL> N = <NUM_LIT:100> <EOL> np . random . seed ( seed = <NUM_LIT> ) <EOL> data = np . array ( [ <EOL> np . random . uniform ( low = <NUM_LIT> , high = <NUM_LIT> , size = N ) , <EOL> np . random . uniform ( low = - <NUM_LIT:12> , high = <NUM_LIT:30> , size = N ) , <EOL> range ( N ) , <EOL> ] ) . T <EOL> m = folium . Map ( [ <NUM_LIT> , <NUM_LIT> ] , zoom_start = <NUM_LIT:4> ) <EOL> mc = plugins . MarkerCluster ( data ) <EOL> m . add_children ( mc ) <EOL> m . _repr_html_ ( ) <EOL> out = m . _parent . render ( ) <EOL> assert ( '<STR_LIT>' <EOL> '<STR_LIT>' ) in out <EOL> assert ( '<STR_LIT>' <EOL> '<STR_LIT>' ) in out <EOL> assert ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) in out <EOL> tmpl = Template ( """<STR_LIT>""" ) <EOL> assert '<STR_LIT>' . join ( tmpl . render ( this = mc ) . split ( ) ) in '<STR_LIT>' . join ( out . split ( ) ) <EOL> bounds = m . get_bounds ( ) <EOL> assert bounds == [ [ <NUM_LIT> , - <NUM_LIT> ] , <EOL> [ <NUM_LIT> , <NUM_LIT> ] ] , bounds </s>
