<jupyter_start><jupyter_text>nbdev> API details.<jupyter_code>#export
import numpy as np
import matplotlib.pyplot as plt
#export
def say_hello(to):
    "Say hello to anybody"
    return f'Hello {to}!'
say_hello('mathew')
test_eq(say_hello('jenny'), "Hello jenny!")
#export
class HelloSayer:
    "Say hello to `to` using `say_hello`"
    def __init__(self, to): self.to = to
    def say(self): return say_hello(self.to)<jupyter_output><empty_output><jupyter_text>The HelloSayer class is intended for use by those who like to use classes where a simple function would suffice.<jupyter_code>show_doc(HelloSayer.say)
o = HelloSayer('bill')
o.say()
#export
def bubble_scatter(n):
  "Create a scatter plot of n different sized bubbles"
  np.random.seed(19680801)
  x = np.random.rand(n)
  y = np.random.rand(n)
  colors = np.random.rand(n)
  area = (30 * np.random.rand(n))**2  # 0 to 15 point radii

  plt.scatter(x, y, s=area, c=colors, alpha=0.5)
  plt.show()
bubble_scatter(50)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13034825870646766, 'fraction_numerical': 0.01791044776119403, 'mean_word_length': 5.096969696969697, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '310189', 'license': 'Apache-2.0', 'n_tokens_mistral': 400, 'n_tokens_neox': 376, 'n_words': 99, 'path': '00_core.ipynb', 'repo_name': 'mathewhall100/nbdevtest101', 'size': '1005'}