<commit_before>var keystone = require('keystone'),
  async = require('async'),
  _ = require('underscore'),
  util = require('util'),
  Types = keystone.Field.Types;

/**
 * Translation Model
 * =============
 */

var Translation = new keystone.List('Translation', {
  track: true,
  drilldown: "authors"
});

Translation.add({
  when: { type: Types.Date, default: Date.now, initial: true },
  author: { type: Types.Relationship, ref: 'Student', hidden: true  },
  authors: { type: Types.Relationship, ref: 'Student', initial: true, index: true, many: true },
  editor: { type: Types.Relationship, ref: 'Student', filters: { canEditArticles: true }}
}, 'Meta', {
  partial: { type: Types.Boolean, default: false, hidden: true },
  multipleAuthors: { type: Types.Boolean, noedit: true },
});

/**
 * Hooks
 * =====
 */
<commit_msg>adding a title/editor, but only if you want<commit_after>var keystone = require('keystone'),
  async = require('async'),
  _ = require('underscore'),
  util = require('util'),
  Types = keystone.Field.Types;

/**
 * Translation Model
 * =============
 */

var Translation = new keystone.List('Translation', {
  track: true,
  drilldown: "authors"
});

Translation.add({
  title: { type: Types.Text, collapse: true },
  when: { type: Types.Date, default: Date.now, initial: true },
  author: { type: Types.Relationship, ref: 'Student', hidden: true  },
  authors: { type: Types.Relationship, ref: 'Student', initial: true, index: true, many: true },
  editor: { type: Types.Relationship, ref: 'Student', filters: { canEditArticles: true }, collapse: true }
}, 'Meta', {
  partial: { type: Types.Boolean, default: false, hidden: true },
  multipleAuthors: { type: Types.Boolean, noedit: true },
});

/**
 * Hooks
 * =====
 */

{'fraction_non_alphanumeric': 0.1904218928164196, 'fraction_numerical': 0.0, 'mean_word_length': 4.350609756097561, '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': '4972293', 'n_tokens_mistral': 570, 'n_tokens_neox': 551, 'n_words': 150}