<commit_before>class Api::V2::CanteensController < ApiController
  inherit_resources
  actions :index, :show
  include OpenMensa::ResourceDecorator

  respond_to :json

  has_scope :limit, default: 100 do |controller, scope, value|
    scope.limit [[1, value.to_i].max, 100].min
  end

  has_scope :near, using: [ :lat, :lng, :dist ] do |controller, scope, value|
    lat = value[0].to_f
    lng = value[1].to_f

    if lat and lng
      scope.near([ lat, lng ], value[2] ? value[2].to_f : 10, units: :km).tap { |s| s.explain }
    else
      scope
    end
  end
end<commit_msg>Remove explain call.<commit_after>class Api::V2::CanteensController < ApiController
  inherit_resources
  actions :index, :show
  include OpenMensa::ResourceDecorator

  respond_to :json

  has_scope :limit, default: 100 do |controller, scope, value|
    scope.limit [[1, value.to_i].max, 100].min
  end

  has_scope :near, using: [ :lat, :lng, :dist ] do |controller, scope, value|
    lat = value[0].to_f
    lng = value[1].to_f

    if lat and lng
      scope.near([ lat, lng ], value[2] ? value[2].to_f : 10, units: :km)
    else
      scope
    end
  end
end
{'fraction_non_alphanumeric': 0.12883435582822086, 'fraction_numerical': 0.024539877300613498, 'mean_word_length': 3.3587786259541983, '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': '5098422', 'n_tokens_mistral': 438, 'n_tokens_neox': 410, 'n_words': 113}