<commit_before>#!/bin/bash

# Get current Spotify status with play/pause button
#
# by <NAME> (<EMAIL>)
#
# Shows current track information from spotify
# 10 second refresh might be a little too quick. Tweak to your liking.

if [ "$1" = 'launch' ]; then
  osascript -e 'tell application "Spotify" to activate'
  exit
fi

if [ $(osascript -e 'application "Spotify" is running') = "false" ]; then
  echo "Spotify Not Running"
  echo "---"
  echo "Launch Spotify | bash=$0 param1=launch terminal=false"
  exit
fi

if [ "$1" = 'playpause' ]; then
  osascript -e 'tell application "Spotify" to playpause'
  exit
fi

if [ "$1" = 'previous' ]; then<commit_msg>Update not running text to be ♫<commit_after>#!/bin/bash

# Get current Spotify status with play/pause button
#
# by <NAME> (<EMAIL>)
#
# Shows current track information from spotify
# 10 second refresh might be a little too quick. Tweak to your liking.

if [ "$1" = 'launch' ]; then
  osascript -e 'tell application "Spotify" to activate'
  exit
fi

if [ $(osascript -e 'application "Spotify" is running') = "false" ]; then
  echo "♫"
  echo "---"
  echo "Spotify is not running"
  echo "Launch Spotify | bash=$0 param1=launch terminal=false"
  exit
fi

if [ "$1" = 'playpause' ]; then
  osascript -e 'tell application "Spotify" to playpause'
  exit
fi

if [ "$1" = 'previous' ]; then
{'fraction_non_alphanumeric': 0.13303437967115098, 'fraction_numerical': 0.01046337817638266, 'mean_word_length': 3.816546762589928, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6246372', 'n_tokens_mistral': 477, 'n_tokens_neox': 449, 'n_words': 172}