<commit_before>package com.noprestige.kanaquiz;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class FractionTest
{
    @Test
    public void toStringTest() throws Exception
    {
        assertEquals(new Fraction(1f / 2f).toString(), "½");
        assertEquals(new Fraction(2f / 2f).toString(), "1");
        assertEquals(new Fraction(3f / 2f).toString(), "1½");
        assertEquals(new Fraction(4f / 2f).toString(), "2");

        assertEquals(new Fraction(1f / 3f).toString(), "⅓");
        assertEquals(new Fraction(2f / 3f).toString(), "⅔");
        assertEquals(new Fraction(3f / 3f).toString(), "1");
        assertEquals(new Fraction(4f / 3f).toString(), "1⅓");
        assertEquals(new Fraction(5f / 3f).toString(), "1⅔");
        assertEquals(new Fraction(6f / 3f).toString(), "2");

        assertEquals(new Fraction(1f / 4f).toString(), "¼");
        assertEquals(new Fraction(2f / 4f).toString(), "½");
        assertEquals(new Fraction(3f / 4f).toString(), "¾");
        assertEquals(new Fraction(4f / 4f).toString(), "1");
        assertEquals(new Fraction(5f / 4f).toString(), "1¼");
        assertEquals(new Fraction(6f / 4f).toString(), "1½");
        assertEquals(new Fraction(7f / 4f).toString(), "1¾");
        assertEquals(new Fraction(8f / 4f).toString(), "2");

        assertEquals(new Fraction(1f / 5f).toString(), "⅕");
        assertEquals(new Fraction(2f / 5f).toString(), "⅖");
        assertEquals(new Fraction(3f / 5f).toString(), "⅗");
        assertEquals(new Fraction(4f / 5f).toString(), "⅘");
        assertEquals(new Fraction(5f / 5f).toString(), "1");
        assertEquals(new Fraction(6f / 5f).toString(), "1⅕");
        assertEquals(new Fraction(7f / 5f).toString(), "1⅖");
        assertEquals(new Fraction(8f / 5f).toString(), "1⅗");
        assertEquals(new Fraction(9f / 5f).toString(), "1⅘");
        assertEquals(new Fraction(10f / 5f).toString(), "2");

        assertEquals(new Fraction(1f / 6f).toString(), "⅙");
        assertEquals(new Fraction(2f / 6f).toString(), "⅓");
        assertEquals(new Fraction(3f / 6f).toString(), "½");
        assertEquals(new Fraction(4f / 6f).toString(), "⅔");
        assertEquals(new Fraction(5f / 6f).toString(), "⅚");
        assertEquals(new Fraction(6f / 6f).toString(), "1");
        assertEquals(new Fraction(7f / 6f).toString(), "1⅙");
        assertEquals(new Fraction(8f / 6f).toString(), "1⅓");
        assertEquals(new Fraction(9f / 6f).toString(), "1½");
        assertEquals(new Fraction(10f / 6f).toString(), "1⅔");
        assertEquals(new Fraction(11f / 6f).toString(), "1⅚");
        assertEquals(new Fraction(12f / 6f).toString(), "2");

        assertEquals(new Fraction(1f / 8f).toString(), "⅛");
        assertEquals(new Fraction(2f / 8f).toString(), "¼");
        assertEquals(new Fraction(3f / 8f).toString(), "⅜");
        assertEquals(new Fraction(4f / 8f).toString(), "½");
        assertEquals(new Fraction(5f / 8f).toString(), "⅝");
        assertEquals(new Fraction(6f / 8f).toString(), "¾");
        assertEquals(new Fraction(7f / 8f).toString(), "⅞");
        assertEquals(new Fraction(8f / 8f).toString(), "1");
        assertEquals(new Fraction(9f / 8f).toString(), "1⅛");
        assertEquals(new Fraction(10f / 8f).toString(), "1¼");
        assertEquals(new Fraction(11f / 8f).toString(), "1⅜");
        assertEquals(new Fraction(12f / 8f).toString(), "1½");
        assertEquals(new Fraction(13f / 8f).toString(), "1⅝");
        assertEquals(new Fraction(14f / 8f).toString(), "1¾");
        assertEquals(new Fraction(15f / 8f).toString(), "1⅞");
        assertEquals(new Fraction(16f / 8f).toString(), "2");


        assertEquals(new Fraction(1f / 12f).toString(), "1⁄12");

        assertEquals(new Fraction(13f / 12f).toString(), "1\u200B1⁄12");

        assertEquals(new Fraction(0).toString(), "0");
    }

}<commit_msg>Expanded FractionTest<commit_after>package com.noprestige.kanaquiz;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class FractionTest
{
    @Test
    public void toStringTest() throws Exception
    {
        assertEquals(new Fraction(0).toString(), "0");

        assertEquals(new Fraction(1f / 2f).toString(), "½");
        assertEquals(new Fraction(2f / 2f).toString(), "1");
        assertEquals(new Fraction(3f / 2f).toString(), "1½");
        assertEquals(new Fraction(4f / 2f).toString(), "2");

        assertEquals(new Fraction(1f / 3f).toString(), "⅓");
        assertEquals(new Fraction(2f / 3f).toString(), "⅔");
        assertEquals(new Fraction(3f / 3f).toString(), "1");
        assertEquals(new Fraction(4f / 3f).toString(), "1⅓");
        assertEquals(new Fraction(5f / 3f).toString(), "1⅔");
        assertEquals(new Fraction(6f / 3f).toString(), "2");

        assertEquals(new Fraction(1f / 4f).toString(), "¼");
        assertEquals(new Fraction(2f / 4f).toString(), "½");
        assertEquals(new Fraction(3f / 4f).toString(), "¾");
        assertEquals(new Fraction(4f / 4f).toString(), "1");
        assertEquals(new Fraction(5f / 4f).toString(), "1¼");
        assertEquals(new Fraction(6f / 4f).toString(), "1½");
        assertEquals(new Fraction(7f / 4f).toString(), "1¾");
        assertEquals(new Fraction(8f / 4f).toString(), "2");

        assertEquals(new Fraction(1f / 5f).toString(), "⅕");
        assertEquals(new Fraction(2f / 5f).toString(), "⅖");
        assertEquals(new Fraction(3f / 5f).toString(), "⅗");
        assertEquals(new Fraction(4f / 5f).toString(), "⅘");
        assertEquals(new Fraction(5f / 5f).toString(), "1");
        assertEquals(new Fraction(6f / 5f).toString(), "1⅕");
        assertEquals(new Fraction(7f / 5f).toString(), "1⅖");
        assertEquals(new Fraction(8f / 5f).toString(), "1⅗");
        assertEquals(new Fraction(9f / 5f).toString(), "1⅘");
        assertEquals(new Fraction(10f / 5f).toString(), "2");

        assertEquals(new Fraction(1f / 6f).toString(), "⅙");
        assertEquals(new Fraction(2f / 6f).toString(), "⅓");
        assertEquals(new Fraction(3f / 6f).toString(), "½");
        assertEquals(new Fraction(4f / 6f).toString(), "⅔");
        assertEquals(new Fraction(5f / 6f).toString(), "⅚");
        assertEquals(new Fraction(6f / 6f).toString(), "1");
        assertEquals(new Fraction(7f / 6f).toString(), "1⅙");
        assertEquals(new Fraction(8f / 6f).toString(), "1⅓");
        assertEquals(new Fraction(9f / 6f).toString(), "1½");
        assertEquals(new Fraction(10f / 6f).toString(), "1⅔");
        assertEquals(new Fraction(11f / 6f).toString(), "1⅚");
        assertEquals(new Fraction(12f / 6f).toString(), "2");

        assertEquals(new Fraction(1f / 8f).toString(), "⅛");
        assertEquals(new Fraction(2f / 8f).toString(), "¼");
        assertEquals(new Fraction(3f / 8f).toString(), "⅜");
        assertEquals(new Fraction(4f / 8f).toString(), "½");
        assertEquals(new Fraction(5f / 8f).toString(), "⅝");
        assertEquals(new Fraction(6f / 8f).toString(), "¾");
        assertEquals(new Fraction(7f / 8f).toString(), "⅞");
        assertEquals(new Fraction(8f / 8f).toString(), "1");
        assertEquals(new Fraction(9f / 8f).toString(), "1⅛");
        assertEquals(new Fraction(10f / 8f).toString(), "1¼");
        assertEquals(new Fraction(11f / 8f).toString(), "1⅜");
        assertEquals(new Fraction(12f / 8f).toString(), "1½");
        assertEquals(new Fraction(13f / 8f).toString(), "1⅝");
        assertEquals(new Fraction(14f / 8f).toString(), "1¾");
        assertEquals(new Fraction(15f / 8f).toString(), "1⅞");
        assertEquals(new Fraction(16f / 8f).toString(), "2");

        assertEquals(new Fraction(1f / 10f).toString(), "1⁄10");
        assertEquals(new Fraction(2f / 10f).toString(), "⅕");
        assertEquals(new Fraction(3f / 10f).toString(), "3⁄10");
        assertEquals(new Fraction(4f / 10f).toString(), "⅖");
        assertEquals(new Fraction(5f / 10f).toString(), "5⁄10");
        assertEquals(new Fraction(6f / 10f).toString(), "⅗");
        assertEquals(new Fraction(7f / 10f).toString(), "7⁄10");
        assertEquals(new Fraction(8f / 10f).toString(), "⅘");
        assertEquals(new Fraction(9f / 10f).toString(), "9⁄10");
        assertEquals(new Fraction(10f / 10f).toString(), "1");
        assertEquals(new Fraction(11f / 10f).toString(), "1\u200B1⁄10");
        assertEquals(new Fraction(12f / 10f).toString(), "1⅕");
        assertEquals(new Fraction(13f / 10f).toString(), "1\u200B3⁄10");
        assertEquals(new Fraction(14f / 10f).toString(), "1⅖");
        assertEquals(new Fraction(15f / 10f).toString(), "1\u200B5⁄10");
        assertEquals(new Fraction(16f / 10f).toString(), "1⅗");
        assertEquals(new Fraction(17f / 10f).toString(), "1\u200B7⁄10");
        assertEquals(new Fraction(18f / 10f).toString(), "1⅘");
        assertEquals(new Fraction(19f / 10f).toString(), "1\u200B9⁄10");
        assertEquals(new Fraction(20f / 10f).toString(), "2");

        assertEquals(new Fraction(1f / 12f).toString(), "1⁄12");
        assertEquals(new Fraction(2f / 12f).toString(), "⅙");
        assertEquals(new Fraction(3f / 12f).toString(), "3⁄12");
        assertEquals(new Fraction(4f / 12f).toString(), "⅓");
        assertEquals(new Fraction(5f / 12f).toString(), "5⁄12");
        assertEquals(new Fraction(6f / 12f).toString(), "½");
        assertEquals(new Fraction(7f / 12f).toString(), "7⁄12");
        assertEquals(new Fraction(8f / 12f).toString(), "⅔");
        assertEquals(new Fraction(9f / 12f).toString(), "9⁄12");
        assertEquals(new Fraction(10f / 12f).toString(), "⅚");
        assertEquals(new Fraction(11f / 12f).toString(), "11⁄12");
        assertEquals(new Fraction(12f / 12f).toString(), "1");
        assertEquals(new Fraction(13f / 12f).toString(), "1\u200B1⁄12");
        assertEquals(new Fraction(14f / 12f).toString(), "1⅙");
        assertEquals(new Fraction(15f / 12f).toString(), "1\u200B3⁄12");
        assertEquals(new Fraction(16f / 12f).toString(), "1⅓");
        assertEquals(new Fraction(17f / 12f).toString(), "1\u200B5⁄12");
        assertEquals(new Fraction(18f / 12f).toString(), "1½");
        assertEquals(new Fraction(19f / 12f).toString(), "1\u200B7⁄12");
        assertEquals(new Fraction(20f / 12f).toString(), "1⅔");
        assertEquals(new Fraction(21f / 12f).toString(), "1\u200B9⁄12");
        assertEquals(new Fraction(22f / 12f).toString(), "1⅚");
        assertEquals(new Fraction(23f / 12f).toString(), "1\u200B11⁄12");
        assertEquals(new Fraction(24f / 12f).toString(), "2");

        assertEquals(new Fraction(1f / 16f).toString(), "1⁄16");
        assertEquals(new Fraction(2f / 16f).toString(), "⅛");
        assertEquals(new Fraction(3f / 16f).toString(), "3⁄16");
        assertEquals(new Fraction(4f / 16f).toString(), "¼");
        assertEquals(new Fraction(5f / 16f).toString(), "5⁄16");
        assertEquals(new Fraction(6f / 16f).toString(), "⅜");
        assertEquals(new Fraction(7f / 16f).toString(), "7⁄16");
        assertEquals(new Fraction(8f / 16f).toString(), "½");
        assertEquals(new Fraction(9f / 16f).toString(), "9⁄16");
        assertEquals(new Fraction(10f / 16f).toString(), "⅝");
        assertEquals(new Fraction(11f / 16f).toString(), "11⁄16");
        assertEquals(new Fraction(12f / 16f).toString(), "¾");
        assertEquals(new Fraction(13f / 16f).toString(), "13⁄16");
        assertEquals(new Fraction(14f / 16f).toString(), "⅞");
        assertEquals(new Fraction(15f / 16f).toString(), "15⁄16");
        assertEquals(new Fraction(16f / 16f).toString(), "1");
        assertEquals(new Fraction(17f / 16f).toString(), "1\u200B1⁄16");
        assertEquals(new Fraction(18f / 16f).toString(), "1⅛");
        assertEquals(new Fraction(19f / 16f).toString(), "1\u200B3⁄16");
        assertEquals(new Fraction(20f / 16f).toString(), "1¼");
        assertEquals(new Fraction(21f / 16f).toString(), "1\u200B5⁄16");
        assertEquals(new Fraction(22f / 16f).toString(), "1⅜");
        assertEquals(new Fraction(23f / 16f).toString(), "1\u200B7⁄16");
        assertEquals(new Fraction(24f / 16f).toString(), "1½");
        assertEquals(new Fraction(25f / 16f).toString(), "1\u200B9⁄16");
        assertEquals(new Fraction(26f / 16f).toString(), "1⅝");
        assertEquals(new Fraction(27f / 16f).toString(), "1\u200B11⁄16");
        assertEquals(new Fraction(28f / 16f).toString(), "1¾");
        assertEquals(new Fraction(29f / 16f).toString(), "1\u200B13⁄16");
        assertEquals(new Fraction(30f / 16f).toString(), "1⅞");
        assertEquals(new Fraction(31f / 16f).toString(), "1\u200B15⁄16");
        assertEquals(new Fraction(32f / 16f).toString(), "2");
    }

}
{'fraction_non_alphanumeric': 0.18964156008210958, 'fraction_numerical': 0.06568766777198799, 'mean_word_length': 3.213905522288756, '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': '3630648', 'n_tokens_mistral': 4617, 'n_tokens_neox': 4189, 'n_words': 799}