Verifies the stimulus before closing, warns user with a
        dialog if there are any problems
425687
def closeEvent(self, event):
        """"""
        self.ok.setText("Checking...")
        QtGui.QApplication.processEvents()
        self.model().cleanComponents()
        self.model().purgeAutoSelected()
        msg = self.model().verify()
        if not msg:
            msg = self.model().warning()
        if msg:
            warnBox = QtGui.QMessageBox( QtGui.QMessageBox.Warning, 'Warning - Invalid Settings', '{}. Do you want to change this?'.format(msg) )
            yesButton = warnBox.addButton(self.tr('Edit'), QtGui.QMessageBox.YesRole)
            noButton = warnBox.addButton(self.tr('Ignore'), QtGui.QMessageBox.NoRole)
            warnBox.exec_()
            if warnBox.clickedButton() == yesButton:
                event.ignore()
        self.ok.setText("OK")
1155319
function(){
		console.log("Unknown Response");

		if (_pathConfirmationCounter < 3){
			console.log("Please enter a 'Y' or an 'N' when answering.\n");
			_pathConfirmationCounter++;
			confirmDestination();
		} else {
			console.log("Unable to install at this time due to too many unknown responses.\n");
			_prompt.close();
		}
	}
551443
function verify(visitor) {
  if (visitor._verified) return;

  if (typeof visitor === "function") {
    throw new Error(messages.get("traverseVerifyRootFunction"));
  }

  for (var nodeType in visitor) {
    if (shouldIgnoreKey(nodeType)) continue;

    if (t.TYPES.indexOf(nodeType) < 0) {
      throw new Error(messages.get("traverseVerifyNodeType", nodeType));
    }

    var visitors = visitor[nodeType];
    if (typeof visitors === "object") {
      for (var visitorKey in visitors) {
        if (visitorKey === "enter" || visitorKey === "exit") continue;
        throw new Error(messages.get("traverseVerifyVisitorProperty", nodeType, visitorKey));
      }
    }
  }

  visitor._verified = true;
}
199253
def accept(self):
        
        AutosaveErrorDialog.show_errors = not self.dismiss_box.isChecked()
        return QDialog.accept(self)
45597
def verification_events(self):
        
        queued = self._assemble_event('Verifier_Queued')
        started = self._assemble_event('Verifier_Started')
        return [x for x in [queued, started] if x]
648339
function(){
		_prompt.question("You entered '" + _destination + "'. Is this correct? (Y/N)\n", function(input){
			var response = input.trim().toLowerCase();
			evaluateConfirmation(response);
		});
	}
287113
function() {
    // If the user is on a valid value, then we increment the value, but if
    // they've typed something that's not right we page through predictions
    if (this.assignment.getStatus() === Status.VALID) {
      return this.requisition.nudge(this.assignment, 1).then(function() {
        this.textChanged();
        this.focusManager.onInputChange();
        return true;
      }.bind(this));
    }

    return Promise.resolve(false);
  }
1186725
def verify(operations, loud=False):
    
    everything_ok, roll_call = check(operations, loud=loud)
    if not everything_ok:
        raise CheckFailedException(roll_call)
    return roll_call
1347422
def confirm(text='', title='', buttons=['OK', 'Cancel']):
    """"""
    retVal = messageBoxFunc(0, text, title, MB_OKCANCEL | MB_ICONQUESTION | MB_SETFOREGROUND | MB_TOPMOST)
    if retVal == 1 or len(buttons) == 1:
        return buttons[0]
    elif retVal == 2:
        return buttons[1]
    else:
        assert False, 'Unexpected return value from MessageBox: %s' % (retVal)
1368358
private <T> void check(T t, BiConsumer<T, AddOnModel> specific) {
        if (!shouldCheck()) {
            return;
        }
        secureAccess.doElevated(this::getAddOnModelForClassLoader)
            .ifPresent(addOnModel ->
                    secureAccess.doElevated(() -> specific.accept(t, addOnModel)));
    }
625721
def is_valid(self):
        """"""
        for lineedit in self.lineedits:
            if lineedit in self.validate_data and lineedit.isEnabled():
                validator, invalid_msg = self.validate_data[lineedit]
                text = to_text_string(lineedit.text())
                if not validator(text):
                    QMessageBox.critical(self, self.get_name(),
                                     "%s:<br><b>%s</b>" % (invalid_msg, text),
                                     QMessageBox.Ok)
                    return False
        return True
766291
function checkInstrumented() {
      if (proto['__gl_wrapped__']) {
        return false;
      }
      Object.defineProperty(proto, '__gl_wrapped__', {
        'configurable': true,
        'enumerable': false,
        'value': true
      });
      contextRestoreFns.push(function() {
        delete proto['__gl_wrapped__'];
      });
      return true;
    }
84682
private void checkDone() {
    if (doneHandler != null) {
      if (cause != null) {
        doneHandler.handle(new DefaultFutureResult<T>(cause));
      } else {
        if (count == required) {
          doneHandler.handle(new DefaultFutureResult<T>((T) null));
        }
      }
    }
  }
1151365
def Validate(self):
    """"""
    ValidateMultiple(self.probe, "Method has invalid probes")
    Validate(self.target, "Method has invalid target")
    Validate(self.hint, "Method has invalid hint")
734486
function(error) {
        if (error['name'] && error['name'] == 'cancel') {
          // Close dialog.
          component.dismissDialog();
          return;
        }
        // Get error message.
        var errorMessage =
            firebaseui.auth.widget.handler.common.getErrorMessage(error);
        // Some errors are recoverable while others require resending the code.
        switch (error['code']) {
          case 'auth/credential-already-in-use':
            // Do nothing when anonymous user is getting upgraded.
            // Developer should handle this in signInFailure callback.
            component.dismissDialog();
            break;
          case 'auth/code-expired':
            // Expired code requires sending another request.
            // Render previous phone sign in start page and display error in
            // the info bar.
            var container = component.getContainer();
            // Close dialog.
            component.dismissDialog();
            component.dispose();
            firebaseui.auth.widget.handler.handle(
                firebaseui.auth.widget.HandlerName.PHONE_SIGN_IN_START, app,
                container, phoneNumberValue, errorMessage);
            break;
          case 'auth/missing-verification-code':
          case 'auth/invalid-verification-code':
            // Close dialog.
            component.dismissDialog();
            // As these errors are related to the code provided, it is better
            // to display inline.
            showInvalidCode(errorMessage);
            break;
          default:
            // Close dialog.
            component.dismissDialog();
            // Stay on the same page for all other errors and display error in
            // info bar.
            component.showInfoBar(errorMessage);
            break;
        }
      }
1247334
public function verifySettings()
    {
        if ($this->dateTime === null && $this->seconds < 0) {
            $this->setError(
                "You must provide a datetime or the number of "
                . "seconds."
            );
        } elseif ($this->seconds < 0) {
            $this->setError(
                "Date of " . $this->dateTime
                . " results in negative seconds"
                . " value relative to epoch (January 1, 1970, 00:00:00 GMT)."
            );
        }
    }
526110
function _check(){
            if(_checkReady(target)){
                clearInterval(timeHandle);
                timeHandle = null;
                _call();

                isReady = true;
            }               
        }