<commit_before>from nose.tools import (
    assert_equals,
    assert_not_equals,
    assert_true
)
from random import randint
import os
from rsk_mind.classifier import XGBoostClassifier
from rsk_mind.dataset import (
    Splitter,
    Dataset
)


class TestXgboostClassifier(object):

    @classmethod
    def setup_class(cls):
        cls.nr_columns = 11
        cls.nr_rows = 100

        header = []
        for i in range(cls.nr_columns-1):
            header.append("f_{}".format(i))
        header.append("target")
        rows = []
        for row_idx in range(cls.nr_rows):
            row = []
            for col_idx in range(cls.nr_columns):
                row.append(randint(0, 1))
            rows.append(row)
<commit_msg>Change spec name<commit_after>from nose.tools import (
    assert_equals,
    assert_not_equals,
    assert_true
)
from random import randint
import os
from rsk_mind.classifier import XGBoostClassifier
from rsk_mind.dataset import (
    Splitter,
    Dataset
)


class TestXGBoostClassifier(object):

    @classmethod
    def setup_class(cls):
        cls.nr_columns = 11
        cls.nr_rows = 100

        header = []
        for i in range(cls.nr_columns-1):
            header.append("f_{}".format(i))
        header.append("target")
        rows = []
        for row_idx in range(cls.nr_rows):
            row = []
            for col_idx in range(cls.nr_columns):
                row.append(randint(0, 1))
            rows.append(row)

{'fraction_non_alphanumeric': 0.0947867298578199, 'fraction_numerical': 0.010832769126607989, 'mean_word_length': 2.2200435729847494, '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': '5553327', 'n_tokens_mistral': 484, 'n_tokens_neox': 461, 'n_words': 102}