<commit_before>"""
Author: <NAME>
Date: 9/21/11
Purpose: to calculate the METE prediction for the SAR
"""

import numpy as np
import csv
import sys
import os

import mete

if 'sar' not in os.listdir(os.path.curdir):
    os.mkdir('sar')

if(len(sys.argv) > 1):
    S = int(sys.argv[1]) 
    N = int(sys.argv[2]) 
    bisec = int(sys.argv[4])
    shrt_name = sys.argv[5]
else:
    S = 10
    N = 100
    bisec = 4
    shrt_name = 'test'
    
Amax = 2 ** (bisec - 1) # number of quadrats per community 
Amin = 1
 
sar_down = mete.downscale_sar(Amax,S,N,Amin)
<commit_msg>Fixed a minor mistake on the command line arguments.<commit_after>"""
Author: <NAME>
Date: 9/21/11
Purpose: to calculate the METE prediction for the SAR
"""

import numpy as np
import csv
import sys
import os

import mete

if 'sar' not in os.listdir(os.path.curdir):
    os.mkdir('sar')

if(len(sys.argv) > 1):
    S = int(sys.argv[1]) 
    N = int(sys.argv[2]) 
    bisec = int(sys.argv[3])
    shrt_name = sys.argv[4]
else:
    S = 10
    N = 100
    bisec = 4
    shrt_name = 'test'
    
Amax = 2 ** (bisec - 1) # number of quadrats per community 
Amin = 1
 
sar_down = mete.downscale_sar(Amax,S,N,Amin)

{'fraction_non_alphanumeric': 0.13702127659574467, 'fraction_numerical': 0.03234042553191489, 'mean_word_length': 2.972972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5784545', 'n_tokens_mistral': 519, 'n_tokens_neox': 474, 'n_words': 136}