<commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import numpy as np

import mlp
import pca


X = np.load('dataset_X.npy')
Y = np.load('dataset_Y.npy')


train_size = int(0.8 * X.shape[0])

shuffle_ids = np.arange(X.shape[0])
np.random.shuffle(shuffle_ids)
X = X[shuffle_ids]
Y = Y[shuffle_ids]

train_X = X[:train_size]<commit_msg>Fixed random seed<commit_after>#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import numpy as np

import mlp
import pca


X = np.load('dataset_X.npy')
Y = np.load('dataset_Y.npy')


train_size = int(0.8 * X.shape[0])

shuffle_ids = np.arange(X.shape[0])
np.random.seed(666)
np.random.shuffle(shuffle_ids)
X = X[shuffle_ids]
Y = Y[shuffle_ids]

train_X = X[:train_size]
{'fraction_non_alphanumeric': 0.17366946778711484, 'fraction_numerical': 0.02100840336134454, 'mean_word_length': 4.335820895522388, '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': '4766540', 'n_tokens_mistral': 321, 'n_tokens_neox': 312, 'n_words': 58}