<commit_before>
import numpy as np

# product of two gaussian low-rank matrices + noise
def normal_dense(N, D, K):
    X = np.random.normal(N,K)
    W = np.random.normal(D,K)
    return np.cross(X, W) + np.random.normal(N,D)

# product of two low-rank 'ones' matrices
def ones_dense(N, D, K):
    X = np.ones(N,K)
    W = np.ones(D,K)
    return np.cross(X, W)

<commit_msg>gen_data fixes<commit_after>
import numpy as np

# product of two gaussian low-rank matrices + noise
def normal_dense(N, D, K):
    X = np.random.normal((N,K))
    W = np.random.normal((D,K))
    return np.dot(X, W.transpose()) + np.random.normal(N,D)

# product of two low-rank 'ones' matrices
def ones_dense(N, D, K):
    X = np.ones((N,K))
    W = np.ones((D,K))
    return np.dot(X,W.transpose())

if __name__ == "__main__":
    normal_dense(20,10,4)
    ones_dense(20,10,4)
{'fraction_non_alphanumeric': 0.16314553990610328, 'fraction_numerical': 0.011737089201877934, 'mean_word_length': 3.4427083333333335, 'pattern_counts': {'":': 1, '<': 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': '636163', 'n_tokens_mistral': 356, 'n_tokens_neox': 345, 'n_words': 87}