<commit_before>'use strict';
angular
  .module('PitchEvaluator')
  .controller('View2Ctrl', function($scope, $firebaseObject, $firebaseArray) {
  	var teamsRef = new Firebase("https://pitchevaluator.firebaseio.com/teams");

	var teamList = $firebaseArray(teamsRef);
	$scope.teams = teamList;

	var curTeamName, curTeamIndex, curTeamKey, curTeamObject, curTeamRef;
	var q1, q2, q3, q4, cmt1, cmt2, cmt3, cmt4;

	$scope.onSubmit = function() {
		curTeamName = document.getElementById("team-select").value;
		
		q1 = $('input[name="q1radio"]:checked').val();
		q2 = $('input[name="q2radio"]:checked').val();
		q3 = $('input[name="q3radio"]:checked').val();
		q4 = $('input[name="q4radio"]:checked').val();

		cmt1 = document.getElementById("q1textarea").value;
		cmt2 = document.getElementById("q2textarea").value;
		cmt3 = document.getElementById("q3textarea").value;
		cmt4 = document.getElementById("q4textarea").value;
		
		for (var i = 0; i < teamList.length; i++) {
			if (teamList[i].name == curTeamName) {
				curTeamIndex = i;
				curTeamKey = teamList.$keyAt(curTeamIndex);
				curTeamObject = $firebaseObject(teamsRef.child(curTeamKey))
			//Updating a Team:
				//Create a reference to the team:
				curTeamRef = teamsRef.child(curTeamKey);

				//Utilize the "update()" function
				curTeamRef.update({ q1Val: q1,
									q1cmt: cmt1,
									q2Val: q2,
									q2cmt: cmt2,
									q3Val: q3,
									q3cmt: cmt3,
									q4Val: q4,
									q4cmt: cmt4
								 });
			}
		};

	};
	

  })<commit_msg>changed syntax<commit_after>'use strict';
angular
  .module('PitchEvaluator')
  .controller('View2Ctrl', function($scope, $firebaseObject, $firebaseArray) {
  	var teamsRef = new Firebase("https://pitchevaluator.firebaseio.com/teams");

	var teamList = $firebaseArray(teamsRef);
	$scope.teams = teamList;

	var curTeamName, curTeamIndex, curTeamKey, curTeamObject, curTeamRef;
	var q1, q2, q3, q4, cmt1, cmt2, cmt3, cmt4;

	$scope.onSubmit = function() {
		curTeamName = document.getElementById("team-select").value;
		
		q1 = $('input[name="q1radio"]:checked').val();
		q2 = $('input[name="q2radio"]:checked').val();
		q3 = $('input[name="q3radio"]:checked').val();
		q4 = $('input[name="q4radio"]:checked').val();

		cmt1 = document.getElementById("q1textarea").value;
		cmt2 = document.getElementById("q2textarea").value;
		cmt3 = document.getElementById("q3textarea").value;
		cmt4 = document.getElementById("q4textarea").value;
		
		for (var i = 0; i < teamList.length; i++) {
			if (teamList[i].name == curTeamName) {
				curTeamIndex = i;
				curTeamKey = teamList.$keyAt(curTeamIndex);
				curTeamObject = $firebaseObject(teamsRef.child(curTeamKey))
			//Updating a Team:
				//Create a reference to the team:
				curTeamRef = teamsRef.child(curTeamKey);

				//Utilize the "update()" function
				curTeamRef.update({ q1Val: q1,
									q1cmt: cmt1,
									q2Val: q2,
									q2cmt: cmt2,
									q3Val: q3,
									q3cmt: cmt3,
									q4Val: q4,
									q4cmt: cmt4
								 });
			}
		}
	};
	

  })
{'fraction_non_alphanumeric': 0.16243822075782538, 'fraction_numerical': 0.027677100494233938, 'mean_word_length': 3.6635944700460827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5678165', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1093, 'n_words': 201}