<commit_before>#!/bin/bash

cd ~/hotkey-ctl
if [ "$1" = "up" ]
then
  amixer set Master 5%+ unmute
  myvolume=`amixer get 'Master',0 | gawk 'match($0, /\[([0-9]*)%\]/, m) {print m[1]; exit;}'`
  notify-send " " -i /usr/share/icons/gnome/32x32/apps/multimedia-volume-control.png -h int:value:$myvolume -h string:x-canonical-private-synchronous:myvolume &
  aplay ./pop.wav
elif [ "$1" = "down" ]
then
  amixer set Master 5%- unmute
  myvolume=`amixer get 'Master',0 | gawk 'match($0, /\[([0-9]*)%\]/, m) {print m[1]; exit;}'`
  notify-send " " -i /usr/share/icons/gnome/32x32/apps/multimedia-volume-control.png -h int:value:$myvolume -h string:x-canonical-private-synchronous:volume &
  aplay ./pop.wav
fi<commit_msg>split logic for pulse and ALSA<commit_after>#!/bin/bash

cd ~/hotkey-ctl

while [[ $# > 0 ]]
do
key="$1"

case $key in
    pony)
    PULSE=true
    ;;
    up)
    DIR="up"
    ;;
    down)
    DIR="down"
    ;;
    --default)
    DEFAULT=YES
    ;;
    *)
            # unknown option
    ;;
esac
shift
done


if [ "${DIR}" = "up" ]
then
  if [ "$PULSE" = true ]
  then
    ponymix -c broadwell-rt286 increase 5% 
    myvolume=`ponymix -c broadwell-rt286 get-volume`
  else
    amixer set Master 5%+ unmute
    myvolume=`amixer get 'Master',0 | gawk 'match($0, /\[([0-9]*)%\]/, m) {print m[1]; exit;}'`
  fi
  notify-send " " -i /usr/share/icons/gnome/48x48/apps/multimedia-volume-control.png -h int:value:$myvolume -h string:x-canonical-private-synchronous:myvolume &
  aplay ./pop.wav
elif [ "${DIR}" = "down" ]
then
  if [ "$PULSE" = true ]
  then
    ponymix -c broadwell-rt286 decrease 5% 
    myvolume=`ponymix -c broadwell-rt286 get-volume`
  else
    amixer set Master 5%- unmute
    myvolume=`amixer get 'Master',0 | gawk 'match($0, /\[([0-9]*)%\]/, m) {print m[1]; exit;}'`
  fi
  notify-send " " -i /usr/share/icons/gnome/48x48/apps/multimedia-volume-control.png -h int:value:$myvolume -h string:x-canonical-private-synchronous:volume &
  aplay ./pop.wav
fi
{'fraction_non_alphanumeric': 0.1900201612903226, 'fraction_numerical': 0.029233870967741934, 'mean_word_length': 3.0593047034764824, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '439317', 'n_tokens_mistral': 851, 'n_tokens_neox': 796, 'n_words': 174}