Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3135)

Unified Diff: appengine/findit/util_scripts/remote_queries/calculate_confidence_scores.py

Issue 2072893002: [Findit] scripts to calculate confidence level of Findit results. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/model/suspected_cl_confidence.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/util_scripts/remote_queries/calculate_confidence_scores.py
diff --git a/appengine/findit/util_scripts/remote_queries/calculate_confidence_scores.py b/appengine/findit/util_scripts/remote_queries/calculate_confidence_scores.py
index 53db88c043953f90c8c0843ebc80402be48dd39a..5813701a0e1ddb375bb8db8dfd99b532a4edeb11 100644
--- a/appengine/findit/util_scripts/remote_queries/calculate_confidence_scores.py
+++ b/appengine/findit/util_scripts/remote_queries/calculate_confidence_scores.py
@@ -36,7 +36,7 @@ TRIAGED_STATUS = [
]
-def _AddConfidenceInformation(result, score=None):
+def _CreateConfidenceInformation(result, score=None):
correct_number = result[suspected_cl_status.CORRECT]
incorrect_number = result[suspected_cl_status.INCORRECT]
total_number = correct_number + incorrect_number
@@ -51,7 +51,7 @@ def _CalculateConfidenceLevelsForHeuristic(new_results):
updated_results = []
for score, result in new_results.iteritems():
- updated_results.append(_AddConfidenceInformation(result, score=score))
+ updated_results.append(_CreateConfidenceInformation(result, score=score))
return updated_results
@@ -63,13 +63,13 @@ def _SavesNewCLConfidence(
result_heuristic[failure_type.COMPILE])
new_test_heuristic = _CalculateConfidenceLevelsForHeuristic(
result_heuristic[failure_type.TEST])
- new_compile_try_job = _AddConfidenceInformation(
+ new_compile_try_job = _CreateConfidenceInformation(
result_try_job[failure_type.COMPILE])
- new_test_try_job = _AddConfidenceInformation(
+ new_test_try_job = _CreateConfidenceInformation(
result_try_job[failure_type.TEST])
- new_compile_heuristic_try_job = _AddConfidenceInformation(
+ new_compile_heuristic_try_job = _CreateConfidenceInformation(
result_both[failure_type.COMPILE])
- new_test_heuristic_try_job = _AddConfidenceInformation(
+ new_test_heuristic_try_job = _CreateConfidenceInformation(
result_both[failure_type.TEST])
SuspectedCLConfidence.Get().Update(
« no previous file with comments | « appengine/findit/model/suspected_cl_confidence.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698