<commit_before>#!/usr/bin/env bash

function cutLastChars() {
  numberOfCharsToCut=$1
  numberOfCharsToCut=$[numberOfCharsToCut+1];
  rev | cut -c $numberOfCharsToCut- | rev
}

function killProcessByName() {
  ps -ef | grep $1 | awk '{print $2}' | head -n1 | xargs kill -9
}

function killAllDetachedScreenSessions() {
    screen -ls | grep Detached | cut -d. -f1 | awk '{print $1}' | xargs kill
}

function killScreen() {
    screen -X -S $1 quit
}

function showProcessStats() {
  ps -p $1 -o %cpu,%mem,cmd
}

function tea() {
  tee -a $1
}

function repeatOperation() {
  watch -n 1 $1 
}

function reloadTmux() {
  tmux source-file ~/.tmux.conf
}

function reloadShell {
  source ~/.zshrc<commit_msg>removing broken functions<commit_after>#!/usr/bin/env bash

function cutLastChars() {
  numberOfCharsToCut=$1
  numberOfCharsToCut=$[numberOfCharsToCut+1];
  rev | cut -c $numberOfCharsToCut- | rev
}

function killAllDetachedScreenSessions() {
    screen -ls | grep Detached | cut -d. -f1 | awk '{print $1}' | xargs kill
}

function killScreen() {
    screen -X -S $1 quit
}

function showProcessStatsByPid() {
  ps -p $1 -o %cpu,%mem,cmd
}

function tea() {
  tee -a $1
}

function repeatOperation() {
  watch -n 1 $1 
}

function reloadTmux() {
  tmux source-file ~/.tmux.conf
}

function reloadShell {
  source ~/.zshrc
{'fraction_non_alphanumeric': 0.14102564102564102, 'fraction_numerical': 0.016591251885369532, 'mean_word_length': 3.4983050847457626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1050572', 'n_tokens_mistral': 519, 'n_tokens_neox': 492, 'n_words': 133}