14759e1065e307c7760299670da30f64ffdbf783,src/python/pants/engine/storage.py,Key,create,#Any#Any#Any#Any#,67

Before Change


    
    digest = cls._DIGEST_IMPL(blob).digest()
    hash_ = cls.compute_hash_from_digest(digest)
    return cls(digest, hash_, type_, string)

  @classmethod
  def compute_hash_from_digest(cls, digest):
    Extract 32 bit hash from digest.

After Change


    :param protocol: Serialization protocol for pickle, if not provided will use ASCII protocol.
    
    if in_memory:
      content, key_mappings = InMemoryDb(), InMemoryDb()
    else:
      content, key_mappings = Lmdb.create(path=path,
                                          child_databases=[cls.LMDB_KEY_MAPPINGS_DB_NAME])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: 14759e1065e307c7760299670da30f64ffdbf783
Time: 2016-08-27
Author: stuhood@gmail.com
File Name: src/python/pants/engine/storage.py
Class Name: Key
Method Name: create


Project Name: bokeh/bokeh
Commit Name: 972dae2879855ec26dc305ef36f13eec1c0f604f
Time: 2016-08-17
Author: canavandl@gmail.com
File Name: bokeh/models/formatters.py
Class Name: FuncTickFormatter
Method Name: from_coffeescript


Project Name: snipsco/snips-nlu
Commit Name: aa80252fba213d3a6e5828a9b59fe9991f7d7a5a
Time: 2017-04-03
Author: adrien.ball@snips.net
File Name: snips_nlu/intent_classifier/snips_intent_classifier.py
Class Name: SnipsIntentClassifier
Method Name: from_dict