<commit_before># -*- coding: utf-8 -*-
"""
tube.expand
~~~~~~~~~~~

This module defines various utilities for expanding special placeholders
inside commands.
"""

import re
from tube.utils import v


def cr(rawstr):
    """To replace the character sequence `<CR>` into a newline.

    If `<CR>` is prepended with a backslash, the replacement is not performed.
    """
    return re.sub("(?<!\\\\)<CR>", "\n", rawstr, flags=re.IGNORECASE)<commit_msg>Remove unused import<commit_after># -*- coding: utf-8 -*-
"""
tube.expand
~~~~~~~~~~~

This module defines various utilities for expanding special placeholders
inside commands.
"""

import re


def cr(rawstr):
    """To replace the character sequence `<CR>` into a newline.

    If `<CR>` is prepended with a backslash, the replacement is not performed.
    """
    return re.sub("(?<!\\\\)<CR>", "\n", rawstr, flags=re.IGNORECASE)
{'fraction_non_alphanumeric': 0.1715909090909091, 'fraction_numerical': 0.0022727272727272726, 'mean_word_length': 3.840659340659341, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '6485242', 'n_tokens_mistral': 284, 'n_tokens_neox': 256, 'n_words': 95}