<commit_before>/*
 Description: The validator prevents edits from occuring to assets in the Published state only. It checks the state of
 the asset if it is present for the Published state.
 Filename: published.state.validator.js
 Created Date: 17/10/2013
 */
var validatorModule = function () {

    var log = new Log('published.state.validator');
    var LOCKED_STATES = ['Published'];


    /*
    The function checks if the validator can execute,It can execute if the model and templates are present.<commit_msg>Prevents users from editing assets in the Approved state<commit_after>/*
 Description: The validator prevents edits from occuring to assets in the Published state only. It checks the state of
 the asset if it is present for the Published state.
 Filename: published.state.validator.js
 Created Date: 17/10/2013
 */
var validatorModule = function () {

    var log = new Log('published.state.validator');
    var LOCKED_STATES = ['Published','Approved'];


    /*
    The function checks if the validator can execute,It can execute if the model and templates are present.
{'fraction_non_alphanumeric': 0.07458563535911603, 'fraction_numerical': 0.014732965009208104, 'mean_word_length': 3.963470319634703, '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': '261043', 'n_tokens_mistral': 293, 'n_tokens_neox': 276, 'n_words': 131}