<commit_before>import os
import sys
from Tools.Utils import Utils

__author__ = 'Toyz'

from imvu.cfl.CFL import CFL
from imvu.chkn import ChknFile

def run(cflfile):
    cfl = CFL(cflfile)
    head, tail = os.path.split(cflfile)
    tail = tail.split(".")[0]
    tail += ".chkn"

    filename = "output/{0}".format(tail)
    Utils.make_folder(filename)
    chkn = ChknFile.ChknFile(open(filename, "wb"), "w")

    files = {}
    for name in cfl.getEntryNames():
        print "Converting: {0}".format(name)
        data = cfl.getContents(name)<commit_msg>Ewww i messed up imports<commit_after>__author__ = 'Toyz'

import os
import sys
from Tools.Utils import Utils
from imvu.cfl.CFL import CFL
from imvu.chkn import ChknFile

def run(cflfile):
    cfl = CFL(cflfile)
    head, tail = os.path.split(cflfile)
    tail = tail.split(".")[0]
    tail += ".chkn"

    filename = "output/{0}".format(tail)
    Utils.make_folder(filename)
    chkn = ChknFile.ChknFile(open(filename, "wb"), "w")

    files = {}
    for name in cfl.getEntryNames():
        print "Converting: {0}".format(name)
        data = cfl.getContents(name)
{'fraction_non_alphanumeric': 0.1408199643493761, 'fraction_numerical': 0.0053475935828877, 'mean_word_length': 3.3192307692307694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4051834', 'n_tokens_mistral': 428, 'n_tokens_neox': 413, 'n_words': 95}