diff --git a/components/speedreader/rust/lib/src/readability/src/lib.rs b/components/speedreader/rust/lib/src/readability/src/lib.rs index ef9c28682bff..1360b44f31d6 100644 --- a/components/speedreader/rust/lib/src/readability/src/lib.rs +++ b/components/speedreader/rust/lib/src/readability/src/lib.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + #[macro_use] extern crate html5ever; extern crate kuchikiki; diff --git a/components/speedreader/rust/lib/src/readability/src/nlp.rs b/components/speedreader/rust/lib/src/readability/src/nlp.rs index fed68fe6bec4..596fc44788a0 100644 --- a/components/speedreader/rust/lib/src/readability/src/nlp.rs +++ b/components/speedreader/rust/lib/src/readability/src/nlp.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + use regex::{Regex, RegexSet}; use std::cmp::max; use std::collections::HashSet; diff --git a/components/speedreader/rust/lib/src/readability/src/scorer.rs b/components/speedreader/rust/lib/src/readability/src/scorer.rs index f78d3600a87c..3e2cd3fa732e 100644 --- a/components/speedreader/rust/lib/src/readability/src/scorer.rs +++ b/components/speedreader/rust/lib/src/readability/src/scorer.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{dom, util}; use html5ever::tendril::StrTendril; use html5ever::tree_builder::TreeSink; diff --git a/components/speedreader/rust/lib/src/readability/src/statistics.rs b/components/speedreader/rust/lib/src/readability/src/statistics.rs index b63fed2ca2f1..dc11f89a6f72 100644 --- a/components/speedreader/rust/lib/src/readability/src/statistics.rs +++ b/components/speedreader/rust/lib/src/readability/src/statistics.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + use crate::{dom, util}; use kuchikiki::iter::NodeIterator; use kuchikiki::NodeRef as Handle; diff --git a/components/speedreader/rust/lib/src/speedreader_readability.rs b/components/speedreader/rust/lib/src/speedreader_readability.rs index 646118547ad3..11320d56340c 100644 --- a/components/speedreader/rust/lib/src/speedreader_readability.rs +++ b/components/speedreader/rust/lib/src/speedreader_readability.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + use html5ever::driver::{ParseOpts, Parser}; use html5ever::tendril::{StrTendril, TendrilSink}; use kuchikiki::Sink; diff --git a/components/speedreader/rust/lib/tests/legacy.rs b/components/speedreader/rust/lib/tests/legacy.rs index 3eeba8fe6437..b12625b45cd0 100644 --- a/components/speedreader/rust/lib/tests/legacy.rs +++ b/components/speedreader/rust/lib/tests/legacy.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + #![allow(dead_code)] extern crate distance; extern crate html5ever; diff --git a/components/speedreader/rust/lib/tests/lib.rs b/components/speedreader/rust/lib/tests/lib.rs index 929474a977d5..ace0e0da07ac 100644 --- a/components/speedreader/rust/lib/tests/lib.rs +++ b/components/speedreader/rust/lib/tests/lib.rs @@ -1,3 +1,8 @@ +// Copyright (c) 2021 The Brave Authors. All rights reserved. +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this file, +// You can obtain one at https://mozilla.org/MPL/2.0/. + #![allow(dead_code)] extern crate distance; extern crate html5ever;