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

from plumbum import cli
from pprof.driver import PollyProfiling
from pprof.settings import config

from pprof.experiments import polli
from pprof.experiments import polyjit
from pprof.experiments import raw
import logging
import pprint
log = logging.getLogger()


@PollyProfiling.subcommand("run")
class PprofRun(cli.Application):

    """ Frontend for running experiments in the pprof study framework """

    _experiments = {"polyjit": polyjit.PolyJIT,
                    "polli": polli.Polli,
                    "polli-baseline": polli.PolliBaseLine,
                    "raw": raw.RawRuntime}

    _experiment_names = []
    _project_names = []
    _verbose = False
    _clean = False
    _list = False
    _execute = False
    _collect = False

    @cli.switch(["-T", "--testdir"], str, help="Where are the testinput files")
    def testdir(self, dirname):
        config["testdir"] = dirname

    @cli.switch(["-S", "--sourcedir"], str, help="Where are the source files")
    def sourcedir(self, dirname):<commit_msg>initialize empty group name<commit_after>#!/usr/bin/env python
# encoding: utf-8

from plumbum import cli
from pprof.driver import PollyProfiling
from pprof.settings import config

from pprof.experiments import polli
from pprof.experiments import polyjit
from pprof.experiments import raw
import logging
import pprint
log = logging.getLogger()


@PollyProfiling.subcommand("run")
class PprofRun(cli.Application):

    """ Frontend for running experiments in the pprof study framework """

    _experiments = {"polyjit": polyjit.PolyJIT,
                    "polli": polli.Polli,
                    "polli-baseline": polli.PolliBaseLine,
                    "raw": raw.RawRuntime}

    _experiment_names = []
    _project_names = []
    _verbose = False
    _clean = False
    _list = False
    _execute = False
    _collect = False
    _group_name = None

    @cli.switch(["-T", "--testdir"], str, help="Where are the testinput files")
    def testdir(self, dirname):
        config["testdir"] = dirname

    @cli.switch(["-S", "--sourcedir"], str, help="Where are the source files")
    def sourcedir(self, dirname):
{'fraction_non_alphanumeric': 0.11050477489768076, 'fraction_numerical': 0.0009095043201455207, 'mean_word_length': 3.1587901701323253, 'pattern_counts': {'":': 8, '<': 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': '2181486', 'n_tokens_mistral': 692, 'n_tokens_neox': 653, 'n_words': 186}