<commit_before># == Schema Information
# Schema version: 69
#
# Table name: users
#
#  id                 :integer(11)     not null, primary key
#  login              :string(255)     
#  email              :string(255)     
#  password_hash      :string(255)     
#  created_at         :datetime        
#  admin              :boolean(1)      
#  posts_count        :integer(11)     default(0)
#  signature          :string(255)     
#  bio                :text            
#  profile_updated_at :datetime        
#  online_at          :datetime        
#  avatar             :string(255)     
#  auth_token         :string(255)     
#  auth_token_exp     :datetime        
#  time_zone          :string(255)     
#  ban_message        :string(255)     
#  banned_until       :datetime        
#

require 'digest/sha1'

class User < ActiveRecord::Base
  
  has_many :avatars, :dependent => :destroy
  has_many :events, :dependent => :destroy
  has_many :headers, :dependent => :destroy
  has_many :messages, :dependent => :destroy
  has_many :posts, :dependent => :destroy
  has_many :themes, :dependent => :destroy<commit_msg>fixing user posts ordering<commit_after># == Schema Information
# Schema version: 69
#
# Table name: users
#
#  id                 :integer(11)     not null, primary key
#  login              :string(255)     
#  email              :string(255)     
#  password_hash      :string(255)     
#  created_at         :datetime        
#  admin              :boolean(1)      
#  posts_count        :integer(11)     default(0)
#  signature          :string(255)     
#  bio                :text            
#  profile_updated_at :datetime        
#  online_at          :datetime        
#  avatar             :string(255)     
#  auth_token         :string(255)     
#  auth_token_exp     :datetime        
#  time_zone          :string(255)     
#  ban_message        :string(255)     
#  banned_until       :datetime        
#

require 'digest/sha1'

class User < ActiveRecord::Base
  
  has_many :avatars, :dependent => :destroy
  has_many :events, :dependent => :destroy
  has_many :headers, :dependent => :destroy
  has_many :messages, :dependent => :destroy
  has_many :posts, :order => 'posts.created_at desc', :dependent => :destroy
  has_many :themes, :dependent => :destroy
{'fraction_non_alphanumeric': 0.10199652777777778, 'fraction_numerical': 0.028645833333333332, 'mean_word_length': 1.842170160295931, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '4395273', 'n_tokens_mistral': 726, 'n_tokens_neox': 679, 'n_words': 159}