code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
from google.appengine._internal.django.core.management.base import NoArgsCommand def module_to_dict(module, omittable=lambda k: k.startswith('_')): "Converts a module namespace to a Python dictionary. Used by get_settings_diff." return dict([(k, repr(v)) for k, v in module.__dict__.items() if not omittable(k)]...
[ [ 1, 0, 0.0312, 0.0312, 0, 0.66, 0, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 2, 0, 0.125, 0.0938, 0, 0.66, 0.5, 736, 0, 2, 1, 0, 0, 0, 5 ], [ 8, 1, 0.125, 0.0312, 1, 0.67, ...
[ "from google.appengine._internal.django.core.management.base import NoArgsCommand", "def module_to_dict(module, omittable=lambda k: k.startswith('_')):\n \"Converts a module namespace to a Python dictionary. Used by get_settings_diff.\"\n return dict([(k, repr(v)) for k, v in module.__dict__.items() if not ...
import keyword from optparse import make_option from google.appengine._internal.django.core.management.base import NoArgsCommand, CommandError from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(NoArgsCommand): help = "Introspects the database tables in the given database ...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 454, 0, 1, 0, 0, 454, 0, 0 ], [ 1, 0, 0.012, 0.006, 0, 0.66, 0.25, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.024, 0.006, 0, 0.66, ...
[ "import keyword", "from optparse import make_option", "from google.appengine._internal.django.core.management.base import NoArgsCommand, CommandError", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(NoArgsCommand):\n help = \"Introspects the database tabl...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_reset from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the DR...
[ [ 1, 0, 0.05, 0.05, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.15, 0.05, 0, 0.66, 0.25, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2, 0.05, 0, 0.66, 0.5, ...
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import AppCommand", "from google.appengine._internal.django.core.management.sql import sql_reset", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(AppCommand):\n ...
from optparse import make_option from google.appengine._internal.django.core.management.base import BaseCommand, CommandError from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(BaseCommand): help = ("Runs the command-line client for specified database, or the " "d...
[ [ 1, 0, 0.037, 0.037, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.1111, 0.037, 0, 0.66, 0.3333, 329, 0, 2, 0, 0, 329, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66...
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import BaseCommand, CommandError", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(BaseCommand):\n help = (\"Runs the command-line client for specified database,...
from google.appengine._internal.django.core.management.base import NoArgsCommand class Command(NoArgsCommand): help = "Validates all installed models." requires_model_validation = False def handle_noargs(self, **options): self.validate(display_num_errors=True)
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 3, 0, 0.6667, 0.7778, 0, 0.66, 1, 73, 0, 1, 0, 0, 795, 0, 1 ], [ 14, 1, 0.4444, 0.1111, 1, 0.01,...
[ "from google.appengine._internal.django.core.management.base import NoArgsCommand", "class Command(NoArgsCommand):\n help = \"Validates all installed models.\"\n\n requires_model_validation = False\n\n def handle_noargs(self, **options):\n self.validate(display_num_errors=True)", " help = \"V...
from google.appengine._internal.django.core.management.base import BaseCommand class Command(BaseCommand): help = "Runs this project as a FastCGI application. Requires flup." args = '[various KEY=val options, use `runfcgi help` for help]' def handle(self, *args, **options): from google.appengine._...
[ [ 1, 0, 0.05, 0.05, 0, 0.66, 0, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 3, 0, 0.575, 0.9, 0, 0.66, 1, 73, 0, 2, 0, 0, 564, 0, 2 ], [ 14, 1, 0.2, 0.05, 1, 0.3, 0, 86...
[ "from google.appengine._internal.django.core.management.base import BaseCommand", "class Command(BaseCommand):\n help = \"Runs this project as a FastCGI application. Requires flup.\"\n args = '[various KEY=val options, use `runfcgi help` for help]'\n\n def handle(self, *args, **options):\n from go...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_indexes from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the ...
[ [ 1, 0, 0.05, 0.05, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.15, 0.05, 0, 0.66, 0.25, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2, 0.05, 0, 0.66, 0.5, ...
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import AppCommand", "from google.appengine._internal.django.core.management.sql import sql_indexes", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(AppCommand):\...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_create from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the C...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.1579, 0.0526, 0, 0.66, 0.25, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2105, 0.0526, 0, 0....
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import AppCommand", "from google.appengine._internal.django.core.management.sql import sql_create", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(AppCommand):\n...
from optparse import make_option from google.appengine._internal.django.core.management.base import NoArgsCommand from google.appengine._internal.django.core.management.sql import sql_flush from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(NoArgsCommand): help = "Returns...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.1579, 0.0526, 0, 0.66, 0.25, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2105, 0.0526, 0, 0....
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import NoArgsCommand", "from google.appengine._internal.django.core.management.sql import sql_flush", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(NoArgsComman...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.db import connections, models, DEFAULT_DB_ALIAS class Command(AppCommand): help = 'Prints the SQL statements for resetting sequences for the given app name(s).' ...
[ [ 1, 0, 0.05, 0.05, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.15, 0.05, 0, 0.66, 0.3333, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2, 0.05, 0, 0.66, 0.6...
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import AppCommand", "from google.appengine._internal.django.db import connections, models, DEFAULT_DB_ALIAS", "class Command(AppCommand):\n help = 'Prints the SQL statements for resetting sequences for the give...
from google.appengine._internal.django.core.management.base import BaseCommand from optparse import make_option import sys class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--noinput', action='store_false', dest='interactive', default=True, help='Tells Django to...
[ [ 1, 0, 0.025, 0.025, 0, 0.66, 0, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.05, 0.025, 0, 0.66, 0.3333, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.075, 0.025, 0, 0.66, ...
[ "from google.appengine._internal.django.core.management.base import BaseCommand", "from optparse import make_option", "import sys", "class Command(BaseCommand):\n option_list = BaseCommand.option_list + (\n make_option('--noinput', action='store_false', dest='interactive', default=True,\n ...
from optparse import make_option from google.appengine._internal.django.core.management.base import LabelCommand from google.appengine._internal.django.db import connections, transaction, models, DEFAULT_DB_ALIAS class Command(LabelCommand): help = "Creates the table needed to use the SQL cache backend." args...
[ [ 1, 0, 0.0192, 0.0192, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.0577, 0.0192, 0, 0.66, 0.3333, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.0769, 0.0192, 0, ...
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import LabelCommand", "from google.appengine._internal.django.db import connections, transaction, models, DEFAULT_DB_ALIAS", "class Command(LabelCommand):\n help = \"Creates the table needed to use the SQL cach...
from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand from google.appengine._internal.django.utils.importlib import import_module import os import re from random import choice class Command(LabelCommand): help = "Creates a Django project directory structure for ...
[ [ 1, 0, 0.0256, 0.0256, 0, 0.66, 0, 329, 0, 3, 0, 0, 329, 0, 0 ], [ 1, 0, 0.0513, 0.0256, 0, 0.66, 0.2, 827, 0, 1, 0, 0, 827, 0, 0 ], [ 1, 0, 0.0769, 0.0256, 0, 0.6...
[ "from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand", "from google.appengine._internal.django.utils.importlib import import_module", "import os", "import re", "from random import choice", "class Command(LabelCommand):\n help = \"Creates a Django p...
import os from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand from google.appengine._internal.django.utils.importlib import import_module class Command(LabelCommand): help = "Creates a Django app directory structure for the given app name in the current direc...
[ [ 1, 0, 0.0213, 0.0213, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0638, 0.0213, 0, 0.66, 0.25, 329, 0, 3, 0, 0, 329, 0, 0 ], [ 1, 0, 0.0851, 0.0213, 0, 0....
[ "import os", "from google.appengine._internal.django.core.management.base import copy_helper, CommandError, LabelCommand", "from google.appengine._internal.django.utils.importlib import import_module", "class Command(LabelCommand):\n help = \"Creates a Django app directory structure for the given app name ...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_delete from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the D...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.1579, 0.0526, 0, 0.66, 0.25, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2105, 0.0526, 0, 0....
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import AppCommand", "from google.appengine._internal.django.core.management.sql import sql_delete", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(AppCommand):\n...
from google.appengine._internal.django.core.management.base import BaseCommand from optparse import make_option class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--addrport', action='store', dest='addrport', type='string', default='', help='port num...
[ [ 1, 0, 0.0303, 0.0303, 0, 0.66, 0, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.0909, 0.0303, 0, 0.66, 0.5, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 3, 0, 0.5758, 0.8788, 0, 0.6...
[ "from google.appengine._internal.django.core.management.base import BaseCommand", "from optparse import make_option", "class Command(BaseCommand):\n option_list = BaseCommand.option_list + (\n make_option('--addrport', action='store', dest='addrport',\n type='string', default='',\n ...
from optparse import make_option from google.appengine._internal.django.core.management.base import AppCommand from google.appengine._internal.django.core.management.sql import sql_custom from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS class Command(AppCommand): help = "Prints the c...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.1579, 0.0526, 0, 0.66, 0.25, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 1, 0, 0.2105, 0.0526, 0, 0....
[ "from optparse import make_option", "from google.appengine._internal.django.core.management.base import AppCommand", "from google.appengine._internal.django.core.management.sql import sql_custom", "from google.appengine._internal.django.db import connections, DEFAULT_DB_ALIAS", "class Command(AppCommand):\n...
from google.appengine._internal.django.core.management.base import AppCommand, CommandError class Command(AppCommand): help = "RENAMED: see 'sqlcustom'" def handle(self, *apps, **options): raise CommandError("This command has been renamed. Use the 'sqlcustom' command instead.")
[ [ 1, 0, 0.1429, 0.1429, 0, 0.66, 0, 329, 0, 2, 0, 0, 329, 0, 0 ], [ 3, 0, 0.7143, 0.7143, 0, 0.66, 1, 73, 0, 1, 0, 0, 369, 0, 1 ], [ 14, 1, 0.5714, 0.1429, 1, 0.49,...
[ "from google.appengine._internal.django.core.management.base import AppCommand, CommandError", "class Command(AppCommand):\n help = \"RENAMED: see 'sqlcustom'\"\n\n def handle(self, *apps, **options):\n raise CommandError(\"This command has been renamed. Use the 'sqlcustom' command instead.\")", " ...
from google.appengine._internal.django.core.management.base import BaseCommand, CommandError from optparse import make_option import os import sys class Command(BaseCommand): option_list = BaseCommand.option_list + ( make_option('--noreload', action='store_false', dest='use_reloader', default=True, ...
[ [ 1, 0, 0.012, 0.012, 0, 0.66, 0, 329, 0, 2, 0, 0, 329, 0, 0 ], [ 1, 0, 0.0241, 0.012, 0, 0.66, 0.25, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 1, 0, 0.0361, 0.012, 0, 0.66, ...
[ "from google.appengine._internal.django.core.management.base import BaseCommand, CommandError", "from optparse import make_option", "import os", "import sys", "class Command(BaseCommand):\n option_list = BaseCommand.option_list + (\n make_option('--noreload', action='store_false', dest='use_reload...
import datetime from google.appengine._internal.django.core.management.base import NoArgsCommand class Command(NoArgsCommand): help = "Can be run as a cronjob or directly to clean out old data from the database (only expired sessions at the moment)." def handle_noargs(self, **options): from google.app...
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0.5, 329, 0, 1, 0, 0, 329, 0, 0 ], [ 3, 0, 0.6818, 0.7273, 0, 0.6...
[ "import datetime", "from google.appengine._internal.django.core.management.base import NoArgsCommand", "class Command(NoArgsCommand):\n help = \"Can be run as a cronjob or directly to clean out old data from the database (only expired sessions at the moment).\"\n\n def handle_noargs(self, **options):\n ...
import os import re from google.appengine._internal.django.conf import settings from google.appengine._internal.django.core.management.base import CommandError from google.appengine._internal.django.db import models from google.appengine._internal.django.db.models import get_models def sql_create(app, style, connecti...
[ [ 1, 0, 0.0055, 0.0055, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.011, 0.0055, 0, 0.66, 0.0714, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0221, 0.0055, 0, 0...
[ "import os", "import re", "from google.appengine._internal.django.conf import settings", "from google.appengine._internal.django.core.management.base import CommandError", "from google.appengine._internal.django.db import models", "from google.appengine._internal.django.db.models import get_models", "de...
""" Sets up the terminal color scheme. """ import os import sys from google.appengine._internal.django.utils import termcolors def supports_color(): """ Returns True if the running system's terminal supports color, and False otherwise. """ unsupported_platform = (sys.platform in ('win32', 'Pocket...
[ [ 8, 0, 0.04, 0.06, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1, 0.02, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.12, 0.02, 0, 0.66, 0.3333,...
[ "\"\"\"\nSets up the terminal color scheme.\n\"\"\"", "import os", "import sys", "from google.appengine._internal.django.utils import termcolors", "def supports_color():\n \"\"\"\n Returns True if the running system's terminal supports color, and False\n otherwise.\n \"\"\"\n unsupported_plat...
import sys from google.appengine._internal.django.contrib.contenttypes.generic import GenericForeignKey, GenericRelation from google.appengine._internal.django.core.management.color import color_style from google.appengine._internal.django.utils.itercompat import is_iterable try: any except NameError: from go...
[ [ 1, 0, 0.0033, 0.0033, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0099, 0.0033, 0, 0.66, 0.1667, 702, 0, 2, 0, 0, 702, 0, 0 ], [ 1, 0, 0.0132, 0.0033, 0, ...
[ "import sys", "from google.appengine._internal.django.contrib.contenttypes.generic import GenericForeignKey, GenericRelation", "from google.appengine._internal.django.core.management.color import color_style", "from google.appengine._internal.django.utils.itercompat import is_iterable", "try:\n any\nexce...
""" Utility functions for handling images. Requires PIL, as you might imagine. """ from google.appengine._internal.django.core.files import File class ImageFile(File): """ A mixin for use alongside django.core.files.base.File, which provides additional features for dealing with images. """ def _g...
[ [ 8, 0, 0.0484, 0.0806, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1129, 0.0161, 0, 0.66, 0.3333, 732, 0, 1, 0, 0, 732, 0, 0 ], [ 3, 0, 0.2903, 0.3065, 0, 0.66...
[ "\"\"\"\nUtility functions for handling images.\n\nRequires PIL, as you might imagine.\n\"\"\"", "from google.appengine._internal.django.core.files import File", "class ImageFile(File):\n \"\"\"\n A mixin for use alongside django.core.files.base.File, which provides\n additional features for dealing wi...
""" The temp module provides a NamedTemporaryFile that can be re-opened on any platform. Most platforms use the standard Python tempfile.TemporaryFile class, but MS Windows users are given a custom class. This is needed because in Windows NT, the default implementation of NamedTemporaryFile uses the O_TEMPORARY flag, ...
[ [ 8, 0, 0.0982, 0.1786, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2143, 0.0179, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2321, 0.0179, 0, 0.66...
[ "\"\"\"\nThe temp module provides a NamedTemporaryFile that can be re-opened on any\nplatform. Most platforms use the standard Python tempfile.TemporaryFile class,\nbut MS Windows users are given a custom class.\n\nThis is needed because in Windows NT, the default implementation of\nNamedTemporaryFile uses the O_TE...
class FileProxyMixin(object): """ A mixin class used to forward file methods to an underlaying file object. The internal file object has to be called "file":: class FileProxy(FileProxyMixin): def __init__(self, file): self.file = file """ encoding = property(la...
[ [ 3, 0, 0.5172, 1, 0, 0.66, 0, 369, 0, 1, 0, 0, 186, 0, 17 ], [ 8, 1, 0.1897, 0.2759, 1, 0.71, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.3793, 0.0345, 1, 0.71, 0....
[ "class FileProxyMixin(object):\n \"\"\"\n A mixin class used to forward file methods to an underlaying file\n object. The internal file object has to be called \"file\"::\n\n class FileProxy(FileProxyMixin):\n def __init__(self, file):\n self.file = file", " \"\"\"\n ...
import os try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from google.appengine._internal.django.utils.encoding import smart_str, smart_unicode from google.appengine._internal.django.core.files.utils import FileProxyMixin class File(FileProxyMixin): DEFAULT_CHUNK_SIZE...
[ [ 1, 0, 0.0075, 0.0075, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 7, 0, 0.0261, 0.0299, 0, 0.66, 0.2, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0224, 0.0075, 1, 0.14, ...
[ "import os", "try:\n from cStringIO import StringIO\nexcept ImportError:\n from StringIO import StringIO", " from cStringIO import StringIO", " from StringIO import StringIO", "from google.appengine._internal.django.utils.encoding import smart_str, smart_unicode", "from google.appengine._inter...
from google.appengine._internal.django.core.files.base import File
[ [ 1, 0, 1, 1, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ] ]
[ "from google.appengine._internal.django.core.files.base import File" ]
""" Portable file locking utilities. Based partially on example by Jonathan Feignberg <jdf@pobox.com> in the Python Cookbook, licensed under the Python Software License. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 Example Usage:: >>> from google.appengine._internal.django.core.files import...
[ [ 8, 0, 0.1214, 0.2286, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2571, 0.0143, 0, 0.66, 0.1667, 272, 0, 0, 0, 0, 0, 8, 0 ], [ 14, 0, 0.2857, 0.0143, 0, 0.66...
[ "\"\"\"\nPortable file locking utilities.\n\nBased partially on example by Jonathan Feignberg <jdf@pobox.com> in the Python\nCookbook, licensed under the Python Software License.\n\n http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203", "__all__ = ('LOCK_EX','LOCK_SH','LOCK_NB','lock','unlock')", "...
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # DATE_FORMAT = 'N j, Y' TIME_FORMAT = 'P' DATETIME_FORMAT = 'N j, Y, P' YEAR_MONTH_FORMAT = 'F Y' MONTH_DAY_FORMAT = 'F j' SHORT_DATE_FORMAT = 'm/d/Y' SHORT_DATETIME_FORMAT = 'm/d/Y P' FIRST_DAY_OF_WEEK = 0 # Sunday DAT...
[ [ 14, 0, 0.1316, 0.0263, 0, 0.66, 0, 843, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1579, 0.0263, 0, 0.66, 0.0769, 662, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1842, 0.0263, 0, 0...
[ "DATE_FORMAT = 'N j, Y'", "TIME_FORMAT = 'P'", "DATETIME_FORMAT = 'N j, Y, P'", "YEAR_MONTH_FORMAT = 'F Y'", "MONTH_DAY_FORMAT = 'F j'", "SHORT_DATE_FORMAT = 'm/d/Y'", "SHORT_DATETIME_FORMAT = 'm/d/Y P'", "FIRST_DAY_OF_WEEK = 0 # Sunday", "DATE_INPUT_FORMATS = (\n '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%...
#!/usr/bin/env python from google.appengine._internal.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 customiz...
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 270, 0, 1, 0, 0, 270, 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.73, ...
[ "from google.appengine._internal.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 thin...
from google.appengine._internal.django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from google.appengine._internal.django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 538, 0, 1, 0, 0, 538, 0, 0 ], [ 14, 0, 0.7188, 0.625, 0, 0.66, 1, 990, 3, 1, 0, 0, 75, 10, 1 ] ]
[ "from google.appengine._internal.django.conf.urls.defaults import *", "urlpatterns = patterns('',\n # Example:\n # (r'^{{ project_name }}/', include('{{ project_name }}.foo.urls')),\n\n # Uncomment the admin/doc line below to enable admin documentation:\n # (r'^admin/doc/', include('django.contrib.adm...
# Django settings for {{ project_name }} project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. ...
[ [ 14, 0, 0.0312, 0.0104, 0, 0.66, 0, 309, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0417, 0.0104, 0, 0.66, 0.0556, 7, 2, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0729, 0.0312, 0, 0.6...
[ "DEBUG = True", "TEMPLATE_DEBUG = DEBUG", "ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)", "MANAGERS = ADMINS", "DATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.\n 'NAME': '', ...
from google.appengine._internal.django.conf.urls.defaults import * urlpatterns = patterns('django.views', (r'^(?P<content_type_id>\d+)/(?P<object_id>.*)/$', 'defaults.shortcut'), )
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 538, 0, 1, 0, 0, 538, 0, 0 ], [ 14, 0, 0.8, 0.6, 0, 0.66, 1, 990, 3, 2, 0, 0, 75, 10, 1 ] ]
[ "from google.appengine._internal.django.conf.urls.defaults import *", "urlpatterns = patterns('django.views',\n (r'^(?P<content_type_id>\\d+)/(?P<object_id>.*)/$', 'defaults.shortcut'),\n)" ]
from google.appengine._internal.django.core.urlresolvers import RegexURLPattern, RegexURLResolver from google.appengine._internal.django.core.exceptions import ImproperlyConfigured __all__ = ['handler404', 'handler500', 'include', 'patterns', 'url'] handler404 = 'django.views.defaults.page_not_found' handler500 = 'dj...
[ [ 1, 0, 0.0238, 0.0238, 0, 0.66, 0, 821, 0, 2, 0, 0, 821, 0, 0 ], [ 1, 0, 0.0476, 0.0238, 0, 0.66, 0.1429, 381, 0, 1, 0, 0, 381, 0, 0 ], [ 14, 0, 0.0952, 0.0238, 0, ...
[ "from google.appengine._internal.django.core.urlresolvers import RegexURLPattern, RegexURLResolver", "from google.appengine._internal.django.core.exceptions import ImproperlyConfigured", "__all__ = ['handler404', 'handler500', 'include', 'patterns', 'url']", "handler404 = 'django.views.defaults.page_not_found...
from google.appengine._internal.django.conf.urls.defaults import * urlpatterns = patterns('', (r'^setlang/$', 'django.views.i18n.set_language'), )
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 538, 0, 1, 0, 0, 538, 0, 0 ], [ 14, 0, 0.8, 0.6, 0, 0.66, 1, 990, 3, 2, 0, 0, 75, 10, 1 ] ]
[ "from google.appengine._internal.django.conf.urls.defaults import *", "urlpatterns = patterns('',\n (r'^setlang/$', 'django.views.i18n.set_language'),\n)" ]
# Default Django settings. Override these with settings in the module # pointed-to by the DJANGO_SETTINGS_MODULE environment variable. # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. gettext_noop = lambda s: s #################...
[ [ 14, 0, 0.0115, 0.0019, 0, 0.66, 0, 651, 9, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0229, 0.0019, 0, 0.66, 0.0087, 309, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0248, 0.0019, 0, 0...
[ "gettext_noop = lambda s: s", "DEBUG = False", "TEMPLATE_DEBUG = False", "DEBUG_PROPAGATE_EXCEPTIONS = False", "USE_ETAGS = False", "ADMINS = ()", "INTERNAL_IPS = ()", "TIME_ZONE = 'America/Chicago'", "LANGUAGE_CODE = 'en-us'", "LANGUAGES = (\n ('ar', gettext_noop('Arabic')),\n ('bg', gettex...
from google.appengine._internal.django.db import models # Create your models here.
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 445, 0, 1, 0, 0, 445, 0, 0 ] ]
[ "from google.appengine._internal.django.db import models" ]
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from google.appengine._internal.django.test import TestCase class SimpleTest(TestCase): def test_basic_a...
[ [ 8, 0, 0.1522, 0.2609, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3478, 0.0435, 0, 0.66, 0.3333, 239, 0, 1, 0, 0, 239, 0, 0 ], [ 3, 0, 0.5435, 0.2609, 0, 0.66...
[ "\"\"\"\nThis file demonstrates two different styles of tests (one doctest and one\nunittest). These will both pass when you run \"manage.py test\".\n\nReplace these with more appropriate tests for your application.\n\"\"\"", "from google.appengine._internal.django.test import TestCase", "class SimpleTest(TestC...
# Create your views here.
[]
[]
""" Parser and utilities for the smart 'if' tag """ import operator # Using a simple top down parser, as described here: # http://effbot.org/zone/simple-top-down-parsing.htm. # 'led' = left denotation # 'nud' = null denotation # 'bp' = binding power (left = lbp, right = rbp) class TokenBase(object): """ Ba...
[ [ 8, 0, 0.0097, 0.0146, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0194, 0.0049, 0, 0.66, 0.1, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 3, 0, 0.1286, 0.1456, 0, 0.66, ...
[ "\"\"\"\nParser and utilities for the smart 'if' tag\n\"\"\"", "import operator", "class TokenBase(object):\n \"\"\"\n Base class for operators and literals, mainly for debugging and for throwing\n syntax errors.\n \"\"\"\n id = None # node/token type name\n value = None # used by literals\n ...
""" Wrapper class that takes a list of template loaders as an argument and attempts to load templates from them in order, caching the result. """ from google.appengine._internal.django.core.exceptions import ImproperlyConfigured from google.appengine._internal.django.template import TemplateDoesNotExist from google.ap...
[ [ 8, 0, 0.0424, 0.0678, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1017, 0.0169, 0, 0.66, 0.1667, 381, 0, 1, 0, 0, 381, 0, 0 ], [ 1, 0, 0.1186, 0.0169, 0, 0.66...
[ "\"\"\"\nWrapper class that takes a list of template loaders as an argument and attempts\nto load templates from them in order, caching the result.\n\"\"\"", "from google.appengine._internal.django.core.exceptions import ImproperlyConfigured", "from google.appengine._internal.django.template import TemplateDoes...
# Wrapper for loading templates from eggs via pkg_resources.resource_string. try: from pkg_resources import resource_string except ImportError: resource_string = None from google.appengine._internal.django.template import TemplateDoesNotExist from google.appengine._internal.django.template.loader import BaseL...
[ [ 7, 0, 0.1154, 0.1026, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.1026, 0.0256, 1, 0.11, 0, 947, 0, 1, 0, 0, 947, 0, 0 ], [ 14, 1, 0.1538, 0.0256, 1, 0.11, ...
[ "try:\n from pkg_resources import resource_string\nexcept ImportError:\n resource_string = None", " from pkg_resources import resource_string", " resource_string = None", "from google.appengine._internal.django.template import TemplateDoesNotExist", "from google.appengine._internal.django.templa...
""" Wrapper for loading templates from "templates" directories in INSTALLED_APPS packages. """ import os import sys from google.appengine._internal.django.conf import settings from google.appengine._internal.django.core.exceptions import ImproperlyConfigured from google.appengine._internal.django.template import Temp...
[ [ 1, 0, 0.0196, 0.0196, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0392, 0.0196, 0, 0.66, 0.1111, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0784, 0.0196, 0, ...
[ "import os", "import sys", "from google.appengine._internal.django.conf import settings", "from google.appengine._internal.django.core.exceptions import ImproperlyConfigured", "from google.appengine._internal.django.template import TemplateDoesNotExist", "from google.appengine._internal.django.template.lo...
""" Wrapper for loading templates from the filesystem. """ from google.appengine._internal.django.conf import settings from google.appengine._internal.django.template import TemplateDoesNotExist from google.appengine._internal.django.template.loader import BaseLoader from google.appengine._internal.django.utils._os im...
[ [ 8, 0, 0.0328, 0.0492, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.082, 0.0164, 0, 0.66, 0.125, 434, 0, 1, 0, 0, 434, 0, 0 ], [ 1, 0, 0.0984, 0.0164, 0, 0.66, ...
[ "\"\"\"\nWrapper for loading templates from the filesystem.\n\"\"\"", "from google.appengine._internal.django.conf import settings", "from google.appengine._internal.django.template import TemplateDoesNotExist", "from google.appengine._internal.django.template.loader import BaseLoader", "from google.appengi...
from google.appengine._internal.django.template import TemplateSyntaxError, TemplateDoesNotExist, Variable from google.appengine._internal.django.template import Library, Node, TextNode from google.appengine._internal.django.template.loader import get_template from google.appengine._internal.django.conf import settings...
[ [ 1, 0, 0.0046, 0.0046, 0, 0.66, 0, 411, 0, 3, 0, 0, 411, 0, 0 ], [ 1, 0, 0.0092, 0.0046, 0, 0.66, 0.0556, 411, 0, 3, 0, 0, 411, 0, 0 ], [ 1, 0, 0.0138, 0.0046, 0, ...
[ "from google.appengine._internal.django.template import TemplateSyntaxError, TemplateDoesNotExist, Variable", "from google.appengine._internal.django.template import Library, Node, TextNode", "from google.appengine._internal.django.template.loader import get_template", "from google.appengine._internal.django....
VERSION = (1, 2, 5, 'final', 0) def get_version(): version = '%s.%s' % (VERSION[0], VERSION[1]) if VERSION[2]: version = '%s.%s' % (version, VERSION[2]) if VERSION[3:] == ('alpha', 0): version = '%s pre-alpha' % version else: if VERSION[3] != 'final': version = '%s %...
[ [ 14, 0, 0.0625, 0.0625, 0, 0.66, 0, 557, 0, 0, 0, 0, 0, 8, 0 ], [ 2, 0, 0.5938, 0.875, 0, 0.66, 1, 75, 0, 0, 1, 0, 0, 0, 1 ], [ 14, 1, 0.25, 0.0625, 1, 0.93, 0...
[ "VERSION = (1, 2, 5, 'final', 0)", "def get_version():\n version = '%s.%s' % (VERSION[0], VERSION[1])\n if VERSION[2]:\n version = '%s.%s' % (version, VERSION[2])\n if VERSION[3:] == ('alpha', 0):\n version = '%s pre-alpha' % version\n else:\n if VERSION[3] != 'final':", " ve...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.4048, 0.0238, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.5, 0.0714, 0, 0.66, 0.3333, 349, 0, 1, 0, 0, 645, 0, 1 ], [ 2, 1, 0.5119, 0.0476, 1, 0.8, ...
[ "\"\"\"Generic exceptions.\"\"\"", "class TimeoutException(Exception):\n def __init__(self, msg=\"\"):\n Exception.__init__(self, msg)", " def __init__(self, msg=\"\"):\n Exception.__init__(self, msg)", " Exception.__init__(self, msg)", "class NestedException(Exception):\n def __init__(self, exc...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.0881, 0.0052, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1036, 0.0052, 0, 0.66, 0.05, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1088, 0.0052, 0, 0.66, ...
[ "\"\"\"Convenience wrapper for starting an appengine tool.\"\"\"", "import os", "import sys", "if not hasattr(sys, 'version_info'):\n sys.stderr.write('Very old versions of Python are not supported. Please '\n 'use version 2.7.\\n')\n sys.exit(1)", " sys.stderr.write('Very old versions ...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.0881, 0.0052, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1036, 0.0052, 0, 0.66, 0.05, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1088, 0.0052, 0, 0.66, ...
[ "\"\"\"Convenience wrapper for starting an appengine tool.\"\"\"", "import os", "import sys", "if not hasattr(sys, 'version_info'):\n sys.stderr.write('Very old versions of Python are not supported. Please '\n 'use version 2.7.\\n')\n sys.exit(1)", " sys.stderr.write('Very old versions ...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.2394, 0.0141, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2817, 0.0141, 0, 0.66, 0.0909, 325, 0, 1, 0, 0, 325, 0, 0 ], [ 1, 0, 0.2958, 0.0141, 0, 0.66...
[ "\"\"\"Runs the unit test suite for devappserver2.\"\"\"", "import argparse", "import cStringIO", "import logging", "import os.path", "import random", "import sys", "import unittest", "DIR_PATH = os.path.dirname(__file__)", "TEST_LIBRARY_PATHS = [\n DIR_PATH,\n os.path.join(DIR_PATH, 'lib', ...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.1197, 0.007, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 3, 0, 0.5669, 0.8732, 0, 0.66, 1, 937, 0, 6, 0, 0, 0, 0, 31 ], [ 8, 1, 0.1831, 0.0915, 1, 0.77, ...
[ "import inspect", "class StubOutForTesting:\n \"\"\"Sample Usage:\n You want os.path.exists() to always return true during testing.\n\n stubs = StubOutForTesting()\n stubs.Set(os.path, 'exists', lambda x: 1)\n ...\n stubs.UnsetAll()", " \"\"\"Sample Usage:\n You want os.path.exists()...
#!/usr/bin/python2.4 from distutils.core import setup setup(name='mox', version='0.5.3', py_modules=['mox', 'stubout'], url='http://code.google.com/p/pymox/', maintainer='pymox maintainers', maintainer_email='mox-discuss@googlegroups.com', license='Apache License, Version 2.0', ...
[ [ 1, 0, 0.1429, 0.0714, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 8, 0, 0.6429, 0.7857, 0, 0.66, 1, 234, 3, 9, 0, 0, 0, 0, 1 ] ]
[ "from distutils.core import setup", "setup(name='mox',\n version='0.5.3',\n py_modules=['mox', 'stubout'],\n url='http://code.google.com/p/pymox/',\n maintainer='pymox maintainers',\n maintainer_email='mox-discuss@googlegroups.com',\n license='Apache License, Version 2.0',\n des...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.0208, 0.0242, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0337, 0.0005, 0, 0.66, 0.0238, 193, 0, 1, 0, 0, 193, 0, 0 ], [ 1, 0, 0.0343, 0.0005, 0, 0.66...
[ "\"\"\"Mox, an object-mocking framework for Python.\n\nMox works in the record-replay-verify paradigm. When you first create\na mock object, it is in record mode. You then programmatically set\nthe expected behavior of the mock object (what methods are to be\ncalled on it, with what parameters, what they should r...
#!/usr/bin/python2.4 # # Unit tests for stubout. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ [ 1, 0, 0.3617, 0.0213, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.4043, 0.0213, 0, 0.66, 0.2, 14, 0, 1, 0, 0, 14, 0, 0 ], [ 1, 0, 0.4255, 0.0213, 0, 0.66, ...
[ "import unittest", "import mox", "import stubout", "import stubout_testee", "class StubOutForTestingTest(unittest.TestCase):\n def setUp(self):\n self.mox = mox.Mox()\n self.sample_function_backup = stubout_testee.SampleFunction\n\n def tearDown(self):\n stubout_testee.SampleFunction = self.sampl...
def SampleFunction(): raise Exception('I should never be called!')
[ [ 2, 0, 0.75, 1, 0, 0.66, 0, 717, 0, 0, 0, 0, 0, 0, 1 ] ]
[ "def SampleFunction():\n raise Exception('I should never be called!')" ]
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.1937, 0.0901, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2523, 0.009, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2703, 0.009, 0, 0.66, ...
[ "\"\"\"A very basic test class derived from mox.MoxTestBase, used by mox_test.py.\n\nThe class defined in this module is used to test the features of\nMoxTestBase and is not intended to be a standalone test. It needs to\nbe in a separate module, because otherwise the tests in this class\n(which should not all pass...
from __future__ import generators import sys, imp, marshal from imp import PKG_DIRECTORY, PY_COMPILED, PY_SOURCE, PY_FROZEN from distutils.version import StrictVersion, LooseVersion __all__ = [ 'Require', 'find_module', 'get_module_constant', 'extract_constant' ] class Require: """A prerequisite to building o...
[ [ 1, 0, 0.0041, 0.0041, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0082, 0.0041, 0, 0.66, 0.1, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0122, 0.0041, 0, 0.6...
[ "from __future__ import generators", "import sys, imp, marshal", "from imp import PKG_DIRECTORY, PY_COMPILED, PY_SOURCE, PY_FROZEN", "from distutils.version import StrictVersion, LooseVersion", "__all__ = [\n 'Require', 'find_module', 'get_module_constant', 'extract_constant'\n]", "class Require:\n ...
"""setuptools.command.bdist_egg Build .egg distributions""" # This module should be kept compatible with Python 2.3 import sys, os, marshal from setuptools import Command from distutils.dir_util import remove_tree, mkpath from distutils.sysconfig import get_python_version, get_python_lib from distutils import log fro...
[ [ 8, 0, 0.0038, 0.0056, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0113, 0.0019, 0, 0.66, 0.0417, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0131, 0.0019, 0, 0.66...
[ "\"\"\"setuptools.command.bdist_egg\n\nBuild .egg distributions\"\"\"", "import sys, os, marshal", "from setuptools import Command", "from distutils.dir_util import remove_tree, mkpath", "from distutils.sysconfig import get_python_version, get_python_lib", "from distutils import log", "from distutils.er...
import distutils, os from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import * __all__ = ['config_file', 'edit_config', 'option_base', 'setopt'] def config_file(kind="local"): """Get the filename of the distutils, local, global, or per-user co...
[ [ 1, 0, 0.0061, 0.0061, 0, 0.66, 0, 901, 0, 2, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0122, 0.0061, 0, 0.66, 0.1111, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0183, 0.0061, 0, ...
[ "import distutils, os", "from setuptools import Command", "from distutils.util import convert_path", "from distutils import log", "from distutils.errors import *", "__all__ = ['config_file', 'edit_config', 'option_base', 'setopt']", "def config_file(kind=\"local\"):\n \"\"\"Get the filename of the di...
import distutils, os from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import * class rotate(Command): """Delete older distributions""" description = "delete older distributions, keeping N newest files" user_options = [ ('match='...
[ [ 1, 0, 0.0122, 0.0122, 0, 0.66, 0, 901, 0, 2, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0244, 0.0122, 0, 0.66, 0.2, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0366, 0.0122, 0, 0.6...
[ "import distutils, os", "from setuptools import Command", "from distutils.util import convert_path", "from distutils import log", "from distutils.errors import *", "class rotate(Command):\n \"\"\"Delete older distributions\"\"\"\n\n description = \"delete older distributions, keeping N newest files\...
from setuptools import Command from setuptools.archive_util import unpack_archive from distutils import log, dir_util import os, shutil, pkg_resources class install_egg_info(Command): """Install an .egg-info directory for the package""" description = "Install an .egg-info directory for the package" user_...
[ [ 1, 0, 0.0081, 0.0081, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0163, 0.0081, 0, 0.66, 0.25, 498, 0, 1, 0, 0, 498, 0, 0 ], [ 1, 0, 0.0244, 0.0081, 0, 0....
[ "from setuptools import Command", "from setuptools.archive_util import unpack_archive", "from distutils import log, dir_util", "import os, shutil, pkg_resources", "class install_egg_info(Command):\n \"\"\"Install an .egg-info directory for the package\"\"\"\n\n description = \"Install an .egg-info dir...
"""setuptools.command.egg_info Create a distribution's .egg-info directory and contents""" # This module should be kept compatible with Python 2.3 import os, re from setuptools import Command from distutils.errors import * from distutils import log from setuptools.command.sdist import sdist from distutils.util import...
[ [ 8, 0, 0.0044, 0.0067, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0133, 0.0022, 0, 0.66, 0.0476, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0155, 0.0022, 0, 0.66...
[ "\"\"\"setuptools.command.egg_info\n\nCreate a distribution's .egg-info directory and contents\"\"\"", "import os, re", "from setuptools import Command", "from distutils.errors import *", "from distutils import log", "from setuptools.command.sdist import sdist", "from distutils.util import convert_path"...
import distutils, os from setuptools import Command from distutils.util import convert_path from distutils import log from distutils.errors import * from setuptools.command.setopt import edit_config, option_base, config_file def shquote(arg): """Quote an argument for later parsing by shlex.split()""" for c in ...
[ [ 1, 0, 0.0122, 0.0122, 0, 0.66, 0, 901, 0, 2, 0, 0, 901, 0, 0 ], [ 1, 0, 0.0244, 0.0122, 0, 0.66, 0.125, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0366, 0.0122, 0, 0...
[ "import distutils, os", "from setuptools import Command", "from distutils.util import convert_path", "from distutils import log", "from distutils.errors import *", "from setuptools.command.setopt import edit_config, option_base, config_file", "def shquote(arg):\n \"\"\"Quote an argument for later par...
from distutils.command.install_lib import install_lib as _install_lib import os class install_lib(_install_lib): """Don't add compiled flags to filenames of non-Python files""" def _bytecode_filenames (self, py_filenames): bytecode_files = [] for py_file in py_filenames: if not py_...
[ [ 1, 0, 0.0122, 0.0122, 0, 0.66, 0, 969, 0, 1, 0, 0, 969, 0, 0 ], [ 1, 0, 0.0244, 0.0122, 0, 0.66, 0.5, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 3, 0, 0.4878, 0.8902, 0, 0.6...
[ "from distutils.command.install_lib import install_lib as _install_lib", "import os", "class install_lib(_install_lib):\n \"\"\"Don't add compiled flags to filenames of non-Python files\"\"\"\n\n def _bytecode_filenames (self, py_filenames):\n bytecode_files = []\n for py_file in py_filename...
import distutils, os from setuptools import Command from setuptools.command.setopt import edit_config, option_base class saveopts(option_base): """Save command-line options to a file""" description = "save supplied options to setup.cfg or other config file" def run(self): dist = self.distribution...
[ [ 1, 0, 0.04, 0.04, 0, 0.66, 0, 901, 0, 2, 0, 0, 901, 0, 0 ], [ 1, 0, 0.08, 0.04, 0, 0.66, 0.3333, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.12, 0.04, 0, 0.66, 0....
[ "import distutils, os", "from setuptools import Command", "from setuptools.command.setopt import edit_config, option_base", "class saveopts(option_base):\n \"\"\"Save command-line options to a file\"\"\"\n\n description = \"save supplied options to setup.cfg or other config file\"\n\n def run(self):\...
from distutils.command.register import register as _register class register(_register): __doc__ = _register.__doc__ def run(self): # Make sure that we are using valid current name/version info self.run_command('egg_info') _register.run(self)
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 961, 0, 1, 0, 0, 961, 0, 0 ], [ 3, 0, 0.6, 0.7, 0, 0.66, 1, 276, 0, 1, 0, 0, 711, 0, 2 ], [ 14, 1, 0.4, 0.1, 1, 0.35, 0, 155, ...
[ "from distutils.command.register import register as _register", "class register(_register):\n __doc__ = _register.__doc__\n\n def run(self):\n # Make sure that we are using valid current name/version info\n self.run_command('egg_info')\n _register.run(self)", " __doc__ = _register....
from setuptools import Command from distutils.errors import DistutilsOptionError import sys from pkg_resources import * from unittest import TestLoader, main class ScanningLoader(TestLoader): def loadTestsFromModule(self, module): """Return a suite of all tests cases contained in the given module ...
[ [ 1, 0, 0.0061, 0.0061, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0122, 0.0061, 0, 0.66, 0.1667, 346, 0, 1, 0, 0, 346, 0, 0 ], [ 1, 0, 0.0183, 0.0061, 0, ...
[ "from setuptools import Command", "from distutils.errors import DistutilsOptionError", "import sys", "from pkg_resources import *", "from unittest import TestLoader, main", "class ScanningLoader(TestLoader):\n\n def loadTestsFromModule(self, module):\n \"\"\"Return a suite of all tests cases con...
import setuptools, sys, glob from distutils.command.install import install as _install from distutils.errors import DistutilsArgError class install(_install): """Use easy_install to install the package, w/dependencies""" user_options = _install.user_options + [ ('old-and-unmanageable', None, "Try not ...
[ [ 1, 0, 0.0081, 0.0081, 0, 0.66, 0, 182, 0, 3, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0163, 0.0081, 0, 0.66, 0.3333, 943, 0, 1, 0, 0, 943, 0, 0 ], [ 1, 0, 0.0244, 0.0081, 0, ...
[ "import setuptools, sys, glob", "from distutils.command.install import install as _install", "from distutils.errors import DistutilsArgError", "class install(_install):\n \"\"\"Use easy_install to install the package, w/dependencies\"\"\"\n\n user_options = _install.user_options + [\n ('old-and-u...
from distutils.command.build_ext import build_ext as _du_build_ext try: # Attempt to use Pyrex for building extensions, if available from Pyrex.Distutils.build_ext import build_ext as _build_ext except ImportError: _build_ext = _du_build_ext import os, sys from distutils.file_util import copy_file from set...
[ [ 1, 0, 0.0035, 0.0035, 0, 0.66, 0, 932, 0, 1, 0, 0, 932, 0, 0 ], [ 7, 0, 0.0139, 0.0174, 0, 0.66, 0.0588, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0139, 0.0035, 1, 0.7,...
[ "from distutils.command.build_ext import build_ext as _du_build_ext", "try:\n # Attempt to use Pyrex for building extensions, if available\n from Pyrex.Distutils.build_ext import build_ext as _build_ext\nexcept ImportError:\n _build_ext = _du_build_ext", " from Pyrex.Distutils.build_ext import build...
# This is just a kludge so that bdist_rpm doesn't guess wrong about the # distribution name and version, if the egg_info command is going to alter # them, another kludge to allow you to build old-style non-egg RPMs, and # finally, a kludge to track .rpm files for uploading when run on Python <2.5. from distutils.comma...
[ [ 1, 0, 0.0732, 0.0122, 0, 0.66, 0, 657, 0, 1, 0, 0, 657, 0, 0 ], [ 1, 0, 0.0854, 0.0122, 0, 0.66, 0.5, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 3, 0, 0.4329, 0.6585, 0, 0.6...
[ "from distutils.command.bdist_rpm import bdist_rpm as _bdist_rpm", "import sys, os", "class bdist_rpm(_bdist_rpm):\n\n def initialize_options(self):\n _bdist_rpm.initialize_options(self)\n self.no_egg = None\n\n if sys.version<\"2.5\":\n # Track for uploading any .rpm file(s) moved to...
import os.path, sys, fnmatch from distutils.command.build_py import build_py as _build_py from distutils.util import convert_path from glob import glob class build_py(_build_py): """Enhanced 'build_py' command that includes data files with packages The data files are specified via a 'package_data' argument to...
[ [ 1, 0, 0.0049, 0.0049, 0, 0.66, 0, 79, 0, 3, 0, 0, 79, 0, 0 ], [ 1, 0, 0.0098, 0.0049, 0, 0.66, 0.2, 475, 0, 1, 0, 0, 475, 0, 0 ], [ 1, 0, 0.0146, 0.0049, 0, 0.66,...
[ "import os.path, sys, fnmatch", "from distutils.command.build_py import build_py as _build_py", "from distutils.util import convert_path", "from glob import glob", "class build_py(_build_py):\n \"\"\"Enhanced 'build_py' command that includes data files with packages\n\n The data files are specified vi...
from distutils.command.bdist_wininst import bdist_wininst as _bdist_wininst import os, sys class bdist_wininst(_bdist_wininst): _good_upload = _bad_upload = None def create_exe(self, arcname, fullname, bitmap=None): _bdist_wininst.create_exe(self, arcname, fullname, bitmap) installer_name = se...
[ [ 1, 0, 0.0122, 0.0122, 0, 0.66, 0, 47, 0, 1, 0, 0, 47, 0, 0 ], [ 1, 0, 0.0244, 0.0122, 0, 0.66, 0.5, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 3, 0, 0.3537, 0.622, 0, 0.66, ...
[ "from distutils.command.bdist_wininst import bdist_wininst as _bdist_wininst", "import os, sys", "class bdist_wininst(_bdist_wininst):\n _good_upload = _bad_upload = None\n\n def create_exe(self, arcname, fullname, bitmap=None):\n _bdist_wininst.create_exe(self, arcname, fullname, bitmap)\n ...
from distutils.command.install_scripts import install_scripts \ as _install_scripts from easy_install import get_script_args, sys_executable, chmod from pkg_resources import Distribution, PathMetadata, ensure_directory import os from distutils import log class install_scripts(_install_scripts): """Do normal s...
[ [ 1, 0, 0.0185, 0.0247, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.037, 0.0123, 0, 0.66, 0.2, 709, 0, 3, 0, 0, 709, 0, 0 ], [ 1, 0, 0.0494, 0.0123, 0, 0.66...
[ "from distutils.command.install_scripts import install_scripts \\\n as _install_scripts", "from easy_install import get_script_args, sys_executable, chmod", "from pkg_resources import Distribution, PathMetadata, ensure_directory", "import os", "from distutils import log", "class install_scripts(_insta...
__all__ = [ 'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop', 'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts', 'sdist', 'setopt', 'test', 'upload', 'install_egg_info', 'install_scripts', 'register', 'bdist_wininst', ] import sys if sys.version>='2.5': ...
[ [ 14, 0, 0.1842, 0.3158, 0, 0.66, 0, 272, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.4211, 0.0526, 0, 0.66, 0.25, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.5263, 0.1579, 0, 0.6...
[ "__all__ = [\n 'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop',\n 'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts',\n 'sdist', 'setopt', 'test', 'upload', 'install_egg_info', 'install_scripts',\n 'register', 'bdist_wininst',\n]", "import sys", "if sys....
from setuptools.command.easy_install import easy_install from distutils.util import convert_path from pkg_resources import Distribution, PathMetadata, normalize_path from distutils import log from distutils.errors import * import sys, os, setuptools, glob class develop(easy_install): """Set up package for developm...
[ [ 1, 0, 0.0061, 0.0061, 0, 0.66, 0, 157, 0, 1, 0, 0, 157, 0, 0 ], [ 1, 0, 0.0122, 0.0061, 0, 0.66, 0.1667, 712, 0, 1, 0, 0, 712, 0, 0 ], [ 1, 0, 0.0183, 0.0061, 0, ...
[ "from setuptools.command.easy_install import easy_install", "from distutils.util import convert_path", "from pkg_resources import Distribution, PathMetadata, normalize_path", "from distutils import log", "from distutils.errors import *", "import sys, os, setuptools, glob", "class develop(easy_install):\...
from distutils.command.sdist import sdist as _sdist from distutils.util import convert_path from distutils import log from glob import glob import os, re, sys, pkg_resources entities = [ ("&lt;","<"), ("&gt;", ">"), ("&quot;", '"'), ("&apos;", "'"), ("&amp;", "&") ] def unescape(data): for old,new in enti...
[ [ 1, 0, 0.0041, 0.0041, 0, 0.66, 0, 322, 0, 1, 0, 0, 322, 0, 0 ], [ 1, 0, 0.0081, 0.0041, 0, 0.66, 0.0667, 712, 0, 1, 0, 0, 712, 0, 0 ], [ 1, 0, 0.0122, 0.0041, 0, ...
[ "from distutils.command.sdist import sdist as _sdist", "from distutils.util import convert_path", "from distutils import log", "from glob import glob", "import os, re, sys, pkg_resources", "entities = [\n (\"&lt;\",\"<\"), (\"&gt;\", \">\"), (\"&quot;\", '\"'), (\"&apos;\", \"'\"),\n (\"&amp;\", \"&...
"""Tests for the 'setuptools' package""" from unittest import TestSuite, TestCase, makeSuite, defaultTestLoader import distutils.core, distutils.cmd from distutils.errors import DistutilsOptionError, DistutilsPlatformError from distutils.errors import DistutilsSetupError import setuptools, setuptools.dist from setuptoo...
[ [ 8, 0, 0.0027, 0.0027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0054, 0.0027, 0, 0.66, 0.0556, 88, 0, 4, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0081, 0.0027, 0, 0.66, ...
[ "\"\"\"Tests for the 'setuptools' package\"\"\"", "from unittest import TestSuite, TestCase, makeSuite, defaultTestLoader", "import distutils.core, distutils.cmd", "from distutils.errors import DistutilsOptionError, DistutilsPlatformError", "from distutils.errors import DistutilsSetupError", "import setup...
"""Utilities for extracting common archive formats""" __all__ = [ "unpack_archive", "unpack_zipfile", "unpack_tarfile", "default_filter", "UnrecognizedFormat", "extraction_drivers", "unpack_directory", ] import zipfile, tarfile, os, shutil from pkg_resources import ensure_directory from distutils.errors impo...
[ [ 8, 0, 0.0049, 0.0049, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0268, 0.0195, 0, 0.66, 0.0909, 272, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0439, 0.0049, 0, 0.66,...
[ "\"\"\"Utilities for extracting common archive formats\"\"\"", "__all__ = [\n \"unpack_archive\", \"unpack_zipfile\", \"unpack_tarfile\", \"default_filter\",\n \"UnrecognizedFormat\", \"extraction_drivers\", \"unpack_directory\",\n]", "import zipfile, tarfile, os, shutil", "from pkg_resources import ens...
from distutils.core import Extension as _Extension from dist import _get_unpatched _Extension = _get_unpatched(_Extension) try: from Pyrex.Distutils.build_ext import build_ext except ImportError: have_pyrex = False else: have_pyrex = True class Extension(_Extension): """Extension that uses '.c' files...
[ [ 1, 0, 0.0278, 0.0278, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 1, 0, 0.0556, 0.0278, 0, 0.66, 0.1111, 673, 0, 1, 0, 0, 673, 0, 0 ], [ 14, 0, 0.0833, 0.0278, 0, ...
[ "from distutils.core import Extension as _Extension", "from dist import _get_unpatched", "_Extension = _get_unpatched(_Extension)", "try:\n from Pyrex.Distutils.build_ext import build_ext\nexcept ImportError:\n have_pyrex = False\nelse:\n have_pyrex = True", " from Pyrex.Distutils.build_ext impo...
"""Extensions to the 'distutils' for large or complex distributions""" from setuptools.extension import Extension, Library from setuptools.dist import Distribution, Feature, _get_unpatched import distutils.core, setuptools.command from setuptools.depends import Require from distutils.core import Command as _Command fro...
[ [ 8, 0, 0.0122, 0.0122, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0244, 0.0122, 0, 0.66, 0.0526, 360, 0, 2, 0, 0, 360, 0, 0 ], [ 1, 0, 0.0366, 0.0122, 0, 0.66...
[ "\"\"\"Extensions to the 'distutils' for large or complex distributions\"\"\"", "from setuptools.extension import Extension, Library", "from setuptools.dist import Distribution, Feature, _get_unpatched", "import distutils.core, setuptools.command", "from setuptools.depends import Require", "from distutils...
"""Run the EasyInstall command""" if __name__ == '__main__': from setuptools.command.easy_install import main main()
[ [ 8, 0, 0.2, 0.2, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 4, 0, 0.8, 0.6, 0, 0.66, 1, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 1, 1, 0.8, 0.2, 1, 0.8, 0, 157, 0, ...
[ "\"\"\"Run the EasyInstall command\"\"\"", "if __name__ == '__main__':\n from setuptools.command.easy_install import main\n main()", " from setuptools.command.easy_install import main", " main()" ]
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.1037, 0.0622, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1411, 0.0041, 0, 0.66, 0.0833, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1452, 0.0041, 0, 0.66...
[ "\"\"\"Service regsitry for service discovery.\n\nThe registry service can be deployed on a server in order to provide a\ncentral place where remote clients can discover available.\n\nOn the server side, each service is registered by their name which is unique\nto the registry. Typically this name provides enough ...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 14, 0, 0.1417, 0.0079, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1575, 0.0079, 0, 0.66, 0.1667, 479, 0, 1, 0, 0, 479, 0, 0 ], [ 1, 0, 0.1732, 0.0079, 0, 0...
[ "__author__ = 'rafek@google.com (Rafe Kaplan)'", "import contextlib", "from . import messages", "from . import util", "__all__ = ['IndentationError',\n 'IndentWriter',\n ]", "class IndentationError(messages.Error):\n \"\"\"Raised when end_indent is called too many times.\"\"\"", " \...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.0636, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0707, 0.0035, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0777, 0.0035, 0, 0.66,...
[ "\"\"\"Stub library.\"\"\"", "__author__ = 'rafek@google.com (Rafe Kaplan)'", "import new", "import sys", "import urllib2", "from . import descriptor", "from . import message_types", "from . import messages", "from . import protobuf", "from . import remote", "from . import util", "__all__ = [\...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.1319, 0.0491, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1656, 0.0061, 0, 0.66, 0.0909, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1718, 0.0061, 0, 0.66...
[ "\"\"\"Webapp forms interface to ProtoRPC services.\n\nThis webapp application is automatically configured to work with ProtoRPCs\nthat have a configured protorpc.RegistryService. This webapp is\nautomatically added to the registry service URL at <registry-path>/forms\n(default is /protorpc/form) when configured u...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 14, 0, 1, 0.0556, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__author__ = 'rafek@google.com (Rafe Kaplan)'" ]
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.1417, 0.0079, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.1575, 0.0079, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1732, 0.0079, 0, 0....
[ "from __future__ import with_statement", "__author__ = 'rafek@google.com (Rafe Kaplan)'", "import logging", "from . import descriptor", "from . import generate", "from . import messages", "from . import util", "__all__ = ['format_proto_file']", "def format_proto_file(file_descriptor, output, indent_...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.0373, 0.0021, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0414, 0.0021, 0, 0.66, 0.0455, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0476, 0.0062, 0, 0.6...
[ "\"\"\"Common utility library.\"\"\"", "from __future__ import with_statement", "__author__ = ['rafek@google.com (Rafe Kaplan)',\n 'guido@google.com (Guido van Rossum)',\n]", "import cgi", "import datetime", "import inspect", "import os", "import re", "import sys", "__all__ = ['Accept...
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 1, 0, 0.0826, 0.0046, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0917, 0.0046, 0, 0.66, 0.0714, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1009, 0.0046, 0, 0...
[ "from __future__ import with_statement", "__author__ = 'rafek@google.com (Rafe Kaplan)'", "from . import descriptor", "from . import generate", "from . import message_types", "from . import messages", "from . import util", "__all__ = ['format_python_file']", "_MESSAGE_FIELD_MAP = {\n message_type...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.1083, 0.0222, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1278, 0.0056, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1389, 0.0056, 0, 0.66, ...
[ "\"\"\"WSGI utilities\n\nSmall collection of helpful utilities for working with WSGI.\n\"\"\"", "__author__ = 'rafek@google.com (Rafe Kaplan)'", "import cStringIO", "import httplib", "import re", "from .. import util", "__all__ = ['static_page',\n 'error',\n 'first_found',\n]", "_S...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[]
[]
#!/usr/bin/env python # # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.1681, 0.042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2017, 0.0084, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2185, 0.0084, 0, 0.66, ...
[ "\"\"\"Simple protocol message types.\n\nIncludes new message and field types that are outside what is defined by the\nprotocol buffers standard.\n\"\"\"", "__author__ = 'rafek@google.com (Rafe Kaplan)'", "import datetime", "from . import messages", "from . import util", "__all__ = [\n 'DateTimeField',...
import datetime import os import re import sys import types from django.conf import settings from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound from django.template import (Template, Context, TemplateDoesNotExist, TemplateSyntaxError) from django.utils.html import escape from djang...
[ [ 1, 0, 0.0012, 0.0012, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0023, 0.0012, 0, 0.66, 0.0476, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0035, 0.0012, 0, ...
[ "import datetime", "import os", "import re", "import sys", "import types", "from django.conf import settings", "from django.http import HttpResponse, HttpResponseServerError, HttpResponseNotFound", "from django.template import (Template, Context, TemplateDoesNotExist,\n TemplateSyntaxError)", "fr...
""" Decorators for views based on HTTP headers. """ try: from functools import wraps except ImportError: from django.utils.functional import wraps # Python 2.4 fallback. from calendar import timegm from datetime import timedelta from email.Utils import formatdate from django.utils.decorators import decorato...
[ [ 8, 0, 0.014, 0.021, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 7, 0, 0.0455, 0.028, 0, 0.66, 0.0588, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.042, 0.007, 1, 0.51, 0, ...
[ "\"\"\"\nDecorators for views based on HTTP headers.\n\"\"\"", "try:\n from functools import wraps\nexcept ImportError:\n from django.utils.functional import wraps # Python 2.4 fallback.", " from functools import wraps", " from django.utils.functional import wraps # Python 2.4 fallback.", "fro...
try: from functools import wraps except ImportError: from django.utils.functional import wraps # Python 2.4 fallback. from django.utils.cache import patch_vary_headers from django.utils.decorators import available_attrs def vary_on_headers(*headers): """ A view decorator that adds the specified heade...
[ [ 7, 0, 0.061, 0.0976, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0488, 0.0244, 1, 0.01, 0, 711, 0, 1, 0, 0, 711, 0, 0 ], [ 1, 1, 0.0976, 0.0244, 1, 0.01, ...
[ "try:\n from functools import wraps\nexcept ImportError:\n from django.utils.functional import wraps # Python 2.4 fallback.", " from functools import wraps", " from django.utils.functional import wraps # Python 2.4 fallback.", "from django.utils.cache import patch_vary_headers", "from django.u...
from django.utils.decorators import decorator_from_middleware from django.middleware.gzip import GZipMiddleware gzip_page = decorator_from_middleware(GZipMiddleware) gzip_page.__doc__ = "Decorator for views that gzips pages if the client supports it."
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 532, 0, 1, 0, 0, 532, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 282, 0, 1, 0, 0, 282, 0, 0 ], [ 14, 0, 0.8, 0.2, 0, 0.66, 0.6667,...
[ "from django.utils.decorators import decorator_from_middleware", "from django.middleware.gzip import GZipMiddleware", "gzip_page = decorator_from_middleware(GZipMiddleware)", "gzip_page.__doc__ = \"Decorator for views that gzips pages if the client supports it.\"" ]