<commit_before>// Include language extensions FIRST
require('./ext/functions.js')

var m = require('mithril')
// var App = require('app.js')
var Auth = require('../lib/auth.js')
var Page = require('./views/page/page.js')
var StudentProfile = require('./views/studentProfile/studentProfile.js')



var goHome = m.route.papp('/', null, null)
var routes = {

  '/': {
    controller: function () {
      // Auth.authenticate()
      var ctrl = this
    },
    view: function (ctrl) {
      return signedOutView()
    }
  },


  '/page': {
    controller: function () {
      var ctrl = this
    },
    view: function (ctrl) {
      return m.component(Page)
    }
  },


  '/profile': {
    controller: function () {
      var ctrl = this
    },
    view: function (ctrl) {
      return m.component(StudentProfile)
    }
  }

}

// m.route.mode = 'pathname';
m.route(document.getElementById('app'), '/', routes);


function signedOutView () {
  return m('.page', [
    m('h1', "Welcome to the Learn App!"),
    m('p', "Please sign in to access your course materials.")
  ])
}<commit_msg>Outcomes page present with correct routing, no styling<commit_after>// Include language extensions FIRST
// require('../ext/functions.js')

var m = require('mithril')
// var App = require('app.js')
var Auth = require('../lib/auth.js')
var Page = require('./views/page/page.js')
var Outcomes = require('./views/outcomes/outcomes.js')
var StudentProfile = require('./views/studentProfile/studentProfile.js')

// var goHome = m.route.papp('/', null, null)
var routes = {

  '/': {
    controller: function () {
      // Auth.authenticate()
      var ctrl = this
    },
    view: function (ctrl) {
      return signedOutView()
    }
  },


  '/page': {
    controller: function () {
      var ctrl = this
    },
    view: function (ctrl) {
      return m.component(Page)
    }
  },


  '/profile': {
    controller: function () {
      var ctrl = this
    },
    view: function (ctrl) {
      return m.component(StudentProfile)
    }
  },

    '/outcomes': {
    controller: function () {
      var ctrl = this
    },
    view: function (ctrl) {
      return m.component(Outcomes)
    }
  }

}

// m.route.mode = 'pathname';
m.route(document.getElementById('app'), '/', routes);


function signedOutView () {
  return m('.page', [
    m('h1', "Welcome to the Learn App!"),
    m('p', "Please sign in to access your course materials.")
  ])
}
{'fraction_non_alphanumeric': 0.171900826446281, 'fraction_numerical': 0.0008264462809917355, 'mean_word_length': 2.591988130563798, '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': '1329604', 'n_tokens_mistral': 781, 'n_tokens_neox': 749, 'n_words': 189}