<commit_before># This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 <NAME> <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0

import benchexec.tools.template
import benchexec.result as result

class Tool(benchexec.tools.template.BaseTool2):
    """
    Tool info for Locksmith.
    URL: http://www.cs.umd.edu/projects/PL/locksmith
    """

    def executable(self, tool_locator):
        return tool_locator.find_executable("locksmith")

    def version(self, executable):
        return self._version_from_tool(executable, line_prefix="Cil version: ")<commit_msg>Fix the versioning here.<commit_after># This file is part of BenchExec, a framework for reliable benchmarking:
# https://github.com/sosy-lab/benchexec
#
# SPDX-FileCopyrightText: 2007-2020 <NAME> <https://www.sosy-lab.org>
#
# SPDX-License-Identifier: Apache-2.0

import benchexec.tools.template
import benchexec.result as result


class Tool(benchexec.tools.template.BaseTool2):
    """
    Tool info for Locksmith.
    URL: http://www.cs.umd.edu/projects/PL/locksmith
    """

    def executable(self, tool_locator):
        return tool_locator.find_executable("locksmith")

    def version(self, executable):
        return self._version_from_tool(executable, line_prefix="LockSmith version: ")
{'fraction_non_alphanumeric': 0.12136627906976744, 'fraction_numerical': 0.015988372093023256, 'mean_word_length': 4.176691729323308, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '4011425', 'n_tokens_mistral': 477, 'n_tokens_neox': 450, 'n_words': 93}