<commit_before>"use strict";

angular.module('bzk', ['bzk.project', 'bzk.utils', 'bzk.templates', 'ngRoute']);

angular.module('bzk').config(function($routeProvider){
	$routeProvider
	.when('/', {
		templateUrl: 'nothing.html'
	}).otherwise({
		redirectTo: '/'
	});
});

angular.module('bzk').controller('RootController', function($scope, $routeParams, $location){
	$scope.isProjectSelected = function() {
		return $routeParams.pid;
	};

	$scope.isJobSelected = function() {
		return $location.search().j;
	};

	$scope.isVariantSelected = function() {
		return $location.search().j;
	};
});

angular.module('bzk').factory('ProjectsResource', function($http){
	return {
		fetch: function () {
			return $http.get('/api/project');
		},
		create: function(proj) {
			return $http.post('/api/project', proj);<commit_msg>Fix bug in the log pane visibility<commit_after>"use strict";

angular.module('bzk', ['bzk.project', 'bzk.utils', 'bzk.templates', 'ngRoute']);

angular.module('bzk').config(function($routeProvider){
	$routeProvider
	.when('/', {
		templateUrl: 'nothing.html'
	}).otherwise({
		redirectTo: '/'
	});
});

angular.module('bzk').controller('RootController', function($scope, $routeParams, $location){
	$scope.isProjectSelected = function() {
		return $routeParams.pid;
	};

	$scope.isJobSelected = function() {
		return $location.search().j;
	};

	$scope.isVariantSelected = function() {
		return $location.search().v;
	};
});

angular.module('bzk').factory('ProjectsResource', function($http){
	return {
		fetch: function () {
			return $http.get('/api/project');
		},
		create: function(proj) {
			return $http.post('/api/project', proj);
{'fraction_non_alphanumeric': 0.20689655172413793, 'fraction_numerical': 0.0, 'mean_word_length': 5.2889733840304185, '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': '6460896', 'n_tokens_mistral': 576, 'n_tokens_neox': 540, 'n_words': 89}