<commit_before>"""" To be run for each qibuild release """

import argparse
import os

import qisys.sh
import qisrc.git

FILES_TO_PATCH = [
    "setup.py",
    "cmake/qibuild/version.cmake",
    "doc/source/conf.in.py",
    "python/qisys/main.py",
]

def fix_version_for_file(filename, old_version, new_version):
    with open(filename, "r") as fp:
        old_contents = fp.read()
    new_contents = old_contents.replace(old_version, new_version)
    with open(filename, "w") as fp:
        fp.write(new_contents)
<commit_msg>tools/release: do not change qibuild camke version or doc version<commit_after>"""" To be run for each qibuild release """

import argparse
import os

import qisys.sh
import qisrc.git

FILES_TO_PATCH = [
    "setup.py",
    "python/qisys/main.py",
]

def fix_version_for_file(filename, old_version, new_version):
    with open(filename, "r") as fp:
        old_contents = fp.read()
    new_contents = old_contents.replace(old_version, new_version)
    with open(filename, "w") as fp:
        fp.write(new_contents)

{'fraction_non_alphanumeric': 0.118042226487524, 'fraction_numerical': 0.0, 'mean_word_length': 3.8287037037037037, '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': '4762691', 'n_tokens_mistral': 372, 'n_tokens_neox': 369, 'n_words': 89}