<commit_before>from parser import *
from internal_ops import lazy
from internal_ops import register_lazy
from internal_ops import register_function
from references import ref
from functions import *
from util import *
import copy


class JSONGenerator:
    def __init__(self, genson_dict):
        self.genson_dict = genson_dict

        self.generators = []
        self.find_generators(genson_dict)

        self.first_run = True

    def find_generators(self, d):
        if isdict(d):
            vals = d.values()
        elif isiterable(d):
            vals = d

        for v in vals:<commit_msg>toplevel export LazyCall GenSONFunction GenSONOperand<commit_after>from parser import *
from internal_ops import lazy
from internal_ops import register_lazy
from internal_ops import register_function
from internal_ops import LazyCall
from internal_ops import GenSONFunction
from internal_ops import GenSONOperand
from references import ref
from functions import *
from util import *
import copy


class JSONGenerator:
    def __init__(self, genson_dict):
        self.genson_dict = genson_dict

        self.generators = []
        self.find_generators(genson_dict)

        self.first_run = True

    def find_generators(self, d):
        if isdict(d):
            vals = d.values()
        elif isiterable(d):
            vals = d

        for v in vals:
{'fraction_non_alphanumeric': 0.05592347314201619, 'fraction_numerical': 0.0, 'mean_word_length': 3.035608308605341, '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': '3260813', 'n_tokens_mistral': 392, 'n_tokens_neox': 379, 'n_words': 121}