<commit_before>"""
 Copyright 2018-present Open Networking Foundation

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
"""

def check_bazel_version():
    if "bazel_version" not in dir(native):
        fail("\nBazel version is too old; please use 0.15.* official release!\n\n")
    elif not native.bazel_version:
        print("\nBazel is not a release version; please use 0.15.* official release!\n\n")
        return

    versions = native.bazel_version.split(".")
    if not int(versions[1]) >= 15:
        fail("\nBazel version %s is not supported; please use 0.17.* official release!\n\n" %<commit_msg>bazel version must be 0.17<commit_after>"""
 Copyright 2018-present Open Networking Foundation

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
"""

def check_bazel_version():
    if "bazel_version" not in dir(native):
        fail("\nBazel version is too old; please use 0.19.* official release!\n\n")
    elif not native.bazel_version:
        print("\nBazel is not a release version; please use 0.19.* official release!\n\n")
        return

    versions = native.bazel_version.split(".")
    if not int(versions[1]) >= 19:
        fail("\nBazel version %s is not supported; please use 0.19.* official release!\n\n" %
{'fraction_non_alphanumeric': 0.08784706417842512, 'fraction_numerical': 0.01957214383249886, 'mean_word_length': 3.6176470588235294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1669880', 'n_tokens_mistral': 621, 'n_tokens_neox': 575, 'n_words': 270}