<commit_before>﻿var sfSeparator = "_",
    sfPrefix = "prefix",
    sfPrefixToIgnore = "prefixToIgnore",
    sfTabId = "sfTabId",
    sfPartialViewName = "sfPartialViewName",
    sfReactive = "sfReactive",
    sfFieldErrorClass = "field-validation-error",
    sfInputErrorClass = "input-validation-error",
    sfSummaryErrorClass = "validation-summary-errors",
    sfInlineErrorVal = "inlineVal",
    sfGlobalErrorsKey = "sfGlobalErrors",
    sfGlobalValidationSummary = "sfGlobalValidationSummary",

    sfRuntimeInfo = "sfRuntimeInfo",
    sfStaticInfo = "sfStaticInfo",
    sfImplementations = "sfImplementations",
    sfEntity = "sfEntity",
    sfToStr = "sfToStr",
    sfLink = "sfLink",
    sfIndex = "sfIndex",
    sfTicks = "sfTicks",

    sfItemsContainer = "sfItemsContainer",
    sfRepeaterItem = "sfRepeaterItem",

    sfBtnCancel = "sfBtnCancel",
    sfBtnOk = "sfBtnOk",

    sfQueryUrlName = "sfQueryUrlName",
    sfTop = "sfTop",
    sfAllowMultiple = "sfAllowMultiple",
    sfView = "sfView",
    sfEntityTypeName = "sfEntityTypeName",

    sfIdRelated = "sfIdRelated",
    sfRuntimeTypeRelated = "sfRuntimeTypeRelated",

    lang = {
        "error": "Error",
        "saving": "Guardando...",
        "saved": "Guardado",
        "searching": "Buscando...",
        "buscar": "Buscar",
        "executingOperation": "Ejecutando operación...",
        "operationExecuted": "Operación ejecutada",
        "noElementsSelected": "Debe seleccionar algún elemento",
        "popupErrors": "Hay errores en la entidad, ¿desea continuar?",
        "popupErrorsStop": "Hay errores en la entidad",
        "0results": "No results have been found" 
    };

    var SF = {};

    var StaticInfo = function(_prefix) {
        this.prefix = _prefix;
        this._staticType = 0;
        this._isEmbedded = 1;
        this._isReadOnly = 2;

        this.find = function() {
            return $('#' + this.prefix.compose(sfStaticInfo));
        };
        this.value = function() {
            return this.find().val();
        };
        this.toArray = function() {
            return this.value().split(";")
        };
        this.toValue = function(array) {
            return array.join(";");     //return array[0] + ";" + array[1] + ";" + array[2];
        };
        this.getValue = function(key) {
            var array = this.toArray();
            return array[key];
        };
        this.staticType = function() {
            return this.getValue(this._staticType);
        };
        this.isEmbedded = function() {
            return this.getValue(this._isEmbedded);
        };
        this.isReadOnly = function() {
            return this.getValue(this._isReadOnly);
        };
        this.createValue = function(staticType, isEmbedded, isReadOnly) {
            var array = new Array();
            array[this._staticType] = staticType;
            array[this._isEmbedded] = isEmbedded;
            array[this._isReadOnly] = isReadOnly;
            return this.toValue(array);
        };
    }
function StaticInfoFor(prefix) {
    return new StaticInfo(prefix);
}

