83218b7cb41cbcd3b4800313ecd8fe33b846205a,tensorflow_datasets/core/features/sequence_feature.py,Sequence,from_json_content,#Any#Any#,209

Before Change


        features.update(
            {key: subclass.from_json_content(value["content"])})
      else:
        kwargs.update({key: value})
    return cls(features, length, **kwargs)

  def to_json_content(self):
    if isinstance(self.feature, features_dict.FeaturesDict):

After Change



  @classmethod
  def from_json_content(cls, value: Json) -> "FeatureConnector":
    return cls(
        feature_lib.FeatureConnector.from_json(value["feature"]),
        value["length"]
    )

  def to_json_content(self) -> Json:
    assert not self._kwargs, "Json export/import should be updated"
    return {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/datasets
Commit Name: 83218b7cb41cbcd3b4800313ecd8fe33b846205a
Time: 2020-08-07
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/core/features/sequence_feature.py
Class Name: Sequence
Method Name: from_json_content


Project Name: tensorflow/datasets
Commit Name: 358b069bbb83ae6f7a0cb7bd65940c0c0addf283
Time: 2020-10-02
Author: epot@google.com
File Name: tensorflow_datasets/core/load.py
Class Name:
Method Name: builder


Project Name: tensorflow/datasets
Commit Name: 83218b7cb41cbcd3b4800313ecd8fe33b846205a
Time: 2020-08-07
Author: cs17btech11040@iith.ac.in
File Name: tensorflow_datasets/core/features/features_dict.py
Class Name: FeaturesDict
Method Name: from_json_content