<commit_before>require "fsr/app"
module FSR
    # http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read
  module App
    class Read < Application
      def initialize(sound_file, min = 0, max = 10, chan_var = "fsr_read_dtmf", timeout = 10000, terminators = ["#"])
        @sound_file, @min, @max, @chan_var, @timeout, @terminators = sound_file, min, max, chan_var, timeout, terminators
      end

      def arguments
        [@min, @max, @sound_file, @chan_var, @timeout, @terminators.join(",")]
      end

      def sendmsg
        "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments.join("|")]
      end

    end

    register(:read, Read)
  end<commit_msg>FSR::App::Read#sendmsg now joins arguments using " " not "|" :)<commit_after>require "fsr/app"
module FSR
    # http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_read
  module App
    class Read < Application
      def initialize(sound_file, min = 0, max = 10, chan_var = "fsr_read_dtmf", timeout = 10000, terminators = ["#"])
        @sound_file, @min, @max, @chan_var, @timeout, @terminators = sound_file, min, max, chan_var, timeout, terminators
      end

      def arguments
        [@min, @max, @sound_file, @chan_var, @timeout, @terminators.join(",")]
      end

      def sendmsg
        "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments.join(" ")]
      end

    end

    register(:read, Read)
  end
{'fraction_non_alphanumeric': 0.1465863453815261, 'fraction_numerical': 0.0107095046854083, 'mean_word_length': 3.259259259259259, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2598509', 'n_tokens_mistral': 547, 'n_tokens_neox': 521, 'n_words': 117}