<commit_before>module Competitions
  # Link Competition to source_events Events.
  # +points_factor+ Points multiplier for source event. Usually 0, 1, 2, 3. 0 excludes source event.
  class CompetitionEventMembership < ActiveRecord::Base
    validates_uniqueness_of :event_id, scope: :competition_id

    belongs_to :competition
    belongs_to :event
  end
end<commit_msg>Add touch to CompetitionEventMemberships so ResultsController#event stale? check works<commit_after>module Competitions
  # Link Competition to source_events Events.
  # +points_factor+ Points multiplier for source event. Usually 0, 1, 2, 3. 0 excludes source event.
  class CompetitionEventMembership < ActiveRecord::Base
    validates_uniqueness_of :event_id, scope: :competition_id

    belongs_to :competition, touch: true
    belongs_to :event, touch: true
  end
end
{'fraction_non_alphanumeric': 0.06168446026097272, 'fraction_numerical': 0.011862396204033215, 'mean_word_length': 5.160583941605839, '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': '5709174', 'n_tokens_mistral': 255, 'n_tokens_neox': 235, 'n_words': 81}