<commit_before># -*- Mode: Python -*-

# global settings and context for an invocation of the compiler

class context:
    verbose = False
    noinline = False
    annotate = False
    trace = False
    step_solver = False
    typetype = False
    no_range = False
    optimize = False
    force_32 = False
    print_types = False

    def __init__ (self):
        self.datatypes = {}
        self.dep_graph = None
        self.scc_graph = None
        self.scc_map = None
        self.var_dict = None
        self.record_types = None
        self.datatypes = {}
        self.cincludes = set()
        self.records2 = {}
        self.labels2 = {}
        # XXX should probably remove this hack since we're not using polymorphic variants this way any more.
        self.variant_labels = {
            # Hack.  since pxll.h and header.c:dump_object() already
            #   know about the 'builtin' cons and nil constructors, we
            #   hard-code them in here.  You'll note that TC_PAIR is
            #   two entries before TC_USEROBJ...
            'cons': -3,
            'nil': -3,
            }
        # don't throw away precious tag space.
        self.nvariant_offset = len(self.variant_labels)
        # constructed literals
        self.constructed = []
        self.symbols = {}
        self.standard_macros = "lib/derived.scm"
        # number of lines before and after a type error node
        self.type_error_lines = 8
<commit_msg>context.variant_labels: don't prepopulate this with cons & nil. context.nvariant_offset: no longer needed<commit_after># -*- Mode: Python -*-

# global settings and context for an invocation of the compiler

class context:
    verbose = False
    noinline = False
    annotate = False
    trace = False
    step_solver = False
    typetype = False
    no_range = False
    optimize = False
    force_32 = False
    print_types = False

    def __init__ (self):
        self.datatypes = {}
        self.dep_graph = None
        self.scc_graph = None
        self.scc_map = None
        self.var_dict = None
        self.record_types = None
        self.datatypes = {}
        self.cincludes = set()
        self.records2 = {}
        self.labels2 = {}
        # XXX should probably remove this hack since we're not using polymorphic variants this way any more.
        self.variant_labels = {}
        # constructed literals
        self.constructed = []
        self.symbols = {}
        self.standard_macros = "lib/derived.scm"
        # number of lines before and after a type error node
        self.type_error_lines = 8

{'fraction_non_alphanumeric': 0.07993791230112533, 'fraction_numerical': 0.004656577415599534, 'mean_word_length': 1.9872537659327927, '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': '6142904', 'n_tokens_mistral': 754, 'n_tokens_neox': 726, 'n_words': 228}