<commit_before>#!/usr/bin/env python
# This does exactly the same as GenerateFile.c .
# There are several netCDF interfaces for python available,
# this script uses pupynere (http://pypi.python.org/pypi/pupynere/).

from pupynere import *
from math import pi, sin, tanh
from random import random

DIM = 100
NPOINTS = 1000<commit_msg>try scipy, then pupynere<commit_after>#!/usr/bin/env python
# This does exactly the same as GenerateFile.c .
# There are several netCDF interfaces for python available,
# this script will try use the one from scipy and fall back to pupynere.
# (http://pypi.python.org/pypi/pupynere/).

try:
    from scipy.io import *
except:
    from pupynere import *
    
from math import pi, sin, tanh
from random import random

DIM = 100
NPOINTS = 1000
{'fraction_non_alphanumeric': 0.08667529107373868, 'fraction_numerical': 0.018111254851228976, 'mean_word_length': 3.9615384615384617, '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': '1517500', 'n_tokens_mistral': 273, 'n_tokens_neox': 252, 'n_words': 95}