<commit_before>class GithubIssue < ActiveRecord::Base
  belongs_to :github_repository
  belongs_to :github_user

  API_FIELDS = [:number, :state, :title, :body, :locked, :closed_at]

  def github_client(token = nil)
    AuthToken.fallback_client(token)
  end

  # def update_from_github(token = nil)
  #   begin
  #     r = github_client(token).repo(id_or_name, accept: 'application/vnd.github.drax-preview+json').to_hash
  #     return if r.nil? || r.empty?
  #     self.github_id = r[:id]
  #     self.full_name = r[:full_name] if self.full_name.downcase != r[:full_name].downcase<commit_msg>Record created_at and updated_at on issues<commit_after>class GithubIssue < ActiveRecord::Base
  belongs_to :github_repository
  belongs_to :github_user

  API_FIELDS = [:number, :state, :title, :body, :locked, :closed_at, :created_at, :updated_at]

  def github_client(token = nil)
    AuthToken.fallback_client(token)
  end

  # def update_from_github(token = nil)
  #   begin
  #     r = github_client(token).repo(id_or_name, accept: 'application/vnd.github.drax-preview+json').to_hash
  #     return if r.nil? || r.empty?
  #     self.github_id = r[:id]
  #     self.full_name = r[:full_name] if self.full_name.downcase != r[:full_name].downcase
{'fraction_non_alphanumeric': 0.12711182622687048, 'fraction_numerical': 0.0, 'mean_word_length': 4.316239316239316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2329290', 'n_tokens_mistral': 458, 'n_tokens_neox': 445, 'n_words': 82}