<commit_before>//= require_self
//= require_tree .

codepuppy = angular.module('codepuppy', ['ngRoute', 'ngCookies', 'ui.bootstrap',
  'angularFileUpload']);

codepuppy.config(function($routeProvider) {
  // TODO: use session information to determine role.  Should be one of 'student', 'leader'
  var role = 'student';
  var capRole = 'Student';

  // Student-specific routes:
  if(role === 'student') {
    $routeProvider.when('/:courseID/:assignmentID/submit', {
      templateUrl: '/assets/pages/fileUpload/' + role + '/upload.html',
      controller: 'FileUploadCtrl'
    });
  }

  $routeProvider
  .when('/', {
    templateUrl: '/assets/pages/home/' + role + '/' + role + 'Home.html',
    controller: capRole + 'HomeCtrl'
  })
  .when('/courses/:courseID', {
    templateUrl: '/assets/pages/course/' + role +'/' + role + 'Course.html',
    controller: capRole + 'CourseCtrl'
  })
  .when('/courses/:courseID/assignments/:assignmentID', {
    templateUrl: '/assets/pages/assignment/' + role + '/' + role + 'Assignment.html',
    controller: capRole + 'AssignmentCtrl'
  })
  .when('/courses/:courseID/assignments/:assignmentID/' +
        'submissions/:submissionID',
  {
    templateUrl: '/assets/pages/submission/' + role + '/' + role + 'Submission.html',
    controller: capRole + 'SubmissionCtrl'
  })
  .when('/sessions/verify', {
    templateUrl: '/assets/pages/sessions/verify/sessions-verify.html',
    controller: 'SessionsVerifyCtrl'<commit_msg>remove route for session verify, fix route for submitting code, decomp capitalization (bandaid)<commit_after>//= require_self
//= require_tree .

codepuppy = angular.module('codepuppy', ['ngRoute', 'ngCookies', 'ui.bootstrap',
  'angularFileUpload']);

codepuppy.config(function($routeProvider) {
  // TODO: use session information to determine role.  Should be one of
  // 'student', 'leader'
  var upperCaseFirst = function(str) {
    if (str.length === 0) {
        return str;
    }
    return str.charAt(0).toUpperCase() + str.slice(1);
  };

  var role = 'student';
  var capRole = upperCaseFirst(role);

  // Student-specific routes:
  if (role === 'student') {
    $routeProvider.when('/courses/:courseID/assignments/:assignmentID/submit', {
      templateUrl: '/assets/pages/fileUpload/' + role + '/upload.html',
      controller: 'FileUploadCtrl'
    });
  }

  $routeProvider
  .when('/', {
    templateUrl: '/assets/pages/home/' + role + '/' + role + 'Home.html',
    controller: capRole + 'HomeCtrl'
  })
  .when('/courses/:courseID', {
    templateUrl: '/assets/pages/course/' + role + '/' + role +
        'Course.html',
    controller: capRole + 'CourseCtrl'
  })
  .when('/courses/:courseID/assignments/:assignmentID', {
    templateUrl: '/assets/pages/assignment/' + role + '/' + role +
        'Assignment.html',
    controller: capRole + 'AssignmentCtrl'
  })
  .when('/courses/:courseID/assignments/:assignmentID/' +
        'submissions/:submissionID',
  {
    templateUrl: '/assets/pages/submission/' + role + '/' + role +
        'Submission.html',
    controller: capRole + 'SubmissionCtrl'
{'fraction_non_alphanumeric': 0.17560975609756097, 'fraction_numerical': 0.000975609756097561, 'mean_word_length': 3.445086705202312, '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': '6775086', 'n_tokens_mistral': 989, 'n_tokens_neox': 989, 'n_words': 184}