<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/callimachus/manifest?template"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:msg="http://www.openrdf.org/rdf/2011/messaging#"
	xmlns:calli="http://callimachusproject.org/rdf/2009/framework#">
<head>
	<title about="?this">{rdfs:label} Permissions</title>
	<script type="text/javascript"><![CDATA[
	(function($) {
		jQuery.ajax({type: 'GET', url:'?rdftype', complete: function(xhr) {
			if (xhr.status == 200) {
				jQuery(function($) {
					var text = xhr.responseText;
					var list = text.split('\r\n');
					var calli = "http://callimachusproject.org/rdf/2009/framework#";
					if (jQuery.inArray(calli + 'Creatable', list) < 0) {
						$('.creatable').hide();
					}
					if (jQuery.inArray('http://www.w3.org/2002/07/owl#Class', list) >= 0) {
						$('.class').show();
						$('.private').show();
					} else {
						$('.class').hide();
						var control = xhr.getResponseHeader('Cache-Control');
						if (control && control.indexOf('public') >= 0) {
							$('.private').hide();
						}
					}
					if (jQuery.inArray(calli + 'Composite', list) >= 0) {
						$('.composite').show();
					} else {
						$('.composite').hide();
					}
				});
			}
		}});
		$(document).bind('calliRedirect', function(event) {
			var url = event.location;
			event.location = url.substring(0, url.indexOf('?'));
			return true;
		});
	})(jQuery);
	// ]]>
	</script>
</head><commit_msg>Redirect to view page after changing permissions<commit_after><?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="/callimachus/manifest?template"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
	xmlns:msg="http://www.openrdf.org/rdf/2011/messaging#"
	xmlns:calli="http://callimachusproject.org/rdf/2009/framework#">
<head>
	<title about="?this">{rdfs:label} Permissions</title>
	<script type="text/javascript"><![CDATA[
	(function($) {
		jQuery.ajax({type: 'GET', url:'?rdftype', complete: function(xhr) {
			if (xhr.status == 200) {
				jQuery(function($) {
					var text = xhr.responseText;
					var list = text.split('\r\n');
					var calli = "http://callimachusproject.org/rdf/2009/framework#";
					if (jQuery.inArray(calli + 'Creatable', list) < 0) {
						$('.creatable').hide();
					}
					if (jQuery.inArray('http://www.w3.org/2002/07/owl#Class', list) >= 0) {
						$('.class').show();
						$('.private').show();
					} else {
						$('.class').hide();
						var control = xhr.getResponseHeader('Cache-Control');
						if (control && control.indexOf('public') >= 0) {
							$('.private').hide();
						}
					}
					if (jQuery.inArray(calli + 'Composite', list) >= 0) {
						$('.composite').show();
					} else {
						$('.composite').hide();
					}
				});
			}
		}});
		$(document).bind('calliRedirect', function(event) {
			event.location = calli.viewpage($('body').attr('about'));
			return true;
		});
	})(jQuery);
	// ]]>
	</script>
</head>
{'fraction_non_alphanumeric': 0.23496062992125985, 'fraction_numerical': 0.03181102362204724, 'mean_word_length': 3.33879781420765, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 2, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 14}, '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': '2642090', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1155, 'n_words': 161}