<commit_before>define(function(require) {
  var _ = require('underscore'),
      d3 = require('d3');
  function isTime(type) {
    return _.contains(['time', 'timestamp', 'date'], type);
  }
  function isNum(type) {
    return _.contains(['integer', 'double precision', 'num', 'int4', 'int', 'int8', 'float8', 'float', 'bigint'], type);
  }
  function isStr(type) {
    return _.contains(['varchar', 'text', 'str'], type);
  }


  function debugMode() {
    try {
      return !$("#fake-type > input[type=checkbox]").get()[0].checked;
    } catch(e) {
      return false;
    }<commit_msg>better type checking in dbwipes<commit_after>define(function(require) {
  var _ = require('underscore'),
      d3 = require('d3');
  function isTime(type) {
    return _.contains(['time', 'timestamp', 'date'], type);
  }
  function isNum(type) {
    return _.contains(['integer', 'double precision', 'num', 'int4', 'int', 'int8', 'float8', 'float', 'bigint'], type);
  }
  function isStr(type) {
    return !isTime(type) && !isNum(type);
    return _.contains(['varchar', 'text', 'str'], type);
  }


  function debugMode() {
    try {
      return !$("#fake-type > input[type=checkbox]").get()[0].checked;
    } catch(e) {
      return false;
    }
{'fraction_non_alphanumeric': 0.20597738287560582, 'fraction_numerical': 0.009693053311793215, 'mean_word_length': 3.7837837837837838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4728489', 'n_tokens_mistral': 414, 'n_tokens_neox': 409, 'n_words': 91}