<commit_before>def assert_keys(name, allowed_keys, kwargs):
    remainder_keys = set(kwargs.keys()) - allowed_keys

    if len(remainder_keys) > 0:
        msg = 'Use of illegal keyword arguments for {}: {}'
        msg = msg.format(name, remainder_keys)
        raise ValueError(msg)


def assert_color(colors):
    if len(colors) != 3:
        raise ValueError('Expected colors tuple of length 3')


def Axes(**kwargs):
    allowed_keys = {'type', 'display', 'position', 'id', 'gridLines', 'scaleLabel', 'ticks'}

    assert_keys('Axes', allowed_keys, kwargs)

    return dict(**kwargs)


def ScaleLabel(**kwargs):
    allowed_keys = {'display', 'labelString', 'fontColor', 'fontFamily', 'fontSize',
                    'fontStyle'}

    assert_keys('ScaleLabel', allowed_keys, kwargs)

    return dict(**kwargs)


def Tick(**kwargs):
    allowed_keys = {'autoSkip', 'autoSkipPadding', 'callback', 'display', 'fontColor',
                    'fontFamily', 'fontSize', 'fontStyle', 'labelOffset', 'maxRotation',
                    'minRotation', 'mirror', 'padding', 'reverse'}
<commit_msg>Added support for Bar chart specific Axes configuration properties<commit_after>def assert_keys(name, allowed_keys, kwargs):
    remainder_keys = set(kwargs.keys()) - allowed_keys

    if len(remainder_keys) > 0:
        msg = 'Use of illegal keyword arguments for {}: {}'
        msg = msg.format(name, remainder_keys)
        raise ValueError(msg)


def assert_color(colors):
    if len(colors) != 3:
        raise ValueError('Expected colors tuple of length 3')


def Axes(**kwargs):
    allowed_keys = {'type', 'display', 'position', 'id', 'gridLines', 'scaleLabel', 'ticks',
                    'barPercentage', 'categoryPercentage', 'barThickness', 'maxBarThickness'}

    assert_keys('Axes', allowed_keys, kwargs)

    return dict(**kwargs)


def ScaleLabel(**kwargs):
    allowed_keys = {'display', 'labelString', 'fontColor', 'fontFamily', 'fontSize',
                    'fontStyle'}

    assert_keys('ScaleLabel', allowed_keys, kwargs)

    return dict(**kwargs)


def Tick(**kwargs):
    allowed_keys = {'autoSkip', 'autoSkipPadding', 'callback', 'display', 'fontColor',
                    'fontFamily', 'fontSize', 'fontStyle', 'labelOffset', 'maxRotation',
                    'minRotation', 'mirror', 'padding', 'reverse'}

{'fraction_non_alphanumeric': 0.1492921492921493, 'fraction_numerical': 0.002574002574002574, 'mean_word_length': 3.563600782778865, 'pattern_counts': {'":': 0, '<': 3, '<?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': '716364', 'n_tokens_mistral': 702, 'n_tokens_neox': 668, 'n_words': 172}