<commit_before>from __future__ import division
import sys
import Models 
sys.path.append('/Users/Nathan_Hillis/SADModels/tools/')

#sys.path.append('/Users/lisalocey/Desktop/SADModels/tools/')

import HeatMap
import matplotlib.pyplot as plt



N = 10000000
S = 20
sample_size = 1

fig = plt.figure()
""" The Broken Stick Model constrained by N and S """
ax = fig.add_subplot(3, 3, 1)
BrkStk = Models.SimBrokenStick(N, S, sample_size)
fig = HeatMap.RACHeatMap(fig, BrkStk)
plt.title('Broken Stick', fontsize = 13)
plt.xlabel('Rank')
plt.ylabel('Abundance')

print 'finished broken stick'

'''"""The Dominance Preemption constrained by N and S, excluding decimals """
ax = fig.add_subplot(3, 3, 2)  # Debug me
DPI = Models.DomPreInt(N, S, sample_size)
fig = HeatMap.RACHeatMap(fig, DPI)
plt.title('Dominance Preemption (Integer)', fontsize = 13)
plt.xlabel('Rank')
plt.ylabel('Abundance')
print 'finished dominance preemption (integers)' '''

""" The Dominance Preemption constrained by N and S, allowing decimals """
ax = fig.add_subplot(3, 3, 4)
DPF = Models.DomPreFloat(N, S, sample_size)
fig = HeatMap.RACHeatMap(fig, DPF)<commit_msg>more update<commit_after>from __future__ import division
import sys
import Models 
import matplotlib.pyplot as plt
sys.path.append('/Users/Nathan_Hillis/SADModels/tools/')
import HeatMap
#sys.path.append('/Users/lisalocey/Desktop/SADModels/tools/')





N = 10000000
S = 20
sample_size = 1

fig = plt.figure()
""" The Broken Stick Model constrained by N and S """
ax = fig.add_subplot(3, 3, 1)
BrkStk = Models.SimBrokenStick(N, S, sample_size)
fig = HeatMap.RACHeatMap(fig, BrkStk)
plt.title('Broken Stick', fontsize = 13)
plt.xlabel('Rank')
plt.ylabel('Abundance')

print 'finished broken stick'

'''"""The Dominance Preemption constrained by N and S, excluding decimals """
ax = fig.add_subplot(3, 3, 2)  # Debug me
DPI = Models.DomPreInt(N, S, sample_size)
fig = HeatMap.RACHeatMap(fig, DPI)
plt.title('Dominance Preemption (Integer)', fontsize = 13)
plt.xlabel('Rank')
plt.ylabel('Abundance')
print 'finished dominance preemption (integers)' '''

""" The Dominance Preemption constrained by N and S, allowing decimals """
ax = fig.add_subplot(3, 3, 4)
DPF = Models.DomPreFloat(N, S, sample_size)
fig = HeatMap.RACHeatMap(fig, DPF)
{'fraction_non_alphanumeric': 0.13656387665198239, 'fraction_numerical': 0.021145374449339206, 'mean_word_length': 5.488571428571428, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '568858', 'n_tokens_mistral': 914, 'n_tokens_neox': 812, 'n_words': 220}