<commit_before>class Relation
  include Neo4j::ActiveRel

  from_class :Node
  to_class   :Node
  type 'REL'

  property :label

  def self.string_for_create(from, relation, to, sentence_index)
    "(s#{sentence_index}#{from})-[s#{sentence_index.to_s+from+to}:REL { label : \"#{relation}\" }]->(s#{sentence_index}#{to})"
  end
end<commit_msg>Catch error caused by nodes linked in 2+ ways<commit_after>class Relation
  include Neo4j::ActiveRel

  from_class :Node
  to_class   :Node
  type 'REL'

  property :label

  def self.string_for_create(from, relation, to, sentence_index)
    "(s#{sentence_index}#{from})-[s#{sentence_index.to_s+from+to+SecureRandom.hex[0..5]}:REL { label : \"#{relation}\" }]->(s#{sentence_index}#{to})"
  end
end
{'fraction_non_alphanumeric': 0.16102841677943167, 'fraction_numerical': 0.006765899864682003, 'mean_word_length': 5.271186440677966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '210739', 'n_tokens_mistral': 281, 'n_tokens_neox': 275, 'n_words': 53}