<commit_before>app.controller('ViewCostCategoryController', [ '$scope', '$uibModal', 'administrationRestService', 'globalMessagesService',

	function ($scope, $uibModal, administrationRestService, globalMessagesService) {
		"use strict";

		function loadData() {
			administrationRestService.getCostCategories().then(function (response) {
				$scope.costCategories = response.data;
			});
		}

		function findCostCategory(uid) {
			for (var i = 0; i < $scope.costCategories.length; i++) {
				if ($scope.costCategories[i].uid === uid) {
					return $scope.costCategories[i];
				}
			}
		}

		loadData();

		$scope.addCostCategory = function () {
			var modalInstance = $uibModal.open({
				templateUrl: 'administration/edit-cost-category.tpl.html',
				controller: 'EditCostCategoryController',
				backdrop: 'static',
				keyboard: false,
				resolve: {
					costCategory: function () {
						return {};
					},
					isCreate: function() {
						return true;
					}
				}
			});

			modalInstance.result.then()['finally'](loadData);
		};

		$scope.toggleCostCategory = function (uid, isActive) {<commit_msg>large modal size for creating cost category<commit_after>app.controller('ViewCostCategoryController', [ '$scope', '$uibModal', 'administrationRestService', 'globalMessagesService',

	function ($scope, $uibModal, administrationRestService, globalMessagesService) {
		"use strict";

		function loadData() {
			administrationRestService.getCostCategories().then(function (response) {
				$scope.costCategories = response.data;
			});
		}

		function findCostCategory(uid) {
			for (var i = 0; i < $scope.costCategories.length; i++) {
				if ($scope.costCategories[i].uid === uid) {
					return $scope.costCategories[i];
				}
			}
		}

		loadData();

		$scope.addCostCategory = function () {
			var modalInstance = $uibModal.open({
				templateUrl: 'administration/edit-cost-category.tpl.html',
				controller: 'EditCostCategoryController',
				backdrop: 'static',
				keyboard: false,
				size: 'lg',
				resolve: {
					costCategory: function () {
						return {};
					},
					isCreate: function() {
						return true;
					}
				}
			});

			modalInstance.result.then()['finally'](loadData);
		};

		$scope.toggleCostCategory = function (uid, isActive) {
{'fraction_non_alphanumeric': 0.14487632508833923, 'fraction_numerical': 0.0008833922261484099, 'mean_word_length': 3.788583509513742, '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': '2491768', 'n_tokens_mistral': 857, 'n_tokens_neox': 663, 'n_words': 126}