<commit_before>#!/bin/bash
## Description: Test for yum or apt based linux

export IS_YUM_PKG_MANAGER=`which yum &>/dev/null && echo 1 || echo ''`
export IS_APT_GET_PKG_MANAGER=`which apt-get &>/dev/null && echo 1 || echo ''`
export PKG_MANAGER=$( which -v yum || which apt-get ) || exit 1<commit_msg>Update pkg-manager-which.sh<commit_after>#!/bin/bash
## Description: Test for yum or apt based linux

## HOW TO USE:
# named_pipe=`cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 32` && mkfifo $named_pipe && (curl -sjkL https://raw.githubusercontent.com/saaadel/scripts/master/linux/pkg-manager-which.sh > $named_pipe &) && . /dev/stdin < $named_pipe && rm -f $named_pipe


export IS_YUM_PKG_MANAGER=`which yum &>/dev/null && echo 1 || echo ''`
export IS_APT_GET_PKG_MANAGER=`which apt-get &>/dev/null && echo 1 || echo ''`
export PKG_MANAGER=$( which yum || which apt-get ) || exit 1
{'fraction_non_alphanumeric': 0.16610925306577481, 'fraction_numerical': 0.011148272017837236, 'mean_word_length': 4.409638554216867, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '893430', 'n_tokens_mistral': 363, 'n_tokens_neox': 337, 'n_words': 87}