<commit_before>extern crate test;
extern crate itertools;
extern crate debug;

use itertools::Itertools;
use itertools::ItertoolsClonable;
use itertools::Stride;
use itertools::StrideMut;

#[test]
fn mut_stride() {
    let mut xs = vec![1i, 1, 1, 1, 1, 1];
    for x in StrideMut::from_slice(xs.as_mut_slice(), 2) {
        *x = 0i;
    }
    assert_eq!(xs, vec![0i, 1, 0, 1, 0, 1]);
}

#[test]
fn mut_stride_compose() {
    let mut xs = vec![1i, 1, 1, 1, 1, 1, 1, 1, 1, 1];
    {
        let iter1 = StrideMut::from_slice(xs.as_mut_slice(), 2);
        let mut iter2 = StrideMut::from_stride(iter1, 3);
        for x in iter2 {
            *x = 0i;
        }
    }<commit_msg>Remove use of the debug crate<commit_after>extern crate test;
extern crate itertools;

use itertools::Itertools;
use itertools::ItertoolsClonable;
use itertools::Stride;
use itertools::StrideMut;

#[test]
fn mut_stride() {
    let mut xs = vec![1i, 1, 1, 1, 1, 1];
    for x in StrideMut::from_slice(xs.as_mut_slice(), 2) {
        *x = 0i;
    }
    assert_eq!(xs, vec![0i, 1, 0, 1, 0, 1]);
}

#[test]
fn mut_stride_compose() {
    let mut xs = vec![1i, 1, 1, 1, 1, 1, 1, 1, 1, 1];
    {
        let iter1 = StrideMut::from_slice(xs.as_mut_slice(), 2);
        let mut iter2 = StrideMut::from_stride(iter1, 3);
        for x in iter2 {
            *x = 0i;
        }
    }
{'fraction_non_alphanumeric': 0.15481481481481482, 'fraction_numerical': 0.045925925925925926, 'mean_word_length': 2.871060171919771, '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': '3691935', 'n_tokens_mistral': 590, 'n_tokens_neox': 545, 'n_words': 150}