<commit_before>extern crate libc;

use std::fmt;
use std::ops::Index;
use std::default::Default;
use self::libc::{c_double};

#[derive(Copy, Clone)]
#[repr(C)]
pub struct Seq {
    begin: c_double,
    end: c_double,
    step: c_double,
}

impl Default for Seq {
    fn default() -> Seq {
        Seq { begin: 0.0, end: 0.0, step: 0.0, }
    }
}

impl fmt::Display for Seq {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "[begin: {}, end: {}, step: {}", self.begin, self.end, self.step)
    }
}

impl Seq {
    pub fn new(begin: f64, end: f64, step: f64) -> Seq {
        Seq { begin: begin, end: end, step: step, }
    }

    pub fn begin(&self) -> f64 {
        self.begin as f64
    }

    pub fn end(&self) -> f64 {
        self.end as f64
    }

    pub fn step(&self) -> f64 {
        self.step as f64
    }
}<commit_msg>Modified Seq::default() to return af_span C equivalent<commit_after>extern crate libc;

use std::fmt;
use std::default::Default;
use self::libc::{c_double};

#[derive(Copy, Clone)]
#[repr(C)]
pub struct Seq {
    begin: c_double,
    end: c_double,
    step: c_double,
}

impl Default for Seq {
    fn default() -> Seq {
        Seq { begin: 1.0, end: 1.0, step: 0.0, }
    }
}

impl fmt::Display for Seq {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "[begin: {}, end: {}, step: {}]", self.begin, self.end, self.step)
    }
}

impl Seq {
    pub fn new(begin: f64, end: f64, step: f64) -> Seq {
        Seq { begin: begin, end: end, step: step, }
    }

    pub fn begin(&self) -> f64 {
        self.begin as f64
    }

    pub fn end(&self) -> f64 {
        self.end as f64
    }

    pub fn step(&self) -> f64 {
        self.step as f64
    }
}
{'fraction_non_alphanumeric': 0.1715601611974669, 'fraction_numerical': 0.027633851468048358, 'mean_word_length': 2.3617021276595747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '6661604', 'n_tokens_mistral': 694, 'n_tokens_neox': 662, 'n_words': 190}