<commit_before># coding: utf-8
require 'shellwords'
module Patlite
  class Jsay

    def self.say(message)
      command = "/home/pi/jsay.sh #{message.shellescape}"
      `#{command}`
    end

    def self.say_show(message)
      command = <<"EOS"
curl "https://api.voicetext.jp/v1/tts" \
 -u "dzywbs4umvr3uw60:" \
 -d "text=#{message.shellescape}" \
 -d "speaker=show" | aplay -
EOS
      `#{command}`
    end
  end
end<commit_msg>light<commit_after># coding: utf-8
require 'shellwords'
module Patlite
  class Jsay

    def self.say(message)
      command = "/home/pi/jsay.sh #{message.shellescape}"
      `#{command}`
    end

    def self.say_show(message)
      command = <<"EOS"
curl "https://api.voicetext.jp/v1/tts" \
 -u "dzywbs4umvr3uw60:" \
 -d "text=#{message}" \
 -d "speaker=show" | aplay -
EOS
      `#{command}`
    end
  end
end
{'fraction_non_alphanumeric': 0.1646919431279621, 'fraction_numerical': 0.014218009478672985, 'mean_word_length': 2.8063063063063063, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3470726', 'n_tokens_mistral': 342, 'n_tokens_neox': 337, 'n_words': 67}