34f14dac8d65ffd6210a87a610afad1593d47294,ner_v1/detectors/numeral/budget/budget_detection.py,BudgetDetector,__init__,#BudgetDetector#Any#Any#Any#Any#,80
Before Change
units = []
for _units, scale in self._allowed_units:
units.extend(_units)
units.sort(key=lambda unit: len(unit), reverse=True)
digits_pattern = r"((?:\d+(?:\,\d+)*(?:\.\d+)?)|(?:(?:\d+(?:\,\d+)*)?(?:\.\d+)))"
units_pattern = r"({})?".format("|".join(units))
self._budget_pattern = r"(?:rs\.|rs|rupees|rupee)?" \
After Change
scales, units = zip(*sorted(
list(BudgetDetector._scale_patterns.items()), key=lambda scale_pattern: len(scale_pattern[1]), reverse=True
))
self._scale_compiled_patterns = [(scale, re.compile(unit)) for scale, unit in zip(scales, units)]
digits_pattern = r"((?:\d+(?:\,\d+)*(?:\.\d+)?)|(?:(?:\d+(?:\,\d+)*)?(?:\.\d+)))"
units_pattern = r"({})?".format("|".join(units))
self._budget_pattern = r"(?:rs\.|rs|rupees|rupee)?" \
r"\s*{}\s*{}\s*" \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: 34f14dac8d65ffd6210a87a610afad1593d47294
Time: 2019-06-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: __init__
Project Name: nilmtk/nilmtk
Commit Name: 0ac7cecce4f147011037fcb79dfd57867b8329a8
Time: 2014-12-19
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: plot_good_sections
Project Name: nilearn/nilearn
Commit Name: 3daedc17ddab948752f3d6b90e56b177ea77ec42
Time: 2014-02-26
Author: virgile.fritsch@gmail.com
File Name: nilearn/mass_univariate/permuted_least_squares.py
Class Name:
Method Name: permuted_ols