code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0573, 0.0038, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0687, 0.0115, 0, 0.66, 0.0526, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.084, 0.0038, 0, 0.66,...
[ "\"\"\"Domain objects and constants for use by internal and external clients.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "ASSIGNER_KIND_AUTO = 'AUTO'", "ASSIGNER_KIND_HUMAN = 'HUMAN'", "ASSIGNER_KINDS = (\n ASSIGNER_KIND_AUTO,\n ASSIGNER_KIND_HUMAN,\n)", "MAX_UNREMOVED_REVIEW...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0916, 0.0314, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1204, 0.0157, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1361, 0.0052, 0, 0.66,...
[ "\"\"\"Internal implementation details of the peer review subsystem.\n\nPublic classes, including domain objects, can be found in domain.py and\nmodels/student_work.py. Entities declared here should not be used by external\nclients.\n\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "from mode...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.2586, 0.0172, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2931, 0.0172, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3276, 0.0172, 0, 0.66,...
[ "\"\"\"Courses module.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "from controllers import assessments", "from controllers import lessons", "from controllers import utils", "from models import content", "from models import custom_modules", "from tools import verify", "custom_modul...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.023, 0.0015, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.026, 0.0015, 0, 0.66, 0.0312, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0306, 0.0015, 0, 0.66, ...
[ "\"\"\"Classes supporting online file editing.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import base64", "import cgi", "import os", "import urllib", "import appengine_config", "from common import schema_fields", "from controllers.utils import ApplicationHandler", "from control...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0324, 0.0022, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0367, 0.0022, 0, 0.66, 0.0526, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0432, 0.0022, 0, 0.66,...
[ "\"\"\"Classes supporting creation and editing of questions.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import copy", "import urllib", "from common import schema_fields", "from controllers.utils import ApplicationHandler", "from controllers.utils import BaseRESTHandler", "fr...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0456, 0.003, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0517, 0.003, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0608, 0.003, 0, 0.66, ...
[ "\"\"\"Classes for management of individual students' peer review assignments.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "import os", "import urllib", "from controllers.lessons import create_readonly_assessment_params", "from controllers.utils import ApplicationHandler", "import jinja2", "fr...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0658, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0746, 0.0044, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0833, 0.0044, 0, 0.66,...
[ "\"\"\"Classes supporting updates to basic course settings.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "from controllers.utils import ApplicationHandler", "from controllers.utils import BaseRESTHandler", "from controllers.utils import XsrfTokenManager", "from models import courses"...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0096, 0.0006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0109, 0.0006, 0, 0.66, 0.0227, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0122, 0.0006, 0, 0.66,...
[ "\"\"\"Classes supporting unit and lesson editing.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import logging", "import random", "import urllib", "from common import safe_dom", "from common import tags", "from common.schema_fields import FieldRegistry", "from common.schema_...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0168, 0.0011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.019, 0.0011, 0, 0.66, 0.0172, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0213, 0.0011, 0, 0.66, ...
[ "\"\"\"Classes and methods to create and manage Courses.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import datetime", "import os", "import urllib", "import appengine_config", "from common import jinja_utils", "from common import safe_dom", "from controllers import sites", "from...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0815, 0.0054, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0924, 0.0054, 0, 0.66, 0.0256, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1033, 0.0054, 0, 0.66,...
[ "\"\"\"Messages used in the dashboard.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from common import safe_dom", "def assemble_sanitized_message(text, link):\n node_list = safe_dom.NodeList()\n if text:\n node_list.append(safe_dom.Text(text))\n node_list.append(safe_dom.Entity('&...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0691, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0783, 0.0046, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0922, 0.0046, 0, 0.66,...
[ "\"\"\"Classes supporting creation and editing of question_groups.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from common import schema_fields", "from controllers.utils import BaseRESTHandler", "from controllers.utils import XsrfTokenManager", "from models import transforms", "from models.mod...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.2055, 0.0137, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2329, 0.0137, 0, 0.66, 0.0312, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2603, 0.0137, 0, 0.66,...
[ "\"\"\"Course Builder web application entry point.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import os", "import webapp2", "import appengine_config # pylint: disable-msg=unused-import", "from common import tags", "from controllers import sites", "from models import custom_modules...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0484, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0548, 0.0032, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0613, 0.0032, 0, 0.66,...
[ "\"\"\"GCB-provided custom tags.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import urllib", "import urlparse", "from common import jinja_utils", "from common import schema_fields", "from common import tags", "from controllers import utils", "from models import courses", "from xml.etree ...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.128, 0.008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.144, 0.008, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.16, 0.008, 0, 0.66, 0....
[ "\"\"\"Unit tests for the transforms functions.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import unittest", "from models import transforms", "def wrap_properties(properties):\n return {'properties': properties}", " return {'properties': properties}", "class JsonToDictTests(unittest.Tes...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0476, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.054, 0.0032, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0603, 0.0032, 0, 0.66, ...
[ "\"\"\"Unit tests for common/schema_fields.py.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import json", "import unittest", "from common import schema_fields", "def remove_whitespace(s):\n return ''.join(s.split())", " return ''.join(s.split())", "class BaseFieldTests(unittest.TestCase...
"""Unit tests for the javascript code.""" __author__ = 'John Orr (jorr@google.com)' import subprocess import unittest class AllJavaScriptTests(unittest.TestCase): def test_all(self): subprocess.call([ 'karma', 'start', 'experimental/coursebuilder/tests/unit/karma.conf.js'])
[ [ 8, 0, 0.0667, 0.0667, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0667, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4, 0.0667, 0, 0.66, 0.5...
[ "\"\"\"Unit tests for the javascript code.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import subprocess", "import unittest", "class AllJavaScriptTests(unittest.TestCase):\n\n def test_all(self):\n subprocess.call([\n 'karma', 'start',\n 'experimental/coursebuilder/...
"""Unit tests for the common.sanitize module.""" __author__ = 'John Orr (jorr@google.com)' import unittest from common import safe_dom class MockNode(safe_dom.Node): def __init__(self, value): self._value = value @property def sanitized(self): return self._value class NodeListTests(un...
[ [ 8, 0, 0.0037, 0.0037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.011, 0.0037, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0184, 0.0037, 0, 0.66, ...
[ "\"\"\"Unit tests for the common.sanitize module.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import unittest", "from common import safe_dom", "class MockNode(safe_dom.Node):\n def __init__(self, value):\n self._value = value\n\n @property\n def sanitized(self):\n return sel...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0678, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0763, 0.0042, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0847, 0.0042, 0, 0.66, ...
[ "\"\"\"Unit tests for the Workflow class in models.courses.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "import unittest", "from models.courses import LEGACY_HUMAN_GRADER_WORKFLOW", "from models.courses import Workflow", "import yaml", "DATE_FORMAT_ERROR = (\n 'dates should be formatted as YY...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.125, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1417, 0.0083, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1583, 0.0083, 0, 0.66, ...
[ "\"\"\"Unit tests for common.tags.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import unittest", "from xml.etree import cElementTree", "from common import tags", "class CustomTagTests(unittest.TestCase):\n \"\"\"Unit tests for the custom tag functionality.\"\"\"\n\n def setUp(self):\n\n ...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0285, 0.0019, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0323, 0.0019, 0, 0.66, 0.0357, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0361, 0.0019, 0, 0.66,...
[ "\"\"\"Page objects used in functional tests for Course Builder.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from selenium.webdriver.common import action_chains", "from selenium.webdriver.common import by", "from selenium.webdriver.support import expected_conditions as ec", "from selenium.webdri...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0513, 0.0418, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0753, 0.0021, 0, 0.66, 0.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0795, 0.0021, 0, 0.66,...
[ "\"\"\"Performance test for a peer review system.\n\nWARNING! Use this script to test load Course Builder. This is very dangerous\nfeature, be careful, because anyone can impersonate super user of your Course\nBuilder instance; use only if you have to perform specific load testing\n\nKeep in mind:\n - when repea...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0847, 0.0712, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1254, 0.0034, 0, 0.66, 0.0323, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1322, 0.0034, 0, 0.66,...
[ "\"\"\"Course Builder test suite.\n\nThis script runs all functional and units test in the Course Builder project.\n\nHere is how to use the script:\n - download WebTest Python package from a URL below and put\n the files in a folder of your choice, for example: tmp/webtest:\n http://pypi.python.or...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1685, 0.0112, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2022, 0.0337, 0, 0.66, 0.25, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.236, 0.0112, 0, 0.66, ...
[ "\"\"\"Functional tests for models.models.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "from models import models", "from tests.functional import actions", "class QuestionDAOTestCase(actions.TestBase):\n \"\"\"Functional tests for QuestionDAO.\"\"\"\n\n # Method name set by supe...
# coding: utf-8 # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
[ [ 8, 0, 0.1455, 0.0091, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1636, 0.0091, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1818, 0.0091, 0, 0.66, ...
[ "\"\"\"Tests for modules/review/stats.py.\"\"\"", "__author__ = 'Sean Lip'", "import actions", "from actions import assert_contains", "from actions import assert_equals", "from controllers_review import get_review_payload", "from controllers_review import get_review_step_key", "from controllers_review...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0262, 0.0015, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0293, 0.0015, 0, 0.66, 0.0185, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0308, 0.0015, 0, 0.66...
[ "\"\"\"A collection of actions for testing Course Builder pages.\"\"\"", "import cgi", "import functools", "import logging", "import os", "import re", "import urllib", "import appengine_config", "from controllers import sites", "from controllers import utils", "import main", "from models impor...
# coding: utf-8 # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
[ [ 8, 0, 0.0295, 0.0018, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0331, 0.0018, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0368, 0.0018, 0, 0.66,...
[ "\"\"\"Tests for controllers pertaining to peer review assessments.\"\"\"", "__author__ = 'Sean Lip'", "from controllers import sites", "from models import transforms", "import actions", "from actions import assert_contains", "from actions import assert_does_not_contain", "from actions import assert_e...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1786, 0.0119, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2143, 0.0357, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.25, 0.0119, 0, 0.66, ...
[ "\"\"\"Functional tests for models/utils.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "from models import counters", "from models import utils", "from tests.functional import actions", "from google.appengine.ext import db", "class Model(db.Model):\n create_date = db.DateTime...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.123, 0.0082, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1475, 0.0246, 0, 0.66, 0.0769, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1721, 0.0082, 0, 0.66, ...
[ "\"\"\"Functional tests for models/student_work.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "from models import entities", "from models import models", "from models import student_work", "from models import transforms", "from tests.functional import actions", "from google.ap...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1471, 0.0098, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1765, 0.0294, 0, 0.66, 0.0833, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.2059, 0.0098, 0, 0.66,...
[ "\"\"\"Functional tests for models/review.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "from models import entities", "from models import models", "from models import student_work", "from tests.functional import actions", "from google.appengine.ext import db", "class Referenc...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0116, 0.0008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0139, 0.0023, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0163, 0.0008, 0, 0.66, ...
[ "\"\"\"Functional tests for modules/review/review.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import types", "from models import models", "from models import student_work", "from modules.review import domain", "from modules.review import peer", "from modules.review import r...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0607, 0.004, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0688, 0.004, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0769, 0.004, 0, 0.66, ...
[ "\"\"\"Functional tests for modules/course_explorer/course_explorer.py.\"\"\"", "__author__ = 'rahulsingal@google.com (Rahul Singal)'", "from controllers import sites", "from models import config", "from models import models", "from models import transforms", "from models.models import PersonalProfile",...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1327, 0.0088, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1593, 0.0265, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1858, 0.0088, 0, 0.66,...
[ "\"\"\"Functional tests for modules/review/peer.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "from models import models", "from models import student_work", "from modules.review import domain", "from modules.review import peer", "from tests.functional import actions", "from g...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0276, 0.0018, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0312, 0.0018, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0349, 0.0018, 0, 0.66,...
[ "\"\"\"Student progress trackers.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "import datetime", "import os", "from tools import verify", "from models import StudentPropertyEntity", "import transforms", "class UnitLessonCompletionTracker(object):\n \"\"\"Tracks student completion for a unit...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0196, 0.0013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0222, 0.0013, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0248, 0.0013, 0, 0.66,...
[ "\"\"\"Core data model classes.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import logging", "import appengine_config", "from config import ConfigProperty", "import counters", "from counters import PerfCounter", "from entities import BaseEntity", "import transforms", "from googl...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0877, 0.0058, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1082, 0.0234, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1287, 0.0058, 0, 0.66, ...
[ "\"\"\"Helper functions to work with various models.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n 'sll@google.com (Sean Lip)',\n]", "import logging", "import transforms", "_LOG = logging.getLogger('models.utils')", "logging.basicConfig()", "class Error(Exception):\n \"\"\"Base e...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0661, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0793, 0.0132, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0925, 0.0044, 0, 0.66,...
[ "\"\"\"Review processor that is used for managing human-reviewed assessments.\"\"\"", "__author__ = [\n 'sll@google.com (Sean Lip)',\n]", "from modules.review import domain", "import entities", "import student_work", "import transforms", "PEER_MATCHER = 'peer'", "ALLOWED_MATCHERS = [PEER_MATCHER]",...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.2113, 0.0141, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2394, 0.0141, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2676, 0.0141, 0, 0.66, ...
[ "\"\"\"Properties and its collections.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "import collections", "class Property(object):\n \"\"\"Property.\"\"\"\n\n def __init__(\n self, name, label, property_type, select_data=None, description=None,\n optional=False, extra...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0284, 0.0019, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0321, 0.0019, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0359, 0.0019, 0, 0.66,...
[ "\"\"\"Virtual file system for managing files locally or in the cloud.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import datetime", "import os", "from common import jinja_utils", "import jinja2", "from entities import BaseEntity", "from models import MemcacheManager", "from googl...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0076, 0.0005, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0086, 0.0005, 0, 0.66, 0.0156, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0096, 0.0005, 0, 0.66,...
[ "\"\"\"Common classes and methods for managing Courses.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import copy", "from datetime import datetime", "import logging", "import os", "import pickle", "import sys", "import appengine_config", "from common.schema_fields import FieldRegi...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1705, 0.0114, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1932, 0.0114, 0, 0.66, 0.3333, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.5114, 0.5795, 0, 0.66,...
[ "\"\"\"Classes supporting dynamically registering custom modules.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "class Module(object):\n \"\"\"A class that holds module information.\"\"\"\n\n def __init__(\n self, name, desc, global_routes, namespaced_routes,\n notify_module_...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.3191, 0.0213, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3617, 0.0213, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4255, 0.0213, 0, 0.66, ...
[ "\"\"\"Utility for Sending notifications.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "from google.appengine.api import mail", "from google.appengine.api import users", "class EmailManager(object):\n \"\"\"Notification Manager. Sends emails out.\"\"\"\n\n def __init__(self, cour...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0376, 0.0025, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0426, 0.0025, 0, 0.66, 0.0417, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0025, 0, 0.66,...
[ "\"\"\"Set of converters between db models, Python and JSON dictionaries, etc.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import base64", "import datetime", "import json", "from google.appengine.api import datastore_types", "from google.appengine.ext import db", "JSON_DATE_FORMAT =...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.2055, 0.0137, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2329, 0.0137, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.274, 0.0137, 0, 0.66, ...
[ "\"\"\"Manages mapping of users to roles and roles to privileges.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import config", "from google.appengine.api import users", "GCB_ADMIN_LIST = config.ConfigProperty(\n 'gcb_admin_user_emails', str, (\n 'A list of email addresses for sup...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0212, 0.0014, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.024, 0.0014, 0, 0.66, 0.0263, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0283, 0.0014, 0, 0.66, ...
[ "\"\"\"Common classes and methods for processing text content.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "from pyparsing import alphas", "from pyparsing import Combine", "from pyparsing import Each", "from pyparsing import Group", "from pyparsing import Literal", "from pyparsing im...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0664, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0819, 0.0177, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0973, 0.0044, 0, 0.66, ...
[ "\"\"\"Models and helper utilities for the review workflow.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n 'sll@google.com (Sean Lip)',\n]", "import entities", "import models", "import transforms", "from google.appengine.ext import db", "class KeyProperty(db.StringProperty):\n \"\...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1744, 0.0116, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1977, 0.0116, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2326, 0.0116, 0, 0.66,...
[ "\"\"\"Common classes and methods for managing persistent entities.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "from counters import PerfCounter", "from google.appengine.ext import db", "DB_QUERY = PerfCounter(\n 'gcb-models-db-query',\n 'A number of times a query()/all() was execut...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.2239, 0.0149, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2537, 0.0149, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.3134, 0.0448, 0, 0.66, ...
[ "\"\"\"Manages performance counters of an application and/or its modules.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "def incr_counter_global_value(unused_name, unused_delta):\n \"\"\"Hook method for global aggregation.\"\"\"\n pass", " \"\"\"Hook method for global aggregation.\"\"...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1095, 0.0073, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1241, 0.0073, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1387, 0.0073, 0, 0.66,...
[ "\"\"\"Common classes and methods for managing long running jobs.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "from datetime import datetime", "import logging", "import time", "import traceback", "import entities", "import transforms", "from google.appengine.api import namespace_ma...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0607, 0.0262, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0787, 0.0033, 0, 0.66, 0.0435, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0852, 0.0033, 0, 0.66,...
[ "\"\"\"Manages dynamic properties of an application and/or its modules.\n\nAn application must explicitly declare properties and provide a type, doc string\nand default value for each. The default property values are overridden by\nthe new values found in the environment variable with the same name. Those are\nfurt...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1562, 0.0104, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1771, 0.0104, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1979, 0.0104, 0, 0.66,...
[ "\"\"\"Custom configurations and functions for Google App Engine.\"\"\"", "__author__ = 'psimakov@google.com (Pavel Simakov)'", "import os", "import sys", "PRODUCTION_MODE = not os.environ.get(\n 'SERVER_SOFTWARE', 'Development').startswith('Development')", "BUNDLE_LIB_FILES = True", "BUNDLE_ROOT = o...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0216, 0.0014, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0245, 0.0014, 0, 0.66, 0.0222, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0274, 0.0014, 0, 0.66,...
[ "\"\"\"Handlers that are not directly related to course content.\"\"\"", "__author__ = 'Saifu Angto (saifu@google.com)'", "import base64", "import hmac", "import os", "import time", "import urlparse", "import appengine_config", "from common import jinja_utils", "from models import models", "from...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0161, 0.0011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0183, 0.0011, 0, 0.66, 0.025, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0204, 0.0011, 0, 0.66, ...
[ "\"\"\"Handlers for generating various frontend pages.\"\"\"", "__author__ = 'Saifu Angto (saifu@google.com)'", "import datetime", "import urllib", "import urlparse", "from models import courses", "from models import models", "from models import student_work", "from models import transforms", "fro...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0691, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0783, 0.0046, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0876, 0.0046, 0, 0.66,...
[ "\"\"\"Classes and methods to manage all aspects of student assessments.\"\"\"", "__author__ = 'pgbovine@google.com (Philip Guo)'", "import datetime", "import logging", "from models import courses", "from models import models", "from models import review", "from models import student_work", "from mo...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.1923, 0.0128, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2179, 0.0128, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2436, 0.0128, 0, 0.66, ...
[ "\"\"\"Custom Jinja2 filters used in Course Builder.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import jinja2", "from webapp2_extras import i18n", "import safe_dom", "import tags", "def finalize(x):\n \"\"\"A finalize method which will correctly handle safe_dom elements.\"\"\"\n if isin...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0725, 0.0048, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0821, 0.0048, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0918, 0.0048, 0, 0.66, ...
[ "\"\"\"Mapping from schema to backend properties.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "import collections", "import json", "from models.property import Property", "from models.property import Registry", "class SchemaField(Property):\n \"\"\"SchemaField defines a simple ...
"""Classes to build sanitized HTML.""" __author__ = 'John Orr (jorr@google.com)' import cgi import re def escape(strg): return cgi.escape(strg, quote=1).replace("'", ''').replace('`', '`') class Node(object): """Base class for the sanitizing module.""" @property def sanitized(self): ...
[ [ 8, 0, 0.0057, 0.0057, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.017, 0.0057, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0284, 0.0057, 0, 0.66, ...
[ "\"\"\"Classes to build sanitized HTML.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import re", "def escape(strg):\n return cgi.escape(strg, quote=1).replace(\"'\", ''').replace('`', '`')", " return cgi.escape(strg, quote=1).replace(\"'\", ''').replace('`', '`...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ [ 8, 0, 0.0532, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0603, 0.0035, 0, 0.66, 0.0435, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0709, 0.0035, 0, 0.66,...
[ "\"\"\"Handlers for custom HTML tags.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import inspect", "import logging", "import mimetypes", "import os", "import pkgutil", "from xml.etree import cElementTree", "import appengine_config", "from common import schema_fields", "from extensions ...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
[ [ 8, 0, 0.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 0.0023, 0, 0.66, ...
[ "\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
[ [ 8, 0, 0.0318, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0636, 0.0091, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0727, 0.0091, 0, 0.66...
[ "\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"", "__author__ = \"Joe Gregorio (joe@bitworking.org)\"", "__copyright__ = \"Copyright 2006, Joe Gregorio\"", "__contributors__ = []", "__version__ = \"1.0.0\"", "__license__ = \"MIT\"", "__history__ = \"\"\"\n\"\"\"", "import urlparse", "escape_...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
[ [ 8, 0, 0.1818, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2032, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.2219, 0.0107, 0, 0.66, ...
[ "\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
from googlevoice import Voice, util from os import path, remove from unittest import TestCase, main class VoiceTest(TestCase): voice = Voice() voice.login() outgoing = util.input('Outgoing number (blank to ignore call tests): ') forwarding = None if outgoing: forwarding = util.input('Forwar...
[ [ 1, 0, 0.0179, 0.0179, 0, 0.66, 0, 348, 0, 2, 0, 0, 348, 0, 0 ], [ 1, 0, 0.0357, 0.0179, 0, 0.66, 0.25, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0536, 0.0179, 0, 0....
[ "from googlevoice import Voice, util", "from os import path, remove", "from unittest import TestCase, main", "class VoiceTest(TestCase):\n voice = Voice()\n voice.login()\n outgoing = util.input('Outgoing number (blank to ignore call tests): ')\n forwarding = None\n if outgoing:\n forwar...
DEFAULT_CONFIG = """ [auth] # Google Account email address (one associated w/ your Voice account) email= # Raw password used or login password= [gvoice] # Number to place calls from (eg, your google voice number) forwardingNumber= # Default phoneType for your forwardingNumber as defined below # 1 - Hom...
[ [ 14, 0, 0.1887, 0.3585, 0, 0.66, 0, 769, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3962, 0.0189, 0, 0.66, 0.0333, 309, 1, 0, 0, 0, 0, 4, 0 ], [ 14, 0, 0.4151, 0.0189, 0, 0...
[ "DEFAULT_CONFIG = \"\"\"\n[auth]\n# Google Account email address (one associated w/ your Voice account)\nemail=\n\n# Raw password used or login\npassword=", "DEBUG = False", "LOGIN = 'https://www.google.com/accounts/ServiceLoginAuth?service=grandcentral'", "FEEDS = ('inbox', 'starred', 'all', 'spam', 'trash',...
import re from sys import stdout from xml.parsers.expat import ParserCreate from time import gmtime from datetime import datetime from pprint import pprint try: from urllib2 import build_opener,install_opener, \ HTTPCookieProcessor,Request,urlopen from urllib import urlencode,quote except ImportError: ...
[ [ 1, 0, 0.0032, 0.0032, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0064, 0.0032, 0, 0.66, 0.04, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0096, 0.0032, 0, 0....
[ "import re", "from sys import stdout", "from xml.parsers.expat import ParserCreate", "from time import gmtime", "from datetime import datetime", "from pprint import pprint", "try:\n from urllib2 import build_opener,install_opener, \\\n HTTPCookieProcessor,Request,urlopen\n from urllib impor...
from ConfigParser import ConfigParser, NoOptionError import os import settings class Config(ConfigParser): """ ``ConfigParser`` subclass that looks into your home folder for a file named ``.gvoice`` and parses configuration data from it. """ def __init__(self): self.fname = os.path.expandu...
[ [ 1, 0, 0.0182, 0.0182, 0, 0.66, 0, 272, 0, 2, 0, 0, 272, 0, 0 ], [ 1, 0, 0.0364, 0.0182, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0545, 0.0182, 0, 0....
[ "from ConfigParser import ConfigParser, NoOptionError", "import os", "import settings", "class Config(ConfigParser):\n \"\"\"\n ``ConfigParser`` subclass that looks into your home folder for a file named\n ``.gvoice`` and parses configuration data from it.\n \"\"\"\n def __init__(self):\n ...
from conf import config from util import * import settings import os if settings.DEBUG: import logging logging.basicConfig() log = logging.getLogger('PyGoogleVoice') log.setLevel(logging.DEBUG) else: log = None class Voice(object): """ Main voice instance for interacting with the Google Vo...
[ [ 1, 0, 0.0041, 0.0041, 0, 0.66, 0, 433, 0, 1, 0, 0, 433, 0, 0 ], [ 1, 0, 0.0082, 0.0041, 0, 0.66, 0.2, 811, 0, 1, 0, 0, 811, 0, 0 ], [ 1, 0, 0.0122, 0.0041, 0, 0.6...
[ "from conf import config", "from util import *", "import settings", "import os", "if settings.DEBUG:\n import logging\n logging.basicConfig()\n log = logging.getLogger('PyGoogleVoice')\n log.setLevel(logging.DEBUG)\nelse:\n log = None", " import logging", " logging.basicConfig()", ...
""" This project aims to bring the power of the Google Voice API to the Python language in a simple, easy-to-use manner. Currently it allows you to place calls, send sms, download voicemails/recorded messages, and search the various folders of your Google Voice Accounts. You can use the Python API or command line s...
[ [ 8, 0, 0.2778, 0.5, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.5556, 0.0556, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0.66, ...
[ "\"\"\"\nThis project aims to bring the power of the Google Voice API to the Python language in a simple,\neasy-to-use manner. Currently it allows you to place calls, send sms,\ndownload voicemails/recorded messages, and search the various folders of your Google Voice Accounts.\nYou can use the Python API or comman...
from distutils.core import setup README = """Python Google Voice ==================== Joe McCall & Justin Quick Exposing the Google Voice "API" to the Python language ------------------------------------------------------- Google Voice for Python Allows you to place calls, send sms, download voicemail, and check t...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 14, 0, 0.3621, 0.4828, 0, 0.66, 0.5, 366, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.8276, 0.3793, 0, 0.66...
[ "from distutils.core import setup", "README = \"\"\"Python Google Voice\n====================\n\nJoe McCall & Justin Quick\n\nExposing the Google Voice \"API\" to the Python language\n-------------------------------------------------------", "setup(\n name = \"pygooglevoice\",\n version = '0.5',\n url ...
""" You will need this lib: http://code.google.com/p/pygooglevoice/ + a Google Voice and GMail account in order to send SMS and emails. Google Voice lib fails with Python 3.1.2 Happy birthday Simon!! """ from googlevoice import Voice from email.mime.text import MIMEText import smtplib import datetime impor...
[ [ 8, 0, 0.0804, 0.1429, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1607, 0.0179, 0, 0.66, 0.125, 348, 0, 1, 0, 0, 348, 0, 0 ], [ 1, 0, 0.1786, 0.0179, 0, 0.66,...
[ "\"\"\"\n You will need this lib: http://code.google.com/p/pygooglevoice/ + a \n Google Voice and GMail account in order to send SMS and emails.\n \n Google Voice lib fails with Python 3.1.2\n\n Happy birthday Simon!!\n\"\"\"", "from googlevoice import Voice", "from email.mime.text import MIMEText", "imp...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
[ [ 8, 0, 0.1905, 0.3333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.7143, 0.619, 0, 0.66, 1, 229, 0, 2, 0, 0, 186, 0, 1 ], [ 8, 1, 0.5238, 0.1429, 1, 0.97, ...
[ "'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''", "class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor", " '''\n classdocs\n '''", " def __init__(self, language):\n '''...
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
[ [ 8, 0, 0.0319, 0.0532, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0745, 0.0106, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0851, 0.0106, 0, 0.66...
[ "'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''", "import re", "import subprocess", "REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')", "def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
[ [ 8, 0, 0.0261, 0.0435, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0609, 0.0087, 0, 0.66, 0.3333, 573, 0, 1, 0, 0, 573, 0, 0 ], [ 1, 0, 0.0696, 0.0087, 0, 0.66...
[ "'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''", "from xml.parsers.expat import ParserCreate", "import re", "class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
[ [ 8, 0, 0.0417, 0.0521, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0833, 0.0104, 0, 0.66, 0.125, 640, 0, 1, 0, 0, 640, 0, 0 ], [ 1, 0, 0.0938, 0.0104, 0, 0.66,...
[ "'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''", "import mytracks.files", "import mytracks.translate", "import mytracks.validate", "import sys", "def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
[ [ 8, 0, 0.0304, 0.0522, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0696, 0.0087, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0783, 0.0087, 0, 0.66, ...
[ "'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''", "import os", "from mytracks.parser import StringsParser", "import mytracks.history", "class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
[ [ 8, 0, 0.0667, 0.1111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1333, 0.0222, 0, 0.66, 0.125, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.1556, 0.0222, 0, 0.66, ...
[ "'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''", "import os.path", "from glob import glob", "import re", "MYTRACKS_RES_DIR = 'MyTracks/res'", "ANDROID_MASTER_VALUES = 'values'", "ANDROID_VALUES_MASK = 'values-*'", "def GetMyTracksDir():\n '''\n...