<commit_before>(function() {

	"use strict";

	angular
		.module('app')
		.controller('ContactsController', ['$rootScope', '$scope', '$http', '$state', function ContactsController($rootScope, $scope, $http, $state) {

			var contacts = this;

			contacts.contacts = $rootScope.currentUser.contacts;

			contacts.newContact = {
				user_id: $rootScope.currentUser.id,
				last_name: "",
				first_name: "",
				occupation: "",
				employer: "",
				email: "",
				phone: "",
				address_line_1: "",
				address_line_2: "",
				city: "",
				state: "",
				zip_code: ""
			};

			contacts.contact = Object.assign({}, contacts.newContact);

			contacts.submit = function contactsSubmit($event) {
				$event.preventDefault();
				$http({
					method: "POST",
					data: { contact: contacts.contact },
					url: "/contacts"
				}).then(function onSuccessfulContactsSubmit(response) {
					contacts.contacts.push(response.data);
					contacts.contact = Object.assign({}, contacts.newContact);
					contacts.errorTitle = undefined;
					contacts.errorsDetail = undefined;
					$state.go('index.signed_in.contacts.show', { id: response.data.id });
				}, function onFailedContactsSubmit(response) {
					contacts.errorTitle = response.data.errors[0].title;
					contacts.errorsDetail = response.data.errors[0].detail;
				});
			};

			// begin partial config
			$scope.controller = contacts;
			contacts.locals = {
				submitButtonLabel: "Create Contact"
			};
			// end partial config

		}]);

})();<commit_msg>removed user_id from angular ContactsController#newContact<commit_after>(function() {

	"use strict";

	angular
		.module('app')
		.controller('ContactsController', ['$rootScope', '$scope', '$http', '$state', function ContactsController($rootScope, $scope, $http, $state) {

			var contacts = this;

			contacts.contacts = $rootScope.currentUser.contacts;

			contacts.newContact = {
				last_name: "",
				first_name: "",
				occupation: "",
				employer: "",
				email: "",
				phone: "",
				address_line_1: "",
				address_line_2: "",
				city: "",
				state: "",
				zip_code: ""
			};

			contacts.contact = Object.assign({}, contacts.newContact);

			contacts.submit = function contactsSubmit($event) {
				$event.preventDefault();
				$http({
					method: "POST",
					data: { contact: contacts.contact },
					url: "/contacts"
				}).then(function onSuccessfulContactsSubmit(response) {
					contacts.contacts.push(response.data);
					contacts.contact = Object.assign({}, contacts.newContact);
					contacts.errorTitle = undefined;
					contacts.errorsDetail = undefined;
					$state.go('index.signed_in.contacts.show', { id: response.data.id });
				}, function onFailedContactsSubmit(response) {
					contacts.errorTitle = response.data.errors[0].title;
					contacts.errorsDetail = response.data.errors[0].detail;
				});
			};

			// begin partial config
			$scope.controller = contacts;
			contacts.locals = {
				submitButtonLabel: "Create Contact"
			};
			// end partial config

		}]);

})();
{'fraction_non_alphanumeric': 0.15920398009950248, 'fraction_numerical': 0.0026533996683250414, 'mean_word_length': 3.4287812041116004, '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': '143518', 'n_tokens_mistral': 1176, 'n_tokens_neox': 919, 'n_words': 162}