<commit_before>#! /bin/bash

name="$(basename "$0")"
real="$(type -ap "$name" | head -2 | tail -1)"

[ -z "$real" ] && echo "command not found: $name" && exit 1
[ ! -x "$real" ] && echo "command not executable: $real" && exit 1

args=""
plus=""

while [ -n "$1" ]; do
  arg="$1"; shift

  if [[ "$arg" =~ (.+):([0-9]+)(:.*)?$ ]]; then
    file="${BASH_REMATCH[1]}"
    line="${BASH_REMATCH[2]}"

    if [ -f "$file" ]; then
      args="$args $file"

      if [ -z "$plus" ]; then<commit_msg>vim-wrapper.sh: Fallback for older Bash's.<commit_after>#! /bin/bash

name="$(basename "$0")"
real="$(type -ap "$name" | head -2 | tail -1)"

[ -z "$real" ] && echo "command not found: $name" && exit 1
[ ! -x "$real" ] && echo "command not executable: $real" && exit 1

[ $BASH_VERSINFO -lt 3 ] && exec $real "$@"

args=""
plus=""

while [ -n "$1" ]; do
  arg="$1"; shift

  if [[ "$arg" =~ (.+):([0-9]+)(:.*)?$ ]]; then
    file="${BASH_REMATCH[1]}"
    line="${BASH_REMATCH[2]}"

    if [ -f "$file" ]; then
      args="$args $file"

      if [ -z "$plus" ]; then
{'fraction_non_alphanumeric': 0.2803030303030303, 'fraction_numerical': 0.021780303030303032, 'mean_word_length': 3.081081081081081, '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': '6150221', 'n_tokens_mistral': 447, 'n_tokens_neox': 414, 'n_words': 114}