<commit_before>import unittest, random, sys, time, json
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_hosts, h2o_kmeans, h2o_import as h2i, h2o_util

def define_create_frame_params(SEED):
    paramDict = {
        'rows': [1, 100, 1000],
        'cols': [1, 10, 100], # Number of data columns (in addition to the first response column)
        'seed': [None, 1234],
        'randomize': [None, 0, 1],
        'value': [None, 0, 1234567890, 1e6, -1e6], # Constant value (for randomize=false)
        'real_range': [None, 0, 1234567890, 1e6, -1e6], # -range to range
        'categorical_fraction': [None, 0.1, 1.0], # Fraction of integer columns (for randomize=true)
        'factors': [None, 0, 1], # Factor levels for categorical variables
        'integer_fraction': [None, 0.1, 1.0], # Fraction of integer columns (for randomize=true)
        'integer_range': [None, 0, 1, 1234567890], # -range to range
        'missing_fraction': [None, 0.1, 1.0],
        'response_factors': [None, 0, 1, 2, 10], # Number of factor levels of the first column (1=real, 2=binomial, N=multinomial)
    }
    return paramDict

<commit_msg>minimum of 5 rows in random data to cover k=5 case<commit_after>import unittest, random, sys, time, json
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_hosts, h2o_kmeans, h2o_import as h2i, h2o_util

def define_create_frame_params(SEED):
    paramDict = {
        # minimum of 5 rows to cover the 5 cluster case
        'rows': [5, 100, 1000],
        'cols': [1, 10, 100], # Number of data columns (in addition to the first response column)
        'seed': [None, 1234],
        'randomize': [None, 0, 1],
        'value': [None, 0, 1234567890, 1e6, -1e6], # Constant value (for randomize=false)
        'real_range': [None, 0, 1234567890, 1e6, -1e6], # -range to range
        'categorical_fraction': [None, 0.1, 1.0], # Fraction of integer columns (for randomize=true)
        'factors': [None, 0, 1], # Factor levels for categorical variables
        'integer_fraction': [None, 0.1, 1.0], # Fraction of integer columns (for randomize=true)
        'integer_range': [None, 0, 1, 1234567890], # -range to range
        'missing_fraction': [None, 0.1, 1.0],
        'response_factors': [None, 0, 1, 2, 10], # Number of factor levels of the first column (1=real, 2=binomial, N=multinomial)
    }
    return paramDict


{'fraction_non_alphanumeric': 0.1471458773784355, 'fraction_numerical': 0.07780126849894292, 'mean_word_length': 3.3018181818181818, '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': '526192', 'n_tokens_mistral': 960, 'n_tokens_neox': 820, 'n_words': 268}