100+ results for 'email address regex'

Not the results you expected?

container2.html (https://gitlab.com/x33n/formvalidation) HTML · 168 lines

40

41 <div class="form-group">

42 <label class="col-lg-3 control-label">Email address</label>

43 <div class="col-lg-5">

44 <input type="text" class="form-control" name="email" />

130 message: 'The username must be more than 6 and less than 30 characters long'

131 },

132 regexp: {

133 regexp: /^[a-zA-Z0-9_\.]+$/,

138 email: {

139 validators: {

140 emailAddress: {

141 message: 'The input is not a valid email address'

miq_provision_redhat_dialogs_clone_to_template.yaml (https://gitlab.com/unofficial-mirrors/manageiq) YAML · 332 lines

41 :display: :edit

42 :data_type: :string

43 :owner_address:

44 :description: Address

74 :pressed:

75 :method: :retrieve_ldap

76 :description: Look Up LDAP Email

77 :required: false

78 :display: :show

98 :display: :hide

99 :data_type: :string

100 :owner_email:

101 :description: E-Mail

102 :required_method: :validate_regex

103 :required_regex: !ruby/regexp /\A[\w!#$\%&'*+\/=?`\{|\}~^-]+(?:\.[\w!#$\%&'*+\/=?`\{|\}~^-]+)*@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}\Z/i

104 :required: true

105 :display: :edit

data.py (https://gitlab.com/e0/django) Python · 312 lines

40

41

42 class EmailData(models.Model):

43 data = models.EmailField(null=True)

67

68

69 class GenericIPAddressData(models.Model):

70 data = models.GenericIPAddressField(null=True)

202

203

204 class EmailPKData(models.Model):

205 data = models.EmailField(primary_key=True)

224

225

226 class GenericIPAddressPKData(models.Model):

227 data = models.GenericIPAddressField(primary_key=True)

Language_nb.properties (https://github.com/BrettSwaim/liferay-portal.git) Properties File · 37 lines

1 authentication-search-filter-help=Angi søkefilteret som brukes til å teste gyldigheten av en bruker. Tokenene @company_id @, @email_address @, @screen_name @, og @user_id @ erstattes under kjøring med riktige verdier. (Automatic Translation)

2 autogenerate-user-password=Autogenerer brukerpassord (Automatic Translation)

3 base-dn-help=Base DN angir første søk konteksten for brukere, og er valgfritt. (Automatic Translation)

27 page-size-help=Angi sidestørrelsen for katalogserverne som støtte paginerer. Denne verdien må være 1000 eller mindre for Microsoft Active Directory-serveren. (Automatic Translation)

28 password-encryption-algorithm-help=Angi passord krypteringen å bruke for å sammenligne passord under import og bruke for å kryptere passord under eksport. Sammenligne passord under import vil bare brukes når egenskapen "LDAPAuthConfiguration.method" er satt til passord-Sammenlign. Hvis kryptering er satt til ingen, som er standardverdien, blir passord betraktet som ren tekst. Algoritmen SHA-512 støttes ikke for øyeblikket. (Automatic Translation)

29 password-policy-enabled-help=Sett denne til True bruk LDAP Passordpolicy i stedet for portalen Passordpolicy. Hvis satt til sann, er det mulig at portalen genererte passord ikke vil samsvarer med policyen LDAP. Se "passwords.regexptoolkit.*" egenskapene for detaljer om hvordan du konfigurerer RegExpToolkit i generere disse passordene. (Automatic Translation)

30 range-size-help=Angi antall verdier som skal returneres i hver spørring en med attributtet for katalogserverne som støtter området henting. Området størrelsen må 1000 eller mindre for Windows 2000 og 1500 eller i Windows Server 2003. (Automatic Translation)

31 system.ldap.configuration.name=LDAP-konfigurasjon (Automatic Translation)

form-validation.js (https://gitlab.com/lflucasferreira/theme) JavaScript · 290 lines

35 validators: {

36 notEmpty: {

37 message: 'The email address is required and can\'t be empty'

38 },

39 emailAddress: {

40 message: 'The input is not a valid email address'

41 }

42 }

120 validators: {

121 notEmpty: {

122 message: 'The email address is required and can\'t be empty'

123 },

124 emailAddress: {

171 emailAddress: {

172 message: 'The input is not a valid email address'

173 }

174 }

predicates.md (https://bitbucket.org/codefirex/toolchain_gcc-4.8.git) Markdown · 307 lines

28 )

29

30 ;; For sibcall operations we can only use a symbolic address.

31

32 (define_predicate "rx_symbolic_call_operand"

50 (define_predicate "rx_restricted_mem_operand"

51 (and (match_code "mem")

52 (match_test "rx_is_restricted_memory_address (XEXP (op, 0), mode)"))

53 )

54

55 ;; Check that the operand is suitable as the source operand

56 ;; for a logic or arithmeitc instruction. Registers, integers

57 ;; and a restricted subset of memory addresses are allowed.

58

59 (define_predicate "rx_source_operand"

contacts.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 159 lines

128 $query->innerJoin('#__categories AS c ON c.id = a.catid');

129 $query->where('(a.name LIKE '. $text .'OR a.misc LIKE '. $text .'OR a.con_position LIKE '. $text

130 .'OR a.address LIKE '. $text .'OR a.suburb LIKE '. $text .'OR a.state LIKE '. $text

131 .'OR a.country LIKE '. $text .'OR a.postcode LIKE '. $text .'OR a.telephone LIKE '. $text

132 .'OR a.fax LIKE '. $text .') AND a.published IN ('.implode(',', $state).') AND c.published=1 '

models.py (https://github.com/boardman/django.git) Python · 260 lines

29 data = models.DecimalField(null=True, decimal_places=3, max_digits=5)

30

31 class EmailData(models.Model):

32 data = models.EmailField(null=True)

50 # data = models.ImageField(null=True)

51

52 class IPAddressData(models.Model):

53 data = models.IPAddressField(null=True)

170 data = models.DecimalField(primary_key=True, decimal_places=3, max_digits=5)

171

172 class EmailPKData(models.Model):

173 data = models.EmailField(primary_key=True)

188 # data = models.ImageField(primary_key=True)

189

190 class IPAddressPKData(models.Model):

191 data = models.IPAddressField(primary_key=True)

PayerInfoType.java (https://gitlab.com/CORP-RESELLER/buttonmanager-sdk-java) Java · 395 lines

36

37 /**

38 * Email address of payer Character length and limitations: 127

39 * single-byte characters

40 */

48

49 /**

50 * Status of payer's email address

51 */

52 private PayPalUserStatusCodeType payerStatus;

199 * Setter for address

200 */

201 public void setAddress(AddressType address) {

202 this.address = address;

369 childNode = (Node) xpath.evaluate("Address", node, XPathConstants.NODE);

370 if (childNode != null && !isWhitespaceNode(childNode)) {

371 this.address = new AddressType(childNode);

372 }

373 childNode = (Node) xpath.evaluate("ContactPhone", node, XPathConstants.NODE);

predicates.md (https://github.com/ser8210/gcc-4.5.2-PS3.git) Markdown · 295 lines

28 )

29

30 ;; For sibcall operations we can only use a symbolic address.

31

32 (define_predicate "rx_symbolic_call_operand"

55 ;; Check that the operand is suitable as the source operand

56 ;; for a logic or arithmeitc instruction. Registers, integers

57 ;; and a restricted subset of memory addresses are allowed.

58

59 (define_predicate "rx_source_operand"

70 return false;

71

72 return rx_is_restricted_memory_address (XEXP (op, 0), mode);

73 }

74 )

test_x509name.rb (https://github.com/cparedes/omnibus.git) Ruby · 266 lines

9 class OpenSSL::TestX509Name < Test::Unit::TestCase

10 OpenSSL::ASN1::ObjectId.register(

11 "1.2.840.113549.1.9.1", "emailAddress", "emailAddress")

12 OpenSSL::ASN1::ObjectId.register(

13 "2.5.4.5", "serialNumber", "serialNumber")

82 name = OpenSSL::X509::Name.new(dn)

83 ary = name.to_a

84 assert_equal("/DC=org/DC=ruby-lang/CN=GOTOU Yuuzou/emailAddress=gotoyuzo@ruby-lang.org/serialNumber=123", name.to_s)

85 assert_equal("DC", ary[0][0])

86 assert_equal("DC", ary[1][0])

171 ["CN", "GOTOU \"gotoyuzo\" Yuuzou"],

172 ["1.2.840.113549.1.9.1", "gotoyuzo@ruby-lang.org"],

173 ["emailAddress", "gotoyuzo@ruby-lang.org"],

174 ],

175 scanner.call(

validate.js (https://github.com/MyITCRM/myitcrm1.git) JavaScript · 248 lines

5

6 if(document.install.copy[0].checked){

7 document.install.COMPANY_ADDRESS.value=document.install.address.value;

8 document.install.COMPANY_CITY.value=document.install.city.value;

9 document.install.COMPANY_STATE.value=document.install.state.value;

162 errFlag['default_email'] = true;

163 _qfMsg = _qfMsg + '\n - Please enter the Admins email address';

164 frm.elements['default_email'].className = 'error';

165 }

166

167 value = frm.elements['default_email'].value;

168 var regex = /^((\"[^\"\f\n\r\t\v\b]+\")|([\w\!\#\$\%\&'\*\+\-\~\/\^\`\|\{\}]+(\.[\w\!\#\$\%\&'\*\+\-\~\/\^\`\|\{\}]+)*))@((\[(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))\])|(((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9]))\.((25[0-5])|(2[0-4][0-9])|([0-1]?[0-9]?[0-9])))|((([A-Za-z0-9\-])+\.)+[A-Za-z\-]+))$/;

169 if (value != '' && !regex.test(value) && !errFlag['email']) {

170 errFlag['email'] = true;

171 _qfMsg = _qfMsg + '\n - Please enter a valid email address';

172 frm.elements['email'].className = 'error';

AttributeForm.jsx (https://gitlab.com/blockbuster/react-router-2-with-hash-working-public) JSX · 159 lines

55 data-bv-message="The username is not valid" data-bv-notempty="true"

56 data-bv-notempty-message="The username is required and cannot be empty"

57 data-bv-regexp="true" data-bv-regexp-regexp="^[a-zA-Z0-9_\.]+$"

58 data-bv-regexp-message="The username can only consist of alphabetical, number, dot and underscore"

70 <label className="col-lg-3 control-label">Email address</label>

71 <div className="col-lg-5">

72 <input className="form-control" name="email" type="email" data-bv-emailaddress="true"

73 data-bv-emailaddress-message="The input is not a valid email address"/>

helpers.rb (https://github.com/ganders/teambox.git) Ruby · 160 lines

41 address = convert_address(address)

42 email = address ? email_spec_hash[:current_emails][address] : email_spec_hash[:current_email]

43 raise RSpec::Expectations::ExpectationNotMetError, "Expected an open email but none was found. Did you forget to call open_email?" unless email

55 def read_emails_for(address)

56 email_spec_hash[:read_emails][convert_address(address)] ||= []

57 end

58

76 def email_spec_hash

77 @email_spec_hash ||= {:read_emails => {}, :unread_emails => {}, :current_emails => {}, :current_email => nil}

78 end

79

109 def parse_email_for_explicit_link(email, regex)

110 regex = /#{Regexp.escape(regex)}/ unless regex.is_a?(Regexp)

111 url = links_in_email(email).detect { |link| link =~ regex }

142 def convert_address(address)

143 @last_email_address = (address || current_email_address)

144 AddressConverter.instance.convert(@last_email_address)

This.java (http://beanshell2.googlecode.com/svn/trunk/) Java · 454 lines ✨ Summary

This Java code defines a class This that represents a scripted object in the BeanShell scripting language. It provides methods for invoking scripted methods, handling Object protocol methods, and binding to parent namespaces. The class is designed to be used as a wrapper around the actual scripted object, allowing for more control over method invocation and namespace management.

319 /*

320 Wrap nulls.

321 This is a bit of a cludge to address a deficiency in the class

322 generator whereby it does not wrap nulls on method delegate. See

323 Class Generator.java. If we fix that then we can remove this.

ClientManager.java (https://github.com/bjurkovski/car-j2ee.git) Java · 304 lines

30 @Override

31 public ClientDTO createClient(ClientDTO client) throws BanqueException {

32 return createClient(client.getName(), client.getLastName(), client.getPassword(), client.getGender(), client.getDateOfBirth(), client.getAddress(), client.getEmail(), client.isAdmin());

33 }

34

35 @Override

36 public ClientDTO createClient(String name, String lastName, String password, ClientDTO.Gender gender, Date dateOfBirth, String address, String email) throws BanqueException {

37 return createClient(name, lastName, password, gender, dateOfBirth, address, email, false);

188 Query query;

189 if(exactMatch)

190 query = em.createNamedQuery(Client.FIND_BY_EMAIL_EQUAL).setParameter("email", searchString);

191 else

192 query = em.createNamedQuery(Client.FIND_BY_EMAIL).setParameter("email", "%" + searchString + "%");

268 throw new BanqueException(BanqueException.ErrorType.CLIENT_NULL_DATE_OF_BIRTH);

269 }

270 if (client.getEmail() == null || client.getEmail().isEmpty()) {

271 throw new BanqueException(BanqueException.ErrorType.CLIENT_NULL_EMAIL);

FMModelVerify_email.php (https://gitlab.com/hunt9310/ras) PHP · 119 lines

1 <?php

2

3 class FMModelVerify_email {

4 ////////////////////////////////////////////////////////////////////////////////////////

5 // Events //

25

26 if($verified_row)

27 $view = __('Your email address is already verified.', 'form_maker');

28 else

29 {

30 $query = $wpdb->prepare("SELECT * FROM ".$wpdb->prefix."formmaker_submits WHERE group_id='%d' AND element_label REGEXP 'verifyInfo' AND element_value NOT REGEXP 'verified'", $gid);

31 $rows = $wpdb->get_results($query);

32

mail.py (https://github.com/chandankumar2199/askbot-devel.git) Python · 137 lines

21 return subject

22

23 def extract_first_email_address(text):

24 """extract first matching email address

26 returns ``None`` if there are no matches

27 """

28 match = const.EMAIL_REGEX.search(text)

29 if match:

30 return match.group(0)

88 the activity record)

89

90 if raise_on_failure is True, exceptions.EmailNotSent is raised

91 """

92 prefix = askbot_settings.EMAIL_SUBJECT_PREFIX.strip() + ' '

128 if hasattr(django_settings, 'DEFAULT_FROM_EMAIL'):

129 from_email = django_settings.DEFAULT_FROM_EMAIL

130

131 try:

ecomplete.el (https://github.com/T-force/emacs.git) Emacs Lisp · 153 lines

1 ;;; ecomplete.el --- electric completion of addresses and the like

2

3 ;; Copyright (C) 2006-2011 Free Software Foundation, Inc.

29

30 (defgroup ecomplete nil

31 "Electric completion of email addresses and the like."

32 :group 'mail)

33

88 (defun ecomplete-get-matches (type match)

89 (let* ((elems (cdr (assq type ecomplete-database)))

90 (match (regexp-quote match))

91 (candidates

92 (sort

GKEHub.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 468 lines

35 class GKEHub extends \Google\Service

36 {

37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */

38 const CLOUD_PLATFORM =

39 "https://www.googleapis.com/auth/cloud-platform";

base.rb (https://github.com/rnaveiras/rails.git) Ruby · 127 lines

20 # # Any callable (proc, lambda, etc) object is passed the inbound_email record and is a match if true.

21 # routing ->(inbound_email) { inbound_email.mail.to.size > 2 } => :multiple_recipients

22 #

23 # # Any object responding to #match? is called with the inbound_email record as an argument. Match if true.

44 # private

45 # def ensure_sender_is_a_user

46 # unless User.exist?(email_address: mail.from)

47 # bounce_with UserRequiredMailer.missing(inbound_email)

110 {

111 mailbox: self,

112 inbound_email: inbound_email.instrumentation_payload

113 }

114 end

117 inbound_email.processing!

118 yield

119 inbound_email.delivered! unless inbound_email.bounced?

120 rescue

121 inbound_email.failed!

text.php (https://gitlab.com/rodrigo.butta/bgh) PHP · 264 lines

53 'Select Language' => 'Lenguaje',

54 'Products' => 'Productos',

55 'A confirmation email is sent to your mail' => 'A confirmation email is sent to your mail',

56 'About Me' => 'About Me',

57 'About Us' => 'Acerca de',

170 'Notifications' => 'Notifications',

171 'Now' => 'Now',

172 'No user exists with this email address' => 'No user exists with this email address',

173 'Old password is not valid' => 'Old password is not valid',

174 'Password Reset' => 'Password Reset',

227 'Upload' => 'Subir',

228 'Uploaded' => 'Uploaded',

229 'Username or Email address' => 'Username or Email address',

230 'Username' => 'Username',

231 'Users' => 'Usuarios',

validations.js (https://bitbucket.org/srogerf/javascript.git) JavaScript · 148 lines

42 * The default error message used when an email validation fails

43 */

44 emailMessage: 'is not a valid email address',

45

46 /**

47 * @property {RegExp} emailRe

48 * The regular expression used to validate email addresses

98 * Validates that an email string is in the correct format

99 * @param {Object} config Config object

100 * @param {String} email The email address

101 * @return {Boolean} True if the value passes validation

102 */

103 email: function(config, email) {

104 return Ext.data.validations.emailRe.test(email);

thrift_proxy.pb.validate.go (https://github.com/datawire/ambassador.git) Go · 317 lines

11 "net/mail"

12 "net/url"

13 "regexp"

14 "strings"

15 "time"

25 _ = fmt.Print

26 _ = utf8.UTFMax

27 _ = (*regexp.Regexp)(nil)

28 _ = (*strings.Reader)(nil)

29 _ = net.IPv4len

30 _ = time.Duration(0)

31 _ = (*url.URL)(nil)

32 _ = (*mail.Address)(nil)

33 _ = ptypes.DynamicAny{}

34 )

saa7134-go7007.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 533 lines ✨ Summary

This C code implements a Linux driver for a SAA713X-based video capture card, specifically designed for the Voyager board. It provides interfaces for V4L2 and ALSA to interact with the device, handling tasks such as booting the encoder, registering the interface, and managing the video stream. The code also includes functions for initializing and cleaning up the driver.

36 #define GO7007_HPI_DEBUG

37

38 enum hpi_address {

39 HPI_ADDR_VIDEO_BUFFER = 0xe4,

40 HPI_ADDR_INIT_BUFFER = 0xea,

92 saa_writeb(SAA7134_GPIO_GPMODE0, 0xff);

93

94 /* Write HPI address */

95 saa_writeb(SAA7134_GPIO_GPSTATUS0, addr);

96 saa_writeb(SAA7134_GPIO_GPSTATUS2, GPIO_COMMAND_ADDR);

114 saa_writeb(SAA7134_GPIO_GPMODE0, 0xff);

115

116 /* Write HPI address */

117 saa_writeb(SAA7134_GPIO_GPSTATUS0, addr);

118 saa_writeb(SAA7134_GPIO_GPSTATUS2, GPIO_COMMAND_ADDR);

SimpleIndexMerging.cs (https://github.com/fitzchak/ravendb.git) C# · 274 lines

38

39 var suggestedIndexMap = RemoveSpaces(mergeSuggestion.MergedIndex.Map);

40 var expectedIndexMap = "from doc in docs.Orders select new { Customer = doc.Customer, Email = doc.Email }";

41 expectedIndexMap = RemoveSpaces(expectedIndexMap);

42 Assert.Equal(expectedIndexMap, suggestedIndexMap);

102

103 var suggestedIndexMap = RemoveSpaces(mergeSuggestion.MergedIndex.Map);

104 var expectedIndexMap = "from doc in docs.Orders select new { Customer = doc.Customer, Email = doc.Email }";

105 expectedIndexMap = RemoveSpaces(expectedIndexMap);

106 Assert.Equal(expectedIndexMap,

155

156 var suggestedIndexMap = RemoveSpaces(mergeSuggestion.MergedIndex.Map);

157 var expectedIndexMap = "from doc in docs.Orders select new { Address = doc.Address, Customer = doc.Customer, Email = doc.Email, Tel = doc.Tel }";

158 expectedIndexMap = RemoveSpaces(expectedIndexMap);

159 Assert.Equal(expectedIndexMap, suggestedIndexMap);

formEditor.rst (https://github.com/TYPO3/TYPO3.CMS.git) ReStructuredText · 244 lines

92 label: formEditor.elements.TextMixin.editor.validators.StringLength.label

93 50:

94 value: EmailAddress

95 label: formEditor.elements.TextMixin.editor.validators.EmailAddress.label

163 templateName: Inspector-RemoveElementEditor

164 40:

165 identifier: EmailAddress

166 editors:

167 100:

168 identifier: header

169 templateName: Inspector-CollectionElementHeaderEditor

170 label: formEditor.elements.TextMixin.validators.EmailAddress.editor.header.label

171 9999:

172 identifier: removeButton

228 label: formEditor.elements.TextMixin.validators.RegularExpression.editor.header.label

229 200:

230 identifier: regex

231 templateName: Inspector-TextEditor

232 label: formEditor.elements.TextMixin.validators.RegularExpression.editor.regex.label

VTypes.js (https://github.com/marekjs/Shacser.git) JavaScript · 132 lines

27 return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);

28 },

29 IPAddressText: 'Must be a numeric IP address',

30 IPAddressMask: /[\d\.]/i

49 * validation per the email RFC specifications is very complex and beyond the scope of this class, although

50 * this function can be overridden if a more comprehensive validation scheme is desired. See the validation

51 * section of the <a href="http://en.wikipedia.org/wiki/E-mail_address">Wikipedia article on email addresses</a>

52 * for additional information. This implementation is intended to validate the following emails:<tt>

53 * 'barney@example.de', 'barney.rubble@example.com', 'barney-rubble@example.coop', 'barney+rubble@example.com'

54 * </tt>.

55 * @param {String} value The email address

56 * @return {Boolean} true if the RegExp test passed, and false if not.

66 'emailText' : 'This field should be an e-mail address in the format "user@example.com"',

67 /**

68 * The keystroke filter mask to be applied on email input. See the {@link #email} method for

69 * information about more complex email validation. Defaults to:

supplier_details.tpl (https://github.com/MyITCRM/myitcrm1.git) Smarty Template · 179 lines

13 <a href="?page=supplier:edit&supplierID={$supplier_details[i].SUPPLIER_ID}&page_title={$translate_supplier_edit_title}" ><img src="images/icons/edit.gif" alt="" height="16" border="0">{$translate_supplier_details_edit}</a>

14 &nbsp;<a><img src="images/icons/16x16/help.gif" border="0" alt=""

15 onMouseOver="ddrivetip('<b>{$translate_supplier_details_help_title|nl2br|regex_replace:"/[\r\t\n]/":" "}</b><hr><p>{$translate_supplier_details_help_content|nl2br|regex_replace:"/[\r\t\n]/":" "}</p>')"

16 onMouseOut="hideddrivetip()"></a>

17 </td>

97 </tr>

98

99 <!-- website/email row -->

100 <tr>

101 <td class="menutd"><b>{$translate_supplier_www}</b></td>

103 <td class="menutd"><b>{$translate_supplier_email}</b></td>

104 <td class="menutd"><a href="mailto: {$supplier_details[i].SUPPLIER_EMAIL}">{$supplier_details[i].SUPPLIER_EMAIL}</a></td>

105 </tr>

106 <tr class="row2">

108 </tr>

109

110 <!-- address row -->

111 <tr>

112 <td class="menutd"><b>{$translate_supplier_address}</b></td>

contactFactory.pm (https://github.com/goldoraf/OBM.git) Perl · 293 lines

172

173 $links->{'phone'} = $self->_loadContactPhones();

174 $links->{'address'} = $self->_loadContactAddresses();

175 $links->{'email'} = $self->_loadContactEmail();

218 FROM Address

219 INNER JOIN ContactEntity ON ContactEntity.contactentity_contact_id='.$entityId.'

220 WHERE Address.address_entity_id=ContactEntity.contactentity_entity_id';

221

222 require OBM::Tools::obmDbHandler;

228 }

229

230 my $addressesList;

231 if( !defined($dbHandler->execQuery( $query, \$addressesList ) ) ) {

246 FROM Email

247 INNER JOIN ContactEntity ON ContactEntity.contactentity_contact_id='.$entityId.'

248 WHERE Email.email_entity_id=ContactEntity.contactentity_entity_id';

249

250 require OBM::Tools::obmDbHandler;

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

This C++ header file defines a set of structures and constants for a computer network interface card (NIC) controller. It provides definitions for various commands, such as transmit, receive, and diagnostic operations, as well as configuration settings like multicast setup and dump commands. The code also includes error handling and status codes for each command.

13

14

15 #define NI52_RESET 0 /* writing to this address, resets the i82586 */

16 #define NI52_ATTENTION 1 /* channel attention, kick the 586 */

17 #define NI52_TENA 3 /* 2-5 possibly wrong, Xmit enable */

28 * where to find the System Configuration Pointer (SCP)

29 */

30 #define SCP_DEFAULT_ADDRESS 0xfffff4

31

32

54 u8 zero_dummy; /* has to be zero */

55 u16 scb_offset; /* pointeroffset to the scb_base */

56 u32 scb_base; /* base-address of all 16-bit offsets */

57 };

58

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

This C code is part of a Linux driver for a Fibre Channel storage device. It handles firmware management, including decoding firmware revisions and sending commands to the device. The code also includes timer functions for scheduling firmware updates and handling timeouts. It appears to be a low-level implementation of a storage device’s firmware interface.

431 /*

432 * Check for rscn processing or not

433 * To conserve rpi's, filter out addresses for other

434 * vports on the same physical HBAs.

435 */

login.js (https://gitlab.com/kaouech/theme) JavaScript · 197 lines

62 var getParameterByName = function(name) {

63 name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");

64 var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search);

65 return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));

66 };

125 form2.validate({

126 rules : {

127 email : {

128 required : true

129 }

147 required : true

148 },

149 address : {

150 minlength : 2,

151 required : true

convert-notifications.php (https://gitlab.com/lamovible/grand-regis) PHP · 341 lines

89 // Create a notification for our admin email

90 if ( ( isset ( $form_settings['admin_email_msg'] ) && ! empty ( $form_settings['admin_email_msg'] ) ) || ( isset ( $form_settings['admin_email_fields'] ) && 1 == $form_settings['admin_email_fields'] ) ) {

91

92 // Create a notification

147

148 // Check to see if the "include list of fields" checkbox was checked.

149 if ( isset ( $form_settings['admin_email_fields'] ) && $form_settings['admin_email_fields'] == 1 ) {

150 $email_message .= '<br />[ninja_forms_all_fields]';

215 Ninja_Forms()->notification( $n_id )->update_setting( 'from_address', $form_settings['email_from'] );

216

217 $email_message = $form_settings['user_email_msg'];

218

219 // Check to see if the "include list of fields" checkbox was checked. If so, add our table to the end of the email message.

224 // Update our email message

225 Ninja_Forms()->notification( $n_id )->update_setting( 'email_message', $email_message );

226

227 Ninja_Forms()->notification( $n_id )->update_setting( 'user_email', true );

validation.php (https://gitlab.com/rohiri/SIINDI) PHP · 283 lines

35 'digits' => 'The :attribute must be :digits digits.',

36 'digits_between' => 'The :attribute must be between :min and :max digits.',

37 'email' => 'The :attribute must be a valid email address.',

38 'filled' => 'The :attribute field is required.',

39 'exists' => 'The selected :attribute is invalid.',

113 'required' => 'El Campo Estudiantes Inscritos Es Obligatorio',],

114 'tasa_culminacion' => [

115 'regex' => 'El Formato de Tasa de Culminación No Es Correcto (Solo valores entre 0-99)',

116 'required' => 'El Campo Estudiantes Inscritos Es Obligatorio',],

117 'codigo_curso' => [

118 'regex' => 'El Formato del Código Del Curso No Es Correcto (Deber Ser de 6 Caracteres)',

119 'unique' => 'El Código del Curso Ya Ha Sido Registrado',

120 'required' => 'El Campo Código del Curso Es Obligatorio',],

238 'required'=>'El Email Es Obligatorio',

239 'email'=>'El Formato Del Campo Email No Es Correcto',],

240

241 'telefono'=>[

validation.php (https://gitlab.com/nasirkhan/laravel-5-boilerplate) PHP · 135 lines

35 'digits' => 'The :attribute must be :digits digits.',

36 'digits_between' => 'The :attribute must be between :min and :max digits.',

37 'email' => 'The :attribute must be a valid email address.',

38 'exists' => 'The selected :attribute is invalid.',

39 'filled' => 'The :attribute field is required.',

41 'in' => 'The selected :attribute is invalid.',

42 'integer' => 'The :attribute must be an integer.',

43 'ip' => 'The :attribute must be a valid IP address.',

44 'json' => 'The :attribute must be a valid JSON string.',

45 'max' => [

58 'not_in' => 'The selected :attribute is invalid.',

59 'numeric' => 'The :attribute must be a number.',

60 'regex' => 'The :attribute format is invalid.',

61 'required' => 'The :attribute field is required.',

62 'required_if' => 'The :attribute field is required when :other is :value.',

test_membership.py (https://gitlab.com/noc0lour/mailman) Python · 237 lines

47 DeliveryMode.regular,

48 system_preferences.preferred_language))

49 self.assertEqual(member.address.email, 'aperson@example.com')

50 self.assertEqual(member.list_id, 'test.example.com')

51 self.assertEqual(member.role, MemberRole.member)

52

53 def test_add_member_existing_user(self):

54 # Test subscribing a user to a mailing list when the email address has

55 # already been associated with a user.

56 user_manager = getUtility(IUserManager)

180 MemberRole.owner)

181 self.assertEqual(member_1.list_id, member_2.list_id)

182 self.assertEqual(member_1.address, member_2.address)

183 self.assertEqual(member_1.user, member_2.user)

184 self.assertNotEqual(member_1.member_id, member_2.member_id)

validation.php (https://gitlab.com/MineYourMind/BoNeMEAL) PHP · 118 lines

35 "digits" => "The :attribute must be :digits digits.",

36 "digits_between" => "The :attribute must be between :min and :max digits.",

37 "email" => "The :attribute must be a valid email address.",

38 "filled" => "The :attribute field is required.",

39 "exists" => "The selected :attribute is invalid.",

41 "in" => "The selected :attribute is invalid.",

42 "integer" => "The :attribute must be an integer.",

43 "ip" => "The :attribute must be a valid IP address.",

44 "max" => [

45 "numeric" => "The :attribute may not be greater than :max.",

107 'attributes' => [

108 "name" => "Name",

109 "email" => "E-Mail Address",

110 "password" => "Password",

111 "db_host" => "Database Host",

Reseller.php (https://gitlab.com/Anas7232/Layout-Changes) PHP · 315 lines

120 'httpMethod' => 'POST',

121 'parameters' => array(

122 'serviceAccountEmailAddress' => array(

123 'location' => 'query',

124 'type' => 'string',

129 'httpMethod' => 'POST',

130 'parameters' => array(

131 'serviceAccountEmailAddress' => array(

132 'location' => 'query',

133 'type' => 'string',

validation.php (https://gitlab.com/gideonmarked/yovelife) PHP · 99 lines

34 "digits" => 'Le champ :attribute doit être de :digits chiffres.',

35 "digits_between" => 'Le champ :attribute doit être compris entre :min et :max chiffres.',

36 "email" => 'Le format du champ :attribute n’est pas valide.',

37 "exists" => 'Le champ :attribute sélectionné n’est pas valide.',

38 "image" => 'Le champ :attribute doit être une image.',

56 "not_in" => 'Le champ :attribute sélectionné n’est pas valide.',

57 "numeric" => 'Le champ :attribute doit être un nombre.',

58 "regex" => 'Le format du champ :attribute n’est pas valide.',

59 "required" => 'Le champ :attribute est obligatoire.',

60 "required_if" => 'Le champ :attribute est obligatoire quand :other est :value.',

90 |

91 | The following language lines are used to swap attribute place-holders

92 | with something more reader friendly such as E-Mail Address instead

93 | of "email". This simply helps us make messages a little cleaner.

validation.php (https://gitlab.com/jeruick/imosa) PHP · 111 lines

35 "digits" => ":attribute debe tener :digits dígitos.",

36 "digits_between" => ":attribute debe tener entre :min y :max dígitos.",

37 "email" => ":attribute no es un correo válido",

38 "exists" => ":attribute es inválido.",

39 "filled" => "El campo :attribute es obligatorio.",

58 "not_in" => ":attribute es inválido.",

59 "numeric" => ":attribute debe ser numérico.",

60 "regex" => "El formato de :attribute es inválido.",

61 "required" => "El campo :attribute es obligatorio.",

62 "required_if" => "El campo :attribute es obligatorio cuando :other es :value.",

100 |

101 | The following language lines are used to swap attribute place-holders

102 | with something more reader friendly such as E-Mail Address instead

103 | of "email". This simply helps us make messages a little cleaner.

validation.php (https://gitlab.com/gideonmarked/yovelife) PHP · 110 lines

35 "digits" => ":attributeは、:digits桁にしてください。",

36 "digits_between" => ":attributeは、:min桁から:max桁にしてください。",

37 "email" => ":attributeは、有効なメールアドレス形式で指定してください。",

38 "exists" => "選択された:attributeは、有効ではありません。",

39 "image" => ":attributeには、画像を指定してください。",

56 "not_in" => "選択された:attributeは、有効ではありません。",

57 "numeric" => ":attributeには、数字を指定してください。",

58 "regex" => ":attributeには、有効な正規表現を指定してください。",

59 "required" => ":attributeは、必ず指定してください。",

60 "required_if" => ":otherが:valueの場合、:attributeを指定してください",

86

87 'custom' => [

88 'phone.regex' => '電話番号の形式が正しくありません。',

89 ],

90

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

This C code initializes and configures the NuBus system, a bus architecture used in older Apple computers. It probes for NuBus devices, initializes interrupts, and sets up a process to read NuBus information from /proc/nubus. The code also scans for available NuBus slots and initializes data structures to hold this information.

53 The card ROM may appear on any or all bytes of each long word in

54 NuBus memory. The low 4 bits of the "map" value found in the

55 format block (at the top of the slot address space, as well as at

56 the top of the MacOS ROM) tells us which bytelanes, i.e. which byte

57 offsets within each longword, are valid. Thus:

392 {

393 switch (ent->type) {

394 case NUBUS_RESID_MAC_ADDRESS:

395 {

396 char addr[6];

398

399 nubus_get_rsrc_mem(addr, ent, 6);

400 printk(KERN_INFO " MAC address: ");

401 for (i = 0; i < 6; i++)

402 printk("%02x%s", addr[i] & 0xff,

Main.java (https://gitlab.com/Autronius/Spider_email) Java · 127 lines

33

34 String rootWebsiteHTML = getHTMLFromURL(args[1]);

35 Matcher email_matcher = emailAddress_Pattern.matcher(rootWebsiteHTML);

36 Matcher domain_matcher = domainName_Pattern.matcher(rootWebsiteHTML);

37 Matcher relativeURL_matcher = relativeURL_Pattern.matcher(rootWebsiteHTML);

44 List<String> emails = new ArrayList<String>();

45 findResource(email_matcher, emails, foundEmails);

46

47 //getDomains

60

61 String html = getHTMLFromURL(domains.get(i));

62 email_matcher = emailAddress_Pattern.matcher(html);

63

64 //getEmails

65 findResource(email_matcher, emails, foundEmails);

66

67 //getMoreDomains if not stopping after root

tc_token_stream.rb (https://github.com/ekcell/lovdbyless.git) Ruby · 606 lines

28

29 def test_letter_tokenizer()

30 input = 'DBalmain@gmail.com is My e-mail 523@#$ ADDRESS. 23#@$'

31 t = AsciiLetterTokenizer.new(input)

32 assert_equal(Token.new("DBalmain", 0, 8), t.next())

37 assert_equal(Token.new("e", 25, 26), t.next())

38 assert_equal(Token.new("mail", 27, 31), t.next())

39 assert_equal(Token.new("ADDRESS", 39, 46), t.next())

40 assert(! t.next())

41 t.text = "one_two three"

52 assert_equal(Token.new("e", 25, 26), t.next())

53 assert_equal(Token.new("mail", 27, 31), t.next())

54 assert_equal(Token.new("address", 39, 46), t.next())

55 assert(! t.next())

56 end

EntityInfoModel.java (https://gitlab.com/pallavi-zade/NobleMkt) Java · 428 lines

338 public void setTransferCallbackEmail(String transferCallbackEmail) {

339 this.transferCallbackEmail = transferCallbackEmail;

340 }

341

346 public void setRegisteredAddress1(String registeredAddress1) {

347 this.registeredAddress1 = registeredAddress1;

348 }

349

412 + ", hqCity=" + hqCity + ", hqZip=" + hqZip + ", mailingAddress=" + mailingAddress

413 + ", mailingStreetAddress2=" + mailingStreetAddress2 + ", mailingCountry=" + mailingCountryName

414 + ", mailingState=" + mailingState + ", mailingCity=" + mailingCity + ", mailingZip=" + mailingZip

415 + ", fax=" + fax + ", phone=" + phone + ", alternatePhone=" + alternatePhone + ", website=" + website

416 + ", email=" + email + ", jurisdiction=" + jurisdiction + ", reportsEmail=" + reportsEmail

417 + ", trademarkName=" + trademarkName + ", transferCallbackPhone=" + transferCallbackPhone

418 + ", transferCallbackEmail=" + transferCallbackEmail + ", registeredAddress1=" + registeredAddress1

419 + ", registeredAddress2=" + registeredAddress2 + ", registeredCity=" + registeredCity

test_views.py (https://github.com/ikicic/skoljka.git) Python · 142 lines

10

11 class UserViewsTestCase(TestCase):

12 assertRegex = TestCase.assertRegexpMatches

13

14 def test_registration_and_login(self):

41 response = c.post('/accounts/register/', {

42 'username': 'testaccount',

43 'email': 'this-is-not-an-email',

44 'password1': 'testpwd',

45 'password2': 'testpwd',

115 self.assertFalse(auth.get_user(c).is_authenticated())

116

117 # Test confirmation email and confirming the email address.

118 match = re.search(r'(/accounts/activate/.*)', mail.outbox[0].body)

119 self.assertIsNotNone(match)

sbc8641d.dts (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 460 lines

19 model = "SBC8641D";

20 compatible = "wind,sbc8641";

21 #address-cells = <1>;

22 #size-cells = <1>;

23

34

35 cpus {

36 #address-cells = <1>;

37 #size-cells = <0>;

38

67

68 localbus@f8005000 {

69 #address-cells = <2>;

70 #size-cells = <1>;

71 compatible = "fsl,mpc8641-localbus", "simple-bus";

logviewer_types.dtd (https://jedit.svn.sourceforge.net/svnroot/jedit) Document Type Definition · 118 lines

18 All "log" elements must be named.

19 -->

20 <!ELEMENT log (file_name_glob, first_line_glob, entry_regex, (column_regex|column_delimiter), columns)>

21

22 <!--

54 is true.

55

56 Entries must match the regex to be included in the output display. Entries

57 that don't match are not shown.

58

59 The regular expression and the attributes are the same as those described

60 in the java.util.regex.Pattern documentation.

61 -->

62 <!ELEMENT entry_regex (#CDATA)>

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

This C code implements a DVB-C demodulator driver for the VLSI VES1820 chip. It provides functions to initialize, sleep, and read status of the demodulator, as well as set and get parameters such as frequency and inversion settings. The driver is designed to work with the Linux kernel and uses I2C communication to interact with the chip. It also includes debugging features for printing AFC offsets after tuning.

60 {

61 u8 buf[] = { 0x00, reg, data };

62 struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 3 };

63 int ret;

64

77 u8 b1[] = { 0 };

78 struct i2c_msg msg[] = {

79 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 2},

80 {.addr = state->config->demod_address,.flags = I2C_M_RD,.buf = b1,.len = 1}

cashmusic_db_sqlite.sql (https://gitlab.com/x33n/platform) SQL · 469 lines

245 CREATE TABLE people (

246 id INTEGER PRIMARY KEY,

247 email_address text DEFAULT '',

248 password text DEFAULT '',

249 username text DEFAULT '',

266 modification_date integer DEFAULT NULL

267 );

268 CREATE INDEX email ON people (email_address);

269

270 CREATE TABLE people_analytics (

291 id INTEGER PRIMARY KEY,

292 user_id integer DEFAULT '0',

293 email_address text,

294 first_name text,

295 last_name text,

email_steps.rb (https://github.com/ganders/teambox.git) Ruby · 194 lines

29 # Replace with your a way to find your current email. e.g @current_user.email

30 # last_email_address will return the last email address used by email spec to find an email.

31 # Note that last_email_address will be reset after each Scenario.

59 Then /^(?:I|they|"([^"]*?)") should receive (an|no|\d+) emails? with subject "([^"]*?)"$/ do |address, amount, subject|

60 unread_emails_for(address).select { |m| m.subject =~ Regexp.new(subject) }.size.should == parse_email_count(amount)

61 end

62

158 Then /^show me a list of email attachments$/ do

159 EmailSpec::EmailViewer::save_and_open_email_attachments_list(current_email)

160 end

161

180 Then /^save and open current email$/ do

181 EmailSpec::EmailViewer::save_and_open_email(current_email)

182 end

183

Address.java (https://github.com/xl8or/-.git) Java · 426 lines

12 public class Address {

13

14 private static final Address[] EMPTY_ADDRESS_ARRAY = new Address[0];

15 private static final char LIST_DELIMITER_EMAIL = '\u0001';

94 }

95

96 Address var10 = new Address(var9, var8);

97 var2.add(var10);

98 }

300 }

301

302 Address[] var15 = EMPTY_ADDRESS_ARRAY;

303 var1 = (Address[])var2.toArray(var15);

330 String var2 = this.getAddress();

331 String var3 = ((Address)var1).getAddress();

332 var4 = var2.equals(var3);

333 } else {

ValidateThanhVien.php (https://gitlab.com/devtoannh/cafe) PHP · 333 lines

25

26 $validator->addValidator(new Zend_Validate_NotEmpty(),true)

27 ->addValidator(new Zend_Validate_EmailAddress(),true)

28 ->addValidator(new Zend_Validate_Db_NoRecordExists($options),true);

29

40 $validator->addValidator(new Zend_Validate_NotEmpty(),true)

41 ->addValidator(new Zend_Validate_StringLength(6,32),true)

42 ->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9@\#\$%\^&\*\-\+]+$#'),true);

43 if(!$validator->isValid($arrParam['password'])){

44 $message = $validator->getMessages();

170

171 $validator -> addValidator(new Zend_Validate_NotEmpty(),true)

172 -> addValidator(new Zend_Validate_EmailAddress(),true)

173 -> addValidator(new Zend_Validate_Db_RecordExists($options),true);

174

ValidationSpec.scala (https://gitlab.com/KiaraGrouwstra/playframework) Scala · 240 lines

55

56 "Constraints.pattern" should {

57 "throw an IllegalArgumentException if regex is null" in {

58 {

59 Form(

60 "value" -> Forms.text.verifying(Constraints.pattern(null, "nullRegex", "error"))

61 ).bind(Map("value" -> "hello"))

62 }.must(throwAn[IllegalArgumentException])

74 {

75 Form(

76 "value" -> Forms.text.verifying(pattern(".*".r, "nullRegex", null))

77 ).bind(Map("value" -> "hello"))

78 }.must(throwAn[IllegalArgumentException])

stackFormat (git://github.com/ticking/self.git) Unknown · 70 lines

30 callee hidden parameter ; space for callee's hidden parameter word

31 ; register window on stack

32 I7: return pc ; return address for this frame

33 I6: FP ; pointer to top of this frame

34 I5: arg5 ; first 5 arguments in registers

validation.php (https://gitlab.com/nasirkhan/laravel-5-boilerplate) PHP · 135 lines

35 'digits' => 'Le champ :attribute doit contenir :digits chiffres.',

36 'digits_between' => 'Le champ :attribute doit avoir entre :min et :max chiffres.',

37 'email' => 'Le champ :attribute doit être une adresse e-mail valide.',

38 'exists' => 'Le champ :attribute existe déjà.',

39 'filled' => 'Le champ :attribute est obligatoire.',

58 'not_in' => 'Le champ :attribute est invalide.',

59 'numeric' => 'Le champ :attribute doit être un nombre.',

60 'regex' => 'Le format du champ :attribute est invalide.',

61 'required' => 'Le champ :attribute est obligatoire.',

62 'required_if' => 'Le champ :attribute est obligatoire lorsque :other est :value.',

100 |

101 | The following language lines are used to swap attribute place-holders

102 | with something more reader friendly such as E-Mail Address instead

103 | of "email". This simply helps us make messages a little cleaner.

107 'attributes' => [

108 'name' => 'Nom',

109 'email' => 'E-mail',

110 'password' => 'Mot de passe',

111 'password_confirmation' => 'Confirmation du mot de passe',

machine.c (https://gitlab.com/ggkitsas/qemu_stm32) C · 281 lines

257 VMSTATE_UINT32(env.exception.syndrome, ARMCPU),

258 VMSTATE_UINT32(env.exception.fsr, ARMCPU),

259 VMSTATE_UINT64(env.exception.vaddress, ARMCPU),

260 VMSTATE_TIMER(gt_timer[GTIMER_PHYS], ARMCPU),

261 VMSTATE_TIMER(gt_timer[GTIMER_VIRT], ARMCPU),

validation.php (https://github.com/Seaony/Hunt.git) PHP · 153 lines

39 'dimensions' => ':attribute 图片尺寸不正确。',

40 'distinct' => ':attribute 已经存在。',

41 'email' => ':attribute 不是一个合法的邮箱。',

42 'exists' => ':attribute 不存在。',

43 'file' => ':attribute 必须是文件。',

68 'numeric' => ':attribute 必须是一个数字。',

69 'present' => ':attribute 必须存在。',

70 'regex' => ':attribute 格式不正确。',

71 'required' => ':attribute 不能为空。',

72 'required_if' => '当 :other 为 :value 时 :attribute 不能为空。',

112 |

113 | The following language lines are used to swap attribute place-holders

114 | with something more reader friendly such as E-Mail Address instead

115 | of 'email'. This simply helps us make messages a little cleaner.

120 'name' => '名称',

121 'username' => '用户名',

122 'email' => '邮箱',

123 'first_name' => '名',

124 'last_name' => '姓',

validation.html (https://gitlab.com/Meteor-MC/plugins) HTML · 179 lines

46 <label>Email</label>

47 <input type="email" placeholder="Enter email" class="form-control" name="email" ng-model="email" required>

48 <div class="m-t-xs" ng-show="signup_form.email.$invalid && signup_form.submitted">

49 <small class="text-danger" ng-show="signup_form.email.$error">Please input a valid email address</small>

50 </div>

51 </div>

52 <div class="form-group">

53 <label>Website</label>

54 <input type="url" placeholder="Enter your website address" class="form-control" name="website" ng-model="website" required>

55 <div class="m-t-xs" ng-show="signup_form.website.$invalid && signup_form.submitted">

56 <small class="text-danger" ng-show="signup_form.website.$error">Please input a valid url address (http://website.com)</small>

94 <label>Email</label>

95 <input type="email" placeholder="Enter email" class="form-control" name="email2" ng-model="email">

96 <div class="m-t-xs" ng-show="signup_form2.email2.$invalid && signup_form2.email2.$dirty">

97 <small class="text-danger" ng-show="signup_form2.email2.$error">Please input a valid email address</small>

98 </div>

99 </div>

Ext.form.VTypes.html (https://github.com/leosamu/cartagen.git) HTML · 191 lines

65 <a id="Ext.form.VTypes-emailMask"></a>

66 <b>emailMask</b> : RegExp <div class="mdesc">

67 <div class="short">The keystroke filter mask to be applied on email input. See the email method for

68 information about more complex ema...</div>

69 <div class="long">

70 The keystroke filter mask to be applied on email input. See the <a ext:cls="Ext.form.VTypes" ext:member="email" href="output/Ext.form.VTypes.html#email">email</a> method for

71 information about more complex email validation. </div>

146 <b>email</b>(&nbsp;<code>String value</code>&nbsp;) : void <div class="mdesc">

147 <div class="short">The function used to validate email addresses. Note that this is a very basic validation -- complete

148 validation per ...</div>

149 <div class="long">

151 validation per the email RFC specifications is very complex and beyond the scope of this class, although

152 this function can be overridden if a more comprehensive validation scheme is desired. See the validation

153 section of the <a href="http://en.wikipedia.org/wiki/E-mail_address">Wikipedia article on email addresses</a>

154 for additional information. <div class="mdetail-params">

155 <strong>Parameters:</strong>

email.js (https://gitlab.com/Cactaceae-a/zomato-master) JavaScript · 170 lines

15 exports.analyze = function (email, options) {

16

17 return internals.email(email, options);

18 };

19

25

26

27 internals.email = function (email, options = {}) {

28

29 if (typeof email !== 'string') {

43 }

44

45 email = email.normalize('NFC');

46 }

47

validation.php (https://gitlab.com/gideonmarked/wellmarketing) PHP · 98 lines

34 "digits" => "The :attribute must be :digits digits.",

35 "digits_between" => "The :attribute must be between :min and :max digits.",

36 "email" => "The :attribute format is invalid.",

37 "exists" => "The selected :attribute is invalid.",

38 "image" => "The :attribute must be an image.",

39 "in" => "The selected :attribute is invalid.",

40 "integer" => "The :attribute must be an integer.",

41 "ip" => "The :attribute must be a valid IP address.",

42 "max" => array(

43 "numeric" => "The :attribute may not be greater than :max.",

55 "not_in" => "The selected :attribute is invalid.",

56 "numeric" => "The :attribute must be a number.",

57 "regex" => "The :attribute format is invalid.",

58 "required" => "The :attribute field is required.",

59 "required_if" => "The :attribute field is required when :other is :value.",

ValidateUser.php (https://gitlab.com/devtoannh/cafe) PHP · 195 lines

24 $validator->addValidator(new Zend_Validate_NotEmpty(),true)

25 ->addValidator(new Zend_Validate_StringLength(3,32),true)

26 ->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9_\.]+$#'),true)

27 ->addValidator(new Zend_Validate_Db_NoRecordExists($options),true);

28

67 $validator->addValidator(new Zend_Validate_NotEmpty(),true)

68 ->addValidator(new Zend_Validate_StringLength(3,32),true)

69 ->addValidator(new Zend_Validate_Regex('#^[a-zA-Z0-9@\#\$%\^&\*\-\+]+$#'),true);

70 if(!$validator->isValid($arrParam['password'])){

71 $message = $validator->getMessages();

80 $validator = new Zend_Validate();

81

82 $validator->addValidator(new Zend_Validate_EmailAddress(),true);

83 if(!$validator->isValid($arrParam['email'])){

84 $message = $validator->getMessages();

85 $this->_messagesError['email'] = 'Email: ' . current($message);

86 }

87 }

ttpost.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 522 lines

425 /* */

426 /* <InOut> */

427 /* PSname :: The address of a string pointer. Will be NULL in case */

428 /* of error, otherwise it is a pointer to the glyph name. */

429 /* */

collection_traits.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

22 // compiles recognize the same set of primitive types, the possibility

23 // exists for archives to be non-portable if class information for primitive

24 // types is included. This is addressed by the following macros.

25 #include <boost/config.hpp>

26 #include <boost/mpl/integral_c.hpp>

cobol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1002 lines

46 <KEYWORD1>ACTUAL</KEYWORD1>

47 <KEYWORD1>ADD</KEYWORD1>

48 <KEYWORD1>ADDRESS</KEYWORD1>

49 <KEYWORD1>ADVANCING</KEYWORD1>

50 <KEYWORD1>AFTER</KEYWORD1>

sforce.170.partner.wsdl (http://forceworkbench.googlecode.com/svn/trunk/workbench/) Web Services Description Language · 2930 lines ✨ Summary

This is a SOAP (Simple Object Access Protocol) service definition file written in WSDL (Web Services Description Language). It describes a web service that provides access to Salesforce’s API, allowing clients to interact with the platform using standardized XML-based requests and responses. The service includes various operations for authentication, data retrieval, and manipulation of Salesforce objects.

230 <enumeration value="INVALID_CURRENCY_CORP_RATE"/>

231 <enumeration value="INVALID_CURRENCY_ISO"/>

232 <enumeration value="INVALID_EMAIL_ADDRESS"/>

233 <enumeration value="INVALID_EMPTY_KEY_OWNER"/>

234 <enumeration value="INVALID_FIELD"/>

309 <enumeration value="UNDELETE_FAILED"/>

310 <enumeration value="UNKNOWN_EXCEPTION"/>

311 <enumeration value="UNSPECIFIED_EMAIL_ADDRESS"/>

312 <enumeration value="UNSUPPORTED_APEX_TRIGGER_OPERATON"/>

313 <enumeration value="UNVERIFIED_SENDER_ADDRESS"/>

824 <sequence>

825 <element name="bccSender" type="xsd:boolean" nillable="true"/>

826 <element name="emailPriority" type="tns:EmailPriority" nillable="true"/>

827 <element name="replyTo" type="xsd:string" nillable="true"/>

828 <element name="saveAsActivity" type="xsd:boolean" nillable="true"/>

858 <element name="fileAttachments" minOccurs="0" maxOccurs="unbounded" type="tns:EmailFileAttachment"/>

859 <element name="orgWideEmailAddressId" minOccurs="0" maxOccurs="1" type="tns:ID" nillable="true"/>

860 <element name="plainTextBody" type="xsd:string" nillable="true"/>

861 <element name="references" minOccurs="0" type="xsd:string" nillable="true"/>

scoped_route.pb.validate.go (https://github.com/knative/pkg.git) Go · 305 lines

11 "net/mail"

12 "net/url"

13 "regexp"

14 "strings"

15 "time"

25 _ = fmt.Print

26 _ = utf8.UTFMax

27 _ = (*regexp.Regexp)(nil)

28 _ = (*strings.Reader)(nil)

29 _ = net.IPv4len

30 _ = time.Duration(0)

31 _ = (*url.URL)(nil)

32 _ = (*mail.Address)(nil)

33 _ = anypb.Any{}

34 )

helper.php (https://gitlab.com/endomorphosis/greenrenaissancejoomla) PHP · 168 lines

81 *

82 * @static

83 * @param string $address E-Mail address.

84 * @return string|false E-Mail address string or boolean false if injected headers are present.

85 * @since 1.5

86 */

87 function cleanAddress($address)

88 {

89 if (preg_match("[\s;,]", $address)) {

101 * @since 1.5

102 */

103 function isEmailAddress($email)

104 {

105

106 // Split the email into a local and domain

107 $atIndex = strrpos($email, "@");

MassPayRequestType.java (https://gitlab.com/CORP-RESELLER/buttonmanager-sdk-java) Java · 164 lines

28 /**

29 * Indicates how you identify the recipients of payments in all

30 * MassPayItems: either by EmailAddress (ReceiverEmail in

31 * MassPayItem), PhoneNumber (ReceiverPhone in MassPayItem), or

32 * by UserID (ReceiverID in MassPayItem). Required. You must

33 * specify one or the other of EmailAddress or UserID.

34 */

35 private ReceiverInfoCodeType receiverType;

74 * Setter for emailSubject

75 */

76 public void setEmailSubject(String emailSubject) {

77 this.emailSubject = emailSubject;

135 if(emailSubject != null) {

136 sb.append("<").append(preferredPrefix).append(":EmailSubject>").append(SDKUtil.escapeInvalidXmlCharsRegex(this.emailSubject));

137 sb.append("</").append(preferredPrefix).append(":EmailSubject>");

TempSensor.cpp (https://github.com/marekjs/TheGardenDroid.git) C++ · 206 lines

11

12 #define DEV_TYPE 0x90 >> 1 // shift required by wire.h

13 #define DEV_ADDR 0x00 // DS1621 address is 0

14 #define SLAVE_ID DEV_TYPE | DEV_ADDR

15

CustomerForm.cs (https://github.com/nrkkalyan/padma-projects.git) C# · 243 lines

49 private void UpdateGUI()

50 {

51 txtCustomerEmail.Text = m_customer.Email;

52 txtCustomerFirstName.Text = m_customer.FirstName;

53 txtCustomerLastName.Text = m_customer.LastName;

125 }

126 //set the values inputted by the user to m_customer object

127 m_customer.Email = txtCustomerEmail.Text;

128 m_customer.Phone = txtCustomerPhone.Text ;

129 m_customer.FirstName = txtCustomerFirstName.Text;

180 @"[a-z|0-9]*(\.[a-z][a-z|0-9]*)?)$";

181 System.Text.RegularExpressions.Match match =

182 Regex.Match(txtCustomerEmail.Text.Trim(), pattern, RegexOptions.IgnoreCase);

183

184 if (match.Success)

test_structure.sql (https://github.com/squarezw/tiexin.git) SQL · 363 lines

154 `name_en` varchar(180) default NULL,

155 `name_zh_cn` varchar(180) default NULL,

156 `address_en` varchar(180) default NULL,

157 `address_zh_cn` varchar(180) default NULL,

311 `id` int(11) NOT NULL auto_increment,

312 `word` varchar(30) NOT NULL,

313 `regexp` varchar(180) default NULL,

314 `active` tinyint(1) default '1',

315 PRIMARY KEY (`id`)

0001_initial.py (https://gitlab.com/lburdzy/asg) Python · 44 lines

22 ('last_login', models.DateTimeField(blank=True, verbose_name='last login', null=True)),

23 ('is_superuser', models.BooleanField(default=False, verbose_name='superuser status', help_text='Designates that this user has all permissions without explicitly assigning them.')),

24 ('username', models.CharField(validators=[django.core.validators.RegexValidator('^[\\w.@+-]+$', 'Enter a valid username. This value may contain only letters, numbers and @/./+/-/_ characters.', 'invalid')], error_messages={'unique': 'A user with that username already exists.'}, unique=True, verbose_name='username', help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30)),

25 ('first_name', models.CharField(verbose_name='first name', max_length=30, blank=True)),

26 ('last_name', models.CharField(verbose_name='last name', max_length=30, blank=True)),

27 ('email', models.EmailField(verbose_name='email address', max_length=254, blank=True)),

28 ('is_staff', models.BooleanField(default=False, verbose_name='staff status', help_text='Designates whether the user can log into this admin site.')),

29 ('is_active', models.BooleanField(default=True, verbose_name='active', help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.')),

ValidationParserTest.php (https://gitlab.com/prometech/tag-and-trace-server-doc) PHP · 196 lines

118 'property' => 'email',

119 'expected' => array(

120 'format' => '{email address}',

121 'default' => null,

122 )

132 'property' => 'ip',

133 'expected' => array(

134 'format' => '{ip address}',

135 'default' => null,

136 )

181 'required' => true,

182 'dataType' => 'string',

183 'format' => '{email address}',

184 'default' => null,

185 )

form.php (https://gitlab.com/endomorphosis/greenrenaissancejoomla) PHP · 95 lines

4 function submitbutton( pressbutton ) {

5 var form = document.userform;

6 var r = new RegExp("[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+|\-]", "i");

7

8 if (pressbutton == 'cancel') {

15 if (form.name.value == "") {

16 alert( "<?php echo JText::_( 'Please enter your name.', true );?>" );

17 } else if (form.email.value == "") {

18 alert( "<?php echo JText::_( 'Please enter a valid e-mail address.', true );?>" );

53 <tr>

54 <td>

55 <label for="email">

56 <?php echo JText::_( 'email' ); ?>:

58 </td>

59 <td>

60 <input class="inputbox" type="text" id="email" name="email" value="<?php echo $this->user->get('email');?>" size="40" />

61 </td>

62 </tr>

uttest.cpp (git://github.com/hpcc-systems/HPCC-Platform.git) C++ · 1394 lines ✨ Summary

This C++ code implements a client-server communication system using message queues and unpackers. It sends data from multiple sources to a server, which receives and unpacks the data into individual messages. The client then reads and processes these messages. The program waits for user input before terminating.

63

64 const char *multicastIPStr = "239.1.1.1";

65 IpAddress multicastIP(multicastIPStr);

66 unsigned udpNumQs = 1;

67 unsigned numNodes;

90 bool readRows = true;

91

92 IpAddressArray allNodes;

93

94 struct TestHeader

180 if (useAeron)

181 {

182 SocketEndpoint myEP(7000, myNode.getNodeAddress());

183 rcvMgr.setown(createAeronReceiveManager(myEP));

184 }

config.h.in (http://angel-engine.googlecode.com/svn/trunk/) Unknown · 78 lines

53 #undef NO_MINUS_C_MINUS_O

54

55 /* Define to the address where bug reports for this package should be sent. */

56 #undef PACKAGE_BUGREPORT

57

sfnt.h (http://angel-engine.googlecode.com/svn/trunk/) C++ Header · 763 lines ✨ Summary

This is a C++ header file that defines an interface for loading and manipulating font files (.sfnt). It provides functions for loading various tables within the font file, such as the table directory, offset table, and metrics. The interface also includes functions for getting font information, like kerning and strike metrics.

216 /* tag == 0). */

217 /* */

218 /* length :: The address of the decision variable: */

219 /* */

220 /* If length == NULL: */

232 /* */

233 /* <Output> */

234 /* buffer :: The address of target buffer. */

235 /* */

236 /* <Return> */

509 /* idx :: The glyph index. */

510 /* */

511 /* PSname :: The address of a string pointer. Will be NULL in case */

512 /* of error, otherwise it is a pointer to the glyph name. */

513 /* */

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

This C code is part of a Linux kernel module for the Veritas filesystem driver. It provides functions to read pages from disk, map logical blocks to physical blocks, and perform low-level I/O operations on the file system. The code handles errors, locking, and synchronization, ensuring that data is properly retrieved and stored in the page cache.

41

42 static int vxfs_readpage(struct file *, struct page *);

43 static sector_t vxfs_bmap(struct address_space *, sector_t);

44

45 const struct address_space_operations vxfs_aops = {

68 */

69 struct page *

70 vxfs_get_page(struct address_space *mapping, u_long n)

71 {

72 struct page * pp;

180 */

181 static sector_t

182 vxfs_bmap(struct address_space *mapping, sector_t block)

183 {

184 return generic_block_bmap(mapping, block, vxfs_getblk);

wlp-lc.c (http://photon-android.googlecode.com/svn/) C · 560 lines ✨ Summary

This C code implements a Wireless Local Area Network (WLAN) driver for Linux, specifically for the Intel Wi-Fi adapter. It manages the device’s state, handles events from the UWB stack, and provides functions for setting up and removing the driver. The code also includes error handling and logging mechanisms to ensure reliable operation.

516 wlp->rc = rc;

517 wlp->ndev = ndev;

518 wlp_eda_init(&wlp->eda);/* Set up address cache */

519 wlp->uwb_notifs_handler.cb = wlp_uwb_notifs_cb;

520 wlp->uwb_notifs_handler.data = wlp;

modula3.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 179 lines

119 <LITERAL2>NUMBER</LITERAL2>

120 <LITERAL2>TEXT</LITERAL2>

121 <LITERAL2>ADDRESS</LITERAL2>

122 <LITERAL2>CARDINAL</LITERAL2>

123 <LITERAL2>FALSE</LITERAL2>

udp.rkt (git://github.com/gmarceau/PLT.git) Racket · 35 lines ✨ Summary

This Racket code defines a module for working with UDP sockets, providing functions to create and manage UDP connections, send and receive data, and access socket addresses. It also provides a way to check if a socket is bound to an address and port number. The udp-addresses function returns the address of a given UDP socket or raises an error if it’s not a valid UDP socket.

24 udp-send-evt

25 udp-send-to-evt

26 udp-addresses)

27

28 (define-values (udp-addresses)

29 (case-lambda

30 [(x) (udp-addresses x #f)]

31 [(socket port-numbers?)

32 (if (udp? socket)

33 (tcp-addresses socket port-numbers?)

34 (raise-type-error 'udp-addresses "udp socket" socket))])))

libmng_hlapi.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 3001 lines

327

328 if (pData->pSavedata) /* sanity check */

329 { /* address it more directly */

330 mng_savedatap pSave = pData->pSavedata;

331

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

This C code is part of a Linux kernel module for the Footbridge SoC, specifically the ARMv7 architecture. It initializes and configures the system’s interrupt handling, memory mapping, and I/O operations. The code sets up the interrupt translation table, maps common devices such as the ARM CSR base address, and defines functions to convert virtual addresses to PCI addresses and vice versa.

203

204 /*

205 * These two functions convert virtual addresses to PCI addresses and PCI

206 * addresses to virtual addresses. Note that it is only legal to use these

letter.tex (git://github.com/saidai-no/nemerle.git) LaTeX · 69 lines ✨ Summary

This LaTeX code generates a formal letter on Microsoft Research’s letterhead, including an address and signature. The letter is addressed to Leszek Pacholski from Microsoft Research in Cambridge, announcing the results of the Rotor Microsoft Research competition. It includes details about funding for a project and requests information from Kerri Wood to facilitate payment.

6

7

8 \address{\textbf{Microsoft Research, Ltd.}\\

9 7 J J Thomson Avenue \\

10 Cambridge \\

trivialwizard.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 139 lines

74 QLineEdit *nameLineEdit = new QLineEdit;

75

76 QLabel *emailLabel = new QLabel("Email address:");

77 QLineEdit *emailLineEdit = new QLineEdit;

80 layout->addWidget(nameLabel, 0, 0);

81 layout->addWidget(nameLineEdit, 0, 1);

82 layout->addWidget(emailLabel, 1, 0);

83 layout->addWidget(emailLineEdit, 1, 1);

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

This C code is part of a network file system implementation, specifically for the NFS (Network File System) protocol. It provides functions and structures to manage sockets, callbacks, and connections between clients and servers. The code handles socket creation, binding, listening, and shutdown, as well as managing callbacks and connection state.

435 * Copy the UDP datagram's destination address to the rqstp structure.

436 * The 'destination' address in this case is the address to which the

437 * peer sent the datagram, i.e. our local address. For multihomed

438 * hosts, this can change from msg to msg. Note that only the IP

439 * address changes, the port number should remain the same.

440 */

441 static void svc_udp_get_dest_address(struct svc_rqst *rqstp,

541 return 0;

542 }

543 svc_udp_get_dest_address(rqstp, cmh);

544

545 if (skb_is_nonlinear(skb)) {

674 oldfs = get_fs();

675 set_fs(KERNEL_DS);

676 /* make sure we get destination address info */

677 svsk->sk_sock->ops->setsockopt(svsk->sk_sock, IPPROTO_IP, IP_PKTINFO,

678 (char __user *)&one, sizeof(one));

main.xml (https://code.google.com/p/coordinate-talk/) XML · 88 lines

66 android:layout_width="fill_parent"

67 android:layout_height="wrap_content"

68 android:id="@+id/my_address"/>

69 </LinearLayout>

70

avr-at90usb82.ads (git://github.com/tkoskine/avr-ada.git) Ada · 3236 lines ✨ Summary

This Ada code defines a hardware abstraction layer (HAL) for an AVR microcontroller, specifically the Atmel AT90USB82. It provides a set of constants and types to access and manipulate the device’s registers, pins, and peripherals. The code is likely used as a foundation for writing firmware or software applications that interact with the microcontroller.

16 ---------------------------------------------------------------------------

17

18 with System; use System; -- make Address visible

19 with Interfaces; use Interfaces;

20

134 --

135

136 CLKSTA_Addr : constant Address := 16#d2#;

137 CLKSTA : Unsigned_8 ;

138 for CLKSTA'Address use CLKSTA_Addr;

139 pragma Volatile (CLKSTA);

140 CLKSTA_Bits : Bits_In_Byte;

141 for CLKSTA_Bits'Address use CLKSTA_Addr;

142 pragma Volatile (CLKSTA_Bits);

143 EXTON_Bit : constant Bit_Number := 0;

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

This C header file defines a data structure called pagevec which is used to batch operations against multiple pages. It provides functions for adding, releasing, and managing pages within the pagevec, as well as tracking LRU (Least Recently Used) lists for different types of pages. The pagevec is designed to be efficient in terms of memory usage and alignment.

13

14 struct page;

15 struct address_space;

16

17 struct pagevec {

25 void ____pagevec_lru_add(struct pagevec *pvec, enum lru_list lru);

26 void pagevec_strip(struct pagevec *pvec);

27 unsigned pagevec_lookup(struct pagevec *pvec, struct address_space *mapping,

28 pgoff_t start, unsigned nr_pages);

29 unsigned pagevec_lookup_tag(struct pagevec *pvec,

30 struct address_space *mapping, pgoff_t *index, int tag,

31 unsigned nr_pages);

32

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

This is a C header file that defines the interface for a Fibre Channel (FC) host adapter, commonly used in storage area networks. It provides functions and data structures for managing FC connections, sending and receiving frames, handling interrupts, and interacting with the host’s PCI bus. The code appears to be part of an operating system or device driver.

163 unsigned int cq_count;

164

165 u32 fcoui_mode:1; /* use fcoui address*/

166 u32 vlan_hw_insert:1; /* let hw insert the tag */

167 u32 in_remove:1; /* fnic device in removal */

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

This C code defines a Fibre Channel (FC) local port implementation, which manages communication between an FC device and a fabric manager. It initializes and configures the port, including setting up receive and reset callbacks, adding FC4 types, and configuring host settings such as node name, port type, and supported classes. The code also handles FLOGI requests to log in to the fabric and timeouts for failed connections.

473

474 /**

475 * fc_lport_recv_adisc_req() - Handle received Address Discovery Request

476 * @lport: Fibre Channel local port recieving the ADISC

477 * @sp: current sequence in the ADISC exchange

rules.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

815 <td>

816 <p>

817 <code class="computeroutput"><span class="identifier">expression</span><span class="special">::</span><span class="identifier">address_of</span><span class="special">&lt;</span><span class="identifier">A0</span><span class="special">&gt;</span></code>

818 </p>

819 </td>

822

823 </p>

824 <pre xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="table-programlisting"><span class="identifier">rule</span><span class="special">::</span><span class="identifier">address_of</span>

825 <span class="special">:</span> <span class="identifier">expression</span><span class="special">::</span><span class="identifier">address_of</span><span class="special">&lt;</span><span class="identifier">meta_grammar</span><span class="special">&gt;</span>

debugfs-kmemtrace (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 72 lines

35 must be taken into account, although

36 it is unlikely.

37 Caller address (8 bytes) Return address to the caller.

38 Pointer to mem (8 bytes) Pointer to target memory area. Can be

39 NULL, but not all such calls might be

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

This C code provides functions for mapping and unmapping high memory regions on Linux systems. It allows kernel developers to access high memory areas, which are not accessible by user space applications. The functions __kmap and __kunmap map and unmap pages from the high memory region, while __kmap_atomic and __kunmap_atomic perform similar operations without acquiring a global lock.

15 might_sleep();

16 if (!PageHighMem(page))

17 return page_address(page);

18 addr = kmap_high(page);

19 flush_tlb_one((unsigned long)addr);

43 void *__kmap_atomic(struct page *page, enum km_type type)

44 {

45 enum fixed_addresses idx;

46 unsigned long vaddr;

47

49 pagefault_disable();

50 if (!PageHighMem(page))

51 return page_address(page);

52

53 debug_kmap_atomic(type);

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

This C code appears to be part of a JFS (Journaling File System) implementation, specifically handling inode operations. It provides functions for copying data between in-memory and disk-based inode structures, as well as updating inode metadata such as permissions, timestamps, and device numbers. The code seems to be focused on ensuring consistency and accuracy when working with JFS file system data.

441

442 if (secondary) {

443 address = addressPXD(&sbi->ait2) >> sbi->l2nbperpage;

444 JFS_IP(ip)->ipimap = sbi->ipaimap2;

445 } else {

517 {

518 struct jfs_sb_info *sbi = JFS_SBI(ip->i_sb);

519 uint address;

520 struct dinode *dp;

521 ino_t inum = ip->i_ino;

523

524 if (secondary)

525 address = addressPXD(&sbi->ait2) >> sbi->l2nbperpage;

526 else

527 address = AITBL_OFF >> L2PSIZE;

astyle.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 1480 lines ✨ Summary

This HTML code outputs a manual page for Artistic Style, a source code formatter. It provides information on options and usage, including explanations of various flags and their effects. The output includes acknowledgments to contributors and beta-testers, as well as a call to action to enjoy the program. The text is formatted in a traditional manual page style, with sections and paragraphs that resemble those found in printed documentation.

69 other peoples source code can still be problematic.</font> </p>

70

71 <p align="left"><font color="#000000" size="3">To address this

72 problem I have created Artistic Style - a series of filters,

73 written in <b>C++</b>, that automatically reindent &amp; reformat

Suspend.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 138 lines

30 The S3C2410 user manual defines the process of sending the CPU to

31 sleep and how it resumes. The default behaviour of the Linux code

32 is to set the GSTATUS3 register to the physical address of the

33 code to resume Linux operation.

34

51

52 There is currently no support for over-riding the default method of

53 saving the resume address, if your board requires it, then contact

54 the maintainer and discuss what is required.

55

v3.4beta028.html (https://bitbucket.org/ultra_iter/qt-vtl.git) HTML · 146 lines

77 files

78 <LI>support was added for three new fax-related tags registered to

79 SGI: FaxRecvParams, FaxRecvTime, and FaxSubAddress

80 <LI>the bit order of image data read and written can now be controlled

81 on a per-file basis through a mode parameter supplied when opening

138 <HR>

139

140 <ADDRESS>

141 <A HREF="sam.html">Sam Leffler</A> / <A HREF="mailto:sam@engr.sgi.com">sam@engr.sgi.com</A>

142 Last updated $Date: 1999/08/09 20:21:21 $.

143 </ADDRESS>

144

145 </BODY>

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

This C code implements a zlib compression and decompression module for the Btrfs file system. It provides two main functions: btrfs_zlib_compress and btrfs_zlib_decompress. The former compresses data into a single page, while the latter decompresses data from a compressed page. The code uses a workspace structure to manage memory allocation and deallocation during compression and decompression operations.

166

167 /*

168 * given an address space and start/len, compress the bytes.

169 *

170 * pages are allocated to hold the compressed result and stored

184 * stuff into pages

185 */

186 int btrfs_zlib_compress_pages(struct address_space *mapping,

187 u64 start, unsigned long len,

188 struct page **pages,

adm1025 (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 52 lines

5 * Analog Devices ADM1025, ADM1025A

6 Prefix: 'adm1025'

7 Addresses scanned: I2C 0x2c - 0x2e

8 Datasheet: Publicly available at the Analog Devices website

9 * Philips NE1619

10 Prefix: 'ne1619'

11 Addresses scanned: I2C 0x2c - 0x2d

12 Datasheet: Publicly available at the Philips website

13

14 The NE1619 presents some differences with the original ADM1025:

15 * Only two possible addresses (0x2c - 0x2d).

16 * No temperature offset register, but we don't use it anyway.

17 * No INT mode for pin 16. We don't play with it anyway.

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

This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.

72 int key = Integer.parseInt(in.readLine());

73

74 Socket socket = new Socket(InetAddress.getByName("127.0.0.1"),port);

75 DataOutputStream out = new DataOutputStream(

76 socket.getOutputStream());

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

This C code is part of a synthesizer for the Emu Audio chip, specifically handling sample blocks. It allocates and frees memory for these blocks, copying data from user space to the allocated memory. The code also handles loop structures within samples, including bidirectional loops and blank loops. It ensures proper alignment and formatting of the data in the allocated memory.

55 }

56

57 /* recalculate address offset */

58 sp->v.end -= sp->v.start;

59 sp->v.loopstart -= sp->v.start;

61 sp->v.start = 0;

62

63 /* some samples have invalid data. the addresses are corrected in voice info */

64 sampleend = sp->v.end;

65 if (sampleend > sp->v.size)

smi-mib.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 132 lines

100 <KEYWORD2>INTEGER</KEYWORD2>

101 <KEYWORD2>Integer32</KEYWORD2>

102 <KEYWORD2>IpAddress</KEYWORD2>

103 <KEYWORD2>MacAddress</KEYWORD2>

104 <KEYWORD2>Opaque</KEYWORD2>

105 <KEYWORD2>PhysAddress</KEYWORD2>

106 <KEYWORD2>RowPointer</KEYWORD2>

107 <KEYWORD2>RowStatus</KEYWORD2>

108 <KEYWORD2>SEQUENCE</KEYWORD2>

109 <KEYWORD2>TAddress</KEYWORD2>

110 <KEYWORD2>TDomain</KEYWORD2>

111 <KEYWORD2>TestAndIncr</KEYWORD2>

gate.S (http://omnia2droid.googlecode.com/svn/trunk/) Assembly · 386 lines ✨ Summary

This Assembly code implements a system call mechanism for an operating system kernel. It handles user-mode system calls, including fetching the system call table, executing the corresponding function, and returning an error code to the caller. The code also includes checks for invalid system calls and uses indirect branching to handle different cases.

41 /*

42 * Note: for (fast) syscall restart to work, the break instruction must be

43 * the first one in the bundle addressed by syscall_via_break.

44 */

45 { .mib

121 1:

122 ld8 r17=[base0],(ARG0_OFF-SIGHANDLER_OFF) // get pointer to signal handler's plabel

123 ld8 r15=[base1] // get address of new RBS base (or NULL)

124 cover // push args in interrupted frame onto backing store

125 ;;

300 * r11 = saved ar.pfs

301 * r15 = system call #

302 * b0 = saved return address

303 * b6 = return address

305 * r11 = saved ar.pfs

306 * r15 = system call #

307 * b0 = saved return address

308 * all other "scratch" registers: undefined

309 * all "preserved" registers: same as on entry

sb1250-mac.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 2956 lines ✨ Summary

This C code implements a Linux driver for a specific type of Ethernet controller. It registers platform devices for each available unit, sets their MAC addresses, and provides a way to probe and remove them. The driver is designed to work with various System-on-Chip (SoC) types and can be used in a variety of applications, such as networking or embedded systems.

50

51 /* This is only here until the firmware is ready. In that case,

52 the firmware leaves the ethernet address in the register for us. */

53 #ifdef CONFIG_SIBYTE_STANDALONE

54 #define SBMAC_ETH0_HWADDR "40:00:00:00:01:00"

219 void __iomem *sbdma_config1; /* DMA config register 1 */

220 void __iomem *sbdma_dscrbase;

221 /* descriptor base address */

222 void __iomem *sbdma_dscrcnt; /* descriptor count register */

223 void __iomem *sbdma_curdscr; /* current descriptor

224 address */

225 void __iomem *sbdma_oodpktlost;

226 /* pkt drop (rx only) */

html-rtf.xsl (http://hadesmem.googlecode.com/svn/trunk/) Extensible Stylesheet Language Transformations · 337 lines

124 <!-- xmlns:html is necessary for the xhtml stylesheet case -->

125 <xsl:variable name="blocks" xmlns:html="http://www.w3.org/1999/xhtml"

126 select="address|blockquote|div|hr|h1|h2|h3|h4|h5|h6

127 |layer|p|pre|table|dl|menu|ol|ul|form

128 |html:address|html:blockquote|html:div|html:hr

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

This C++ header file defines an interface for the Xen hypervisor on IA64 architecture. It provides definitions and macros for hypercalls, optimization features, and identity mapping of region addresses in HVM (Hardware Virtual Machine) mode. The code is part of the Xen project, a type-1 hypervisor that runs directly on the host machine’s hardware.

192 /* virtual interrupt deliverable flag is

193 * evtchn_upcall_mask in shared info area now.

194 * interrupt_mask_addr is the address

195 * of evtchn_upcall_mask for current vcpu

196 */

228

229 /*

230 * This structure is used for magic page in domain pseudo physical address

231 * space and the result of XENMEM_machine_memory_map.

232 * As the XENMEM_machine_memory_map result,

330 #define XEN_IA64_OPTF_IDENT_MAP_REG7 1

331

332 /* Identity mapping of region 4 addresses in HVM. */

333 #define XEN_IA64_OPTF_IDENT_MAP_REG4 2

334

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

This C code is part of a Linux kernel module that sets up a virtual machine (VM) using the LGuest hypervisor. It initializes the VM’s registers, loads the Guest Operating System (GOS), and configures the system call vector. The code also handles hypercalls from the GOS to interact with the host kernel. Its purpose is to enable secure boot and execution of untrusted code in a controlled environment.

156 *

157 * The lcall also pushes the old code segment (KERNEL_CS) onto the

158 * stack, then the address of this call. This stack layout happens to

159 * exactly match the stack layout created by an interrupt...

160 */

168 * %eax contains the pages pointer. ("0" refers to the

169 * 0-th argument above, ie "a"). %ebx contains the

170 * physical address of the Guest's top-level page

171 * directory.

172 */

237 /*

238 * If the Guest page faulted, then the cr2 register will tell us the

239 * bad virtual address. We have to grab this now, because once we

240 * re-enable interrupts an interrupt could fault and thus overwrite

241 * cr2, or we could even move off to a different CPU.

structboost_1_1numeric_1_1ublas_1_1vector__scalar__index__unary__functor-members.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code is a generated documentation page for a C++ class, specifically boost::numeric::ublas::vector_scalar_index_unary_functor. It displays information about the class, including its members and typedefs, in a structured format with navigation tabs and links to related pages. The content is likely generated by a tool like Doxygen.

32 <tr bgcolor="#f0f0f0"><td><b>value_type</b> typedef (defined in <a class="el" href="structboost_1_1numeric_1_1ublas_1_1vector__scalar__index__unary__functor.html">boost::numeric::ublas::vector_scalar_index_unary_functor&lt; V &gt;</a>)</td><td><a class="el" href="structboost_1_1numeric_1_1ublas_1_1vector__scalar__index__unary__functor.html">boost::numeric::ublas::vector_scalar_index_unary_functor&lt; V &gt;</a></td><td></td></tr>

33 </table></div>

34 <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Jul 4 20:31:06 2010 for ublas by&nbsp;

35 <a href="http://www.doxygen.org/index.html">

36 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>

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

This C code implements inotify support for userspace, allowing user applications to receive notifications about file system events such as creation, modification, and deletion. It manages a data structure that tracks these events and notifies registered handlers when an event occurs. The code provides functions for handling events, freeing resources, and managing the underlying data structures.

131 /*

132 * I'm taking the liberty of assuming that the mark in question is a

133 * valid address and I'm dereferencing it. This might help to figure

134 * out why we got here and the panic is no worse than the original

135 * BUG() that was here.