ff02fbdfe1047ef6356255834b906a7c753589bf,src/python/pants/build_graph/target.py,Target,id,#Target#,560

Before Change



    :API: public
    
    id_candidate = self.address.path_safe_spec
    if len(id_candidate) >= 200:
      // two dots + 79 char head + 79 char tail + 40 char sha1
      return "{}.{}.{}".format(id_candidate[:79], sha1(id_candidate).hexdigest(), id_candidate[-79:])
    return id_candidate

  @property
  def identifier(self):
    

After Change



    :API: public
    
    return self.compute_target_id(self.address)

  @property
  def identifier(self):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: pantsbuild/pants
Commit Name: ff02fbdfe1047ef6356255834b906a7c753589bf
Time: 2016-03-17
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/build_graph/target.py
Class Name: Target
Method Name: id


Project Name: pantsbuild/pants
Commit Name: ff02fbdfe1047ef6356255834b906a7c753589bf
Time: 2016-03-17
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/build_graph/target.py
Class Name: Target
Method Name: id


Project Name: pantsbuild/pants
Commit Name: e23c85ab88826b8244b63d6f07cd7e6987beb408
Time: 2015-09-29
Author: stuhood@gmail.com
File Name: src/python/pants/base/target.py
Class Name: Target
Method Name: id


Project Name: pantsbuild/pants
Commit Name: 0499c7d00934c4e3a0068f3152357f196d430490
Time: 2018-06-18
Author: stuhood@twitter.com
File Name: src/python/pants/build_graph/target.py
Class Name: Target
Method Name: compute_target_id