<jupyter_start><jupyter_text>**Level 3**<jupyter_code>import matplotlib.pyplot as plt
from pylab import rand, ylim, xlim
from random import randint
import numpy as np

# random.randint(a, b) # Return a random integer N such that a <= N <= b.

kBase = 1.8

def randomMinMaxPref(min, max):
    aa = randint(int(kBase**min), int(kBase**(max+1)-1))
    bb = int(log(aa, kBase))
    return bb

def randomMinMax(min, max):
    if min >= max : return min
    return randint(min, max)

def onGenerate():
  #   z = randint(3,6)
  z = randomMinMaxPref(1,6)
  x = randomMinMax(0, z-1)
#   return [x, z-x, z]
  return  [[x, z-x, z], [z-x, x, z]][randint(0, 1)]

X = []
Y = []
Z = []
for i in range(100):
  c = 0
  while (c==0): a, b, c = onGenerate()
  
  X.append(a)
  Y.append(b)
  Z.append(c)

plt.scatter(X,Y, color='r', alpha=0.1)
plt.xlabel("X")
plt.ylabel("Y")
# ylim([-1,10])
# xlim([-1,10])
plt.show()
plt.hist(Z, bins=24)
plt.xlabel("Z")
plt.show()
from math import log
import matplotlib.pyplot as plt

x = []
xx = []
for i in range(100):
    xxi = randint(1, 2**10-1)
    xx.append(xxi)
    x.append(int(log(xxi, 2)))
             
plt.scatter(xx,x, color="b", alpha=0.2)
plt.xlabel("xx")
plt.ylabel("x")
plt.show()
import matplotlib.pyplot as plt

x = []
xx = []

for i in range(-10, 10):
    xx.append(i)
    x.append(-(100*i**2 + -5*i + 5000) )


plt.scatter(xx,x, color="g", alpha=0.2)
plt.xlabel("xx")
plt.ylabel("x")
plt.show()
import matplotlib.pyplot as plt
from pylab import rand, ylim, xlim
from random import randint
import numpy as np

# random.randint(a, b) # Return a random integer N such that a <= N <= b.

def randomMinMax(min, max):
    if min >= max : return min
    return randint(min, max)

def onGenerate():
  z = randomMinMax(3,6)
  x = randomMinMax(0, z-1)
#   return [x, z-x, z]
  return  [[x, z-x, z], [z-x, x, z]][randint(0, 1)]

X = []
Y = []
Z = []
for i in range(100):
  a, b, c = onGenerate()
  X.append(a)
  Y.append(b)
  Z.append(c)


plt.scatter(X,Y, color='r', alpha=0.1)
plt.xlabel("X")
plt.ylabel("Y")
# ylim([-1,10])
# xlim([-1,10])
plt.show()

# plt.scatter(Z, np.zeros_like(Z), color="b", alpha=0.01)
plt.hist(Z, )
plt.xlabel("Z")
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20135746606334842, 'fraction_numerical': 0.0334841628959276, 'mean_word_length': 3.540041067761807, 'pattern_counts': {'":': 0, '<': 9, '<?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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '165387', 'license': 'MIT', 'n_tokens_mistral': 1044, 'n_tokens_neox': 986, 'n_words': 242, 'path': 'tools/additions - distribution tests.ipynb', 'repo_name': 'digicas/cvicebnice', 'size': '2210'}