<commit_before>class Person

  include DataMapper::Resource
  extend ConstraintSupport

  # properties

  property :id,   Serial
  property :name, String, :nullable => false

  # associations

  has 1, :profile,
    constraint_options(:destroy)

  # has 1, :address,
  #   :through => :profile

  has n, :project_memberships,
    constraint_options(:destroy)

  has n, :projects,
    :through => :project_memberships

  # has n, :tasks,
  #   :through => :projects

end<commit_msg>Removed now unnecessary workaround<commit_after>class Person

  include DataMapper::Resource
  extend ConstraintSupport

  # properties

  property :id,   Serial
  property :name, String, :nullable => false

  # associations

  has 1, :profile,
    constraint_options(:destroy)

  has 1, :address,
   :through => :profile

  has n, :project_memberships,
    constraint_options(:destroy)

  has n, :projects,
    :through => :project_memberships

  has n, :tasks,
    :through => :projects

end
{'fraction_non_alphanumeric': 0.1026694045174538, 'fraction_numerical': 0.004106776180698152, 'mean_word_length': 3.7560975609756095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4704036', 'n_tokens_mistral': 312, 'n_tokens_neox': 286, 'n_words': 82}