<commit_before>import py2js
import ast
import inspect

class JSError(Exception):
    pass

class BaseCompiler(object):

    name_map = {
        'self'   : 'this',
        'True'   : 'true',
        'False'  : 'false',
        'None'  : 'null',

        'int' : '_int',
        'float' : '_float',

        'super' : '__super',

        # ideally we should check, that this name is available:<commit_msg> * Remove name mapping of True, False and None since they are now true singletons that behave like in python<commit_after>import py2js
import ast
import inspect

class JSError(Exception):
    pass

class BaseCompiler(object):

    name_map = {
        'self'   : 'this',

        'int' : '_int',
        'float' : '_float',

        'super' : '__super',

        # ideally we should check, that this name is available:
{'fraction_non_alphanumeric': 0.11678832116788321, 'fraction_numerical': 0.0024330900243309003, 'mean_word_length': 2.4291666666666667, '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': '1176621', 'n_tokens_mistral': 259, 'n_tokens_neox': 245, 'n_words': 82}