e870ef14c590502fb0dc5ff3199e2602a87ec008,ner_v1/detectors/numeral/budget/budget_detection.py,BudgetDetector,_detect_max_budget,#BudgetDetector#Any#Any#,226

Before Change


            }

            if any([unit in pattern[3] for unit in self.unit_present_list]):
                comma_removed_unit_text = pattern[3].replace(",", "")
                amount = int(self.regex_object.unit_substitute(comma_removed_unit_text))
            else:
                comma_removed_number = pattern[3].replace(",", "")
                amount = int(comma_removed_number)

After Change


        if original_list is None:
            original_list = []

        pattern = re.compile(r"\s("
                             r"(?:max|upto|o?nly|around|below|less than|less|less den|\<\s*\=?)"
                             r"\s+" +
                             self._budget_pattern +
                             r")(?:\b|\.|\s)", flags=re.UNICODE | re.IGNORECASE)

        for match in pattern.finditer(self.processed_text):
            original, amount, unit = match.groups()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: hellohaptik/chatbot_ner
Commit Name: e870ef14c590502fb0dc5ff3199e2602a87ec008
Time: 2019-03-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: _detect_max_budget


Project Name: pgmpy/pgmpy
Commit Name: 7d2fd84aaa40fecd493047fab675756ec966f904
Time: 2015-11-09
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/readwrite/BIF.py
Class Name: BifReader
Method Name: __init__


Project Name: hellohaptik/chatbot_ner
Commit Name: a7571601d9ccfbdf1158d4bf670eb32af8bcefdc
Time: 2019-09-25
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/numeral/number/standard_number_detector.py
Class Name: BaseNumberDetector
Method Name: _update_processed_text