var RuntimeInfo = function(_prefix) {
    this.prefix = _prefix;
    this._runtimeType = 0;
    this._id = 1;
    this._isNew = 2;
    this._ticks = 3;

    this.find = function() {
    return $('#' + this.prefix.compose(sfRuntimeInfo));
    };
    this.value = function() {
        return this.find().val();
    };
    this.toArray = function() {
        return this.value().split(";")
    };
    this.toValue = function(array) {
        return array.join(";"); //return array[0] + ";" + array[1] + ";" + array[2] + ";" + array[3];<commit_msg>(TFS CS 5945)<commit_after>﻿var sfSeparator = "_",
    sfPrefix = "prefix",
    sfPrefixToIgnore = "prefixToIgnore",
    sfTabId = "sfTabId",
    sfPartialViewName = "sfPartialViewName",
    sfReactive = "sfReactive",
    sfFieldErrorClass = "field-validation-error",
    sfInputErrorClass = "input-validation-error",
    sfSummaryErrorClass = "validation-summary-errors",
    sfInlineErrorVal = "inlineVal",
    sfGlobalErrorsKey = "sfGlobalErrors",
    sfGlobalValidationSummary = "sfGlobalValidationSummary",

    sfRuntimeInfo = "sfRuntimeInfo",
    sfStaticInfo = "sfStaticInfo",
    sfImplementations = "sfImplementations",
    sfEntity = "sfEntity",
    sfToStr = "sfToStr",
    sfLink = "sfLink",
    sfIndex = "sfIndex",
    sfTicks = "sfTicks",

    sfItemsContainer = "sfItemsContainer",
    sfRepeaterItem = "sfRepeaterItem",

    sfBtnCancel = "sfBtnCancel",
    sfBtnOk = "sfBtnOk",

    sfQueryUrlName = "sfQueryUrlName",
    sfTop = "sfTop",
    sfAllowMultiple = "sfAllowMultiple",
    sfView = "sfView",
    sfEntityTypeName = "sfEntityTypeName",

    sfIdRelated = "sfIdRelated",
    sfRuntimeTypeRelated = "sfRuntimeTypeRelated",

    lang = {
        "error": "Error",
        "saving": "Guardando...",
        "saved": "Guardado",
        "searching": "Buscando...",
        "buscar": "Buscar",
        "executingOperation": "Ejecutando operación...",
        "operationExecuted": "Operación ejecutada",
        "noElementsSelected": "Debe seleccionar algún elemento",
        "popupErrors": "Hay errores en la entidad, ¿desea continuar?",
        "popupErrorsStop": "Hay errores en la entidad",
        "0results": "No results have been found" 
    };

    var SF = {};

    var StaticInfo = function(_prefix) {
        this.prefix = _prefix;
        this._staticType = 0;
        this._isEmbedded = 1;
        this._isReadOnly = 2;

        this.find = function() {
            return $('#' + this.prefix.compose(sfStaticInfo));
        };
        this.value = function() {
            return this.find().val();
        };
        this.toArray = function() {
            return this.value().split(";")
        };
        this.toValue = function(array) {
            return array.join(";");
        };
        this.getValue = function(key) {
            var array = this.toArray();
            return array[key];
        };
        this.staticType = function() {
            return this.getValue(this._staticType);
        };
        this.isEmbedded = function() {
            return this.getValue(this._isEmbedded);
        };
        this.isReadOnly = function() {
            return this.getValue(this._isReadOnly);
        };
        this.createValue = function(staticType, isEmbedded, isReadOnly) {
            var array = new Array();
            array[this._staticType] = staticType;
            array[this._isEmbedded] = isEmbedded;
            array[this._isReadOnly] = isReadOnly;
            return this.toValue(array);
        };
    }
function StaticInfoFor(prefix) {
    return new StaticInfo(prefix);
}

var RuntimeInfo = function(_prefix) {
    this.prefix = _prefix;
    this._runtimeType = 0;
    this._id = 1;
    this._isNew = 2;
    this._ticks = 3;

    this.find = function() {
    return $('#' + this.prefix.compose(sfRuntimeInfo));
    };
    this.value = function() {
        return this.find().val();
    };
    this.toArray = function() {
        return this.value().split(";")
    };
    this.toValue = function(array) {
        return array.join(";");
{'fraction_non_alphanumeric': 0.13805185704274703, 'fraction_numerical': 0.0037841625788367205, 'mean_word_length': 2.4159885112494015, 'pattern_counts': {'":': 22, '<': 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': '2874422', 'n_tokens_mistral': 2192, 'n_tokens_neox': 2143, 'n_words': 414}