<commit_before>import unittest

import numpy

from chainer import cuda
from chainer.functions.connection import embed_id
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr


import unittest

import numpy
import six

import chainer
from chainer import cuda
from chainer import gradient_check
from chainer import links
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition


@testing.parameterize(
    {'x_data': [0, 1, 0], 'ignore_label': None},
    {'x_data': [[0, 1, 0], [1, 0, 1]], 'ignore_label': None},
    {'x_data': [0, 1, -1], 'ignore_label': -1},
    {'x_data': [[0, 1, -1], [-1, 0, 1]], 'ignore_label': -1},
)
class TestEmbedID(unittest.TestCase):

    def setUp(self):
        self.x = numpy.array(self.x_data, dtype=numpy.int32)
        self.W = numpy.random.uniform(-1, 1, (3, 2)).astype('f')<commit_msg>Flake8<commit_after>import unittest

import numpy

from chainer import cuda
from chainer.functions.connection import embed_id
from chainer import gradient_check
from chainer import testing
from chainer.testing import attr
from chainer.testing import condition


@testing.parameterize(
    {'x_data': [0, 1, 0], 'ignore_label': None},
    {'x_data': [[0, 1, 0], [1, 0, 1]], 'ignore_label': None},
    {'x_data': [0, 1, -1], 'ignore_label': -1},
    {'x_data': [[0, 1, -1], [-1, 0, 1]], 'ignore_label': -1},
)
class TestEmbedID(unittest.TestCase):

    def setUp(self):
        self.x = numpy.array(self.x_data, dtype=numpy.int32)
        self.W = numpy.random.uniform(-1, 1, (3, 2)).astype('f')
{'fraction_non_alphanumeric': 0.14946841776110067, 'fraction_numerical': 0.03314571607254534, 'mean_word_length': 4.298013245033113, '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': '2498147', 'n_tokens_mistral': 580, 'n_tokens_neox': 546, 'n_words': 169}