e870ef14c590502fb0dc5ff3199e2602a87ec008,ner_v1/detectors/numeral/budget/budget_detection.py,BudgetDetector,_detect_min_budget,#BudgetDetector#Any#Any#,182

Before Change


                replace_comma = re.sub(",", "", pattern[3])
                amount = int(self.regex_object.unit_substitute(replace_comma))
            else:
                replace_comma = re.sub(",", "", pattern[3])
                amount = int(replace_comma)

            if self.min_digit <= len(str(amount)) <= self.max_digit:
                budget["min_budget"] = amount

After Change


            scale = self.get_scale(unit)

            if amount.replace(",", "").replace(".", "").isdigit():
                amount = float(amount.replace(",", "")) * scale

                amount = int(amount)  // casting to int for backward compatibility
                if self.min_digit <= len(str(amount)) <= self.max_digit:
                    budget["min_budget"] = amount
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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_min_budget


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


Project Name: hyperspy/hyperspy
Commit Name: 7ef5c101ad8b49dc17a68c992c94714db11b4ac3
Time: 2018-04-11
Author: jat255@gmail.com
File Name: hyperspy/drawing/utils.py
Class Name:
Method Name: create_figure