<commit_before>define(['app', 'angular', 'jquery', 'text!./km-link.html'], function(app, angular, $, template) { 'use strict';

	app.directive('kmLink', [function ()
	{
		return {
			restrict: 'EAC',
			template : template,
			replace: true,
			transclude: false,
			require : "?ngModel",
			scope: {
				binding    : '=ngModel',
				required   : "@",
				allowLink  : '@',
				allowFile  : '@',
				identifier : '=',
				mimeTypes  : "@"
			},
			link: function ($scope, $element, $attr, ngModelController)
			{
				// init
				$scope.links = [];
				$.extend($scope.editor, {
					link     : null,
					url      : null,
					name     : null,
					progress : null,
					error    : null,
					type     : null,
					visible  : false,
					uploadPlaceholder : $element.find("#uploadPlaceholder"),
					mimeTypes : [//	"application/octet-stream",
									"application/json",
									"application/ogg",
									"application/pdf",
									"application/xml",
									"application/zip",
									"audio/mpeg",
									"audio/x-ms-wma",
									"audio/x-wav",
									"image/gif",
									"image/jpeg",
									"image/png",
									"image/tiff",
									"text/csv",
									"text/html",
									"text/plain",
									"text/xml",
									"video/mpeg",
									"video/mp4",
									"video/quicktime",
									"video/x-ms-wmv",
									"video/x-msvideo",
									"video/x-flv",
									"application/vnd.oasis.opendocument.text",
									"application/vnd.oasis.opendocument.spreadsheet",
									"application/vnd.oasis.opendocument.presentation",
									"application/vnd.oasis.opendocument.graphics",
									"application/vnd.ms-excel",
									"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
									"application/vnd.ms-powerpoint",
									"application/msword",
									"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
								]
				});
<commit_msg>Add support form x-zip and x-zip-compressed<commit_after>define(['app', 'angular', 'jquery', 'text!./km-link.html'], function(app, angular, $, template) { 'use strict';

	app.directive('kmLink', [function ()
	{
		return {
			restrict: 'EAC',
			template : template,
			replace: true,
			transclude: false,
			require : "?ngModel",
			scope: {
				binding    : '=ngModel',
				required   : "@",
				allowLink  : '@',
				allowFile  : '@',
				identifier : '=',
				mimeTypes  : "@"
			},
			link: function ($scope, $element, $attr, ngModelController)
			{
				// init
				$scope.links = [];
				$.extend($scope.editor, {
					link     : null,
					url      : null,
					name     : null,
					progress : null,
					error    : null,
					type     : null,
					visible  : false,
					uploadPlaceholder : $element.find("#uploadPlaceholder"),
					mimeTypes : [//	"application/octet-stream",
									"application/json",
									"application/ogg",
									"application/pdf",
									"application/xml",
									"application/zip",
									"application/x-zip",
									"application/x-zip-compressed",
									"audio/mpeg",
									"audio/x-ms-wma",
									"audio/x-wav",
									"image/gif",
									"image/jpeg",
									"image/png",
									"image/tiff",
									"text/csv",
									"text/html",
									"text/plain",
									"text/xml",
									"video/mpeg",
									"video/mp4",
									"video/quicktime",
									"video/x-ms-wmv",
									"video/x-msvideo",
									"video/x-flv",
									"application/vnd.oasis.opendocument.text",
									"application/vnd.oasis.opendocument.spreadsheet",
									"application/vnd.oasis.opendocument.presentation",
									"application/vnd.oasis.opendocument.graphics",
									"application/vnd.ms-excel",
									"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
									"application/vnd.ms-powerpoint",
									"application/msword",
									"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
								]
				});

{'fraction_non_alphanumeric': 0.15959339263024142, 'fraction_numerical': 0.0005082592121982211, 'mean_word_length': 2.01840490797546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2111991', 'n_tokens_mistral': 1966, 'n_tokens_neox': 1241, 'n_words': 183}