3d12c536e66ff4414860b8de1467fe56ede54063,thinc/neural/_classes/model.py,Model,define_operators,#Any#Any#,39
Before Change
// Raises TypeError --- binding limited to scope of with block.
old_ops = dict(cls._operators)
for op, func in operators.items():
cls._operators[op] = func
yield
cls._operators = old_ops
After Change
print(model + other)
// Raises TypeError --- binding limited to scope of with block.
curr_operators = dict(getattr(cls._thread_local, "operators", {}))
cls._thread_local.operators = dict(operators)
yield
cls._thread_local.operators = dict(curr_operators)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: explosion/thinc
Commit Name: 3d12c536e66ff4414860b8de1467fe56ede54063
Time: 2019-11-28
Author: adrianeboyd@gmail.com
File Name: thinc/neural/_classes/model.py
Class Name: Model
Method Name: define_operators
Project Name: theislab/scanpy
Commit Name: 7da447b4b42c4b214fc464deb3a3166a9bace7b2
Time: 2017-05-22
Author: f.alex.wolf@gmx.de
File Name: scanpy/__main__.py
Class Name:
Method Name: init_main_parser
Project Name: home-assistant/home-assistant
Commit Name: d6abdc0d4efa8386e549a9c8bbacc52bf5c82f7e
Time: 2016-04-08
Author: jaharkes@cs.cmu.edu
File Name: homeassistant/util/yaml.py
Class Name:
Method Name: _ordered_dict