<commit_before>/*$AMPERSAND_VERSION*/
var _ = require('underscore');
var AmpersandState = require('ampersand-state');
var AmpersandIO = require('ampersand-io');

var events = {
  onFetch: 'fetch-response',
  create: 'model-create',
  update: 'model-update',
  fetch: 'model-fetch',
  remove: 'model-remove'
};

var AmpersandIOModel = AmpersandIO.extend({

  events: events,

  save: function (key, val, options) {
    var attrs, event;

    // Handle both `"key", value` and `{key: value}` -style arguments.
    if (key === null || typeof key === 'object') {
      attrs = key;
      options = val;
    } else {
      (attrs = {})[key] = val;
    }
<commit_msg>changing event name<commit_after>/*$AMPERSAND_VERSION*/
var _ = require('underscore');
var AmpersandState = require('ampersand-state');
var AmpersandIO = require('ampersand-io');

var events = {
  onFetch: 'on-model-fetch',
  create: 'model-create',
  update: 'model-update',
  fetch: 'model-fetch',
  remove: 'model-remove'
};

var AmpersandIOModel = AmpersandIO.extend({

  events: events,

  save: function (key, val, options) {
    var attrs, event;

    // Handle both `"key", value` and `{key: value}` -style arguments.
    if (key === null || typeof key === 'object') {
      attrs = key;
      options = val;
    } else {
      (attrs = {})[key] = val;
    }

{'fraction_non_alphanumeric': 0.17093373493975902, 'fraction_numerical': 0.0, 'mean_word_length': 3.4006622516556293, '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': '7110180', 'n_tokens_mistral': 463, 'n_tokens_neox': 462, 'n_words': 116}