<commit_before>#!/usr/bin/env python

# system modules
import sys, os, argparse
import cPickle
import logging
from math import sqrt
from abc import ABCMeta, abstractmethod

# libraries
import h5py
import time
import itertools
from numpy import bool, array, double, zeros, mean, random, concatenate, where,\
    uint8, ones, float32, uint32, unique, newaxis, zeros_like, arange, floor, \
    histogram, seterr, __version__ as numpy_version, unravel_index, diff, \
    nonzero, sort, log, inf, argsort, repeat, ones_like, cov, arccos, dot, \
    pi, isfinite
seterr(divide='ignore')
from numpy.linalg import det, eig, norm
from scipy.misc.common import factorial
from scipy.ndimage import binary_erosion
try:
    from scipy.spatial import Delaunay
except ImportError:
    logging.warning('Unable to load scipy.spatial.Delaunay. '+
        'Convex hull features not available.')
from scipy.misc import comb as nchoosek
from scipy.stats import sem
try:
    from scikits.learn.svm import SVC
    from scikits.learn.linear_model import LogisticRegression, LinearRegression
except ImportError:
    logging.warning('scikits.learn not found. SVC, Regression not available.')
from evaluate import xlogx
try:
    from vigra.learning import RandomForest as VigraRandomForest
    from vigra.__version__ import version as vigra_version<commit_msg>Bug fix: missing bincount import<commit_after>#!/usr/bin/env python

# system modules
import sys, os, argparse
import cPickle
import logging
from math import sqrt
from abc import ABCMeta, abstractmethod

# libraries
import h5py
import time
import itertools
from numpy import bool, array, double, zeros, mean, random, concatenate, where,\
    uint8, ones, float32, uint32, unique, newaxis, zeros_like, arange, floor, \
    histogram, seterr, __version__ as numpy_version, unravel_index, diff, \
    nonzero, sort, log, inf, argsort, repeat, ones_like, cov, arccos, dot, \
    pi, bincount, isfinite, mean, median
seterr(divide='ignore')
from numpy.linalg import det, eig, norm
from scipy.misc.common import factorial
from scipy.ndimage import binary_erosion
try:
    from scipy.spatial import Delaunay
except ImportError:
    logging.warning('Unable to load scipy.spatial.Delaunay. '+
        'Convex hull features not available.')
from scipy.misc import comb as nchoosek
from scipy.stats import sem
try:
    from scikits.learn.svm import SVC
    from scikits.learn.linear_model import LogisticRegression, LinearRegression
except ImportError:
    logging.warning('scikits.learn not found. SVC, Regression not available.')
from evaluate import xlogx
try:
    from vigra.learning import RandomForest as VigraRandomForest
    from vigra.__version__ import version as vigra_version
{'fraction_non_alphanumeric': 0.07308970099667775, 'fraction_numerical': 0.004429678848283499, 'mean_word_length': 4.741525423728813, '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': '2797270', 'n_tokens_mistral': 871, 'n_tokens_neox': 835, 'n_words': 294}