<commit_before>/*
Description: Add, Get, Set, Delete Assignments
*/

function AssignmentService($http, appSettings){
    "ngInject";

    this._$http = $http;
    this._appSettings = appSettings;

}

AssignmentService.prototype.getAssignments = function(courseId){
    console.log(courseId);
    return this._$http
          .get(this._appSettings.API.basePath + '/rest/student/course/' + courseId + '/modules')
          .then(function (res) {
            return res.data;
          });
}

module.exports = angular.module('app.models.assignment', [
    'app.settings'
]).service('AssignmentService', AssignmentService);<commit_msg>ADD: Course User ID to Assignment getter<commit_after>/*
Description: Add, Get, Set, Delete Assignments
*/

function AssignmentService($http, appSettings, SessionService){
    "ngInject";

    this._$http = $http;
    this._appSettings = appSettings;
    this.courseUserId = SessionService.getCourseUserId();
}

AssignmentService.prototype.getAssignments = function(courseId){
    var self = this;
    return this._$http
          .get(this._appSettings.API.basePath + '/rest/student/course/'+courseId+'/modules',
              {params : {
                  "courseUserId" : self.courseUserId
              }})
          .then(function (res) {
            console.log("Got Assignments List");
            console.log(res);
            return res.data;
          });
}

module.exports = angular.module('app.models.assignment', [
    'app.settings'
]).service('AssignmentService', AssignmentService);
{'fraction_non_alphanumeric': 0.13594771241830064, 'fraction_numerical': 0.0, 'mean_word_length': 3.028947368421053, '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': '5695009', 'n_tokens_mistral': 437, 'n_tokens_neox': 441, 'n_words': 81}