ef90233e8a378c3049cb6955ba88f6598dc545d0,examples/plotting/file/texas.py,,,#,7
Before Change
colors = ["//F1EEF6", "//D4B9DA", "//C994C7", "//DF65B0", "//DD1C77", "/"]
county_colors = []
county_names = []
county_rates = []
for county_id in us_counties.data:
if us_counties.data[county_id]["state"] != state:
continue
rate = unemployment.data[county_id]
idx = min(int(rate/2), 5)
county_colors.append(colors[idx])
county_names.append(us_counties.data[county_id]["name"])
county_rates.append(rate)
source = ColumnDataSource(
data = dict(
x=county_xs,
y=county_ys,
After Change
}
county_xs = [county["lons"] for county in counties.values()]
county_ys = [county["lats"] for county in counties.values()]
colors = ["//F1EEF6", "//D4B9DA", "//C994C7", "//DF65B0", "//DD1C77", "/"]
county_names = [county["name"] for county in counties.values()]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances Project Name: bokeh/bokeh
Commit Name: ef90233e8a378c3049cb6955ba88f6598dc545d0
Time: 2015-12-22
Author: bryanv@continuum.io
File Name: examples/plotting/file/texas.py
Class Name:
Method Name:
Project Name: cmu-db/ottertune
Commit Name: 8cec62160ffd56f90c781f7524f643b95896c455
Time: 2020-01-08
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/utils.py
Class Name: TaskUtil
Method Name: get_tasks
Project Name: has2k1/plotnine
Commit Name: f8b9d7059a6aa6941f51771e143215c57a53fd6e
Time: 2016-10-19
Author: has2k1@gmail.com
File Name: ggplotx/facets/facet.py
Class Name:
Method Name: combine_vars