<commit_before>// Copyright 2015-2016 Intecture Developers. See the COPYRIGHT file at the
// top-level directory of this distribution and at
// https://intecture.io/COPYRIGHT.
//
// Licensed under the Mozilla Public License 2.0 <LICENSE or
// https://www.tldrlegal.com/l/mpl-2.0>. This file may not be copied,
// modified, or distributed except according to those terms.

use zdaemon::ConfigFile;

#[derive(Debug)]
#[derive(RustcDecodable, RustcEncodable)]
pub struct Config {
    pub language: String,
    pub artifact: String,
    pub auth_server: String,
}

impl ConfigFile for Config {}

impl Config {
    pub fn new(language: &str, artifact: &str, auth_server: &str) -> Config {
        Config {
            language: language.into(),
            artifact: artifact.into(),
            auth_server: auth_server.into(),
        }
    }
}<commit_msg>Code cleanup<commit_after>// Copyright 2015-2016 Intecture Developers. See the COPYRIGHT file at the
// top-level directory of this distribution and at
// https://intecture.io/COPYRIGHT.
//
// Licensed under the Mozilla Public License 2.0 <LICENSE or
// https://www.tldrlegal.com/l/mpl-2.0>. This file may not be copied,
// modified, or distributed except according to those terms.

use zdaemon::ConfigFile;

#[derive(Debug, RustcDecodable, RustcEncodable)]
pub struct Config {
    pub language: String,
    pub artifact: String,
    pub auth_server: String,
}

impl ConfigFile for Config {}

impl Config {
    pub fn new(language: &str, artifact: &str, auth_server: &str) -> Config {
        Config {
            language: language.into(),
            artifact: artifact.into(),
            auth_server: auth_server.into(),
        }
    }
}
{'fraction_non_alphanumeric': 0.11445427728613569, 'fraction_numerical': 0.01415929203539823, 'mean_word_length': 3.018957345971564, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6762485', 'n_tokens_mistral': 528, 'n_tokens_neox': 497, 'n_words': 165}