<commit_before>/* 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 http://mozilla.org/MPL/2.0/. */

extern crate mio;

use context::SharedContext;
use dummy_adapter::DummyAdapter;
use events::*;
use http_server::HttpServer;
use mio::EventLoop;
use service::{ Service, ServiceAdapter };

pub struct Controller {
    sender: EventSender,
    context: SharedContext
}

impl Controller {
    /// Construct a new `Controller`.
    ///<commit_msg>Fix compilation error by being explicit in what we use<commit_after>/* 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 http://mozilla.org/MPL/2.0/. */

extern crate mio;

use context::SharedContext;
use dummy_adapter::DummyAdapter;
use events::{ EventData, EventSender };
use http_server::HttpServer;
use mio::EventLoop;
use service::{ Service, ServiceAdapter };

pub struct Controller {
    sender: EventSender,
    context: SharedContext
}

impl Controller {
    /// Construct a new `Controller`.
    ///
{'fraction_non_alphanumeric': 0.10420168067226891, 'fraction_numerical': 0.0067226890756302525, 'mean_word_length': 3.9012345679012346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3346781', 'n_tokens_mistral': 347, 'n_tokens_neox': 337, 'n_words': 141}