20ff108a1349d6a990151309804fde1265e4b964,tgen/planner.py,T,__hash__,#T#,38
Before Change
Return hash of the tree that is composed of t-lemmas, formemes,
and parent orders of all nodes in the tree (ordered).
desc = self.get_descendants(add_self=1, ordered=1)
return hash("\n".join([str(n.parent.ord) + " " + n.t_lemma + " " + n.formeme
for n in desc]))
class CandidateList(DictMixin):
List of candidate trees that can be quickly checked for membership and
After Change
Return hash of the tree that is composed of t-lemmas, formemes,
and parent orders of all nodes in the tree (ordered).
desc = self.get_descendants(add_self=1, ordered=1)
return hash(unicode(self))
def __unicode__(self):
desc = self.get_descendants(add_self=1, ordered=1)
return " ".join([n.t_lemma + "|" + n.formeme + "|" + str(n.parent.ord)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: UFAL-DSG/tgen
Commit Name: 20ff108a1349d6a990151309804fde1265e4b964
Time: 2014-04-24
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/planner.py
Class Name: T
Method Name: __hash__
Project Name: pyinstaller/pyinstaller
Commit Name: 5b2327e051d5243f80b9b9f39f6800bbc8749bed
Time: 2018-09-09
Author: contact@tiger-222.fr
File Name: setup.py
Class Name:
Method Name: read
Project Name: SheffieldML/GPy
Commit Name: 0e1816da44c9769c9e1637b0c82660f010e0755a
Time: 2015-10-07
Author: ibinbei@gmail.com
File Name: setup.py
Class Name:
Method Name: read