<commit_before>#!/usr/bin/env python
# encoding: utf-8

from plumbum import cli
from settings import config

import sys
import logging

class PollyProfiling(cli.Application):

    """ Frontend for running/building the pprof study framework """

    VERSION = "0.2.0"

    @cli.switch(["-v", "--verbose"], help="Enable verbose output")
    def verbose(self):
        log.setLevel(logging.DEBUG)

    def main(self, *args):
        if args:
            print "Unknown command %r" % (args[0],)
            return 1
        if not self.nested_command:
            print "No command given"
            return 1


log = logging.getLogger()
handler = logging.StreamHandler(sys.stderr)
log.addHandler(handler)
log.setLevel(logging.WARNING)

def main(*args):
    print __package__
    from pprof import run
    from pprof import build

    return PollyProfiling.run(*args)<commit_msg>driver: remove debug print<commit_after>#!/usr/bin/env python
# encoding: utf-8

from plumbum import cli
from settings import config

import sys
import logging

class PollyProfiling(cli.Application):

    """ Frontend for running/building the pprof study framework """

    VERSION = "0.2.0"

    @cli.switch(["-v", "--verbose"], help="Enable verbose output")
    def verbose(self):
        log.setLevel(logging.DEBUG)

    def main(self, *args):
        if args:
            print "Unknown command %r" % (args[0],)
            return 1
        if not self.nested_command:
            print "No command given"
            return 1


log = logging.getLogger()
handler = logging.StreamHandler(sys.stderr)
log.addHandler(handler)
log.setLevel(logging.WARNING)

def main(*args):
    from pprof import run
    from pprof import build

    return PollyProfiling.run(*args)
{'fraction_non_alphanumeric': 0.10970706490522689, 'fraction_numerical': 0.0080413555427915, 'mean_word_length': 2.9234234234234235, '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': '2605069', 'n_tokens_mistral': 537, 'n_tokens_neox': 505, 'n_words': 152}