<commit_before>def tst_dxtbx():
    import libtbx.load_env
    import os
    dials_regression = libtbx.env.dist_path('dials_regression')
    from boost.python import streambuf
    from dxtbx import read_uint16
    from dxtbx.format.Registry import Registry

    for directory, image in [('SLS_X06SA', 'mar225_2_001.img')]:
        file_path = os.path.join(dials_regression, 'image_examples',
                                 directory, image)
        format = Registry.find(file_path)
        i = format(file_path)
        size = i.get_detector().get_image_size()

    print 'OK'

tst_dxtbx()<commit_msg>Use     from dials_regression.image_examples.get_all_working_images import         get_all_working_images method to get list of images<commit_after>def tst_dxtbx():
    import libtbx.load_env
    import os
    dials_regression = libtbx.env.dist_path('dials_regression')
    from boost.python import streambuf
    from dxtbx import read_uint16
    from dxtbx.format.Registry import Registry

    from dials_regression.image_examples.get_all_working_images import \
        get_all_working_images

    for directory, image in get_all_working_images():
        file_path = os.path.join(dials_regression, 'image_examples',
                                 directory, image)
        format = Registry.find(file_path)
        i = format(file_path)
        size = i.get_detector().get_image_size()

    print 'OK'

tst_dxtbx()
{'fraction_non_alphanumeric': 0.07800421644413212, 'fraction_numerical': 0.009135628952916374, 'mean_word_length': 3.0, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2925741', 'n_tokens_mistral': 476, 'n_tokens_neox': 449, 'n_words': 92}