cb7c20f6ad714f0b016a874b2b06a9fbed4e0a59,tensorflow_transform/test_case.py,TransformTestCase,AssertVocabularyContents,#TransformTestCase#Any#Any#,290

Before Change


        self.assertAllEqual(expected_words, actual_words)
        np.testing.assert_almost_equal(expected_frequency, actual_frequency)
      else:
        file_lines = [content.strip(b"\n") for content in file_lines]
        self.assertAllEqual(file_lines, file_contents)

  def WriteRenderedDotFile(self, dot_string, output_file=None):
    tf.compat.v1.logging.info(

After Change


              vocab_file_path).as_numpy_iterator())
    else:
      with tf.io.gfile.GFile(vocab_file_path, "rb") as f:
        file_lines = f.read().splitlines()

    // Store frequency case.
    if isinstance(file_contents[0], tuple):
      word_and_frequency_list = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorflow/transform
Commit Name: cb7c20f6ad714f0b016a874b2b06a9fbed4e0a59
Time: 2020-07-16
Author: zoy@google.com
File Name: tensorflow_transform/test_case.py
Class Name: TransformTestCase
Method Name: AssertVocabularyContents


Project Name: mlflow/mlflow
Commit Name: 0cb05ada988cb34e30f5c277ed6ca19afe826935
Time: 2020-07-08
Author: 64800904+zhidongqu-db@users.noreply.github.com
File Name: tests/store/dump_schema.py
Class Name:
Method Name: dump_db_schema


Project Name: PyThaiNLP/pythainlp
Commit Name: 504a0f3d1d49b691d4ad5028b3985478dd9345ae
Time: 2018-03-02
Author: wizer_boss@hotmail.com
File Name: pythainlp/tokenize/__init__.py
Class Name: Tokenizer
Method Name: __init__