<commit_before>/**
 * Created by cesar on 25/2/16.
 */
export const SimpleChat = {
    options:  {
        texts: {
            loadMore: 'Load More',
            placeholder: 'Type message ...',
            button: 'send',
            join: 'Join to',
            left: 'Left the',
            room: 'room at'

        },
        limit: 50,
        beep: false,
        showViewed: false,
        showReceived: false,
        showJoined: false,
        publishChats: function (roomId, limi) {
            return true
        },
        allow: function (message, roomId, username, avatar, name) {
            return true
        },
        onNewMessage: function (msg) {
            console.log(msg)
        },
        onReceiveMessage: function () {

        }
    },
    configure: function (options) {<commit_msg>Add onJoin and onLeft functions to config.js, closes #10<commit_after>/**
 * Created by cesar on 25/2/16.
 */
export const SimpleChat = {
    options:  {
        texts: {
            loadMore: 'Load More',
            placeholder: 'Type message ...',
            button: 'send',
            join: 'Join to',
            left: 'Left the',
            room: 'room at'

        },
        limit: 50,
        beep: false,
        showViewed: false,
        showReceived: false,
        showJoined: false,
        publishChats: function (roomId, limi) {
            return true
        },
        allow: function (message, roomId, username, avatar, name) {
            return true
        },
        onNewMessage: function (msg) {
            console.log(msg)
        },
        onReceiveMessage: function () {

        },
        onJoin: function (roomId, username, name,date) {
            //server
        },
        onLeft: function (roomId, username, name,date) {
            //server
        },
    },
    configure: function (options) {
{'fraction_non_alphanumeric': 0.11434735706580366, 'fraction_numerical': 0.008629989212513484, 'mean_word_length': 1.460212201591512, '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': '3124519', 'n_tokens_mistral': 529, 'n_tokens_neox': 510, 'n_words': 144}