<commit_before>module Sinatra
  module RocketIO

    def self.registered(app)
      app.helpers Sinatra::RocketIO::Helpers
      EM::defer do
        while !EM::reactor_running? do
          sleep 1
        end
        if options[:comet]
          require 'sinatra/cometio'
          app.register Sinatra::CometIO
        end
        if options[:websocket]
          require 'sinatra/websocketio'
          app.register Sinatra::WebSocketIO
        end
        app.get '/rocketio/rocketio.js' do
          content_type 'application/javascript'
          @js ||= ERB.new(Sinatra::RocketIO.javascript).result(binding)
        end
        Sinatra::RocketIO.emit :regist_events
      end
    end

  end
end
<commit_msg>delete routes of cometio.js and websocketio.js  #6<commit_after>module Sinatra
  module RocketIO

    def self.registered(app)
      app.helpers Sinatra::RocketIO::Helpers
      EM::defer do
        while !EM::reactor_running? do
          sleep 1
        end
        if options[:comet]
          require 'sinatra/cometio'
          app.register Sinatra::CometIO
        end
        if options[:websocket]
          require 'sinatra/websocketio'
          app.register Sinatra::WebSocketIO
        end
        app.get '/rocketio/rocketio.js' do
          content_type 'application/javascript'
          @js ||= ERB.new(Sinatra::RocketIO.javascript).result(binding)
        end
        app.routes["GET"].delete_if{|route|
          "/cometio/cometio.js" =~ route[0] or "/websocketio/websocketio.js" =~ route[0]
        }
        Sinatra::RocketIO.emit :regist_events
      end
    end

  end
end

{'fraction_non_alphanumeric': 0.09503105590062112, 'fraction_numerical': 0.003105590062111801, 'mean_word_length': 2.092130518234165, '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': '802797', 'n_tokens_mistral': 510, 'n_tokens_neox': 496, 'n_words': 100}