b5a69821e56d0e3d7f6faa0fd5f192a528de312d,examples/app/crossfilter/main.py,AppController,on_change,#AppController#Any#Any#Any#Any#,126
Before Change
def on_change(self, attr, old, new, model_field):
"""TODO: add docs"""
setattr(self.model, model_field, new)
self.update_app()
def update_app(self):
"""TODO: add docs"""
After Change
def on_change(self, attr, old, new, model_field):
"""TODO: add docs"""
if new == "None":
setattr(self.model, model_field, None)
else:
setattr(self.model, model_field, new)
self.update_app()
def update_app(self):
"""TODO: add docs"""
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: bokeh/bokeh
Commit Name: b5a69821e56d0e3d7f6faa0fd5f192a528de312d
Time: 2016-01-24
Author: bcollins@continuum.io
File Name: examples/app/crossfilter/main.py
Class Name: AppController
Method Name: on_change
Project Name: OpenMined/PySyft
Commit Name: 66c67bb76de1d03b055265b3aa26fcb62ac1047e
Time: 2021-03-04
Author: koenlennartvanderveen@gmail.com
File Name: src/syft/lib/misc/__init__.py
Class Name:
Method Name: create_union_ast
Project Name: kengz/SLM-Lab
Commit Name: 2051aa89ec691d1c056e3e1f1187c489597c2ead
Time: 2018-08-17
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/replay.py
Class Name: Replay
Method Name: reset