<commit_before>from __future__ import absolute_import, division, print_function

def test_generate_test_reflections(tmpdir):
  tmpdir.chdir()
  from dials.algorithms.simulation.generate_test_reflections import main
  from dials.algorithms.simulation.generate_test_reflections import \
    master_phil
  from libtbx.phil import command_line
  cmd = command_line.argument_interpreter(master_params = master_phil)
  working_phil = cmd.process_and_fetch(args = ["""nrefl = 10
shoebox_size {
  x = 20
  y = 20
  z = 20
}
spot_size {
  x = 1<commit_msg>fix deprecation warning<commit_after>from __future__ import absolute_import, division, print_function

def test_generate_test_reflections(tmpdir):
  tmpdir.chdir()
  from dials.algorithms.simulation.generate_test_reflections import main
  from dials.algorithms.simulation.generate_test_reflections import \
    master_phil
  from libtbx.phil import command_line
  cmd = command_line.argument_interpreter(master_phil=master_phil)
  working_phil = cmd.process_and_fetch(args = ["""nrefl = 10
shoebox_size {
  x = 20
  y = 20
  z = 20
}
spot_size {
  x = 1
{'fraction_non_alphanumeric': 0.07272727272727272, 'fraction_numerical': 0.016363636363636365, 'mean_word_length': 5.364161849710983, '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': '5137090', 'n_tokens_mistral': 394, 'n_tokens_neox': 376, 'n_words': 76}