<commit_before>var checksum = require('checksum');

module.exports = {

	website: {
		assets: "./book",
		css: [
			"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css",
			"fbqx.css"
		],
		js: [
			"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js",
			"fbqx.js",
			"js.cookie.js"
		]
	},

	blocks: {
		fbq: {
			process: function(blk) {
                if(this.generator === 'website'){

                    var para = blk.body;
                    var substr = para.split("$$");
                    var ans = [];

                    for(var i = 1; i<substr.length; i++){
                        ans.push(substr[i].split("##", 1));
                        var str = '$$' + ans[i-1].toString() + '##';
                        para = para.replace(str, "<div class='ans'><input type='text' class='form-control input-sm'/></div>");
                    }

				    return "<blockquote class='FBQbox' data-id='"+checksum(blk.body)+"' data-answer='" + JSON.stringify(ans)+ "'>" + para + "<br><button class='btn btn-default btn-sm FBQsubmit'>Submit</button></blockquote>";
                } 
                else {

                    var para = blk.body;
                    var substr = para.split("$$");
                    var ans = [];

                    for(var i = 1; i<substr.length; i++){
                        ans.push(substr[i].split("##", 1));
                        var str = '$$' + ans[i-1].toString() + '##';
                        para = para.replace(str, "______");
                    }

                    var ansString = ans.join(',');

                    return "<blockquote>"+ para +"<hr><small>ans: "+ansString+"</small></blockquote>";
                }
			}
		}
	}
};<commit_msg>changed hr to br<commit_after>var checksum = require('checksum');

module.exports = {

	website: {
		assets: "./book",
		css: [
			"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css",
			"fbqx.css"
		],
		js: [
			"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js",
			"fbqx.js",
			"js.cookie.js"
		]
	},

	blocks: {
		fbq: {
			process: function(blk) {
                if(this.generator === 'website'){

                    var para = blk.body;
                    var substr = para.split("$$");
                    var ans = [];

                    for(var i = 1; i<substr.length; i++){
                        ans.push(substr[i].split("##", 1));
                        var str = '$$' + ans[i-1].toString() + '##';
                        para = para.replace(str, "<div class='ans'><input type='text' class='form-control input-sm'/></div>");
                    }

				    return "<blockquote class='FBQbox' data-id='"+checksum(blk.body)+"' data-answer='" + JSON.stringify(ans)+ "'>" + para + "<br><button class='btn btn-default btn-sm FBQsubmit'>Submit</button></blockquote>";
                } 
                else {

                    var para = blk.body;
                    var substr = para.split("$$");
                    var ans = [];

                    for(var i = 1; i<substr.length; i++){
                        ans.push(substr[i].split("##", 1));
                        var str = '$$' + ans[i-1].toString() + '##';
                        para = para.replace(str, "______");
                    }

                    var ansString = ans.join(',');

                    return "<blockquote>"+ para +"<br/><small>ans: "+ansString+"</small></blockquote>";
                }
			}
		}
	}
};
{'fraction_non_alphanumeric': 0.1896453089244851, 'fraction_numerical': 0.006864988558352402, 'mean_word_length': 1.4748761500353857, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 29, 'https://': 4, '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': '2379566', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1038, 'n_words': 175}