<commit_before># -*- coding: utf-8 -*-

from pyramid.config import Configurator
from pyramid.settings import asbool
from c2cgeoportal import locale_negotiator, \
    add_interface, INTERFACE_TYPE_NGEO_CATALOGUE
from c2cgeoportal.resources import FAModels
from c2cgeoportal.lib.authentication import create_authentication
from geoportailv3.resources import Root


def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(
        root_factory=Root, settings=settings,
        locale_negotiator=locale_negotiator,
        authentication_policy=create_authentication(settings)
    )

    config.add_settings({'srid': 2169})

    config.include('c2cgeoportal')
    config.include('pyramid_closure')

    config.add_translation_dirs('geoportailv3:locale/')

    if asbool(config.get_settings().get('enable_admin_interface')):
        config.formalchemy_admin(
            'admin', package='geoportailv3',
            view='fa.jquery.pyramid.ModelView', factory=FAModels
        )

    config.add_route('checker_all', '/checker_all')

    # scan view decorator for adding routes
    config.scan()

    # add the main static view
    config.add_static_view(
        'proj', 'geoportailv3:static',
        cache_max_age=int(config.get_settings()["default_max_age"])
    )

    # add the interfaces
    add_interface(config, interface_type=INTERFACE_TYPE_NGEO_CATALOGUE)

    # static views for js resources in node_modules and for closure
    settings = config.get_settings()
    config.add_static_view('node_modules', settings.get('node_modules_path'))
    config.add_static_view('closure', settings.get('closure_library_path'))

    # view and route for the ngeo.html page
    config.add_route('ngeo', '/ngeo')
    config.add_route('wms', '/wms')
    return config.make_wsgi_app()<commit_msg>Remove ngeo view completely<commit_after># -*- coding: utf-8 -*-

from pyramid.config import Configurator
from pyramid.settings import asbool
from c2cgeoportal import locale_negotiator, \
    add_interface, INTERFACE_TYPE_NGEO_CATALOGUE
from c2cgeoportal.resources import FAModels
from c2cgeoportal.lib.authentication import create_authentication
from geoportailv3.resources import Root


def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(
        root_factory=Root, settings=settings,
        locale_negotiator=locale_negotiator,
        authentication_policy=create_authentication(settings)
    )

    config.add_settings({'srid': 2169})

    config.include('c2cgeoportal')
    config.include('pyramid_closure')

    config.add_translation_dirs('geoportailv3:locale/')

    if asbool(config.get_settings().get('enable_admin_interface')):
        config.formalchemy_admin(
            'admin', package='geoportailv3',
            view='fa.jquery.pyramid.ModelView', factory=FAModels
        )

    config.add_route('checker_all', '/checker_all')

    # scan view decorator for adding routes
    config.scan()

    # add the main static view
    config.add_static_view(
        'proj', 'geoportailv3:static',
        cache_max_age=int(config.get_settings()["default_max_age"])
    )

    # add the interfaces
    add_interface(config, interface_type=INTERFACE_TYPE_NGEO_CATALOGUE)

    # static views for js resources in node_modules and for closure
    settings = config.get_settings()
    config.add_static_view('node_modules', settings.get('node_modules_path'))
    config.add_static_view('closure', settings.get('closure_library_path'))

    config.add_route('wms', '/wms')
    return config.make_wsgi_app()
{'fraction_non_alphanumeric': 0.1006030701754386, 'fraction_numerical': 0.00712719298245614, 'mean_word_length': 4.190611664295875, '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': '2849314', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1118, 'n_words': 211}