100+ results for 'email regex lang:python'

Not the results you expected?

0028_migrate_profile_picture_path.py (https://github.com/lmorchard/mozillians.git) Python · 123 lines

41 'Meta': {'object_name': 'User'},

42 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 2, 13, 2, 22, 40, 378533)'}),

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

45 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

94 'Meta': {'ordering': "['value']", 'object_name': 'UsernameBlacklist'},

95 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),

96 'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

97 'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

98 },

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

40

41

42 class EmailData(models.Model):

43 data = models.EmailField(null=True)

202

203

204 class EmailPKData(models.Model):

205 data = models.EmailField(primary_key=True)

0023_auto__del_field_userprofile_display_name.py (https://github.com/pombredanne/mozillians.git) Python · 114 lines

36 'Meta': {'object_name': 'User'},

37 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 10, 26, 3, 59, 45, 535301)'}),

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

40 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

87 'Meta': {'ordering': "['value']", 'object_name': 'UsernameBlacklist'},

88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),

89 'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

90 'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

91 },

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:

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})

106 def restore_credentials():

107 if old_credentials:

108 apps_domain.admin_email = old_credentials['email']

109 apps_domain.admin_password = old_credentials['password']

110 apps_domain.put()

112 memcache.delete(_SERVICE_MEMCACHE_TOKEN_KEY % (

113 domain, self.service.service))

114 apps_domain.admin_email = email

115 apps_domain.admin_password = password

116 apps_domain.put()

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

38 items.append('<networkTypes>%s</networkTypes>' % sub_key)

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

40 elif key == 'emailPromotionsPreferences':

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

42 for sub_key in acct_info[key]:

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

20 # Adding model 'Repo'

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

24 ('user_url', self.gf('django.db.models.fields.CharField')(max_length='100', 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)),

28 ('title', self.gf('django.db.models.fields.CharField')(max_length='50')),

57 'Meta': {'object_name': 'User'},

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

61 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

models.py (https://github.com/niran/django-old.git) Python · 266 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)

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)

register_and_share_1.py (https://bitbucket.org/isanneh/smart-house-web-app-isatou.git) Python · 188 lines

21 driver.find_element_by_id("last_name").clear()

22 driver.find_element_by_id("last_name").send_keys("l")

23 driver.find_element_by_id("email").clear()

24 driver.find_element_by_id("email").send_keys("u1@gmail.com")

35 driver.find_element_by_id("last_name").clear()

36 driver.find_element_by_id("last_name").send_keys("l")

37 driver.find_element_by_id("email").clear()

38 driver.find_element_by_id("email").send_keys("u2@gmail.com")

49 driver.find_element_by_id("last_name").clear()

50 driver.find_element_by_id("last_name").send_keys("l")

51 driver.find_element_by_id("email").clear()

52 driver.find_element_by_id("email").send_keys("u3")

57 driver.find_element_by_id("confirm_password").clear()

58 driver.find_element_by_id("confirm_password").send_keys("test")

59 driver.find_element_by_id("email").clear()

60 driver.find_element_by_id("email").send_keys("u3@gmail.com")

0033_auto__add_field_userprofile_privacy_date_mozillian.py (https://github.com/lmorchard/mozillians.git) Python · 134 lines

36 'Meta': {'object_name': 'User'},

37 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 18, 7, 2, 42, 311664)'}),

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

40 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

89 'Meta': {'ordering': "['value']", 'object_name': 'UsernameBlacklist'},

90 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),

91 'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

92 'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

93 },

114 'privacy_country': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

115 'privacy_date_mozillian': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

116 'privacy_email': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

117 'privacy_full_name': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

118 'privacy_groups': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

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

4 from datetime import date

6

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

13

92 class EmailAddress(models.Model):

93 person = models.ForeignKey(Person)

94 email_address = models.EmailField()

95

96 def __unicode__(self):

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

34 label=_("Username"),

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,

38 label=_("Password"))

89

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."))

115

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']

test_associate.py (https://github.com/openhatch/oh-mainline.git) Python · 87 lines

12 def setUp(self):

13 super(AssociateActionTest, self).setUp()

14 self.user = User(username='foobar', email='foo@bar.com')

15 self.backend.strategy.session_set('username', self.user.username)

16

37 'blog': 'https://github.com/blog',

38 'location': 'San Francisco',

39 'email': 'foo@bar.com',

40 'hireable': False,

41 'bio': 'There once was...',

71 def setUp(self):

72 super(AlreadyAssociatedErrorTest, self).setUp()

73 self.user1 = User(username='foobar', email='foo@bar.com')

74 self.user = None

75

0022_auto__add_field_userprofile_allows_community_sites__add_field_userprof.py (https://github.com/pombredanne/mozillians.git) Python · 121 lines

42 'Meta': {'object_name': 'User'},

43 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 10, 25, 4, 3, 36, 467048)'}),

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

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

46 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

93 'Meta': {'ordering': "['value']", 'object_name': 'UsernameBlacklist'},

94 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),

95 'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

96 'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

97 },

