0fe228aa0bf5479458a68bf90b4430885410bd92,lib/streamlit/DeckGlChart.py,,marshall,#Any#Any#Any#,18
Before Change
See DeltaGenerator.deck_gl_chart for docs.
if layers is None:
layers = []
// Syntax sugar: if no layers defined and data is passed at the top
// level, created a scatterplot layer with the top-level data by default.
if data is not None and not layers:
layers.append({
"data": data,
"type": "ScatterplotLayer",
After Change
data = pd.DataFrame(data)
if spec is None:
spec = dict()
// Merge spec with unflattened kwargs, where kwargs take precedence.
// This only works for string keys, but kwarg keys are strings anyways.
spec = dict(spec, **unflatten(kwargs, _ENCODINGS, set(["viewport"])))
if "layers" not in spec:
spec["layers"] = []
// Syntax sugar: if no layers defined and data is passed at the top
// level, create a scatterplot layer with the top-level data by default.
if data is not None:
spec["layers"].append({
"data": data,
"type": "ScatterplotLayer",
})
for layer in spec["layers"]:
// Don"t add layers that have no data.
if "data" not in layer:
continue
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: streamlit/streamlit
Commit Name: 0fe228aa0bf5479458a68bf90b4430885410bd92
Time: 2018-10-22
Author: thiagot@gmail.com
File Name: lib/streamlit/DeckGlChart.py
Class Name:
Method Name: marshall
Project Name: deepmipt/DeepPavlov
Commit Name: c15e52623156084fbd74727dd3f34df2825e2ad3
Time: 2018-10-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/common/cross_validation.py
Class Name:
Method Name: calc_cv_score
Project Name: uber/ludwig
Commit Name: 3e2f276459f976054b5c2ab8c55be994170345da
Time: 2020-08-27
Author: carlo.grisetti@dsgroup.it
File Name: ludwig/utils/defaults.py
Class Name:
Method Name: merge_with_defaults