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.2056, 0.0056, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2111, 0.0056, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2167, 0.0056, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class staticPropTest(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):\...
##-***************************************************************************** ## ## 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.5606, 0.0152, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.5909, 0.0152, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.6061, 0.0152, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class emptyMeshTest(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.1682, 0.0045, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1727, 0.0045, 0, 0.66, 0.1667, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.1773, 0.0045, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import subprocess", "import unittest", "import util", "class AnimMeshTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher...
##-***************************************************************************** ## ## Copyright (c) 2009-2012, ## 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.0869, 0.0023, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0892, 0.0023, 0, 0.66, 0.125, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0915, 0.0023, 0, 0...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "def checkEqualRotate(test, nodeName1, nodeName2, precision):\n test.failUnlessAlmostEqual(MayaCmds.getAttr(nodeName1 + '.rotateX'),\n MayaCmds.getAttr(nodeName2 + '.rotateX'), precision)\n test.failUnlessAlmost...
##-***************************************************************************** ## ## 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.2624, 0.0071, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2695, 0.0071, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2766, 0.0071, 0, 0....
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class VisibilityTest(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):\...
##-***************************************************************************** ## ## 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.0992, 0.0027, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.1019, 0.0027, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1046, 0.0027, 0, 0.6...
[ "import maya.cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class AnimTransformTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher']]\n self.__files = []\n\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.2984, 0.0081, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3065, 0.0081, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3145, 0.0081, 0, 0.6...
[ "from maya import cmds as MayaCmds", "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=1)\n MayaCmds.polyCube(name=\"...
##-***************************************************************************** ## ## 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.1927, 0.0052, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1979, 0.0052, 0, 0.66, 0.1667, 901, 0, 1, 0, 0, 901, 0, 0 ], [ 1, 0, 0.2083, 0.0052, 0, ...
[ "from maya import cmds as MayaCmds", "from maya.mel import eval as MelEval", "import os", "import maya.OpenMaya as OpenMaya", "import unittest", "import util", "class StaticMeshTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\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.209, 0.0056, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2147, 0.0056, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2203, 0.0056, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class LoadWorldSpaceTranslateJobTest(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 :", " d...
##-***************************************************************************** ## ## 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.0539, 0.0015, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0553, 0.0015, 0, 0.66, 0.2, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.0568, 0.0015, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "class MayaReloadTest(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 sel...
##-***************************************************************************** ## ## 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.1602, 0.0043, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.1645, 0.0043, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1688, 0.0043, 0, 0....
[ "import maya.cmds as MayaCmds", "import os", "import unittest", "import util", "class EulerFilterTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n MayaCmds.file(new=True, force=True)", " def setUp...
##-***************************************************************************** ## ## 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.5441, 0.0147, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.5588, 0.0147, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5735, 0.0147, 0, 0....
[ "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.2913, 0.0079, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2992, 0.0079, 0, 0.66, 0.1429, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.3071, 0.0079, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import subprocess", "import unittest", "import util", "def createCamera():\n name = MayaCmds.camera()\n MayaCmds.setAttr(name[1]+'.horizontalFilmAperture', 0.962)\n MayaCmds.setAttr(name[1]+'.verticalFilmAp...
##-***************************************************************************** ## ## 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.0855, 0.0023, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0878, 0.0023, 0, 0.66, 0.0714, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.0901, 0.0023, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import math", "def expandFileName(name):\n return os.getcwd() + os.path.sep + name", " return os.getcwd() + os.path.sep + name", "def floatDiff(val1, val2, tolerance):\n diff = math.fabs(val1 - val2)\n if ...
##-***************************************************************************** ## ## 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.6727, 0.0182, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.6909, 0.0182, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.7091, 0.0182, 0, ...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "class AbcExport_dupRootsTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n\n def testStaticTransformReadWrite(self):\n MayaCmds.polyCube(n='cube')\n MayaCmds.group(n='group1')", ...
##-***************************************************************************** ## ## Copyright (c) 2013, ## 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 or w...
[ [ 1, 0, 0.2357, 0.0064, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.242, 0.0064, 0, 0.66, 0.1667, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2484, 0.0064, 0, 0...
[ "from maya import cmds as MayaCmds", "from maya import mel as Mel", "import os", "import subprocess", "import unittest", "import util", "class ConnectNamespaceTest(unittest.TestCase):\n\n def buildScene(self):\n MayaCmds.file(new=True, force=True)\n\n MayaCmds.namespace(addNamespace='fo...
##-***************************************************************************** ## ## 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.185, 0.005, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.19, 0.005, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.195, 0.005, 0, 0.66, ...
[ "from maya import cmds as MayaCmds", "import os", "import subprocess", "import unittest", "import util", "class AnimNurbsSurfaceTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__abcStitcher = [os.environ['AbcStitcher']]\n 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.6271, 0.0169, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.6441, 0.0169, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.661, 0.0169, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class renderableOnlyTest(unittest.TestCase):\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:\n os.remove(f)...
##-***************************************************************************** ## ## 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.4022, 0.0109, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.413, 0.0109, 0, 0.66, 0.1667, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.4239, 0.0109, 0, 0...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "def getObjFromName( nodeName ):\n selectionList = OpenMaya.MSelectionList()\n selectionList.add( nodeName )\n obj = OpenMaya.MObject()\n selectionList.getDependNode(0, obj)\...
##-***************************************************************************** ## ## Copyright (c) 2009-2013, ## 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.319, 0.0086, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3276, 0.0086, 0, 0.66, 0.1667, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3362, 0.0086, 0, 0...
[ "from maya import cmds as MayaCmds", "from maya import mel as Mel", "import os", "import subprocess", "import unittest", "import util", "class StripNamespaceTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):...
##-***************************************************************************** ## ## 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.0799, 0.0022, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.0821, 0.0022, 0, 0.66, 0.2, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.0864, 0.0022, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "class AnimMeshTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n self.__abcStitcherExe = os.environ['AbcSt...
##-***************************************************************************** ## ## 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.5, 0.0135, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.527, 0.0135, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.5405, 0.0135, 0, 0.66, ...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "class StaticPointPrimitiveTest(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 set...
##-***************************************************************************** ## ## 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.319, 0.0086, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3276, 0.0086, 0, 0.66, 0.1429, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.3362, 0.0086, 0, 0...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import subprocess", "import unittest", "import util", "def createLocator():\n shape = MayaCmds.createNode(\"locator\")\n name = MayaCmds.pickWalk(shape, d=\"up\")\n MayaCmds.setAttr(shape+'.localPositionX',...
##-***************************************************************************** ## ## 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.1095, 0.003, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1124, 0.003, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1154, 0.003, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import os", "import unittest", "import util", "def testStaticNurbsWithoutTrim(self, surfacetype, abcFileName):\n\n if (surfacetype == 0):\n ret = MayaCmds.nurbsPlane(p=(0, 0, 0), ax=(0, 1, 0), w=1, lr=1, d=3,\n u=5, v=5, ch=0)\n errmsg = 'Nu...
# # Copyright (c) 2010 Sony Pictures Imageworks 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 list of c...
[ [ 1, 0, 0.2845, 0.0086, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2931, 0.0086, 0, 0.66, 0.1429, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.3017, 0.0086, 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.1341, 0.0036, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1377, 0.0036, 0, 0.66, 0.2, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.1449, 0.0036, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import unittest", "import util", "class ColorSetsTest(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...
##-***************************************************************************** ## ## 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.37, 0.01, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.38, 0.01, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.39, 0.01, 0, 0.66, 0.4, ...
[ "from maya import cmds as MayaCmds", "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=1)\n MayaCmds.polyCube(name=\"...
##-***************************************************************************** ## ## 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.1285, 0.0035, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1319, 0.0035, 0, 0.66, 0.2, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.1354, 0.0035, 0, 0.6...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import unittest", "import util", "import os", "class interpolationTest(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 i...
##-***************************************************************************** ## ## 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.2517, 0.0068, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.2585, 0.0068, 0, 0.66, 0.1429, 337, 0, 1, 0, 0, 337, 0, 0 ], [ 1, 0, 0.2653, 0.0068, 0, ...
[ "from maya import cmds as MayaCmds", "import maya.OpenMaya as OpenMaya", "import os", "import subprocess", "import unittest", "import util", "def createJoints():\n\n name = MayaCmds.joint(position=(0, 0, 0))\n MayaCmds.rotate(33.694356, 4.000428, 61.426019, r=True, ws=True)\n MayaCmds.joint(p...
##-***************************************************************************** ## ## 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-2013, ## 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.1186, 0.0032, 0, 0.66, 0, 481, 0, 1, 0, 0, 481, 0, 0 ], [ 1, 0, 0.1218, 0.0032, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.125, 0.0032, 0, 0.66...
[ "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-2013, ## 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.1498, 0.004, 0, 0.66, 0, 924, 0, 1, 0, 0, 924, 0, 0 ], [ 1, 0, 0.1538, 0.004, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1579, 0.004, 0, 0.66,...
[ "import maya.cmds as MayaCmds", "import os", "import unittest", "import util", "class MultipleFrameRangeTest(unittest.TestCase):\n\n def setUp(self):\n MayaCmds.file(new=True, force=True)\n self.__files = []\n\n def tearDown(self):\n MayaCmds.file(new=True, force=True)", " de...
##-***************************************************************************** ## ## 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/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_...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.0455, 0.0023, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.05, 0.0023, 0, 0.66, 0.0714, 154, 0, 3, 0, 0, 154, 0, 0 ], [ 1, 0, 0.0545, 0.0023, 0, 0....
[ "import os", "from PyQt4 import QtCore, QtGui, uic", "import stats", "import conf", "uidir = 'data/ui'", "ss = dict(\n # Robot subprocess\n subprocess = dict(subproc_python = 's+',\n subproc_main = 's+',\n init_timeout = 'f',\n tic...
# Copyright (c) 2009 John Schember # 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 rights # to use, copy, modify, merge, publish, distri...
[ [ 1, 0, 0.1746, 0.0079, 0, 0.66, 0, 570, 0, 5, 0, 0, 570, 0, 0 ], [ 3, 0, 0.4643, 0.5397, 0, 0.66, 0.5, 650, 0, 4, 0, 0, 317, 0, 42 ], [ 2, 1, 0.2262, 0.0476, 1, 0....
[ "from PyQt4.Qt import QFrame, QWidget, QTextEdit, QHBoxLayout, QPainter", "class NumberBar(QWidget):\n def __init__(self, *args):\n QWidget.__init__(self, *args)\n self.edit = None\n # This is used to update the width of the control.\n # It is the highest line that is currently visi...
from robot import Robot class TheRobot(Robot): '''Strategy: Drive around the edge of the arena, Shoot whatever gets in the way. ''' def respond(self): self.ping() self.turret_forward() self.ping_react() def turret_forward(self): 'keep the turret pointed...
[ [ 1, 0, 0.0227, 0.0227, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.5341, 0.9545, 0, 0.66, 1, 111, 0, 3, 0, 0, 440, 0, 12 ], [ 8, 1, 0.125, 0.0909, 1, 0.68,...
[ "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Drive around the edge of the arena,\n Shoot whatever gets in the way.\n '''\n\n def respond(self):\n self.ping()", " '''Strategy:\n Drive around the edge of the arena,\n Shoot whatever gets in the ...
from robot import Robot class TheRobot(Robot): '''Strategy: Drive around real fast, Don't run in to anything, Shoot stuff that gets in the way. ''' def initialize(self): self._spinning = False def respond(self): if self._spinning: self.spin() ...
[ [ 1, 0, 0.0147, 0.0147, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.5221, 0.9706, 0, 0.66, 1, 111, 0, 5, 0, 0, 440, 0, 16 ], [ 8, 1, 0.0882, 0.0735, 1, 0.53...
[ "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Drive around real fast,\n Don't run in to anything,\n Shoot stuff that gets in the way.\n '''\n\n def initialize(self):", " '''Strategy:\n Drive around real fast,\n Don't run in to anything,\n ...
import random from robot import Robot class TheRobot(Robot): '''Strategy: Drive around in sort of a circle, Shoot randomly. ''' def initialize(self): self._state = 'FORWARD' self._fwdfor_ticks = None self._rightfor_ticks = None self._unstick_freq = 12 ...
[ [ 1, 0, 0.0086, 0.0086, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0172, 0.0086, 0, 0.66, 0.5, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.5216, 0.9655, 0, 0.6...
[ "import random", "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Drive around in sort of a circle,\n Shoot randomly.\n '''\n \n def initialize(self):\n self._state = 'FORWARD'", " '''Strategy:\n Drive around in sort of a circle,\n Shoot ran...
from robot import Robot class TheRobot(Robot): '''Strategy: Circle around the center, Home in on any found robot and shoot it. ''' def initialize(self): self._foundrobotangle = None def respond(self): self.turret_forward() self.ping() kind, angle, d...
[ [ 1, 0, 0.0106, 0.0106, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.516, 0.9787, 0, 0.66, 1, 111, 0, 5, 0, 0, 440, 0, 19 ], [ 8, 1, 0.0585, 0.0426, 1, 0.4, ...
[ "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Circle around the center,\n Home in on any found robot and shoot it.\n '''\n \n def initialize(self):\n self._foundrobotangle = None", " '''Strategy:\n Circle around the center,\n Home in on any...
from robot import Robot from math import copysign class TheRobot(Robot): '''Strategy: Stay near the middle of the field, Move if being attacked. ''' def initialize(self): self.health = 100 self._flee = 15 self._goto = 0 self._moveto_choices = [7, 7, -7,...
[ [ 1, 0, 0.011, 0.011, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.033, 0.011, 0, 0.66, 0.5, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 3, 0, 0.5275, 0.956, 0, 0.66, ...
[ "from robot import Robot", "from math import copysign", "class TheRobot(Robot):\n '''Strategy:\n Stay near the middle of the field,\n Move if being attacked.\n '''\n \n def initialize(self):\n self.health = 100", " '''Strategy:\n Stay near the middle of the field,\n ...
from robot import Robot class TheRobot(Robot): '''Strategy: Get in to a corner, Look around and shoot stuff, Try to remember where stuff was, so you can shoot it real good. ''' def initialize(self): # Try to get in to a corner self.forseconds(5, self.istep, self...
[ [ 1, 0, 0.0084, 0.0084, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.5126, 0.9832, 0, 0.66, 1, 111, 0, 6, 0, 0, 440, 0, 19 ], [ 8, 1, 0.0504, 0.042, 1, 0.3, ...
[ "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Get in to a corner,\n Look around and shoot stuff,\n Try to remember where stuff was, so you can shoot it real good.\n '''\n \n def initialize(self):", " '''Strategy:\n Get in to a corner,\n Loo...
# This example was used in verifying the problem outlined # in issue #5 in the bug tracker. from robot import Robot class TheRobot(Robot): def respond(self): self.turret(0) self.pingcheck() def pingcheck(self): g = self.sensors['GYRO'] if -2 <= g <= 2: self.ping() ...
[ [ 1, 0, 0.1905, 0.0476, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.6429, 0.7619, 0, 0.66, 1, 111, 0, 2, 0, 0, 440, 0, 7 ], [ 2, 1, 0.381, 0.1429, 1, 0.02, ...
[ "from robot import Robot", "class TheRobot(Robot):\n def respond(self):\n self.turret(0)\n self.pingcheck()\n\n def pingcheck(self):\n g = self.sensors['GYRO']\n if -2 <= g <= 2:", " def respond(self):\n self.turret(0)\n self.pingcheck()", " self.turre...
from robot import Robot class TheRobot(Robot): '''Strategy: Look around and shoot stuff, Move if attacked. ''' def initialize(self): self.health = 100 self._movefor = 0 self._moveforce = 0 self._turnto = 0 def respond(self): self.turnto() ...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.5214, 0.9714, 0, 0.66, 1, 111, 0, 5, 0, 0, 440, 0, 10 ], [ 8, 1, 0.0786, 0.0571, 1, 0.52...
[ "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Look around and shoot stuff,\n Move if attacked.\n '''\n \n def initialize(self):\n self.health = 100", " '''Strategy:\n Look around and shoot stuff,\n Move if attacked.\n '''", " def in...
import random from math import pi from robot import Robot class TheRobot(Robot): '''Strategy: Drive around blindly in several different patterns, Shoot stuff. This robot shows an unusual style of coding using "generators" which makes programs that require sequential steps somewhat ...
[ [ 1, 0, 0.0092, 0.0092, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0183, 0.0092, 0, 0.66, 0.3333, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0367, 0.0092, 0, ...
[ "import random", "from math import pi", "from robot import Robot", "class TheRobot(Robot):\n '''Strategy:\n Drive around blindly in several different patterns,\n Shoot stuff.\n\n This robot shows an unusual style of coding using \"generators\"\n which makes programs that require seq...
from robot import Robot class TheRobot(Robot): def initialize(self): # Will be called once, immediately after robot is created # Must finish in less than 1 second pass def respond(self): # Will be called 60 times per second # Must finish in less than 0.015 seconds ...
[ [ 1, 0, 0.0556, 0.0556, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 3, 0, 0.5833, 0.8889, 0, 0.66, 1, 111, 0, 2, 0, 0, 440, 0, 0 ], [ 2, 1, 0.3056, 0.2222, 1, 0.53,...
[ "from robot import Robot", "class TheRobot(Robot):\n def initialize(self):\n # Will be called once, immediately after robot is created\n # Must finish in less than 1 second\n pass", " def initialize(self):\n # Will be called once, immediately after robot is created\n # M...
# Copyright 2010-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.4167, 0.0208, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.4583, 0.0208, 0, 0.66, 0.1667, 154, 0, 3, 0, 0, 154, 0, 0 ], [ 1, 0, 0.5, 0.0208, 0, 0.6...
[ "import os", "from PyQt4 import QtGui, QtCore, uic", "import util", "version = 'pybotwar-0.9'", "datadir = 'data'", "uidir = os.path.join(datadir, 'ui')", "class AboutDialog(QtGui.QDialog):\n def __init__(self, app):\n QtGui.QDialog.__init__(self)\n uifile = 'about.ui'\n uipath =...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 3, 0, 0.3333, 0.1852, 0, 0.66, 0, 120, 0, 5, 0, 0, 186, 0, 0 ], [ 2, 1, 0.2654, 0.0247, 1, 0.49, 0, 555, 0, 3, 0, 0, 0, 0, 0 ], [ 2, 1, 0.3025, 0.0247, 1, 0.49, ...
[ "class Fake(object):\n def __init__(self, a=None, b=None):\n pass\n\n def setpos(self, pos):\n pass\n\n def set_rotation(self, ang):", " def __init__(self, a=None, b=None):\n pass", " def setpos(self, pos):\n pass", " def set_rotation(self, ang):\n pass", ...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.0791, 0.004, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.083, 0.004, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.087, 0.004, 0, 0.66, ...
[ "import os", "import sys", "import glob", "from PyQt4 import QtCore, QtGui, uic", "from PyQt4.Qt import QFrame, QWidget, QHBoxLayout, QPainter", "import util", "import conf", "uidir = 'data/ui'", "class CombatantsEditor(QtGui.QMainWindow):\n def __init__(self, parent):\n self.parent = pare...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.0587, 0.0029, 0, 0.66, 0, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.0616, 0.0029, 0, 0.66, 0.0714, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.0645, 0.0029, 0, ...
[ "import subprocess", "from subprocess import PIPE", "import time", "import random", "import os", "import logging", "logger = logging.getLogger('PybotwarLogger')", "import viewselect", "view = viewselect.get_view_module()", "import world", "from world import box2d", "import stats", "import ut...
#!/usr/bin/env python """ highlightedtextedit.py A PyQt custom widget example for Qt Designer. Copyright (C) 2006 David Boddie <david@boddie.org.uk> Copyright (C) 2005-2006 Trolltech ASA. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General ...
[ [ 8, 0, 0.0672, 0.1095, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1294, 0.005, 0, 0.66, 0.25, 154, 0, 2, 0, 0, 154, 0, 0 ], [ 3, 0, 0.2488, 0.2139, 0, 0.66, ...
[ "\"\"\"\nhighlightedtextedit.py\n\nA PyQt custom widget example for Qt Designer.\n\nCopyright (C) 2006 David Boddie <david@boddie.org.uk>\nCopyright (C) 2005-2006 Trolltech ASA. All rights reserved.", "from PyQt4 import QtCore, QtGui", "class HighlightedTextEdit(QtGui.QTextEdit):\n\n \"\"\"HighlightedTextEdi...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 2, 0, 0.7222, 0.3611, 0, 0.66, 0, 808, 0, 1, 0, 0, 0, 0, 0 ], [ 4, 1, 0.75, 0.3056, 1, 0.04, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 1, 2, 0.6389, 0.0278, 2, 0.17, 0, ...
[ "def select_view_module(name):\n global selectedview\n if name == 'pygame':\n import pgview\n selectedview = pgview\n\n elif name == 'pyqt':\n import qt4view", " if name == 'pygame':\n import pgview\n selectedview = pgview\n\n elif name == 'pyqt':\n import ...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.1869, 0.0093, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.3224, 0.2243, 0, 0.66, 0.1429, 869, 0, 0, 0, 0, 0, 0, 7 ], [ 8, 1, 0.2243, 0.0093, 1, 0....
[ "import os", "def makeconf():\n 'create an empty conf file'\n\n conf_file = 'conf.py'\n\n if os.path.exists(conf_file):\n print('conf.py already exists')\n raise SystemExit", " 'create an empty conf file'", " conf_file = 'conf.py'", " if os.path.exists(conf_file):\n pr...
# Settings use_qt_settings = True # Robot subprocess subproc_python = '/usr/bin/python' subproc_main = 'control.py' init_timeout = 1.0 tick_timeout = 0.015 # Robot selection base_dir = 'robots' # user robot files generally stored here more_robot_dirs = ['examples'] # In order, in case of dup name ...
[ [ 14, 0, 0.0217, 0.0109, 0, 0.66, 0, 758, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.0652, 0.0109, 0, 0.66, 0.0208, 207, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0761, 0.0109, 0, 0...
[ "use_qt_settings = True", "subproc_python = '/usr/bin/python'", "subproc_main = 'control.py'", "init_timeout = 1.0", "tick_timeout = 0.015", "base_dir = 'robots' # user robot files generally stored here", "more_robot_dirs = ['examples'] # In order, in case of dup name", "r1 = 'robot01'", "r2 = 'rob...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.0862, 0.0043, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0905, 0.0043, 0, 0.66, 0.2, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0948, 0.0043, 0, 0.6...
[ "import os", "import random", "from time import sleep", "from util import defaultNonedict", "import conf", "class Robot(object):\n def __init__(self, name):\n self._p__name = name\n\n self._p__overtime_count = 0\n\n self.sensors = defaultNonedict()", " def __init__(self, name)...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.0205, 0.001, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0215, 0.001, 0, 0.66, 0.027, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0226, 0.001, 0, 0.66...
[ "import os", "import sys", "import math", "pi = math.pi", "import logging", "logger = logging.getLogger('PybotwarLogger')", "from PyQt4 import QtCore, QtGui, QtSvg, uic", "from editor import TextEditor", "from combatants import BattleEditor, TournamentEditor", "from settings import Settings", "i...
# Copyright 2009-2014 Lee Harr # # This file is part of pybotwar. # http://pybotwar.googlecode.com/ # # Pybotwar is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
[ [ 1, 0, 0.107, 0.0053, 0, 0.66, 0, 87, 0, 1, 0, 0, 87, 0, 0 ], [ 1, 0, 0.1176, 0.0053, 0, 0.66, 0.0526, 632, 0, 1, 0, 0, 632, 0, 0 ], [ 1, 0, 0.123, 0.0053, 0, 0.66...
[ "import pygame", "from pygsear.Game import Game", "from pygsear.Drawable import RotatedImage, Square, Rectangle, Stationary, Multi, Image, String, Circle", "from pygsear.Widget import ProgressBar", "from pygsear.locals import RED, ORANGE, YELLOW", "import pygsear.conf", "pygsear.conf.MAX_FPS = 60", "m...
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
[ [ 1, 0, 0.0816, 0.0102, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1224, 0.0102, 0, 0.66, 0.0714, 792, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1531, 0.0102, 0, ...
[ "import os, re, mimetypes, sys", "SOURCE = sys.argv[1:]", "COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)", "COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)", "COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)", "EXCLUDE_TYPES = [\n \"application/xml\...
#!/usr/bin/env python import collections import datetime import difflib import heapq import itertools import json import logging import optparse import os import cPickle as pickle import pprint import Queue import re import sys import tempfile import threading import time import urlparse import MySQLdb import MySQLdb...
[ [ 1, 0, 0.0044, 0.0015, 0, 0.66, 0, 193, 0, 1, 0, 0, 193, 0, 0 ], [ 1, 0, 0.0059, 0.0015, 0, 0.66, 0.0286, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0074, 0.0015, 0, ...
[ "import collections", "import datetime", "import difflib", "import heapq", "import itertools", "import json", "import logging", "import optparse", "import os", "import cPickle as pickle", "import pprint", "import Queue", "import re", "import sys", "import tempfile", "import threading",...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. from distutils.core import setup setup(name = "vtdb", packages=["vtdb", "net"], platforms = "Any", )
[ [ 1, 0, 0.5, 0.1, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 8, 0, 0.85, 0.4, 0, 0.66, 1, 234, 3, 3, 0, 0, 0, 0, 1 ] ]
[ "from distutils.core import setup", "setup(name = \"vtdb\",\n packages=[\"vtdb\", \"net\"],\n platforms = \"Any\",\n )" ]
import itertools import json import logging import os import random from net import bsonrpc from net import gorpc class ZkOccError(Exception): pass # # the ZkNode dict returned by these structures has the following members: # # Path string # Data string # Stat ZkStat # Children []string # Cached bool...
[ [ 1, 0, 0.0039, 0.0039, 0, 0.66, 0, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.0078, 0.0039, 0, 0.66, 0.1, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.0118, 0.0039, 0, 0.6...
[ "import itertools", "import json", "import logging", "import os", "import random", "from net import bsonrpc", "from net import gorpc", "class ZkOccError(Exception):\n pass", "class SimpleZkOccConnection(object):\n\n def __init__(self, addr, timeout, user=None, password=None):\n self.client = bs...
# Implement a sensible wrapper that treats python objects as dictionaries # with sensible restrictions on serialization. import json def _default(o): if hasattr(o, '_serializable_attributes'): return dict([(k, v) for k, v in o.__dict__.iteritems() if k in o._serializable_attrib...
[ [ 1, 0, 0.093, 0.0233, 0, 0.66, 0, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 2, 0, 0.1977, 0.1395, 0, 0.66, 0.1429, 99, 0, 1, 1, 0, 0, 0, 3 ], [ 4, 1, 0.1977, 0.093, 1, 0.45,...
[ "import json", "def _default(o):\n if hasattr(o, '_serializable_attributes'):\n return dict([(k, v)\n for k, v in o.__dict__.iteritems()\n if k in o._serializable_attributes])\n return o.__dict__", " if hasattr(o, '_serializable_attributes'):\n return dict([(k, v)\n ...
# zkns - naming service. # # This uses zookeeper to resolve a list of servers to answer a # particular query type. # # Additionally, config information can be embedded nearby for future updates # to the python client. import collections import json import random from zk import zkjson SrvEntry = collections.namedtup...
[ [ 1, 0, 0.0874, 0.0097, 0, 0.66, 0, 193, 0, 1, 0, 0, 193, 0, 0 ], [ 1, 0, 0.0971, 0.0097, 0, 0.66, 0.1, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.1068, 0.0097, 0, 0.6...
[ "import collections", "import json", "import random", "from zk import zkjson", "SrvEntry = collections.namedtuple('SrvEntry',\n ('host', 'port', 'priority', 'weight'))", "class ZknsError(Exception):\n pass", "class ZknsAddr(zkjson.ZkJsonObject):\n # NOTE: attributes ma...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. # Handle transport and serialization callbacks for Go-style RPC servers. # # This is pretty simple. The client initiates an HTTP CONNECT and then # hijacks the socket...
[ [ 1, 0, 0.0279, 0.0028, 0, 0.66, 0, 546, 0, 1, 0, 0, 546, 0, 0 ], [ 1, 0, 0.0307, 0.0028, 0, 0.66, 0.0625, 438, 0, 1, 0, 0, 438, 0, 0 ], [ 1, 0, 0.0335, 0.0028, 0, ...
[ "import errno", "import select", "import ssl", "import socket", "import time", "import urlparse", "_lastStreamResponseError = 'EOS'", "class GoRpcError(Exception):\n pass", "class TimeoutError(GoRpcError):\n pass", "class ProgrammingError(GoRpcError):\n pass", "class AppError(GoRpcError):\n ...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. # Go-style RPC client using BSON as the codec. import bson import hmac import struct try: # use optimized cbson which has slightly different API import cbson d...
[ [ 1, 0, 0.0673, 0.0096, 0, 0.66, 0, 432, 0, 1, 0, 0, 432, 0, 0 ], [ 1, 0, 0.0769, 0.0096, 0, 0.66, 0.1111, 993, 0, 1, 0, 0, 993, 0, 0 ], [ 1, 0, 0.0865, 0.0096, 0, ...
[ "import bson", "import hmac", "import struct", "try:\n # use optimized cbson which has slightly different API\n import cbson\n decode_document = cbson.decode_next\nexcept ImportError:\n from bson import codec\n decode_document = codec.decode_document", " import cbson", " decode_document = cbson.dec...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file.
[]
[]