<commit_before>#!/bin/bash
# ======================================
#   Developed by <NAME> - 2015-2016
# ======================================

free;
sudo echo '';

commands=$(echo \
'sudo sync
swapoff -a
echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches
swapon -a' \
| sed 's/^ *//g');

OLDIFS="${IFS}";
IFS=$'\n';
for command in ${commands}; do
  echo " [${command}]";
  sudo sh -c "timeout 5 ${command}";
done;
IFS="${OLDIFS}";

echo "";
free;<commit_msg>cleanram: Remove unnecessary sudo second usage<commit_after>#!/bin/bash
# ======================================
#   Developed by <NAME> - 2015-2016
# ======================================

free;
sudo echo '';

commands=$(echo \
'sync
swapoff -a
echo 1 > /proc/sys/vm/drop_caches
echo 2 > /proc/sys/vm/drop_caches
echo 3 > /proc/sys/vm/drop_caches
swapon -a' \
| sed 's/^ *//g');

OLDIFS="${IFS}";
IFS=$'\n';
for command in ${commands}; do
  echo " [${command}]";
  sudo sh -c "timeout 5 ${command}";
done;
IFS="${OLDIFS}";

echo "";
free;
{'fraction_non_alphanumeric': 0.3279467680608365, 'fraction_numerical': 0.022813688212927757, 'mean_word_length': 4.4, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1597068', 'n_tokens_mistral': 423, 'n_tokens_neox': 381, 'n_words': 95}