fceb1968e44aa10654144aa0ca0a75adc46e13e2,lingpy/meaning/colexification.py,,_get_statistics,#Any#Any#Any#Any#,44
Before Change
tmp_family = wordlist[k, family]
tmp_taxon = wordlist[k, "taxon"]
try:
statistics[tmp_concept]["families"] += [tmp_family]
statistics[tmp_concept]["doculects"] += [tmp_taxon]
statistics[tmp_concept]["words"] += [tmp_entry]
except KeyError:
statistics[tmp_concept] = dict(
families=[tmp_family],
doculects=[tmp_taxon],
words=[tmp_entry])
for k in statistics:
statistics[k]["familyOcc"] = len(set(statistics[k]["families"]))
statistics[k]["doculectOcc"] = len(set(statistics[k]["doculects"]))
statistics[k]["wordOcc"] = len(statistics[k]["words"])
After Change
if family not in wordlist.header:
family = "doculect"
statistics = defaultdict(lambda: defaultdict(list))
for k in wordlist:
tmp_concept = wordlist[k, concept]
statistics[tmp_concept]["families"].append(wordlist[k, family])
statistics[tmp_concept]["doculects"].append(wordlist[k, "taxon"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: lingpy/lingpy
Commit Name: fceb1968e44aa10654144aa0ca0a75adc46e13e2
Time: 2016-03-11
Author: xrotwang@googlemail.com
File Name: lingpy/meaning/colexification.py
Class Name:
Method Name: _get_statistics
Project Name: lingpy/lingpy
Commit Name: 1e0683b3f5b56c53d9e75c9722e4adf7891d7361
Time: 2016-04-27
Author: mattis.list@uni-marburg.de
File Name: lingpy/compare/partial.py
Class Name: Partial
Method Name: _get_partial_matrices
Project Name: pgmpy/pgmpy
Commit Name: 53bc1480e10f6594574850a05e20b3616d904dfe
Time: 2014-12-21
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/inference/base.py
Class Name: Inference
Method Name: __init__