<commit_before>module ApplicationHelper


  def google_sheet_evening
    require 'uri'
    require 'net/http'

    url = URI("https://sheets.googleapis.com/v4/spreadsheets/1CU0AYzap4OMN0yieA5vA4zCdZvoy5sfKBprl16y2kUc/values/Sheet1!A1")

    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    request = Net::HTTP::Get.new(url)
    request["authorization"] = 'Bearer <KEY>'
    request["content-type"] = 'application/json'
    request["cache-control"] = 'no-cache'
    puts request

    response = http.request(request)
    puts response.read_body
    if JSON.parse(response.read_body)["values"]
      p JSON.parse(response.read_body)["values"][0][0]
    else
      nil
    end
  end


  def google_sheet_morning
    require 'uri'
    require 'net/http'

    url = URI("https://sheets.googleapis.com/v4/spreadsheets/1HIXWAVU-DW23WorZqU5hV5aS2T6TM9ENpxlzGT2_N7A/values/Sheet1!A1")

    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    request = Net::HTTP::Get.new(url)
    request["authorization"] = 'Bearer <KEY>'
    request["content-type"] = 'application/json'
    request["cache-control"] = 'no-cache'
    puts request

    response = http.request(request)
    puts response.read_body
    if JSON.parse(response.read_body)["values"]
      p JSON.parse(response.read_body)["values"][0][0]
    else
      nil
    end
  end


  def google_sheet_night
    require 'uri'
    require 'net/http'

    url = URI("https://sheets.googleapis.com/v4/spreadsheets/1DmI8wo2BHyU9loVf3NVh86dYd-SAnItNIy9-eiSULjI/values/Sheet1!A1")

    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    request = Net::HTTP::Get.new(url)
    request["authorization"] = 'Bearer <KEY>'
    request["content-type"] = 'application/json'
    request["cache-control"] = 'no-cache'
    puts request

    response = http.request(request)
    puts response.read_body
    if JSON.parse(response.read_body)["values"]
      p JSON.parse(response.read_body)["values"][0][0]
    else
      nil
    end
  end


  def febreze_light(word)
    require 'uri'
    require 'net/http'<commit_msg>Update application_helper.rb<commit_after>module ApplicationHelper
  let auth_token = "ya<PASSWORD>CrncvWVMTVYJ1Xq5fYMA8QDImb0xzKp2v2iddxH0UDE_otWkqOzSpVqmoytjLIQ5urZYHj2SJ_QLEoVIxL3TEW5g4lviKBtjSb1aoj8"

  def google_sheet_evening
    require 'uri'
    require 'net/http'

    url = URI("https://sheets.googleapis.com/v4/spreadsheets/1CU0AYzap4OMN0yieA5vA4zCdZvoy5sfKBprl16y2kUc/values/Sheet1!A1")

    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    request = Net::HTTP::Get.new(url)
    request["authorization"] = 'Bearer #{auth_token}'
    request["content-type"] = 'application/json'
    request["cache-control"] = 'no-cache'
    puts request

    response = http.request(request)
    puts response.read_body
    if JSON.parse(response.read_body)["values"]
      p JSON.parse(response.read_body)["values"][0][0]
    else
      nil
    end
  end


  def google_sheet_morning
    require 'uri'
    require 'net/http'

    url = URI("https://sheets.googleapis.com/v4/spreadsheets/1HIXWAVU-DW23WorZqU5hV5aS2T6TM9ENpxlzGT2_N7A/values/Sheet1!A1")

    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    request = Net::HTTP::Get.new(url)
    request["authorization"] = 'Bearer #{auth_token}'
    request["content-type"] = 'application/json'
    request["cache-control"] = 'no-cache'
    puts request

    response = http.request(request)
    puts response.read_body
    if JSON.parse(response.read_body)["values"]
      p JSON.parse(response.read_body)["values"][0][0]
    else
      nil
    end
  end


  def google_sheet_night
    require 'uri'
    require 'net/http'

    url = URI("https://sheets.googleapis.com/v4/spreadsheets/1DmI8wo2BHyU9loVf3NVh86dYd-SAnItNIy9-eiSULjI/values/Sheet1!A1")

    http = Net::HTTP.new(url.host, url.port)
    http.use_ssl = true
    http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    request = Net::HTTP::Get.new(url)
    request["authorization"] = 'Bearer #{auth_token}'
    request["content-type"] = 'application/json'
    request["cache-control"] = 'no-cache'
    puts request

    response = http.request(request)
    puts response.read_body
    if JSON.parse(response.read_body)["values"]
      p JSON.parse(response.read_body)["values"][0][0]
    else
      nil
    end
  end


  def febreze_light(word)
    require 'uri'
    require 'net/http'
{'fraction_non_alphanumeric': 0.13337615071719117, 'fraction_numerical': 0.021408691928923144, 'mean_word_length': 3.634920634920635, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '225583', 'n_tokens_mistral': 1803, 'n_tokens_neox': 1736, 'n_words': 247}