<commit_before>require "osc-ruby"
module Oscflow
  module Client
    
    class OscSend
      def connect(host="localhost",port=8080)
        @client = OSC::Client.new( host, port )
        puts "Connected to #{host}:#{port}"
      end
      
      def send_data(channel, *args)
        puts "send message #{args}"
        @client.send( OSC::Message.new( "/chan/#{channel}" , args.to_s ))
      end
      
      def rec(channel)
        #connect(host, port)
        @client.send( OSC::Message.new( "/chan/#{channel}" , "rec" ))
      end
      
      def stop(channel)
        #connect(host,port)
        @client.send( OSC::Message.new( "/chan/#{channel}" , "stop" ))
      end
    end
  end
end<commit_msg>updates<commit_after>require "osc-ruby"
module Oscflow
  module Client
    
    class OscSend
      def connect(host="localhost",port=8080)
        @client = OSC::Client.new( host, port )
        puts "Connected to #{host}:#{port}"
      end
      
      def send_data(channel, *args)
        #puts "send message #{args}"
        @client.send( OSC::Message.new( "/chan/#{channel}" , args.to_s ))
      end
      
      def rec(channel)
        #connect(host, port)
        @client.send( OSC::Message.new( "/chan/#{channel}" , "rec" ))
      end
      
      def stop(channel)
        #connect(host,port)
        @client.send( OSC::Message.new( "/chan/#{channel}" , "stop" ))
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.15259048970901348, 'fraction_numerical': 0.0056777856635912, 'mean_word_length': 2.1543624161073827, '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': '1660361', 'n_tokens_mistral': 470, 'n_tokens_neox': 466, 'n_words': 101}