<commit_before>class StopsController < ApplicationController

  # def data_bus_stops
  #   hash = BusRoute.bus_hash_by_stop_count
  #   stop_array = BusRoute.order_by_stops(hash)
  #   respond_to do |format|
  #     format.json {
  #       render :json => [stop_array, stop_array.map{|d| d[1] }.flatten]
  #     }
  #   end
  # end

  def data_stop_location_and_bus_count
    puts "hi"
    respond_to do |format|
      format.json {
        render :json => Stop.hash_by_location_and_bus_count.to_json
      }
    end
  end

  #for map and graph
  def boarding_average_graph
    respond_to do |format|
      format.json {
        render :json => Stop.hash_average_boarding_data_by_stop.to_json
      }
    end
  end

  #for graph of stops by number of buses
  def stops_by_buses
    hash = Stop.stop_hash_by_bus_route_count
    bus_array = Stop.order_by_bus_route_count(hash)
    respond_to do |format|
      format.json {
        render :json => [bus_array, bus_array.map{|d| d[1] }.flatten]
      }
    end
  end
end


<commit_msg>cleaned up stop.rb, no code change<commit_after>class StopsController < ApplicationController

  def data_stop_location_and_bus_count
    respond_to do |format|
      format.json {
        render :json => Stop.hash_by_location_and_bus_count.to_json
      }
    end
  end

  #for map and graph
  def boarding_average_graph
    respond_to do |format|
      format.json {
        render :json => Stop.hash_average_boarding_data_by_stop.to_json
      }
    end
  end

  #for graph of stops by number of buses
  def stops_by_buses
    hash = Stop.stop_hash_by_bus_route_count
    bus_array = Stop.order_by_bus_route_count(hash)
    respond_to do |format|
      format.json {
        render :json => [bus_array, bus_array.map{|d| d[1] }.flatten]
      }
    end
  end
end



{'fraction_non_alphanumeric': 0.07777777777777778, 'fraction_numerical': 0.0016666666666666668, 'mean_word_length': 2.791578947368421, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '1539239', 'n_tokens_mistral': 651, 'n_tokens_neox': 628, 'n_words': 137}