<commit_before>%import json
%JSON=json.dumps
<!DOCTYPE HTML>
<html>
	<head>
		%include("head.tpl")
		<title>{{dictTitle}}</title>
		<script type="text/javascript" src="../../libs/screenful/screenful.js"></script>
    <link type="text/css" rel="stylesheet" href="../../libs/screenful/screenful.css" />
		<script type="text/javascript" src="../../libs/screenful/screenful-loc-en.js"></script>
		<script type="text/javascript" src="../../libs/screenful/screenful-user.js"></script>
		<link type="text/css" rel="stylesheet" href="../../libs/screenful/screenful-user.css" />
		<link type="text/css" rel="stylesheet" href="../../libs/screenful/screenful-theme-blue.css" />
		<script type="text/javascript">
                Screenful.User.loggedin={{!JSON(user["loggedin"])}};
                Screenful.User.username="{{user['email']}}";
		</script>
		<script type="text/javascript">var rootPath="../../";</script>
		<script type="text/javascript" src="../../furniture/screenful-user-config.js"></script>
		<link type="text/css" rel="stylesheet" href="../../furniture/ui.css" />
	</head>
	<body>
                %include("header.tpl", user=user, dictID=dictID, dictTitle=dictTitle, current="config", configTitle="", configUrl="", rootPath="../../")
		<div id="pagebody">
			%if needResave>0:
			<div class="notification">{{needResave}} {{"entry" if needResave==1 else "entries"}} in your dictionary needs to be re-indexed. <a href="../../{{dictID}}/resave/">Do it now&nbsp;»</a></div>
			%end
			<div class="field">
				<div class="signposts">
					<div class="title">Dictionary settings</div>
					<div class="signpost"><a href="../../{{dictID}}/config/ident/">Name and description</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/users/">Users</a></div>
					%if hasEditingOverride:
					<div class="signpost"><a href="../../{{dictID}}/config/editing-override/">Entry editor</a></div>
					%else:
					<div class="signpost"><a href="../../{{dictID}}/config/editing/">Entry editor</a></div>
					%end
					<div class="signpost"><a href="../../{{dictID}}/config/download/">Download settings</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/links/">Manual linking</a></div>
				</div>
				<div class="signposts">
					<div class="title">Entry settings</div>
					%if hasXemaOverride:
					<div class="signpost"><a href="../../{{dictID}}/config/xema-override/">Entry structure</a></div>
					%else:
					<div class="signpost"><a href="../../{{dictID}}/config/xema/">Entry structure</a></div>
					%end
					<div class="signpost"><a href="../../{{dictID}}/config/subbing/">Subentries</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/titling/">Headwords</a></div>
				  <div class="signpost"><a href="../../{{dictID}}/config/flagging/">Flags</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/searchability/">Search</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/autonumber/">Auto-numbering</a></div>
				</div>
				<div class="signposts">
					<div class="title">Publishing</div>
					%if hasXemplateOverride:
					<div class="signpost"><a href="../../{{dictID}}/config/xemplate-override/">Entry formatting</a></div>
					%else:
					<div class="signpost"><a href="../../{{dictID}}/config/xemplate/">Entry formatting</a></div>
					%end
					<div class="signpost"><a href="../../{{dictID}}/config/publico/">Public access</a></div>
				</div>
				<div class="signposts">
					<div class="title">External data sources</div>
					<div class="signpost"><a href="../../{{dictID}}/config/kex/">Sketch Engine connection</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/xampl/">Examples</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/collx/">Collocations</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/thes/">Thesaurus items</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/defo/">Definitions</a></div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="dangerzone">
				<div class="inside">
					<a href="../../{{dictID}}/config/url/" class="changeUrl">Change the dictionary's URL</a>
					<a href="javascript:void(null)" class="destroy" onclick="destroy()">Delete the dictionary</a>
					<script type="text/javascript">
					function destroy(){
						if(confirm("Careful now! You will not be able to undo this.")){
							$.ajax({url: "../../{{dictID}}/destroy.json", dataType: "json", method: "POST", data: {}}).done(function(data){
								if(data.success) window.location="../../";
							});
						}
					}
					</script>
				</div>
			</div>
		</div>
	</body>
