<commit_before><?php
	$action="templates_tags.php";
	$ac=$_GET['action'];
	if(!isset($_POST['action'])){$_POST['action']='insert';}
	/*add*/
	if(isset($_POST['var']) and $_POST['var']!=''){$var='{{'.$_POST['var'].'}}';}else{$var='';}
	if(isset($_POST['var2']) and $_POST['var2']!='' and $var==''){$var=$_POST['var2'];}
	if(isset($_POST['tag']) and $_POST['tag']!=''){$tag=$_POST['tag'];}else{$tag='';}
	if($_POST['action']!='update' and $var!='' and $tag!=''){addTag($var,$tag);}
	/*update*/
	if(isset($_POST['tg']) and $_POST['tg']!=''){$tg=$_POST['tg'];}else{$tg='';}
	if(isset($_POST['vl']) and $_POST['vl']!=''){$vl=$_POST['vl'];}else{$vl='';}
	if(isset($_GET['tagid']) and $_GET['tagid']!=''){$tagid=$_GET['tagid'];}else{$tagid='';}
	if($_POST['action']=='update' and $vl!='' and $tg!=''){addTag($vl,$tg,true,$_POST['tagid']);}

	$extrabuttons['save']=array('name'=>'current','value'=>'templates_tags.php');
	two_buttonmenu($extrabuttons);

	$tags=getTags(false);
?>
<div id="viewcontent" class="content">

	<form id="formtoprocess" name="formtoprocess" method="post" action="<?php print $host; ?>" >
		<input type="hidden" name="current" value="<?php print $action;?>" />
		<input type="hidden" name="choice" value="<?php print $choice;?>" />
		<input type="hidden" name="cancel" value="<?php print '';?>" />
		<fieldset class="center divgroup" id="viewcontent" style="background: none repeat scroll 0 0 #666666 !important;">
			<legend><?php print_string('newrenametag',$book);?></legend>
			<div style="float:left"><commit_msg>fixed back buttong for template tags<commit_after><?php
	$action="templates.php";
        $cancel="templates.php";
	$ac=$_GET['action'];
	if(!isset($_POST['action'])){$_POST['action']='insert';}
	/*add*/
	if(isset($_POST['var']) and $_POST['var']!=''){$var='{{'.$_POST['var'].'}}';}else{$var='';}
	if(isset($_POST['var2']) and $_POST['var2']!='' and $var==''){$var=$_POST['var2'];}
	if(isset($_POST['tag']) and $_POST['tag']!=''){$tag=$_POST['tag'];}else{$tag='';}
	if($_POST['action']!='update' and $var!='' and $tag!=''){addTag($var,$tag);}
	/*update*/
	if(isset($_POST['tg']) and $_POST['tg']!=''){$tg=$_POST['tg'];}else{$tg='';}
	if(isset($_POST['vl']) and $_POST['vl']!=''){$vl=$_POST['vl'];}else{$vl='';}
	if(isset($_GET['tagid']) and $_GET['tagid']!=''){$tagid=$_GET['tagid'];}else{$tagid='';}
	if($_POST['action']=='update' and $vl!='' and $tg!=''){addTag($vl,$tg,true,$_POST['tagid']);}

	$extrabuttons['save']=array('name'=>'current','value'=>'templates_tags.php');
	two_buttonmenu($extrabuttons);

	$tags=getTags(false);
?>
<div id="viewcontent" class="content">

	<form id="formtoprocess" name="formtoprocess" method="post" action="<?php print $host; ?>" >
		<input type="hidden" name="current" value="<?php print $action;?>" />
		<input type="hidden" name="choice" value="<?php print $choice;?>" />
		<input type="hidden" name="cancel" value="<?php print $cancel?>" />
		<fieldset class="center divgroup" id="viewcontent" style="background: none repeat scroll 0 0 #666666 !important;">
			<legend><?php print_string('newrenametag',$book);?></legend>
			<div style="float:left">
{'fraction_non_alphanumeric': 0.31168, 'fraction_numerical': 0.00704, 'mean_word_length': 10.007042253521126, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, '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': '1273314', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1181, 'n_words': 170}