OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from google.appengine.ext import ndb | 5 from google.appengine.ext import ndb |
6 | 6 |
| 7 from gae_libs.model.versioned_model import VersionedModel |
7 from lib.time_util import GetUTCNow | 8 from lib.time_util import GetUTCNow |
8 from model.versioned_model import VersionedModel | |
9 | 9 |
10 | 10 |
11 class ConfidenceInformation(ndb.Model): | 11 class ConfidenceInformation(ndb.Model): |
12 correct = ndb.IntegerProperty() | 12 correct = ndb.IntegerProperty() |
13 total = ndb.IntegerProperty() | 13 total = ndb.IntegerProperty() |
14 confidence = ndb.FloatProperty() | 14 confidence = ndb.FloatProperty() |
15 | 15 |
16 # score is specific for confidence of heuristic results. | 16 # score is specific for confidence of heuristic results. |
17 score = ndb.IntegerProperty(default=None) | 17 score = ndb.IntegerProperty(default=None) |
18 | 18 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 self.end_date = end_date | 87 self.end_date = end_date |
88 self.updated_time = GetUTCNow() | 88 self.updated_time = GetUTCNow() |
89 self.compile_heuristic = compile_heuristic | 89 self.compile_heuristic = compile_heuristic |
90 self.compile_try_job = compile_try_job | 90 self.compile_try_job = compile_try_job |
91 self.compile_heuristic_try_job = compile_heuristic_try_job | 91 self.compile_heuristic_try_job = compile_heuristic_try_job |
92 self.test_heuristic = test_heuristic | 92 self.test_heuristic = test_heuristic |
93 self.test_try_job = test_try_job | 93 self.test_try_job = test_try_job |
94 self.test_heuristic_try_job = test_heuristic_try_job | 94 self.test_heuristic_try_job = test_heuristic_try_job |
95 | 95 |
96 self.Save() | 96 self.Save() |
OLD | NEW |