<commit_before>/**
 * Created by kamalnrf
 */

'use strict';

const feedBack = {
    sendFeedBack (payload, convo){
        const question = `Please tell us how to improve Chanun to help you better.`;

        const answer = (payload, chat) => {
            try {
                const feedback = payload.message.text;

                convo.say(`Thank you for feedback`)
                    .then(() => convo.end());
            }catch(error) {
                if (payload.postback.payload === '_stop'){
                    convo.say(`You broke the conversation, try sending it again...`);
                }
                convo.say(`I'm afraid to say that something went please try again later`);
            }
        };

        convo.ask(question, answer);
    }
};

module.exports = feedBack;<commit_msg>patches<commit_after>/**
 * Created by kamalnrf
 */

'use strict';

const feedBack = {
    sendFeedBack (payload, convo){
        const question = `Please tell us how to improve Chanun to help you better.`;

        const answer = (payload, chat) => {
            try {
                const feedback = payload.message.text;

                convo.say(`Thank you for feedback`)
                    .then(() => convo.end());
            }catch(error) {
                if (payload.postback.payload === 'feedback'){
                    convo.say(`You broke the conversation, try sending it again...`);
                }
                convo.say(`I'm afraid to say that something went please try again later`);
            }
        };

        convo.ask(question, answer);
    }
};

module.exports = feedBack;
{'fraction_non_alphanumeric': 0.11982705373687462, 'fraction_numerical': 0.0, 'mean_word_length': 1.6600985221674878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3932582', 'n_tokens_mistral': 445, 'n_tokens_neox': 424, 'n_words': 129}