<commit_before><!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<script src="../bower_components/page/page.js"></script>
<script>
  window.addEventListener('WebComponentsReady', function() {

    // We use Page.js for routing. This is a Micro
    // client-side router inspired by the Express router
    // More info: https://visionmedia.github.io/page.js/

    // Middleware
    function scrollToTop(ctx, next) {
      app.scrollPageToTop();
      next();
    }

    // Routes
    page('/', scrollToTop, function() {
      app.route = 'home';
    });

    page('/users', scrollToTop, function() {
      app.route = 'users';
    });

    page('/users/:name', scrollToTop, function(data) {
      app.route = 'user-info';
      app.params = data.params;
    });

    page('/edit/users/:uid', scrollToTop, function(data) {
      app.route = 'user-edit';
      app.params = data.params;
    });

    page('/contact', scrollToTop, function() {
      app.route = 'contact';
    });

    page('/categories/:name', scrollToTop, function(data) {
      app.route = 'category-info';
      app.params = data.params;
    });

    page('/modules/:module', scrollToTop, function(data) {
      app.route = 'module-info';
      app.params = data.params;
    });

    page('/modules/edit/:module', scrollToTop, function(data) {
      app.route = 'module-edit';
      app.params = data.params;
    });

    page('/units/:unit', scrollToTop, function(data) {
      app.route = 'unit-info';
      app.params = data.params;
    });

    page('/portfolios/:portfolio', scrollToTop, function(data) {
      app.route = 'portfolio-info';
      app.params = data.params;
    });

    page('/teams/:team', scrollToTop, function(data) {
      app.route = 'team-info';
      app.params = data.params;
    });

    page('/groups/:group', scrollToTop, function(data) {
      app.route = 'group-info';
      app.params = data.params;
    });

    page('/evaluation', scrollToTop, function() {
      app.route = 'evaluation';
    });

    page('/categories', scrollToTop, function() {
      app.route = 'categories';
    });

    page('/categories/assign', scrollToTop, function() {
      app.route = 'categories-assign';
    });

    // add #! before urls
    page({
      hashbang: true
    });

  });
</script><commit_msg>Move categories/assign before categories/:name so that it does not think that assign is the name of the category we are looking for.<commit_after><!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<script src="../bower_components/page/page.js"></script>
<script>
  window.addEventListener('WebComponentsReady', function() {

    // We use Page.js for routing. This is a Micro
    // client-side router inspired by the Express router
    // More info: https://visionmedia.github.io/page.js/

    // Middleware
    function scrollToTop(ctx, next) {
      app.scrollPageToTop();
      next();
    }

    // Routes
    page('/', scrollToTop, function() {
      app.route = 'home';
    });

    page('/users', scrollToTop, function() {
      app.route = 'users';
    });

    page('/users/:name', scrollToTop, function(data) {
      app.route = 'user-info';
      app.params = data.params;
    });

    page('/edit/users/:uid', scrollToTop, function(data) {
      app.route = 'user-edit';
      app.params = data.params;
    });

    page('/contact', scrollToTop, function() {
      app.route = 'contact';
    });

    page('/categories/assign', scrollToTop, function() {
      app.route = 'categories-assign';
    });

    page('/categories/:name', scrollToTop, function(data) {
      app.route = 'category-info';
      app.params = data.params;
    });

    page('/modules/:module', scrollToTop, function(data) {
      app.route = 'module-info';
      app.params = data.params;
    });

    page('/modules/edit/:module', scrollToTop, function(data) {
      app.route = 'module-edit';
      app.params = data.params;
    });

    page('/units/:unit', scrollToTop, function(data) {
      app.route = 'unit-info';
      app.params = data.params;
    });

    page('/portfolios/:portfolio', scrollToTop, function(data) {
      app.route = 'portfolio-info';
      app.params = data.params;
    });

    page('/teams/:team', scrollToTop, function(data) {
      app.route = 'team-info';
      app.params = data.params;
    });

    page('/groups/:group', scrollToTop, function(data) {
      app.route = 'group-info';
      app.params = data.params;
    });

    page('/evaluation', scrollToTop, function() {
      app.route = 'evaluation';
    });

    page('/categories', scrollToTop, function() {
      app.route = 'categories';
    });

    // add #! before urls
    page({
      hashbang: true
    });

  });
</script>
{'fraction_non_alphanumeric': 0.15663292488012787, 'fraction_numerical': 0.0014207068016338128, 'mean_word_length': 2.727332892124421, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2099969', 'n_tokens_mistral': 1723, 'n_tokens_neox': 1677, 'n_words': 418}