e023502ef2c339ca27877178c7ebf803c7bb8fd5,tensorflow_datasets/scripts/document_datasets.py,,schema_org,#Any#,393
Before Change
return JSON_LD_STR.format(
name=builder.name,
description=info.description,
url=str(info.urls[0]).replace(""", "\""),
size=tfds.units.size_str(info.size_in_bytes),
)
After Change
]
info = builder.info
out_str = SCHEMA_ORG_PRE
for extractor, template in properties:
val = extractor(info)
if val:
// We are using cgi module instead of html due to Python 2 compatibility
out_str += template.format(val=cgi.escape(val, quote=True).strip())
out_str += SCHEMA_ORG_POST
return out_str
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tensorflow/datasets
Commit Name: e023502ef2c339ca27877178c7ebf803c7bb8fd5
Time: 2019-04-12
Author: chrisgo@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: schema_org
Project Name: Featuretools/featuretools
Commit Name: a26e7f7cf41cb26b216b2b247f69f6ad1682e47d
Time: 2020-07-09
Author: frances.hartwell@alteryx.com
File Name: featuretools/feature_base/feature_visualizer.py
Class Name:
Method Name: get_entity_table
Project Name: jonathf/chaospy
Commit Name: 8d9939705f8b9f289f7c787628883407cf07273b
Time: 2017-05-31
Author: jonathf@gmail.com
File Name: src/chaospy/poly/base.py
Class Name: Poly
Method Name: __str__