code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
# Django settings for polls project.
import os
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'pollngo' ... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.0476,
0.0119,
0,
0.66,
0.0435,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0595,
0.0119,
0,
... | [
"import os",
"DEBUG = False",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'pollngo' # Or path to d... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.37,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
(r'^', include('polls.pollngo.urls')),
# Uncomment this for admin:
# (r'^admin/', include('django.contrib.admin.urls')),
)
| [
[
1,
0,
0.1111,
0.1111,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.6667,
0.7778,
0,
0.66,
1,
990,
3,
2,
0,
0,
75,
10,
2
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('',\n # Example:\n (r'^', include('polls.pollngo.urls')),\n\n # Uncomment this for admin:\n# (r'^admin/', include('django.contrib.admin.urls')),\n)"
] |
from django.db import models
from django.contrib.auth.models import User
class Question(models.Model):
"""This class represents a question. It can have 2 or more options."""
created_on = models.DateTimeField(auto_now_add = 1)
title = models.SlugField(max_length = 200)
slug = models.SlugField(uni... | [
[
1,
0,
0.02,
0.02,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.04,
0.02,
0,
0.66,
0.3333,
808,
0,
1,
0,
0,
808,
0,
0
],
[
3,
0,
0.4,
0.66,
0,
0.66,
0.666... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"class Question(models.Model):\n \"\"\"This class represents a question. It can have 2 or more options.\"\"\"\n created_on = models.DateTimeField(auto_now_add = 1)\n title = models.SlugField(max_length = 200)\n slug = mod... |
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
urlpatterns = patterns('pollngo.views',
(r'^$', 'index'),
(r'^poll/(?P<slug>[^\.^/]+)/$', 'question'),
(r'^create/$', 'create'),
(r'^help/$', 'help'),
(r'^results/(?P<slug>[^\.^/]+)/$', 'resul... | [
[
1,
0,
0.0526,
0.0526,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.1053,
0.0526,
0,
0.66,
0.5,
956,
0,
1,
0,
0,
956,
0,
0
],
[
14,
0,
0.3684,
0.3684,
0,
0.... | [
"from django.conf.urls.defaults import *",
"from django.views.generic.simple import direct_to_template",
"urlpatterns = patterns('pollngo.views',\n (r'^$', 'index'),\n (r'^poll/(?P<slug>[^\\.^/]+)/$', 'question'),\n (r'^create/$', 'create'),\n (r'^help/$', 'help'),\n (r'^results/(?P<slug>[^\\.^/]... |
from django import newforms as forms
import models
class CreatePoll(forms.Form):
question_title = forms.CharField(widget = forms.TextInput(attrs = {'class':'required', 'size':50}), help_text = 'Title for your poll. This is required.')
question_text = forms.CharField(widget = forms.Textarea, help_text = 'S... | [
[
1,
0,
0.0345,
0.0345,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.069,
0.0345,
0,
0.66,
0.5,
495,
0,
1,
0,
0,
495,
0,
0
],
[
3,
0,
0.569,
0.8966,
0,
0.66,... | [
"from django import newforms as forms",
"import models",
"class CreatePoll(forms.Form):\n question_title = forms.CharField(widget = forms.TextInput(attrs = {'class':'required', 'size':50}), help_text = 'Title for your poll. This is required.')\n question_text = forms.CharField(widget = forms.Textarea, hel... |
"""
PyGoogleChart - A complete Python wrapper for the Google Chart API
http://pygooglechart.slowchop.com/
Copyright 2007 Gerald Kaszuba
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, eith... | [
[
8,
0,
0.0154,
0.0294,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0322,
0.0014,
0,
0.66,
0.0256,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0336,
0.0014,
0,
0.66... | [
"\"\"\"\nPyGoogleChart - A complete Python wrapper for the Google Chart API\n\nhttp://pygooglechart.slowchop.com/\n\nCopyright 2007 Gerald Kaszuba\n\nThis program is free software: you can redistribute it and/or modify",
"import os",
"import urllib",
"import urllib2",
"import math",
"import random",
"im... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.15,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
# Django settings for kasekamp project.
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'kamp' ... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
14,
0,
0.0476,
0.0119,
0,
0.66,
0.0435,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0595,
0.0119,
0,
0.... | [
"import os.path",
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'kamp' # Or path to ... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.39,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
(r'^', include('kasekamp.kamp.urls')),
)
| [
[
1,
0,
0.1429,
0.1429,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.7143,
0.7143,
0,
0.66,
1,
990,
3,
2,
0,
0,
75,
10,
2
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('',\n # Example:\n (r'^', include('kasekamp.kamp.urls')),\n\n)"
] |
from django.db import models
from django.contrib.auth.models import User
class Projset(models.Model):
"""The project set for a user. Contains all their projects."""
name = models.CharField(unique = True, max_length = 100)
user = models.ForeignKey(User, unique = True)
def get_absolute_url(s... | [
[
1,
0,
0.0122,
0.0122,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0244,
0.0122,
0,
0.66,
0.1667,
808,
0,
1,
0,
0,
808,
0,
0
],
[
3,
0,
0.1037,
0.122,
0,
0.6... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"class Projset(models.Model):\n \"\"\"The project set for a user. Contains all their projects.\"\"\"\n name = models.CharField(unique = True, max_length = 100)\n user = models.ForeignKey(User, unique = True)\n \n def g... |
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib.auth.views import login, logout, password_change, password_reset
#Account management view
urlpatterns = patterns('',
url(r'^accounts/login/$', login, {'template_name': 'registration/login.h... | [
[
1,
0,
0.0303,
0.0303,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.0606,
0.0303,
0,
0.66,
0.3333,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.0909,
0.0303,
0,
... | [
"from django.conf.urls.defaults import *",
"from django.views.generic.simple import direct_to_template",
"from django.contrib.auth.views import login, logout, password_change, password_reset",
"urlpatterns = patterns('',\n url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'log... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.6,
0... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
# Django settings for answers project.
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'answrs' ... | [
[
1,
0,
0.0227,
0.0114,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
14,
0,
0.0455,
0.0114,
0,
0.66,
0.04,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0568,
0.0114,
0,
0.66... | [
"import os.path",
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'answrs' # Or path t... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.31,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^answers/', include('answers.foo.urls')),
(r'^admin/', include('django.contrib.admin.urls')),
(r'', include('answers.answrs.urls')),
# Uncomment this for admin:
)
| [
[
1,
0,
0.1,
0.1,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.65,
0.8,
0,
0.66,
1,
990,
3,
3,
0,
0,
75,
10,
3
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('',\n # Example:\n # (r'^answers/', include('answers.foo.urls')),\n (r'^admin/', include('django.contrib.admin.urls')),\n (r'', include('answers.answrs.urls')),\n\n # Uncomment this for admin:\n)"
] |
from django.db import models
from django.contrib.auth.models import User
import Image
from django.conf import settings
import os.path
import re
import shutil
class UserProfile(models.Model):
user = models.ForeignKey(User, unique = True)
best_answers = models.IntegerField(default = 0)
answers =... | [
[
1,
0,
0.011,
0.011,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.022,
0.011,
0,
0.66,
0.0909,
808,
0,
1,
0,
0,
808,
0,
0
],
[
1,
0,
0.044,
0.011,
0,
0.66,
... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"import Image",
"from django.conf import settings",
"import os.path",
"import re",
"import shutil",
"class UserProfile(models.Model):\n user = models.ForeignKey(User, unique = True)\n best_answers = models.IntegerFiel... |
from django import newforms as forms
from models import *
from django.contrib.auth.models import User
from django.newforms import ValidationError
from django.utils.translation import ugettext as _
class QuestionForm(forms.Form):
category = forms.ChoiceField()
title = forms.CharField(max_length = ... | [
[
1,
0,
0.0115,
0.0115,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.023,
0.0115,
0,
0.66,
0.1111,
495,
0,
1,
0,
0,
495,
0,
0
],
[
1,
0,
0.046,
0.0115,
0,
0.... | [
"from django import newforms as forms",
"from models import *",
"from django.contrib.auth.models import User",
"from django.newforms import ValidationError",
"from django.utils.translation import ugettext as _",
"class QuestionForm(forms.Form):\n category = forms.ChoiceField()\n title = forms.CharFi... |
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib.auth.views import login, logout
#Account management view
urlpatterns = patterns('',
url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),
url(r'^acco... | [
[
1,
0,
0.0312,
0.0312,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0.3333,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.0938,
0.0312,
0,
... | [
"from django.conf.urls.defaults import *",
"from django.views.generic.simple import direct_to_template",
"from django.contrib.auth.views import login, logout",
"urlpatterns = patterns('',\n url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),\n url(r'^accounts/logout... |
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404, HttpResponseRedirect
def handle404 (view_function):
"""If we are not in debug mode, convert ObjectDoesNotExist to Http404"""
def wrapper (*args, **kwargs):
if not settings.DEBU... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
128,
0,
1,
0,
0,
128,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.3333,
160,
0,
1,
0,
0,
160,
0,
0
],
[
1,
0,
0.1875,
0.0625,
0,
0... | [
"from django.conf import settings",
"from django.core.exceptions import ObjectDoesNotExist",
"from django.http import Http404, HttpResponseRedirect",
"def handle404 (view_function):\n \"\"\"If we are not in debug mode, convert ObjectDoesNotExist to Http404\"\"\"\n def wrapper (*args, **kwargs):\n ... |
from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden
from models import *
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
import datetime
import random
from decorators import handle40... | [
[
1,
0,
0.0069,
0.0069,
0,
0.66,
0,
779,
0,
3,
0,
0,
779,
0,
0
],
[
1,
0,
0.0138,
0.0069,
0,
0.66,
0.0526,
495,
0,
1,
0,
0,
495,
0,
0
],
[
1,
0,
0.0207,
0.0069,
0,
... | [
"from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden",
"from models import *",
"from django.shortcuts import render_to_response",
"from django.template import RequestContext",
"from django.contrib.auth.decorators import login_required",
"import datetime",
"import random",
... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.3,
0... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
# Django settings for kasekamp project.
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'kamp' ... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
14,
0,
0.0476,
0.0119,
0,
0.66,
0.0435,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0595,
0.0119,
0,
0.... | [
"import os.path",
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'kamp' # Or path to ... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.76,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
(r'^', include('kasekamp.kamp.urls')),
)
| [
[
1,
0,
0.1429,
0.1429,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.7143,
0.7143,
0,
0.66,
1,
990,
3,
2,
0,
0,
75,
10,
2
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('',\n # Example:\n (r'^', include('kasekamp.kamp.urls')),\n\n)"
] |
from django.db import models
from django.contrib.auth.models import User
class Projset(models.Model):
"""The project set for a user. Contains all their projects."""
name = models.CharField(unique = True, max_length = 100)
user = models.ForeignKey(User, unique = True)
def get_absolute_url(s... | [
[
1,
0,
0.011,
0.011,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.022,
0.011,
0,
0.66,
0.1429,
808,
0,
1,
0,
0,
808,
0,
0
],
[
3,
0,
0.0934,
0.1099,
0,
0.66,
... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"class Projset(models.Model):\n \"\"\"The project set for a user. Contains all their projects.\"\"\"\n name = models.CharField(unique = True, max_length = 100)\n user = models.ForeignKey(User, unique = True)\n \n def g... |
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib.auth.views import login, logout, password_change, password_reset
#Account management view
urlpatterns = patterns('',
url(r'^accounts/login/$', login, {'template_name': 'registration/login.h... | [
[
1,
0,
0.0303,
0.0303,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.0606,
0.0303,
0,
0.66,
0.3333,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.0909,
0.0303,
0,
... | [
"from django.conf.urls.defaults import *",
"from django.views.generic.simple import direct_to_template",
"from django.contrib.auth.views import login, logout, password_change, password_reset",
"urlpatterns = patterns('',\n url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'log... |
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404, HttpResponseRedirect
def handle404 (view_function):
"""If we are not in debug mode, convert ObjectDoesNotExist to Http404"""
def wrapper (*args, **kwargs):
if not settings.DEBU... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
128,
0,
1,
0,
0,
128,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.3333,
160,
0,
1,
0,
0,
160,
0,
0
],
[
1,
0,
0.1875,
0.0625,
0,
0... | [
"from django.conf import settings",
"from django.core.exceptions import ObjectDoesNotExist",
"from django.http import Http404, HttpResponseRedirect",
"def handle404 (view_function):\n \"\"\"If we are not in debug mode, convert ObjectDoesNotExist to Http404\"\"\"\n def wrapper (*args, **kwargs):\n ... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.29,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
import os.path
#DEBUG = True
#TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'todidlist' # Or path to database file ... | [
[
1,
0,
0.0119,
0.0119,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
14,
0,
0.0833,
0.0357,
0,
0.66,
0.0476,
223,
0,
0,
0,
0,
0,
8,
0
],
[
14,
0,
0.119,
0.0119,
0,
0.6... | [
"import os.path",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'todidlist' # Or path to database file if using sqlite3.",
"DATA... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.04,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout, password_change, password_reset
#Account management view
urlpatterns = patterns('',
url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),
url(r'^accounts/logout/$', logout, {'t... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,
0.5,
745,
0,
4,
0,
0,
745,
0,
0
],
[
14,
0,
0.4412,
0.3529,
0,
0.... | [
"from django.conf.urls.defaults import *",
"from django.contrib.auth.views import login, logout, password_change, password_reset",
"urlpatterns = patterns('',\n url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),\n url(r'^accounts/logout/$', logout, {'template_name': ... |
from django.db import models
from django.contrib.auth.models import User
class TodoList(models.Model):
user = models.ForeignKey(User)
list_name = models.CharField(max_length = 100,)
is_public = models.BooleanField(default = True)
completed = models.BooleanField(default = False)
def get_abso... | [
[
1,
0,
0.0213,
0.0213,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0426,
0.0213,
0,
0.66,
0.3333,
808,
0,
1,
0,
0,
808,
0,
0
],
[
3,
0,
0.2447,
0.3404,
0,
0.... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"class TodoList(models.Model):\n user = models.ForeignKey(User)\n list_name = models.CharField(max_length = 100,)\n is_public = models.BooleanField(default = True)\n completed = models.BooleanField(default = False)\n d... |
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
urlpatterns = patterns('todidlist.views',
url(r'^$', 'index', name = 'index'),
url(r'^create/$', 'create', name='create'),
url(r'^list/(?P<list_id>\d+)/$', 'list_detail', name='list_detail'),
url(r... | [
[
1,
0,
0.05,
0.05,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.1,
0.05,
0,
0.66,
0.5,
956,
0,
1,
0,
0,
956,
0,
0
],
[
14,
0,
0.475,
0.6,
0,
0.66,
1,
... | [
"from django.conf.urls.defaults import *",
"from django.views.generic.simple import direct_to_template",
"urlpatterns = patterns('todidlist.views',\n url(r'^$', 'index', name = 'index'),\n url(r'^create/$', 'create', name='create'),\n url(r'^list/(?P<list_id>\\d+)/$', 'list_detail', name='list_detail')... |
num_choices_default = 8
num_choices_max = 24
| [
[
14,
0,
0.5,
0.5,
0,
0.66,
0,
330,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
1,
0.5,
0,
0.66,
1,
463,
1,
0,
0,
0,
0,
1,
0
]
] | [
"num_choices_default = 8",
"num_choices_max = 24"
] |
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404, HttpResponseRedirect
def handle404 (view_function):
"""If we are not in debug mode, convert ObjectDoesNotExist to Http404"""
def wrapper (*args, **kwargs):
if not settings.DEBU... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
128,
0,
1,
0,
0,
128,
0,
0
],
[
1,
0,
0.125,
0.0625,
0,
0.66,
0.3333,
160,
0,
1,
0,
0,
160,
0,
0
],
[
1,
0,
0.1875,
0.0625,
0,
0... | [
"from django.conf import settings",
"from django.core.exceptions import ObjectDoesNotExist",
"from django.http import Http404, HttpResponseRedirect",
"def handle404 (view_function):\n \"\"\"If we are not in debug mode, convert ObjectDoesNotExist to Http404\"\"\"\n def wrapper (*args, **kwargs):\n ... |
num_choices_default = 8
num_choices_max = 24
| [
[
14,
0,
0.5,
0.5,
0,
0.66,
0,
330,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
1,
0.5,
0,
0.66,
1,
463,
1,
0,
0,
0,
0,
1,
0
]
] | [
"num_choices_default = 8",
"num_choices_max = 24"
] |
import django.newforms as forms
from dynaforms import DynaForm
import models
import re
from django.contrib.auth.models import User
from django.newforms import ValidationError
from django.utils.translation import ugettext as _
class NewListFactory:
@classmethod
def get_new_list(self, request, num_choi... | [
[
1,
0,
0.0106,
0.0106,
0,
0.66,
0,
256,
0,
1,
0,
0,
256,
0,
0
],
[
1,
0,
0.0213,
0.0106,
0,
0.66,
0.1,
339,
0,
1,
0,
0,
339,
0,
0
],
[
1,
0,
0.0319,
0.0106,
0,
0.6... | [
"import django.newforms as forms",
"from dynaforms import DynaForm",
"import models",
"import re",
"from django.contrib.auth.models import User",
"from django.newforms import ValidationError",
"from django.utils.translation import ugettext as _",
"class NewListFactory:\n @classmethod\n def get_n... |
from copy import deepcopy
import django.newforms as forms
from django.utils.datastructures import SortedDict
from django.newforms.fields import Field
from django.newforms.widgets import TextInput, Textarea
#Dyna forms
class DynaDeclarativeFieldsMetaclass(forms.forms.DeclarativeFieldsMetaclass):
"""
... | [
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0789,
0.0263,
0,
0.66,
0.1667,
256,
0,
1,
0,
0,
256,
0,
0
],
[
1,
0,
0.1053,
0.0263,
0,
... | [
"from copy import deepcopy",
"import django.newforms as forms",
"from django.utils.datastructures import SortedDict",
"from django.newforms.fields import Field",
"from django.newforms.widgets import TextInput, Textarea",
"class DynaDeclarativeFieldsMetaclass(forms.forms.DeclarativeFieldsMetaclass):\n \... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.19,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.db import models
from django.contrib.auth.models import User
from django.db import connection
class Tag(models.Model):
"""A job or an entry can be tagged with this."""
name = models.CharField(max_length = 50)
user = models.ForeignKey(User)
def get_absolute_url(self):
... | [
[
1,
0,
0.0103,
0.0103,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0206,
0.0103,
0,
0.66,
0.1429,
808,
0,
1,
0,
0,
808,
0,
0
],
[
1,
0,
0.0309,
0.0103,
0,
0.... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"from django.db import connection",
"class Tag(models.Model):\n \"\"\"A job or an entry can be tagged with this.\"\"\"\n name = models.CharField(max_length = 50)\n user = models.ForeignKey(User)\n \n def get_absolute... |
from django.conf.urls.defaults import *
urlpatterns = patterns('mytym.views',
# Example:
(r'^$', 'index'),
(r'^jobs/$', 'handle_jobs'),
(r'^entries/$', 'handle_entries'),
(r'^addentry/$', 'detailed_entry'),
(r'^jobdetails/(?P<id>\d+)/$', 'job_details'),
(r'^entrydetails/(?P<id>\d+)... | [
[
1,
0,
0.0435,
0.0435,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.413,
0.6087,
0,
0.66,
1,
990,
3,
10,
0,
0,
75,
10,
2
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('mytym.views',\n # Example:\n (r'^$', 'index'),\n (r'^jobs/$', 'handle_jobs'),\n (r'^entries/$', 'handle_entries'),\n (r'^addentry/$', 'detailed_entry'),\n (r'^jobdetails/(?P<id>\\d+)/$', 'job_details'),\n (r'^entrydetails/(?P... |
num_rows = 3
| [
[
14,
0,
1,
1,
0,
0.66,
0,
150,
1,
0,
0,
0,
0,
1,
0
]
] | [
"num_rows = 3"
] |
from django import newforms as forms
from django.core.exceptions import ObjectDoesNotExist
from models import *
class JobsForm(forms.Form):
name = forms.CharField(max_length = 100)
default_tag = forms.CharField(max_length = 50)
def set_user(self, user):
self.user = user
def save(self... | [
[
1,
0,
0.0161,
0.0161,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.0323,
0.0161,
0,
0.66,
0.1667,
160,
0,
1,
0,
0,
160,
0,
0
],
[
1,
0,
0.0645,
0.0161,
0,
... | [
"from django import newforms as forms",
"from django.core.exceptions import ObjectDoesNotExist",
"from models import *",
"class JobsForm(forms.Form):\n name = forms.CharField(max_length = 100)\n default_tag = forms.CharField(max_length = 50)\n def set_user(self, user):\n self.user = user\n ... |
# Django settings for timetrack project.
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'mytym' ... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
14,
0,
0.0476,
0.0119,
0,
0.66,
0.0435,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0595,
0.0119,
0,
0.... | [
"import os.path",
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'mytym' # Or path to... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.35,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout, password_change, password_reset
#Account management view
urlpatterns = patterns('',
url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),
url(r'^accounts/logout/$', logout, {'t... | [
[
1,
0,
0.0556,
0.0556,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.1111,
0.0556,
0,
0.66,
0.5,
745,
0,
4,
0,
0,
745,
0,
0
],
[
14,
0,
0.4167,
0.3333,
0,
0.... | [
"from django.conf.urls.defaults import *",
"from django.contrib.auth.views import login, logout, password_change, password_reset",
"urlpatterns = patterns('',\n url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),\n url(r'^accounts/logout/$', logout, {'template_name': ... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.97,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
# Django settings for answers project.
import os.path
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'answrs' ... | [
[
1,
0,
0.0227,
0.0114,
0,
0.66,
0,
79,
0,
1,
0,
0,
79,
0,
0
],
[
14,
0,
0.0455,
0.0114,
0,
0.66,
0.04,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0568,
0.0114,
0,
0.66... | [
"import os.path",
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.",
"DATABASE_NAME = 'answrs' # Or path t... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.95,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# Example:
# (r'^answers/', include('answers.foo.urls')),
(r'', include('answers.answrs.urls')),
# Uncomment this for admin:
(r'^admin/', include('django.contrib.admin.urls')),
)
| [
[
1,
0,
0.1,
0.1,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
14,
0,
0.65,
0.8,
0,
0.66,
1,
990,
3,
3,
0,
0,
75,
10,
3
]
] | [
"from django.conf.urls.defaults import *",
"urlpatterns = patterns('',\n # Example:\n # (r'^answers/', include('answers.foo.urls')),\n (r'', include('answers.answrs.urls')),\n\n # Uncomment this for admin:\n (r'^admin/', include('django.contrib.admin.urls')),\n)"
] |
from django.db import models
from django.contrib.auth.models import User
import Image
from django.conf import settings
import os.path
import re
import shutil
class UserProfile(models.Model):
user = models.ForeignKey(User, unique = True)
pic = models.ImageField(upload_to = 'profiles')
best_answ... | [
[
1,
0,
0.012,
0.012,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0241,
0.012,
0,
0.66,
0.0909,
808,
0,
1,
0,
0,
808,
0,
0
],
[
1,
0,
0.0482,
0.012,
0,
0.66,
... | [
"from django.db import models",
"from django.contrib.auth.models import User",
"import Image",
"from django.conf import settings",
"import os.path",
"import re",
"import shutil",
"class UserProfile(models.Model):\n user = models.ForeignKey(User, unique = True)\n pic = models.ImageField(upload_to... |
from django import newforms as forms
from models import *
class QuestionForm(forms.ModelForm):
def __init__(self, user = None, *args, **kwargs):
self.user = user
super(QuestionForm, self).__init__(*args, **kwargs)
def save(self):
question = Question(user = self.user, categ... | [
[
1,
0,
0.0233,
0.0233,
0,
0.66,
0,
294,
0,
1,
0,
0,
294,
0,
0
],
[
1,
0,
0.0465,
0.0233,
0,
0.66,
0.2,
495,
0,
1,
0,
0,
495,
0,
0
],
[
3,
0,
0.2326,
0.3023,
0,
0.6... | [
"from django import newforms as forms",
"from models import *",
"class QuestionForm(forms.ModelForm):\n def __init__(self, user = None, *args, **kwargs):\n self.user = user\n super(QuestionForm, self).__init__(*args, **kwargs)\n \n def save(self):\n question = Question(user = self.... |
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.contrib.auth.views import login, logout
#Account management view
urlpatterns = patterns('',
url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),
url(r'^acco... | [
[
1,
0,
0.037,
0.037,
0,
0.66,
0,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.0741,
0.037,
0,
0.66,
0.3333,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66... | [
"from django.conf.urls.defaults import *",
"from django.views.generic.simple import direct_to_template",
"from django.contrib.auth.views import login, logout",
"urlpatterns = patterns('',\n url(r'^accounts/login/$', login, {'template_name': 'registration/login.html'}, 'login'),\n url(r'^accounts/logout... |
from django.http import HttpResponse, HttpResponseRedirect
from models import *
from django.shortcuts import render_to_response
from django.template import RequestContext
import aforms
def index(request):
userp = request.user.get_profile()
return HttpResponse(userp.get_pic_url())
def ask(request):... | [
[
1,
0,
0.0132,
0.0132,
0,
0.66,
0,
779,
0,
2,
0,
0,
779,
0,
0
],
[
1,
0,
0.0263,
0.0132,
0,
0.66,
0.0909,
495,
0,
1,
0,
0,
495,
0,
0
],
[
1,
0,
0.0395,
0.0132,
0,
... | [
"from django.http import HttpResponse, HttpResponseRedirect",
"from models import *",
"from django.shortcuts import render_to_response",
"from django.template import RequestContext",
"import aforms",
"def index(request):\n userp = request.user.get_profile()\n return HttpResponse(userp.get_pic_url())... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import 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 things.\nYou'll ha... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.56,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
# Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
# reserved. Use of this source code is governed by a BSD-style license that
# can be found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
'linux_use_gold_binary': 0,
'linux_use_gold_flags': 0,
'conditions': [
[ ... | [
[
8,
0,
0.5058,
0.9907,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
] | [
"{\n 'variables': {\n 'chromium_code': 1,\n 'linux_use_gold_binary': 0,\n 'linux_use_gold_flags': 0,\n 'conditions': [\n [ 'OS==\"mac\"', {\n # Don't use clang with CEF binary releases due to Chromium tree structure dependency."
] |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.3,
0.0167,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.35,
0.0167,
0,
0.66,
0.1111,
701,
0,
1,
0,
0,
701,
0,
0
],
[
1,
0,
0.3667,
0.0167,
0,
0.66,
... | [
"\"\"\"Common data types for Microsoft Office artifacts.\"\"\"",
"from lf.dtypes import LERecord",
"from lf.win.dtypes import UINT8, UINT16, UINT32",
"from lf.win.ole.ps.dtypes import TypedPropertyValue_VT_I4",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"PropertySetSystemIdentifier\",\n... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0336,
0.0019,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0393,
0.0019,
0,
0.66,
0.0556,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0411,
0.0019,
0,
0.66... | [
"\"\"\"Shared metadata for Microsoft Office documents.\"\"\"",
"from codecs import getdecoder",
"from uuid import UUID",
"from lf.dec import ByteIStream",
"from lf.dtypes import Structuple",
"from lf.win.codepage.consts import code_page_names",
"from lf.win.ole.ps.consts import (\n CODEPAGE_PROPERTY_... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.5,
0.0278,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.625,
0.1111,
0,
0.66,
0.1429,
108,
0,
4,
0,
0,
108,
0,
0
],
[
14,
0,
0.7222,
0.0278,
0,
0.66,
... | [
"\"\"\"Common Microsoft Office ctypes.\"\"\"",
"from lf.apps.msoffice.shared.dtypes import (\n PropertySetSystemIdentifier,\n VtHyperlinkHeader, DigSigInfoSerializedHeader, DigSigBlobHeader\n)",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"property_set_system_identifier\",\n \"vt_hy... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
1,
0,
0.5357,
0.1905,
0,
0.66,
0,
278,
0,
26,
0,
0,
278,
0,
0
],
[
1,
0,
0.6905,
0.0714,
0,
0.66,
0.5,
192,
0,
3,
0,
0,
192,
0,
0
],
[
14,
0,
0.881,
0.2619,
0,
0.... | [
"from lf.apps.msoffice.shared.objects import (\n PropertySetSystemIdentifier, PropertySetStreamHeader, VtThumbnailValue,\n Lpstr, UnalignedLpstr, VtVecUnalignedLpstrValue, Lpwstr, VtVecLpwstrValue,\n VtHeadingPair, VtVecHeadingPairValue, VtDigSigValue, VtHyperlink,\n VecVtHyperlink, VtHyperlinkValue, Di... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0106,
0.0006,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0123,
0.0006,
0,
0.66,
0.0244,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0141,
0.0006,
0,
0.66... | [
"\"\"\"Shared objects for Microsoft Office property sets.\"\"\"",
"from codecs import getdecoder",
"from lf.dec import SEEK_SET",
"from lf.dtypes import ActiveStructuple",
"from lf.dtypes.ctypes import uint32_le",
"from lf.win.codepage.consts import CP_WINUNICODE, code_page_names",
"from lf.win.ole.ps.c... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.1259,
0.007,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1399,
0.007,
0,
0.66,
0.0192,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2133,
0.1399,
0,
0.66,
... | [
"\"\"\"Shared constants for various Microsoft Office products.\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"PIDSI_CODEPAGE\", \"PIDSI_TITLE\", \"PIDSI_SUBJECT\", \"PIDSI_AUTHOR\",\n \"PIDSI_KEYWORDS\", \"PIDSI_COMMENTS\", \"PIDSI_TEMPLATE\", \"PIDSI_LAST_AUTHOR\",\n \"PIDSI_REV_N... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.093,
0.0233,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1116,
0.0047,
0,
0.66,
0.2,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1256,
0.014,
0,
0.66,
... | [
"\"\"\"\nMetadata from Microsoft Word documents.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"WordMetadata\"\n]",
"from datetime import date",
"from lf.apps.msoffice.word.objects import Fib, SttbShortUnicode",
"class W... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0543,
0.0136,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0652,
0.0027,
0,
0.66,
0.04,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0761,
0.019,
0,
0.66,
... | [
"\"\"\"\nStructures for Microsoft Word documents.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"FcLcb\", \"FcPgdOld\", \"FcPgd\", \"FibHeader\", \"FibShorts\", \"FibLongs\",\n \"Fib\", \"FibFcLcb97\", \"FibFcLcb2000\", \"F... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.3846,
0.0962,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4615,
0.0192,
0,
0.66,
0.0556,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.5288,
0.1154,
0,
0.66... | [
"\"\"\"\nExtractors for Microsoft Word.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"fc_lcb\", \"fc_pgd_old\", \"fc_pgd\", \"fib_header\", \"fib_shorts\", \"fib_longs\",\n \"fib\", \"fib_fc_lcb_97\", \"fib_fc_lcb_2000\", ... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
14,
0,
0.95,
0.15,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n \"consts\", \"extractors\", \"metadata\", \"objects\", \"datatypes\"\n]"
] |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0552,
0.0138,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0663,
0.0028,
0,
0.66,
0.0667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0718,
0.0083,
0,
0.66... | [
"\"\"\"\nObjects for Microsoft Word.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Fib\", \"SttbShort\", \"SttbLong\", \"SttbShortUnicode\", \"SttbLongUnicode\"\n]",
"from copy import copy",
"from lf.io.consts import SEEK... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.303,
0.0758,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3636,
0.0152,
0,
0.66,
0.0323,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3864,
0.0303,
0,
0.66,... | [
"\"\"\"\nConstants for Microsoft Word.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n]",
"NFIB_WIN_WORD_1 = 0x21 # WinWord 1.0",
"NFIB_WIN_WORD_2 = 0x2D # WinWord 2.0",
"NFIB_WIN_WORD_6_16 = 0x101 # WinWord 6.0c for 16bit",
... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
14,
0,
0.95,
0.15,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n \"shared\", \"word\"\n]"
] |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
14,
0,
0.95,
0.15,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n \"msoffice\"\n]"
] |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [] | [] |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.3175,
0.0794,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.381,
0.0159,
0,
0.66,
0.0417,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4444,
0.0794,
0,
0.66,... | [
"\"\"\"\nDecoders for the FAT file system\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"ext_flags\", \"fs_ver\", \"fat12fat_entry_even\", \"fat12fat_entry_odd\",\n \"fat12fat_entry0\", \"fat16fat_entry0\", \"fat32fat_entry... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.4444,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5333,
0.0222,
0,
0.66,
0.0714,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.6111,
0.0889,
0,
0.66... | [
"\"\"\"\nConvenience module that contains pre-built extractors for the FAT file system\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"boot_sector_fat1216\", \"boot_sector_fat32\", \"fsinfo\", \"fat_entry_fat12\",\n \"fat_en... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.1117,
0.0279,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1341,
0.0056,
0,
0.66,
0.0625,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1564,
0.0279,
0,
0.66... | [
"\"\"\"\nData structures for the FAT file system\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"BPB_FAT1216\", \"BPB_FAT32\", \"EXT_BPB\", \"BootSector_FAT1216\",\n \"BootSector_FAT32\", \"FSInfo\", \"FATEntry_FAT12\", \"FA... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
14,
0,
0.95,
0.15,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n \"consts\", \"structs\", \"decoders\", \"extractors\"\n]"
] |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.3175,
0.0794,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.381,
0.0159,
0,
0.66,
0.0385,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4683,
0.127,
0,
0.66,
... | [
"\"\"\"\nConstants for the FAT file system.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"MAX_CLUST_COUNT_FAT12\", \"MAX_CLUST_COUNT_FAT16\", \"UNALLOC_FAT\",\n \"EOC_FAT12\", \"EOC_FAT16\", \"EOC_FAT32\", \"BAD_FAT12\", \... |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
14,
0,
0.95,
0.15,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n \"fat\", \"ntfs\"\n]"
] |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.1216,
0.0068,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1419,
0.0068,
0,
0.66,
0.1667,
902,
0,
1,
0,
0,
902,
0,
0
],
[
1,
0,
0.1486,
0.0068,
0,
0.66... | [
"\"\"\"Digital evidence containers composed of subets of other streams.\"\"\"",
"from lf.dec.consts import SEEK_SET",
"from lf.dec.base import SingleStreamContainer, ManagedIStream",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Composite\", \"CompositeIStream\"\n]",
"class Composite(Sing... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0427,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0498,
0.0024,
0,
0.66,
0.1,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.0569,
0.0024,
0,
0.66,
... | [
"\"\"\"Base classes for Digital Evidence Containers (DECs)\"\"\"",
"from io import RawIOBase",
"from lf.dec.consts import SEEK_SET, SEEK_CUR, SEEK_END",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Container\", \"SingleStreamContainer\", \"StreamInfo\", \"IStream\",\n \"ManagedIStream\"... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.2169,
0.012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.253,
0.012,
0,
0.66,
0.1667,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.2892,
0.012,
0,
0.66,
... | [
"\"\"\"Digital evidence container for raw/dd files.\"\"\"",
"from io import BytesIO",
"from lf.dec.base import SingleStreamContainer, IStreamWrapper",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Byte\", \"ByteIStream\"\n]",
"class Byte(SingleStreamContainer):\n \"\"\"A container file... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.2571,
0.0143,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3,
0.0143,
0,
0.66,
0.125,
902,
0,
1,
0,
0,
902,
0,
0
],
[
1,
0,
0.3143,
0.0143,
0,
0.66,
... | [
"\"\"\"A stream for a raw/dd file that has been split into multiple pieces.\"\"\"",
"from lf.dec.consts import SEEK_SET",
"from lf.dec.base import SingleStreamContainer",
"from lf.dec.composite import CompositeIStream",
"from lf.dec.raw import RawIStream",
"__docformat__ = \"restructuredtext en\"",
"__a... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.1525,
0.0085,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.178,
0.0085,
0,
0.66,
0.1667,
902,
0,
1,
0,
0,
902,
0,
0
],
[
1,
0,
0.1864,
0.0085,
0,
0.66,... | [
"\"\"\"Digital evidence containers that are a subset of a stream.\"\"\"",
"from lf.dec.consts import SEEK_SET",
"from lf.dec.base import SingleStreamContainer, ManagedIStream",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Subset\", \"SubsetIStream\"\n]",
"class Subset(SingleStreamContain... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.24,
0.0133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.28,
0.0133,
0,
0.66,
0.1429,
518,
0,
1,
0,
0,
518,
0,
0
],
[
1,
0,
0.2933,
0.0133,
0,
0.66,
... | [
"\"\"\"Digital Evidence Container for raw/dd files.\"\"\"",
"import io",
"import os",
"from lf.dec.base import SingleStreamContainer, IStreamWrapper",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Raw\", \"RawIStream\"\n]",
"class Raw(SingleStreamContainer):\n \"\"\"A container for r... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.5,
0.0278,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5833,
0.0278,
0,
0.66,
0.1111,
902,
0,
3,
0,
0,
902,
0,
0
],
[
1,
0,
0.6111,
0.0278,
0,
0.66,
... | [
"\"\"\"Digital Evidence Containers\"\"\"",
"from lf.dec.consts import SEEK_SET, SEEK_CUR, SEEK_END",
"from lf.dec.base import Container, SingleStreamContainer, StreamInfo",
"from lf.dec.subset import Subset, SubsetIStream",
"from lf.dec.composite import Composite, CompositeIStream",
"from lf.dec.raw impor... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.7826,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.8696,
0.0435,
0,
0.66,
0.3333,
518,
0,
3,
0,
0,
518,
0,
0
],
[
14,
0,
0.9565,
0.0435,
0,
0.6... | [
"\"\"\"Constants for Digital Evidence Containers\"\"\"",
"from io import SEEK_SET, SEEK_CUR, SEEK_END",
"__docformat__ = \"restructuredtext en\"",
"__all__ = []"
] |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0735,
0.0041,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0857,
0.0041,
0,
0.66,
0.0769,
616,
0,
1,
0,
0,
616,
0,
0
],
[
1,
0,
0.0898,
0.0041,
0,
0.66... | [
"\"\"\"Data types composed of primitive data types.\"\"\"",
"from operator import itemgetter",
"from collections import OrderedDict",
"from ctypes import (\n LittleEndianStructure, BigEndianStructure, c_uint8\n)",
"from lf.dtypes.base import Primitive",
"from lf.dtypes.consts import BIG_ENDIAN, LITTLE_... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.3103,
0.0172,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3621,
0.0172,
0,
0.66,
0.1667,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.4138,
0.0172,
0,
0.66... | [
"\"\"\"Base classes for data types\"\"\"",
"from ctypes import c_ubyte",
"from lf.dtypes.base import Primitive",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"Basic\", \"raw\"\n]",
"class Basic(Primitive):\n \"\"\"Base class for :class:`Basic` data types.\"\"\"\n\n pass",
" \"\... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0359,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0419,
0.002,
0,
0.66,
0.0588,
890,
0,
1,
0,
0,
890,
0,
0
],
[
1,
0,
0.0439,
0.002,
0,
0.66,
... | [
"\"\"\"Support for a Data Access Layer (DAL)\"\"\"",
"from string import Template",
"from ctypes import sizeof",
"from operator import itemgetter",
"from itertools import count",
"from keyword import iskeyword",
"from lf.dec import ByteIStream",
"from lf.dec.consts import SEEK_SET",
"__docformat__ =... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.3529,
0.0196,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3922,
0.0196,
0,
0.66,
0.25,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4314,
0.0588,
0,
0.66,
... | [
"\"\"\"Base classes for data types.\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"DataType\", \"Primitive\"\n]",
"class DataType():\n \"\"\"Base class for data types supported by the framework.\n\n .. attribute:: _size_\n\n The size of the data type. The units (e.g. bits... |
# Copyright 2010 Michael Murr
#
# This fi_le is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | [
[
8,
0,
0.3214,
0.0179,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4018,
0.0714,
0,
0.66,
0.0476,
182,
0,
10,
0,
0,
182,
0,
0
],
[
14,
0,
0.4643,
0.0179,
0,
0.... | [
"\"\"\"Convenience module for using native ctypes.\"\"\"",
"from ctypes import (\n c_uint8, c_int8, c_uint16, c_int16, c_uint32, c_int32, c_uint64, c_int64,\n c_float, c_double\n)",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"int8\", \"uint8\",\n \"int16_le\", \"int16_be\", \"uint1... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0213,
0.0012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0248,
0.0012,
0,
0.66,
0.1667,
902,
0,
1,
0,
0,
902,
0,
0
],
[
1,
0,
0.0295,
0.0083,
0,
0.66... | [
"\"\"\"Reads builtin datatypes from a stream.\"\"\"",
"from lf.dec.consts import SEEK_SET",
"from lf.dtypes.ctypes import (\n int8, uint8,\n int16_le, uint16_le, int16_be, uint16_be,\n int32_le, uint32_le, int32_be, uint32_be,\n int64_le, uint64_le, int64_be, uint64_be,\n float32_le, float32_be, ... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.1636,
0.0091,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1909,
0.0091,
0,
0.66,
0.0625,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.2136,
0.0364,
0,
0.66... | [
"\"\"\"Data types that have native support in the :mod:`ctypes` module.\"\"\"",
"from math import ceil",
"from ctypes import (\n c_int8, c_uint8, c_int16, c_uint16, c_int32, c_uint32, c_int64, c_uint64,\n c_float, c_double\n)",
"from lf.dtypes.basic import Basic",
"__docformat__ = \"restructuredtext e... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0984,
0.0055,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1148,
0.0055,
0,
0.66,
0.0556,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.1257,
0.0164,
0,
0.66... | [
"\"\"\"Bit-oriented data types.\"\"\"",
"from collections import OrderedDict",
"from ctypes import (\n c_int8, c_uint8, c_int16, c_uint16, c_int32, c_uint32, c_int64, c_uint64\n)",
"from lf.dtypes.base import DataType",
"from lf.dtypes.basic import Basic",
"__docformat__ = \"restructuredtext en\"",
"... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.375,
0.0208,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4375,
0.0208,
0,
0.66,
0.1,
677,
0,
2,
0,
0,
677,
0,
0
],
[
1,
0,
0.4583,
0.0208,
0,
0.66,
... | [
"\"\"\"Describe and read data types.\"\"\"",
"from lf.dtypes.base import DataType, Primitive",
"from lf.dtypes.basic import Basic, raw",
"from lf.dtypes.native import (\n Native, int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32,\n float64\n)",
"from lf.dtypes.bits import (\n bits, ... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.6429,
0.0357,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.7143,
0.0357,
0,
0.66,
0.1667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.7857,
0.1071,
0,
0.66... | [
"\"\"\"Constants for working with data types.\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"LITTLE_ENDIAN\", \"BIG_ENDIAN\", \"NETWORK_ENDIAN\", \"DEFAULT_ENDIAN\"\n]",
"LITTLE_ENDIAN = \"<\"",
"BIG_ENDIAN = \">\"",
"NETWORK_ENDIAN = \"!\"",
"DEFAULT_ENDIAN = LITTLE_ENDIAN"
] |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
14,
0,
0.95,
0.15,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n \"apps\", \"excepts\", \"fs\", \"dec\", \"dtypes\", \"utils\", \"win\", \"time\"\n]"
] |
# Copyright 2009 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.4348,
0.1087,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5217,
0.0217,
0,
0.66,
0.2,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.587,
0.0652,
0,
0.66,
... | [
"\"\"\"\nExceptions used in the framework.\n\n.. moduleauthor:: Michael Murr (mmurr@codeforensics.net)\n\"\"\"",
"__docformat__ = \"restructuredtext en\"",
"__all__ = [\n \"LFException\", \"RuntimeError\", \"InvalidFormatError\"\n]",
"class LFException(Exception):\n \"\"\"Base class for all framework re... |
# Copyright 2010 Michael Murr
#
# This file is part of LibForensics.
#
# LibForensics is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ver... | [
[
8,
0,
0.0576,
0.0144,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0764,
0.0115,
0,
0.66,
0.0137,
701,
0,
16,
0,
0,
701,
0,
0
],
[
14,
0,
0.0865,
0.0029,
0,
0.... | [
"\"\"\"Common data types for Microsoft Windows artifacts.\n\nA lot of this information can be found at:\nhttp://spreadsheets.google.com/ccc?key=pK5CEcdG9GYGeO7K2dmEcBg\n\"\"\"",
"from lf.dtypes import (\n int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64,\n LERecord, BitTypeU16, Bit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.