<commit_before>class SocketBluray < Wescontrol::SocketDevice

  configure do
    DaemonKit.logger.info "@Initializing SocketBluray at URI #{options[:uri]} with name #{name}"
  end

  command :play, 
      :action => proc{
      send_string "PL\r\n"
  }
  command :stop,
    :action => proc{
      send_string "99RJ\r\n"
    }
  command :pause,
    :action => proc{
      send_string "ST\r\n"
    }
  command :forward,
    :action => proc{
      send_string "NF\r\n"
    }
  command :back,
    :action => proc{
      send_string "NR\r\n"
    }
  command :next,
    :action => proc{
      send_string "SF\r\n"
    }
  command :previous,
    :action => proc{
      send_string "SR\r\n"
    }
  command :title,
    :action => proc{
      send_string "/A181AFB9/RU\r\n"
    }
  command :menu,
    :action => proc{
      send_string "/A181AFB4/RU\r\n"
    }
  command :up,
    :action => proc{
      send_string "/A184FFFF/RU\r\n"
    }
  command :right,
    :action => proc{
      send_string "/A186FFFF/RU\r\n"
    }
  command :down,
    :action => proc{
      send_string "/A185FFFF/RU\r\n"
    }
  command :left,
    :action => proc{
      send_string "/A187FFFF/RU\r\n"
    }
  command :enter,
    :action => proc{
      send_string "/A181AFEF/RU\r\n"
    }


  state_var :operational, :type => :boolean

  requests do<commit_msg>Fixed issue where the requests slowed down the commands<commit_after>class SocketBluray < Wescontrol::SocketDevice

  configure do
    DaemonKit.logger.info "@Initializing SocketBluray at URI #{options[:uri]} with name #{name}"
  end

  command :play, 
      :action => proc{
      send_string "PL\r\n"
  }
  command :stop,
    :action => proc{
      send_string "99RJ\r\n"
    }
  command :pause,
    :action => proc{
      send_string "ST\r\n"
    }
  command :forward,
    :action => proc{
      send_string "NF\r\n"
    }
  command :back,
    :action => proc{
      send_string "NR\r\n"
    }
  command :next,
    :action => proc{
      send_string "SF\r\n"
    }
  command :previous,
    :action => proc{
      send_string "SR\r\n"
    }
  command :title,
    :action => proc{
      send_string "/A181AFB9/RU\r\n"
    }
  command :menu,
    :action => proc{
      send_string "/A181AFB4/RU\r\n"
    }
  command :up,
    :action => proc{
      send_string "/A184FFFF/RU\r\n"
    }
  command :right,
    :action => proc{
      send_string "/A186FFFF/RU\r\n"
    }
  command :down,
    :action => proc{
      send_string "/A185FFFF/RU\r\n"
    }
  command :left,
    :action => proc{
      send_string "/A187FFFF/RU\r\n"
    }
  command :enter,
    :action => proc{
      send_string "/A181AFEF/RU\r\n"
    }


  state_var :operational, :type => :boolean

  requests do
    send :ping, "\r\n", 1.0
{'fraction_non_alphanumeric': 0.14516129032258066, 'fraction_numerical': 0.01906158357771261, 'mean_word_length': 2.1732558139534883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '57123', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1024, 'n_words': 221}