<commit_before>#!/bin/bash

function gitName {
  DIRECTORY='/.git'
  CURRENT=`pwd -P`

  #
  # Recursively run down directories until we find .git or are at `/`
  #
  unset TITLE
  until [ "$CURRENT" = '/' ]
  do
    if [ -d "$CURRENT$DIRECTORY" ]
    then
      NAME=$(basename $(git remote show -n origin | grep Push | cut -d: -f2-))
      BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
      TOP=$(git rev-parse --show-toplevel)

      #
      # Submodules will have a different toplevel.
      #
      if [ -z "$TOP" ] || [ $TOP = $CURRENT ]
      then
        TITLE="\033]0; ${NAME%.git} ($BRANCH)\007"
      else
        TITLE="\033]0; $(basename "$CURRENT") (submodule: ${NAME%.git}) \007"<commit_msg>[fix] add quotes to be safe<commit_after>#!/bin/bash

function gitName {
  DIRECTORY='/.git'
  CURRENT=`pwd -P`

  #
  # Recursively run down directories until we find .git or are at `/`
  #
  unset TITLE
  until [ "$CURRENT" = '/' ]
  do
    if [ -d "$CURRENT$DIRECTORY" ]
    then
      NAME=$(basename $(git remote show -n origin | grep Push | cut -d: -f2-))
      BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
      TOP=$(git rev-parse --show-toplevel)

      #
      # Submodules will have a different toplevel.
      #
      if [ -z "$TOP" ] || [ "$TOP" = $CURRENT ]
      then
        TITLE="\033]0; ${NAME%.git} ($BRANCH)\007"
      else
        TITLE="\033]0; $(basename "$CURRENT") (submodule: ${NAME%.git}) \007"
{'fraction_non_alphanumeric': 0.17679558011049723, 'fraction_numerical': 0.022099447513812154, 'mean_word_length': 2.293181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6374441', 'n_tokens_mistral': 571, 'n_tokens_neox': 513, 'n_words': 140}