<commit_before>module Lyric
  module Model
    class User
      attr_accessor :user_id, :username, :first_name, :last_name, :date_created, :date_deleted, :location, :user_obj

      def initialize(user)
        user_obj = user[0]['users'][0]
        @user_id =      user_obj['userID']
        @username =     user_obj['username']
        @first_name =   user_obj['firstname']
        @last_name =    user_obj['lastname']
        @date_created = user_obj['created']
        @date_deleted = user_obj['deleted']
        @location = []
        user.each do |u|
          @location << Lyric::Model::Location.new(u)
        end
      end
    end
  end
end<commit_msg>need to work on the .each problem. This just ignores it.<commit_after>module Lyric
  module Model
    class User
      attr_accessor :user_id, :username, :first_name, :last_name, :date_created, :date_deleted, :location, :user_obj

      def initialize(user)
        user_obj = user[0]['users'][0]
        @user_id =      user_obj['userID']
        @username =     user_obj['username']
        @first_name =   user_obj['firstname']
        @last_name =    user_obj['lastname']
        @date_created = user_obj['created']
        @date_deleted = user_obj['deleted']
        @location = []
        #user.each do |u|
        #  @location << Lyric::Model::Location.new(u)
        #end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12426900584795321, 'fraction_numerical': 0.0029239766081871343, 'mean_word_length': 2.51025641025641, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4478068', 'n_tokens_mistral': 438, 'n_tokens_neox': 442, 'n_words': 93}