<commit_before># global x86_64, hostname_id, distro, network_type, virtualization, gui, develop, monitoring, roles


# pylama:ignore=E0602
def is_manjaro() -> bool:
    return distro == "manjaro"  # type: ignore


def is_x86_64() -> bool:
    return x86_64  # type: ignore


def is_role(name: str) -> bool:
    return name in roles.split(",")  # type: ignore


def is_monitoring(name: str) -> bool:
    return name in monitoring.split(",")  # type: ignore


def is_gui(name: str) -> bool:
    return name in gui.split(",")  # type: ignore


def is_develop(name: str) -> bool:
    return name in develop.split(",")  # type: ignore


def is_network_type(name: str) -> bool:
    return name in network_type.split(",")  # type: ignore


def get_hostname_id() -> bool:
    return hostname_id  # type: ignore


def get_virtualization() -> bool:
    return virtualization  # type: ignore


def system():
    system_pkgs = []
    if is_manjaro():
        system_pkgs += ["linux512"]
    else:
        system_pkgs += ["linux"]

    # utils
    system_pkgs += ["linux-firmware",
                    "base",
                    "polkit",
                    "gnupg",
                    "wget",
                    "curl",
                    "git",
                    "rsync",
                    "logrotate",
                    "nano",
                    "vim",
                    "pacutils",
                    "pkgfile",  # pkgfile makepkg (get package for makepkg)
                    "dialog",
                    "libnewt",  # external dialog
                    "mlocate",
                    "inetutils",  # for set hostname (crazy ansible code)
                    "man-db"]

    # ansible
    system_pkgs += ["ansible", "python", "python-lxml"]

    # terminal
    system_pkgs += ["urxvt-perls",
                    "fd",  # fast find alternative
                    "exa",  # ls alternative
                    "ncdu",  # disk usage analyzer
                    "bitwarden-cli-bin",
                    "zsh",
                    "fzf"]

    # archivers
    system_pkgs += ["p7zip", "unzip", "unrar"]

    if is_x86_64():
        system_pkgs += ["yay",  # AUR package manager
                        "refind",  # UEFI boot manager
                        "pkgcacheclean"]  # clean the pacman cache

    return system_pkgs


def driver():
    driver_pkgs = []

    if not is_gui("none"):
        driver_pkgs = ["mesa"]

    if get_hostname_id() == "archhost":
        driver_pkgs += ["xf86-video-intel"]
    elif get_hostname_id() == "master":
        driver_pkgs += ["linux512-nvidia"]
    elif get_hostname_id() == "xnote":
        driver_pkgs += ["bbswitch",
                        # "bumblebee",
                        # "nvidia",
                        "xf86-video-intel",
                        "xf86-input-libinput"]  # touchpad
    elif get_hostname_id() == "worknote":
        driver_pkgs += ["bbswitch",
                        # "bumblebee",
                        # "nvidia",<commit_msg>disable nvidia for master<commit_after># global x86_64, hostname_id, distro, network_type, virtualization, gui, develop, monitoring, roles


# pylama:ignore=E0602
def is_manjaro() -> bool:
    return distro == "manjaro"  # type: ignore


def is_x86_64() -> bool:
    return x86_64  # type: ignore


def is_role(name: str) -> bool:
    return name in roles.split(",")  # type: ignore


def is_monitoring(name: str) -> bool:
    return name in monitoring.split(",")  # type: ignore


def is_gui(name: str) -> bool:
    return name in gui.split(",")  # type: ignore


def is_develop(name: str) -> bool:
    return name in develop.split(",")  # type: ignore


def is_network_type(name: str) -> bool:
    return name in network_type.split(",")  # type: ignore


def get_hostname_id() -> bool:
    return hostname_id  # type: ignore


def get_virtualization() -> bool:
    return virtualization  # type: ignore


def system():
    system_pkgs = []
    if is_manjaro():
        system_pkgs += ["linux512"]
    else:
        system_pkgs += ["linux"]

    # utils
    system_pkgs += ["linux-firmware",
                    "base",
                    "polkit",
                    "gnupg",
                    "wget",
                    "curl",
                    "git",
                    "rsync",
                    "logrotate",
                    "nano",
                    "vim",
                    "pacutils",
                    "pkgfile",  # pkgfile makepkg (get package for makepkg)
                    "dialog",
                    "libnewt",  # external dialog
                    "mlocate",
                    "inetutils",  # for set hostname (crazy ansible code)
                    "man-db"]

    # ansible
    system_pkgs += ["ansible", "python", "python-lxml"]

    # terminal
    system_pkgs += ["urxvt-perls",
                    "fd",  # fast find alternative
                    "exa",  # ls alternative
                    "ncdu",  # disk usage analyzer
                    "bitwarden-cli-bin",
                    "zsh",
                    "fzf"]

    # archivers
    system_pkgs += ["p7zip", "unzip", "unrar"]

    if is_x86_64():
        system_pkgs += ["yay",  # AUR package manager
                        "refind",  # UEFI boot manager
                        "pkgcacheclean"]  # clean the pacman cache

    return system_pkgs


def driver():
    driver_pkgs = []

    if not is_gui("none"):
        driver_pkgs = ["mesa"]

    if get_hostname_id() == "archhost":
        driver_pkgs += ["xf86-video-intel"]
    # elif get_hostname_id() == "master":
    #    driver_pkgs += ["linux512-nvidia"]
    elif get_hostname_id() == "xnote":
        driver_pkgs += ["bbswitch",
                        # "bumblebee",
                        # "nvidia",
                        "xf86-video-intel",
                        "xf86-input-libinput"]  # touchpad
    elif get_hostname_id() == "worknote":
        driver_pkgs += ["bbswitch",
                        # "bumblebee",
                        # "nvidia",
{'fraction_non_alphanumeric': 0.12630532073595227, 'fraction_numerical': 0.01093983092988563, 'mean_word_length': 1.560033941450997, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7523372', 'n_tokens_mistral': 1907, 'n_tokens_neox': 1778, 'n_words': 432}