code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # # test json rpc call from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from django.utils import simplejson class RPCHandler(webapp.Re...
[ [ 1, 0, 0.0745, 0.0106, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.0851, 0.0106, 0, 0.66, 0.1667, 327, 0, 1, 0, 0, 327, 0, 0 ], [ 1, 0, 0.0957, 0.0106, 0, ...
[ "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from django.utils import simplejson", "class RPCHandler(webapp.RequestHandler):\n \"\"\" Allows the functions defined in the RPCMethods class to be RPCed.\"\"\"\n\n def __init__(self):\n webapp.Reques...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # from google.appengine.ext import webapp from google.appengine.ext import db import os class Point(db.Expando): """ save a point with a comment """ lat = db.StringProperty(req...
[ [ 1, 0, 0.2143, 0.0357, 0, 0.66, 0, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.25, 0.0357, 0, 0.66, 0.25, 167, 0, 1, 0, 0, 167, 0, 0 ], [ 1, 0, 0.2857, 0.0357, 0, 0.66...
[ "from google.appengine.ext import webapp", "from google.appengine.ext import db", "import os", "class Point(db.Expando):\n \"\"\" save a point with a comment \"\"\"\n \n lat = db.StringProperty(required=True)\n lng = db.StringProperty(required=True)\n comment = db.StringProperty(required=True)", " ...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # import os import wsgiref.handlers #import cgi import datetime import logging from google.appengine.api import mail from google.appengine.api import memcache from google.appeng...
[ [ 1, 0, 0.0943, 0.0189, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1132, 0.0189, 0, 0.66, 0.0435, 709, 0, 1, 0, 0, 709, 0, 0 ], [ 1, 0, 0.1509, 0.0189, 0, ...
[ "import os", "import wsgiref.handlers", "import datetime", "import logging", "from google.appengine.api import mail", "from google.appengine.api import memcache", "from google.appengine.api import urlfetch", "from google.appengine.api import users", "from google.appengine.api import images", "from...
#!/usr/bin/env python # vim: set filetype=python expandtab tabstop=2 shiftwidth=2 autoindent smartindent: # -*- coding: utf-8 -*- # import cgi import datetime import logging from google.appengine.ext import db from google.appengine.api import users from google.appengine.ext import webapp from google.appengi...
[ [ 1, 0, 0.0704, 0.0141, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.0845, 0.0141, 0, 0.66, 0.0909, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0986, 0.0141, 0, ...
[ "import cgi", "import datetime", "import logging", "from google.appengine.ext import db", "from google.appengine.api import users", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.api import images", "class Greeting(db.Mo...
# Run from the commandline: # # python server.py # POST audio to http://localhost:9000 # GET audio from http://localhost:9000 # # A simple server to collect audio using python. To be more secure, # you might want to check the file names and place size restrictions # on the incoming data. import cgi from BaseHTTPSe...
[ [ 1, 0, 0.2075, 0.0189, 0, 0.66, 0, 934, 0, 1, 0, 0, 934, 0, 0 ], [ 1, 0, 0.2264, 0.0189, 0, 0.66, 0.25, 801, 0, 2, 0, 0, 801, 0, 0 ], [ 3, 0, 0.5189, 0.5283, 0, 0....
[ "import cgi", "from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer", "class WamiHandler(BaseHTTPRequestHandler):\n dirname = \"/tmp/\"\n \n def do_GET(self):\n f = open(self.get_name())\n self.send_response(200)\n self.send_header('content-type','audio/x-wav')\n se...
import struct import os import os.path import sys import string import time import urllib from HTMLParser import HTMLParser import json import shutil import datetime from datetime import timedelta import ConfigParser class WebFetcher: def get_web_data(self, url): html = urllib.urlopen(url) html = html.read() ht...
[ [ 1, 0, 0.0075, 0.0075, 0, 0.66, 0, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.0149, 0.0075, 0, 0.66, 0.0625, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0224, 0.0075, 0, ...
[ "import struct", "import os", "import os.path", "import sys", "import string", "import time", "import urllib", "from HTMLParser import HTMLParser", "import json", "import shutil", "import datetime", "from datetime import timedelta", "import ConfigParser", "class WebFetcher:\n\tdef get_web_...
import urllib import struct import os import os.path import sys import string import time from HTMLParser import HTMLParser import json import shutil import datetime from datetime import timedelta from utils import * import threading import MySQLdb import ConfigParser class AppConfig: def __init__(self): s...
[ [ 1, 0, 0.0049, 0.0049, 0, 0.66, 0, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0097, 0.0049, 0, 0.66, 0.0476, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.0146, 0.0049, 0, ...
[ "import urllib", "import struct", "import os", "import os.path", "import sys", "import string", "import time", "from HTMLParser import HTMLParser", "import json", "import shutil", "import datetime", "from datetime import timedelta", "from utils import *", "import threading", "import MySQ...
#!/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\...
import MySQLdb import sys import time try: conn = MySQLdb.connect(host='localhost',user='root',passwd='gemj820812',db='shumi') except: sys.exit() cursor = conn.cursor() now = time.strftime("%Y-%m-%d") sql = "insert into novel_catch(title, classname, url, author, uptime, state) values ('%s','%s', '%s', '%s', '%s',...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 838, 0, 1, 0, 0, 838, 0, 0 ], [ 1, 0, 0.0714, 0.0357, 0, 0.66, 0.0909, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1071, 0.0357, 0, ...
[ "import MySQLdb", "import sys", "import time", "try:\n\tconn = MySQLdb.connect(host='localhost',user='root',passwd='gemj820812',db='shumi')\nexcept:\n\tsys.exit()", "\tconn = MySQLdb.connect(host='localhost',user='root',passwd='gemj820812',db='shumi')", "\tsys.exit()", "cursor = conn.cursor()", "now =...
#!/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\...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0...
[ "import logging", "import shutil", "import sys", "import urlparse", "import SimpleHTTPServer", "import BaseHTTPServer", "class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
[ [ 1, 0, 0.0201, 0.0067, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0268, 0.0067, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0336, 0.0067, 0, ...
[ "import datetime", "import sys", "import textwrap", "import common", "from xml.dom import pulldom", "PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;", "BOOLEAN_STANZA = \"\"\"\\\n } else i...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
[ [ 8, 0, 0.0631, 0.0991, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1261, 0.009, 0, 0.66, 0.05, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1351, 0.009, 0, 0.66, 0....
[ "\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD", "import httplib", "import os", "import re", "import sys", "import urllib", "import urllib2", "import urlparse", "import user", "from xml....
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66, 0.1429, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1852, 0.037, 0, 0.6...
[ "import os", "import subprocess", "import sys", "BASEDIR = '../main/src/com/joelapenna/foursquare'", "TYPESDIR = '../captures/types/v1'", "captures = sys.argv[1:]", "if not captures:\n captures = os.listdir(TYPESDIR)", " captures = os.listdir(TYPESDIR)", "for f in captures:\n basename = f.split('...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
[ [ 1, 0, 0.0263, 0.0088, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0439, 0.0088, 0, 0.66, 0.0833, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0526, 0.0088, 0, ...
[ "import logging", "from xml.dom import minidom", "from xml.dom import pulldom", "BOOLEAN = \"boolean\"", "STRING = \"String\"", "GROUP = \"Group\"", "DEFAULT_INTERFACES = ['FoursquareType']", "INTERFACES = {\n}", "DEFAULT_CLASS_IMPORTS = [\n]", "CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_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.0718, 0.0048, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0813, 0.0048, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0909, 0.0048, 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.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 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.1899, 0.0127, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2278, 0.038, 0, 0.66, 0.0667, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.2658, 0.0127, 0, 0.66, ...
[ "\"\"\"Banner to obtain consent for usage reporting.\"\"\"", "__author__ = [\n 'John Orr (jorr@google.com)',\n]", "import jinja2", "import os", "import appengine_config", "from controllers import utils", "from models import roles", "from models import transforms", "from modules.admin import admin...
# 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.2338, 0.039, 0, 0.66, 0.0833, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.2727, 0.013, 0, 0.66, ...
[ "\"\"\"Reporting of anonymized CourseBuilder usage statistics: configuration.\"\"\"", "__author__ = [\n 'Michael Gainer (mgainer@google.com)',\n]", "import appengine_config", "from common import schema_fields", "from common import utils as common_utils", "from models import config", "from models impo...
# 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.15, 0.01, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.18, 0.03, 0, 0.66, 0.1, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.21, 0.01, 0, 0.66, 0.2, 7...
[ "\"\"\"Reporting of anonymized CourseBuilder usage statistics: welcome page.\"\"\"", "__author__ = [\n 'Michael Gainer (mgainer@google.com)',\n]", "from common import safe_dom", "from modules.admin import admin", "from modules.usage_reporting import config", "from modules.usage_reporting import messagi...
# 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.1158, 0.0887, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1724, 0.0148, 0, 0.66, 0.0625, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1872, 0.0049, 0, 0.66,...
[ "\"\"\"Reporting of anonymized CourseBuilder usage statistics: enrollment counts.\n\nTo avoid sending a message to the Google Forms instance on every single\nstudent enroll/unenroll event, we internally store enroll/unenroll events in\nthe DB. The weekly reporting cron notification will kick off a map/reduce job\n...
# 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.2885, 0.0192, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3462, 0.0577, 0, 0.66, 0.2, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.4038, 0.0192, 0, 0.66, ...
[ "\"\"\"Reporting of anonymized CourseBuilder usage statistics: count students.\"\"\"", "__author__ = [\n 'Michael Gainer (mgainer@google.com)',\n]", "from models import jobs", "from models import models", "from modules.usage_reporting import messaging", "class StudentCounter(jobs.MapReduceJob):\n \"...
# 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.1807, 0.012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2169, 0.0361, 0, 0.66, 0.0769, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.253, 0.012, 0, 0.66, ...
[ "\"\"\"Enable reporting of anonymized usage statistics to CourseBuilder team.\"\"\"", "__author__ = [\n 'Michael Gainer (mgainer@google.com)',\n]", "from controllers import sites", "from controllers import utils", "from models import custom_modules", "from modules.usage_reporting import config", "fro...
# 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 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 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.1364, 0.0091, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1545, 0.0091, 0, 0.66, 0.0556, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1727, 0.0091, 0, 0.66,...
[ "\"\"\"Support for analytics on course dashboard pages.\"\"\"", "__author__ = ['Michael Gainer (mgainer@google.com)']", "from models import analytics", "from models import custom_modules", "from models import data_sources", "from modules.analytics import answers_aggregator", "from modules.analytics 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.0409, 0.0027, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0463, 0.0027, 0, 0.66, 0.0588, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0518, 0.0027, 0, 0.66,...
[ "\"\"\"Student aggregate collection of page enter/exit events.\"\"\"", "__author__ = ['Michael Gainer (mgainer@google.com)']", "import collections", "import datetime", "import urlparse", "from common import schema_fields", "from models import courses", "from models import transforms", "from modules....
# 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.092, 0.0061, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1043, 0.0061, 0, 0.66, 0.1429, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1166, 0.0061, 0, 0.66, ...
[ "\"\"\"Support for analytics on course dashboard pages.\"\"\"", "__author__ = ['Michael Gainer (mgainer@google.com)']", "import collections", "from common import schema_fields", "from models import transforms", "from modules.analytics import student_aggregate", "class LocationAggregator(student_aggregat...
# 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.1923, 0.0128, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2179, 0.0128, 0, 0.66, 0.1667, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.2436, 0.0128, 0, 0.66,...
[ "\"\"\"Support for analytics on course dashboard pages.\"\"\"", "__author__ = ['Michael Gainer (mgainer@google.com)']", "import collections", "from common import schema_fields", "from models import transforms", "from modules.analytics import student_aggregate", "class UserAgentAggregator(\n student_a...
# 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.0135, 0.0017, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0157, 0.0009, 0, 0.66, 0.0185, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0174, 0.0009, 0, 0.66,...
[ "\"\"\"DB Entity and classes to manage the creation and modification of clusters.\n\"\"\"", "__author__ = 'Milagro Teruel (milit@google.com)'", "import appengine_config", "import collections", "import json", "import math", "import os", "import urllib", "import zlib", "from mapreduce import context...
# 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.1103, 0.0074, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.125, 0.0074, 0, 0.66, 0.125, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1397, 0.0074, 0, 0.66, ...
[ "\"\"\"Student aggregate collection for detailed YouTube interaction logs.\"\"\"", "__author__ = ['Michael Gainer (mgainer@google.com)']", "import datetime", "from common import schema_fields", "from models import transforms", "from modules.analytics import student_aggregate", "UNIX_EPOCH = datetime.dat...
# 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.1111, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0792, 0.0042, 0, 0.66,...
[ "\"\"\"Collect answers to questions from Event and provide to student aggregator.\"\"\"", "__author__ = ['Michael Gainer (mgainer@google.com)']", "import datetime", "import logging", "import sys", "from common import schema_fields", "from models import event_transforms", "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.0482, 0.0032, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0547, 0.0032, 0, 0.66, 0.0357, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0611, 0.0032, 0, 0.66,...
[ "\"\"\"Provide a widget to record user satisfaction with course content.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import os", "import urlparse", "import jinja2", "import appengine_config", "from common import schema_fields", "from common import tags", "from controllers import lessons", ...
# 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 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.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.0667, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1186, 0.0056, 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.1049, 0.007, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1259, 0.021, 0, 0.66, 0.0769, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.1469, 0.007, 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.0904, 0.006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1024, 0.006, 0, 0.66, 0.0345, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1145, 0.006, 0, 0.66, ...
[ "\"\"\"Provide the capability to add extra links or text to the main navbar.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import os", "import appengine_config", "from common import schema_fields", "from controllers import utils", "from models import courses", "from models import custom_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.045, 0.0333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0665, 0.0059, 0, 0.66, 0.0233, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0744, 0.002, 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.0466, 0.0031, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0559, 0.0093, 0, 0.66, 0.0588, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0652, 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 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 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.0706, 0.0521, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1012, 0.0031, 0, 0.66, 0.0455, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1074, 0.0031, 0, 0.66,...
[ "\"\"\"A feature to include questionnaires in lessons.\n\nUsage:\n Include a form in the HTML of a lesson and give the form a unique id.\n E.g.,\n <form id=\"questionnaire-1\">\n <label>Name: <input name=\"name\"></label><br>\n Sex:", "__author__ = 'Neema Kotonya (neemak@google....
# 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.0685, 0.0046, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0776, 0.0046, 0, 0.66, 0.0667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0822, 0.0046, 0, 0...
[ "__author__ = 'Gun Pinyo (gunpinyo@google.com)'", "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_modules", "from modules.oeditor import oeditor", ...
# 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 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.3659, 0.0244, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4146, 0.0244, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4878, 0.0244, 0, 0.66,...
[ "\"\"\"A module that adds the ability to do ajax requests.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "from common import tags", "from models import custom_modules", "MODULE_NAME = 'Ajax Registry Library'", "custom_module = None", "def register_module():\n \"\"\"Registers this...
# 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.0355, 0.0024, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0403, 0.0024, 0, 0.66, 0.0435, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.045, 0.0024, 0, 0.66, ...
[ "\"\"\"Classes supporting configuration property editor and REST operations.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import cgi", "import urllib", "import appengine_config", "from common.utils import Namespace", "from controllers import sites", "from controllers.utils import Bas...
# 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.0146, 0.001, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0165, 0.001, 0, 0.66, 0.0217, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0185, 0.001, 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 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.0186, 0.0012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.021, 0.0012, 0, 0.66, 0.0217, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0235, 0.0012, 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 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.1562, 0.0104, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1771, 0.0104, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1979, 0.0104, 0, 0.66,...
[ "\"\"\"Courses module.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "from common import resource", "from controllers import assessments", "from controllers import lessons", "from controllers import utils", "from models import content", "from models import resources_display", "from m...
# 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.0239, 0.0016, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0271, 0.0016, 0, 0.66, 0.025, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0319, 0.0016, 0, 0.66, ...
[ "\"\"\"Module for implementing GIFT format.\"\"\"", "__author__ = 'borislavr@google.com (Boris Roussev)'", "import logging", "from pyparsing import alphanums", "from pyparsing import Combine", "from pyparsing import LineEnd", "from pyparsing import Literal", "from pyparsing import nums", "from pypar...
# 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.0489, 0.0033, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0554, 0.0033, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0619, 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.038, 0.0025, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.043, 0.0025, 0, 0.66, 0.0333, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0506, 0.0025, 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.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.0498, 0.0033, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0565, 0.0033, 0, 0.66, 0.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0631, 0.0033, 0, 0.66,...
[ "\"\"\"Classes supporting courses viewed by a student.\"\"\"", "__author__ = 'Rahul Singal (rahulsingal@google.com)'", "import mimetypes", "import os", "import course_explorer", "import webapp2", "import appengine_config", "from common import jinja_utils", "from controllers import sites", "from co...
# 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.0518, 0.0423, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0782, 0.0021, 0, 0.66, 0.027, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0825, 0.0021, 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 loggi...
# 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 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.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 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.0544, 0.0672, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0916, 0.0043, 0, 0.66, 0.0227, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0959, 0.0014, 0, 0.66,...
[ "\"\"\"External task balancer.\n\nOverall architecture is:\n\n1. Users interact with clients.\n2. Clients make requests against the frontend's REST API.\n3. The FE makes a REST call against a worker or worker pool identified by\n gcb_external_task_balancer_worker_url. The FE provisions a unique token,", "__auth...
# 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.0261, 0.0017, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0296, 0.0017, 0, 0.66, 0.0556, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.033, 0.0017, 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 entity_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.306, 0.1791, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.4179, 0.0149, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.4478, 0.0149, 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.0294, 0.002, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0333, 0.002, 0, 0.66, 0.0526, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0373, 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 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.0325, 0.0022, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0369, 0.0022, 0, 0.66, 0.05, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0412, 0.0022, 0, 0.66, ...
[ "\"\"\"Classes supporting updates to basic course settings.\"\"\"", "__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'", "import cgi", "import urllib", "from common import crypto", "from common import schema_fields", "from controllers import utils as controllers_utils", "from models import 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.1531, 0.0102, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1735, 0.0102, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1939, 0.0102, 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 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 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.0588, 0.0039, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0725, 0.0157, 0, 0.66, 0.0909, 777, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.0863, 0.0039, 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 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.1172, 0.0078, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1328, 0.0078, 0, 0.66, 0.0435, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1484, 0.0078, 0, 0.66,...
[ "\"\"\"Messages used in the dashboard.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from common import safe_dom", "ABOUT_THE_COURSE_DESCRIPTION = safe_dom.assemble_text_message(\"\"\"\nThis information is configured by an administrator from the Admin pages.\n\"\"\", None)", "ADMIN_PREFERENCES_DESCR...
# 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.018, 0.0012, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0204, 0.0012, 0, 0.66, 0.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0228, 0.0012, 0, 0.66, ...
[ "\"\"\"Classes supporting unit and lesson editing.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import cgi", "import logging", "import urllib", "import messages", "from common import utils as common_utils", "from controllers import sites", "from controllers.utils import ApplicationHandler",...
# 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 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.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.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1348, 0.0071, 0, 0.66, ...
[ "\"\"\"Classes supporting creation and editing of question_groups.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "from models import transforms", "from models import models", "from models import resources_display", "from modules.dashboard import dto_editor", "from modules.dashboard import utils a...
# 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.0389, 0.0026, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.044, 0.0026, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0492, 0.0026, 0, 0.66, ...
[ "\"\"\"Classes supporting creation and editing of questions.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import copy", "from common import schema_fields", "from models import roles", "from models import transforms", "from models import models", "from models import resources_display", "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.0085, 0.0006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0096, 0.0006, 0, 0.66, 0.0132, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0107, 0.0006, 0, 0.66,...
[ "\"\"\"Classes and methods to create and manage Courses.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import collections", "import copy", "import datetime", "import jinja2", "import logging", "import os", "import urllib", "import appengine_config", "from admin_preferences_edito...
# 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 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.119, 0.0079, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1349, 0.0079, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1508, 0.0079, 0, 0.66, ...
[ "\"\"\"Registration of sub-tabs for under Dashboard > Analytics.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import collections", "import re", "class Placement(object):\n # If needed, can add \"FIRST_HALF\" and \"LAST_HALF\" to further subdivide.\n BEGINNING = 'beginning'\n MIDDLE =...
# 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 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.1034, 0.0069, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1172, 0.0069, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.131, 0.0069, 0, 0.66, ...
[ "\"\"\"Classes supporting creation and editing of labels.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "from common import schema_fields", "from models import models", "from modules.dashboard import dto_editor", "from modules.dashboard import utils as dashboard_utils", "class LabelManagerA...
# 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.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.0385, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0239, 0.0013, 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 crypto", "from common import schema_fields", "from common import tags", "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.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.0135, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0117, 0.0006, 0, 0.66,...
[ "\"\"\"Module to provide skill mapping of Course Builder content.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import json", "import jinja2", "import logging", "import os", "import time", "from collections import defaultdict", "import appengine_config", "from common import caching", "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.0794, 0.0053, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0899, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1058, 0.0053, 0, 0.66, ...
[ "\"\"\"Module to calculate metrics for the SkillMap object.\"\"\"", "__author__ = 'Milagro Teruel (milit@google.com)'", "import networkx", "from collections import defaultdict", "CHAINS_MIN_LENGTH = 10 # TODO(milit) Add this as a setting?", "class SkillMapMetrics(object):\n \"\"\"This class works as i...
# 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 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.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.0435, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2568, 0.0135, 0, 0.66,...
[ "\"\"\"Course Builder web application entry point.\"\"\"", "__author__ = 'Pavel Simakov (psimakov@google.com)'", "import os", "import webapp2", "import appengine_config # pylint: disable=unused-import", "from common import resource", "from controllers import sites", "from models import analytics", ...
#!/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.0726, 0.0387, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0968, 0.0032, 0, 0.66, 0.0323, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1032, 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.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 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 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): super(MockNode, self).__init__() self._value = value @property def sanitized(self): r...
[ [ 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.0178, 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 super(MockNode, self).__init__()\n self._value = value\n\n @property\n...
# 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.2083, 0.0139, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2361, 0.0139, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2639, 0.0139, 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...
# 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.1485, 0.0099, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1683, 0.0099, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1881, 0.0099, 0, 0.66, ...
[ "\"\"\"Unit tests for the Dashboard module.\"\"\"", "__author__ = 'Michael Gainer (mgainer@google.com)'", "import unittest", "from modules.dashboard import tabs", "class TabTests(unittest.TestCase):\n\n def tearDown(self):\n tabs.Registry._tabs_by_group.clear()\n super(TabTests, self).tearD...
# 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.0566, 0.0038, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0642, 0.0038, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0717, 0.0038, 0, 0.66,...
[ "\"\"\"Unit tests for common.tags.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import datetime", "import os", "import unittest", "import appengine_config", "from common import utils", "class CommonUnitTests(unittest.TestCase):\n\n # --------------------------- String-to-list.\n d...
# 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...
"""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.0208, 0.0208, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0625, 0.0208, 0, 0.66, 0.1667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1042, 0.0208, 0, 0.66,...
[ "\"\"\"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 ...
# 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.2459, 0.0164, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2787, 0.0164, 0, 0.66, 0.1429, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3115, 0.0164, 0, 0.66,...
[ "\"\"\"Unit tests for common/locale.py.\"\"\"", "__author__ = 'Mike Gainer (mgainer@google.com)'", "import unittest", "from common import resource", "from models import courses", "from models import resources_display", "from tools import verify", "class ResourceKeyTests(unittest.TestCase):\n\n def ...
# 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.0446, 0.0028, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0501, 0.0028, 0, 0.66, 0.0667, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0557, 0.0028, 0, 0.66,...
[ "\"\"\"Runs all unit tests for GIFT.\"\"\"", "__author__ = 'Boris Roussev (borislavr@google.com)'", "import os", "import unittest", "from pyparsing import ParseException", "from modules.assessment_tags import gift", "class SampleQuestionsTest(unittest.TestCase):\n \"\"\"Tests a large bank of GIFT que...
# 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 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.0333, 0.0021, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0374, 0.0021, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0416, 0.0021, 0, 0.66, ...
[ "\"\"\"Unit tests for the transforms functions.\"\"\"", "__author__ = 'John Orr (jorr@google.com)'", "import datetime", "import unittest", "from common import schema_fields", "from models import transforms", "def wrap_properties(properties):\n return {'properties': properties}", " return {'prope...
# 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.098, 0.0065, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1111, 0.0065, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1242, 0.0065, 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 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...
# -*- 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:...