<commit_before>﻿/*----------

// Authors: <NAME>
// Last Modification: 22/10/2014
// Version: 0.0.0.1

----------*/

var UniversalHelper = (function () {

    this.reloadPage = function () {
        window.location.reload();
    }

    this.cleanInputs= function (selectors) {
        for (var i = 0; i < selectors.length; i++) {
            $(selectors[i]).val('');
        }
    }

    this.cleanTable= function (selectorTable) {
        $(selectorTable).find('tbody>tr').remove();
    }

    this.cleanSelect = function (selectorSelectTag) {
        $(selectorSelectTag).find('option').remove();
    }

    this.showElements= function (selectors) {
        for (var i = 0; i < selectors.length; i++) {
            $(selectors[i]).show();
        }
    }

    this.hideElements = function (selectors) {
        for (var i = 0; i < selectors.length; i++) {
            $(selectors[i]).hide();
        }
    }

    this.navigateTo = function (data) {
        window.location.assign(data);
    }

    /// Function used for generate internal exceptions into library
    /// Usage: 
    ///
    /// internalException = new InternalException(agent + " is not defined.");
    /// throw internalException;
    function InternalException(message) {
       throw message; 
    }

    return (this);

}).call({});<commit_msg>Added new function<commit_after>﻿/*----------

// Authors: <NAME>
// Last Modification: 22/10/2014
// Version: 0.0.0.1

----------*/

var UniversalHelper = (function () {

    this.reloadPage = function () {
        window.location.reload();
    }

    this.cleanInputs= function (selectors) {
        for (var i = 0; i < selectors.length; i++) {
            $(selectors[i]).val('');
        }
    }

    this.cleanTable= function (selectorTable) {
        $(selectorTable).find('tbody>tr').remove();
    }

    this.cleanSelect = function (selectorSelectTag) {
        $(selectorSelectTag).find('option').remove();
    }

    this.showElements= function (selectors) {
        for (var i = 0; i < selectors.length; i++) {
            $(selectors[i]).show();
        }
    }

    this.slideOut = function (selector){
        $(selector).animate({ "left": "-=500px" }, "fast", "easein" );
        $(selector).fadeIn(100);
    }

    this.hideElements = function (selectors) {
        for (var i = 0; i < selectors.length; i++) {
            $(selectors[i]).hide();
        }
    }

    this.navigateTo = function (data) {
        window.location.assign(data);
    }

    /// Function used for generate internal exceptions into library
    /// Usage: 
    ///
    /// internalException = new InternalException(agent + " is not defined.");
    /// throw internalException;
    function InternalException(message) {
       throw message; 
    }

    return (this);

}).call({});
{'fraction_non_alphanumeric': 0.1767658659017569, 'fraction_numerical': 0.012907852276801721, 'mean_word_length': 2.103448275862069, 'pattern_counts': {'":': 1, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1829236', 'n_tokens_mistral': 861, 'n_tokens_neox': 811, 'n_words': 176}