<commit_before>'use strict';

// Scores controller
angular.module('scores').controller('ScoresController', ['$scope', '$stateParams', '$location', 'Authentication', 'Scores', 'Golfers',
	function($scope, $stateParams, $location, Authentication, Scores, Golfers) {
		$scope.authentication = Authentication;
		$scope.success = false;

		if(Authentication.user === "") {
			$location.path('signin');
		}

		// Create new Score
		$scope.create = function() {
			var self = this;

			angular.forEach(this.golfers, function (value, key) {

				var score = new Scores ({
					score: value.score,
					date: self.submissionDate,
					tags: self.tags,
					golfer: value<commit_msg>Added date time<commit_after>'use strict';

// Scores controller
angular.module('scores').controller('ScoresController', ['$scope', '$stateParams', '$location', 'Authentication', 'Scores', 'Golfers',
	function($scope, $stateParams, $location, Authentication, Scores, Golfers) {
		$scope.authentication = Authentication;
		$scope.success = false;

		if(Authentication.user === "") {
			$location.path('signin');
		}

		// Create new Score
		$scope.create = function() {
			var self = this;

			angular.forEach(this.golfers, function (value, key) {

				debugger;
				var score = new Scores ({
					score: value.score,
					date: moment(self.submissionDate).add(8, 'hours'),
					tags: self.tags,
					golfer: value
{'fraction_non_alphanumeric': 0.1608946608946609, 'fraction_numerical': 0.0007215007215007215, 'mean_word_length': 4.214285714285714, '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': '255933', 'n_tokens_mistral': 509, 'n_tokens_neox': 420, 'n_words': 97}