code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.25, 0.1333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3333, 0.0111, 0, 0.66, 0.1429, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.3444, 0.0111, 0, 0.66, ...
[ "\"\"\"fixml.py -- A tool to fix broken Robot Framework output files\n\nUsage: fixml.py inpath outpath\n\nThis tool can fix Robot Framework output files that are not properly finished\nor are missing elements from the middle. It should be possible to generate\nreports and logs from the fixed output afterwards with...
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.2598, 0.1961, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3725, 0.0098, 0, 0.66, 0.0909, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3824, 0.0098, 0, 0.66...
[ "\"\"\"Robot Framework Start/End/Elapsed Time Reporter\n\nUsage: times2csv.py input-xml [output-csv] [include-items]\n\nThis script reads start, end, and elapsed times from all suites, tests and/or\nkeywords from the given output file, and writes them into an file in\ncomma-separated-values (CSV) format. CSV files...
#!/usr/bin/env python # tool2html.py -- Creates HTML version of given tool documentation # # First part of this file is Pygments configuration and actual # documentation generation follows it. # # Pygments configuration # # This code is from 'external/rst-directive.py' file included in Pygments 0.9 # distribution. F...
[ [ 8, 0, 0.2254, 0.2465, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3873, 0.007, 0, 0.66, 0.0455, 281, 1, 0, 0, 0, 0, 4, 0 ], [ 1, 0, 0.4014, 0.007, 0, 0.66, ...
[ "\"\"\"\n The Pygments MoinMoin Parser\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n This fragment is a Docutils_ 0.4 directive that renders source code\n (to HTML only, currently) via Pygments.\n\n To use it, adjust the options below and copy the code into a module", "INLINESTYLES = False", "from pygments....
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.0852, 0.0057, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0057, 0, 0.66, 0.1667, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.0966, 0.0057, 0, ...
[ "import sys", "import inspect", "import traceback", "from StringIO import StringIO", "from SimpleXMLRPCServer import SimpleXMLRPCServer", "try:\n import signal\nexcept ImportError:\n signal = None", " import signal", " signal = None", "class RobotRemoteServer(SimpleXMLRPCServer):\n al...
import sys from SimpleXMLRPCServer import SimpleXMLRPCServer class SimpleLibrary(SimpleXMLRPCServer): def __init__(self, port=8270): SimpleXMLRPCServer.__init__(self, ('localhost', int(port))) self.register_function(self.get_keyword_names) self.register_function(self.run_keyword) ...
[ [ 1, 0, 0.027, 0.027, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0541, 0.027, 0, 0.66, 0.3333, 73, 0, 1, 0, 0, 73, 0, 0 ], [ 3, 0, 0.5135, 0.7838, 0, 0.66,...
[ "import sys", "from SimpleXMLRPCServer import SimpleXMLRPCServer", "class SimpleLibrary(SimpleXMLRPCServer):\n\n def __init__(self, port=8270):\n SimpleXMLRPCServer.__init__(self, ('localhost', int(port)))\n self.register_function(self.get_keyword_names)\n self.register_function(self.run...
# Can be used in the test data like ${MyObject()} or ${MyObject(1)} class MyObject: def __init__(self, index=''): self.index = index def __str__(self): return '<MyObject%s>' % self.index UNICODE = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. ' u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!') LI...
[ [ 3, 0, 0.25, 0.3125, 0, 0.66, 0, 605, 0, 2, 0, 0, 0, 0, 0 ], [ 2, 1, 0.2188, 0.125, 1, 0.28, 0, 555, 0, 2, 0, 0, 0, 0, 0 ], [ 14, 2, 0.25, 0.0625, 2, 0.09, 0, ...
[ "class MyObject:\n def __init__(self, index=''):\n self.index = index\n def __str__(self):\n return '<MyObject%s>' % self.index", " def __init__(self, index=''):\n self.index = index", " self.index = index", " def __str__(self):\n return '<MyObject%s>' % self.ind...
import sys class RemoteTestLibrary: _unicode = (u'Hyv\u00E4\u00E4 y\u00F6t\u00E4. ' u'\u0421\u043F\u0430\u0441\u0438\u0431\u043E!') def get_server_language(self): lang = sys.platform.startswith('java') and 'jython' or 'python' return '%s%d%d' % (lang, sys.version_info[0], sys...
[ [ 1, 0, 0.0032, 0.0032, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 3, 0, 0.4792, 0.9359, 0, 0.66, 0.25, 637, 0, 81, 0, 0, 0, 0, 65 ], [ 14, 1, 0.0208, 0.0064, 1, 0...
[ "import sys", "class RemoteTestLibrary:\n\n _unicode = (u'Hyv\\u00E4\\u00E4 y\\u00F6t\\u00E4. '\n u'\\u0421\\u043F\\u0430\\u0441\\u0438\\u0431\\u043E!')\n\n def get_server_language(self):\n lang = sys.platform.startswith('java') and 'jython' or 'python'\n return '%s%d%d' % (lang...
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.1446, 0.0783, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1928, 0.006, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1988, 0.006, 0, 0.66, ...
[ "\"\"\"Robot Framework Debugfile Viewer\n\nUsage: fileviever.py [path]\n\nThis tool is mainly targeted for viewing Robot Framework debug files set\nwith '--debugfile' command line option when running test. The idea is to\nprovide a tool that has similar functionality as 'tail -f' command in \nunixy systems.", "i...
#!/usr/bin/env python # Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
[ [ 8, 0, 0.1474, 0.1211, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2158, 0.0053, 0, 0.66, 0.0833, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.2263, 0.0053, 0, 0.66...
[ "\"\"\"Robot Framework Test Status Checker\n\nUsage: statuschecker.py infile [outfile]\n\nThis tool processes Robot Framework output XML files and checks that test case\nstatuses and messages are as expected. Main use case is post-processing output\nfiles got when testing Robot Framework test libraries using Robot...
#!/usr/bin/env python """qs2html.py -- Creates HTML version of Robot Framework Quick Start Guide Usage: qs2html.py [ cr(eate) | dist | zip ] create .. Creates the HTML version of the Quick Start Guide. dist .... Creates the Quick Start Guide and copies it and all its dependencies under directory named '...
[ [ 8, 0, 0.1076, 0.1519, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2025, 0.0127, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2152, 0.0127, 0, 0.66, ...
[ "\"\"\"qs2html.py -- Creates HTML version of Robot Framework Quick Start Guide\n\nUsage: qs2html.py [ cr(eate) | dist | zip ]\n\ncreate .. Creates the HTML version of the Quick Start Guide.\n\ndist .... Creates the Quick Start Guide and copies it and all its dependencies \n under directory named 'robotfra...
import os import sys import subprocess class LoginLibrary: def __init__(self): self._sut_path = os.path.join(os.path.dirname(__file__), '..', 'sut', 'login.py') self._status = '' def create_user(self, username, password): self._run_command('creat...
[ [ 1, 0, 0.0303, 0.0303, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0606, 0.0303, 0, 0.66, 0.3333, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0303, 0, ...
[ "import os", "import sys", "import subprocess", "class LoginLibrary:\n\n def __init__(self):\n self._sut_path = os.path.join(os.path.dirname(__file__),\n '..', 'sut', 'login.py')\n self._status = ''\n\n def create_user(self, username, password):", " ...
def simple_keyword(): """Log a message""" print 'You have used the simplest keyword.' def greet(name): """Logs a friendly greeting to person given as argument""" print 'Hello %s!' % name def multiply_by_two(number): """Returns the given number multiplied by two The result is always a floa...
[ [ 2, 0, 0.1, 0.15, 0, 0.66, 0, 30, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 1, 0.1, 0.05, 1, 0.5, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 1, 0.15, 0.05, 1, 0.5, 1, 535, 3,...
[ "def simple_keyword():\n \"\"\"Log a message\"\"\"\n print('You have used the simplest keyword.')", " \"\"\"Log a message\"\"\"", " print('You have used the simplest keyword.')", "def greet(name):\n \"\"\"Logs a friendly greeting to person given as argument\"\"\"\n print('Hello %s!' % name)"...
#!/usr/bin/env python """pt2html.py -- Creates HTML version of Python Tutorial Usage: pt2html.py """ import sys import os import shutil import time sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'userguide')) import ug2html # This also initializes docutils and pygments def create_tutorial(): ...
[ [ 8, 0, 0.125, 0.1111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2222, 0.0278, 0, 0.66, 0.125, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.25, 0.0278, 0, 0.66, ...
[ "\"\"\"pt2html.py -- Creates HTML version of Python Tutorial\n\nUsage: pt2html.py\n\"\"\"", "import sys", "import os", "import shutil", "import time", "sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'userguide'))", "import ug2html # This also initializes docutils and pygments", "de...
#!/usr/bin/env python """Usage: lib2html.py [ library | all ] Libraries: BuiltIn (bu) Collections (co) Dialogs (di) OperatingSystem (op) Screenshot (sc) String (st) Telnet (te) XML (xm) """ import sys import os import re ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..','..')...
[ [ 8, 0, 0.1771, 0.25, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3333, 0.0208, 0, 0.66, 0.1, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3542, 0.0208, 0, 0.66, ...
[ "\"\"\"Usage: lib2html.py [ library | all ]\n\nLibraries:\n BuiltIn (bu)\n Collections (co)\n Dialogs (di)\n OperatingSystem (op)\n Screenshot (sc)", "import sys", "import os", "import re", "ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..','..'))", "sys.path.insert(0, os.path...
#!/usr/bin/env python """ug2html.py -- Creates HTML version of Robot Framework User Guide Usage: ug2html.py [ cr(eate) | dist | zip ] create .. Creates the user guide so that it has relative links to images, library docs, etc. This version is stored in the version control and distributed with th...
[ [ 8, 0, 0.0453, 0.0717, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0868, 0.0038, 0, 0.66, 0.0435, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0906, 0.0038, 0, 0.66...
[ "\"\"\"ug2html.py -- Creates HTML version of Robot Framework User Guide\n\nUsage: ug2html.py [ cr(eate) | dist | zip ]\n\ncreate .. Creates the user guide so that it has relative links to images,\n library docs, etc. This version is stored in the version control\n and distributed with the source ...
class LoggingLibrary: """Library for logging messages. = Table of contents = - `Usage` - `Valid log levels` - `Examples` - `Importing` - `Shortcuts` - `Keywords` = Usage = This library has several keyword, for example `Log Message`, for logging messages. In reality the li...
[ [ 3, 0, 0.5064, 1, 0, 0.66, 0, 585, 0, 5, 0, 0, 0, 0, 8 ], [ 8, 1, 0.2115, 0.3846, 1, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.4103, 0.0128, 1, 0.66, 0.166...
[ "class LoggingLibrary:\n \"\"\"Library for logging messages.\n\n = Table of contents =\n\n - `Usage`\n - `Valid log levels`\n - `Examples`", " \"\"\"Library for logging messages.\n\n = Table of contents =\n\n - `Usage`\n - `Valid log levels`\n - `Examples`\n - `Importing`", " ...
#! /usr/bin/env python """generate.py -- Generate Robot Framework API documentation usage: generate.py This script creates API documentation from both Python and Java source code included in `src/python and `src/java`, respectively. Python autodocs are created in `doc/api/autodoc` and Javadocs in `doc/api/_static/ja...
[ [ 8, 0, 0.1214, 0.1714, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2286, 0.0143, 0, 0.66, 0.0625, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2429, 0.0143, 0, 0.66...
[ "\"\"\"generate.py -- Generate Robot Framework API documentation\n\nusage: generate.py\n\nThis script creates API documentation from both Python and Java source code\nincluded in `src/python and `src/java`, respectively. Python autodocs are\ncreated in `doc/api/autodoc` and Javadocs in `doc/api/_static/javadoc`.", ...
#!/usr/bin/env python """Usage: check_test_times.py inpath [outpath] Reads result of a test run from Robot output file and checks that no test took longer than 3 minutest to execute. If outpath is not given, the result is written over the original file. """ import sys from robot.result import ExecutionResult def c...
[ [ 8, 0, 0.1618, 0.1765, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2941, 0.0294, 0, 0.66, 0.2, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3235, 0.0294, 0, 0.66, ...
[ "\"\"\"Usage: check_test_times.py inpath [outpath]\n\nReads result of a test run from Robot output file and checks that no test\ntook longer than 3 minutest to execute. If outpath is not given, the\nresult is written over the original file.\n\"\"\"", "import sys", "from robot.result import ExecutionResult", "...
class CheckMultipleItemsLibrary: def items_should_not_contain(self, value, *items): """Checks that none of the given 'items' contains the given 'value'.""" items_containing_value = [ item for item in items if value in item ] if items_containing_value: message = "Items '%s' cont...
[ [ 3, 0, 0.55, 1, 0, 0.66, 0, 960, 0, 1, 0, 0, 0, 0, 2 ], [ 2, 1, 0.65, 0.8, 1, 0.82, 0, 121, 0, 3, 0, 0, 0, 0, 2 ], [ 8, 2, 0.4, 0.1, 2, 0.44, 0, 0, 1, ...
[ "class CheckMultipleItemsLibrary:\n\n def items_should_not_contain(self, value, *items):\n \"\"\"Checks that none of the given 'items' contains the given 'value'.\"\"\"\n\n items_containing_value = [ item for item in items if value in item ]\n if items_containing_value:\n message ...
"""Robot Framework test library example that calls C code. This example uses Python's standard `ctypes` module, which requires that the C code is compiled into a shared library. It is also possible to execute this file from the command line to test the C code manually. """ from ctypes import CDLL, c_char_p LIBRARY...
[ [ 8, 0, 0.1552, 0.2759, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3448, 0.0345, 0, 0.66, 0.25, 182, 0, 2, 0, 0, 182, 0, 0 ], [ 14, 0, 0.4138, 0.0345, 0, 0.66,...
[ "\"\"\"Robot Framework test library example that calls C code.\n\nThis example uses Python's standard `ctypes` module, which requires\nthat the C code is compiled into a shared library.\n\nIt is also possible to execute this file from the command line \nto test the C code manually.\n\"\"\"", "from ctypes import C...
from robot import run as run_robot import cProfile import pstats filename = 'robot.profile' cProfile.run('run_robot("/home/husa/workspace/robotframework/atest/testdata/misc/")', filename) p = pstats.Stats(filename) p.strip_dirs().sort_stats(-1).print_stats()
[ [ 1, 0, 0.1, 0.1, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.2, 0.1, 0, 0.66, 0.1667, 686, 0, 1, 0, 0, 686, 0, 0 ], [ 1, 0, 0.3, 0.1, 0, 0.66, 0.3333, ...
[ "from robot import run as run_robot", "import cProfile", "import pstats", "filename = 'robot.profile'", "cProfile.run('run_robot(\"/home/husa/workspace/robotframework/atest/testdata/misc/\")', filename)", "p = pstats.Stats(filename)", "p.strip_dirs().sort_stats(-1).print_stats()" ]
#!/usr/bin/env python """Profiler for Robot Framework `run` and `rebot`. Usage: profiler.py run|rebot [options] arguments """ import cProfile import pstats import os from os.path import abspath, dirname, join import sys import tempfile rootdir = dirname(dirname(abspath(__file__))) sys.path.insert(0, join(rootdir, '...
[ [ 8, 0, 0.1216, 0.1081, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2162, 0.027, 0, 0.66, 0.0833, 686, 0, 1, 0, 0, 686, 0, 0 ], [ 1, 0, 0.2432, 0.027, 0, 0.66, ...
[ "\"\"\"Profiler for Robot Framework `run` and `rebot`.\n\nUsage: profiler.py run|rebot [options] arguments\n\"\"\"", "import cProfile", "import pstats", "import os", "from os.path import abspath, dirname, join", "import sys", "import tempfile", "rootdir = dirname(dirname(abspath(__file__)))", "sys.p...
VALUE_FROM_VAR_FILE='Expected Value'
[ [ 14, 0, 1, 1, 0, 0.66, 0, 246, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "VALUE_FROM_VAR_FILE='Expected Value'" ]
def this_keyword_is_in_funnylib(): print 'jee'
[ [ 2, 0, 0.75, 1, 0, 0.66, 0, 708, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 1, 1, 0.5, 1, 0.02, 0, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "def this_keyword_is_in_funnylib():\n print('jee')", " print('jee')" ]
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ [ 1, 0, 0.0542, 0.0034, 0, 0.66, 0, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0576, 0.0034, 0, 0.66, 0.0833, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.061, 0.0034, 0, 0...
[ "from __future__ import with_statement", "import subprocess", "import time", "from random import randint", "import os", "import re", "import sys", "from robot.libraries import BuiltIn", "from robot.utils import html_escape, ArgumentParser", "from robot.version import get_version", "class Paralle...
from Queue import Queue from threading import Event try: from multiprocessing.managers import BaseManager except ImportError: class Python26Required(object): def __call__(self, *args): raise RuntimeError('Requires Python > 2.6') def __getattr__(self, name): raise Runt...
[ [ 1, 0, 0.0057, 0.0057, 0, 0.66, 0, 952, 0, 1, 0, 0, 952, 0, 0 ], [ 1, 0, 0.0114, 0.0057, 0, 0.66, 0.25, 83, 0, 1, 0, 0, 83, 0, 0 ], [ 7, 0, 0.0398, 0.0511, 0, 0.66...
[ "from Queue import Queue", "from threading import Event", "try:\n from multiprocessing.managers import BaseManager\nexcept ImportError:\n class Python26Required(object):\n def __call__(self, *args):\n raise RuntimeError('Requires Python > 2.6')\n def __getattr__(self, name):\n...
#!/usr/bin/env python """Packaging script for Robot Framework Usage: package.py command version_number [release_tag] Argument 'command' can have one of the following values: - sdist : create source distribution - wininst : create Windows installer - all : create both packages - version : update on...
[ [ 8, 0, 0.0681, 0.1183, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1326, 0.0036, 0, 0.66, 0.02, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.1362, 0.0036, 0, 0.66, ...
[ "\"\"\"Packaging script for Robot Framework\n\nUsage: package.py command version_number [release_tag]\n\nArgument 'command' can have one of the following values:\n - sdist : create source distribution\n - wininst : create Windows installer\n - all : create both packages", "from __future__ import with...
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
[ [ 1, 0, 0.0816, 0.0102, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1224, 0.0102, 0, 0.66, 0.0714, 792, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1531, 0.0102, 0, ...
[ "import os, re, mimetypes, sys", "SOURCE = sys.argv[1:]", "COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)", "COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)", "COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)", "EXCLUDE_TYPES = [\n \"application/xml\...
# 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.0151, 0.0102, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0211, 0.0006, 0, 0.66, 0.0149, 312, 0, 1, 0, 0, 312, 0, 0 ], [ 1, 0, 0.0217, 0.0006, 0, 0.66...
[ "\"\"\"Enforces schema and verifies course files for referential integrity.\n\nUse this script to verify referential integrity of your course definition files\nbefore you import them into the production instance of Google AppEngine.\n\nHere is how to use the script:\n - prepare your course files\n - edi...
# 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 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 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 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.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.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 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.0469, 0.0031, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0531, 0.0031, 0, 0.66, 0.0333, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0594, 0.0031, 0, 0.66,...
[ "\"\"\"Module providing handlers for URLs related to map/reduce and pipelines.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import datetime", "import re", "import urllib", "from mapreduce import main as mapreduce_main", "from mapreduce import parameters as mapreduce_parameters", "from m...
# 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.2, 0.0133, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2267, 0.0133, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2533, 0.0133, 0, 0.66, 0...
[ "\"\"\"Sample announcements.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import datetime", "SAMPLE_ANNOUNCEMENT_1 = {\n 'edit_url': None,\n 'title': 'Example Announcement',\n 'date': datetime.date(2012, 10, 6),\n 'is_draft': False,\n 'html': \"\"\"\n <br>Certificates w...
# 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.0366, 0.0024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0415, 0.0024, 0, 0.66, 0.0312, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0488, 0.0024, 0, 0.66,...
[ "\"\"\"Classes and methods to create and manage Announcements.\"\"\"", "__author__ = 'Saifu Angto (saifu@google.com)'", "import datetime", "import urllib", "from common import tags", "from common import utils", "from common.schema_fields import FieldArray", "from common.schema_fields import FieldRegis...
# 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.0188, 0.0013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0214, 0.0013, 0, 0.66, 0.0227, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0239, 0.0013, 0, 0.66,...
[ "\"\"\"Resources to be indexed and searched over by the search module.\"\"\"", "__author__ = 'Ellis Michael (emichael@google.com)'", "import collections", "import datetime", "import gettext", "import HTMLParser", "import logging", "import operator", "import os", "import Queue", "import re", "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.3106, 0.1818, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4242, 0.0152, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4545, 0.0152, 0, 0.66, ...
[ "\"\"\"Provide data sources of common CourseBuilder items.\n\nIf you are adding an extension module to CourseBuilder and you wish to include\na data source as part of that extension, you should add that class in the\ndirectory specific to your module, rather than registering it here. That way,\nif your module need...
# 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.0296, 0.002, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0335, 0.002, 0, 0.66, 0.0526, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0375, 0.002, 0, 0.66, ...
[ "\"\"\"Provide data sources performing synchronous (non-paginated) reads.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "import logging", "import urlparse", "from common import safe_dom", "from models import courses", "from models import data_sources", "from models import jobs", "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.0394, 0.0026, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0446, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0499, 0.0026, 0, 0.66,...
[ "\"\"\"Classes providing REST data sources for common CourseBuilder items.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import schema_fields", "from common import utils", "from models import courses", "from models import data_sources", "from models import jobs", "from 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.0533, 0.0435, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0804, 0.0022, 0, 0.66, 0.0263, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0848, 0.0022, 0, 0.66,...
[ "\"\"\"Provide the capability for registered students to invite others.\n\nSetup:\n Include the text of the invitation email in course.yaml with the key:\n\n course:\n invitation_email:\n sender_email: <email_address_in_from_field>", "__author__ = 'John Orr (jorr@google.com)'", "import gette...
# 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.0493, 0.0033, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0559, 0.0033, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0625, 0.0033, 0, 0.66,...
[ "\"\"\"Module for implementing question tags.\"\"\"", "__author__ = 'sll@google.com (Sean Lip)'", "import logging", "import os", "import jinja2", "import appengine_config", "from common import jinja_utils", "from common import schema_fields", "from common import tags", "from models import custom_m...
# 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.0452, 0.003, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0512, 0.003, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0572, 0.003, 0, 0.66, ...
[ "\"\"\"Generic object editor view that uses REST services.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import os", "import urllib", "import jinja2", "import webapp2", "import appengine_config", "from common import jinja_utils", "from common import schema_fields", "from common 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.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.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2209, 0.0116, 0, 0.66,...
[ "\"\"\"Course explorer module.\"\"\"", "__author__ = 'Rahul Singal (rahulsingal@google.com)'", "from common import safe_dom", "from controllers import utils", "from models import custom_modules", "from models.config import ConfigProperty", "from models.models import StudentProfileDAO", "from modules.c...
# 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.0508, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0576, 0.0034, 0, 0.66, 0.04, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0644, 0.0034, 0, 0.66, ...
[ "\"\"\"Classes supporting courses viewed by a student.\"\"\"", "__author__ = 'Rahul Singal (rahulsingal@google.com)'", "import mimetypes", "import course_explorer", "import webapp2", "import appengine_config", "from common import jinja_utils", "from controllers import sites", "from controllers.utils...
# 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.3409, 0.0227, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3864, 0.0227, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4318, 0.0227, 0, 0.66,...
[ "\"\"\"Messages used in the admin panel.\"\"\"", "__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 if link:\n node_list.append(sa...
# 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.0185, 0.0012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0209, 0.0012, 0, 0.66, 0.0278, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0234, 0.0012, 0, 0.66,...
[ "\"\"\"Site administration functionality.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import cgi", "import cStringIO", "import datetime", "import os", "import sys", "import time", "import urllib", "import messages", "import appengine_config", "from common import jinja_utils"...
# 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.0363, 0.0024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0412, 0.0024, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.046, 0.0024, 0, 0.66, ...
[ "\"\"\"Classes supporting configuration property editor and REST operations.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import cgi", "import urllib", "from controllers import sites", "from controllers.utils import BaseRESTHandler", "from controllers.utils import XsrfTokenManager", ...
# 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.047, 0.0031, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0564, 0.0094, 0, 0.66, 0.0588, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0658, 0.0031, 0, 0.66, ...
[ "\"\"\"ETL jobs for the i18n dashboard.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import logging", "import os", "import sys", "import zipfile", "from babel import localedata", "from common import utils as common_utils", "from models import courses", "from modules.i18n_das...
# 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.1901, 0.2441, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3239, 0.0141, 0, 0.66, 0.0476, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.338, 0.0047, 0, 0.66, ...
[ "\"\"\"Oauth2 module implementation.\n\nIn order to use this module with your app you must enable it in main.py by\nchanging\n\n modules.oauth2.oauth2.register_module()\n\nto", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import os", "import traceback", "from apiclient import discovery", ...
# 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.1119, 0.0075, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1269, 0.0075, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1343, 0.0075, 0, 0.66, ...
[ "\"\"\"Classes to provide a tag to embed activities into lesson bodies.\"\"\"", "import os", "from xml.etree import cElementTree", "from common import schema_fields", "from common import tags", "from models import courses", "from models import custom_modules", "_RESOURCES_PATH = os.path.join(\n os....
# 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 ...
[ [ 14, 0, 0.1352, 0.0328, 0, 0.66, 0, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1639, 0.0082, 0, 0.66, 0.0769, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1721, 0.0082, 0, 0...
[ "__author__ = [\n 'Neema Kotonya (neemak@google.com)',\n 'Gun Pinyo (gunpinyo@google.com)'\n]", "import os", "from xml.etree import cElementTree", "import appengine_config", "from common import schema_fields", "from common import tags", "from controllers import sites", "from models import custom...
# 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.1339, 0.0089, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1518, 0.0089, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1696, 0.0089, 0, 0.66,...
[ "\"\"\"Classes for displaying peer review analytics.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "from models import analytics", "from models import courses", "from models import data_sources", "from models import jobs", "from models import transforms", "from modules.dashboard import tabs", ...
# 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.1389, 0.0093, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1667, 0.0278, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1944, 0.0093, 0, 0.66, ...
[ "\"\"\"Cron job definitions for the review subsystem.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import logging", "from controllers import sites", "from controllers import utils", "from models import courses", "from modules.review import review", "from google.appengine.api 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.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.07, 0.024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.092, 0.012, 0, 0.66, 0.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.104, 0.004, 0, 0.66, 0....
[ "\"\"\"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.1613, 0.0108, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1828, 0.0108, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2043, 0.0108, 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 models import roles", "from tools 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.1064, 0.0071, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1277, 0.0213, 0, 0.66, 0.0769, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1489, 0.0071, 0, 0.66,...
[ "\"\"\"Stats generation for the notifications module.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import datetime", "from models import analytics", "from models import data_sources", "from models import jobs", "from modules.dashboard import tabs", "from modules.notifications 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.0862, 0.0057, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1034, 0.0172, 0, 0.66, 0.0667, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1207, 0.0057, 0, 0.66,...
[ "\"\"\"Notification subsystem background jobs.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import datetime", "import logging", "from common import utils as common_utils", "from controllers import sites", "from controllers import utils as controllers_utils", "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.2027, 0.0135, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2297, 0.0135, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2568, 0.0135, 0, 0.66,...
[ "\"\"\"Utilities for dashboard module. Separated here to break include loops.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import os", "import appengine_config", "from controllers import sites", "from models import vfs", "RESOURCES_PATH = '/modules/dashboard/resources'", "RESOURCES_DIR...
# 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.0209, 0.0014, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0237, 0.0014, 0, 0.66, 0.0263, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0265, 0.0014, 0, 0.66,...
[ "\"\"\"Classes supporting online file editing.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import base64", "import cgi", "import os", "import urllib", "import messages", "import yaml", "import appengine_config", "from common import schema_fields", "from controllers.utils impor...
# 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.0398, 0.0027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0451, 0.0027, 0, 0.66, 0.0714, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0504, 0.0027, 0, 0.66,...
[ "\"\"\"Classes supporting creation and editing of questions.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import copy", "import messages", "from common import schema_fields", "from models import transforms", "from models.models import QuestionDAO", "from models.models import QuestionDTO", "...
# 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.0607, 0.004, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0749, 0.0162, 0, 0.66, 0.0909, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0891, 0.004, 0, 0.66, ...
[ "\"\"\"Classes supporting editing of DAO/DTO-managed models.\"\"\"", "__author__ = [\n 'John Orr (jorr@google.com)',\n 'Mike Gainer (mgainer@googe.com)'\n]", "import cgi", "import copy", "import urllib", "from common.crypto import XsrfTokenManager", "from controllers import utils", "from models ...
# 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.0459, 0.0031, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.052, 0.0031, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0581, 0.0031, 0, 0.66, ...
[ "\"\"\"Classes for management of individual students' peer review assignments.\"\"\"", "__author__ = 'Sean Lip (sll@google.com)'", "import os", "import urllib", "import messages", "from controllers.lessons import create_readonly_assessment_params", "from controllers.utils import ApplicationHandler", "...
# 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.0355, 0.0024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0402, 0.0024, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0449, 0.0024, 0, 0.66,...
[ "\"\"\"Classes supporting updates to basic course settings.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "import cgi", "import urllib", "from common import schema_fields", "from controllers.utils import ApplicationHandler", "from controllers.utils import BaseRESTHandler", "from c...
# 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.1648, 0.011, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1868, 0.011, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2088, 0.011, 0, 0.66, ...
[ "\"\"\"Classes supporting creation and editing of questions.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import schema_fields", "from models import models", "from models import roles", "from modules.dashboard import dto_editor", "from google.appengine.api import users", "cl...
# 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.0746, 0.005, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0846, 0.005, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0945, 0.005, 0, 0.66, ...
[ "\"\"\"Classes supporting creation and editing of roles.\"\"\"", "__author__ = 'Glenn De Jonghe (gdejonghe@google.com)'", "from common import schema_fields", "from common import utils", "from models.models import RoleDAO", "from models.roles import Roles", "from modules.dashboard import dto_editor", "...
# 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.011, 0.0007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0125, 0.0007, 0, 0.66, 0.0222, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.014, 0.0007, 0, 0.66, ...
[ "\"\"\"Classes supporting unit and lesson editing.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import logging", "import urllib", "from label_editor import LabelGroupsHelper", "import messages", "import yaml", "from common import tags", "from common import utils as common_ut...
# 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.0092, 0.0006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0104, 0.0006, 0, 0.66, 0.0139, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0117, 0.0006, 0, 0.66,...
[ "\"\"\"Classes and methods to create and manage Courses.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import copy", "import datetime", "import HTMLParser", "import os", "import urllib", "from admin_preferences_editor import AdminPreferencesEditor", "from admin_preferences_editor 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.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.0417, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0274, 0.0014, 0, 0.66,...
[ "\"\"\"Analytics for extracting facts based on StudentAnswerEntity entries.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import ast", "import datetime", "from mapreduce import context", "from common import schema_fields", "from common import tags", "from models import courses", "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.0641, 0.0043, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0726, 0.0043, 0, 0.66, 0.0213, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0812, 0.0043, 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 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.0622, 0.0041, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0705, 0.0041, 0, 0.66, 0.0833, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0788, 0.0041, 0, 0.66,...
[ "\"\"\"Classes supporting creation and editing of labels.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import schema_fields", "from common import utils", "from common.schema_fields import FieldArray", "from common.schema_fields import FieldRegistry", "from common.schema_fields...
# 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.3333, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2676, 0.0141, 0, 0.66,...
[ "\"\"\"Registration of sub-tabs for under Dashboard > Analytics.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import re", "class Registry(object):\n\n class _Tab(object):\n\n def __init__(self, group, name, title, contents):\n if not re.match('^[a-z0-9_]+$', name):\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.0857, 0.0057, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0971, 0.0057, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1086, 0.0057, 0, 0.66,...
[ "\"\"\"Classes supporting creation and editing of question_groups.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from common import schema_fields", "from models import transforms", "from models.models import QuestionDAO", "from models.models import QuestionGroupDAO", "from modules.dashboard 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.0782, 0.0578, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1156, 0.0102, 0, 0.66, 0.0435, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1293, 0.0034, 0, 0.66,...
[ "\"\"\"Classes and methods to create and manage Certificates.\n\nCourse creators will need to customize both the appearance of the certificate,\nand also the logic used to determine when it has been earned by a student.\nThe qualification logic can be customized by:\n * using the designated user interface in cours...
# 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.3175, 0.1746, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4286, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4762, 0.0159, 0, 0.66, ...
[ "\"\"\"File specifying custom certificate criteria functions.\n\nCourse authors may specify custom criteria for award of a certificate.\nIn order to be invoked, all of the following must all apply:\n * The function name is specified as a custom_criteria field\n in the certificate_criteria group of course.yaml.\...
# 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.0765, 0.0051, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0867, 0.0051, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0969, 0.0051, 0, 0.66,...
[ "\"\"\"Module to support users unsubscribing from notifications.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import os", "import urllib", "import urlparse", "import appengine_config", "from common import crypto", "from controllers import utils", "from models import custom_modules", "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.0789, 0.0053, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0895, 0.0053, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1, 0.0053, 0, 0.66, ...
[ "\"\"\"Module allowing manual marking of unit/lesson progress.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import utils as common_utils", "from controllers import utils", "from models import custom_modules", "from models import transforms", "custom_module = None", "MODULE_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.0777, 0.0052, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0933, 0.0155, 0, 0.66, 0.0526, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1088, 0.0052, 0, 0.66,...
[ "\"\"\"Student HTML file submission upload module.\"\"\"", "__author__ = [\n 'johncox@google.com (John Cox)',\n]", "import logging", "import os", "import jinja2", "from common import jinja_utils", "from common import schema_fields", "from common import tags", "from controllers import utils", "f...
# 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.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.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2676, 0.0141, 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 controllers import sites", "from models import analytics", "from models import custom_mo...
#!/usr/bin/python # 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...
[ [ 8, 0, 0.0731, 0.039, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0974, 0.0032, 0, 0.66, 0.0323, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1039, 0.0032, 0, 0.66, ...
[ "\"\"\"Manage fetching and installation of extension modules to CourseBuilder.\n\nTo run, use the wrapper script in this directory since it configures paths for\nyou:\n\n sh scripts/modules.sh [args]\n\nFor example, to bring in the LTI module you can run", "__author__ = 'Mike Gainer (mgainer@google.com)'", "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.2727, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3091, 0.0182, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3455, 0.0182, 0, 0.66, ...
[ "\"\"\"Unit tests for common/locale.py.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import unittest", "from common import locales", "class ParseAcceptLanguageTests(unittest.TestCase):\n \"\"\"Unit tests for parsing of Accept-Language HTTP header.\"\"\"\n\n def test_parses_well_formatted_stri...
# -*- 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 requi...
[ [ 8, 0, 0.0586, 0.0034, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0655, 0.0034, 0, 0.66, 0.0333, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0724, 0.0034, 0, 0.66,...
[ "\"\"\"Unit tests for the Search module.\"\"\"", "__author__ = 'Ellis Michael (emichael@google.com)'", "import re", "import robotparser", "import urlparse", "from functional import actions", "from modules.search import resources", "from google.appengine.api import urlfetch", "VALID_PAGE_URL = 'http:...
# 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.0684, 0.0043, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0769, 0.0043, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0855, 0.0043, 0, 0.66, ...
[ "\"\"\"Unit tests for the transforms functions.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import datetime", "import unittest", "from models import transforms", "def wrap_properties(properties):\n return {'properties': properties}", " return {'properties': properties}", "class JsonToD...
# 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.0407, 0.0027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0461, 0.0027, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0515, 0.0027, 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...
# 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.1143, 0.0071, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1286, 0.0071, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1429, 0.0071, 0, 0.66,...
[ "\"\"\"Unit tests for logger.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import datetime", "import unittest", "import appengine_config", "from common import catch_and_log", "class CatchAndLogTests(unittest.TestCase):\n\n def setUp(self):\n appengine_config.PRODUCTION_MODE = Fa...
"""Unit tests for the javascript code.""" __author__ = 'John Orr (jorr@google.com)' import os import subprocess import unittest import appengine_config class AllJavaScriptTests(unittest.TestCase): def karma_test(self, test_folder): karma_conf = os.path.join( appengine_config.BUNDLE_ROOT, ...
[ [ 8, 0, 0.025, 0.025, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.075, 0.025, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.125, 0.025, 0, 0.66, 0...
[ "\"\"\"Unit tests for the javascript code.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import os", "import subprocess", "import unittest", "import appengine_config", "class AllJavaScriptTests(unittest.TestCase):\n\n def karma_test(self, test_folder):\n karma_conf = os.path.join(\n ...
"""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(u...
[ [ 8, 0, 0.0036, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0107, 0.0036, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0179, 0.0036, 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\n def __init__(self, value):\n self._value = value\n\n @property\n def sanitized(self):\n return s...
# 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.0409, 0.0026, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.046, 0.0026, 0, 0.66, 0.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0512, 0.0026, 0, 0.66, ...
[ "\"\"\"Unit tests for the anaytics internals in models/analytics/*.py.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import collections", "import datetime", "import unittest", "import jinja2", "from common import jinja_utils", "from models import analytics", "from models import data_so...
# 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", "import yaml", "from models.courses import LEGACY_HUMAN_GRADER_WORKFLOW", "from models.courses import Workflow", "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.1014, 0.0068, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1149, 0.0068, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1284, 0.0068, 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.1442, 0.0096, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1635, 0.0096, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1827, 0.0096, 0, 0.66,...
[ "\"\"\"Unit tests for mapreduce jobs.\"\"\"", "__author__ = 'juliaoh@google.com (Julia Oh)'", "import unittest", "from models import transforms", "from tools.etl import mapreduce", "class HistogramTests(unittest.TestCase):\n\n def test_get_bin_number(self):\n bucket_size = 30\n histogram ...
# 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.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1027, 0.0054, 0, 0.66,...
[ "\"\"\"Unit tests for common.tags.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import os", "import unittest", "import appengine_config", "from common import utils", "class CommonUnitTests(unittest.TestCase):\n\n # --------------------------- String-to-list.\n def test_list_parsing(...
# 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.1049, 0.007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1189, 0.007, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1469, 0.007, 0, 0.66, ...
[ "\"\"\"Module providing handlers for running jobs added to task queue in tests.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import base64", "import re", "import appengine_config # pylint: disable=unused-import", "from common import utils as common_utils", "from modules.mapreduce import ...
# 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.0148, 0.0025, 0, 0.66, 0.0208, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0173, 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.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...