CompanyTableAjaxAction.java (http://fatal-error.googlecode.com/svn/trunk/) Java · 150 lines ✨ Summary

This Java class, CompanyTableAjaxAction, extends a base class and provides an implementation for an AJAX action related to company data in a table. It retrieves companies from a database based on filters, projections, and sorting criteria, and returns the result as a DataResult object. The method is designed to handle pagination and filtering of company data.

78 // }

79 // if (!ValidatorUtil.isBlankOrNull(filters

80 // .get(Company.PROPERTY_EMAIL))) {

81 // criterions.add(Restrictions.like(

82 // Company.PROPERTY_EMAIL, filters

83 // .get(Company.PROPERTY_EMAIL),

84 // MatchMode.START));

85 // }

re_search_list.py (https://github.com/horvatha/linux.git) Python · 131 lines

27 https://elearning.uni-obuda.hu

28 http://bocs.hu/ado/index.html

29 https://github.com/horvatha/linux/blob/master/regexp/keres_ipy.py

30 ftp://ftp.sztaki.hu/pub/tex

31 file:///var/www/index.html

57 """.split()

58

59 emails = """

60 SuperPandas@WesMcKinney.com

61 horvaarp@morganstanley.com

80

81

82 print("Examples: cars_number, IPs, urls, emails")

83

84

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

34 * 'n' - never

35 """

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

37

38 user.reputation = reputation

42 user.set_status(status)

43 if notification_schedule == None:

44 notification_schedule = models.EmailFeedSetting.NO_EMAIL_SCHEDULE

45

46 #a hack, we need to delete these, that will be created automatically

86 user_object = create_user(

87 username = username,

88 email = email,

89 notification_schedule = notification_schedule,

90 date_joined = date_joined,

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

41 ('name', models.CharField(max_length=140)),

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 ],

47 ),

test_manytomany.py (https://bitbucket.org/zzzeek/sqlalchemy.git) Python · 374 lines

44 ),

45 Column("password", String(50), nullable=False),

46 Column("email", String(50), nullable=False),

47 Column("login_id", String(50), nullable=False),

48 )

110 name="user1",

111 password="pw",

112 email="foo@bar.com",

113 login_id="lg1",

114 )

macro-index.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 734 lines

564 installed plugins. It then appends the last set of error messages

565 written to the activity log. The new text buffer can be saved and

566 attached to an email message or a bug report made on SourceForge.

567 </para>

568 </listitem>

spg-param-split.py (https://github.com/tessonec/PySPG.git) Python · 159 lines

15 PROGRAM_AUTHOR = "Claudio J. Tessone"

16 PROGRAM_RELEASE_DATE = "2010/05/29"

17 PROGRAM_EMAIL = "claudio.tessone@uzh.ch"

18

19 import spg.utils as spgu

52

53 def parse_param_dat(fin):

54 regex = re.compile(r'(?P<iter>[*+.:/])(?P<var>[a-zA-Z]\w*)\s*(?P<values>.*)')

55 vec_entities = []

56 dict_iters = {}

64 continue

65

66 match = regex.match( l )

67 iter = match.group( 'iter' )

68 var = match.group( 'var' )

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

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

106 self.assertRaises(

202 DeliveryMode.regular,

203 system_preferences.preferred_language))

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

205

206 def test_add_member_with_lower_case_email(self):

220 DeliveryMode.regular,

221 system_preferences.preferred_language))

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

223

224

0029_auto__add_field_userprofile_privacy_photo__add_field_userprofile_priva.py (https://github.com/lmorchard/mozillians.git) Python · 203 lines

18 db.add_column('profile', 'privacy_ircname', self.gf('django.db.models.fields.PositiveIntegerField')(default=3), keep_default=False)

19

20 # Adding field 'UserProfile.privacy_email'

21 db.add_column('profile', 'privacy_email', self.gf('django.db.models.fields.PositiveIntegerField')(default=3), keep_default=False)

60 db.delete_column('profile', 'privacy_ircname')

61

62 # Deleting field 'UserProfile.privacy_email'

63 db.delete_column('profile', 'privacy_email')

108 'Meta': {'object_name': 'User'},

109 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 3, 14, 4, 50, 26, 134351)'}),

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

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

112 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

161 'Meta': {'ordering': "['value']", 'object_name': 'UsernameBlacklist'},

162 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),

163 'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

164 'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

165 },

fields.py (https://github.com/thedrow/dojango.git) Python · 157 lines

121 DateTimeField = SplitDateTimeField # datetime-field is always splitted

122

123 class RegexField(DojoFieldMixin, fields.RegexField):

124 widget = widgets.ValidationTextInput

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

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

128 self.js_regex = js_regex

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

144 widget = widgets.NullBooleanSelect

145

146 class EmailField(DojoFieldMixin, fields.EmailField):

147 widget = widgets.EmailTextInput

155 class SlugField(DojoFieldMixin, fields.SlugField):

156 widget = widgets.ValidationTextInput

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

158

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

30 'multiple': False,

31 'name': 'username',

32 'need_email': True,

33 'regex': None,

42 'multiple': False,

43 'name': 'reason',

44 'regex': None,

45 'required': False,

46 'size': 20,

53 'multiple': False,

54 'name': '',

55 'regex': None,

56 'required': False,

57 'tablabel': '',

65 'multiple': False,

66 'name': 'project',

67 'regex': None,

68 'required': False,

69 'size': 10,

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

41 'Meta': {'object_name': 'User'},

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

45 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

119 'is_supported': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

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

123 'title': ('django.db.models.fields.CharField', [], {'max_length': "'50'"}),

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

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

126 }

127 }

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

111 self.assertEqual(e.msg, 'wrong')

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):

122 self.assertEqual(self._makeOne('.*')(None, ''), None)

123

124 def test_invalid_regexs(self):

125 from ptah.form import Invalid

126 self.assertRaises(Invalid, self._makeOne('[0-9]+'), None, 'a')

127 self.assertRaises(Invalid, self._makeOne('a{2,4}'), None, 'ba')

128

129 def test_regex_not_string(self):

130 from ptah.form import Invalid

131 import re

0001_initial.py (https://github.com/jrief/django-shop.git) Python · 83 lines

3

4 from django.db import migrations, models

5 import email_auth.models

6 import re

7 import django.utils.timezone

23 ('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')),

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

25 ('username', models.CharField(help_text='Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters', unique=True, max_length=30, verbose_name='Username', validators=[django.core.validators.RegexValidator(re.compile('^[\\w.@+-]+$'), 'Enter a valid username.', 'invalid')])),

26 ('first_name', models.CharField(max_length=30, verbose_name='First name', blank=True)),

27 ('last_name', models.CharField(max_length=30, verbose_name='Last name', blank=True)),

28 ('email', models.EmailField(default=None, max_length=254, null=True, verbose_name='Email address', blank=True)),

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

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

59 name='email',

60 field=models.EmailField(default=None, max_length=254, verbose_name='email address', blank=True),

61 preserve_default=False,

62 ),

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

27 converts CSV files to a single JSON file

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]*$")

34

41

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

49 self.log = logging.getLogger(self.__class__.__name__)

0007_replace_special_chars_and_whitespace_in_usernames.py (https://github.com/SEL-Columbia/formhub.git) Python · 103 lines

10 def forwards(self, orm):

11 def update_username_for_user(user, match_on, sub_with):

12 regex = re.compile(match_on)

13 if regex.search(user.username):

14 user.username = regex.sub(sub_with, user.username)

15 user.save()

16

40 'Meta': {'object_name': 'User'},

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

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

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

44 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

ThreatResponse.py (https://github.com/TheHive-Project/Cortex-Analyzers.git) Python · 228 lines

46 """Validate the provided hash is a supported type

47 """

48 # RegEx for supported checksum types MD5, SHA1, SHA256

49 hash_mapping = {

50 re.compile(r"^[A-Za-z0-9]{32}$"): "md5",

106 observable_mapping = {

107 "domain": "domain",

108 "mail": "email",

109 "mail_subject": "email_subject",

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

16 self.fields['password2'].required = True

17

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

19

20 password1 = forms.CharField(widget=forms.PasswordInput, label=_("Password"), required=False)

53 class Meta:

54 model = get_user_model()

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

56

57 def save(self, **kwargs):

81 class Meta:

82 model = get_user_model()

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

84

85 def save(self, **kwargs):

constants.py (https://github.com/jarobb3/Noted.git) Python · 200 lines

26 EDAM_EMAIL_LEN_MAX = 255

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

34 EDAM_TIMEZONE_LEN_MIN = 1

101 EDAM_USER_USERNAME_LEN_MAX = 64

102

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

104

105 EDAM_USER_NAME_LEN_MIN = 1

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

54 html_template=html_template,

55 subject=subject,

56 email_data=email_data,

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

58 *args, **kwargs)

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:

65 statsd.incr('user.register')

93 html_template='users/email/contributor.html',

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

109 if users.count() > 0:

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

27 fieldsets = (

28 (_('General Information'), {

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

30 'classes': ['wide'],

31 }),

86 }),

87 (_('State'), {

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

89 'classes': ('collapse',)

90 })

118 'description': _('<p>This is advanced state that should not be '

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

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

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

122 'classes': ['collapse'],

forms.py (https://github.com/dmkm2011/vinylmgr.git) Python · 246 lines

77

78 class PlaylistCreationForm(forms.ModelForm):

79 playlistname = forms.RegexField(label="Playlist Name", max_length=30, regex=r'^[\w.@+-]+$',

80 help_text="Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.",

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

101

102 def save(self, commit=True, domain_override=None,

103 ##email_template_name='registration/signup_email.html',

104 use_https=False, token_generator=default_token_generator):

105 playlist = super(PlaylistCreationForm, self).save(commit=False)

109 ##########################

110 ##user.set_password(self.cleaned_data["password1"])

111 ##user.email = self.cleaned_data["email1"]

112 playlist.is_active = False

113 if commit:

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

12 "the number is correct, please contact HelpDesk.")

13 )

14 INVALID_EMAIL = "Invalid email format %s"

15

16 NUMBER_FORMAT = phonenumbers.PhoneNumberFormat.INTERNATIONAL

75

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 """

83 r"{2,63}(?:\s|$)")

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

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

86

87

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

101 def test_unix_mbox(self):

102 ### should be better!

103 import email.parser

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

105 n = 0

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

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

108 n += 1

109 self.assertEqual(msg["subject"], "Simple Test")

119 os.unlink(self._path)

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

50

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 ):

