id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
2,900
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/it/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' # 25 Ottobre 2006 TIME_FORMAT = 'H:i:s' # 14:30:59 DATETIME_FORMAT...
1,838
Python
.py
44
38.863636
77
0.515084
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,901
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/zh_TW/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date # DATE_FORMAT = # TIME_FORMAT = # DATETIME_FORMAT = # YEAR_MONTH_FORMAT = # MONTH_DA...
697
Python
.py
21
31.428571
77
0.737389
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,902
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/fa/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'G:i:s' DATETIME_FORMAT = 'j F Y، ساعت G:i:s' YEAR_M...
758
Python
.py
21
34.380952
77
0.723521
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,903
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/lv/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'Y. \g\a\d\a j. F' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = r'Y. \g\a\d\a ...
1,490
Python
.py
39
35.615385
80
0.539683
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,904
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/nb/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = 'j. F Y H:i' YEAR_MONTH_FOR...
1,657
Python
.py
41
37.707317
81
0.503717
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,905
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/mn/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' TIME_FORMAT = 'g:i:s A' # DATETIME_FORMAT = # YEAR_MONTH_FORMAT = ...
703
Python
.py
21
32.380952
77
0.745588
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,906
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/ar/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F، Y' TIME_FORMAT = 'g:i:s A' # DATETIME_FORMAT = YEAR_MONTH_FORMAT = ...
730
Python
.py
21
33.095238
77
0.72792
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,907
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/pt/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j \de F \de Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = r'j \de F \de Y Ã...
1,532
Python
.py
38
37.789474
90
0.541555
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,908
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/he/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j בF Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j בF Y H:i:s' YEAR_MONTH...
748
Python
.py
21
34.142857
77
0.727147
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,909
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/mk/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j. F Y. H:i' YEAR_MONTH_F...
1,758
Python
.py
44
37.022727
77
0.477472
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,910
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/nn/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = 'j. F Y H:i' YEAR_MONTH_FOR...
1,657
Python
.py
41
37.707317
81
0.503717
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,911
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/bn/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F, Y' TIME_FORMAT = 'g:i:s A' # DATETIME_FORMAT = YEAR_MONTH_FORMAT = ...
724
Python
.py
21
33.047619
77
0.728959
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,912
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/sq/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' TIME_FORMAT = 'g.i.s.A' # DATETIME_FORMAT = YEAR_MONTH_FORMAT = '...
722
Python
.py
21
32.952381
77
0.731044
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,913
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/vi/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'\N\gà\y d \t\há\n\g n \nă\m Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = r...
798
Python
.py
21
36.380952
77
0.712614
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,914
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/es_AR/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j N Y' TIME_FORMAT = r'H:i:s' DATETIME_FORMAT = r'j N Y H:i:s' YEAR_MONT...
984
Python
.py
32
28.6875
77
0.634737
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,915
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/kn/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'h:i:s A' # DATETIME_FORMAT = # YEAR_MONTH_FORMAT =...
717
Python
.py
21
32.571429
77
0.733429
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,916
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/cy/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' TIME_FORMAT = 'g:i:s A' # DATETIME_FORMAT = # YEAR_MONTH_FORMAT =...
714
Python
.py
21
32.380952
77
0.733719
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,917
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/da/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = 'j. F Y H:i' YEAR_MONTH_FOR...
1,023
Python
.py
29
33.517241
77
0.58871
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,918
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/id/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j N Y' DATETIME_FORMAT = "j N Y, G.i.s" TIME_FORMAT = 'G.i.s' YEAR_MONTH_...
1,818
Python
.py
42
40.452381
77
0.44777
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,919
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/uk/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j E Y р.' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j E Y р. H:i:s' YEAR_M...
741
Python
.py
21
33.761905
77
0.725874
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,920
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/ga/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'H:i:s' # DATETIME_FORMAT = # YEAR_MONTH_FORMAT = ...
717
Python
.py
21
32.666667
77
0.731988
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,921
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/en_GB/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'N j, Y' # 'Oct. 25, 2006' TIME_FORMAT = 'P' ...
2,048
Python
.py
41
47.219512
79
0.443613
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,922
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/sk/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. F Y' TIME_FORMAT = 'G:i:s' DATETIME_FORMAT = 'j. F Y G:i:s' YEAR_MONTH...
1,288
Python
.py
35
34.485714
77
0.566747
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,923
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/ml/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'N j, Y' TIME_FORMAT = 'P' DATETIME_FORMAT = 'N j, Y, P' YEAR_MONTH_FORMAT...
1,635
Python
.py
40
38.2
81
0.515075
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,924
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/sv/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = 'j F Y H:i' YEAR_MONTH_FORMA...
1,365
Python
.py
38
33.394737
77
0.532075
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,925
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/bs/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j. N Y.' TIME_FORMAT = 'G:i' DATETIME_FORMAT = 'j. N. Y. G:i T' YEAR_MONT...
736
Python
.py
21
33.666667
77
0.7223
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,926
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/hi/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'g:i:s A' # DATETIME_FORMAT = # YEAR_MONTH_FORMAT =...
719
Python
.py
21
32.761905
77
0.731322
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,927
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/fr/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j F Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'j F Y H:i:s' YEAR_MONTH_F...
1,530
Python
.py
39
36.641026
77
0.546004
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,928
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/tr/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'd F Y' TIME_FORMAT = 'H:i:s' DATETIME_FORMAT = 'd F Y H:i:s' YEAR_MONTH_F...
1,281
Python
.py
35
34.285714
77
0.569936
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,929
formats.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/locale/pt_BR/formats.py
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = r'j \de N \de Y' TIME_FORMAT = 'H:i' DATETIME_FORMAT = r'j \de N \de Y à\...
1,530
Python
.py
38
37.736842
90
0.541611
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,930
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/app_template/tests.py
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
383
Python
.py
12
27.583333
79
0.705722
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,931
settings.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/project_template/settings.py
# Django settings for {{ project_name }} project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. ...
5,005
Python
.py
122
37.57377
115
0.702469
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,932
urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/project_template/urls.py
from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', '{{ project_name }}.views.home', name='home'), # url(r'^{{ project_name }}/', inclu...
601
Python
.py
13
42.769231
75
0.683219
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,933
manage.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/project_template/manage.py
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
503
Python
.py
12
39.083333
216
0.736196
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,934
shortcut.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/urls/shortcut.py
from django.conf.urls.defaults import * urlpatterns = patterns('django.views', (r'^(?P<content_type_id>\d+)/(?P<object_id>.*)/$', 'defaults.shortcut'), )
159
Python
.py
4
37.5
76
0.668831
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,935
i18n.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/urls/i18n.py
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^setlang/$', 'django.views.i18n.set_language'), )
125
Python
.py
4
29
54
0.708333
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,936
defaults.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/urls/defaults.py
from django.core.urlresolvers import RegexURLPattern, RegexURLResolver from django.core.exceptions import ImproperlyConfigured __all__ = ['handler404', 'handler500', 'include', 'patterns', 'url'] handler404 = 'django.views.defaults.page_not_found' handler500 = 'django.views.defaults.server_error' def include(arg, na...
1,656
Python
.py
36
38.5
118
0.674102
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,937
static.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.3/django/conf/urls/static.py
import re from django.conf import settings from django.conf.urls.defaults import patterns, url from django.core.exceptions import ImproperlyConfigured def static(prefix, view='django.views.static.serve', **kwargs): """ Helper function to return a URL pattern for serving files in debug mode. from django.co...
893
Python
.py
21
37.52381
86
0.697005
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,938
setup.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/setup.py
from distutils.core import setup from distutils.command.install_data import install_data from distutils.command.install import INSTALL_SCHEMES import os import sys class osx_install_data(install_data): # On MacOS, the platform-specific lib dir is /System/Library/Framework/Python/.../ # which is wrong. Python 2...
4,087
Python
.py
88
39.965909
117
0.661319
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,939
csrf_migration_helper.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/extras/csrf_migration_helper.py
#!/usr/bin/env python # This script aims to help developers locate forms and view code that needs to # use the new CSRF protection in Django 1.2. It tries to find all the code that # may need the steps described in the CSRF documentation. It does not modify # any code directly, it merely attempts to locate it. Deve...
12,787
Python
.py
312
34.855769
146
0.651327
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,940
conf.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/docs/conf.py
# -*- coding: utf-8 -*- # # Django documentation build configuration file, created by # sphinx-quickstart on Thu Mar 27 09:06:53 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleab...
8,709
Python
.py
196
43.015306
85
0.734716
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,941
djangodocs.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/docs/_ext/djangodocs.py
""" Sphinx plugins for Django documentation. """ import os import re from docutils import nodes, transforms try: import json except ImportError: try: import simplejson as json except ImportError: try: from django.utils import simplejson as json except ImportError: ...
9,475
Python
.py
238
30.302521
114
0.587622
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,942
literals_to_xrefs.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/docs/_ext/literals_to_xrefs.py
""" Runs through a reST file looking for old-style literals, and helps replace them with new-style references. """ import re import sys import shelve refre = re.compile(r'``([^`\s]+?)``') ROLES = ( 'attr', 'class', "djadmin", 'data', 'exc', 'file', 'func', 'lookup', 'meth', 'm...
4,814
Python
.py
141
26.120567
93
0.555727
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,943
applyxrefs.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/docs/_ext/applyxrefs.py
"""Adds xref targets to the top of files.""" import sys import os testing = False DONT_TOUCH = ( './index.txt', ) def target_name(fn): if fn.endswith('.txt'): fn = fn[:-4] return '_' + fn.lstrip('./').replace('/', '-') def process_file(fn, lines): lines.insert(0, '\n') lines...
2,148
Python
.py
75
21.346667
75
0.533721
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,944
modpython.txt
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/docs/howto/deployment/modpython.txt
.. _howto-deployment-modpython: ============================================ How to use Django with Apache and mod_python ============================================ .. warning:: Support for mod_python will be deprecated in a future release of Django. If you are configuring a new deployment, you are strongl...
17,332
Python
.py
314
52.009554
103
0.743631
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,945
urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/urls.py
from django.conf.urls.defaults import * urlpatterns = patterns('', # test_client modeltest urls (r'^test_client/', include('modeltests.test_client.urls')), (r'^test_client_regress/', include('regressiontests.test_client_regress.urls')), # File upload test views (r'^file_uploads/', include('regress...
1,658
Python
.py
31
48.451613
95
0.708178
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,946
test_sqlite.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/test_sqlite.py
# This is an example test settings file for use with the Django test suite. # # The 'sqlite3' backend requires only the ENGINE setting (an in- # memory database will be used). All other backends will require a # NAME and potentially authentication information. See the # following section in the docs for more informatio...
835
Python
.py
21
37.190476
76
0.751538
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,947
runtests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/runtests.py
#!/usr/bin/env python import os, subprocess, sys, traceback import unittest import django.contrib as contrib CONTRIB_DIR_NAME = 'django.contrib' MODEL_TESTS_DIR_NAME = 'modeltests' REGRESSION_TESTS_DIR_NAME = 'regressiontests' TEST_TEMPLATE_DIR = 'templates' CONTRIB_DIR = os.path.dirname(contrib.__file__) MODEL_TE...
13,764
Python
.py
287
40.142857
161
0.657581
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,948
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/test_utils/tests.py
r""" # Some checks of the doctest output normalizer. # Standard doctests do fairly >>> from django.utils import simplejson >>> from django.utils.xmlutils import SimplerXMLGenerator >>> from StringIO import StringIO >>> def produce_long(): ... return 42L >>> def produce_int(): ... return 42 >>> def produce_j...
2,307
Python
.py
58
38.517241
119
0.617174
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,949
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/syndication/models.py
from django.db import models class Entry(models.Model): title = models.CharField(max_length=200) date = models.DateTimeField() class Meta: ordering = ('date',) def __unicode__(self): return self.title def get_absolute_url(self): return "/blog/%s/" % self.pk class Articl...
474
Python
.py
15
25.8
44
0.660754
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,950
feeds.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/syndication/feeds.py
from django.contrib.syndication import feeds, views from django.core.exceptions import ObjectDoesNotExist from django.utils import feedgenerator, tzinfo from models import Article, Entry class ComplexFeed(views.Feed): def get_object(self, request, foo=None): if foo is not None: raise ObjectDoe...
3,833
Python
.py
103
31.368932
77
0.694934
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,951
urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/syndication/urls.py
from django.conf.urls.defaults import * import feeds feed_dict = { 'complex': feeds.DeprecatedComplexFeed, 'rss': feeds.DeprecatedRssFeed, } urlpatterns = patterns('django.contrib.syndication.views', (r'^complex/(?P<foo>.*)/$', feeds.ComplexFeed()), (r'^rss2/$', feeds.TestRss2Feed()), (r'^rss091/...
811
Python
.py
20
36.55
70
0.625159
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,952
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/syndication/tests.py
import datetime from django.contrib.syndication import feeds, views from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from django.utils import tzinfo from django.utils.feedgenerator import rfc2822_date, rfc3339_date from models import Entry from xml.dom import minidom try: se...
14,191
Python
.py
306
37.055556
151
0.615685
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,953
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/select_related_regress/models.py
from django.db import models class Building(models.Model): name = models.CharField(max_length=10) def __unicode__(self): return u"Building: %s" % self.name class Device(models.Model): building = models.ForeignKey('Building') name = models.CharField(max_length=10) def __unicode__(self): ...
2,390
Python
.py
62
34.129032
77
0.722222
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,954
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/select_related_regress/tests.py
from django.test import TestCase from regressiontests.select_related_regress.models import * class SelectRelatedRegressTests(TestCase): def test_regression_7110(self): """ Regression test for bug #7110. When using select_related(), we must query the Device and Building tables usin...
6,343
Python
.py
106
50.764151
129
0.676115
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,955
urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/context_processors/urls.py
from django.conf.urls.defaults import * import views urlpatterns = patterns('', (r'^request_attrs/$', views.request_processor), (r'^auth_processor_no_attr_access/$', views.auth_processor_no_attr_access), (r'^auth_processor_attr_access/$', views.auth_processor_attr_access), (r'^auth_processor_user/$',...
544
Python
.py
11
45.636364
79
0.7
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,956
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/context_processors/tests.py
""" Tests for Django's bundled context processors. """ from django.conf import settings from django.contrib.auth import authenticate from django.db.models import Q from django.test import TestCase from django.template import Template class RequestContextProcessorTests(TestCase): """ Tests for the ``django.cor...
4,683
Python
.py
100
39.11
81
0.663531
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,957
views.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/context_processors/views.py
from django.core import context_processors from django.shortcuts import render_to_response from django.template.context import RequestContext def request_processor(request): return render_to_response('context_processors/request_attrs.html', RequestContext(request, {}, processors=[context_processors.reques...
1,698
Python
.py
29
53.517241
79
0.762793
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,958
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/admin_ordering/models.py
# coding: utf-8 from django.db import models class Band(models.Model): name = models.CharField(max_length=100) bio = models.TextField() rank = models.IntegerField() class Meta: ordering = ('name',)
224
Python
.py
8
23.75
43
0.682243
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,959
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/admin_ordering/tests.py
from django.test import TestCase from django.contrib.admin.options import ModelAdmin from models import Band class TestAdminOrdering(TestCase): """ Let's make sure that ModelAdmin.queryset uses the ordering we define in ModelAdmin rather that ordering defined in the model's inner Meta class. """ ...
1,308
Python
.py
34
31.088235
78
0.627266
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,960
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/m2m_regress/models.py
from django.db import models from django.contrib.auth import models as auth # No related name is needed here, since symmetrical relations are not # explicitly reversible. class SelfRefer(models.Model): name = models.CharField(max_length=10) references = models.ManyToManyField('self') related = models.ManyT...
1,930
Python
.py
45
39.2
80
0.755342
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,961
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/m2m_regress/tests.py
from django.core.exceptions import FieldError from django.test import TestCase from models import (SelfRefer, Tag, TagCollection, Entry, SelfReferChild, SelfReferChildSibling, Worksheet) class M2MRegressionTests(TestCase): def assertRaisesErrorWithMessage(self, error, message, callable, *args, **kwargs): ...
3,145
Python
.py
61
42.934426
143
0.663728
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,962
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/admin_inlines/models.py
""" Testing of admin inline formsets. """ from django.db import models from django.contrib import admin from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic class Parent(models.Model): name = models.CharField(max_length=50) def __unicode__(self): ...
3,164
Python
.py
86
32.872093
91
0.752221
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,963
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/admin_inlines/tests.py
from django.contrib.admin.helpers import InlineAdminForm from django.contrib.contenttypes.models import ContentType from django.test import TestCase # local test models from models import (Holder, Inner, InnerInline, Holder2, Inner2, Holder3, Inner3, Person, OutfitItem, Fashionista, Teacher, Parent, Child) class...
5,068
Python
.py
100
42.16
93
0.66606
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,964
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/m2m_through_regress/models.py
from datetime import datetime from django.contrib.auth.models import User from django.core import management from django.db import models # Forward declared intermediate model class Membership(models.Model): person = models.ForeignKey('Person') group = models.ForeignKey('Group') price = models.IntegerFie...
2,347
Python
.py
56
37.392857
86
0.7163
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,965
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/m2m_through_regress/tests.py
try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from django.core import management from django.contrib.auth.models import User from django.test import TestCase from models import (Person, Group, Membership, UserMembership, Car, Driver, CarDriver) cla...
5,744
Python
.py
118
39.762712
356
0.619192
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,966
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/select_related_onetoone/models.py
from django.db import models class User(models.Model): username = models.CharField(max_length=100) email = models.EmailField() def __unicode__(self): return self.username class UserProfile(models.Model): user = models.OneToOneField(User) city = models.CharField(max_length=100) state...
1,340
Python
.py
34
34.294118
64
0.705288
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,967
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/select_related_onetoone/tests.py
from django import db from django.conf import settings from django.test import TestCase from models import (User, UserProfile, UserStat, UserStatResult, StatDetails, AdvancedUserStat, Image, Product) class ReverseSelectRelatedTestCase(TestCase): def setUp(self): # Explicitly enable debug for these tes...
4,062
Python
.py
76
43.921053
106
0.676411
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,968
included_urls2.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/included_urls2.py
""" These URL patterns are included in two different ways in the main urls.py, with an extra argument present in one case. Thus, there are two different ways for each name to resolve and Django must distinguish the possibilities based on the argument list. """ from django.conf.urls.defaults import * from views import ...
490
Python
.py
12
39
79
0.726891
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,969
urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/urls.py
from django.conf.urls.defaults import * from views import empty_view, absolute_kwargs_view other_patterns = patterns('', url(r'non_path_include/$', empty_view, name='non_path_include'), ) urlpatterns = patterns('', url(r'^places/(\d+)/$', empty_view, name='places'), url(r'^places?/$', empty_view, name="pl...
3,133
Python
.py
55
51.6
80
0.582192
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,970
extra_urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/extra_urls.py
""" Some extra URL patterns that are included at the top level. """ from django.conf.urls.defaults import * from views import empty_view urlpatterns = patterns('', url(r'^e-places/(\d+)/$', empty_view, name='extra-places'), url(r'^e-people/(?P<name>\w+)/$', empty_view, name="extra-people"), url('', includ...
481
Python
.py
11
41.090909
100
0.698718
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,971
urlconf_outer.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/urlconf_outer.py
from django.conf.urls.defaults import * import urlconf_inner urlpatterns = patterns('', url(r'^test/me/$', urlconf_inner.inner_view, name='outer'), url(r'^inner_urlconf/', include(urlconf_inner.__name__)) )
217
Python
.py
6
33.5
63
0.708134
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,972
included_urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/included_urls.py
from django.conf.urls.defaults import * from views import empty_view urlpatterns = patterns('', url(r'^$', empty_view, name="inner-nothing"), url(r'^extra/(?P<extra>\w+)/$', empty_view, name="inner-extra"), url(r'^(?P<one>\d+)|(?P<two>\d+)/$', empty_view, name="inner-disjunction"), )
298
Python
.py
7
39.714286
79
0.641379
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,973
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/tests.py
""" Unit tests for reverse URL lookups. """ import unittest from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.urlresolvers import reverse, resolve, NoReverseMatch, Resolver404, RegexURLResolver from django.http import HttpResponseRedirect, HttpResponsePermanentRe...
16,357
Python
.py
283
50.487633
147
0.641168
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,974
included_namespace_urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/included_namespace_urls.py
from django.conf.urls.defaults import * from namespace_urls import URLObject testobj3 = URLObject('testapp', 'test-ns3') urlpatterns = patterns('regressiontests.urlpatterns_reverse.views', url(r'^normal/$', 'empty_view', name='inc-normal-view'), url(r'^normal/(?P<arg1>\d+)/(?P<arg2>\d+)/$', 'empty_view', name...
495
Python
.py
9
51.777778
107
0.705394
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,975
middleware.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/middleware.py
from django.core.urlresolvers import set_urlconf import urlconf_inner class ChangeURLconfMiddleware(object): def process_request(self, request): request.urlconf = urlconf_inner.__name__ class NullChangeURLconfMiddleware(object): def process_request(self, request): request.urlconf = None
315
Python
.py
8
35
48
0.776316
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,976
urls_error_handlers.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/urls_error_handlers.py
# Used by the ErrorHandlerResolutionTests test case. from django.conf.urls.defaults import patterns urlpatterns = patterns('') handler404 = 'regressiontests.urlpatterns_reverse.views.empty_view' handler500 = 'regressiontests.urlpatterns_reverse.views.empty_view'
266
Python
.py
5
51.6
67
0.841085
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,977
urlconf_inner.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/urlconf_inner.py
from django.conf.urls.defaults import * from django.template import Template, Context from django.http import HttpResponse def inner_view(request): content = Template('{% url outer as outer_url %}outer:{{ outer_url }},' '{% url inner as inner_url %}inner:{{ inner_url }}').render(Context()) ...
435
Python
.py
10
38.9
93
0.679245
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,978
urls_error_handlers_callables.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/urls_error_handlers_callables.py
# Used by the ErrorHandlerResolutionTests test case. from django.conf.urls.defaults import patterns from views import empty_view urlpatterns = patterns('') handler404 = empty_view handler500 = empty_view
207
Python
.py
6
33
52
0.833333
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,979
views.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/views.py
def empty_view(request, *args, **kwargs): pass def kwargs_view(request, arg1=1, arg2=2): pass def absolute_kwargs_view(request, arg1=1, arg2=2): pass
164
Python
.py
6
24
50
0.698718
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,980
namespace_urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/urlpatterns_reverse/namespace_urls.py
from django.conf.urls.defaults import * class URLObject(object): def __init__(self, app_name, namespace): self.app_name = app_name self.namespace = namespace def urls(self): return patterns('', url(r'^inner/$', 'empty_view', name='urlobject-view'), url(r'^inner/...
1,463
Python
.py
28
47.035714
117
0.668772
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,981
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/extra_regress/models.py
import datetime import django.utils.copycompat as copy from django.contrib.auth.models import User from django.db import models class RevisionableModel(models.Model): base = models.ForeignKey('self', null=True) title = models.CharField(blank=True, max_length=255) when = models.DateTimeField(default=datet...
1,241
Python
.py
30
34.966667
76
0.676103
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,982
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/extra_regress/tests.py
from django.test import TestCase from django.utils.datastructures import SortedDict from django.contrib.auth.models import User from regressiontests.extra_regress.models import TestObject, Order, \ RevisionableModel import datetime class ExtraRegressTests(TestCase): def setUp(self): self.u = Us...
12,934
Python
.py
268
37.350746
159
0.567829
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,983
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/mail/tests.py
# coding: utf-8 import asyncore import email import os import shutil import smtpd import sys from StringIO import StringIO import tempfile import threading from django.conf import settings from django.core import mail from django.core.mail import EmailMessage, mail_admins, mail_managers, EmailMultiAlternatives from dj...
25,337
Python
.py
476
44.659664
291
0.657427
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,984
custombackend.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/mail/custombackend.py
"""A custom backend for testing.""" from django.core.mail.backends.base import BaseEmailBackend class EmailBackend(BaseEmailBackend): def __init__(self, *args, **kwargs): super(EmailBackend, self).__init__(*args, **kwargs) self.test_outbox = [] def send_messages(self, email_messages): ...
464
Python
.py
10
40.1
65
0.694878
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,985
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/inspectdb/models.py
from django.db import models class People(models.Model): name = models.CharField(max_length=255) class Message(models.Model): from_field = models.ForeignKey(People, db_column='from_id')
197
Python
.py
5
36.2
63
0.767196
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,986
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/inspectdb/tests.py
from StringIO import StringIO from django.core.management import call_command from django.test import TestCase class InspectDBTestCase(TestCase): def test_attribute_name_not_python_keyword(self): out = StringIO() call_command('inspectdb', stdout=out) error_message = "inspectdb generated a...
584
Python
.py
11
47.090909
106
0.74386
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,987
test_saferef.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/dispatch/tests/test_saferef.py
from django.dispatch.saferef import * import unittest class Test1(object): def x(self): pass def test2(obj): pass class Test2(object): def __call__(self, obj): pass class Tester(unittest.TestCase): def setUp(self): ts = [] ss = [] for x in xrange(5000): ...
2,071
Python
.py
65
22.461538
76
0.551125
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,988
__init__.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/dispatch/tests/__init__.py
""" Unit-tests for the dispatch project """ from test_saferef import * from test_dispatcher import *
102
Python
.py
5
19.2
35
0.78125
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,989
test_dispatcher.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/dispatch/tests/test_dispatcher.py
from django.dispatch import Signal import unittest import sys import gc import django.utils.copycompat as copy if sys.platform.startswith('java'): def garbage_collect(): """Run the garbage collector and wait a bit to let it do his work""" import time gc.collect() time.sleep(0.1) els...
3,724
Python
.py
104
27.932692
76
0.631667
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,990
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/builtin_server/tests.py
from unittest import TestCase from StringIO import StringIO from django.core.servers.basehttp import ServerHandler # # Tests for #9659: wsgi.file_wrapper in the builtin server. # We need to mock a couple of of handlers and keep track of what # gets called when using a couple kinds of WSGI apps. # class DummyHandler(o...
1,721
Python
.py
42
35.380952
83
0.682635
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,991
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/model_fields/models.py
import os import tempfile # Try to import PIL in either of the two ways it can end up installed. # Checking for the existence of Image is enough for CPython, but for PyPy, # you need to check for the underlying modules. try: from PIL import Image, _imaging except ImportError: try: import Image, _imagi...
5,401
Python
.py
130
32.353846
79
0.615018
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,992
imagefield.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/model_fields/imagefield.py
import os import shutil from django.core.files import File from django.core.files.base import ContentFile from django.core.files.images import ImageFile from django.test import TestCase from models import Image, Person, PersonWithHeight, PersonWithHeightAndWidth, \ PersonDimensionsFirst, PersonTwoImages, Test...
16,535
Python
.py
346
35.531792
79
0.59485
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,993
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/model_fields/tests.py
import datetime import unittest from decimal import Decimal import django.test from django import forms from django.db import models from django.core.exceptions import ValidationError from models import Foo, Bar, Whiz, BigD, BigS, Image, BigInt, Post, NullBooleanModel, BooleanModel # If PIL available, do these tests...
12,549
Python
.py
258
40.341085
98
0.655034
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,994
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/fixtures_regress/models.py
from django.db import models, DEFAULT_DB_ALIAS from django.contrib.auth.models import User from django.conf import settings class Animal(models.Model): name = models.CharField(max_length=150) latin_name = models.CharField(max_length=150) count = models.IntegerField() weight = models.FloatField() ...
5,399
Python
.py
148
30.635135
79
0.681484
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,995
tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/fixtures_regress/tests.py
# -*- coding: utf-8 -*- # Unittests for fixtures. import os import re import sys try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from django.conf import settings from django.core import management from django.core.management.commands.dumpdata import sort_dependencies from ...
20,296
Python
.py
566
25.685512
407
0.56896
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,996
models.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/comment_tests/models.py
""" Comments may be attached to any object. See the comment documentation for more information. """ from django.db import models from django.test import TestCase class Author(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) def __str__(self): ...
896
Python
.py
25
31.48
91
0.715949
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,997
urls.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/comment_tests/urls.py
from django.conf.urls.defaults import * from django.contrib.comments.feeds import LatestCommentFeed feeds = { 'comments': LatestCommentFeed, } urlpatterns = patterns('regressiontests.comment_tests.custom_comments.views', url(r'^post/$', 'custom_submit_comment'), url(r'^flag/(\d+)/$', 'custom_...
626
Python
.py
15
38.6
98
0.662829
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,998
urls_admin.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/comment_tests/urls_admin.py
from django.conf.urls.defaults import * from django.contrib import admin from django.contrib.comments.admin import CommentsAdmin from django.contrib.comments.models import Comment # Make a new AdminSite to avoid picking up the deliberately broken admin # modules in other tests. admin_site = admin.AdminSite() admin_sit...
679
Python
.py
16
40.75
79
0.79697
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)
2,999
feed_tests.py
gabrielfalcao_lettuce/tests/integration/lib/Django-1.2.5/tests/regressiontests/comment_tests/tests/feed_tests.py
import warnings from django.test.utils import get_warnings_state, restore_warnings_state from regressiontests.comment_tests.tests import CommentTestCase class CommentFeedTests(CommentTestCase): urls = 'regressiontests.comment_tests.urls' feed_url = '/rss/comments/' def test_feed(self): response...
1,316
Python
.py
24
46.125
101
0.699143
gabrielfalcao/lettuce
1,274
325
102
GPL-3.0
9/5/2024, 5:08:58 PM (Europe/Amsterdam)