100+ results for 'email validate lang:java'

Not the results you expected?

TestDescriptor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 528 lines

52 * reporter's

53 * name (or Email address), the date of the report and of the

54 * fix,

166 * bug fix, including the reporter's

167 * name (or Email address), the date of the report and of the

168 * fix,

300 try {

301 validate();

302 } catch (org.exolab.castor.xml.ValidationException vex) {

395 * fix, including the reporter's

396 * name (or Email address), the date of the report and of the

397 * fix,

520 */

521 public void validate(

522 )

MBMailingListLocalServiceImpl.java (https://github.com/lululiferay/liferay-portal.git) Java · 272 lines

88 mailingList.setInReadInterval(inReadInterval);

89 mailingList.setOutEmailAddress(outEmailAddress);

90 mailingList.setOutCustom(outCustom);

154 validate(

155 emailAddress, inServerName, inUserName, outEmailAddress, outCustom,

156 outServerName, outUserName, active);

161 mailingList.setModifiedDate(serviceContext.getModifiedDate(null));

162 mailingList.setEmailAddress(emailAddress);

163 mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);

169 mailingList.setInReadInterval(inReadInterval);

170 mailingList.setOutEmailAddress(outEmailAddress);

171 mailingList.setOutCustom(outCustom);

249

250 if (!Validator.isEmailAddress(emailAddress)) {

251 throw new MailingListEmailAddressException();

WebContentsObserverProxy.java (https://gitlab.com/jonnialva90/iridium-browser) Java · 245 lines

140 public void didStartProvisionalLoadForFrame(long frameId, long parentFrameId,

141 boolean isMainFrame, String validatedUrl, boolean isErrorPage, boolean isIframeSrcdoc) {

142 for (mObserversIterator.rewind(); mObserversIterator.hasNext();) {

143 mObserversIterator.next().didStartProvisionalLoadForFrame(

144 frameId, parentFrameId, isMainFrame, validatedUrl, isErrorPage, isIframeSrcdoc);

145 }

159 @CalledByNative

160 public void didFinishLoad(long frameId, String validatedUrl, boolean isMainFrame) {

161 for (mObserversIterator.rewind(); mObserversIterator.hasNext();) {

162 mObserversIterator.next().didFinishLoad(frameId, validatedUrl, isMainFrame);

163 }

BaseCmsConfig.java (https://gitlab.com/lyc/kl_book) Java · 467 lines

111 private java.lang.Integer downloadTime;

112 private java.lang.Boolean emailValidate;

113 private java.lang.String officeHome;

120 com.jeecms.core.entity.MarkConfig m_markConfig;

121 com.jeecms.core.entity.EmailConfig m_emailConfig;

122

342

343 public java.lang.Boolean getEmailValidate() {

344 return emailValidate;

346

347 public void setEmailValidate(java.lang.Boolean emailValidate) {

348 this.emailValidate = emailValidate;

411 */

412 public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {

413 this.m_emailConfig = m_emailConfig;

IdentityConstraint.java (https://bitbucket.org/pymma/openesb-components.git) Java · 272 lines

248 **/

249 public void validate()

250 throws ValidationException

269

270 } //-- validate

271

IntValidator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 315 lines

79 *

80 * @return the fixed value to validate against.

81 */

92 *

93 * @return the maximum (inclusive) value to validate against.

94 */

105 *

106 * @return the minimum inclusive value to validate against.

107 */

119 *

120 * @return the maximum number of digits to validate against.

121 */

129 /**

130 * Returns true if a fixed value to validate against has been set.

131 *

SaveObjectsTest.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 90 lines

9 import org.junit.Test;

10 import org.nakedobjects.metamodel.facets.object.validate.ValidateObjectFacetViaValidateMethod;

11 import org.nakedobjects.plugins.headless.applib.InvalidException;

59 @Test

60 public void whenValidateMethodThenCanVetoSave() {

61 final Customer newCustomer = getDomainObjectContainer().newTransientInstance(Customer.class);

72 final Customer newCustomerViewObject = getHeadlessViewer().view(newCustomer);

73 newCustomer.validate = "No shakes";

74

82

83 assertThat(ex.getAdvisorClass(), classEqualTo(ValidateObjectFacetViaValidateMethod.class));

84 assertThat(getDomainObjectContainer().isPersistent(newCustomer),

Schema.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 107 lines

43 * change the set of constraints once it is created. In other words,

44 * if an application validates the same document twice against the same

45 * {@link Schema}, it must always produce the same result.

Validator.java (https://gitlab.com/xMythycle/moo) Java · 291 lines

11 {

12 private static EmailValidator ev = EmailValidator.getInstance(false);

13 private static UrlValidator uv = new UrlValidator();

204 * @param name Configuration item name.

205 * @param emails List of email addresses.

206 * @throws ConfigurationException When an email is invalid.

207 */

208 public static void validateEmailList(final String name, final List<String> emails) throws ConfigurationException

209 {

210 for (String email : emails)

211 validateEmail(name, email);

212 }

219 */

220 public static void validateEmail(final String name, final String email) throws ConfigurationException

221 {

ReportFragmentRightPresenter.java (https://gitlab.com/ahmadrosid/TrackinsAndroid) Java · 122 lines

26 * @Author Ahmad Rosid

27 * @Email ocittwo@gmail.com

28 * @Github https://github.com/ar-android

71

72 private boolean validate() {

73 boolean isValidate = true;

77 if (TextUtils.isEmpty(formInputImage.getText())) {

78 isValidate = false;

79 if (!isShowEmpty) {

85 }

86 return isValidate;

87 }

113 public boolean finish() {

114 return validate();

115 }

MemberAct.java (https://gitlab.com/MetadataDev/mcms) Java · 258 lines

181 * 新密码

182 * @param email

183 * 邮箱

192 @RequestMapping(value = "/member/pwd.jspx", method = RequestMethod.POST)

193 public String passwordSubmit(String origPwd, String newPwd, String email,

194 String nextUrl, HttpServletRequest request,

206 }

207 WebErrors errors = validatePasswordSubmit(user.getId(), origPwd,

208 newPwd, email, request);

214 }

215 cmsUserMng.updatePwdEmail(user.getId(), newPwd, email);

216 return FrontUtils.showSuccess(request, model, nextUrl);

243 }

244 if (errors.ifNotEmail(email, "email", 100)) {

245 return errors;

StaticSiteUserInvitationRequestResource.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 163 lines

151 /**

152 * Validates the instance.

153 *

156 @Override

157 public void validate() {

158 super.validate();

159 if (innerProperties() != null) {

160 innerProperties().validate();

161 }

UserInner.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 171 lines

73 /**

74 * Get the email property: Email address of the user.

75 *

82 /**

83 * Set the email property: Email address of the user.

84 *

85 * @param email the email value to set.

86 * @return the UserInner object itself.

87 */

88 public UserInner withEmail(String email) {

89 if (this.innerProperties() == null) {

91 }

92 this.innerProperties().withEmail(email);

93 return this;

EntityBridge.java (https://github.com/DarioGT/Modelibra-Family.git) Java · 128 lines

20

21 public static final String DEFAULT_EMAIL = "modelibra.swing@email.org";

22

50 PropertyClass.getString())) {

51 if (propertyConfig.isValidateClassType()) {

52 if (propertyConfig.getValidationType().equals(

56 } else if (propertyConfig.getValidationType().equals(

57 PropertyClass.getEmail())) {

58 newEntity.setProperty(propertyConfig.getCode(),

59 DEFAULT_EMAIL);

60 }

86 newEntity.setProperty(propertyConfig.getCode(), Transformer

87 .email(DEFAULT_EMAIL));

88 }

SAXParser.java (https://github.com/atgreen/moxiedev.git) Java · 340 lines

292 /**

293 * Indicates whether this parser will validate its input.

294 */

DefaultChangesSchemaValidator.java (https://github.com/SciSysUK/maven-plugins.git) Java · 154 lines

56

57 public XmlValidationHandler validateXmlWithSchema( File file, String schemaVersion, boolean failOnValidationError )

58 throws SchemaValidatorException

74

75 validator.validate( new StreamSource( reader ) );

76

IndexMeta.java (https://github.com/shirou/all-write.git) Java · 98 lines

63 protected void setKey(Object model, com.google.appengine.api.datastore.Key key) {

64 validateKey(key);

65 allwrite.model.Index m = (allwrite.model.Index) model;

PWDValidator.java (https://bitbucket.org/jorgenio/gvsig.git) Java · 77 lines

6 * Description : Example implementation of a password validator

7 * Author's email : elmar@grom.net

8 * Author's Website : http://www.izforge.com

42 /**

43 * Validates the contend of multiple password fields. The test

44 *

49 /*--------------------------------------------------------------------------*/

50 public boolean validate (ProcessingClient client)

51 {

ShipmentValidateRequest.java (http://clom2.googlecode.com/svn/trunk/) Java · 509 lines

72 })

73 @XmlRootElement(name = "ShipmentValidateRequest", namespace = "http://www.dhl.com")

74 public class ShipmentValidateRequest {

Wcs11Validator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 532 lines

100 /**

101 * Calls <code>validateXXX</code> for the corresponding classifier of the model.

102 * <!-- begin-user-doc -->

105 */

106 protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) {

107 switch (classifierID) {

108 case Wcs11Package.AVAILABLE_KEYS_TYPE:

109 return validateAvailableKeysType((AvailableKeysType)value, diagnostics, context);

110 case Wcs11Package.AXIS_SUBSET_TYPE:

111 return validateAxisSubsetType((AxisSubsetType)value, diagnostics, context);

112 case Wcs11Package.AXIS_TYPE:

113 return validateAxisType((AxisType)value, diagnostics, context);

114 case Wcs11Package.CAPABILITIES_TYPE:

Wcs11FactoryImpl.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 567 lines

480 result = XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.DURATION, initialValue);

481 if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) {

482 return result;

489 result = XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.DECIMAL, initialValue);

490 if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) {

491 return result;

Sql.java (https://bitbucket.org/pymma/openesb-components.git) Java · 462 lines

256 try {

257 validate();

258 }

454 **/

455 public void validate()

456 throws org.exolab.castor.xml.ValidationException

458 Validator validator = new Validator();

459 validator.validate(this);

460 } //-- void validate()

Validate.java (https://gitlab.com/praveen.pixlrit/SonarApp2) Java · 507 lines

30 * <pre>

31 * Validate.isTrue( i > 0, "The value must be greater than zero: ", i);

32 * Validate.notNull( surname, "The surname must not be null");

39 * @since 2.0

40 * @version $Id: Validate.java 1057051 2011-01-09 23:15:51Z sebb $

41 */

42 public class Validate {

43 // Validate has no dependencies on other classes in Commons Lang at present

47 */

48 public Validate() {

49 super();

54 /**

55 * <p>Validate that the argument condition is <code>true</code>; otherwise

56 * throwing an exception with the specified message. This method is useful when

SkillresetCommand.java (https://gitlab.com/Slind/mcMMO) Java · 171 lines

42

43 if (!validateArguments(sender, args[0])) {

44 return true;

55

56 if (!validateArguments(sender, args[1])) {

57 return true;

135

136 private boolean validateArguments(CommandSender sender, String skillName) {

137 if (CommandUtils.isInvalidSkill(sender, skillName) && !skillName.equalsIgnoreCase("all")) {

ScriptAssert.java (https://github.com/gunnarmorling/hibernate-validator.git) Java · 122 lines

1 /*

2 * Hibernate Validator, declare and validate application constraints

3 *

72 @Documented

73 @Constraint(validatedBy = { })

74 @Target({ TYPE })

95 * <code>Boolean.TRUE</code>, if the annotated element could

96 * successfully be validated, otherwise <code>Boolean.FALSE</code>.

97 * Returning null or any type other than Boolean will cause a

100 * a ConstraintDeclarationException, too. Within the script, the

101 * validated object can be accessed from the {@link javax.script.ScriptContext

102 * script context} using the name specified in the

DomainTestSuite.java (https://github.com/smcgowan/wildfly.git) Java · 99 lines

44 ManagementClientContentTestCase.class,

45 ValidateOperationOperationTestCase.class

46 })

ComboBox.as (git://github.com/OpenRTMFP/ArcusNode.git) ActionScript · 461 lines ✨ Summary

This is a custom ActionScript class that implements a dropdown list combo box. It allows users to select an item from a list and displays the selected item in a label. The class provides various properties and methods for customizing the appearance and behavior of the combo box, such as setting the number of visible items, colors, and font styles.

345 _list.listItemHeight = value;

346 invalidate();

347 }

383 _numVisibleItems = value;

384 invalidate();

385 }

445 _list.autoHideScrollBar = value;

446 invalidate();

447 }

Window.as (git://github.com/OpenRTMFP/ArcusNode.git) ActionScript · 399 lines ✨ Summary

This is a custom ActionScript class that represents a window panel with customizable properties such as title, color, and draggable behavior. It includes features like minimize and close buttons, grips on the title bar, and a content container for added elements. The class provides methods to set and get these properties, allowing developers to create custom windows with specific behaviors.

252 _color = c;

253 invalidate();

254 }

308 }

309 invalidate();

310 }

369 }

370 invalidate();

371 }

Annotation.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 145 lines

140 **/

141 public void validate() throws ValidationException {

142 // -- do nothing

Use_casesExample.java (https://gitlab.com/jgsuess/uml-1.4.2) Java · 125 lines

91

92 // Validate the contents of the loaded resource.

93 //

94 for (EObject eObject : resource.getContents()) {

95 Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);

96 if (diagnostic.getSeverity() != Diagnostic.OK) {

PublishRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 1451 lines

129 * <p>

130 * Failure to parse or validate any key or value in the message will cause

131 * the <code>Publish</code> call to return an error (no partial delivery).

139 * Optional parameter to be used as the "Subject" line when the message is

140 * delivered to email endpoints. This field will also be included, if

141 * present, in the standard JSON messages delivered to other endpoints.

154 * publish action, you can send a short message to your SMS subscribers and

155 * a longer message to your email subscribers. If you set

156 * <code>MessageStructure</code> to <code>json</code>, the value of the

283 * <p>

284 * Failure to parse or validate any key or value in the message will

285 * cause the <code>Publish</code> call to return an error (no partial

375 * <p>

376 * Failure to parse or validate any key or value in the message will

377 * cause the <code>Publish</code> call to return an error (no partial

ResendValidationEmailRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 556 lines

236 * <p>

237 * The base validation domain that will act as the suffix of the email

238 * addresses that are used to send the emails. This must be the same as the

275 * The base validation domain that will act as the suffix of the

276 * email addresses that are used to send the emails. This must be the

277 * same as the <code>Domain</code> value or a superdomain of the

355 * @return The base validation domain that will act as the suffix of the

356 * email addresses that are used to send the emails. This must be

357 * the same as the <code>Domain</code> value or a superdomain of the

436 * The base validation domain that will act as the suffix of the

437 * email addresses that are used to send the emails. This must be the

438 * same as the <code>Domain</code> value or a superdomain of the

511 return false;

512 ResendValidationEmailRequest other = (ResendValidationEmailRequest) obj;

513 if (other.getCertificateArn() == null

Inst2XsdDetailedOptionsTest.java (https://bitbucket.org/pymma/openesb-components.git) Java · 425 lines

41

42 Inst2Xsd.main(new String[]{"-validate", "-verbose",

43 "-design", "rd",

63

64 Inst2Xsd.main(new String[]{"-validate", "-verbose",

65 "-design", "ss",

84

85 Inst2Xsd.main(new String[]{"-validate", "-verbose",

86 "-design", "vb",

107

108 Inst2Xsd.main(new String[]{"-validate", "-verbose",

109 "-design", "rd",

128

129 Inst2Xsd.main(new String[]{"-validate", "-verbose",

130 "-design", "ss",

RegisterUserForm.java (https://gitlab.com/Balun/jaganjci) Java · 250 lines

58 this.lastName = prepare(req.getParameter("lastName"));

59 this.email = prepare(req.getParameter("email"));

60 this.password = prepareWithoutTrim(req.getParameter("password"));

78 user.setLastName(lastName);

79 user.setEmail(email);

80 if (!password.isEmpty()) {

115

116 if (email.isEmpty() || !isEmailValid(email)) {

117 errors.put("email", "Krivi format e-mail adrese.");

158

159 if (email.isEmpty() || !isEmailValid(email)) {

160 errors.put("email", "Krivi format e-mail adrese.");

203 */

204 public static boolean isEmailValid(String email) {

205 Pattern pattern = Pattern.compile(".+@.+\\..+");

SecondaryResourceFetchThread.java (https://github.com/manishasarkar/rhodes.git) Java · 188 lines

173 {

174 RhodesApplication.getInstance().invalidateMainScreen();

175 }

ConstrainedPropertyTests.java (https://github.com/jabley/grails.git) Java · 374 lines

45

46 assertTrue("should be an email", cp.isEmail());

47 }

326 "other(blank:false,size:5..15,nullable:false)\n" +

327 "email(email:true)\n" +

328 "}\n" +

363 Errors errors = new BindException(go, "TestClass");

364 emailConstraint.validate(go, go.getProperty("email"), errors );

365

366 assertTrue(errors.hasErrors());

367 go.setProperty("email", "valid@email.com");

368 errors = new BindException(go, "TestClass");

369 emailConstraint.validate(go, go.getProperty("email"), errors );

370 assertFalse(errors.hasErrors());

UsurperSpringTest.java (https://github.com/zepag/org-libs.git) Java · 456 lines

68

69 // VALIDATE RESULTING OBJECT

70 try {

87 assertTrue("Generated List's size should be " + listSize, list.size() == listSize);

88 // VALIDATE RESULTING OBJECT

89 try {

108 assertTrue("Generated Set's size should be " + setSize, set.size() == setSize);

109 // VALIDATE RESULTING OBJECT

110 try {

130 assertTrue("Generated Map's size should be " + mapSize, map.size() == mapSize);

131 // VALIDATE RESULTING OBJECT

132 try {

148

149 // VALIDATE RESULTING OBJECT

150 try {

DAO.java (https://bitbucket.org/simplexproject/simplex-development.git) Java · 353 lines

121 * @brief Deletes the user by its email.

122 * @param email

123 * - the id of the wanted user.

130 /**

131 * @brief Validate user finds the user in the databse (by it's email) and

132 * validates. That the given password is like the one iin the

140 */

141 public User validateUser(String email, String password) {

142 Objectify objectify = ObjectifyService.begin();

143

144 if (email != null && !email.equals("") && password != null

145 && !password.equals("")) { // Checks for valid parameters, and

158

159 System.out.println("Failed login attempt:\n" + "email: " + email

160 + " Password:" + password);

AuthDataManager.java (https://gitlab.com/admin-github-cloud/My-Wallet-V3-Android) Java · 219 lines

56

57 public Observable<CharSequenceX> validatePin(String pin) {

58 return Observable.fromCallable(() -> mAccessState.validatePIN(pin))

120

121 public Observable<Integer> createCheckEmailTimer() {

122 timer = 2 * 60;

163 public void onCompleted() {

164 mPrefsUtil.setValue(PrefsUtil.KEY_EMAIL_VERIFIED, true);

165 listener.onSuccess();

ParsingTest.java (https://gitlab.com/dovereem/xtcetools) Java · 594 lines

68 XTCEDatabase db = new XTCEDatabase( new File( file ),

69 false, // validate on load

70 false, // xinclude

98 XTCEDatabase db = new XTCEDatabase( new File( file ),

99 false, // validate on load

100 false, // xinclude

125 XTCEDatabase db = new XTCEDatabase( new File( file ),

126 false, // validate on load

127 false, // xinclude

154 XTCEDatabase db = new XTCEDatabase( fileIn,

155 false, // validate on load

156 false, // xinclude

229 XTCEDatabase db = new XTCEDatabase( new File( file ),

230 true, // validate on load

231 false, // xinclude

Validate.java (https://github.com/aruder77/applause.git) Java · 554 lines

29 * <pre>

30 * Validate.isTrue( i > 0, "The value must be greater than zero: ", i);

31 * Validate.notNull( surname, "The surname must not be null");

38 * @since 2.0

39 * @version $Id: Validate.java 437554 2006-08-28 06:21:41Z bayard $

40 */

41 public class Validate {

42 // Validate has no dependencies on other classes in Commons Lang at present

46 */

47 public Validate() {

48 super();

54 /**

55 * <p>Validate an argument, throwing <code>IllegalArgumentException</code>

56 * if the test result is <code>false</code>.</p>

LoadingRenderer.java (https://gitlab.com/santoshvarma4u/chefmonster-Android) Java · 124 lines

27 computeRender((float) animation.getAnimatedValue());

28 invalidateSelf();

29 }

82 // it will always call the method onAnimationUpdate(ValueAnimator animation)

83 // why ? if you know why please send email to me (dinus_developer@163.com)

84 mRenderAnimator.removeUpdateListener(mAnimatorUpdateListener);

119

120 private void invalidateSelf() {

121 mCallback.invalidateDrawable(null);

Attribute.java (https://github.com/infinispan/infinispan.git) Java · 152 lines

112 USERNAME,

113 VALIDATE_ON_ACQUISITION,

114 VALUE,

CrowdClient.java (https://bitbucket.org/atlassian/crowd-rest-client.git) Java · 726 lines

30 import com.atlassian.crowd.exception.InvalidCredentialException;

31 import com.atlassian.crowd.exception.InvalidEmailAddressException;

32 import com.atlassian.crowd.exception.InvalidGroupException;

196 * @throws UserNotFoundException if the user does not exist

197 * @throws InvalidEmailAddressException if the user does not have a valid email to send the reset password link to

198 * @throws ApplicationPermissionException if the application is not permitted to perform the requested operation on the server

205 /**

206 * Sends the usernames associated with the given email address. No email will be sent if there are no usernames

207 * associated with a given <code>email</code>.

208 *

209 * @param email email address of the user

210 * @throws InvalidEmailAddressException if the <code>email</code> is not valid

214 */

215 public void requestUsernames(final String email) throws InvalidEmailAddressException, OperationFailedException, InvalidAuthenticationException, ApplicationPermissionException;

216

sym_hipd.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 5841 lines ✨ Summary

This C code initializes and configures a hardware controller (HCB) for a storage device, allocating memory and setting up data structures to manage the device’s operations. It sets up various tables and arrays to store bus addresses, target control blocks, and other information necessary for the device’s operation. The code also frees allocated resources when the HCB is no longer needed.

852 if (np->features & FE_WRIE)

853 np->rv_ctest3 |= WRIE; /* Write and Invalidate */

854 if (np->features & FE_DFS)

ParentChildPropertyDisplayListListView.java (https://github.com/DarioGT/Modelibra-Family.git) Java · 110 lines

71 if (parentPropertyClass.equals(PropertyClass.getUrl())

72 || parentPropertyClass.equals(PropertyClass.getEmail())) {

73 parentPropertyPanel = new ExternalLinkPanel(parentModel, parentView);

76 PropertyClass.getString())

77 && parentPropertyConfig.isValidateType()) {

78 if (parentPropertyConfig.getValidationType().equals(

80 || parentPropertyConfig.getValidationType().equals(

81 ValidationType.getEmail())) {

82 parentPropertyPanel = new ExternalLinkPanel(parentModel,

ModelMeta.java (https://github.com/DarioGT/Modelibra-Family.git) Java · 1499 lines

37 import org.modelibra.exception.TypeRuntimeException;

38 import org.modelibra.type.Email;

39 import org.modelibra.type.PropertyClass;

Schema.java (https://gitlab.com/cde/debian_android-tools_android-platform-libcore) Java · 92 lines

35 * change the set of constraints once it is created. In other words,

36 * if an application validates the same document twice against the same

37 * {@link Schema}, it must always produce the same result.

KeystoreManager.java (https://bitbucket.org/adri11/dmoda_mobile_daemon.git) Java · 232 lines

101 public static void verifyKeystoreContent(AppleServer server, Object keystore) throws KeystoreException {

102 KeyStore keystoreToValidate = null;

103 if (keystore instanceof KeyStore) keystoreToValidate = (KeyStore) keystore;

104 else keystoreToValidate = loadKeystore(server, keystore);

105 verifyKeystoreContent(keystoreToValidate);

191 static InputStream streamKeystore(Object keystore) throws InvalidKeystoreReferenceException {

192 validateKeystoreParameter(keystore);

193 try {

198 else if (keystore instanceof byte[]) return new ByteArrayInputStream((byte[]) keystore);

199 else return null; // we should not get here since validateKeystore ensures that the reference is valid

200 } catch (Exception e) {

211 */

212 public static void validateKeystoreParameter(Object keystore) throws InvalidKeystoreReferenceException {

213 if (keystore == null) throw new InvalidKeystoreReferenceException((Object) null);

JobSpecification.java (https://github.com/OurGrid/OurGrid.git) Java · 277 lines

79 this.taskSpecs = taskSpecs;

80 validate();

81 }

84 /**

85 * This method validates the attributes of this Job Spec

86 */

87 private void validate() throws JobSpecificationException {

88

165 this.taskSpecs = taskSpecs;

166 validate();

167 }

TestCookieRFC2965Spec.java (https://github.com/steveclark7/Test1.git) Java · 1014 lines

468 @Test

469 public void testValidateNoDomain() throws Exception {

470 CookieSpec cookiespec = new RFC2965Spec();

474 for (int i = 0; i < cookies.size(); i++) {

475 cookiespec.validate(cookies.get(i), origin);

476 }

488 @Test

489 public void testValidateDomainLeadingDot() throws Exception {

490 CookieSpec cookiespec = new RFC2965Spec();

494 for (int i = 0; i < cookies.size(); i++) {

495 cookiespec.validate(cookies.get(i), origin);

496 }

506 @Test

507 public void testValidateDomainEmbeddedDot() throws Exception {

508 CookieSpec cookiespec = new RFC2965Spec();

TestBasicCookieAttribHandlers.java (https://github.com/steveclark7/Test1.git) Java · 502 lines

76 @Test

77 public void testBasicDomainValidate1() throws Exception {

78 BasicClientCookie cookie = new BasicClientCookie("name", "value");

82 cookie.setDomain(".somedomain.com");

83 h.validate(cookie, origin);

84

86 try {

87 h.validate(cookie, origin);

88 Assert.fail("MalformedCookieException should have been thrown");

93 try {

94 h.validate(cookie, origin);

95 Assert.fail("MalformedCookieException should have been thrown");

101 @Test

102 public void testBasicDomainValidate2() throws Exception {

103 BasicClientCookie cookie = new BasicClientCookie("name", "value");

PrintArcTest.java (https://github.com/ikeji/openjdk7-jdk.git) Java · 105 lines

45 add("South", b);

46 validate();

47 }

RemoveAfterRequest.java (https://github.com/ikeji/openjdk7-jdk.git) Java · 102 lines

71 frame.remove(btn1);

72 frame.invalidate();

73 frame.validate();

Test6526631.java (https://github.com/ikeji/openjdk7-jdk.git) Java · 99 lines

65

66 public void validateFirst() {

67 validateThird();

70

71 public void validateSecond() {

72 validateThird();

75

76 public void validateThird() {

77 JViewport viewport = this.pane.getViewport();

UserServlet.java (https://github.com/mateusbpontes/scc263.git) Java · 120 lines

35

36 String email = request.getParameter("email");

37 String password = request.getParameter("password");

49 if ((user == null) ||

50 (user != null && User.findByEmailPassword(

51 db,

52 user.getEmail(),

53 user.getPassword()) == null)) {

66 user = new User();

67 user.setEmail(email);

68 user.setPassword(password);

75 getDatabase();

76 user = User.findByEmailPassword(

77 db,

RegionTest.java (git://pkgs.fedoraproject.org/eclipse-mdt-uml2) Java · 262 lines

32 * <ul>

33 * <li>{@link org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Redefinition Context Valid</em>}</li>

34 * <li>{@link org.eclipse.uml2.uml.RedefinableElement#validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Redefinition Consistent</em>}</li>

35 * <li>{@link org.eclipse.uml2.uml.Region#isConsistentWith(org.eclipse.uml2.uml.RedefinableElement) <em>Is Consistent With</em>}</li>

36 * <li>{@link org.eclipse.uml2.uml.Region#validateInitialVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Initial Vertex</em>}</li>

37 * <li>{@link org.eclipse.uml2.uml.Region#validateDeepHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Deep History Vertex</em>}</li>

38 * <li>{@link org.eclipse.uml2.uml.Region#validateShallowHistoryVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Shallow History Vertex</em>}</li>

39 * <li>{@link org.eclipse.uml2.uml.Region#validateOwned(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Owned</em>}</li>

165 /**

166 * Tests the '{@link org.eclipse.uml2.uml.Region#validateInitialVertex(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Initial Vertex</em>}' operation.

167 * <!-- begin-user-doc -->

201 /**

202 * Tests the '{@link org.eclipse.uml2.uml.Region#validateOwned(org.eclipse.emf.common.util.DiagnosticChain, java.util.Map) <em>Validate Owned</em>}' operation.

203 * <!-- begin-user-doc -->

GenerateMojo.java (https://github.com/gnodet/camel.git) Java · 69 lines

58 invoke(PackageLegalMojo.class);

59 // validate-components

60 invoke(ValidateComponentMojo.class);

CompositeNode.java (https://github.com/chrcz/jbpm.git) Java · 479 lines

210

211 public void validateAddIncomingConnection(final String type, final Connection connection) {

212 CompositeNode.NodeAndType nodeAndType = internalGetLinkedIncomingNode(type);

220 if (node != null) {

221 node.validateAddIncomingConnection(nodeAndType.getType(), connection);

222 }

245

246 public void validateAddOutgoingConnection(final String type, final Connection connection) {

247 CompositeNode.NodeAndType nodeAndType = internalGetLinkedOutgoingNode(type);

255 if (node != null) {

256 ((NodeImpl) nodeAndType.getNode()).validateAddOutgoingConnection(nodeAndType.getType(), connection);

257 }

282

283 public void validateRemoveIncomingConnection(final String type, final Connection connection) {

284 CompositeNode.NodeAndType nodeAndType = internalGetLinkedIncomingNode(type);

HTMLInfoPanel.java (https://github.com/jponge/izpack-full-svn-history-copy.git) Java · 150 lines

7 * Description : A panel to show some HTML information.

8 * Author's email : julien@izforge.com

9 * Author's Website : http://www.izforge.com

123 /**

124 * Indicates wether the panel has been validated or not.

125 *

127 */

128 public boolean isValidated()

129 {

PlatformAPICallPreHandler.java (https://gitlab.com/CORP-RESELLER/sdk-core-java) Java · 432 lines

337

338 public void validate() throws ClientActionRequiredException {

339 String mode = configurationMap.get(Constants.MODE);

403

404 String sandboxEmailAddress = this.configurationMap

405 .get(Constants.SANDBOX_EMAIL_ADDRESS);

406 if (sandboxEmailAddress != null) {

407 returnMap.put(Constants.PAYPAL_SANDBOX_EMAIL_ADDRESS_HEADER,

408 sandboxEmailAddress);

409 }

RDFSRuleInfGraph.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 94 lines

53 @Override

54 public ValidityReport validate() {

55 // The full configuration uses validation rules so check for these

56 StandardValidityReport report = (StandardValidityReport)super.validate();

57 // Also do a hardwired check to handle the simpler configurations

MessageInterpolationValidationTestCase.java (https://github.com/jharting/wildfly.git) Java · 75 lines

17 import org.hibernate.validator.cfg.ConstraintMapping;

18 import org.hibernate.validator.cfg.defs.EmailDef;

19 import org.hibernate.validator.messageinterpolation.ValueFormatterMessageInterpolator;

52 mapping.type(Employee.class).property("firstName", FIELD)

53 .constraint(new EmailDef().message("Invalid Email!You have entered:--\\{${validatedValue}\\}"));

54

65 emp.setFirstName("MADHUMITA");

66 String email = "MADHUMITA";

67

68 Set<ConstraintViolation<Employee>> constraintViolations = validator.validate(emp);

69

70 Assert.assertEquals("Wrong number of constraints", constraintViolations.size(), 1);

71 Assert.assertEquals("Invalid Email!You have entered:--{" + email + "}", constraintViolations.iterator().next()

72 .getMessage());

Response.java (https://github.com/subhash/Bugclipse.git) Java · 665 lines

394 try {

395 validate();

396 } catch (org.exolab.castor.xml.ValidationException vex) {

657 */

658 public void validate(

659 )

661 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();

662 validator.validate(this);

663 }

Person.java (https://github.com/subhash/Bugclipse.git) Java · 690 lines

269 *

270 * @return the value of field 'SEmail'.

271 */

272 public java.lang.String getSEmail(

273 ) {

474 try {

475 validate();

476 } catch (org.exolab.castor.xml.ValidationException vex) {

593 *

594 * @param sEmail the value of field 'sEmail'.

595 */

597 final java.lang.String sEmail) {

598 this._sEmail = sEmail;

599 }

Event.java (https://github.com/subhash/Bugclipse.git) Java · 876 lines

101 */

102 private boolean _bEmail;

103

194 */

195 public void deleteBEmail(

196 ) {

476 */

477 public boolean hasBEmail(

478 ) {

611 *

612 * @param bEmail the value of field 'bEmail'.

613 */

615 final boolean bEmail) {

616 this._bEmail = bEmail;

617 this._has_bEmail = true;

StudentProperties.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 312 lines

123 /**

124 * Get the email property: Student Email.

125 *

126 * @return the email value.

127 */

132 /**

133 * Set the email property: Student Email.

134 *

135 * @param email the email value to set.

136 * @return the StudentProperties object itself.

138 public StudentProperties withEmail(String email) {

139 this.email = email;

140 return this;

SiteAgencyValidator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 93 lines

63 boolean phoneBlank = (cmd.getPhoneNumber() == null || cmd.getPhoneNumber().trim().equals(""));

64 boolean emailBlank = (cmd.getEmail() == null || cmd.getEmail().trim().equals(""));

65 boolean addrBlank = (cmd.getAddress() == null || cmd.getAddress().trim().equals(""));

67 if (phoneBlank && emailBlank && addrBlank) {

68 aErrors.reject("one.of.required", new Object[] {"Phone, Email and Address"}, "One of the fields Phone, Email and Address must be populated.");

69 }

71 if (!aErrors.hasErrors()) {

72 ValidatorUtil.validateStringMaxLength(aErrors, cmd.getName(), 255, "string.maxlength", new Object[] {"Name", "255"}, "Name is too long");

73 ValidatorUtil.validateStringMaxLength(aErrors, cmd.getDescription(), 2048, "string.maxlength", new Object[] {"Description", "2048"}, "Description is too long");

76 ValidatorUtil.validateStringMaxLength(aErrors, cmd.getPhoneNumber(), 32, "string.maxlength", new Object[] {"Phone", "32"}, "Phone is too long");

77 ValidatorUtil.validateStringMaxLength(aErrors, cmd.getEmail(), 255, "string.maxlength", new Object[] {"Email", "255"}, "Email is too long");

78

81 if (!aErrors.hasErrors()) {

82 ValidatorUtil.validateRegEx(aErrors,cmd.getEmail(),ValidatorUtil.EMAIL_VALIDATION_REGEX,"invalid.email",new Object[] {"Email"},"Invalid email address");

83 }

TemplateValidator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 88 lines

59 if (tempCmd.getTemplateFrom() != null && tempCmd.getTemplateFrom().length() > 0) {

60 ValidatorUtil.validateRegEx(aErrors, tempCmd.getTemplateFrom(), ValidatorUtil.EMAIL_VALIDATION_REGEX, "invalid.email",getObjectArrayForLabel(TemplateCommand.PARAM_TEMPLATE_FROM),"the template from email address is invalid" );

61 }

71

72 private void checkEmails(Errors aErrors, String emails,

73 String fieldConstant, String label) {

76 {

77 for (String email: emails.split(";"))

78 {

79 ValidatorUtil.validateRegEx(aErrors, email, ValidatorUtil.EMAIL_VALIDATION_REGEX, "invalid.email",getObjectArrayForLabel(fieldConstant),"the "+label+" email address is invalid" );

80 }

83 {

84 ValidatorUtil.validateRegEx(aErrors, emails, ValidatorUtil.EMAIL_VALIDATION_REGEX, "invalid.email",getObjectArrayForLabel(fieldConstant),"the "+label+" email address is invalid" );

85 }

PositionBasedCompletionProposal.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 169 lines

155 /*

156 * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#validate(org.eclipse.jface.text.IDocument, int, org.eclipse.jface.text.DocumentEvent)

157 */

158 public boolean validate(IDocument document, int offset, DocumentEvent event) {

159 try {

ContextTest.java (https://gitlab.com/marcio.rga/educacao-livre) Java · 591 lines

58 newUser.setLastName("Doe");

59 newUser.setEmail("jane@email.com");

60 newUser.setCanLogIn(true);

237 // Create a new EPerson & commit it

238 String createdEmail = "jimmy@email.com";

239 EPerson newUser = EPerson.create(context);

241 newUser.setLastName("Doe");

242 newUser.setEmail(createdEmail);

243 newUser.setCanLogIn(true);

250 Context newInstance = new Context();

251 EPerson found = EPerson.findByEmail(newInstance, createdEmail);

252 assertThat("testCommit 0", found, notNullValue());

318 // Create a new EPerson (DO NOT COMMIT IT)

319 String createdEmail = "susie@email.com";

320 EPerson newUser = EPerson.create(instance);

TestRead.java (https://github.com/miquelrojascherto/bioclipse.qsar.git) Java · 168 lines

149

150 // Validate the contents of the loaded resource.

151 //

152 for (EObject eObject : resource.getContents()) {

153 Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);

154 if (diagnostic.getSeverity() != Diagnostic.OK) {

DepositAccountPreMatureCalculationPlatformServiceImpl.java (https://gitlab.com/skylabase/incubator-fineract) Java · 113 lines

82

83 this.depositAccountTransactionDataValidator.validatePreMatureAmountCalculation(query.json(), depositAccountType);

84 final SavingsAccount account = this.depositAccountAssembler.assembleFrom(accountId, depositAccountType);

FlagTest.java (https://github.com/an1310/infinispan.git) Java · 65 lines

31 cb.invocationBatching().enable();

32 createClusteredCaches(2, "invalidatedFlagCache", cb);

33 cache1 = cache(0, "invalidatedFlagCache");

34 cache2 = cache(1, "invalidatedFlagCache");

35 TreeCacheFactory tcf = new TreeCacheFactory();

44 assert "2".equals(treeCache2.get(fqn, KEY)) : "treeCache2 was updated locally";

45 assert "1".equals(treeCache1.get(fqn, KEY)) : "treeCache1 should not be invalidated in case of LOCAL put in treeCache2";

46

50 assert "4".equals(treeCache2.get(fqnString, KEY)) : "treeCache2 was updated locally";

51 assert "3".equals(treeCache1.get(fqnString, KEY)) : "treeCache1 should not be invalidated in case of LOCAL put in treeCache2";

52 }

62 assert "2".equals(treeCache2.get(fqn, KEY)) : "treeCache2 was updated locally";

63 assert "1".equals(treeCache1.get(fqn, KEY)) : "treeCache1 should not be invalidated in case of LOCAL put in treeCache2";

64 }

AppServiceCertificateOrderProperties.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 449 lines

414 /**

415 * Validates the instance.

416 *

418 */

419 public void validate() {

420 if (certificates() != null) {

425 if (e != null) {

426 e.validate();

427 }

436 if (signedCertificate() != null) {

437 signedCertificate().validate();

438 }

439 if (intermediate() != null) {

440 intermediate().validate();

441 }

TypeManager.java (https://github.com/brettchaldecott/dipforge.git) Java · 665 lines

176 "com.rift.coad.rdf.objmapping.base.serial.ISBN"),false)};

177 } else if (name.equals("com.rift.coad.rdf.objmapping.base.str.ValidatedString")) {

178 nodes = new DataTypeTreeNode[] {

179 new DataTypeTreeNode("Validated String", "rdf/applications-system.png",

180 com.rift.coad.rdf.objmapping.util.client.type.TypeManager.getType(

181 "com.rift.coad.rdf.objmapping.base.str.ValidatedString"),false)};

182 } else if (name.equals("com.rift.coad.rdf.objmapping.base.str.GenericString")) {

206 "com.rift.coad.rdf.objmapping.base.name.Surname"),false)};

207 } else if (name.equals("com.rift.coad.rdf.objmapping.base.Email")) {

208 nodes = new DataTypeTreeNode[] {

209 new DataTypeTreeNode("Email","rdf/internet-mail.png",

210 com.rift.coad.rdf.objmapping.util.client.type.TypeManager.getType(

AbstractBaseValidator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 87 lines

31

32 /** Regular Expression used to validate an email address. */

33 public static final String EMAIL_REGEX = "^[a-zA-Z0-9]+([_\\.-][a-zA-Z0-9]+)*@([a-zA-Z0-9]+([\\.-][a-zA-Z0-9]+)*)+\\.[a-zA-Z]{2,}$";

79 /**

80 * Validate Email address is valid. Will only validate a single email address at a time

81 * @param email an email address to validate as a String

82 * @return true if the email is valid

83 */

84 public boolean validateEmail(String email) {

85 return Pattern.matches(EMAIL_REGEX, email);

FormatsUtil.java (https://gitlab.com/admin-github-cloud/My-Wallet-V3-jar) Java · 209 lines

16

17 private Pattern emailPattern = Pattern.compile("(?:(?:\\r\\n)?[ \\t])*(?:(?:(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\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\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*))*)*:(?:(?:\\r\\n)?[ \\t])*)?(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\"(?:[^\\\"\\r\\\\]|\\\\.|(?:(?:\\r\\n)?[ \\t]))*\"(?:(?:\\r\\n)?[ \\t])*))*@(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*)(?:\\.(?:(?:\\r\\n)?[ \\t])*(?:[^()<>@,;:\\\\\".\\[\\] \\000-\\031]+(?:(?:(?:\\r\\n)?[ \\t])+|\\Z|(?=[\\[\"()<>@,;:\\\\\".\\[\\]]))|\\[([^\\[\\]\\r\\\\]|\\\\.)*\\](?:(?:\\r\\n)?[ \\t])*))*\\>(?:(?:\\r\\n)?[ \\t])*))*)?;\\s*)");

18 private Pattern phonePattern = Pattern.compile("(\\+[1-9]{1}[0-9]{1,2}+|00[1-9]{1}[0-9]{1,2}+)[\\(\\)\\.\\-\\s\\d]{6,16}");

32

33 public String validateBitcoinAddress(final String address) {

34

138

139 public boolean isValidEmailAddress(final String address) {

140 if(emailPattern.matcher(address).matches()) {

DocumentRootImpl.java (https://github.com/jboss-switchyard/tools.git) Java · 1296 lines

77 * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getValidate <em>Validate</em>}</li>

78 * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getValidates <em>Validates</em>}</li>

79 * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getClustered <em>Clustered</em>}</li>

648 */

649 public ValidateType getValidate() {

650 return (ValidateType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATE, true);

657 */

658 public NotificationChain basicSetValidate(ValidateType newValidate, NotificationChain msgs) {

659 return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATE, newValidate, msgs);

675 */

676 public NotificationChain basicSetValidates(ValidatesType newValidates, NotificationChain msgs) {

677 return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, newValidates, msgs);

684 */

685 public void setValidates(ValidatesType newValidates) {

686 ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, newValidates);

mcfcache.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 151 lines ✨ Summary

This C header file provides a set of macros for enabling and configuring cache memory on various ColdFire CPU architectures, including M5206, M523x, M528x, M5249, M5307, M532x, M5407, and M520x. Each macro is tailored to the specific architecture’s cache arrangement, allowing for customization of cache settings such as invalidation, enabling, and caching regions.

24 * Simple version 2 core cache. These have instruction cache only,

25 * we just need to invalidate it and enable it.

26 */

27 .macro CACHE_ENABLE

28 movel #0x01000000,%d0 /* invalidate cache cmd */

29 movec %d0,%CACR /* do invalidate cache */

42 movel #0x01400000,%d0

43 movec %d0,%CACR /* invalidate cache */

44 nop

58 movel #0x01000000, %d0

59 movec %d0, %CACR /* Invalidate cache */

60 nop

77 .macro CACHE_ENABLE

78 movel #0x01000000,%d0 /* invalidate whole cache */

79 movec %d0,%CACR

smarty-mode.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 2754 lines

111 <filename> : replaced by the name of the buffer

112 <author> : replaced by the user name and email address

113 \(`user-full-name',`mail-host-address', `user-mail-address')

383 ("SmartyValidate"

384 ["validate" smarty-template-validate t]))

385 ("Plugins (Variable Modifiers)"

534 (defconst smarty-01-plugins-functions

535 '("validate" "formtool_checkall" "formtool_copy" "formtool_count_chars"

536 "formtool_init" "formtool_move" "formtool_moveall"

NotificationRuleWebBean_Base.java (https://gitlab.com/jaswanth.maddineni/Portal) Java · 426 lines

43

44 /* email_frequency - Determines whether notification emails will be received for each transaction

45 or daily. */

46 registerAttribute("email_frequency", "email_frequency");

47

48

49 /* email_for_message - Indicates if an email will be sent for mail messages. */

50 // registerAttribute("email_for_message", "email_for_message");

52

53 /* email_for_discrepancy - Indicates if an email will be sent for discrepancy messages. */

54 // registerAttribute("email_for_discrepancy", "email_for_discrepancy");

59 page. Based on what tab is being edited, different validations occur. */

60 registerAttribute("part_to_validate", "part_to_validate", "LocalAttribute");

61

NotificationRuleBean_Base.java (https://gitlab.com/jaswanth.maddineni/Portal) Java · 463 lines

51 or daily. */

52 attributeMgr.registerReferenceAttribute("email_frequency", "email_frequency", "NOTIF_RULE_EMAIL_FREQ");

53 attributeMgr.requiredAttribute("email_frequency");

55

56 /* email_for_message - Indicates if an email will be sent for mail messages. */

57 /*

58 attributeMgr.registerReferenceAttribute("email_for_message", "email_for_message", "NOTIF_RULE_SETTING");

59 attributeMgr.requiredAttribute("email_for_message");

96

97 attributeMgr.registerAttribute("default_update_emails_only", "default_update_emails_only", "LocalAttribute");

98

286 attributeMgr.registerAttribute("send_email_setting25", "send_email_setting25", "LocalAttribute");

287 attributeMgr.registerAttribute("send_email_setting26", "send_email_setting26", "LocalAttribute");

288 attributeMgr.registerAttribute("send_email_setting27", "send_email_setting27", "LocalAttribute");

TutorTrackServiceImpl.java (https://gitlab.com/kundan987/TutorTrack) Java · 247 lines

49 @Override

50 public ValidateNumberResponse validateNumber(ValidateNumberRequest request) {

51

53

54 ValidateNumberResponse response = new ValidateNumberResponse();

55 response.setValidated(true);

72 ttresponse = createTutorAggregateRating(tutorAggregateRating);

73 response.setEmail(tutorInfo.getEmail());

74 response.setMobile(tutorInfo.getMobile());

120 tutorTrackServiceDao.insertStudentInfo(studentInfo);

121 response.setEmail(studentInfo.getEmail());

122 response.setMobile(studentInfo.getMobile());

212 studentId = tutorTrackServiceDao.getStudentIdFromEmail(request.getMobileOrEmail());

213 tutorId = tutorTrackServiceDao.getTutorIdFromEmail(request.getMobileOrEmail());

214 }

TestRemainder.java (https://gitlab.com/chprasanna93/platform_cts) Java · 716 lines

87 CoreMathVerifier.computeRemainder(args, target);

88 // Validate the outputs.

89 boolean valid = true;

166 CoreMathVerifier.computeRemainder(args, target);

167 // Validate the outputs.

168 boolean valid = true;

245 CoreMathVerifier.computeRemainder(args, target);

246 // Validate the outputs.

247 boolean valid = true;

324 CoreMathVerifier.computeRemainder(args, target);

325 // Validate the outputs.

326 boolean valid = true;

413 CoreMathVerifier.computeRemainder(args, target);

414 // Validate the outputs.

415 boolean valid = true;

FileTypeMap.java (https://github.com/srnsw/xena.git) Java · 97 lines

23 * resulting executable to be covered by the GNU General Public License.

24 * This exception does not however invalidate any other reasons why the

25 * executable file might be covered by the GNU General Public License.

AbstractConnectionManager.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 303 lines

97 /**

98 * The SQL query to validate connections

99 */

261 /**

262 * Specifies an SQL query to validate connections. This query

263 * should return at least one row, and be fast to execute.

271 /**

272 * Returns the SQL query to validate connections.

273 *

DomainObjectContainer.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 365 lines

87 //////////////////////////////////////////////////////////////////

88 // isValid, validate

89 //////////////////////////////////////////////////////////////////

94 *

95 * @see #validate(Object)

96 */

106 */

107 String validate(Object domainObject);

108

BugFix.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 383 lines

12 * reporter's

13 * name (or Email address), the date of the report and of the fix,

14 * and one or more comments about the bug.

196 try {

197 validate();

198 } catch (org.exolab.castor.xml.ValidationException vex) {

375 */

376 public void validate(

377 )

379 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();

380 validator.validate(this);

381 }

Wsdl_passportBindingStub.java (https://github.com/lvshiling/qizhon.git) Java · 768 lines

457

458 public com.ztgame.webService.client.ReturnValidateAdOnlyByPasswd validateAdOnlyByPasswd(java.lang.String user_name, java.lang.String passwd) throws java.rmi.RemoteException {

459 if (super.cachedEndpoint == null) {

488

489 public com.ztgame.webService.client.ReturnValidateAdByPasswd validateAdByPasswd(java.lang.String user_name, java.lang.String passwd, java.lang.String remote_ip, java.lang.String remote_ip_real, int remote_port, java.lang.String source_system_code) throws java.rmi.RemoteException {

490 if (super.cachedEndpoint == null) {

511 } catch (java.lang.Exception _exception) {

512 return (com.ztgame.webService.client.ReturnValidateAdByPasswd) org.apache.axis.utils.JavaUtils.convert(_resp, com.ztgame.webService.client.ReturnValidateAdByPasswd.class);

513 }

519

520 public com.ztgame.webService.client.ReturnValidateAdByToken validateAdByToken(java.lang.String user_name, java.lang.String token, java.lang.String remote_ip, java.lang.String remote_ip_real, int remote_port, java.lang.String source_system_code) throws java.rmi.RemoteException {

521 if (super.cachedEndpoint == null) {

542 } catch (java.lang.Exception _exception) {

543 return (com.ztgame.webService.client.ReturnValidateAdByToken) org.apache.axis.utils.JavaUtils.convert(_resp, com.ztgame.webService.client.ReturnValidateAdByToken.class);

544 }

LoginMenuPanelLogic.java (https://gitlab.com/kirththiga/Bomberman) Java · 255 lines

207 boolean check = false;

208 boolean validate = false;

209

237 try {

238 validate = valid(username, password);

239 if (validate == true) {

GenericUserGroupMgr.java (https://github.com/thanhvc/ofbiz.git) Java · 449 lines

99 }

100 if (UtilValidate.isNotEmpty(members)) {

101 Iterator i = members.iterator();

111 List userNames = new ArrayList();

112 if (UtilValidate.isNotEmpty(groupNames)) {

113 Iterator i = groupNames.iterator();

147 List subGroups = new ArrayList();

148 if (UtilValidate.isNotEmpty(groupNames)) {

149 Iterator i = groupNames.iterator();

306 user.set(org.ofbiz.shark.SharkConstants.passwd, password);

307 user.set(org.ofbiz.shark.SharkConstants.emailAddress, email);

308 try {

323 user.set(org.ofbiz.shark.SharkConstants.lastName, firstName);

324 user.set(org.ofbiz.shark.SharkConstants.emailAddress, email);

325 try {

Signin.java (https://gitlab.com/eliAgirre/java-web-course) Java · 145 lines

22 private String nombre;

23 private String email;

24

61 usuario.setNombre(getNombre());

62 usuario.setEmail(getEmail());

63

83 // simple validation

84 public void validate(){

85

98 if(getEmail().length()==0){

99 addFieldError("erroremail", getText("signin.email.requerido"));

100 }

140

141 public void setEmail(String email) {

142 this.email = email;

ValidateXMLAction.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 63 lines

49

50 /** ValidateXMLAction class

51 * @author <a href="mailto:mschovanek@netbeans.org">Martin Schovanek</a> */

52 public class ValidateXMLAction extends ActionNoBlock {

53

54 private static final String popup =

55 Bundle.getStringTrimmed("org.netbeans.modules.xml.tools.actions.Bundle", "NAME_Validate_XML");

56 private static final Shortcut shortcut =

58

59 /** creates new ValidateXMLAction instance */

60 public ValidateXMLAction() {

61 super(null, popup, "org.netbeans.modules.xml.tools.actions.ValidateAction", shortcut);

62 }

RegisterTest.java (https://github.com/StexX/KiWi-OSE.git) Java · 107 lines

23 {

24 validateValue("#{kiwi.user.edit.login}", "1ovthafew");

25 validateValue("#{kiwi.user.edit.firstName}", "Gavin King");

26 validateValue("#{kiwi.user.edit.lastName}", "sadasda");

27 validateValue("#{kiwi.user.edit.password}","secret");

28 validateValue("#{kiwi.user.edit.email}","abc@gmx.at");

29

39 setValue("#{kiwi.user.edit.password}","secret");

40 setValue("#{kiwi.user.edit.email}","abc@gmx.at");

41 }

70 // {

71 // validateValue("#{user.username}", "1ovthafew");

72 // validateValue("#{user.name}", "Gavin A King");

VisualPanel.java (https://github.com/piluke/GameMaker-HTML5-Player.git) Java · 271 lines

260 oldZoom = zoom;

261 revalidate();

262 }

DocumentRootImpl.java (https://github.com/rcernich/tools.git) Java · 1290 lines

76 * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getValidate <em>Validate</em>}</li>

77 * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#getValidates <em>Validates</em>}</li>

78 * <li>{@link org.switchyard.tools.models.switchyard1_0.switchyard.impl.DocumentRootImpl#isClustered <em>Clustered</em>}</li>

636 */

637 public ValidateType getValidate() {

638 return (ValidateType)getMixed().get(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATE, true);

645 */

646 public NotificationChain basicSetValidate(ValidateType newValidate, NotificationChain msgs) {

647 return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATE, newValidate, msgs);

663 */

664 public NotificationChain basicSetValidates(ValidatesType newValidates, NotificationChain msgs) {

665 return ((FeatureMap.Internal)getMixed()).basicAdd(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, newValidates, msgs);

672 */

673 public void setValidates(ValidatesType newValidates) {

674 ((FeatureMap.Internal)getMixed()).set(SwitchyardPackage.Literals.DOCUMENT_ROOT__VALIDATES, newValidates);

q3valuelist.qdoc (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 556 lines

94 pointing to the removed member become invalid. Inserting into the

95 list does not invalidate any iterator. For convenience, the

96 function last() returns a reference to the last item in the list,

178 Destroys the list. References to the values in the list and all

179 iterators of this list become invalidated. Note that it is

180 impossible for an iterator to check whether or not it is valid:

209

210 All iterators of the current list become invalidated by this

211 operation. The cost of such an assignment is O(1) since Q3ValueList

219

220 All iterators of the current list become invalidated by this

221 operation.

230

231 All iterators of the current list become invalidated by this

232 operation.

inode.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 5312 lines ✨ Summary

This C code is part of a file system implementation, specifically handling journaling and data corruption protection for a Linux file system. It provides functions to manage inodes, handle page faults, and ensure data integrity by writing changes to a journal before modifying the underlying storage. The code ensures that file system updates are atomic and consistent, preventing data corruption and ensuring system reliability.

58

59 static void ext4_invalidatepage(struct page *page, unsigned long offset);

60

456 }

457 /* validate block references */

458 if (ext4_check_indirect_blockref(inode, bh)) {

SessionsPlugin.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 308 lines ✨ Summary

This Java code is part of a plugin for an integrated development environment (IDE). It manages session switching between different views within the IDE, allowing users to save and load their current work sessions. The code creates a toolbar or buffer list component that displays a list of available sessions, enabling users to switch between them.

231 view.getToolBar().add(switcher);

232 view.getRootPane().revalidate();

233 }

250 bufferlist.add(BorderLayout.NORTH, switcher);

251 bufferlist.revalidate();

252 }

278 view.getToolBar().remove(switcher);

279 view.getRootPane().revalidate();

280 }

Label.as (git://github.com/OpenRTMFP/ArcusNode.git) ActionScript · 154 lines ✨ Summary

This is an ActionScript class that defines a Label component for displaying text. It extends a Component class and provides properties for setting and getting the text, as well as whether to autosize the label. The class also includes methods for drawing the visual UI of the component and handling events such as resizing.

126 if(_text == null) _text = "";

127 invalidate();

128 }