<commit_before># -*- coding: utf-8 -*-
##
##
## This file is part of Indico
## Copyright (C) 2002 - 2012 European Organization for Nuclear Research (CERN)
##
## Indico is free software: you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## Indico is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Indico.  If not, see <http://www.gnu.org/licenses/>.


"""
This file declares all core JS/CSS assets used by Indico
"""
# stdlib imports
import os

# 3rd party libs
from webassets import Bundle, Environment

# legacy imports
from MaKaC.common.Configuration import Config


class PluginEnvironment(Environment):
    def __init__(self, plugin_name, plugin_dir, url_path):
        config = Config.getInstance()
        output_dir = os.path.join(config.getHtdocsDir(), 'build', plugin_name)

        super(PluginEnvironment, self).__init__(output_dir, url_path)

        self.append_path(os.path.join(plugin_dir, 'htdocs'), url=url_path)


indico_core = Bundle('js/indico/Core/Presentation.js',
                     'js/indico/Core/Data.js',
                     'js/indico/Core/Components.js',
                     'js/indico/Core/Auxiliar.js',
                     'js/indico/Core/Buttons.js',
                     'js/indico/Core/Effects.js',
                     'js/indico/Core/Interaction/Base.js',
                     'js/indico/Core/Widgets/Base.js',
                     'js/indico/Core/Widgets/Inline.js',
                     'js/indico/Core/Widgets/DateTime.js',
                     'js/indico/Core/Widgets/Menu.js',
                     'js/indico/Core/Widgets/RichText.js',
                     'js/indico/Core/Widgets/Navigation.js',
                     'js/indico/Core/Widgets/UserList.js',
                     'js/indico/Core/Dialogs/Popup.js',
                     'js/indico/Core/Dialogs/Base.js',
                     'js/indico/Core/Dialogs/Util.js',
                     'js/indico/Core/Dialogs/Users.js',
                     'js/indico/Core/Browser.js',
                     'js/indico/Core/Services.js',
                     'js/indico/Core/Util.js',
                     'js/indico/Core/Login.js',
                     'js/indico/Core/Dragndrop.js',
                     filters='jsmin', output='indico_core_%(version)s.min.js')

indico_management = Bundle('js/indico/Management/ConfModifDisplay.js',
                           'js/indico/Management/RoomBooking.js',
                           'js/indico/Management/eventCreation.js',
                           'js/indico/Management/Timetable.js',<commit_msg>[FIX] Missing asset include<commit_after># -*- coding: utf-8 -*-
##
##
## This file is part of Indico
## Copyright (C) 2002 - 2012 European Organization for Nuclear Research (CERN)
##
## Indico is free software: you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## Indico is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Indico.  If not, see <http://www.gnu.org/licenses/>.


"""
This file declares all core JS/CSS assets used by Indico
"""
# stdlib imports
import os

# 3rd party libs
from webassets import Bundle, Environment

# legacy imports
from MaKaC.common.Configuration import Config


class PluginEnvironment(Environment):
    def __init__(self, plugin_name, plugin_dir, url_path):
        config = Config.getInstance()
        output_dir = os.path.join(config.getHtdocsDir(), 'build', plugin_name)

        super(PluginEnvironment, self).__init__(output_dir, url_path)

        self.append_path(os.path.join(plugin_dir, 'htdocs'), url=url_path)


indico_core = Bundle('js/indico/Core/Presentation.js',
                     'js/indico/Core/Data.js',
                     'js/indico/Core/Components.js',
                     'js/indico/Core/Auxiliar.js',
                     'js/indico/Core/Buttons.js',
                     'js/indico/Core/Effects.js',
                     'js/indico/Core/Interaction/Base.js',
                     'js/indico/Core/Widgets/Base.js',
                     'js/indico/Core/Widgets/Inline.js',
                     'js/indico/Core/Widgets/DateTime.js',
                     'js/indico/Core/Widgets/Menu.js',
                     'js/indico/Core/Widgets/RichText.js',
                     'js/indico/Core/Widgets/Navigation.js',
                     'js/indico/Core/Widgets/UserList.js',
                     'js/indico/Core/Dialogs/Popup.js',
                     'js/indico/Core/Dialogs/Base.js',
                     'js/indico/Core/Dialogs/Util.js',
                     'js/indico/Core/Dialogs/Users.js',
                     'js/indico/Core/Dialogs/PopupWidgets.js',
                     'js/indico/Core/Browser.js',
                     'js/indico/Core/Services.js',
                     'js/indico/Core/Util.js',
                     'js/indico/Core/Login.js',
                     'js/indico/Core/Dragndrop.js',
                     filters='jsmin', output='indico_core_%(version)s.min.js')

indico_management = Bundle('js/indico/Management/ConfModifDisplay.js',
                           'js/indico/Management/RoomBooking.js',
                           'js/indico/Management/eventCreation.js',
                           'js/indico/Management/Timetable.js',
{'fraction_non_alphanumeric': 0.11770573566084788, 'fraction_numerical': 0.003657522859517872, 'mean_word_length': 2.006496751624188, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6571521', 'n_tokens_mistral': 1795, 'n_tokens_neox': 1698, 'n_words': 389}