<commit_before>/**
 * Various traits intended to be used with the built in numeric types. These
 * allow one to be more specific with trait bounds when using generics.
 *
 * Note: These traits won't be able to be used to their full potential until
 * trait inheritence is implemented.
 */

use core::cmp::{Eq, Ord};

use std::cmp::FuzzyEq;

use num::cast::*;
use num::consts::*;
use num::default_eq::*;


pub trait TypeExt: TypeConsts, DefaultEq {}


pub trait NumExt: Copy, TypeExt, Eq, Num, NumCast, Ord {}


pub trait UnSignedExt: NumExt {}

pub impl u8:   UnSignedExt {}
pub impl u16:  UnSignedExt {}
pub impl u32:  UnSignedExt {}
pub impl u64:  UnSignedExt {}
pub impl uint: UnSignedExt {}


pub trait SignedExt: NumExt {}
<commit_msg>Create an extension trait for bool<commit_after>/**
 * Various traits intended to be used with the built in numeric types. These
 * allow one to be more specific with trait bounds when using generics.
 *
 * Note: These traits won't be able to be used to their full potential until
 * trait inheritence is implemented.
 */

use core::cmp::{Eq, Ord};

use std::cmp::FuzzyEq;

use num::cast::*;
use num::consts::*;
use num::default_eq::*;


pub trait TypeExt: TypeConsts, DefaultEq {}


pub trait BooleanExt: TypeExt {}

pub impl bool: BooleanExt {}


pub trait NumExt: Copy, TypeExt, Eq, Num, NumCast, Ord {}


pub trait UnSignedExt: NumExt {}

pub impl u8:   UnSignedExt {}
pub impl u16:  UnSignedExt {}
pub impl u32:  UnSignedExt {}
pub impl u64:  UnSignedExt {}
pub impl uint: UnSignedExt {}


pub trait SignedExt: NumExt {}

{'fraction_non_alphanumeric': 0.10855683269476372, 'fraction_numerical': 0.008939974457215836, 'mean_word_length': 4.240802675585284, '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': '1595107', 'n_tokens_mistral': 520, 'n_tokens_neox': 498, 'n_words': 207}