100+ results for 'email regex lang:python'

Not the results you expected?

forms.py (https://github.com/ron-panduwana/test_gae.git) Python · 131 lines

20 domain = forms.RegexField(

21 required=True, regex=regexps.RE_DOMAIN, label='www.',

22 error_messages={'invalid': regexps.ERROR_DOMAIN})

76 account = forms.RegexField(

77 regex=regexps.RE_USERNAME, label=_('Administrator account'),

78 error_messages={'invalid': regexps.ERROR_USERNAME})

101 old_credentials = {

102 'email': apps_domain.admin_email,

103 'password': apps_domain.admin_password,

107 if old_credentials:

108 apps_domain.admin_email = old_credentials['email']

109 apps_domain.admin_password = old_credentials['password']

113 domain, self.service.service))

114 apps_domain.admin_email = email

115 apps_domain.admin_password = password

SanityCheck.py (http://google-api-adwords-python-lib.googlecode.com/svn/trunk/) Python · 265 lines

39 acct_info[key] = SoappySanityCheck.UnType(''.join(items))

40 elif key == 'emailPromotionsPreferences':

41 SanityCheck.ValidateTypes(((acct_info[key], dict),))

models.py (https://github.com/kd7lxl/memrec.git) Python · 149 lines

1 from django.db import models

2 from django.core.validators import RegexValidator

3

7 phone_re = re.compile(r'^[\d]{10}$')

8 validate_phone = RegexValidator(phone_re, (u"Enter a 10-digit phone number with no punctuation."), 'invalid')

9

10 hostname_re = re.compile(r'^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$')

11 validate_hostname = RegexValidator(hostname_re, (u"Enter a valid hostname."), 'invalid')

12

91

92 class EmailAddress(models.Model):

93 person = models.ForeignKey(Person)

94 email_address = models.EmailField()

95

models.py (https://github.com/ramen/django.git) Python · 266 lines

30

31 class EmailData(models.Model):

32 data = models.EmailField(null=True)

171

172 class EmailPKData(models.Model):

173 data = models.EmailField(primary_key=True)

0001_initial.py (https://gitlab.com/alfadil/my) Python · 53 lines

42 ('Address', models.TextField()),

43 ('Phone1', models.CharField(blank=True, max_length=9, validators=[django.core.validators.RegexValidator(message=b"Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex=b'^\\+?1?\\d{9,15}$')])),

44 ('Phone2', models.CharField(blank=True, max_length=9, validators=[django.core.validators.RegexValidator(message=b"Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex=b'^\\+?1?\\d{9,15}$')])),

45 ('email', models.CharField(max_length=140)),

46 ],

forms.py (https://bitbucket.org/andrewlvov/django-registration-custom.git) Python · 120 lines

31

32 username = forms.RegexField(regex=r'^[\w.@+-]+$',

33 max_length=30,

35 error_messages={'invalid': _("This value may contain only letters, numbers and @/./+/-/_ characters.")})

36 email = forms.EmailField(label=_("E-mail"))

37 password1 = forms.CharField(widget=forms.PasswordInput,

90 """

91 if User.objects.filter(email__iexact=self.cleaned_data['email']):

92 raise forms.ValidationError(_("This email address is already in use. Please supply a different email address."))

116 """

117 email_domain = self.cleaned_data['email'].split('@')[1]

118 if email_domain in self.bad_domains:

119 raise forms.ValidationError(_("Registration using free email addresses is prohibited. Please supply a different email address."))

120 return self.cleaned_data['email']

0015_auto__del_repo__del_field_package_repo.py (https://github.com/mrj0/opencomparison.git) Python · 143 lines

21 db.create_table('package_repo', (

22 ('slug_regex', self.gf('django.db.models.fields.CharField')(max_length='100', blank=True)),

23 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),

25 ('handler', self.gf('django.db.models.fields.CharField')(default='package.handlers.unsupported', max_length='200')),

26 ('repo_regex', self.gf('django.db.models.fields.CharField')(max_length='100', blank=True)),

27 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),

32 ('is_supported', self.gf('django.db.models.fields.BooleanField')(default=False)),

33 ('user_regex', self.gf('django.db.models.fields.CharField')(max_length='100', blank=True)),

34 ('is_other', self.gf('django.db.models.fields.BooleanField')(default=False)),

58 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),

59 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),

60 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),

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

100 system_preferences.preferred_language))

101 self.assertEqual(member.address.email, 'anne@example.com')

102

103 def test_add_member_banned_by_pattern(self):

104 # Addresses matching regexp ban patterns cannot subscribe.

105 IBanManager(self._mlist).ban('^.*@example.com')

187

188 def test_add_member_with_mixed_case_email(self):

189 # LP: #1425359 - Mailman is case-perserving, case-insensitive. This

203 system_preferences.preferred_language))

204 self.assertEqual(cm.exception.email, email)

205

221 system_preferences.preferred_language))

222 self.assertEqual(cm.exception.email, email.lower())

223

test_data_forceschedulers.py (https://gitlab.com/murder187ss/buildbot) Python · 166 lines

31 'name': 'username',

32 'need_email': True,

33 'regex': None,

43 'name': 'reason',

44 'regex': None,

45 'required': False,

54 'name': '',

55 'regex': None,

56 'required': False,

66 'name': 'project',

67 'regex': None,

68 'required': False,

77 'name': 'repository',

78 'regex': None,

79 'required': False,

utils.py (https://github.com/byroncorrales/askbot-devel.git) Python · 236 lines

8 username = None,

9 email = None,

10 notification_schedule = None,

28 and values as keys in

29 :attr:`~askbot.models.EmailFeedSetting.FEED_TYPES`:

30

35 """

36 user = models.User.objects.create_user(username, email)

37

43 if notification_schedule == None:

44 notification_schedule = models.EmailFeedSetting.NO_EMAIL_SCHEDULE

45

87 username = username,

88 email = email,

89 notification_schedule = notification_schedule,

convert.py (https://gitlab.com/jeffglover/contactsjsonmod) Python · 111 lines

28

29 supports validating rows, currently when enabled expects an email column

30 '''

31

32 valid_email = re.compile(

33 r"^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$")

42 if self.santize_rows:

43 # initilize the RowSantizer to run a regex match on the 'email'

44 # column

45 self.email_column = "email"

46 self.email_sanitizer = RowSanitizer(

47 self.email_column, self.valid_email.match)

48

forms.py (https://gitlab.com/andreweua/timtec) Python · 166 lines

17

18 email = forms.RegexField(label=_("email"), max_length=75, regex=r"^[\w.@+-]+$")

19

54 model = get_user_model()

55 fields = ('ifid', 'first_name', 'last_name', 'email', 'campus', 'city', 'course', 'klass')

56

82 model = get_user_model()

83 fields = ('first_name', 'last_name', 'email', 'campus', 'city', 'siape', 'cpf')

84

109 model = get_user_model()

110 fields = ('first_name', 'last_name', 'email', 'campus', 'city', 'course', 'klass')

111

utils.py (https://github.com/rlr/kitsune.git) Python · 136 lines

55 subject=subject,

56 email_data=email_data,

57 volunteer_interest=form.cleaned_data['interested'],

59 if not form.is_valid():

60 # Delete user if form is not valid, i.e. email was not sent.

61 # This is in a POST request and so always pinned to master,

62 # so there is no race condition.

63 User.objects.filter(email=form.instance.email).delete()

64 else:

94 context_vars={'contributor': user},

95 from_email=settings.DEFAULT_FROM_EMAIL,

96 to_email=user.email)

106 username_regex = r'^{0}[0-9]*$'.format(username)

107 users = User.objects.filter(username__iregex=username_regex)

108

admin.py (https://github.com/Kamlani/reviewboard.git) Python · 225 lines

28 (_('General Information'), {

29 'fields': ('name', 'file_regex'),

30 'classes': ['wide'],

41 )

42 list_display = ('name', 'file_regex')

43

87 (_('State'), {

88 'fields': ('email_message_id', 'time_emailed'),

89 'classes': ('collapse',)

119 'modified unless something is wrong.</p>'),

120 'fields': ('email_message_id', 'time_emailed',

121 'last_review_timestamp', 'shipit_count', 'local_id'),

schema.py (https://github.com/eea/eea.usersdb.git) Python · 140 lines

13 )

14 INVALID_EMAIL = "Invalid email format %s"

15

76 # max length for domain name labels is 63 characters per RFC 1034

77 _url_validator = colander.Regex(r'^http[s]?\://', msg=INVALID_URL)

78

79

80 def _email_validator(node, value):

81 """ email validator """

84 if not re.match(pattern, value):

85 raise colander.Invalid(node, INVALID_EMAIL % value)

86

108 colander.String(), missing='', description='Job title')

109 email = colander.SchemaNode(

110 colander.String(), validator=_email_validator, description='E-mail')

test_old_mailbox.py (https://github.com/rpattabi/ironruby.git) Python · 160 lines

102 ### should be better!

103 import email.parser

104 fname = self.createMessage("cur", True)

106 for msg in mailbox.PortableUnixMailbox(open(fname),

107 email.parser.Parser().parse):

108 n += 1

120

121 def test_from_regex (self):

122 # Testing new regex from bug #1633678

forms.py (https://github.com/qualitio/qualitio.git) Python · 174 lines

28

29 slug = forms.RegexField(

30 regex="^[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$",

51 class NewMemberForm(core.BaseForm):

52 email = forms.EmailField(required=True, label="E-mail address")

53

54 def clean_email(self):

55 email = self.cleaned_data.get('email')

56 if auth.User.objects.filter(

57 organization_member__organization=THREAD.organization,

58 email=self.cleaned_data.get('email')

59 ):

74

75 email = self.cleaned_data.get('email')

76 if auth.User.objects.filter(username=email).exists():

99_regex_reference.py (https://gitlab.com/varunkothamachu/DAT3) Python · 251 lines

1 '''

2 Regular Expressions (regex) Reference Guide

3

135

136 s = 'my email is john-doe@gmail.com'

137

172

173 s = 'my email is john-doe@gmail.com'

174

190

191 s = 'emails: joe@gmail.com, bob@gmail.com'

192

216

217 s = 'emails: nicole@ga.co, joe@gmail.com, PAT@GA.CO'

218

fields.py (https://bitbucket.org/tskarthik/clienttracker.git) Python · 158 lines

123

124 class RegexField(DojoFieldMixin, fields.RegexField):

125 widget = widgets.ValidationTextInput

126 js_regex = None # we additionally have to define a custom javascript regexp, because the python one is not compatible to javascript

127

128 def __init__(self, js_regex=None, *args, **kwargs):

129 self.js_regex = js_regex

130 super(RegexField, self).__init__(*args, **kwargs)

146

147 class EmailField(DojoFieldMixin, fields.EmailField):

148 widget = widgets.EmailTextInput

157 widget = widgets.ValidationTextInput

158 js_regex = '^[-\w]+$' # we cannot extract the original regex input from the python regex

159

constants.py (https://bitbucket.org/isaacobezo/configurations.git) Python · 200 lines

27

28 EDAM_EMAIL_LOCAL_REGEX = "^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*$"

29

30 EDAM_EMAIL_DOMAIN_REGEX = "^[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"

31

32 EDAM_EMAIL_REGEX = "^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(\\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*\\.([A-Za-z]{2,})$"

33

102

103 EDAM_USER_USERNAME_REGEX = "^[a-z0-9]([a-z0-9_-]{0,62}[a-z0-9])?$"

104

114

115 EDAM_TAG_NAME_REGEX = "^[^,\\p{Cc}\\p{Z}]([^,\\p{Cc}\\p{Zl}\\p{Zp}]{0,98}[^,\\p{Cc}\\p{Z}])?$"

116

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

75

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

77 QLineEdit *emailLineEdit = new QLineEdit;

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

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

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

models.py (https://github.com/gregmuellegger/django.git) Python · 93 lines

27 settings.AUTH_PROFILE_MODULE = 'foo.bar'

28 with self.assertRaisesRegexp(SiteProfileNotAvailable,

29 "Unable to load the profile model"):

69 def test_create_user(self):

70 email_lowercase = 'normal@normal.com'

71 user = User.objects.create_user('user', email_lowercase)

72 self.assertEqual(user.email, email_lowercase)

73 self.assertEqual(user.username, 'user')

75

76 def test_create_user_email_domain_normalize_rfc3696(self):

77 # According to http://tools.ietf.org/html/rfc3696#section-3

86 def test_create_user_email_domain_normalize_with_whitespace(self):

87 returned = UserManager.normalize_email('email\ with_whitespace@D.COM')

88 self.assertEqual(returned, 'email\ with_whitespace@d.com')

forms.py (https://github.com/jgosier/RiverID.git) Python · 125 lines

32 """

33 username = forms.RegexField(regex=r'^\w+$',

34 max_length=30,

37 error_messages={'invalid': _("This value must contain only letters, numbers and underscores.")})

38 email = forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict,

39 maxlength=75)),

95 """

96 if User.objects.filter(email__iexact=self.cleaned_data['email']):

97 raise forms.ValidationError(_("This email address is already in use. Please supply a different email address."))

121 """

122 email_domain = self.cleaned_data['email'].split('@')[1]

123 if email_domain in self.bad_domains:

124 raise forms.ValidationError(_("Registration using free email addresses is prohibited. Please supply a different email address."))

125 return self.cleaned_data['email']

models.py (https://github.com/tarequeh/little-ebay.git) Python · 164 lines

40 user = models.OneToOneField(User, related_name='seller')

41 paypal_email = models.EmailField()

42 default_shipping_method = models.IntegerField(choices=AUCTION_EVENT_SHIPPING_CHOICES, default=AUCTION_EVENT_SHIPPING_USPS)

test_subquery_relations.py (https://gitlab.com/ztane/sqlalchemy) Python · 1307 lines

38 [User(id=7, addresses=[

39 Address(id=1, email_address='jack@bean.com')])],

40 q.filter(User.id==7).all()

77 [User(id=7, addresses=[

78 Address(id=1, email_address='jack@bean.com')])],

79 q.filter(u.id==7).all()

97 User(id=8, addresses=[

98 Address(id=2, email_address='ed@wood.com', dingalings=[Dingaling()]),

99 Address(id=3, email_address='ed@bettyboop.com'),

100 Address(id=4, email_address='ed@lala.com'),

101 ]),

127 User(id=7, addresses=[

128 Address(id=1, email_address='jack@bean.com')]),

129 q.get(7)

watchlistparser_unittest.py (https://review.tizen.org/git/) Python · 260 lines

69

70 def test_bad_filename_regex(self):

71 watch_list = (

84 OutputCapture().assert_outputs(self, self._watch_list_parser.parse, args=[watch_list],

85 expected_logs='The regex "*" is invalid due to "nothing to repeat".\n')

86

87 def test_bad_more_regex(self):

88 watch_list = (

101 OutputCapture().assert_outputs(self, self._watch_list_parser.parse, args=[watch_list],

102 expected_logs='The regex "*" is invalid due to "nothing to repeat".\n')

103

184 OutputCapture().assert_outputs(self, self._watch_list_parser.parse, args=[watch_list],

185 expected_logs='The email alias levin+bad+email@chromium.org which is'

186 + ' in the watchlist is not listed as a contributor in committers.py\n')

README.txt (https://bitbucket.org/chamilo/chamilo-ext-repo-flickr-dev/) Plain Text · 216 lines

9 If you are interested in hiring me for a project (involving phpFlickr

10 or not), feel free to email me.

11

211

212 Please email me if you have any questions or problems. You'll find my email

213 at the top of this file.

test_validator.py (https://github.com/ptahproject/ptah.git) Python · 209 lines

112

113 class TestRegex(TestCase):

114 def _makeOne(self, pattern):

115 from ptah.form import Regex

116 return Regex(pattern)

117

118 def test_valid_regex(self):

119 self.assertEqual(self._makeOne('a')(None, 'a'), None)

123

124 def test_invalid_regexs(self):

125 from ptah.form import Invalid

128

129 def test_regex_not_string(self):

130 from ptah.form import Invalid

views.py (https://github.com/sboots/myewb2.git) Python · 142 lines

15 from account.utils import get_default_redirect

16 from emailconfirmation.models import EmailAddress, EmailConfirmation

17

73 @login_required

74 def email(request, form_class=AddEmailForm, template_name="account/email.html",

75 username=None):

103 })

104 EmailConfirmation.objects.send_confirmation(email_address)

105 except EmailAddress.DoesNotExist:

121 elif request.POST["action"] == "primary":

122 email = request.POST["email"]

123 email_address = EmailAddress.objects.get(

140 group = get_object_or_404(LogisticalGroup, slug="silent_signup_api")

141 group.add_email(email)

142 return HttpResponse("success")

cnet.py (https://gitlab.com/gregtyka/ka-lite) Python · 79 lines

34 webpage = self._download_webpage(url, display_id)

35 data_json = self._html_search_regex(

36 r"<div class=\"cnetVideoPlayer\"\s+.*?data-cnet-video-options='([^']+)'",

55 uploader = '%s %s' % (author['firstName'], author['lastName'])

56 uploader_id = author.get('email')

57 else:

tests.py (https://github.com/davedash/django.git) Python · 146 lines

20

21 (validate_email, 'email@here.com', None),

22 (validate_email, 'weirder-email@here.and.there.com', None),

23

24 (validate_email, None, ValidationError),

25 (validate_email, '', ValidationError),

26 (validate_email, 'abc', ValidationError),

27 (validate_email, 'a @x.cz', ValidationError),

28 (validate_email, 'something@@somewhere.com', ValidationError),

29

112

113 (RegexValidator('.*'), '', None),

114 (RegexValidator(re.compile('.*')), '', None),

forms.py (https://github.com/patrickstalvord/baruwa.git) Python · 151 lines

25 try:

26 from django.forms.fields import email_re

27 except ImportError:

28 from django.core.validators import email_re

29 from baruwa.utils.regex import DOM_RE, IPV4_RE, USER_RE, IPV4_NET_OR_RANGE_RE

56 to_address = self.cleaned_data['to_address']

57 if not email_re.match(to_address):

58 raise forms.ValidationError(

59 _('%(email)s provide a valid e-mail address') %

60 {'email': force_escape(to_address)})

63 raise forms.ValidationError(

64 _("The address: %(email)s does not belong to you.") %

65 {'email': force_escape(to_address)})

utils.py (https://github.com/rtnpro/askbot-devel.git) Python · 254 lines

43 if notification_schedule == None:

44 notification_schedule = models.EmailFeedSetting.NO_EMAIL_SCHEDULE

45

87 username = username,

88 email = email,

89 notification_schedule = notification_schedule,

138 tags = tags,

139 by_email = by_email,

140 wiki = wiki,

170 body_text = body_text,

171 by_email = by_email,

172 follow = follow,

206 body_text = body_text,

207 by_email = by_email,

208 timestamp = timestamp,

module.py (https://gitlab.com/phyks/weboob) Python · 82 lines

33 MAINTAINER = u'Florent Fourcot'

34 EMAIL = 'weboob@flo.fourcot.fr'

35 VERSION = '1.3'

40 masked=False,

41 regexp='^(\d{8,13}|)$'),

42 ValueBackendPassword('password',

set_fake_emails.py (https://github.com/klpdotorg/KLP-MIS.git) Python · 105 lines

22 option_list = NoArgsCommand.option_list + (

23 make_option('--email', dest='default_email',

24 default=DEFAULT_FAKE_EMAIL,

64 from django.contrib.auth.models import User, Group

65 email = options.get('default_email', DEFAULT_FAKE_EMAIL)

66 include_regexp = options.get('include_regexp', None)

94 if exclude_regexp:

95 users = users.exclude(username__regex=exclude_regexp)

96 if include_regexp:

97 users = users.filter(username__regex=include_regexp)

98 for user in users:

99 user.email = email % {'username': user.username,

100 'first_name': user.first_name,

attribute.s (git://github.com/jockepockee/ogrp-os.git) Assembly · 136 lines ✨ Summary

This Assembly code is a part of an operating system and handles attribute changes for a file. It checks if the input string contains valid attributes (x, r, w, v) and performs operations accordingly. If the input is invalid, it displays error messages. The code also handles drive not ready and no file errors. It uses BIOS interrupts to display messages on the screen.

4 ; * Authors: jockepockee, mr3d (jockepockee.com, h4xxel.ath.cx)

5 ; * Email: jocke@h4xx.org h4xxel@h4xx.org

6 ;

README (https://bitbucket.org/freebsd/freebsd-head/) Unknown · 537 lines

397 for a copy of the output - but he will reply rudely if you send thousands of

398 lines of tracing to him by Email!

399

534 New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.

535 Email: nmm1@cam.ac.uk

536 Tel.: +44 1223 334761 Fax: +44 1223 334679

mail_thread.py (https://gitlab.com/thanhchatvn/cloud-odoo) Python · 73 lines

14 class MailThread(osv.AbstractModel):

15 """ Update MailThread to add the feature of bounced emails and replied emails

16 in message_process. """

20 def message_route_check_bounce(self, cr, uid, message, context=None):

21 """ Override to verify that the email_to is the bounce alias. If it is the

22 case, log the bounce, set the parent and related document as bounced and

25 message_id = message.get('Message-Id')

26 email_from = decode_header(message, 'From')

27 email_to = decode_header(message, 'To')

28

29 # 0. Verify whether this is a bounced email (wrong destination,...) -> use it to collect data, such as dead leads

30 if bounce_alias and bounce_alias in email_to:

43 _logger.info('Routing mail from %s to %s with Message-Id %s: bounced mail from mail %s, model: %s, thread_id: %s',

44 email_from, email_to, message_id, bounced_mail_id, bounced_model, bounced_thread_id)

45 if bounced_model and bounced_model in self.pool and hasattr(self.pool[bounced_model], 'message_receive_bounce') and bounced_thread_id:

0005_auto.py (https://github.com/pythonchelle/opencomparison.git) Python · 129 lines

42 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),

43 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),

44 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),

120 'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),

121 'repo_regex': ('django.db.models.fields.CharField', [], {'max_length': "'100'", 'blank': 'True'}),

122 'slug_regex': ('django.db.models.fields.CharField', [], {'max_length': "'100'", 'blank': 'True'}),

124 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),

125 'user_regex': ('django.db.models.fields.CharField', [], {'max_length': "'100'", 'blank': 'True'})

126 }

admin.py (https://github.com/dorothyk/reviewboard.git) Python · 226 lines

28 (_('General Information'), {

29 'fields': ('name', 'file_regex', 'local_site'),

30 'classes': ['wide'],

41 )

42 list_display = ('name', 'file_regex')

43

88 (_('State'), {

89 'fields': ('email_message_id', 'time_emailed'),

90 'classes': ('collapse',)

120 'modified unless something is wrong.</p>'),

121 'fields': ('email_message_id', 'time_emailed',

122 'last_review_timestamp', 'shipit_count', 'local_id'),

module.py (https://github.com/laurentb/weboob.git) Python · 125 lines

44 MAINTAINER = u'Vincent A'

45 EMAIL = 'dev@indigo.re'

46 LICENSE = 'AGPLv3+'

48 CONFIG = BackendConfig(

49 Value('subreddit', label='Name of the sub-reddit', regexp='[^/]+', default='pics'),

50 )

forms.py (https://github.com/domeav/Lady-Penh.git) Python · 104 lines

12 class UserRegistrationForm(forms.ModelForm):

13 username = forms.RegexField(regex=r'^\w+$', max_length=30,

14 label=_(u'Username'))

15 email = forms.EmailField(widget=forms.TextInput(attrs=dict(maxlength=75)),

16 label=_(u'Email address'))

60 password=self.cleaned_data['password1'],

61 email=self.cleaned_data['email'],

62 domain_override=domain_override)

71 """

72 email = self.cleaned_data['email'].lower()

73 if User.all().filter('email =', email).filter(

74 'is_active =', True).count(1):

75 raise forms.ValidationError(__(u'This email address is already in use. Please supply a different email address.'))

76 return email

lv.js (http://phpwcms.googlecode.com/svn/trunk/) JavaScript · 5 lines ✨ Summary

This is a complex JavaScript object that defines various settings and options for a text editor or word processor. It includes features such as formatting, alignment, borders, tables, and grammar checking. The object contains numerous properties and sub-properties that control various aspects of the editing experience, including layout, behavior, and user interface elements.

4 */

5 CKEDITOR.lang['lv']={"dir":"ltr","editor":"Bag?tin?t? teksta redaktors","common":{"editorHelp":"Pal?dz?bai, nospiediet ALT 0 ","browseServer":"Skat?t servera saturu","url":"URL","protocol":"Protokols","upload":"Augšupiel?d?t","uploadSubmit":"Nos?t?t serverim","image":"Att?ls","flash":"Flash","form":"Forma","checkbox":"Atz?m?šanas kast?te","radio":"Izv?les poga","textField":"Teksta rinda","textarea":"Teksta laukums","hiddenField":"Pasl?pta teksta rinda","button":"Poga","select":"Iez?m?šanas lauks","imageButton":"Att?lpoga","notSet":"<nav iestat?ts>","id":"Id","name":"Nosaukums","langDir":"Valodas las?šanas virziens","langDirLtr":"No kreis?s uz labo (LTR)","langDirRtl":"No lab?s uz kreiso (RTL)","langCode":"Valodas kods","longDescr":"Gara apraksta Hipersaite","cssClass":"Stilu saraksta klases","advisoryTitle":"Konsultat?vs virsraksts","cssStyle":"Stils","ok":"Dar?ts!","cancel":"Atcelt","close":"Aizv?rt","preview":"Priekšskat?jums","resize":"M?rogot","generalTab":"Visp?r?gi","advancedTab":"Izv?rstais","validateNumberFailed":"Š? v?rt?ba nav skaitlis","confirmNewPage":"Jebkuras nesaglab?t?s izmai?as tiks zaud?tas. Vai tieš?m v?laties atv?rt jaunu lapu?","confirmCancel":"Daži no uzst?d?jumiem ir main?ti. Vai tieš?m v?laties aizv?rt šo dialogu?","options":"Uzst?d?jumi","target":"M?r?is","targetNew":"Jauns logs (_blank)","targetTop":"Virs?jais logs (_top)","targetSelf":"Tas pats logs (_self)","targetParent":"Avota logs (_parent)","langDirLTR":"Kreisais uz Labo (LTR)","langDirRTL":"Labais uz Kreiso (RTL)","styles":"Stils","cssClasses":"Stilu klases","width":"Platums","height":"Augstums","align":"Nol?dzin?t","alignLeft":"Pa kreisi","alignRight":"Pa labi","alignCenter":"Centr?ti","alignTop":"Augš?","alignMiddle":"Vertik?li centr?ts","alignBottom":"Apakš?","invalidValue":"Nekorekta v?rt?ba","invalidHeight":"Augstumam j?b?t skaitlim.","invalidWidth":"Platumam j?b?t skaitlim","invalidCssLength":"Laukam \"%1\" nor?d?tajai v?rt?bai j?b?t pozit?vam skaitlim ar vai bez korekt?m CSS m?rvien?b?m (px, %, in, cm, mm, em, ex, pt, vai pc).","invalidHtmlLength":"Laukam \"%1\" nor?d?tajai v?rt?bai j?b?t pozit?vam skaitlim ar vai bez korekt?m HTML m?rvien?b?m (px vai %).","invalidInlineStyle":"Iek?autaj? stil? nor?d?tajai v?rt?bai j?sast?v no viena vai vair?kiem p?riem p?c forma'ta \"nosaukums: v?rt?ba\", atdal?tiem ar semikolu.","cssLengthTooltip":"Ievadiet v?rt?bu pikse?os vai skaitli ar der?gu CSS m?rvien?bu (px, %, in, cm, mm, em, ex, pt, vai pc).","unavailable":"%1<span class=\"cke_accessibility\">, nav pieejams</span>"},"about":{"copy":"Kop?šanas ties?bas &copy; $1. Visas ties?bas rezerv?tas.","dlgTitle":"Par CKEditor","help":"P?rbaudiet $1 pal?dz?bai.","moreInfo":"Inform?cijai par licenz?šanu apmekl?jiet m?su m?jas lapu:","title":"Par CKEditor","userGuide":"CKEditor Lietot?ja pam?c?ba"},"basicstyles":{"bold":"Treknin?ts","italic":"Kurs?vs","strike":"P?rsv?trots","subscript":"Apakšrakst?","superscript":"Augšrakst?","underline":"Pasv?trots"},"bidi":{"ltr":"Teksta virziens no kreis?s uz labo","rtl":"Teksta virziens no lab?s uz kreiso"},"blockquote":{"toolbar":"Bloka cit?ts"},"clipboard":{"copy":"Kop?t","copyError":"J?su p?rl?kprogrammas droš?bas iestat?jumi nepie?auj redaktoram autom?tiski veikt kop?šanas darb?bu. L?dzu, izmantojiet (Ctrl/Cmd+C), lai veiktu šo darb?bu.","cut":"Izgriezt","cutError":"J?su p?rl?kprogrammas droš?bas iestat?jumi nepie?auj redaktoram autom?tiski veikt izgriezšanas darb?bu. L?dzu, izmantojiet (Ctrl/Cmd+X), lai veiktu šo darb?bu.","paste":"Iel?m?t","pasteArea":"Iel?m?šanas zona","pasteMsg":"L?dzu, ievietojiet tekstu šaj? laukum?, izmantojot klaviat?ru (<STRONG>Ctrl/Cmd+V</STRONG>) un apstipriniet ar <STRONG>Dar?ts!</STRONG>.","securityMsg":"J?su p?rl?ka droš?bas uzst?d?jumu d??, nav iesp?jams tieši piek??t j?su starpliktuvei. Jums j?iel?m? atk?rtoti šaj? log?.","title":"Ievietot"},"colorbutton":{"auto":"Autom?tiska","bgColorTitle":"Fona kr?sa","colors":{"000":"Melns","800000":"Sarkanbr?ns","8B4513":"Sedlu br?ns","2F4F4F":"Tumšas t?feles pel?ks","008080":"Zili-za?š","000080":"J?ras","4B0082":"Indigo","696969":"Tumši pel?ks","B22222":"?ie?e?sarkans","A52A2A":"Br?ns","DAA520":"Zelta","006400":"Tumši za?š","40E0D0":"Tirk?zs","0000CD":"Vid?ji zils","800080":"Purpurs","808080":"Pel?ks","F00":"Sarkans","FF8C00":"Tumši oranžs","FFD700":"Zelta","008000":"Za?š","0FF":"Tumšzils","00F":"Zils","EE82EE":"Violets","A9A9A9":"Pel?ks","FFA07A":"Gaiši laškr?sas","FFA500":"Oranžs","FFFF00":"Dzeltens","00FF00":"Laima","AFEEEE":"Gaiši tirk?za","ADD8E6":"Gaiši zils","DDA0DD":"Pl?mju","D3D3D3":"Gaiši pel?ks","FFF0F5":"Lavandas s?rts","FAEBD7":"Ant?ki balts","FFFFE0":"Gaiši dzeltens","F0FFF0":"Meduspile","F0FFFF":"Debesszils","F0F8FF":"Alises zils","E6E6FA":"Lavanda","FFF":"Balts"},"more":"Plaš?ka palete...","panelTitle":"Kr?sa","textColorTitle":"Teksta kr?sa"},"colordialog":{"clear":"Not?r?t","highlight":"Paraugs","options":"Kr?sas uzst?d?jumi","selected":"Izv?l?t? kr?sa","title":"Izv?lies kr?su"},"templates":{"button":"Sagataves","emptyListMsg":"(Nav nor?d?tas sagataves)","insertOption":"Aizvietot pašreiz?jo saturu","options":"Sagataves uzst?d?jumi","selectPromptMsg":"L?dzu, nor?diet sagatavi, ko atv?rt editor?<br>(patreiz?jie dati tiks zaud?ti):","title":"Satura sagataves"},"contextmenu":{"options":"Uznirstoš?s izv?lnes uzst?d?jumi"},"div":{"IdInputLabel":"Id","advisoryTitleInputLabel":"Konsultat?vs virsraksts","cssClassInputLabel":"Stilu klases","edit":"Labot Div","inlineStyleInputLabel":"Iek?autais stils","langDirLTRLabel":"Kreisais uz Labo (LTR)","langDirLabel":"Valodas virziens","langDirRTLLabel":"Labais uz kreiso (RTL)","languageCodeInputLabel":"Valodas kods","remove":"No?emt Div","styleSelectLabel":"Stils","title":"Izveidot div konteineri","toolbar":"Izveidot div konteineri"},"toolbar":{"toolbarCollapse":"Aizv?rt r?kjoslu","toolbarExpand":"Atv?rt r?kjoslu","toolbarGroups":{"document":"Dokuments","clipboard":"Starpliktuve/Atcelt","editing":"Labošana","forms":"Formas","basicstyles":"Pamata stili","paragraph":"Paragr?fs","links":"Saites","insert":"Ievietot","styles":"Stili","colors":"Kr?sas","tools":"R?ki"},"toolbars":"Redaktora r?kjoslas"},"elementspath":{"eleLabel":"Elementa ce?š","eleTitle":"%1 elements"},"list":{"bulletedlist":"Pievienot/No?emt vienk?ršu sarakstu","numberedlist":"Numur?ts saraksts"},"indent":{"indent":"Palielin?t atk?pi","outdent":"Samazin?t atk?pi"},"find":{"find":"Mekl?t","findOptions":"Mekl?t uzst?d?jumi","findWhat":"Mekl?t:","matchCase":"Re?istrj?t?gs","matchCyclic":"Sakrist cikliski","matchWord":"J?sakr?t piln?b?","notFoundMsg":"Nor?d?t? fr?ze netika atrasta.","replace":"Nomain?t","replaceAll":"Aizvietot visu","replaceSuccessMsg":"%1 gad?jums(i) aizvietoti","replaceWith":"Nomain?t uz:","title":"Mekl?t un aizvietot"},"fakeobjects":{"anchor":"Iez?me","flash":"Flash anim?cija","hiddenfield":"Sl?pts lauks","iframe":"Iframe","unknown":"Nezin?ms objekts"},"flash":{"access":"Skripta pieeja","accessAlways":"Vienm?r","accessNever":"Nekad","accessSameDomain":"Tas pats dom?ns","alignAbsBottom":"Absol?ti apakš?","alignAbsMiddle":"Absol?ti vertik?li centr?ts","alignBaseline":"Pamatrind?","alignTextTop":"Teksta augš?","bgcolor":"Fona kr?sa","chkFull":"Pilnekr?ns","chkLoop":"Nep?rtraukti","chkMenu":"At?aut Flash izv?lni","chkPlay":"Autom?tiska atska?ošana","flashvars":"Flash main?gie","hSpace":"Horizont?l? telpa","properties":"Flash ?paš?bas","propertiesTab":"Uzst?d?jumi","quality":"Kvalit?te","qualityAutoHigh":"Autom?tiski Augsta","qualityAutoLow":"Autom?tiski Zema","qualityBest":"Lab?k?","qualityHigh":"Augsta","qualityLow":"Zema","qualityMedium":"Vid?ja","scale":"Main?t izm?ru","scaleAll":"R?d?t visu","scaleFit":"Prec?zs izm?rs","scaleNoBorder":"Bez r?mja","title":"Flash ?paš?bas","vSpace":"Vertik?l? telpa","validateHSpace":"Hspace j?b?t skaitlim","validateSrc":"L?dzu nor?di hipersaiti","validateVSpace":"Vspace j?b?t skaitlim","windowMode":"Loga rež?ms","windowModeOpaque":"Necaursp?d?gs","windowModeTransparent":"Caursp?d?gs","windowModeWindow":"Logs"},"font":{"fontSize":{"label":"Izm?rs","voiceLabel":"Fonta izme?s","panelTitle":"Izm?rs"},"label":"Šrifts","panelTitle":"Šrifts","voiceLabel":"Fonts"},"forms":{"button":{"title":"Pogas ?paš?bas","text":"Teksts (v?rt?ba)","type":"Tips","typeBtn":"Poga","typeSbm":"Nos?t?t","typeRst":"Atcelt"},"checkboxAndRadio":{"checkboxTitle":"Atz?m?šanas kast?tes ?paš?bas","radioTitle":"Izv?les poga ?paš?bas","value":"V?rt?ba","selected":"Iez?m?ts"},"form":{"title":"Formas ?paš?bas","menu":"Formas ?paš?bas","action":"Darb?ba","method":"Metode","encoding":"Kod?jums"},"hidden":{"title":"Pasl?pt?s teksta rindas ?paš?bas","name":"Nosaukums","value":"V?rt?ba"},"select":{"title":"Iez?m?šanas lauka ?paš?bas","selectInfo":"Inform?cija","opAvail":"Pieejam?s iesp?jas","value":"V?rt?ba","size":"Izm?rs","lines":"rindas","chkMulti":"At?aut vair?kus iez?m?jumus","opText":"Teksts","opValue":"V?rt?ba","btnAdd":"Pievienot","btnModify":"Veikt izmai?as","btnUp":"Augšup","btnDown":"Lejup","btnSetValue":"Noteikt k? iez?m?to v?rt?bu","btnDelete":"Dz?st"},"textarea":{"title":"Teksta laukuma ?paš?bas","cols":"Kolonnas","rows":"Rindas"},"textfield":{"title":"Teksta rindas ?paš?bas","name":"Nosaukums","value":"V?rt?ba","charWidth":"Simbolu platums","maxChars":"Simbolu maksim?lais daudzums","type":"Tips","typeText":"Teksts","typePass":"Parole","typeEmail":"Email","typeSearch":"Search","typeTel":"Telephone Number","typeUrl":"Adrese"}},"format":{"label":"Form?ts","panelTitle":"Form?ts","tag_address":"Adrese","tag_div":"Rindkopa (DIV)","tag_h1":"Virsraksts 1","tag_h2":"Virsraksts 2","tag_h3":"Virsraksts 3","tag_h4":"Virsraksts 4","tag_h5":"Virsraksts 5","tag_h6":"Virsraksts 6","tag_p":"Norm?ls teksts","tag_pre":"Format?ts teksts"},"horizontalrule":{"toolbar":"Ievietot horizont?lu Atdal?t?jsv?tru"},"iframe":{"border":"R?d?t r?mi","noUrl":"Nor?diet iframe adresi","scrolling":"At?aut ritjoslas","title":"IFrame uzst?d?jumi","toolbar":"IFrame"},"image":{"alertUrl":"L?dzu nor?d?t att?la hipersaiti","alt":"Alternat?vais teksts","border":"R?mis","btnUpload":"Nos?t?t serverim","button2Img":"Vai v?laties p?rveidot izv?l?to att?la pogu uz att?la?","hSpace":"Horizont?l? telpa","img2Button":"Vai v?laties p?rveidot izv?l?to att?lu uz att?la pogas?","infoTab":"Inform?cija par att?lu","linkTab":"Hipersaite","lockRatio":"Nemain?ga Augstuma/Platuma attiec?ba","menu":"Att?la ?paš?bas","resetSize":"Atjaunot s?kotn?jo izm?ru","title":"Att?la ?paš?bas","titleButton":"Att?lpogas ?paš?bas","upload":"Augšupiel?d?t","urlMissing":"Tr?kst att?la atrašan?s adrese.","vSpace":"Vertik?l? telpa","validateBorder":"Apmalei j?b?t veselam skaitlim","validateHSpace":"HSpace j?b?t veselam skaitlim","validateVSpace":"VSpace j?b?t veselam skaitlim"},"smiley":{"options":"Smaidi?u uzst?d?jumi","title":"Ievietot smaidi?u","toolbar":"Smaidi?i"},"justify":{"block":"Izl?dzin?t malas","center":"Izl?dzin?t pret centru","left":"Izl?dzin?t pa kreisi","right":"Izl?dzin?t pa labi"},"link":{"acccessKey":"Pieejas tausti?š","advanced":"Izv?rstais","advisoryContentType":"Konsultat?vs satura tips","advisoryTitle":"Konsultat?vs virsraksts","anchor":{"toolbar":"Ievietot/Labot iez?mi","menu":"Labot iez?mi","title":"Iez?mes uzst?d?jumi","name":"Iez?mes nosaukums","errorName":"L?dzu nor?diet iez?mes nosaukumu","remove":"No?emt iez?mi"},"anchorId":"P?c elementa ID","anchorName":"P?c iez?mes nosaukuma","charset":"Pievienot? resursa kod?jums","cssClasses":"Stilu saraksta klases","emailAddress":"E-pasta adrese","emailBody":"Zi?as saturs","emailSubject":"Zi?as t?ma","id":"ID","info":"Hipersaites inform?cija","langCode":"Valodas kods","langDir":"Valodas las?šanas virziens","langDirLTR":"No kreis?s uz labo (LTR)","langDirRTL":"No lab?s uz kreiso (RTL)","menu":"Labot hipersaiti","name":"Nosaukums","noAnchors":"(Šaj? dokument? nav iez?mju)","noEmail":"L?dzu nor?di e-pasta adresi","noUrl":"L?dzu nor?di hipersaiti","other":"<cits>","popupDependent":"Atkar?gs (Netscape)","popupFeatures":"Uznirstoš? loga nosaukums ?paš?bas","popupFullScreen":"Piln? ekr?n? (IE)","popupLeft":"Kreis? koordin?te","popupLocationBar":"Atrašan?s vietas josla","popupMenuBar":"Izv?lnes josla","popupResizable":"M?rogojams","popupScrollBars":"Ritjoslas","popupStatusBar":"Statusa josla","popupToolbar":"R?ku josla","popupTop":"Augš?j? koordin?te","rel":"Rel?cija","selectAnchor":"Izv?l?ties iez?mi","styles":"Stils","tabIndex":"Ci??u indekss","target":"M?r?is","targetFrame":"<ietvars>","targetFrameName":"M?r?a ietvara nosaukums","targetPopup":"<uznirstoš? log?>","targetPopupName":"Uznirstoš? loga nosaukums","title":"Hipersaite","toAnchor":"Iez?me šaj? lap?","toEmail":"E-pasts","toUrl":"Adrese","toolbar":"Ievietot/Labot hipersaiti","type":"Hipersaites tips","unlink":"No?emt hipersaiti","upload":"Augšupiel?d?t"},"liststyle":{"armenian":"Arm??u skait?i","bulletedTitle":"Vienk?rša saraksta uzst?d?jumi","circle":"Aplis","decimal":"Decim?lie (1, 2, 3, utt)","decimalLeadingZero":"Decim?lie ar nulli (01, 02, 03, utt)","disc":"Disks","georgian":"Gruz??u skait?i (an, ban, gan, utt)","lowerAlpha":"Mazie alfab?ta (a, b, c, d, e, utt)","lowerGreek":"Mazie grie?u (alfa, beta, gamma, utt)","lowerRoman":"Mazie rom??u (i, ii, iii, iv, v, utt)","none":"Nekas","notset":"<nav nor?d?ts>","numberedTitle":"Numur?ta saraksta uzst?d?jumi","square":"Kvadr?ts","start":"S?kt","type":"Tips","upperAlpha":"Lielie alfab?ta (A, B, C, D, E, utt)","upperRoman":"Lielie rom??u (I, II, III, IV, V, utt)","validateStartNumber":"Saraksta s?kuma numuram j?b?t veselam skaitlim"},"magicline":{"title":"Insert paragraph here"},"maximize":{"maximize":"Maksimiz?t","minimize":"Minimiz?t"},"newpage":{"toolbar":"Jauna lapa"},"pagebreak":{"alt":"Lapas p?rnesums","toolbar":"Ievietot lapas p?rtraukumu drukai"},"pastetext":{"button":"Ievietot k? vienk?ršu tekstu","title":"Ievietot k? vienk?ršu tekstu"},"pastefromword":{"confirmCleanup":"Teksts, kuru v?laties iel?m?t, izskat?s ir nokop?ts no Word. Vai v?laties to izt?r?t pirms iel?m?šanas?","error":"Iekš?jas k??das d??, neizdev?s izt?r?t iel?m?tos datus.","title":"Ievietot no Worda","toolbar":"Ievietot no Worda"},"preview":{"preview":"Priekšskat?t"},"print":{"toolbar":"Druk?t"},"removeformat":{"toolbar":"No?emt stilus"},"save":{"toolbar":"Saglab?t"},"selectall":{"toolbar":"Iez?m?t visu"},"showblocks":{"toolbar":"Par?d?t blokus"},"sourcearea":{"toolbar":"HTML kods"},"specialchar":{"options":"Speci?lo simbolu uzst?d?jumi","title":"Ievietot ?pašu simbolu","toolbar":"Ievietot speci?lo simbolu"},"scayt":{"about":"Par SCAYT","aboutTab":"Par","addWord":"Pievienot v?rdu","allCaps":"Ignor?t v?rdus ar lielajiem burtiem","dic_create":"Izveidot","dic_delete":"Dz?st","dic_field_name":"V?rdn?cas nosaukums","dic_info":"S?kum? lietot?ja v?rdn?ca tiek glab?ta Cookie. Diemž?l, Cookie ir ierobežots izm?rs. Kad v?rdn?ca sasniegs izm?ru, ka to vairs nevar glab?t Cookie, t? tiks noglab?ta uz servera. Lai saglab?tu person?go v?rdn?cu uz j?su servera, jums j?nor?da t?s nosaukums. Ja j?s jau esiet noglab?juši v?rdn?cu, l?dzu ierakstiet t?s nosaukum un nospiediet Atjaunot pogu.","dic_rename":"P?rsaukt","dic_restore":"Atjaunot","dictionariesTab":"V?rdn?cas","disable":"Atsl?gt SCAYT","emptyDic":"V?rdn?cas nosaukums nevar b?t tukšs.","enable":"Iesl?gt SCAYT","ignore":"Ignor?t","ignoreAll":"Ignor?t visu","ignoreDomainNames":"Ignor?t dom?nu nosaukumus","langs":"Valodas","languagesTab":"Valodas","mixedCase":"Ignor?t v?rdus ar jauktu re?istru burtiem","mixedWithDigits":"Ignor?t v?rdus ar skait?iem","moreSuggestions":"Vair?k ieteikumi","opera_title":"Opera neatbalsta","options":"Uzst?d?jumi","optionsTab":"Uzst?d?jumi","title":"P?rbaud?t gramatiku rakstot","toggle":"P?rsl?gt SCAYT","noSuggestions":"No suggestion"},"stylescombo":{"label":"Stils","panelTitle":"Format?šanas stili","panelTitle1":"Bloka stili","panelTitle2":"iek?autie stili","panelTitle3":"Objekta stili"},"table":{"border":"R?mja izm?rs","caption":"Le?enda","cell":{"menu":"Š?na","insertBefore":"Pievienot š?nu pirms","insertAfter":"Pievienot š?nu p?c","deleteCell":"Dz?st r?ti?as","merge":"Apvienot r?ti?as","mergeRight":"Apvieno pa labi","mergeDown":"Apvienot uz leju","splitHorizontal":"Sadal?t š?nu horizont?li","splitVertical":"Sadal?t š?nu vertik?li","title":"Š?nas uzst?d?jumi","cellType":"Š?nas tips","rowSpan":"Apvienotas rindas","colSpan":"Apvienotas kolonas","wordWrap":"V?rdu p?rnese","hAlign":"Horizont?lais novietojums","vAlign":"Vertik?lais novietojums","alignBaseline":"Pamatrinda","bgColor":"Fona kr?sa","borderColor":"R?mja kr?sa","data":"Dati","header":"Virsraksts","yes":"J?","no":"N?","invalidWidth":"Š?nas platumam j?b?t skaitlim","invalidHeight":"Š?nas augstumam j?b?t skaitlim","invalidRowSpan":"Apvienojamo rindu skaitam j?b?t veselam skaitlim","invalidColSpan":"Apvienojamo kolonu skaitam j?b?t veselam skaitlim","chooseColor":"Izv?l?ties"},"cellPad":"R?ti?u nob?de","cellSpace":"R?ti?u atstatums","column":{"menu":"Kolonna","insertBefore":"Ievietot kolonu pirms","insertAfter":"Ievieto kolonu p?c","deleteColumn":"Dz?st kolonnas"},"columns":"Kolonnas","deleteTable":"Dz?st tabulu","headers":"Virsraksti","headersBoth":"Abi","headersColumn":"Pirm? kolona","headersNone":"Nekas","headersRow":"Pirm? rinda","invalidBorder":"R?mju izm?ram j?b?t skaitlim","invalidCellPadding":"Š?nu atk?p?m j?b?t pozit?vam skaitlim","invalidCellSpacing":"Š?nu atstarp?m j?b?t pozit?vam skaitlim","invalidCols":"Kolonu skaitam j?b?t liel?kam par 0","invalidHeight":"Tabulas augstumam j?b?t skaitlim","invalidRows":"Rindu skaitam j?b?t liel?kam par 0","invalidWidth":"Tabulas platumam j?b?t skaitlim","menu":"Tabulas ?paš?bas","row":{"menu":"Rinda","insertBefore":"Ievietot rindu pirms","insertAfter":"Ievietot rindu p?c","deleteRow":"Dz?st rindas"},"rows":"Rindas","summary":"Anot?cija","title":"Tabulas ?paš?bas","toolbar":"Tabula","widthPc":"procentu?li","widthPx":"pikse?os","widthUnit":"platuma m?rvien?ba"},"undo":{"redo":"Atk?rtot","undo":"Atcelt"},"wsc":{"btnIgnore":"Ignor?t","btnIgnoreAll":"Ignor?t visu","btnReplace":"Aizvietot","btnReplaceAll":"Aizvietot visu","btnUndo":"Atcelt","changeTo":"Nomain?t uz","errorLoading":"K??da iel?d?jot aplik?cijas servisa adresi: %s.","ieSpellDownload":"Pareizrakst?bas p?rbaud?t?js nav pievienots. Vai v?laties to lejupiel?d?t tagad?","manyChanges":"Pareizrakst?bas p?rbaude pabeigta: %1 v?rdi tika main?ti","noChanges":"Pareizrakst?bas p?rbaude pabeigta: nekas netika labots","noMispell":"Pareizrakst?bas p?rbaude pabeigta: k??das netika atrastas","noSuggestions":"- Nav ieteikumu -","notAvailable":"Atvainojiet, bet serviss šobr?d nav pieejams.","notInDic":"Netika atrasts v?rdn?c?","oneChange":"Pareizrakst?bas p?rbaude pabeigta: 1 v?rds izmain?ts","progress":"Notiek pareizrakst?bas p?rbaude...","title":"P?rbaud?t gramatiku","toolbar":"Pareizrakst?bas p?rbaude"}};

pick-complete-translations.py (https://gitlab.com/AntoninCurtit/fdroid-website) Python · 107 lines

12

13 LOCALE_REGEX = re.compile(

14 r'(?:_data/|po/_(?:docs|pages|posts)\.)(.*)(?:/(?:strings|tutorials)\.json|\.po)'

85

86 email_pattern = re.compile(r'by (.*?) <(.*)>$')

87

97

98 m = LOCALE_REGEX.match(f)

99 if m and m.group(1) in merge_locales:

104 repo.git.cherry_pick(str(commit))

105 m = email_pattern.search(commit.summary)

106 if m:

107 email = m.group(1) + ' <' + m.group(2) + '>'

108

django.po (git://github.com/django/django.git) Portable Object · 1171 lines

312

313 msgid "Enter a valid email address."

314 msgstr "یک ایمیل آدرس معتبر وارد کنید."

500

501 msgid "Email address"

502 msgstr "نشانی پست الکترونیکی"

account_controller_test.rb (https://bitbucket.org/redmine/redmine/) Ruby · 458 lines ✨ Summary

This is a set of unit tests for a Ruby application, specifically testing user registration and password recovery functionality. The tests cover various scenarios, such as successful registration, password recovery with valid token, invalid token, and non-active users. They ensure that the application behaves correctly in different situations, providing a safety net against bugs or security vulnerabilities.

20 class AccountControllerTest < Redmine::ControllerTest

21 fixtures :users, :email_addresses, :roles

22

158

159 def test_login_as_registered_user_with_email_activation_should_propose_new_activation_email

160 User.find(2).update_attribute :status, User::STATUS_REGISTERED

165 assert_equal 2, @request.session[:registered_user_id]

166 assert_include 'new activation email', flash[:error]

167 end

336

337 def test_lost_password_using_additional_email_address_should_send_email_to_the_address

338 EmailAddress.create!(:user_id => 2, :address => 'anotherAddress@foo.bar')

434

435 def test_activation_email_should_send_an_activation_email

436 User.find(2).update_attribute :status, User::STATUS_REGISTERED

gae.py (https://gitlab.com/sunkistm/gitlab-web2py) Python · 105 lines

45 def deploy():

46 regex = re.compile('^\w+$')

47 apps = sorted(

48 file for file in os.listdir(apath(r=request)) if regex.match(file))

49 form = SQLFORM.factory(

56 label=T('web2py apps to deploy')),

57 Field('email', requires=IS_EMAIL(), label=T('GAE Email')),

58 Field('password', 'password', requires=IS_NOT_EMPTY(), label=T('GAE Password')))

66 if not item in form.vars.applications]

67 regex = re.compile('\(applications/\(.*')

68 yaml = apath('../app.yaml', r=request)

74 form.vars.google_application_id, data)

75 data = regex.sub(

76 '(applications/(%s)/.*)|' % '|'.join(ignore_apps), data)

forms.py (https://github.com/coto/beecoss.git) Python · 115 lines

45 "Field cannot be longer than %(max)d characters.")),

46 validators.regexp(utils.VALID_USERNAME_REGEXP, message=_(

47 "Username invalid. Use only letters and numbers."))])

62 validators.Length(max=FIELD_MAXLENGTH, message=_("Field cannot be longer than %(max)d characters.")),

63 validators.regexp(utils.NAME_LASTNAME_REGEXP, message=_(

64 "Last Name invalid. Use only letters and numbers."))])

67 class EmailMixin(BaseForm):

68 email = fields.TextField(_('Email'), [validators.Required(),

69 validators.Length(min=8, max=FIELD_MAXLENGTH, message=_(

70 "Field must be between %(min)d and %(max)d characters long.")),

71 validators.regexp(utils.EMAIL_REGEXP, message=_('Invalid email address.'))])

72

109 "Field must be between %(min)d and %(max)d characters long.")),

110 validators.regexp(utils.EMAIL_REGEXP,

111 message=_('Invalid email address.'))])

forms.py (https://gitlab.com/geoxperience/geoxp) Python · 52 lines

24 ''' Represents a registration form that will receive user sign up info '''

25 email = forms.EmailField(widget=forms.TextInput(

26 attrs=dict(required=True, max_length=30)), label=_("E-mail:"))

27 username = forms.RegexField(regex=r'^\w+$', widget=forms.TextInput(attrs=dict(required=True, max_length=50)), label=_(

28 u"Usuário:"), error_messages={'invalid': _("Este campo aceita apenas letras, números e underline.")})

dnsnames.py (https://gitlab.com/unofficial-mirrors/openshift-origin) Python · 125 lines

56 class CheckValidityOfDnsnames(object):

57 # if this regex matches in any way, it can't be dnsname

58 NOT_DNSNAME_REGEX = re.compile('[^a-zA-Z0-9\-.*]')

71 # cause either unicode to fail, or they will stay in idna

72 # encoding and caught by regex

73 try:

81 idna_name = utf_name.encode('idna')

82 for match in CheckValidityOfDnsnames.NOT_DNSNAME_REGEX.findall(

83 idna_name):

85 if match == '@':

86 reason = 'suspected email address'

87 obs = InvalidCharacter(reason,

0001_initial.py (https://gitlab.com/fnaticshank/drf) Python · 49 lines

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

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

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

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

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

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

ChangeLog (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 3751 lines

625 and visited links. Page groups (per process only) is a feature making it possible to use

626 separate settings for each group, so that for instance an integrated browser/email reader

627 can use different settings for displaying HTML pages and HTML email. To make QtWebKit work

models.py (https://gitlab.com/gregtyka/frankenserver) Python · 134 lines

31 settings.AUTH_PROFILE_MODULE = 'foo.bar'

32 with six.assertRaisesRegex(self, SiteProfileNotAvailable,

33 "Unable to load the profile model"):

77 def test_create_user(self):

78 email_lowercase = 'normal@normal.com'

79 user = User.objects.create_user('user', email_lowercase)

80 self.assertEqual(user.email, email_lowercase)

81 self.assertEqual(user.username, 'user')

83

84 def test_create_user_email_domain_normalize_rfc3696(self):

85 # According to http://tools.ietf.org/html/rfc3696#section-3

94 def test_create_user_email_domain_normalize_with_whitespace(self):

95 returned = UserManager.normalize_email('email\ with_whitespace@D.COM')

96 self.assertEqual(returned, 'email\ with_whitespace@d.com')

__init__.py (https://github.com/codeinn/vcs.git) Python · 190 lines

154

155 def author_email(author):

156 """

157 returns email address of given author.

158 If any of <,> sign are found, it fallbacks to regex findall()

160

161 Regex taken from http://www.regular-expressions.info/email.html

162 """

167 if l == -1 or r == -1:

168 # fallback to regex match of email out of a string

169 email_re = re.compile(r"""[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!"""

172 r"""*[a-z0-9])?""", re.IGNORECASE)

173 m = re.findall(email_re, author)

174 return m[0] if m else ''

test_repo.rb (git://github.com/mojombo/grit.git) Ruby · 419 lines ✨ Summary

This is a test of the Grit::Repo class in Ruby. It creates an instance of the class and tests various methods on it, such as log, commit_deltas_from, and select_existing_objects.

109 assert_equal "Tom Preston-Werner", c.author.name

110 assert_equal "tom@mojombo.com", c.author.email

111 assert_equal Time.at(1191999972), c.authored_date

112 assert_equal "Tom Preston-Werner", c.committer.name

113 assert_equal "tom@mojombo.com", c.committer.email

114 assert_equal Time.at(1191999972), c.committed_date

130 assert_equal "634396b2f541a9f2d58b00be1a07f0c358b999b3", commits[1].id

131 assert_equal "tom@mojombo.com", commits[0].author.email

132 assert_equal "tom@mojombo.com", commits[1].author.email

144 assert_equal "634396b2f541a9f2d58b00be1a07f0c358b999b3", commits[2].id

145 assert_equal "tom@mojombo.com", commits[0].author.email

146 assert_equal "tom@mojombo.com", commits[2].author.email

networks_update_vpn.py (https://gitlab.com/jnoennig/burpy) Python · 146 lines

5 Author Name: Jason Noennig

6 Author Email: jnoennig@protonmail.com

7 Copyright 2016 Jason Noennig

35 if bool(mode) is True:

36 regex_mode = re.compile('hub|spoke|none')

37 mode = mode.lower()

38 match_mode = regex_mode.search(mode)

39 if match_mode:

67 subnet_lst = []

68 regex_subnet = re.compile("^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$")

69 for subnet in subnets:

70 match_sub = regex_subnet.search(subnet['localSubnet'])

71 if match_sub is True:

test_utils.py (https://gitlab.com/mcepl/did) Python · 132 lines

19 ''' Confirm regex works as we would expect for extracting

20 name, login and email from standard email strings'''

21 from did.utils import EMAIL_REGEXP

24 x = '"Chris Ward" <cward@redhat.com>'

25 groups = EMAIL_REGEXP.search(x).groups()

26 assert len(groups) == 2

30 x = 'cward@redhat.com'

31 groups = EMAIL_REGEXP.search(x).groups()

32 assert len(groups) == 2

37 x = 'cward'

38 groups = EMAIL_REGEXP.search(x)

39 assert groups is None

42 x = '"" <>'

43 groups = EMAIL_REGEXP.search(x)

44 assert groups is None

module.py (https://github.com/laurentb/weboob.git) Python · 83 lines

35 MAINTAINER = u'Vincent A'

36 EMAIL = 'dev@indigo.re'

37 LICENSE = 'AGPLv3+'

39 CONFIG = BackendConfig(

40 Value('url', label='URL of the zerobin/0bin/privatebin', regexp='https?://.*', default='https://zerobin.net'),

41 ValueBool('discussion', label='Allow paste comments (ZeroBin only)', default=False),

testcases.py (https://github.com/ethikkom/ecs.git) Python · 116 lines

9

10 from email import message_from_file

11 from email.iterators import typed_subpart_iterator

50 def convert_raw2message(data):

51 ''' Convert a raw message to a python email.Message Object '''

52 y=StringIO.StringIO(data)

57 def convert_message2raw(message):

58 ''' Convert a python email.Message Object to a raw message '''

59 return message.as_string()

62 def get_mimeparts(msg, maintype="*", subtype="*"):

63 ''' Takes a email.Message Object and returns a list of matching maintype, subtype message parts as list [[mimetype, rawdata]*] '''

64 l = []

87 def deliver(self, subject="test subject", message="test body", from_email="alice@example.org", recipient_list="bob@example.org", message_html=None, attachments=None, callback=None):

88 ''' just call our standard email deliver, prefilled values: subject, message, from_email, recipient_list '''

89 return ecsmail_deliver(subject, message, from_email, recipient_list, message_html, attachments, callback)

validator.py (https://gitlab.com/rajul/ovl) Python · 98 lines

7 EXPECTED_FIELDS = ("email", "name", "phone", "organisation", "group")

8 EMAIL_REGEX = re.compile(r'[^@]+@[^@]+\.[^@]+')

9 NAME_REGEX = re.compile(r'[a-zA-Z\-\'\s]+')

25 def validate_record_email_address(self):

26 print self.EMAIL_REGEX.match(self.data['email'])

27 if not self.EMAIL_REGEX.match(self.data['email']):

32 def validate_real_name(self):

33 if not self.NAME_REGEX.match(self.data['name']):

34 return False

57

58 if not self.validate_record_email_address():

59 return False

0001_initial.py (https://github.com/aseering/ESP-Website.git) Python · 205 lines

52 ('msgreq', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dbmail.MessageRequest'])),

53 ('textofemail', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['dbmail.TextOfEmail'], null=True, blank=True)),

54 ))

85 # Deleting model 'TextOfEmail'

86 db.delete_table('dbmail_textofemail')

87

91 # Deleting model 'EmailRequest'

92 db.delete_table('dbmail_emailrequest')

93

117 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),

118 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),

119 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),

154 'target': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),

155 'textofemail': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['dbmail.TextOfEmail']", 'null': 'True', 'blank': 'True'})

156 },

suspicious.py (https://gitlab.com/noc0lour/mailman) Python · 92 lines

47 def _parse_matching_header_opt(mlist):

48 """Return a list of triples [(field name, regex, line), ...]."""

49 # - Blank lines and lines with '#' as first char are skipped.

69 except re.error as error:

70 # The regexp was malformed. BAW: should do a better

71 # job of informing the list admin.

72 log.error("""\

73 bad regexp in bounce_matching_header line: %s

74 \n%s (cause: %s)""", mlist.display_name, value, error)

83 :param mlist: The mailing list the message is destined for.

84 :param msg: The email message object.

85 :return: True if a header field matches a regexp in the

module.py (https://github.com/laurentb/weboob.git) Python · 93 lines

35 MAINTAINER = u'Florent Fourcot'

36 EMAIL = 'weboob@flo.fourcot.fr'

37 VERSION = '2.1'

42 masked=False,

43 regexp='^(\d{8}|)$'),

44 ValueBackendPassword('password',

forms.py (https://github.com/julianceballos/busylissy.git) Python · 126 lines

19 class ProfileForm(ModelForm):

20 first_name = forms.RegexField(regex=alnum_re,

21 error_messages={'invalid':_(u'Can only contain letters, numbers and spaces')},

26

27 last_name = forms.RegexField(regex=alnum_re,

28 error_messages={'invalid':_(u'Can only contain letters, numbers and spaces')},

33

34 email = forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict,

35 max_length=75)),

47 user.last_name = self.cleaned_data['last_name']

48 user.email = self.cleaned_data['email']

49 user.save()

109 class InviteForm(forms.Form):

110 email = forms.EmailField(label=_(u'email address'))

111

url_handler.py (https://gitlab.com/gregtyka/frankenserver) Python · 158 lines

35 Args:

36 url_pattern: A re.RegexObject that matches URLs that should be handled by

37 this handler. It may also optionally bind groups.

102 handler.

103 url_pattern: A re.RegexObject that matches URLs that should be handled by

104 this handler. It may also optionally bind groups.

128 cookies = environ.get('HTTP_COOKIE')

129 email_addr, admin, _ = login.get_user_info(cookies)

130

134 if constants.FAKE_LOGGED_IN_HEADER in environ:

135 email_addr = 'Fake User'

136

137 # admin has an effect only with login: admin (not login: required).

138 if requires_login and not email_addr and not (admin and admin_only):

139 if auth_fail_action == appinfo.AUTH_FAIL_ACTION_REDIRECT:

protobuf_parser.py (https://bitbucket.org/jmcmorris/escape.git) Python · 103 lines

7

8 from pyparsing import (Word, alphas, alphanums, Regex, Suppress, Forward,

9 Group, oneOf, ZeroOrMore, Optional, delimitedList, Keyword,

12 ident = Word(alphas+"_",alphanums+"_").setName("identifier")

13 integer = Regex(r"[+-]?\d+")

14

71 required string name = 2;

72 optional string email = 3;

73 }"""

79 required int32 id = 2;

80 optional string email = 3;

81

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

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.')),

serializers.py (https://gitlab.com/00KuX/clicoh) Python · 80 lines

1 from django.contrib.auth import password_validation, authenticate

2 from django.core.validators import RegexValidator, FileExtensionValidator

3

19 'last_name',

20 'email',

21 )

23 class UserLoginSerializer(serializers.Serializer):

24 email = serializers.EmailField()

25 password = serializers.CharField(min_length=8, max_length=64)

41

42 email = serializers.EmailField(

43 validators=[UniqueValidator(queryset=User.objects.all())]

51

52 phone_regex = RegexValidator(

53 regex=r'\+?1?\d{9,15}$',

module.py (https://gitlab.com/phyks/weboob) Python · 117 lines

37 MAINTAINER = u'Roger Philibert'

38 EMAIL = 'roger.philibert@gmail.com'

39 VERSION = '1.3'

65 ID_REGEXP = r'/?\d+/[\dabcdef]+/?'

66 URL_REGEXP = r'.+/g/(%s)' % ID_REGEXP

67

68 def get_gallery(self, _id):

69 match = re.match(r'^%s$' % self.URL_REGEXP, _id)

70 if match:

72 else:

73 match = re.match(r'^%s$' % self.ID_REGEXP, _id)

74 if match:

openstack_horizon.py (https://gitlab.com/pbandark/sos) Python · 94 lines

44 protect_keys = [

45 "SECRET_KEY", "EMAIL_HOST_PASSWORD"

46 ]

47

48 regexp = r"((?m)^\s*(%s)\s*=\s*)(.*)" % "|".join(protect_keys)

49 self.do_path_regex_sub("/etc/openstack-dashboard/.*\.json",

50 regexp, r"\1*********")

51 self.do_path_regex_sub("/etc/openstack-dashboard/local_settings",

52 regexp, r"\1*********")

53

ChangeLog-2009-06-16 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 39979 lines

33 (JSC::JIT::privateCompileGetByIdChain):

34 * yarr/RegexJIT.cpp:

35 (JSC::Yarr::RegexGenerator::compile):

310

311 * ChangeLog-2007-10-14: Change pseudonym "Don Gibson" to me (was used while Google Chrome was not public); update my email address.

312

623 Add changes necessary to allow YARR jit to build on this platform, disabled.

624 * yarr/RegexJIT.cpp:

625 (JSC::Yarr::RegexGenerator::generateEnter):

626 (JSC::Yarr::RegexGenerator::generateReturn):

627 Add support to these methods for ARMv7.

994 (JSC::JITThunks::ctiNativeCallThunk):

995 * yarr/RegexJIT.h:

996 (JSC::Yarr::RegexCodeBlock::operator!):

test_old_mailbox.py (https://gitlab.com/envieidoc/Clover) Python · 152 lines

99 ### should be better!

100 import email.parser

101 fname = self.createMessage("cur", True)

104 for msg in mailbox.PortableUnixMailbox(f,

105 email.parser.Parser().parse):

106 n += 1

118

119 def test_from_regex (self):

120 # Testing new regex from bug #1633678

forms.py (https://bitbucket.org/vidya0911/yats.git) Python · 160 lines

9 subject = forms.CharField()

10 mail = forms.EmailField(required=False)

11 message = forms.CharField()

36 }

37 username = forms.RegexField(label="Username", max_length=30,

38 regex=r'^[\w.@_]+$',

54 "first_name", "last_name",

55 "email", "mobile",

56 "address", "city", "state" , "pincode" , "country")

100 }

101 username = forms.RegexField(label="Username ", max_length=30,

102 regex=r'^[\w.@_]+$',

120 "first_name", "last_name",

121 "email", "mobile",

122 "address", "city", "state", "pincode", "country")

test_flare.py (https://gitlab.com/meetly/dd-agent) Python · 172 lines

79 f = Flare(case_id=1337)

80 f._ask_for_email = lambda: 'test@example.com'

81

94 self.assertEqual(kwargs['data']['case_id'], 1337)

95 self.assertEqual(kwargs['data']['email'], 'test@example.com')

96 assert kwargs['data']['hostname']

104 f = Flare()

105 f._ask_for_email = lambda: 'test@example.com'

106

119 self.assertEqual(kwargs['data']['case_id'], None)

120 self.assertEqual(kwargs['data']['email'], 'test@example.com')

121 assert kwargs['data']['hostname']

128 f = Flare()

129 f._ask_for_email = lambda: None

130 try:

0001_initial.py (https://gitlab.com/caraclarke/passit-backend) Python · 100 lines

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

29 ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),

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

35 ('client_salt', models.CharField(max_length=512, validators=[django.core.validators.MinLengthValidator(12)])),

36 ('public_key', access.models.PublicKeyField(max_length=900, validators=[django.core.validators.RegexValidator(message='Not a public key', regex='^-----BEGIN (RSA )?PUBLIC KEY-----.*'), django.core.validators.RegexValidator(message='Not a public key', regex='.*-----END (RSA )?PUBLIC KEY-----$'), django.core.validators.MinLengthValidator(400)])),

37 ('private_key', models.TextField(help_text='Must be encrypted using passphrase', max_length=8000, validators=[django.core.validators.RegexValidator(message='Not a private key', regex='^-----BEGIN ENCRYPTED PRIVATE KEY-----.*'), django.core.validators.RegexValidator(message='Not a private key', regex='.*-----END ENCRYPTED PRIVATE KEY-----$'), django.core.validators.MinLengthValidator(1500)])),

52 ('slug', models.SlugField(default='default-slug', max_length=1000)),

53 ('public_key', access.models.PublicKeyField(max_length=900, validators=[django.core.validators.RegexValidator(message='Not a public key', regex='^-----BEGIN (RSA )?PUBLIC KEY-----.*'), django.core.validators.RegexValidator(message='Not a public key', regex='.*-----END (RSA )?PUBLIC KEY-----$'), django.core.validators.MinLengthValidator(400)])),

54 ],

settings.py (https://bitbucket.org/the7bits/sshop.git) Python · 92 lines

10 ('django.forms.CharField', _('Text')),

11 ('django.forms.EmailField', _('E-mail address')),

12 ('django.forms.URLField', _('Web address')),

22 ('django.forms.ModelMultipleChoiceField', _('Model Multiple Choice')),

23 ('django.forms.RegexField', _('Regex')),

24 ('django.forms.FileField', _('File')),

eml_to_csv.py (https://bitbucket.org/chrisgalpin/eml-to-csv-windows-live-mail) Python · 230 lines ✨ Summary

This Python script converts email files (.eml) to CSV format, extracting contact information such as name, email address, date, subject, and folder. It reads email files from a specified directory, parses the header and body of each email, and extracts relevant data. The extracted data is then written to a CSV file for further analysis or processing.

12

13 cRegEx = re.compile(regEx)

14

90 else:

91 email = rawContact[emailBracketIdx:]

92

208 email = g_email(rawContact)

209 if (email.lower() in emails):

210 continue

211 emails.add(email.lower())

212

215 folder = g_folder(file, emlFolder)

216 contact = {'name':name, 'email':email, 'date':date, 'subject':subject, 'folder':folder}

217 contacts.append(contact)

module.py (https://github.com/laurentb/weboob.git) Python · 80 lines

38 MAINTAINER = 'Vincent A'

39 EMAIL = 'dev@indigo.re'

40 LICENSE = 'AGPLv3+'

41 VERSION = '2.1'

42 CONFIG = BackendConfig(Value('url', label='URL of the tumblr', regexp='https?://.+'))

43

0001_initial.py (https://gitlab.com/cavadu/mercatitulo) Python · 44 lines

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

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

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

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

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

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

common.py (https://github.com/tymofij/adofex.git) Python · 112 lines

60 # Custom EditProfileForm

61 url(regex = r'^accounts/(?P<username>(?!signout|signup|signin)[\.\w]+)/$',

62 view = login_required(txcommon_profile_edit),

65

66 url(regex = r'^accounts/(?P<username>[\.\w]+)/password/$',

67 view = 'txcommon.views.password_change_custom',

69

70 url(regex = r'^accounts/(?P<username>[\.\w]+)/email/$',

71 view = login_required(userena_views.email_change),

72 name = 'userena_email_change'),

73

74 url(regex = r'^accounts/(?P<username>[\.\w]+)/password/$',

75 view = login_required(userena_views.password_change),

forms.py (https://github.com/kstosiek/zapisy_zosia.git) Python · 165 lines

40

41 email = forms.EmailField(required=True)

42 password = forms.CharField(widget=forms.PasswordInput())

70 x = x.replace(' ','') # remove spaces

71 # TODO: regex here!

72 # [a-ż]+(-[a-ż]+)* for surnames ? ;)

gapps_google_mail_settings_sample.csproj (http://google-gdata.googlecode.com/svn/trunk/) MSBuild · 104 lines

73 </Compile>

74 <Compile Include="googlemailsettingsdemo.cs" />

75 </ItemGroup>

validator.py (https://gitlab.com/rajul/ovl-work) Python · 231 lines

21 EXPECTED_FIELDS = ("email", "name", "phone", "organisation", "group")

22 EMAIL_REGEX = re.compile(r'[^@]+@[^@]+\.[^@]+')

23 NAME_REGEX = re.compile(r'^[a-zA-Z]+$')

39 def validate_record_email_address(self):

40 if not self.EMAIL_REGEX.match(self.data['email']):

41 return False

45 def validate_real_name(self):

46 if not self.NAME_REGEX.match(self.data['name']):

47 return False

67

68 if not self.validate_record_email_address():

69 return False

0012_auto__add_unique_package_repo_url.py (https://github.com/pythonchelle/opencomparison.git) Python · 137 lines

37 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),

38 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),

39 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),

117 'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'blank': 'True'}),

118 'repo_regex': ('django.db.models.fields.CharField', [], {'max_length': "'100'", 'blank': 'True'}),

119 'slug_regex': ('django.db.models.fields.CharField', [], {'max_length': "'100'", 'blank': 'True'}),

121 'url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),

122 'user_regex': ('django.db.models.fields.CharField', [], {'max_length': "'100'", 'blank': 'True'})

123 },

forms.py (https://github.com/Boldewyn/kuma.git) Python · 64 lines

20 # Email is on the form, but is handled in the view separately

21 email = forms.EmailField(label=_('Email'), required=True)

22

34 self.fields['websites_%s' % name] = forms.RegexField(

35 regex=meta['regex'], required=False)

36 self.fields['websites_%s' % name].widget.attrs['placeholder'] = meta['prefix']

53 try:

54 user = User.objects.get(email=self.cleaned_data.get('email'))

55 beta_group = Group.objects.get(

forms.py (https://gitlab.com/fbi/arguman.org) Python · 93 lines

20 class RegistrationForm(UserCreationForm):

21 username = forms.RegexField(

22 label=_("Username"),

23 max_length=30, regex=re.compile(r'^[\w\s-]+$', re.LOCALE),

24 help_text=_('Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.'),

30 class Meta(UserCreationForm.Meta):

31 fields = ("username", "email")

32 model = Profile

57 class Meta(UserCreationForm.Meta):

58 fields = ("first_name", "last_name", "email", "twitter_username",

59 "notification_email")

__init__.py (https://github.com/digi604/python-postmark.git) Python · 105 lines

22 - Tag support (.tag) added

23 - Fixed the email endpoint

24 - Fixed a Django backend issue for multiple recipients (max 20)

67 POSTMARK_API_KEY = 'your-key'

68 POSTMARK_SENDER = '<From Name> from@emailaddress.com'

69

98 TODO:

99 Add automatic multipart emails via regex stripping of HTML tags from html_body

100 if the .multipart property is set to True

forms.py (https://github.com/strogo/ella.git) Python · 138 lines

90 hidden = forms.HiddenInput()

91 self.fields['gonzo'] = forms.RegexField(self.init_props['gonzo'], widget=hidden)

92 self.fields['target'] = forms.RegexField(r'\d+%s\d+' % ':', max_length=128, widget=hidden)

97 textarea = forms.Textarea()

98 self.fields['sender_mail'] = forms.EmailField(label=_("Sender email:"))

99 self.fields['sender_name'] = forms.CharField(max_length=40, required=False, label=_("Sender name:"))

100 self.fields['recipient_mail'] = forms.EmailField(label=_("Recipient email:"))

101 self.fields['custom_message'] = forms.CharField(max_length=300, required=False, widget=textarea, label=_("Email message:"))

135 """any other normal inputs"""

136 self.fields['sender_mail'] = forms.EmailField(label=_("Sender email:"))

137 self.fields['recipient_mail'] = forms.EmailField(label=_("Recipient email:"))

metadata.py (https://gitlab.com/asmjahid/django-rest-framework) Python · 149 lines

43 serializers.URLField: 'url',

44 serializers.EmailField: 'email',

45 serializers.RegexField: 'regex',

runtime_whitespace_regex_test.py (https://gitlab.com/ricardo.hernandez/salt) Python · 108 lines

86

87 class TestRuntimeWhitespaceRegex(TestCase):

88

89 def test_single_quotes(self):

90 regex = build_whitespace_split_regex(SINGLE_TXT)

91 self.assertTrue(re.search(regex, MATCH))

93 def test_double_quotes(self):

94 regex = build_whitespace_split_regex(DOUBLE_TXT)

95 self.assertTrue(re.search(regex, MATCH))

97 def test_single_and_double_quotes(self):

98 regex = build_whitespace_split_regex(SINGLE_DOUBLE_TXT)

99 self.assertTrue(re.search(regex, MATCH))

101 def test_issue_2227(self):

102 regex = build_whitespace_split_regex(SINGLE_DOUBLE_SAME_LINE_TXT)

103 self.assertTrue(re.search(regex, MATCH))

module.py (https://github.com/laurentb/weboob.git) Python · 52 lines

34 MAINTAINER = u'Edouard Lambert'

35 EMAIL = 'elambert@budget-insight.com'

36 VERSION = '2.1'

41 ValueBackendPassword('login', label='Code utilisateur', masked=False),

42 ValueBackendPassword('password', label='Code confidentiel ou code PIN', regexp='\d+'),

43 Value('nuser', label="Numéro d'utilisateur (optionnel)", regexp='\d{0,8}', default=''))

collector_mail_url.py (https://gitlab.com/mayakarya/intelmq) Python · 97 lines

27 self.parameters.mail_ssl)

28 emails = mailbox.messages(folder=self.parameters.folder, unread=True)

29

30 if emails:

31 for uid, message in emails:

32

33 if (self.parameters.subject_regex and

34 not re.search(self.parameters.subject_regex,

37

38 self.logger.info("Reading email report")

39

40 for body in message.body['plain']:

41 match = re.search(self.parameters.url_regex, str(body))

42 if match:

models.py (https://github.com/furiousdave/django-cms.git) Python · 83 lines

14

15 def _create_user(self, username, email, password,

16 is_staff, is_superuser, **extra_fields):

22 raise ValueError('The given username must be set')

23 email = self.normalize_email(email)

24 user = self.model(username=username, email=email,

44 ])

45 email = models.EmailField(_('email address'), blank=True)

46 is_staff = models.BooleanField(_('staff status'), default=False,

75

76 def email_user(self, subject, message, from_email=None):

77 """

79 """

80 send_mail(subject, message, from_email, [self.email])

81 except ImportError:

forms.py (https://github.com/scale2/wiwitasapps.git) Python · 109 lines

32

33 matriculation_number = forms.RegexField(regex=r'^108\d{9}$',

34 max_length=12,

53 """

54 if User.objects.filter(email__iexact=self.cleaned_data['email'].split('@')[0]):

55 raise forms.ValidationError(_(u'This email address is already in use. Please supply a different email address.'))

57 # Check if the supplied email address is a rub address

58 email_domain = self.cleaned_data['email'].split('@')[1]

59 if email_domain not in self.allowed_domains:

60 raise forms.ValidationError(_(u'Registration using non RUB email addresses is prohibited. Please supply a RUB email address.'))

61

96 password=self.cleaned_data['password1'],

97 email=self.cleaned_data['email'],

98 profile_callback=profile_callback,

0001_initial.py (https://gitlab.com/richardbm1/simonet) Python · 71 lines

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

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

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

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

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

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

54 ('apellido', models.CharField(max_length=20)),

55 ('correo', models.EmailField(max_length=254)),

56 ('edad', models.IntegerField()),

forms.py (https://github.com/jblomo/twigra.git) Python · 104 lines

12 # class UserRegistrationForm(forms.ModelForm):

13 # username = forms.RegexField(regex=r'^\w+$', max_length=30,

14 # label=_(u'Username'))

15 # email = forms.EmailField(widget=forms.TextInput(attrs=dict(maxlength=75)),

16 # label=_(u'Email address'))

60 # password=self.cleaned_data['password1'],

61 # email=self.cleaned_data['email'],

62 # domain_override=domain_override)

71 # """

72 # email = self.cleaned_data['email'].lower()

73 # if User.all().filter('email =', email).filter(

74 # 'is_active =', True).count(1):

75 # raise forms.ValidationError(__(u'This email address is already in use. Please supply a different email address.'))

76 # return email

web_ui.py (https://github.com/kkass/batchmodifyplugin.git) Python · 123 lines

15 self._fields_as_list = ['keywords']

16 self._list_separator_regex = '[,\s]+'

17 self._list_connector_string = ' '

18 self._batchmod = BatchModifier(self._fields_as_list,

19 self._list_separator_regex,

20 self._list_connector_string)

89

90 def test_get_new_ticket_values_sets_owner_to_session_email_if_not_authenticated(self):

91 """If the owner field is set to $USER and there is no authenticated

92 user, then use the email address in the session."""

93 batch = BatchModifyModule(self._env)

95 self._req.args['batchmod_value_owner'] = '$USER'

96 self._req.session['email'] = 'joe@example.com'

97 values = self._batchmod._get_new_ticket_values(self._req, self._env)

org_test_util.py (https://gitlab.com/pgeorgiev_vmw/idem-aws) Python · 37 lines

7 ORG_ID_SIZE = 10

8 ORG_ID_REGEX = r"o-[a-z0-9]{%s}" % ORG_ID_SIZE

9

18 "master_account_arn",

19 "master_account_email",

20 "master_account_id",

26

27 assert re.compile(ORG_ID_REGEX).match(org["resource_id"])

28 assert org["master_account_arn"] == MASTER_ACCOUNT_ARN_FORMAT.format(

test_generate_courses.py (https://gitlab.com/unofficial-mirrors/edx-platform) Python · 170 lines

28 "run": "1",

29 "user": str(self.user.email),

30 "fields": {"display_name": "test-course", "announcement": "2010-04-20T20:08:21.634121"}

43 """

44 with self.assertRaisesRegexp(CommandError, "Invalid JSON object"):

45 arg = "invalid_json"

51 """

52 with self.assertRaisesRegexp(CommandError, "JSON object is missing courses list"):

53 settings = {}

66 "run": "1",

67 "user": str(self.user.email),

68 "fields": {"display_name": "test-course"}

99 "run": "1",

100 "user": str(self.user.email),

101 "fields": {}

forms.py (https://github.com/NickyMouse/myway.git) Python · 84 lines

19 """

20 username = forms.RegexField(label = _("Username"), max_length = 40, required = True,

21 regex = r'^[\w.@+-_]+',

26

27 email = forms.EmailField(label = _("Email"), max_length=40, required=True)

28 password1 = forms.CharField(label = _("Password"), required=True, widget = forms.PasswordInput)

36 model = User

37 fields = ("username", "email", "last_name", "first_name")

38

test_create_course.py (https://gitlab.com/unofficial-mirrors/edx-platform) Python · 92 lines

21 errstring = "Error: too few arguments"

22 with self.assertRaisesRegexp(CommandError, errstring):

23 call_command('create_course')

30 errstring = "No user 99 found"

31 with self.assertRaisesRegexp(CommandError, errstring):

32 call_command('create_course', "split", "99", "org", "course", "run")

33

34 def test_nonexistent_user_email(self):

35 errstring = "No user fake@example.com found"

36 with self.assertRaisesRegexp(CommandError, errstring):

37 call_command('create_course', "mongo", "fake@example.com", "org", "course", "run")

46 @ddt.data(ModuleStoreEnum.Type.mongo, ModuleStoreEnum.Type.split)

47 def test_all_stores_user_email(self, store):

48 call_command(

user-admin.factor (git://github.com/x6j8x/factor.git) Unknown · 168 lines

40 { "realname" [ [ v-one-line ] v-optional ] }

41 { "email" [ [ v-email ] v-optional ] }

42 } validate-params ;

72 "realname" value >>realname

73 "email" value >>email

74 "new-password" value >>encoded-password

124 "realname" value >>realname

125 "email" value >>email

126 selected-capabilities >>capabilities

MsExMailMessage.java (http://mobiledatanow.googlecode.com/svn/trunk/) Java · 95 lines ✨ Summary

This Java class, MsExMailMessage, represents an intermediate mail message from Microsoft Exchange. It extends a parent class MailMessage and includes functionality to expand attachments if possible. The expand method attempts to convert Word documents attached to the message by reading their contents using a WordReader.

34 String unread,

35 String senderEmail,

36 MsExAttachment attachments [])

40 sender, "", timeReceived, unread,

41 senderEmail);

42 }

OpenXml.php (http://mortar.googlecode.com/svn/trunk/) PHP · 130 lines ✨ Summary

This PHP class, Zend_Search_Lucene_Document_OpenXml, extends another class and provides functionality for extracting metadata from OpenXML documents. It reads relationships and core properties from a ZIP archive, parsing XML data to extract key-value pairs containing document metadata. The class also handles absolute paths within the ZIP archive.

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

13 * to license@zend.com so we can send you a copy immediately.

hwdrv_APCI1710.c (http://photon-android.googlecode.com/svn/) C · 1267 lines ✨ Summary

This C code is a part of an interrupt handling system for a microcontroller-based system. It checks various modules (pulse encoder, chronometer, etc.) for interrupts and updates the interrupt status accordingly. If an interrupt is detected, it calls a user-defined function to handle the interrupt and sends a signal to the kernel to notify the operating system. The code ensures that each module’s interrupt is handled separately and efficiently.

27 +-----------------------------------------------------------------------+

28 | Tel : +49 (0) 7223/9493-0 | email : info@addi-data.com |

29 | Fax : +49 (0) 7223/9493-92 | Internet : http://www.addi-data.com |

invalidAccess.ewd (git://github.com/robtweed/EWD.git) Unknown · 37 lines

10 | http://www.mgateway.com |

11 | Email: rtweed@mgateway.com |

12 | |

encoders.py (git://github.com/IronLanguages/main.git) Python · 82 lines ✨ Summary

This is a Python script that defines several functions for encoding email messages using different methods, such as Base64, quoted-printable, and 7bit or 8bit. The encode_base64 function sets the Content-Transfer-Encoding header to “base64” and encodes the message’s payload in Base64 format. The encode_quopri function does the same for quoted-printable encoding, while the encode_7or8bit function checks if the payload is ASCII-encoded and sets the Content-Transfer-Encoding header to “7bit” or “8bit”, depending on the result. Finally, the encode_noop function does nothing and leaves the Content-Transfer-Encoding header unchanged.

2 # Author: Barry Warsaw

3 # Contact: email-sig@python.org

4

TestEnvironment.java (http://slim3.googlecode.com/svn/trunk/) Java · 249 lines ✨ Summary

This Java class represents a test environment for an application, mimicking the Google App Engine API. It provides methods to set and retrieve various attributes, such as application ID, version ID, authority domain, email address, and administrator status. The class also includes assertions to prevent production mode access.

94 authDomain = other.getAuthDomain();

95 email = other.getEmail();

96 admin = other.isAdmin();

113 * @param email

114 * the email address

115 * @param admin

119 this();

120 setEmail(email);

121 setAdmin(admin);

183 */

184 public void setEmail(String email) {

185 assertNotProduction();

186 this.email = email;

187 }

grid.common.js (http://sgd.googlecode.com/svn/trunk/) JavaScript · 637 lines ✨ Summary

This JavaScript code validates user input fields for a web application, ensuring they meet specific format and content requirements. It checks for email, date, time, integer, and custom formats, as well as URL and array validation. The function returns an array with three elements: a boolean indicating success or failure, a message to display if the field is invalid, and no additional data.

585 var filter;

586 if(edtrul.email === true) {

587 if( !(rqfield === false && isEmpty(val)) ) {

589 filter = /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i;

590 if(!filter.test(val)) {return [false,nm+": "+jQuery.jgrid.edit.msg.email,""];}

591 }

_footer.php (git://github.com/zurb/foundation.git) PHP · 93 lines ✨ Summary

This is a PHP file that generates an HTML page for Foundation, a design framework. The page includes a header with a navigation menu, a main container with content, and a footer with information about the project. The code also includes JavaScript files to load the Orbit slider, Reveal modal, and Google Analytics.

14 <h6><strong>Need some help?</strong></h6>

15 <p>For quick answers or help <a href="mailto:foundation@zurb.com">email us &rarr;</a></p>

16

pom-pkg.xml (git://github.com/scalate/scalate.git) XML · 53 lines

39 <contact>Scalate</contact>

40 <contactEmail>scalate@googlegroups.com</contactEmail>

41 <assembly>

0016_auto__add_field_personschedule_user.py (https://bitbucket.org/copelco/django-timepiece/) Python · 245 lines ✨ Summary

This is a Django project’s database schema definition, generated by Django’s makemigrations command. It defines the structure of the database tables for the timepiece app, including relationships between models and fields with specific data types. The output provides a detailed description of each table and field, allowing developers to understand the underlying database schema.

38 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),

39 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),

40 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),

89 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),

90 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),

91 'external_id': ('django.db.models.fields.CharField', [], {'max_length': '32', 'blank': 'True'}),

xd.c (http://photon-android.googlecode.com/svn/) C · 1102 lines ✨ Summary

This C code initializes and configures a disk driver for a device called “xd”. It sets up the driver’s parameters, such as DMA channels, I/O base addresses, and interrupt numbers. The code also handles command-line options to customize its behavior. It is designed to work with Linux systems and provides a way to access and manage storage devices.

91 best bet is to use the "override" routines. These routines use a "portable" method of getting the disk's geometry, and

92 may work with your card. If none of these seem to work, try sending me some email and I'll see what I can do <grin>.

93