<commit_before>import numpy as np
import pandas as pd


def random_xy(num_points=100):
    return pd.DataFrame({
        'x': np.random.normal(num_points),
        'y': np.random.normal(num_points)
    })


def x_plus_noise(num_points=100, slope=1, randomness=0.1):
    if not (0 <= randomness <= 1):
        raise ValueError('randomness must be between 0 and 1 (inclusive).')
    x = np.random.normal(num_points)
    return pd.DataFrame({
        'x': x,
        'y': slope * x + np.random.normal(scale=randomness, size=num_points)
    })


def data_3d(num_points=100, randomness=0.1):
    data = pd.DataFrame({<commit_msg>Fix bug on np.random.normal.<commit_after>import numpy as np
import pandas as pd


def random_xy(num_points=100):
    return pd.DataFrame({
        'x': np.random.normal(size=num_points),
        'y': np.random.normal(size=num_points)
    })


def x_plus_noise(num_points=100, slope=1, randomness=0.1):
    if not (0 <= randomness <= 1):
        raise ValueError('randomness must be between 0 and 1 (inclusive).')
    x = np.random.normal(size=num_points)
    return pd.DataFrame({
        'x': x,
        'y': slope * x + np.random.normal(scale=randomness, size=num_points)
    })


def data_3d(num_points=100, randomness=0.1):
    data = pd.DataFrame({
{'fraction_non_alphanumeric': 0.14084507042253522, 'fraction_numerical': 0.0297339593114241, 'mean_word_length': 3.3063973063973062, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3279383', 'n_tokens_mistral': 472, 'n_tokens_neox': 445, 'n_words': 102}