<commit_before>class TopicSection < ActiveRecord::Base
  belongs_to :topic
  has_many :guides, through: :topic_section_guides

  has_many :topic_section_guides, -> { order(position: :asc) }, dependent: :destroy
  accepts_nested_attributes_for :topic_section_guides

  scope :belonging_to_topic, ->(topic_id) {
    where(topic_id: topic_id)
  }
end
<commit_msg>Remove unused topic section scope<commit_after>class TopicSection < ActiveRecord::Base
  belongs_to :topic
  has_many :guides, through: :topic_section_guides

  has_many :topic_section_guides, -> { order(position: :asc) }, dependent: :destroy
  accepts_nested_attributes_for :topic_section_guides
end

{'fraction_non_alphanumeric': 0.09228441754916793, 'fraction_numerical': 0.0, 'mean_word_length': 6.6976744186046515, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '7219077', 'n_tokens_mistral': 218, 'n_tokens_neox': 218, 'n_words': 45}