e870ef14c590502fb0dc5ff3199e2602a87ec008,ner_v1/detectors/numeral/budget/budget_detection.py,BudgetDetector,_detect_min_budget,#BudgetDetector#Any#Any#,182
Before Change
}
if any([unit in pattern[3] for unit in self.unit_present_list]):
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)
After Change
if self.min_digit <= len(str(amount)) <= self.max_digit:
budget["min_budget"] = amount
budget_list.append(budget)
original_list.append(original.strip())
return budget_list, original_list
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: elbayadm/attn2d
Commit Name: 71d2d44c80886be700cebbef7d3a7d413e152c42
Time: 2018-01-12
Author: edunov@fb.com
File Name: fairseq/tokenizer.py
Class Name:
Method Name: tokenize_line