<commit_before>clone () {
  if [[ $# != 1 ]]; then
    cat >&2 <<USAGE
usage: clone [USER@[HOST:[ORG/[SLUG]]]]

Clones the provided repo and changes to its working directory.
USAGE
  fi

  local repo=$1
  local user=git
  local host=github.com
  local org=cttttt
  local slug=

  while true; do
    if [[ "$repo" =~ .+?@.+?:.+?\/.+$ ]]; then
      user="${repo%%@*}"
      repo="${repo#*@}"
    elif [[ "$repo" =~ .+?:.+?\/.+$ ]]; then
      host="${repo%%:*}"
      repo="${repo#*:}"
    elif [[ "$repo" =~ .+?\/.+$ ]]; then
      org="${repo%%/*}"
      repo="${repo#*/}"
    else
      slug="$repo"
      break
    fi
  done

  local repo="$user@$host:$org/$slug"
  local path="$HOME/src/$host/$org/$slug"

  if [[ -d "$path" ]]; then
    if [[ -d "$path/.git" ]]; then<commit_msg>Fix regexes in clone<commit_after>clone () {
  if [[ $# != 1 ]]; then
    cat >&2 <<USAGE
usage: clone [USER@[HOST:[ORG/[SLUG]]]]

Clones the provided repo and changes to its working directory.
USAGE
  fi

  local repo=$1
  local user=git
  local host=github.com
  local org=cttttt
  local slug=

  while true; do
    if [[ "$repo" =~ ^.+?@.+?:.+?/.+$ ]]; then
      user="${repo%%@*}"
      repo="${repo#*@}"
    elif [[ "$repo" =~ ^.+?:.+?/.+$ ]]; then
      host="${repo%%:*}"
      repo="${repo#*:}"
    elif [[ "$repo" =~ ^.+/.+$ ]]; then
      org="${repo%%/*}"
      repo="${repo#*/}"
    else
      slug="$repo"
      break
    fi
  done

  local repo="$user@$host:$org/$slug"
  local path="$HOME/src/$host/$org/$slug"

  if [[ -d "$path" ]]; then
    if [[ -d "$path/.git" ]]; then
{'fraction_non_alphanumeric': 0.2636594663278272, 'fraction_numerical': 0.0038119440914866584, 'mean_word_length': 2.539325842696629, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4297192', 'n_tokens_mistral': 620, 'n_tokens_neox': 588, 'n_words': 136}