<commit_before>from dotinstall import packages


def run():
    packages.try_install("translate-shell-git")
<commit_msg>cfg/tl: support linux mint<commit_after>import os
import tempfile

from dotinstall import packages, util


def run():
    if util.distro_name() == "arch":
        packages.try_install("translate-shell-git")
    elif util.distro_name() == "linuxmint":
        os.chdir(tempfile.gettempdir())
        util.run_verbose(
            ["git", "clone", "https://github.com/soimort/translate-shell"]
        )
        os.chdir("translate-shell")
        util.run_verbose(["make"])
        util.run_verbose(["sudo", "make", "install"])

{'fraction_non_alphanumeric': 0.14992272024729522, 'fraction_numerical': 0.0, 'mean_word_length': 3.348993288590604, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '6390780', 'n_tokens_mistral': 204, 'n_tokens_neox': 199, 'n_words': 38}