183b9e79825b3e9dedd139c79ba4b346c10dc103,django/dataproviders/DropboxDataProvider.py,HtmlLinkReplacer,replace_url,#HtmlLinkReplacer#Any#Any#Any#,92
Before Change
elif a.has_attr("href"):
url = a["href"]
else:
return url
// leave absolute links alone
if re.match("http://", url) or re.match("https://", url):
pass
After Change
elif a.has_attr("href"):
url = a["href"]
else:
raise AttributeError("Trying to replace a link which has no src and no href"
"attribute. This should never happen.")
// leave absolute links alone
if re.match("http://", url) or re.match("https://", url):
pass
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: comic/grand-challenge.org
Commit Name: 183b9e79825b3e9dedd139c79ba4b346c10dc103
Time: 2017-06-09
Author: jamesmeakin@gmail.com
File Name: django/dataproviders/DropboxDataProvider.py
Class Name: HtmlLinkReplacer
Method Name: replace_url
Project Name: scikit-learn/scikit-learn
Commit Name: f23b940dcabdc86b8b71dc8a9a90ef91505407cc
Time: 2020-05-05
Author: thomasjpfan@gmail.com
File Name: sklearn/base.py
Class Name: BaseEstimator
Method Name: _repr_html_
Project Name: descarteslabs/descarteslabs-python
Commit Name: 98b8c9e9fbabb216d50d203cd0ab7164f6bd1d70
Time: 2019-07-24
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/interactive/map_.py
Class Name: MapApp
Method Name: __getattr__
Project Name: victoresque/pytorch-template
Commit Name: 27285962388f5ef80780f34e2bcf453387ebd019
Time: 2018-09-23
Author: borge.s.andreassen@gmail.com
File Name: model/loss.py
Class Name:
Method Name: get_loss_function
Project Name: pantsbuild/pants
Commit Name: 17e2401e4e0a0cec602f88f1b34be9fb1b8472a6
Time: 2019-12-30
Author: ericarellano@me.com
File Name: src/python/pants/option/option_value_container.py
Class Name: OptionValueContainer
Method Name: get_rank
Project Name: comic/grand-challenge.org
Commit Name: 32a0edcddb413844ab7de8af0ae3b76a5e751e3a
Time: 2018-08-10
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/evaluation/tasks.py
Class Name:
Method Name: evaluate_submission