<commit_before>var userData = require("../userData.json");
var status = require("../status.json");
var courses = require("../courses.json");



exports.view = function(req, res)
{  
	var username = status["loginStatus"]["username"];
	var otherCourses=courses;

	var arr = userData["loginData"];
	var currentCourses;

	for(var i=0;i<arr.length;i++)
	{
		var obj = arr[i];
		var uname;
		for(var key in obj)
		{
			var attrName = key;
			var attrValue = obj[key];
<commit_msg>Fixed missing courses from select menu bug with copy array<commit_after>var userData = require("../userData.json");
var status = require("../status.json");
var courses = require("../courses.json");



exports.view = function(req, res)
{  
	var username = status["loginStatus"]["username"];
	var otherCourses=courses.slice();

	var arr = userData["loginData"];
	var currentCourses;

	for(var i=0;i<arr.length;i++)
	{
		var obj = arr[i];
		var uname;
		for(var key in obj)
		{
			var attrName = key;
			var attrValue = obj[key];

{'fraction_non_alphanumeric': 0.16683316683316685, 'fraction_numerical': 0.001998001998001998, 'mean_word_length': 4.138461538461539, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7444549', 'n_tokens_mistral': 364, 'n_tokens_neox': 343, 'n_words': 87}