<commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
DICOM reader

Example:

$ dcmreaddata -d sample_data -o head.mat
"""

import logging
import os
import re
import sys
import traceback
from optparse import OptionParser

import dicom
import numpy as np
import scipy
import scipy.io
from scipy.io import savemat
import os.path as op

logger = logging.getLogger(__name__)
from . import misc
<commit_msg>changed dicom package name to pydicom<commit_after>#! /usr/bin/env python
# -*- coding: utf-8 -*-

"""
DICOM reader

Example:

$ dcmreaddata -d sample_data -o head.mat
"""

import logging
import os
import re
import sys
import traceback
from optparse import OptionParser

try:
    import dicom
except:
    import pydicom as dicom

import numpy as np
import scipy
import scipy.io
from scipy.io import savemat
import os.path as op

logger = logging.getLogger(__name__)
from . import misc

{'fraction_non_alphanumeric': 0.08222222222222222, 'fraction_numerical': 0.0022222222222222222, 'mean_word_length': 3.977900552486188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6394813', 'n_tokens_mistral': 304, 'n_tokens_neox': 301, 'n_words': 111}