<commit_before><h3>Debug</h3>
<?php
echo $this->Form->input('debugws', array(
    'label' => 'WebSocket Protocol',
    'type' => 'checkbox',
    'onchange' => 'if(this.checked) { ab._debugws = true; } else { ab._debugws = false; }',
));
echo $this->Form->input('debugrpc', array(
    'label' => 'RPC\'s',
    'type' => 'checkbox',
    'onchange' => 'if(this.checked) { ab._debugrpc = true; } else { ab._debugrpc = false; }',
));
echo $this->Form->input('debugpubsub', array(
    'label' => 'PubSub',
    'type' => 'checkbox',
    'onchange' => 'if(this.checked) { ab._debugpubsub = true; } else { ab._debugpubsub = false; }',
));
?>

<script>
    if (ab._debugws) {
        var ab_debugws_element = document.getElementById('debugws_');
        if (ab_debugws_element) {
            ab_debugws_element.checked = true;
        }
    }
    
    if (ab._debugrpc) {
        var ab_debugrpc_element = document.getElementById('debugrpc_');
        if (ab_debugrpc_element) {
            ab_debugrpc_element.checked = true;
        }
    }
    
    if (ab._debugpubsub) {
        var ab_debugpubsub_element = document.getElementById('debugpubsub_');
        if (ab_debugpubsub_element) {
            ab_debugpubsub_element.checked = true;
        }
    }
</script><commit_msg>Showing pubsub subscriptions<commit_after><h3>Debug to console</h3>
<fieldset>
	<?php echo $this->Form->input('debugws', array(
		'label' => 'WebSocket Protocol',
		'type' => 'checkbox',
		'onchange' => 'if(this.checked) { ab._debugws = true; } else { ab._debugws = false; }',
	)); ?>
</fieldset>
<fieldset>
	<?php echo $this->Form->input('debugrpc', array(
    'label' => 'RPC\'s',
    'type' => 'checkbox',
    'onchange' => 'if(this.checked) { ab._debugrpc = true; } else { ab._debugrpc = false; }',
)); ?>
</fieldset>
<fieldset>
	<?php echo $this->Form->input('debugpubsub', array(
    'label' => 'PubSub',
    'type' => 'checkbox',
    'onchange' => 'if(this.checked) { ab._debugpubsub = true; } else { ab._debugpubsub = false; }',
)); ?>
</fieldset>

<ul class="neat-array depth-0" id="autobahn_subscriptions">
</ul>

<script>
    if (ab._debugws) {
        var ab_debugws_element = document.getElementById('debugws_');
        if (ab_debugws_element) {
            ab_debugws_element.checked = true;
        }
    }
    
    if (ab._debugrpc) {
        var ab_debugrpc_element = document.getElementById('debugrpc_');
        if (ab_debugrpc_element) {
            ab_debugrpc_element.checked = true;
        }
    }
    
    if (ab._debugpubsub) {
        var ab_debugpubsub_element = document.getElementById('debugpubsub_');
        if (ab_debugpubsub_element) {
            ab_debugpubsub_element.checked = true;
        }
    }

	setInterval(function() {
		var html = '';
		for (var i in cakeWamp.subscriptions) {
			html += '<li>' + cakeWamp.subscriptions[i].topic + '</li>';
		}
		document.getElementById('autobahn_subscriptions').innerHTML = html;
	}, 1000)
</script>
{'fraction_non_alphanumeric': 0.17361817565276366, 'fraction_numerical': 0.003051881993896236, 'mean_word_length': 3.0633608815426996, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 55, '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': '1341701', 'n_tokens_mistral': 1018, 'n_tokens_neox': 1035, 'n_words': 179}