e8bafba0d6a342e0a6de13f4ca05b71a111f22e1,app/grandchallenge/core/views.py,,comicmain,#Any#Any#,188

Before Change


def comicmain(request, page_title=""):
     show content as main page item. Loads pages from the main project 
    challenge_short_name = settings.MAIN_PROJECT_NAME
    if Challenge.objects.filter(short_name=challenge_short_name).count() == 0:
        link = reverse("challenges:create")
        link = link + "?short_name=%s" % challenge_short_name
        link_html = create_HTML_a(

After Change


        )

    if page_title:
        pages = [p for p in pages if p.title.lower() == page_title.lower()]

        if len(pages) != 1:
            raise ValueError(
                f"More than 1 page with title {page_title} was found for {site}"
            )

    page = pages[0]
    page.html = renderTags(request, page)

    return render(request, "page.html", {"currentpage": page})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: comic/grand-challenge.org
Commit Name: e8bafba0d6a342e0a6de13f4ca05b71a111f22e1
Time: 2018-10-18
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/core/views.py
Class Name:
Method Name: comicmain


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 43460d35354b29171d1b346ad65d9dd90e54472b
Time: 2018-06-14
Author: 157747074@qq.com
File Name: QUANTAXIS/QASU/save_binance.py
Class Name:
Method Name: QA_SU_save_binance


Project Name: AlexsLemonade/refinebio
Commit Name: bf4d4be450616eeb0252b276c9febc4a50e83ace
Time: 2020-07-06
Author: willvauclain.dev@gmail.com
File Name: api/data_refinery_api/views/dataset.py
Class Name:
Method Name: validate_dataset