03215a5fb0a0e113a419edd410202c32136d9c64,ner_v2/detectors/temporal/date/standard_regex_date.py,BaseRegexDate,_detect_date_from_standard_regex,#BaseRegexDate#,513

Before Change


            date_list, original_list = detector(date_list, original_list)
            self._update_processed_text(original_list)

        return date_list, original_list

After Change



        // Note: Following leaves tagged text incorrect but avoids returning invalid dates like 30th Feb
        for date, original_text in zip(date_list, original_list):
            try:
                datetime.date(year=date["yy"], month=date["mm"], day=date["dd"])
                validated_date_list.append(date)
                validated_original_list.append(original_text)
            except ValueError:
                pass

        return validated_date_list, validated_original_list

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: hellohaptik/chatbot_ner
Commit Name: 03215a5fb0a0e113a419edd410202c32136d9c64
Time: 2018-10-25
Author: amans.rlx@gmail.com
File Name: ner_v2/detectors/temporal/date/standard_regex_date.py
Class Name: BaseRegexDate
Method Name: _detect_date_from_standard_regex


Project Name: bokeh/bokeh
Commit Name: 16d3d0efcc91a4206be0c3f11ede33f9fc03cda9
Time: 2020-01-16
Author: bryan@bokeh.org
File Name: bokeh/core/property/datetime.py
Class Name: Date
Method Name: validate


Project Name: hellohaptik/chatbot_ner
Commit Name: ba9884a800d996ada39387b5cd7616b4087b4248
Time: 2018-07-30
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/temporal/date/date_detection.py
Class Name: DateDetector
Method Name: _detect_date