<commit_before>/**
 * Created by longstone on 28/06/15.
 */
'use strict';
var Bot = require('./lib/Bot'), fs = require('fs');
/**
 * this sample helps understand how the bot works, can also be used for integration tests ;)
 * @type {*|number}
 */
var bot = new Bot({
    token: 'TOKEN HERE'
})
    .on('message', function (message) {
        switch (message.text) {
            case "/sendPhoto":
                bot.sendPhoto({
                    chat_id: message.chat.id,
                    caption: 'trololo',
                    files: {
                        photo: {
                            filename: 'logo.png',
                            stream: fs.createReadStream('logo.png')
                        }
                    }
                });
                break;
            case "/sendMessage":
                bot.sendMessage({<commit_msg>echo bot for testing  / documentation purpose<commit_after>/**
 * Created by longstone on 28/06/15.
 */
'use strict';
var Bot = require('./lib/Bot'), fs = require('fs');
/**
 * this sample helps understand how the bot works, can also be used for integration tests ;)
 */
var bot = new Bot({
    token: 'TOKEN HERE'
})
    .on('message', function (message) {
        switch (message.text) {
            case "/sendPhoto":
                bot.sendPhoto({
                    chat_id: message.chat.id,
                    caption: 'trololo',
                    files: {
                        photo: {
                            filename: 'logo.png',
                            stream: fs.createReadStream('logo.png')
                        }
                    }
                });
                break;
            case "/sendMessage":
                bot.sendMessage({
{'fraction_non_alphanumeric': 0.12241379310344827, 'fraction_numerical': 0.006896551724137931, 'mean_word_length': 1.2178343949044586, 'pattern_counts': {'":': 4, '<': 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': '3713019', 'n_tokens_mistral': 457, 'n_tokens_neox': 424, 'n_words': 120}