<commit_before>
# coding: utf-8

# In[1]:

# get_ipython().magic('load_ext autoreload')
# get_ipython().magic('autoreload 2')

import time
import datetime as dt
import logging
from csv import DictReader, DictWriter 
import re


# In[5]:

def datefix(adate):
        if adate>1:
            try:
                time.strptime(str(int(row)), "%m%d%Y")
                return adate
            except:
                logging.warning('Fixed date on line ' + line[k])
                raise
                return ''
        else:
            return ''
        <commit_msg>Fix bug in datefix()<commit_after>
# coding: utf-8

# In[1]:

# get_ipython().magic('load_ext autoreload')
# get_ipython().magic('autoreload 2')

import time
import datetime as dt
import logging
from csv import DictReader, DictWriter 
import re


# In[5]:

def datefix(adate):
        if adate>1:
            try:
                return time.strptime(str(int(adate)), "%m%d%Y")
            except:
                logging.warning('Fixed date on line ' + line[k])
                raise
                return ''
        else:
            return ''
        
{'fraction_non_alphanumeric': 0.1157613535173642, 'fraction_numerical': 0.008904719501335707, 'mean_word_length': 1.8455696202531646, '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': '6793751', 'n_tokens_mistral': 368, 'n_tokens_neox': 346, 'n_words': 88}