<commit_before>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

var supportedLanguages = ['English', 'Japanese', 'Korean'];

/**
 * Vocab Schema
 */
var VocabSchema = new Schema({
	primaryLanguage: {
		type: String,
		required: 'Please set primary language',
		enum: supportedLanguages
	},
	translations: [{
		language: {
			type: String,
			trim: true,
			enum: supportedLanguages
		}
		translation: {
			type: String,
			trim: true,
			required: "Translation is requied"
		}
	}],
	created: {
		type: Date,
		default: Date.now
	}
});

mongoose.model('Vocab', VocabSchema);<commit_msg>changes a var to a const<commit_after>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

const supportedLanguages = ['English', 'Japanese', 'Korean'];

/**
 * Vocab Schema
 */
var VocabSchema = new Schema({
	primaryLanguage: {
		type: String,
		required: 'Please set primary language',
		enum: supportedLanguages
	},
	translations: [{
		language: {
			type: String,
			trim: true,
			enum: supportedLanguages
		}
		translation: {
			type: String,
			trim: true,
			required: "Translation is requied"
		}
	}],
	created: {
		type: Date,
		default: Date.now
	}
});

mongoose.model('Vocab', VocabSchema);
{'fraction_non_alphanumeric': 0.14537107880642694, 'fraction_numerical': 0.0, 'mean_word_length': 3.8088235294117645, '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': '2113844', 'n_tokens_mistral': 486, 'n_tokens_neox': 445, 'n_words': 112}