<commit_before>/**
 * @overview <i>ccm</i> component for list of user inputs
 * @author <NAME> <<EMAIL>> 2016
 * @license The MIT License (MIT)
 */

ccm.component( {
  index: 'input_list',
  config: {
    input: [ ccm.component, 'https://akless.github.io/ccm-components/resources/input/ccm.input.js' ]
  },
  Instance: function () {
    var self = this;
    var my;
    this.ready = function ( callback ) {
      my = ccm.helper.privatize( self, 'data', 'edit', 'input', 'form' );
      if ( ccm.helper.isObject( my.edit ) ) {
        if ( typeof my.edit.key === 'string' ) my.edit.key = { _id: { $regex: '^' + my.edit.key + ',' } };
        if ( !ccm.helper.isObject( my.edit.key ) ) my.edit.key = {};
      }
      callback();
    };
    this.render = function ( callback ) {
      var $element = ccm.helper.element( self );
      ccm.helper.dataset( my.data, function ( dataset ) {
        ccm.helper.dataset( my.edit, function ( editsets ) {
          $element.html( '' );
          editsets.map( function ( editset, i ) {
            if ( Object.keys( editset ).length <= 2 ) return;<commit_msg>update ccm.input_list.js: show all datasets (empty datasets too)<commit_after>/**
 * @overview <i>ccm</i> component for list of user inputs
 * @author <NAME> <<EMAIL>> 2016
 * @license The MIT License (MIT)
 */

ccm.component( {
  index: 'input_list',
  config: {
    input: [ ccm.component, 'https://akless.github.io/ccm-components/resources/input/ccm.input.js' ]
  },
  Instance: function () {
    var self = this;
    var my;
    this.ready = function ( callback ) {
      my = ccm.helper.privatize( self, 'data', 'edit', 'input', 'form' );
      if ( ccm.helper.isObject( my.edit ) ) {
        if ( typeof my.edit.key === 'string' ) my.edit.key = { _id: { $regex: '^' + my.edit.key + ',' } };
        if ( !ccm.helper.isObject( my.edit.key ) ) my.edit.key = {};
      }
      callback();
    };
    this.render = function ( callback ) {
      var $element = ccm.helper.element( self );
      ccm.helper.dataset( my.data, function ( dataset ) {
        ccm.helper.dataset( my.edit, function ( editsets ) {
          $element.html( '' );
          editsets.map( function ( editset, i ) {
{'fraction_non_alphanumeric': 0.17724988579259937, 'fraction_numerical': 0.004111466423024212, 'mean_word_length': 2.492822966507177, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 13, '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': '5910269', 'n_tokens_mistral': 758, 'n_tokens_neox': 751, 'n_words': 168}