[INFO] cloning repository https://github.com/illia-st/data_mining_lab1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/illia-st/data_mining_lab1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillia-st%2Fdata_mining_lab1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillia-st%2Fdata_mining_lab1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd6f816e428d8349e2cc8c20fd05a4a2fc172a2d [INFO] checking illia-st/data_mining_lab1 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fillia-st%2Fdata_mining_lab1" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/illia-st/data_mining_lab1 [INFO] finished tweaking git repo https://github.com/illia-st/data_mining_lab1 [INFO] tweaked toml for git repo https://github.com/illia-st/data_mining_lab1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/illia-st/data_mining_lab1 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/illia-st/data_mining_lab1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 987b120be4b46a829dcca6b2feb91b46bfccb56f762a7208bdd401557aa63fd8 [INFO] running `Command { std: "docker" "start" "-a" "987b120be4b46a829dcca6b2feb91b46bfccb56f762a7208bdd401557aa63fd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "987b120be4b46a829dcca6b2feb91b46bfccb56f762a7208bdd401557aa63fd8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "987b120be4b46a829dcca6b2feb91b46bfccb56f762a7208bdd401557aa63fd8", kill_on_drop: false }` [INFO] [stdout] 987b120be4b46a829dcca6b2feb91b46bfccb56f762a7208bdd401557aa63fd8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b3fbaf9c4fa016373a8aca8bb5203a036509b1449e9ac20acfd3f94b219939b8 [INFO] running `Command { std: "docker" "start" "-a" "b3fbaf9c4fa016373a8aca8bb5203a036509b1449e9ac20acfd3f94b219939b8", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking csv-core v0.1.12 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking data_mining_laba_1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/decision_tree.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/decision_tree.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/one_r.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | for (index, (row, label)) in x.iter().zip(y.iter()).enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/one_r.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let count = value_class_counts.get(value).unwrap().get(label).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `predicted_class` is never read [INFO] [stdout] --> src/decision_tree.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let mut predicted_class = self.default_class.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let n = record.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `one_r_test_call` is never used [INFO] [stdout] --> src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn one_r_test_call() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `naive_bayes_test_call` is never used [INFO] [stdout] --> src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn naive_bayes_test_call() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decision_tree_call` is never used [INFO] [stdout] --> src/main.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn decision_tree_call() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_and_tokenize_dataset` is never used [INFO] [stdout] --> src/util.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn load_and_tokenize_dataset(path: &str) -> Result<(Vec>, Vec), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OneRClassifier` is never constructed [INFO] [stdout] --> src/one_r.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct OneRClassifier { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fit`, `predict`, and `get_best_feature_index` are never used [INFO] [stdout] --> src/one_r.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OneRClassifier { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn fit(&mut self, x: &Vec>, y: &Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn predict(&self, data: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_best_feature_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize` is never used [INFO] [stdout] --> src/naive_bayes.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn tokenize(lower_case_text: &str) -> HashSet<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NaiveBayesClassifier` is never constructed [INFO] [stdout] --> src/naive_bayes.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct NaiveBayesClassifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/naive_bayes.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Message<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/naive_bayes.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl NaiveBayesClassifier { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(alpha: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn fit(&mut self, x: &Vec, y: &Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn fit_internal(&mut self, messages: &[Message]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn increment_message_classifications_count(&mut self, message: &Message) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn increment_token_count(&mut self, token: &str, is_spam: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn increment_spam_count(&mut self, token: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn increment_ham_count(&mut self, token: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn predict(&self, text: &str) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn probabilities_of_message(&self, message_tokens: HashSet<&str>) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn probabilites_of_token(&self, token: &str) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Node` is never used [INFO] [stdout] --> src/decision_tree.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_tree` is never used [INFO] [stdout] --> src/decision_tree.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | pub fn print_tree(&self, feature_names: &[&str], indent: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecisionTreeClassifier` is never constructed [INFO] [stdout] --> src/decision_tree.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct DecisionTreeClassifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fit`, `build_tree`, `predict`, and `print_tree` are never used [INFO] [stdout] --> src/decision_tree.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl DecisionTreeClassifier { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn fit(&mut self, x: &Vec>, y: &Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn build_tree(&self, x: &Vec>, y: &Vec, indices: &[usize], feature_indices: &[usize]) -> Node { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn predict(&self, data: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn print_tree(&self, feature_names: &[&str], indent: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/one_r.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | for (index, (row, label)) in x.iter().zip(y.iter()).enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/one_r.rs:42:21 [INFO] [stdout] | [INFO] [stdout] 42 | let count = value_class_counts.get(value).unwrap().get(label).unwrap(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `predicted_class` is never read [INFO] [stdout] --> src/decision_tree.rs:172:21 [INFO] [stdout] | [INFO] [stdout] 172 | let mut predicted_class = self.default_class.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | let n = record.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `one_r_test_call` is never used [INFO] [stdout] --> src/main.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn one_r_test_call() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `naive_bayes_test_call` is never used [INFO] [stdout] --> src/main.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn naive_bayes_test_call() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `decision_tree_call` is never used [INFO] [stdout] --> src/main.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn decision_tree_call() -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_and_tokenize_dataset` is never used [INFO] [stdout] --> src/util.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn load_and_tokenize_dataset(path: &str) -> Result<(Vec>, Vec), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `OneRClassifier` is never constructed [INFO] [stdout] --> src/one_r.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct OneRClassifier { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fit`, `predict`, and `get_best_feature_index` are never used [INFO] [stdout] --> src/one_r.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl OneRClassifier { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 10 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn fit(&mut self, x: &Vec>, y: &Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn predict(&self, data: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub fn get_best_feature_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tokenize` is never used [INFO] [stdout] --> src/naive_bayes.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn tokenize(lower_case_text: &str) -> HashSet<&str> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NaiveBayesClassifier` is never constructed [INFO] [stdout] --> src/naive_bayes.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct NaiveBayesClassifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Message` is never constructed [INFO] [stdout] --> src/naive_bayes.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Message<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/naive_bayes.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl NaiveBayesClassifier { [INFO] [stdout] | ------------------------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(alpha: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn fit(&mut self, x: &Vec, y: &Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn fit_internal(&mut self, messages: &[Message]) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn increment_message_classifications_count(&mut self, message: &Message) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | fn increment_token_count(&mut self, token: &str, is_spam: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | fn increment_spam_count(&mut self, token: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn increment_ham_count(&mut self, token: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn predict(&self, text: &str) -> f64 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | fn probabilities_of_message(&self, message_tokens: HashSet<&str>) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn probabilites_of_token(&self, token: &str) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Node` is never used [INFO] [stdout] --> src/decision_tree.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_tree` is never used [INFO] [stdout] --> src/decision_tree.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Node { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 12 | pub fn print_tree(&self, feature_names: &[&str], indent: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DecisionTreeClassifier` is never constructed [INFO] [stdout] --> src/decision_tree.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct DecisionTreeClassifier { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `fit`, `build_tree`, `predict`, and `print_tree` are never used [INFO] [stdout] --> src/decision_tree.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl DecisionTreeClassifier { [INFO] [stdout] | --------------------------- associated items in this implementation [INFO] [stdout] 34 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn fit(&mut self, x: &Vec>, y: &Vec) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | fn build_tree(&self, x: &Vec>, y: &Vec, indices: &[usize], feature_indices: &[usize]) -> Node { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn predict(&self, data: &[Vec]) -> Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 203 | pub fn print_tree(&self, feature_names: &[&str], indent: &str) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.99s [INFO] running `Command { std: "docker" "inspect" "b3fbaf9c4fa016373a8aca8bb5203a036509b1449e9ac20acfd3f94b219939b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3fbaf9c4fa016373a8aca8bb5203a036509b1449e9ac20acfd3f94b219939b8", kill_on_drop: false }` [INFO] [stdout] b3fbaf9c4fa016373a8aca8bb5203a036509b1449e9ac20acfd3f94b219939b8