code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0501, 0.0462, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0765, 0.0013, 0, 0.66, 0.0217, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.0778, 0.0013, 0, 0.66...
[ "\"\"\"Code for encoding protocol message primitives.\n\nContains the logic for encoding every logical protocol field type\ninto one of the 5 physical wire types.\n\nThis code is designed to push the Python interpreter's performance to the\nlimits.", "import struct", "from google.net.proto2.python.internal impo...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3433, 0.0746, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.6567, 0.4627, 0, 0.66, 0.5, 853, 0, 1, 0, 0, 186, 0, 0 ], [ 8, 1, 0.5075, 0.1045, 1, 0.79, ...
[ "\"\"\"Defines a listener interface for observing certain\nstate transitions on Message objects.\n\nAlso defines a null implementation of this interface.\n\"\"\"", "class MessageListener(object):\n\n \"\"\"Listens for modifications made to a message. Meant to be registered via\n Message._SetListener().\n\n At...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1008, 0.0395, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.2174, 0.17, 0, 0.66, 0.3333, 918, 0, 7, 0, 0, 186, 0, 5 ], [ 8, 1, 0.1423, 0.004, 1, 0.24, ...
[ "\"\"\"Contains container classes to represent different protocol buffer types.\n\nThis file defines container classes which represent categories of protocol\nbuffer field types which need extra maintenance. Currently these categories\nare:\n - Repeated scalar fields - These are all repeated fields which aren't\n ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0817, 0.0039, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0934, 0.0039, 0, 0.66, 0.0192, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.0973, 0.0039, 0, 0.66...
[ "\"\"\"Constants and static functions to support protocol buffer wire format.\"\"\"", "import struct", "from google.net.proto2.python.public import descriptor", "from google.net.proto2.python.public import message", "TAG_TYPE_BITS = 3", "TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1", "WIRETYPE_VARINT = 0", ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0899, 0.0458, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1209, 0.0033, 0, 0.66, 0.0476, 138, 0, 1, 0, 0, 138, 0, 0 ], [ 1, 0, 0.1242, 0.0033, 0, 0.66...
[ "\"\"\"Provides type checking routines.\n\nThis module defines type checking utilities in the forms of dictionaries:\n\nVALUE_CHECKERS: A dictionary of field types and a value validation object.\nTYPE_TO_BYTE_SIZE_FN: A dictionary with field types and a size computing\n function.\nTYPE_TO_SERIALIZE_METHOD: A dicti...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0929, 0.0037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.1078, 0.0037, 0, 0.66, 0.25, 529, 0, 0, 0, 0, 645, 0, 0 ], [ 3, 0, 0.1115, 0.0037, 0, 0.66, ...
[ "\"\"\"Contains an abstract base class for protocol messages.\"\"\"", "class Error(Exception): pass", "class DecodeError(Error): pass", "class EncodeError(Error): pass", "class Message(object):\n\n \"\"\"Abstract base class for protocol messages.\n\n Protocol message classes are almost always generated by...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0305, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0374, 0.0014, 0, 0.66, 0.0667, 138, 0, 1, 0, 0, 138, 0, 0 ], [ 4, 0, 0.0443, 0.0069, 0, 0.66...
[ "\"\"\"Descriptors essentially contain exactly the information found in a .proto\nfile, in types that make this information accessible in Python.\n\"\"\"", "from google.net.proto2.python.internal import api_implementation", "if api_implementation.Type() == 'cpp':\n if api_implementation.Version() == 2:\n fr...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1209, 0.0512, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.1674, 0.014, 0, 0.66, 0.25, 445, 0, 0, 0, 0, 645, 0, 0 ], [ 8, 1, 0.1674, 0.0047, 1, 0.57, ...
[ "\"\"\"DEPRECATED: Declares the RPC service interfaces.\n\nThis module declares the abstract interfaces underlying proto2 RPC\nservices. These are intended to be independent of any particular RPC\nimplementation, so that proto2 services can be used on top of a variety\nof implementations. Starting with version 2...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0879, 0.0256, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.185, 0.1465, 0, 0.66, 0.25, 935, 0, 1, 0, 0, 801, 0, 2 ], [ 8, 1, 0.1502, 0.0623, 1, 0.09, ...
[ "\"\"\"Contains metaclasses used to create protocol service and service stub\nclasses from ServiceDescriptor objects at runtime.\n\nThe GeneratedServiceType and GeneratedServiceStubType metaclasses are used to\ninject all useful functionality into the classes output by the protocol\ncompiler at compile-time.\n\"\"\...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1867, 0.0886, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2532, 0.0063, 0, 0.66, 0.1429, 138, 0, 1, 0, 0, 138, 0, 0 ], [ 1, 0, 0.2595, 0.0063, 0, 0.66...
[ "\"\"\"Contains a metaclass and helper functions used to create\nprotocol message classes from Descriptor objects at runtime.\n\nRecall that a metaclass is the \"type\" of a class.\n(A class is to a metaclass what an instance is to a class.)\n\nIn this case, we use the GeneratedProtocolMessageType metaclass\nto inj...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.01, 0.0005, 0, 0.66, 0, 57, 0, 1, 0, 0, 57, 0, 0 ], [ 1, 0, 0.0105, 0.0005, 0, 0.66, 0.0074, 57, 0, 1, 0, 0, 57, 0, 0 ], [ 1, 0, 0.011, 0.0005, 0, 0.66, ...
[ "from google.net.proto2.python.public import descriptor as _descriptor", "from google.net.proto2.python.public import message as _message", "from google.net.proto2.python.public import reflection as _reflection", "DESCRIPTOR = _descriptor.FileDescriptor(\n name='net/proto2/proto/descriptor.proto',\n package...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0574, 0.0075, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0823, 0.0025, 0, 0.66, 0.1, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.0848, 0.0025, 0, 0.66, ...
[ "\"\"\"This module contains the MessageSet class, which is a special kind of\nprotocol message which can contain other protocol messages without knowing\ntheir types. See the class's doc string for more information.\"\"\"", "from google.net.proto import ProtocolBuffer", "import logging", "try:\n from google...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2528, 0.0899, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3146, 0.0112, 0, 0.66, 0.3333, 392, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3371, 0.0112, 0, 0.66,...
[ "\"\"\"\nThis is the Python counterpart to the RawMessage class defined in rawmessage.h.\n\nTo use this, put the following line in your .proto file:\n\npython from google.net.proto.RawMessage import RawMessage\n\n\"\"\"", "__pychecker__ = 'no-callinit no-argsused'", "from google.net.proto import ProtocolBuffer"...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.038, 0.0019, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.0398, 0.0019, 0, 0.66, 0.125, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.0417, 0.0019, 0, 0.66...
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.1739, 0.0087, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.1826, 0.0087, 0, 0.66, 0.1429, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.1913, 0.0087, 0, 0....
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0419, 0.0347, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0706, 0.0012, 0, 0.66, 0.0312, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 1, 0, 0.073, 0.0012, 0, 0.66,...
[ "\"\"\"Primitives for dealing with datastore indexes.\n\nExample index.yaml file:\n------------------------\n\nindexes:\n\n- kind: Cat", "import itertools", "from google.appengine.api import datastore_types", "from google.appengine.api import validation", "from google.appengine.api import yaml_errors", "f...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.8095, 0.0238, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 14, 0, 0.869, 0.0476, 0, 0.66, 0.5, 392, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.9881, 0.0476, 0, 0.66,...
[ "from google.net.proto import ProtocolBuffer", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "class Action(ProtocolBuffer.ProtocolMessage):\n pass" ]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.0196, 0.001, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.0206, 0.001, 0, 0.66, 0.0769, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.0216, 0.001, 0, 0.66,...
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.0026, 0.0001, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.0028, 0.0001, 0, 0.66, 0.0192, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.0029, 0.0001, 0, 0....
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.0053, 0.0003, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.0056, 0.0003, 0, 0.66, 0.0435, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.0058, 0.0003, 0, 0....
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.1333, 0.0067, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.14, 0.0067, 0, 0.66, 0.1429, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.1467, 0.0067, 0, 0.66...
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.8167, 0.2, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 1, 0.0333, 0, 0.66, 1, 334, 0, 1, 0, 0, 334, 0, 0 ] ]
[ "\"\"\"The Python datastore protocol buffer definition.\n\nProto2 compiler expects generated file names to follow specific pattern,\nwhich is not the case for the datastore_pb.py (should be datastore_v3_pb.py).\nThis file with the expected name redirects to the real legacy file.\n\"\"\"", "from google.appengine.d...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.0377, 0.0019, 0, 0.66, 0, 141, 0, 1, 0, 0, 141, 0, 0 ], [ 1, 0, 0.0395, 0.0019, 0, 0.66, 0.1111, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 1, 0, 0.0414, 0.0019, 0, 0....
[ "from google.net.proto import ProtocolBuffer", "import array", "import dummy_thread as thread", "__pychecker__ = \"\"\"maxreturns=0 maxbranches=0 no-callinit\n unusednames=printElemNumber,debug_strs no-special\"\"\"", "if hasattr(ProtocolBuffer, 'ExtendableProtocolMessage'):\n _extension_...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2881, 0.0169, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.339, 0.0169, 0, 0.66, 0.3333, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3729, 0.0169, 0, 0.66,...
[ "\"\"\"Base functionality for handling HTTP requests for built-in pages.\"\"\"", "import re", "from google.appengine.tools.devappserver2 import url_handler", "class WSGIHandler(url_handler.URLHandler):\n \"\"\"Simple handler that matches a regex and runs a WSGI application.\n\n WSGIHandler does not perform ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 1, 0, 0.0557, 0.0028, 0, 0.66, 0, 57, 0, 1, 0, 0, 57, 0, 0 ], [ 1, 0, 0.0585, 0.0028, 0, 0.66, 0.04, 57, 0, 1, 0, 0, 57, 0, 0 ], [ 1, 0, 0.0613, 0.0028, 0, 0.66, ...
[ "from google.net.proto2.python.public import descriptor as _descriptor", "from google.net.proto2.python.public import message as _message", "from google.net.proto2.python.public import reflection as _reflection", "from google.net.proto2.proto import descriptor_pb2", "DESCRIPTOR = _descriptor.FileDescriptor(...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1868, 0.011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2198, 0.011, 0, 0.66, 0.1, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.2418, 0.011, 0, 0.66, 0....
[ "\"\"\"Tests for devappserver2.update_checker.\"\"\"", "import unittest", "import google", "import mox", "from google.appengine.tools import sdk_update_checker", "from google.appengine.tools.devappserver2 import application_configuration", "from google.appengine.tools.devappserver2 import update_checker...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.103, 0.0061, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1212, 0.0061, 0, 0.66, 0.1429, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.1273, 0.0061, 0, 0.66,...
[ "\"\"\"Utilities for testing WSGI apps.\"\"\"", "import cStringIO", "import unittest", "import wsgiref.headers", "from google.appengine.tools.devappserver2 import request_rewriter", "class WSGITestCase(unittest.TestCase):\n \"\"\"Base class for tests involving requests to a WSGI application.\"\"\"\n\n @...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3333, 0.0196, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3922, 0.0196, 0, 0.66, 0.1111, 528, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4314, 0.0196, 0, 0.66...
[ "\"\"\"Constants used for communicating with the Python devappserver2 runtime.\"\"\"", "SERVER_SOFTWARE = 'Development/2.0'", "INTERNAL_HEADER_PREFIX = 'X-Appengine-Internal-'", "INTERNAL_ENVIRON_PREFIX = 'HTTP_X_APPENGINE_INTERNAL_'", "REQUEST_ID_HEADER = 'X-Appengine-Internal-Request-Id'", "REQUEST_ID_E...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2742, 0.0161, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3226, 0.0161, 0, 0.66, 0.1, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.3387, 0.0161, 0, 0.66, ...
[ "\"\"\"Helper functions to quit the development server.\"\"\"", "import logging", "import os", "import signal", "import time", "_shutting_down = False", "_num_terminate_requests = 0", "def async_quit():\n \"\"\"Quits the development server asynchronously in an organized fashion.\n\n Requests in prog...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1868, 0.011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2198, 0.011, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2418, 0.011, 0, 0.66, ...
[ "\"\"\"Checks for SDK updates.\"\"\"", "import sys", "from google.appengine.tools import appengine_rpc", "from google.appengine.tools import sdk_update_checker", "SDK_PRODUCT = 'devappserver2_py'", "_UPDATE_SERVER = 'appengine.google.com'", "def _get_user_agent():\n \"\"\"Returns the value of the 'User...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1789, 0.0105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2, 0.0105, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2105, 0.0105, 0, 0.66, ...
[ "\"\"\"Monitors a directory tree for changes using mtime polling.\"\"\"", "import os", "import threading", "import warnings", "class MtimeFileWatcher(object):\n \"\"\"Monitors a directory tree for changes using mtime polling.\"\"\"\n\n def __init__(self, directory):\n self._directory = directory\n s...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0497, 0.0029, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0585, 0.0029, 0, 0.66, 0.0833, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0614, 0.0029, 0, 0.66, ...
[ "\"\"\"Tests for devappserver2.login.\"\"\"", "import Cookie", "import unittest", "import urllib", "import wsgiref.util", "from google.appengine.tools.devappserver2 import login", "COOKIE_NAME = 'my_fancy_cookie'", "EMAIL = 'johnny@example.com'", "USER_ID = '115914779145204185301'", "class CookieT...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0841, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1045, 0.0045, 0, 0.66, 0.0476, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1091, 0.0045, 0, 0.66...
[ "\"\"\"Monitors a directory tree for changes using the inotify API.\n\nSee http://linux.die.net/man/7/inotify.\n\"\"\"", "import ctypes", "import ctypes.util", "import errno", "import itertools", "import logging", "import os", "import select", "import struct", "import sys", "IN_MODIFY = 0x000000...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3696, 0.0217, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4348, 0.0217, 0, 0.66, 0.3333, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 3, 0, 0.7065, 0.4348, 0, 0.66...
[ "\"\"\"Implementations of start_response callables as defined in PEP-333.\"\"\"", "import cStringIO", "class CapturingStartResponse(object):\n \"\"\"Capture the values passed to start_response.\"\"\"\n\n def __init__(self):\n self.status = None\n self.response_headers = None\n self.exc_info = None\n ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1223, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1439, 0.0072, 0, 0.66, 0.1111, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1511, 0.0072, 0, 0.66...
[ "\"\"\"Tests for google.apphosting.tools.devappserver2.win32_file_watcher.\"\"\"", "import ctypes", "import os", "import unittest", "import google", "import mox", "from google.appengine.tools.devappserver2 import win32_file_watcher", "class WinError(Exception):\n pass", "class Win32FileWatcherTest(...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0859, 0.0051, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.096, 0.0051, 0, 0.66, 0.0556, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.101, 0.0051, 0, 0.66, ...
[ "\"\"\"Handles dynamic serving of images from blobstore.\"\"\"", "import httplib", "import logging", "import re", "from google.appengine.api import apiproxy_stub_map", "from google.appengine.api import datastore", "from google.appengine.api import datastore_errors", "from google.appengine.api.images i...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3036, 0.0179, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3571, 0.0179, 0, 0.66, 0.25, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.3929, 0.0179, 0, 0.66, ...
[ "\"\"\"Tests for google.apphosting.tools.devappserver2.start_response_utils.\"\"\"", "import unittest", "from google.appengine.tools.devappserver2 import start_response_utils", "class TestCapturingStartResponse(unittest.TestCase):\n \"\"\"Tests for start_response_util.CapturingStartResponse.\"\"\"\n\n def t...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0864, 0.0227, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1091, 0.0045, 0, 0.66, 0.05, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.1136, 0.0045, 0, 0.66, ...
[ "\"\"\"A Python request handler.\n\nThe module must be imported inside that runtime sandbox so that the logging\nmodule is the sandboxed version.\n\"\"\"", "import cStringIO", "import httplib", "import os", "import sys", "import traceback", "import urllib", "import urlparse", "import google", "fro...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1932, 0.0114, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2159, 0.0114, 0, 0.66, 0.1111, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.2273, 0.0114, 0, 0.66...
[ "\"\"\"Tracking of active requests.\"\"\"", "import ctypes", "import threading", "class RequestState(object):\n \"\"\"State for a single request.\"\"\"\n\n def __init__(self, request_id):\n self.request_id = request_id\n self._threads = set([threading.current_thread().ident])\n self._condition = th...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0543, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0639, 0.0032, 0, 0.66, 0.0625, 546, 0, 1, 0, 0, 546, 0, 0 ], [ 1, 0, 0.0671, 0.0032, 0, 0.66...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.python.stubs.\"\"\"", "import errno", "import locale", "import mimetypes", "import os", "import random", "import shutil", "import sys", "import tempfile", "import unittest", "import google", "from distutils import util", "import mox", "...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0586, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.069, 0.0034, 0, 0.66, 0.0476, 546, 0, 1, 0, 0, 546, 0, 0 ], [ 1, 0, 0.0724, 0.0034, 0, 0.66,...
[ "\"\"\"Stub implementations of restricted functions.\"\"\"", "import errno", "import functools", "import inspect", "import locale", "import mimetypes", "import os", "import random", "import re", "import sys", "import threading", "try:\n import sysconfig\nexcept ImportError:\n sysconfig = Non...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0185, 0.0011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0218, 0.0011, 0, 0.66, 0.0238, 364, 0, 1, 0, 0, 364, 0, 0 ], [ 1, 0, 0.0229, 0.0011, 0, 0.66...
[ "\"\"\"A sandbox implementation that emulates production App Engine.\"\"\"", "import __builtin__", "import imp", "import os", "import re", "import sys", "import traceback", "import types", "import google", "import protorpc", "from google.appengine import dist", "from google.appengine.api impor...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.039, 0.0023, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0459, 0.0023, 0, 0.66, 0.0435, 364, 0, 1, 0, 0, 364, 0, 0 ], [ 1, 0, 0.0482, 0.0023, 0, 0.66,...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.python.sandbox.\"\"\"", "import __builtin__", "import imp", "import os", "import re", "import sys", "import types", "import urllib", "import unittest", "import google", "try:\n import lxml\nexcept ImportError:\n raise unittest.SkipTest('san...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1667, 0.0098, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1863, 0.0098, 0, 0.66, 0.1111, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1961, 0.0098, 0, 0.66...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.python.request_state.\"\"\"", "import ctypes", "import threading", "import unittest", "import google", "import mox", "from google.appengine.tools.devappserver2.python import request_state", "class CtypesComparator(mox.Comparator):\n\n def __init__...
#!/usr/bin/env python # # Copyright 2007 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 o...
[]
[]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3333, 0.0196, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3922, 0.0196, 0, 0.66, 0.125, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.4314, 0.0196, 0, 0.66, ...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.python.runtime.\"\"\"", "import unittest", "import google", "import mox", "from google.appengine.ext.remote_api import remote_api_stub", "from google.appengine.tools.devappserver2 import runtime_config_pb2", "from google.appengine.tools.devappserver2...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.4048, 0.0238, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4762, 0.0238, 0, 0.66, 0.25, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.5238, 0.0238, 0, 0.66, ...
[ "\"\"\"Tests for google.apphosting.tools.devappserver2.threadexecutor.\"\"\"", "import unittest", "from google.appengine.tools.devappserver2 import thread_executor", "class TestThreadExecutor(unittest.TestCase):\n \"\"\"Tests for thread_executor.ThreadExecutor.\"\"\"\n\n def setUp(self):\n self.executor ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0955, 0.0056, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1124, 0.0056, 0, 0.66, 0.0833, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.118, 0.0056, 0, 0.66,...
[ "\"\"\"Serves content for \"script\" handlers using the Go runtime.\"\"\"", "import logging", "import os", "import sys", "import threading", "from google.appengine.api import appinfo", "from google.appengine.tools.devappserver2 import application_configuration", "from google.appengine.tools.devappserv...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0742, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0873, 0.0044, 0, 0.66, 0.0714, 546, 0, 1, 0, 0, 546, 0, 0 ], [ 1, 0, 0.0917, 0.0044, 0, 0.66...
[ "\"\"\"An abstraction around the source and executable for a Go application.\"\"\"", "import errno", "import logging", "import os", "import os.path", "import subprocess", "import tempfile", "import google", "from google.appengine.tools.devappserver2 import errors", "from google.appengine.tools.dev...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1328, 0.0078, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1641, 0.0078, 0, 0.66, 0.0909, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.1719, 0.0078, 0, 0.66...
[ "\"\"\"Unit tests for the discovery_service module.\"\"\"", "import json", "import os", "import unittest", "import google", "import mox", "from google.appengine.tools.devappserver2.endpoints import api_config_manager", "from google.appengine.tools.devappserver2.endpoints import discovery_api_proxy", ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.042, 0.0195, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0586, 0.002, 0, 0.66, 0.0476, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.0605, 0.002, 0, 0.66, ...
[ "\"\"\"Helper for Cloud Endpoints API server in the development app server.\n\nThis is a fake apiserver proxy that does simple transforms on requests that\ncome in to /_ah/api and then re-dispatches them to /_ah/spi. It does not do\nany authentication, quota checking, DoS checking, etc.\n\nIn addition, the proxy l...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1491, 0.0088, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1842, 0.0088, 0, 0.66, 0.25, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.193, 0.0088, 0, 0.66, 0...
[ "\"\"\"Proxy that dispatches Discovery requests to the prod Discovery service.\"\"\"", "import httplib", "import json", "import logging", "class DiscoveryApiProxy(object):\n \"\"\"Proxies discovery service requests to a known cloud endpoint.\"\"\"\n\n # The endpoint host we're using to proxy discovery and...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0538, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0665, 0.0032, 0, 0.66, 0.1429, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.0696, 0.0032, 0, 0.66...
[ "\"\"\"Unit tests for the api_config_manager module.\"\"\"", "import json", "import re", "import unittest", "from google.appengine.tools.devappserver2.endpoints import api_config_manager", "class ApiConfigManagerTest(unittest.TestCase):\n\n def setUp(self):\n \"\"\"Make ApiConfigManager with a few hel...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0313, 0.0018, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0387, 0.0018, 0, 0.66, 0.0714, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.0405, 0.0018, 0, 0.66, ...
[ "\"\"\"Unit tests for the endpoints_server module.\"\"\"", "import httplib", "import json", "import unittest", "import google", "import mox", "from google.appengine.tools.devappserver2 import dispatcher", "from google.appengine.tools.devappserver2.endpoints import api_config_manager", "from google.a...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1417, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.175, 0.0083, 0, 0.66, 0.1, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1833, 0.0083, 0, 0.66, 0....
[ "\"\"\"Unit tests for the discovery_api_proxy module.\"\"\"", "import httplib", "import json", "import os", "import unittest", "import google", "import mox", "from google.appengine.tools.devappserver2.endpoints import discovery_api_proxy", "from google.appengine.tools.devappserver2.endpoints import ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1405, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1736, 0.0083, 0, 0.66, 0.1429, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.1818, 0.0083, 0, 0.66...
[ "\"\"\"Unit tests for the api_request module.\"\"\"", "import cStringIO", "import json", "import unittest", "from google.appengine.tools.devappserver2.endpoints import api_request", "from google.appengine.tools.devappserver2.endpoints import test_utils", "class RequestTest(unittest.TestCase):\n\n def t...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1417, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1583, 0.0083, 0, 0.66, 0.125, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.2, 0.0083, 0, 0.66, ...
[ "\"\"\"Cloud Endpoints API request-related data and functions.\"\"\"", "from __future__ import with_statement", "import cgi", "import copy", "import json", "import logging", "import urllib", "from google.appengine.tools.devappserver2 import util", "class ApiRequest(object):\n \"\"\"Simple data obje...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2429, 0.0143, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3, 0.0143, 0, 0.66, 0.2, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 2, 0, 0.3643, 0.0571, 0, 0.66, ...
[ "\"\"\"Helper utilities for the endpoints package.\"\"\"", "import json", "def send_wsgi_not_found_response(start_response, cors_handler=None):\n return send_wsgi_response('404', [('Content-Type', 'text/plain')],\n 'Not Found', start_response,\n cors_handle...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1753, 0.0103, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2062, 0.0103, 0, 0.66, 0.1429, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.2165, 0.0103, 0, 0.66...
[ "\"\"\"Regression tests for Endpoints server in devappserver2.\"\"\"", "import json", "import os.path", "from google.testing.pybase import googletest", "from google.appengine.tools.devappserver2 import regtest_utils", "from google.appengine.tools.devappserver2.endpoints import endpoints_server", "class ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.8947, 0.0526, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 1, 0.0526, 0, 0.66, 1, 3, 0, 1, 0, 0, 3, 0, 0 ] ]
[ "\"\"\"Cloud Endpoints module.\"\"\"", "from endpoints_server import *" ]
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1037, 0.0061, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.128, 0.0061, 0, 0.66, 0.2, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.1341, 0.0061, 0, 0.66, ...
[ "\"\"\"Hook into the live Discovery service and get API configuration info.\"\"\"", "import json", "import logging", "from google.appengine.tools.devappserver2.endpoints import discovery_api_proxy", "from google.appengine.tools.devappserver2.endpoints import util", "class DiscoveryService(object):\n \"\"...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3617, 0.0213, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4468, 0.0213, 0, 0.66, 0.2, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.4894, 0.0213, 0, 0.66, ...
[ "\"\"\"Unit tests for the util module.\"\"\"", "import unittest", "from google.appengine.tools.devappserver2.endpoints import test_utils", "from google.appengine.tools.devappserver2.endpoints import util", "class WSGIHelpersTest(test_utils.TestsWithStartResponse):\n\n def test_send_wsgi_response(self):\n ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0685, 0.004, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0806, 0.004, 0, 0.66, 0.0556, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.0847, 0.004, 0, 0.66, 0...
[ "\"\"\"A WSGI server implementation using a shared thread pool.\"\"\"", "import httplib", "import select", "import socket", "import threading", "import time", "import google", "from cherrypy import wsgiserver", "from google.appengine.tools.devappserver2 import errors", "from google.appengine.tools...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1604, 0.0094, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1887, 0.0094, 0, 0.66, 0.0769, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1981, 0.0094, 0, 0.66...
[ "\"\"\"Monitors a directory tree for changes using win32 APIs.\"\"\"", "import ctypes", "import os", "FILE_NOTIFY_CHANGE_FILE_NAME = 0x00000001", "FILE_NOTIFY_CHANGE_DIR_NAME = 0x00000002", "FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x00000004", "FILE_NOTIFY_CHANGE_SIZE = 0x00000008", "FILE_NOTIFY_CHANGE_LAST_W...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0496, 0.0029, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0583, 0.0029, 0, 0.66, 0.0625, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.0612, 0.0029, 0, 0.66...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.wsgi_server.\"\"\"", "import json", "import select", "import socket", "import time", "import unittest", "import urllib2", "import google", "from cherrypy import wsgiserver", "import mox", "from google.appengine.tools.devappserver2 import wsgi...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2329, 0.0137, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2603, 0.0137, 0, 0.66, 0.1429, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.274, 0.0137, 0, 0.66, ...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.scheduled_executor.\"\"\"", "import threading", "import time", "import unittest", "from google.appengine.tools.devappserver2 import scheduled_executor", "class FakeThreadPool(object):\n def submit(self, runnable, *args, **kwargs):\n runnable(*args,...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1727, 0.0455, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2182, 0.0091, 0, 0.66, 0.0769, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2364, 0.0091, 0, 0.66...
[ "\"\"\"Handles Channel API requests.\n\nIncludes a WSGI application that serves the 'jsapi' JavaScript code and handles\nchannel polling HTTP requests, to connect and retrieve messages.\n\"\"\"", "import os", "import google", "import webapp2", "from google.appengine.api import apiproxy_stub_map", "from go...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0691, 0.0041, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0813, 0.0041, 0, 0.66, 0.1, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0854, 0.0041, 0, 0.66, ...
[ "\"\"\"Tests for google.apphosting.tools.devappserver2.inotify_file_watcher.\"\"\"", "import logging", "import os", "import os.path", "import shutil", "import sys", "import tempfile", "import unittest", "from google.appengine.tools.devappserver2 import inotify_file_watcher", "class TestInotifyFile...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.17, 0.01, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2, 0.01, 0, 0.66, 0.25, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.21, 0.01, 0, 0.66, 0.5, 83...
[ "\"\"\"Monitors a directory tree for changes using the Mac OS X FSEvents API.\"\"\"", "import os.path", "import threading", "try:\n import AppKit\n import FSEvents\nexcept ImportError:\n AppKit = None\n FSEvents = None", " import AppKit", " import FSEvents", " AppKit = None", " FSEvents = None...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0071, 0.0004, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0083, 0.0004, 0, 0.66, 0.0189, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.0088, 0.0004, 0, 0.66, ...
[ "\"\"\"Tests for google.apphosting.tools.devappserver2.server.\"\"\"", "import httplib", "import logging", "import os", "import re", "import time", "import unittest", "import google", "import mox", "from google.appengine.api import appinfo", "from google.appengine.api import request_info", "fr...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0669, 0.0039, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0787, 0.0039, 0, 0.66, 0.0769, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0866, 0.0039, 0, 0.66...
[ "\"\"\"Rewrites blob download headers in the response with full blob contents.\"\"\"", "import logging", "from google.appengine.api import apiproxy_stub_map", "from google.appengine.api import datastore", "from google.appengine.api import datastore_errors", "from google.appengine.api.files import file_ser...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.3209, 0.1493, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4328, 0.0149, 0, 0.66, 0.2, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 1, 0, 0.4627, 0.0149, 0, 0.66, ...
[ "\"\"\"A thread-based executor that creates a new thread per work submission.\n\nThe advantage of this approach over ThreadPoolExecutor is:\n1. there is no upper bound to the number of threads.\n2. threads exit as soon as their work is done.\n\nThe disadvantage is the cost of one thread creation per work submission...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2267, 0.0133, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.28, 0.0133, 0, 0.66, 0.1111, 455, 3, 1, 0, 0, 80, 10, 1 ], [ 14, 0, 0.3467, 0.0133, 0, 0.66...
[ "\"\"\"Constants used by the devappserver2.\"\"\"", "NO_BODY_RESPONSE_STATUSES = frozenset([100, 101, 204, 304])", "NON_PUBLIC_CACHE_CONTROLS = frozenset(['private', 'no-cache', 'no-store'])", "IGNORED_REQUEST_HEADERS = frozenset([\n 'accept-encoding',\n 'connection',\n 'keep-alive',\n 'proxy-auth...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0287, 0.0017, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0321, 0.0017, 0, 0.66, 0.0417, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0338, 0.0017, 0, 0.66...
[ "\"\"\"Tests for devappserver2.blob_download.\"\"\"", "import base64", "import cStringIO", "import datetime", "import os", "import shutil", "import tempfile", "import unittest", "from google.appengine.api import apiproxy_stub_map", "from google.appengine.api import blobstore", "from google.appen...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0278, 0.0016, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0327, 0.0016, 0, 0.66, 0.125, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0344, 0.0016, 0, 0.66,...
[ "\"\"\"Tests for google.apphosting.tools.devappserver2.instance.\"\"\"", "import time", "import unittest", "import google", "import mox", "from google.appengine.tools.devappserver2 import instance", "from google.appengine.tools.devappserver2 import wsgi_request_info", "class TestInstance(unittest.Test...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0667, 0.0039, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0784, 0.0039, 0, 0.66, 0.0588, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0824, 0.0039, 0, 0.66...
[ "\"\"\"Serves content for \"script\" handlers using an HTTP runtime.\"\"\"", "import base64", "import contextlib", "import httplib", "import logging", "import os", "import socket", "import subprocess", "import threading", "import urllib", "import wsgiref.headers", "from google.appengine.tools....
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.057, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0705, 0.0034, 0, 0.66, 0.0909, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 1, 0, 0.0738, 0.0034, 0, 0.66,...
[ "\"\"\"Tests for google.appengine.tools.devappserver2.channel.\"\"\"", "import StringIO", "import unittest", "import urllib", "from google.appengine.api.channel import channel_service_stub", "from google.appengine.tools.devappserver2 import channel", "from google.appengine.tools.devappserver2 import wsg...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0599, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0669, 0.0035, 0, 0.66, 0.0714, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0739, 0.0035, 0, 0.66, ...
[ "\"\"\"Tests for devappserver2.admin.blobstore_viewer.\"\"\"", "import unittest", "import google", "import mox", "import webapp2", "from webob import multidict", "from google.appengine.ext import blobstore", "from google.appengine.ext import db", "from google.appengine.tools.devappserver2.admin impo...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0204, 0.0012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.024, 0.0012, 0, 0.66, 0.05, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0252, 0.0012, 0, 0.66, ...
[ "\"\"\"Tests for devappserver2.admin.datastore_viewer.\"\"\"", "import os", "import unittest", "import google", "import mox", "import webapp2", "from google.appengine.api import apiproxy_stub_map", "from google.appengine.api import datastore", "from google.appengine.api import datastore_types", "f...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.0909, 0.0053, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.107, 0.0053, 0, 0.66, 0.1111, 764, 0, 1, 0, 0, 764, 0, 0 ], [ 1, 0, 0.1123, 0.0053, 0, 0.66,...
[ "\"\"\"A handler that allows the user to send XMPP messages to their application.\"\"\"", "import cStringIO", "import random", "import string", "from xml.etree import ElementTree", "from google.appengine.tools.devappserver2.admin import admin_request_handler", "ElementTree.register_namespace('cli', 'jab...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1189, 0.007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1329, 0.007, 0, 0.66, 0.1429, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.1469, 0.007, 0, 0.66, ...
[ "\"\"\"Handlers that display full-text search indexes and documents.\"\"\"", "import urllib", "from google.appengine.api import search", "from google.appengine.tools.devappserver2.admin import admin_request_handler", "class BaseSearchHandler(admin_request_handler.AdminRequestHandler):\n _MAX_RESULTS_PER_PA...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1308, 0.0077, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1538, 0.0077, 0, 0.66, 0.1111, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1692, 0.0077, 0, 0.66, ...
[ "\"\"\"Tests for devappserver2.admin.console.\"\"\"", "import unittest", "import google", "import mox", "import webapp2", "from google.appengine.tools.devappserver2 import dispatcher", "from google.appengine.tools.devappserver2 import server", "from google.appengine.tools.devappserver2.admin import co...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1848, 0.0109, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2065, 0.0109, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.2174, 0.0109, 0, 0.66, ...
[ "\"\"\"A handler that allows the user to see and test cron tasks.\"\"\"", "import datetime", "import os.path", "import traceback", "from google.appengine.cron import groctimespecification", "from google.appengine.api import croninfo", "from google.appengine.api import yaml_errors", "from google.appeng...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.2237, 0.0132, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2632, 0.0132, 0, 0.66, 0.1111, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2763, 0.0132, 0, 0.66...
[ "\"\"\"A simple handler to serve static assets.\"\"\"", "import logging", "import mimetypes", "import os", "import os.path", "import threading", "import google", "import webapp2", "ASSETS_PATH = os.path.join(os.path.dirname(__file__), 'assets')", "class StaticFileHandler(webapp2.RequestHandler):\n...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1223, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1439, 0.0072, 0, 0.66, 0.1429, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1583, 0.0072, 0, 0.66...
[ "\"\"\"Shared utilities for dealing with taskqueue.\"\"\"", "import datetime", "from google.appengine.api import apiproxy_stub_map", "from google.appengine.api.taskqueue import taskqueue_service_pb", "def _human_readable_eta(eta_usec):\n eta = datetime.datetime.utcfromtimestamp(eta_usec / 1e6)\n return et...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1062, 0.0063, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.125, 0.0063, 0, 0.66, 0.125, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.1375, 0.0063, 0, 0.66, ...
[ "\"\"\"Tests for devappserver2.admin.taskqueue_utils.\"\"\"", "import unittest", "import google", "import mox", "from google.appengine.api import apiproxy_stub_map", "from google.appengine.api.taskqueue import taskqueue_service_pb", "from google.appengine.tools.devappserver2.admin import taskqueue_utils...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1589, 0.0093, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1776, 0.0093, 0, 0.66, 0.1111, 197, 0, 1, 0, 0, 197, 0, 0 ], [ 1, 0, 0.1869, 0.0093, 0, 0.66...
[ "\"\"\"Tests for devappserver2.admin.mail_request_handler.\"\"\"", "import email.message", "import unittest", "import google", "import mox", "import webapp2", "from google.appengine.tools.devappserver2 import dispatcher", "from google.appengine.tools.devappserver2.admin import mail_request_handler", ...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.5, 0.0294, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5588, 0.0294, 0, 0.66, 0.3333, 591, 0, 1, 0, 0, 591, 0, 0 ], [ 1, 0, 0.5882, 0.0294, 0, 0.66, ...
[ "\"\"\"A datastore stats generator button UI.\"\"\"", "from google.appengine.datastore import datastore_stats_generator", "from google.appengine.tools.devappserver2.admin import admin_request_handler", "class DatastoreStatsHandler(admin_request_handler.AdminRequestHandler):\n\n def get(self):\n self.respo...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1393, 0.0082, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1639, 0.0082, 0, 0.66, 0.0417, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1721, 0.0082, 0, 0.66...
[ "\"\"\"Run a server displaying the administrative UI for the application.\"\"\"", "import logging", "import os.path", "import google", "import jinja2", "import webapp2", "from google.appengine.tools.devappserver2.admin import admin_request_handler", "from google.appengine.tools.devappserver2.admin imp...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.25, 0.0147, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2794, 0.0147, 0, 0.66, 0.1667, 220, 0, 1, 0, 0, 220, 0, 0 ], [ 1, 0, 0.2941, 0.0147, 0, 0.66, ...
[ "\"\"\"A handler that allows the user to send email to their application.\"\"\"", "import email.mime.multipart", "import email.mime.text", "import email.utils", "from google.appengine.tools.devappserver2.admin import admin_request_handler", "REMOTE_IP = '0.1.0.20'", "class MailRequestHandler(admin_reque...
#!/usr/bin/env python # # Copyright 2007 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 o...
[ [ 8, 0, 0.1012, 0.006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.119, 0.006, 0, 0.66, 0.0625, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.125, 0.006, 0, 0.66, 0...
[ "\"\"\"Tests for devappserver2.admin.admin_request_handler.\"\"\"", "import os.path", "import tempfile", "import unittest", "import urlparse", "import google", "import mox", "import webapp2", "from google.appengine.tools import sdk_update_checker", "from google.appengine.tools.devappserver2.admin ...