b436aeefc1b0523fc218fb25a79e665bad1d4563,src/python/pants/base/build_file.py,BuildFile,code,#BuildFile#,234

Before Change



    with open(self.full_path, "rb") as source:
      code = compile(source.read(), "<string>", "exec", flags=0, dont_inherit=True)
      with open(self._bytecode_path, "wb") as bytecode:
        marshal.dump(code, bytecode)
      return code

  def __eq__(self, other):
    result = other and (

After Change


  def code(self):
    Returns the code object for this BUILD file.
    with open(self.full_path, "rb") as source:
      return compile(source.read(), "<string>", "exec", flags=0, dont_inherit=True)

  def __eq__(self, other):
    result = other and (
      type(other) == BuildFile) and (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: b436aeefc1b0523fc218fb25a79e665bad1d4563
Time: 2015-02-09
Author: john.sirois@gmail.com
File Name: src/python/pants/base/build_file.py
Class Name: BuildFile
Method Name: code


Project Name: bokeh/bokeh
Commit Name: 87f695a4c88010134e19bde5f58126dcb7a01c2d
Time: 2016-08-02
Author: brittainhard@gmail.com
File Name: scripts/parse_modules.py
Class Name:
Method Name: output_classes


Project Name: kubeflow/kubeflow
Commit Name: bb8ea10297a7e3b59ca05e10190f0ac566f70756
Time: 2018-01-09
Author: jeremy@lewi.us
File Name: testing/prow_artifacts.py
Class Name:
Method Name: create_finished


Project Name: openml/openml-python
Commit Name: e2ee3370b7648efca9f2f85c440e8918453b65f6
Time: 2016-03-15
Author: amueller@nyu.edu
File Name: openml/entities/run.py
Class Name: OpenMLRun
Method Name: openml_run