a3d89363d60e5b73455b6b1ab76a70f79aaca97a,modules/templates/BRCMS/layouts.py,S3LanguageMenuLayout,check_enabled,#S3LanguageMenuLayout#,250

Before Change


    def check_enabled(self):
         Check whether the language menu is enabled 

        if current.deployment_settings.get_L10n_display_toolbar():
            return True
        else:
            return False

// -----------------------------------------------------------------------------
// Shortcut
ML = S3LanguageMenuLayout

// =============================================================================
class S3OrgMenuLayout(S3NavigationItem):

After Change


    def check_enabled(self):
         Check whether the language menu is enabled 

        return bool(current.deployment_settings.get_L10n_display_toolbar())

// -----------------------------------------------------------------------------
// Shortcut
ML = S3LanguageMenuLayout
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 11

Non-data size: 5

Instances


Project Name: sahana/eden
Commit Name: a3d89363d60e5b73455b6b1ab76a70f79aaca97a
Time: 2019-03-25
Author: dominic@nursix.org
File Name: modules/templates/BRCMS/layouts.py
Class Name: S3LanguageMenuLayout
Method Name: check_enabled


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9fd5c181de3d55f0e7ec586da24043e1633d1b37
Time: 2019-12-02
Author: tohaowu@google.com
File Name: perfkitbenchmarker/linux_packages/cuda_toolkit.py
Class Name:
Method Name: CheckNvidiaSmiExists


Project Name: mittagessen/kraken
Commit Name: e98f169eb2bbb873f26be6ba77592f0015d5087d
Time: 2018-05-18
Author: mittagessen@l.unchti.me
File Name: kraken/binarization.py
Class Name:
Method Name: is_bitonal


Project Name: home-assistant/home-assistant
Commit Name: 32dc276c53a2cc6bfbd868dc480f5a38ea647608
Time: 2017-02-06
Author: alberto@elasticbox.com
File Name: homeassistant/components/cover/wink.py
Class Name: WinkCoverDevice
Method Name: is_closed


Project Name: pandas-dev/pandas
Commit Name: dd865aac2807e368aae46f5fbbd8a23f173ac27d
Time: 2021-01-03
Author: m.e.gorelli@gmail.com
File Name: pandas/core/dtypes/inference.py
Class Name:
Method Name: is_file_like


Project Name: sahana/eden
Commit Name: 6001d45b73ff628aa58db73ad588aea7de74084b
Time: 2021-02-17
Author: dominic@nursix.org
File Name: modules/templates/RLPPTM/layouts.py
Class Name: S3LanguageMenuLayout
Method Name: check_enabled


Project Name: TheAlgorithms/Python
Commit Name: 030600f9b3c4f9265fcaed97ae81b41ad2d7f7f4
Time: 2019-09-09
Author: cclauss@me.com
File Name: matrix/matrix_class.py
Class Name: Matrix
Method Name: is_invertable


Project Name: home-assistant/home-assistant
Commit Name: c9f1dce6a2e6b0669f9775fd6973d1b886f2b6b1
Time: 2015-10-26
Author: k.koziarek@bankier.pl
File Name: homeassistant/components/device_tracker/ubus.py
Class Name: UbusDeviceScanner
Method Name: _update_info


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: d3d890e1eedaa5c9ea1813180ee5847c73ca054a
Time: 2020-02-10
Author: pclay@google.com
File Name: perfkitbenchmarker/providers/azure/service_principal.py
Class Name: ServicePrincipal
Method Name: _Exists


Project Name: catalyst-cooperative/pudl
Commit Name: 5831cd86b07c4423ce758c3b2b2256d398d8db12
Time: 2018-07-05
Author: zane.selvans@catalyst.coop
File Name: test/mcoe_test.py
Class Name:
Method Name: single_records


Project Name: tensorflow/tensorboard
Commit Name: 21491193a9943e93c94a5bf85bf608d43585eb86
Time: 2019-07-17
Author: wchargin@gmail.com
File Name: tensorboard/plugins/text/text_plugin.py
Class Name: TextPlugin
Method Name: is_active