<commit_before>// Spectre Theme using Spectre CSS framework. <https://picturepan2.github.io/spectre/index.html>
JSONEditor.defaults.themes.spectre = JSONEditor.AbstractTheme.extend({
  // Config options that allows changing various aspects of the output
  options: {
    disable_theme_rules: false,   // Disable creation of Inline Style Rules
    label_bold: true,             // Element labels bold
    align_bottom: false,          // Align elements to bottom of flex container
    object_indent: false,         // Indent nested object elements
    object_border: false,         // Add border around object elements
    table_border: false,          // Add border to array "table" row and cells
    table_zebrastyle: false,      // Add "zebra style" to array "table" rows
    input_size: 'normal'         // Size of input and select elements. "small", "normal", "large"
  },
  // Custom stylesheet rules. (Does not suppert comma separated selectors)
  //  Will create a stylesheet in document head with the id "theme-spectre" if not exists.
  rules: {
    '*': '--primary-color:#5755d9;--gray-color:#bcc3ce;--light-color:#fff', // CSS variables
    '.slider:focus': 'box-shadow: none', // Remove slider focus shadow
    'h4>label+.btn-group': 'margin-left:1rem', // Add margin between header and top buttons
    '.text-right>button': 'margin-right: 0 !important', // Remove right margin on right-aligned button
    '.text-left>button': 'margin-left: 0 !important', // Remove left margin on left-aligned button
    '.json-editor-btntype-properties+div>.property-selector': 'font-size: .7rem;font-weight: normal; max-height:260px!important;width:395px!important', // Fix fontsize in Properties modal and increase size of modal box
    '.json-editor-btntype-properties+div>.property-selector .form-checkbox': 'margin:0', // Remove checkbox margins in Properties modal
    'textarea': 'width:100%;min-height: 2rem;resize:vertical',  // Prevent textarea from being resized horizontally
    'table': 'border-collapse: collapse;', // Remove gap between table element borders
    '.table td': 'padding: .4rem .4rem;', // reduce table padding
    '.mr-5': 'margin-right: 1rem !important;', // margin for checkbox label
    'div[data-schematype]:not([data-schematype="object"])' : 'transition:.5s',  // Hover on input block (Should be removed in final version)
    'div[data-schematype]:not([data-schematype="object"]):hover' : 'background-color: #eee', // Hover on input block (Should be removed in final version)
    '.je-table-border td': 'border: .05rem solid #dadee4 !important', // Option: table_border
    '.btn-info' : 'font-size:.5rem;font-weight:bold;height:.8rem;padding:.15rem 0;line-height:.8;margin:.3rem 0 .3rem .1rem;', // Infobutton
    '.je-label': 'font-weight: 600', // Option: label_bold
    '.btn-action.btn-info': 'width: .8rem;', // Infobutton
    '.je-border': 'border:.05rem solid #dadee4', // Option: object_border
    '.je-panel': 'padding:.2rem;margin:.2rem;background-color: rgba(218,222,228,.1)',
    '.je-panel-top': 'padding:.2rem;margin:.2rem;background-color: rgba(218,222,228,.1)',
    '.required:after': 'content: " *";color: red;font:inherit', // Red * after label if field is required
    '.je-align-bottom': 'margin-top: auto', // option: align_bottom
    '.je-desc': 'font-size: smaller;margin: .2rem 0;', // Description
/*    '.columns': 'border:1px solid rgba(255,0,0,.5);',
    '.columns .columns': 'border:1px solid rgba(0,255,0,.5);',*/
    '.columns .container.je-noindent': 'padding-left:0;padding-right:0;', // Option: object_indent
    // Adjustments for Selectize styling
    '.selectize-control.multi .item': 'background: var(--primary-color) !important;',
    // Adjustments for Select2 styling
    '.select2-container--default .select2-selection--single .select2-selection__arrow': 'display: none',
    '.select2-container--default .select2-selection--single': 'border: none;',
    '.select2-container .select2-selection--single .select2-selection__rendered': 'padding: 0; ',
    '.select2-container .select2-search--inline .select2-search__field': 'margin-top: 0;',
    '.select2-container--default.select2-container--focus .select2-selection--multiple': 'border: .05rem solid var(--gray-color);',
    '.select2-container--default .select2-selection--multiple .select2-selection__choice': 'margin:.4rem .2rem .2rem 0;padding:2px 5px;background-color:var(--primary-color);color:var(--light-color)',
    '.select2-container--default .select2-search--inline .select2-search__field': 'line-height: normal;',
    // Adjustment styling for Choices
    '.choices': 'margin-bottom: auto',
    '.choices__list--multiple .choices__item': 'border:none;background-color:var(--primary-color);color:var(--light-color)',
    '.choices[data-type*="select-multiple"] .choices__button': 'border-left:.05rem solid #2826A6',
    '.choices__inner': 'min-height: 20px;padding: 2px 7.5px 2px 3.75px'
  },
  // Functions for setting up the grid container, row and columns
  setGridColumnSize: function(el,size, offset) {
    el.classList.add('col-' + size);
    if (offset) el.classList.add('col-mx-auto');
  },
  getGridContainer: function() {
    var el = document.createElement('div');
    el.classList.add('container');
    if (!this.options.object_indent) el.classList.add('je-noindent');
    return el;
  },
  getGridRow: function() {
    var el = document.createElement('div');
    el.classList.add('columns');
    return el;
  },
  getGridColumn: function() {
    var el = document.createElement('div');
    el.classList.add('column');
    if (this.options.align_bottom) el.classList.add('je-align-bottom');
    return el;
  },



  // Used for "type: object" or "type: array" (except if "format: tabs-top")
  getIndentedPanel: function() {<commit_msg>Added adjustment styling for Choices.js<commit_after>// Spectre Theme using Spectre CSS framework. <https://picturepan2.github.io/spectre/index.html>
JSONEditor.defaults.themes.spectre = JSONEditor.AbstractTheme.extend({
  // Config options that allows changing various aspects of the output
  options: {
    disable_theme_rules: false,   // Disable creation of Inline Style Rules
    label_bold: true,             // Element labels bold
    align_bottom: false,          // Align elements to bottom of flex container
    object_indent: false,         // Indent nested object elements
    object_border: false,         // Add border around object elements
    table_border: false,          // Add border to array "table" row and cells
    table_zebrastyle: false,      // Add "zebra style" to array "table" rows
    input_size: 'normal'         // Size of input and select elements. "small", "normal", "large"
  },
  // Custom stylesheet rules. (Does not suppert comma separated selectors)
  //  Will create a stylesheet in document head with the id "theme-spectre" if not exists.
  rules: {
    '*': '--primary-color:#5755d9;--gray-color:#bcc3ce;--light-color:#fff', // CSS variables
    '.slider:focus': 'box-shadow: none', // Remove slider focus shadow
    'h4>label+.btn-group': 'margin-left:1rem', // Add margin between header and top buttons
    '.text-right>button': 'margin-right: 0 !important', // Remove right margin on right-aligned button
    '.text-left>button': 'margin-left: 0 !important', // Remove left margin on left-aligned button
    '.json-editor-btntype-properties+div>.property-selector': 'font-size: .7rem;font-weight: normal; max-height:260px!important;width:395px!important', // Fix fontsize in Properties modal and increase size of modal box
    '.json-editor-btntype-properties+div>.property-selector .form-checkbox': 'margin:0', // Remove checkbox margins in Properties modal
    'textarea': 'width:100%;min-height: 2rem;resize:vertical',  // Prevent textarea from being resized horizontally
    'table': 'border-collapse: collapse;', // Remove gap between table element borders
    '.table td': 'padding: .4rem .4rem;', // reduce table padding
    '.mr-5': 'margin-right: 1rem !important;', // margin for checkbox label
    'div[data-schematype]:not([data-schematype="object"])' : 'transition:.5s',  // Hover on input block (Should be removed in final version)
    'div[data-schematype]:not([data-schematype="object"]):hover' : 'background-color: #eee', // Hover on input block (Should be removed in final version)
    '.je-table-border td': 'border: .05rem solid #dadee4 !important', // Option: table_border
    '.btn-info' : 'font-size:.5rem;font-weight:bold;height:.8rem;padding:.15rem 0;line-height:.8;margin:.3rem 0 .3rem .1rem;', // Infobutton
    '.je-label': 'font-weight: 600', // Option: label_bold
    '.btn-action.btn-info': 'width: .8rem;', // Infobutton
    '.je-border': 'border:.05rem solid #dadee4', // Option: object_border
    '.je-panel': 'padding:.2rem;margin:.2rem;background-color: rgba(218,222,228,.1)',
    '.je-panel-top': 'padding:.2rem;margin:.2rem;background-color: rgba(218,222,228,.1)',
    '.required:after': 'content: " *";color: red;font:inherit', // Red * after label if field is required
    '.je-align-bottom': 'margin-top: auto', // option: align_bottom
    '.je-desc': 'font-size: smaller;margin: .2rem 0;', // Description
/*    '.columns': 'border:1px solid rgba(255,0,0,.5);',
    '.columns .columns': 'border:1px solid rgba(0,255,0,.5);',*/
    '.columns .container.je-noindent': 'padding-left:0;padding-right:0;', // Option: object_indent
    // Adjustments for Selectize styling
    '.selectize-control.multi .item': 'background: var(--primary-color) !important;',
    // Adjustments for Select2 styling
    '.select2-container--default .select2-selection--single .select2-selection__arrow': 'display: none',
    '.select2-container--default .select2-selection--single': 'border: none;',
    '.select2-container .select2-selection--single .select2-selection__rendered': 'padding: 0; ',
    '.select2-container .select2-search--inline .select2-search__field': 'margin-top: 0;',
    '.select2-container--default.select2-container--focus .select2-selection--multiple': 'border: .05rem solid var(--gray-color);',
    '.select2-container--default .select2-selection--multiple .select2-selection__choice': 'margin:.4rem .2rem .2rem 0;padding:2px 5px;background-color:var(--primary-color);color:var(--light-color)',
    '.select2-container--default .select2-search--inline .select2-search__field': 'line-height: normal;',
    // Adjustment styling for Choices
    '.choices': 'margin-bottom: auto',
    '.choices__list--multiple .choices__item': 'border:none;background-color:var(--primary-color);color:var(--light-color)',
    '.choices[data-type*="select-multiple"] .choices__button': 'border-left:.05rem solid #2826A6',
    '.choices__inner': 'font-size: inherit;min-height: 20px;padding: 4px 7.5px 4px 3.75px',
    '.choices[data-type*="select-one"] .choices__inner': 'padding-bottom: 4px',
    '.choices__list--dropdown .choices__item': 'font-size:inherit'
  },
  // Functions for setting up the grid container, row and columns
  setGridColumnSize: function(el,size, offset) {
    el.classList.add('col-' + size);
    if (offset) el.classList.add('col-mx-auto');
  },
  getGridContainer: function() {
    var el = document.createElement('div');
    el.classList.add('container');
    if (!this.options.object_indent) el.classList.add('je-noindent');
    return el;
  },
  getGridRow: function() {
    var el = document.createElement('div');
    el.classList.add('columns');
    return el;
  },
  getGridColumn: function() {
    var el = document.createElement('div');
    el.classList.add('column');
    if (this.options.align_bottom) el.classList.add('je-align-bottom');
    return el;
  },



  // Used for "type: object" or "type: array" (except if "format: tabs-top")
  getIndentedPanel: function() {
{'fraction_non_alphanumeric': 0.16293902542733227, 'fraction_numerical': 0.023386342376052385, 'mean_word_length': 3.817697664891438, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '731524', 'n_tokens_mistral': 3782, 'n_tokens_neox': 3590, 'n_words': 892}