1d169e8074e2d24941f569f7200b37b4028cc312,tools/make_transforms_docs.py,,make_augmentation_docs_link,#,21
Before Change
def make_augmentation_docs_link(module, cls):
return (
"[{cls_name}]" "(https://albumentations.ai/docs/api_reference/{module}/transforms///{cls_fullname})"
).format(cls_name=cls.__name__, module=module, cls_fullname=cls.__module__ + "." + cls.__name__)
class Targets(Enum):
IMAGE = "Image"
After Change
def make_augmentation_docs_link(cls):
module_parts = cls.__module__.split(".")
module_page = "/".join(module_parts[1:])
return (
"[{cls.__name__}](https://albumentations.ai/docs/api_reference/{module_page}///{cls.__module__}.{cls.__name__})"
).format(module_page=module_page, cls=cls)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: albu/albumentations
Commit Name: 1d169e8074e2d24941f569f7200b37b4028cc312
Time: 2020-10-20
Author: creafz@gmail.com
File Name: tools/make_transforms_docs.py
Class Name:
Method Name: make_augmentation_docs_link
Project Name: snipsco/snips-nlu
Commit Name: 7947c882e61526c47df83ec341cbbb9bba786408
Time: 2019-03-07
Author: adrien.ball@snips.ai
File Name: snips_nlu/cli/download.py
Class Name:
Method Name: download
Project Name: metagenome-atlas/atlas
Commit Name: 73f1f796ed275d1f41c7e15d5288f41a0711a1a5
Time: 2019-04-08
Author: silas.kieser@gmail.com
File Name: atlas/rules/predict_genes_of_genomes.py
Class Name:
Method Name: predict_genes_genomes