<jupyter_start><jupyter_text>Core> This the the core notebook for nbdev tutorial> Get git hooks to work!<jupyter_code>#hide
from nbdev.showdoc import *
from fastcore.test import *
#exports
def say_hi(to):
    '''say hi to person 'to' ''' 
    return f"hi {to}"
say_hi("Sergi")
test_eq(say_hi("Andy"), "hi Andy")
assert say_hi("Katy") == "hi Katy"<jupyter_output><empty_output><jupyter_text>Classes<jupyter_code>#exports
class hiSayer:
    "Dumb class to spam hi"
    def __init__(self, to):
        self.to = to
    
    def say(self):
        "Calls function say hi"
        return say_hi(self.to)
show_doc(hiSayer.say)<jupyter_output><empty_output><jupyter_text>`hiSayer` say hi to whoever we want with the method `say`<jupyter_code>sayer = hiSayer("Alex")
sayer.say()
#hide
from nbdev.export import notebook2script
notebook2script()<jupyter_output>Converted 00_core.ipynb.
Converted index.ipynb.<jupyter_text>Plots in Documentation<jupyter_code>#hide
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot(np.cosh(np.linspace(-2,2,1000)))
plt.grid()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12296564195298372, 'fraction_numerical': 0.009041591320072333, 'mean_word_length': 5.589285714285714, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 18, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '516558', 'license': 'Apache-2.0', 'n_tokens_mistral': 432, 'n_tokens_neox': 422, 'n_words': 95, 'path': '00_core.ipynb', 'repo_name': 'ucapsam/nbdev_tutorial', 'size': '1106'}