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
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: 4
Non-data size: 4
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: HazyResearch/pdftotree
Commit Name: cadc0b291ad652d2591894848164b414b2b6f6ad
Time: 2018-03-20
Author: lwhsiao@stanford.edu
File Name: pdftotree/TreeExtract.py
Class Name: TreeExtractor
Method Name: get_html_others
Project Name: hellohaptik/chatbot_ner
Commit Name: a7571601d9ccfbdf1158d4bf670eb32af8bcefdc
Time: 2019-09-25
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/numeral/number/standard_number_detector.py
Class Name: BaseNumberDetector
Method Name: _update_processed_text
Project Name: tyarkoni/pliers
Commit Name: ce336c808563351bb23f87ec049c3cb7d58d774c
Time: 2018-06-05
Author: quinten.mcnamara@gmail.com
File Name: pliers/filters/text.py
Class Name: PunctuationRemovalFilter
Method Name: _filter