check starter settings
353091
def valid_starter_settings(self):
        ''''''
        if self.gasheli_settings.ignition_chan <= 0 or self.gasheli_settings.ignition_chan > 8:
            print("Invalid ignition channel %d" % self.gasheli_settings.ignition_chan)
            return False
        if self.gasheli_settings.starter_chan <= 0 or self.gasheli_settings.starter_chan > 14:
            print("Invalid starter channel %d" % self.gasheli_settings.starter_chan)
            return False
        return True
753449
def _post_init(self):
        """"""
        if WIN:
            self._find_devices_win()
        elif MAC:
            self._find_devices_mac()
        else:
            self._find_devices()
        self._update_all_devices()
        if NIX:
            self._find_leds()
876279
async def _set_get_started(self):
        

        page = self.settings()

        if 'get_started' in page:
            payload = page['get_started']
        else:
            payload = {'action': 'get_started'}

        await self._send_to_messenger_profile(page, {
            'get_started': {
                'payload': ujson.dumps(payload),
            },
        })

        logger.info('Get started set for page %s', page['page_id'])
34150
def prompt_restart_required(self):
        """"""
        restart_opts = self.restart_options
        changed_opts = self.changed_options
        options = [restart_opts[o] for o in changed_opts if o in restart_opts]

        if len(options) == 1:
            msg_start = _("Spyder needs to restart to change the following "
                          "setting:")
        else:
            msg_start = _("Spyder needs to restart to change the following "
                          "settings:")
        msg_end = _("Do you wish to restart now?")

        msg_options = u""
        for option in options:
            msg_options += u"<li>{0}</li>".format(option)

        msg_title = _("Information")
        msg = u"{0}<ul>{1}</ul><br>{2}".format(msg_start, msg_options, msg_end)
        answer = QMessageBox.information(self, msg_title, msg,
                                         QMessageBox.Yes | QMessageBox.No)
        if answer == QMessageBox.Yes:
            self.restart()
857947
def _start_primary(self):
        """"""
        self.em.start()
        self.em.set_secondary_state(_STATE_RUNNING)
        self._set_shared_instances()
1109399
def OnInit(self):
        """"""
        self.frame = SimpleSCardAppFrame(
            self.appname,
            self.apppanel,
            self.appstyle,
            self.appicon,
            self.pos,
            self.size)
        self.frame.Show(True)
        self.SetTopWindow(self.frame)

        return True
769075
function _start() {
    var now = Date.now();
    var config = this._config;

    var missing = !config ? required : required.filter(function(key) {
      return config[key] === undefined;
    });

    if (missing.length) {
      throw TypeError('Missing config properties: ' + missing.join(', '));
    }

    if (this._started) {
      throw Error('Ticker already started');
    }

    this._started = now;
    this._before = now - config.delay;

    this._tick();

    return this;
  }
31691
function start() {
      // Listen to the port
      app.listen(hrsConfigs.port, function (err) {
        if (err) {
          info(err);
        }
        info('Running on http://%s:%s', hrsConfigs.address, hrsConfigs.port);
      });
    }
1168371
public void onStartup() throws StartupException {
        if (monitor == null) {
            monitor = this;
            thread = new Thread() {
                @Override
                public void run() {
                    this.setName("UserGroupMonitor-thread");
                    monitor.start();
                }
            };
            thread.start();
        }
    }
1319534
public static function autoStart()
    {
        if (ini_get("tideways.auto_start") || isset($_SERVER["TIDEWAYS_AUTO_START"])) {
            if (self::isStarted() === false) {
                switch (php_sapi_name()) {
                    case 'cli':
                        if (ini_get("tideways.monitor_cli") || isset($_SERVER['TIDEWAYS_SESSION'])) {
                            self::start(array('service' => 'cli'));
                        }
                        break;

                    default:
                        self::start();
                }
            }
        }

        if (self::requiresDelegateToOriginalPrependFile()) {
            require_once ini_get("auto_prepend_file");
        }
    }
905858
def start(self, instance_names):
        
        if not instance_names:
            configs = (os.path.join('config', 'galaxy.ini'),
                    os.path.join('config', 'galaxy.ini.sample'))
            for config in configs:
                if os.path.exists(config):
                    if not self.config_manager.is_registered(os.path.abspath(config)):
                        self.config_manager.add([config])
                    break
41150
function(packager, settings, key, type) {
    fis.log.debug('[' + key + '] start');
    fis.emit(type, ret, conf, opt);
    packager(ret, conf, settings, opt);
    fis.log.debug('[' + key + '] end');
  }
975037
def set_start(self,t):
    
    self.__dur += self.__start - t
    self.__start = t
1102916
public void setStart(final double START) {
        if (null == start) {
            _start = START;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            start.set(START);
        }
    }
251050
protected function beforeInit()
	{
	    // load default config
	    Config::setDefault(DefaultConfig::common());
	    
	    // load common config: /common/config/config.php
	    Config::load('config');
	    
	    // autoload common class: /common/src/...
	    $ns = Config::getCommon('commonNamespace', 'Common');
	    $ns = trim($ns, '\\') . '\\';
	    Ioc::loader()->setPsr4($ns, Config::getCommonPath() . 'src');
	    
	    // init namespaces: load or init
	    Ioc::initNamespace();
	}
180581
def setup_signals(self, ):
        
        self.showfilter_tb.toggled.connect(self.switch_showfilter_icon)
        self.addnew_tb.clicked.connect(self.open_addnew_win)
        self.search_le.editingFinished.connect(self.update_filter)
        for cb in (self.loaded_checkb, self.unloaded_checkb, self.imported_checkb, self.empty_checkb,
                   self.newest_checkb, self.old_checkb, self.alien_checkb):
            cb.toggled.connect(self.update_filter)
636996
def start(self, *args, **kwargs):#pylint:disable=unused-argument
        
        restart = kwargs.get('restart', True)
        return self.run(restart)