fdd7edc23c6974c82867f4c583899c727c441b76,app/grandchallenge/archives/models.py,Archive,delete,#Archive#,22
Before Change
image__in=images_to_remove
).distinct()
for patient in related_patients:
if patient.id not in protected_patient_ids:
patient.delete(*args, **kwargs)
for study in related_studies:
if study.id not in protected_study_ids:
study.delete(*args, **kwargs)
After Change
).distinct().exclude(pk__in=protected_patient_ids).delete(
*args, **kwargs
)
Study.objects.filter(image__in=images_to_remove).distinct().exclude(
pk__in=protected_study_ids
).delete(*args, **kwargs)
images_to_remove.delete(*args, **kwargs)
super().delete(*args, **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: comic/grand-challenge.org
Commit Name: fdd7edc23c6974c82867f4c583899c727c441b76
Time: 2019-09-03
Author: harm.van.zeeland@gmail.com
File Name: app/grandchallenge/archives/models.py
Class Name: Archive
Method Name: delete
Project Name: biotite-dev/biotite
Commit Name: 38159553bea31a492f5a4716a223c3e774086501
Time: 2020-11-09
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/basepairs.py
Class Name:
Method Name: _get_proximate_basepair_candidates
Project Name: ysig/GraKeL
Commit Name: ba72837e5824eb67b8d345dd5555853221f4512a
Time: 2017-11-24
Author: y.siglidis@gmail.com
File Name: grakel/tools.py
Class Name:
Method Name: matrix_to_dict