<commit_before>def get_sections(data, num_sections):
    increment = data.shape[0] / num_sections
    sections = []
    for i in range(num_sections):
        section = data[i * increment : (i + 1) * increment, :] 
        sections.append(section)
    return sections

def section(data, num_sections, axis='x'):
    axes = {'x': 0, 'y': 1, 'z': 2}
    try:
        ax = axes[axis]
    except:
        print(axis + " is not a valid axis.")
    sections = get_sections(data[data[:, ax].argsort()], num_sections)
    return sections

def 
<commit_msg>del extraneous fn def<commit_after>def get_sections(data, num_sections):
    increment = data.shape[0] / num_sections
    sections = []
    for i in range(num_sections):
        section = data[i * increment : (i + 1) * increment, :] 
        sections.append(section)
    return sections

def section(data, num_sections, axis='x'):
    axes = {'x': 0, 'y': 1, 'z': 2}
    try:
        ax = axes[axis]
    except:
        print(axis + " is not a valid axis.")
    sections = get_sections(data[data[:, ax].argsort()], num_sections)
    return sections

{'fraction_non_alphanumeric': 0.14233576642335766, 'fraction_numerical': 0.009124087591240875, 'mean_word_length': 2.903914590747331, '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': '6161417', 'n_tokens_mistral': 365, 'n_tokens_neox': 354, 'n_words': 98}