<commit_before>require "httparty"

class EmitiiApiConnector
  attr_accessor :access_token, :params, :project_name, :emitii_subdomain

  def initialize(access_token='<KEY>', project_name='git_timelog', emitii_subdomain='jhackathon')
    @access_token = access_token
    @project_name = project_name
    @emitii_subdomain = emitii_subdomain
  end

  def update_time_tracks(params)
    HTTParty.post("http://#{@emitii_subdomain}.emitii.com/timetracks?access_token=#{@access_token}&project=#{@project}&format=json",
      { 
        :body => params.to_json,
        :basic_auth => { :username => api_key },
        :headers => { 'Content-Type' => 'application/json', 'Accept' => 'application/json'}
      })
  end
end<commit_msg>Changed the incorrected variable name [5]<commit_after>require "httparty"

class EmitiiApiConnector
  attr_accessor :access_token, :params, :project_name, :emitii_subdomain

  def initialize(access_token='<KEY>', project_name='git_timelog', emitii_subdomain='jhackathon')
    @access_token = access_token
    @project_name = project_name
    @emitii_subdomain = emitii_subdomain
  end

  def update_time_tracks(params)
    HTTParty.post("http://#{@emitii_subdomain}.emitii.com/timetracks?access_token=#{@access_token}&project=#{@project_name}&format=json",
      { 
        :body => params.to_json,
        :basic_auth => { :username => api_key },
        :headers => { 'Content-Type' => 'application/json', 'Accept' => 'application/json'}
      })
  end
end
{'fraction_non_alphanumeric': 0.13890761968981793, 'fraction_numerical': 0.0006743088334457181, 'mean_word_length': 4.84251968503937, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7235157', 'n_tokens_mistral': 493, 'n_tokens_neox': 487, 'n_words': 74}