<commit_before>#!/bin/bash

clipboard() {
  local copy_cmd
  if [ -n "$PBCOPY_SERVER" ]; then
    local body="" buffer
    body=$(cat)
    # while IFS= read -r buffer; do
    #   body="$body$buffer\n";
    # done
    curl "$PBCOPY_SERVER" --data-urlencode body="$body" >/dev/null 2>&1
    return $?
  fi
  if type putclip >/dev/null 2>&1; then<commit_msg>comment out buffer for shellcheck<commit_after>#!/bin/bash

clipboard() {
  local copy_cmd
  if [ -n "$PBCOPY_SERVER" ]; then
    local body="" # buffer
    body=$(cat)
    # while IFS= read -r buffer; do
    #   body="$body$buffer\n";
    # done
    curl "$PBCOPY_SERVER" --data-urlencode body="$body" >/dev/null 2>&1
    return $?
  fi
  if type putclip >/dev/null 2>&1; then
{'fraction_non_alphanumeric': 0.16530054644808742, 'fraction_numerical': 0.01092896174863388, 'mean_word_length': 2.898936170212766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6762388', 'n_tokens_mistral': 279, 'n_tokens_neox': 274, 'n_words': 71}