cfdd477e3480d55c90c26afe11b8446e906acf4d,jarbas/core/management/commands/loadsuppliers.py,Command,to_date,#Any#,93

Before Change


            elif 50 < year <= 99:
                year += 1900
            dt = datetime(year, month, day, tzinfo=get_default_timezone())
            return dt.strftime("%Y-%m-%d")

        except ValueError:
            return None

After Change


                year += 2000
            elif 50 < year <= 99:
                year += 1900
            return date(year, month, day)

        except ValueError:
            return None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: okfn-brasil/serenata-de-amor
Commit Name: cfdd477e3480d55c90c26afe11b8446e906acf4d
Time: 2016-11-25
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/loadsuppliers.py
Class Name: Command
Method Name: to_date


Project Name: rwth-i6/returnn
Commit Name: 49e4f21a1b9a13595e4b055f1b0421bd780f2240
Time: 2020-08-05
Author: albert.zeyer@rwth-aachen.de
File Name: returnn/__setup__.py
Class Name:
Method Name: get_version_str


Project Name: thenetcircle/dino
Commit Name: 9591f3d41c416856ddb33be82694e2b2161852e6
Time: 2018-09-11
Author: oscar.eriks@gmail.com
File Name: dino/db/manager/storage.py
Class Name: StorageManager
Method Name: format_time_range


Project Name: okfn-brasil/serenata-de-amor
Commit Name: 17d1f7fed5e55519bc3a25a70b3dc655a72170f3
Time: 2016-11-09
Author: cuducos@gmail.com
File Name: jarbas/core/management/commands/loadsuppliers.py
Class Name: Command
Method Name: to_date


Project Name: mozilla/mozregression
Commit Name: 4ba516a23138a91580fc119de564940fb2d32505
Time: 2016-01-19
Author: j.parkouss@gmail.com
File Name: mozregression/build_info.py
Class Name: BuildInfo
Method Name: persist_filename