362a7c6d37f9592a88531d972f77d5dd3e21b535,mozregression/json_pushes.py,JsonPushes,revision_for_date,#JsonPushes#,110

Before Change


            date.strftime("%Y-%m-%d"),
            enddate.strftime("%Y-%m-%d"),
        )
        chsets = self._request(url)
        sorted_pushids = sorted(chsets)
        idx = -1 if last else 0
        pushlog = chsets[sorted_pushids[idx]]
        // The last changeset in the push is the head rev used for the build
        return pushlog["changesets"][-1]

After Change


        except EmptyPushlogError:
            raise EmptyPushlogError(
                "No pushes available for the date %s on %s."
                % (date, self.branch)
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: mozilla/mozregression
Commit Name: 362a7c6d37f9592a88531d972f77d5dd3e21b535
Time: 2015-12-04
Author: j.parkouss@gmail.com
File Name: mozregression/json_pushes.py
Class Name: JsonPushes
Method Name: revision_for_date


Project Name: kymatio/kymatio
Commit Name: 60c2e01bfc93bc01da21b79ebe9f222e601e1931
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/core/scattering2d.py
Class Name:
Method Name: scattering2d


Project Name: yzhao062/pyod
Commit Name: f7274c1889e6c31ab89dc0409fa2ac92e6f01228
Time: 2019-03-11
Author: yalmardeny@tssg,org
File Name: pyod/models/sod.py
Class Name: SOD
Method Name: _snn


Project Name: miso-belica/sumy
Commit Name: 48efbe6c9be471d45a90ca39afe74e0cd1a4a6f1
Time: 2013-02-20
Author: miso.belica@gmail.com
File Name: sumy/algorithms/_luhn.py
Class Name: LuhnMethod
Method Name: __call__