60 raise forms.ValidationError("User already in organization.")

73 def clean_email(self):

74

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

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

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 882 lines

843 <listitem>

844 <para>

845 Stefan Kost <email>ensonic@sonicpulse.de</email>;

846 </para>

847 </listitem>

849 <para>

850 or jEdit-users mailing-list

851 <email>jedit-users@lists.sourceforge.net</email>;

852 </para>

853 </listitem>

855 <para>

856 or jEdit-devel mailing-list

857 <email>jedit-devel@lists.sourceforge.net</email>.

858 </para>

859 </listitem>

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

1 '''

2 Regular Expressions (regex) Reference Guide

3

4 Sources:

134 '''

135

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

137

138 match = re.search(r'\w+@\w+', s)

171 '''

172

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

174

175 match = re.search(r'([\w.-]+)@([\w.-]+)', s)

189 '''

190

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

192

193 re.findall(r'[\w.-]+@[\w.-]+', s) # ['joe@gmail.com', 'bob@gmail.com']

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

8 class ContactForm(forms.Form):

9 subject = forms.CharField()

10 mail = forms.EmailField(required=False)

11 message = forms.CharField()

12

35 'password_mismatch': "The two password fields didn't match.",

36 }

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

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

53 fields = ("username", "password1",

54 "first_name", "last_name",

55 "email", "mobile",

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

57 widgets = {

99 'password_mismatch': "The two password fields didn't match.",

100 }

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

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

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);

