<commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.

import numpy as np
from vispy.pyplot import show_vispy
import matplotlib.pyplot as plt

n = 100
x = np.linspace(-1.0, +1.0, n)
y = np.random.uniform(-0.5, +0.5, n)
fig, ax = plt.subplots()
ax.plot(x, y, 'r-o')
# idx = np.argmax(y)
# ax.text(x[idx], y[idx], 'Maximum')
canvas = show_vispy(fig)<commit_msg>FIX: Cleaner example [ci skip]<commit_after># -*- coding: utf-8 -*-
# Copyright (c) 2014, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.

import numpy as np
from vispy.pyplot import show_vispy
import matplotlib.pyplot as plt

n = 100
x = np.linspace(-1.0, +1.0, n)
y = np.random.uniform(-0.5, +0.5, n)
fig = plt.figure()
plt.plot(x, y, 'r-o')
# idx = np.argmax(y)
# ax.text(x[idx], y[idx], 'Maximum')
show_vispy(fig)
{'fraction_non_alphanumeric': 0.17293233082706766, 'fraction_numerical': 0.034371643394199784, 'mean_word_length': 3.9574468085106385, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2065520', 'n_tokens_mistral': 387, 'n_tokens_neox': 371, 'n_words': 111}