<commit_before>def _generate_tables_impl(ctx):
    args = ctx.actions.args()
    args.add("-input", ctx.file.src)
    args.add("-output", ctx.outputs.out)
    ctx.actions.run(
        executable = ctx.executable._bin,
        inputs = [ctx.file.src],
        outputs = [ctx.outputs.out],
        arguments = [args],
    )

generate_tables = rule(
    implementation = _generate_tables_impl,
    attrs = {
        "src": attr.label(allow_single_file=True),
        "out": attr.output(),
        "_bin": attr.label(
            default = "//generatetables",
            executable = True,
            allow_single_file = True,
            cfg = "host",
        ),
    },
)
<commit_msg>Make the parameter 'bin' public (#845)<commit_after>def _generate_tables_impl(ctx):
    args = ctx.actions.args()
    args.add("-input", ctx.file.src)
    args.add("-output", ctx.outputs.out)
    ctx.actions.run(
        executable = ctx.executable.bin,
        inputs = [ctx.file.src],
        outputs = [ctx.outputs.out],
        arguments = [args],
    )

generate_tables = rule(
    implementation = _generate_tables_impl,
    attrs = {
        "src": attr.label(allow_single_file=True),
        "out": attr.output(),
        "bin": attr.label(
            default = "//generatetables",
            executable = True,
            allow_single_file = True,
            cfg = "host",
        ),
    },
)

{'fraction_non_alphanumeric': 0.1447084233261339, 'fraction_numerical': 0.0021598272138228943, 'mean_word_length': 2.1026785714285716, 'pattern_counts': {'":': 6, '<': 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': '2916256', 'n_tokens_mistral': 435, 'n_tokens_neox': 435, 'n_words': 77}