code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except 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... | [
[
8,
0,
0.2826,
0.087,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3478,
0.0145,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3768,
0.0145,
0,
0.66,
... | [
"\"\"\"This example gets all URL channels in an ad client.\n\nTo get ad clients, run get_all_ad_clients.py.\n\nTags: urlchannels.list\n\"\"\"",
"__author__ = 'sergio.gomes@google.com (Sergio Gomes)'",
"import sys",
"import gflags",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_... |
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except 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... | [
[
8,
0,
0.2761,
0.0597,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3284,
0.0149,
0,
0.66,
0.1111,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3582,
0.0149,
0,
0.66,... | [
"\"\"\"This example gets all ad clients for an account.\n\nTags: accounts.adclients.list\n\"\"\"",
"__author__ = 'sergio.gomes@google.com (Sergio Gomes)'",
"import sys",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"MAX_PAGE_SIZE = 50",
"gflags.DEFINE_string('account... |
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except 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... | [
[
8,
0,
0.319,
0.069,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3793,
0.0172,
0,
0.66,
0.1429,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4138,
0.0172,
0,
0.66,
... | [
"\"\"\"This example gets all ad clients for the logged in user's default account.\n\nTags: adclients.list\n\"\"\"",
"__author__ = 'sergio.gomes@google.com (Sergio Gomes)'",
"import sys",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"MAX_PAGE_SIZE = 50",
"def main(arg... |
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except 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... | [
[
8,
0,
0.2437,
0.075,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3,
0.0125,
0,
0.66,
0.0714,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.325,
0.0125,
0,
0.66,
... | [
"\"\"\"This example gets all ad units corresponding to a specified custom channel.\n\nTo get custom channels, run get_all_custom_channels.py.\n\nTags: accounts.customchannels.adunits.list\n\"\"\"",
"__author__ = 'sergio.gomes@google.com (Sergio Gomes)'",
"import sys",
"import gflags",
"from oauth2client.cli... |
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except 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... | [
[
8,
0,
0.291,
0.0896,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3582,
0.0149,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3881,
0.0149,
0,
0.66,
... | [
"\"\"\"This example gets all ad units in an ad client.\n\nTo get ad clients, run get_all_ad_clients.py.\n\nTags: adunits.list\n\"\"\"",
"__author__ = 'sergio.gomes@google.com (Sergio Gomes)'",
"import sys",
"import gflags",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
14,
0,
0.1698,
0.0094,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1981,
0.0094,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2075,
0.0094,
0,
0.6... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.client import OAuth2WebServerFlow",
"from goog... |
#!/usr/bin/python
#
# 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 b... | [
[
8,
0,
0.4022,
0.087,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4783,
0.0217,
0,
0.66,
0.1429,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5217,
0.0217,
0,
0.66,
... | [
"\"\"\"This example gets all accounts for the logged in user.\n\nTags: accounts.list\n\"\"\"",
"__author__ = 'david.t@google.com (David Torres)'",
"import pprint",
"import sys",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"def main(argv):\n sample_utils.process_fla... |
#!/usr/bin/python
#
# 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 b... | [
[
8,
0,
0.3627,
0.0784,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4314,
0.0196,
0,
0.66,
0.1429,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4706,
0.0196,
0,
0.66,... | [
"\"\"\"This example gets the active direct deals associated to the logged in user.\n\nTags: directDeals.list\n\"\"\"",
"__author__ = 'david.t@google.com (David Torres)'",
"import pprint",
"import sys",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"def main(argv):\n ... |
#!/usr/bin/python
#
# 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 b... | [
[
8,
0,
0.2681,
0.058,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3188,
0.0145,
0,
0.66,
0.0714,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3478,
0.0145,
0,
0.66,
... | [
"\"\"\"This example illustrates how to retrieve the information of a creative.\n\nTags: creatives.insert\n\"\"\"",
"__author__ = 'david.t@google.com (David Torres)'",
"import pprint",
"import sys",
"import gflags",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"gfla... |
#!/usr/bin/python
#
# 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 b... | [
[
8,
0,
0.2372,
0.0513,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2821,
0.0128,
0,
0.66,
0.0714,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3077,
0.0128,
0,
0.66,... | [
"\"\"\"This example illustrates how to submit a new creative for its verification.\n\nTags: creatives.insert\n\"\"\"",
"__author__ = 'david.t@google.com (David Torres)'",
"import pprint",
"import sys",
"import gflags",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"... |
#!/usr/bin/python
#
# 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 b... | [
[
8,
0,
0.2891,
0.0625,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3438,
0.0156,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.375,
0.0156,
0,
0.66,
... | [
"\"\"\"This example illustrates how to do a sparse update of the account attributes.\n\nTags: accounts.patch\n\"\"\"",
"__author__ = 'david.t@google.com (David Torres)'",
"import pprint",
"import sys",
"import gflags",
"from oauth2client.client import AccessTokenRefreshError",
"import sample_utils",
"... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
8,
0,
0.2593,
0.1111,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3333,
0.0123,
0,
0.66,
0.0588,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3704,
0.0123,
0,
0.66,... | [
"\"\"\"Starting template for Google App Engine applications.\n\nUse this project as a starting point if you are just beginning to build a\nGoogle App Engine project which will access and manage data held under a role\naccount for the App Engine app. More information about using Google App Engine\napps to call Goog... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query with ranked results against the shopping search API"""
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get and prin... | [
[
8,
0,
0.1111,
0.0185,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1481,
0.0185,
0,
0.66,
0.25,
78,
0,
1,
0,
0,
78,
0,
0
],
[
14,
0,
0.2037,
0.0185,
0,
0.66,
... | [
"\"\"\"Query with ranked results against the shopping search API\"\"\"",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a histogram of the top 15 brand distribution for a search\n query... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Full text search query against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""... | [
[
8,
0,
0.15,
0.025,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2,
0.025,
0,
0.66,
0.1667,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.25,
0.025,
0,
0.66,
0.33... | [
"\"\"\"Full text search query against the shopping search API\"\"\"",
"import pprint",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a feed of all public products matching the search ... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Basic query against the public shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get ... | [
[
8,
0,
0.1875,
0.0312,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.25,
0.0312,
0,
0.66,
0.1667,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.3125,
0.0312,
0,
0.66,
... | [
"\"\"\"Basic query against the public shopping search API\"\"\"",
"import pprint",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a feed of all public products available in the\n Unit... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query that is restricted by a parameter against the public shopping search
API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI... | [
[
8,
0,
0.1477,
0.0455,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2045,
0.0227,
0,
0.66,
0.1667,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.25,
0.0227,
0,
0.66,
... | [
"\"\"\"Query that is restricted by a parameter against the public shopping search\nAPI\"\"\"",
"import pprint",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a feed of all public prod... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Queries with paginated results against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main(... | [
[
8,
0,
0.1277,
0.0213,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1702,
0.0213,
0,
0.66,
0.1667,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.2128,
0.0213,
0,
0.66... | [
"\"\"\"Queries with paginated results against the shopping search API\"\"\"",
"import pprint",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a the entire paginated feed of public prod... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query with grouping against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
"""Get... | [
[
8,
0,
0.125,
0.0208,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1667,
0.0208,
0,
0.66,
0.1667,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.2083,
0.0208,
0,
0.66,... | [
"\"\"\"Query with grouping against the shopping search API\"\"\"",
"import pprint",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a feed of public products in the United States mathin... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Query with ranked results against the shopping search API"""
import pprint
from apiclient.discovery import build
SHOPPING_API_VERSION = 'v1'
DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
def main():
... | [
[
8,
0,
0.1304,
0.0217,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1739,
0.0217,
0,
0.66,
0.1667,
276,
0,
1,
0,
0,
276,
0,
0
],
[
1,
0,
0.2174,
0.0217,
0,
0.66... | [
"\"\"\"Query with ranked results against the shopping search API\"\"\"",
"import pprint",
"from apiclient.discovery import build",
"SHOPPING_API_VERSION = 'v1'",
"DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'",
"def main():\n \"\"\"Get and print a feed of public products in the United States ... |
#!/usr/bin/env python
#
# Copyright 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
8,
0,
0.1212,
0.0424,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1515,
0.0061,
0,
0.66,
0.0417,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1636,
0.0061,
0,
0.66,... | [
"\"\"\"Sample application for Python documentation of APIs.\n\nThis is running live at http://api-python-client-doc.appspot.com where it\nprovides a list of APIs and PyDoc documentation for all the generated API\nsurfaces as they appear in the google-api-python-client. In addition it also\nprovides a Google Gadget.... |
#!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except 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... | [
[
8,
0,
0.1272,
0.0592,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1657,
0.0059,
0,
0.66,
0.0667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1775,
0.0059,
0,
0.66,... | [
"\"\"\"Sample for the Group Settings API demonstrates get and update method.\n\nUsage:\n $ python groupsettings.py\n\nYou can also get help on all the command-line flags the program understands\nby running:",
"__author__ = 'Shraddha Gupta <shraddhag@google.com>'",
"from optparse import OptionParser",
"import... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
8,
0,
0.2629,
0.1856,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3711,
0.0103,
0,
0.66,
0.0556,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3918,
0.0103,
0,
0.66,... | [
"\"\"\"This application produces formatted listings for Google Cloud\n Storage buckets.\n\nIt takes a bucket name in the URL path and does an HTTP GET on the\ncorresponding Google Cloud Storage URL to obtain a listing of the bucket\ncontents. For example, if this app is invoked with the URI\nhttp://bucket-list.ap... |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
[
8,
0,
0.1818,
0.0636,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2273,
0.0091,
0,
0.66,
0.0476,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2545,
0.0091,
0,
0.66,... | [
"\"\"\"Starting template for Google App Engine applications.\n\nUse this project as a starting point if you are just beginning to build a Google\nApp Engine project. Remember to download the OAuth 2.0 client secrets which can\nbe obtained from the Developer Console <https://code.google.com/apis/console/>\nand save ... |
#!/usr/bin/python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("""Error: Can't find the file 'settings.py' in the
directory containing %r. It appears you've customized things. You'll
have to run... | [
[
1,
0,
0.1333,
0.0667,
0,
0.66,
0,
879,
0,
1,
0,
0,
879,
0,
0
],
[
7,
0,
0.5,
0.6667,
0,
0.66,
0.5,
0,
0,
1,
0,
0,
0,
0,
2
],
[
1,
1,
0.2667,
0.0667,
1,
0.26,
... | [
"from django.core.management import execute_manager",
"try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"\"\"Error: Can't find the file 'settings.py' in the\ndirectory containing %r. It appears you've customized things. You'll\nhave to ru... |
import pickle
import base64
from django.contrib import admin
from django.contrib.auth.models import User
from django.db import models
from oauth2client.django_orm import FlowField
from oauth2client.django_orm import CredentialsField
# The Flow could also be stored in memcache since it is short lived.
class FlowMod... | [
[
1,
0,
0.0303,
0.0303,
0,
0.66,
0,
848,
0,
1,
0,
0,
848,
0,
0
],
[
1,
0,
0.0606,
0.0303,
0,
0.66,
0.0833,
177,
0,
1,
0,
0,
177,
0,
0
],
[
1,
0,
0.1212,
0.0303,
0,
... | [
"import pickle",
"import base64",
"from django.contrib import admin",
"from django.contrib.auth.models import User",
"from django.db import models",
"from oauth2client.django_orm import FlowField",
"from oauth2client.django_orm import CredentialsField",
"class FlowModel(models.Model):\n id = models.F... |
"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
""... | [
[
8,
0,
0.1458,
0.25,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3333,
0.0417,
0,
0.66,
0.3333,
944,
0,
1,
0,
0,
944,
0,
0
],
[
3,
0,
0.5833,
0.2917,
0,
0.66,
... | [
"\"\"\"\nThis file demonstrates two different styles of tests (one doctest and one\nunittest). These will both pass when you run \"manage.py test\".\n\nReplace these with more appropriate tests for your application.\n\"\"\"",
"from django.test import TestCase",
"class SimpleTest(TestCase):\n\n def test_basic... |
import os
import logging
import httplib2
from django.http import HttpResponse
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from oauth2client.django_orm import Storage
from oauth2client.client import OAuth2WebServerFlow
from django_sample.plus.models import Cre... | [
[
1,
0,
0.0164,
0.0164,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0328,
0.0164,
0,
0.66,
0.0667,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.0492,
0.0164,
0,
... | [
"import os",
"import logging",
"import httplib2",
"from django.http import HttpResponse",
"from django.core.urlresolvers import reverse",
"from django.contrib.auth.decorators import login_required",
"from oauth2client.django_orm import Storage",
"from oauth2client.client import OAuth2WebServerFlow",
... |
import os
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'^$', 'django_sample.plus.views.index'),
(r'^oauth2callback', 'django_sample.plus.views.auth_return'),
# ... | [
[
1,
0,
0.04,
0.04,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.08,
0.04,
0,
0.66,
0.25,
341,
0,
1,
0,
0,
341,
0,
0
],
[
1,
0,
0.2,
0.04,
0,
0.66,
0.5,
... | [
"import os",
"from django.conf.urls.defaults import *",
"from django.contrib import admin",
"admin.autodiscover()",
"urlpatterns = patterns('',\n # Example:\n (r'^$', 'django_sample.plus.views.index'),\n (r'^oauth2callback', 'django_sample.plus.views.auth_return'),\n\n # Uncomment the admin/doc ... |
# Django settings for django_sample project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'database.sqlite3'
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
# Lo... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.0476,
0.0119,
0,
0.66,
0.0435,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0595,
0.0119,
0,
... | [
"import os",
"DEBUG = True",
"TEMPLATE_DEBUG = DEBUG",
"ADMINS = (\n # ('Your Name', 'your_email@domain.com'),\n)",
"MANAGERS = ADMINS",
"DATABASE_ENGINE = 'sqlite3'",
"DATABASE_NAME = 'database.sqlite3'",
"DATABASE_USER = ''",
"DATABASE_PASSWORD = ''",
"DATABASE_HOST = ''",
"DATABASE_PORT = ... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
[
8,
0,
0.4432,
0.0909,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5227,
0.0227,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.5682,
0.0227,
0,
0.66,
... | [
"\"\"\"Simple command-line example for Custom Search.\n\nCommand-line application that does a search.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import pprint",
"from apiclient.discovery import build",
"def main():\n # Build a service object for interacting with the API. Visit\n # t... |
#!/usr/bin/env python
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
[
8,
0,
0.2982,
0.0175,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3509,
0.0175,
0,
0.66,
0.1429,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4211,
0.0175,
0,
0.66,... | [
"\"\"\"Commands to interact with the TaskQueue object of the TaskQueue API.\"\"\"",
"__version__ = '0.0.1'",
"from gtaskqueue.taskqueue_cmd_base import GoogleTaskQueueCommand",
"from google.apputils import appcommands",
"import gflags as flags",
"FLAGS = flags.FLAGS",
"class GetTaskQueueCommand(GoogleTa... |
#!/usr/bin/env python
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
[
8,
0,
0.3396,
0.0189,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3774,
0.0189,
0,
0.66,
0.0833,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.434,
0.0189,
0,
0.66,
... | [
"\"\"\"Command line tool for interacting with Google TaskQueue API.\"\"\"",
"__version__ = '0.0.1'",
"import logging",
"from gtaskqueue import task_cmds",
"from gtaskqueue import taskqueue_cmds",
"from google.apputils import appcommands",
"import gflags as flags",
"LOG_LEVELS = [logging.DEBUG,\n ... |
#!/usr/bin/env python
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
[
8,
0,
0.3148,
0.0185,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3889,
0.0185,
0,
0.66,
0.1111,
715,
0,
1,
0,
0,
715,
0,
0
],
[
1,
0,
0.4074,
0.0185,
0,
0.66... | [
"\"\"\"Log settings for taskqueue_puller module.\"\"\"",
"import logging",
"import logging.config",
"from google.apputils import app",
"import gflags as flags",
"FLAGS = flags.FLAGS",
"flags.DEFINE_string(\n 'log_output_file',\n '/tmp/taskqueue-puller.log',\n 'Logfile name for taskq... |
#!/usr/bin/env python
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
[
8,
0,
0.0853,
0.0047,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0995,
0.0047,
0,
0.66,
0.0833,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1185,
0.0047,
0,
0.66,... | [
"\"\"\"Commands to interact with the Task object of the TaskQueue API.\"\"\"",
"__version__ = '0.0.1'",
"from gtaskqueue.taskqueue_cmd_base import GoogleTaskCommand",
"from google.apputils import app",
"from google.apputils import appcommands",
"import gflags as flags",
"FLAGS = flags.FLAGS",
"class G... |
#!/usr/bin/env python
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
[
8,
0,
0.1535,
0.0526,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2105,
0.0088,
0,
0.66,
0.0909,
326,
0,
1,
0,
0,
326,
0,
0
],
[
1,
0,
0.2193,
0.0088,
0,
0.66... | [
"\"\"\"Tool to get an Access Token to access an auth protected Appengine end point.\n\nThis tool talks to the appengine end point, and gets an Access Token that is\nstored in a file. This token can be used by a tool to do authorized access to\nan appengine end point.\n\"\"\"",
"from google.apputils import app",
... |
#!/usr/bin/env python
#
# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
[
8,
0,
0.3208,
0.0189,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3585,
0.0189,
0,
0.66,
0.1667,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4151,
0.0189,
0,
0.66,... | [
"\"\"\"Setup script for the Google TaskQueue API command-line tool.\"\"\"",
"__version__ = '1.0.2'",
"import sys",
"try:\n from setuptools import setup\n print('Loaded setuptools')\nexcept ImportError:\n from distutils.core import setup\n print('Loaded distutils.core')",
" from setuptools imp... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
[
8,
0,
0.3538,
0.1692,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4615,
0.0154,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4923,
0.0154,
0,
0.66,
... | [
"\"\"\"Simple command-line sample that demonstrates service accounts.\n\nLists all the Google Task Lists associated with the given service account.\nService accounts are created in the Google API Console. See the documentation\nfor more information:\n\n https://developers.google.com/console/help/#WhatIsKey",
"_... |
# Copyright (C) 2011 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
[
1,
0,
0.2632,
0.0175,
0,
0.66,
0,
813,
0,
1,
0,
0,
813,
0,
0
],
[
8,
0,
0.2807,
0.0175,
0,
0.66,
0.0769,
876,
3,
2,
0,
0,
0,
0,
1
],
[
1,
0,
0.2982,
0.0175,
0,
0.... | [
"from google.appengine.dist import use_library",
"use_library('django', '1.2')",
"from google.appengine.ext import webapp",
"from google.appengine.ext.webapp import template",
"from google.appengine.ext.webapp.util import run_wsgi_app",
"from apiclient.discovery import build",
"import httplib2",
"from... |
# Set up the system so that this development
# version of google-api-python-client is run, even if
# an older version is installed on the system.
#
# To make this totally automatic add the following to
# your ~/.bash_profile:
#
# export PYTHONPATH=/path/to/where/you/checked/out/apiclient
import sys
import os
sys.path.... | [
[
1,
0,
0.75,
0.0833,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.8333,
0.0833,
0,
0.66,
0.5,
688,
0,
1,
0,
0,
688,
0,
0
],
[
8,
0,
1,
0.0833,
0,
0.66,
... | [
"import sys",
"import os",
"sys.path.insert(0, os.path.dirname(__file__))"
] |
#!/usr/bin/env python
#
# Repeats a command for each demo and reports the status.
# The command is executed from the root directory of the demo.
#
# Example:
# python demos.py "ant install"
# python demos.py "android update project -p ."
#
import os
import sys
def demos(command):
tools_directory, script = os.path.s... | [
[
1,
0,
0.2558,
0.0233,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2791,
0.0233,
0,
0.66,
0.25,
509,
0,
1,
0,
0,
509,
0,
0
],
[
2,
0,
0.4884,
0.3488,
0,
0.... | [
"import os",
"import sys",
"def demos(command):\n tools_directory, script = os.path.split(os.path.abspath(__file__))\n root_directory, tools = os.path.split(tools_directory)\n demos_directory = os.path.join(root_directory, 'demos')\n demos = os.listdir(demos_directory)\n demos = list(filter(lambda x: not x... |
#!/usr/bin/env python
#
# Updates the JARs in the demo libs/ directories
# with the current build output found in bin/.
#
import os
import shutil
import sys
def listdir(path):
"""List files at the specified path excluding hidden files"""
return filter(lambda x: not x.startswith('.'), os.listdir(path))
def libs()... | [
[
1,
0,
0.1892,
0.027,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.2162,
0.027,
0,
0.66,
0.1667,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.2432,
0.027,
0,
0.6... | [
"import os",
"import shutil",
"import sys",
"def listdir(path):\n \"\"\"List files at the specified path excluding hidden files\"\"\"\n return filter(lambda x: not x.startswith('.'), os.listdir(path))",
" \"\"\"List files at the specified path excluding hidden files\"\"\"",
" return filter(lambda x: n... |
#!/usr/bin/env python
#
# Builds archives for SDK releases.
#
# Usage:
# python tools/sdk.py <version>
#
import os
import shutil
import sys
import tempfile
def execute(command):
status = os.system(command)
if status != 0:
raise Exception('unexpected result: %d' % status)
def sdk(version, output):
# Find th... | [
[
1,
0,
0.1324,
0.0147,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1471,
0.0147,
0,
0.66,
0.1429,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.1618,
0.0147,
0,
... | [
"import os",
"import shutil",
"import sys",
"import tempfile",
"def execute(command):\n status = os.system(command)\n if status != 0:\n raise Exception('unexpected result: %d' % status)",
" status = os.system(command)",
" if status != 0:\n raise Exception('unexpected result: %d' % status)",
... |
#!/usr/bin/env python
import codecs
import re
import jinja2
import markdown
def process_slides():
with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:
md = codecs.open('slides.md', encoding='utf8').read()
md_slides = md.split('\n---\n')
print 'Compiled %s slides.' % len(m... | [
[
1,
0,
0.0526,
0.0175,
0,
0.66,
0,
220,
0,
1,
0,
0,
220,
0,
0
],
[
1,
0,
0.0702,
0.0175,
0,
0.66,
0.1429,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0877,
0.0175,
0,
... | [
"import codecs",
"import re",
"import jinja2",
"import markdown",
"def process_slides():\n with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:\n md = codecs.open('slides.md', encoding='utf8').read()\n md_slides = md.split('\\n---\\n')\n print('Compiled %s slides.' ... |
import btk
import unittest
import _TDDConfigure
import numpy
class GroundReactionWrenchFilterTest(unittest.TestCase):
def test_FileSample10Type4a(self):
reader = btk.btkAcquisitionFileReader()
reader.SetFilename(_TDDConfigure.C3DFilePathIN + "sample10/type-4a.c3d")
pfe = btk.btkForcePlatfor... | [
[
1,
0,
0.0556,
0.0556,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.1111,
0.0556,
0,
0.66,
0.25,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.1667,
0.0556,
0,
0.66... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"import numpy",
"class GroundReactionWrenchFilterTest(unittest.TestCase):\n def test_FileSample10Type4a(self):\n reader = btk.btkAcquisitionFileReader()\n reader.SetFilename(_TDDConfigure.C3DFilePathIN + \"sample10/type-4a.c3d\")\n ... |
import btk
import unittest
class PointCollectionTest(unittest.TestCase):
def test_Constructor(self):
test = btk.btkPointCollection()
self.assertEqual(test.GetItemNumber(), 0)
def test_InsertItem(self):
test = btk.btkPointCollection()
m = btk.btkPoint("HEEL_R", 10)
s... | [
[
1,
0,
0.0667,
0.0667,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.1333,
0.0667,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.6333,
0.8,
0,
0.66,
... | [
"import btk",
"import unittest",
"class PointCollectionTest(unittest.TestCase):\n def test_Constructor(self):\n test = btk.btkPointCollection()\n self.assertEqual(test.GetItemNumber(), 0)\n \n def test_InsertItem(self):\n test = btk.btkPointCollection()\n m = btk.btkPoint(\"... |
import btk
import unittest
import _TDDConfigure
import numpy
class AnalogOffsetRemoverTest(unittest.TestCase):
def test_Test0(self):
acq = btk.btkAcquisition()
acq.Init(0,25,1,1)
data = numpy.empty([25,1]);
data.fill(5.0)
acq.GetAnalog(0).SetValues(data)
remover = btk.btkAnalogOffsetRemover()... | [
[
1,
0,
0.0061,
0.0061,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0121,
0.0061,
0,
0.66,
0.25,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0182,
0.0061,
0,
0.66... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"import numpy",
"class AnalogOffsetRemoverTest(unittest.TestCase):\n def test_Test0(self):\n acq = btk.btkAcquisition()\n acq.Init(0,25,1,1)\n data = numpy.empty([25,1]);\n data.fill(5.0)\n acq.GetAnalog(0).SetValues(data)\n remover... |
import btk
import unittest
import _TDDConfigure
import numpy
class ForcePlatformsExtractorTest(unittest.TestCase):
def test_FileSample01Eb015pi(self):
reader = btk.btkAcquisitionFileReader()
reader.SetFilename(_TDDConfigure.C3DFilePathIN + "sample01/Eb015pi.c3d")
acq = reader.GetOutput()
... | [
[
1,
0,
0.0076,
0.0076,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0152,
0.0076,
0,
0.66,
0.25,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0227,
0.0076,
0,
0.66... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"import numpy",
"class ForcePlatformsExtractorTest(unittest.TestCase):\n def test_FileSample01Eb015pi(self):\n reader = btk.btkAcquisitionFileReader()\n reader.SetFilename(_TDDConfigure.C3DFilePathIN + \"sample01/Eb015pi.c3d\")\n ... |
import btk
import unittest
import _TDDConfigure
class MergeAcquisitionFilterTest(unittest.TestCase):
def test_NoInput(self):
merger = btk.btkMergeAcquisitionFilter()
merger.Update()
output = merger.GetOutput()
self.assertEqual(output.GetPointFrameNumber(), 0)
self.assertEqual(output.GetAnalogFram... | [
[
1,
0,
0.0045,
0.0045,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0089,
0.0045,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0134,
0.0045,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class MergeAcquisitionFilterTest(unittest.TestCase):\n def test_NoInput(self):\n merger = btk.btkMergeAcquisitionFilter()\n merger.Update()\n output = merger.GetOutput()\n self.assertEqual(output.GetPointFrameNumber(), 0)\n self.assertE... |
import btk
import unittest
class DownsampleFilterTest(unittest.TestCase):
def test_wrench_case1(self):
wrench = btk.btkWrench(100)
wdf = btk.btkWrenchDownsampleFilter();
wdf.SetInput(wrench)
wdf.SetUpDownRatio(10)
wdf.Update()
self.assertEqual(wdf.GetOutput().GetComponent(0).Get... | [
[
1,
0,
0.0238,
0.0238,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0476,
0.0238,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.5476,
0.9286,
0,
0.66,... | [
"import btk",
"import unittest",
"class DownsampleFilterTest(unittest.TestCase):\n def test_wrench_case1(self):\n wrench = btk.btkWrench(100)\n wdf = btk.btkWrenchDownsampleFilter();\n wdf.SetInput(wrench)\n wdf.SetUpDownRatio(10)\n wdf.Update()\n self.assertEqual(wdf.GetOutput(... |
import unittest
import AcquisitionUnitConverterTest
import AnalogOffsetRemoverTest
import DownsampleFilterTest
import ForcePlatformsExtractorTest
import GroundReactionWrenchFilterTest
import IMUsExtractorTest
import MergeAcquisitionFilterTest
import SeparateKnownVirtualMarkersFilterTest
import SubAcquisitionFilterTest... | [
[
1,
0,
0.0385,
0.0385,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.1154,
0.0385,
0,
0.66,
0.0909,
691,
0,
1,
0,
0,
691,
0,
0
],
[
1,
0,
0.1538,
0.0385,
0,
0.... | [
"import unittest",
"import AcquisitionUnitConverterTest",
"import AnalogOffsetRemoverTest",
"import DownsampleFilterTest",
"import ForcePlatformsExtractorTest",
"import GroundReactionWrenchFilterTest",
"import IMUsExtractorTest",
"import MergeAcquisitionFilterTest",
"import SeparateKnownVirtualMarke... |
import btk
import unittest
import numpy
class PointTest(unittest.TestCase):
def test_Constructor(self):
test = btk.btkPoint("HEEL_R", 200)
self.assertEqual(test.GetLabel(), "HEEL_R")
self.assertEqual(test.GetDescription(), "")
self.assertEqual(test.GetValues().shape[0], 200)
... | [
[
1,
0,
0.0345,
0.0345,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.069,
0.0345,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.1034,
0.0345,
0,
0.6... | [
"import btk",
"import unittest",
"import numpy",
"class PointTest(unittest.TestCase):\n def test_Constructor(self):\n test = btk.btkPoint(\"HEEL_R\", 200)\n self.assertEqual(test.GetLabel(), \"HEEL_R\")\n self.assertEqual(test.GetDescription(), \"\")\n self.assertEqual(test.GetV... |
import btk
import unittest
import _TDDConfigure
class IMUsExtractorTest(unittest.TestCase):
def test_NoAcquisition(self):
imuse = btk.btkIMUsExtractor()
output = imuse.GetOutput()
output.Update()
self.assertEqual(output.GetItemNumber(), 0)
def test_NoIMU(self):
imuse = btk.btkIMUsExtractor()
... | [
[
1,
0,
0.0047,
0.0047,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0095,
0.0047,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0142,
0.0047,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class IMUsExtractorTest(unittest.TestCase):\n def test_NoAcquisition(self):\n imuse = btk.btkIMUsExtractor()\n output = imuse.GetOutput()\n output.Update()\n self.assertEqual(output.GetItemNumber(), 0)\n\n def test_NoIMU(self):",
" def... |
import unittest
import EventTest
import AnalogTest
import PointTest
import ForcePlatformTypesTest
import EventCollectionTest
import PointCollectionTest
import MetaDataInfoTest
import MetaDataTest
import AcquisitionTest
import WrenchTest
import IMUTypesTest
def suite():
suite = unittest.TestSuite()
suite.addTe... | [
[
1,
0,
0.0357,
0.0357,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.1071,
0.0357,
0,
0.66,
0.0833,
923,
0,
1,
0,
0,
923,
0,
0
],
[
1,
0,
0.1429,
0.0357,
0,
0.... | [
"import unittest",
"import EventTest",
"import AnalogTest",
"import PointTest",
"import ForcePlatformTypesTest",
"import EventCollectionTest",
"import PointCollectionTest",
"import MetaDataInfoTest",
"import MetaDataTest",
"import AcquisitionTest",
"import WrenchTest",
"import IMUTypesTest",
... |
import btk
import unittest
class MetaDataTest(unittest.TestCase):
def test_SimpleCtor(self):
test = btk.btkMetaData('POINT')
self.assertEqual(test.GetLabel(), 'POINT')
self.assertEqual(test.GetDescription(), '')
self.assertEqual(test.GetUnlockState(), True)
self.assertEqual(... | [
[
1,
0,
0.0047,
0.0047,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0094,
0.0047,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.507,
0.9812,
0,
0.66,
... | [
"import btk",
"import unittest",
"class MetaDataTest(unittest.TestCase):\n def test_SimpleCtor(self):\n test = btk.btkMetaData('POINT')\n self.assertEqual(test.GetLabel(), 'POINT')\n self.assertEqual(test.GetDescription(), '')\n self.assertEqual(test.GetUnlockState(), True)\n ... |
import btk
import unittest
import _TDDConfigure
class SubAcquisitionFilterTest(unittest.TestCase):
def test_TestAllNoEffect(self):
acq = btk.btkAcquisition()
acq.Init(10,25,5,2)
acq.AppendEvent(btk.btkEvent())
acq.SetFirstFrame(10)
acq.SetPointFrequency(25.0)
sub = btk.btkSubAcquisitionFilter... | [
[
1,
0,
0.0043,
0.0043,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0086,
0.0043,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0129,
0.0043,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class SubAcquisitionFilterTest(unittest.TestCase):\n def test_TestAllNoEffect(self):\n acq = btk.btkAcquisition()\n acq.Init(10,25,5,2)\n acq.AppendEvent(btk.btkEvent())\n acq.SetFirstFrame(10)\n acq.SetPointFrequency(25.0)\n sub = b... |
import btk
import unittest
class MetaDataInfoTest(unittest.TestCase):
def test_ctor_int(self):
i = btk.btkMetaDataInfo(5)
self.assertEqual(i.GetFormat(), btk.btkMetaDataInfo.Integer)
self.assertEqual(len(i.GetDimensions()), 0)
self.assertEqual(i.GetDimensionsProduct(), 1)
se... | [
[
1,
0,
0.0012,
0.0012,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0024,
0.0012,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.5024,
0.9964,
0,
0.66,... | [
"import btk",
"import unittest",
"class MetaDataInfoTest(unittest.TestCase):\n def test_ctor_int(self):\n i = btk.btkMetaDataInfo(5)\n self.assertEqual(i.GetFormat(), btk.btkMetaDataInfo.Integer)\n self.assertEqual(len(i.GetDimensions()), 0)\n self.assertEqual(i.GetDimensionsProdu... |
# -*- coding: utf-8 -*-
import btk
import unittest
import _TDDConfigure
class C3DFileWriterTest(unittest.TestCase):
def test_NoFileNoInput(self):
writer = btk.btkAcquisitionFileWriter()
self.assertRaises(RuntimeError, writer.Update)
# self.assertRaisesRegexp(RuntimeError, 'Filename must be specified',... | [
[
1,
0,
0.0025,
0.0008,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0034,
0.0008,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0042,
0.0008,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class C3DFileWriterTest(unittest.TestCase):\n def test_NoFileNoInput(self):\n writer = btk.btkAcquisitionFileWriter()\n self.assertRaises(RuntimeError, writer.Update)\n # self.assertRaisesRegexp(RuntimeError, 'Filename must be specified', wri... |
import btk
import unittest
import _TDDConfigure
import numpy
class SeparateKnownVirtualMarkersFilterTest(unittest.TestCase):
def test_Constructor(self):
skvm = btk.btkSeparateKnownVirtualMarkersFilter()
labels = skvm.GetVirtualReferenceFrames()
num = 19
self.assertEqual(labels.size(... | [
[
1,
0,
0.003,
0.003,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0059,
0.003,
0,
0.66,
0.25,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0089,
0.003,
0,
0.66,
... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"import numpy",
"class SeparateKnownVirtualMarkersFilterTest(unittest.TestCase):\n def test_Constructor(self):\n skvm = btk.btkSeparateKnownVirtualMarkersFilter()\n labels = skvm.GetVirtualReferenceFrames()\n num = 19\n ... |
import btk
import unittest
import _TDDConfigure
class C3DFileIOTest(unittest.TestCase):
def test_CanReadFileEmpty(self):
pt = btk.btkC3DFileIO()
self.assertEqual(pt.CanReadFile(''), False);
def test_CanReadFileEmptyFile(self):
pt = btk.btkC3DFileIO()
self.assertEqual(pt.Can... | [
[
1,
0,
0.0312,
0.0312,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0938,
0.0312,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class C3DFileIOTest(unittest.TestCase):\n def test_CanReadFileEmpty(self):\n pt = btk.btkC3DFileIO()\n self.assertEqual(pt.CanReadFile(''), False);\n \n def test_CanReadFileEmptyFile(self):\n pt = btk.btkC3DFileIO()\n ... |
import btk
import unittest
import _TDDConfigure
class AcquisitionUnitConverterTest(unittest.TestCase):
def test_NoInputNoConversion(self):
uc = btk.btkAcquisitionUnitConverter()
uc.Update()
output = uc.GetOutput()
self.assertEqual(output.GetPointUnit(btk.btkPoint.Marker), 'mm')
... | [
[
1,
0,
0.0064,
0.0064,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0127,
0.0064,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0191,
0.0064,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class AcquisitionUnitConverterTest(unittest.TestCase):\n def test_NoInputNoConversion(self):\n uc = btk.btkAcquisitionUnitConverter()\n uc.Update()\n output = uc.GetOutput()\n self.assertEqual(output.GetPointUnit(btk.btkP... |
import btk
import unittest
class WrenchTest(unittest.TestCase):
def test_Constructor_default(self):
test = btk.btkWrench()
self.assertEqual(test.GetPosition().GetLabel(), "")
self.assertEqual(test.GetPosition().GetType(), btk.btkPoint.Marker)
self.assertEqual(test.GetForce().GetLabe... | [
[
1,
0,
0.0125,
0.0125,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.025,
0.0125,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.525,
0.9625,
0,
0.66,
... | [
"import btk",
"import unittest",
"class WrenchTest(unittest.TestCase):\n def test_Constructor_default(self):\n test = btk.btkWrench()\n self.assertEqual(test.GetPosition().GetLabel(), \"\")\n self.assertEqual(test.GetPosition().GetType(), btk.btkPoint.Marker)\n self.assertEqual(te... |
import unittest
import C3DFileIOTest
import C3DFileReaderTest
import C3DFileWriterTest
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(C3DFileIOTest.C3DFileIOTest))
suite.addTest(unittest.makeSuite(C3DFileReaderTest.C3DFileReaderTest))
suite.addTest(unittest.makeSuite(C3DFil... | [
[
1,
0,
0.0833,
0.0833,
0,
0.66,
0,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.25,
0.0833,
0,
0.66,
0.25,
80,
0,
1,
0,
0,
80,
0,
0
],
[
1,
0,
0.3333,
0.0833,
0,
0.66,
... | [
"import unittest",
"import C3DFileIOTest",
"import C3DFileReaderTest",
"import C3DFileWriterTest",
"def suite():\n suite = unittest.TestSuite()\n suite.addTest(unittest.makeSuite(C3DFileIOTest.C3DFileIOTest))\n suite.addTest(unittest.makeSuite(C3DFileReaderTest.C3DFileReaderTest))\n suite.addTes... |
import btk
import unittest
class AcquisitionTest(unittest.TestCase):
def test_Constructor(self):
test = btk.btkAcquisition()
self.assertEqual(test.GetPointFrameNumber(), 0)
self.assertEqual(test.GetAnalogFrameNumber(), 0)
self.assertEqual(test.GetPointNumber(), 0)
self.asser... | [
[
1,
0,
0.0085,
0.0085,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0169,
0.0085,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.5169,
0.9746,
0,
0.66,... | [
"import btk",
"import unittest",
"class AcquisitionTest(unittest.TestCase):\n def test_Constructor(self):\n test = btk.btkAcquisition()\n self.assertEqual(test.GetPointFrameNumber(), 0)\n self.assertEqual(test.GetAnalogFrameNumber(), 0)\n self.assertEqual(test.GetPointNumber(), 0)... |
import btk
import unittest
class AnalogTest(unittest.TestCase):
def test_default_ctor(self):
a = btk.btkAnalog()
self.assertEqual(a.GetLabel(), '')
self.assertEqual(a.GetDescription(), '')
self.assertEqual(a.GetFrameNumber(), 0)
self.assertEqual(a.GetUnit(), 'V')
sel... | [
[
1,
0,
0.0049,
0.0049,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0098,
0.0049,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.5098,
0.9853,
0,
0.66,... | [
"import btk",
"import unittest",
"class AnalogTest(unittest.TestCase):\n def test_default_ctor(self):\n a = btk.btkAnalog()\n self.assertEqual(a.GetLabel(), '')\n self.assertEqual(a.GetDescription(), '')\n self.assertEqual(a.GetFrameNumber(), 0)\n self.assertEqual(a.GetUnit... |
# -*- coding: utf-8 -*-
import btk
import unittest
import platform
import _TDDConfigure
class C3DFileReaderTest(unittest.TestCase):
def test_NoFile(self):
reader = btk.btkAcquisitionFileReader()
self.assertRaises(RuntimeError, reader.Update)
# self.assertRaisesRegexp(RuntimeError, 'Filen... | [
[
1,
0,
0.0055,
0.0018,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0073,
0.0018,
0,
0.66,
0.25,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0091,
0.0018,
0,
0.66... | [
"import btk",
"import unittest",
"import platform",
"import _TDDConfigure",
"class C3DFileReaderTest(unittest.TestCase):\n def test_NoFile(self):\n reader = btk.btkAcquisitionFileReader()\n self.assertRaises(RuntimeError, reader.Update)\n # self.assertRaisesRegexp(RuntimeError, 'File... |
import btk
import unittest
import numpy
class IMUTypesTest(unittest.TestCase):
def test_IMUType1(self):
imu = btk.btkIMUType1()
self.assertEqual(imu.GetLabel(), 'IMU')
self.assertEqual(imu.GetDescription(), '')
self.assertEqual(imu.GetType(), 1)
self.assertEqual(imu.GetFrequ... | [
[
1,
0,
0.0109,
0.0109,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0217,
0.0109,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0326,
0.0109,
0,
0.... | [
"import btk",
"import unittest",
"import numpy",
"class IMUTypesTest(unittest.TestCase):\n def test_IMUType1(self):\n imu = btk.btkIMUType1()\n self.assertEqual(imu.GetLabel(), 'IMU')\n self.assertEqual(imu.GetDescription(), '')\n self.assertEqual(imu.GetType(), 1)\n self... |
import btk
import unittest
import numpy
class ForcePlatformTypesTest(unittest.TestCase):
def test_ForcePlatformType1(self):
pf = btk.btkForcePlatformType1()
self.assertEqual(pf.GetType(), 1)
self.assertEqual(numpy.all(pf.GetOrigin() == numpy.zeros((3,1))), True)
self.assertEqual(pf.... | [
[
1,
0,
0.0185,
0.0185,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.037,
0.0185,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0556,
0.0185,
0,
0.6... | [
"import btk",
"import unittest",
"import numpy",
"class ForcePlatformTypesTest(unittest.TestCase):\n def test_ForcePlatformType1(self):\n pf = btk.btkForcePlatformType1()\n self.assertEqual(pf.GetType(), 1)\n self.assertEqual(numpy.all(pf.GetOrigin() == numpy.zeros((3,1))), True)\n ... |
import btk
import unittest
class EventTest(unittest.TestCase):
def test_default_ctor(self):
e = btk.btkEvent()
self.assertEqual(e.GetLabel(), '')
self.assertEqual(e.GetTime(), -1.0)
self.assertEqual(e.GetFrame(), -1)
self.assertEqual(e.GetContext(), '')
self.assertEq... | [
[
1,
0,
0.0077,
0.0077,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0154,
0.0077,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.5154,
0.9769,
0,
0.66,... | [
"import btk",
"import unittest",
"class EventTest(unittest.TestCase):\n def test_default_ctor(self):\n e = btk.btkEvent()\n self.assertEqual(e.GetLabel(), '')\n self.assertEqual(e.GetTime(), -1.0)\n self.assertEqual(e.GetFrame(), -1)\n self.assertEqual(e.GetContext(), '')\n... |
import btk
import unittest
import _TDDConfigure
class VerticalGroundReactionForceGaitEventDetectorTest(unittest.TestCase):
def test_NoWrench(self):
vgrfged = btk.btkVerticalGroundReactionForceGaitEventDetector()
output = vgrfged.GetOutput()
output.Update()
self.assertEqual(output.GetItemNumber(), 0)
... | [
[
1,
0,
0.0042,
0.0042,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0084,
0.0042,
0,
0.66,
0.3333,
88,
0,
1,
0,
0,
88,
0,
0
],
[
1,
0,
0.0126,
0.0042,
0,
0.... | [
"import btk",
"import unittest",
"import _TDDConfigure",
"class VerticalGroundReactionForceGaitEventDetectorTest(unittest.TestCase):\n def test_NoWrench(self):\n vgrfged = btk.btkVerticalGroundReactionForceGaitEventDetector()\n output = vgrfged.GetOutput()\n output.Update()\n self.assertEqual(out... |
import btk
import unittest
class EventCollectionTest(unittest.TestCase):
def test_default_ctor(self):
ec = btk.btkEventCollection()
self.assertEqual(ec.GetItemNumber(), 0)
def test_item_number(self):
ec = btk.btkEventCollection()
ec.SetItemNumber(5)
self.assertE... | [
[
1,
0,
0.0024,
0.0024,
0,
0.66,
0,
614,
0,
1,
0,
0,
614,
0,
0
],
[
1,
0,
0.0047,
0.0024,
0,
0.66,
0.5,
88,
0,
1,
0,
0,
88,
0,
0
],
[
3,
0,
0.5047,
0.9929,
0,
0.66,... | [
"import btk",
"import unittest",
"class EventCollectionTest(unittest.TestCase):\n def test_default_ctor(self):\n ec = btk.btkEventCollection()\n self.assertEqual(ec.GetItemNumber(), 0)\n \n def test_item_number(self):\n ec = btk.btkEventCollection()\n ec.SetItemNumber(5)... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0151,
0.0102,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0211,
0.0006,
0,
0.66,
0.0149,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0217,
0.0006,
0,
0.66... | [
"\"\"\"Enforces schema and verifies course files for referential integrity.\n\nUse this script to verify referential integrity of your course definition files\nbefore you import them into the production instance of Google AppEngine.\n\nHere is how to use the script:\n - prepare your course files\n - edi... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0968,
0.0065,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1097,
0.0065,
0,
0.66,
0.0769,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1226,
0.0065,
0,
0.66,... | [
"\"\"\"Allows export of Lessons and Units to other systems.\"\"\"",
"__author__ = 'psimakov@google.com (Pavel Simakov)'",
"from datetime import datetime",
"import os",
"import verify",
"RELEASE_TAG = '1.0'",
"def echo(unused_x):\n pass",
"JS_GCB_REGEX = \"\"\"\nfunction gcb_regex(base, modifiers) {... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1104,
0.0429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1472,
0.0184,
0,
0.66,
0.0909,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1656,
0.0061,
0,
0.66,... | [
"\"\"\"Examples of custom extract-transform-load jobs.\n\nCustom jobs are run via tools/etl/etl.py. You must do environment setup before\netl.py can be invoked; see its module docstring for details.\n\nSee tools/etl/etl_lib.py for documentation on writing Job subclasses.\n\"\"\"",
"__author__ = [\n 'johncox@go... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1034,
0.0069,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1241,
0.0207,
0,
0.66,
0.0476,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1448,
0.0069,
0,
0.66,... | [
"\"\"\"Remote environment manager for extract-transform-load utilities.\"\"\"",
"__author__ = [\n 'johncox@google.com',\n]",
"import os",
"import sys",
"import appengine_config",
"SERVER_SOFTWARE = 'Production Emulation'",
"if appengine_config.PRODUCTION_MODE:\n sys.exit('Running etl/tools/remote.... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.2027,
0.0135,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2297,
0.0135,
0,
0.66,
0.1,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.2432,
0.0135,
0,
0.66,
... | [
"\"\"\"ETL testing utilities.\"\"\"",
"import copy",
"import cStringIO",
"import logging",
"import os",
"from controllers import sites",
"from tests.functional import actions",
"from tools.etl import etl",
"from tools.etl import remote",
"class EtlTestBase(actions.TestBase):\n # Allow access to... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0297,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0356,
0.0059,
0,
0.66,
0.0714,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0416,
0.002,
0,
0.66,
... | [
"\"\"\"Example of custom MapReduce jobs.\"\"\"",
"__author__ = [\n 'juliaoh@google.com (Julia Oh)',\n]",
"import sys",
"import mapreduce",
"from models import transforms",
"_POS_LIMIT_SECONDS = 60 * 8",
"_SUM = 'sum'",
"class CsvStudentEventAccumulationPipeline(mapreduce.CsvGenerator):\n \"\"\"E... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0337,
0.0022,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0416,
0.009,
0,
0.66,
0.0435,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0494,
0.0022,
0,
0.66,
... | [
"\"\"\"MapReduce extensions for ETL.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n 'juliaoh@google.com (Julia Oh)',\n]",
"import csv",
"import os",
"import sys",
"from xml.etree import ElementTree",
"import mrs",
"from models import transforms",
"from tools.etl import etl_lib",
... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.067,
0.0045,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0804,
0.0134,
0,
0.66,
0.1,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0938,
0.0045,
0,
0.66,
... | [
"\"\"\"Libraries for writing extract-transform-load scripts.\"\"\"",
"__author__ = [\n 'johncox@google.com',\n]",
"import argparse",
"import datetime",
"import time",
"from controllers import sites",
"from models import courses",
"def get_context(course_url_prefix):\n \"\"\"Gets requested applic... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0469,
0.0031,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0531,
0.0031,
0,
0.66,
0.0333,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0594,
0.0031,
0,
0.66,... | [
"\"\"\"Module providing handlers for URLs related to map/reduce and pipelines.\"\"\"",
"__author__ = 'Mike Gainer (mgainer@google.com)'",
"import datetime",
"import re",
"import urllib",
"from mapreduce import main as mapreduce_main",
"from mapreduce import parameters as mapreduce_parameters",
"from m... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.2,
0.0133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2267,
0.0133,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2533,
0.0133,
0,
0.66,
0... | [
"\"\"\"Sample announcements.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import datetime",
"SAMPLE_ANNOUNCEMENT_1 = {\n 'edit_url': None,\n 'title': 'Example Announcement',\n 'date': datetime.date(2012, 10, 6),\n 'is_draft': False,\n 'html': \"\"\"\n <br>Certificates w... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0366,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0415,
0.0024,
0,
0.66,
0.0312,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0488,
0.0024,
0,
0.66,... | [
"\"\"\"Classes and methods to create and manage Announcements.\"\"\"",
"__author__ = 'Saifu Angto (saifu@google.com)'",
"import datetime",
"import urllib",
"from common import tags",
"from common import utils",
"from common.schema_fields import FieldArray",
"from common.schema_fields import FieldRegis... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0188,
0.0013,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0214,
0.0013,
0,
0.66,
0.0227,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0239,
0.0013,
0,
0.66,... | [
"\"\"\"Resources to be indexed and searched over by the search module.\"\"\"",
"__author__ = 'Ellis Michael (emichael@google.com)'",
"import collections",
"import datetime",
"import gettext",
"import HTMLParser",
"import logging",
"import operator",
"import os",
"import Queue",
"import re",
"i... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.3106,
0.1818,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4242,
0.0152,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4545,
0.0152,
0,
0.66,
... | [
"\"\"\"Provide data sources of common CourseBuilder items.\n\nIf you are adding an extension module to CourseBuilder and you wish to include\na data source as part of that extension, you should add that class in the\ndirectory specific to your module, rather than registering it here. That way,\nif your module need... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0296,
0.002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0335,
0.002,
0,
0.66,
0.0526,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0375,
0.002,
0,
0.66,
... | [
"\"\"\"Provide data sources performing synchronous (non-paginated) reads.\"\"\"",
"__author__ = 'Sean Lip (sll@google.com)'",
"import logging",
"import urlparse",
"from common import safe_dom",
"from models import courses",
"from models import data_sources",
"from models import jobs",
"from models i... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0394,
0.0026,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0446,
0.0026,
0,
0.66,
0.0625,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0499,
0.0026,
0,
0.66,... | [
"\"\"\"Classes providing REST data sources for common CourseBuilder items.\"\"\"",
"__author__ = 'Mike Gainer (mgainer@google.com)'",
"from common import schema_fields",
"from common import utils",
"from models import courses",
"from models import data_sources",
"from models import jobs",
"from models... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0533,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0804,
0.0022,
0,
0.66,
0.0263,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0848,
0.0022,
0,
0.66,... | [
"\"\"\"Provide the capability for registered students to invite others.\n\nSetup:\n Include the text of the invitation email in course.yaml with the key:\n\n course:\n invitation_email:\n sender_email: <email_address_in_from_field>",
"__author__ = 'John Orr (jorr@google.com)'",
"import gette... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0493,
0.0033,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0559,
0.0033,
0,
0.66,
0.0588,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0625,
0.0033,
0,
0.66,... | [
"\"\"\"Module for implementing question tags.\"\"\"",
"__author__ = 'sll@google.com (Sean Lip)'",
"import logging",
"import os",
"import jinja2",
"import appengine_config",
"from common import jinja_utils",
"from common import schema_fields",
"from common import tags",
"from models import custom_m... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0452,
0.003,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0512,
0.003,
0,
0.66,
0.0455,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0572,
0.003,
0,
0.66,
... | [
"\"\"\"Generic object editor view that uses REST services.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import os",
"import urllib",
"import jinja2",
"import webapp2",
"import appengine_config",
"from common import jinja_utils",
"from common import schema_fields",
"from common im... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1744,
0.0116,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1977,
0.0116,
0,
0.66,
0.0769,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2209,
0.0116,
0,
0.66,... | [
"\"\"\"Course explorer module.\"\"\"",
"__author__ = 'Rahul Singal (rahulsingal@google.com)'",
"from common import safe_dom",
"from controllers import utils",
"from models import custom_modules",
"from models.config import ConfigProperty",
"from models.models import StudentProfileDAO",
"from modules.c... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0508,
0.0034,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0576,
0.0034,
0,
0.66,
0.04,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0644,
0.0034,
0,
0.66,
... | [
"\"\"\"Classes supporting courses viewed by a student.\"\"\"",
"__author__ = 'Rahul Singal (rahulsingal@google.com)'",
"import mimetypes",
"import course_explorer",
"import webapp2",
"import appengine_config",
"from common import jinja_utils",
"from controllers import sites",
"from controllers.utils... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.3409,
0.0227,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3864,
0.0227,
0,
0.66,
0.1429,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4318,
0.0227,
0,
0.66,... | [
"\"\"\"Messages used in the admin panel.\"\"\"",
"__author__ = 'John Orr (jorr@google.com)'",
"from common import safe_dom",
"def assemble_sanitized_message(text, link):\n node_list = safe_dom.NodeList()\n if text:\n node_list.append(safe_dom.Text(text))\n if link:\n node_list.append(sa... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0185,
0.0012,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0209,
0.0012,
0,
0.66,
0.0278,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0234,
0.0012,
0,
0.66,... | [
"\"\"\"Site administration functionality.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import cgi",
"import cStringIO",
"import datetime",
"import os",
"import sys",
"import time",
"import urllib",
"import messages",
"import appengine_config",
"from common import jinja_utils"... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0363,
0.0024,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0412,
0.0024,
0,
0.66,
0.0476,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.046,
0.0024,
0,
0.66,
... | [
"\"\"\"Classes supporting configuration property editor and REST operations.\"\"\"",
"__author__ = 'Pavel Simakov (psimakov@google.com)'",
"import cgi",
"import urllib",
"from controllers import sites",
"from controllers.utils import BaseRESTHandler",
"from controllers.utils import XsrfTokenManager",
... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.047,
0.0031,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0564,
0.0094,
0,
0.66,
0.0588,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.0658,
0.0031,
0,
0.66,
... | [
"\"\"\"ETL jobs for the i18n dashboard.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import logging",
"import os",
"import sys",
"import zipfile",
"from babel import localedata",
"from common import utils as common_utils",
"from models import courses",
"from modules.i18n_das... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1901,
0.2441,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3239,
0.0141,
0,
0.66,
0.0476,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.338,
0.0047,
0,
0.66,
... | [
"\"\"\"Oauth2 module implementation.\n\nIn order to use this module with your app you must enable it in main.py by\nchanging\n\n modules.oauth2.oauth2.register_module()\n\nto",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import os",
"import traceback",
"from apiclient import discovery",
... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1119,
0.0075,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1269,
0.0075,
0,
0.66,
0.1,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1343,
0.0075,
0,
0.66,
... | [
"\"\"\"Classes to provide a tag to embed activities into lesson bodies.\"\"\"",
"import os",
"from xml.etree import cElementTree",
"from common import schema_fields",
"from common import tags",
"from models import courses",
"from models import custom_modules",
"_RESOURCES_PATH = os.path.join(\n os.... |
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
14,
0,
0.1352,
0.0328,
0,
0.66,
0,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1639,
0.0082,
0,
0.66,
0.0769,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.1721,
0.0082,
0,
0... | [
"__author__ = [\n 'Neema Kotonya (neemak@google.com)',\n 'Gun Pinyo (gunpinyo@google.com)'\n]",
"import os",
"from xml.etree import cElementTree",
"import appengine_config",
"from common import schema_fields",
"from common import tags",
"from controllers import sites",
"from models import custom... |
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1339,
0.0089,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1518,
0.0089,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1696,
0.0089,
0,
0.66,... | [
"\"\"\"Classes for displaying peer review analytics.\"\"\"",
"__author__ = 'Sean Lip (sll@google.com)'",
"from models import analytics",
"from models import courses",
"from models import data_sources",
"from models import jobs",
"from models import transforms",
"from modules.dashboard import tabs",
... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.1389,
0.0093,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1667,
0.0278,
0,
0.66,
0.1,
777,
0,
0,
0,
0,
0,
5,
0
],
[
1,
0,
0.1944,
0.0093,
0,
0.66,
... | [
"\"\"\"Cron job definitions for the review subsystem.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"import logging",
"from controllers import sites",
"from controllers import utils",
"from models import courses",
"from modules.review import review",
"from google.appengine.api imp... |
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
[
8,
0,
0.0573,
0.0038,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0687,
0.0115,
0,
0.66,
0.0526,
777,
0,
0,
0,
0,
0,
5,
0
],
[
14,
0,
0.084,
0.0038,
0,
0.66,... | [
"\"\"\"Domain objects and constants for use by internal and external clients.\"\"\"",
"__author__ = [\n 'johncox@google.com (John Cox)',\n]",
"ASSIGNER_KIND_AUTO = 'AUTO'",
"ASSIGNER_KIND_HUMAN = 'HUMAN'",
"ASSIGNER_KINDS = (\n ASSIGNER_KIND_AUTO,\n ASSIGNER_KIND_HUMAN,\n)",
"MAX_UNREMOVED_REVIEW... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.