<commit_before>class ChannelFacts
  attr_reader :channel
  def initialize channel
    @channel = channel
  end

  def add_fact fact
    channel.sorted_internal_facts.add(fact)
  end

  def remove_fact(fact)
    channel.sorted_internal_facts.delete(fact) if channel.sorted_internal_facts.include?(fact)
    Resque.enqueue(RemoveFactFromChannel, fact.id, channel.id)
    channel.activity(channel.created_by,:removed,fact,:from,channel)
  end

  def include? obj
    channel.sorted_internal_facts.include?(obj)
  end
end
<commit_msg>Removed old activity. No need for migration, an earlier migration removed all activities with invalid actions (of which this is one)<commit_after>class ChannelFacts
  attr_reader :channel
  def initialize channel
    @channel = channel
  end

  def add_fact fact
    channel.sorted_internal_facts.add(fact)
  end

  def remove_fact(fact)
    channel.sorted_internal_facts.delete(fact) if channel.sorted_internal_facts.include?(fact)
    Resque.enqueue(RemoveFactFromChannel, fact.id, channel.id)
  end

  def include? obj
    channel.sorted_internal_facts.include?(obj)
  end
end

{'fraction_non_alphanumeric': 0.07387387387387387, 'fraction_numerical': 0.0, 'mean_word_length': 4.697435897435898, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5814074', 'n_tokens_mistral': 356, 'n_tokens_neox': 345, 'n_words': 81}