code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# -*- coding: utf-8 -*- import os import threading def clone_table(table, name, metadata=None): from sqlalchemy import Table if not metadata: metadata = table.metadata try: return metadata.tables[name] except KeyError: args = [] kwargs = {} args.append(name) ...
[ [ 1, 0, 0.0148, 0.0074, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0222, 0.0074, 0, 0.66, 0.1667, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 2, 0, 0.1, 0.1185, 0, 0.66,...
[ "import os", "import threading", "def clone_table(table, name, metadata=None):\n from sqlalchemy import Table\n if not metadata:\n metadata = table.metadata\n try:\n return metadata.tables[name]\n except KeyError:\n args = []", " from sqlalchemy import Table", " if not...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ mmqueue (mongodb message queue) example: job = mmqueue.get(con.db.collection, block=True) with job: do_something_with(job) or job = mmqueue.get(con.db.collection, block=True) try: do_something_with(job) except: ... els...
[ [ 8, 0, 0.1515, 0.2273, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2727, 0.0152, 0, 0.66, 0.1667, 426, 0, 2, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2879, 0.0152, 0, 0.66...
[ "\"\"\"\nmmqueue (mongodb message queue)\nexample:\n job = mmqueue.get(con.db.collection, block=True)\n with job:\n do_something_with(job)\n or\n job = mmqueue.get(con.db.collection, block=True)", "from datetime import datetime, timedelta", "import time", "class Job(object):\n def __init...
# -*- coding: utf-8 -*- import os.path from ..globals import request class _IgnoreException(object): def __enter__(self): pass def __exit__(self, type, value, tb): return True ignore_exception = _IgnoreException() def shell(namespace=None): banner = "accost debug shell" if namespace...
[ [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.0484, 0.0161, 0, 0.66, 0.1429, 926, 0, 1, 0, 0, 926, 0, 0 ], [ 3, 0, 0.1371, 0.0968, 0, 0....
[ "import os.path", "from ..globals import request", "class _IgnoreException(object):\n def __enter__(self):\n pass\n\n def __exit__(self, type, value, tb):\n return True", " def __enter__(self):\n pass", " def __exit__(self, type, value, tb):\n return True", " ...
#-*- coding: utf-8 -*-
[]
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- from functools import wraps from datetime import datetime, timedelta from werkzeug.contrib.cache import BaseCache from werkzeug.wrappers import Response from ..globals import request class MongoCache(BaseCache): def __init__(self, collection, default_timeout=300, key_...
[ [ 1, 0, 0.0455, 0.0152, 0, 0.66, 0, 711, 0, 1, 0, 0, 711, 0, 0 ], [ 1, 0, 0.0606, 0.0152, 0, 0.66, 0.1667, 426, 0, 2, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0758, 0.0152, 0, ...
[ "from functools import wraps", "from datetime import datetime, timedelta", "from werkzeug.contrib.cache import BaseCache", "from werkzeug.wrappers import Response", "from ..globals import request", "class MongoCache(BaseCache):\n def __init__(self, collection, default_timeout=300, key_prefix=None):\n ...
# Copyright (c) 2006-2007 Open Source Applications Foundation # # 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 require...
[ [ 1, 0, 0.1744, 0.0116, 0, 0.66, 0, 73, 0, 1, 0, 0, 73, 0, 0 ], [ 1, 0, 0.186, 0.0116, 0, 0.66, 0.3333, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 14, 0, 0.2093, 0.0116, 0, 0....
[ "from SimpleXMLRPCServer import SimpleXMLRPCDispatcher", "import logging", "logger = logging.getLogger(__name__)", "class WSGIXMLRPCApplication(object):\n \"\"\"Application to handle requests to the XMLRPC service\"\"\"\n\n def __init__(self, instance=None, methods=[]):\n \"\"\"Create windmill xm...
# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php """ An application that proxies WSGI requests to a remote server. TODO: * Send ``Via`` header? It's not clear to me this is a Via in the style of ...
[ [ 8, 0, 0.0559, 0.0949, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1085, 0.0034, 0, 0.66, 0.0833, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1119, 0.0034, 0, 0.66, ...
[ "\"\"\"\nAn application that proxies WSGI requests to a remote server.\n\nTODO:\n\n* Send ``Via`` header? It's not clear to me this is a Via in the\n style of a typical proxy.", "import httplib", "import urlparse", "import urllib", "import os", "filtered_headers = ( \n 'transfer-encoding',\n '...
# -*- coding: utf-8 -*- from .globals import _request_ctx_stack, request def flash(message, category='message'): """Flashes a message to the next request. In order to remove the flashed message from the session and to display it to the user, the template has to call :func:`get_flashed_messages`. .. ...
[ [ 1, 0, 0.0408, 0.0204, 0, 0.66, 0, 926, 0, 2, 0, 0, 926, 0, 0 ], [ 2, 0, 0.2551, 0.3265, 0, 0.66, 0.5, 452, 0, 2, 0, 0, 0, 0, 2 ], [ 8, 1, 0.2551, 0.2857, 1, 0.5, ...
[ "from .globals import _request_ctx_stack, request", "def flash(message, category='message'):\n \"\"\"Flashes a message to the next request. In order to remove the\n flashed message from the session and to display it to the user,\n the template has to call :func:`get_flashed_messages`.\n\n .. versionc...
# -*- coding: utf-8 -*- import os import sys import time from StringIO import StringIO from .gzip import GzipMiddleware from ..globals import request ############################################################################ __all__ = ['ProfilerMiddleware', 'TimeMiddleware', 'ChangeProcessTitleMiddleware', 'Exception...
[ [ 1, 0, 0.0131, 0.0065, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0196, 0.0065, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0261, 0.0065, 0, ...
[ "import os", "import sys", "import time", "from StringIO import StringIO", "from .gzip import GzipMiddleware", "from ..globals import request", "__all__ = ['ProfilerMiddleware', 'TimeMiddleware', 'ChangeProcessTitleMiddleware',\n'ExceptionTemplateMiddleware', 'GzipMiddleware', 'StormSQLMiddleware']", ...
# -*- coding: utf-8 -*- from functools import partial from os.path import abspath, dirname from werkzeug import LocalStack, LocalProxy def _lookup_object(name): top = _request_ctx_stack.top if top is None: raise RuntimeError('working outside of request context') return getattr(top, name) _reques...
[ [ 1, 0, 0.1053, 0.0526, 0, 0.66, 0, 711, 0, 1, 0, 0, 711, 0, 0 ], [ 1, 0, 0.1579, 0.0526, 0, 0.66, 0.1667, 79, 0, 2, 0, 0, 79, 0, 0 ], [ 1, 0, 0.2105, 0.0526, 0, 0....
[ "from functools import partial", "from os.path import abspath, dirname", "from werkzeug import LocalStack, LocalProxy", "def _lookup_object(name):\n top = _request_ctx_stack.top\n if top is None:\n raise RuntimeError('working outside of request context')\n return getattr(top, name)", " to...
# -*- coding: utf-8 -*- """ werkzeug.contrib.profiler ~~~~~~~~~~~~~~~~~~~~~~~~~ This module provides a simple WSGI profiler middleware for finding bottlenecks in web application. It uses the :mod:`profile` or :mod:`cProfile` module to do the profiling and writes the stats to the stream provide...
[ [ 8, 0, 0.0862, 0.1466, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1638, 0.0086, 0, 0.66, 0.2, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 7, 0, 0.2069, 0.0776, 0, 0.66, ...
[ "\"\"\"\n werkzeug.contrib.profiler\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This module provides a simple WSGI profiler middleware for finding\n bottlenecks in web application. It uses the :mod:`profile` or\n :mod:`cProfile` module to do the profiling and writes the stats to the\n stream provided (defaul...
# -*- coding: utf-8 -*- """ werkzeug.contrib.jsrouting ~~~~~~~~~~~~~~~~~~~~~~~~~~ Addon module that allows to create a JavaScript function from a map that generates rules. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ ...
[ [ 8, 0, 0.0252, 0.0388, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 7, 0, 0.0543, 0.0194, 0, 0.66, 0.1, 0, 0, 1, 0, 0, 0, 0, 1 ], [ 1, 1, 0.0504, 0.0039, 1, 0.92, 0...
[ "\"\"\"\n werkzeug.contrib.jsrouting\n ~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n Addon module that allows to create a JavaScript function from a map\n that generates rules.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.", "try:\n from simplejson import dumps\nexcept ImportErro...
# -*- coding: utf-8 -*- """ werkzeug.contrib.wrappers ~~~~~~~~~~~~~~~~~~~~~~~~~ Extra wrappers or mixins contributed by the community. These wrappers can be mixed in into request objects to add extra functionality. Example:: from werkzeug import Request as RequestBase from werkze...
[ [ 8, 0, 0.0436, 0.0764, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0836, 0.0036, 0, 0.66, 0.0769, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0873, 0.0036, 0, 0.66...
[ "\"\"\"\n werkzeug.contrib.wrappers\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n\n Extra wrappers or mixins contributed by the community. These wrappers can\n be mixed in into request objects to add extra functionality.\n\n Example::", "import codecs", "from werkzeug.exceptions import BadRequest", "from werk...
# -*- coding: utf-8 -*- r""" werkzeug.contrib.securecookie ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module implements a cookie that is not alterable from the client because it adds a checksum the server checks for. You can use it as session replacement if all you have is a user id or something to mark ...
[ [ 8, 0, 0.1387, 0.2683, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2744, 0.003, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2774, 0.003, 0, 0.66, ...
[ "r\"\"\"\n werkzeug.contrib.securecookie\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This module implements a cookie that is not alterable from the client\n because it adds a checksum the server checks for. You can use it as\n session replacement if all you have is a user id or something to mark\n a logg...
# -*- coding: utf-8 -*- """ werkzeug.contrib.fixers ~~~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 0.5 This module includes various helpers that fix bugs in web servers. They may be necessary for some versions of a buggy web server but not others. We try to stay updated with the status of the bug...
[ [ 8, 0, 0.0488, 0.0829, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0927, 0.0049, 0, 0.66, 0.1111, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.1, 0.0098, 0, 0.66, ...
[ "\"\"\"\n werkzeug.contrib.fixers\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n .. versionadded:: 0.5\n\n This module includes various helpers that fix bugs in web servers. They may\n be necessary for some versions of a buggy web server but not others. We try", "from urllib import unquote", "from werkzeug.http...
# -*- coding: utf-8 -*- r""" werkzeug.contrib.iterio ~~~~~~~~~~~~~~~~~~~~~~~ This module implements a :class:`IterIO` that converts an iterator into a stream object and the other way round. Converting streams into iterators requires the `greenlet`_ module. To convert an iterator into a stream...
[ [ 8, 0, 0.0765, 0.1423, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 7, 0, 0.1548, 0.0142, 0, 0.66, 0.25, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.153, 0.0036, 1, 0.3, 0,...
[ "r\"\"\"\n werkzeug.contrib.iterio\n ~~~~~~~~~~~~~~~~~~~~~~~\n\n This module implements a :class:`IterIO` that converts an iterator into\n a stream object and the other way round. Converting streams into\n iterators requires the `greenlet`_ module.", "try:\n from py.magic import greenlet\nexcep...
# -*- coding: utf-8 -*- """ werkzeug.contrib.limiter ~~~~~~~~~~~~~~~~~~~~~~~~ A middleware that limits incoming data. This works around problems with Trac_ or Django_ because those directly stream into the memory. .. _Trac: http://trac.edgewall.org/ .. _Django: http://www.djangoproject.com/ ...
[ [ 8, 0, 0.2222, 0.3611, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4167, 0.0278, 0, 0.66, 0.3333, 358, 0, 1, 0, 0, 358, 0, 0 ], [ 1, 0, 0.4722, 0.0278, 0, 0.66...
[ "\"\"\"\n werkzeug.contrib.limiter\n ~~~~~~~~~~~~~~~~~~~~~~~~\n\n A middleware that limits incoming data. This works around problems with\n Trac_ or Django_ because those directly stream into the memory.\n\n .. _Trac: http://trac.edgewall.org/", "from warnings import warn", "from werkzeug import...
# -*- coding: utf-8 -*- """ werkzeug.contrib.lint ~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 0.5 This module provides a middleware that performs sanity checks of the WSGI application. It checks that :pep:`333` is properly implemented and warns on some common HTTP errors such as non-empty respons...
[ [ 8, 0, 0.0347, 0.0604, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0665, 0.003, 0, 0.66, 0.0909, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 1, 0, 0.0695, 0.003, 0, 0.66, ...
[ "\"\"\"\n werkzeug.contrib.lint\n ~~~~~~~~~~~~~~~~~~~~~\n\n .. versionadded:: 0.5\n\n This module provides a middleware that performs sanity checks of the WSGI\n application. It checks that :pep:`333` is properly implemented and warns", "from urlparse import urlparse", "from warnings import warn...
# -*- coding: utf-8 -*- """ werkzeug.contrib.atom ~~~~~~~~~~~~~~~~~~~~~ This module provides a class called :class:`AtomFeed` which can be used to generate feeds in the Atom syndication format (see :rfc:`4287`). Example:: def atom_feed(request): feed = AtomFeed("My Blog", feed...
[ [ 8, 0, 0.0364, 0.0641, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.07, 0.0029, 0, 0.66, 0.125, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0729, 0.0029, 0, 0.66, ...
[ "\"\"\"\n werkzeug.contrib.atom\n ~~~~~~~~~~~~~~~~~~~~~\n\n This module provides a class called :class:`AtomFeed` which can be\n used to generate feeds in the Atom syndication format (see :rfc:`4287`).\n\n Example::", "from datetime import datetime", "from werkzeug.utils import escape", "from w...
# -*- coding: utf-8 -*- """ werkzeug.contrib ~~~~~~~~~~~~~~~~ Contains user-submitted code that other users may find useful, but which is not part of the Werkzeug core. Anyone can write code for inclusion in the `contrib` package. All modules in this package are distributed as an add-on libra...
[ [ 8, 0, 0.5625, 0.9375, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ] ]
[ "\"\"\"\n werkzeug.contrib\n ~~~~~~~~~~~~~~~~\n\n Contains user-submitted code that other users may find useful, but which\n is not part of the Werkzeug core. Anyone can write code for inclusion in\n the `contrib` package. All modules in this package are distributed as an\n add-on library and th...
# -*- coding: utf-8 -*- """ werkzeug.contrib.cache ~~~~~~~~~~~~~~~~~~~~~~ The main problem with dynamic Web sites is, well, they're dynamic. Each time a user requests a page, the webserver executes a lot of code, queries the database, renders templates until the visitor gets the page he sees. ...
[ [ 8, 0, 0.0587, 0.1115, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1155, 0.002, 0, 0.66, 0.0769, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1174, 0.002, 0, 0.66, ...
[ "\"\"\"\n werkzeug.contrib.cache\n ~~~~~~~~~~~~~~~~~~~~~~\n\n The main problem with dynamic Web sites is, well, they're dynamic. Each\n time a user requests a page, the webserver executes a lot of code, queries\n the database, renders templates until the visitor gets the page he sees.", "import os...
# -*- coding: utf-8 -*- """ werkzeug.contrib.testtools ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module implements extended wrappers for simplified testing. `TestResponse` A response wrapper which adds various cached attributes for simplified assertions on various content types. :copyright:...
[ [ 8, 0, 0.1212, 0.197, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2273, 0.0152, 0, 0.66, 0.3333, 437, 0, 3, 0, 0, 437, 0, 0 ], [ 3, 0, 0.6061, 0.6818, 0, 0.66,...
[ "\"\"\"\n werkzeug.contrib.testtools\n ~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This module implements extended wrappers for simplified testing.\n\n `TestResponse`\n A response wrapper which adds various cached attributes for", "from werkzeug import Response, cached_property, import_string", "class Con...
# -*- coding: utf-8 -*- """ werkzeug.urls ~~~~~~~~~~~~~ This module implements various URL related functions. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import urlparse from werkzeug._internal import _decode_unicode ...
[ [ 8, 0, 0.0132, 0.0197, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0241, 0.0022, 0, 0.66, 0.0455, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 1, 0, 0.0285, 0.0022, 0, 0.66...
[ "\"\"\"\n werkzeug.urls\n ~~~~~~~~~~~~~\n\n This module implements various URL related functions.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.\n :license: BSD, see LICENSE for more details.", "import urlparse", "from werkzeug._internal import _decode_unicode", "_...
# -*- coding: utf-8 -*- """ werkzeug.local ~~~~~~~~~~~~~~ This module implements context-local objects. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ try: from greenlet import getcurrent as get_current_greenlet except ...
[ [ 8, 0, 0.0148, 0.0222, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 7, 0, 0.0383, 0.0247, 0, 0.66, 0.1, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0296, 0.0025, 1, 0.32, 0...
[ "\"\"\"\n werkzeug.local\n ~~~~~~~~~~~~~~\n\n This module implements context-local objects.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.\n :license: BSD, see LICENSE for more details.", "try:\n from greenlet import getcurrent as get_current_greenlet\nexcept Import...
# -*- coding: utf-8 -*- """ werkzeug.useragents ~~~~~~~~~~~~~~~~~~~ This module provides a helper to inspect user agent strings. This module is far from complete but should work for most of the currently available browsers. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more deta...
[ [ 8, 0, 0.0405, 0.0649, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0757, 0.0054, 0, 0.66, 0.25, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 3, 0, 0.2811, 0.3838, 0, 0.66, ...
[ "\"\"\"\n werkzeug.useragents\n ~~~~~~~~~~~~~~~~~~~\n\n This module provides a helper to inspect user agent strings. This module\n is far from complete but should work for most of the currently available\n browsers.", "import re", "class UserAgentParser(object):\n \"\"\"A simple user agent pa...
# -*- coding: utf-8 -*- """ werkzeug.utils ~~~~~~~~~~~~~~ This module implements various utilities for WSGI applications. Most of them are used by the request and response wrappers but especially for middleware development it makes sense to use them without the wrappers. :copyright: (c) 2010 ...
[ [ 8, 0, 0.0104, 0.0163, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0193, 0.0015, 0, 0.66, 0.0286, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0208, 0.0015, 0, 0.66...
[ "\"\"\"\n werkzeug.utils\n ~~~~~~~~~~~~~~\n\n This module implements various utilities for WSGI applications. Most of\n them are used by the request and response wrappers but especially for\n middleware development it makes sense to use them without the wrappers.", "import re", "import os", "f...
# -*- coding: utf-8 -*- """ werkzeug.exceptions ~~~~~~~~~~~~~~~~~~~ This module implements a number of Python exceptions you can raise from within your views to trigger a standard non-200 response. Usage Example ------------- :: from werkzeug import BaseRequest, responder ...
[ [ 8, 0, 0.0654, 0.1242, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1285, 0.0022, 0, 0.66, 0.0345, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1307, 0.0022, 0, 0.66...
[ "\"\"\"\n werkzeug.exceptions\n ~~~~~~~~~~~~~~~~~~~\n\n This module implements a number of Python exceptions you can raise from\n within your views to trigger a standard non-200 response.", "import sys", "from werkzeug._internal import HTTP_STATUS_CODES, _get_environ", "class HTTPException(Excepti...
# -*- coding: utf-8 -*- """ werkzeug ~~~~~~~~ Werkzeug is the Swiss Army knife of Python web development. It provides useful classes and functions for any WSGI application to make the life of a python web developer much easier. All of the provided classes are independent from each other so yo...
[ [ 8, 0, 0.0573, 0.0955, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1083, 0.0064, 0, 0.66, 0.0909, 209, 0, 1, 0, 0, 209, 0, 0 ], [ 1, 0, 0.1146, 0.0064, 0, 0.66...
[ "\"\"\"\n werkzeug\n ~~~~~~~~\n\n Werkzeug is the Swiss Army knife of Python web development.\n\n It provides useful classes and functions for any WSGI application to make\n the life of a python web developer much easier. All of the provided", "from types import ModuleType", "import sys", "all...
# -*- coding: utf-8 -*- """ werkzeug.wsgi ~~~~~~~~~~~~~ This module implements WSGI related helpers. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import os import urllib import urlparse import posixpath import mimetypes f...
[ [ 8, 0, 0.0079, 0.0118, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0144, 0.0013, 0, 0.66, 0.0417, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0157, 0.0013, 0, 0.66...
[ "\"\"\"\n werkzeug.wsgi\n ~~~~~~~~~~~~~\n\n This module implements WSGI related helpers.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.\n :license: BSD, see LICENSE for more details.", "import os", "import urllib", "import urlparse", "import posixpath", "import...
# -*- coding: utf-8 -*- """ werkzeug.security ~~~~~~~~~~~~~~~~~ Security related helpers such as secure password hashing tools. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import hmac import string from random import Sys...
[ [ 8, 0, 0.0577, 0.0865, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1058, 0.0096, 0, 0.66, 0.1, 993, 0, 1, 0, 0, 993, 0, 0 ], [ 1, 0, 0.1154, 0.0096, 0, 0.66, ...
[ "\"\"\"\n werkzeug.security\n ~~~~~~~~~~~~~~~~~\n\n Security related helpers such as secure password hashing tools.\n\n :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details.\n :license: BSD, see LICENSE for more details.", "import hmac", "import string", "from random import S...
# -*- coding: utf-8 -*- from wsgiref.handlers import CGIHandler from manage import application CGIHandler().run(application)
[ [ 1, 0, 0.5, 0.25, 0, 0.66, 0, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.75, 0.25, 0, 0.66, 0.5, 797, 0, 1, 0, 0, 797, 0, 0 ], [ 8, 0, 1, 0.25, 0, 0.66, 1, 67...
[ "from wsgiref.handlers import CGIHandler", "from manage import application", "CGIHandler().run(application)" ]
import unittest import doctest def additional_tests(): import simplejson import simplejson.encoder import simplejson.decoder suite = unittest.TestSuite() for mod in (simplejson, simplejson.encoder, simplejson.decoder): suite.addTest(doctest.DocTestSuite(mod)) suite.addTest(doctest.DocFi...
[ [ 1, 0, 0.0435, 0.0435, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.087, 0.0435, 0, 0.66, 0.25, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 2, 0, 0.3478, 0.3913, 0, 0.66,...
[ "import unittest", "import doctest", "def additional_tests():\n import simplejson\n import simplejson.encoder\n import simplejson.decoder\n suite = unittest.TestSuite()\n for mod in (simplejson, simplejson.encoder, simplejson.decoder):\n suite.addTest(doctest.DocTestSuite(mod))\n suite....
"""Implementation of JSONEncoder """ import re try: from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii except ImportError: c_encode_basestring_ascii = None try: from simplejson._speedups import make_encoder as c_make_encoder except ImportError: c_make_encoder = None ...
[ [ 8, 0, 0.0034, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0068, 0.0023, 0, 0.66, 0.0667, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 7, 0, 0.0148, 0.0091, 0, 0.66...
[ "\"\"\"Implementation of JSONEncoder\n\"\"\"", "import re", "try:\n from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii\nexcept ImportError:\n c_encode_basestring_ascii = None", " from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii",...
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
[ [ 8, 0, 0.1572, 0.3113, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3145, 0.0031, 0, 0.66, 0.0909, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3223, 0.0126, 0, 0.66...
[ "r\"\"\"JSON (JavaScript Object Notation) <http://json.org> is a subset of\nJavaScript syntax (ECMA-262 3rd edition) used as a lightweight data\ninterchange format.\n\n:mod:`simplejson` exposes an API familiar to users of the standard library\n:mod:`marshal` and :mod:`pickle` modules. It is the externally maintaine...
"""JSON token scanner """ import re try: from simplejson._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', (re.VERBOSE | re.MULTILINE | re.DOTALL)) def py_make_scan...
[ [ 8, 0, 0.0231, 0.0308, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0462, 0.0154, 0, 0.66, 0.1667, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 7, 0, 0.0846, 0.0615, 0, 0.66...
[ "\"\"\"JSON token scanner\n\"\"\"", "import re", "try:\n from simplejson._speedups import make_scanner as c_make_scanner\nexcept ImportError:\n c_make_scanner = None", " from simplejson._speedups import make_scanner as c_make_scanner", " c_make_scanner = None", "__all__ = ['make_scanner']", ...
############################################################ # # # The implementation of PHPRPC Protocol 3.0 # # # # fpconst.py # # ...
[ [ 1, 0, 0.3564, 0.0099, 0, 0.66, 0, 209, 0, 1, 0, 0, 209, 0, 0 ], [ 14, 0, 0.3762, 0.0099, 0, 0.66, 0.1111, 642, 1, 0, 0, 0, 0, 2, 0 ], [ 14, 0, 0.3861, 0.0099, 0, ...
[ "import types", "PosInf = 1e300000", "NegInf = -1e300000", "NaN = PosInf/PosInf", "def isPosInf(value):\n return (PosInf == value)", " return (PosInf == value)", "def isNegInf(value):\n return (NegInf == value)", " return (NegInf == value)", "def isInf(value):\n return (PosInf == valu...
############################################################ # # # The implementation of PHPRPC Protocol 3.0 # # # # xxtea.py # # ...
[ [ 1, 0, 0.3131, 0.0101, 0, 0.66, 0, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 14, 0, 0.3333, 0.0101, 0, 0.66, 0.1667, 673, 1, 0, 0, 0, 0, 1, 0 ], [ 2, 0, 0.404, 0.1111, 0, 0....
[ "import struct", "_DELTA = 0x9E3779B9", "def _long2str(v, w):\n n = (len(v) - 1) << 2\n if w:\n m = v[-1]\n if (m < n - 3) or (m > n): return ''\n n = m\n s = struct.pack('<%iL' % len(v), *v)\n if w :", " n = (len(v) - 1) << 2", " if w:\n m = v[-1]\n if (...
# Copyright (c) 2006 Allan Saddi <allan@saddi.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of c...
[ [ 14, 0, 0.1534, 0.0057, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1591, 0.0057, 0, 0.66, 0.1111, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1705, 0.0057, 0, 0....
[ "__author__ = 'Allan Saddi <allan@saddi.com>'", "__version__ = '$Revision$'", "import select", "import struct", "import socket", "import errno", "__all__ = ['SCGIApp']", "def encodeNetstring(s):\n return ''.join([str(len(s)), ':', s, ','])", " return ''.join([str(len(s)), ':', s, ','])", "cl...
#
[]
[]
# Copyright (c) 2005 Allan Saddi <allan@saddi.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of c...
[ [ 14, 0, 0.2231, 0.0083, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2314, 0.0083, 0, 0.66, 0.2, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2479, 0.0083, 0, 0.66,...
[ "__author__ = 'Allan Saddi <allan@saddi.com>'", "__version__ = '$Revision$'", "import sys", "import thread", "import threading", "class ThreadPool(object):\n \"\"\"\n Thread pool that maintains the number of idle threads between\n minSpare and maxSpare inclusive. By default, there is no limit on\...
#
[]
[]
def helper(wsgiServerClass, global_conf, host, port, **local_conf): # I think I can't write a tuple for bindAddress in .ini file host = host or global_conf.get('host', 'localhost') port = port or global_conf.get('port', 4000) if 'socket' in local_conf: local_conf['bindAddress'] = local_conf['so...
[ [ 2, 0, 0.5278, 1, 0, 0.66, 0, 419, 0, 5, 1, 0, 0, 0, 6 ], [ 14, 1, 0.1667, 0.0556, 1, 0.86, 0, 867, 0, 0, 0, 0, 0, 0, 1 ], [ 14, 1, 0.2222, 0.0556, 1, 0.86, 0....
[ "def helper(wsgiServerClass, global_conf, host, port, **local_conf):\n # I think I can't write a tuple for bindAddress in .ini file\n host = host or global_conf.get('host', 'localhost')\n port = port or global_conf.get('port', 4000)\n\n if 'socket' in local_conf:\n local_conf['bindAddress'] = loc...
#
[]
[]
# -*- coding: utf-8 -*- """ jinja2.runtime ~~~~~~~~~~~~~~ Runtime helpers. :copyright: Copyright 2008 by Armin Ronacher. :license: BSD. """ import sys from types import FunctionType, MethodType from itertools import chain, imap from jinja2.utils import Markup, partial, soft_unicode, escape, missin...
[ [ 8, 0, 0.0131, 0.0196, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.024, 0.0022, 0, 0.66, 0.0556, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0261, 0.0022, 0, 0.66,...
[ "\"\"\"\n jinja2.runtime\n ~~~~~~~~~~~~~~\n\n Runtime helpers.\n\n :copyright: Copyright 2008 by Armin Ronacher.\n :license: BSD.", "import sys", "from types import FunctionType, MethodType", "from itertools import chain, imap", "from jinja2.utils import Markup, partial, soft_unicode, escape,...
# -*- coding: utf-8 -*- """ jinja2.compiler ~~~~~~~~~~~~~~~ Compiles nodes into python code. :copyright: Copyright 2008 by Armin Ronacher. :license: BSD. """ from copy import copy from keyword import iskeyword from cStringIO import StringIO from itertools import chain from jinja2 import nodes from...
[ [ 8, 0, 0.0042, 0.0064, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0078, 0.0007, 0, 0.66, 0.0476, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0085, 0.0007, 0, 0.66...
[ "\"\"\"\n jinja2.compiler\n ~~~~~~~~~~~~~~~\n\n Compiles nodes into python code.\n\n :copyright: Copyright 2008 by Armin Ronacher.\n :license: BSD.", "from copy import copy", "from keyword import iskeyword", "from cStringIO import StringIO", "from itertools import chain", "from jinja2 impor...
# -*- coding: utf-8 -*- """ jinja2.nodes ~~~~~~~~~~~~ This module implements additional nodes derived from the ast base node. It also provides some node tree helper functions like `in_lineno` and `get_nodes` used by the parser and translator in order to normalize python and jinja nodes. :...
[ [ 8, 0, 0.0099, 0.016, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0185, 0.0012, 0, 0.66, 0.0137, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0197, 0.0012, 0, 0.66,...
[ "\"\"\"\n jinja2.nodes\n ~~~~~~~~~~~~\n\n This module implements additional nodes derived from the ast base node.\n\n It also provides some node tree helper functions like `in_lineno` and\n `get_nodes` used by the parser and translator in order to normalize", "import operator", "from copy import ...
# -*- coding: utf-8 -*- """ jinja2.tests ~~~~~~~~~~~~ Jinja test functions. Used with the "is" operator. :copyright: 2007 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import re from jinja2.runtime import Undefined number_re = re.compile(r'^-?\d+(\.\d+)?$') regex_type = typ...
[ [ 8, 0, 0.0441, 0.0662, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0809, 0.0074, 0, 0.66, 0.0526, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0882, 0.0074, 0, 0.66...
[ "\"\"\"\n jinja2.tests\n ~~~~~~~~~~~~\n\n Jinja test functions. Used with the \"is\" operator.\n\n :copyright: 2007 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "import re", "from jinja2.runtime import Undefined", "number_re = re.compile(r'^-?\\d+(\\.\\d+)?$')", "regex_...
# -*- coding: utf-8 -*- """ jinja2.debug ~~~~~~~~~~~~ Implements the debug interface for Jinja. This module does some pretty ugly stuff with the Python traceback system in order to achieve tracebacks with correct line numbers, locals and contents. :copyright: Copyright 2008 by Armin Ronacher....
[ [ 8, 0, 0.0366, 0.0576, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0681, 0.0052, 0, 0.66, 0.1429, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0733, 0.0052, 0, 0.66...
[ "\"\"\"\n jinja2.debug\n ~~~~~~~~~~~~\n\n Implements the debug interface for Jinja. This module does some pretty\n ugly stuff with the Python traceback system in order to achieve tracebacks\n with correct line numbers, locals and contents.", "import sys", "from types import CodeType", "def tra...
# -*- coding: utf-8 -*- """ jinja2.optimizer ~~~~~~~~~~~~~~~~ The jinja optimizer is currently trying to constant fold a few expressions and modify the AST in place so that it should be easier to evaluate it. Because the AST does not contain all the scoping information and the compiler has to ...
[ [ 8, 0, 0.1471, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2794, 0.0147, 0, 0.66, 0.25, 436, 0, 1, 0, 0, 436, 0, 0 ], [ 1, 0, 0.2941, 0.0147, 0, 0.66, ...
[ "\"\"\"\n jinja2.optimizer\n ~~~~~~~~~~~~~~~~\n\n The jinja optimizer is currently trying to constant fold a few expressions\n and modify the AST in place so that it should be easier to evaluate it.\n\n Because the AST does not contain all the scoping information and the", "from jinja2 import nodes...
# -*- coding: utf-8 -*- """ jinja.constants ~~~~~~~~~~~~~~~ Various constants. :copyright: 2007 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ #: list of lorem ipsum words used by the lipsum() helper function LOREM_IPSUM_WORDS = u'''\ a ac accumsan ad adipiscing aenean aliqu...
[ [ 8, 0, 0.1875, 0.2812, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.7188, 0.5938, 0, 0.66, 1, 350, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "\"\"\"\n jinja.constants\n ~~~~~~~~~~~~~~~\n\n Various constants.\n\n :copyright: 2007 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "LOREM_IPSUM_WORDS = u'''\\\na ac accumsan ad adipiscing aenean aliquam aliquet amet ante aptent arcu at\nauctor augue bibendum blandit class c...
# -*- coding: utf-8 -*- """ jinja2.sandbox ~~~~~~~~~~~~~~ Adds a sandbox layer to Jinja as it was the default behavior in the old Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the default behavior is easier to use. The behavior can be changed by subclassing the environm...
[ [ 8, 0, 0.032, 0.052, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.06, 0.004, 0, 0.66, 0.0435, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.066, 0.008, 0, 0.66, 0...
[ "\"\"\"\n jinja2.sandbox\n ~~~~~~~~~~~~~~\n\n Adds a sandbox layer to Jinja as it was the default behavior in the old\n Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the\n default behavior is easier to use.", "import operator", "from types import FunctionType, MethodType, ...
# -*- coding: utf-8 -*- """ jinja2.loaders ~~~~~~~~~~~~~~ Jinja loader classes. :copyright: 2008 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from os import path try: from hashlib import sha1 except ImportError: from sha import new as sha1 from jinja2.exceptions impo...
[ [ 8, 0, 0.0217, 0.0326, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0399, 0.0036, 0, 0.66, 0.0833, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 7, 0, 0.0489, 0.0145, 0, 0.66...
[ "\"\"\"\n jinja2.loaders\n ~~~~~~~~~~~~~~\n\n Jinja loader classes.\n\n :copyright: 2008 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "from os import path", "try:\n from hashlib import sha1\nexcept ImportError:\n from sha import new as sha1", " from hashlib impor...
# -*- coding: utf-8 -*- """ jinja2.exceptions ~~~~~~~~~~~~~~~~~ Jinja exceptions. :copyright: 2008 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ class TemplateError(Exception): """Baseclass for all template errors.""" class TemplateNotFound(IOError, LookupError, Templ...
[ [ 8, 0, 0.0811, 0.1216, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.1824, 0.027, 0, 0.66, 0.125, 179, 0, 0, 0, 0, 645, 0, 0 ], [ 8, 1, 0.1892, 0.0135, 1, 0.85, ...
[ "\"\"\"\n jinja2.exceptions\n ~~~~~~~~~~~~~~~~~\n\n Jinja exceptions.\n\n :copyright: 2008 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "class TemplateError(Exception):\n \"\"\"Baseclass for all template errors.\"\"\"", " \"\"\"Baseclass for all template errors.\"\"\"...
# -*- coding: utf-8 -*- """ jinja2 ~~~~~~ Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. Nutshell -------- Here a small example of a Jinja2 template:: {% ...
[ [ 8, 0, 0.2381, 0.4286, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4603, 0.0159, 0, 0.66, 0.1111, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.5079, 0.0794, 0, 0.66,...
[ "\"\"\"\n jinja2\n ~~~~~~\n\n Jinja2 is a template engine written in pure Python. It provides a\n Django inspired non-XML syntax but supports inline expressions and\n an optional sandboxed environment.", "__docformat__ = 'restructuredtext en'", "try:\n __version__ = __import__('pkg_resources'...
# -*- coding: utf-8 -*- """ jinja2.filters ~~~~~~~~~~~~~~ Bundled jinja filters. :copyright: 2008 by Armin Ronacher, Christoph Hack. :license: BSD, see LICENSE for more details. """ import re import math import textwrap from random import choice from operator import itemgetter from itertools impor...
[ [ 8, 0, 0.0088, 0.0131, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0161, 0.0015, 0, 0.66, 0.02, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0175, 0.0015, 0, 0.66, ...
[ "\"\"\"\n jinja2.filters\n ~~~~~~~~~~~~~~\n\n Bundled jinja filters.\n\n :copyright: 2008 by Armin Ronacher, Christoph Hack.\n :license: BSD, see LICENSE for more details.", "import re", "import math", "import textwrap", "from random import choice", "from operator import itemgetter", "fro...
# -*- coding: utf-8 -*- """ jinja2.defaults ~~~~~~~~~~~~~~~ Jinja default filters and tags. :copyright: 2007-2008 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from jinja2.utils import generate_lorem_ipsum # defaults for the parser / lexer BLOCK_START_STRING = '{%' BLOCK_EN...
[ [ 8, 0, 0.1622, 0.2432, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2973, 0.027, 0, 0.66, 0.0714, 677, 0, 1, 0, 0, 677, 0, 0 ], [ 14, 0, 0.4054, 0.027, 0, 0.66,...
[ "\"\"\"\n jinja2.defaults\n ~~~~~~~~~~~~~~~\n\n Jinja default filters and tags.\n\n :copyright: 2007-2008 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "from jinja2.utils import generate_lorem_ipsum", "BLOCK_START_STRING = '{%'", "BLOCK_END_STRING = '%}'", "VARIABLE_STAR...
# -*- coding: utf-8 -*- """ jinja2.parser ~~~~~~~~~~~~~ Implements the template parser. :copyright: 2008 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ from jinja2 import nodes from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError _statement_keywords = fr...
[ [ 8, 0, 0.0078, 0.0116, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0142, 0.0013, 0, 0.66, 0.2, 436, 0, 1, 0, 0, 436, 0, 0 ], [ 1, 0, 0.0155, 0.0013, 0, 0.66, ...
[ "\"\"\"\n jinja2.parser\n ~~~~~~~~~~~~~\n\n Implements the template parser.\n\n :copyright: 2008 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.", "from jinja2 import nodes", "from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError", "_statement_keywords = fr...
# -*- coding: utf-8 -*- """ jinja2.visitor ~~~~~~~~~~~~~~ This module implements a visitor for the nodes. :copyright: Copyright 2008 by Armin Ronacher. :license: BSD. """ from jinja2.nodes import Node class NodeVisitor(object): """Walks the abstract syntax tree and call visitor functions for...
[ [ 8, 0, 0.069, 0.1034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1264, 0.0115, 0, 0.66, 0.3333, 990, 0, 1, 0, 0, 990, 0, 0 ], [ 3, 0, 0.3333, 0.3563, 0, 0.66,...
[ "\"\"\"\n jinja2.visitor\n ~~~~~~~~~~~~~~\n\n This module implements a visitor for the nodes.\n\n :copyright: Copyright 2008 by Armin Ronacher.\n :license: BSD.", "from jinja2.nodes import Node", "class NodeVisitor(object):\n \"\"\"Walks the abstract syntax tree and call visitor functions for ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # you don't neet to do this if you have installed accost in your system python path import sys import os base_path = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, os.path.join(base_path, '..', '..')) # a typical usage to setup your own project from accost im...
[ [ 1, 0, 0.2667, 0.0667, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3333, 0.0667, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.4, 0.0667, 0, 0.66,...
[ "import sys", "import os", "base_path = os.path.abspath(os.path.dirname(__file__))", "sys.path.insert(0, os.path.join(base_path, '..', '..'))", "from accost import WSGIApplication", "from accost.middlewares import *", "import helloworld", "from accost.cli import Command", "application = WSGIApplicat...
# -*- coding: utf-8 -*- from accost.shortcuts import * class Root(Handler): rule = Rule('/') def get(self): return Response('Hello World!')
[ [ 1, 0, 0.25, 0.125, 0, 0.66, 0, 647, 0, 1, 0, 0, 647, 0, 0 ], [ 3, 0, 0.8125, 0.5, 0, 0.66, 1, 566, 0, 1, 0, 0, 284, 0, 2 ], [ 14, 1, 0.75, 0.125, 1, 0.25, 0, ...
[ "from accost.shortcuts import *", "class Root(Handler):\n rule = Rule('/')\n def get(self):\n return Response('Hello World!')", " rule = Rule('/')", " def get(self):\n return Response('Hello World!')", " return Response('Hello World!')" ]
# -*- coding: utf-8 -*- from google.appengine.ext import db class Word(db.Model): word = db.StringProperty() paraphrase = db.StringProperty(multiline=True) sort_id = db.IntegerProperty()
[ [ 1, 0, 0.25, 0.125, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.8125, 0.5, 0, 0.66, 1, 275, 0, 0, 0, 0, 697, 0, 3 ], [ 14, 1, 0.75, 0.125, 1, 0.64, 0, ...
[ "from google.appengine.ext import db", "class Word(db.Model):\n word = db.StringProperty()\n paraphrase = db.StringProperty(multiline=True)\n sort_id = db.IntegerProperty()", " word = db.StringProperty()", " paraphrase = db.StringProperty(multiline=True)", " sort_id = db.IntegerProperty()"...
# -*- coding: utf-8 -*- from www.shortcuts import * from google.appengine.api import users from google.appengine.ext import db import random import os import csv def get_word_ids(): word_ids = cache.get("word_ids") if not word_ids: keys = db.GqlQuery("select __key__ from Word") word_ids = set(...
[ [ 1, 0, 0.0179, 0.0089, 0, 0.66, 0, 188, 0, 1, 0, 0, 188, 0, 0 ], [ 1, 0, 0.0268, 0.0089, 0, 0.66, 0.1111, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.0357, 0.0089, 0, ...
[ "from www.shortcuts import *", "from google.appengine.api import users", "from google.appengine.ext import db", "import random", "import os", "import csv", "def get_word_ids():\n word_ids = cache.get(\"word_ids\")\n if not word_ids:\n keys = db.GqlQuery(\"select __key__ from Word\")\n ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # you don't neet to do this if you have installed accost in your system python path import sys import os base_path = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, os.path.join(base_path, '..', '..')) # a typical usage to setup your own project from werkzeug...
[ [ 1, 0, 0.2353, 0.0588, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2941, 0.0588, 0, 0.66, 0.0909, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "import sys", "import os", "base_path = os.path.abspath(os.path.dirname(__file__))", "sys.path.insert(0, os.path.join(base_path, '..', '..'))", "from werkzeug import DebuggedApplication", "from accost import WSGIApplication", "from accost.middlewares import *", "from accost.cli import Command", "imp...
# -*- coding: utf-8 -*- from ebank.shortcuts import * from ebank.alipay import AlipayService class Index(Handler): rule = Rule('/alipay/') def get(self): alipay = AlipayService() tmpl = env.get_template('alipay.html') return Response(tmpl.render( alipay = alipay, ))...
[ [ 1, 0, 0.08, 0.04, 0, 0.66, 0, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.12, 0.04, 0, 0.66, 0.25, 148, 0, 1, 0, 0, 148, 0, 0 ], [ 3, 0, 0.38, 0.32, 0, 0.66, 0.5,...
[ "from ebank.shortcuts import *", "from ebank.alipay import AlipayService", "class Index(Handler):\n rule = Rule('/alipay/')\n def get(self):\n alipay = AlipayService()\n tmpl = env.get_template('alipay.html')\n return Response(tmpl.render(\n alipay = alipay,\n ))", ...
# -*- coding: utf-8 -*- import hashlib from datetime import datetime from ebank.shortcuts import * class Send(Handler): rule = Rule('/') def get(self): tmpl = env.get_template('ChinaBank.html') return Response(tmpl.render()) def post(self): # 商户号,这里为测试商户号1001,替换为自己的商户号(老版商户号为4位或5位...
[ [ 1, 0, 0.0198, 0.0099, 0, 0.66, 0, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.0297, 0.0099, 0, 0.66, 0.2, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0396, 0.0099, 0, 0.6...
[ "import hashlib", "from datetime import datetime", "from ebank.shortcuts import *", "class Send(Handler):\n rule = Rule('/')\n def get(self):\n tmpl = env.get_template('ChinaBank.html')\n return Response(tmpl.render())\n\n def post(self):\n # 商户号,这里为测试商户号1001,替换为自己的商户号(老版商户号为4位或5...
# -*- coding: utf-8 -*- from ebank.shortcuts import * import os class Static(StaticHandler): rule = Rule('/static/<path:path>') static_dir = os.path.join(base_path, 'static')
[ [ 1, 0, 0.25, 0.125, 0, 0.66, 0, 213, 0, 1, 0, 0, 213, 0, 0 ], [ 1, 0, 0.375, 0.125, 0, 0.66, 0.5, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 3, 0, 0.875, 0.375, 0, 0.66, ...
[ "from ebank.shortcuts import *", "import os", "class Static(StaticHandler):\n rule = Rule('/static/<path:path>')\n static_dir = os.path.join(base_path, 'static')", " rule = Rule('/static/<path:path>')", " static_dir = os.path.join(base_path, 'static')" ]
# -*- coding: utf-8 -*- from accost.shortcuts import * from ebank import *
[ [ 1, 0, 0.6667, 0.3333, 0, 0.66, 0, 647, 0, 1, 0, 0, 647, 0, 0 ], [ 1, 0, 1, 0.3333, 0, 0.66, 1, 432, 0, 1, 0, 0, 432, 0, 0 ] ]
[ "from accost.shortcuts import *", "from ebank import *" ]
# -*- coding: utf-8 -*- import urllib import hashlib class AlipayService(object): params = sorted([ 'service', 'partner', 'subject', 'body', 'out_trade_no', 'price', 'show_url', 'quantity', 'sender_email', 'return_url', 'notify_url', '_input_charset', ]) paygateway = "https://www.al...
[ [ 1, 0, 0.05, 0.025, 0, 0.66, 0, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.075, 0.025, 0, 0.66, 0.5, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 3, 0, 0.575, 0.875, 0, 0.66, ...
[ "import urllib", "import hashlib", "class AlipayService(object):\n params = sorted([ \n 'service', 'partner', 'subject', 'body', 'out_trade_no', 'price', 'show_url',\n 'quantity', 'sender_email', 'return_url', 'notify_url', '_input_charset',\n ])\n paygateway = \"https://www.alipay....
# -*- coding: utf-8 -*- debug = True from os.path import abspath, dirname, join base_path = abspath(dirname(__file__)) from jinja2 import Environment, PackageLoader env = Environment(loader=PackageLoader('ebank', 'templates'), auto_reload=debug)
[ [ 14, 0, 0.25, 0.125, 0, 0.66, 0, 924, 1, 0, 0, 0, 0, 4, 0 ], [ 1, 0, 0.5, 0.125, 0, 0.66, 0.25, 79, 0, 3, 0, 0, 79, 0, 0 ], [ 14, 0, 0.625, 0.125, 0, 0.66, 0.5...
[ "debug = True", "from os.path import abspath, dirname, join", "base_path = abspath(dirname(__file__))", "from jinja2 import Environment, PackageLoader", "env = Environment(loader=PackageLoader('ebank', 'templates'), auto_reload=debug)" ]
# -*- coding: utf-8 -*- __abstract__ = 'Test tagzilla' __copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license for terms by running: glu license' __revision__ = '$Id$' import unittest import...
[ [ 14, 0, 0.0057, 0.0019, 0, 0.66, 0, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0077, 0.0019, 0, 0.66, 0.0588, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0096, 0.0019, 0, 0...
[ "__abstract__ = 'Test tagzilla'", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for terms by running: glu license'", "__revision__ = '$Id$'", "import unittest", "im...
# -*- coding: utf-8 -*- ''' File: Authors: Kevin Jacobs (jacobs@bioinformed.com) Created: February 27, 2006 Abstract: Compatibility: Python 2.5 and above Requires: No external dependencies, yet... Version: 0.99 Revision: $Id$ ''' __copyright__ = 'Copyright (c) 2008, BioInformed LLC a...
[ [ 8, 0, 0.0667, 0.1133, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1333, 0.0067, 0, 0.66, 0.0588, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.14, 0.0067, 0, 0.66, ...
[ "'''\nFile:\n\nAuthors: Kevin Jacobs (jacobs@bioinformed.com)\n\nCreated: February 27, 2006\n\nAbstract:", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for ter...
# -*- coding: utf-8 -*- ''' File: clust.py Authors: Kevin Jacobs (jacobske@bioinformed.com) Created: Abstract: Multiple sequence alignment using ClustalW Requires: Python 2.5, glu Revision: $Id$ ''' __copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Healt...
[ [ 8, 0, 0.129, 0.2097, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2581, 0.0161, 0, 0.66, 0.125, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2742, 0.0161, 0, 0.66, ...
[ "'''\nFile: clust.py\n\nAuthors: Kevin Jacobs (jacobske@bioinformed.com)\n\nCreated:\n\nAbstract: Multiple sequence alignment using ClustalW", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'",...
# -*- coding: utf-8 -*- ''' File: get_seq.py Authors: Kevin Jacobs (jacobs@bioinformed.com) Created: Wed May 17 08:51:57 EDT 2006 Abstract: Compatibility: Python 2.5 and above Requires: No external dependencies, yet... Revision: $Id$ ''' __program__ = 'get_seq' __authors__ = ['...
[ [ 8, 0, 0.0581, 0.0968, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1161, 0.0065, 0, 0.66, 0.0476, 533, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1226, 0.0065, 0, 0.66...
[ "'''\nFile: get_seq.py\n\nAuthors: Kevin Jacobs (jacobs@bioinformed.com)\n\nCreated: Wed May 17 08:51:57 EDT 2006\n\nAbstract:", "__program__ = 'get_seq'", "__authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)']", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Dep...
# -*- coding: utf-8 -*- __gluindex__ = False __abstract__ = 'Fit two-SNP generalized logistic genotype-phenotype association models' __copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license fo...
[ [ 14, 0, 0.0131, 0.0044, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0175, 0.0044, 0, 0.66, 0.0625, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0218, 0.0044, 0, 0....
[ "__gluindex__ = False", "__abstract__ = 'Fit two-SNP generalized logistic genotype-phenotype association models'", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for ter...
# -*- coding: utf-8 -*- ''' File: hapmaptoplink.py Authors: Created: Abstract: Requires: Python 2.5, glu Revision: $Id$ ''' __copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See G...
[ [ 8, 0, 0.0678, 0.1102, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1356, 0.0085, 0, 0.66, 0.0833, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1441, 0.0085, 0, 0.66...
[ "'''\nFile: hapmaptoplink.py\n\nAuthors:\n\nCreated:\n\nAbstract:", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for terms by running: glu license'", "from iter...
# -*- coding: utf-8 -*- ''' File: lbd2sdat.py Authors: Brian Staats (staatsb@mail.nih.gov) Kevin Jacobs (jacobske@mail.nih.gov) Created: 2006-06-15 Abstract: Parses an Illumina Locus by DNA report file and outputs a genotype matrix or triple stream. Requires: ...
[ [ 8, 0, 0.375, 0.625, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.75, 0.0417, 0, 0.66, 0.25, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7917, 0.0417, 0, 0.66, ...
[ "'''\nFile: lbd2sdat.py\n\nAuthors: Brian Staats (staatsb@mail.nih.gov)\n Kevin Jacobs (jacobske@mail.nih.gov)\n\nCreated: 2006-06-15", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-1...
''' Author: Vincent Nijs (+ ?) Email: v-nijs at kellogg.northwestern.edu Last Modified: Mon Jan 15 17:56:17 CST 2007 Dependencies: See import statement at the top of this file ''' from __future__ import division import time from itertools import izip from scipy import c_, ones, dot, stats, diff...
[ [ 8, 0, 0.0234, 0.0421, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0514, 0.0047, 0, 0.66, 0.1111, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0607, 0.0047, 0, 0.66...
[ "'''\nAuthor: Vincent Nijs (+ ?)\n\nEmail: v-nijs at kellogg.northwestern.edu\n\nLast Modified: Mon Jan 15 17:56:17 CST 2007\n\nDependencies: See import statement at the top of this file", "from __future__ import division", "import time", "from itertools import izip", "from scipy import c_...
# -*- coding: utf-8 -*- ''' File: unscramble.py Authors: Kevin Jacobs (jacobske@mail.nih.gov) Created: Wed Sep 27 10:25:42 EDT 2006 Abstract: Unscramble either locus identifier mapping between two genotype matricies by detecting least discordant matches between...
[ [ 8, 0, 0.1075, 0.1869, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.215, 0.0093, 0, 0.66, 0.0769, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2243, 0.0093, 0, 0.66,...
[ "'''\nFile: unscramble.py\n\nAuthors: Kevin Jacobs (jacobske@mail.nih.gov)\n\nCreated: Wed Sep 27 10:25:42 EDT 2006\n\nAbstract: Unscramble either locus identifier mapping between two", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Servic...
# -*- coding: utf-8 -*- ''' File: unscramble.py Authors: Kevin Jacobs (jacobske@mail.nih.gov) Created: Wed Sep 27 10:25:42 EDT 2006 Abstract: Unscramble either locus identifier mapping between two genotype matricies by detecting least discordant matches between...
[ [ 8, 0, 0.1009, 0.1743, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2018, 0.0092, 0, 0.66, 0.0833, 200, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.211, 0.0092, 0, 0.66,...
[ "'''\nFile: unscramble.py\n\nAuthors: Kevin Jacobs (jacobske@mail.nih.gov)\n\nCreated: Wed Sep 27 10:25:42 EDT 2006\n\nAbstract: Unscramble either locus identifier mapping between two", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Servic...
# -*- coding: utf-8 -*- __gluindex__ = False __abstract__ = 'Fit two-SNP generalized logistic genotype-phenotype association models' __copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license fo...
[ [ 14, 0, 0.0124, 0.0041, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0166, 0.0041, 0, 0.66, 0.0714, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0207, 0.0041, 0, 0....
[ "__gluindex__ = False", "__abstract__ = 'Fit two-SNP generalized logistic genotype-phenotype association models'", "__copyright__ = 'Copyright (c) 2008, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for ter...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # To use: # python setup.py install # import os import sys try: try: import setuptools except ImportError: import distribute_setup distribute_setup.use_setuptools() except ImportError: import ez_setup ez_setup.use_setuptools() # minimum ver...
[ [ 1, 0, 0.0537, 0.0067, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0604, 0.0067, 0, 0.66, 0.0476, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 7, 0, 0.1074, 0.0738, 0, ...
[ "import os", "import sys", "try:\n try:\n import setuptools\n\n except ImportError:\n import distribute_setup\n distribute_setup.use_setuptools()", " try:\n import setuptools\n\n except ImportError:\n import distribute_setup\n distribute_setup.use_setuptools()", " import setuptools"...
# -*- coding: utf-8 -*- """ Sphinx - Python documentation webserver ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: 2007 by Georg Brandl. :license: Python license. """ import sys if __name__ == '__main__': from sphinx.web import main sys.exit(main(sys.argv))
[ [ 8, 0, 0.3571, 0.5, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.7143, 0.0714, 0, 0.66, 0.5, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.9286, 0.2143, 0, 0.66, ...
[ "\"\"\"\n Sphinx - Python documentation webserver\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n :copyright: 2007 by Georg Brandl.\n :license: Python license.\n\"\"\"", "import sys", "if __name__ == '__main__':\n from sphinx.web import main\n sys.exit(main(sys.argv))", " from sphinx.web im...
# -*- coding: utf-8 -*- """ Sphinx - Python documentation toolchain ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: 2007 by Georg Brandl. :license: Python license. """ import sys if __name__ == '__main__': if sys.version_info[:3] < (2, 5, 1): print >>sys.stderr, """\ Error: Sphinx ne...
[ [ 8, 0, 0.2083, 0.2917, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4167, 0.0417, 0, 0.66, 0.5, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.75, 0.5417, 0, 0.66, ...
[ "\"\"\"\n Sphinx - Python documentation toolchain\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n :copyright: 2007 by Georg Brandl.\n :license: Python license.\n\"\"\"", "import sys", "if __name__ == '__main__':\n\n if sys.version_info[:3] < (2, 5, 1):\n print >>sys.stderr, \"\"\"\\\nError: ...
# -*- coding: utf-8 -*- # # GLU documentation build configuration file, created by # sphinx-quickstart on Sun Jul 20 19:51:43 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleable ...
[ [ 1, 0, 0.0761, 0.0054, 0, 0.66, 0, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 14, 0, 0.1413, 0.0054, 0, 0.66, 0.0526, 866, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.1576, 0.0054, 0, ...
[ "import sys, os", "extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.pngmath']", "templates_path = ['templates']", "source_suffix = '.rst'", "master_doc = 'contents'", "project = 'GLU'", "copyright = '2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by...
# -*- coding: utf-8 -*- from __future__ import with_statement __gluindex__ = True __abstract__ = 'Split a genotype file into multiple pieces based on sample and locus groups' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N0...
[ [ 1, 0, 0.0064, 0.0021, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0107, 0.0021, 0, 0.66, 0.0435, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0128, 0.0021, 0, 0...
[ "from __future__ import with_statement", "__gluindex__ = True", "__abstract__ = 'Split a genotype file into multiple pieces based on sample and locus groups'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-1...
# -*- coding: utf-8 -*- from __future__ import division __gluindex__ = True __abstract__ = 'Fit single-SNP linear genotype-phenotype association models' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license...
[ [ 1, 0, 0.0099, 0.0033, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0166, 0.0033, 0, 0.66, 0.0588, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0199, 0.0033, 0, 0...
[ "from __future__ import division", "__gluindex__ = True", "__abstract__ = 'Fit single-SNP linear genotype-phenotype association models'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license_...
# -*- coding: utf-8 -*- from __future__ import division __gluindex__ = True __abstract__ = 'Fit single-SNP generalized logistic genotype-phenotype association models' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-124...
[ [ 1, 0, 0.0082, 0.0027, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0137, 0.0027, 0, 0.66, 0.05, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0164, 0.0027, 0, 0.6...
[ "from __future__ import division", "__gluindex__ = True", "__abstract__ = 'Fit single-SNP generalized logistic genotype-phenotype association models'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'",...
# -*- coding: utf-8 -*- __gluindex__ = True __abstract__ = 'Genotype-phenotype association testing' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license for terms by running: glu lice...
[ [ 14, 0, 0.4286, 0.1429, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.5714, 0.1429, 0, 0.66, 0.25, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7143, 0.1429, 0, 0.66...
[ "__gluindex__ = True", "__abstract__ = 'Genotype-phenotype association testing'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for terms by running: glu license'"...
# -*- coding: utf-8 -*- __gluindex__ = True __abstract__ = 'Performs various transformation on a genotype files' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license for terms by runn...
[ [ 14, 0, 0.0492, 0.0164, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0656, 0.0164, 0, 0.66, 0.0909, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.082, 0.0164, 0, 0.6...
[ "__gluindex__ = True", "__abstract__ = 'Performs various transformation on a genotype files'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for terms by running: ...
# -*- coding: utf-8 -*- __gluindex__ = True __abstract__ = 'Generate a matrix of pairwise LD values' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license for terms by running: glu lic...
[ [ 14, 0, 0.0297, 0.0099, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0396, 0.0099, 0, 0.66, 0.0667, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0495, 0.0099, 0, 0....
[ "__gluindex__ = True", "__abstract__ = 'Generate a matrix of pairwise LD values'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for terms by running: glu license'...
# -*- coding: utf-8 -*- __gluindex__ = True __program__ = 'TagZilla binsum' __authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)'] __abstract__ = 'Generate summaries from multiple TagZilla output files' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services....
[ [ 14, 0, 0.0263, 0.0088, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0351, 0.0088, 0, 0.66, 0.0769, 533, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0439, 0.0088, 0, 0....
[ "__gluindex__ = True", "__program__ = 'TagZilla binsum'", "__authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)']", "__abstract__ = 'Generate summaries from multiple TagZilla output files'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services....
# -*- coding: utf-8 -*- __gluindex__ = True __program__ = 'TagZilla LD filter' __authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)'] __abstract__ = 'Sequentially filter a list of SNPs based on an LD threshold' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human S...
[ [ 14, 0, 0.0133, 0.0044, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0177, 0.0044, 0, 0.66, 0.0625, 533, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0221, 0.0044, 0, 0....
[ "__gluindex__ = True", "__program__ = 'TagZilla LD filter'", "__authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)']", "__abstract__ = 'Sequentially filter a list of SNPs based on an LD threshold'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human S...
# -*- coding: utf-8 -*- __gluindex__ = True __program__ = 'TagZilla coverage' __authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)'] __abstract__ = 'Evaluate maximum coverage of a set of tags' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by...
[ [ 14, 0, 0.0227, 0.0076, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0303, 0.0076, 0, 0.66, 0.0769, 533, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0379, 0.0076, 0, 0....
[ "__gluindex__ = True", "__program__ = 'TagZilla coverage'", "__authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)']", "__abstract__ = 'Evaluate maximum coverage of a set of tags'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by...
# -*- coding: utf-8 -*- __program__ = 'TagZilla' __gluindex__ = True __authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)', 'Zhaoming Wang (wangzha@mail.nih.gov)'] __abstract__ = 'Robust and fast SNP tagging program' __descr__ = '''\ A robust and fast SNP binning and tagging program that ta...
[ [ 14, 0, 0.0014, 0.0005, 0, 0.66, 0, 533, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0019, 0.0005, 0, 0.66, 0.0102, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0026, 0.0009, 0, 0....
[ "__program__ = 'TagZilla'", "__gluindex__ = True", "__authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)',\n 'Zhaoming Wang (wangzha@mail.nih.gov)']", "__abstract__ = 'Robust and fast SNP tagging program'", "__descr__ = '''\\\nA robust and fast SNP binning and tagging program that...
# -*- coding: utf-8 -*- __gluindex__ = True __authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)'] __abstract__ = 'Find surrogates SNPs' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GL...
[ [ 14, 0, 0.0163, 0.0054, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0217, 0.0054, 0, 0.66, 0.0714, 115, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.0272, 0.0054, 0, 0....
[ "__gluindex__ = True", "__authors__ = ['Kevin Jacobs (jacobs@bioinformed.com)']", "__abstract__ = 'Find surrogates SNPs'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GL...
# -*- coding: utf-8 -*- __gluindex__ = True __index__ = 'LD estimation and tagging' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license for terms by running: glu license' __revisi...
[ [ 14, 0, 0.4286, 0.1429, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.5714, 0.1429, 0, 0.66, 0.25, 507, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.7143, 0.1429, 0, 0.66...
[ "__gluindex__ = True", "__index__ = 'LD estimation and tagging'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for terms by running: glu license'", "__revisi...
# -*- coding: utf-8 -*- from __future__ import division __gluindex__ = True __abstract__ = 'Convert a GDAT file into series of PennCNV input files' __copyright__ = 'Copyright (c) 2010, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'Se...
[ [ 1, 0, 0.0698, 0.0233, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.1163, 0.0233, 0, 0.66, 0.0833, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.1395, 0.0233, 0, 0...
[ "from __future__ import division", "__gluindex__ = True", "__abstract__ = 'Convert a GDAT file into series of PennCNV input files'", "__copyright__ = 'Copyright (c) 2010, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See...
# -*- coding: utf-8 -*- __gluindex__ = True __abstract__ = 'Dump the contents of an Illumina BPM Manifest file to a text file' __copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license for...
[ [ 14, 0, 0.075, 0.025, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.1, 0.025, 0, 0.66, 0.1, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.125, 0.025, 0, 0.66, 0.2...
[ "__gluindex__ = True", "__abstract__ = 'Dump the contents of an Illumina BPM Manifest file to a text file'", "__copyright__ = 'Copyright (c) 2007-2009, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for term...
# -*- coding: utf-8 -*- __gluindex__ = True __abstract__ = 'Convert GLU GDAT file into any other supported GLU genotype data format' __copyright__ = 'Copyright (c) 2010, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See GLU license fo...
[ [ 14, 0, 0.0545, 0.0182, 0, 0.66, 0, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0727, 0.0182, 0, 0.66, 0.125, 929, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0909, 0.0182, 0, 0.6...
[ "__gluindex__ = True", "__abstract__ = 'Convert GLU GDAT file into any other supported GLU genotype data format'", "__copyright__ = 'Copyright (c) 2010, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GLU license for ter...
# -*- coding: utf-8 -*- from __future__ import division __gluindex__ = True __abstract__ = 'Convert a GDAT file into series of GADA input files' __copyright__ = 'Copyright (c) 2010, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.' __license__ = 'See G...
[ [ 1, 0, 0.028, 0.0093, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 14, 0, 0.0467, 0.0093, 0, 0.66, 0.0625, 34, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0561, 0.0093, 0, 0....
[ "from __future__ import division", "__gluindex__ = True", "__abstract__ = 'Convert a GDAT file into series of GADA input files'", "__copyright__ = 'Copyright (c) 2010, BioInformed LLC and the U.S. Department of Health & Human Services. Funded by NCI under Contract N01-CO-12400.'", "__license__ = 'See GL...