<commit_before><?php 
use_helper('Form', 'MyForm', 'Javascript', 'Ajax', 'Viewer');
$module = $sf_context->getModuleName();
echo ajax_feedback(); 

echo display_title(__('Merge'));
?>
<div id="merge_wizard">
<?php
echo form_tag("$module/merge");
echo tips_tag('Which document would you like to redirect the current one to?');
echo input_hidden_tag('from_id', $sf_params->get('from_id'));
?>  

<div id="ac_form" style="float: left; margin-left: 10px; height: 250px; width: 300px;">
<?php // this div will be updated after page loading, via ajax. ?>
</div>

<script type="text/javascript"> 
//<![CDATA[
function au()
{
    new Ajax.Updater('ac_form', '/<?php echo $module ?>module/getautocomplete', {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator')}, onLoading:function(request, json){Element.show('indicator')}, parameters:'module_name=<?php echo $module ?>&button=0'})
}

if (window.addEventListener) { 
    window.addEventListener('load', au(), false); 
} else if (window.attachEvent) { 
    window.attachEvent('onload', au()); 
} 
//]]>
</script>

<p><?php echo submit_tag(__('Merge')) ?></p>
</form>

<div>
<?php echo __('Notice: associations will also be merged'); ?>
</div>
</div> <!-- merge_wizard --><commit_msg>#440<commit_after><?php 
use_helper('Form', 'MyForm', 'Javascript', 'Ajax', 'Viewer');
$module = $sf_context->getModuleName();
echo ajax_feedback(); 

echo display_title(__('Merge'));
?>
<div id="merge_wizard">
<?php
echo form_tag("$module/merge");
echo tips_tag('Which document would you like to redirect the current one to?');
echo input_hidden_tag('from_id', $sf_params->get('from_id'));
?>  

<div id="ac_form" style="float: left; margin-left: 10px; height: 250px; width: 300px;"> <?php //FIXME find a way to avoid ugly blank ?>
<?php // this div will be updated after page loading, via ajax. ?>
</div>

<script type="text/javascript"> 
//<![CDATA[
function au()
{
    new Ajax.Updater('ac_form', '/<?php echo $module ?>/getautocomplete', {asynchronous:true, evalScripts:true, onComplete:function(request, json){Element.hide('indicator')}, onLoading:function(request, json){Element.show('indicator')}, parameters:'module_name=<?php echo $module ?>&button=0'})
}

if (window.addEventListener) { 
    window.addEventListener('load', au(), false); 
} else if (window.attachEvent) { 
    window.attachEvent('onload', au()); 
} 
//]]>
</script>

<p><?php echo submit_tag(__('Merge')) ?></p>
</form>

<div>
<?php echo __('Notice: associations will also be merged'); ?>
</div>
</div> <!-- merge_wizard -->
{'fraction_non_alphanumeric': 0.20342279268767016, 'fraction_numerical': 0.008168028004667444, 'mean_word_length': 6.046575342465753, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 48, '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': '6886474', 'n_tokens_mistral': 884, 'n_tokens_neox': 847, 'n_words': 215}