<commit_before>#!/usr/bin/env python2
import json
import sys
import time

import numpy as np
np.random.seed(1337)

import h5py
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.layers.core import Dense, Dropout, Flatten
from keras.models import Sequential
from keras.regularizers import l2

if len(sys.argv) != 2:
    print 'Usage: %s subset_filepath' % sys.argv[0]
    sys.exit(1)

subset_filepath = sys.argv[1]

# as described in http://cs231n.stanford.edu/reports/zyh_project.pdf
model = Sequential()
model.add(Conv2D(64, (3, 3), weights=[np.random.normal(0, 0.01, size=(3, 3, 1, 64)), np.zeros(64)],
                        activation='relu', padding='same', strides=(1, 1),<commit_msg>Fix reference<commit_after>#!/usr/bin/env python2
import json
import sys
import time

import numpy as np
np.random.seed(1337)

import h5py
from keras.layers.convolutional import Conv2D, MaxPooling2D
from keras.layers.core import Dense, Dropout, Flatten
from keras.models import Sequential
from keras.regularizers import l2

if len(sys.argv) != 2:
    print 'Usage: %s subset_filepath' % sys.argv[0]
    sys.exit(1)

subset_filepath = sys.argv[1]

# as described in http://yuhao.im/files/Zhang_CNNChar.pdf
model = Sequential()
model.add(Conv2D(64, (3, 3), weights=[np.random.normal(0, 0.01, size=(3, 3, 1, 64)), np.zeros(64)],
                        activation='relu', padding='same', strides=(1, 1),
{'fraction_non_alphanumeric': 0.13536498936924168, 'fraction_numerical': 0.04606661941885188, 'mean_word_length': 4.288389513108614, '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': '2719869', 'n_tokens_mistral': 545, 'n_tokens_neox': 501, 'n_words': 130}