<commit_before>// The BOSH_SERVICE here doesn't need to be on the same domain/port, but
// it must have a /crossdomain.xml policy file that allows access from
// wherever crossdomain.html lives.
//
// Most BOSH connection managers can serve static html files, so you should
// be able to configure them to serve a /crossdomain.xml file to allow
// access.
var BOSH_SERVICE = 'http://localhost:5281/xmpp-httpbind'
var connection = null;

function log(msg) 
{
    $('#log').append('<div></div>').append(document.createTextNode(msg));
}

function rawInput(data)
{
    log('RECV: ' + data);
}

function rawOutput(data)
{
    log('SENT: ' + data);
}

function onConnect(status)
{
    if (status == Strophe.Status.CONNECTING) {
	log('Strophe is connecting.');
    } else if (status == Strophe.Status.CONNFAIL) {<commit_msg>Changed BOSH service URL in crossdomain.html example.<commit_after>// The BOSH_SERVICE here doesn't need to be on the same domain/port, but
// it must have a /crossdomain.xml policy file that allows access from
// wherever crossdomain.html lives.
//
// Most BOSH connection managers can serve static html files, so you should
// be able to configure them to serve a /crossdomain.xml file to allow
// access.
var BOSH_SERVICE = 'http://bosh.metajack.im:5280/xmpp-httpbind'
var connection = null;

function log(msg) 
{
    $('#log').append('<div></div>').append(document.createTextNode(msg));
}

function rawInput(data)
{
    log('RECV: ' + data);
}

function rawOutput(data)
{
    log('SENT: ' + data);
}

function onConnect(status)
{
    if (status == Strophe.Status.CONNECTING) {
	log('Strophe is connecting.');
    } else if (status == Strophe.Status.CONNFAIL) {
{'fraction_non_alphanumeric': 0.1356335514574658, 'fraction_numerical': 0.004759071980963712, 'mean_word_length': 3.932551319648094, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6401983', 'n_tokens_mistral': 545, 'n_tokens_neox': 542, 'n_words': 168}