<commit_before>#!/usr/bin/python
from __future__ import print_function

__author__ = '<NAME>'

import sys
import jsonpickle

prog_name = __file__.split('/')[-1]


class Harness_globals():
    prog_name = __file__.split('/')[-1]
    harness_file_name = '/tmp/harness-' + prog_name.rsplit('.', 1)[0] + '.jsonpkl'
    f = open(harness_file_name, 'a+')
    f.seek(0)
    json_string = f.read()
    try:
        json_dict = jsonpickle.loads(json_string)
    except:
        json_dict = {}

    @staticmethod
    def save():
        Harness_globals.f.truncate(0)
        print (jsonpickle.dumps(Harness_globals.json_dict), file=Harness_globals.f)


# text menu for replaying a function using previously saved parameters
def replay():
    func_list = []<commit_msg>change to a more rational name for json pickle file.<commit_after>#!/usr/bin/python
from __future__ import print_function

__author__ = '<NAME>'

import sys
import jsonpickle


class Harness_globals():
    harness_file_name = '/tmp/harness-' + sys.argv[0].rsplit('/', 1)[1].rsplit('.', 1)[0] + '.jsonpkl'
    f = open(harness_file_name, 'a+')
    f.seek(0)
    json_string = f.read()
    try:
        json_dict = jsonpickle.loads(json_string)
    except:
        json_dict = {}

    @staticmethod
    def save():
        Harness_globals.f.truncate(0)
        print (jsonpickle.dumps(Harness_globals.json_dict), file=Harness_globals.f)


# text menu for replaying a function using previously saved parameters
def replay():
    func_list = []
{'fraction_non_alphanumeric': 0.1328437917222964, 'fraction_numerical': 0.008678237650200267, 'mean_word_length': 3.4613095238095237, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '281676', 'n_tokens_mistral': 537, 'n_tokens_neox': 516, 'n_words': 112}