<commit_before>#!/usr/bin/env python

# This is an example MPI4Py program that is used
# by different examples and tests.

from   mpi4py import MPI
import time

SLEEP = 10
name  = MPI.Get_processor_name()
comm  = MPI.COMM_WORLD

print "mpi rank %d/%d/%s"  % (comm.rank, comm.size, name)

time.sleep(SLEEP)

comm.Barrier()   # wait for everybody to synchronize here

<commit_msg>make mpi example a little more verbose<commit_after>#!/usr/bin/env python

# This is an example MPI4Py program that is used
# by different examples and tests.

import sys
import time
import traceback
from   mpi4py import MPI

try :
    print "start"
    SLEEP = 10
    name  = MPI.Get_processor_name()
    comm  = MPI.COMM_WORLD

    print "mpi rank %d/%d/%s"  % (comm.rank, comm.size, name)

    time.sleep(SLEEP)

    comm.Barrier()   # wait for everybody to synchronize here

except Exception as e :
    traceback.print_exc ()
    print "error : %s" % s
    sys.exit (1)

finally :
    print "done"
    sys.exit (0)


{'fraction_non_alphanumeric': 0.09919839679358718, 'fraction_numerical': 0.01002004008016032, 'mean_word_length': 3.145228215767635, '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': '1843264', 'n_tokens_mistral': 371, 'n_tokens_neox': 345, 'n_words': 115}