<commit_before>/**
 * Copyright 2013 IBM Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/
 
RED.palette = function() {

    var exclusion = ['config','unknown'];
    var core = ['input', 'output', 'function', 'social', 'storage', 'analysis', 'advanced'];
    
    function createCategoryContainer(category){

        $("#palette-container").append('\
            <div class="palette-category">\
            <div id="header-'+category+'" class="palette-header"><i class="expanded icon-chevron-down"></i><span>'+category+'</span></div>\
            <div class="palette-content" id="palette-base-category-'+category+'">\
              <div id="palette-'+category+'-input"></div>\
              <div id="palette-'+category+'-output"></div>\
              <div id="palette-'+category+'-function"></div>\
            </div>\
            </div>');
          
    }
    
    core.forEach(createCategoryContainer);
    
    function addNodeType(nt,def) {
        if (exclusion.indexOf(def.category)===-1) {<commit_msg>Added deprecated to exclusion list<commit_after>/**
 * Copyright 2013 IBM Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/
 
RED.palette = function() {

    var exclusion = ['config','unknown','deprecated'];
    var core = ['input', 'output', 'function', 'social', 'storage', 'analysis', 'advanced'];
    
    function createCategoryContainer(category){

        $("#palette-container").append('\
            <div class="palette-category">\
            <div id="header-'+category+'" class="palette-header"><i class="expanded icon-chevron-down"></i><span>'+category+'</span></div>\
            <div class="palette-content" id="palette-base-category-'+category+'">\
              <div id="palette-'+category+'-input"></div>\
              <div id="palette-'+category+'-output"></div>\
              <div id="palette-'+category+'-function"></div>\
            </div>\
            </div>');
          
    }
    
    core.forEach(createCategoryContainer);
    
    function addNodeType(nt,def) {
        if (exclusion.indexOf(def.category)===-1) {
{'fraction_non_alphanumeric': 0.15337224383916992, 'fraction_numerical': 0.005836575875486381, 'mean_word_length': 3.011703511053316, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3709665', 'n_tokens_mistral': 847, 'n_tokens_neox': 827, 'n_words': 250}