c3534b1a8a5de16cc797c2b4d239059322c766db,bokeh/application/handlers/script.py,ScriptHandler,__init__,#ScriptHandler#,17
Before Change
def __init__(self, *args, **kwargs):
super(ScriptHandler, self).__init__(*args, **kwargs)
if "filename" in kwargs:
self._runner = _CodeRunner(path=kwargs["filename"])
else:
raise ValueError("Must pass a filename to ScriptHandler")
self._complainers = {}
for f in ScriptHandler._io_functions:
self._complainers[f] = self._make_io_complainer(f)
After Change
_origin = "Script"
def __init__(self, *args, **kwargs):
if "filename" not in kwargs:
raise ValueError("Must pass a filename to ScriptHandler")
with codecs.open(kwargs["filename"], "r", "UTF-8") as f:
kwargs["source"] = f.read()
super(ScriptHandler, self).__init__(*args, **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: bokeh/bokeh
Commit Name: c3534b1a8a5de16cc797c2b4d239059322c766db
Time: 2016-01-09
Author: bryanv@continuum.io
File Name: bokeh/application/handlers/script.py
Class Name: ScriptHandler
Method Name: __init__
Project Name: bokeh/bokeh
Commit Name: c3534b1a8a5de16cc797c2b4d239059322c766db
Time: 2016-01-09
Author: bryanv@continuum.io
File Name: bokeh/application/handlers/server_lifecycle.py
Class Name: ServerLifecycleHandler
Method Name: __init__
Project Name: bokeh/bokeh
Commit Name: c3534b1a8a5de16cc797c2b4d239059322c766db
Time: 2016-01-09
Author: bryanv@continuum.io
File Name: bokeh/application/handlers/notebook.py
Class Name: NotebookHandler
Method Name: __init__