<commit_before>#! /bin/bash
# THIS FILE SHOULD BE IN /etc/keyboard.sh
address="00:1F:20:4D:7D:7E"
# Simple forloop counter which tries to connect for a minute
# It should connect within the first 10 seconds.
COUNTER=0
while [ $COUNTER -lt 20 ]
do
 let COUNTER=COUNTER+1
 connected="$(sudo hidd --show)"
# if theres bluetooth devices found and any match the address of your keyboard
 if [ -e "$connected" ] && [[ "$connected==$address" ]]
 then
  sudo hidd --connect $address
 fi
 sleep 3
done<commit_msg>Update keyboard.sh<commit_after>#! /bin/bash
# THIS FILE SHOULD BE IN /etc/keyboard.sh
# Make sure the XX:XX:XX:XX:XX:XX part is filled with the correct address.
# You can find out about this by running `sudo hidd --show`
address="XX:XX:XX:XX:XX:XX"
# Simple forloop counter which tries to connect for a minute
# It should connect within the first 10 seconds.
COUNTER=0
while [ $COUNTER -lt 20 ]
do
 let COUNTER=COUNTER+1
 connected="$(sudo hidd --show)"
# if theres bluetooth devices found and any match the address of your keyboard
 if [ -e "$connected" ] && [[ "$connected==$address" ]]
 then
  sudo hidd --connect $address
 fi
 sleep 3
done
{'fraction_non_alphanumeric': 0.11411149825783973, 'fraction_numerical': 0.01916376306620209, 'mean_word_length': 4.270642201834862, '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': '6831587', 'n_tokens_mistral': 396, 'n_tokens_neox': 368, 'n_words': 150}