| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "components/dom_distiller/core/page_features.h" | 5 #include "components/dom_distiller/core/page_features.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "third_party/re2/re2/re2.h" | 10 #include "third_party/re2/src/re2/re2.h" |
| 11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 12 | 12 |
| 13 namespace dom_distiller { | 13 namespace dom_distiller { |
| 14 /* This code needs to derive features in the same way and order in which they | 14 /* This code needs to derive features in the same way and order in which they |
| 15 * are derived when training the model. Parts of that code are reproduced in the | 15 * are derived when training the model. Parts of that code are reproduced in the |
| 16 * comments below. | 16 * comments below. |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 features.push_back(mozScore); | 234 features.push_back(mozScore); |
| 235 // 'mozScoreAllSqrt' | 235 // 'mozScoreAllSqrt' |
| 236 features.push_back(mozScoreAllSqrt); | 236 features.push_back(mozScoreAllSqrt); |
| 237 // 'mozScoreAllLinear' | 237 // 'mozScoreAllLinear' |
| 238 features.push_back(mozScoreAllLinear); | 238 features.push_back(mozScoreAllLinear); |
| 239 | 239 |
| 240 return features; | 240 return features; |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace dom_distiller | 243 } // namespace dom_distiller |
| OLD | NEW |