fa12c1584fe693183e7a0c0488427f214837e3aa,app/grandchallenge/core/management/commands/initcomicdemo.py,Command,handle,#Command#,23

Before Change


        site.domain = "gc.localhost"
        site.save()

        challenge, created = Challenge.objects.get_or_create(
            short_name=settings.MAIN_PROJECT_NAME,
            description="main project",
            use_registration_page=False,
            disclaimer="You <b>must</b> delete the admin, demo, demop, and retina_demo users before deploying to production!",
        )
        if created:
            Page.objects.create(
                title="home",
                challenge=challenge,

After Change


        // Set the default domain that is used in RequestFactory
        site = Site.objects.get(pk=settings.SITE_ID)

        if site.domain == "gc.localhost":
            // Already initialised
            return

        site.domain = "gc.localhost"
        site.name = "Grand Challenge"
        site.save()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: comic/grand-challenge.org
Commit Name: fa12c1584fe693183e7a0c0488427f214837e3aa
Time: 2019-05-15
Author: code@jmsmkn.com
File Name: app/grandchallenge/core/management/commands/initcomicdemo.py
Class Name: Command
Method Name: handle


Project Name: polyaxon/polyaxon
Commit Name: 34c9393d21713b0b0445286ad085a46ec5bb249a
Time: 2018-05-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/users/views.py
Class Name: LoginView
Method Name: dispatch


Project Name: comic/grand-challenge.org
Commit Name: 2e4ca40592da2660c602135cac16be348e870fbc
Time: 2019-07-02
Author: harm.van.zeeland@gmail.com
File Name: app/tests/retina_api_tests/helpers.py
Class Name:
Method Name: client_login