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

import mpi4py.MPI as MPI

import os
import re
import argparse

try:
   import cPickle as pickle
except:
   import pickle

import numpy as np

import quaternionarray as qa

import toast
import toast.tod as tt
import toast.map as tm


def view_focalplane(fp, outfile):
    # To avoid python overhead in large MPI jobs, place the
    # matplotlib import inside this function, which is only called
    # when the --debug option is specified.
    import matplotlib
    # Force matplotlib to not use any Xwindows backend.
    matplotlib.use('Agg')
    import matplotlib.pyplot as plt

    # field of view, in degrees
    width = 10.0
    height = 10.0
            <commit_msg>Allow the noise sim pipeline script to run with fakempi.<commit_after>#!/usr/bin/env python

import os
if 'PYTOAST_NOMPI' in os.environ.keys():
    from toast import fakempi as MPI
else:
    from mpi4py import MPI

import re
import argparse

try:
   import cPickle as pickle
except:
   import pickle

import numpy as np

import quaternionarray as qa

import toast
import toast.tod as tt
import toast.map as tm


def view_focalplane(fp, outfile):
    # To avoid python overhead in large MPI jobs, place the
    # matplotlib import inside this function, which is only called
    # when the --debug option is specified.
    import matplotlib
    # Force matplotlib to not use any Xwindows backend.
    matplotlib.use('Agg')
    import matplotlib.pyplot as plt

    # field of view, in degrees
    width = 10.0
    height = 10.0
            
{'fraction_non_alphanumeric': 0.05566343042071197, 'fraction_numerical': 0.009061488673139158, 'mean_word_length': 2.994832041343669, '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': '224459', 'n_tokens_mistral': 498, 'n_tokens_neox': 477, 'n_words': 200}