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.0194,
0.0011,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0229,
0.0011,
0,
0.66,
0.0217,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.024,
0.0011,
0,
0.66,... | [
"\"\"\"A handler that displays information about datastore entities.\"\"\"",
"import cgi",
"import datetime",
"import math",
"import time",
"import types",
"import urllib",
"from google.appengine.api import apiproxy_stub_map",
"from google.appengine.api import datastore",
"from google.appengine.ap... |
#!/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.3864,
0.0227,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4318,
0.0227,
0,
0.66,
0.25,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.4773,
0.0227,
0,
0.66,
... | [
"\"\"\"A datastore indexes viewer UI.\"\"\"",
"import collections",
"from google.appengine.api import datastore",
"from google.appengine.tools.devappserver2.admin import admin_request_handler",
"class DatastoreIndexesViewer(admin_request_handler.AdminRequestHandler):\n\n def get(self):\n indexes = colle... |
#!/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.1349,
0.0079,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1508,
0.0079,
0,
0.66,
0.2,
167,
0,
1,
0,
0,
167,
0,
0
],
[
1,
0,
0.1667,
0.0079,
0,
0.66,
... | [
"\"\"\"A handler that displays information about blobstore blobs.\"\"\"",
"from google.appengine.ext import blobstore",
"from google.appengine.tools.devappserver2.admin import admin_request_handler",
"def _get_blobs(start, limit):\n \"\"\"Return a list of BlobInfo objects ordered by most recently created.\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.2048,
0.012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.241,
0.012,
0,
0.66,
0.0909,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.2651,
0.012,
0,
0.66,
... | [
"\"\"\"Tests for devappserver2.admin.taskqueue_queues_handler.\"\"\"",
"import unittest",
"import google",
"import mox",
"import webapp2",
"from google.appengine.api import apiproxy_stub_map",
"from google.appengine.api.taskqueue import taskqueue_service_pb",
"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.2833,
0.0167,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3333,
0.0167,
0,
0.66,
0.2,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.35,
0.0167,
0,
0.66,
... | [
"\"\"\"A handler that displays queue information for the application.\"\"\"",
"from google.appengine.api import apiproxy_stub_map",
"from google.appengine.api.taskqueue import taskqueue_service_pb",
"from google.appengine.tools.devappserver2.admin import admin_request_handler",
"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.1126,
0.0066,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1325,
0.0066,
0,
0.66,
0.0588,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1391,
0.0066,
0,
0.66,
... | [
"\"\"\"A base class for all Admin UI request handlers and related utilities.\"\"\"",
"import os.path",
"import random",
"import string",
"import urllib",
"import google",
"import jinja2",
"import webapp2",
"from google.appengine.tools import sdk_update_checker",
"def _urlencode_filter(value):\n 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.5862,
0.0345,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.6552,
0.0345,
0,
0.66,
0.3333,
813,
0,
1,
0,
0,
813,
0,
0
],
[
1,
0,
0.6897,
0.0345,
0,
0.66... | [
"\"\"\"A handler that quits devappserver2.\"\"\"",
"from google.appengine.tools.devappserver2 import shutdown",
"from google.appengine.tools.devappserver2.admin import admin_request_handler",
"class QuitHandler(admin_request_handler.AdminRequestHandler):\n\n def get(self):\n self.response.status_int = 200... |
#!/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.109,
0.0064,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1218,
0.0064,
0,
0.66,
0.0769,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.1282,
0.0064,
0,
0.66,... | [
"\"\"\"Tests for devappserver2.admin.cron_handler.\"\"\"",
"import datetime",
"import traceback",
"import unittest",
"import google",
"import mox",
"import webapp2",
"from google.appengine.api import croninfo",
"from google.appengine.api import yaml_errors",
"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.136,
0.008,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.16,
0.008,
0,
0.66,
0.1111,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.168,
0.008,
0,
0.66,
0... | [
"\"\"\"A handler that displays task information for a single queue.\"\"\"",
"import datetime",
"import urllib",
"from google.appengine.api import apiproxy_stub_map",
"from google.appengine.api.taskqueue import taskqueue_service_pb",
"from google.appengine.api.taskqueue import taskqueue_stub",
"from goog... |
#!/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.6538,
0.0385,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7308,
0.0385,
0,
0.66,
0.5,
273,
0,
1,
0,
0,
273,
0,
0
],
[
3,
0,
0.9231,
0.1923,
0,
0.66,
... | [
"\"\"\"A handler that displays servers and their instances.\"\"\"",
"from google.appengine.tools.devappserver2.admin import admin_request_handler",
"class ServersHandler(admin_request_handler.AdminRequestHandler):\n\n def get(self):\n values = {'servers': self.dispatcher.servers}\n self.response.write(se... |
#!/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.0829,
0.0049,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0976,
0.0049,
0,
0.66,
0.0909,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.1073,
0.0049,
0,
0.66,
... | [
"\"\"\"Tests for devappserver2.admin.xmpp_request_handler.\"\"\"",
"import unittest",
"import google",
"from lxml import doctestcompare",
"import mox",
"import webapp2",
"from google.appengine.tools.devappserver2 import dispatcher",
"from google.appengine.tools.devappserver2.admin import xmpp_request_... |
#!/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.1259,
0.0074,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1407,
0.0074,
0,
0.66,
0.2,
251,
0,
1,
0,
0,
251,
0,
0
],
[
1,
0,
0.1481,
0.0074,
0,
0.66,
... | [
"\"\"\"Schedule callables to run at a particular time.\"\"\"",
"import heapq",
"import threading",
"import time",
"class _Event(object):\n def __init__(self, eta, runnable, key):\n self._eta = eta\n self._runnable = runnable\n self._key = key\n\n def __lt__(self, other):\n return self.eta < ot... |
#!/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.0384,
0.0023,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0429,
0.0023,
0,
0.66,
0.05,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0451,
0.0023,
0,
0.66,
... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.dispatcher.\"\"\"",
"import logging",
"import unittest",
"import google",
"import mox",
"from google.appengine.api import appinfo",
"from google.appengine.api import dispatchinfo",
"from google.appengine.api import request_info",
"from google.app... |
#!/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.1111,
0.0065,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1307,
0.0065,
0,
0.66,
0.1667,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1373,
0.0065,
0,
0.66... | [
"\"\"\"Tests for google.apphosting.tools.devappserver2.wsgi_request_info.\"\"\"",
"import re",
"import unittest",
"import wsgiref.util",
"from google.appengine.tools.devappserver2 import wsgi_request_info",
"class TestWSGIRequestInfo(unittest.TestCase):\n \"\"\"Tests for WSGIRequestInfo.\"\"\"\n\n def 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.0276,
0.0016,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0325,
0.0016,
0,
0.66,
0.0714,
546,
0,
1,
0,
0,
546,
0,
0
],
[
1,
0,
0.0341,
0.0016,
0,
0.66... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.static_files_handler.\"\"\"",
"import errno",
"import os.path",
"import unittest",
"import google",
"import mox",
"from google.appengine.api import appinfo",
"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.1771,
0.0104,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2083,
0.0104,
0,
0.66,
0.1111,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2188,
0.0104,
0,
0.66... | [
"\"\"\"Serves content for \"script\" handlers using the Python runtime.\"\"\"",
"import os",
"import sys",
"import google",
"from google.appengine.api import appinfo",
"from google.appengine.tools.devappserver2 import http_runtime",
"from google.appengine.tools.devappserver2 import instance",
"_RUNTIM... |
#!/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.2787,
0.0164,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3443,
0.0164,
0,
0.66,
0.3333,
955,
0,
1,
0,
0,
955,
0,
0
],
[
2,
0,
0.5738,
0.377,
0,
0.66,... | [
"\"\"\"General utility functions for devappserver2.\"\"\"",
"import wsgiref.headers",
"def get_headers_from_environ(environ):\n \"\"\"Get a wsgiref.headers.Headers object with headers from the environment.\n\n Headers in environ are prefixed with 'HTTP_', are all uppercase, and have\n had dashes replaced wit... |
#!/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.0833,
0.0049,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0931,
0.0049,
0,
0.66,
0.0909,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.098,
0.0049,
0,
0.66,... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.mtime_file_watcher.\"\"\"",
"import logging",
"import os",
"import os.path",
"import shutil",
"import tempfile",
"import time",
"import unittest",
"from google.appengine.tools.devappserver2 import mtime_file_watcher",
"class FakeThread(object):... |
#!/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.5667,
0.0333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.7167,
0.0667,
0,
0.66,
0.3333,
529,
0,
0,
0,
0,
645,
0,
0
],
[
8,
1,
0.7333,
0.0333,
1,
0.04... | [
"\"\"\"Exceptions common to the entire package.\"\"\"",
"class Error(Exception):\n \"\"\"Base class for exceptions in this package.\"\"\"",
" \"\"\"Base class for exceptions in this package.\"\"\"",
"class InvalidAppConfigError(Error):\n \"\"\"The supplied application configuration (app.yaml) file is inval... |
#!/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.0339,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0399,
0.002,
0,
0.66,
0.05,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.0419,
0.002,
0,
0.66,
... | [
"\"\"\"Manage the lifecycle of runtime processes and dispatch requests to them.\"\"\"",
"import collections",
"import logging",
"import threading",
"import time",
"import google",
"from google.appengine.tools.devappserver2 import errors",
"NORMAL_REQUEST = 0",
"READY_REQUEST = 1 # A warmup request ... |
#!/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.0507,
0.003,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0597,
0.003,
0,
0.66,
0.0833,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0627,
0.003,
0,
0.66,
... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.url_handler.\"\"\"",
"import re",
"import unittest",
"import wsgiref.util",
"from google.appengine.api import appinfo",
"from google.appengine.tools.devappserver2 import constants",
"from google.appengine.tools.devappserver2 import url_handler",
"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.1232,
0.0072,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1449,
0.0072,
0,
0.66,
0.0294,
764,
0,
1,
0,
0,
764,
0,
0
],
[
1,
0,
0.1522,
0.0072,
0,
0.66... | [
"\"\"\"Tests for google.apphosting.tools.devappserver2.api_server.\"\"\"",
"import cStringIO",
"import tempfile",
"import unittest",
"import urllib",
"import wsgiref.util",
"from google.appengine.api import user_service_pb",
"from google.appengine.datastore import datastore_stub_util",
"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... | [] | [] |
#!/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.1869,
0.0093,
0,
0.66,
0.1429,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1963,
0.0093,
0,
0.66,
... | [
"\"\"\"Tests for google.apphosting.tools.devappserver2.fsevents_file_watcher.\"\"\"",
"import os.path",
"import unittest",
"import google",
"import mox",
"from google.appengine.tools.devappserver2 import fsevents_file_watcher",
"class FSEventsFileWatcherTest(unittest.TestCase):\n \"\"\"Tests for fseven... |
#!/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.081,
0.0458,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1127,
0.0035,
0,
0.66,
0.04,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1162,
0.0035,
0,
0.66,
... | [
"\"\"\"Handles login/logout pages and dealing with user cookies.\n\nIncludes a WSGI application that serves the login page and handles login and\nlogout HTTP requests. It accepts these GET query parameters:\n\n continue: URL to redirect to after a login or logout has completed.\n email: Email address to set for 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.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.1111,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2105,
0.0105,
0,
0.66,
... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.shutdown.\"\"\"",
"import os",
"import signal",
"import time",
"import unittest",
"import google",
"import mox",
"from google.appengine.tools.devappserver2 import shutdown",
"class ShutdownTest(unittest.TestCase):\n\n def setUp(self):\n self.... |
#!/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.04,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0447,
0.0024,
0,
0.66,
0.0667,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.0471,
0.0024,
0,
0.66,
... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.blob_image.\"\"\"",
"import httplib",
"import os",
"import unittest",
"import google",
"import mox",
"try:\n from PIL import Image\nexcept ImportError:\n try:\n import Image\n except ImportError:\n raise unittest.SkipTest('blob_image_test 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.0348,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0409,
0.002,
0,
0.66,
0.0385,
177,
0,
1,
0,
0,
177,
0,
0
],
[
1,
0,
0.0429,
0.002,
0,
0.66,
... | [
"\"\"\"Tests for google.appengine.tools.devappserver2.http_runtime.\"\"\"",
"import base64",
"import cStringIO",
"import httplib",
"import os",
"import re",
"import shutil",
"import socket",
"import subprocess",
"import tempfile",
"import unittest",
"import google",
"import mox",
"from goo... |
#!/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.1056,
0.0062,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1242,
0.0062,
0,
0.66,
0.125,
479,
0,
1,
0,
0,
479,
0,
0
],
[
1,
0,
0.1304,
0.0062,
0,
0.66,... | [
"\"\"\"Associates request state, derived from a WSGI environ, with a unique id.\"\"\"",
"import contextlib",
"import random",
"import string",
"import threading",
"import wsgiref.util",
"from google.appengine.api import request_info",
"def _choose_request_id():\n return ''.join(random.choice(string.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.0274,
0.0016,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0306,
0.0016,
0,
0.66,
0.0588,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.0322,
0.0016,
0,
0.66... | [
"\"\"\"Manage the lifecycle of servers and dispatch requests to them.\"\"\"",
"import collections",
"import logging",
"import threading",
"import urlparse",
"import wsgiref.headers",
"from google.appengine.api import request_info",
"from google.appengine.tools.devappserver2 import constants",
"from ... |
#!/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.0833,
0.0049,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.098,
0.0049,
0,
0.66,
0.0588,
325,
0,
1,
0,
0,
325,
0,
0
],
[
1,
0,
0.1029,
0.0049,
0,
0.66,... | [
"\"\"\"Tests for google.apphosting.tools.devappserver2.devappserver2.\"\"\"",
"import argparse",
"import getpass",
"import itertools",
"import os",
"import os.path",
"import sys",
"import tempfile",
"import unittest",
"import google",
"import mox",
"from google.appengine.tools.devappserver2 im... |
#!/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.0197,
0.0012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0232,
0.0012,
0,
0.66,
0.0556,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.0244,
0.0012,
0,
0.66... | [
"\"\"\"Tests for google.apphosting.tools.devappserver2.application_configuration.\"\"\"",
"import collections",
"import os.path",
"import unittest",
"import google",
"import mox",
"from google.appengine.api import appinfo",
"from google.appengine.api import backendinfo",
"from google.appengine.api 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.2099,
0.0123,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2469,
0.0123,
0,
0.66,
0.125,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2593,
0.0123,
0,
0.66,... | [
"\"\"\"Monitors a directory tree for changes.\"\"\"",
"import sys",
"import types",
"from google.appengine.tools.devappserver2 import fsevents_file_watcher",
"from google.appengine.tools.devappserver2 import inotify_file_watcher",
"from google.appengine.tools.devappserver2 import mtime_file_watcher",
"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.109,
0.0064,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1282,
0.0064,
0,
0.66,
0.1429,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1346,
0.0064,
0,
0.66,... | [
"\"\"\"Base functionality for handling HTTP requests.\"\"\"",
"import logging",
"import wsgiref.util",
"from google.appengine.api import appinfo",
"from google.appengine.tools.devappserver2 import constants",
"from google.appengine.tools.devappserver2 import login",
"class URLHandler(object):\n \"\"\"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.2537,
0.0149,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2836,
0.0149,
0,
0.66,
0.1667,
394,
0,
1,
0,
0,
394,
0,
0
],
[
1,
0,
0.2985,
0.0149,
0,
0.66... | [
"\"\"\"A thread-safe wrapper for the subprocess module.\"\"\"",
"import subprocess",
"import sys",
"import threading",
"_popen_lock = threading.Lock()",
"if sys.platform == 'darwin':\n _SUBPROCESS_STDIN_IS_THREAD_HOSTILE = True\nelse:\n _SUBPROCESS_STDIN_IS_THREAD_HOSTILE = False",
" _SUBPROCESS_STDI... |
#!/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.3091,
0.0182,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3636,
0.0182,
0,
0.66,
0.2,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.3818,
0.0182,
0,
0.66,
... | [
"\"\"\"Unit tests for the util module.\"\"\"",
"import unittest",
"import wsgiref",
"from google.appengine.tools.devappserver2 import util",
"class UtilTest(unittest.TestCase):\n\n def test_get_headers_from_environ(self):\n environ = {'SERVER_PORT': '42', 'REQUEST_METHOD': 'GET',\n 'SERVER... |
#!/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.3803,
0.1831,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.493,
0.0141,
0,
0.66,
0.5,
325,
0,
1,
0,
0,
325,
0,
0
],
[
3,
0,
0.7676,
0.4789,
0,
0.66,
... | [
"\"\"\"Provides a flexible way of configuring Boolean flags using argparse.\n\nThis action behaves like the \"store_const\" action but allows the flag to accept\nan optional value.\n\nThese syntaxes result a True value being assigned for the argument:\n--boolean_flag=yes # \"yes\" is not case sensitive.\n--boole... |
#!/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.0812,
0.0382,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1083,
0.0032,
0,
0.66,
0.0417,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1115,
0.0032,
0,
0.66... | [
"\"\"\"Helper CGI for logins/logout in the development application server.\n\nThis CGI has these parameters:\n\n continue: URL to redirect to after a login or logout has completed.\n email: Email address to set for the client.\n admin: If 'True', the client should be logged in as an admin.\n action: What action... |
#!/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.1257,
0.0273,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1803,
0.0055,
0,
0.66,
0.0833,
764,
0,
1,
0,
0,
764,
0,
0
],
[
1,
0,
0.1858,
0.0055,
0,
0.66... | [
"\"\"\"A Python 2.7 runtime module.\n\nProvides a Python 2.7 runtime that calls into user-provided code using a CGI or\nWSGI interface.\n\"\"\"",
"import cStringIO",
"import thread",
"import threading",
"import urlparse",
"from google.appengine.api.logservice import logservice",
"from google.appengine.r... |
#!/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.2961,
0.0526,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4211,
0.0132,
0,
0.66,
0.1429,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.4342,
0.0132,
0,
0.66... | [
"\"\"\"Shutdown handler.\n\nProvides a Python 2.7 method which invokes a user-specified shutdown hook.\n\"\"\"",
"import logging",
"import sys",
"import traceback",
"from google.appengine.api.logservice import logservice",
"from google.appengine.api.runtime import runtime as runtime_api",
"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.1077,
0.0256,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1333,
0.0051,
0,
0.66,
0.0769,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1385,
0.0051,
0,
0.66... | [
"\"\"\"Background thread handler.\n\nProvides a way to create new threads which are not bound to the creator's\nrequest context and do not need to end before the creator request completes.\n\"\"\"",
"import logging",
"import sys",
"import thread",
"import threading",
"import traceback",
"from google.app... |
#!/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.2312,
0.0215,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.2742,
0.0215,
0,
0.66,
0.0769,
529,
0,
0,
0,
0,
645,
0,
0
],
[
8,
1,
0.2796,
0.0108,
1,
0.59... | [
"\"\"\"Errors thrown by apiproxy.MakeSyncCall.\n\"\"\"",
"class Error(Exception):\n \"\"\"Base APIProxy error type.\"\"\"",
" \"\"\"Base APIProxy error type.\"\"\"",
"class RPCFailedError(Error):\n \"\"\"Raised by APIProxy calls when the RPC to the application server fails.\"\"\"",
" \"\"\"Raised by API... |
#!/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.5676,
0.027,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.7432,
0.1081,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
0
],
[
8,
1,
0.7297,
0.027,
1,
0.61,
0,
... | [
"\"\"\"Define the DeadlineExceededError exception.\"\"\"",
"try:\n BaseException\nexcept NameError:\n BaseException = Exception",
" BaseException",
" BaseException = Exception",
"class DeadlineExceededError(BaseException):\n \"\"\"Exception raised when the request reaches its overall time limit.\n\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.1355,
0.0065,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1871,
0.0065,
0,
0.66,
0.1,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.1935,
0.0065,
0,
0.66,
... | [
"\"\"\"A request-local environment and logging stream.\"\"\"",
"import collections",
"import os",
"import sys",
"import threading",
"_sys_stderr = sys.stderr",
"class RequestEnvironment(threading.local):\n \"\"\"A thread local request environment.\n\n A thread local request environment that provides 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.0737,
0.016,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0865,
0.0032,
0,
0.66,
0.0526,
777,
0,
1,
0,
0,
777,
0,
0
],
[
1,
0,
0.0962,
0.0032,
0,
0.66,... | [
"\"\"\"CGI server interface to Python runtime.\n\nCGI-compliant interface between the Python runtime and user-provided Python\ncode.\n\"\"\"",
"from __future__ import with_statement",
"import cStringIO",
"from email import feedparser",
"import imp",
"import logging",
"import marshal",
"import os",
"... |
#!/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.0762,
0.0166,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1093,
0.0033,
0,
0.66,
0.0833,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1126,
0.0033,
0,
0.66... | [
"\"\"\"WSGI server interface to Python runtime.\n\nWSGI-compliant interface between the Python runtime and user-provided Python\ncode.\n\"\"\"",
"import logging",
"import sys",
"import types",
"from google.appengine import runtime",
"from google.appengine.api import lib_config",
"_DEADLINE_DURING_LOADIN... |
#!/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.0705,
0.0125,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0815,
0.0031,
0,
0.66,
0.0455,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0878,
0.0031,
0,
0.66... | [
"\"\"\"Service configuration for remote API.\n\nThis module is shared by both the remote_api_stub and the handler.\n\"\"\"",
"import sys",
"from google.appengine.api import api_base_pb",
"from google.appengine.api import mail_service_pb",
"from google.appengine.api import urlfetch_service_pb",
"from googl... |
#!/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.0171,
0.0009,
0,
0.66,
0,
141,
0,
1,
0,
0,
141,
0,
0
],
[
1,
0,
0.018,
0.0009,
0,
0.66,
0.0625,
80,
0,
1,
0,
0,
80,
0,
0
],
[
1,
0,
0.0188,
0.0009,
0,
0.6... | [
"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.0583,
0.0597,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0917,
0.0014,
0,
0.66,
0.0278,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0931,
0.0014,
0,
0.66... | [
"\"\"\"Client-side transfer throttling for use with remote_api_stub.\n\nThis module is used to configure rate limiting for programs accessing\nAppEngine services through remote_api.\n\nSee the Throttle class for more information.\n\nAn example with throttling:",
"import logging",
"import os",
"import threadin... |
#!/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.0529,
0.0509,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0912,
0.0013,
0,
0.66,
0.0357,
61,
0,
1,
0,
0,
61,
0,
0
],
[
1,
0,
0.0925,
0.0013,
0,
0.66,
... | [
"\"\"\"An apiproxy stub that calls a remote handler via HTTP.\n\nThis allows easy remote access to the App Engine datastore, and potentially any\nof the other App Engine APIs, using the same interface you use when accessing\nthe service locally.\n\nAn example Python script:\n---",
"import google",
"import os",
... |
#!/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.1031,
0.0467,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1362,
0.0039,
0,
0.66,
0.0312,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1401,
0.0039,
0,
0.66... | [
"\"\"\"Sample Appstats Configuration.\n\nThere are four sections:\n\n0) WSGI middleware declaration.\n1) Django version declaration.\n2) Configuration constants.\n3) Configuration functions.",
"import logging",
"import os",
"import random",
"import re",
"appstats_DEBUG = False",
"appstats_DUMP_LEVEL = -... |
#!/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.0086,
0.0004,
0,
0.66,
0,
141,
0,
1,
0,
0,
141,
0,
0
],
[
1,
0,
0.009,
0.0004,
0,
0.66,
0.0667,
80,
0,
1,
0,
0,
80,
0,
0
],
[
1,
0,
0.0095,
0.0004,
0,
0.6... | [
"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.1713,
0.0559,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2168,
0.007,
0,
0.66,
0.125,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.2238,
0.007,
0,
0.66,
... | [
"\"\"\"Loading appstats data from and to various sources like file, memcache etc.\n\nThe file currently has modules to read data from memcache, to write appstats\ndata to a file in pickled format, and to read records from a file after\nunpickling. The script is envisioned to be extensible in the future to allow\nre... |
#!/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.0282,
0.0012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0318,
0.0012,
0,
0.66,
0.0833,
688,
0,
1,
0,
0,
688,
0,
0
],
[
7,
0,
0.0388,
0.0082,
0,
0.66... | [
"\"\"\"Key range representation and splitting.\"\"\"",
"import os",
"try:\n import json as simplejson\nexcept ImportError:\n try:\n import simplejson\n except ImportError:\n simplejson = None",
" import json as simplejson",
" try:\n import simplejson\n except ImportError:\n simplejson = No... |
#!/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.0385,
0.0107,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0483,
0.0018,
0,
0.66,
0.0294,
177,
0,
1,
0,
0,
177,
0,
0
],
[
7,
0,
0.0546,
0.0072,
0,
0.66... | [
"\"\"\"Utility library for reading user information from an id_token.\n\nThis is an experimental library that can temporarily be used to extract\na user from an id_token. The functionality provided by this library\nwill be provided elsewhere in the future.\n\"\"\"",
"import base64",
"try:\n import json\nexcep... |
#!/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.0932,
0.1002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1492,
0.0023,
0,
0.66,
0.05,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1515,
0.0023,
0,
0.66,
... | [
"\"\"\"A library supporting use of the Google API Server.\n\nThis library helps you configure a set of ProtoRPC services to act as\nEndpoints backends. In addition to translating ProtoRPC to Endpoints\ncompatible errors, it exposes a helper service that describes your services.\n\n Usage:\n 1) Create an endpoint... |
#!/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.0942,
0.0224,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1166,
0.0045,
0,
0.66,
0.2,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1256,
0.0045,
0,
0.66,
... | [
"\"\"\"Describe ProtoRPC Messages in JSON Schema.\n\nAdd protorpc.message subclasses to MessageTypeToJsonSchema and get a JSON\nSchema description of all the messages.\n\"\"\"",
"import re",
"import google",
"from protorpc import messages",
"__all__ = ['MessageTypeToJsonSchema']",
"class MessageTypeToJson... |
#!/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.101,
0.0197,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.1355,
0.0197,
0,
0.66,
0.1111,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.133,
0.0049,
1,
0.63,
... | [
"\"\"\"Api serving config collection service implementation.\n\nContains the implementation for BackendService as defined in api_backend.py.\n\"\"\"",
"try:\n import json\nexcept ImportError:\n import simplejson as json",
" import json",
" import simplejson as json",
"import logging",
"from protorpc 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.1863,
0.0098,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2157,
0.0098,
0,
0.66,
0.1,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.2353,
0.0098,
0,
0.66,
... | [
"\"\"\"Interface to the BackendService that serves API configurations.\"\"\"",
"import logging",
"from protorpc import message_types",
"from protorpc import messages",
"from protorpc import remote",
"package = 'google.appengine.endpoints'",
"__all__ = [\n 'GetApiConfigsRequest',\n 'LogMessagesRequ... |
#!/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.375,
0.0179,
0,
0.66,
0.125,
2,
0,
1,
0,
0,
2,
0,
0
],
[
1,
0,
0.4107,
0.0179,
0,
0.66,
... | [
"\"\"\"A library containing exception types used by Endpoints ProtoRPC services.\"\"\"",
"import httplib",
"from protorpc import remote",
"class ServiceException(remote.ApplicationError):\n \"\"\"Base class for request/service exceptions in Endpoints.\"\"\"\n\n def __init__(self, message=None):\n super(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.6176,
0.0294,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.8235,
0.0294,
0,
0.66,
0.1429,
463,
0,
1,
0,
0,
463,
0,
0
],
[
1,
0,
0.8529,
0.0294,
0,
0.66... | [
"\"\"\"Apiserving Module.\"\"\"",
"from api_config import api",
"from api_config import API_EXPLORER_CLIENT_ID",
"from api_config import method",
"from api_exceptions import *",
"from apiserving import *",
"import message_parser",
"from users_id_token import get_current_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.0192,
0.0121,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
7,
0,
0.0288,
0.0028,
0,
0.66,
0.0417,
0,
0,
1,
0,
0,
0,
0,
0
],
[
1,
1,
0.0284,
0.0007,
1,
0.2,
... | [
"\"\"\"Library for generating an API configuration document for a ProtoRPC backend.\n\nThe protorpc.remote.Service is inspected and a JSON document describing\nthe API is returned.\n\n class MyResponse(messages.Message):\n bool_value = messages.BooleanField(1)\n int32_value = messages.IntegerField(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.0778,
0.0037,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.137,
0.0037,
0,
0.66,
0.0054,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.1407,
0.0037,
0,
0.66... | [
"\"\"\"Preloads many modules to reduce loading time of third-party code.\"\"\"",
"import os",
"_original_os_urandom = os.urandom",
"def os_urandom_replacement(n):\n raise NotImplementedError",
"os.urandom = os_urandom_replacement",
"import random",
"os.urandom = _original_os_urandom",
"random._urando... |
#!/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.4151,
0.0189,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.5943,
0.0377,
0,
0.66,
0.1667,
529,
0,
0,
0,
0,
645,
0,
0
],
[
8,
1,
0.6038,
0.0189,
1,
0.81... | [
"\"\"\"Exceptions raised by bulkloader methods.\"\"\"",
"class Error(Exception):\n \"\"\"Base bulkloader error type.\"\"\"",
" \"\"\"Base bulkloader error type.\"\"\"",
"class ErrorOnTransform(Error):\n \"\"\"An exception was raised during this transform.\"\"\"",
" \"\"\"An exception was raised during 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.1545,
0.0485,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.203,
0.0242,
0,
0.66,
0.2,
929,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2545,
0.0667,
0,
0.66,
... | [
"\"\"\"Wizard to generate bulkloader configuration.\n\nHelper functions to call from the bulkloader.yaml.\nThe wizard is run by having bulkloader.py download datastore statistics\n(https://developers.google.com/appengine/docs/python/datastore/stats,\nspecifically __Stat_PropertyType_PropertyName_Kind__) configured ... |
#!/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.0396,
0.0083,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0611,
0.0017,
0,
0.66,
0.0278,
177,
0,
1,
0,
0,
177,
0,
0
],
[
1,
0,
0.0644,
0.0017,
0,
0.66... | [
"\"\"\"Bulkloader Transform Helper functions.\n\nA collection of helper functions for bulkloading data, typically referenced\nfrom a bulkloader.yaml file.\n\"\"\"",
"import base64",
"import datetime",
"import os",
"import re",
"import tempfile",
"from google.appengine.api import datastore",
"from goog... |
#!/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.8148,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.963,
0.037,
0,
0.66,
0.5,
941,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
1,
0.037,
0,
0.66,
1,
... | [
"\"\"\" Constants used by both the bulkload server-side mixin handler and the\ncommand-line client.\n\"\"\"",
"KIND_PARAM = 'kind'",
"CSV_PARAM = 'csv'"
] |
#!/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.0851,
0.0145,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1341,
0.0036,
0,
0.66,
0.0769,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.1377,
0.0036,
0,
0.66... | [
"\"\"\"Bulkloader CSV reading and writing.\n\nHandle the CSV format specified in a bulkloader.yaml file.\n\"\"\"",
"import codecs",
"import cStringIO",
"import csv",
"import encodings",
"import encodings.ascii",
"import encodings.cp1252",
"import encodings.latin_1",
"import encodings.utf_8",
"from... |
#!/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.1063,
0.0181,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1629,
0.0045,
0,
0.66,
0.1111,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.1674,
0.0045,
0,
0.66... | [
"\"\"\"Bulkloader XML reading and writing.\n\nHandle the XML format specified in a bulkloader.yaml file.\n\"\"\"",
"import codecs",
"import logging",
"import re",
"from xml.etree import cElementTree as ElementTree",
"from xml.sax import saxutils",
"from google.appengine.ext.bulkload import bulkloader_er... |
#!/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.1964,
0.0089,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.5759,
0.5536,
0,
0.66,
0.5,
15,
0,
4,
0,
0,
186,
0,
0
],
[
8,
1,
0.3839,
0.1518,
1,
0.34,
... | [
"\"\"\"Bulkloader interfaces for the format reader/writers.\"\"\"",
"class ConnectorInterface(object):\n \"\"\"Abstract base class describing the external Connector interface.\n\n The External Connector interface describes the transition between an external\n data source, e.g. CSV file, XML file, or some sort ... |
#!/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.5761,
0.2609,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.8696,
0.0217,
0,
0.66,
0.2,
515,
0,
1,
0,
0,
515,
0,
0
],
[
14,
0,
0.8913,
0.0217,
0,
0.66,
... | [
"\"\"\"Bulkload package: Helpers for both bulkloader and bulkload_client.\n\nFor complete documentation, see the Tools and Libraries section of the\ndocumentation.\n\nThis package contains two separate systems:\n * The historical and deprecated bulkload/bulkload_client server mix-in,\n in the 'bulkload.bulkload' ... |
#!/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.06,
0.0107,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0907,
0.0027,
0,
0.66,
0.0667,
32,
0,
1,
0,
0,
32,
0,
0
],
[
1,
0,
0.0933,
0.0027,
0,
0.66,
... | [
"\"\"\"DEPRECATED mix-in handler for bulk loading data into an application.\n\nPlease use the new bulkloader.\n\"\"\"",
"import Cookie",
"import StringIO",
"import csv",
"import httplib",
"import os",
"import traceback",
"import wsgiref.handlers",
"from google.appengine.api import datastore",
"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.1926,
0.0328,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2951,
0.0082,
0,
0.66,
0.3333,
263,
0,
1,
0,
0,
263,
0,
0
],
[
1,
0,
0.3033,
0.0082,
0,
0.66... | [
"\"\"\"Bulkloader Simple Text writing.\n\nHandle the simpletext format specified in a bulkloader.yaml file.\n\"\"\"",
"from google.appengine.ext.bulkload import bulkloader_errors",
"from google.appengine.ext.bulkload import connector_interface",
"class SimpleTextConnector(connector_interface.ConnectorInterfac... |
#!/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.0895,
0.1173,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1564,
0.0015,
0,
0.66,
0.0208,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1579,
0.0015,
0,
0.66... | [
"\"\"\"A module to use service stubs for testing.\n\nTo test applications which use App Engine services such as the\ndatastore, developers can use the available stub\nimplementations. Service stubs behave like the original service\nwithout permanent side effects. The datastore stub for example allows\nto write enti... |
#!/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.1808,
0.0462,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3077,
0.0077,
0,
0.66,
0.0667,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.3154,
0.0077,
0,
0.66... | [
"\"\"\"Repository for all builtin handlers information.\n\nOn initialization, this file generates a list of builtin handlers that have\nassociated app.yaml information. This file can then be called to read that\ninformation and make it available.\n\"\"\"",
"import logging",
"import os",
"DEFAULT_DIR = os.pat... |
#!/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.0941,
0.0167,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.113,
0.0042,
0,
0.66,
0.2,
609,
0,
1,
0,
0,
609,
0,
0
],
[
1,
0,
0.1172,
0.0042,
0,
0.66,
... | [
"\"\"\"Mocks for classes defined in webapp module.\n\nUse this classes to test functionality depending on webapp framework.\n\"\"\"",
"import StringIO",
"import urlparse",
"class MockHeaders(dict):\n \"\"\"Mocks out headers in webapp.Request and webapp.Response.\"\"\"\n\n def add_header(self, key, value):\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.4259,
0.0926,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5556,
0.0185,
0,
0.66,
0.2,
358,
0,
1,
0,
0,
358,
0,
0
],
[
8,
0,
0.6019,
0.0741,
0,
0.66,
... | [
"\"\"\"A simple django-based templating framework for use by internal components.\n\nThis module should NOT be used by components outside of the google.appengine\npackage.\n\"\"\"",
"import warnings",
"warnings.filterwarnings('ignore',\n '',\n DeprecationWarning,\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.068,
0.0364,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1068,
0.0024,
0,
0.66,
0.0455,
934,
0,
1,
0,
0,
934,
0,
0
],
[
1,
0,
0.1092,
0.0024,
0,
0.66,... | [
"\"\"\"Handler library for Blobstore API.\n\nContains handlers to help with uploading and downloading blobs.\n\nPublic Classes:\n BlobstoreDownloadHandler: Has helper method for easily sending blobs\n to client.\n BlobstoreUploadHandler: Handler for receiving upload notification requests.",
"import cgi",
"... |
#!/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.1075,
0.0751,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1775,
0.0034,
0,
0.66,
0.0625,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.1809,
0.0034,
0,
0.66... | [
"\"\"\"A simple wrapper for Django templates.\n\nThe main purpose of this module is to hide all of the package import pain\nyou normally have to go through to get Django to work. We expose the Django\nTemplate and Context classes from this module, handling the import nonsense\non behalf of clients.\n\nTypical usage... |
#!/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.1383,
0.1851,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2745,
0.0021,
0,
0.66,
0.0769,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.2766,
0.0021,
0,
0.66... | [
"\"\"\"Full text indexing and search, implemented in pure python.\n\nDefines a SearchableModel subclass of db.Model that supports full text\nindexing and search, based on the datastore's existing indexes.\n\nDon't expect too much. First, there's no ranking, which is a killer drawback.\nThere's also no exact phrase ... |
#!/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.913,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
1,
0.0435,
0,
0.66,
1,
905,
0,
1,
0,
0,
905,
0,
0
]
] | [
"\"\"\"Blobstore API module.\"\"\"",
"from blobstore 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... | [] | [] |
#!/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.0688,
0.035,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0925,
0.0025,
0,
0.66,
0.1667,
167,
0,
1,
0,
0,
167,
0,
0
],
[
14,
0,
0.1,
0.0025,
0,
0.66,
... | [
"\"\"\"Support for polymorphic models and queries.\n\nThe Model class on its own is only able to support functional polymorphism.\nIt is possible to create a subclass of Model and then subclass that one as\nmany generations as necessary and those classes will share all the same\nproperties and behaviors. The probl... |
#!/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.0932,
0.0757,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1514,
0.0027,
0,
0.66,
0.0833,
279,
0,
1,
0,
0,
279,
0,
0
],
[
1,
0,
0.1541,
0.0027,
0,
0.66... | [
"\"\"\"Models and helper functions for access to app's datastore metadata.\n\nThese entities cannot be created by users, but are created as results of\n__namespace__, __kind__ and __property__ metadata queries such as\n\n # Find all namespaces\n q = db.GqlQuery(\"SELECT * FROM __namespace__\")\n for p in q.run()... |
#!/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.148,
0.0867,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2398,
0.0051,
0,
0.66,
0.0588,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.2449,
0.0051,
0,
0.66,... | [
"\"\"\"Generates and emails daily exception reports.\n\nSee google/appengine/ext/ereporter/__init__.py for usage details.\n\nValid query string arguments to the report_generator script include:\ndelete: Set to 'false' to prevent deletion of exception records from the\n datastore after sending a report. 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... | [
[
8,
0,
0.1643,
0.1821,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2893,
0.0036,
0,
0.66,
0.0714,
426,
0,
1,
0,
0,
426,
0,
0
],
[
1,
0,
0.2929,
0.0036,
0,
0.66... | [
"\"\"\"A logging handler that records information about unique exceptions.\n\n'Unique' in this case is defined as a given (exception class, location) tuple.\nUnique exceptions are logged to the datastore with an example stacktrace and an\napproximate count of occurrences, grouped by day and application version.\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... | [
[
1,
0,
1,
0.0476,
0,
0.66,
0,
92,
0,
1,
0,
0,
92,
0,
0
]
] | [
"from ereporter 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.1959,
0.0103,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3093,
0.0103,
0,
0.66,
0.0714,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.3196,
0.0103,
0,
0.66... | [
"\"\"\"Main handler script for running Django applications on App Engine.\"\"\"",
"import logging",
"import os",
"from google.appengine.api import lib_config",
"_config_handle = lib_config.register(\n 'django', {'settings_module': os.getenv('DJANGO_SETTINGS_MODULE',\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.7963,
0.2222,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
1,
0.037,
0,
0.66,
1,
739,
0,
1,
0,
0,
739,
0,
0
]
] | [
"\"\"\"OAuth 2.0 command for Django Google SQL Service backend.\n\nThis module exists entirely to expose the library located at\ngoogle.storage.speckle.python.django.management.commands.getoauthtoken at this\nlocation for the external GAE SDK.\n\"\"\"",
"from google.storage.speckle.python.django.management.comman... |
#!/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.7963,
0.2222,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
1,
0.037,
0,
0.66,
1,
249,
0,
1,
0,
0,
249,
0,
0
]
] | [
"\"\"\"Django database backend for Google Cloud SQL.\n\nThis module exists entirely to expose the library located at\ngoogle.storage.speckle.python.django.backend.base at this location for the\nexternal GAE SDK.\n\"\"\"",
"from google.storage.speckle.python.django.backend.base 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... | [] | [] |
#!/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.5233,
0.093,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7907,
0.0233,
0,
0.66,
0.25,
854,
0,
1,
0,
0,
854,
0,
0
],
[
1,
0,
0.814,
0.0233,
0,
0.66,
... | [
"\"\"\"Request handler module for the deferred library.\n\nSee deferred.py for full documentation.\n\"\"\"",
"from google.appengine.ext.deferred import deferred",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"def main():\n run_wsgi_app(deferred.application)",
" run_wsgi_app(deferred.applic... |
#!/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.8788,
0.0303,
0,
0.66,
0,
840,
0,
1,
0,
0,
840,
0,
0
],
[
4,
0,
0.9848,
0.0606,
0,
0.66,
1,
0,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
1,
0.0303,
1,
0.47,
0,
... | [
"from deferred import *",
"if __name__ == \"__main__\":\n main()",
" main()"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.