<commit_before>// Setup CKEditor
define(function(require) {
	
	// Dependencies
	var $ = require('jquery'),
		_ = require('underscore'),
		CKEDITOR = window.CKEDITOR, // CK isn't currently loaded via requirejs
		CKFINDER = window.CKFinder; // CK isn't currently loaded via requirejs
	
	// Default config
	var config = {
		customConfig: '', // Don't load external config js file
		enterMode : CKEDITOR.ENTER_BR,
		allowedContent: true, // Allow all HTML tags
		toolbar : [
			{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
			{ name: 'basicstyles', items : [ 'Bold','Italic' ] },
			{ name: 'links', items : [ 'Link','Unlink'] },
			{ name: 'image', items : [ 'Image' ] },<commit_msg>Stopping CKEditor from adding it's own entities and breaking Fragment unchanged() checks<commit_after>// Setup CKEditor
define(function(require) {
	
	// Dependencies
	var $ = require('jquery'),
		_ = require('underscore'),
		CKEDITOR = window.CKEDITOR, // CK isn't currently loaded via requirejs
		CKFINDER = window.CKFinder; // CK isn't currently loaded via requirejs
	
	// Default config
	var config = {
		customConfig: '', // Don't load external config js file
		enterMode : CKEDITOR.ENTER_BR,
		allowedContent: true, // Allow all HTML tags
		
		// Don't add entities, trust the input.  This was added so that entities in the
		// language conf file for fragments doesn't return `changed()` because CKEditor
		// modified it.
		entities: false, 
		htmlEncodeOutput: false,
		
		toolbar : [
			{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
			{ name: 'basicstyles', items : [ 'Bold','Italic' ] },
			{ name: 'links', items : [ 'Link','Unlink'] },
			{ name: 'image', items : [ 'Image' ] },
{'fraction_non_alphanumeric': 0.1601343784994401, 'fraction_numerical': 0.0, 'mean_word_length': 3.8428184281842817, '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': '638450', 'n_tokens_mistral': 620, 'n_tokens_neox': 546, 'n_words': 161}