code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1429, 0.0039, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1467, 0.0039, 0, 0.66, 0.125, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1506, 0.0039, 0, 0...
[ "from maya import cmds as MayaCmds", "from maya import mel as Mel", "import os", "import unittest", "import util", "def makeRobot():\n MayaCmds.polyCube(name=\"head\")\n MayaCmds.move(0, 4, 0, r=1)\n\n MayaCmds.polyCube(name=\"chest\")\n MayaCmds.scale(2, 2.5, 1)\n MayaCmds.move(0, 2, 0, r=...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.25, 0.0068, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2568, 0.0068, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2635, 0.0068, 0, 0.66...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class TransformTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files :", " def setUp(self):\n...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1209, 0.0033, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1242, 0.0033, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1275, 0.0033, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "def testNurbsCurveRW( self, isGroup, abcFileName, inText):\n\n MayaCmds.file(new=True, force=True)\n name = MayaCmds.textCurves( font='Courier', text=inText )\n if isGroup == True :\n MayaCmds.addAttr(name[0...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.1171, 0.0032, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1203, 0.0032, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1234, 0.0032, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class subframesTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n for f in self.__files:", "...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.25, 0.0068, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2568, 0.0068, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2635, 0.0068, 0, 0.66,...
[ "from maya import cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class AnimNurbsCurveTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher']]\n self.__files = []\n...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.5139, 0.0139, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.5278, 0.0139, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5417, 0.0139, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class AnimPointPrimitiveTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n\n def tearDown(self):", " def setUp(self):\n MayaCmds.file(...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with...
[ [ 1, 0, 0.209, 0.0056, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.2147, 0.0056, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2203, 0.0056, 0, 0.66...
[ "import maya.cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class animPropTest(unittest.TestCase):\n\n#-------------------------------------------------------------------------\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcSt...
#!/usr/bin/env mayapy ##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks, Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source ...
[ [ 1, 0, 0.3905, 0.0095, 0, 0.66, 0, 958, 0, 1, 0, 0, 958, 0, 0 ], [ 1, 0, 0.4, 0.0095, 0, 0.66, 0.04, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.4095, 0.0095, 0, 0.66,...
[ "import glob", "import os", "import sys", "import time", "import unittest", "import maya.standalone", "maya.standalone.initialize(name='python')", "from maya import cmds as MayaCmds", "from maya.mel import eval as MelEval", "usage = \"\"\"\nUsage:\nmayapy RunTests.py AbcExport AbcImport AbcStitche...
#!/usr/bin/env python2.6 #-*- mode: python -*- ##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistrib...
[ [ 1, 0, 0.2033, 0.0055, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.2088, 0.0055, 0, 0.66, 0.1667, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2143, 0.0055, 0, ...
[ "from __future__ import with_statement", "import os, sys, re", "from Path import Path", "COMMENT = re.compile( r\"//|#\" )", "WS = re.compile( r\"\\s\" )", "class CacheEntry( object ):\n def __init__( self, _line ):\n line = WS.sub( \"\", str( _line ) )\n\n if not line:\n retur...
##-***************************************************************************** ## ## Copyright (c) 2009-2011, ## Sony Pictures Imageworks Inc. and ## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. ## ## All rights reserved. ## ## Redistribution and use in source and binary forms, with ...
[ [ 1, 0, 0.9737, 0.0263, 0, 0.66, 0, 754, 0, 1, 0, 0, 754, 0, 0 ], [ 1, 0, 1, 0.0263, 0, 0.66, 1, 610, 0, 2, 0, 0, 610, 0, 0 ] ]
[ "from Path import Path", "from CMakeCache import CMakeCache, CacheEntry" ]
#!/usr/bin/env python # Author: A. S. Budden ## Date:: 29th March 2010 ## ## RevTag:: r398 ## import os import sys import optparse import re import fnmatch import glob import subprocess revision = "## RevTag:: r398 ##".strip('# ').replace('RevTag::', 'revision') field_processor = re.compile(...
[ [ 1, 0, 0.0071, 0.0012, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0082, 0.0012, 0, 0.66, 0.037, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0094, 0.0012, 0, 0...
[ "import os", "import sys", "import optparse", "import re", "import fnmatch", "import glob", "import subprocess", "revision = \"## RevTag:: r398 ##\".strip('# ').replace('RevTag::', 'revision')", "field_processor = re.compile(\nr'''\n\t^ # Start of the line\n\t(?P<keyword>.*?) # Capt...
from distutils.core import setup import py2exe # for console program use 'console = [{"script" : "scriptname.py"}] setup(console=[{"script" : "../../mktypes.py"}])
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.5, 768, 0, 1, 0, 0, 768, 0, 0 ], [ 8, 0, 1, 0.2, 0, 0.66, 1, 234, ...
[ "from distutils.core import setup", "import py2exe", "setup(console=[{\"script\" : \"../../mktypes.py\"}])" ]
#!/usr/bin/env python # Author: A. S. Budden ## Date:: 29th March 2010 ## ## RevTag:: r398 ## import os import sys import optparse import re import fnmatch import glob import subprocess revision = "## RevTag:: r398 ##".strip('# ').replace('RevTag::', 'revision') field_processor = re.compile(...
[ [ 1, 0, 0.0071, 0.0012, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0082, 0.0012, 0, 0.66, 0.037, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0094, 0.0012, 0, 0...
[ "import os", "import sys", "import optparse", "import re", "import fnmatch", "import glob", "import subprocess", "revision = \"## RevTag:: r398 ##\".strip('# ').replace('RevTag::', 'revision')", "field_processor = re.compile(\nr'''\n\t^ # Start of the line\n\t(?P<keyword>.*?) # Capt...
from setuptools import setup, find_packages version = '0.1.0' setup(name='abu.flashpolicy', version=version, description='', long_description="""\ """, # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Framework :: Plone", "Frame...
[ [ 1, 0, 0.0278, 0.0278, 0, 0.66, 0, 182, 0, 2, 0, 0, 182, 0, 0 ], [ 14, 0, 0.0833, 0.0278, 0, 0.66, 0.5, 623, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.5694, 0.8889, 0, 0.66...
[ "from setuptools import setup, find_packages", "version = '0.1.0'", "setup(name='abu.flashpolicy',\n version=version,\n description='',\n long_description=\"\"\"\\\n\"\"\",\n # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers\n classifiers=[\n \"Framewo...
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
[ [ 7, 0, 0.6667, 0.8333, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 3 ], [ 8, 1, 0.5, 0.1667, 1, 0.9, 0, 736, 3, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.8333, 0.1667, 1, 0.9, 0, ...
[ "try:\n __import__('pkg_resources').declare_namespace(__name__)\nexcept ImportError:\n from pkgutil import extend_path\n __path__ = extend_path(__path__, __name__)", " __import__('pkg_resources').declare_namespace(__name__)", " from pkgutil import extend_path", " __path__ = extend_path(__pat...
from setuptools import setup, find_packages version = '0.1.0' setup(name='abu.admin', version=version, description='', long_description="""\ """, # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers classifiers=[ "Framework :: Plone", "Framework :...
[ [ 1, 0, 0.025, 0.025, 0, 0.66, 0, 182, 0, 2, 0, 0, 182, 0, 0 ], [ 14, 0, 0.075, 0.025, 0, 0.66, 0.5, 623, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.55, 0.875, 0, 0.66, 1...
[ "from setuptools import setup, find_packages", "version = '0.1.0'", "setup(name='abu.admin',\n version=version,\n description='',\n long_description=\"\"\"\\\n\"\"\",\n # Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers\n classifiers=[\n \"Framework :: ...
# -*- coding:utf-8 -*- class Interface(object): def version(self): raise NotImplementedError def init(self, path): raise NotImplementedError def backup(self, path, backup_file): raise NotImplementedError def restore(self, path, backup_file): raise NotImplementedError ...
[ [ 3, 0, 0.5556, 0.8333, 0, 0.66, 0, 270, 0, 5, 0, 0, 186, 0, 0 ], [ 2, 1, 0.25, 0.1111, 1, 0.78, 0, 623, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.4167, 0.1111, 1, 0.78, ...
[ "class Interface(object):\n def version(self):\n raise NotImplementedError\n\n def init(self, path):\n raise NotImplementedError\n\n def backup(self, path, backup_file):", " def version(self):\n raise NotImplementedError", " def init(self, path):\n raise NotImplemented...
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: from pkgutil import extend_path __path__ = extend_path(__path__, __name__)
[ [ 7, 0, 0.6667, 0.8333, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 3 ], [ 8, 1, 0.5, 0.1667, 1, 0.17, 0, 736, 3, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.8333, 0.1667, 1, 0.17, 0, ...
[ "try:\n __import__('pkg_resources').declare_namespace(__name__)\nexcept ImportError:\n from pkgutil import extend_path\n __path__ = extend_path(__path__, __name__)", " __import__('pkg_resources').declare_namespace(__name__)", " from pkgutil import extend_path", " __path__ = extend_path(__pat...
#!/usr/bin/env python def main(): with open('README') as f: print f.read()
[ [ 2, 0, 0.6667, 0.5, 0, 0.66, 0, 624, 0, 0, 0, 0, 0, 0, 3 ], [ 8, 1, 0.8333, 0.1667, 1, 0.93, 0, 535, 3, 1, 0, 0, 0, 0, 2 ] ]
[ "def main():\n with open('README') as f:\n print(f.read())", " print(f.read())" ]
#!/usr/bin/env python def main(): with open('README') as f: print f.read()
[ [ 2, 0, 0.6667, 0.5, 0, 0.66, 0, 624, 0, 0, 0, 0, 0, 0, 3 ], [ 8, 1, 0.8333, 0.1667, 1, 0.55, 0, 535, 3, 1, 0, 0, 0, 0, 2 ] ]
[ "def main():\n with open('README') as f:\n print(f.read())", " print(f.read())" ]
# -*- coding:utf-8 -*- import os import pkg_resources from abu.admin import Interface class Admin(Interface): def version(self): return '0.0.1' def init(self, path): with open(os.path.join(path, 'README'), 'w') as readme: readme.write(pkg_resources.resource_string('read_and_di...
[ [ 1, 0, 0.125, 0.0625, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0.3333, 947, 0, 1, 0, 0, 947, 0, 0 ], [ 1, 0, 0.3125, 0.0625, 0, 0...
[ "import os", "import pkg_resources", "from abu.admin import Interface", "class Admin(Interface):\n def version(self):\n return '0.0.1'\n \n def init(self, path):\n with open(os.path.join(path, 'README'), 'w') as readme:\n readme.write(pkg_resources.resource_string('read_and_d...
#
[]
[]
from setuptools import setup, find_packages import sys, os version = '0.1.0' setup(name='read_and_display', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='Lai...
[ [ 1, 0, 0.0323, 0.0323, 0, 0.66, 0, 182, 0, 2, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0645, 0.0323, 0, 0.66, 0.3333, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 14, 0, 0.129, 0.0323, 0, ...
[ "from setuptools import setup, find_packages", "import sys, os", "version = '0.1.0'", "setup(name='read_and_display',\n version=version,\n description=\"\",\n long_description=\"\"\"\\\n\"\"\",\n classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers\n ...
import es import nativetools as nt import gamethread import random import aaauth reload(aaauth) import aanativetoolslib as aant reload(aant) ninjas = [] heavies = [] muted = [] class UseridError(Exception): pass class Filter(object): def __init__(self, tag): self.tag = tag ...
[ [ 1, 0, 0.0033, 0.0033, 0, 0.66, 0, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0066, 0.0033, 0, 0.66, 0.0667, 208, 0, 1, 0, 0, 208, 0, 0 ], [ 1, 0, 0.0099, 0.0033, 0, ...
[ "import es", "import nativetools as nt", "import gamethread", "import random", "import aaauth", "reload(aaauth)", "import aanativetoolslib as aant", "reload(aant)", "ninjas = []", "heavies = []", "muted = []", "class UseridError(Exception):\n pass", "class Filter(object):\n def __in...
from __future__ import division import es import cPickle from os.path import isfile class DB(object): def __init__(self): self.database = es.getAddonPath('aa') + '/absolutadmin_ranks.db' def loadDatabase(self): if isfile(self.database): f = open(self.database, 'rb') ...
[ [ 1, 0, 0.0182, 0.0182, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0364, 0.0182, 0, 0.66, 0.125, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0545, 0.0182, 0, 0...
[ "from __future__ import division", "import es", "import cPickle", "from os.path import isfile", "class DB(object):\n def __init__(self):\n self.database = es.getAddonPath('aa') + '/absolutadmin_ranks.db'\n def loadDatabase(self):\n if isfile(self.database):\n f = open(self.dat...
#================================================================================ # Absolut Admin - By: Miauw Mizx & BackRaw # ./addons/eventscripts/absolutadmin/absolutadmin.py #================================================================================ #===================================================...
[ [ 1, 0, 0.029, 0.0032, 0, 0.66, 0, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0323, 0.0032, 0, 0.66, 0.0244, 906, 0, 1, 0, 0, 906, 0, 0 ], [ 1, 0, 0.0355, 0.0032, 0, 0...
[ "import es", "import cfglib", "import gamethread", "import re", "import aavote", "reload(aavote)", "import aaauth", "reload(aaauth)", "import aalog", "reload(aalog)", "import aaplayerlib", "reload(aaplayerlib)", "import aanativetoolslib as aant", "reload(aant)", "info = es.AddonInfo()", ...
import es import os from time import strftime path = es.getAddonPath('absolutadmin') + '/logs/debug.log' def log(text, error=0, writeTime=1): def wf(time, wt, method): f = open(path, method + 'b') f.write('%s%s\n' % (time + ' - ' if wt else '', text)) f.close() def ef(time, ...
[ [ 1, 0, 0.0333, 0.0333, 0, 0.66, 0, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0667, 0.0333, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1, 0.0333, 0, 0.66, ...
[ "import es", "import os", "from time import strftime", "path = es.getAddonPath('absolutadmin') + '/logs/debug.log'", "def log(text, error=0, writeTime=1):\n def wf(time, wt, method):\n f = open(path, method + 'b')\n f.write('%s%s\\n' % (time + ' - ' if wt else '', text))\n f.close()\...
import es import nativetools as nt def mute(userid, status=0): nt.mutePlayer(userid, status) #def mute(userid, status=0): # if list == type(userid): # for user in userid: # nt.mutePlayer(user, status) # else: nt.mutePlayer(userid, status) def team(userid, team): if list == ...
[ [ 1, 0, 0.0217, 0.0217, 0, 0.66, 0, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0435, 0.0217, 0, 0.66, 0.1, 208, 0, 1, 0, 0, 208, 0, 0 ], [ 2, 0, 0.0978, 0.0435, 0, 0.6...
[ "import es", "import nativetools as nt", "def mute(userid, status=0):\n nt.mutePlayer(userid, status)", " nt.mutePlayer(userid, status)", "def team(userid, team):\n if list == type(userid):\n for user in userid:\n nt.switchTeam(user, team)\n else: nt.switchTeam(userid, team)", ...
import es from popuplib import create as popup current = 0 class Vote(object): def __init__(self, name): self.name = name self.vote = self.submitted = self.question = 0 self.options = {} def create(self, question='', options=()): self.question = question # Needed for...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0286, 0.0143, 0, 0.66, 0.1111, 385, 0, 1, 0, 0, 385, 0, 0 ], [ 14, 0, 0.0571, 0.0143, 0, ...
[ "import es", "from popuplib import create as popup", "current = 0", "class Vote(object):\n def __init__(self, name):\n self.name = name\n self.vote = self.submitted = self.question = 0\n self.options = {}\n def create(self, question='', options=()):\n self.question = question...
import es from urllib import urlopen class Auth(object): def __init__(self): self.admins = [] def updateAdminList(self, url=None): es.dbgmsg(0, 'Updateing Admin List...') if url: while len(self.admins): self.admins.pop(0) for line in ur...
[ [ 1, 0, 0.0312, 0.0312, 0, 0.66, 0, 994, 0, 1, 0, 0, 994, 0, 0 ], [ 1, 0, 0.0625, 0.0312, 0, 0.66, 0.2, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 3, 0, 0.4531, 0.6875, 0, 0.6...
[ "import es", "from urllib import urlopen", "class Auth(object):\n def __init__(self):\n self.admins = []\n def updateAdminList(self, url=None):\n es.dbgmsg(0, 'Updateing Admin List...')\n if url:\n while len(self.admins):\n self.admins.pop(0)", " def __i...
#! /usr/bin/env python import sys def vasta_midagi(vastus="method call"): return vastus if __name__ == '__main__': vasta_midagi("main")
[ [ 1, 0, 0.3333, 0.1111, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.6111, 0.2222, 0, 0.66, 0.5, 172, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 1, 0.6667, 0.1111, 1, 0.59...
[ "import sys", "def vasta_midagi(vastus=\"method call\"):\n return vastus", " return vastus", "if __name__ == '__main__':\n vasta_midagi(\"main\")", " vasta_midagi(\"main\")" ]
#! /usr/bin/env python import sys def vasta_midagi(vastus="method call"): return vastus if __name__ == '__main__': vasta_midagi("main")
[ [ 1, 0, 0.3333, 0.1111, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.6111, 0.2222, 0, 0.66, 0.5, 172, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 1, 0.6667, 0.1111, 1, 0.95...
[ "import sys", "def vasta_midagi(vastus=\"method call\"):\n return vastus", " return vastus", "if __name__ == '__main__':\n vasta_midagi(\"main\")", " vasta_midagi(\"main\")" ]
#!/usr/bin/env python2 # # Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) # # 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...
[ [ 1, 0, 0.1667, 0.1667, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3333, 0.1667, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.6667, 0.1667, 0, ...
[ "import sys", "import os", "import getopt", "import math" ]
#!/usr/bin/env python2 # # Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) # # 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...
[ [ 1, 0, 0.3108, 0.0135, 0, 0.66, 0, 323, 0, 1, 0, 0, 323, 0, 0 ], [ 14, 0, 0.3378, 0.0135, 0, 0.66, 0.0714, 129, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3514, 0.0135, 0, ...
[ "from optparse import OptionParser", "usage = \"usage: %prog [options] conf1 conf2\"", "parser = OptionParser(usage=usage)", "parser.add_option(\"--eps\", dest=\"eps\", metavar=\"EPS\",\n help=\"tolerance for mismatch\", default=1e-2)", "(options, args) = parser.parse_args()", "def die(st...
#!/usr/bin/env python2 # # Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) # # 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...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 588, 0, 1, 0, 0, 588, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import getopt", "import os", "import math" ]
#!/usr/bin/env python2 import numpy as np A = np.loadtxt('$name.gmc'); b = np.loadtxt('$name.imc'); x = np.empty([len(b),2]) x[:,0]=b[:,0]; x[:,1] = -np.linalg.solve(A,b[:,1]); np.savetxt('$name_out', x)
[ [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0, 954, 0, 1, 0, 0, 954, 0, 0 ], [ 14, 0, 0.3636, 0.0909, 0, 0.66, 0.1667, 429, 3, 1, 0, 0, 670, 10, 1 ], [ 14, 0, 0.4545, 0.0909, 0, ...
[ "import numpy as np", "A = np.loadtxt('$name.gmc');", "b = np.loadtxt('$name.imc');", "x = np.empty([len(b),2])", "x[:,0]=b[:,0];", "x[:,1] = -np.linalg.solve(A,b[:,1]);", "np.savetxt('$name_out', x)" ]
#!/usr/bin/env python2 # # Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org) # # 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...
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2727, 0.0909, 0, 0.66, 0.25, 588, 0, 1, 0, 0, 588, 0, 0 ], [ 1, 0, 0.3636, 0.0909, 0, 0....
[ "import sys", "import getopt", "import math", "import os", "def weight(x):\n c = math.cos(math.pi/(2*(xstop-xstart)*0.1)*x)\n return c*c", " c = math.cos(math.pi/(2*(xstop-xstart)*0.1)*x)", " return c*c" ]
#!/usr/bin/python # encoding: utf-8 """ munkicommon_display_unicode_test.py Unit tests for munkicommon's display_* functions. """ # Copyright 2013 Greg Neagle. # # 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...
[ [ 8, 0, 0.0474, 0.0517, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2069, 0.0086, 0, 0.66, 0.0714, 588, 0, 1, 0, 0, 588, 0, 0 ], [ 1, 0, 0.2155, 0.0086, 0, 0.66...
[ "\"\"\"\nmunkicommon_display_unicode_test.py\n\nUnit tests for munkicommon's display_* functions.\n\n\"\"\"", "import munkicommon", "import sys", "import unittest", "MSG_UNI = u'Günther\\'s favorite thing is %s'", "MSG_STR = 'Günther\\'s favorite thing is %s'", "ARG_UNI = u'Günther'", "ARG_STR = 'Günt...
#!/usr/bin/python # encoding: utf-8 """ appleupdates_test.py Unit tests for appleupdates. """ # Copyright 2011 Google. # # 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.ap...
[ [ 8, 0, 0.0031, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0131, 0.0006, 0, 0.66, 0.1, 909, 0, 1, 0, 0, 909, 0, 0 ], [ 7, 0, 0.0151, 0.0034, 0, 0.66, ...
[ "\"\"\"\nappleupdates_test.py\n\nUnit tests for appleupdates.\n\n\"\"\"", "import appleupdates", "try:\n import mox\nexcept ImportError:\n import sys\n print >>sys.stderr, \"mox module is required. run: easy_install mox\"\n raise", " import mox", " import sys", " print >>sys.stderr, \...
#!/usr/bin/python # encoding: utf-8 """ adobeutils.py Utilities to enable munki to install/uninstall Adobe CS3/CS4/CS5 products using the CS3/CS4/CS5 Deployment Toolkits. """ # Copyright 2009-2013 Greg Neagle. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in co...
[ [ 8, 0, 0.0046, 0.0054, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0193, 0.0008, 0, 0.66, 0.0227, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0201, 0.0008, 0, 0.66...
[ "\"\"\"\nadobeutils.py\n\nUtilities to enable munki to install/uninstall Adobe CS3/CS4/CS5 products\nusing the CS3/CS4/CS5 Deployment Toolkits.\n\n\"\"\"", "import os", "import re", "import subprocess", "import time", "import tempfile", "import sqlite3", "from xml.dom import minidom", "from glob imp...
#!/usr/bin/python # encoding: utf-8 # # Copyright 2009-2013 Greg Neagle. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
[ [ 8, 0, 0.2521, 0.2222, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3889, 0.0342, 0, 0.66, 0.125, 44, 0, 4, 0, 0, 44, 0, 0 ], [ 3, 0, 0.4231, 0.0171, 0, 0.66, ...
[ "\"\"\"FoundationPlist.py -- a tool to generate and parse MacOSX .plist files.\n\nThis is intended as a drop-in replacement for Python's included plistlib,\nwith a few caveats:\n - readPlist() and writePlist() operate only on a filepath,\n not a file object.\n - there is no support for the deprecated f...
# this is needed to make Python recognize the directory as a module package. # # Warning: do NOT put any Python imports here that require ObjC.
[]
[]
#!/usr/bin/python # encoding: utf-8 # # Copyright 2010-2013 Greg Neagle. # # 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 requi...
[ [ 8, 0, 0.2933, 0.1467, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3867, 0.0133, 0, 0.66, 0.1429, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.0133, 0, 0.66, ...
[ "\"\"\"\nlaunchapp\n\nCreated by Greg Neagle on 2010-02-05.\nModified 2010-07-13 to pass all arguments to /usr/bin/open\nLaunches an app only if we're called in the current\nGUI user's session.\nPrevents multiple copies of the app from being launched", "import sys", "import os", "import subprocess", "import...
#!/usr/bin/python # encoding: utf-8 # # Copyright 2011-2013 Greg Neagle. # # 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 requi...
[ [ 8, 0, 0.1066, 0.0457, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1371, 0.0051, 0, 0.66, 0.0588, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1421, 0.0051, 0, 0.66...
[ "\"\"\"\nlogouthelper\n\nCreated by Greg Neagle on 2011-06-21.\n\nA helper tool for forced logouts to allow munki to force install items by\na certain deadline.", "import os", "import time", "from munkilib import munkicommon", "from munkilib import FoundationPlist", "from munkilib import updatecheck", "...
#!/usr/bin/env python # encoding: utf-8 # Copyright 2009 Greg Neagle. # # 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.3067, 0.2, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4267, 0.0133, 0, 0.66, 0.0909, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.44, 0.0133, 0, 0.66, ...
[ "\"\"\"\ngetmanifest.py\n\nCreated by Greg Neagle on 2008-10-30.\nA simple CGI. Returns a text file of the same name\nas the host, or as the arbitrary string passed to it:\n\nhttp://webserver/cgi-bin/getmanifest.py?arbitrarystring", "import os", "import socket", "import sys", "import cgi", "import time",...
# # MSUAppDelegate.py # Managed Software Update # # Created by Greg Neagle on 2/10/10. # Copyright 2010-2013 Greg Neagle. # # 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://w...
[ [ 1, 0, 0.0213, 0.0011, 0, 0.66, 0, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.0223, 0.0011, 0, 0.66, 0.125, 542, 0, 1, 0, 0, 542, 0, 0 ], [ 1, 0, 0.0234, 0.0011, 0, 0.6...
[ "from Foundation import *", "from AppKit import *", "from objc import YES, NO", "import os", "import munki", "import PyObjCTools", "DEFAULT_GUI_CACHE_AGE_SECS = 60", "munki.setupLogging()", "class MSUAppDelegate(NSObject):\n\n munkiStatusController = objc.IBOutlet()\n mainWindowController = ob...
# # main.py # Managed Software Update # # Created by Greg Neagle on 2/10/10. # Copyright 2010-2013 Greg Neagle. # # 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...
[ [ 1, 0, 0.5946, 0.027, 0, 0.66, 0, 332, 0, 1, 0, 0, 332, 0, 0 ], [ 1, 0, 0.6216, 0.027, 0, 0.66, 0.1, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.6486, 0.027, 0, 0.66, ...
[ "import objc", "import Foundation", "import AppKit", "from PyObjCTools import AppHelper", "import MSUAppDelegate", "import MSUMainWindowController", "import MSUOptionalInstallsViewController", "import MSUupdatesViewController", "import MSUWebViewPolicyDelegate", "import MSUStatusWindowController",...
# # MSUMainWindowController.py # Managed Software Update # # Created by Greg Neagle on 2/11/10. # Copyright 2010-2013 Greg Neagle. # # 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 # # ...
[ [ 1, 0, 0.6, 0.0286, 0, 0.66, 0, 332, 0, 4, 0, 0, 332, 0, 0 ], [ 1, 0, 0.6286, 0.0286, 0, 0.66, 0.3333, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.6571, 0.0286, 0, 0.66,...
[ "from objc import YES, NO, IBAction, IBOutlet", "from Foundation import *", "from AppKit import *", "class MSUMainWindowController(NSWindowController):\n '''\n Controls the main window\n '''\n\n theTabView = IBOutlet()\n theWindow = IBOutlet()", " '''\n Controls the main window\n '''...
#!/usr/bin/python ''' Wraps the ibtool commandline to generate nibs from .strings files. An md5 checksum of the base nibs is stored in a Localize.ini file, if a checksum for the file does not exist or the check does not match a new localized nib is created. Based on Philippe Casgrain's 'Automatically localize your ni...
[ [ 8, 0, 0.106, 0.192, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.208, 0.004, 0, 0.66, 0.0417, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.216, 0.004, 0, 0.66, ...
[ "'''\nWraps the ibtool commandline to generate nibs from .strings files.\nAn md5 checksum of the base nibs is stored in a Localize.ini file,\nif a checksum for the file does not exist or the check does not match\na new localized nib is created.\n\nBased on Philippe Casgrain's 'Automatically localize your nibs when ...
# encoding: utf-8 # # MSUStatusWindowController.py # # # Created by Greg Neagle on 9/21/09. # # Copyright 2009-2013 Greg Neagle. # # 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 # # htt...
[ [ 1, 0, 0.073, 0.0032, 0, 0.66, 0, 332, 0, 1, 0, 0, 332, 0, 0 ], [ 1, 0, 0.0762, 0.0032, 0, 0.66, 0.0769, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0794, 0.0032, 0, 0...
[ "import objc", "import os", "import socket", "import time", "import munki", "import FoundationPlist", "from Foundation import *", "from SystemConfiguration import SCDynamicStoreCopyConsoleUser", "from AppKit import *", "import PyObjCTools", "debug = False", "class NSPropertyListSerializationEx...
# # MSUupdatesViewController.py # Managed Software Update # # Created by Greg Neagle on 7/8/10. # Copyright 2010-2013 Greg Neagle. # # 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 # # ...
[ [ 1, 0, 0.1961, 0.0098, 0, 0.66, 0, 332, 0, 4, 0, 0, 332, 0, 0 ], [ 1, 0, 0.2059, 0.0098, 0, 0.66, 0.2, 836, 0, 1, 0, 0, 836, 0, 0 ], [ 1, 0, 0.2157, 0.0098, 0, 0.6...
[ "from objc import YES, NO, IBAction, IBOutlet", "import munki", "from Foundation import *", "from AppKit import *", "munki.setupLogging()", "class MSUupdatesViewController(NSViewController):\n '''\n Controls the updates view of the main window\n '''\n \n restartInfoFld = IBOutlet()\n res...
#!/usr/bin/python # encoding: utf-8 # # Copyright 2009-2013 Greg Neagle. # # 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 requi...
[ [ 8, 0, 0.2611, 0.2301, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4027, 0.0354, 0, 0.66, 0.125, 44, 0, 4, 0, 0, 44, 0, 0 ], [ 3, 0, 0.4381, 0.0177, 0, 0.66, ...
[ "\"\"\"FoundationPlist.py -- a tool to generate and parse MacOSX .plist files.\n\nThis is intended as a drop-in replacement for Python's included plistlib,\nwith a few caveats:\n - readPlist() and writePlist() operate only on a filepath, \n not a file object.\n - there is no support for the deprecated ...
# # MSUWebViewPolicyDelegate.py # ManagedSoftwareUpdate # # Created by Greg Neagle on 2/10/10. # Copyright 2010-2013 Greg Neagle. # # 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 # # ...
[ [ 1, 0, 0.5676, 0.027, 0, 0.66, 0, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.5946, 0.027, 0, 0.66, 0.5, 743, 0, 1, 0, 0, 743, 0, 0 ], [ 3, 0, 0.8108, 0.3514, 0, 0.66, ...
[ "from Foundation import *", "from WebKit import *", "class MSUWebViewPolicyDelegate(NSObject):\n # needed to intercept clicks on weblinks in descriptions\n # and pass them onto the user's default web browser.\n # without this the link will load inside the webview in our app.\n def webView_decidePoli...
# # MSUOptionalInstallsViewController.py # Managed Software Update # # Created by Greg Neagle on 7/8/10. # Copyright 2010-2013 Greg Neagle. # # 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...
[ [ 1, 0, 0.125, 0.0063, 0, 0.66, 0, 332, 0, 4, 0, 0, 332, 0, 0 ], [ 1, 0, 0.1313, 0.0063, 0, 0.66, 0.3333, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.1375, 0.0063, 0, 0.6...
[ "from objc import YES, NO, IBAction, IBOutlet", "from Foundation import *", "from AppKit import *", "class MSUOptionalInstallsViewController(NSViewController):\n '''\n Controls the optional software view of the main window\n '''\n\n descriptionView = IBOutlet()\n tableView = IBOutlet()\n the...
# Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights # reserved. Use of this source code is governed by a BSD-style license that # can be found in the LICENSE file. { 'variables': { 'chromium_code': 1, 'linux_use_gold_binary': 0, 'linux_use_gold_flags': 0, 'conditions': [ [ ...
[ [ 8, 0, 0.5058, 0.9907, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]
[ "{\n 'variables': {\n 'chromium_code': 1,\n 'linux_use_gold_binary': 0,\n 'linux_use_gold_flags': 0,\n 'conditions': [\n [ 'OS==\"mac\"', {\n # Don't use clang with CEF binary releases due to Chromium tree structure dependency." ]
#!/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>[\\+\\*])...
# Copyright 2013 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 writing, ...
[ [ 1, 0, 0.6522, 0.0435, 0, 0.66, 0, 123, 0, 1, 0, 0, 123, 0, 0 ], [ 3, 0, 0.7826, 0.1304, 0, 0.66, 0.5, 587, 0, 1, 0, 0, 842, 0, 0 ], [ 2, 1, 0.8043, 0.087, 1, 0.74...
[ "import webapp2", "class BackendHandler(webapp2.RequestHandler):\n def get(self):\n pass", " def get(self):\n pass", "app = webapp2.WSGIApplication(routes=[\n (r'/_ah/.*', BackendHandler),\n])" ]
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 8, 0, 0.1827, 0.0865, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.25, 0.0096, 0, 0.66, 0.0476, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2596, 0.0096, 0, 0.66, ...
[ "\"\"\"Main program for Rietveld.\n\nThis is also a template for running a Django app under Google App\nEngine, especially when using a newer version of Django than provided\nin the App Engine standard library.\n\nThe site-specific code is all in other files: urls.py, models.py,\nviews.py, settings.py.", "import ...
# Removes duplicate nicknames (issue99). # # To run this script: # - Make sure App Engine library (incl. yaml) is in PYTHONPATH. # - Make sure that the remote API is included in app.yaml. # - Run "tools/appengine_console.py APP_ID". # - Import this module. # - update_accounts.run() updates accounts. # - Use the o...
[ [ 1, 0, 0.2097, 0.0161, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2419, 0.0161, 0, 0.66, 0.25, 844, 0, 1, 0, 0, 844, 0, 0 ], [ 2, 0, 0.4194, 0.2742, 0, 0....
[ "from google.appengine.ext import db", "from codereview import models", "def fetch_accounts():\n query = models.Account.all()\n accounts = {}\n results = query.fetch(100)\n while results:\n last = None\n for account in results:\n if account.lower_nickname in accounts:", " ...
"""Configuration.""" import logging import os import re import sys from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): # If reenabling appstats, do not forget to reeanble it in a...
[ [ 8, 0, 0.0217, 0.0217, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0652, 0.0217, 0, 0.66, 0.0833, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.087, 0.0217, 0, 0.66,...
[ "\"\"\"Configuration.\"\"\"", "import logging", "import os", "import re", "import sys", "from google.appengine.ext.appstats import recording", "logging.info('Loading %s from %s', __name__, __file__)", "def webapp_add_wsgi_middleware(app):\n # If reenabling appstats, do not forget to reeanble it in ap...
# Copyright 2013 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 writing, ...
[ [ 8, 0, 0.2778, 0.0185, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3148, 0.0185, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3333, 0.0185, 0, 0.66, ...
[ "\"\"\"Setup the test environment.\"\"\"", "import os", "import sys", "TESTS_DIR = os.path.dirname(os.path.abspath(__file__))", "def setup_test_env(sdk_path):\n \"\"\"Sets up App Engine/Django test environment.\"\"\"\n sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../'))\n sys.path.insert(0...
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 8, 0, 0.2542, 0.0169, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2881, 0.0169, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.322, 0.0169, 0, 0.66,...
[ "\"\"\"Test utils.\"\"\"", "import os", "from google.appengine.ext import testbed", "from django.test import TestCase as _TestCase", "FILES_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'files')", "class TestCase(_TestCase):\n \"\"\"Customized Django TestCase.\n\n This class disables th...
#!/usr/bin/env python # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.4848, 0.0303, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5455, 0.0303, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5758, 0.0303, 0, 0.66...
[ "\"\"\"Test case runner.\"\"\"", "import os", "import re", "import sys", "import unittest", "TESTS_DIR = os.path.dirname(os.path.abspath(__file__))", "def main():\n sys.argv.insert(1, 'discover')\n sys.argv.insert(2, TESTS_DIR)\n return unittest.main()", " sys.argv.insert(1, 'discover')", " sys...
#!/usr/bin/env python # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 1, 0, 0.1322, 0.0083, 0, 0.66, 0, 44, 0, 1, 0, 0, 44, 0, 0 ], [ 1, 0, 0.1405, 0.0083, 0, 0.66, 0.0435, 784, 0, 1, 0, 0, 784, 0, 0 ], [ 1, 0, 0.1488, 0.0083, 0, 0....
[ "import code", "import getpass", "import logging", "import optparse", "import os", "import re", "import sys", "ROOT = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')", "LIB = os.path.join(ROOT, '..', 'google_appengine', 'lib')", "sys.path.insert(0, os.path.join(ROOT, '..', 'google_a...
# Copyright 2008-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.5357, 0.0357, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6429, 0.0357, 0, 0.66, 0.5, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 14, 0, 0.9464, 0.1429, 0, 0.66, ...
[ "\"\"\"Top-level URL mappings for Rietveld.\"\"\"", "from django.conf.urls.defaults import *", "urlpatterns = patterns(\n '',\n url(r'', include('codereview.urls')),\n )" ]
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 8, 0, 0.1875, 0.0125, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2125, 0.0125, 0, 0.66, 0.04, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2375, 0.0125, 0, 0.66, ...
[ "\"\"\"Minimal Django settings.\"\"\"", "import os", "from google.appengine.api import app_identity", "APPEND_SLASH = False", "DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')", "INSTALLED_APPS = (\n 'codereview',\n)", "HSTS_MAX_AGE = 60*60*24*365 # 1 year in seconds.", "MIDDLEWARE_CLASSES ...
"""Collection of mapreduce jobs.""" import logging from mapreduce import operation as op from codereview.models import Account, Issue def delete_unused_accounts(account): """Delete accounts for uses that don't participate in any reviews.""" email = account.user.email() if Issue.all().filter('owner_email =', em...
[ [ 8, 0, 0.0345, 0.0345, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0.66, 0.2, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1379, 0.0345, 0, 0.66, ...
[ "\"\"\"Collection of mapreduce jobs.\"\"\"", "import logging", "from mapreduce import operation as op", "from codereview.models import Account, Issue", "def delete_unused_accounts(account):\n \"\"\"Delete accounts for uses that don't participate in any reviews.\"\"\"\n email = account.user.email()\n if I...
# 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 or agreed to in writi...
[ [ 1, 0, 0.1765, 0.0118, 0, 0.66, 0, 866, 0, 1, 0, 0, 866, 0, 0 ], [ 3, 0, 0.6, 0.8118, 0, 0.66, 1, 200, 0, 1, 0, 0, 920, 0, 20 ], [ 8, 1, 0.2235, 0.0353, 1, 0, ...
[ "import difflib", "class PseudoPatienceSequenceMatcher(difflib.SequenceMatcher):\n \"\"\"Provides a SequenceMatcher that prefers longer \"first\" matches to longer\n \"second\" matches.\n \"\"\"\n\n def get_matching_blocks(self):\n \"\"\"Returns list of triples describing matching subsequences.", " \"\"...
# Copyright 2013 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 writing, ...
[ [ 8, 0, 0.1061, 0.0939, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1592, 0.0041, 0, 0.66, 0.0833, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1673, 0.0041, 0, 0.66...
[ "\"\"\"Collection of functions to be used for Auth related activies.\n\nThe two methods to be chiefy used are:\n - get_current_user\n - is_current_user_admin\n\nBoth of these methods check for a cookie-based current user (through the Users\nAPI) and an OAuth 2.0 current user (through the OAuth API).", "import l...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 1, 0, 0.092, 0.0061, 0, 0.66, 0, 604, 0, 1, 0, 0, 604, 0, 0 ], [ 1, 0, 0.1043, 0.0061, 0, 0.66, 0.0667, 211, 0, 1, 0, 0, 211, 0, 0 ], [ 1, 0, 0.1104, 0.0061, 0, 0...
[ "import md5", "from django.contrib.syndication.feeds import Feed", "from django.core.exceptions import ObjectDoesNotExist", "from django.core.urlresolvers import reverse", "from django.utils.feedgenerator import Atom1Feed", "from codereview import library", "from codereview import models", "class Base...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 8, 0, 0.0415, 0.0415, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0644, 0.0014, 0, 0.66, 0.0357, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0658, 0.0014, 0, 0.66...
[ "\"\"\"Intra-region diff utilities.\n\nIntra-region diff highlights the blocks of code which have been changed or\ndeleted within a region. So instead of highlighting the whole region marked as\nchanged, the user can see what exactly was changed within that region.\n\nTerminology:\n 'region' is a list of consecuti...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 8, 0, 0.0654, 0.0192, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0808, 0.0038, 0, 0.66, 0.0909, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0846, 0.0038, 0, 0.66...
[ "\"\"\"Utility to read and apply a unified diff without forking patch(1).\n\nFor a discussion of the unified diff format, see my blog on Artima:\nhttp://www.artima.com/weblogs/viewpost.jsp?thread=164293\n\"\"\"", "import logging", "import re", "import sys", "from codereview import patiencediff", "_CHUNK_R...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ [ 8, 0, 0.12, 0.008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.144, 0.008, 0, 0.66, 0.1667, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.152, 0.008, 0, 0.66, 0...
[ "\"\"\"URL mappings for the codereview package.\"\"\"", "from django.conf.urls.defaults import *", "import django.views.defaults", "from django.views.generic.simple import redirect_to", "from codereview import feeds", "urlpatterns = patterns(\n 'codereview.views',\n (r'^$', 'index'),\n\n (r'^lead...