<commit_before># frozen_string_literal: true

class Similarity
  include DataMapper::Resource

  property :id, Serial
  property :entry_id, Integer
  property :similar_entry_id, Integer
  property :score, Float

  belongs_to :entry
  belongs_to :similar_entry, model: 'Entry', child_key: :similar_entry_id
end<commit_msg>Drop id column from similarities<commit_after># frozen_string_literal: true

class Similarity
  include DataMapper::Resource

  property :entry_id, Integer, key: true
  property :similar_entry_id, Integer, key: true
  property :score, Float

  belongs_to :entry
  belongs_to :similar_entry, model: 'Entry', child_key: :similar_entry_id
end
{'fraction_non_alphanumeric': 0.07575757575757576, 'fraction_numerical': 0.0, 'mean_word_length': 6.184782608695652, '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': '4714450', 'n_tokens_mistral': 209, 'n_tokens_neox': 201, 'n_words': 60}