<commit_before>
from t_core.messages import Packet
from t_core.matcher import Matcher
from t_core.iterator import Iterator

from t_core.tc_python.srule import SRule
from t_core.tc_python.frule import FRule

import time

from multiprocessing import Process
from core.himesis_utils import expand_graph, shrink_graph, delete_graph, disjoint_model_union, print_graph, graph_to_dot, get_preds_and_succs

from copy import deepcopy

from solver.simple_attribute_equation_evaluator import SimpleAttributeEquationEvaluator
from solver.simple_attribute_equation_evaluator import is_consistent

import numpy.random as nprnd

from profiler import *
from util.progress import ProgressBar

from PCDict import PCDict

class path_condition_generator_worker(Process):

    # def join(self):
    #     pass

    def __init__(self, transformation, pruner, layer, num, report_progress, verbosity):
        super(path_condition_generator_worker, self).__init__()
        self.transformation = transformation
        self.layer = layer
        self.num = num
        self.currentPathConditionSet = None
        self.results_queue = None
        self.verbosity = verbosity

        #self.attributeEquationEvaluator = SimpleAttributeEquationEvaluator(verbosity)

        nprnd.seed(num)

        self.report_progress = report_progress<commit_msg>Allow for easy use of kernprof.<commit_after>
from t_core.messages import Packet
from t_core.matcher import Matcher
from t_core.iterator import Iterator

from t_core.tc_python.srule import SRule
from t_core.tc_python.frule import FRule

import time

from multiprocessing import Process
from core.himesis_utils import expand_graph, shrink_graph, delete_graph, disjoint_model_union, print_graph, graph_to_dot, get_preds_and_succs

from copy import deepcopy

from solver.simple_attribute_equation_evaluator import SimpleAttributeEquationEvaluator
from solver.simple_attribute_equation_evaluator import is_consistent

import numpy.random as nprnd

from profiler import *
from util.progress import ProgressBar

from PCDict import PCDict

#needed to use kernprof
class DummyProcess:
    def join(self):
        pass

    def start(self):
        self.run()

class path_condition_generator_worker(Process):

    def __init__(self, transformation, pruner, layer, num, report_progress, verbosity):
        super(path_condition_generator_worker, self).__init__()
        self.transformation = transformation
        self.layer = layer
        self.num = num
        self.currentPathConditionSet = None
        self.results_queue = None
        self.verbosity = verbosity

        #self.attributeEquationEvaluator = SimpleAttributeEquationEvaluator(verbosity)

        nprnd.seed(num)

        self.report_progress = report_progress
{'fraction_non_alphanumeric': 0.05140357273058695, 'fraction_numerical': 0.0, 'mean_word_length': 4.444444444444445, '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': '650643', 'n_tokens_mistral': 800, 'n_tokens_neox': 770, 'n_words': 205}