code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# Copyright 2014 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.0811, 0.0054, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0919, 0.0054, 0, 0.66, 0.0714, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1027, 0.0054, 0, 0.66,...
[ "\"\"\"Setup for tests exercising visualization displays.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import schema_fields", "from controllers import utils", "from models import analytics", "from models import custom_modules", "from models import data_sources", "from module...
# 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.0514, 0.0444, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0766, 0.002, 0, 0.66, 0.0357, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0806, 0.002, 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.0123, 0.0008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0147, 0.0025, 0, 0.66, 0.0213, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0172, 0.0008, 0, 0.66,...
[ "\"\"\"Page objects used in functional tests for Course Builder.\"\"\"", "__author__ = [\n 'John Orr (jorr@google.com)'\n]", "import re", "import time", "from selenium.common import exceptions", "from selenium.webdriver.common import action_chains", "from selenium.webdriver.common import by", "from...
# Copyright 2014 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.1079, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1223, 0.0072, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1367, 0.0072, 0, 0.66,...
[ "\"\"\"Tests for extra tabs added to the navbar.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from controllers import sites", "from models import courses", "from models import resources_display", "from models import models", "from modules.i18n_dashboard.i18n_dashboard import ResourceBundleDAO",...
# 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.054, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0647, 0.0108, 0, 0.66, 0.0667, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0755, 0.0036, 0, 0.66, ...
[ "\"\"\"Functional tests for models.models.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import datetime", "from models import entities", "from models import entity_transforms", "from models import transforms", "from tests.functional import actions", "from google.appengine.ext im...
# Copyright 2014 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.0974, 0.0065, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1104, 0.0065, 0, 0.66, 0.0556, 718, 0, 1, 0, 0, 718, 0, 0 ], [ 1, 0, 0.1169, 0.0065, 0, 0.66...
[ "\"\"\"Verify operation of student setting to remember last page visited.\"\"\"", "from common import utils as common_utils", "from controllers import sites", "from models import config", "from models import courses", "from models import models", "from tests.functional import actions", "COURSE_NAME = ...
# 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.0758, 0.0051, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0909, 0.0152, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1061, 0.0051, 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 2014 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.2459, 0.0164, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2951, 0.0492, 0, 0.66, 0.2, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.3443, 0.0164, 0, 0.66, ...
[ "\"\"\"Functional tests for the oeditor module.\"\"\"", "__author__ = [\n 'John Cox (johncox@google.com)',\n]", "from models import config", "from models import courses", "from tests.functional import actions", "class ObjectEditorTest(actions.TestBase):\n\n def tearDown(self):\n config.Regist...
# 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.1495, 0.0093, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1682, 0.0093, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1869, 0.0093, 0, 0.66,...
[ "\"\"\"Tests for modules/review/stats.py.\"\"\"", "__author__ = 'Sean Lip'", "import actions", "from actions import assert_contains", "from controllers_review import get_review_payload", "from controllers_review import get_review_step_key", "from controllers_review import LEGACY_REVIEW_UNIT_ID", "clas...
# Copyright 2014 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.1807, 0.012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2048, 0.012, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2289, 0.012, 0, 0.66, ...
[ "\"\"\"Tests for the code_tags module.\"\"\"", "__author__ = 'Gun Pinyo (gunpinyo@google.com)'", "from models import config", "from models import courses", "from modules.oeditor import oeditor", "from tests.functional import actions", "class CodeTagTests(actions.TestBase):\n \"\"\"Tests for the code ...
# Copyright 2014 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.0195, 0.0013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.022, 0.0013, 0, 0.66, 0.0435, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0246, 0.0013, 0, 0.66, ...
[ "\"\"\"Tests for modules/dashboard/.\"\"\"", "__author__ = 'Glenn De Jonghe (gdejonghe@google.com)'", "import cgi", "import time", "import actions", "from common import crypto", "from common.utils import Namespace", "from models import courses", "from models import models", "from models import tra...
# Copyright 2014 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.0377, 0.0025, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0452, 0.0025, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0503, 0.0025, 0, 0.66,...
[ "\"\"\"Tests the capability for registered students to invite others.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import urlparse", "from common import crypto", "from models import courses", "from models import models", "from models import transforms", "from modules.invitation import invitat...
# Copyright 2014 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.0441, 0.0029, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.05, 0.0029, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0559, 0.0029, 0, 0.66, ...
[ "\"\"\"Analytics for extracting facts based on StudentAnswerEntity entries.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import collections", "from common import crypto", "from common import utils as common_utils", "from models import courses", "from models import models", "from models ...
# 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.0481, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0545, 0.0032, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0641, 0.0032, 0, 0.66,...
[ "\"\"\"Functional tests for modules/course_explorer/course_explorer.py.\"\"\"", "__author__ = 'rahulsingal@google.com (Rahul Singal)'", "import actions", "from actions import assert_contains", "from actions import assert_does_not_contain", "from actions import assert_equals", "from controllers import si...
# 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.0056, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1017, 0.0169, 0, 0.66, 0.0769, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1186, 0.0056, 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 models import transforms", "from tests.functional import actions", "from google.appengin...
# Copyright 2014 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.0743, 0.005, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0842, 0.005, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0941, 0.005, 0, 0.66, 0...
[ "\"\"\"Tests for unit header/footer presence.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from models import courses", "from tests.functional import actions", "COURSE_NAME = 'unit_header_footer'", "COURSE_TITLE = 'Unit Header Footer'", "ADMIN_EMAIL = 'admin@foo.com'", "BASE_URL = '/' +...
# Copyright 2015 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.0232, 0.0015, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0279, 0.0046, 0, 0.66, 0.0667, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0325, 0.0015, 0, 0.66,...
[ "\"\"\"Functional tests for the balancer module.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import types", "from models import config", "from models import transforms", "from modules.balancer import balancer", "from tests.functional import actions", "from google.appengine.api ...
# Copyright 2014 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.0667, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0756, 0.0044, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0844, 0.0044, 0, 0.66,...
[ "\"\"\"Tests that verify asset handling via REST.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import cgi", "import os", "import urllib", "from common import crypto", "from models import transforms", "from modules.dashboard import filer", "from tests.functional import actions", "COU...
# Copyright 2014 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.063, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0714, 0.0042, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0798, 0.0042, 0, 0.66, ...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import urllib", "from common import crypto", "from controllers import sites", "from models import config", "from models import models", "from models import roles", "from models import tra...
# Copyright 2014 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.2542, 0.0169, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2881, 0.0169, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.322, 0.0169, 0, 0.66, ...
[ "\"\"\"Tests for unit description presence.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from models import courses", "from tests.functional import actions", "COURSE_NAME = 'unit_descriptions'", "COURSE_TITLE = 'Unit Descriptions'", "ADMIN_EMAIL = 'admin@foo.com'", "BASE_URL = '/' + COU...
# Copyright 2015 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.0806, 0.0054, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0968, 0.0161, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1129, 0.0054, 0, 0.66,...
[ "\"\"\"Functional tests for VFS features.\"\"\"", "__author__ = [\n 'mgainer@google.com (Mike Gainer)',\n]", "from common import utils as common_utils", "from models import config", "from models import courses", "from models import models", "from models import vfs", "from tests.functional import ac...
# Copyright 2014 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.0236, 0.0016, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0267, 0.0016, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0299, 0.0016, 0, 0.66,...
[ "\"\"\"Tests exercising the analytics internals (not individual analytics).\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import time", "from webtest import app", "from common import catch_and_log", "from common import crypto", "from common import utils as common_utils", "from models imp...
# Copyright 2014 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.0117, 0.0008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.014, 0.0023, 0, 0.66, 0.0435, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0163, 0.0008, 0, 0.66, ...
[ "\"\"\"Functional tests for the notifications module.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)'\n]", "import datetime", "import itertools", "import types", "from models import config", "from models import counters", "from modules.notifications import cron", "from modules.notificat...
# Copyright 2014 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.0612, 0.0041, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0694, 0.0041, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0776, 0.0041, 0, 0.66,...
[ "\"\"\"Tests for the questionnaire module.\"\"\"", "__author__ = 'Neema Kotonya (neemak@google.com)'", "from common import crypto", "from controllers import sites", "from models import courses", "from models import models", "from models import transforms", "from models.data_sources import utils as dat...
# 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.0111, 0.0007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0133, 0.0022, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0155, 0.0007, 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 2014 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.1064, 0.0071, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1206, 0.0071, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1348, 0.0071, 0, 0.66,...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import crypto", "from models import courses", "from tests.functional import actions", "COURSE_NAME = 'unit_test'", "COURSE_TITLE = 'Unit Test'", "NAMESPACE = 'ns_%s' % COURSE_NA...
# 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.0235, 0.0016, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0282, 0.0047, 0, 0.66, 0.0455, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0329, 0.0016, 0, 0.66,...
[ "\"\"\"Functional tests for models.models.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import datetime", "from models import config", "from models import entities", "from models import models", "from models import services", "from modules.notifications import notifications", ...
# Copyright 2014 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.0752, 0.0044, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0841, 0.0044, 0, 0.66,...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import utils as common_utils", "from controllers import sites", "from models import courses", "from models import models", "from tests.functional import actions", "COURSE_NAME =...
# coding: utf-8 # Copyright 2014 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.0041, 0.0003, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0047, 0.0003, 0, 0.66, 0.0179, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0052, 0.0003, 0, 0.66,...
[ "\"\"\"Tests for the internationalization (i18n) workflow.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import collections", "import cStringIO", "import StringIO", "import traceback", "import unittest", "import urllib", "import zipfile", "from babel.messages import pofile"...
# Copyright 2014 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.0958, 0.006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1078, 0.006, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1198, 0.006, 0, 0.66, 0...
[ "\"\"\"Tests for crypto and hashing.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import re", "import actions", "from common import crypto", "URLSAFE_B64_ALPHABET = re.compile('^[a-zA-Z0-9-_=]+$')", "class EncryptionManagerTests(actions.TestBase):\n\n def test_hmac_is_consistent(self):...
# 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.0224, 0.0014, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0252, 0.0014, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0281, 0.0014, 0, 0.66,...
[ "\"\"\"Tests for controllers pertaining to peer review assessments.\"\"\"", "__author__ = 'Sean Lip'", "import actions", "from actions import assert_contains", "from actions import assert_does_not_contain", "from actions import assert_equals", "from controllers import sites", "from controllers import ...
# Copyright 2014 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.026, 0.0017, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0295, 0.0017, 0, 0.66, 0.0312, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.033, 0.0017, 0, 0.66, ...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import cgi", "import os", "import re", "import urllib", "from common import crypto", "from common import utils as common_utils", "from controllers import sites", "from controllers impor...
# Copyright 2014 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.0408, 0.0027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0462, 0.0027, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0516, 0.0027, 0, 0.66,...
[ "\"\"\"Tests for modules/data_source_providers/.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import datetime", "import actions", "from common import utils", "from controllers import sites", "from models import courses", "from models import models", "from models import transforms", ...
# Copyright 2014 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.0362, 0.0024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0411, 0.0024, 0, 0.66, 0.04, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0459, 0.0024, 0, 0.66, ...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import crypto", "from common import utils as common_utils", "from controllers import utils", "from models import config", "from models import courses", "from models import model...
# Copyright 2014 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.0429, 0.0029, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0486, 0.0029, 0, 0.66, 0.0526, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0543, 0.0029, 0, 0.66,...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import crypto", "from common import utils as common_utils", "from models import models", "from models import transforms", "from tests.functional import actions", "COURSE_NAME = ...
# 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.0169, 0.0011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.019, 0.0011, 0, 0.66, 0.0263, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0211, 0.0011, 0, 0.66, ...
[ "\"\"\"Tests for modules/dashboard/analytics.\"\"\"", "__author__ = 'Julia Oh(juliaoh@google.com)'", "import datetime", "import os", "import time", "import actions", "from actions import assert_contains", "from actions import assert_does_not_contain", "from actions import assert_equals", "from map...
# Copyright 2014 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.1765, 0.0118, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0118, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2235, 0.0118, 0, 0.66, ...
[ "\"\"\"Tests for modules/courses/.\"\"\"", "__author__ = 'Glenn De Jonghe (gdejonghe@google.com)'", "import actions", "from models import courses", "from models import models", "from modules.courses import courses as courses_module", "from google.appengine.api import namespace_manager", "class AccessD...
# Copyright 2014 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.011, 0.0007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0124, 0.0007, 0, 0.66, 0.0323, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0139, 0.0007, 0, 0.66, ...
[ "\"\"\"Tests for modules/courses/.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import datetime", "import time", "import actions", "import apiclient", "from common import catch_and_log", "from common import schema_fields", "from common import utils as common_utils", "from models imp...
# 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 2014 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.0843, 0.0056, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0955, 0.0056, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1067, 0.0056, 0, 0.66,...
[ "\"\"\"Tests for the module to support users unsubscribing from notifications.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import urlparse", "from common import utils", "from controllers import sites", "from modules.unsubscribe import unsubscribe", "from tests.functional import actions", "fr...
# Copyright 2015 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.0746, 0.005, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0896, 0.0149, 0, 0.66, 0.0833, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1045, 0.005, 0, 0.66, ...
[ "\"\"\"Functional tests for VFS features.\"\"\"", "__author__ = [\n 'mgainer@google.com (Mike Gainer)',\n]", "import os", "import random", "import StringIO", "import tempfile", "from common import utils as common_utils", "from models import vfs", "from models import courses", "from tests.functi...
# Copyright 2014 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.0385, 0.0026, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0436, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0513, 0.0026, 0, 0.66,...
[ "\"\"\"Tests for modules/certificate/.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import actions", "from controllers import sites", "from models import courses", "from models import models", "from models import student_work", "from modules.certificate import certificate", "from modules.ce...
# Copyright 2014 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.0833, 0.0056, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0944, 0.0056, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1056, 0.0056, 0, 0.66,...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import urllib", "from common import crypto", "from controllers import sites", "from models import config", "from models import roles", "from models import transforms", "from modules.cours...
# Copyright 2015 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.009, 0.0006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0102, 0.0006, 0, 0.66, 0.0357, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0114, 0.0006, 0, 0.66, ...
[ "\"\"\"Tests for modules/analytics/*.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import appengine_config", "import json", "import os", "import pprint", "import urllib", "import zlib", "import actions", "from common import utils as common_utils", "from models import courses", "...
# Copyright 2015 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.1948, 0.013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2208, 0.013, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2468, 0.013, 0, 0.66, ...
[ "\"\"\"Tests for modules/admin. (See also test_classes.AdminAspectTest.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from controllers import sites", "from models import courses", "from tests.functional import actions", "from google.appengine.api import namespace_manager", "class AdminDashboardT...
# Copyright 2014 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.0222, 0.0015, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0251, 0.0015, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0281, 0.0015, 0, 0.66,...
[ "\"\"\"Tests that walk through Course Builder pages.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import re", "from common import crypto", "from common import utils as common_utils", "from controllers import sites", "from controllers import utils", "from models import config", "from m...
# Copyright 2015 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.0191, 0.0011, 0, 0.66, 0.0286, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0213, 0.0011, 0, 0.66,...
[ "\"\"\"Tests for modules/usage_reporting/*\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import collections", "import copy", "import os", "import time", "import urlparse", "from common import crypto", "from common import utils as common_utils", "from controllers import sites", "fro...
# Copyright 2014 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.0479, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0543, 0.0032, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0607, 0.0032, 0, 0.66,...
[ "\"\"\"Tests for the rating widget.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import urllib", "from controllers import utils", "from common import crypto", "from models import courses", "from models import models", "from models import transforms", "from models.data_sources import utils a...
# -*- coding: utf-8 -*- # Copyright 2014 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 requir...
[ [ 8, 0, 0.0382, 0.0024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.043, 0.0024, 0, 0.66, 0.05, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0501, 0.0024, 0, 0.66, ...
[ "\"\"\"Tests related to content translation to multiple languages.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import json", "import os", "import yaml", "import appengine_config", "from common import schema_fields", "from common import xcontent", "from models import courses", "f...
# Copyright 2015 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.0079, 0.0005, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0089, 0.0005, 0, 0.66, 0.0179, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.01, 0.0005, 0, 0.66, ...
[ "\"\"\"Tests for the skill mapping module.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import json", "import cStringIO", "import StringIO", "import time", "import urllib", "import zipfile", "from babel.messages import pofile", "from networkx import DiGraph", "from xml.e...
# Copyright 2014 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.0388, 0.0026, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0465, 0.0078, 0, 0.66, 0.0714, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0543, 0.0026, 0, 0.66,...
[ "\"\"\"Functional tests for modules/i18n_dashboard/jobs.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import os", "import zipfile", "from modules.i18n_dashboard import jobs", "from tests.functional import modules_i18n_dashboard", "from tools.etl import etl", "from tools.etl i...
# Copyright 2014 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.1829, 0.0122, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2134, 0.0244, 0, 0.66, 0.125, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.2439, 0.0122, 0, 0.66, ...
[ "\"\"\"Tests for the math module.\"\"\"", "__author__ = ['Gun Pinyo (gunpinyo@google.com)',\n 'Neema Kotonya (neemak@google.com)']", "from models import courses", "from tests.functional import actions", "COURSE_NAME = 'math_tag_test_course'", "ADMIN_EMAIL = 'user@test.com'", "MATHJAX_SCRIPT...
# 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.0172, 0.001, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0192, 0.001, 0, 0.66, 0.0135, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0202, 0.001, 0, 0.66, ...
[ "\"\"\"A collection of actions for testing Course Builder pages.\"\"\"", "import cgi", "import functools", "import logging", "import os", "import re", "import urllib", "from xml.etree import cElementTree", "import html5lib", "import appengine_config", "from controllers import sites", "from con...
# Copyright 2014 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.0685, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0822, 0.0137, 0, 0.66, 0.0714, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0959, 0.0046, 0, 0.66,...
[ "\"\"\"Functional tests for models/jobs.py.\"\"\"", "__author__ = [\n 'mgainer@google.com (Mike Gainer)',\n]", "from common.utils import Namespace", "from models import jobs", "from models import transforms", "from tests.functional import actions", "from google.appengine.ext import db", "TEST_NAMES...
# Copyright 2014 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.026, 0.0017, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0295, 0.0017, 0, 0.66, 0.037, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.033, 0.0017, 0, 0.66, ...
[ "\"\"\"Verify operation of custom tags from core_tags module.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import os", "import StringIO", "import appengine_config", "from controllers import sites", "from models import config", "from models import courses", "from models import models",...
# Copyright 2014 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.0685, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0776, 0.0046, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0868, 0.0046, 0, 0.66,...
[ "\"\"\"Tests verifying progress in units.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import re", "from common import crypto", "from common.utils import Namespace", "from controllers import utils", "from models import config", "from models import courses", "from models import models"...
# 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.0309, 0.0021, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.035, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0391, 0.0021, 0, 0.66, ...
[ "\"\"\"Tests for modules/search/.\"\"\"", "__author__ = 'Ellis Michael (emichael@google.com)'", "import datetime", "import logging", "import re", "import urllib", "import actions", "from common import utils as common_utils", "from controllers import sites", "from models import courses", "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.0962, 0.0064, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1154, 0.0192, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1346, 0.0064, 0, 0.66,...
[ "\"\"\"Functional tests for modules/upload/upload.py.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import os", "from controllers import utils", "from models import models", "from models import student_work", "from modules.upload import upload", "from tests.functional import acti...
# Copyright 2015 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.1042, 0.0069, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1181, 0.0069, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1285, 0.0139, 0, 0.6...
[ "\"\"\"Test the autoregister module.\"\"\"", "import os", "os.environ['GCB_REGISTERED_MODULES_CUSTOM'] = (\n 'internal.experimental.autoregister.autoregister')", "from common import crypto", "from models import courses", "from tests.functional import actions", "from internal.experimental.autoregister...
# 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.025, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0274, 0.0014, 0, 0.66, ...
[ "\"\"\"Set of converters between db models, Python and JSON dictionaries, etc.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import datetime", "import itertools", "import json", "from StringIO import StringIO", "import types", "import urlparse", "from xml.etree import ElementTree", ...
# Copyright 2014 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.7895, 0.0526, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.8947, 0.0526, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 1, 0.0526, 0, 0.66, 1,...
[ "\"\"\"Constants shared between transforms.py and entity_transforms.py.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "SIMPLE_TYPES = (int, long, float, bool, dict, basestring, list)" ]
# 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.0542, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0668, 0.0144, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0794, 0.0036, 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 transforms", "import models", "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.0538, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0609, 0.0036, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0681, 0.0036, 0, 0.66,...
[ "\"\"\"Common classes and methods for managing persistent entities.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "from counters import PerfCounter", "import transforms", "from google.appengine.ext import db", "DB_QUERY = PerfCounter(\n 'gcb-models-db-query',\n 'A number of times a q...
# 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.1786, 0.0119, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2024, 0.0119, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.25, 0.0357, 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 2014 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.0625, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0708, 0.0042, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0792, 0.0042, 0, 0.66,...
[ "\"\"\"Module providing visualizations display as HTML/JS.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import safe_dom", "from controllers import utils", "from models import data_sources", "from models import jobs", "from models import transforms", "from models.analytics im...
# Copyright 2014 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.1974, 0.0132, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2237, 0.0132, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.25, 0.0132, 0, 0.66, ...
[ "\"\"\"Utility functions common to analytics module.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import os", "import sys", "import appengine_config", "def _generators_for_visualizations(visualizations):\n ret = set()\n for visualization in visualizations:\n ret.update(visualiz...
# Copyright 2014 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.063, 0.0042, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0714, 0.0042, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0798, 0.0042, 0, 0.66, ...
[ "\"\"\"Module providing public analytics interfaces.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import os", "import re", "import jinja2", "import appengine_config", "from controllers import sites", "from controllers import utils as controllers_utils", "from models.analytics import d...
# Copyright 2014 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.1504, 0.0088, 0, 0.66, 0.0417, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1681, 0.0088, 0, 0.66,...
[ "\"\"\"Messages used in the models.\"\"\"", "__author__ = 'Boris Roussev (borislavr@google.com)'", "from common import safe_dom", "PEER_MATCHER_NAME = 'Peer'", "ASSESSMENT_CONTENT_DESCRIPTION = safe_dom.assemble_text_message(\"\"\"\nAssessment questions and answers (JavaScript format).\n\"\"\", 'https://cod...
# 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.0711, 0.0047, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0806, 0.0047, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.09, 0.0047, 0, 0.66, ...
[ "\"\"\"Manages mapping of users to roles and roles to privileges.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import collections", "import config", "from common import utils", "from models import MemcacheManager", "from models import RoleDAO", "from google.appengine.api import users...
# Copyright 2014 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.082, 0.0055, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0929, 0.0055, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1038, 0.0055, 0, 0.66, ...
[ "\"\"\"Set of converters between db models, Python and JSON dictionaries, etc.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import base64", "import datetime", "import entities", "import transforms_constants", "from common import schema_fields", "from google.appengine.api import datastor...
# 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.0047, 0.0003, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0053, 0.0003, 0, 0.66, 0.0112, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0059, 0.0003, 0, 0.66,...
[ "\"\"\"Common classes and methods for managing Courses.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import collections", "import copy", "from datetime import datetime", "import logging", "import os", "import pickle", "import re", "import sys", "import threading", "import con...
# 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.0478, 0.0207, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.062, 0.0026, 0, 0.66, 0.0417, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0672, 0.0026, 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 2015 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.0137, 0.0009, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0156, 0.0009, 0, 0.66, 0.0278, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0174, 0.0009, 0, 0.66,...
[ "\"\"\"Implement resource abstraction for Course-level items.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import cgi", "import yaml", "import models", "import courses", "import messages", "from common import resource", "from common import safe_dom", "from common import schema_field...
# Copyright 2014 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.1515, 0.0101, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1717, 0.0101, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1919, 0.0101, 0, 0.66, ...
[ "\"\"\"Classes supporting dynamically registering custom unit types.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "import logging", "class UnitTypeRegistry(object):\n \"\"\"A registry that holds all custom modules.\"\"\"\n\n registered_unit_types = {}\n\n @classmethod\n def 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.1145, 0.0076, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.1527, 0.0382, 0, 0.66, 0.2, 451, 0, 1, 0, 0, 186, 0, 1 ], [ 8, 1, 0.145, 0.0076, 1, 0.07, ...
[ "\"\"\"Core service interface definitions.\"\"\"", "class Service(object):\n \"\"\"Abstract base service interface.\"\"\"\n\n def enabled(self):\n raise NotImplementedError()", " \"\"\"Abstract base service interface.\"\"\"", " def enabled(self):\n raise NotImplementedError()", "cl...
# 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.1261, 0.0084, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1429, 0.0084, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1597, 0.0084, 0, 0.66, ...
[ "\"\"\"Models and helper utilities for the review workflow.\"\"\"", "__author__ = 'mgainer@google.com (Mike Gainer)'", "from common import utils as common_utils", "from controllers import utils", "import models", "from models import transforms", "from google.appengine.api import users", "PARAMETER_LAB...
# 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 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.1667, 0.0111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1889, 0.0111, 0, 0.66, 0.3333, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.5111, 0.5889, 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 2014 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.0385, 0.0026, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0436, 0.0026, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0487, 0.0026, 0, 0.66,...
[ "\"\"\"Analytics for extracting facts based on StudentAnswerEntity entries.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import collections", "import logging", "import courses", "from common import tags", "import models", "from tools import verify", "QuestionAnswerInfo = collections.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.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]", "import entities", "import student_work", "import transforms", "from modules.review import domain", "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.0155, 0.001, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.001, 0, 0.66, 0.0238, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0197, 0.001, 0, 0.66, ...
[ "\"\"\"Virtual file system for managing files locally or in the cloud.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import datetime", "import os", "import re", "import sys", "import threading", "import unittest", "from config import ConfigProperty", "from counters import PerfCoun...
# 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.0116, 0.0008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0131, 0.0008, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0146, 0.0008, 0, 0.66,...
[ "\"\"\"Student progress trackers.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "import datetime", "import logging", "import os", "from collections import defaultdict", "import courses", "import transforms", "from common import utils", "from models import QuestionDAO", "from models import ...
# Copyright 2014 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.2024, 0.0119, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2262, 0.0119, 0, 0.66, ...
[ "\"\"\"Registration for data sources.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import logging", "from models import jobs", "from models.data_sources import base_types", "class _Registry(object):\n\n _data_source_classes = []\n _data_source_names = {}\n\n @classmethod\n def r...
# Copyright 2014 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.04, 0.0027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0453, 0.0027, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0507, 0.0027, 0, 0.66, ...
[ "\"\"\"Module providing base types for analytics.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import re", "class _DataSource(object):\n \"\"\"Common base class for all kinds of data sources.\"\"\"\n\n @staticmethod\n def required_generators():\n \"\"\"Tell what long-running job...
# Copyright 2014 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.0735, 0.0049, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0833, 0.0049, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0931, 0.0049, 0, 0.66, ...
[ "\"\"\"Generic webapp2 handler for REST data sources.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import catch_and_log", "from common import crypto", "from controllers import utils", "from models import roles", "from models import transforms", "from models.data_sources impo...
# Copyright 2014 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.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4043, 0.0213, 0, 0.66, ...
[ "\"\"\"Utility functions common to data sources module.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from models import jobs", "DATA_SOURCE_ACCESS_XSRF_ACTION = 'data_source_access'", "def generate_data_source_token(xsrf):\n \"\"\"Generate an XSRF token used to access data source, and prot...
# Copyright 2014 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.0472, 0.0031, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0535, 0.0031, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0597, 0.0031, 0, 0.66,...
[ "\"\"\"Access AppEngine DB tables via AbstractRestDataSource interface.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import copy", "import functools", "import re", "from common import crypto", "from common.utils import Namespace", "from models import entity_transforms", "from models i...
# Copyright 2014 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.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2676, 0.0141, 0, 0.66,...
[ "\"\"\"Module providing data source contents via REST interface.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from models.data_sources import base_types", "from models.data_sources import source_handler", "from models.data_sources import paginated_table", "from models.data_sources import re...
# Copyright 2014 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.2027, 0.0135, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2297, 0.0135, 0, 0.66, 0.1, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.2432, 0.0135, 0, 0.66, ...
[ "\"\"\"ETL testing utilities.\"\"\"", "import copy", "import cStringIO", "import logging", "import os", "from controllers import sites", "from tests.functional import actions", "from tools.etl import etl", "from tools.etl import remote", "class EtlTestBase(actions.TestBase):\n # Allow access to...
# 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.1034, 0.0069, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1241, 0.0207, 0, 0.66, 0.0476, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1448, 0.0069, 0, 0.66,...
[ "\"\"\"Remote environment manager for extract-transform-load utilities.\"\"\"", "__author__ = [\n 'johncox@google.com',\n]", "import os", "import sys", "import appengine_config", "SERVER_SOFTWARE = 'Production Emulation'", "if appengine_config.PRODUCTION_MODE:\n sys.exit('Running etl/tools/remote....
# 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.067, 0.0045, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0804, 0.0134, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0938, 0.0045, 0, 0.66, ...
[ "\"\"\"Libraries for writing extract-transform-load scripts.\"\"\"", "__author__ = [\n 'johncox@google.com',\n]", "import argparse", "import datetime", "import time", "from controllers import sites", "from models import courses", "def get_context(course_url_prefix):\n \"\"\"Gets requested applic...
# 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.0297, 0.002, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0356, 0.0059, 0, 0.66, 0.0714, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0416, 0.002, 0, 0.66, ...
[ "\"\"\"Example of custom MapReduce jobs.\"\"\"", "__author__ = [\n 'juliaoh@google.com (Julia Oh)',\n]", "import sys", "import mapreduce", "from models import transforms", "_POS_LIMIT_SECONDS = 60 * 8", "_SUM = 'sum'", "class CsvStudentEventAccumulationPipeline(mapreduce.CsvGenerator):\n \"\"\"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.0337, 0.0022, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0416, 0.009, 0, 0.66, 0.0435, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0494, 0.0022, 0, 0.66, ...
[ "\"\"\"MapReduce extensions for ETL.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n 'juliaoh@google.com (Julia Oh)',\n]", "import csv", "import os", "import sys", "from xml.etree import ElementTree", "import mrs", "from models import transforms", "from tools.etl import etl_lib", ...
# 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.1104, 0.0429, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1472, 0.0184, 0, 0.66, 0.0909, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1656, 0.0061, 0, 0.66,...
[ "\"\"\"Examples of custom extract-transform-load jobs.\n\nCustom jobs are run via tools/etl/etl.py. You must do environment setup before\netl.py can be invoked; see its module docstring for details.\n\nSee tools/etl/etl_lib.py for documentation on writing Job subclasses.\n\"\"\"", "__author__ = [\n 'johncox@go...
# 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.0968, 0.0065, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1097, 0.0065, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1226, 0.0065, 0, 0.66,...
[ "\"\"\"Allows export of Lessons and Units to other systems.\"\"\"", "__author__ = 'psimakov@google.com (Pavel Simakov)'", "from datetime import datetime", "import os", "import verify", "RELEASE_TAG = '1.0'", "def echo(unused_x):\n pass", "JS_GCB_REGEX = \"\"\"\nfunction gcb_regex(base, modifiers) {...
# 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.0655, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0742, 0.0044, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.083, 0.0044, 0, 0.66, ...
[ "\"\"\"Classes and methods to manage all aspects of student assessments.\"\"\"", "__author__ = 'pgbovine@google.com (Philip Guo)'", "import datetime", "import logging", "from utils import BaseHandler", "from utils import HUMAN_READABLE_DATETIME_FORMAT", "from controllers import lessons", "from models ...
# 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.0112, 0.0007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0127, 0.0007, 0, 0.66, 0.0185, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0142, 0.0007, 0, 0.66,...
[ "\"\"\"Handlers for generating various frontend pages.\"\"\"", "__author__ = 'Saifu Angto (saifu@google.com)'", "import copy", "import datetime", "import urllib", "import urlparse", "from utils import BaseHandler", "from utils import BaseRESTHandler", "from utils import CAN_PERSIST_ACTIVITY_EVENTS",...
# 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.0125, 0.0008, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0142, 0.0008, 0, 0.66, 0.0164, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0158, 0.0008, 0, 0.66,...
[ "\"\"\"Handlers that are not directly related to course content.\"\"\"", "__author__ = 'Saifu Angto (saifu@google.com)'", "import datetime", "import HTMLParser", "import os", "import re", "import urllib", "import urlparse", "import jinja2", "import sites", "import webapp2", "import appengine_c...