code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
import os.path try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension VERSION = "0.2" setup( name = "python-recsys", version = VERSION, description="A simple recommender system in python", author='Oscar Celma', author_email='ocelma@bmat...
[ [ 1, 0, 0.0435, 0.0435, 0, 0.66, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 7, 0, 0.1522, 0.1739, 0, 0.66, 0.3333, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.1304, 0.0435, 1, 0.13, ...
[ "import os.path", "try:\n from setuptools import setup, Extension\nexcept ImportError:\n from distutils.core import setup, Extension", " from setuptools import setup, Extension", " from distutils.core import setup, Extension", "VERSION = \"0.2\"", "setup(\n name = \"python-recsys\",\n ve...
import os import warnings warnings.simplefilter('ignore') TEST_DATA_PATH = os.path.join(os.path.dirname(__file__), 'data') MOVIELENS_DATA_PATH = os.path.join(TEST_DATA_PATH, 'movielens') def skip(x): x.__test__ = False return x
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0.2, 358, 0, 1, 0, 0, 358, 0, 0 ], [ 8, 0, 0.3636, 0.0909, 0, 0.6...
[ "import os", "import warnings", "warnings.simplefilter('ignore')", "TEST_DATA_PATH = os.path.join(os.path.dirname(__file__), 'data')", "MOVIELENS_DATA_PATH = os.path.join(TEST_DATA_PATH, 'movielens')", "def skip(x):\n x.__test__ = False\n return x", " x.__test__ = False", " return x" ]
import sys #To show some messages: import recsys.algorithm recsys.algorithm.VERBOSE = True from recsys.algorithm.factorize import SVD from recsys.datamodel.data import Data from recsys.evaluation.prediction import RMSE, MAE #Dataset PERCENT_TRAIN = int(sys.argv[2]) data = Data() data.load(sys.argv[1], sep='::', form...
[ [ 1, 0, 0.0256, 0.0256, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1026, 0.0256, 0, 0.66, 0.05, 155, 0, 1, 0, 0, 155, 0, 0 ], [ 14, 0, 0.1282, 0.0256, 0, 0...
[ "import sys", "import recsys.algorithm", "recsys.algorithm.VERBOSE = True", "from recsys.algorithm.factorize import SVD", "from recsys.datamodel.data import Data", "from recsys.evaluation.prediction import RMSE, MAE", "PERCENT_TRAIN = int(sys.argv[2])", "data = Data()", "data.load(sys.argv[1], sep='...
import sys import recsys.algorithm recsys.algorithm.VERBOSE = True from recsys.utils.svdlibc import SVDLIBC movielens = sys.argv[1] #ratings.dat movielens file path here svdlibc = SVDLIBC(movielens) svdlibc.to_sparse_matrix(sep='::', format={'col':0, 'row':1, 'value':2, 'ids': int}) svdlibc.compute() svd = svdlibc.exp...
[ [ 1, 0, 0.0714, 0.0714, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1429, 0.0714, 0, 0.66, 0.0833, 155, 0, 1, 0, 0, 155, 0, 0 ], [ 14, 0, 0.2143, 0.0714, 0, ...
[ "import sys", "import recsys.algorithm", "recsys.algorithm.VERBOSE = True", "from recsys.utils.svdlibc import SVDLIBC", "movielens = sys.argv[1] #ratings.dat movielens file path here", "svdlibc = SVDLIBC(movielens)", "svdlibc.to_sparse_matrix(sep='::', format={'col':0, 'row':1, 'value':2, 'ids': int})",...
from numpy import mean from operator import itemgetter from recsys.algorithm.baseclass import Algorithm from recsys.algorithm import VERBOSE class Baseline(Algorithm): def __init__(self): #Call parent constructor super(Baseline, self).__init__() # 'Cache' for user avg. rating self...
[ [ 1, 0, 0.0303, 0.0303, 0, 0.66, 0, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0606, 0.0303, 0, 0.66, 0.25, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.1212, 0.0303, 0, 0....
[ "from numpy import mean", "from operator import itemgetter", "from recsys.algorithm.baseclass import Algorithm", "from recsys.algorithm import VERBOSE", "class Baseline(Algorithm):\n def __init__(self):\n #Call parent constructor\n super(Baseline, self).__init__()\n\n # 'Cache' for u...
class Item: """ An item, with its related metadata information :param id: item id :type id: string or int :returns: an item instance """ def __init__(self, id): self._id = id self._data = None def __repr__(self): return str(self._id) def get_id(self): ...
[ [ 3, 0, 0.5147, 1, 0, 0.66, 0, 592, 0, 5, 0, 0, 0, 0, 1 ], [ 8, 1, 0.1618, 0.2353, 1, 0.33, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 1, 0.3235, 0.0882, 1, 0.33, 0.2, ...
[ "class Item:\n \"\"\"\n An item, with its related metadata information\n\n :param id: item id\n :type id: string or int\n :returns: an item instance", " \"\"\"\n An item, with its related metadata information\n\n :param id: item id\n :type id: string or int\n :returns: an item instan...
__all__ = ['data', 'item', 'user']
[ [ 14, 0, 1, 1, 0, 0.66, 0, 272, 0, 0, 0, 0, 0, 5, 0 ] ]
[ "__all__ = ['data', 'item', 'user']" ]
class User: """ User information, including her interaction with the items :param id: user id :type id: string or int :returns: a user instance """ def __init__(self, id): self._id = id self._items = [] def __repr__(self): return str(self._id) def get_id(s...
[ [ 3, 0, 0.5147, 1, 0, 0.66, 0, 61, 0, 5, 0, 0, 0, 0, 2 ], [ 8, 1, 0.1618, 0.2353, 1, 0.33, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 2, 1, 0.3235, 0.0882, 1, 0.33, 0.2, ...
[ "class User:\n \"\"\"\n User information, including her interaction with the items\n\n :param id: user id\n :type id: string or int\n :returns: a user instance", " \"\"\"\n User information, including her interaction with the items\n\n :param id: user id\n :type id: string or int\n :...
try: from divisi2.sparse import SparseMatrix as divisiSparseMatrix from divisi2 import reconstruct_similarity except: from csc.divisi2.sparse import SparseMatrix as divisiSparseMatrix from csc.divisi2 import reconstruct_similarity from operator import itemgetter class Matrix(object): def __init__(...
[ [ 7, 0, 0.0357, 0.0612, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0204, 0.0102, 1, 0.55, 0, 623, 0, 1, 0, 0, 623, 0, 0 ], [ 1, 1, 0.0306, 0.0102, 1, 0.55, ...
[ "try:\n from divisi2.sparse import SparseMatrix as divisiSparseMatrix\n from divisi2 import reconstruct_similarity\nexcept:\n from csc.divisi2.sparse import SparseMatrix as divisiSparseMatrix\n from csc.divisi2 import reconstruct_similarity", " from divisi2.sparse import SparseMatrix as divisiSpars...
""" .. module:: algorithm :synopsis: Base class Algorithm .. moduleauthor:: Oscar Celma <ocelma@bmat.com> """ import sys from scipy.cluster.vq import kmeans2 #for kmeans method from random import randint #for kmeans++ (_kinit method) #from scipy.linalg import norm #for kmeans++ (_kinit method) from scipy import ar...
[ [ 8, 0, 0.0153, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0305, 0.0038, 0, 0.66, 0.0909, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0344, 0.0038, 0, 0.66...
[ "\"\"\"\n.. module:: algorithm\n :synopsis: Base class Algorithm\n\n.. moduleauthor:: Oscar Celma <ocelma@bmat.com>\n\n\"\"\"", "import sys", "from scipy.cluster.vq import kmeans2 #for kmeans method", "from random import randint #for kmeans++ (_kinit method)", "from scipy import array #for kmeans method",...
VERBOSE = False #Set to True to get some messages __all__ = ['matrix', 'factorize']
[ [ 14, 0, 0.5, 0.5, 0, 0.66, 0, 721, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 1, 0.5, 0, 0.66, 1, 272, 0, 0, 0, 0, 0, 5, 0 ] ]
[ "VERBOSE = False #Set to True to get some messages", "__all__ = ['matrix', 'factorize']" ]
# -*- coding: utf-8 -*- """ .. module:: algorithm :synopsis: Factorization recsys algorithms .. moduleauthor:: Oscar Celma <ocelma@bmat.com> """ import os import sys import zipfile try: import divisi2 except: from csc import divisi2 from numpy import loads, mean, sum, nan from operator import itemgetter f...
[ [ 8, 0, 0.005, 0.007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0089, 0.001, 0, 0.66, 0.04, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0099, 0.001, 0, 0.66, ...
[ "\"\"\"\n.. module:: algorithm\n :synopsis: Factorization recsys algorithms\n\n.. moduleauthor:: Oscar Celma <ocelma@bmat.com>\n\n\"\"\"", "import os", "import sys", "import zipfile", "try:\n import divisi2\nexcept:\n from csc import divisi2", " import divisi2", " from csc import divisi2",...
from math import sqrt from scipy.stats import pearsonr from recsys.evaluation import ROUND_FLOAT from recsys.evaluation.baseclass import Evaluation #Predictive-Based Metrics class MAE(Evaluation): """ Mean Absolute Error :param data: a tuple containing the Ground Truth data, and the Test data :type d...
[ [ 1, 0, 0.0137, 0.0137, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0274, 0.0137, 0, 0.66, 0.1667, 413, 0, 1, 0, 0, 413, 0, 0 ], [ 1, 0, 0.0548, 0.0137, 0, ...
[ "from math import sqrt", "from scipy.stats import pearsonr", "from recsys.evaluation import ROUND_FLOAT", "from recsys.evaluation.baseclass import Evaluation", "class MAE(Evaluation):\n \"\"\"\n Mean Absolute Error\n\n :param data: a tuple containing the Ground Truth data, and the Test data\n :t...
from recsys.evaluation.baseclass import Evaluation from recsys.evaluation import ROUND_FLOAT # Decision-Based Metrics. Evaluating Top-N recommendations class PrecisionRecallF1(Evaluation): def __init__(self): super(PrecisionRecallF1, self).__init__() def add_predicted_value(self, rating_pred): # Synon...
[ [ 1, 0, 0.0303, 0.0303, 0, 0.66, 0, 724, 0, 1, 0, 0, 724, 0, 0 ], [ 1, 0, 0.0606, 0.0303, 0, 0.66, 0.5, 356, 0, 1, 0, 0, 356, 0, 0 ], [ 3, 0, 0.5606, 0.8485, 0, 0.6...
[ "from recsys.evaluation.baseclass import Evaluation", "from recsys.evaluation import ROUND_FLOAT", "class PrecisionRecallF1(Evaluation):\n def __init__(self):\n super(PrecisionRecallF1, self).__init__()\n\n def add_predicted_value(self, rating_pred): # Synonym of self.add_test\n self.add_tes...
from operator import itemgetter from numpy import nan class Evaluation(object): """ Base class for Evaluation It has the basic methods to load ground truth and test data. Any other Evaluation class derives from this base class. :param data: A list of tuples, containing the real and the predicted ...
[ [ 1, 0, 0.0096, 0.0096, 0, 0.66, 0, 616, 0, 1, 0, 0, 616, 0, 0 ], [ 1, 0, 0.0192, 0.0096, 0, 0.66, 0.5, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 3, 0, 0.5144, 0.9615, 0, 0.6...
[ "from operator import itemgetter", "from numpy import nan", "class Evaluation(object):\n \"\"\"\n Base class for Evaluation\n\n It has the basic methods to load ground truth and test data.\n Any other Evaluation class derives from this base class.\n\n :param data: A list of tuples, containing the...
ROUND_FLOAT=6 __all__ = ['decision', 'prediction', 'ranking']
[ [ 14, 0, 0.5, 0.5, 0, 0.66, 0, 672, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 1, 0.5, 0, 0.66, 1, 272, 0, 0, 0, 0, 0, 5, 0 ] ]
[ "ROUND_FLOAT=6", "__all__ = ['decision', 'prediction', 'ranking']" ]
from numpy import mean from scipy.stats import kendalltau, spearmanr, rankdata from operator import itemgetter from recsys.evaluation import ROUND_FLOAT from recsys.evaluation.baseclass import Evaluation def _compute(f, ground_truth, test): elems = len(list(set(map(itemgetter(0), ground_truth)) & set(map(itemgett...
[ [ 1, 0, 0.0054, 0.0054, 0, 0.66, 0, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 1, 0, 0.0109, 0.0054, 0, 0.66, 0.0833, 413, 0, 3, 0, 0, 413, 0, 0 ], [ 1, 0, 0.0163, 0.0054, 0, ...
[ "from numpy import mean", "from scipy.stats import kendalltau, spearmanr, rankdata", "from operator import itemgetter", "from recsys.evaluation import ROUND_FLOAT", "from recsys.evaluation.baseclass import Evaluation", "def _compute(f, ground_truth, test):\n elems = len(list(set(map(itemgetter(0), grou...
''' Created on Jul 7, 2012 @author: alex ''' class Matrix(dict): ''' Base Class of Matrix ''' def __init__(self): ''' Constructor ''' self = dict() def addToMat(self, row, col, value): if self.has_key(row): if self[row].has_key(col): ...
[ [ 8, 0, 0.0508, 0.0847, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.5593, 0.8983, 0, 0.66, 1, 519, 0, 8, 0, 0, 827, 0, 21 ], [ 8, 1, 0.1525, 0.0508, 1, 0.35, ...
[ "'''\nCreated on Jul 7, 2012\n\n@author: alex\n'''", "class Matrix(dict):\n '''\n Base Class of Matrix\n '''\n\n\n def __init__(self):\n '''", " '''\n Base Class of Matrix\n '''", " def __init__(self):\n '''\n Constructor\n '''\n self = dict()", " ...
import sys import codecs import os from operator import itemgetter import csv from numpy import array from divisi2.ordered_set import OrderedSet from csc.divisi2.dense import DenseMatrix from recsys.algorithm.factorize import SVD from recsys.datamodel.data import Data from recsys.algorithm import VERBOSE # Path to 'sv...
[ [ 1, 0, 0.0049, 0.0049, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0097, 0.0049, 0, 0.66, 0.0769, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.0146, 0.0049, 0, ...
[ "import sys", "import codecs", "import os", "from operator import itemgetter", "import csv", "from numpy import array", "from divisi2.ordered_set import OrderedSet", "from csc.divisi2.dense import DenseMatrix", "from recsys.algorithm.factorize import SVD", "from recsys.datamodel.data import Data",...
''' Created on Jul 7, 2012 @author: alex ''' class Vector(dict): ''' classdocs ''' def __init__(self): ''' Constructor ''' self = dict() def getItem(self, key): if self.has_key(key): return float(self[key]) return None...
[ [ 8, 0, 0.0811, 0.1351, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.5811, 0.8108, 0, 0.66, 1, 544, 0, 5, 0, 0, 827, 0, 8 ], [ 8, 1, 0.2432, 0.0811, 1, 0.52, ...
[ "'''\nCreated on Jul 7, 2012\n\n@author: alex\n'''", "class Vector(dict):\n '''\n classdocs\n '''\n\n\n def __init__(self):\n '''", " '''\n classdocs\n '''", " def __init__(self):\n '''\n Constructor\n '''\n self = dict()", " '''\n Con...
# recsys.utils module
[]
[]
__name__ = "recsys" __doc__ = "python-recsys: A simple python recommender system" __author__ = "Oscar Celma" __version__ = "0.1" __license__ = "GPL" __maintainer__ = "Oscar Celma" __email__ = "ocelma@gmail.com" __status__ = "Beta" __all__ = ['algorithm', 'datamodel', 'evaluation', 'utils']
[ [ 14, 0, 0.1111, 0.1111, 0, 0.66, 0, 136, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2222, 0.1111, 0, 0.66, 0.125, 155, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3333, 0.1111, 0, 0....
[ "__name__ = \"recsys\"", "__doc__ = \"python-recsys: A simple python recommender system\"", "__author__ = \"Oscar Celma\"", "__version__ = \"0.1\"", "__license__ = \"GPL\"", "__maintainer__ = \"Oscar Celma\"", "__email__ = \"ocelma@gmail.com\"", "__status__ = \"Beta\"", "__all__ = ['algorithm', 'dat...
""" tipfy.ext.auth ============== This extension provides authentication utilities for `tipfy <http://www.tipfy.org/>`_. It allows users to authenticate using own users, OpenId, Oauth, Facebook, Google, FriendFeed, Twitter or App Engine's built-in users API. Try a multi-authentication working example at `http://tipfy...
[ [ 8, 0, 0.1935, 0.371, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3871, 0.0161, 0, 0.66, 0.5, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 8, 0, 0.7097, 0.5968, 0, 0.66, ...
[ "\"\"\"\ntipfy.ext.auth\n==============\n\nThis extension provides authentication utilities for\n`tipfy <http://www.tipfy.org/>`_. It allows users to authenticate using own\nusers, OpenId, Oauth, Facebook, Google, FriendFeed, Twitter or App Engine's\nbuilt-in users API.", "from setuptools import setup", "setup(...
# -*- coding: utf-8 -*- """ tipfy.ext.auth.model ~~~~~~~~~~~~~~~~~~~~ Base model for authenticated users. This module derives from `Zine`_. :copyright: 2010 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from __future__ import absolute_import import datetime import string ...
[ [ 8, 0, 0.024, 0.0377, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0445, 0.0034, 0, 0.66, 0.0833, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0479, 0.0034, 0, 0.66,...
[ "\"\"\"\n tipfy.ext.auth.model\n ~~~~~~~~~~~~~~~~~~~~\n\n Base model for authenticated users.\n\n This module derives from `Zine`_.", "from __future__ import absolute_import", "import datetime", "import string", "from random import choice", "from hashlib import sha1, md5", "from google.appen...
# -*- coding: utf-8 -*- """ tipfy.ext.auth ~~~~~~~~~~~~~~ User authentication extension. :copyright: 2010 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from __future__ import absolute_import from google.appengine.api import users from tipfy import abort, cached_property, imp...
[ [ 1, 0, 0.0021, 0.0021, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0063, 0.0021, 0, 0.66, 0.0714, 279, 0, 1, 0, 0, 279, 0, 0 ], [ 1, 0, 0.0106, 0.0021, 0, ...
[ "from __future__ import absolute_import", "from google.appengine.api import users", "from tipfy import abort, cached_property, import_string, redirect", "class BaseAuth(object):\n auth_use_https = False\n\n @cached_property\n def auth_user_model(self):\n \"\"\"Returns the configured user model...
# -*- coding: utf-8 -*- """ To run the tests, first install the following packages: nose nosegae==0.1.7 webtest gaetestbed coverage Then build the project: cd project python2.5 bootstrap.py bin/buildout Then run from the tests dir: python2.5 run_tests.py """ import os import sys...
[ [ 8, 0, 0.3235, 0.5588, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6176, 0.0294, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.6471, 0.0294, 0, 0.66, ...
[ "\"\"\"\nTo run the tests, first install the following packages:\n\n nose\n nosegae==0.1.7\n webtest\n gaetestbed\n coverage", "import os", "import sys", "import nose", "if __name__ == '__main__':\n base = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))\n app = os.path.jo...
from tipfy import RequestHandler, Response from tipfy.ext import auth class AuthHandler(RequestHandler): middleware = [auth.AuthMiddleware] def get(self, **kwargs): return Response('Hello, World!') class SignupHandler(RequestHandler): middleware = [auth.AuthMiddleware] def get(self, **kwar...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 748, 0, 2, 0, 0, 748, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.3333, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 3, 0, 0.4375, 0.3125, 0, 0...
[ "from tipfy import RequestHandler, Response", "from tipfy.ext import auth", "class AuthHandler(RequestHandler):\n middleware = [auth.AuthMiddleware]\n\n def get(self, **kwargs):\n return Response('Hello, World!')", " middleware = [auth.AuthMiddleware]", " def get(self, **kwargs):\n ...
# -*- coding: utf-8 -*- """ main ~~~~ Run Tipfy apps. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ import sys if 'lib' not in sys.path: # Add /lib as primary libraries directory, with fallback to /distlib # and optionally to distlib loaded using zipimpor...
[ [ 8, 0, 0.1935, 0.2903, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3548, 0.0323, 0, 0.66, 0.1429, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.4677, 0.129, 0, 0.66,...
[ "\"\"\"\n main\n ~~~~\n\n Run Tipfy apps.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE for more details.", "import sys", "if 'lib' not in sys.path:\n # Add /lib as primary libraries directory, with fallback to /distlib\n # and optionally to distlib loaded using zipimport....
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, import_string def get_rules(app): """Returns a list of URL rules for the application. The list can be defined entirely here o...
[ [ 8, 0, 0.1714, 0.2571, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3143, 0.0286, 0, 0.66, 0.5, 748, 0, 2, 0, 0, 748, 0, 0 ], [ 2, 0, 0.7, 0.6286, 0, 0.66, ...
[ "\"\"\"\n urls\n ~~~~\n\n URL definitions.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE.txt for more details.", "from tipfy import Rule, import_string", "def get_rules(app):\n \"\"\"Returns a list of URL rules for the application. The list can be\n defined entirely here o...
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configurations for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware'...
[ [ 8, 0, 0.2609, 0.3913, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4783, 0.0435, 0, 0.66, 0.5, 308, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.8043, 0.4348, 0, 0.66, ...
[ "\"\"\"\n config\n ~~~~~~\n\n Configuration settings.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE for more details.", "config = {}", "config['tipfy'] = {\n # Enable debugger. It will be loaded only in development.\n 'middleware': [\n 'tipfy.ext.debugger.DebuggerMi...
# -*- coding: utf-8 -*- """ handlers ~~~~~~~~ Hello, World!: the simplest tipfy app. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ from tipfy import RequestHandler, Response from tipfy.ext.jinja2 import render_response class HelloWorldHandler(RequestHandler): ...
[ [ 8, 0, 0.25, 0.375, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4583, 0.0417, 0, 0.66, 0.25, 748, 0, 2, 0, 0, 748, 0, 0 ], [ 1, 0, 0.5, 0.0417, 0, 0.66, 0....
[ "\"\"\"\n handlers\n ~~~~~~~~\n\n Hello, World!: the simplest tipfy app.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE for more details.", "from tipfy import RequestHandler, Response", "from tipfy.ext.jinja2 import render_response", "class HelloWorldHandler(RequestHandler):\n ...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule def get_rules(app): """Returns a list of URL rules for the Hello, World! application. :param app: The WSGI applicatio...
[ [ 8, 0, 0.2222, 0.3333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4074, 0.037, 0, 0.66, 0.5, 748, 0, 1, 0, 0, 748, 0, 0 ], [ 2, 0, 0.7593, 0.5185, 0, 0.66, ...
[ "\"\"\"\n urls\n ~~~~\n\n URL definitions.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE.txt for more details.", "from tipfy import Rule", "def get_rules(app):\n \"\"\"Returns a list of URL rules for the Hello, World! application.\n\n :param app:\n The WSGI applicat...
############################################################################## # # Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SO...
[ [ 8, 0, 0.1446, 0.0661, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1901, 0.0083, 0, 0.66, 0.04, 688, 0, 5, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1983, 0.0083, 0, 0.66, ...
[ "\"\"\"Bootstrap a buildout-based project\n\nSimply run this script in a directory containing a buildout.cfg.\nThe script accepts buildout command-line options, so you can\nuse the -c option to specify an alternate configuration file.\n\n$Id: bootstrap.py 105417 2009-11-01 15:15:20Z tarek $\n\"\"\"", "import os, ...
from django.utils import simplejson from tipfy import (RequestHandler, RequestRedirect, Response, abort, cached_property, redirect, url_for) from tipfy.ext.auth import MultiAuthMixin, login_required, user_required from tipfy.ext.auth.facebook import FacebookMixin from tipfy.ext.auth.friendfeed import FriendFeedMix...
[ [ 1, 0, 0.003, 0.003, 0, 0.66, 0, 944, 0, 1, 0, 0, 944, 0, 0 ], [ 1, 0, 0.0104, 0.0059, 0, 0.66, 0.0417, 748, 0, 7, 0, 0, 748, 0, 0 ], [ 1, 0, 0.0148, 0.003, 0, 0.6...
[ "from django.utils import simplejson", "from tipfy import (RequestHandler, RequestRedirect, Response, abort,\n cached_property, redirect, url_for)", "from tipfy.ext.auth import MultiAuthMixin, login_required, user_required", "from tipfy.ext.auth.facebook import FacebookMixin", "from tipfy.ext.auth.friend...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, import_string def get_rules(app): """Returns a list of URL rules for the application. The list can be defined entirely here o...
[ [ 8, 0, 0.1538, 0.2308, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2821, 0.0256, 0, 0.66, 0.5, 748, 0, 2, 0, 0, 748, 0, 0 ], [ 2, 0, 0.6795, 0.6667, 0, 0.66, ...
[ "\"\"\"\n urls\n ~~~~\n\n URL definitions.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE.txt for more details.", "from tipfy import Rule, import_string", "def get_rules(app):\n \"\"\"Returns a list of URL rules for the application. The list can be\n defined entirely here o...
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configurations for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware'...
[ [ 8, 0, 0.1463, 0.2195, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2683, 0.0244, 0, 0.66, 0.1667, 308, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.439, 0.2195, 0, 0.66,...
[ "\"\"\"\n config\n ~~~~~~\n\n Configuration settings.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE for more details.", "config = {}", "config['tipfy'] = {\n # Enable debugger. It will be loaded only in development.\n 'middleware': [\n 'tipfy.ext.debugger.DebuggerMi...
from django.utils import simplejson from tipfy import RequestHandler, RequestRedirect, cached_property, redirect from tipfy.ext.auth import AppEngineAuthMixin, login_required, user_required from tipfy.ext.jinja2 import Jinja2Mixin from tipfy.ext.session import AllSessionMixins, SessionMiddleware from tipfy.ext.wtforms...
[ [ 1, 0, 0.0112, 0.0112, 0, 0.66, 0, 944, 0, 1, 0, 0, 944, 0, 0 ], [ 1, 0, 0.0337, 0.0112, 0, 0.66, 0.1, 748, 0, 4, 0, 0, 748, 0, 0 ], [ 1, 0, 0.0449, 0.0112, 0, 0.6...
[ "from django.utils import simplejson", "from tipfy import RequestHandler, RequestRedirect, cached_property, redirect", "from tipfy.ext.auth import AppEngineAuthMixin, login_required, user_required", "from tipfy.ext.jinja2 import Jinja2Mixin", "from tipfy.ext.session import AllSessionMixins, SessionMiddlewar...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, import_string def get_rules(app): """Returns a list of URL rules for the application. The list can be defined entirely here o...
[ [ 8, 0, 0.2069, 0.3103, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3793, 0.0345, 0, 0.66, 0.5, 748, 0, 2, 0, 0, 748, 0, 0 ], [ 2, 0, 0.7414, 0.5517, 0, 0.66, ...
[ "\"\"\"\n urls\n ~~~~\n\n URL definitions.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE.txt for more details.", "from tipfy import Rule, import_string", "def get_rules(app):\n \"\"\"Returns a list of URL rules for the application. The list can be\n defined entirely here o...
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configurations for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware'...
[ [ 8, 0, 0.2308, 0.3462, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4231, 0.0385, 0, 0.66, 0.3333, 308, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.6923, 0.3462, 0, 0.66...
[ "\"\"\"\n config\n ~~~~~~\n\n Configuration settings.\n\n :copyright: 2009 by tipfy.org.\n :license: BSD, see LICENSE for more details.", "config = {}", "config['tipfy'] = {\n # Enable debugger. It will be loaded only in development.\n 'middleware': [\n 'tipfy.ext.debugger.DebuggerMi...
# # Generate and deploy the jar and associated files to the Sonatype maven repository. # import os, re, tempfile, subprocess #, sys, datetime, zipfile # Location of the source file that defines the current version VERSION_FILE = '../src/com/caverock/androidsvg/SVG.java' # Version regex VERSION_RE = '\sVE...
[ [ 1, 0, 0.0376, 0.0075, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0602, 0.0075, 0, 0.66, 0.0769, 837, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0827, 0.0075, 0, ...
[ "import os, re, tempfile, subprocess #, sys, datetime, zipfile", "VERSION_FILE = '../src/com/caverock/androidsvg/SVG.java'", "VERSION_RE = '\\sVERSION\\s*=\\s*\"([\\d\\w.-]+)\"'", "ORIG_POM_FILE = 'src-pom.xml'", "POM_VERSION_RE = '{{VERSION}}'", "JAR_FILE = '../bin/androidsvg_1.2.jar'", "AAR_FILE = '...
# # Build an Android .aar file suitable for including in projects in Android Studio # (c) 2014 Paul LeBeau paul@caverock.com # Released under the Apache v2 license # import sys, os, zipfile, StringIO, ConfigParser # Configration # The default locations assume that this script has been placed in a subfolder...
[ [ 1, 0, 0.0522, 0.0075, 0, 0.66, 0, 509, 0, 5, 0, 0, 509, 0, 0 ], [ 14, 0, 0.1045, 0.0075, 0, 0.66, 0.1, 2, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.4291, 0.597, 0, 0.66, ...
[ "import sys, os, zipfile, StringIO, ConfigParser", "libraryProjectDir = \".\\\\\"", "def main():\n\n if not os.path.isdir(libraryProjectDir):\n fatal_error(\"Bad project directory (projectDir) setting\")\n\n # We need the canonical name\n projectDir = os.path.abspath(libraryProjectDir)", " if not os.pa...
#!/usr/bin/python2.6 # # Copyright 2011 Google Inc. All Rights Reserved. # # 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...
[ [ 8, 0, 0.0841, 0.0047, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0935, 0.0047, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1028, 0.0047, 0, 0.66,...
[ "\"\"\"Build the ScriptCover Extension.\"\"\"", "__author__ = 'ekamenskaya@google.com (Ekaterina Kamenskaya)'", "import logging", "import optparse", "import os", "import shutil", "import subprocess", "import urllib", "import zipfile", "CHECKOUT_CLOSURE_COMMAND = ('svn checkout http://closure-libra...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # 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 l...
[ [ 8, 0, 0.1818, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2032, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.2219, 0.0107, 0, 0.66, ...
[ "\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
[ [ 8, 0, 0.0318, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0636, 0.0091, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0727, 0.0091, 0, 0.66...
[ "\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"", "__author__ = \"Joe Gregorio (joe@bitworking.org)\"", "__copyright__ = \"Copyright 2006, Joe Gregorio\"", "__contributors__ = []", "__version__ = \"1.0.0\"", "__license__ = \"MIT\"", "__history__ = \"\"\"\n\"\"\"", "import urlparse", "escape_...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. 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 ...
[ [ 8, 0, 0.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 0.0023, 0, 0.66, ...
[ "\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # 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 l...
[ [ 8, 0, 0.1818, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2032, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.2219, 0.0107, 0, 0.66, ...
[ "\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. 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 ...
[ [ 8, 0, 0.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 0.0023, 0, 0.66, ...
[ "\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
[ [ 8, 0, 0.0318, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0636, 0.0091, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0727, 0.0091, 0, 0.66...
[ "\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"", "__author__ = \"Joe Gregorio (joe@bitworking.org)\"", "__copyright__ = \"Copyright 2006, Joe Gregorio\"", "__contributors__ = []", "__version__ = \"1.0.0\"", "__license__ = \"MIT\"", "__history__ = \"\"\"\n\"\"\"", "import urlparse", "escape_...