<commit_before>module QuestionsHelper
  require 'rest-client'
  require 'json'

  def get_question_list
    JSON.parse(RestClient.get(ENV["qm_api_url"] + "questions"))
  end

  def post_question question
    json = question.to_json(:include => :answers)
    response = RestClient.post('http://localhost:3000/questions', json, :content_type => :json , :accept => :json)
    logger.debug "THIS IS THE #{response}"
  end
end
<commit_msg>fixes hardcoded URL for qm in questions_helper<commit_after>module QuestionsHelper
  require 'rest-client'
  require 'json'

  def get_question_list
    JSON.parse(RestClient.get(ENV["qm_api_url"] + "questions"))
  end

  def post_question question
    json = question.to_json(:include => :answers)
    response = RestClient.post(ENV["qm_api_url"] + 'questions', json, :content_type => :json , :accept => :json)
    logger.debug "THIS IS THE #{response}"
  end
end

{'fraction_non_alphanumeric': 0.12680756395995552, 'fraction_numerical': 0.004449388209121246, 'mean_word_length': 4.625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3079412', 'n_tokens_mistral': 301, 'n_tokens_neox': 284, 'n_words': 69}