<commit_before><?php
namespace Chamilo\Libraries\Cache\Assetic;

use Chamilo\Libraries\Format\Utilities\FileAsset;

/**
 *
 * @package Chamilo\Libraries\Format\Service
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class JavascriptCacheService extends AsseticCacheService
{

    /**
     *
     * @see \Chamilo\Libraries\Format\Service\AsseticCacheService::getCachePath()
     */
    protected function getCachePath()
    {
        return $this->getPathUtilities()->getCachePath('Chamilo\Libraries\Resources\Javascript');
    }

    /**
     *
     * @see \Chamilo\Libraries\Format\Service\AsseticCacheService::getAssets()
     */
    protected function getAssets()
    {
        $assets = array();

        $javascriptPath = $this->getPathUtilities()->getJavascriptPath('Chamilo\Libraries');
        $pluginPath = $javascriptPath . 'Plugin/';

        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.browser.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.ui.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Bootstrap/bootstrap.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Bootstrap/bootstrap-toggle.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.tabula.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.dynamic.visual_tabs.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.tablednd.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.ui.tabs.paging.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.treeview.async.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.timeout.interval.idle.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.mousewheel.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.scrollable.pack.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.xml2json.pack.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.json.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.jsuggest.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.jeditable.mini.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.query.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.simplemodal.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.tree_menu.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.timepicker.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'AngularJS/angular.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'AngularJS/angular-sanitize.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Dropzone/dropzone.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'phpjs.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Utilities.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Notifications.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Help.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Visit.js');

        return $assets;
    }

    /**
     *
     * @see \Chamilo\Libraries\Format\Service\AsseticCacheService::getAssetFilters()
     */
    protected function getAssetFilters()
    {
        return array(new \Assetic\Filter\JSMinFilter());
    }
}<commit_msg>[Common] Moved conflicting javascript (jquery UI must be below bootstrap to ensure no conflicts) and removed simplemodal since this conflicts with bootstrap modal<commit_after><?php
namespace Chamilo\Libraries\Cache\Assetic;

use Chamilo\Libraries\Format\Utilities\FileAsset;

/**
 *
 * @package Chamilo\Libraries\Format\Service
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
class JavascriptCacheService extends AsseticCacheService
{

    /**
     *
     * @see \Chamilo\Libraries\Format\Service\AsseticCacheService::getCachePath()
     */
    protected function getCachePath()
    {
        return $this->getPathUtilities()->getCachePath('Chamilo\Libraries\Resources\Javascript');
    }

    /**
     *
     * @see \Chamilo\Libraries\Format\Service\AsseticCacheService::getAssets()
     */
    protected function getAssets()
    {
        $assets = array();

        $javascriptPath = $this->getPathUtilities()->getJavascriptPath('Chamilo\Libraries');
        $pluginPath = $javascriptPath . 'Plugin/';

        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.browser.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Bootstrap/bootstrap.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Bootstrap/bootstrap-toggle.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.ui.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.tabula.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.dynamic.visual_tabs.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.tablednd.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.ui.tabs.paging.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.treeview.async.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.timeout.interval.idle.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.mousewheel.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.scrollable.pack.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.xml2json.pack.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.json.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.jsuggest.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.jeditable.mini.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.query.js');
//        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.simplemodal.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.tree_menu.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Jquery/jquery.timepicker.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'AngularJS/angular.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'AngularJS/angular-sanitize.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'Dropzone/dropzone.min.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $pluginPath . 'phpjs.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Utilities.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Notifications.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Help.js');
        $assets[] = new FileAsset($this->getPathUtilities(), $javascriptPath . 'Visit.js');

        return $assets;
    }

    /**
     *
     * @see \Chamilo\Libraries\Format\Service\AsseticCacheService::getAssetFilters()
     */
    protected function getAssetFilters()
    {
        return array(new \Assetic\Filter\JSMinFilter());
    }
}
{'fraction_non_alphanumeric': 0.1761888071036336, 'fraction_numerical': 0.00023367215796237878, 'mean_word_length': 3.883057615516258, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4554282', 'n_tokens_mistral': 2553, 'n_tokens_neox': 2597, 'n_words': 410}