forms.py (https://github.com/H359/ZavtraRu.git) Python · 46 lines

7 from django.forms.extras.widgets import SelectDateWidget

8 from django.forms.widgets import RadioFieldRenderer

9 from django.core.validators import RegexValidator, MinLengthValidator

10 from django.utils.safestring import mark_safe

11 from django.utils.encoding import force_unicode

22 username = forms.CharField(max_length=30, label=u'Имя пользователя', validators=[RegexValidator(r'^[\w.@+-]+$')])

23 password = DualPasswordField(label=u'Пароль')

24 email = forms.EmailField(label=u'Электронная почта')

25 gender = forms.ChoiceField(label=u'Пол', widget=forms.RadioSelect(renderer=ZRadioRenderer), choices=SiteProfile.GENDER)

26 dob = forms.DateField(label=u'Дата рождения', widget=SelectDateWidget(years=range(1900, datetime.now().year - 15)))

32 def clean(self):

33 cleaned_data = self.cleaned_data

34 email = cleaned_data.get('email')

35 username = cleaned_data.get('username')

36 if User.objects.filter(Q(username=username) | Q(email=email)).count() > 0:

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

68

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

74 self.assertEqual(user.password, '!')

75

76 def test_create_user_email_domain_normalize_rfc3696(self):

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

78 # the "@" symbol can be part of the local part of an email address

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

36 label=_("Username"),

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

40 label=_("Email address"))

94

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."))

120

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']

