<commit_before>export default {
  methods: {
    blocking: function(reasons) {
      return reasons.filter(r => {
        return r.isBlockingHit && !r.isRelatedBlocked
      })
    },
    nonBlocking: function(reasons) {
      return reasons.filter(r => {
        return !r.isBlockingHit && !r.isRelatedBlocked && !r.isNeutralHit
      })
    },
    getScore: function(reasons) {
      var allReasons = reasons.length
      var nonBlocking = this.nonBlocking(reasons).length
      var blocking = this.blocking(reasons).length
      if (blocking === 0) {
        return 0
      }
      return -(blocking / nonBlocking)
    }
  }
}
<commit_msg>Modified score calculation<commit_after>export default {
  methods: {
    blocking: function(reasons) {
      return reasons.filter(r => {
        return r.isBlockingHit && !r.isRelatedBlocked
      })
    },
    nonBlocking: function(reasons) {
      return reasons.filter(r => {
        return !r.isBlockingHit && !r.isRelatedBlocked && !r.isNeutralHit
      })
    },
    getScore: function(reasons) {
      var allReasons = reasons.length
      var nonBlocking = this.nonBlocking(reasons).length
      var blocking = this.blocking(reasons).length
      if (blocking === 0) {
        return nonBlocking
      }
      return -(blocking / nonBlocking)
    }
  }
}

{'fraction_non_alphanumeric': 0.11382113821138211, 'fraction_numerical': 0.0022172949002217295, 'mean_word_length': 2.17096018735363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1511788', 'n_tokens_mistral': 436, 'n_tokens_neox': 405, 'n_words': 76}