<commit_before>#private SearchRequest searchRequest;
#private List<String> fields = new ArrayList<String>();
class RangeRequest
  attr_accessor :search_request, :fields

  def initialize
    @fields = []
  end

  def add_field(field)
    @fields << field
  end

  def query_params
    query_params = search_request.query_params
    query_params += "fields=#{CGI.escape(fields.join(','))}&"
    query_params
  end


#	public void addField(String field) {
#		this.fields.add(field);
#	}
#
#	public Map<String, String> getQueryParams() {
#
#		final Map<String, String> queryParams = searchRequest.getQueryParams();
#		queryParams.put("fields", Utils.join(fields));
#
#		return queryParams;
#	}
end
<commit_msg>added comment for range request<commit_after># Returns the minium and maximum values currently in 3taps for the given fields
# that match the given Common Search Criteria. The purpose of the range method
# is to provide developers with sensible values for range-based UI filters.
#
# range_request = RangeRequest.new
# search_request = SearchRequest.new
# search_request.category = 'VAUT'
# search_request.annotations = {:Make => "porsche"}
# range_request.search_request = search_request
# range_request.fields = ['year', 'price']
#
class RangeRequest
  attr_accessor :search_request, :fields

  def initialize
    @fields = []
  end

  def add_field(field)
    @fields << field
  end

  def query_params
    query_params = search_request.query_params
    query_params += "fields=#{CGI.escape(fields.join(','))}&"
    query_params
  end
end

{'fraction_non_alphanumeric': 0.1091026468689477, 'fraction_numerical': 0.0006455777921239509, 'mean_word_length': 4.677655677655678, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 8, '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': '4016932', 'n_tokens_mistral': 482, 'n_tokens_neox': 471, 'n_words': 128}