<commit_before>'use strict';

angular.module('wordRiverSpaceshipParrotIteration1App')
  .controller('MainCtrl', function ($scope, $http, socket) {
    $scope.awesomeThings = [];

    $http.get('/api/things').success(function(awesomeThings) {
      $scope.awesomeThings = awesomeThings;
      socket.syncUpdates('thing', $scope.awesomeThings);
    });

    $http.get('/api/students').success(function(awesomeStudents) {
      $scope.awesomeThings = awesomeStudents;
      socket.syncUpdates('student', $scope.studentList);
    });

    $scope.addThing = function() {
      if($scope.newThing === '') {
        return;
      }
      $http.post('/api/things', { name: $scope.newThing });
      $scope.newThing = '';
    };

    $scope.deleteThing = function(thing) {
      $http.delete('/api/things/' + thing._id);
    };

    $scope.$on('$destroy', function () {
      socket.unsyncUpdates('thing');
    });
  });<commit_msg>Fixed error that occurred when navigating to the Home page by removing all unused code in main.controller and main.controller.spec.<commit_after>'use strict';

angular.module('wordRiverSpaceshipParrotIteration1App')
  .controller('MainCtrl', function ($scope, $http, socket) {
        // Put stuff here if you want
});
{'fraction_non_alphanumeric': 0.1635777598710717, 'fraction_numerical': 0.0016116035455278, 'mean_word_length': 3.617100371747212, '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': '2867680', 'n_tokens_mistral': 391, 'n_tokens_neox': 373, 'n_words': 66}