b46fa00aa4256914240cb154b910bebfaf1693d6,tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py,TextVectorizationPreprocessingTest,test_splitting_with_invalid_split_arg,#TextVectorizationPreprocessingTest#,668
Before Change
def test_splitting_with_invalid_split_arg(self):
input_data = keras.Input(shape=(1,), dtype=dtypes.string)
layer = get_layer_class()()
layer._split = "unsupported"
with self.assertRaisesRegex(ValueError, ".*is not a supported splitting.*"):
_ = layer(input_data)
After Change
def test_splitting_with_invalid_split_arg(self):
input_data = keras.Input(shape=(1,), dtype=dtypes.string)
layer = get_layer_class()(vocabulary=["a"])
layer._split = "unsupported"
with self.assertRaisesRegex(ValueError, ".*is not a supported splitting.*"):
_ = layer(input_data)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: tensorflow/tensorflow
Commit Name: b46fa00aa4256914240cb154b910bebfaf1693d6
Time: 2020-11-18
Author: fchollet@google.com
File Name: tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py
Class Name: TextVectorizationPreprocessingTest
Method Name: test_splitting_with_invalid_split_arg
Project Name: tensorflow/tensorflow
Commit Name: b46fa00aa4256914240cb154b910bebfaf1693d6
Time: 2020-11-18
Author: fchollet@google.com
File Name: tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py
Class Name: TextVectorizationPreprocessingTest
Method Name: test_standardization_with_invalid_standardize_arg
Project Name: tensorflow/tensorflow
Commit Name: ff9c138639f6a0623b13ad4d75003ae024fa85ca
Time: 2020-11-18
Author: gardener@tensorflow.org
File Name: tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py
Class Name: TextVectorizationPreprocessingTest
Method Name: test_splitting_with_invalid_split_arg
Project Name: tensorflow/tensorflow
Commit Name: 8ee4ce6931a92fc0865d64a1c41b84a23d1ed351
Time: 2020-11-19
Author: fchollet@google.com
File Name: tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py
Class Name: TextVectorizationPreprocessingTest
Method Name: test_standardization_with_invalid_standardize_arg
Project Name: tensorflow/tensorflow
Commit Name: ff9c138639f6a0623b13ad4d75003ae024fa85ca
Time: 2020-11-18
Author: gardener@tensorflow.org
File Name: tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py
Class Name: TextVectorizationPreprocessingTest
Method Name: test_standardization_with_invalid_standardize_arg
Project Name: tensorflow/tensorflow
Commit Name: 8ee4ce6931a92fc0865d64a1c41b84a23d1ed351
Time: 2020-11-19
Author: fchollet@google.com
File Name: tensorflow/python/keras/layers/preprocessing/text_vectorization_test.py
Class Name: TextVectorizationPreprocessingTest
Method Name: test_splitting_with_invalid_split_arg