code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
'''
Module for dealing with resource files (but not their contents).
@author: Rodrigo Damazio
'''
import os.path
from glob import glob
import re
MYTRACKS_RES_DIR = 'MyTracks/res'
ANDROID_MASTER_VALUES = 'values'
ANDROID_VALUES_MASK = 'values-*'
def GetMyTracksDir():
'''
Returns the directory in which the MyTrac... | [
[
8,
0,
0.0667,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.125,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1556,
0.0222,
0,
0.66,
... | [
"'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''",
"import os.path",
"from glob import glob",
"import re",
"MYTRACKS_RES_DIR = 'MyTracks/res'",
"ANDROID_MASTER_VALUES = 'values'",
"ANDROID_VALUES_MASK = 'values-*'",
"def GetMyTracksDir():\n '''\n... |
'''
Module which brings history information about files from Mercurial.
@author: Rodrigo Damazio
'''
import re
import subprocess
REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')
def _GetOutputLines(args):
'''
Runs an external process and returns its output as a list of lines.
@param args: the argume... | [
[
8,
0,
0.0319,
0.0532,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0745,
0.0106,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0851,
0.0106,
0,
0.66... | [
"'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''",
"import re",
"import subprocess",
"REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')",
"def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines... |
#!/usr/bin/python
'''
Entry point for My Tracks i18n tool.
@author: Rodrigo Damazio
'''
import mytracks.files
import mytracks.translate
import mytracks.validate
import sys
def Usage():
print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0]
print 'Commands are:'
print ' cleanup'
print ' translate'
p... | [
[
8,
0,
0.0417,
0.0521,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0833,
0.0104,
0,
0.66,
0.125,
640,
0,
1,
0,
0,
640,
0,
0
],
[
1,
0,
0.0938,
0.0104,
0,
0.66,... | [
"'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''",
"import mytracks.files",
"import mytracks.translate",
"import mytracks.validate",
"import sys",
"def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p... |
'''
Module which prompts the user for translations and saves them.
TODO: implement
@author: Rodrigo Damazio
'''
class Translator(object):
'''
classdocs
'''
def __init__(self, language):
'''
Constructor
'''
self._language = language
def Translate(self, string_names):
print string_names | [
[
8,
0,
0.1905,
0.3333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.7143,
0.619,
0,
0.66,
1,
229,
0,
2,
0,
0,
186,
0,
1
],
[
8,
1,
0.5238,
0.1429,
1,
0.92,
... | [
"'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''",
"class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor",
" '''\n classdocs\n '''",
" def __init__(self, language):\n '''... |
'''
Module which compares languague files to the master file and detects
issues.
@author: Rodrigo Damazio
'''
import os
from mytracks.parser import StringsParser
import mytracks.history
class Validator(object):
def __init__(self, languages):
'''
Builds a strings file validator.
Params:
@para... | [
[
8,
0,
0.0304,
0.0522,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0783,
0.0087,
0,
0.66,
... | [
"'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''",
"import os",
"from mytracks.parser import StringsParser",
"import mytracks.history",
"class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida... |
'''
Module for dealing with resource files (but not their contents).
@author: Rodrigo Damazio
'''
import os.path
from glob import glob
import re
MYTRACKS_RES_DIR = 'MyTracks/res'
ANDROID_MASTER_VALUES = 'values'
ANDROID_VALUES_MASK = 'values-*'
def GetMyTracksDir():
'''
Returns the directory in which the MyTrac... | [
[
8,
0,
0.0667,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.125,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1556,
0.0222,
0,
0.66,
... | [
"'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''",
"import os.path",
"from glob import glob",
"import re",
"MYTRACKS_RES_DIR = 'MyTracks/res'",
"ANDROID_MASTER_VALUES = 'values'",
"ANDROID_VALUES_MASK = 'values-*'",
"def GetMyTracksDir():\n '''\n... |
'''
Module which parses a string XML file.
@author: Rodrigo Damazio
'''
from xml.parsers.expat import ParserCreate
import re
#import xml.etree.ElementTree as ET
class StringsParser(object):
'''
Parser for string XML files.
This object is not thread-safe and should be used for parsing a single file at
a time... | [
[
8,
0,
0.0261,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0609,
0.0087,
0,
0.66,
0.3333,
573,
0,
1,
0,
0,
573,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66... | [
"'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''",
"from xml.parsers.expat import ParserCreate",
"import re",
"class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n... |
#!/usr/bin/python
#
# 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 b... | [
[
1,
0,
0.1869,
0.0093,
0,
0.66,
0,
399,
0,
2,
0,
0,
399,
0,
0
],
[
3,
0,
0.6075,
0.7944,
0,
0.66,
1,
6,
0,
11,
0,
0,
0,
0,
37
],
[
14,
1,
0.2336,
0.0093,
1,
0.77,
... | [
"import struct, StringIO",
"class PNG:\n\n\tsignature = bytearray ((137,80,78,71,13,10,26,10))\n\n\tdef __init__ (self, f):\n\n\t\tif isinstance(f, basestring):\n\t\t\tf = open (f, 'rb')",
"\tsignature = bytearray ((137,80,78,71,13,10,26,10))",
"\tdef __init__ (self, f):\n\n\t\tif isinstance(f, basestring):\n... |
#!/usr/bin/python
import glob, sys
from fontTools import ttx
from png import PNG
if len (sys.argv) < 4:
print >>sys.stderr, """
Usage:
add_glyphs.py font.ttx out-font.ttx strike-prefix...
This will search for files that have strike-prefix followed
by a hex number, and end in ".png". For example, if strike-prefix
... | [
[
1,
0,
0.25,
0.25,
0,
0.66,
0,
958,
0,
2,
0,
0,
958,
0,
0
],
[
1,
0,
0.5,
0.25,
0,
0.66,
0.5,
650,
0,
1,
0,
0,
650,
0,
0
],
[
1,
0,
0.75,
0.25,
0,
0.66,
1,
... | [
"import glob, sys",
"from fontTools import ttx",
"from png import PNG"
] |
maxVf = 200
# Generating the header
head = """// Copyright qiuc12@gmail.com
// This file is generated autmatically by python. DONT MODIFY IT!
#pragma once
#include <OleAuto.h>
class FakeDispatcher;
HRESULT DualProcessCommand(int commandId, FakeDispatcher *disp, ...);
extern "C" void DualProcessCommandWrap()... | [
[
14,
0,
0.0172,
0.0172,
0,
0.66,
0,
302,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.1466,
0.1724,
0,
0.66,
0.0476,
217,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.319,
0.1379,
0,
0.... | [
"maxVf = 200",
"head = \"\"\"// Copyright qiuc12@gmail.com\n// This file is generated autmatically by python. DONT MODIFY IT!\n\n#pragma once\n#include <OleAuto.h>\nclass FakeDispatcher;\nHRESULT DualProcessCommand(int commandId, FakeDispatcher *disp, ...);\nextern \"C\" void DualProcessCommandWrap();",
"patter... |
#!/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 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
"""
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 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
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... |
'''
Module which brings history information about files from Mercurial.
@author: Rodrigo Damazio
'''
import re
import subprocess
REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')
def _GetOutputLines(args):
'''
Runs an external process and returns its output as a list of lines.
@param args: the argume... | [
[
8,
0,
0.0319,
0.0532,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0745,
0.0106,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0851,
0.0106,
0,
0.66... | [
"'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''",
"import re",
"import subprocess",
"REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')",
"def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines... |
#!/usr/bin/python
'''
Entry point for My Tracks i18n tool.
@author: Rodrigo Damazio
'''
import mytracks.files
import mytracks.translate
import mytracks.validate
import sys
def Usage():
print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0]
print 'Commands are:'
print ' cleanup'
print ' translate'
p... | [
[
8,
0,
0.0417,
0.0521,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0833,
0.0104,
0,
0.66,
0.125,
640,
0,
1,
0,
0,
640,
0,
0
],
[
1,
0,
0.0938,
0.0104,
0,
0.66,... | [
"'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''",
"import mytracks.files",
"import mytracks.translate",
"import mytracks.validate",
"import sys",
"def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p... |
'''
Module which prompts the user for translations and saves them.
TODO: implement
@author: Rodrigo Damazio
'''
class Translator(object):
'''
classdocs
'''
def __init__(self, language):
'''
Constructor
'''
self._language = language
def Translate(self, string_names):
print string_names | [
[
8,
0,
0.1905,
0.3333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
3,
0,
0.7143,
0.619,
0,
0.66,
1,
229,
0,
2,
0,
0,
186,
0,
1
],
[
8,
1,
0.5238,
0.1429,
1,
0.6,
0... | [
"'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''",
"class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor",
" '''\n classdocs\n '''",
" def __init__(self, language):\n '''... |
'''
Module which compares languague files to the master file and detects
issues.
@author: Rodrigo Damazio
'''
import os
from mytracks.parser import StringsParser
import mytracks.history
class Validator(object):
def __init__(self, languages):
'''
Builds a strings file validator.
Params:
@para... | [
[
8,
0,
0.0304,
0.0522,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66,
0.25,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0783,
0.0087,
0,
0.66,
... | [
"'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''",
"import os",
"from mytracks.parser import StringsParser",
"import mytracks.history",
"class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida... |
'''
Module for dealing with resource files (but not their contents).
@author: Rodrigo Damazio
'''
import os.path
from glob import glob
import re
MYTRACKS_RES_DIR = 'MyTracks/res'
ANDROID_MASTER_VALUES = 'values'
ANDROID_VALUES_MASK = 'values-*'
def GetMyTracksDir():
'''
Returns the directory in which the MyTrac... | [
[
8,
0,
0.0667,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1333,
0.0222,
0,
0.66,
0.125,
79,
0,
1,
0,
0,
79,
0,
0
],
[
1,
0,
0.1556,
0.0222,
0,
0.66,
... | [
"'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''",
"import os.path",
"from glob import glob",
"import re",
"MYTRACKS_RES_DIR = 'MyTracks/res'",
"ANDROID_MASTER_VALUES = 'values'",
"ANDROID_VALUES_MASK = 'values-*'",
"def GetMyTracksDir():\n '''\n... |
'''
Module which parses a string XML file.
@author: Rodrigo Damazio
'''
from xml.parsers.expat import ParserCreate
import re
#import xml.etree.ElementTree as ET
class StringsParser(object):
'''
Parser for string XML files.
This object is not thread-safe and should be used for parsing a single file at
a time... | [
[
8,
0,
0.0261,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0609,
0.0087,
0,
0.66,
0.3333,
573,
0,
1,
0,
0,
573,
0,
0
],
[
1,
0,
0.0696,
0.0087,
0,
0.66... | [
"'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''",
"from xml.parsers.expat import ParserCreate",
"import re",
"class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n... |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | [
[
1,
0,
0.0714,
0.0238,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.1548,
0.0952,
0,
0.66,
0.25,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1429,
0.0238,
1,
0,
... | [
"import sys, hashlib",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + sys.argv[0] + \" infile outfile label\")",
"\tprint (\"Usage: \" + sys.argv[0] + \" infile outfi... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | [
[
1,
0,
0.0577,
0.0192,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
2,
0,
0.125,
0.0769,
0,
0.66,
0.2,
725,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1154,
0.0192,
1,
0.92,... | [
"import sys, re, os",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\tfp.write(buf)",
"\tfp.close()",
"def usage():\n\tprint (\"Usage: \" + os.path.split(__file__)[1] + \" version outfile\")",
"\tprint (\"Usage: \" + os.path.split(__file... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B9"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG_... | [
[
8,
0,
0.0297,
0.0099,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0495,
0.0099,
0,
0.66,
0.0909,
688,
0,
3,
0,
0,
688,
0,
0
],
[
14,
0,
0.0693,
0.0099,
0,
0.6... | [
"\"\"\" PRO build script\"\"\"",
"import os, shutil, sys",
"NIGHTLY=0",
"VERSION=\"B9\"",
"PRO_BUILD = [\n\t\t\t{ \"fn\": \"620PRO-%s.rar\", \"config\": \"CONFIG_620=1\" },\n\t\t\t{ \"fn\": \"635PRO-%s.rar\", \"config\": \"CONFIG_635=1\" },\n\t\t\t{ \"fn\": \"639PRO-%s.rar\", \"config\": \"CONFIG_639=1\" },... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | [
[
1,
0,
0.0909,
0.0303,
0,
0.66,
0,
509,
0,
4,
0,
0,
509,
0,
0
],
[
2,
0,
0.197,
0.1212,
0,
0.66,
0.25,
336,
0,
2,
0,
0,
0,
0,
3
],
[
14,
1,
0.1818,
0.0303,
1,
0.89... | [
"import sys, os, gzip, StringIO",
"def dump_binary(fn, data):\n\tf = open(fn, \"wb\")\n\tf.write(data)\n\tf.close()",
"\tf = open(fn, \"wb\")",
"\tf.write(data)",
"\tf.close()",
"def dec_prx(fn):\n\tf = open(fn, \"rb\")\n\tf.seek(0x150)\n\tdat = f.read()\n\tf.close()\n\n\ttemp=StringIO.StringIO(dat)\n\tf=... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | [
[
3,
0,
0.0488,
0.0366,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.0549,
0.0244,
1,
0.54,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.061,
0.0122,
2,
0.94,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import sys, os, struct, gzip, hashlib, StringIO",
"gzip.time = FakeTime()",
"def binary_replace(data, newdata, offset):\n\treturn data[0:offset] + ... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | [
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.4615,
0.2308,
0,
0.66,
0.5,
259,
0,
1,
1,
0,
0,
0,
4
],
[
14,
1,
0.4615,
0.0769,
1,
0.45... | [
"import sys, hashlib",
"def toNID(name):\n\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()\n\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]",
"\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()",
"\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + ha... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | [
[
1,
0,
0.0652,
0.0217,
0,
0.66,
0,
154,
0,
1,
0,
0,
154,
0,
0
],
[
1,
0,
0.087,
0.0217,
0,
0.66,
0.2,
509,
0,
2,
0,
0,
509,
0,
0
],
[
2,
0,
0.2065,
0.1739,
0,
0.66... | [
"from hashlib import *",
"import sys, struct",
"def sha512(psid):\n\tif len(psid) != 16:\n\t\treturn \"\".encode()\n\n\tfor i in range(512):\n\t\tpsid = sha1(psid).digest()\n\n\treturn psid",
"\tif len(psid) != 16:\n\t\treturn \"\".encode()",
"\t\treturn \"\".encode()",
"\tfor i in range(512):\n\t\tpsid =... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | [
[
8,
0,
0.022,
0.0165,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0385,
0.0055,
0,
0.66,
0.0769,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.044,
0.0055,
0,
0.66,
... | [
"\"\"\"\npspbtcnf_editor: An script that add modules from pspbtcnf\n\"\"\"",
"import sys, os, re",
"from getopt import *",
"from struct import *",
"BTCNF_MAGIC=0x0F803001",
"verbose = False",
"def print_usage():\n\tprint (\"%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]\" ... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | [
[
1,
0,
0.1034,
0.0345,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.5345,
0.7586,
0,
0.66,
0.5,
624,
0,
0,
0,
0,
0,
0,
3
],
[
14,
1,
0.431,
0.4828,
1,
0.92,... | [
"import os",
"def main():\n\tlists = [\n\t\t\t\"ISODrivers/Galaxy/galaxy.prx\",\n\t\t\t\"ISODrivers/March33/march33.prx\",\n\t\t\t\"ISODrivers/March33/march33_620.prx\",\n\t\t\t\"ISODrivers/March33/march33_660.prx\",\n\t\t\t\"ISODrivers/Inferno/inferno.prx\",\n\t\t\t\"Popcorn/popcorn.prx\",",
"\tlists = [\n\t\t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | [
[
3,
0,
0.0909,
0.0682,
0,
0.66,
0,
425,
0,
1,
0,
0,
0,
0,
0
],
[
2,
1,
0.1023,
0.0455,
1,
0.4,
0,
654,
0,
1,
1,
0,
0,
0,
0
],
[
13,
2,
0.1136,
0.0227,
2,
0.55,
... | [
"class FakeTime:\n def time(self):\n return 1225856967.109",
" def time(self):\n return 1225856967.109",
" return 1225856967.109",
"import os, gzip, StringIO",
"gzip.time = FakeTime()",
"def create_gzip(input, output):\n\tf_in=open(input, 'rb')\n\ttemp=StringIO.StringIO()\n\tf=g... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | [
[
1,
0,
0.0536,
0.0179,
0,
0.66,
0,
688,
0,
3,
0,
0,
688,
0,
0
],
[
2,
0,
0.0982,
0.0357,
0,
0.66,
0.25,
129,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
0.1071,
0.0179,
1,
0.72... | [
"import os, sys, getopt",
"def usage():\n\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))",
"def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()",
"\tfp = open(fn, \"wb\")",
"\t... |
# 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.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.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 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 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.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.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.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 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.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.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.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 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.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 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.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 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 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 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 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.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 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 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 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 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 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 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 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.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 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.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.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.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.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 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.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 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.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.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.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 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 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.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 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 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.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.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 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 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.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.