<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 get_query_params
    query_params = search_request.query_params
    query_params[:fields] = fields.to_s        #queryParams.put("fields", Utils.join(fields));
    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>search response<commit_after>#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 get_query_params
    query_params = search_request.query_params
    #query_params[:fields] = fields.join(',')       #queryParams.put("fields", Utils.join(fields));
    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
{'fraction_non_alphanumeric': 0.13127413127413126, 'fraction_numerical': 0.0, 'mean_word_length': 4.7380073800738005, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, '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': '2739408', 'n_tokens_mistral': 512, 'n_tokens_neox': 504, 'n_words': 104}