code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
def simple_keyword():
"""Log a message"""
print 'You have used the simplest keyword.'
def greet(name):
"""Logs a friendly greeting to person given as argument"""
print 'Hello %s!' % name
def multiply_by_two(number):
"""Returns the given number multiplied by two
The result is always a floa... | [
[
2,
0,
0.1,
0.15,
0,
0.66,
0,
30,
0,
0,
0,
0,
0,
0,
1
],
[
8,
1,
0.1,
0.05,
1,
0.68,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
8,
1,
0.15,
0.05,
1,
0.68,
1,
535,
... | [
"def simple_keyword():\n \"\"\"Log a message\"\"\"\n print('You have used the simplest keyword.')",
" \"\"\"Log a message\"\"\"",
" print('You have used the simplest keyword.')",
"def greet(name):\n \"\"\"Logs a friendly greeting to person given as argument\"\"\"\n print('Hello %s!' % name)"... |
#!/usr/bin/env python
"""ug2html.py -- Creates HTML version of Robot Framework User Guide
Usage: ug2html.py [ cr(eate) | dist | zip ]
create .. Creates the user guide so that it has relative links to images,
library docs, etc. This version is stored in the version control
and distributed with th... | [
[
8,
0,
0.0455,
0.072,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0871,
0.0038,
0,
0.66,
0.0435,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0909,
0.0038,
0,
0.66,... | [
"\"\"\"ug2html.py -- Creates HTML version of Robot Framework User Guide\n\nUsage: ug2html.py [ cr(eate) | dist | zip ]\n\ncreate .. Creates the user guide so that it has relative links to images,\n library docs, etc. This version is stored in the version control\n and distributed with the source ... |
#!/usr/bin/env python
"""Usage: check_test_times.py inpath [outpath]
Reads result of a test run from Robot output file and checks that no test
took longer than 3 minutest to execute. If outpath is not given, the
result is written over the original file.
"""
import sys
from robot.output import TestSuite
def check_... | [
[
8,
0,
0.1618,
0.1765,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2941,
0.0294,
0,
0.66,
0.2,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3235,
0.0294,
0,
0.66,
... | [
"\"\"\"Usage: check_test_times.py inpath [outpath]\n\nReads result of a test run from Robot output file and checks that no test \ntook longer than 3 minutest to execute. If outpath is not given, the\nresult is written over the original file.\n\"\"\"",
"import sys",
"from robot.output import TestSuite",
"def c... |
"""Robot Framework test library example that calls C code.
This example uses Python's standard `ctypes` module, which requires
that the C code is compiled into a shared library.
It is also possible to execute this file from the command line
to test the C code manually.
"""
from ctypes import CDLL, c_char_p
LIBRARY... | [
[
8,
0,
0.1552,
0.2759,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3448,
0.0345,
0,
0.66,
0.25,
182,
0,
2,
0,
0,
182,
0,
0
],
[
14,
0,
0.4138,
0.0345,
0,
0.66,... | [
"\"\"\"Robot Framework test library example that calls C code.\n\nThis example uses Python's standard `ctypes` module, which requires\nthat the C code is compiled into a shared library.\n\nIt is also possible to execute this file from the command line \nto test the C code manually.\n\"\"\"",
"from ctypes import C... |
class CheckMultipleItemsLibrary:
def items_should_not_contain(self, value, *items):
"""Checks that none of the given 'items' contains the given 'value'."""
items_containing_value = [ item for item in items if value in item ]
if items_containing_value:
message = "Items '%s' cont... | [
[
3,
0,
0.55,
1,
0,
0.66,
0,
960,
0,
1,
0,
0,
0,
0,
2
],
[
2,
1,
0.65,
0.8,
1,
0.16,
0,
121,
0,
3,
0,
0,
0,
0,
2
],
[
8,
2,
0.4,
0.1,
2,
0.91,
0,
0,
1,
... | [
"class CheckMultipleItemsLibrary:\n\n def items_should_not_contain(self, value, *items):\n \"\"\"Checks that none of the given 'items' contains the given 'value'.\"\"\"\n\n items_containing_value = [ item for item in items if value in item ]\n if items_containing_value:\n message ... |
#!/usr/bin/env python
"""qs2html.py -- Creates HTML version of Robot Framework Quick Start Guide
Usage: qs2html.py [ cr(eate) | dist | zip ]
create .. Creates the HTML version of the Quick Start Guide.
dist .... Creates the Quick Start Guide and copies it and all its dependencies
under directory named '... | [
[
8,
0,
0.1076,
0.1519,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2025,
0.0127,
0,
0.66,
0.1,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2152,
0.0127,
0,
0.66,
... | [
"\"\"\"qs2html.py -- Creates HTML version of Robot Framework Quick Start Guide\n\nUsage: qs2html.py [ cr(eate) | dist | zip ]\n\ncreate .. Creates the HTML version of the Quick Start Guide.\n\ndist .... Creates the Quick Start Guide and copies it and all its dependencies \n under directory named 'robotfra... |
import os
import sys
import subprocess
class LoginLibrary:
def __init__(self):
self._sut_path = os.path.join(os.path.dirname(__file__),
'..', 'sut', 'login.py')
self._status = ''
def create_user(self, username, password):
self._run_command('creat... | [
[
1,
0,
0.0303,
0.0303,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0606,
0.0303,
0,
0.66,
0.3333,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0909,
0.0303,
0,
... | [
"import os",
"import sys",
"import subprocess",
"class LoginLibrary:\n\n def __init__(self):\n self._sut_path = os.path.join(os.path.dirname(__file__),\n '..', 'sut', 'login.py')\n self._status = ''\n\n def create_user(self, username, password):",
" ... |
#!/usr/bin/env python
"""Usage: lib2html.py [ library | all ]
Libraries:
BuiltIn (bu)
Collections (co)
Dialogs (di)
OperatingSystem (op)
Screenshot (sc)
String (st)
Telnet (te)
"""
import sys
import tempfile
import os
import re
ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..',... | [
[
8,
0,
0.16,
0.22,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3,
0.02,
0,
0.66,
0.0833,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.32,
0.02,
0,
0.66,
0.1667,... | [
"\"\"\"Usage: lib2html.py [ library | all ]\n\nLibraries:\n BuiltIn (bu)\n Collections (co)\n Dialogs (di)\n OperatingSystem (op)\n Screenshot (sc)",
"import sys",
"import tempfile",
"import os",
"import re",
"ROOT = os.path.normpath(os.path.join(os.path.abspath(__file__),'..','..','..'))",
"LIBRA... |
## {{{ http://code.activestate.com/recipes/577676/ (r9)
from collections import namedtuple
from math import fsum
def map_reduce(data, mapper, reducer=None):
'''Simple map/reduce for data analysis.
Each data element is passed to a *mapper* function.
The mapper returns key/value pairs
or None for data e... | [
[
1,
0,
0.0235,
0.0118,
0,
0.66,
0,
193,
0,
1,
0,
0,
193,
0,
0
],
[
1,
0,
0.0353,
0.0118,
0,
0.66,
0.2,
526,
0,
1,
0,
0,
526,
0,
0
],
[
2,
0,
0.2588,
0.4118,
0,
0.6... | [
"from collections import namedtuple",
"from math import fsum",
"def map_reduce(data, mapper, reducer=None):\n '''Simple map/reduce for data analysis.\n\n Each data element is passed to a *mapper* function.\n The mapper returns key/value pairs\n or None for data elements to be skipped.\n\n Returns... |
#
# Example of an execution of this program:
#
# svn info -R | python svnstats.py > stats_by_user
#
import sys
import csv
import pprint
from mapreduce import map_reduce
def main():
fields = ["Path", "Name", "URL", "Revision", "Last Changed Author",
"Last Changed Rev", "Last Changed Date", "Text Last... | [
[
1,
0,
0.1346,
0.0192,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1538,
0.0192,
0,
0.66,
0.2,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.1731,
0.0192,
0,
0.6... | [
"import sys",
"import csv",
"import pprint",
"from mapreduce import map_reduce",
"def main():\n fields = [\"Path\", \"Name\", \"URL\", \"Revision\", \"Last Changed Author\",\n \"Last Changed Rev\", \"Last Changed Date\", \"Text Last Updated\"]\n\n data = []\n\n tmpval = {}\n isdir = False",
... |
#====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you ... | [
[
1,
0,
0.3514,
0.0135,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3649,
0.0135,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3784,
0.0135,
0,
... | [
"import os",
"import re",
"import tempfile",
"import shutil",
"ignore_pattern = re.compile('^(.svn|target|bin|classes)')",
"java_pattern = re.compile('^.*\\.java')",
"annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')",
"def process_dir(dir):\n files = os.listdir(dir)\n for... |
#! /usr/bin/env python
# GLib Testing Framework Utility -*- Mode: python; -*-
# Copyright (C) 2007 Imendio AB
# Authors: Tim Janik
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; eith... | [
[
1,
0,
0.0559,
0.0028,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
14,
0,
0.0615,
0.0084,
0,
0.66,
0.0667,
55,
0,
0,
0,
0,
0,
6,
0
],
[
2,
0,
0.0782,
0.014,
0,
0.6... | [
"import sys, re, xml.dom.minidom",
"pkginstall_configvars = {\n #@PKGINSTALL_CONFIGVARS_IN24LINES@ # configvars are substituted upon script installation\n}",
"def find_child (node, child_name):\n for child in node.childNodes:\n if child.nodeName == child_name:\n return child\n return None",
" for ... |
#!/usr/bin/env python
# Fill in checksum/size of an option rom, and pad it to proper length.
#
# Copyright (C) 2009 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import sys
def alignpos(pos, alignbytes):
mask = alignbytes - 1
return (pos + mask... | [
[
1,
0,
0.1667,
0.0208,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
2,
0,
0.2292,
0.0625,
0,
0.66,
0.25,
678,
0,
2,
1,
0,
0,
0,
0
],
[
14,
1,
0.2292,
0.0208,
1,
0.9... | [
"import sys",
"def alignpos(pos, alignbytes):\n mask = alignbytes - 1\n return (pos + mask) & ~mask",
" mask = alignbytes - 1",
" return (pos + mask) & ~mask",
"def checksum(data):\n ords = map(ord, data)\n return sum(ords)",
" ords = map(ord, data)",
" return sum(ords)",
"def ... |
#!/usr/bin/env python
# This script is useful for taking the output of memdump() and
# converting it back into binary output. This can be useful, for
# example, when one wants to push that data into other tools like
# objdump or hexdump.
#
# (C) Copyright 2010 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be ... | [
[
1,
0,
0.24,
0.02,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.26,
0.02,
0,
0.66,
0.1667,
399,
0,
1,
0,
0,
399,
0,
0
],
[
2,
0,
0.31,
0.04,
0,
0.66,
0.... | [
"import sys",
"import struct",
"def unhex(str):\n return int(str, 16)",
" return int(str, 16)",
"def parseMem(filehdl):\n mem = []\n for line in filehdl:\n parts = line.split(':')\n if len(parts) < 2:\n continue\n try:\n vaddr = unhex(parts[0])",
" ... |
#!/usr/bin/env python
# Script to report the checksum of a file.
#
# Copyright (C) 2009 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import sys
def main():
data = sys.stdin.read()
ords = map(ord, data)
print "sum=%x\n" % sum(ords)
if __na... | [
[
1,
0,
0.5,
0.0625,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
2,
0,
0.7188,
0.25,
0,
0.66,
0.5,
624,
0,
0,
0,
0,
0,
0,
4
],
[
14,
1,
0.6875,
0.0625,
1,
0.78,
... | [
"import sys",
"def main():\n data = sys.stdin.read()\n ords = map(ord, data)\n print(\"sum=%x\\n\" % sum(ords))",
" data = sys.stdin.read()",
" ords = map(ord, data)",
" print(\"sum=%x\\n\" % sum(ords))",
"if __name__ == '__main__':\n main()",
" main()"
] |
#!/usr/bin/env python
# Encode an integer in little endian format in a file.
#
# Copyright (C) 2011 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import sys
import struct
def main():
filename = sys.argv[1]
value = int(sys.argv[2])
outval =... | [
[
1,
0,
0.381,
0.0476,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.4286,
0.0476,
0,
0.66,
0.3333,
399,
0,
1,
0,
0,
399,
0,
0
],
[
2,
0,
0.6905,
0.381,
0,
0.... | [
"import sys",
"import struct",
"def main():\n filename = sys.argv[1]\n value = int(sys.argv[2])\n\n outval = struct.pack('<Q', value)\n f = open(filename, 'wb')\n f.write(outval)\n f.close()",
" filename = sys.argv[1]",
" value = int(sys.argv[2])",
" outval = struct.pack('<Q', v... |
#!/usr/bin/python
# Copyright (C) 2011 Red Hat, Inc., Michael S. Tsirkin <mst@redhat.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
# Process mixed ASL/AML listing (.lst file) produced by iasl -l
# Locate and execute ACPI_EXTRACT directives, output offset info
#
# Documentation of ACP... | [
[
1,
0,
0.1267,
0.0034,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1301,
0.0034,
0,
0.66,
0.0333,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.1336,
0.0034,
0,
... | [
"import re;",
"import sys;",
"import fileinput;",
"aml = []",
"asl = []",
"output = {}",
"debug = \"\"",
"class asl_line:\n line = None\n lineno = None\n aml_offset = None",
" line = None",
" lineno = None",
" aml_offset = None",
"def die(diag):\n sys.stderr.write(\"Error:... |
#!/usr/bin/python
# Copyright (C) 2011 Red Hat, Inc., Michael S. Tsirkin <mst@redhat.com>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
# Read a preprocessed ASL listing and put each ACPI_EXTRACT
# directive in a comment, to make iasl skip it.
# We also put each directive on a new line, th... | [
[
1,
0,
0.2683,
0.0244,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.2927,
0.0244,
0,
0.66,
0.1667,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.3171,
0.0244,
0,
... | [
"import re;",
"import sys;",
"import fileinput;",
"def die(diag):\n sys.stderr.write(\"Error: %s\\n\" % (diag))\n sys.exit(1)",
" sys.stderr.write(\"Error: %s\\n\" % (diag))",
" sys.exit(1)",
"psplit = re.compile(r''' (\n \\b # At word boundary\n ... |
#!/usr/bin/python
# GDB debugging support
#
# Copyright 2012 Red Hat, Inc. and/or its affiliates
#
# Authors:
# Avi Kivity <avi@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
# Contributions after 2012-01-13 are licensed under the... | [
[
1,
0,
0.191,
0.0112,
0,
0.66,
0,
430,
0,
1,
0,
0,
430,
0,
0
],
[
2,
0,
0.2191,
0.0225,
0,
0.66,
0.1667,
426,
0,
1,
1,
0,
0,
0,
2
],
[
13,
1,
0.2247,
0.0112,
1,
0.... | [
"import gdb",
"def isnull(ptr):\n return ptr == gdb.Value(0).cast(ptr.type)",
" return ptr == gdb.Value(0).cast(ptr.type)",
"def int128(p):\n return long(p['lo']) + (long(p['hi']) << 64)",
" return long(p['lo']) + (long(p['hi']) << 64)",
"class QemuCommand(gdb.Command):\n '''Prefix for QEMU... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Simple built-in backend.
"""
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
__copyright__ = "Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintainer__ = "Stefan Hajnoczi"
__em... | [
[
8,
0,
0.0909,
0.0545,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1455,
0.0182,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1636,
0.0182,
0,
0.66,... | [
"\"\"\"\nSimple built-in backend.\n\"\"\"",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL version 2 or (at your option) any later version\"",
"__maintainer__ = \"Stefan Hajnoczi\"",
"__email... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
LTTng User Space Tracing backend.
"""
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
__copyright__ = "Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintainer__ = "Stefan Hajno... | [
[
8,
0,
0.0556,
0.0333,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0889,
0.0111,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1,
0.0111,
0,
0.66,
... | [
"\"\"\"\nLTTng User Space Tracing backend.\n\"\"\"",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL version 2 or (at your option) any later version\"",
"__maintainer__ = \"Stefan Hajnoczi\"",
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Stderr built-in backend.
"""
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
__copyright__ = "Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintainer__ = "Stefan Hajnoczi"
__em... | [
[
8,
0,
0.0893,
0.0536,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1429,
0.0179,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1607,
0.0179,
0,
0.66,... | [
"\"\"\"\nStderr built-in backend.\n\"\"\"",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL version 2 or (at your option) any later version\"",
"__maintainer__ = \"Stefan Hajnoczi\"",
"__email... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
DTrace/SystemTAP backend.
"""
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
__copyright__ = "Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>"
__license__ = "GPL version 2 or (at your option) any later version"
__maintainer__ = "Stefan Hajnoczi"
__e... | [
[
8,
0,
0.0515,
0.0309,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0825,
0.0103,
0,
0.66,
0.0714,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0928,
0.0103,
0,
0.66... | [
"\"\"\"\nDTrace/SystemTAP backend.\n\"\"\"",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL version 2 or (at your option) any later version\"",
"__maintainer__ = \"Stefan Hajnoczi\"",
"__emai... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Backend management.
Creating new backends
---------------------
A new backend named 'foo-bar' corresponds to Python module
'tracetool/backend/foo_bar.py'.
A backend module should provide a docstring, whose first non-empty line will be
considered its short descripti... | [
[
8,
0,
0.1478,
0.2348,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2783,
0.0087,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.287,
0.0087,
0,
0.66,... | [
"\"\"\"\nBackend management.\n\n\nCreating new backends\n---------------------\n\nA new backend named 'foo-bar' corresponds to Python module",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL versi... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Machinery for generating tracing-related intermediate files.
"""
__author__ = "Lluís Vilanova <vilanova@ac.upc.edu>"
__copyright__ = "Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>"
__license__ = "GPL version 2 or (at your option) any later version"
__m... | [
[
8,
0,
0.0182,
0.0109,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0292,
0.0036,
0,
0.66,
0.0556,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0328,
0.0036,
0,
0.66... | [
"\"\"\"\nMachinery for generating tracing-related intermediate files.\n\"\"\"",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL version 2 or (at your option) any later version\"",
"__maintainer_... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Format management.
Creating new formats
--------------------
A new format named 'foo-bar' corresponds to Python module
'tracetool/format/foo_bar.py'.
A format module should provide a docstring, whose first non-empty line will be
considered its short description.
A... | [
[
8,
0,
0.1845,
0.301,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3495,
0.0097,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3592,
0.0097,
0,
0.66,... | [
"\"\"\"\nFormat management.\n\n\nCreating new formats\n--------------------\n\nA new format named 'foo-bar' corresponds to Python module",
"__author__ = \"Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__copyright__ = \"Copyright 2012, Lluís Vilanova <vilanova@ac.upc.edu>\"",
"__license__ = \"GPL version 2... |
#!/usr/bin/env python
#
# Pretty-printer for simple trace backend binary trace files
#
# Copyright IBM, Corp. 2010
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
# For help see docs/tracing.txt
import struct
import re
import inspect
header_ev... | [
[
1,
0,
0.0795,
0.0066,
0,
0.66,
0,
399,
0,
1,
0,
0,
399,
0,
0
],
[
1,
0,
0.0861,
0.0066,
0,
0.66,
0.0625,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0927,
0.0066,
0,
... | [
"import struct",
"import re",
"import inspect",
"header_event_id = 0xffffffffffffffff",
"header_magic = 0xf2b177cb0aa429b4",
"header_version = 0",
"dropped_event_id = 0xfffffffffffffffe",
"trace_fmt = '=QQQQQQQQ'",
"trace_len = struct.calcsize(trace_fmt)",
"event_re = re.compile(r'(disable\\s... |
# Copyright (c) 2009 Raymond Hettinger
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish,... | [
[
1,
0,
0.1811,
0.0079,
0,
0.66,
0,
351,
0,
1,
0,
0,
351,
0,
0
],
[
3,
0,
0.5984,
0.811,
0,
0.66,
1,
92,
0,
14,
0,
0,
827,
0,
28
],
[
2,
1,
0.2402,
0.063,
1,
0.99,
... | [
"from UserDict import DictMixin",
"class OrderedDict(dict, DictMixin):\n\n def __init__(self, *args, **kwds):\n if len(args) > 1:\n raise TypeError('expected at most 1 arguments, got %d' % len(args))\n try:\n self.__end\n except AttributeError:",
" def __init__(s... |
#
# Option ROM signing utility
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later.
# See the COPYING file in the top-level directory.
import sys
import struct
if len(sys.argv) < 3:
print('usage: signrom.py input output')
sys.exit(1)... | [
[
1,
0,
0.25,
0.025,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.275,
0.025,
0,
0.66,
0.0667,
399,
0,
1,
0,
0,
399,
0,
0
],
[
4,
0,
0.35,
0.075,
0,
0.66,
... | [
"import sys",
"import struct",
"if len(sys.argv) < 3:\n print('usage: signrom.py input output')\n sys.exit(1)",
" print('usage: signrom.py input output')",
" sys.exit(1)",
"fin = open(sys.argv[1], 'rb')",
"fout = open(sys.argv[2], 'wb')",
"fin.seek(2)",
"size = ord(fin.read(1)) * 512 - 1... |
#
# QAPI helper library
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
#
# This work is licensed under the terms of the GNU GPLv2.
# See the COPYING.LIB file in the top-level directory.
from ordereddict import OrderedDict
def tokenize(data):
while len(data):
if data[0]... | [
[
1,
0,
0.0574,
0.0048,
0,
0.66,
0,
704,
0,
1,
0,
0,
704,
0,
0
],
[
2,
0,
0.1005,
0.0718,
0,
0.66,
0.0435,
841,
0,
1,
0,
0,
0,
0,
1
],
[
5,
1,
0.1029,
0.067,
1,
0.1... | [
"from ordereddict import OrderedDict",
"def tokenize(data):\n while len(data):\n if data[0] in ['{', '}', ':', ',', '[', ']']:\n yield data[0]\n data = data[1:]\n elif data[0] in ' \\n':\n data = data[1:]\n elif data[0] == \"'\":",
" while len(data):\n... |
#!/usr/bin/env python
# Pretty print 9p simpletrace log
# Usage: ./analyse-9p-simpletrace <trace-events> <trace-pid>
#
# Author: Harsh Prateek Bora
import os
import simpletrace
symbol_9p = {
6 : 'TLERROR',
7 : 'RLERROR',
8 : 'TSTATFS',
9 : 'RSTATFS',
12 : 'TLOPEN',
13 : 'RLOPEN',
... | [
[
1,
0,
0.0282,
0.0047,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0329,
0.0047,
0,
0.66,
0.25,
772,
0,
1,
0,
0,
772,
0,
0
],
[
14,
0,
0.2042,
0.3286,
0,
0... | [
"import os",
"import simpletrace",
"symbol_9p = {\n 6 : 'TLERROR',\n 7 : 'RLERROR',\n 8 : 'TSTATFS',\n 9 : 'RSTATFS',\n 12 : 'TLOPEN',\n 13 : 'RLOPEN',\n 14 : 'TLCREATE',",
"class VirtFSRequestTracker(simpletrace.Analyzer):\n def begin(self):\n print(\"Pre... |
#!/usr/bin/env python
#
# KVM Flight Recorder - ring buffer tracing script
#
# Copyright (C) 2012 IBM Corp
#
# Author: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
#
# This script provides a command-line interface to kvm ftrace and is designed
# to be used as a flight recorder that is always running. To start in-memo... | [
[
1,
0,
0.2778,
0.0079,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2857,
0.0079,
0,
0.66,
0.0769,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.3016,
0.0079,
0,
... | [
"import sys",
"import os",
"tracing_dir = '/sys/kernel/debug/tracing'",
"def trace_path(*args):\n return os.path.join(tracing_dir, *args)",
" return os.path.join(tracing_dir, *args)",
"def write_file(path, data):\n open(path, 'wb').write(data)",
" open(path, 'wb').write(data)",
"def enable... |
#!/usr/bin/python
#
# top-like utility for displaying kvm statistics
#
# Copyright 2006-2008 Qumranet Technologies
# Copyright 2008-2011 Red Hat, Inc.
#
# Authors:
# Avi Kivity <avi@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
imp... | [
[
1,
0,
0.0294,
0.0021,
0,
0.66,
0,
480,
0,
1,
0,
0,
480,
0,
0
],
[
1,
0,
0.0314,
0.0021,
0,
0.66,
0.0175,
509,
0,
4,
0,
0,
509,
0,
0
],
[
3,
0,
0.0472,
0.0252,
0,
... | [
"import curses",
"import sys, os, time, optparse",
"class DebugfsProvider(object):\n def __init__(self):\n self.base = '/sys/kernel/debug/kvm'\n self._fields = os.listdir(self.base)\n def fields(self):\n return self._fields\n def select(self, fields):\n self._fields = fields... |
#!/usr/bin/python
#
# tool for querying VMX capabilities
#
# Copyright 2009-2010 Red Hat, Inc.
#
# Authors:
# Avi Kivity <avi@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
MSR_IA32_VMX_BASIC = 0x480
MSR_IA32_VMX_PINBASED_CTLS = 0x4... | [
[
14,
0,
0.058,
0.0045,
0,
0.66,
0,
772,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.0625,
0.0045,
0,
0.66,
0.0625,
415,
1,
0,
0,
0,
0,
1,
0
],
[
14,
0,
0.067,
0.0045,
0,
0.6... | [
"MSR_IA32_VMX_BASIC = 0x480",
"MSR_IA32_VMX_PINBASED_CTLS = 0x481",
"MSR_IA32_VMX_PROCBASED_CTLS = 0x482",
"MSR_IA32_VMX_EXIT_CTLS = 0x483",
"MSR_IA32_VMX_ENTRY_CTLS = 0x484",
"MSR_IA32_VMX_MISC_CTLS = 0x485",
"MSR_IA32_VMX_PROCBASED_CTLS2 = 0x48B",
"MSR_IA32_VMX_EPT_VPID_CAP = 0x48C",
"MSR_IA32_VMX... |
# Common utilities and Python wrappers for qemu-iotests
#
# Copyright (C) 2012 IBM Corp.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) ... | [
[
1,
0,
0.1145,
0.006,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1205,
0.006,
0,
0.66,
0.05,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1265,
0.006,
0,
0.66,... | [
"import os",
"import re",
"import subprocess",
"import unittest",
"import sys; sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'QMP'))",
"import sys; sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'QMP'))",
"import qmp",
"__all__ = ['imgfmt', 'imgproto', 'test_... |
#!/usr/bin/env python
#
# Tests for image streaming.
#
# Copyright (C) 2012 IBM Corp.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any... | [
[
1,
0,
0.0905,
0.0043,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0948,
0.0043,
0,
0.66,
0.1,
258,
0,
1,
0,
0,
258,
0,
0
],
[
1,
0,
0.0991,
0.0043,
0,
0.6... | [
"import os",
"import iotests",
"from iotests import qemu_img, qemu_io",
"backing_img = os.path.join(iotests.test_dir, 'backing.img')",
"mid_img = os.path.join(iotests.test_dir, 'mid.img')",
"test_img = os.path.join(iotests.test_dir, 'test.img')",
"class ImageStreamingTestCase(iotests.QMPTestCase):\n ... |
#!/usr/bin/env python
import sys
import struct
import string
class QcowHeaderExtension:
def __init__(self, magic, length, data):
self.magic = magic
self.length = length
self.data = data
@classmethod
def create(cls, magic, data):
return QcowHeaderExtension(magic, len(da... | [
[
1,
0,
0.0138,
0.0046,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0184,
0.0046,
0,
0.66,
0.0833,
399,
0,
1,
0,
0,
399,
0,
0
],
[
1,
0,
0.023,
0.0046,
0,
0... | [
"import sys",
"import struct",
"import string",
"class QcowHeaderExtension:\n\n def __init__(self, magic, length, data):\n self.magic = magic\n self.length = length\n self.data = data\n\n @classmethod",
" def __init__(self, magic, length, data):\n self.magic = magic\... |
#!/usr/bin/python
##
# QEMU Object Model test tools
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later. See
# the COPYING file in the top-level directory.
##
import sys
import os
from qmp import QEMUMonitor... | [
[
1,
0,
0.2188,
0.0156,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2344,
0.0156,
0,
0.66,
0.0714,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.25,
0.0156,
0,
0.... | [
"import sys",
"import os",
"from qmp import QEMUMonitorProtocol",
"cmd, args = sys.argv[0], sys.argv[1:]",
"socket_path = None",
"path = None",
"prop = None",
"def usage():\n return '''environment variables:\n QMP_SOCKET=<path | addr:port>\nusage:\n %s [-h] [-s <QMP socket path | addr:port>] ... |
#!/usr/bin/python
##
# QEMU Object Model test tools
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later. See
# the COPYING file in the top-level directory.
##
import sys
import os
from qmp import QEMUMonitor... | [
[
1,
0,
0.2188,
0.0156,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2344,
0.0156,
0,
0.66,
0.0667,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.25,
0.0156,
0,
0.... | [
"import sys",
"import os",
"from qmp import QEMUMonitorProtocol",
"cmd, args = sys.argv[0], sys.argv[1:]",
"socket_path = None",
"path = None",
"prop = None",
"value = None",
"def usage():\n return '''environment variables:\n QMP_SOCKET=<path | addr:port>\nusage:\n %s [-h] [-s <QMP socket p... |
#!/usr/bin/python
#
# Low-level QEMU shell on top of QMP.
#
# Copyright (C) 2009, 2010 Red Hat Inc.
#
# Authors:
# Luiz Capitulino <lcapitulino@redhat.com>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
# Usage:
#
# Start QEMU with:
#
# # qemu... | [
[
1,
0,
0.1289,
0.0039,
0,
0.66,
0,
686,
0,
1,
0,
0,
686,
0,
0
],
[
1,
0,
0.1328,
0.0039,
0,
0.66,
0.0909,
303,
0,
1,
0,
0,
303,
0,
0
],
[
1,
0,
0.1367,
0.0039,
0,
... | [
"import qmp",
"import readline",
"import sys",
"class QMPCompleter(list):\n def complete(self, text, state):\n for cmd in self:\n if cmd.startswith(text):\n if not state:\n return cmd\n else:\n state -= 1",
" def com... |
#!/usr/bin/python
##
# QEMU Object Model test tools
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
#
# This work is licensed under the terms of the GNU GPL, version 2 or later. See
# the COPYING file in the top-level directory.
##
import sys
import os
from qmp import QEMUMonitor... | [
[
1,
0,
0.209,
0.0149,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.2239,
0.0149,
0,
0.66,
0.0667,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2388,
0.0149,
0,
0... | [
"import sys",
"import os",
"from qmp import QEMUMonitorProtocol",
"cmd, args = sys.argv[0], sys.argv[1:]",
"socket_path = None",
"path = None",
"prop = None",
"def usage():\n return '''environment variables:\n QMP_SOCKET=<path | addr:port>\nusage:\n %s [-h] [-s <QMP socket path | addr:port>] ... |
# *-*- Mode: Python -*-*
# for testing enums
{ 'enum': 'EnumOne',
'data': [ 'value1', 'value2', 'value3' ] }
{ 'type': 'NestedEnumsOne',
'data': { 'enum1': 'EnumOne', '*enum2': 'EnumOne', 'enum3': 'EnumOne', '*enum4': 'EnumOne' } }
# for testing nested structs
{ 'type': 'UserDefOne',
'data': { 'integer': 'int',... | [
[
8,
0,
0.1184,
0.0526,
0,
0.66,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
[
8,
0,
0.1711,
0.0526,
0,
0.66,
0.1,
0,
0,
0,
0,
0,
0,
0,
0
],
[
8,
0,
0.2763,
0.0526,
0,
0.66,
0... | [
"{ 'enum': 'EnumOne',\n 'data': [ 'value1', 'value2', 'value3' ] }",
"{ 'type': 'NestedEnumsOne',\n 'data': { 'enum1': 'EnumOne', '*enum2': 'EnumOne', 'enum3': 'EnumOne', '*enum4': 'EnumOne' } }",
"{ 'type': 'UserDefOne',\n 'data': { 'integer': 'int', 'string': 'str', '*enum1': 'EnumOne' } }",
"{ 'type': '... |
#!/usr/bin/python
# Copyright 2011 Google, Inc. All Rights Reserved.
# simple script to walk source tree looking for third-party licenses
# dumps resulting html page to stdout
import os, re, mimetypes, sys
# read source directories to scan from command line
SOURCE = sys.argv[1:]
# regex to find /* */ style commen... | [
[
1,
0,
0.0816,
0.0102,
0,
0.66,
0,
688,
0,
4,
0,
0,
688,
0,
0
],
[
14,
0,
0.1224,
0.0102,
0,
0.66,
0.0714,
792,
6,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1531,
0.0102,
0,
... | [
"import os, re, mimetypes, sys",
"SOURCE = sys.argv[1:]",
"COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)",
"COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)",
"COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)",
"EXCLUDE_TYPES = [\n \"application/xml\... |
# Copyright 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 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.0691,
0.0046,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0783,
0.0046,
0,
0.66,
0.04,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0876,
0.0046,
0,
0.66,
... | [
"\"\"\"Provide a widget to record user satisfaction with course content.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"import os",
"import jinja2",
"import appengine_config",
"from common import schema_fields",
"from common import tags",
"from controllers import lessons",
"from controllers 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.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.0862,
0.0057,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1034,
0.0172,
0,
0.66,
0.0667,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1207,
0.0057,
0,
0.66,... | [
"\"\"\"Notification subsystem background jobs.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import datetime",
"import logging",
"from common import utils as common_utils",
"from controllers import sites",
"from controllers import utils as controllers_utils",
"from models import ... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1064,
0.0071,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1277,
0.0213,
0,
0.66,
0.0769,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1489,
0.0071,
0,
0.66,... | [
"\"\"\"Stats generation for the notifications module.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import datetime",
"from models import analytics",
"from models import data_sources",
"from models import jobs",
"from modules.dashboard import tabs",
"from modules.notifications im... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.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.0585,
0.0433,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0865,
0.0076,
0,
0.66,
0.0286,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0967,
0.0025,
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.0464,
0.0031,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0557,
0.0093,
0,
0.66,
0.0588,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.065,
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.0931,
0.0688,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1336,
0.004,
0,
0.66,
0.05,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1417,
0.004,
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.0357,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0405,
0.0024,
0,
0.66,
0.0435,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0452,
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.0153,
0.001,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0173,
0.001,
0,
0.66,
0.0222,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0193,
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.1613,
0.0108,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1828,
0.0108,
0,
0.66,
0.0625,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2043,
0.0108,
0,
0.66,... | [
"\"\"\"Courses module.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"from controllers import assessments",
"from controllers import lessons",
"from controllers import utils",
"from models import content",
"from models import custom_modules",
"from models import roles",
"from tools i... |
# Copyright 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.0493,
0.0033,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0559,
0.0033,
0,
0.66,
0.0588,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0625,
0.0033,
0,
0.66,... | [
"\"\"\"Module for implementing question tags.\"\"\"",
"__author__ = 'sll@google.com (Sean Lip)'",
"import logging",
"import os",
"import jinja2",
"import appengine_config",
"from common import jinja_utils",
"from common import schema_fields",
"from common import tags",
"from models import custom_m... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0366,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0415,
0.0024,
0,
0.66,
0.0312,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0488,
0.0024,
0,
0.66,... | [
"\"\"\"Classes and methods to create and manage Announcements.\"\"\"",
"__author__ = 'Saifu Angto (saifu@google.com)'",
"import datetime",
"import urllib",
"from common import tags",
"from common import utils",
"from common.schema_fields import FieldArray",
"from common.schema_fields import FieldRegis... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.2,
0.0133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2267,
0.0133,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2533,
0.0133,
0,
0.66,
0... | [
"\"\"\"Sample announcements.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import datetime",
"SAMPLE_ANNOUNCEMENT_1 = {\n 'edit_url': None,\n 'title': 'Example Announcement',\n 'date': datetime.date(2012, 10, 6),\n 'is_draft': False,\n 'html': \"\"\"\n <br>Certificates w... |
# Copyright 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.0519,
0.0424,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0784,
0.0021,
0,
0.66,
0.027,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0826,
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.0292,
0.0019,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0331,
0.0019,
0,
0.66,
0.0588,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.037,
0.0019,
0,
0.66,
... | [
"\"\"\"Classes providing REST data sources for common CourseBuilder items.\"\"\"",
"__author__ = 'Mike Gainer (mgainer@google.com)'",
"from common import schema_fields",
"from common import utils",
"from models import courses",
"from models import data_sources",
"from models import jobs",
"from models... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.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.0296,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0335,
0.002,
0,
0.66,
0.0526,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0375,
0.002,
0,
0.66,
... | [
"\"\"\"Provide data sources performing synchronous (non-paginated) reads.\"\"\"",
"__author__ = 'Sean Lip (sll@google.com)'",
"import logging",
"import urlparse",
"from common import safe_dom",
"from models import courses",
"from models import data_sources",
"from models import jobs",
"from models i... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0355,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0402,
0.0024,
0,
0.66,
0.0476,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0449,
0.0024,
0,
0.66,... | [
"\"\"\"Classes supporting updates to basic course settings.\"\"\"",
"__author__ = 'Abhinav Khandelwal (abhinavk@google.com)'",
"import cgi",
"import urllib",
"from common import schema_fields",
"from controllers.utils import ApplicationHandler",
"from controllers.utils import BaseRESTHandler",
"from c... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1613,
0.0108,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1828,
0.0108,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2043,
0.0108,
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.06,
0.004,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.074,
0.016,
0,
0.66,
0.0909,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.088,
0.004,
0,
0.66,
0.... | [
"\"\"\"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.0641,
0.0043,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0726,
0.0043,
0,
0.66,
0.0213,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0812,
0.0043,
0,
0.66,... | [
"\"\"\"Messages used in the dashboard.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"from common import safe_dom",
"def assemble_sanitized_message(text, link):\n node_list = safe_dom.NodeList()\n if text:\n node_list.append(safe_dom.Text(text))\n node_list.append(safe_dom.Entity('&... |
# Copyright 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.0108,
0.0007,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0122,
0.0007,
0,
0.66,
0.0217,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0137,
0.0007,
0,
0.66,... | [
"\"\"\"Classes supporting unit and lesson editing.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"import cgi",
"import logging",
"import urllib",
"from label_editor import LabelGroupsHelper",
"import messages",
"import yaml",
"from common import tags",
"from common import utils as common_ut... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.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.0857,
0.0057,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0971,
0.0057,
0,
0.66,
0.1111,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1086,
0.0057,
0,
0.66,... | [
"\"\"\"Classes supporting creation and editing of question_groups.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"from common import schema_fields",
"from models import transforms",
"from models.models import QuestionDAO",
"from models.models import QuestionGroupDAO",
"from modules.dashboard impo... |
# Copyright 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.0298,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0337,
0.002,
0,
0.66,
0.0526,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0377,
0.002,
0,
0.66,
... | [
"\"\"\"Classes supporting creation and editing of questions.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"import copy",
"import messages",
"from common import schema_fields",
"from models import roles",
"from models import transforms",
"from models.models import CollisionError",
"from model... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0084,
0.0006,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0095,
0.0006,
0,
0.66,
0.0132,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0106,
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 HTMLParser",
"import logging",
"import os",
"import urllib",
"from admin_preferences_editor import AdminPreferences... |
# 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.1685,
0.0112,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.191,
0.0112,
0,
0.66,
0.3333,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2135,
0.0112,
0,
0.66,
... | [
"\"\"\"Registration of sub-tabs for under Dashboard > Analytics.\"\"\"",
"__author__ = 'Mike Gainer (mgainer@google.com)'",
"import re",
"class Registry(object):\n\n class _Tab(object):\n\n def __init__(\n self, group, name, title, contents, href=None, target=None):\n if no... |
# 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.0622,
0.0041,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0705,
0.0041,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0788,
0.0041,
0,
0.66,... | [
"\"\"\"Classes supporting creation and editing of labels.\"\"\"",
"__author__ = 'Mike Gainer (mgainer@google.com)'",
"from common import schema_fields",
"from common import utils",
"from common.schema_fields import FieldArray",
"from common.schema_fields import FieldRegistry",
"from common.schema_fields... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0195,
0.0013,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0221,
0.0013,
0,
0.66,
0.0385,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0247,
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.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.2113,
0.0141,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2394,
0.0141,
0,
0.66,
0.0556,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2676,
0.0141,
0,
0.66,... | [
"\"\"\"Course Builder web application entry point.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import os",
"import webapp2",
"import appengine_config # pylint: disable=unused-import",
"from controllers import sites",
"from models import analytics",
"from models import custom_module... |
#!/usr/bin/python
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
[
8,
0,
0.0731,
0.039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0974,
0.0032,
0,
0.66,
0.0323,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1039,
0.0032,
0,
0.66,
... | [
"\"\"\"Manage fetching and installation of extension modules to CourseBuilder.\n\nTo run, use the wrapper script in this directory since it configures paths for\nyou:\n\n sh scripts/modules.sh [args]\n\nFor example, to bring in the LTI module you can run",
"__author__ = 'Mike Gainer (mgainer@google.com)'",
"im... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.