6f539ad2324ddccc18b6ac39e4a2f4aeb12173a2,tests/test_pydocstyle.py,,,#,28

Before Change


        print(e)
        counts[e.code] = counts.get(e.code, 0) + 1

    for n, code in sorted([(n, code) for code, n in counts.items()], reverse=True):
        p = lookup_error_params(code)
        print("%s %8d %s" % (code, n, p.short_desc))
    print("%s %8d violations" % ("tot", len(violations)))
    // TODO: exit(1)

After Change


            //raise Exception("PyDoc Coding Style: %d violations have been found" % ( len(self.violations)))  //// TODO: Correct these errors to allow Exception


if __name__ == "__main__":
    unittest.main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 6f539ad2324ddccc18b6ac39e4a2f4aeb12173a2
Time: 2018-04-17
Author: DEKHTIARJonathan@users.noreply.github.com
File Name: tests/test_pydocstyle.py
Class Name:
Method Name:


Project Name: deepmind/sonnet
Commit Name: 74ef80ead390c8e5b7b624ff67ead9875e22b87d
Time: 2017-10-16
Author: noreply@google.com
File Name: sonnet/python/modules/base_test.py
Class Name:
Method Name:


Project Name: tzutalin/labelImg
Commit Name: 6958e69851567abb18bfece52888d4709bbacc5b
Time: 2017-08-03
Author: tzu.ta.lin@gmail.com
File Name: tests/test_io.py
Class Name:
Method Name: