<commit_before>class WordTweet < ActiveRecord::Base

  belongs_to :tweet
  belongs_to :word

  # def self.last_10k
  #   self.order('word_tweets.id DESC').limit(10000)
  # end

  def self.tech_tweets
  	self.joins(word: :word_type).
  	select("words.text as company, to_char(word_tweets.created_at, 'DD-MM-YYYY HH12:MI') as date,count(word_tweets.id) as mentions").
    limit(100000).
    order('date DESC').
  	where("word_types.text ='tech_companies'").
  	group('company,date').map{|x|[x.company, x.date, x.mentions]}
  end

end<commit_msg>reduced number of entries returned for techochamber to 10k<commit_after>class WordTweet < ActiveRecord::Base

  belongs_to :tweet
  belongs_to :word

  # def self.last_10k
  #   self.order('word_tweets.id DESC').limit(10000)
  # end

  def self.tech_tweets
  	self.joins(word: :word_type).
  	select("words.text as company, to_char(word_tweets.created_at, 'DD-MM-YYYY HH12:MI') as date,count(word_tweets.id) as mentions").
    limit(10000).
    order('date DESC').
  	where("word_types.text ='tech_companies'").
  	group('company,date').map{|x|[x.company, x.date, x.mentions]}
  end

end
{'fraction_non_alphanumeric': 0.14513274336283186, 'fraction_numerical': 0.02743362831858407, 'mean_word_length': 4.411483253588517, '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': '2452585', 'n_tokens_mistral': 473, 'n_tokens_neox': 437, 'n_words': 79}