<commit_before>/**
 * Created by Nikita.Skvortsov
 * date: 03.04.2014.
 */


import org.jetbrains.teamcity.maven.sdk.getBit
import kotlin.test.assertEquals
import org.junit.Test

public class UtilsTest {

    Test public fun testGetBitExtension() {
        assertOne(1.getBit(0))
        assertZero(1.getBit(1))

        assertOne(3.getBit(0))
        assertOne(3.getBit(1))

        assertZero(Integer.MAX_VALUE.getBit(31))
        assertOne(Integer.MAX_VALUE.getBit(0))
        assertOne(Integer.MAX_VALUE.getBit(30))

        assertOne(Integer.MIN_VALUE.getBit(31))
    }

    private fun assertOne(actual: Int) {
        assertEquals(1, actual)
    }

    private fun assertZero(actual: Int) {
        assertEquals(0, actual)
    }
}<commit_msg>rename asserts<commit_after>/**
 * Created by Nikita.Skvortsov
 * date: 03.04.2014.
 */


import org.jetbrains.teamcity.maven.sdk.getBit
import kotlin.test.assertEquals
import org.junit.Test

public class UtilsTest {

    Test public fun testGetBitExtension() {
        assertIsOne(1.getBit(0))
        assertIsZero(1.getBit(1))

        assertIsOne(3.getBit(0))
        assertIsOne(3.getBit(1))

        assertIsZero(Integer.MAX_VALUE.getBit(31))
        assertIsOne(Integer.MAX_VALUE.getBit(0))
        assertIsOne(Integer.MAX_VALUE.getBit(30))

        assertIsOne(Integer.MIN_VALUE.getBit(31))
    }

    private fun assertIsOne(actual: Int) {
        assertEquals(1, actual)
    }

    private fun assertIsZero(actual: Int) {
        assertEquals(0, actual)
    }
}
{'fraction_non_alphanumeric': 0.1184990125082291, 'fraction_numerical': 0.032916392363396975, 'mean_word_length': 2.937823834196891, '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': '3194214', 'n_tokens_mistral': 543, 'n_tokens_neox': 505, 'n_words': 79}