generate_views.py (https://github.com/hplgit/parampool.git) Python · 678 lines

126

127 ---

128 This email has been automatically generated by the %(classname)s app created by

129 Parampool. If you don't want email notifications when a result is found, please

222 Parampool. If you don't want email notifications when a result is found, please

223 register a new user and leave the email field blank.""")

224

225 # Save to db

299 if user.email:

300 user.email_user("%(classname)s Computations Complete", """\

301 A simulation has been completed by the Django %(classname)s app. Please log in at

302

592 newuser.username = username

593 newuser.set_password(pw)

594 newuser.email = form.cleaned_data['email']

595 newuser.save()

596 user = authenticate(username=username, password=pw)

test_subquery_relations.py (https://github.com/lameiro/cx_oracle_on_ctypes.git) Python · 1266 lines

39 eq_(

40 [User(id=7, addresses=[

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

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

43 )

78 eq_(

79 [User(id=7, addresses=[

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

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

82 )

98 [

99 User(id=8, addresses=[

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

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

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

103 ]),

104 User(id=9, addresses=[

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

36 'Meta': {'object_name': 'User'},

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

40 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

116 'is_supported': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

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

120 'title': ('django.db.models.fields.CharField', [], {'max_length': "'50'"}),

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

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

123 },

124 'package.version': {

watchlistparser_unittest.py (https://github.com/torarnv/webkit.git) Python · 259 lines

68 expected_logs='Invalid character "|" in definition "WatchList1|A".\n')

69

70 def test_bad_filename_regex(self):

71 watch_list = (

72 '{'

83

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):

183

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

187

rd.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 71 lines

56 <KEYWORD3>\pkg</KEYWORD3>

57 <KEYWORD3>\file</KEYWORD3>

58 <KEYWORD3>\email</KEYWORD3>

59 <KEYWORD3>\url</KEYWORD3>

60 <KEYWORD3>\var</KEYWORD3>

forms.py (https://bitbucket.org/cavneb/busylissy.git) Python · 126 lines

18

19 class ProfileForm(ModelForm):

20 first_name = forms.RegexField(regex=alnum_re,

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

22 max_length=30,

25 label=_(u'First name'))

26

27 last_name = forms.RegexField(regex=alnum_re,

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

29 max_length=30,

108

109 class InviteForm(forms.Form):

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

111

112 def save(self, user, model, model_id, force_insert=False, force_update=False, commit=True):

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)

SoftKeyboard.java (http://softkeyboard.googlecode.com/svn/) Java · 1128 lines ✨ Summary

This Java code is part of a soft keyboard implementation, likely for an Android application. It handles various user interactions such as key presses, releases, and gestures to navigate between different keyboard modes (e.g., symbols, numbers). The code also manages the input text, including deleting characters, appending new ones, and updating the keyboard layout based on the device’s configuration.

314 // }

315 //

316 // if (variation == EditorInfo.TYPE_TEXT_VARIATION_EMAIL_ADDRESS

317 // || variation == EditorInfo.TYPE_TEXT_VARIATION_URI

318 // || variation == EditorInfo.TYPE_TEXT_VARIATION_FILTER) {

323 // }

324 //

325 //// if (variation == EditorInfo.TYPE_TEXT_VARIATION_EMAIL_ADDRESS

326 //// || variation == EditorInfo.TYPE_TEXT_VARIATION_URI) {

327 //// //special keyboard

710 //// if ((keyboardType == NextKeyboardType.Any) &&

711 //// mInternetKeyboard.isEnabled() &&

712 //// (variation == EditorInfo.TYPE_TEXT_VARIATION_EMAIL_ADDRESS

713 //// || variation == EditorInfo.TYPE_TEXT_VARIATION_URI)) {

714 //// //special keyboard

Display_Abbreviations.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 386 lines

3 * jEdit text editor - displays all defined abbreviations

4 * Copyright (C) 2001 John Gellene

5 * email: jgellene@nyc.rr.com

6 * http://community.jedit.org

7 *

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

39 class Seller(BaseModel):

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)

43 default_shipping_detail = models.CharField(max_length=100, blank=True, null=True)

User.as (https://github.com/nicolabortignon/GeoPic.git) ActionScript · 23 lines

11 public var username:String;

12 public var password:String;

13 public var email:String;

14

15 public function User(username:String)

CompressionUtils.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 195 lines ✨ Summary

This Java class provides utility methods for compressing and decompressing files using GZIP. It allows reading bytes from a ZIP file, compressing an array of bytes into a GZIP format, uncompressing a byte array back to its original form, and decompressing a ZIP file to extract its contents.

32 * @project loonframework

33 * @author chenpeng

34 * @email?ceponline@yahoo.com.cn

35 * @version 0.1

36 */

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

8

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

10 or not), feel free to email me.

11

12 Installation instructions:

210 interest in this project!

211

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

213 at the top of this file.

214

test_old_mailbox.py (https://github.com/jackygrahamez/DrugDiscovery-Home.git) Python · 153 lines

100 def test_unix_mbox(self):

101 ### should be better!

102 import email.Parser

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

104 n = 0

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

106 email.Parser.Parser().parse):

107 n += 1

108 self.assertEqual(msg["subject"], "Simple Test")

118 os.unlink(self._path)

119

120 def test_from_regex (self):

121 # Testing new regex from bug #1633678

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

72 <Link>AssemblyVersion.cs</Link>

73 </Compile>

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

75 </ItemGroup>

76 <ItemGroup>

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

14

15 from account.utils import get_default_redirect

16 from emailconfirmation.models import EmailAddress, EmailConfirmation

17

18 from account_extra.forms import EmailLoginForm, EmailSignupForm

72

73 @login_required

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

75 username=None):

76

102 'email': email,

103 })

104 EmailConfirmation.objects.send_confirmation(email_address)

105 except EmailAddress.DoesNotExist:

120 pass

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

122 email = request.POST["email"]

123 email_address = EmailAddress.objects.get(

checkmemberstatus.py (https://github.com/ncsu-stars/Stars-CMS.git) Python · 134 lines

10 import re

11

12 ncsu_email_regex = re.compile(r'(?P<unity_id>[a-zA-Z0-9._%+-]+)@ncsu\.edu')

13 name_regex = re.compile(r'^[-a-zA-z]+$')

36

37 # try to extract a Unity id

38 match = re.search(ncsu_email_regex, l)

39 if match:

40 user_id = match.groupdict()['unity_id']

52

53 # try to extract a name

54 names = filter(lambda x: re.match(name_regex, x), l.split(' '))

55 # require at least first and last name

56 if len(names) >= 2:

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

33

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='([^']+)'",

37 webpage, 'data json')

54 if author:

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

56 uploader_id = author.get('email')

57 else:

58 uploader = None

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

19 (validate_integer, 'a', ValidationError),

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

30 (validate_slug, 'slug-ok', None),

issue.py (https://github.com/google/clusterfuzz.git) Python · 288 lines

19

20 def get_values_containing(target, expression):

21 regex = re.compile(expression, re.DOTALL | re.IGNORECASE)

22 return [value for value in target if regex.search(value)]

24

25 def get_values_matching(target, expression):

26 regex = re.compile(expression + r'\Z', re.DOTALL | re.IGNORECASE)

27 return [value for value in target if regex.match(value)]

102

103 self.dirty = False

104 self.send_email = True

105 self.new = True

106 self.itm = None

131 if name not in ('dirty', 'body', 'comments', 'itm', 'new', 'comment_count',

132 'first_comment', 'last_comment', 'project_name', 'changed',

133 'send_email'):

134 self.__dict__['dirty'] = True

135

settings.py (https://github.com/quinode/fcpe63.git) Python · 83 lines

9 FIELD_CLASSES = getattr(settings, 'FORM_DESIGNER_FIELD_CLASSES', (

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

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

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

13 ('django.forms.IntegerField', _('Number')),

21 ('django.forms.ModelChoiceField', _('Model Choice')),

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

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

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

25 # ('captcha.fields.CaptchaField', _('Captcha')),

validator.py (https://github.com/mcdonc/ptah.git) Python · 196 lines

64

65

66 class Regex(object):

67 """ Regular expression validator.

68

69 Initialize it with the string regular expression ``regex``

70 that will be compiled and matched against ``value`` when

71 validator is called. If ``msg`` is supplied, it will be the

73 not match expected pattern'.

74

75 The ``regex`` argument may also be a pattern object (the

76 result of ``re.compile``) instead of a string.

77

96

97

98 class Email(Regex):

99 """ Email address validator. If ``msg`` is supplied, it will be

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

24 from django.utils.translation import ugettext as _

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

30

31

55 def clean_to_address(self):

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)})

61 if to_address not in self.request.session['user_filter']['addresses'] \

62 and not self.request.user.is_superuser():

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

86 user_object = create_user(

87 username = username,

88 email = email,

89 notification_schedule = notification_schedule,

90 date_joined = date_joined,

169 question = question,

170 body_text = body_text,

171 by_email = by_email,

172 follow = follow,

173 wiki = wiki,

205 parent_post = parent_post,

206 body_text = body_text,

207 by_email = by_email,

208 timestamp = timestamp,

209 )

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

32 NAME = 'nettokom'

33 MAINTAINER = u'Florent Fourcot'

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

35 VERSION = '1.3'

36 LICENSE = 'AGPLv3+'

39 label='Account ID (phone number)',

40 masked=False,

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

42 ValueBackendPassword('password',

43 label='Password')

forms.py (https://github.com/occupyhack/web-cop-watch.git) Python · 121 lines

17 """

18

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

20 max_length=30,

21 required=False,

59

60 """

61 email = forms.CharField(label=_("Email"))

62 password = forms.CharField(label=_("Password"), widget=forms.PasswordInput)

63

109

110 # username = forms.HiddenInput()

111 # email = forms.CharField(label=_("Email"))

112

113 # def clean(self):

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

21

22 option_list = NoArgsCommand.option_list + (

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

24 default=DEFAULT_FAKE_EMAIL,

63

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,

101 'last_name': user.last_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.

3 ;

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

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

6 ;

7 ; * Copyright 2010 ogrp

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

396 are pretty sure that you have a bug, you may tell the author, and he may ask

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

400 Note that there are a fair number of circumstances where its error recovery

533 University of Cambridge Computer Laboratory,

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

537

Command.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 1004 lines ✨ Summary

This Java code is a part of a scripting engine, responsible for parsing and executing script commands. It processes input strings, splitting them into individual commands, and then executes these commands based on their type (e.g., include, print, etc.). The code also manages various data structures to store scripts, environment variables, and cache.

38 * @project loonframework

39 * @author chenpeng

40 * @email ceponline@yahoo.com.cn

41 * @version 0.1.2

42 */

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

13

14 class MailThread(osv.AbstractModel):

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

16 in message_process. """

17 _name = 'mail.thread'

19

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

23 return False to end the routing process. """

42 bounced_thread_id = stat.res_id

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:

46 self.pool[bounced_model].message_receive_bounce(cr, uid, [bounced_thread_id], mail_id=bounced_mail_id, context=context)

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

27 fieldsets = (

28 (_('General Information'), {

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

30 'classes': ['wide'],

31 }),

87 }),

88 (_('State'), {

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

90 'classes': ('collapse',)

91 })

119 'description': _('<p>This is advanced state that should not be '

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

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

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

123 'classes': ['collapse'],

fields.py (https://github.com/ouhouhsami/django-floppyforms.git) Python · 158 lines

105

106

107 class EmailField(Field, forms.EmailField):

108 widget = EmailInput

117

118

119 class RegexField(Field, forms.RegexField):

120 widget = TextInput

121

122 def __init__(self, regex, js_regex=None, max_length=None, min_length=None,

123 error_message=None, *args, **kwargs):

124 self.js_regex = js_regex

125 super(RegexField, self).__init__(regex, max_length, min_length,

126 *args, **kwargs)

127

queryfilters.py (https://github.com/rehle/baruwa.git) Python · 408 lines

74 if account_type == 3:

75 if addresses:

76 for email in addresses:

77 esql.append('to_address="' + email + '"')

78 esql.append('from_address="' + email + '"')

79 esql.append('to_address="' + user.username + '"')

80 sql = ' OR '.join(esql)

130 place_negative_vars(tmp, nargs, nkwargs, lnkwargs, value)

131 if filter_item['filter'] == 7:

132 tmp = "%s__regex" % filter_item['field']

133 place_positive_vars(tmp, largs, kwargs, lkwargs, value)

134 if filter_item['filter'] == 8:

135 tmp = "%s__regex" % filter_item['field']

136 place_negative_vars(tmp, nargs, nkwargs, lnkwargs, value)

137 if filter_item['filter'] == 9:

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

43 DESCRIPTION = u'reddit website'

44 MAINTAINER = u'Vincent A'

45 EMAIL = 'dev@indigo.re'

46 LICENSE = 'AGPLv3+'

47 VERSION = '2.1'

48 CONFIG = BackendConfig(

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

50 )

51

ext_kbd_bottom_row_regular.xml (http://softkeyboard.googlecode.com/svn/) XML · 67 lines

50 <Key android:codes="10" android:keyWidth="15%p" android:keyEdgeFlags="right" ask:longPressCode="-100"/>

51 </Row>

52 <Row android:keyboardMode="@integer/keyboard_mode_email" android:rowEdgeFlags="bottom" android:keyWidth="10%p"

53 android:keyHeight="@integer/key_normal_height">

54 <Key ask:isFunctional="true" android:keyWidth="10%p" android:codes="-9" android:keyEdgeFlags="left"/>

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

11

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

59 username=self.cleaned_data['username'],

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

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

62 domain_override=domain_override)

63 self.instance = new_user

70

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

forms.py (https://github.com/rehle/baruwa.git) Python · 141 lines

27 from baruwa.config.models import MailHost, DomainSignature

28 from baruwa.utils.misc import ipaddr_is_valid

29 from baruwa.utils.regex import DOM_RE

30 from baruwa.config.models import MailAuthHost

31

70

71

72 class DeleteMailHost(forms.ModelForm):

73 "Delete a mail host form"

74 id = forms.CharField(widget=forms.HiddenInput)

100

101

102 class DeleteMailAuthHostForm(forms.ModelForm):

103 "Delete a mail auth form"

104 id = forms.CharField(widget=forms.HiddenInput)

0032_auto__add_field_userprofile_date_mozillian.py (https://github.com/lmorchard/mozillians.git) Python · 133 lines

36 'Meta': {'object_name': 'User'},

37 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 7, 18, 6, 27, 26, 93145)'}),

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

40 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

89 'Meta': {'ordering': "['value']", 'object_name': 'UsernameBlacklist'},

90 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),

91 'is_regex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),

92 'value': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})

93 },

113 'privacy_city': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

114 'privacy_country': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

115 'privacy_email': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

116 'privacy_full_name': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

117 'privacy_groups': ('django.db.models.fields.PositiveIntegerField', [], {'default': '3'}),

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.

3 For licensing, see LICENSE.html or http://ckeditor.com/license

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"}};

forms.py (https://github.com/Buzdygan/ai-arena.git) Python · 124 lines

35 label=_("Username"),

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

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

38 # maxlength=75)),

39 # label=_("Email address"))

93

94 """

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

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

119

120 """

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

122 if email_domain in self.bad_domains:

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

124 return self.cleaned_data['email']

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

11

12

13 LOCALE_REGEX = re.compile(

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

15 )

84 merge_weblate.checkout()

85

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

87

88 for commit in reversed(

96 continue

97

98 m = LOCALE_REGEX.match(f)

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

100 pick = True

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

311 msgstr "یک عدد معتبر وارد کنید."

312

313 msgid "Enter a valid email address."

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

315

499 msgstr "بازهٔ زمانی"

500

501 msgid "Email address"

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

503

forms.py (https://github.com/dmkm2011/vinylmgr.git) Python · 95 lines

17 email1 = forms.EmailField(label="Email", max_length=75)

18 email2 = forms.EmailField(label="Email confirmation", max_length=75,

19 help_text = "Enter your email address again. A confirmation email will be sent to this address.")

41 def clean_email2(self):

42 email1 = self.cleaned_data.get("email1", "")

43 email2 = self.cleaned_data["email2"]

47

48 def save(self, commit=True, domain_override=None,

49 email_template_name='usermgr/password_signup_email.html',

50 use_https=False, token_generator=default_token_generator):

51 user = super(UserCreationForm, self).save(commit=False)

65 t = loader.get_template(email_template_name)

66 c = {

67 'email': user.email,

68 'domain': domain,

69 'site_name': site_name,

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.

19

20 class AccountControllerTest < Redmine::ControllerTest

21 fixtures :users, :email_addresses, :roles

22

23 def setup

157 end

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

161

335 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')

433 end

434

435 def test_activation_email_should_send_an_activation_email

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

437 @request.session[:registered_user_id] = 2

highlighter.py (https://github.com/netconstructor/db_manager.git) Python · 182 lines

82 rule_length = 0

83 for rule in self.rules:

84 regex = rule.regex()

85 pos = regex.indexIn(text, index)

133 continue

134 for value in rules[name]:

135 regex = QRegExp( u"\\b%s\\b" % QRegExp.escape(value) )

136 rule = HighlightingRule(name, regex)

150 # constant (numbers, strings)

151 # string

152 regex = QRegExp( r"'[^'\\]*(\\.[^'\\]*)*'" )

153 regex.setMinimal( True )

180 def regex(self):

181 return QRegExp(self._regex)

182

183

common_definition_patterns.py (https://github.com/LexPredict/lexpredict-lexnlp.git) Python · 189 lines

1 from typing import List, Match, Callable

2 import regex as re

3 from lexnlp.extract.common.definitions.universal_definition_parser import UniversalDefinitionsParser

4 from lexnlp.extract.common.pattern_found import PatternFound

9 __version__ = "1.7.0"

10 __maintainer__ = "LexPredict, LLC"

11 __email__ = "support@contraxsuite.com"

12

13

125

126 @staticmethod

127 def collect_regex_matches_with_quoted_chunks(phrase: str, reg: re, prob: int,

128 quoted_def_start: Callable[[str, Match, Match], int],

129 quoted_def_end: Callable[[str, Match, Match], int],

165

166 @staticmethod

167 def collect_regex_matches(phrase: str, reg: re, prob: int,

168 def_start: Callable[[str, Match], int],

169 def_end: Callable[[str, Match], int]

dbpoolx.mod (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 8356 lines

179 |package

180 |command|computeroutput

181 |database|email|envar|errorcode|errorname|errortype|errortext|filename

182 |function|guibutton|guiicon|guilabel|guimenu|guimenuitem

183 |guisubmenu|hardware|interface|keycap

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

39 { "username" [ v-username ] }

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

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

42 } validate-params ;

43

71 "username" value <user>

72 "realname" value >>realname

73 "email" value >>email

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

75 H{ } clone >>profile

123 "username" value <user> select-tuple

124 "realname" value >>realname

125 "email" value >>email

126 selected-capabilities >>capabilities

127

FireTo.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 90 lines ✨ Summary

This Java class represents a fire action in an Android game. It extends ActionEvent and tracks the movement of a fireball from its initial position to a target location, updating its position based on velocity and collision detection with boundaries. When the fireball reaches its destination, it is considered complete. The class provides methods for loading, updating, and checking completion status.

20 * @project loonframework

21 * @author chenpeng

22 * @email??&#x161;ceponline@yahoo.com.cn

23 * @version 0.1

24 */

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.

33 String timeReceived,

34 String unread,

35 String senderEmail,

36 MsExAttachment attachments [])

37 {

39 id, subject, expand (text, attachments), type,

40 sender, "", timeReceived, unread,

41 senderEmail);

42 }

43

test_safe.rb (git://github.com/jnunemaker/mongomapper.git) Ruby · 76 lines ✨ Summary

This Ruby test suite verifies the behavior of a Doc class, specifically its safe attribute and the implications on saving documents to a MongoDB database. It tests default values, inheritance, and overriding safe settings during document creation and saving. The tests ensure that the safe setting affects how errors are raised when saving documents.

36 context "#save" do

37 setup do

38 @klass.ensure_index :email, :unique => true

39 end

40

42 should "work fine when all is well" do

43 assert_nothing_raised do

44 @klass.new(:email => 'john@doe.com').save

45 end

46 end

49 assert_raises(Mongo::OperationFailure) do

50 2.times do

51 @klass.new(:email => 'john@doe.com').save

52 end

53 end

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.

10 * http://framework.zend.com/license/new-bsd

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.

14 *

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.

26 | (C) ADDI-DATA GmbH Dieselstra?&#x;e 3 D-77833 Ottersweier |

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 |

30 +-------------------------------+---------------------------------------+

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.

1 # Copyright (C) 2001-2006 Python Software Foundation

2 # Author: Barry Warsaw

3 # Contact: email-sig@python.org

4

5 """Encodings and related functions."""

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.

93 versionId = other.getVersionId();

94 authDomain = other.getAuthDomain();

95 email = other.getEmail();

96 admin = other.isAdmin();

97 attributes = other.getAttributes();

118 public TestEnvironment(String email, boolean admin) {

119 this();

120 setEmail(email);

121 setAdmin(admin);

122 }

184 public void setEmail(String email) {

185 assertNotProduction();

186 this.email = email;

187 }

188

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.

37 'Meta': {'object_name': 'User'},

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

41 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),

88 'contacts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'related_contacts+'", 'symmetrical': 'False', 'through': "orm['crm.ContactRelationship']", 'to': "orm['crm.Contact']"}),

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

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