<commit_before>#!/usr/bin/python

import json, re
import sys, time

from occi_libs import *


occi_init()
if not occi_config:
    print >> sys.stderr, 'No configuration found'
    sys.exit(2)

from CORE import *
from occi_curl import occi_curl

import getopt

def main(argv=sys.argv[1:]):
    results = []
    tests = []
    try:
        opts, args = getopt.getopt(argv,"ht:",["help","tests="])
    except getopt.GetoptError:
        print 'pOCCI.py -h -t <TEST1,TEST2>'
        sys.exit(2)
    for opt, arg in opts:
        if opt in ("-h", "--help"):
            print 'pOCCI.py -h -t <TEST1,TEST2>'<commit_msg>Usage message.<commit_after>#!/usr/bin/python

import getopt
import json, re
import sys, time
import os

from occi_libs import *

occi_init()
if not occi_config:
    print >> sys.stderr, 'No configuration found'
    sys.exit(2)

from CORE import *
from occi_curl import occi_curl


def usage(name = __file__):
    print "%s [OPTIONS]\n\
\n\
OPTIONS:\n\
  -h, --help ................ usage message\n\
  -t, --tests <TEST1,...> ... list of tests\n\
" % os.path.basename(name)


def main(argv=sys.argv[1:]):
    results = []
    tests = []

    try:
        opts, args = getopt.getopt(argv,"ht:",["help","tests="])
    except getopt.GetoptError:
        usage()
        sys.exit(2)
    for opt, arg in opts:
        if opt in ("-h", "--help"):
            usage()
{'fraction_non_alphanumeric': 0.16678805535324107, 'fraction_numerical': 0.008011653313911144, 'mean_word_length': 2.49618320610687, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, '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': '6133532', 'n_tokens_mistral': 511, 'n_tokens_neox': 497, 'n_words': 133}