<commit_before># LIBTBX_SET_DISPATCHER_NAME dev.dials.sum_images

from __future__ import absolute_import, division, print_function

def sum_images(in_template, out_image, start, end):
  from dials.util.rebin_images import main_sum
  in_images = [in_template % j for j in range(start, end + 1)]
  main_sum(in_images, out_image)
  return

if __name__ == '__main__':
  import sys
  if len(sys.argv) != 5:
    raise RuntimeError('%s in_\%d_0001.cbf out_1_0001.cbf start end' % \
      sys.argv[0])
  in_template = sys.argv[1]
  out_image = sys.argv[2]
  start = int(sys.argv[3])
  end = int(sys.argv[4])
  sum_images(in_template, out_image, start, end)<commit_msg>this is not how you escape the string format operator in Python<commit_after># LIBTBX_SET_DISPATCHER_NAME dev.dials.sum_images

from __future__ import absolute_import, division, print_function

def sum_images(in_template, out_image, start, end):
  from dials.util.rebin_images import main_sum
  in_images = [in_template % j for j in range(start, end + 1)]
  main_sum(in_images, out_image)
  return

if __name__ == '__main__':
  import sys
  if len(sys.argv) != 5:
    raise RuntimeError('%s in_%%d_0001.cbf out_1_0001.cbf start end' % \
      sys.argv[0])
  in_template = sys.argv[1]
  out_image = sys.argv[2]
  start = int(sys.argv[3])
  end = int(sys.argv[4])
  sum_images(in_template, out_image, start, end)
{'fraction_non_alphanumeric': 0.11240875912408758, 'fraction_numerical': 0.02335766423357664, 'mean_word_length': 4.6419753086419755, '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': '3797717', 'n_tokens_mistral': 536, 'n_tokens_neox': 514, 'n_words': 124}