code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Founda... | [
[
1,
0,
0.1513,
0.0066,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1579,
0.0066,
0,
0.66,
0.0909,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1645,
0.0066,
0,
... | [
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.api import memcache",
"from google.appengine.ext.webapp import template",
"from handlers.BaseHandler import *",
"from utilities.AppProperties import AppProperties",
"UPDATER_VERSION = \"0.8\"",
"de... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General... | [
[
1,
0,
0.2243,
0.0093,
0,
0.66,
0,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.2336,
0.0093,
0,
0.66,
0.25,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.2523,
0.0093,
0,
0.... | [
"import model",
"import logging",
"from google.appengine.api import memcache",
"from google.appengine.ext import webapp",
"class ImageDisplayer(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tcached = memcache.get(self.request.path)\n\t\t\n\t\tparams = self.request.path.split('/')\n\t\tif params[2] == 'use... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com>
#
# This file is part of "debug_mode_on".
#
# "debug_mode_on" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free So... | [
[
1,
0,
0.1465,
0.0064,
0,
0.66,
0,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.1529,
0.0064,
0,
0.66,
0.3333,
386,
0,
1,
0,
0,
386,
0,
0
],
[
1,
0,
0.1656,
0.0064,
0,
... | [
"import model",
"import simplejson",
"from google.appengine.ext import webapp",
"class TaskQueue(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tself.response.headers['Content-Type'] = 'text/plain;charset=utf-8'\n\t\t\n\t\ttask = model.Task.all().order('-priority').get()\n\t\t\n\t\tif not task:",
"\tdef ge... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.697,
0.0303,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.8788,
0.2727,
0,
0.66,
1,
958,
0,
1,
0,
0,
94,
0,
3
],
[
2,
1,
0.9091,
0.2121,
1,
0.25,
... | [
"from handlers.BaseHandler import *",
"class Dispatcher(BaseHandler):\n\n\tdef execute(self):\n\t\treferer = self.request.path.split('/', 1)[1]\n#\t\tif referer.startswith('module'):\n#\t\t\treferer = self.request.path.split('/',2)[2]\n\t\tself.add_tag_cloud()\n\t\tself.values['tab'] = self.request.path",
"\tde... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.697,
0.0303,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.8788,
0.2727,
0,
0.66,
1,
116,
0,
1,
0,
0,
94,
0,
3
],
[
2,
1,
0.9091,
0.2121,
1,
0.03,
... | [
"from handlers.BaseHandler import *",
"class AuthenticatedHandler(BaseHandler):\n\n\tdef pre_execute(self):\n\t\tuser = self.get_current_user()\n\t\t#user = self.values['user']\n\t\tif not user:\n\t\t\tself.redirect(self.values['login'])\n\t\t\treturn",
"\tdef pre_execute(self):\n\t\tuser = self.get_current_use... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com>
#
# This file is part of "debug_mode_on".
#
# "debug_mode_on" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# t... | [
[
1,
0,
0.7931,
0.0345,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.931,
0.1724,
0,
0.66,
1,
794,
0,
1,
0,
0,
94,
0,
2
],
[
2,
1,
0.9655,
0.1034,
1,
0.77,
... | [
"from handlers.BaseHandler import *",
"class Static(BaseHandler):\n\n\tdef execute(self):\n\t\ttemplate = self.request.path.split('/', 2)[2]\n\t\tself.render('templates/static/%s' % template)",
"\tdef execute(self):\n\t\ttemplate = self.request.path.split('/', 2)[2]\n\t\tself.render('templates/static/%s' % temp... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com>
# (C) Copyright 2008 Ignacio Andreu <plunchete at gmail dot com>
# (C) Copyright 2008 Néstor Salceda <nestor.salceda at gmail dot com>
#
# This file is part of "debug_mode_on".
#
# "debug_mode_on" is free soft... | [
[
1,
0,
0.4717,
0.0189,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.7547,
0.5094,
0,
0.66,
1,
123,
0,
1,
0,
0,
94,
0,
16
],
[
2,
1,
0.7736,
0.4717,
1,
0.28,... | [
"from handlers.BaseHandler import *",
"class Search(BaseHandler):\n\n\tdef execute(self):\n\t\tq = self.get_param('q')\n\t\ttyp = self.get_param('t')\n\n\t\tif typ == 'articles':\n\t\t\tquery = model.Article.all().filter('draft', False).filter('deletion_date', None).search(q)",
"\tdef execute(self):\n\t\tq = se... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.1716,
0.0075,
0,
0.66,
0,
49,
0,
1,
0,
0,
49,
0,
0
],
[
1,
0,
0.209,
0.0075,
0,
0.66,
0.0119,
188,
0,
1,
0,
0,
188,
0,
0
],
[
1,
0,
0.2164,
0.0075,
0,
0.6... | [
"from handlers.MainPage import *",
"from handlers.module.admin.Admin import *",
"from handlers.module.admin.AdminCategories import *",
"from handlers.module.admin.AdminCategoryEdit import *",
"from handlers.module.admin.AdminApplication import *",
"from handlers.module.admin.CommunityAddRelated import *",... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gener... | [
[
1,
0,
0.0632,
0.0026,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0658,
0.0026,
0,
0.66,
0.2,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0684,
0.0026,
0,
0.6... | [
"from google.appengine.ext import db",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp import template",
"from handlers.BaseHandler import *",
"class Initialization(BaseHandler):\n\n\tdef get(self):\n\t\tself.response.headers['Content-Type'] = 'text/plain'\n\t\t\n\t\tapp = model... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gener... | [
[
1,
0,
0.48,
0.02,
0,
0.66,
0,
437,
0,
1,
0,
0,
437,
0,
0
],
[
3,
0,
0.75,
0.48,
0,
0.66,
1,
516,
0,
4,
0,
0,
94,
0,
16
],
[
2,
1,
0.66,
0.22,
1,
0.63,
0,
... | [
"from handlers.BaseHandler import *",
"class MainPage(BaseHandler):\n\n\tdef execute(self):\n\t\tself.values['tab'] = '/'\n\t\t# memcache.delete('index_articles')\n\t\t# memcache.delete('index_communities')\n\t\t# memcache.delete('index_threads')\n\t\tself.values['articles'] = self.cache('index_articles', self.ge... |
# -*- coding: utf-8 -*-
"""
jinja2.runtime
~~~~~~~~~~~~~~
Runtime helpers.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
import sys
from itertools import chain, imap
from jinja2.nodes import EvalContext, _context_function_types
from jinja2.utils import Markup, partial, soft_unicode, e... | [
[
8,
0,
0.011,
0.0165,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0202,
0.0018,
0,
0.66,
0.0476,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0221,
0.0018,
0,
0.66,... | [
"\"\"\"\n jinja2.runtime\n ~~~~~~~~~~~~~~\n\n Runtime helpers.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD.",
"import sys",
"from itertools import chain, imap",
"from jinja2.nodes import EvalContext, _context_function_types",
"from jinja2.utils import Markup, partial, soft_uni... |
# -*- 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.0089,
0.0144,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0166,
0.0011,
0,
0.66,
0.0128,
616,
0,
1,
0,
0,
616,
0,
0
],
[
1,
0,
0.0178,
0.0011,
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 itertools im... |
# -*- coding: utf-8 -*-
"""
jinja2.compiler
~~~~~~~~~~~~~~~
Compiles nodes into python code.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
from cStringIO import StringIO
from itertools import chain
from copy import deepcopy
from jinja2 import nodes
from j... | [
[
8,
0,
0.0037,
0.0055,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0067,
0.0006,
0,
0.66,
0.0417,
764,
0,
1,
0,
0,
764,
0,
0
],
[
1,
0,
0.0073,
0.0006,
0,
0.66... | [
"\"\"\"\n jinja2.compiler\n ~~~~~~~~~~~~~~~\n\n Compiles nodes into python code.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"from cStringIO import StringIO",
"from itertools import chain",
"from copy import deepcopy",
"from jinja2 import nodes... |
# -*- 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 -*-
"""
jinja2.visitor
~~~~~~~~~~~~~~
This module implements a visitor for the nodes.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from jinja2.nodes import Node
class NodeVisitor(object):
"""Walks the abstract syntax tree and call visitor functions for every... | [
[
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: (c) 2010 by the Jinja Team.\n :license: BSD.",
"from jinja2.nodes import Node",
"class NodeVisitor(object):\n \"\"\"Walks the abstract syntax tree and call visitor functions for every\... |
# -*- coding: utf-8 -*-
"""
jinja2.parser
~~~~~~~~~~~~~
Implements the template parser.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
from jinja2 import nodes
from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError
from jinja2.utils impo... | [
[
8,
0,
0.0067,
0.01,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0123,
0.0011,
0,
0.66,
0.1429,
436,
0,
1,
0,
0,
436,
0,
0
],
[
1,
0,
0.0134,
0.0011,
0,
0.66,
... | [
"\"\"\"\n jinja2.parser\n ~~~~~~~~~~~~~\n\n Implements the template parser.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"from jinja2 import nodes",
"from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError",
"from jinja2.utils im... |
# -*- coding: utf-8 -*-
"""
jinja2.loaders
~~~~~~~~~~~~~~
Jinja loader classes.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
import weakref
from types import ModuleType
from os import path
try:
from hashlib import sha1
except Imp... | [
[
8,
0,
0.0134,
0.02,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0245,
0.0022,
0,
0.66,
0.0556,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0267,
0.0022,
0,
0.66,
... | [
"\"\"\"\n jinja2.loaders\n ~~~~~~~~~~~~~~\n\n Jinja loader classes.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"import os",
"import sys",
"import weakref",
"from types import ModuleType",
"from os import path",
"try:\n from hashlib impo... |
# -*- coding: utf-8 -*-
"""
jinja2.tests
~~~~~~~~~~~~
Jinja test functions. Used with the "is" operator.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
from jinja2.runtime import Undefined
# nose, nothing here to test
__test__ = False
number_r... | [
[
8,
0,
0.0411,
0.0616,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0753,
0.0068,
0,
0.66,
0.0476,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0822,
0.0068,
0,
0.66... | [
"\"\"\"\n jinja2.tests\n ~~~~~~~~~~~~\n\n Jinja test functions. Used with the \"is\" operator.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"import re",
"from jinja2.runtime import Undefined",
"__test__ = False",
"number_re = re.compile(r'^-?\\d... |
# -*- coding: utf-8 -*-
"""
jinja2.filters
~~~~~~~~~~~~~~
Bundled jinja filters.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
import math
from random import choice
from operator import itemgetter
from itertools import imap, groupby
from jinja2.... | [
[
8,
0,
0.0084,
0.0126,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0153,
0.0014,
0,
0.66,
0.02,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0167,
0.0014,
0,
0.66,
... | [
"\"\"\"\n jinja2.filters\n ~~~~~~~~~~~~~~\n\n Bundled jinja filters.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"import re",
"import math",
"from random import choice",
"from operator import itemgetter",
"from itertools import imap, groupby"... |
import gc
import unittest
from jinja2._markupsafe import Markup, escape, escape_silent
class MarkupTestCase(unittest.TestCase):
def test_markup_operations(self):
# adding two strings should escape the unsafe one
unsafe = '<script type="application/x-some-script">alert("foo");</script>'
sa... | [
[
1,
0,
0.0125,
0.0125,
0,
0.66,
0,
92,
0,
1,
0,
0,
92,
0,
0
],
[
1,
0,
0.025,
0.0125,
0,
0.66,
0.1667,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0375,
0.0125,
0,
0.66,... | [
"import gc",
"import unittest",
"from jinja2._markupsafe import Markup, escape, escape_silent",
"class MarkupTestCase(unittest.TestCase):\n\n def test_markup_operations(self):\n # adding two strings should escape the unsafe one\n unsafe = '<script type=\"application/x-some-script\">alert(\"fo... |
# -*- coding: utf-8 -*-
"""
jinja2._markupsafe._bundle
~~~~~~~~~~~~~~~~~~~~~~~~~~
This script pulls in markupsafe from a source folder and
bundles it with Jinja2. It does not pull in the speedups
module though.
:copyright: Copyright 2010 by the Jinja team, see AUTHORS.
:license: BSD, see ... | [
[
8,
0,
0.1429,
0.2245,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2653,
0.0204,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2857,
0.0204,
0,
0.66... | [
"\"\"\"\n jinja2._markupsafe._bundle\n ~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This script pulls in markupsafe from a source folder and\n bundles it with Jinja2. It does not pull in the speedups\n module though.",
"import sys",
"import os",
"import re",
"def rewrite_imports(lines):\n for idx, line... |
# -*- coding: utf-8 -*-
"""
markupsafe._native
~~~~~~~~~~~~~~~~~~
Native Python implementation the C module is not compiled.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
from jinja2._markupsafe import Markup
def escape(s):
"""Convert the characters... | [
[
8,
0,
0.1333,
0.2,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2444,
0.0222,
0,
0.66,
0.25,
409,
0,
1,
0,
0,
409,
0,
0
],
[
2,
0,
0.4556,
0.3111,
0,
0.66,
... | [
"\"\"\"\n markupsafe._native\n ~~~~~~~~~~~~~~~~~~\n\n Native Python implementation the C module is not compiled.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.",
"from jinja2._markupsafe import Markup",
"def escape(s):\n \"\"\"Convert the characters ... |
# -*- coding: utf-8 -*-
"""
markupsafe
~~~~~~~~~~
Implements a Markup string.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import re
from itertools import imap
__all__ = ['Markup', 'soft_unicode', 'escape', 'escape_silent']
_striptags_re = re.compile... | [
[
8,
0,
0.0267,
0.04,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0489,
0.0044,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0533,
0.0044,
0,
0.66,
... | [
"\"\"\"\n markupsafe\n ~~~~~~~~~~\n\n Implements a Markup string.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.",
"import re",
"from itertools import imap",
"__all__ = ['Markup', 'soft_unicode', 'escape', 'escape_silent']",
"_striptags_re = re.comp... |
# -*- coding: utf-8 -*-
"""
markupsafe._constants
~~~~~~~~~~~~~~~~~~~~~
Highlevel implementation of the Markup string.
:copyright: (c) 2010 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
HTML_ENTITIES = {
'AElig': 198,
'Aacute': 193,
'Acirc': 194,
'Agrave': 1... | [
[
8,
0,
0.0225,
0.0337,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5243,
0.9551,
0,
0.66,
1,
955,
0,
0,
0,
0,
0,
6,
0
]
] | [
"\"\"\"\n markupsafe._constants\n ~~~~~~~~~~~~~~~~~~~~~\n\n Highlevel implementation of the Markup string.\n\n :copyright: (c) 2010 by Armin Ronacher.\n :license: BSD, see LICENSE for more details.",
"HTML_ENTITIES = {\n 'AElig': 198,\n 'Aacute': 193,\n 'Acirc': 194,\n 'Agrave': 192,\n ... |
# -*- coding: utf-8 -*-
"""
jinja2.exceptions
~~~~~~~~~~~~~~~~~
Jinja exceptions.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
class TemplateError(Exception):
"""Baseclass for all template errors."""
def __init__(self, message=None):
i... | [
[
8,
0,
0.042,
0.0629,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.1364,
0.0979,
0,
0.66,
0.1111,
179,
0,
2,
0,
0,
645,
0,
4
],
[
8,
1,
0.0979,
0.007,
1,
0.7,
... | [
"\"\"\"\n jinja2.exceptions\n ~~~~~~~~~~~~~~~~~\n\n Jinja exceptions.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"class TemplateError(Exception):\n \"\"\"Baseclass for all template errors.\"\"\"\n\n def __init__(self, message=None):\n i... |
# -*- 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.0295,
0.048,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0554,
0.0037,
0,
0.66,
0.0417,
616,
0,
1,
0,
0,
616,
0,
0
],
[
1,
0,
0.059,
0.0037,
0,
0.66,
... | [
"\"\"\"\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 jinja2.runtime import Undefined",
"fr... |
# -*- coding: utf-8 -*-
"""
jinja2.meta
~~~~~~~~~~~
This module implements various functions that exposes information about
templates that might be interesting for various kinds of applications.
:copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.
:license: BSD, see LICENSE fo... | [
[
8,
0,
0.0637,
0.098,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1176,
0.0098,
0,
0.66,
0.2,
436,
0,
1,
0,
0,
436,
0,
0
],
[
1,
0,
0.1275,
0.0098,
0,
0.66,
... | [
"\"\"\"\n jinja2.meta\n ~~~~~~~~~~~\n\n This module implements various functions that exposes information about\n templates that might be interesting for various kinds of applications.\n\n :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.",
"from jinja2 import nodes",
"from ji... |
# -*- coding: utf-8 -*-
"""
jinja2.defaults
~~~~~~~~~~~~~~~
Jinja default filters and tags.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner
from gettext import gettext as _ ##ADDD
# defaults for... | [
[
8,
0,
0.1463,
0.2195,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2683,
0.0244,
0,
0.66,
0.0625,
677,
0,
3,
0,
0,
677,
0,
0
],
[
1,
0,
0.2927,
0.0244,
0,
0.66... | [
"\"\"\"\n jinja2.defaults\n ~~~~~~~~~~~~~~~\n\n Jinja default filters and tags.\n\n :copyright: (c) 2010 by the Jinja Team.\n :license: BSD, see LICENSE for more details.",
"from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner",
"from gettext import gettext as _ ##ADDD",
"BLOCK_START_S... |
# -*- coding: utf-8 -*-
"""
jinja2._stringdefs
~~~~~~~~~~~~~~~~~~
Strings of all Unicode characters of a certain category.
Used for matching in Unicode-aware languages. Run to regenerate.
Inspired by chartypes_create.py from the MoinMoin project, original
implementation from Pygments.
:co... | [
[
8,
0,
0.0615,
0.1,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1231,
0.0077,
0,
0.66,
0.0278,
924,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1385,
0.0077,
0,
0.66,
... | [
"\"\"\"\n jinja2._stringdefs\n ~~~~~~~~~~~~~~~~~~\n\n Strings of all Unicode characters of a certain category.\n Used for matching in Unicode-aware languages. Run to regenerate.\n\n Inspired by chartypes_create.py from the MoinMoin project, original",
"Cc = u'\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x0... |
# -*- coding: utf-8 -*-
"""
jinja.constants
~~~~~~~~~~~~~~~
Various constants.
:copyright: (c) 2010 by the Jinja Team.
: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 a... | [
[
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: (c) 2010 by the Jinja Team.\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 cla... |
# -*- 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.2055,
0.3699,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3973,
0.0137,
0,
0.66,
0.1,
959,
1,
0,
0,
0,
0,
3,
0
],
[
7,
0,
0.4384,
0.0685,
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.bccache
~~~~~~~~~~~~~~
This module implements the bytecode cache system Jinja is optionally
using. This is useful if you have very complex template situations and
the compiliation of all those templates slow down your application too
much.
Situations whe... | [
[
8,
0,
0.0321,
0.0536,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0607,
0.0036,
0,
0.66,
0.0714,
688,
0,
2,
0,
0,
688,
0,
0
],
[
1,
0,
0.0643,
0.0036,
0,
0.66... | [
"\"\"\"\n jinja2.bccache\n ~~~~~~~~~~~~~~\n\n This module implements the bytecode cache system Jinja is optionally\n using. This is useful if you have very complex template situations and\n the compiliation of all those templates slow down your application too\n much.",
"from os import path, li... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
14,
0,
0.8571,
0.0357,
0,
0.66,
0,
335,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8929,
0.0357,
0,
0.66,
0.25,
884,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.9286,
0.0357,
0,
0.6... | [
"DEFAULT_LOCALE = \"en\"",
"locale = \"locale\"",
"appName = \"app_name\"",
"appSubject = \"app_subject\"",
"domain = \"domain\""
] |
"""
Copyright (c) 2008, appengine-utilities project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | [
[
8,
0,
0.0523,
0.1008,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1124,
0.0039,
0,
0.66,
0.0909,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1163,
0.0039,
0,
0.66... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
"""
Copyright (c) 2008, appengine-utilities project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | [
[
8,
0,
0.028,
0.0539,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0602,
0.0021,
0,
0.66,
0.0455,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0622,
0.0021,
0,
0.66,... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
2,
0,
0.7973,
0.4324,
0,
0.66,
0,
366,
0,
1,
1,
0,
0,
0,
11
],
[
14,
1,
0.6216,
0.027,
1,
0.05,
0,
496,
3,
2,
0,
0,
107,
10,
1
],
[
14,
1,
0.6486,
0.027,
1,
0.05,... | [
"def loadProperties(fileName):\n propFile = file(fileName, \"rU\" )\n propDict = dict()\n for propLine in propFile:\n propDef = propLine.strip()\n if len(propDef) == 0:\n continue\n if propDef[0] in ( '!', '#' ):",
" propFile = file(fileName, \"rU\" )",
" propDict ... |
"""
Copyright (c) 2008, appengine-utilities project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | [
[
8,
0,
0.1776,
0.3421,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3553,
0.0132,
0,
0.66,
0.25,
593,
0,
1,
0,
0,
593,
0,
0
],
[
3,
0,
0.6711,
0.5658,
0,
0.66,
... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
"""
Copyright (c) 2008, appengine-utilities project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this
list of conditions and ... | [
[
8,
0,
0.1392,
0.268,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2887,
0.0103,
0,
0.66,
0.2,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.299,
0.0103,
0,
0.66,
... | [
"\"\"\"\nCopyright (c) 2008, appengine-utilities project\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n- Redistributions of source code must retain the above copyright notice, this\n list of ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation... | [
[
1,
0,
0.2018,
0.0092,
0,
0.66,
0,
722,
0,
1,
0,
0,
722,
0,
0
],
[
1,
0,
0.211,
0.0092,
0,
0.66,
0.25,
123,
0,
1,
0,
0,
123,
0,
0
],
[
1,
0,
0.2202,
0.0092,
0,
0.6... | [
"import model",
"import PropertiesUtil",
"import Constant",
"from google.appengine.api import memcache",
"class AppProperties (object):\n __instance = None\n __appDic = None\n __env = None\n\n def __new__(cls, *args, **kargs): \n if cls.__instance is None:\n cls.__instance = ob... |
#!/usr/bin/env python
version = "1.7"
version_info = (1,7,0,"rc-2")
__revision__ = "$Rev: 72 $"
"""
Python-Markdown
===============
Converts Markdown to HTML. Basic usage as a module:
import markdown
md = Markdown()
html = md.convert(your_text_string)
See http://www.freewisdom.org/projects/python-mark... | [
[
14,
0,
0.0016,
0.0005,
0,
0.66,
0,
623,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0021,
0.0005,
0,
0.66,
0.0079,
342,
0,
0,
0,
0,
0,
8,
0
],
[
14,
0,
0.0026,
0.0005,
0,
0... | [
"version = \"1.7\"",
"version_info = (1,7,0,\"rc-2\")",
"__revision__ = \"$Rev: 72 $\"",
"\"\"\"\nPython-Markdown\n===============\n\nConverts Markdown to HTML. Basic usage as a module:\n\n import markdown\n md = Markdown()",
"import re, sys, codecs",
"from logging import getLogger, StreamHandler, ... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software ... | [
[
1,
0,
0.4694,
0.0204,
0,
0.66,
0,
709,
0,
1,
0,
0,
709,
0,
0
],
[
1,
0,
0.5102,
0.0204,
0,
0.66,
0.1429,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.5306,
0.0204,
0,
... | [
"import wsgiref.handlers",
"import os",
"from handlers import *",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp import template",
"class NotAvailable(webapp.RequestHandler):\n\n\tdef get(self):\n\t\tself.response.clear()\n\t\tself.response.set_status(501)\n\t\tself.response.... |
#!/usr/bin/env python
import struct
from StringIO import StringIO
from google.appengine.api import images
def resize(image, maxwidth, maxheight):
imageinfo = getimageinfo(image)
width = float(imageinfo[1])
height = float(imageinfo[2])
ratio = width / height
dwidth = maxheight * ratio
dheight = ma... | [
[
1,
0,
0.026,
0.013,
0,
0.66,
0,
399,
0,
1,
0,
0,
399,
0,
0
],
[
1,
0,
0.039,
0.013,
0,
0.66,
0.25,
609,
0,
1,
0,
0,
609,
0,
0
],
[
1,
0,
0.0649,
0.013,
0,
0.66,
... | [
"import struct",
"from StringIO import StringIO",
"from google.appengine.api import images",
"def resize(image, maxwidth, maxheight):\n\timageinfo = getimageinfo(image)\n\twidth = float(imageinfo[1])\n\theight = float(imageinfo[2])\n\tratio = width / height\n\t\n\tdwidth = maxheight * ratio\n\tdheight = maxhe... |
import simplejson
import cgi
class JSONFilter(object):
def __init__(self, app, mime_type='text/x-json'):
self.app = app
self.mime_type = mime_type
def __call__(self, environ, start_response):
# Read JSON POST input to jsonfilter.json if matching mime type
response = {... | [
[
1,
0,
0.025,
0.025,
0,
0.66,
0,
386,
0,
1,
0,
0,
386,
0,
0
],
[
1,
0,
0.05,
0.025,
0,
0.66,
0.3333,
934,
0,
1,
0,
0,
934,
0,
0
],
[
3,
0,
0.5125,
0.85,
0,
0.66,
... | [
"import simplejson",
"import cgi",
"class JSONFilter(object):\n def __init__(self, app, mime_type='text/x-json'):\n self.app = app\n self.mime_type = mime_type\n\n def __call__(self, environ, start_response):\n # Read JSON POST input to jsonfilter.json if matching mime type\n r... |
"""
Implementation of JSONDecoder
"""
import re
import sys
from simplejson.scanner import Scanner, pattern
try:
from simplejson import _speedups
except:
_speedups = None
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
def _floatconstants():
import struct
import sys
_BYTES = '7FF800... | [
[
8,
0,
0.006,
0.0091,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0121,
0.003,
0,
0.66,
0.0333,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0151,
0.003,
0,
0.66,
... | [
"\"\"\"\nImplementation of JSONDecoder\n\"\"\"",
"import re",
"import sys",
"from simplejson.scanner import Scanner, pattern",
"try:\n from simplejson import _speedups\nexcept:\n _speedups = None",
" from simplejson import _speedups",
" _speedups = None",
"FLAGS = re.VERBOSE | re.MULTILINE... |
"""
Iterator based sre token scanner
"""
import sre_parse, sre_compile, sre_constants
from sre_constants import BRANCH, SUBPATTERN
from re import VERBOSE, MULTILINE, DOTALL
import re
__all__ = ['Scanner', 'pattern']
FLAGS = (VERBOSE | MULTILINE | DOTALL)
class Scanner(object):
def __init__(self, lexic... | [
[
8,
0,
0.0312,
0.0469,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0625,
0.0156,
0,
0.66,
0.125,
22,
0,
3,
0,
0,
22,
0,
0
],
[
1,
0,
0.0781,
0.0156,
0,
0.66,
... | [
"\"\"\"\nIterator based sre token scanner\n\"\"\"",
"import sre_parse, sre_compile, sre_constants",
"from sre_constants import BRANCH, SUBPATTERN",
"from re import VERBOSE, MULTILINE, DOTALL",
"import re",
"__all__ = ['Scanner', 'pattern']",
"FLAGS = (VERBOSE | MULTILINE | DOTALL)",
"class Scanner(obj... |
"""
Implementation of JSONEncoder
"""
import re
try:
from simplejson import _speedups
except ImportError:
_speedups = None
ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]')
ESCAPE_ASCII = re.compile(r'([\\"/]|[^\ -~])')
ESCAPE_DCT = {
'\\': '\\\\',
'"': '\\"',
'\b': '\\b',
'\f': '... | [
[
8,
0,
0.0053,
0.008,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0106,
0.0027,
0,
0.66,
0.0714,
540,
0,
1,
0,
0,
540,
0,
0
],
[
7,
0,
0.0173,
0.0106,
0,
0.66,... | [
"\"\"\"\nImplementation of JSONEncoder\n\"\"\"",
"import re",
"try:\n from simplejson import _speedups\nexcept ImportError:\n _speedups = None",
" from simplejson import _speedups",
" _speedups = None",
"ESCAPE = re.compile(r'[\\x00-\\x1f\\\\\"\\b\\f\\n\\r\\t]')",
"ESCAPE_ASCII = re.compile(... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
##
# (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com>
# (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com>
#
# This file is part of "vikuit".
#
# "vikuit" is free software: you can redistribute it and/or modify
# it under the terms of the GNU Aff... | [
[
1,
0,
0.0614,
0.0026,
0,
0.66,
0,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.0639,
0.0026,
0,
0.66,
0.037,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.0665,
0.0026,
0,
0... | [
"from google.appengine.ext import db",
"from google.appengine.api import users",
"from google.appengine.ext import search",
"class UserData(search.SearchableModel):\n\tnickname = db.StringProperty(required=True)\n\tpersonal_message = db.StringProperty()\n\temail = db.StringProperty(required=True)\n\tavatar = ... |
#! /usr/bin/env python
__revision__ = "$Id: setup.py,v 1.30 2005/06/14 01:20:22 akuchling Exp $"
from distutils import core
from distutils.core import Extension
from distutils.command.build_ext import build_ext
import os, sys
if sys.version[0:1] == '1':
raise RuntimeError, ("The Python Cryptography Toolkit requi... | [
[
1,
0,
0.0094,
0.0094,
0,
0.66,
0,
901,
0,
1,
0,
0,
901,
0,
0
],
[
1,
0,
0.0189,
0.0094,
0,
0.66,
0.1667,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.0283,
0.0094,
0,
... | [
"from distutils import core",
"from distutils.core import Extension",
"from distutils.command.build_ext import build_ext",
"import os, sys",
"def find_file(filename, std_dirs, paths):\n \"\"\"Searches for the directory where a given file is located,\n and returns a possibly-empty list of additional di... |
"""Miscellaneous modules
Contains useful modules that don't belong into any of the
other Crypto.* subpackages.
Crypto.Util.number Number-theoretic functions (primality testing, etc.)
Crypto.Util.randpool Random number generation
Crypto.Util.RFC1751 Converts between 128-bit keys and human-readable
... | [
[
8,
0,
0.375,
0.6875,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8125,
0.0625,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9375,
0.0625,
0,
0.66,
... | [
"\"\"\"Miscellaneous modules\n\nContains useful modules that don't belong into any of the\nother Crypto.* subpackages.\n\nCrypto.Util.number Number-theoretic functions (primality testing, etc.)\nCrypto.Util.randpool Random number generation\nCrypto.Util.RFC1751 Converts between 128-bit keys and hu... |
import time
from Crypto.Util import number
# Test of prime-generation speed
# This randfunc is deterministic, so we should always find the same primes.
chars = ''.join(map(chr, range(255, 0, -1)))
def randfunc (N):
s = ''
while len(s)<N:
s += chars
return s[:N]
def main ():
for i in range(12... | [
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.125,
0.0417,
0,
0.66,
0.2,
888,
0,
1,
0,
0,
888,
0,
0
],
[
14,
0,
0.3333,
0.0417,
0,
0.6... | [
"import time",
"from Crypto.Util import number",
"chars = ''.join(map(chr, range(255, 0, -1)))",
"def randfunc (N):\n s = ''\n while len(s)<N:\n s += chars\n return s[:N]",
" s = ''",
" while len(s)<N:\n s += chars",
" return s[:N]",
"def main ():\n for i in range(12... |
"""Secret-key encryption algorithms.
Secret-key encryption algorithms transform plaintext in some way that
is dependent on a key, producing ciphertext. This transformation can
easily be reversed, if (and, hopefully, only if) one knows the key.
The encryption modules here all support the interface described in PEP
272... | [
[
8,
0,
0.3788,
0.7273,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8333,
0.1212,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9394,
0.0303,
0,
0.66,
... | [
"\"\"\"Secret-key encryption algorithms.\n\nSecret-key encryption algorithms transform plaintext in some way that\nis dependent on a key, producing ciphertext. This transformation can\neasily be reversed, if (and, hopefully, only if) one knows the key.\n\nThe encryption modules here all support the interface descri... |
"""Cryptographic protocols
Implements various cryptographic protocols. (Don't expect to find
network protocols here.)
Crypto.Protocol.AllOrNothing Transforms a message into a set of message
blocks, such that the blocks can be
recombined to get the mess... | [
[
8,
0,
0.4706,
0.7647,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.9412,
0.0588,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
1,
0.0588,
0,
0.66,
1,... | [
"\"\"\"Cryptographic protocols\n\nImplements various cryptographic protocols. (Don't expect to find\nnetwork protocols here.)\n\nCrypto.Protocol.AllOrNothing Transforms a message into a set of message\n blocks, such that the blocks can be\n recombined t... |
#! /usr/bin/env python
__revision__ = "$Id: setup.py,v 1.30 2005/06/14 01:20:22 akuchling Exp $"
from distutils import core
from distutils.core import Extension
from distutils.command.build_ext import build_ext
import os, sys
if sys.version[0:1] == '1':
raise RuntimeError, ("The Python Cryptography Toolkit requi... | [
[
1,
0,
0.0094,
0.0094,
0,
0.66,
0,
901,
0,
1,
0,
0,
901,
0,
0
],
[
1,
0,
0.0189,
0.0094,
0,
0.66,
0.1667,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.0283,
0.0094,
0,
... | [
"from distutils import core",
"from distutils.core import Extension",
"from distutils.command.build_ext import build_ext",
"import os, sys",
"def find_file(filename, std_dirs, paths):\n \"\"\"Searches for the directory where a given file is located,\n and returns a possibly-empty list of additional di... |
#
# Test script for the Python Cryptography Toolkit.
#
__revision__ = "$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $"
import os, sys
# Add the build directory to the front of sys.path
from distutils.util import get_platform
s = "build/lib.%s-%.3s" % (get_platform(), sys.version)
s = os.path.join(os.getcwd(... | [
[
14,
0,
0.1316,
0.0263,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1842,
0.0263,
0,
0.66,
0.0667,
688,
0,
2,
0,
0,
688,
0,
0
],
[
1,
0,
0.2895,
0.0263,
0,
0... | [
"__revision__ = \"$Id: test.py,v 1.7 2002/07/11 14:31:19 akuchling Exp $\"",
"import os, sys",
"from distutils.util import get_platform",
"s = \"build/lib.%s-%.3s\" % (get_platform(), sys.version)",
"s = os.path.join(os.getcwd(), s)",
"sys.path.insert(0, s)",
"s = os.path.join(os.getcwd(), 'test')",
"... |
"""Public-key encryption and signature algorithms.
Public-key encryption uses two different keys, one for encryption and
one for decryption. The encryption key can be made public, and the
decryption key is kept private. Many public-key algorithms can also
be used to sign messages, and some can *only* be used for sig... | [
[
8,
0,
0.4118,
0.7647,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8824,
0.0588,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9412,
0.0588,
0,
0.66,
... | [
"\"\"\"Public-key encryption and signature algorithms.\n\nPublic-key encryption uses two different keys, one for encryption and\none for decryption. The encryption key can be made public, and the\ndecryption key is kept private. Many public-key algorithms can also\nbe used to sign messages, and some can *only* be... |
#!/usr/bin/env python
# Script to time fast and slow RSA operations
# Contributed by Joris Bontje.
import time, pprint
from Crypto.PublicKey import *
from Crypto.Util.randpool import RandomPool
from Crypto.Util import number
pool = RandomPool()
pool.stir()
KEYSIZE=2048
COUNT=5
fasttime=0
slowtime=0
for x in range(C... | [
[
1,
0,
0.125,
0.0208,
0,
0.66,
0,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.1458,
0.0208,
0,
0.66,
0.0909,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.1667,
0.0208,
0,
0... | [
"import time, pprint",
"from Crypto.PublicKey import *",
"from Crypto.Util.randpool import RandomPool",
"from Crypto.Util import number",
"pool = RandomPool()",
"pool.stir()",
"KEYSIZE=2048",
"COUNT=5",
"fasttime=0",
"slowtime=0",
"for x in range(COUNT):\n begintime=time.time()\n rsa=RSA.g... |
#!/usr/bin/env python
# Script to time fast and slow RSA operations
# Contributed by Joris Bontje.
import time, pprint
from Crypto.PublicKey import *
from Crypto.Util.randpool import RandomPool
from Crypto.Util import number
pool = RandomPool()
pool.stir()
KEYSIZE=2048
COUNT=5
fasttime=0
slowtime=0
for x in range(C... | [
[
1,
0,
0.125,
0.0208,
0,
0.66,
0,
654,
0,
2,
0,
0,
654,
0,
0
],
[
1,
0,
0.1458,
0.0208,
0,
0.66,
0.0909,
956,
0,
1,
0,
0,
956,
0,
0
],
[
1,
0,
0.1667,
0.0208,
0,
0... | [
"import time, pprint",
"from Crypto.PublicKey import *",
"from Crypto.Util.randpool import RandomPool",
"from Crypto.Util import number",
"pool = RandomPool()",
"pool.stir()",
"KEYSIZE=2048",
"COUNT=5",
"fasttime=0",
"slowtime=0",
"for x in range(COUNT):\n begintime=time.time()\n rsa=RSA.g... |
# Just use the MD5 module from the Python standard library
__revision__ = "$Id: MD5.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $"
from md5 import *
import md5
if hasattr(md5, 'digestsize'):
digest_size = digestsize
del digestsize
del md5
| [
[
14,
0,
0.3077,
0.0769,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4615,
0.0769,
0,
0.66,
0.3333,
604,
0,
1,
0,
0,
604,
0,
0
],
[
1,
0,
0.6154,
0.0769,
0,
0... | [
"__revision__ = \"$Id: MD5.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $\"",
"from md5 import *",
"import md5",
"if hasattr(md5, 'digestsize'):\n digest_size = digestsize\n del digestsize",
" digest_size = digestsize"
] |
"""HMAC (Keyed-Hashing for Message Authentication) Python module.
Implements the HMAC algorithm as described by RFC 2104.
This is just a copy of the Python 2.2 HMAC module, modified to work when
used on versions of Python before 2.2.
"""
__revision__ = "$Id: HMAC.py,v 1.5 2002/07/25 17:19:02 z3p Exp $"
import strin... | [
[
8,
0,
0.037,
0.0648,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0833,
0.0093,
0,
0.66,
0.1667,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1019,
0.0093,
0,
0.66,
... | [
"\"\"\"HMAC (Keyed-Hashing for Message Authentication) Python module.\n\nImplements the HMAC algorithm as described by RFC 2104.\n\nThis is just a copy of the Python 2.2 HMAC module, modified to work when\nused on versions of Python before 2.2.\n\"\"\"",
"__revision__ = \"$Id: HMAC.py,v 1.5 2002/07/25 17:19:02 z3... |
# Just use the SHA module from the Python standard library
__revision__ = "$Id: SHA.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $"
from sha import *
import sha
if hasattr(sha, 'digestsize'):
digest_size = digestsize
del digestsize
del sha
| [
[
14,
0,
0.3636,
0.0909,
0,
0.66,
0,
809,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5455,
0.0909,
0,
0.66,
0.3333,
263,
0,
1,
0,
0,
263,
0,
0
],
[
1,
0,
0.6364,
0.0909,
0,
0... | [
"__revision__ = \"$Id: SHA.py,v 1.4 2002/07/11 14:31:19 akuchling Exp $\"",
"from sha import *",
"import sha",
"if hasattr(sha, 'digestsize'):\n digest_size = digestsize\n del digestsize",
" digest_size = digestsize"
] |
"""Hashing algorithms
Hash functions take arbitrary strings as input, and produce an output
of fixed size that is dependent on the input; it should never be
possible to derive the input data given only the hash function's
output. Hash functions can be used simply as a checksum, or, in
association with a public-key al... | [
[
8,
0,
0.4375,
0.8333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.9167,
0.0417,
0,
0.66,
0.5,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.9583,
0.0417,
0,
0.66,
... | [
"\"\"\"Hashing algorithms\n\nHash functions take arbitrary strings as input, and produce an output\nof fixed size that is dependent on the input; it should never be\npossible to derive the input data given only the hash function's\noutput. Hash functions can be used simply as a checksum, or, in\nassociation with a... |
"""Python Cryptography Toolkit
A collection of cryptographic modules implementing various algorithms
and protocols.
Subpackages:
Crypto.Cipher Secret-key encryption algorithms (AES, DES, ARC4)
Crypto.Hash Hashing algorithms (MD5, SHA, HMAC)
Crypto.Protocol Cryptographic protocols ... | [
[
8,
0,
0.4,
0.68,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8,
0.04,
0,
0.66,
0.3333,
272,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.88,
0.04,
0,
0.66,
0.6667,
... | [
"\"\"\"Python Cryptography Toolkit\n\nA collection of cryptographic modules implementing various algorithms\nand protocols.\n\nSubpackages:\nCrypto.Cipher Secret-key encryption algorithms (AES, DES, ARC4)\nCrypto.Hash Hashing algorithms (MD5, SHA, HMAC)",
"__all__ = ['Cipher', 'Hash', 'P... |
#
# testdata.py : Test data for the various algorithms
#
# Part of the Python Cryptography Toolkit
#
# Distribute and use freely; there are no restrictions on further
# dissemination and usage except those imposed by the laws of your
# country of residence. This software is provided "as is" without
# warranty of fitn... | [
[
14,
0,
0.0352,
0.0162,
0,
0.66,
0,
922,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.0558,
0.0162,
0,
0.66,
0.037,
290,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.0764,
0.0162,
0,
0.... | [
"md2= [\n (\"\", \"8350e5a3e24c153df2275c9f80692773\"),\n (\"a\", \"32ec01ec4a6dac72c0ab96fb34c0b5d1\"),\n (\"abc\", \"da853b0d3f88d99b30283a69e6ded6bb\"),\n (\"message digest\", \"ab4f496bfb2a530b219ff33031fe06b0\"),\n (\"abcdefghijklmnopqrstuvwxyz\", \"4e8ddff3650292ab5a4108c3aa47940b\"),\n ... |
import cgi
import urllib
import time
import random
import urlparse
import hmac
import binascii
VERSION = '1.0' # Hi Blaine!
HTTP_METHOD = 'GET'
SIGNATURE_METHOD = 'PLAINTEXT'
# Generic exception class
class OAuthError(RuntimeError):
def __init__(self, message='OAuth error occured.'):
self.message = messag... | [
[
1,
0,
0.0019,
0.0019,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0037,
0.0019,
0,
0.66,
0.0417,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0056,
0.0019,
0,
... | [
"import cgi",
"import urllib",
"import time",
"import random",
"import urlparse",
"import hmac",
"import binascii",
"VERSION = '1.0' # Hi Blaine!",
"HTTP_METHOD = 'GET'",
"SIGNATURE_METHOD = 'PLAINTEXT'",
"class OAuthError(RuntimeError):\n def __init__(self, message='OAuth error occured.'):\n... |
#!/usr/bin/python
# This code is original from jsmin by Douglas Crockford, it was translated to
# Python by Baruch Even. The original code had the following copyright and
# license.
#
# /* jsmin.c
# 2007-05-22
#
# Copyright (c) 2002 Douglas Crockford (www.crockford.com)
#
# Permission is hereby granted,... | [
[
1,
0,
0.1514,
0.0046,
0,
0.66,
0,
609,
0,
1,
0,
0,
609,
0,
0
],
[
2,
0,
0.1766,
0.0367,
0,
0.66,
0.1429,
275,
0,
1,
1,
0,
0,
0,
6
],
[
14,
1,
0.1651,
0.0046,
1,
0... | [
"from StringIO import StringIO",
"def jsmin(js):\n ins = StringIO(js)\n outs = StringIO()\n JavascriptMinify().minify(ins, outs)\n str = outs.getvalue()\n if len(str) > 0 and str[0] == '\\n':\n str = str[1:]\n return str",
" ins = StringIO(js)",
" outs = StringIO()",
" Java... |
#!/usr/bin/python
# This code is original from jsmin by Douglas Crockford, it was translated to
# Python by Baruch Even. The original code had the following copyright and
# license.
#
# /* jsmin.c
# 2007-05-22
#
# Copyright (c) 2002 Douglas Crockford (www.crockford.com)
#
# Permission is hereby granted,... | [
[
1,
0,
0.1514,
0.0046,
0,
0.66,
0,
609,
0,
1,
0,
0,
609,
0,
0
],
[
2,
0,
0.1766,
0.0367,
0,
0.66,
0.1429,
275,
0,
1,
1,
0,
0,
0,
6
],
[
14,
1,
0.1651,
0.0046,
1,
0... | [
"from StringIO import StringIO",
"def jsmin(js):\n ins = StringIO(js)\n outs = StringIO()\n JavascriptMinify().minify(ins, outs)\n str = outs.getvalue()\n if len(str) > 0 and str[0] == '\\n':\n str = str[1:]\n return str",
" ins = StringIO(js)",
" outs = StringIO()",
" Java... |
from .resolver import resolver
from django.utils.importlib import import_module
def __repr__(self):
return '<%s, %s, %s, %s>' % (self.alias, self.col, self.field.name,
self.field.model.__name__)
from django.db.models.sql.where import Constraint
Constraint.__repr__ = __repr__
# TODO: manipulate a copy of ... | [
[
1,
0,
0.0192,
0.0192,
0,
0.66,
0,
594,
0,
1,
0,
0,
594,
0,
0
],
[
1,
0,
0.0385,
0.0192,
0,
0.66,
0.0833,
118,
0,
1,
0,
0,
118,
0,
0
],
[
2,
0,
0.0962,
0.0577,
0,
... | [
"from .resolver import resolver",
"from django.utils.importlib import import_module",
"def __repr__(self):\n return '<%s, %s, %s, %s>' % (self.alias, self.col, self.field.name,\n self.field.model.__name__)",
" return '<%s, %s, %s, %s>' % (self.alias, self.col, self.field.name,\n self.field... |
from django.db import models
from django.test import TestCase
from .api import register_index
from .lookups import StandardLookup
from .resolver import resolver
from djangotoolbox.fields import ListField
from datetime import datetime
import re
class ForeignIndexed2(models.Model):
name_fi2 = models.CharField(max_le... | [
[
1,
0,
0.0038,
0.0038,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0075,
0.0038,
0,
0.66,
0.0625,
944,
0,
1,
0,
0,
944,
0,
0
],
[
1,
0,
0.0113,
0.0038,
0,
0.... | [
"from django.db import models",
"from django.test import TestCase",
"from .api import register_index",
"from .lookups import StandardLookup",
"from .resolver import resolver",
"from djangotoolbox.fields import ListField",
"from datetime import datetime",
"import re",
"class ForeignIndexed2(models.Mo... |
from django.db import models
from djangotoolbox.fields import ListField
from copy import deepcopy
import re
regex = type(re.compile(''))
class LookupDoesNotExist(Exception):
pass
class LookupBase(type):
def __new__(cls, name, bases, attrs):
new_cls = type.__new__(cls, name, bases, attrs)
if n... | [
[
1,
0,
0.0038,
0.0038,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0075,
0.0038,
0,
0.66,
0.05,
111,
0,
1,
0,
0,
111,
0,
0
],
[
1,
0,
0.0113,
0.0038,
0,
0.66... | [
"from django.db import models",
"from djangotoolbox.fields import ListField",
"from copy import deepcopy",
"import re",
"regex = type(re.compile(''))",
"class LookupDoesNotExist(Exception):\n pass",
"class LookupBase(type):\n def __new__(cls, name, bases, attrs):\n new_cls = type.__new__(cl... |
from django.conf import settings
from django.utils.importlib import import_module
def merge_dicts(d1, d2):
'''Update dictionary recursively. If values for a given key exist in both dictionaries and are dict-like they are merged.'''
for k, v in d2.iteritems():
# Try to merge the values as if they wer... | [
[
1,
0,
0.0179,
0.0179,
0,
0.66,
0,
128,
0,
1,
0,
0,
128,
0,
0
],
[
1,
0,
0.0357,
0.0179,
0,
0.66,
0.2,
118,
0,
1,
0,
0,
118,
0,
0
],
[
2,
0,
0.1875,
0.2143,
0,
0.6... | [
"from django.conf import settings",
"from django.utils.importlib import import_module",
"def merge_dicts(d1, d2):\n '''Update dictionary recursively. If values for a given key exist in both dictionaries and are dict-like they are merged.'''\n\n for k, v in d2.iteritems():\n\n # Try to merge the val... |
def autodiscover():
from autoload import autodiscover as auto_discover
auto_discover('dbindexes')
def load_indexes():
from django.conf import settings
from django.utils.importlib import import_module
for name in getattr(settings, 'DB_INDEX_MODULES', ()):
import_module(name)
| [
[
2,
0,
0.2,
0.3,
0,
0.66,
0,
798,
0,
0,
0,
0,
0,
0,
1
],
[
1,
1,
0.2,
0.1,
1,
0.9,
0,
611,
0,
1,
0,
0,
611,
0,
0
],
[
8,
1,
0.3,
0.1,
1,
0.9,
1,
505,
3... | [
"def autodiscover():\n from autoload import autodiscover as auto_discover\n auto_discover('dbindexes')",
" from autoload import autodiscover as auto_discover",
" auto_discover('dbindexes')",
"def load_indexes():\n from django.conf import settings\n from django.utils.importlib import import_m... |
from .lookups import LookupDoesNotExist, ExtraFieldLookup
from . import lookups as lookups_module
from .resolver import resolver
import inspect
# TODO: add possibility to add lookup modules
def create_lookup(lookup_def):
for _, cls in inspect.getmembers(lookups_module):
if inspect.isclass(cls) and issubcla... | [
[
1,
0,
0.037,
0.037,
0,
0.66,
0,
602,
0,
2,
0,
0,
602,
0,
0
],
[
1,
0,
0.0741,
0.037,
0,
0.66,
0.2,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
0,
0.1111,
0.037,
0,
0.66,
0... | [
"from .lookups import LookupDoesNotExist, ExtraFieldLookup",
"from . import lookups as lookups_module",
"from .resolver import resolver",
"import inspect",
"def create_lookup(lookup_def):\n for _, cls in inspect.getmembers(lookups_module):\n if inspect.isclass(cls) and issubclass(cls, ExtraFieldLo... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
14,
0,
0.2432,
0.0135,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2838,
0.0135,
0,
0.66,
0.2,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.2973,
0.0135,
0,
0.66,
... | [
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"import httplib",
"import urllib",
"from opensocial import http",
"class ResponseRecord(object):\n \n def __init__(self, request, response):\n self.request = request\n self.response = response",
" def __init__(self, request, response):\n ... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
14,
0,
0.1343,
0.0075,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.2015,
0.097,
0,
0.66,
0.2,
709,
0,
1,
1,
0,
0,
0,
1
],
[
8,
1,
0.2015,
0.0821,
1,
0.2,
... | [
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"def extract_fields(json):\n \"\"\"Extracts a JSON dict of fields.\n \n REST and RPC protocols use different JSON keys for OpenSocial objects. This\n abstracts that and handles both cases.\n \n Args:\n json: dict The JSON object.",
" \"\"\"Extrac... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
14,
0,
0.0566,
0.0031,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.066,
0.0031,
0,
0.66,
0.0556,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.0692,
0.0031,
0,
0.... | [
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"import hashlib",
"import random",
"import time",
"import urlparse",
"from types import ListType",
"import data",
"import http",
"from opensocial import simplejson",
"def generate_uuid(*args):\n \"\"\"Simple method for generating a unique id... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
14,
0,
0.0566,
0.0031,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.066,
0.0031,
0,
0.66,
0.0556,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.0692,
0.0031,
0,
0.... | [
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"import hashlib",
"import random",
"import time",
"import urlparse",
"from types import ListType",
"import data",
"import http",
"from opensocial import simplejson",
"def generate_uuid(*args):\n \"\"\"Simple method for generating a unique id... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
14,
0,
0.1343,
0.0075,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
2,
0,
0.2015,
0.097,
0,
0.66,
0.2,
709,
0,
1,
1,
0,
0,
0,
1
],
[
8,
1,
0.2015,
0.0821,
1,
0.92,
... | [
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"def extract_fields(json):\n \"\"\"Extracts a JSON dict of fields.\n \n REST and RPC protocols use different JSON keys for OpenSocial objects. This\n abstracts that and handles both cases.\n \n Args:\n json: dict The JSON object.",
" \"\"\"Extrac... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
14,
0,
0.2432,
0.0135,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2838,
0.0135,
0,
0.66,
0.2,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.2973,
0.0135,
0,
0.66,
... | [
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"import httplib",
"import urllib",
"from opensocial import http",
"class ResponseRecord(object):\n \n def __init__(self, request, response):\n self.request = request\n self.response = response",
" def __init__(self, request, response):\n ... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
8,
0,
0.3051,
0.0169,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3559,
0.0169,
0,
0.66,
0.1111,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4068,
0.0169,
0,
0.66,... | [
"\"\"\"This file provides test data explicitly for usage in library unit tests.\"\"\"",
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"import httplib",
"import data",
"import simplejson",
"VIEWER_FIELDS = {\n 'entry': {'id': '101',\n 'name': {'givenName': 'Kenny', 'familyName': ''}},... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
8,
0,
0.3273,
0.0182,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3818,
0.0182,
0,
0.66,
0.1667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.4455,
0.0364,
0,
0.66,... | [
"\"\"\"Errors used on the Python opensocial client libraries.\"\"\"",
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"class Error(Exception):\n \"\"\"Base opensocial.client error type.\"\"\"",
" \"\"\"Base opensocial.client error type.\"\"\"",
"class ConfigError(Error):\n \"\"\"Raised when the c... |
"""
Implementation of JSONEncoder
"""
# NOTE(kgibbs): This line must be added to make this file work under
# Python 2.2, which is commonly used at Google.
from __future__ import generators
# NOTE(kgibbs): End changes.
import re
# this should match any kind of infinity
INFCHARS = re.compile(r'[infINF]')
ESCAPE = re.com... | [
[
8,
0,
0.0066,
0.01,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0199,
0.0033,
0,
0.66,
0.0833,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0266,
0.0033,
0,
0.66,
... | [
"\"\"\"\nImplementation of JSONEncoder\n\"\"\"",
"from __future__ import generators",
"import re",
"INFCHARS = re.compile(r'[infINF]')",
"ESCAPE = re.compile(r'[\\x00-\\x19\\\\\"\\b\\f\\n\\r\\t]')",
"ESCAPE_ASCII = re.compile(r'([\\\\\"]|[^\\ -~])')",
"ESCAPE_DCT = {\n '\\\\': '\\\\\\\\',\n '\"': ... |
import simplejson
import cgi
class JSONFilter(object):
def __init__(self, app, mime_type='text/x-json'):
self.app = app
self.mime_type = mime_type
def __call__(self, environ, start_response):
# Read JSON POST input to jsonfilter.json if matching mime type
response = {'status': ... | [
[
1,
0,
0.025,
0.025,
0,
0.66,
0,
386,
0,
1,
0,
0,
386,
0,
0
],
[
1,
0,
0.05,
0.025,
0,
0.66,
0.3333,
934,
0,
1,
0,
0,
934,
0,
0
],
[
3,
0,
0.5125,
0.85,
0,
0.66,
... | [
"import simplejson",
"import cgi",
"class JSONFilter(object):\n def __init__(self, app, mime_type='text/x-json'):\n self.app = app\n self.mime_type = mime_type\n\n def __call__(self, environ, start_response):\n # Read JSON POST input to jsonfilter.json if matching mime type\n r... |
"""
Implementation of JSONDecoder
"""
import re
from scanner import Scanner, pattern
FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL
def _floatconstants():
import struct
import sys
_BYTES = '7FF80000000000007FF0000000000000'.decode('hex')
if sys.byteorder != 'big':
# NOTE(kgibbs): These lines m... | [
[
8,
0,
0.0072,
0.0108,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0144,
0.0036,
0,
0.66,
0.037,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0217,
0.0036,
0,
0.66,... | [
"\"\"\"\nImplementation of JSONDecoder\n\"\"\"",
"import re",
"from scanner import Scanner, pattern",
"FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL",
"def _floatconstants():\n import struct\n import sys\n _BYTES = '7FF80000000000007FF0000000000000'.decode('hex')\n if sys.byteorder != 'big':\n ... |
r"""
A simple, fast, extensible JSON encoder and decoder
JSON (JavaScript Object Notation) <http://json.org> is a subset of
JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data
interchange format.
simplejson exposes an API familiar to uses of the standard library
marshal and pickle modules.
Encoding b... | [
[
8,
0,
0.1674,
0.3303,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3348,
0.0045,
0,
0.66,
0.1,
162,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3462,
0.0181,
0,
0.66,
... | [
"r\"\"\"\nA simple, fast, extensible JSON encoder and decoder\n\nJSON (JavaScript Object Notation) <http://json.org> is a subset of\nJavaScript syntax (ECMA-262 3rd edition) used as a lightweight data\ninterchange format.\n\nsimplejson exposes an API familiar to uses of the standard library",
"__version__ = '1.3'... |
"""
Iterator based sre token scanner
"""
# NOTE(kgibbs): This line must be added to make this file work under
# Python 2.2, which is commonly used at Google.
from __future__ import generators
# NOTE(kgibbs): End changes.
import sre_parse, sre_compile, sre_constants
from sre_constants import BRANCH, SUBPATTERN
from re i... | [
[
8,
0,
0.0263,
0.0395,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0789,
0.0132,
0,
0.66,
0.1111,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.1053,
0.0132,
0,
0.66... | [
"\"\"\"\nIterator based sre token scanner\n\"\"\"",
"from __future__ import generators",
"import sre_parse, sre_compile, sre_constants",
"from sre_constants import BRANCH, SUBPATTERN",
"from re import VERBOSE, MULTILINE, DOTALL # NOTE(guido): Was 'from sre ...'",
"import re",
"__all__ = ['Scanner', 'pa... |
import cgi
import urllib
import time
import random
import urlparse
import hmac
import base64
VERSION = '1.0' # Hi Blaine!
HTTP_METHOD = 'GET'
SIGNATURE_METHOD = 'PLAINTEXT'
# Generic exception class
class OAuthError(RuntimeError):
def __init__(self, message='OAuth error occured.'):
self.message = message
... | [
[
1,
0,
0.0019,
0.0019,
0,
0.66,
0,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.0038,
0.0019,
0,
0.66,
0.0435,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0057,
0.0019,
0,
... | [
"import cgi",
"import urllib",
"import time",
"import random",
"import urlparse",
"import hmac",
"import base64",
"VERSION = '1.0' # Hi Blaine!",
"HTTP_METHOD = 'GET'",
"SIGNATURE_METHOD = 'PLAINTEXT'",
"class OAuthError(RuntimeError):\n def __init__(self, message='OAuth error occured.'):\n ... |
#!/usr/bin/python
#
# Copyright (C) 2007, 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 applicabl... | [
[
8,
0,
0.3273,
0.0182,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3818,
0.0182,
0,
0.66,
0.1667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.4455,
0.0364,
0,
0.66,... | [
"\"\"\"Errors used on the Python opensocial client libraries.\"\"\"",
"__author__ = 'davidbyttow@google.com (David Byttow)'",
"class Error(Exception):\n \"\"\"Base opensocial.client error type.\"\"\"",
" \"\"\"Base opensocial.client error type.\"\"\"",
"class ConfigError(Error):\n \"\"\"Raised when the c... |
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ... | [
[
1,
0,
0.1818,
0.0909,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.5455,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.3636,
0.0909,
1,
0.54,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj... |
import mimetypes
import os
import urlparse
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from django.conf import settings
from django.core.files.base import File
from django.core.files.storage import Storage
from django.core.files.uploadedfile import UploadedFile
from d... | [
[
1,
0,
0.0048,
0.0048,
0,
0.66,
0,
583,
0,
1,
0,
0,
583,
0,
0
],
[
1,
0,
0.0097,
0.0048,
0,
0.66,
0.0476,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0145,
0.0048,
0,
... | [
"import mimetypes",
"import os",
"import urlparse",
"try:\n from cStringIO import StringIO\nexcept ImportError:\n from StringIO import StringIO",
" from cStringIO import StringIO",
" from StringIO import StringIO",
"from django.conf import settings",
"from django.core.files.base import Fil... |
# Initialize Django.
from djangoappengine import main
from django.utils.importlib import import_module
from django.conf import settings
# Load all models.py to ensure signal handling installation or index
# loading of some apps.
for app in settings.INSTALLED_APPS:
try:
import_module('%s.models' % app)
... | [
[
1,
0,
0.0952,
0.0476,
0,
0.66,
0,
683,
0,
1,
0,
0,
683,
0,
0
],
[
1,
0,
0.1429,
0.0476,
0,
0.66,
0.2,
118,
0,
1,
0,
0,
118,
0,
0
],
[
1,
0,
0.1905,
0.0476,
0,
0.6... | [
"from djangoappengine import main",
"from django.utils.importlib import import_module",
"from django.conf import settings",
"for app in settings.INSTALLED_APPS:\n try:\n import_module('%s.models' % app)\n except ImportError:\n pass",
" try:\n import_module('%s.models' % app)\n ... |
from mapreduce import mapper_pipeline
from mapreduce import mapreduce_pipeline
def _convert_func_to_string(func):
return '%s.%s' % (func.__module__, func.__name__)
def _convert_model_to_string(model):
return '%s.%s' % (model.__module__, model.__name__)
def DjangoModelMapreduce(model,
... | [
[
1,
0,
0.0104,
0.0104,
0,
0.66,
0,
420,
0,
1,
0,
0,
420,
0,
0
],
[
1,
0,
0.0208,
0.0104,
0,
0.66,
0.2,
420,
0,
1,
0,
0,
420,
0,
0
],
[
2,
0,
0.0469,
0.0208,
0,
0.6... | [
"from mapreduce import mapper_pipeline",
"from mapreduce import mapreduce_pipeline",
"def _convert_func_to_string(func):\n return '%s.%s' % (func.__module__, func.__name__)",
" return '%s.%s' % (func.__module__, func.__name__)",
"def _convert_model_to_string(model):\n return '%s.%s' % (model.__modu... |
# Initialize Django
from djangoappengine import main
from google.appengine.ext.appstats.ui import app as application, main
if __name__ == '__main__':
main()
| [
[
1,
0,
0.25,
0.125,
0,
0.66,
0,
683,
0,
1,
0,
0,
683,
0,
0
],
[
1,
0,
0.5,
0.125,
0,
0.66,
0.5,
621,
0,
2,
0,
0,
621,
0,
0
],
[
4,
0,
0.9375,
0.25,
0,
0.66,
1,... | [
"from djangoappengine import main",
"from google.appengine.ext.appstats.ui import app as application, main",
"if __name__ == '__main__':\n main()",
" main()"
] |
# Initialize Django.
from djangoappengine import main
from google.appengine.ext.appstats.ui import app as application
| [
[
1,
0,
0.5,
0.25,
0,
0.66,
0,
683,
0,
1,
0,
0,
683,
0,
0
],
[
1,
0,
1,
0.25,
0,
0.66,
1,
621,
0,
1,
0,
0,
621,
0,
0
]
] | [
"from djangoappengine import main",
"from google.appengine.ext.appstats.ui import app as application"
] |
from django.db import models
from djangotoolbox.fields import BlobField
from ..db.db_settings import get_indexes
class EmailModel(models.Model):
email = models.EmailField()
number = models.IntegerField(null=True)
class DateTimeModel(models.Model):
datetime = models.DateTimeField()
datetime_auto_no... | [
[
1,
0,
0.0098,
0.0098,
0,
0.66,
0,
40,
0,
1,
0,
0,
40,
0,
0
],
[
1,
0,
0.0294,
0.0098,
0,
0.66,
0.0909,
111,
0,
1,
0,
0,
111,
0,
0
],
[
1,
0,
0.049,
0.0098,
0,
0.6... | [
"from django.db import models",
"from djangotoolbox.fields import BlobField",
"from ..db.db_settings import get_indexes",
"class EmailModel(models.Model):\n email = models.EmailField()\n number = models.IntegerField(null=True)",
" email = models.EmailField()",
" number = models.IntegerField(nu... |
from .test_backend import BackendTest
from .test_field_db_conversion import FieldDBConversionTest
from .test_field_options import FieldOptionsTest
from .test_filter import FilterTest
from .test_keys import KeysTest
from .test_mapreduce import DjangoModelInputReaderTest, DjangoModelIteratorTest
from .test_not_return_set... | [
[
1,
0,
0.1111,
0.1111,
0,
0.66,
0,
623,
0,
1,
0,
0,
623,
0,
0
],
[
1,
0,
0.2222,
0.1111,
0,
0.66,
0.125,
521,
0,
1,
0,
0,
521,
0,
0
],
[
1,
0,
0.3333,
0.1111,
0,
0... | [
"from .test_backend import BackendTest",
"from .test_field_db_conversion import FieldDBConversionTest",
"from .test_field_options import FieldOptionsTest",
"from .test_filter import FilterTest",
"from .test_keys import KeysTest",
"from .test_mapreduce import DjangoModelInputReaderTest, DjangoModelIterator... |
# Initialize App Engine SDK if necessary.
try:
from google.appengine.api import apiproxy_stub_map
except ImportError:
from .boot import setup_env
setup_env()
from djangoappengine.utils import on_production_server, have_appserver
DEBUG = not on_production_server
TEMPLATE_DEBUG = DEBUG
ROOT_URLCONF = 'url... | [
[
7,
0,
0.0519,
0.0649,
0,
0.66,
0,
0,
0,
1,
0,
0,
0,
0,
1
],
[
1,
1,
0.039,
0.013,
1,
0.56,
0,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
1,
0.0649,
0.013,
1,
0.56,
0,... | [
"try:\n from google.appengine.api import apiproxy_stub_map\nexcept ImportError:\n from .boot import setup_env\n setup_env()",
" from google.appengine.api import apiproxy_stub_map",
" from .boot import setup_env",
" setup_env()",
"from djangoappengine.utils import on_production_server, have... |
# Python 2.5 CGI handler.
import os
import sys
from djangoappengine.main import application
from google.appengine.ext.webapp.util import run_wsgi_app
from djangoappengine.boot import setup_logging, env_ext
from django.conf import settings
path_backup = None
def real_main():
# Reset path and environment variabl... | [
[
1,
0,
0.026,
0.013,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.039,
0.013,
0,
0.66,
0.0909,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0649,
0.013,
0,
0.66,... | [
"import os",
"import sys",
"from djangoappengine.main import application",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"from djangoappengine.boot import setup_logging, env_ext",
"from django.conf import settings",
"path_backup = None",
"def real_main():\n # Reset path and environme... |
import os
import sys
# Add parent folder to sys.path, so we can import boot.
# App Engine causes main.py to be reloaded if an exception gets raised
# on the first request of a main.py instance, so don't add project_dir
# multiple times.
project_dir = os.path.abspath(
os.path.dirname(os.path.dirname(os.path.dirnam... | [
[
1,
0,
0.0118,
0.0118,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0235,
0.0118,
0,
0.66,
0.0526,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.1118,
0.0235,
0,
... | [
"import os",
"import sys",
"project_dir = os.path.abspath(\n os.path.dirname(os.path.dirname(os.path.dirname(__file__))))",
"if project_dir not in sys.path or sys.path.index(project_dir) > 0:\n while project_dir in sys.path:\n sys.path.remove(project_dir)\n sys.path.insert(0, project_dir)",
... |
from django.core.management import execute_from_command_line
from django.core.management.base import BaseCommand
class Command(BaseCommand):
help = "Runs a command with access to the remote App Engine production " \
"server (e.g. manage.py remote shell)."
args = "remotecommand"
def run_from_ar... | [
[
1,
0,
0.0526,
0.0526,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
1,
0,
0.1053,
0.0526,
0,
0.66,
0.5,
931,
0,
1,
0,
0,
931,
0,
0
],
[
3,
0,
0.6316,
0.7895,
0,
0.6... | [
"from django.core.management import execute_from_command_line",
"from django.core.management.base import BaseCommand",
"class Command(BaseCommand):\n help = \"Runs a command with access to the remote App Engine production \" \\\n \"server (e.g. manage.py remote shell).\"\n args = \"remotecommand... |
import logging
import time
import sys
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
from ...boot import PROJECT_DIR
from ...utils import appconfig
PRE_DEPLOY_COMMANDS = ()
if 'mediagenerator' in settings.INSTALLED_APPS:
PRE_D... | [
[
1,
0,
0.0135,
0.0135,
0,
0.66,
0,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.027,
0.0135,
0,
0.66,
0.0769,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0405,
0.0135,
0,
0... | [
"import logging",
"import time",
"import sys",
"from django.conf import settings",
"from django.core.management import call_command",
"from django.core.management.base import BaseCommand",
"from ...boot import PROJECT_DIR",
"from ...utils import appconfig",
"PRE_DEPLOY_COMMANDS = ()",
"if 'mediage... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.