<commit_before>CKEDITOR.stylesSet.add( 'styling', [
  { name: 'Code', element: 'code' },
  { name: 'Keyboard' , element: 'kbd' }
]);

CKEDITOR.editorConfig = function( config ) {
  // Insert from clipboard should be cleared from formating
  config.forcePasteAsPlainText = true;
  
  config.extraPlugins = 'highlight_js,youtube';
  
  config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre';
  
  config.stylesSet = 'styling';
  
  config.extraAllowedContent = 'code(*)'
  
  config.toolbar = [
    ["Save", "-", "Source"],
    ["Highlight"],
    ["Undo", "Redo"],
    ["Bold",  "Italic",  "Underline",  "Strike",  "-",  "Subscript",  "Superscript", "-", "NumberedList", "BulletedList", "-", "Outdent", "Indent"],
    ["Link", "Unlink"],
    ["Image", "Youtube", "Table"],
    ["Maximize"],
    "/",
    ["Styles", "Format", "FontSize"],
    ["JustifyLeft", "JustifyCenter", "JustifyRight"],
    ["TextColor", "BGColor"]
  ];
  
  config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
  config.filebrowserFlashBrowseUrl = "/ckeditor/attachment_files";
  config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
  config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
  config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
  config.filebrowserImageUploadUrl = "/ckeditor/pictures";
  config.filebrowserUploadUrl = "/ckeditor/attachment_files";
  
  // Rails CSRF token
  config.filebrowserParams = function(){
    var csrf_token, csrf_param, meta,<commit_msg>Added comments<commit_after>CKEDITOR.stylesSet.add( 'styling', [
  { name: 'Code', element: 'code' },
  { name: 'Keyboard' , element: 'kbd' }
]);

CKEDITOR.editorConfig = function( config ) {
  // Insert from clipboard should be cleared from formating
  config.forcePasteAsPlainText = true;
  
  config.extraPlugins = 'highlight_js,youtube';
  
  config.format_tags = 'p;h1;h2;h3;h4;h5;h6;pre';
  
  config.stylesSet = 'styling';
  
  // Allow code tags to have classes
  config.extraAllowedContent = 'code(*)'
  
  config.toolbar = [
    ["Save", "-", "Source"],
    ["Highlight"],
    ["Undo", "Redo"],
    ["Bold",  "Italic",  "Underline",  "Strike",  "-",  "Subscript",  "Superscript", "-", "NumberedList", "BulletedList", "-", "Outdent", "Indent"],
    ["Link", "Unlink"],
    ["Image", "Youtube", "Table"],
    ["Maximize"],
    "/",
    ["Styles", "Format", "FontSize"],
    ["JustifyLeft", "JustifyCenter", "JustifyRight"],
    ["TextColor", "BGColor"]
  ];
  
  config.filebrowserBrowseUrl = "/ckeditor/attachment_files";
  config.filebrowserFlashBrowseUrl = "/ckeditor/attachment_files";
  config.filebrowserFlashUploadUrl = "/ckeditor/attachment_files";
  config.filebrowserImageBrowseLinkUrl = "/ckeditor/pictures";
  config.filebrowserImageBrowseUrl = "/ckeditor/pictures";
  config.filebrowserImageUploadUrl = "/ckeditor/pictures";
  config.filebrowserUploadUrl = "/ckeditor/attachment_files";
  
  // Rails CSRF token
  config.filebrowserParams = function(){
    var csrf_token, csrf_param, meta,
{'fraction_non_alphanumeric': 0.17627345844504022, 'fraction_numerical': 0.004021447721179625, 'mean_word_length': 4.397830018083183, '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': '1446406', 'n_tokens_mistral': 1043, 'n_tokens_neox': 1034, 'n_words': 174}