<jupyter_start><jupyter_text>Check SAX directories  List SAX Directories without exactly 30 dcm files, numbered 1 to 30.<jupyter_code>def find_non_standard_sax(path):
    for root, _, files in os.walk(path):
        if len(files) == 0 or root.find("sax") == -1:
            continue
        files = [x for x in files if os.path.splitext(x)[1] == '.dcm']
        if len(files) == 0:
            continue
        prefix = files[0].rsplit('-', 1)[0]
        fileset = set(files)
        expected = ["%s-%04d.dcm" % (prefix, i) for i in range(1, 31)]
        if not all(x in fileset for x in expected):
            n = len(fileset)
            print("n: {}\t {}".format(n, root))
find_non_standard_sax(TRN_PATH)
find_non_standard_sax(VLD_PATH)<jupyter_output>n: 330	 ../data/validate/516/study/sax_104
n: 60	 ../data/validate/590/study/sax_10
n: 60	 ../data/validate/590/study/sax_11
n: 60	 ../data/validate/590/study/sax_12
n: 60	 ../data/validate/590/study/sax_13
n: 60	 ../data/validate/590/study/sax_14
n: 60	 ../data/validate/590/study/sax_15
n: 60	 ../data/validate/590/study/sax_16
n: 60	 ../data/validate/590/study/sax_17
n: 60	 ../data/validate/590/study/sax_18
n: 60	 ../data/validate/590/study/sax_19
n: 60	 ../data/validate/590/study/sax_20
n: 270	 ../data/validate/597/study/sax_7
n: 330	 ../data/validate/619/study/sax_21
n: 60	 ../data/validate/623/study/sax_56
n: 60	 ../data/validate/623/study/sax_57
{'fraction_non_alphanumeric': 0.16560509554140126, 'fraction_numerical': 0.09341825902335456, 'mean_word_length': 2.721052631578947, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '95750', 'license': 'MIT', 'n_tokens_mistral': 685, 'n_tokens_neox': 558, 'n_words': 119, 'path': 'dsb2015/explore.ipynb', 'repo_name': 'rmunoz12/dsb2015', 'size': '1413'}