cc6b0a3a8e7d8e94937d43a87c2705bdcd1d2a42,src/python/pants/python/code_generator.py,CodeGenerator,dump_setup_py,#CodeGenerator#,63

Before Change


      "target_name": self.target.name,
      "install_requires": self.install_requires,
      "packages": repr(self.created_packages),
      "namespace_packages": repr(list(self.created_namespace_packages))
    }
    self.chroot.write(boilerplate.encode("utf8"), os.path.join(self.codegen_root, "setup.py"))
    self.chroot.write("include *.py".encode("utf8"), os.path.join(self.codegen_root, "MANIFEST.in"))

After Change


      "package_dir": self.package_dir.encode("utf-8"),
      "target_name": self.target.name.encode("utf-8"),
      "install_requires": [x.encode("utf-8") for x in self.install_requires],
      "packages": repr([x.encode("utf-8") for x in self.created_packages]),
      "namespace_packages": repr([x.encode("utf-8") for x in self.created_namespace_packages])
    }
    self.chroot.write(boilerplate.encode("utf8"), os.path.join(self.codegen_root, "setup.py"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: cc6b0a3a8e7d8e94937d43a87c2705bdcd1d2a42
Time: 2014-04-02
Author: benjy@foursquare.com
File Name: src/python/pants/python/code_generator.py
Class Name: CodeGenerator
Method Name: dump_setup_py


Project Name: pytorch/text
Commit Name: 7c3b1d311bb6e1dcfb5e0929a9fc93b22af2acf4
Time: 2017-09-07
Author: nfliu@cs.washington.edu
File Name: torchtext/data/example.py
Class Name: Example
Method Name: fromCSV


Project Name: pytorch/text
Commit Name: 3aa4d13e15bea9a6bca68a4261b50c433400eb6e
Time: 2017-09-07
Author: nelson-liu@users.noreply.github.com
File Name: torchtext/data/example.py
Class Name: Example
Method Name: fromCSV