<commit_before># Copyright 2006-2011 <NAME>
from pycbio.sys import PycbioException

class TSVError(PycbioException):
    "Error from reading or parsing a TSV file"
    def __init__(self, msg, reader=None, cause=None):
        if (reader != None):
            msg = reader.fileName + ":" + str(reader.lineNum) + ": " + msg
        PycbioException.__init__(self, msg, cause)<commit_msg>handle errors when fileName is None<commit_after># Copyright 2006-2011 <NAME>
from pycbio.sys import PycbioException

class TSVError(PycbioException):
    "Error from reading or parsing a TSV file"
    def __init__(self, msg, reader=None, cause=None):
        if (reader != None):
            msg = str(reader.fileName) + ":" + str(reader.lineNum) + ": " + msg
        PycbioException.__init__(self, msg, cause)
{'fraction_non_alphanumeric': 0.11823899371069183, 'fraction_numerical': 0.02012578616352201, 'mean_word_length': 3.627906976744186, 'pattern_counts': {'":': 4, '<': 5, '<?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': '5501231', 'n_tokens_mistral': 259, 'n_tokens_neox': 244, 'n_words': 70}