235256fee1943ba44ec4dc1d49d53845571b6b37,python/vmaf/core/quality_runner.py,VmafexecQualityRunner,_get_quality_scores,#VmafexecQualityRunner#Any#,1361
Before Change
scores_dict[scores_key].append(float(frame.attrib[scores_key]))
for i_feature, feature in enumerate(self.FEATURES):
try:
feature_scores[i_feature].append(float(frame.attrib["integer_" + feature]))
except KeyError:
try:
feature_scores[i_feature].append(float(frame.attrib[feature])) //
except KeyError:
After Change
for i_feature, feature in enumerate(self.FEATURES):
// first look for exact match integer_xxx
feature_found = self._discover_feature_exact(
frame, i_feature,
"integer_" + feature, feature,
feature_scores, feature_nicknames)
if feature_found:
continue
// look for exact match xxx
feature_found = self._discover_feature_exact(
frame, i_feature,
feature, feature,
feature_scores, feature_nicknames)
if feature_found:
continue
// wildcard discovery: look for integer_xxx_*
feature_found = self._discover_feature_wildcard(
frame, i_feature,
"integer_" + feature + "_", feature,
feature_scores, feature_nicknames)
if feature_found:
continue
// wildcard discovery: look for xxx_*
feature_found = self._discover_feature_wildcard(
frame, i_feature,
feature + "_", feature,
feature_scores, feature_nicknames)
for scores_key in scores_keys:
assert len(scores_dict[scores_key]) != 0 \
or any([len(feature_score) != 0 for feature_score in feature_scores])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: Netflix/vmaf
Commit Name: 235256fee1943ba44ec4dc1d49d53845571b6b37
Time: 2021-03-20
Author: zli@netflix.com
File Name: python/vmaf/core/quality_runner.py
Class Name: VmafexecQualityRunner
Method Name: _get_quality_scores
Project Name: Netflix/vmaf
Commit Name: 235256fee1943ba44ec4dc1d49d53845571b6b37
Time: 2021-03-20
Author: zli@netflix.com
File Name: python/vmaf/core/quality_runner.py
Class Name: VmafossExecQualityRunner
Method Name: _get_quality_scores
Project Name: Netflix/vmaf
Commit Name: 235256fee1943ba44ec4dc1d49d53845571b6b37
Time: 2021-03-20
Author: zli@netflix.com
File Name: python/vmaf/core/quality_runner.py
Class Name: VmafexecQualityRunner
Method Name: _get_quality_scores
Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass