If the previous check went OK, setup some variables used later
432408
public function setupVariables($errors, $is_admmod)
    {
        $post = [];

        $post = Container::get('hooks')->fire('model.post.setup_variables_start', $post, $errors, $is_admmod);

        if (!User::get()->is_guest) {
            $post['username'] = User::get()->username;
            $post['email'] = User::get()->email;
        } // Otherwise it should be in $feather ($_POST)
        else {
            $post['username'] = Utils::trim(Input::post('req_username'));
            $post['email'] = strtolower(Utils::trim((ForumSettings::get('p_force_guest_email') == '1') ?
                Input::post('req_email') : Input::post('email')));
        }

        if (Input::post('req_subject')) {
            $post['subject'] = Utils::trim(Input::post('req_subject'));
        }

        $post['hide_smilies'] = Input::post('hide_smilies') ? '1' : '0';
        $post['subscribe'] = Input::post('subscribe') ? '1' : '0';
        $post['stick_topic'] = Input::post('stick_topic') && $is_admmod ? '1' : '0';

        $post['message']  = Utils::linebreaks(Utils::trim(Input::post('req_message')));

        // Validate BBCode syntax
        if (ForumSettings::get('p_message_bbcode') == '1') {
//            $post['message']  = Container::get('parser')->preparseBBcode($post['message'], $errors);
            $post['message'] = Container::get('parser')->parseForSave($post['message'], $errors);
        }

        // Replace four-byte characters (MySQL cannot handle them)
        // FIXME national symbols problem
//        $post['message'] = Utils::strip_bad_multibyte_chars($post['message']);

        $post['time'] = time();

        $post = Container::get('hooks')->fire('model.post.setup_variables', $post);

        return $post;
    }
818748
def _validate_var(self, var):
        """"""
        if "/" in var:
            filt, rest = var.split("/")
            if "|" in rest:
                varname, prop = rest.split("|")
                return prop != ""
            elif rest == "timing":
                return True
            else:
                return False
        else:
            return True
715749
function setChecked(newArr, oldArr) {
      if (checklistBeforeChange && (checklistBeforeChange(scope) === false)) {
        setValueInChecklistModel(getChecklistValue(), ngModelGetter(scope));
        return;
      }
      ngModelGetter.assign(scope, contains(newArr, getChecklistValue(), comparator));
    }
928223
def __pre_check(self, requestedUrl):
		'''
		
		'''
		components = urllib.parse.urlsplit(requestedUrl)

		netloc_l = components.netloc.lower()
		if netloc_l in Domain_Constants.SUCURI_GARBAGE_SITE_NETLOCS:
			self.__check_suc_cookie(components)
		elif netloc_l in Domain_Constants.CF_GARBAGE_SITE_NETLOCS:
			self.__check_cf_cookie(components)
		elif components.path == '/sucuri_shit_2':
			self.__check_suc_cookie(components)
		elif components.path == '/sucuri_shit_3':
			self.__check_suc_cookie(components)
		elif components.path == '/cloudflare_under_attack_shit_2':
			self.__check_cf_cookie(components)
		elif components.path == '/cloudflare_under_attack_shit_3':
			self.__check_cf_cookie(components)
255838
def _mod_run_check(cmd_kwargs, onlyif, unless):
    '''
    
    '''
    if onlyif:
        if __salt__['cmd.retcode'](onlyif, **cmd_kwargs) != 0:
            return {'comment': 'onlyif condition is false',
                    'skip_watch': True,
                    'result': True}

    if unless:
        if __salt__['cmd.retcode'](unless, **cmd_kwargs) == 0:
            return {'comment': 'unless condition is true',
                    'skip_watch': True,
                    'result': True}

    # No reason to stop, return True
    return True
1301601
function setup(done) {
    crontab.load(function(err, ct) {
      if (err) return done(err);
      clean(ct);
      load(ct);
      ct.save(done);
    });
  }
1140427
def _check(self): # TODO: fix?
        """"""
        if self._returncode:
            rarfile.check_returncode(self, '')
        if self._remain != 0:
            raise rarfile.BadRarFile("Failed the read enough data")
707966
function checkVariable(variable) {
			getModifyingReferences(variable.references).forEach(function(reference) {
				context.report(
					reference.identifier,
					ProblemMessages.noConstantAssign,
					{
						name: reference.identifier.name
					});
			});
		}
367115
function checkIfCreated(ID, money) {
                    db.get(`SELECT * FROM economy WHERE userID = '${ID}'`, (err, row) => {
                        if (!row) {
                            insertFirstMoney(ID);
                        } else {
                            var moneyBefore = lodash.toNumber(row.money);
                            var moneyAfter = lodash.toNumber(money);
                            var moneyUpdate = moneyBefore + moneyAfter;
                            //console.log(moneyUpdate);
                            db.run(`UPDATE economy SET money = '${moneyUpdate}' WHERE userID = '${ID}'`);
                            db.get(`SELECT * FROM economy WHERE userID = '${ID}'`, (err, row) => {
                                resolveDB(row);
                            });
                        }
                    });
                }
914891
def after_check
      @checkers.each do |checker|
        after_check_callbacks = checker.class.get_callbacks(:after_check)
        after_check_callbacks.each do |block|
          checker.instance_exec &block
        end
      end
    end
288870
function checkVariable(i) {
  const start = i;
  let l;

  if (i >= tokensLength) return 0;

  // Skip `$`.
  if (tokens[i].type === TokenType.DollarSign) i++;
  else return 0;

  if (l = checkIdent(i)) i += l;
  else return 0;

  return i - start;
}
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
637456
def after_masgn
      variables = variable_stack.pop
      values    = value_stack.pop.first
      values    = values && values.value ? values.value : []

      variables.each_with_index do |variable, index|
        variable.value = values[index].value if values[index]

        current_scope.add(variable.type, variable.name, variable)
      end
    end
1089212
function initialCheck(attr_name) {

	var elements = document.querySelectorAll('[' + attr_name + ']'),
	    element,
	    value,
	    i,
	    l;

	for (i = 0; i < elements.length; i++) {
		element = elements[i];
		value = element.getAttribute(attr_name);

		if (initial_seen.get(element)) {
			continue;
		}

		if (attributes[attr_name]) {
			initial_seen.set(element, true);
			for (l = 0; l < attributes[attr_name].length; l++) {
				attributes[attr_name][l](element, value, null, true);
			}
		}
	}
}
398701
def add_check(self, check):
    
    if self._add_check_callback is not None:
      if not self._add_check_callback(self, check):
        # rejected, skip!
        return False

    self._checkid2index[check.id] = len(self._checks)
    self._checks.append(check)
    return True
755614
private void saveNestedVariables() {
	if (nestedVars != null) {
	    Iterator iter = nestedVars.iterator();
	    while (iter.hasNext()) {
		String varName = (String) iter.next();
		varName = findAlias(varName);
		Object obj = invokingJspCtxt.getAttribute(varName);
		if (obj != null) {
		    originalNestedVars.put(varName, obj);
		}
	    }
	}
    }
1042206
def check_init(yval, yl):
    """""""
    suspect = []
    for var, label in zip(yval, yl):
        if abs(var[0] - var[-1]) >= 1e-6:
            suspect.append(label)
    if suspect:
        print('Initialization failure:')
        print(', '.join(suspect))
    else:
        print('Initialization is correct.')