<commit_before>import sys
import os
import cPickle
import matplotlib.pyplot as plt
import numpy as np
import galsim
import g3metrics

NIMS = 8
NGRID = 500         # Each image contains a grid of NGRID x NGRID galaxies
DX_GRID = 0.02      # Grid spacing (must be in degrees)
NOISE_SIGMA = 0.05  # Expected noise on each shear after shape noise pushed largely into B-mode<commit_msg>added short docstring (#77)<commit_after>"""@file calculate_QG3S_var_shear_normalization.py

Script for calculating G3S (both quadratic and absolute normed) metric results for a range of biases
(normalization comes from the ensemble mean value at fiducial bias).
"""

import sys
import os
import cPickle
import matplotlib.pyplot as plt
import numpy as np
import galsim
import g3metrics


NIMS = 8
NGRID = 500         # Each image contains a grid of NGRID x NGRID galaxies
DX_GRID = 0.02      # Grid spacing (must be in degrees)
NOISE_SIGMA = 0.05  # Expected noise on each shear after shape noise pushed largely into B-mode
{'fraction_non_alphanumeric': 0.04780876494023904, 'fraction_numerical': 0.025896414342629483, 'mean_word_length': 4.127551020408164, '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': '6189498', 'n_tokens_mistral': 335, 'n_tokens_neox': 304, 'n_words': 138}