<commit_before># -- CREDIT to <NAME> for time distrib. convs.
# Extra Layers that I have added to Keras
# Layers that have been added to the Keras master branch will be noted both in the ReadMe and removed from extra.py.
#
# Copyright <NAME>, 2015
# <EMAIL>
#
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division

import theano
import theano.tensor as T
from theano.tensor.signal import downsample
import numpy as np

from keras import activations, initializations, regularizers, constraints
from keras.utils.theano_utils import shared_zeros, floatX, on_gpu
from keras.utils.generic_utils import make_tuple
from keras.regularizers import ActivityRegularizer, Regularizer

from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from six.moves import zip
srng = RandomStreams(seed=np.random.randint(10e6))

from keras.layers.core import Layer

if on_gpu():
    from theano.sandbox.cuda import dnn
<commit_msg>backend moving<commit_after># -- CREDIT to <NAME> for time distrib. convs.
# Extra Layers that I have added to Keras
# Layers that have been added to the Keras master branch will be noted both in the ReadMe and removed from extra.py.
#
# Copyright <NAME>, 2015
# <EMAIL>
#
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division

import theano
import theano.tensor as T
from theano.tensor.signal import downsample
import numpy as np

from keras import activations, initializations, regularizers, constraints
# from keras.utils.theano_utils import shared_zeros, floatX, on_gpu
from keras.backend import zeros
from keras.utils.generic_utils import make_tuple
from keras.regularizers import ActivityRegularizer, Regularizer

# from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
from six.moves import zip
# srng = RandomStreams(seed=np.random.randint(10e6))

from keras.layers.core import Layer

if theano.config.device[:3] == 'gpu'
    from theano.sandbox.cuda import dnn

{'fraction_non_alphanumeric': 0.07190549563430919, 'fraction_numerical': 0.008731381612737545, 'mean_word_length': 5.049689440993789, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2235749', 'n_tokens_mistral': 614, 'n_tokens_neox': 591, 'n_words': 218}