<commit_before>module.exports = (bot, logger, helper) => {
    bot.on('callback_query', async(msg) => {
        let test = msg.data.match(/changelang_([a-zA-Z]{2})/);
        if(test) {
            const callid = msg.id;
            let temp;
            try {
                logger.info('callback id: '+callid+', username: '+modules.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: callback received');
                try {
                    temp = await modules.getlang(msg, logger);
                    await temp.langset(regex[1]);
                    await bot.editMessageText(temp.person('command.lang.success'), {chat_id: msg.message.chat.id, message_id: msg.message.message_id, 
                            reply_to_message_id: msg.message_id, parse_mode: 'HTML'});
                    logger.info('callback id: '+callid+', username: '+modules.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: valid');     
                } catch(e) {
                    try {
                        await bot.editMessageText("❗️ "+temp.group('command.lang.error'), {chat_id: msg.message.chat.id, message_id: msg.message.message_id, 
                            reply_to_message_id: msg.message_id, parse_mode: 'HTML'});
                        logger.error('callback id: '+callid+', username: '+modules.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: error');
                        logger.debug(e.stack);
                    } catch(e) {
                        logger.error('callback id: '+callid+', username: '+modules.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: error send error');
                        logger.debug(e.stack);
                    }
                }
            } catch(e) {
                logger.error('callback id: '+callid+', username: '+modules.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.text+', type: error');
                logger.debug(e.message);
            }
        }
    });
}<commit_msg>이전에 발견하지 못한 버그 수정<commit_after>module.exports = (bot, logger, helper) => {
    bot.on('callback_query', async(msg) => {
        let test = msg.data.match(/changelang_([a-zA-Z]{2})/);
        if(test) {
            const callid = msg.id;
            let temp;
            try {
                logger.info('callback id: '+callid+', username: '+helper.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: callback received');
                try {
                    temp = await helper.getlang(msg, logger);
                    await temp.langset(regex[1]);
                    await bot.editMessageText(temp.person('command.lang.success'), {chat_id: msg.message.chat.id, message_id: msg.message.message_id, 
                            reply_to_message_id: msg.message_id, parse_mode: 'HTML'});
                    logger.info('callback id: '+callid+', username: '+helper.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: valid');     
                } catch(e) {
                    try {
                        await bot.editMessageText("❗️ "+temp.group('command.lang.error'), {chat_id: msg.message.chat.id, message_id: msg.message.message_id, 
                            reply_to_message_id: msg.message_id, parse_mode: 'HTML'});
                        logger.error('callback id: '+callid+', username: '+helper.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: error');
                        logger.debug(e.stack);
                    } catch(e) {
                        logger.error('callback id: '+callid+', username: '+helper.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.data+', type: error send error');
                        logger.debug(e.stack);
                    }
                }
            } catch(e) {
                logger.error('callback id: '+callid+', username: '+helper.getuser(msg.from)+', lang: '+msg.from.language_code+', command: '+msg.text+', type: error');
                logger.debug(e.message);
            }
        }
    });
}
{'fraction_non_alphanumeric': 0.1659513590844063, 'fraction_numerical': 0.0009537434430138292, 'mean_word_length': 1.943859649122807, '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': '7630811', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1223, 'n_words': 222}