<commit_before>#!/usr/bin/env python3
import generation
import show
import deconvolution
import numpy as np


# For example

"""Save the return value in a new variable which is the sweep
 vector. """

x = generation.log_sweep(1, 1000, 1, 44100)

"""We created a vector which sweeps from 1 Hz to 1000 Hz in 1
second at a sampling frequency of 44.1 kHz.
"""
# show.plot_tf(x, 44100)

"""Test functions for deconvolution"""

y = generation.log_sweep(1, 1000, 1, 44100)
noise = np.random.normal(0, 0.07, len(y))
noisy_signal = y + noise
deconvolution.deconv(x, noisy_signal, 44100)<commit_msg>Change examples<commit_after>"""A list of examples."""

#!/usr/bin/env python3
import generation
import plotting
import numpy as np


x = generation.log_sweep(1, 1000, 1, 44100)
"""We created a vector which sweeps from 1 Hz to 1000 Hz in 1
second at a sampling frequency of 44.1 kHz. Now you can plot it
in several domains."""

# plotting.plot_freq(x,44100)
# plotting._show_it()

"""Test functions for response calculation."""

y = generation.log_sweep(1, 1000, 1, 44100)
noise = np.random.normal(0, 0.07, len(y))
noisy_signal = y + noise
plotting.plot_ifresponse(x, noisy_signal, 44100)
plotting._show_it()
{'fraction_non_alphanumeric': 0.11695906432748537, 'fraction_numerical': 0.07685881370091896, 'mean_word_length': 4.78743961352657, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5640515', 'n_tokens_mistral': 491, 'n_tokens_neox': 397, 'n_words': 147}