<commit_before>import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits


# Choose .FITS file
filename = '...'
hdu = fits.open(filename)
data = hdu[0].data

# display histogram
plt.figure()
plt.hist(np.asarray(data).flatten(),500)
plt.yscale('Log')

# display image
plt.figure()
plt.imshow(data, cmap='gray', vmin=np.median(data), vmax=np.median(data)+500)
plt.colorbar()
plt.title(file)

plt.show()<commit_msg>Update ViewImage.py<commit_after>import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits


# Choose .FITS file
filename = '...'
hdu = fits.open(filename)
data = hdu[0].data

# display histogram
plt.figure()
plt.hist(np.asarray(data).flatten(), 500)
plt.yscale('Log')

# display image
plt.figure()
plt.imshow(data, cmap='gray', vmin=np.median(data), vmax=np.median(data) + 500)
plt.colorbar()
plt.title(file)

plt.show()
{'fraction_non_alphanumeric': 0.16342857142857142, 'fraction_numerical': 0.016, 'mean_word_length': 5.3478260869565215, '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': '5232691', 'n_tokens_mistral': 358, 'n_tokens_neox': 325, 'n_words': 72}