<commit_before>package com.github.richardjwild.randomizer.types;

import com.github.richardjwild.randomizer.Randomizer;
import org.junit.Test;

import static org.junit.Assert.*;

public class IntegerRandomizerTest {

    @Test
    public void randomValue() throws Exception {
        Integer value = Randomizer.forType(Integer.class).value();
        assertNotNull(value);
    }

    @Test
    public void randomValueMaximumOneHundred() {
        int maxValue = 100;
        int value = Randomizer.forType(Integer.class).max(maxValue).value();
        assertTrue(value <= maxValue);
    }

    @Test
    public void randomValueMinimumTwoBillion() {
        int minValue = 2000000000;
        int value = Randomizer.forType(Integer.class).min(minValue).value();
        assertTrue(value >= minValue);
    }

    @Test
    public void randomValueBetweenTwoBounds() {
        int minValue = 5;
        int maxValue = 10;
        int value = Randomizer.forType(Integer.class).min(minValue).max(maxValue).value();
        assertTrue(minValue <= value);
        assertTrue(value <= maxValue);
    }

    @Test
    public void randomNegativeValue() {
        int minValue = Integer.MIN_VALUE * -1;
        int maxValue = -1;
        int value = Randomizer.forType(Integer.class).min(minValue).max(maxValue).value();
        assertTrue(minValue <= value);
        assertTrue(value <= maxValue);
    }
}<commit_msg>Corrected mistake - I wrongly thought Integer.MIN_VALUE would be positive<commit_after>package com.github.richardjwild.randomizer.types;

import com.github.richardjwild.randomizer.Randomizer;
import org.junit.Test;

import static org.junit.Assert.*;

public class IntegerRandomizerTest {

    @Test
    public void randomValue() throws Exception {
        Integer value = Randomizer.forType(Integer.class).value();
        assertNotNull(value);
    }

    @Test
    public void randomValueMaximumOneHundred() {
        int maxValue = 100;
        int value = Randomizer.forType(Integer.class).max(maxValue).value();
        assertTrue(value <= maxValue);
    }

    @Test
    public void randomValueMinimumTwoBillion() {
        int minValue = 2000000000;
        int value = Randomizer.forType(Integer.class).min(minValue).value();
        assertTrue(value >= minValue);
    }

    @Test
    public void randomValueBetweenTwoBounds() {
        int minValue = 5;
        int maxValue = 10;
        int value = Randomizer.forType(Integer.class).min(minValue).max(maxValue).value();
        assertTrue(minValue <= value);
        assertTrue(value <= maxValue);
    }

    @Test
    public void randomNegativeValue() {
        int minValue = Integer.MIN_VALUE;
        int maxValue = -1;
        int value = Randomizer.forType(Integer.class).min(minValue).max(maxValue).value();
        assertTrue(minValue <= value);
        assertTrue(value <= maxValue);
    }
}
{'fraction_non_alphanumeric': 0.11161492849668643, 'fraction_numerical': 0.012207882804325079, 'mean_word_length': 2.9449793672627234, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7395244', 'n_tokens_mistral': 850, 'n_tokens_neox': 806, 'n_words': 169}