<commit_before>from __future__ import division
import math
import cmath
import sys
from decimal import Decimal
from itertools import islice, count, izip, imap, product, chain

# The basic equation:
# pi = ((4 * (i**2))/((4 * (i**2)) - 1)) * pi
# pi = ((4 *    a  )/((4 *   a   ) - 1)) * pi
# pi = (      b     /(      b      - 1)) * pi
# pi = (      b     /          c       ) * pi
# pi =              d                    * pi
# a = i**2
# b = 4 * a
# c = b - 1
# d = b / c
# pi = d * pi


def wallis_equation(i):
    # This replaces this: ((4.0*(i**2.0))/((4.0*(i**2.0))-1.0)) * pie
    # Reduces redundant operations.
    a = i**2
    b = 4*a
    c = b - 1
    return b / c


def genmill(stop, start=0):
    # exclusive
    end = stop - start
    return islice(count(start), 0, end)


def wallis(stop, start=0, pie=1):
    pi = pie
    end = stop - start<commit_msg>small tweak<commit_after>from __future__ import division
import math
import cmath
import sys
from decimal import Decimal
from itertools import islice, count, izip, imap, product, chain

# The basic equation:
# pi = ((4 * (i**2))/((4 * (i**2)) - 1)) * pi
# pi = ((4 *    a  )/((4 *   a   ) - 1)) * pi
# pi = (      b     /(      b      - 1)) * pi
# pi = (      b     /          c       ) * pi
# pi =              d                    * pi
# a = i**2
# b = 4 * a
# c = b - 1
# d = b / c
# pi = d * pi


def wallis_equation(i):
    # This replaces this: ((4.0*(i**2.0))/((4.0*(i**2.0))-1.0))
    # Reduces redundant operations.
    a = i**2
    b = 4*a
    c = b - 1
    return b / c


def genmill(stop, start=0):
    # exclusive
    end = stop - start
    return islice(count(start), 0, end)


def wallis(stop, start=0, pie=1):
    pi = pie
    end = stop - start
{'fraction_non_alphanumeric': 0.16936416184971098, 'fraction_numerical': 0.03352601156069364, 'mean_word_length': 1.7389240506329113, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1296134', 'n_tokens_mistral': 697, 'n_tokens_neox': 653, 'n_words': 209}