<commit_before>#!/bin/bash

REPOS_DB=~/.all-repos
test -f $REPOS_DB || touch $REPOS_DB

PRG=$0
CMD=$1
shift

list() {
  cat $REPOS_DB
}

add() {
  ls -1d $@ | while read REPO
  do
    echo $REPO
    echo $REPO >> $REPOS_DB
  done
}
del() {
  ls -1d $@ | while read DELETED
  do
    mv $REPOS_DB $REPOS_DB.old<commit_msg>+ checking if repo is already added<commit_after>#!/bin/bash

REPOS_DB=~/.all-repos
test -f $REPOS_DB || touch $REPOS_DB

PRG=$0
CMD=$1
shift

list() {
  cat $REPOS_DB
}

add() {
  ls -1d $@ | while read REPO
  do
    if [ `egrep "^$REPO$" $REPOS_DB` ]
    then
      echo "already added: $REPO" >&2
    else
      echo $REPO
      echo $REPO >> $REPOS_DB
    fi
  done
}
del() {
  ls -1d $@ | while read DELETED
  do
    mv $REPOS_DB $REPOS_DB.old
{'fraction_non_alphanumeric': 0.14973958333333334, 'fraction_numerical': 0.01171875, 'mean_word_length': 2.6103286384976525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '4755961', 'n_tokens_mistral': 360, 'n_tokens_neox': 341, 'n_words': 89}