<commit_before>import os, sys  
import h5py as h5


dataDir = '/gpfs/alpine/proj-shared/ast149/cosmo_tests/cosmo_1024/'
snapDir = dataDir + 'output_snapshots/'

nSnap = 1

file_name = 'grid_{0}.h5'.format( nSnap )
file = h5.File( snapDir + file_name, 'r' )
current_z = file.attrs['Current_z']
file.close()

print( ' Snap: {0}   current_z: {1:.4f}'.format( nSnap, current_z) ) 

# os.rename('guru99.txt','career.guru99.txt') <commit_msg>updated script<commit_after>import os, sys  
import h5py as h5


dataDir = '/gpfs/alpine/proj-shared/ast149/cosmo_tests/cosmo_1024/'
snapDir = dataDir + 'output_snapshots/'

nSnap = 150

file_name = 'grid_{0}.h5'.format( nSnap )
file = h5.File( snapDir + file_name, 'r' )
current_z = file.attrs['Current_z']
print( ' Snap: {0}   current_z: {1:.4f}'.format( nSnap, current_z) ) 
file.close()


# os.rename('guru99.txt','career.guru99.txt') 
{'fraction_non_alphanumeric': 0.17142857142857143, 'fraction_numerical': 0.048, 'mean_word_length': 4.615384615384615, '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': '1526926', 'n_tokens_mistral': 397, 'n_tokens_neox': 368, 'n_words': 67}