<commit_before>ETahi.SerializesHasMany = Ember.Mixin.create
  relationshipMap: ->
    {
      manyToNone: true
      manyToMany: true
      manyToOne: true
    }

  toSnakeCase: (string)->
    string.replace /([A-Z])/g, ($1)->
      "_" + $1.toLowerCase()

  serializeHasMany: (record, json, relationship) ->
    return unless record.get('relationshipsToSerialize')?.contains(relationship.key)

    key = relationship.key
    idsKey = key.substr(0, key.length-1) + "_ids"
    relationshipType = DS.RelationshipChange.determineRelationshipType(record.constructor, relationship)
    if @relationshipMap relationshipType<commit_msg>Change determineRelationshipType signature.<commit_after>ETahi.SerializesHasMany = Ember.Mixin.create
  relationshipMap: ->
    {
      manyToNone: true
      manyToMany: true
      manyToOne: true
    }

  toSnakeCase: (string)->
    string.replace /([A-Z])/g, ($1)->
      "_" + $1.toLowerCase()

  serializeHasMany: (record, json, relationship) ->
    return unless record.get('relationshipsToSerialize')?.contains(relationship.key)

    key = relationship.key
    idsKey = key.substr(0, key.length-1) + "_ids"
    relationshipType = record.constructor.determineRelationshipType(relationship)
    if @relationshipMap relationshipType
{'fraction_non_alphanumeric': 0.1225296442687747, 'fraction_numerical': 0.006324110671936759, 'mean_word_length': 3.7954545454545454, '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': '4226955', 'n_tokens_mistral': 389, 'n_tokens_neox': 377, 'n_words': 68}