<commit_before>
import pytest
import random
import hashlib
from _pycassa_simple_table import Cassa

def mk(s):
    return hashlib.md5(str(s)).hexdigest()

@pytest.mark.xfail
def test_ranges():
    c = Cassa('test')
    c.delete_namespace()

    c = Cassa('test')

    keys = []
    for i in range(2**8):
        keys.append(mk(i))
    keys.sort()
    map(c.put_available, keys)

    print list(c._available.get_range(start=keys[0], finish=keys[2**7 - 1]))
    print list(c._available.get_range(start=keys[2**7], finish=keys[2**8-1]))

def test_tasks():
    c = Cassa('test')
    c.delete_namespace()

    c = Cassa('test')

    key = hashlib.md5('test').hexdigest()<commit_msg>commenting out cassandra token range test<commit_after>
import pytest
import random
import hashlib
from _pycassa_simple_table import Cassa

def mk(s):
    return hashlib.md5(str(s)).hexdigest()

<EMAIL>
def test_ranges():
    c = Cassa('test')
    c.delete_namespace()

    c = Cassa('test')

    keys = []
    for i in range(2**8):
        keys.append(mk(i))
    keys.sort()
    map(c.put_available, keys)

    #for row in c.pool.execute_cql3('SELECT * FROM available;'):
    #    print row

    #print list(c._available.get_range(start=keys[0], finish=keys[2**7 - 1]))
    #print list(c._available.get_range(start=keys[2**7], finish=keys[2**8-1]))
    '''
    import cql
    conn = cql.connect('localhost')
    cursor = conn.cursor()
    cursor.execute('USE test;')
    cursor.execute('CREATE TABLE available (k int PRIMARY KEY, v1 int, v2 int);')
    cursor.execute('INSERT INTO available (k, v1, v2) VALUES (0, 10, 10;')
    cursor.execute('INSERT INTO available (k, v1, v2) VALUES (1, 10, 10;')
    cursor.execute('INSERT INTO available (k, v1, v2) VALUES (2, 10, 10;')
    cursor.execute('INSERT INTO available (k, v1, v2) VALUES (3, 10, 10;')
    cursor.execute('SELECT RowKey FROM available WHERE token(RowKey) < token(2);')
    for row in cursor:
        print row

    cursor.close()
    conn.close()
    '''

def test_tasks():
    c = Cassa('test')
    c.delete_namespace()

    c = Cassa('test')

    key = hashlib.md5('test').hexdigest()
{'fraction_non_alphanumeric': 0.15890926187118007, 'fraction_numerical': 0.027268453220498354, 'mean_word_length': 3.48, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4814696', 'n_tokens_mistral': 799, 'n_tokens_neox': 755, 'n_words': 182}