<commit_before>import { createTable } from 'webcharts';
import { onDraw } from './onDraw';
export function init(explorer) {
  var fileWrap = explorer.codebook.fileListing.wrap;
  fileWrap.selectAll('*').remove(); //Clear controls.

  //Make file selector
  var file_select_wrap = fileWrap
    .append('div')
    .classed('listing-container', true);

  //drop ignoredColumns and system variables
  console.log(explorer);

  explorer.config.tableConfig.cols = Object.keys(explorer.config.files[0])
    .filter(f => explorer.config.ignoredColumns.indexOf(f) == -1)
    .filter(f => ['settings', 'selected', 'event', 'json'].indexOf(f) == -1); //drop system variables from table

  //Create the table
  explorer.codebook.fileListing.table = createTable(
    '.web-codebook .fileListing .listing-container',
    explorer.config.tableConfig
  );

  //show the selected file first
  explorer.config.files.forEach(d => (d.selected = d == explorer.current));
  var sortedFiles = explorer.config.files.sort(function(a, b) {
    return a.selected ? -1 : b.selected ? 1 : 0;
  });
<commit_msg>remove stray console.log<commit_after>import { createTable } from 'webcharts';
import { onDraw } from './onDraw';
export function init(explorer) {
  var fileWrap = explorer.codebook.fileListing.wrap;
  fileWrap.selectAll('*').remove(); //Clear controls.

  //Make file selector
  var file_select_wrap = fileWrap
    .append('div')
    .classed('listing-container', true);

  //drop ignoredColumns and system variables
  explorer.config.tableConfig.cols = Object.keys(explorer.config.files[0])
    .filter(f => explorer.config.ignoredColumns.indexOf(f) == -1)
    .filter(f => ['settings', 'selected', 'event', 'json'].indexOf(f) == -1); //drop system variables from table

  //Create the table
  explorer.codebook.fileListing.table = createTable(
    '.web-codebook .fileListing .listing-container',
    explorer.config.tableConfig
  );

  //show the selected file first
  explorer.config.files.forEach(d => (d.selected = d == explorer.current));
  var sortedFiles = explorer.config.files.sort(function(a, b) {
    return a.selected ? -1 : b.selected ? 1 : 0;
  });

{'fraction_non_alphanumeric': 0.15230554261760595, 'fraction_numerical': 0.0055891942244993015, 'mean_word_length': 3.8929384965831435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2625669', 'n_tokens_mistral': 688, 'n_tokens_neox': 659, 'n_words': 153}