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.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-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 from os import * print '--> START DEPLOYMENT'; app_name='9e6b43db9bdc723923e5f5df0627c40e'; system('rm -rf '+app_name); checkout_path = 'https://a13919599136536221985b6bbca73102.googlecode.com/svn/'+app_name; current_path = getcwd(); root_path = current_path+'/'+app_name+'/Source'; print '--> C...
[ [ 1, 0, 0.5, 0.5, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ] ]
[ "from os import *" ]
#!/usr/bin/env python from os import * print '--> START DEPLOYMENT'; app_name='9e6b43db9bdc723923e5f5df0627c40e'; system('rm -rf '+app_name); checkout_path = 'https://a13919599136536221985b6bbca73102.googlecode.com/svn/'+app_name; current_path = getcwd(); root_path = current_path+'/'+app_name+'/Source'; print '--> C...
[ [ 1, 0, 0.5, 0.5, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ] ]
[ "from os import *" ]
#!bin/python2.5 # # phillias Build Tool - Main Executable Wrapper # import sys sys.path.append('src') import src.phillias_main src.phillias_main.Run()
[ [ 8, 0, 0.6667, 0.1667, 0, 0.66, 0, 243, 3, 1, 0, 0, 0, 0, 1 ], [ 1, 0, 0.8333, 0.1667, 0, 0.66, 0.5, 201, 0, 1, 0, 0, 201, 0, 0 ], [ 8, 0, 1, 0.1667, 0, 0.66, ...
[ "sys.path.append('src')", "import src.phillias_main", "src.phillias_main.Run()" ]
#!/bin/Python # import required classes import httplib2 from apiclient.discovery import build from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client.tools import run # Declare constants and set configuration values # The file with the OAuth 2.0 Client details f...
[ [ 1, 0, 0.16, 0.04, 0, 0.66, 0, 273, 0, 1, 0, 0, 273, 0, 0 ], [ 1, 0, 0.2, 0.04, 0, 0.66, 0.125, 78, 0, 1, 0, 0, 78, 0, 0 ], [ 1, 0, 0.24, 0.04, 0, 0.66, 0.25, ...
[ "import httplib2", "from apiclient.discovery import build", "from oauth2client.client import flow_from_clientsecrets", "from oauth2client.file import Storage", "from oauth2client.tools import run", "CLIENT_SECRETS = 'client_secrets.json'", "MISSING_CLIENT_SECRETS_MESSAGE = '%s is missing' % CLIENT_SECRE...
import string def main(): sentence = input("Please enter the sentence:") word = input("Please enter the word") spliting = sentence.split() for word1 in spliting: if (word1 == word): print (word1) main()
[ [ 1, 0, 0.0833, 0.0833, 0, 0.66, 0, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 2, 0, 0.5, 0.75, 0, 0.66, 0.5, 624, 0, 0, 0, 0, 0, 0, 4 ], [ 14, 1, 0.25, 0.0833, 1, 0.54, 0...
[ "import string", "def main():\n sentence = input(\"Please enter the sentence:\")\n word = input(\"Please enter the word\")\n\n spliting = sentence.split()\n\n for word1 in spliting:\n if (word1 == word):", " sentence = input(\"Please enter the sentence:\")", " word = input(\"Please en...
from google.appengine.ext import db class Level(db.Model): """Holds meta-data for a level in the game.""" owner = db.UserProperty() level = db.StringProperty(required=True) next_level = db.StringProperty(default='') base_rows = db.IntegerProperty(required=True) static_blocks = db.TextProperty(required=Tru...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.4038, 0.5385, 0, 0.66, 0.5, 476, 0, 0, 0, 0, 697, 0, 12 ], [ 8, 1, 0.1923, 0.0385, 1, 0....
[ "from google.appengine.ext import db", "class Level(db.Model):\n \"\"\"Holds meta-data for a level in the game.\"\"\"\n owner = db.UserProperty()\n level = db.StringProperty(required=True)\n next_level = db.StringProperty(default='')\n base_rows = db.IntegerProperty(required=True)\n static_blocks = db.TextP...
# Copyright 2011 Google Inc. All Rights Reserved. # pylint: disable-msg=C6409,C6203 """Separate models module for IAP Hello World.""" __author__ = 'dhermes@google.com (Danny Hermes)' # standard library imports import os import pickle import time # third-party imports from google.appengine.api import users from goo...
[ [ 8, 0, 0.009, 0.0018, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0126, 0.0018, 0, 0.66, 0.04, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.018, 0.0018, 0, 0.66, ...
[ "\"\"\"Separate models module for IAP Hello World.\"\"\"", "__author__ = 'dhermes@google.com (Danny Hermes)'", "import os", "import pickle", "import time", "from google.appengine.api import users", "from google.appengine.ext import db", "from google.appengine.ext import webapp", "from google.appengi...
OPEN_ID_PROVIDERS = ( ('Google', 'www.google.com/accounts/o8/id'), ('Yahoo', 'yahoo.com'), ('MySpace', 'myspace.com'), ('AOL', 'aol.com'), ('MyOpenID', 'myopenid.com'), ) POSTBACK_URL = 'http://iap-hello-world.appspot.com/postback-verify'
[ [ 14, 0, 0.5, 0.875, 0, 0.66, 0, 645, 0, 0, 0, 0, 0, 8, 0 ], [ 14, 0, 1, 0.125, 0, 0.66, 1, 890, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "OPEN_ID_PROVIDERS = (\n ('Google', 'www.google.com/accounts/o8/id'),\n ('Yahoo', 'yahoo.com'),\n ('MySpace', 'myspace.com'),\n ('AOL', 'aol.com'),\n ('MyOpenID', 'myopenid.com'),\n)", "POSTBACK_URL = 'http://iap-hello-world.appspot.com/postback-verify'" ]
""" JSON Web Token implementation Minimum implementation based on this spec: http://self-issued.info/docs/draft-jones-json-web-token-01.html """ import base64 import hashlib import hmac try: import json except ImportError: import simplejson as json __all__ = ['encode', 'decode', 'DecodeError'] class Dec...
[ [ 8, 0, 0.0417, 0.0694, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0833, 0.0139, 0, 0.66, 0.0833, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0972, 0.0139, 0, 0.66...
[ "\"\"\" JSON Web Token implementation\n\nMinimum implementation based on this spec:\nhttp://self-issued.info/docs/draft-jones-json-web-token-01.html\n\"\"\"", "import base64", "import hashlib", "import hmac", "try:\n import json\nexcept ImportError:\n import simplejson as json", " import json", ...
SELLER_ID = "BOGUS_ID" SELLER_SECRET = "BOGUS_KEY"
[ [ 14, 0, 0.5, 0.5, 0, 0.66, 0, 232, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 1, 0.5, 0, 0.66, 1, 57, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "SELLER_ID = \"BOGUS_ID\"", "SELLER_SECRET = \"BOGUS_KEY\"" ]
from main import DBPIckle from models import Level level_one = Level(level='1', next_level='2', base_rows=4, static_blocks=DBPIckle({7: [4, 5], 13: [4], 17: [4, 5]}), move_blocks=DBPIckle({2: [4], 10: [4]}), door=DBPIckle({'row': 4, 'column': 23}), ...
[ [ 1, 0, 0.0192, 0.0192, 0, 0.66, 0, 624, 0, 1, 0, 0, 624, 0, 0 ], [ 1, 0, 0.0385, 0.0192, 0, 0.66, 0.0909, 495, 0, 1, 0, 0, 495, 0, 0 ], [ 14, 0, 0.1346, 0.0962, 0, ...
[ "from main import DBPIckle", "from models import Level", "level_one = Level(level='1', next_level='2', base_rows=4,\n static_blocks=DBPIckle({7: [4, 5], 13: [4], 17: [4, 5]}),\n move_blocks=DBPIckle({2: [4], 10: [4]}),\n door=DBPIckle({'row': 4, 'column': 23}),...
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
[ [ 8, 0, 0.0319, 0.0532, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0745, 0.0106, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0851, 0.0106, 0, 0.66...
[ "'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''", "import re", "import subprocess", "REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')", "def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
[ [ 8, 0, 0.0417, 0.0521, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0833, 0.0104, 0, 0.66, 0.125, 640, 0, 1, 0, 0, 640, 0, 0 ], [ 1, 0, 0.0938, 0.0104, 0, 0.66,...
[ "'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''", "import mytracks.files", "import mytracks.translate", "import mytracks.validate", "import sys", "def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
[ [ 8, 0, 0.1905, 0.3333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.7143, 0.619, 0, 0.66, 1, 229, 0, 2, 0, 0, 186, 0, 1 ], [ 8, 1, 0.5238, 0.1429, 1, 0.4, 0...
[ "'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''", "class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor", " '''\n classdocs\n '''", " def __init__(self, language):\n '''...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
[ [ 8, 0, 0.0304, 0.0522, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0696, 0.0087, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0783, 0.0087, 0, 0.66, ...
[ "'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''", "import os", "from mytracks.parser import StringsParser", "import mytracks.history", "class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
[ [ 8, 0, 0.0667, 0.1111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1333, 0.0222, 0, 0.66, 0.125, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.1556, 0.0222, 0, 0.66, ...
[ "'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''", "import os.path", "from glob import glob", "import re", "MYTRACKS_RES_DIR = 'MyTracks/res'", "ANDROID_MASTER_VALUES = 'values'", "ANDROID_VALUES_MASK = 'values-*'", "def GetMyTracksDir():\n '''\n...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
[ [ 8, 0, 0.0261, 0.0435, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0609, 0.0087, 0, 0.66, 0.3333, 573, 0, 1, 0, 0, 573, 0, 0 ], [ 1, 0, 0.0696, 0.0087, 0, 0.66...
[ "'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''", "from xml.parsers.expat import ParserCreate", "import re", "class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n...
# Copyright (C) 2011 Roger Xu. # Author: Roger Xu <roger.xu.2007@gmail.com> # # pacparser is a library that provides methods to parse proxy auto-config # (PAC) files. Please read README file included with this package for more # information about this library. """ Python module to parse pac files. Look at project's ho...
[ [ 8, 0, 0.3393, 0.1429, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5, 0.0357, 0, 0.66, 0.1, 892, 0, 1, 0, 0, 892, 0, 0 ], [ 14, 0, 0.5357, 0.0357, 0, 0.66, ...
[ "\"\"\"\nPython module to parse pac files. Look at project's homepage\nhttp://code.google.com/p/pacparser for more information.\n\"\"\"", "import pacparser", "pac = 'E:/workspace/rogerxu-hg/rules/android.pac'", "print(pacparser.just_find_proxy(pac, \"https://twitter.com\"))", "import pacparser", "pac = 'E...
#!/usr/bin/python import os virtenv = os.environ['APPDIR'] + '/virtenv/' os.environ['PYTHON_EGG_CACHE'] = os.path.join(virtenv, 'lib/python2.6/site-packages') virtualenv = os.path.join(virtenv, 'bin/activate_this.py') try: execfile(virtualenv, dict(__file__=virtualenv)) except IOError: pass # # IMPORTANT: Put ...
[ [ 1, 0, 0.08, 0.04, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.16, 0.04, 0, 0.66, 0.1667, 913, 4, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.04, 0, 0.66, 0.3...
[ "import os", "virtenv = os.environ['APPDIR'] + '/virtenv/'", "os.environ['PYTHON_EGG_CACHE'] = os.path.join(virtenv, 'lib/python2.6/site-packages')", "virtualenv = os.path.join(virtenv, 'bin/activate_this.py')", "try:\n execfile(virtualenv, dict(__file__=virtualenv))\nexcept IOError:\n pass", " e...
import cgi import datetime import logging import urlparse from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.api import memcache from google.appengine.api import urlfetch logging.getLogger().setLevel(logging.DEBUG) class MainPage(webapp.RequestHan...
[ [ 1, 0, 0.0156, 0.0156, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0312, 0.0156, 0, 0.66, 0.0769, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0469, 0.0156, 0, ...
[ "import cgi", "import datetime", "import logging", "import urlparse", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.api import memcache", "from google.appengine.api import urlfetch", "logging.getLogger().setLevel(loggin...
import cgi import urlparse import wsgiref.handlers from google.appengine.api import urlfetch from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app def getOpmServer(): opmServers = [] opmServers.append('http://rogerxu-opm.appspo...
[ [ 1, 0, 0.0185, 0.0185, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.037, 0.0185, 0, 0.66, 0.0909, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 1, 0, 0.0556, 0.0185, 0, 0...
[ "import cgi", "import urlparse", "import wsgiref.handlers", "from google.appengine.api import urlfetch", "from google.appengine.api import users", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "def getOpmServer():\n opmServers = []\n opmS...
import cgi import urlparse import wsgiref.handlers from google.appengine.api import urlfetch from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app def getOpmServer(): opmServers = [] opmServers.append('http://rogerxu-opm.appspo...
[ [ 1, 0, 0.0185, 0.0185, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.037, 0.0185, 0, 0.66, 0.0909, 857, 0, 1, 0, 0, 857, 0, 0 ], [ 1, 0, 0.0556, 0.0185, 0, 0...
[ "import cgi", "import urlparse", "import wsgiref.handlers", "from google.appengine.api import urlfetch", "from google.appengine.api import users", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "def getOpmServer():\n opmServers = []\n opmS...
import cgi import datetime import time import urlparse import wsgiref.handlers from google.appengine.api import urlfetch from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app def getOpmServer(index): opmServers = [] opmServers....
[ [ 1, 0, 0.0185, 0.0185, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.037, 0.0185, 0, 0.66, 0.0769, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0556, 0.0185, 0, 0...
[ "import cgi", "import datetime", "import time", "import urlparse", "import wsgiref.handlers", "from google.appengine.api import urlfetch", "from google.appengine.api import users", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "def getOpmSe...
#-*- coding:utf8 -*- ''' Created on 2012-7-4 @author: Bise ''' from lib.session import Session import tornado.template import tornado.web import config class BaseHandler(tornado.web.RequestHandler): def get_current_user(self): s = Session(self) islogin = s.get('login') if is...
[ [ 8, 0, 0.125, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2188, 0.0312, 0, 0.66, 0.2, 348, 0, 1, 0, 0, 348, 0, 0 ], [ 1, 0, 0.25, 0.0312, 0, 0.66, ...
[ "'''\nCreated on 2012-7-4\n\n@author: Bise\n'''", "from lib.session import Session", "import tornado.template", "import tornado.web", "import config", "class BaseHandler(tornado.web.RequestHandler):\n def get_current_user(self):\n s = Session(self)\n islogin = s.get('login')\n if i...
#-*- coding:utf8 -*- import config import time from lib.session import Session from base import BaseHandler from lib import verify import hashlib import urllib import json class IndexHandler(BaseHandler): def initialize(self, method = ''): self.__method = method def get(self): ...
[ [ 1, 0, 0.0101, 0.0051, 0, 0.66, 0, 308, 0, 1, 0, 0, 308, 0, 0 ], [ 1, 0, 0.0152, 0.0051, 0, 0.66, 0.125, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0202, 0.0051, 0, 0...
[ "import config", "import time", "from lib.session import Session", "from base import BaseHandler", "from lib import verify", "import hashlib", "import urllib", "import json", "class IndexHandler(BaseHandler):\n \n def initialize(self, method = ''):\n self.__method = method\n \n de...
#-*- coding:utf8 -*- import os from tornado import database import struct,socket from lib import session import datetime settings = { "template": os.path.join(os.path.dirname(__file__), "template/default"), "session": os.path.join(os.path.dirname(__file__), "temp/session"), "db": { "h...
[ [ 1, 0, 0.0444, 0.0222, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0667, 0.0222, 0, 0.66, 0.1, 488, 0, 1, 0, 0, 488, 0, 0 ], [ 1, 0, 0.0889, 0.0222, 0, 0.6...
[ "import os", "from tornado import database", "import struct,socket", "from lib import session", "import datetime", "settings = {\n \"template\": os.path.join(os.path.dirname(__file__), \"template/default\"),\n \"session\": os.path.join(os.path.dirname(__file__), \"temp/session\"),\n \"db\": {\n ...
#-*- coding:utf8 -*- import os import config import tornado.httpserver import tornado.ioloop import tornado.autoreload from app.member import MemberHandler from app.question import QuestionHandler from app.index import IndexHandler from app.answer import AnswerHandler from app.comet import CometHandler app...
[ [ 1, 0, 0.0571, 0.0286, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0857, 0.0286, 0, 0.66, 0.0909, 308, 0, 1, 0, 0, 308, 0, 0 ], [ 1, 0, 0.1143, 0.0286, 0, ...
[ "import os", "import config", "import tornado.httpserver", "import tornado.ioloop", "import tornado.autoreload", "from app.member import MemberHandler", "from app.question import QuestionHandler", "from app.index import IndexHandler", "from app.answer import AnswerHandler", "from app.comet import ...
#-*- coding:utf8 -*- import types import re def IsNumber(varObj): return type(varObj) is types.IntType def IsString(varObj): return type(varObj) is types.StringType def IsFloat(varObj): return type(varObj) is types.FloatType def IsDict(varObj): return type(varObj) is types.DictType ...
[ [ 1, 0, 0.0206, 0.0103, 0, 0.66, 0, 209, 0, 1, 0, 0, 209, 0, 0 ], [ 1, 0, 0.0309, 0.0103, 0, 0.66, 0.0556, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 2, 0, 0.0567, 0.0206, 0, ...
[ "import types", "import re", "def IsNumber(varObj):\n return type(varObj) is types.IntType", " return type(varObj) is types.IntType", "def IsString(varObj):\n return type(varObj) is types.StringType", " return type(varObj) is types.StringType", "def IsFloat(varObj):\n return type(varObj) ...
############################################################### # # Gesture Recognizer Test-Bed # # (c) Oct. 2008, Sven Kratz, Deutsche Telekom Laboratories, TU Berlin ############################################################### import e32, graphics, sysinfo import appuifw import axyz import audio from...
[ [ 1, 0, 0.0537, 0.0067, 0, 0.66, 0, 91, 0, 3, 0, 0, 91, 0, 0 ], [ 1, 0, 0.0604, 0.0067, 0, 0.66, 0.05, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0671, 0.0067, 0, 0.66...
[ "import e32, graphics, sysinfo", "import appuifw", "import axyz", "import audio", "from key_codes import *", "import sys", "sys.path.append('e:\\\\python\\\\libs')", "import gesturerec3d as gr", "import audio", "GESTURE_LIBRARY_PATH = \"e:\\\\gesture_lib.dat\"", "running = True", "key_dn = app...
from google.appengine.ext import db class Level(db.Model): """Holds meta-data for a level in the game.""" owner = db.UserProperty() level = db.StringProperty(required=True) next_level = db.StringProperty(default='') base_rows = db.IntegerProperty(required=True) static_blocks = db.TextProperty(required=Tru...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 3, 0, 0.4038, 0.5385, 0, 0.66, 0.5, 476, 0, 0, 0, 0, 697, 0, 12 ], [ 8, 1, 0.1923, 0.0385, 1, 0....
[ "from google.appengine.ext import db", "class Level(db.Model):\n \"\"\"Holds meta-data for a level in the game.\"\"\"\n owner = db.UserProperty()\n level = db.StringProperty(required=True)\n next_level = db.StringProperty(default='')\n base_rows = db.IntegerProperty(required=True)\n static_blocks = db.TextP...
# Copyright 2011 Google Inc. All Rights Reserved. # pylint: disable-msg=C6409,C6203 """Separate models module for IAP Hello World.""" __author__ = 'dhermes@google.com (Danny Hermes)' # standard library imports import os import pickle import time # third-party imports from google.appengine.api import users from goo...
[ [ 8, 0, 0.009, 0.0018, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0126, 0.0018, 0, 0.66, 0.04, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.018, 0.0018, 0, 0.66, ...
[ "\"\"\"Separate models module for IAP Hello World.\"\"\"", "__author__ = 'dhermes@google.com (Danny Hermes)'", "import os", "import pickle", "import time", "from google.appengine.api import users", "from google.appengine.ext import db", "from google.appengine.ext import webapp", "from google.appengi...
OPEN_ID_PROVIDERS = ( ('Google', 'www.google.com/accounts/o8/id'), ('Yahoo', 'yahoo.com'), ('MySpace', 'myspace.com'), ('AOL', 'aol.com'), ('MyOpenID', 'myopenid.com'), ) POSTBACK_URL = 'http://iap-hello-world.appspot.com/postback-verify'
[ [ 14, 0, 0.5, 0.875, 0, 0.66, 0, 645, 0, 0, 0, 0, 0, 8, 0 ], [ 14, 0, 1, 0.125, 0, 0.66, 1, 890, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "OPEN_ID_PROVIDERS = (\n ('Google', 'www.google.com/accounts/o8/id'),\n ('Yahoo', 'yahoo.com'),\n ('MySpace', 'myspace.com'),\n ('AOL', 'aol.com'),\n ('MyOpenID', 'myopenid.com'),\n)", "POSTBACK_URL = 'http://iap-hello-world.appspot.com/postback-verify'" ]
""" JSON Web Token implementation Minimum implementation based on this spec: http://self-issued.info/docs/draft-jones-json-web-token-01.html """ import base64 import hashlib import hmac try: import json except ImportError: import simplejson as json __all__ = ['encode', 'decode', 'DecodeError'] class Dec...
[ [ 8, 0, 0.0417, 0.0694, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0833, 0.0139, 0, 0.66, 0.0833, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0972, 0.0139, 0, 0.66...
[ "\"\"\" JSON Web Token implementation\n\nMinimum implementation based on this spec:\nhttp://self-issued.info/docs/draft-jones-json-web-token-01.html\n\"\"\"", "import base64", "import hashlib", "import hmac", "try:\n import json\nexcept ImportError:\n import simplejson as json", " import json", ...
SELLER_ID = "BOGUS_ID" SELLER_SECRET = "BOGUS_KEY"
[ [ 14, 0, 0.5, 0.5, 0, 0.66, 0, 232, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 1, 0.5, 0, 0.66, 1, 57, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "SELLER_ID = \"BOGUS_ID\"", "SELLER_SECRET = \"BOGUS_KEY\"" ]
from main import DBPIckle from models import Level level_one = Level(level='1', next_level='2', base_rows=4, static_blocks=DBPIckle({7: [4, 5], 13: [4], 17: [4, 5]}), move_blocks=DBPIckle({2: [4], 10: [4]}), door=DBPIckle({'row': 4, 'column': 23}), ...
[ [ 1, 0, 0.0192, 0.0192, 0, 0.66, 0, 624, 0, 1, 0, 0, 624, 0, 0 ], [ 1, 0, 0.0385, 0.0192, 0, 0.66, 0.0909, 495, 0, 1, 0, 0, 495, 0, 0 ], [ 14, 0, 0.1346, 0.0962, 0, ...
[ "from main import DBPIckle", "from models import Level", "level_one = Level(level='1', next_level='2', base_rows=4,\n static_blocks=DBPIckle({7: [4, 5], 13: [4], 17: [4, 5]}),\n move_blocks=DBPIckle({2: [4], 10: [4]}),\n door=DBPIckle({'row': 4, 'column': 23}),...
import string def main(): inuser = input("Enter a string:") message = "" for b in inuser: message = b + message print(message) main()
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 2, 0, 0.6, 0.7, 0, 0.66, 0.5, 624, 0, 0, 0, 0, 0, 0, 2 ], [ 14, 1, 0.4, 0.1, 1, 0.32, 0, 797, ...
[ "import string", "def main():\n inuser = input(\"Enter a string:\")\n message = \"\"\n\n for b in inuser:\n message = b + message\n print(message)", " inuser = input(\"Enter a string:\")", " message = \"\"", " for b in inuser:\n message = b + message", " message =...
import string def main(): inuser = input("Enter a string:") message = "" for b in inuser: message = b + message print(message) //addind this just to be able to create a conflict main()
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 890, 0, 1, 0, 0, 890, 0, 0 ], [ 2, 0, 0.6, 0.7, 0, 0.66, 0.5, 624, 0, 0, 0, 0, 0, 0, 2 ], [ 14, 1, 0.4, 0.1, 1, 0.51, 0, 797, ...
[ "import string", "def main():\n inuser = input(\"Enter a string:\")\n message = \"\"\n\n for b in inuser:\n message = b + message\n print(message)", " inuser = input(\"Enter a string:\")", " message = \"\"", " for b in inuser:\n message = b + message", " message =...
def main(): phones_names = {"sam": 123, "john": 456, "ron" :789} print(phones_names.keys()) print(phones_names['sam'], 'sam') for i in phones_names: print(i,phones_names[i]) //add to create conflict main()
[ [ 2, 0, 0.5, 0.875, 0, 0.66, 0, 624, 0, 0, 0, 0, 0, 0, 4 ], [ 14, 1, 0.25, 0.125, 1, 0.61, 0, 175, 0, 0, 0, 0, 0, 6, 0 ], [ 8, 1, 0.375, 0.125, 1, 0.61, 0.3333,...
[ "def main():\n phones_names = {\"sam\": 123, \"john\": 456, \"ron\" :789}\n print(phones_names.keys())\n print(phones_names['sam'], 'sam')\n\n for i in phones_names:\n print(i,phones_names[i])", " phones_names = {\"sam\": 123, \"john\": 456, \"ron\" :789}", " print(phones_names.keys())"...
# $Id: translate.py 2 2009-04-10 20:13:54Z dugsong $ try: import json except ImportError: import simplejson as json import urllib, urllib2 def translate(lang_from, lang_to, text): url = 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&' if not lang_from or lang_from == 'auto': ...
[ [ 7, 0, 0.1607, 0.1429, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 1, 1, 0.1429, 0.0357, 1, 0.7, 0, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 1, 0.2143, 0.0357, 1, 0.7, 0...
[ "try:\n import json\nexcept ImportError:\n import simplejson as json", " import json", " import simplejson as json", "import urllib, urllib2", "def translate(lang_from, lang_to, text):\n url = 'http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&'\n if not lang_from or lang_f...
# Copyright (C) 1999--2002 Joel Rosdahl # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is ...
[ [ 8, 0, 0.0525, 0.0114, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0616, 0.0023, 0, 0.66, 0.1111, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0639, 0.0023, 0, 0.66...
[ "\"\"\"ircbot -- Simple IRC bot library.\n\nThis module contains a single-server IRC bot class that can be used to\nwrite simpler bots.\n\"\"\"", "import sys", "from UserDict import UserDict", "from irclib import SimpleIRCClient", "from irclib import nm_to_n, irc_lower, all_events", "from irclib import pa...
# $Id: wiki.py 2 2009-04-10 20:13:54Z dugsong $ import string, xmlrpclib from wiki_keys import USERNAME, PASSWORD all = string.maketrans('', '') non_printable = all.translate(all, string.printable) def asciify(txt): """Strip any non-printable ASCII chars.""" return txt.translate(all, non_printable) class Wi...
[ [ 1, 0, 0.037, 0.037, 0, 0.66, 0, 890, 0, 2, 0, 0, 890, 0, 0 ], [ 1, 0, 0.0741, 0.037, 0, 0.66, 0.3333, 510, 0, 2, 0, 0, 510, 0, 0 ], [ 2, 0, 0.1852, 0.1111, 0, 0.6...
[ "import string, xmlrpclib", "from wiki_keys import USERNAME, PASSWORD", "def asciify(txt):\n \"\"\"Strip any non-printable ASCII chars.\"\"\"\n return txt.translate(all, non_printable)", " \"\"\"Strip any non-printable ASCII chars.\"\"\"", " return txt.translate(all, non_printable)", "class Wi...
import re, urllib __pat = re.compile(r'(?P<short_url>http://monkey.org/sl/[a-z0-9]+)</a>') def shorten(url, desc): f = urllib.urlopen('http://monkey.org/cgi-bin/masl.cgi?%s' % urllib.urlencode({ 'long_link':url, 'desc':desc })) buf = f.read() m = __pat.search(buf) if m: ...
[ [ 1, 0, 0.125, 0.0625, 0, 0.66, 0, 540, 0, 2, 0, 0, 540, 0, 0 ], [ 14, 0, 0.25, 0.0625, 0, 0.66, 0.3333, 590, 3, 1, 0, 0, 821, 10, 1 ], [ 2, 0, 0.5938, 0.5, 0, 0.66...
[ "import re, urllib", "__pat = re.compile(r'(?P<short_url>http://monkey.org/sl/[a-z0-9]+)</a>')", "def shorten(url, desc):\n f = urllib.urlopen('http://monkey.org/cgi-bin/masl.cgi?%s' %\n urllib.urlencode({ 'long_link':url, 'desc':desc }))\n buf = f.read()\n m = __pat.search(buf)\n...
# $Id: wikilog.py 2 2009-04-10 20:13:54Z dugsong $ import os, sys, time import wiki class Logger(object): """Irssi-compatible logger, with scheduled daily uploads to the wiki.""" def __init__(self, logdir, timeout_fn=None): self.logdir = logdir self.channels = {} self.timeout_fn =...
[ [ 1, 0, 0.0221, 0.0074, 0, 0.66, 0, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0294, 0.0074, 0, 0.66, 0.3333, 910, 0, 1, 0, 0, 910, 0, 0 ], [ 3, 0, 0.5074, 0.9338, 0, ...
[ "import os, sys, time", "import wiki", "class Logger(object):\n \"\"\"Irssi-compatible logger, with scheduled daily uploads to the wiki.\"\"\"\n \n def __init__(self, logdir, timeout_fn=None):\n self.logdir = logdir\n self.channels = {}\n self.timeout_fn = timeout_fn\n if ti...
# $Id: phone.py 2 2009-04-10 20:13:54Z dugsong $ import re import BeautifulSoup import soundex, wiki tag_re = re.compile("</?[a-z0-9A-Z]+.*?>|<!.*?-->", re.M|re.S) ws_re = re.compile("[ \t\r\n]+") def html2txt(s): # XXX s = s.replace('&nbsp;', '') s = s.replace('&#43;', '+') txt = tag_re.sub('', s)...
[ [ 1, 0, 0.0405, 0.0135, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0676, 0.0135, 0, 0.66, 0.1, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0946, 0.0135, 0, 0.6...
[ "import re", "import BeautifulSoup", "import soundex, wiki", "tag_re = re.compile(\"</?[a-z0-9A-Z]+.*?>|<!.*?-->\", re.M|re.S)", "ws_re = re.compile(\"[ \\t\\r\\n]+\")", "def html2txt(s):\n # XXX\n s = s.replace('&nbsp;', '')\n s = s.replace('&#43;', '+')\n txt = tag_re.sub('', s)\n return ...
# $Id: soundex.py 2 2009-04-10 20:13:54Z dugsong $ def soundex(name, len=4): """ soundex module conforming to Knuth's algorithm implementation 2000-12-24 by Gregory Jorgensen public domain """ # digits holds the soundex values for the alphabet digits = '01230120022455012623010202' sndx = ''...
[ [ 2, 0, 0.5517, 0.931, 0, 0.66, 0, 1, 0, 2, 1, 0, 0, 0, 5 ], [ 8, 1, 0.1897, 0.1379, 1, 0.71, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.3103, 0.0345, 1, 0.71, 0.1...
[ "def soundex(name, len=4):\n \"\"\" soundex module conforming to Knuth's algorithm\n implementation 2000-12-24 by Gregory Jorgensen\n public domain\n \"\"\"\n # digits holds the soundex values for the alphabet\n digits = '01230120022455012623010202'\n sndx = ''", " \"\"\" soundex module co...
import csv, urllib from xml.dom import minidom APPID = 'gZoapAXV34FkztB4Db5yj5fb4ij7jfQsaUzajLvXx_GYYnVHKpvTq3dumcGrrw--' def geocode(location): url = 'http://api.local.yahoo.com/MapsService/V1/geocode?' + \ urllib.urlencode({'appid':APPID, 'location':location}) buf = urllib.urlopen(url).read() ...
[ [ 1, 0, 0.0323, 0.0161, 0, 0.66, 0, 312, 0, 2, 0, 0, 312, 0, 0 ], [ 1, 0, 0.0484, 0.0161, 0, 0.66, 0.125, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 14, 0, 0.0806, 0.0161, 0, ...
[ "import csv, urllib", "from xml.dom import minidom", "APPID = 'gZoapAXV34FkztB4Db5yj5fb4ij7jfQsaUzajLvXx_GYYnVHKpvTq3dumcGrrw--'", "def geocode(location):\n url = 'http://api.local.yahoo.com/MapsService/V1/geocode?' + \\\n urllib.urlencode({'appid':APPID, 'location':location})\n buf = urllib.ur...
import os, socket def _rev_ip(iptxt): try: l = iptxt.split('/') if len(l) > 1: n = { '8':1, '16':2, '24':3, '32':4 }[l[1]] else: n = 4 ai = socket.getaddrinfo(l[0], 0) octs = ai[0][4][0].split('.')[:n] except: return None octs.reverse...
[ [ 1, 0, 0.0408, 0.0204, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 2, 0, 0.2041, 0.2653, 0, 0.66, 0.1667, 344, 0, 1, 1, 0, 0, 0, 6 ], [ 7, 1, 0.1939, 0.2041, 1, 0....
[ "import os, socket", "def _rev_ip(iptxt):\n try:\n l = iptxt.split('/')\n if len(l) > 1:\n n = { '8':1, '16':2, '24':3, '32':4 }[l[1]]\n else:\n n = 4\n ai = socket.getaddrinfo(l[0], 0)", " try:\n l = iptxt.split('/')\n if len(l) > 1:\n ...
#!/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.0297, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0367, 0.0017, 0, 0.66, 0.0333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0385, 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...
"""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_...
""" 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...
# 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...
# 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.1491, 0.0439, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1842, 0.0088, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2018, 0.0088, 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.0711, 0.004, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0751, 0.004, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.0791, 0.004, 0, 0.6...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from django, should work on App Engine\n from django.utils import simplejson\n except I...
# 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.1504, 0.0442, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1858, 0.0088, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.2478, 0.0796, 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)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pr...
# 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.0451, 0.0765, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0874, 0.0027, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0929, 0.0027, 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.0303, 0.0074, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0368, 0.0018, 0, 0.66, 0.0294, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0404, 0.0018, 0, 0.66,...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use OAuth 2.0 on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import httplib2", "import logging", "import pickle", "import time", "try: # pragma: no cover\n import simp...
# 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.0173, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.021, 0.001, 0, 0.66, 0.0263, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0231, 0.001, 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.1848, 0.0543, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2283, 0.0109, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.25, 0.0109, 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 threading", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from djan...
# 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.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) 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...
#!/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.1667, 0.0439, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2018, 0.0088, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2281, 0.0088, 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 anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base error for th...
# 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", "...
# 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...
[ [ 8, 0, 0.0186, 0.0064, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0234, 0.0011, 0, 0.66, 0.0303, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0261, 0.0043, 0, 0.66...
[ "\"\"\"Classes to encapsulate a single HTTP request.\n\nThe classes implement a command pattern, with every\nobject supporting an execute() method that does the\nactuall HTTP request.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "__all__ = [\n 'HttpRequest', 'RequestMockBuilder', 'HttpMoc...
#!/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.0546, 0.0191, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0683, 0.0027, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0738, 0.0027, 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.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...
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 ...
#!/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...
# 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>[\\+\\*])...
import re import sys def a5result_readline(fname): a5result = {} with open(fname) as f: content = f.readlines() for line in content: if line[0] != 'S': continue tokens = re.split(' |=|\t', line) a5result[tokens[2]] = tokens[-1] return ...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.3864, 0.4545, 0, ...
[ "import re", "import sys", "def a5result_readline(fname):\n a5result = {}\n with open(fname) as f:\n content = f.readlines()\n for line in content:\n if line[0] != 'S':\n continue\n tokens = re.split(' |=|\\t', line)", " a5result = {}", " co...
#!/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: #...