<commit_before>#![allow(missing_docs, trivial_casts, non_camel_case_types)]

/// SWAGGER codegen auto generated file
///
/// Do NOT manually modify!
///

#[macro_use]
extern crate serde_derive;
extern crate serde_json;

extern crate futures;

#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;

// Logically this should be in the server modules, but rust doesn't allow `macro_use` from a module.
#[cfg(feature = "server")]
#[macro_use]
extern crate hyper;

extern crate swagger;

pub use futures::Future;

#[cfg(feature = "server")]
mod mimetypes;

pub use swagger::{ApiError, Context, ContextWrapper};


#[derive(Debug, PartialEq)]
pub enum ApplyLimiterToDriveResponse {
    LimiterApplied ,
    LimiterCannotBeAppliedDueToBadInput ( models::Error ) ,
    InternalServerError ( models::Error ) ,
}

#[derive(Debug, PartialEq)]<commit_msg>api: add common structs for api_server<->vmm communication<commit_after>#![allow(missing_docs, trivial_casts, non_camel_case_types)]

/// SWAGGER codegen auto generated file
///
/// Do NOT manually modify!
///

#[macro_use]
extern crate serde_derive;
extern crate serde_json;

extern crate futures;

#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;

// Logically this should be in the server modules, but rust doesn't allow `macro_use` from a module.
#[cfg(feature = "server")]
#[macro_use]
extern crate hyper;

extern crate swagger;

pub use futures::Future;
use std::sync::mpsc::Sender;

#[cfg(feature = "server")]
mod mimetypes;

pub use swagger::{ApiError, Context, ContextWrapper};

type SimpleResponse = std::result::Result<(), models::Error>;

pub struct ApiRequest {
    pub command: ApiCommand,
    pub response_sender: Sender<Box<ApiResponse>>,
}

pub enum ApiCommand {
    DescribeInstance,
    StartInstance,
    AddDrive(models::Drive),
}

pub enum ApiResponse {
    DescribeInstanceResp(DescribeInstanceResponse),
    StartInstanceResp(SimpleResponse),
    AddDriveResp(PutGuestDriveByIDResponse),
    GenericError(models::Error),
}

#[derive(Debug, PartialEq)]
pub enum ApplyLimiterToDriveResponse {
    LimiterApplied ,
    LimiterCannotBeAppliedDueToBadInput ( models::Error ) ,
    InternalServerError ( models::Error ) ,
}

#[derive(Debug, PartialEq)]
{'fraction_non_alphanumeric': 0.11694086260560249, 'fraction_numerical': 0.0, 'mean_word_length': 5.4655172413793105, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1820674', 'n_tokens_mistral': 732, 'n_tokens_neox': 713, 'n_words': 191}