834acd07601b6a53a59884f1fcf3ffcc802f9e18,bears/vcs/git/GitCommitBear.py,GitCommitBear,check_shortlog,#GitCommitBear#Any#Any#Any#Any#,80

Before Change


                                         care").
        :param shortlog:                 The shortlog message string.
        
        if len(shortlog) > shortlog_length:
            yield Result(self, "Shortlog of HEAD commit is too long.")

        if (shortlog[-1] != ".") == shortlog_trailing_period:
            yield Result(self,
                         "Shortlog of HEAD commit contains no period at end."
                         if shortlog_trailing_period else

After Change


                                         care").
        :param shortlog:                 The shortlog message string.
        
        diff = len(shortlog) - shortlog_length
        if diff > 0:
            yield Result(self,
                         "Shortlog of HEAD commit is {} character(s) longer "
                         "than the limit ({} > {}).".format(
                             diff, len(shortlog), shortlog_length))

        if (shortlog[-1] != ".") == shortlog_trailing_period:
            yield Result(self,
                         "Shortlog of HEAD commit contains no period at end."
                         if shortlog_trailing_period else
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: coala/coala-bears
Commit Name: 834acd07601b6a53a59884f1fcf3ffcc802f9e18
Time: 2016-03-20
Author: jarifibrahim@gmail.com
File Name: bears/vcs/git/GitCommitBear.py
Class Name: GitCommitBear
Method Name: check_shortlog


Project Name: MolSSI/QCEngine
Commit Name: 76d930ec1fe1e18300c835ddf938afd943d4ad05
Time: 2019-06-10
Author: lori.burns@gmail.com
File Name: qcengine/programs/dftd3.py
Class Name: DFTD3Harness
Method Name: compute


Project Name: MolSSI/QCEngine
Commit Name: 1895a1e954eb0ee668deffe0de9b2207b5c04c9c
Time: 2019-06-07
Author: lori.burns@gmail.com
File Name: qcengine/programs/mp2d.py
Class Name: MP2DHarness
Method Name: compute