f28482ca5dd87f981de73ba8cb47def171e754f3,src/python/pants/backend/jvm/targets/jvm_app.py,BundleProps,create_bundle_props,#Any#Any#,90

Before Change


  def create_bundle_props(cls, file_set):
    if not isinstance(file_set, FilesetWithSpec):
      raise TypeError("The file_set must be a FilesetWithSpec, given {}.".format(file_set))
    mapper = RelativeToMapper(os.path.join(get_buildroot(), file_set.rel_root))
    return cls(file_set.rel_root, mapper, file_set.files)

After Change


    rel_path = getattr(bundle, "rel_path", None)
    mapper = getattr(bundle, "mapper", None)
    relative_to = getattr(bundle, "relative_to", None)
    fileset = getattr(bundle, "fileset", None)
    return self(rel_path, mapper, relative_to, fileset)


class BundleField(tuple, PayloadField):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: f28482ca5dd87f981de73ba8cb47def171e754f3
Time: 2016-08-09
Author: yujieproject@gmail.com
File Name: src/python/pants/backend/jvm/targets/jvm_app.py
Class Name: BundleProps
Method Name: create_bundle_props


Project Name: chainer/chainerrl
Commit Name: b92c5c45e7f8b1682fbcdbb969233eed604c79d9
Time: 2016-10-30
Author: muupan@gmail.com
File Name: chainerrl/agents/dqn.py
Class Name: DQN
Method Name: load


Project Name: chainer/chainerrl
Commit Name: b92c5c45e7f8b1682fbcdbb969233eed604c79d9
Time: 2016-10-30
Author: muupan@gmail.com
File Name: chainerrl/agents/dqn.py
Class Name: DQN
Method Name: save