<commit_before>/**
 * @file init-subsite.js
 * Initialization of a subside inside a wrapper in Role
 */



/**
 * How to react on incoming messages (from the wrapper)
 * @param event event from the messageEventListener
 */
function receiveMessage(event)
{
    ///TODO: check that message really comes from role
    // if (event.origin !== "http://example.org:8080")
    //  return;

    //Debug output for message
    // console.info("Subsite: We got a message: ", event.data);

    //choose reaction<commit_msg>wrapper: ignore empty messages in the subsite<commit_after>/**
 * @file init-subsite.js
 * Initialization of a subside inside a wrapper in Role
 */



/**
 * How to react on incoming messages (from the wrapper)
 * @param event event from the messageEventListener
 */
function receiveMessage(event)
{
    ///TODO: check that message really comes from role
    // if (event.origin !== "http://example.org:8080")
    //  return;

    //Debug output for message
    // console.info("Subsite: We got a message: ", event.data);

    //ignore message if its empty
    if(event.data === undefined){
	return;
    }

    //choose reaction
{'fraction_non_alphanumeric': 0.12280701754385964, 'fraction_numerical': 0.007017543859649123, 'mean_word_length': 2.9895104895104896, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3063296', 'n_tokens_mistral': 331, 'n_tokens_neox': 313, 'n_words': 119}