<commit_before>from pycassa.system_manager import *

TEST_KS = 'PycassaTestKeyspace'

def setup_package():
    sys = SystemManager()
    if TEST_KS in sys.list_keyspaces():
        sys.drop_keyspace(TEST_KS)
    try:
        sys.create_keyspace(TEST_KS, 1)
        sys.create_column_family(TEST_KS, 'Standard1')
        sys.create_column_family(TEST_KS, 'Super1', super=True)
        sys.create_column_family(TEST_KS, 'Indexed1')
        sys.create_index(TEST_KS, 'Indexed1', 'birthdate', LONG_TYPE)<commit_msg>Create counter CFs for tests if version > 0.7<commit_after>from pycassa.system_manager import *
from pycassa.cassandra.constants import *

TEST_KS = 'PycassaTestKeyspace'

def setup_package():
    sys = SystemManager()
    if TEST_KS in sys.list_keyspaces():
        sys.drop_keyspace(TEST_KS)
    try:
        sys.create_keyspace(TEST_KS, 1)
        sys.create_column_family(TEST_KS, 'Standard1')
        sys.create_column_family(TEST_KS, 'Super1', super=True)
        sys.create_column_family(TEST_KS, 'Indexed1')
        sys.create_index(TEST_KS, 'Indexed1', 'birthdate', LONG_TYPE)
        if sys._conn.version != CASSANDRA_07:
            sys.create_column_family(TEST_KS, 'Counter1',
                                     default_validation_class=COUNTER_COLUMN_TYPE)
            sys.create_column_family(TEST_KS, 'SuperCounter1', super=True,
                                     default_validation_class=COUNTER_COLUMN_TYPE)
{'fraction_non_alphanumeric': 0.09715475364330327, 'fraction_numerical': 0.011103400416377515, 'mean_word_length': 3.27893175074184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2801906', 'n_tokens_mistral': 486, 'n_tokens_neox': 472, 'n_words': 75}