<commit_before>#!/usr/bin/env python
'''
ooiui.core.routes.science

Defines the application routes
'''
from ooiui.core.app import app
from flask import request, render_template, Response, jsonify
from flask import stream_with_context
from ooiui.core.routes.common import get_login, login_required
import requests
from ooiui.core.routes.decorators import login_required, scope_required
import json

def new_index():
    return render_template('common/home.html', tracking=app.config['GOOGLE_ANALYTICS'])

@app.route('/landing/pioneer')
@login_required()
def landing_pioneer():
    return render_template('landing/pioneer.html', tracking=app.config['GOOGLE_ANALYTICS'])


@app.route('/assets/list')
@app.route('/assets/list/')
@login_required()
def instr_index():
    return render_template('asset_management/assetslist.html', tracking=app.config['GOOGLE_ANALYTICS'])

@app.route('/assets/management')
@app.route('/assets/management/')
@login_required()
def assets_management():
    return render_template('asset_management/asset_management.html', tracking=app.config['GOOGLE_ANALYTICS'])


@app.route('/events/list/')
@login_required()
def event_list():
    return render_template('asset_management/eventslist.html', tracking=app.config['GOOGLE_ANALYTICS'])


@app.route('/event/<int:id>', methods=['GET'])
@login_required()
def event_index(id):<commit_msg>Adds missing app.route to new_index.<commit_after>#!/usr/bin/env python
'''
ooiui.core.routes.science

Defines the application routes
'''
from ooiui.core.app import app
from flask import request, render_template, Response, jsonify
from flask import stream_with_context
from ooiui.core.routes.common import get_login, login_required
import requests
from ooiui.core.routes.decorators import login_required, scope_required
import json

@app.route('cilogonhome')
def new_index():
    return render_template('common/home.html', tracking=app.config['GOOGLE_ANALYTICS'])

@app.route('/landing/pioneer')
@login_required()
def landing_pioneer():
    return render_template('landing/pioneer.html', tracking=app.config['GOOGLE_ANALYTICS'])


@app.route('/assets/list')
@app.route('/assets/list/')
@login_required()
def instr_index():
    return render_template('asset_management/assetslist.html', tracking=app.config['GOOGLE_ANALYTICS'])

@app.route('/assets/management')
@app.route('/assets/management/')
@login_required()
def assets_management():
    return render_template('asset_management/asset_management.html', tracking=app.config['GOOGLE_ANALYTICS'])


@app.route('/events/list/')
@login_required()
def event_list():
    return render_template('asset_management/eventslist.html', tracking=app.config['GOOGLE_ANALYTICS'])


@app.route('/event/<int:id>', methods=['GET'])
@login_required()
def event_index(id):
{'fraction_non_alphanumeric': 0.14487504527345166, 'fraction_numerical': 0.0, 'mean_word_length': 7.395136778115502, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6173593', 'n_tokens_mistral': 901, 'n_tokens_neox': 875, 'n_words': 156}