</html><commit_msg>Reorganize main configure page, close #224<commit_after>%import json
%JSON=json.dumps
<!DOCTYPE HTML>
<html>
	<head>
		%include("head.tpl")
		<title>{{dictTitle}}</title>
		<script type="text/javascript" src="../../libs/screenful/screenful.js"></script>
    		<link type="text/css" rel="stylesheet" href="../../libs/screenful/screenful.css" />
		<script type="text/javascript" src="../../libs/screenful/screenful-loc-en.js"></script>
		<script type="text/javascript" src="../../libs/screenful/screenful-user.js"></script>
		<link type="text/css" rel="stylesheet" href="../../libs/screenful/screenful-user.css" />
		<link type="text/css" rel="stylesheet" href="../../libs/screenful/screenful-theme-blue.css" />
		<script type="text/javascript">
                Screenful.User.loggedin={{!JSON(user["loggedin"])}};
                Screenful.User.username="{{user['email']}}";
		</script>
		<script type="text/javascript">var rootPath="../../";</script>
		<script type="text/javascript" src="../../furniture/screenful-user-config.js"></script>
		<link type="text/css" rel="stylesheet" href="../../furniture/ui.css" />
		<style>
		.title {cursor: pointer;}
		</style>
		<script type="text/javascript">
		$(function() {
			$(".expert .signpost").hide();
			$(".sketch").hide();
			$(".expert .title").on("click", function() {
				if ($(".sketch").is(":hidden")) {
					$(".expert .signpost").show();
					$(".sketch").show();
					$(".expert .title span").html("▸");
				} else {
					$(".expert .signpost").hide();
					$(".sketch").hide();
					$(".expert .title span").html("▾");
				}
			});
		});
		</script>
	</head>
	<body>
                %include("header.tpl", user=user, dictID=dictID, dictTitle=dictTitle, current="config", configTitle="", configUrl="", rootPath="../../")
		<div id="pagebody">
			%if needResave>0:
			<div class="notification">{{needResave}} {{"entry" if needResave==1 else "entries"}} in your dictionary needs to be re-indexed. <a href="../../{{dictID}}/resave/">Do it now&nbsp;»</a></div>
			%end
			<div class="field">
				<div class="signposts">
					<div class="title">Manage dictionary</div>
					<div class="signpost"><a href="../../{{dictID}}/config/ident/">Description</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/users/">Users</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/publico/">Publishing</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/url/">Change URL</a></div>
				</div>
				<div class="signposts">
					<div class="title">Entry settings</div>
					%if hasXemaOverride:
					<div class="signpost"><a href="../../{{dictID}}/config/xema-override/">Structure</a></div>
					%else:
					<div class="signpost"><a href="../../{{dictID}}/config/xema/">Structure</a></div>
					%end
					%if hasXemplateOverride:
					<div class="signpost"><a href="../../{{dictID}}/config/xemplate-override/">Formatting</a></div>
					%else:
					<div class="signpost"><a href="../../{{dictID}}/config/xemplate/">Formatting</a></div>
					%end
					<div class="signpost"><a href="../../{{dictID}}/config/titling/">Headword list</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/searchability/">Searching</a></div>
				</div>
				<div class="signposts expert">
					<div class="title">Expert settings <span>▾</span></div>
					%if hasEditingOverride:
					<div class="signpost"><a href="../../{{dictID}}/config/editing-override/">Entry editor</a></div>
					%else:
					<div class="signpost"><a href="../../{{dictID}}/config/editing/">Entry editor</a></div>
					%end
					<div class="signpost"><a href="../../{{dictID}}/config/flagging/">Flags</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/autonumber/">Auto-numbering</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/links/">Manual linking</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/download/">Download settings</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/subbing/">Subentries</a></div>
				</div>
				<div class="signposts sketch">
					<div class="title">Sketch Engine</div>
					<div class="signpost"><a href="../../{{dictID}}/config/kex/">Connection</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/xampl/">Examples</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/collx/">Collocations</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/thes/">Thesaurus items</a></div>
					<div class="signpost"><a href="../../{{dictID}}/config/defo/">Definitions</a></div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="dangerzone">
				<div class="inside">
					<a href="javascript:void(null)" class="destroy" onclick="destroy()">Delete the dictionary</a>
					<script type="text/javascript">
					function destroy(){
						if(confirm("Careful now! You will not be able to undo this.")){
							$.ajax({url: "../../{{dictID}}/destroy.json", dataType: "json", method: "POST", data: {}}).done(function(data){
								if(data.success) window.location="../../";
							});
						}
					}
					</script>
				</div>
			</div>
		</div>
	</body>
</html>
{'fraction_non_alphanumeric': 0.2633502538071066, 'fraction_numerical': 0.0007106598984771574, 'mean_word_length': 3.4214542190305206, 'pattern_counts': {'":': 1, '<': 301, '<?xml version=': 0, '>': 303, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6311307', 'n_tokens_mistral': 3787, 'n_tokens_neox': 3105, 'n_words': 515}