<commit_before>use std::ops::Add;

pub mod point;
pub mod rect;

pub type Point<T> = point::Point<T>;
pub type Rect<T> = rect::Rect<T>;

trait One<T>
    where T: Add<i32, Output=T> +
             Default
{
    fn one() -> T {
        T::default() + 1
    }
}

impl<T> One<T> for T
    where T: Default + Add<i32, Output=T>
{ /* derived implementor */ }<commit_msg>Change how One trait is implemented<commit_after>use std::ops::Add;

pub mod point;
pub mod rect;

pub type Point<T> = point::Point<T>;
pub type Rect<T> = rect::Rect<T>;

trait One<T> {
    fn one() -> T;
}

impl<T> One<T> for T
    where T: Add<i32, Output=T> + Default
{
    fn one() -> T {
        T::default() + 1
    }
}
{'fraction_non_alphanumeric': 0.1753623188405797, 'fraction_numerical': 0.011594202898550725, 'mean_word_length': 2.8820224719101124, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 23, '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': '6757479', 'n_tokens_mistral': 274, 'n_tokens_neox': 270, 'n_words': 79}