Auto-connect slot activated when org disclaimer checkbox is toggled.
547900
def set_org_disclaimer(self):
        
        is_checked = self.custom_org_disclaimer_checkbox.isChecked()
        if is_checked:
            # Show previous organisation disclaimer
            org_disclaimer = setting(
                'reportDisclaimer',
                default=disclaimer(),
                expected_type=str,
                qsettings=self.settings)
        else:
            # Set the organisation disclaimer to the default one
            org_disclaimer = disclaimer()

        self.txtDisclaimer.setPlainText(org_disclaimer)
        self.txtDisclaimer.setEnabled(is_checked)
497595
def ensure_connected(self):
        """"""
        if not self.is_connected():
            if not self._auto_connect:
                raise DBALConnectionError.connection_closed()
            self.connect()
83961
function configureConnection(connection) {
        // Set the common hub
        abp.signalr.hubs.common = connection;

        // Reconnect if hub disconnects
        connection.onclose(function (e) {
            if (e) {
                abp.log.debug('Connection closed with error: ' + e);
            }
            else {
                abp.log.debug('Disconnected');
            }

            if (!abp.signalr.autoConnect) {
                return;
            }

            setTimeout(function () {
                connection.start();
            }, 5000);
        });

        // Register to get notifications
        connection.on('getNotification', function (notification) {
            abp.event.trigger('abp.notifications.received', notification);
        });
    }
703931
def change_autocommit_mode(self, switch):
        
        parsed_switch = switch.strip().lower()
        if not parsed_switch in ['true', 'false']:
            self.send_response(
                self.iopub_socket, 'stream', {
                    'name': 'stderr',
                    'text': 'autocommit must be true or false.\n\n'
                }
            )

        switch_bool = (parsed_switch == 'true')
        committed = self.switch_autocommit(switch_bool)
        message = (
            'committed current transaction & ' if committed else '' +
            'switched autocommit mode to ' +
            str(self._autocommit)
        )
        self.send_response(
            self.iopub_socket, 'stream', {
                'name': 'stderr',
                'text': message,
            }
        )
61986
def watch_activations(self, flag):
        """"""
        lib.EnvSetDefruleWatchActivations(self._env, int(flag), self._rule)
31045
def set_checked(self, value=True, block_events=False):
        
        if block_events: self._widget.blockSignals(True)
        self._widget.setChecked(value)
        if block_events: self._widget.blockSignals(False)

        return self
585295
function(opts) {
				var o = opts || {};
				selectCheckbox && selectAllCheckbox.find('input').prop('checked', false);
				if (Object.keys(selectedFiles).length) {
					selectLock = false;
					selectedFiles = {};
					cwd.find('[id].'+clSelected).trigger(evtUnselect);
					selectCheckbox && cwd.find('input:checkbox').prop('checked', false);
				}
				!o.notrigger && trigger();
				selectCheckbox && selectAllCheckbox.data('pending', false);
				cwd.removeClass('elfinder-cwd-allselected');
			}
1242390
def toggle(self, event=None):
        """"""
        if self.choice.get() == "yes":
            self.rbno.select()
        else:
            self.rbyes.select()
        self.widgetEdited()
425002
def toggle(path_or_id, badge_kind):
    '''
    '''
    if exists(path_or_id):
        with open(path_or_id) as open_file:
            for id_or_slug in open_file.readlines():
                toggle_badge(id_or_slug.strip(), badge_kind)
    else:
        toggle_badge(path_or_id, badge_kind)
1298393
function _onDblclick(d) {
  var event = d3.event,
      node = event.target;

  node = node.correspondingUseElement || node;

  if(_scheduledClickId) {
    clearTimeout(_scheduledClickId);
    _scheduledClickId = 0;
  }

  switch(_getType(node)) {
    case "io":
      d.toggleAdditionalInclusion();
      _update();
    break;
  }
}
169866
function toggleInjectionForActiveTab() {
  var url = tabs.activeTab.url;
  if (!isInjectionEnabledForUrl(url)) {
    enableInjectionForUrl(url);
  } else {
    disableInjectionForUrl(url);
  }
}
522618
function setupAutoUpdate() {
        updateJsonHandler = new StateHandler(updateJsonPath);
        updateDomain.on('data', receiveMessageFromNode);

        updateDomain.exec('initNode', {
            messageIds: MessageIds,
            updateDir: updateDir,
            requester: domainID
        });
    }
927967
function set_network_active( $is_network_active = true, $is_delegated_connection = false ) {
            $this->_is_network_active       = $is_network_active;
            $this->_is_delegated_connection = $is_delegated_connection;
        }
536838
public void setActive(boolean active, String reason) {

        if (!active) {
            m_clickRegistration.removeHandler();
            m_mouseOutRegistration.removeHandler();
            m_mouseOverRegistration.removeHandler();
            getElement().addClassName(I_CmsLayoutBundle.INSTANCE.contextmenuCss().disabled());
            getElement().setAttribute("title", reason);
        } else {
            addMouseOutHandler(this);
            addMouseOverHandler(this);
            addClickHandler(this);
            getElement().removeClassName(I_CmsLayoutBundle.INSTANCE.contextmenuCss().disabled());
        }
        m_active = active;
    }
624898
private void buildActivationButton() {

        m_activation = new CmsCheckBox(Messages.get().key(Messages.GUI_MULTISELECT_ACTIVATE_0));

        m_activation.addStyleName(I_CmsWidgetsLayoutBundle.INSTANCE.widgetCss().checkboxlabel());
        m_activation.addValueChangeHandler(new ValueChangeHandler<Boolean>() {

            public void onValueChange(ValueChangeEvent<Boolean> event) {

                setAllCheckboxEnabled(event.getValue().booleanValue());

            }
        });
    }
557781
public void activateOptions() {
    if (!isActive()) {
      setActive(true);
      if (advertiseViaMulticastDNS) {
        zeroConf = new ZeroConfSupport(ZONE, port, getName());
        zeroConf.advertise();
      }

      fireConnector(false);
    }
  }
1176591
public void autoAssign(ProxyField proxyField, RuleContext ruleContext)
    {
        // Count the excludes left and if only 1 then assign this value.
        // TODO: work out what should happen if a later rule excludes this value
        ChoiceBase lastChoice = findLastChoice(proxyField);
        if (lastChoice != null)
        {
            Object value = proxyField.getPropertyMetadata().convertFromString(lastChoice.getKey().toString());
            s_log.debug("{}auto-assign: {} {}",new Object[]{m_indenter,proxyField,value});
            assign(getRuleProxyField(proxyField),value,ruleContext,true);
        }        
    }