<commit_before>#!/bin/bash

ACTIVE_WINDOW=$(xdotool getactivewindow)
KITTY_WINDOWS=$(xdotool search --class kitty)

# BUG: works fine # when called manually from CLI, but not when called from i3

if [ -n "${ACTIVE_WINDOW}" ]; then
  if [[ "${KITTY_WINDOWS[@]}" =~ "${ACTIVE_WINDOW}" ]]; then
    xdotool key --delay 12 ctrl+shift+v
  else
    xdotool key --delay 12 ctrl+v
  fi
fi

<commit_msg>style(dotfiles): fix whitespace damage<commit_after>#!/bin/bash

ACTIVE_WINDOW=$(xdotool getactivewindow)
KITTY_WINDOWS=$(xdotool search --class kitty)

# BUG: works fine # when called manually from CLI, but not when called from i3

if [ -n "${ACTIVE_WINDOW}" ]; then
  if [[ "${KITTY_WINDOWS[@]}" =~ "${ACTIVE_WINDOW}" ]]; then
    xdotool key --delay 12 ctrl+shift+v
  else
    xdotool key --delay 12 ctrl+v
  fi
fi

{'fraction_non_alphanumeric': 0.1440886699507389, 'fraction_numerical': 0.012315270935960592, 'mean_word_length': 4.245161290322581, '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': '2226912', 'n_tokens_mistral': 304, 'n_tokens_neox': 295, 'n_words': 87}