b0c4db281dfb798f8bfd8ea1320e78125f2a7709,keras/layers/preprocessing/string_lookup.py,StringLookup,__init__,#StringLookup#Any#Any#Any#Any#Any#Any#Any#Any#Any#,192

Before Change


    if "dtype" not in kwargs:
      kwargs["dtype"] = tf.string

    if encoding is None:
      encoding = "utf-8"

    if vocabulary is not None:
      if isinstance(vocabulary, str):
        vocabulary = table_utils.get_vocabulary_from_file(vocabulary, encoding)

After Change


        oov_token=oov_token,
        vocabulary=vocabulary,
        invert=invert,
        output_mode=output_mode,
        sparse=sparse,
        pad_to_max_tokens=pad_to_max_tokens,
        **kwargs)
    base_preprocessing_layer.keras_kpl_gauge.get_cell("StringLookup").set(True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: keras-team/keras
Commit Name: b0c4db281dfb798f8bfd8ea1320e78125f2a7709
Time: 2021-02-05
Author: scottzhu@google.com
File Name: keras/layers/preprocessing/string_lookup.py
Class Name: StringLookup
Method Name: __init__


Project Name: chainer/chainercv
Commit Name: 7e470179b0d874c43ec6d5dba11d7981ad83dff1
Time: 2017-03-10
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/sintel/sintel_dataset.py
Class Name: SintelDataset
Method Name: __init__


Project Name: dmlc/gluon-cv
Commit Name: b7988369f77e12525604e2613b279c13f041f484
Time: 2019-12-04
Author: wuxun.zhang@intel.com
File Name: scripts/pose/simple_pose/validate.py
Class Name:
Method Name: