<commit_before>// MyAsserts.java 

package ed;

public class MyAsserts {

    public static class MyAssert extends RuntimeException {
        MyAssert( String s ){
            super( s );
            _s = s;
        }

        public String toString(){
            return _s;
        }

        final String _s;
    }

    public static void assertEquals( int a , int b ){
        if ( a != b )
            throw new MyAssert( "" + a + " != " + b );
    }

    

}<commit_msg>added a lot of asserts<commit_after>// MyAsserts.java 

package ed;

public class MyAsserts {

    public static class MyAssert extends RuntimeException {
        MyAssert( String s ){
            super( s );
            _s = s;
        }

        public String toString(){
            return _s;
        }

        final String _s;
    }

    public static void assertEquals( int a , int b ){
        if ( a != b )
            throw new MyAssert( "" + a + " != " + b );
    }

    public static void assertEquals( long a , long b ){
        if ( a != b )
            throw new MyAssert( "" + a + " != " + b );
    }

    public static void assertEquals( char a , char b ){
        if ( a != b )
            throw new MyAssert( "" + a + " != " + b );
    }
    
    public static void assertEquals( short a , short b ){
        if ( a != b )
            throw new MyAssert( "" + a + " != " + b );
    }
    
    public static void assertEquals( double a , double b , double diff ){
        if ( Math.abs( a - b ) > diff )
            throw new MyAssert( "" + a + " != " + b );
    }
    
    public static void assertEquals( Object a , Object b ){
        if ( a == null ){
            if ( b == null )
                return;
            throw new MyAssert( "left null, right not" );
        }
        
        if ( ! a.equals( b ) )
            throw new MyAssert( "[" + a + "] != [" + b + "]" );
    }

    public static void assertClose( String a , String b ){

        a = a.trim().replaceAll( "\\s+" , " " );
        b = b.trim().replaceAll( "\\s+" , " " );

        if ( a.equalsIgnoreCase( b ) )
            return;
        
        throw new MyAssert( "[" + a + "] != [" + b + "]" );
    }

}
{'fraction_non_alphanumeric': 0.13367018833256775, 'fraction_numerical': 0.0, 'mean_word_length': 1.3725490196078431, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1054158', 'n_tokens_mistral': 655, 'n_tokens_neox': 633, 'n_words': 213}