<commit_before>use std::path::{Path, PathBuf};

use async_trait::async_trait;

use crate::bundle::KbdgenBundle;

<<<<<<< HEAD
use self::{clone_giellakbd::CloneGiellaKbd, generate_ios::GenerateIos};
=======
use self::{generate_ios::GenerateIos, clone_giellakbd::CloneGiellaKbd, generate_xcode::GenerateXcode};
>>>>>>> b7afc27 (generate locales)

use super::{BuildStep, BuildSteps};

pub mod clone_giellakbd;
pub mod generate_ios;
pub mod generate_xcode;

const REPOSITORY_FOLDER: &str = "repo";

pub struct IosBuild {
    pub bundle: KbdgenBundle,
    pub output_path: PathBuf,
    pub steps: Vec<Box<dyn BuildStep>>,
}

#[async_trait(?Send)]
impl BuildSteps for IosBuild {
    fn new(bundle: KbdgenBundle, output_path: PathBuf) -> Self {
<<<<<<< HEAD
        let steps: Vec<Box<dyn BuildStep>> = vec![Box::new(CloneGiellaKbd), Box::new(GenerateIos)];
=======
        let steps: Vec<Box<dyn BuildStep>> =
            vec![Box::new(CloneGiellaKbd), Box::new(GenerateIos), Box::new(GenerateXcode)];
>>>>>>> b7afc27 (generate locales)

        IosBuild {
            bundle,
            output_path,
            steps,
        }
    }

    fn steps(&self) -> &[Box<dyn BuildStep>] {
        &self.steps
    }
<commit_msg>forgot to save after rebase<commit_after>use std::path::{Path, PathBuf};

use async_trait::async_trait;

use crate::bundle::KbdgenBundle;

use self::{generate_ios::GenerateIos, clone_giellakbd::CloneGiellaKbd, generate_xcode::GenerateXcode};

use super::{BuildStep, BuildSteps};

pub mod clone_giellakbd;
pub mod generate_ios;
pub mod generate_xcode;

const REPOSITORY_FOLDER: &str = "repo";

pub struct IosBuild {
    pub bundle: KbdgenBundle,
    pub output_path: PathBuf,
    pub steps: Vec<Box<dyn BuildStep>>,
}

#[async_trait(?Send)]
impl BuildSteps for IosBuild {
    fn new(bundle: KbdgenBundle, output_path: PathBuf) -> Self {
        let steps: Vec<Box<dyn BuildStep>> =
            vec![Box::new(CloneGiellaKbd), Box::new(GenerateIos), Box::new(GenerateXcode)];

        IosBuild {
            bundle,
            output_path,
            steps,
        }
    }

    fn steps(&self) -> &[Box<dyn BuildStep>] {
        &self.steps
    }

{'fraction_non_alphanumeric': 0.14371534195933455, 'fraction_numerical': 0.0027726432532347504, 'mean_word_length': 3.931662870159453, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, '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': '7279816', 'n_tokens_mistral': 759, 'n_tokens_neox': 756, 'n_words': 155}