<commit_before>#!/bin/bash

ch() {
  if [ -z "$(which fzf)" ]; then
    printf "\e[31m* need [fzf], please install it first *\e[0m\n"
    return
  fi

  local selected_title=$(fzf-cmdhub-py -t | fzf)
  if [ -n "$selected_title" ]; then
    local cmd=$(fzf-cmdhub-py -c "${selected_title}")
    if [ -n "$cmd" ]; then
      eval "$cmd"
    fi
  fi
}

FZF_CMDHUB_SH_PATH=$0

ct() {
  echo "$FZF_CMDHUB_SH_PATH"
}
<commit_msg>run fzf-cmdhub.py with installing it to .bin<commit_after>#!/bin/bash

FZF_CMDHUB_SH_PATH="$(dirname $0)"

ch() {
  if [ -z "$(which fzf)" ]; then
    printf "\e[31m* need [fzf], please install it first *\e[0m\n"
    return
  fi

  local py_path="${FZF_CMDHUB_SH_PATH}/fzf-cmdhub.py"

  local selected_title="$(python ${py_path} -t | fzf)"
  if [ -n "$selected_title" ]; then
    local cmd="$(python ${py_path} -c ${selected_title})"
    if [ -n "$cmd" ]; then
      eval "$cmd"
    fi
  fi
}


{'fraction_non_alphanumeric': 0.18538713195201745, 'fraction_numerical': 0.008724100327153763, 'mean_word_length': 3.026315789473684, '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': '599102', 'n_tokens_mistral': 406, 'n_tokens_neox': 390, 'n_words': 92}