64bbbead07303d2e28b3e789649f27bf4e9ef247,jarbas/core/models.py,Receipt,exists,#Receipt#,24
Before Change
@property
def exists(self):
status = head(self.get_url()).status_code
return 200 <= status < 400
class Reimbursement(models.Model):
After Change
@property
def exists(self):
if self.exists_cache is not None: // False is a valid cached value
return self.exists_cache
try:
response = head(self.url)
except ConnectionError as error:
return error
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 64bbbead07303d2e28b3e789649f27bf4e9ef247
Time: 2017-01-04
Author: cuducos@gmail.com
File Name: jarbas/core/models.py
Class Name: Receipt
Method Name: exists
Project Name: Featuretools/featuretools
Commit Name: 551b2f92dcfdcb95610c2e2fc9cd9a4b909e87e9
Time: 2017-12-19
Author: 5392142+rwedge@users.noreply.github.com
File Name: featuretools/synthesis/encode_features.py
Class Name:
Method Name: encode_features
Project Name: nilmtk/nilmtk
Commit Name: f74a4a251d395b3e175f99845b01ece0e50a79c3
Time: 2014-08-24
Author: nipunreddevil@gmail.com
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: select_top_k