<commit_before>#!/usr/bin/python

import math
#The binomial coefficient nCk...
def binom(n, k):
    if k > n or k < 0:
	return 0
    a = math.factorial(n)
    b = math.factorial(k)
    c = math.factorial(n - k)
    return a / (b * c)

#This is the \#(n,k) function I defined in my writeup...
def num(n, k):
    return binom(n - k, k)

#This is the A(n,k) function I defined in my writeup...
def A(n, k):
    return pow(2, k) * num(n - 2,k - 1) + pow(2, k + 1) * num(n - 1, k)

#The expected number of fluorescing locations in a length n
#amyloid, according to formula I derived, is:
def expected_value(length):
    result = 0.0
    for i in xrange(0, int(length / 2) + 1):
        result += i * A(length, i)<commit_msg>Fixed splitYfp code<commit_after>#!/usr/bin/python

import math
#The binomial coefficient nCk...
def binom(n, k):
    if k > n or k < 0:
	return 0
    a = math.factorial(n)
    b = math.factorial(k)
    c = math.factorial(n - k)
    return a / (b * c)

#This is the \#(n,k) function I defined in my writeup...
def num(n, k):
    return binom(n - k, k)

#This is the A(n,k) function I defined in my writeup...
def A(n, k):
    return pow(2, k) * num(n - 2,k - 1) + pow(2, k + 1) * num(n - 1, k)

#The expected number of fluorescing locations in a length n
#amyloid, according to formula I derived, is:
def expected_value(length):
    result = 0.0
    for i in xrange(0, int(math.floor(length / 2)) + 1):
        result += i * A(length, i)
{'fraction_non_alphanumeric': 0.14903846153846154, 'fraction_numerical': 0.017857142857142856, 'mean_word_length': 2.6792929292929295, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3209430', 'n_tokens_mistral': 591, 'n_tokens_neox': 559, 'n_words': 207}