4a976541bf2938827bfa95ae4a2351164848bc58,web/conceptnet_web/filters.py,,full_language_name,#Any#Any#,26
Before Change
if "language" not in term:
return term.get("site", "")
lang = term["language"]
language_obj = Language.get(lang)
full_name = language_obj.language_name(description_language)
autonym = language_obj.autonym()
if full_name == autonym or autonym == lang:
return full_name
After Change
def full_language_name(term, description_language="en"):
if description_language != "en":
raise NotImplementedError(
"We don"t support non-English interface text yet."
)
if "language" not in term:
return term.get("site", "")
lang = term["language"]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: commonsense/conceptnet5
Commit Name: 4a976541bf2938827bfa95ae4a2351164848bc58
Time: 2016-10-31
Author: rob@luminoso.com
File Name: web/conceptnet_web/filters.py
Class Name:
Method Name: full_language_name
Project Name: stellargraph/stellargraph
Commit Name: 145170ca9bbd89aa01d8a40841e3c039d3683af8
Time: 2019-06-03
Author: andrew.docherty@data61.csiro.au
File Name: stellargraph/layer/graph_attention.py
Class Name: GAT
Method Name: __call__
Project Name: analysiscenter/batchflow
Commit Name: e41630f0290fc15bc0e9fc2c3cb22464758afe10
Time: 2018-01-24
Author: g.ivanov@analysiscenter.ru
File Name: dataset/batch_image.py
Class Name: BaseImagesBatch
Method Name: _dump_image