<commit_before>program main

  use mpi_core
  use mpi_routines
  use setup
  use binned_images
  use peeled_images
  use iteration_lucy
  use iteration_final
  use iteration_final_mono
  use iteration_raytracing
  use grid_generic
  use settings

  implicit none

  integer :: iter
  character(len=1000) :: input_file, output_file
  integer(hid_t) :: handle_in, handle_out, g_peeled, g_binned
  real(dp) :: time1, time2, time
  logical :: converged
  character(len=30) :: datetime

  character(len=5), parameter :: version = '0.7.7'

  call mp_set_compression(.true.)

  ! Retrieve command-line arguments
  call get_command_argument(1, input_file)
  call get_command_argument(2, output_file)

  ! Check that both arguments were given
  if(trim(input_file)=="".or.trim(output_file)=="") then
     stop "Usage: bin/rt input_file output_file"
  end if

  ! Start up multi-processing if needed
  call mp_initialize()

  ! SETUP

  call check_file_exists(input_file)
  handle_in = mp_open_read(input_file)<commit_msg>Only check if input file exists on master node<commit_after>program main

  use mpi_core
  use mpi_routines
  use setup
  use binned_images
  use peeled_images
  use iteration_lucy
  use iteration_final
  use iteration_final_mono
  use iteration_raytracing
  use grid_generic
  use settings

  implicit none

  integer :: iter
  character(len=1000) :: input_file, output_file
  integer(hid_t) :: handle_in, handle_out, g_peeled, g_binned
  real(dp) :: time1, time2, time
  logical :: converged
  character(len=30) :: datetime

  character(len=5), parameter :: version = '0.7.7'

  call mp_set_compression(.true.)

  ! Retrieve command-line arguments
  call get_command_argument(1, input_file)
  call get_command_argument(2, output_file)

  ! Check that both arguments were given
  if(trim(input_file)=="".or.trim(output_file)=="") then
     stop "Usage: bin/rt input_file output_file"
  end if

  ! Start up multi-processing if needed
  call mp_initialize()

  ! SETUP

  if(main_process()) call check_file_exists(input_file)
  handle_in = mp_open_read(input_file)
{'fraction_non_alphanumeric': 0.0838150289017341, 'fraction_numerical': 0.01348747591522158, 'mean_word_length': 4.494708994708994, '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': '2177935', 'n_tokens_mistral': 727, 'n_tokens_neox': 695, 'n_words': 180}