<commit_before>var mongoose = require('mongoose');
var ObjectId = mongoose.Schema.Types.ObjectId;
var Mixed = mongoose.Schema.Types.Mixed;

/**
 * Achievement Schema.
 * An achievement is a means of indicating progress
 * It reuires a certain expreiance level to be achieved one or several arenas
 *
 * @type {mongoose.Schema}
 */


var AchievementSchema = new mongoose.Schema({
    name: {
        type: String,
    },
    description: {
        type: String,
    },
    requirements: {
        type: [Mixed],
    },
    author: {
        type: ObjectId,
        ref: 'User'
    }
});


function isActive (value, condition, activation) {
    var res = false;
    switch (condition) {
        case '>=':
            res = (value >= activation);<commit_msg>I'm done working close #56<commit_after>var mongoose = require('mongoose');
var ObjectId = mongoose.Schema.Types.ObjectId;
var Mixed = mongoose.Schema.Types.Mixed;

/**
 * Achievement Schema.
 * An achievement is a means of indicating progress
 * It reuires a certain expreiance level to be achieved one or several arenas
 *
 * @type {mongoose.Schema}
 */

var AchievementSchema = new mongoose.Schema({
    name: {
        type: String,
    },
    description: {
        type: String,
    },
    requirements: {
        type: [Mixed],
    },
    author: {
        type: ObjectId,
        ref: 'User'
    }
});


function isActive (value, condition, activation) {
    var res = false;
    switch (condition) {
        case '>=':
            res = (value >= activation);
{'fraction_non_alphanumeric': 0.1194225721784777, 'fraction_numerical': 0.0013123359580052493, 'mean_word_length': 2.546511627906977, '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': '2069577', 'n_tokens_mistral': 462, 'n_tokens_neox': 464, 'n_words': 135}