<commit_before>const file = require('fs')
const path = require('path')

const results = file.readFileSync(path.resolve(__dirname, 'results.csv'))
  .toString()
  .split('\n')
  .map(row => row.split('|').map(column => column.toString().trim()).map(column => column === '&nbsp;' ? '' : column))
  .map(res => ([
    res[0],
    new Date(res[1]) || new Date(0),
    res[2],
    res[3],
    res[4],
    res[5],
    res[6],
    parseFloat(res[7]) || 0,
    res[8],
    res[9],
    res[10],
    parseFloat(res[11]) || 0,
    parseFloat(res[12]) || 0,
    parseFloat(res[13]) || 0,
    parseFloat(res[14]) || 0,
    parseFloat(res[15]) || 0,<commit_msg>check if date field is null<commit_after>const file = require('fs')
const path = require('path')

const results = file.readFileSync(path.resolve(__dirname, 'results.csv'))
  .toString()
  .split('\n')
  .map(row => row.split('|').map(column => column.toString().trim()).map(column => column === '&nbsp;' ? '' : column))
  .map(res => ([
    res[0],
    res[1] ? new Date(res[1]) : new Date(0),
    res[2],
    res[3],
    res[4],
    res[5],
    res[6],
    parseFloat(res[7]) || 0,
    res[8],
    res[9],
    res[10],
    parseFloat(res[11]) || 0,
    parseFloat(res[12]) || 0,
    parseFloat(res[13]) || 0,
    parseFloat(res[14]) || 0,
    parseFloat(res[15]) || 0,
{'fraction_non_alphanumeric': 0.23708206686930092, 'fraction_numerical': 0.044832826747720364, 'mean_word_length': 3.3322368421052633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2799352', 'n_tokens_mistral': 527, 'n_tokens_neox': 502, 'n_words': 93}