<commit_before>use actix_web::{http::StatusCode, server};
use env_logger;
use failure::{Error, Fail};
use potboiler;
use potboiler_common::{pg, server_id, ServerThread};
use reqwest::{Client, header};
use serde_json::json;
use serial_test_derive::serial;
use std::{str, env};
use regex::Regex;

#[derive(Debug, Fail)]
enum IntegrationError {
    #[fail(display = "IoError")]
    IoError {
        #[cause]
        cause: std::io::Error,
    },
}

fn boot_potboiler() -> Result<ServerThread, Error> {
    let _ = env_logger::try_init();
    let pool = potboiler::db_setup()?;
    let app_state = potboiler::AppState::new(pool, server_id::test()).unwrap();
    return ServerThread::new({
        move || server::new(move || potboiler::app_router(app_state.clone()).unwrap()).bind("0.0.0.0:8000")
    })
    .map_err(|e| IntegrationError::IoError { cause: e }.into());<commit_msg>Fix pigtail formatting<commit_after>use actix_web::{http::StatusCode, server};
use env_logger;
use failure::{Error, Fail};
use potboiler;
use potboiler_common::{pg, server_id, ServerThread};
use regex::Regex;
use reqwest::{header, Client};
use serde_json::json;
use serial_test_derive::serial;
use std::{env, str};

#[derive(Debug, Fail)]
enum IntegrationError {
    #[fail(display = "IoError")]
    IoError {
        #[cause]
        cause: std::io::Error,
    },
}

fn boot_potboiler() -> Result<ServerThread, Error> {
    let _ = env_logger::try_init();
    let pool = potboiler::db_setup()?;
    let app_state = potboiler::AppState::new(pool, server_id::test()).unwrap();
    return ServerThread::new({
        move || server::new(move || potboiler::app_router(app_state.clone()).unwrap()).bind("0.0.0.0:8000")
    })
    .map_err(|e| IntegrationError::IoError { cause: e }.into());
{'fraction_non_alphanumeric': 0.18037436188315373, 'fraction_numerical': 0.009075439591605219, 'mean_word_length': 5.020477815699659, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7537080', 'n_tokens_mistral': 600, 'n_tokens_neox': 617, 'n_words': 119}