code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/python2.4
#
# Copyright 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 law o... | [
[
8,
0,
0.3558,
0.0769,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4231,
0.0192,
0,
0.66,
0.1667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4615,
0.0192,
0,
0.66,... | [
"\"\"\"Http tests\n\nUnit tests for the apiclient.http.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import unittest",
"from apiclient.http import set_user_agent",
"from apiclient.http import HttpMockSequence",
"class TestUserAgent(unittest.TestCase):\n\n def test_set_user_agent(self... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
# Copyright 2010 Google Inc. All Rights Reserved.
"""Classes to encapsulate a single HTTP request.
The classes implement a command pattern, with every
object supporting an execute() method that does the
actuall HTTP request.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
__all__ = [
'HttpRequest', 'Requ... | [
[
8,
0,
0.0176,
0.0192,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0321,
0.0032,
0,
0.66,
0.0714,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0401,
0.0128,
0,
0.66... | [
"\"\"\"Classes to encapsulate a single HTTP request.\n\nThe classes implement a command pattern, with every\nobject supporting an execute() method that does the\nactuall HTTP request.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"__all__ = [\n 'HttpRequest', 'RequestMockBuilder', 'HttpMoc... |
# Copyright 2010 Google Inc. All Rights Reserved.
"""Utilities for OAuth.
Utilities for making it easier to work with OAuth.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
import copy
import httplib2
import logging
import oauth2 as oauth
import urllib
import urlparse
from anyjson import simplejson
try:
... | [
[
8,
0,
0.0138,
0.0122,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0245,
0.0031,
0,
0.66,
0.05,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0336,
0.0031,
0,
0.66,
... | [
"\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import copy",
"import httplib2",
"import logging",
"import oauth2 as oauth",
"import urllib",
"import urlparse",
"from anyjson import simplejson",
"tr... |
#!/usr/bin/python2.4
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Model objects for requests and responses.
Each API may support one or more serializations, such
as JSON, Atom, etc. The model classes are responsible
for converting between the wire format and the Python
object representation.
"""
__author__... | [
[
8,
0,
0.0342,
0.0299,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0556,
0.0043,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0641,
0.0043,
0,
0.66,... | [
"\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import... |
#!/usr/bin/python2.4
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Model objects for requests and responses.
Each API may support one or more serializations, such
as JSON, Atom, etc. The model classes are responsible
for converting between the wire format and the Python
object representation.
"""
__author__... | [
[
8,
0,
0.0342,
0.0299,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0556,
0.0043,
0,
0.66,
0.0833,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0641,
0.0043,
0,
0.66,... | [
"\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import... |
#!/usr/bin/python2.4
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Errors for the library.
All exceptions defined by the library
should be defined in this file.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
from anyjson import simplejson
class Error(Exception):
"""Base error for this module.... | [
[
8,
0,
0.1167,
0.0833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1833,
0.0167,
0,
0.66,
0.1667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2333,
0.0167,
0,
0.66,... | [
"\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"from anyjson import simplejson",
"class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass",
" \"\"\"Base error for th... |
# Copyright 2010 Google Inc. All Rights Reserved.
"""Utilities for OAuth.
Utilities for making it easier to work with OAuth 1.0 credentials.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
import pickle
import threading
from apiclient.oauth import Storage as BaseStorage
class Storage(BaseStorage):
"""S... | [
[
8,
0,
0.0882,
0.0784,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1569,
0.0196,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1961,
0.0196,
0,
0.66,
... | [
"\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import pickle",
"import threading",
"from apiclient.oauth import Storage as BaseStorage",
"class Storage(BaseStorage):\n \"\"\"Store and retr... |
import apiclient
import base64
import pickle
from django.db import models
class OAuthCredentialsField(models.Field):
__metaclass__ = models.SubfieldBase
def db_type(self):
return 'VARCHAR'
def to_python(self, value):
if value is None:
return None
if isinstance(value, apiclient.oauth.Creden... | [
[
1,
0,
0.0238,
0.0238,
0,
0.66,
0,
629,
0,
1,
0,
0,
629,
0,
0
],
[
1,
0,
0.0476,
0.0238,
0,
0.66,
0.2,
177,
0,
1,
0,
0,
177,
0,
0
],
[
1,
0,
0.0714,
0.0238,
0,
0.6... | [
"import apiclient",
"import base64",
"import pickle",
"from django.db import models",
"class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):",
" __metaclass__ = models.SubfieldBase",
" def db_t... |
# 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 law or agreed to in writ... | [
[
8,
0,
0.1259,
0.037,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1556,
0.0074,
0,
0.66,
0.125,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1704,
0.0074,
0,
0.66,
... | [
"\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import pickle",
"from google.appengine.ext import db",
"from apiclient.oauth import OAuthCredentials",
"... |
#!/usr/bin/python2.4
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Errors for the library.
All exceptions defined by the library
should be defined in this file.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
from anyjson import simplejson
class Error(Exception):
"""Base error for this module.... | [
[
8,
0,
0.1167,
0.0833,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1833,
0.0167,
0,
0.66,
0.1667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2333,
0.0167,
0,
0.66,... | [
"\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"from anyjson import simplejson",
"class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass",
" \"\"\"Base error for th... |
# 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 law or agreed to in writ... | [
[
8,
0,
0.5312,
0.1562,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.6562,
0.0312,
0,
0.66,
0.5,
777,
1,
0,
0,
0,
0,
3,
0
],
[
7,
0,
0.875,
0.2812,
0,
0.66,
... | [
"\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from... |
# Early, and incomplete implementation of -04.
#
import re
import urllib
RESERVED = ":/?#[]@!$&'()*+,;="
OPERATOR = "+./;?|!@"
EXPLODE = "*+"
MODIFIER = ":^"
TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE)
VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part... | [
[
1,
0,
0.0204,
0.0068,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0272,
0.0068,
0,
0.66,
0.0833,
614,
0,
1,
0,
0,
614,
0,
0
],
[
14,
0,
0.0408,
0.0068,
0,
... | [
"import re",
"import urllib",
"RESERVED = \":/?#[]@!$&'()*+,;=\"",
"OPERATOR = \"+./;?|!@\"",
"EXPLODE = \"*+\"",
"MODIFIER = \":^\"",
"TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)",
"VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
"""SocksiPy - Python SOCKS module.
Version 1.00
Copyright 2006 Dan-Haim. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
... | [
[
8,
0,
0.0364,
0.0705,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
8,
0,
0.0841,
0.0205,
0,
0.66,
0.0455,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0977,
0.0023,
0,
0.66,
... | [
"\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ... |
"""
iri2uri
Converts an IRI to a URI.
"""
__author__ = "Joe Gregorio (joe@bitworking.org)"
__copyright__ = "Copyright 2006, Joe Gregorio"
__contributors__ = []
__version__ = "1.0.0"
__license__ = "MIT"
__history__ = """
"""
import urlparse
# Convert an IRI to a URI following the rules in RFC 3987
#
# The characte... | [
[
8,
0,
0.0318,
0.0545,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0636,
0.0091,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0727,
0.0091,
0,
0.66... | [
"\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"",
"__author__ = \"Joe Gregorio (joe@bitworking.org)\"",
"__copyright__ = \"Copyright 2006, Joe Gregorio\"",
"__contributors__ = []",
"__version__ = \"1.0.0\"",
"__license__ = \"MIT\"",
"__history__ = \"\"\"\n\"\"\"",
"import urlparse",
"escape_... |
#!/usr/bin/python2.4
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Discovery document tests
Functional tests that verify we can retrieve data from existing services.
"""
__author__ = 'ade@google.com (Ade Oshineye)'
import httplib2
import pprint
from apiclient.discovery import build
import httplib2
import ... | [
[
8,
0,
0.0233,
0.0143,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0358,
0.0036,
0,
0.66,
0.0667,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.043,
0.0036,
0,
0.66,
... | [
"\"\"\"Discovery document tests\n\nFunctional tests that verify we can retrieve data from existing services.\n\"\"\"",
"__author__ = 'ade@google.com (Ade Oshineye)'",
"import httplib2",
"import pprint",
"from apiclient.discovery import build",
"import httplib2",
"import logging",
"import pickle",
"i... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for running against a
local server.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
# Enable this sample to be run from the top-level directory
import os
import sys
sys.path.inse... | [
[
8,
0,
0.2027,
0.1081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2973,
0.027,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3784,
0.027,
0,
0.66,
... | [
"\"\"\"Simple command-line example for running against a\n local server.\n\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import os",
"import sys",
"sys.path.insert(0, os.getcwd())",
"from apiclient.discovery import build",
"import httplib2",
"import pickle",
"import pprint",
"... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for running against a
local server.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
# Enable this sample to be run from the top-level directory
import os
import sys
sys.path.inse... | [
[
8,
0,
0.2027,
0.1081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2973,
0.027,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.3784,
0.027,
0,
0.66,
... | [
"\"\"\"Simple command-line example for running against a\n local server.\n\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import os",
"import sys",
"sys.path.insert(0, os.getcwd())",
"from apiclient.discovery import build",
"import httplib2",
"import pickle",
"import pprint",
"... |
#!/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.1622,
0.009,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1892,
0.009,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.1982,
0.009,
0,
0.66,
... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.clien... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.1622,
0.009,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1892,
0.009,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.1982,
0.009,
0,
0.66,
... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.clien... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for Latitude.
Command-line application that sets the users
current location.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
import httplib2
from apiclient.discovery import build
... | [
[
8,
0,
0.1356,
0.0847,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2034,
0.0169,
0,
0.66,
0.1111,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2373,
0.0169,
0,
0.66,... | [
"\"\"\"Simple command-line example for Latitude.\n\nCommand-line application that sets the users\ncurrent location.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"from apiclient.discovery import build",
"from oauth2client.file import Storage",
"from oauth2client.clien... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for Latitude.
Command-line application that sets the users
current location.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
import httplib2
from apiclient.discovery import build
... | [
[
8,
0,
0.1356,
0.0847,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2034,
0.0169,
0,
0.66,
0.1111,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2373,
0.0169,
0,
0.66,... | [
"\"\"\"Simple command-line example for Latitude.\n\nCommand-line application that sets the users\ncurrent location.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"from apiclient.discovery import build",
"from oauth2client.file import Storage",
"from oauth2client.clien... |
#!/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.1651,
0.0092,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1927,
0.0092,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2018,
0.0092,
0,
0.6... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.clien... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.1651,
0.0092,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1927,
0.0092,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2018,
0.0092,
0,
0.6... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.clien... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
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.buzz.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",
... |
#!/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.39,
... | [
"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... |
#!/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.31,
... | [
"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 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.buzz.views.index'),
(r'^auth_return', 'django_sample.buzz.views.auth_return'),
# Unc... | [
[
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.buzz.views.index'),\n (r'^auth_return', 'django_sample.buzz.views.auth_return'),\n\n # Uncomment the admin/doc lin... |
# 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.0241,
0.012,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
14,
0,
0.0482,
0.012,
0,
0.66,
0.0435,
309,
1,
0,
0,
0,
0,
4,
0
],
[
14,
0,
0.0602,
0.012,
0,
0.6... | [
"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 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for Latitude.
Command-line application that sets the users
current location.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
from apiclient.discovery import build
import httplib2... | [
[
8,
0,
0.1176,
0.0735,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1765,
0.0147,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2206,
0.0147,
0,
0.66,
... | [
"\"\"\"Simple command-line example for Latitude.\n\nCommand-line application that sets the users\ncurrent location.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"from apiclient.discovery import build",
"import httplib2",
"import pickle",
"from apiclient.discovery import build",
"from... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for Latitude.
Command-line application that sets the users
current location.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
from apiclient.discovery import build
import httplib2... | [
[
8,
0,
0.1176,
0.0735,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1765,
0.0147,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2206,
0.0147,
0,
0.66,
... | [
"\"\"\"Simple command-line example for Latitude.\n\nCommand-line application that sets the users\ncurrent location.\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"from apiclient.discovery import build",
"import httplib2",
"import pickle",
"from apiclient.discovery import build",
"from... |
#!/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.0455,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2075,
0.0094,
0,
0... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from apiclient.ext.appengine import FlowThreeLeggedProperty",
"from apiclient.ext.appengine import OAuthCredentialsProperty",
"from apic... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.0455,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2075,
0.0094,
0,
0... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from apiclient.ext.appengine import FlowThreeLeggedProperty",
"from apiclient.ext.appengine import OAuthCredentialsProperty",
"from apic... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.
"""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.
"""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.
"""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.
"""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.
"""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/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 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.1837,
0.0102,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2143,
0.0102,
0,
0.66,
0.0625,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2245,
0.0102,
0,
0... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import inspect",
"import os",
"import pydoc",
"import re",
"from apiclient.discovery import build",
"from apiclient.anyjson import simplejson",
"from google.appengine.api import memcache",
"from google.appengine.ext import ... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.1837,
0.0102,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2143,
0.0102,
0,
0.66,
0.0625,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2245,
0.0102,
0,
0... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import inspect",
"import os",
"import pydoc",
"import re",
"from apiclient.discovery import build",
"from apiclient.anyjson import simplejson",
"from google.appengine.api import memcache",
"from google.appengine.ext import ... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.1651,
0.0092,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1927,
0.0092,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2018,
0.0092,
0,
0.6... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.clien... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/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.1651,
0.0092,
0,
0.66,
0,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1927,
0.0092,
0,
0.66,
0.05,
273,
0,
1,
0,
0,
273,
0,
0
],
[
1,
0,
0.2018,
0.0092,
0,
0.6... | [
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"import httplib2",
"import logging",
"import os",
"import pickle",
"from apiclient.discovery import build",
"from oauth2client.appengine import CredentialsProperty",
"from oauth2client.appengine import StorageByKeyName",
"from oauth2client.clien... |
#!/usr/bin/env python
# Copyright (c) 2010, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... | [
[
8,
0,
0.1818,
0.0267,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2032,
0.0053,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
3,
0,
0.2219,
0.0107,
0,
0.66,
... | [
"\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in flags.py's docstring for a usage manual.\n\"\"\"",
"__author__ = 'olexiy@google.com (Olexiy Oryeshko)'",
"class Error(Exception):\n \"\"\"Thrown If vali... |
#!/usr/bin/python2.4
#
# -*- coding: utf-8 -*-
#
# Copyright 2011 Google Inc. All Rights Reserved.
"""Simple command-line example for Google Prediction API.
Command-line application that trains on some data. This
sample does the same thing as the Hello Prediction! example.
http://code.google.com/apis/predict/docs/... | [
[
8,
0,
0.1266,
0.0886,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1899,
0.0127,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2152,
0.0127,
0,
0.66,... | [
"\"\"\"Simple command-line example for Google Prediction API.\n\nCommand-line application that trains on some data. This\nsample does the same thing as the Hello Prediction! example.\n\n http://code.google.com/apis/predict/docs/hello_world.html\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"... |
#!/usr/bin/python2.4
#
# -*- coding: utf-8 -*-
#
# Copyright 2011 Google Inc. All Rights Reserved.
"""Simple command-line example for Google Prediction API.
Command-line application that trains on some data. This
sample does the same thing as the Hello Prediction! example.
http://code.google.com/apis/predict/docs/... | [
[
8,
0,
0.1266,
0.0886,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1899,
0.0127,
0,
0.66,
0.0909,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2152,
0.0127,
0,
0.66,... | [
"\"\"\"Simple command-line example for Google Prediction API.\n\nCommand-line application that trains on some data. This\nsample does the same thing as the Hello Prediction! example.\n\n http://code.google.com/apis/predict/docs/hello_world.html\n\"\"\"",
"__author__ = 'jcgregorio@google.com (Joe Gregorio)'",
"... |
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.buzz.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",
... |
#!/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.97,
... | [
"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... |
#!/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.04,
... | [
"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 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.buzz.views.index'),
(r'^auth_return', 'django_sample.buzz.views.auth_return'),
# Unc... | [
[
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.buzz.views.index'),\n (r'^auth_return', 'django_sample.buzz.views.auth_return'),\n\n # Uncomment the admin/doc lin... |
# 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 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for Custom Search.
Command-line application that does a search.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
from apiclient.discovery import build
import pprint
# Uncomment th... | [
[
8,
0,
0.2419,
0.129,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3548,
0.0323,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4194,
0.0323,
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)'",
"from apiclient.discovery import build",
"import pprint",
"def main():\n service = build(\"customsearch\", \"v1\",\n developerKey... |
#!/usr/bin/python2.4
# -*- coding: utf-8 -*-
#
# Copyright 2010 Google Inc. All Rights Reserved.
"""Simple command-line example for Custom Search.
Command-line application that does a search.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
from apiclient.discovery import build
import pprint
# Uncomment th... | [
[
8,
0,
0.2419,
0.129,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3548,
0.0323,
0,
0.66,
0.2,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.4194,
0.0323,
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)'",
"from apiclient.discovery import build",
"import pprint",
"def main():\n service = build(\"customsearch\", \"v1\",\n developerKey... |
'''
Created on 29/03/2011
@author: Eran_Z
Searching
'''
from math import log
import random
import sys
import google_m
def __search(searchStr):
"""Searches given search string on the web.
Returns number of hits."""
temp = int(sys.maxint*random.random())
print searchStr + " : " + str(... | [
[
8,
0,
0.0588,
0.1029,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1324,
0.0147,
0,
0.66,
0.1,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.1471,
0.0147,
0,
0.66,
... | [
"'''\nCreated on 29/03/2011\n\n@author: Eran_Z\n\nSearching\n'''",
"from math import log",
"import random",
"import sys",
"import google_m",
"def __search(searchStr):\n \"\"\"Searches given search string on the web.\n Returns number of hits.\"\"\"\n temp = int(sys.maxint*random.random())\n pri... |
'''
Created on 27/03/2011
@author: Eran_Z
Feasibility study (main)
'''
import weights_m
import scores_m
import io_m
def generateWeights(algorithm, context, world):
"""Generates a list of weights for the context items.
This is a list of numbers (preferrably positive)"""
return algorithm(co... | [
[
8,
0,
0.0667,
0.1167,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.15,
0.0167,
0,
0.66,
0.1429,
760,
0,
1,
0,
0,
760,
0,
0
],
[
1,
0,
0.1667,
0.0167,
0,
0.66,
... | [
"'''\nCreated on 27/03/2011\n\n@author: Eran_Z\n\nFeasibility study (main)\n'''",
"import weights_m",
"import scores_m",
"import io_m",
"def generateWeights(algorithm, context, world):\n \"\"\"Generates a list of weights for the context items.\n This is a list of numbers (preferrably positive)\"\"\"\n... |
#!/usr/bin/env python
"""
generatepot.py script.
This script generates the imdbpy.pot file, from the DTD.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
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 Foundati... | [
[
1,
0,
0.2,
0.2,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.4,
0.2,
0,
0.66,
0.5,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.8,
0.2,
0,
0.66,
1,
426,... | [
"import re",
"import sys",
"from datetime import datetime as dt"
] |
#!/usr/bin/env python
"""
generatepot.py script.
This script generates the imdbpy.pot file, from the DTD.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
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 Foundati... | [
[
1,
0,
0.2,
0.2,
0,
0.66,
0,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.4,
0.2,
0,
0.66,
0.5,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.8,
0.2,
0,
0.66,
1,
426,... | [
"import re",
"import sys",
"from datetime import datetime as dt"
] |
#!/usr/bin/env python
"""
rebuildmo.py script.
This script builds the .mo files, from the .po files.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
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; e... | [
[
8,
0,
0.2449,
0.4286,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4898,
0.0204,
0,
0.66,
0.2,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.5102,
0.0204,
0,
0.66,
... | [
"\"\"\"\nrebuildmo.py script.\n\nThis script builds the .mo files, from the .po files.\n\nCopyright 2009 H. Turgut Uyar <uyar@tekir.org>\n\nThis program is free software; you can redistribute it and/or modify",
"import glob",
"import msgfmt",
"import os",
"def rebuildmo():\n lang_glob = 'imdbpy-*.po'\n ... |
#!/usr/bin/env python
"""
rebuildmo.py script.
This script builds the .mo files, from the .po files.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
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; e... | [
[
8,
0,
0.2449,
0.4286,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4898,
0.0204,
0,
0.66,
0.2,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.5102,
0.0204,
0,
0.66,
... | [
"\"\"\"\nrebuildmo.py script.\n\nThis script builds the .mo files, from the .po files.\n\nCopyright 2009 H. Turgut Uyar <uyar@tekir.org>\n\nThis program is free software; you can redistribute it and/or modify",
"import glob",
"import msgfmt",
"import os",
"def rebuildmo():\n lang_glob = 'imdbpy-*.po'\n ... |
"""
locale package (imdb package).
This package provides scripts and files for internationalization
of IMDbPY.
Copyright 2009 H. Turgut Uyar <uyar@tekir.org>
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 Fou... | [
[
8,
0,
0.3966,
0.7586,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.8276,
0.0345,
0,
0.66,
0.25,
723,
0,
1,
0,
0,
723,
0,
0
],
[
1,
0,
0.8621,
0.0345,
0,
0.66,
... | [
"\"\"\"\nlocale package (imdb package).\n\nThis package provides scripts and files for internationalization\nof IMDbPY.\n\nCopyright 2009 H. Turgut Uyar <uyar@tekir.org>",
"import gettext",
"import os",
"LOCALE_DIR = os.path.dirname(__file__)",
"gettext.bindtextdomain('imdbpy', LOCALE_DIR)"
] |
"""
Movie module (imdb package).
This module provides the Movie class, used to store information about
a given movie.
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
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 F... | [
[
8,
0,
0.0289,
0.0553,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0603,
0.0025,
0,
0.66,
0.25,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0653,
0.0025,
0,
0.66,
... | [
"\"\"\"\nMovie module (imdb package).\n\nThis module provides the Movie class, used to store information about\na given movie.\n\nCopyright 2004-2010 Davide Alberani <da@erlug.linux.it>",
"from copy import deepcopy",
"from imdb import articles",
"from imdb.utils import analyze_title, build_title, canonicalTit... |
"""
Person module (imdb package).
This module provides the Person class, used to store information about
a given person.
Copyright 2004-2010 Davide Alberani <da@erlug.linux.it>
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
th... | [
[
8,
0,
0.0418,
0.08,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0873,
0.0036,
0,
0.66,
0.3333,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0964,
0.0073,
0,
0.66,
... | [
"\"\"\"\nPerson module (imdb package).\n\nThis module provides the Person class, used to store information about\na given person.\n\nCopyright 2004-2010 Davide Alberani <da@erlug.linux.it>",
"from copy import deepcopy",
"from imdb.utils import analyze_name, build_name, normalizeName, \\\n ... |
"""
Character module (imdb package).
This module provides the Character class, used to store information about
a given character.
Copyright 2007-2010 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... | [
[
8,
0,
0.0584,
0.1117,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1218,
0.0051,
0,
0.66,
0.3333,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.132,
0.0051,
0,
0.66,... | [
"\"\"\"\nCharacter module (imdb package).\n\nThis module provides the Character class, used to store information about\na given character.\n\nCopyright 2007-2010 Davide Alberani <da@erlug.linux.it>",
"from copy import deepcopy",
"from imdb.utils import analyze_name, build_name, flatten, _Container, cmpPeople",
... |
#-*- encoding: utf-8 -*-
"""
parser.sql.dbschema module (imdb.parser.sql package).
This module provides the schema used to describe the layout of the
database used by the imdb.parser.sql package; functions to create/drop
tables and indexes are also provided.
Copyright 2005-2010 Davide Alberani <da@erlug.linux.it>
... | [
[
8,
0,
0.0293,
0.0521,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0586,
0.0022,
0,
0.66,
0.0526,
715,
0,
1,
0,
0,
715,
0,
0
],
[
14,
0,
0.0629,
0.0022,
0,
0.6... | [
"\"\"\"\nparser.sql.dbschema module (imdb.parser.sql package).\n\nThis module provides the schema used to describe the layout of the\ndatabase used by the imdb.parser.sql package; functions to create/drop\ntables and indexes are also provided.\n\nCopyright 2005-2010 Davide Alberani <da@erlug.linux.it>",
"import l... |
"""
parser.http.movieParser module (imdb package).
This module provides the classes (and the instances), used to parse the
IMDb pages on the akas.imdb.com server about a movie.
E.g., for Brian De Palma's "The Untouchables", the referred
pages would be:
combined details: http://akas.imdb.com/title/tt0094226/combi... | [
[
8,
0,
0.0074,
0.0142,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0153,
0.0005,
0,
0.66,
0.0196,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0158,
0.0005,
0,
0.66... | [
"\"\"\"\nparser.http.movieParser module (imdb package).\n\nThis module provides the classes (and the instances), used to parse the\nIMDb pages on the akas.imdb.com server about a movie.\nE.g., for Brian De Palma's \"The Untouchables\", the referred\npages would be:\n combined details: http://akas.imdb.com/titl... |
"""
parser.http.personParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a person.
E.g., for "Mel Gibson" the referred pages would be:
categorized: http://akas.imdb.com/name/nm0000154/maindetails
biography: ... | [
[
8,
0,
0.025,
0.0483,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0519,
0.0018,
0,
0.66,
0.05,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0537,
0.0018,
0,
0.66,
... | [
"\"\"\"\nparser.http.personParser module (imdb package).\n\nThis module provides the classes (and the instances), used to parse\nthe IMDb pages on the akas.imdb.com server about a person.\nE.g., for \"Mel Gibson\" the referred pages would be:\n categorized: http://akas.imdb.com/name/nm0000154/maindetails\n ... |
"""
parser.http.searchMovieParser module (imdb package).
This module provides the HTMLSearchMovieParser class (and the
search_movie_parser instance), used to parse the results of a search
for a given title.
E.g., for when searching for the title "the passion", the parsed
page would be:
http://akas.imdb.com/find?q=... | [
[
8,
0,
0.0787,
0.1517,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1629,
0.0056,
0,
0.66,
0.125,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1685,
0.0056,
0,
0.66,... | [
"\"\"\"\nparser.http.searchMovieParser module (imdb package).\n\nThis module provides the HTMLSearchMovieParser class (and the\nsearch_movie_parser instance), used to parse the results of a search\nfor a given title.\nE.g., for when searching for the title \"the passion\", the parsed\npage would be:",
"import re"... |
"""
parser.http.topBottomParser module (imdb package).
This module provides the classes (and the instances), used to parse the
lists of top 250 and bottom 100 movies.
E.g.:
http://akas.imdb.com/chart/top
http://akas.imdb.com/chart/bottom
Copyright 2009 Davide Alberani <da@erlug.linux.it>
This program is free... | [
[
8,
0,
0.1226,
0.2358,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2547,
0.0094,
0,
0.66,
0.2,
896,
0,
1,
0,
0,
896,
0,
0
],
[
1,
0,
0.2642,
0.0094,
0,
0.66,
... | [
"\"\"\"\nparser.http.topBottomParser module (imdb package).\n\nThis module provides the classes (and the instances), used to parse the\nlists of top 250 and bottom 100 movies.\nE.g.:\n http://akas.imdb.com/chart/top\n http://akas.imdb.com/chart/bottom",
"from imdb.utils import analyze_title",
"from utils ... |
"""
parser.http.searchKeywordParser module (imdb package).
This module provides the HTMLSearchKeywordParser class (and the
search_company_parser instance), used to parse the results of a search
for a given keyword.
E.g., when searching for the keyword "alabama", the parsed page would be:
http://akas.imdb.com/find?... | [
[
8,
0,
0.1171,
0.2252,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2432,
0.009,
0,
0.66,
0.125,
970,
0,
3,
0,
0,
970,
0,
0
],
[
1,
0,
0.2523,
0.009,
0,
0.66,
... | [
"\"\"\"\nparser.http.searchKeywordParser module (imdb package).\n\nThis module provides the HTMLSearchKeywordParser class (and the\nsearch_company_parser instance), used to parse the results of a search\nfor a given keyword.\nE.g., when searching for the keyword \"alabama\", the parsed page would be:\n http://ak... |
"""
parser.http.searchCompanyParser module (imdb package).
This module provides the HTMLSearchCompanyParser class (and the
search_company_parser instance), used to parse the results of a search
for a given company.
E.g., when searching for the name "Columbia Pictures", the parsed page would be:
http://akas.imdb.co... | [
[
8,
0,
0.1901,
0.3662,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3944,
0.0141,
0,
0.66,
0.1667,
896,
0,
2,
0,
0,
896,
0,
0
],
[
1,
0,
0.4085,
0.0141,
0,
0.66... | [
"\"\"\"\nparser.http.searchCompanyParser module (imdb package).\n\nThis module provides the HTMLSearchCompanyParser class (and the\nsearch_company_parser instance), used to parse the results of a search\nfor a given company.\nE.g., when searching for the name \"Columbia Pictures\", the parsed page would be:\n ht... |
"""
parser.http.searchPersonParser module (imdb package).
This module provides the HTMLSearchPersonParser class (and the
search_person_parser instance), used to parse the results of a search
for a given person.
E.g., when searching for the name "Mel Gibson", the parsed page would be:
http://akas.imdb.com/find?q=Me... | [
[
8,
0,
0.1467,
0.2826,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.3043,
0.0109,
0,
0.66,
0.1111,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3152,
0.0109,
0,
0.66... | [
"\"\"\"\nparser.http.searchPersonParser module (imdb package).\n\nThis module provides the HTMLSearchPersonParser class (and the\nsearch_person_parser instance), used to parse the results of a search\nfor a given person.\nE.g., when searching for the name \"Mel Gibson\", the parsed page would be:\n http://akas.i... |
"""
parser.http.bsouplxml.etree module (imdb.parser.http package).
This module adapts the beautifulsoup interface to lxml.etree module.
Copyright 2008 H. Turgut Uyar <uyar@tekir.org>
2008 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the t... | [
[
8,
0,
0.1533,
0.2933,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.32,
0.0133,
0,
0.66,
0.0625,
443,
0,
1,
0,
0,
443,
0,
0
],
[
1,
0,
0.3333,
0.0133,
0,
0.66,
... | [
"\"\"\"\nparser.http.bsouplxml.etree module (imdb.parser.http package).\n\nThis module adapts the beautifulsoup interface to lxml.etree module.\n\nCopyright 2008 H. Turgut Uyar <uyar@tekir.org>\n 2008 Davide Alberani <da@erlug.linux.it>",
"import _bsoup as BeautifulSoup",
"from _bsoup import Tag as Ele... |
"""
parser.http.bsoupxpath module (imdb.parser.http package).
This module provides XPath support for BeautifulSoup.
Copyright 2008 H. Turgut Uyar <uyar@tekir.org>
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 Softwar... | [
[
8,
0,
0.0279,
0.0533,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0584,
0.0025,
0,
0.66,
0.0476,
777,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0609,
0.0025,
0,
0.66... | [
"\"\"\"\nparser.http.bsoupxpath module (imdb.parser.http package).\n\nThis module provides XPath support for BeautifulSoup.\n\nCopyright 2008 H. Turgut Uyar <uyar@tekir.org>\n\nThis program is free software; you can redistribute it and/or modify",
"__author__ = 'H. Turgut Uyar <uyar@tekir.org>'",
"__docformat__... |
"""
parser.http.bsouplxml.html module (imdb.parser.http package).
This module adapts the beautifulsoup interface to lxml.html module.
Copyright 2008 H. Turgut Uyar <uyar@tekir.org>
2008 Davide Alberani <da@erlug.linux.it>
This program is free software; you can redistribute it and/or modify
it under the ter... | [
[
8,
0,
0.371,
0.7097,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.7742,
0.0323,
0,
0.66,
0.5,
443,
0,
1,
0,
0,
443,
0,
0
],
[
2,
0,
0.9355,
0.1613,
0,
0.66,
... | [
"\"\"\"\nparser.http.bsouplxml.html module (imdb.parser.http package).\n\nThis module adapts the beautifulsoup interface to lxml.html module.\n\nCopyright 2008 H. Turgut Uyar <uyar@tekir.org>\n 2008 Davide Alberani <da@erlug.linux.it>",
"import _bsoup as BeautifulSoup",
"def fromstring(html_string):\n ... |
"""
parser.http.companyParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a company.
E.g., for "Columbia Pictures [us]" the referred page would be:
main details: http://akas.imdb.com/company/co0071509/
Copyright 2008... | [
[
8,
0,
0.1429,
0.2747,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2967,
0.011,
0,
0.66,
0.2,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.3132,
0.022,
0,
0.66,
... | [
"\"\"\"\nparser.http.companyParser module (imdb package).\n\nThis module provides the classes (and the instances), used to parse\nthe IMDb pages on the akas.imdb.com server about a company.\nE.g., for \"Columbia Pictures [us]\" the referred page would be:\n main details: http://akas.imdb.com/company/co0071509/... |
"""
parser.http.characterParser module (imdb package).
This module provides the classes (and the instances), used to parse
the IMDb pages on the akas.imdb.com server about a character.
E.g., for "Jesse James" the referred pages would be:
main details: http://www.imdb.com/character/ch0000001/
biography: ... | [
[
8,
0,
0.069,
0.133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1429,
0.0049,
0,
0.66,
0.1,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.1502,
0.0099,
0,
0.66,
... | [
"\"\"\"\nparser.http.characterParser module (imdb package).\n\nThis module provides the classes (and the instances), used to parse\nthe IMDb pages on the akas.imdb.com server about a character.\nE.g., for \"Jesse James\" the referred pages would be:\n main details: http://www.imdb.com/character/ch0000001/\n ... |
"""
parser.http.searchCharacterParser module (imdb package).
This module provides the HTMLSearchCharacterParser class (and the
search_character_parser instance), used to parse the results of a search
for a given character.
E.g., when searching for the name "Jesse James", the parsed page would be:
http://akas.imdb.... | [
[
8,
0,
0.1957,
0.3768,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4058,
0.0145,
0,
0.66,
0.1667,
896,
0,
2,
0,
0,
896,
0,
0
],
[
1,
0,
0.4203,
0.0145,
0,
0.66... | [
"\"\"\"\nparser.http.searchCharacterParser module (imdb package).\n\nThis module provides the HTMLSearchCharacterParser class (and the\nsearch_character_parser instance), used to parse the results of a search\nfor a given character.\nE.g., when searching for the name \"Jesse James\", the parsed page would be:\n ... |
"""
parser package (imdb package).
This package provides various parsers to access IMDb data (e.g.: a
parser for the web/http interface, a parser for the SQL database
interface, etc.).
So far, the http/httpThin, mobile and sql parsers are implemented.
Copyright 2004-2009 Davide Alberani <da@erlug.linux.it>
This prog... | [
[
8,
0,
0.4464,
0.8571,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.9286,
0.0357,
0,
0.66,
1,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"\"\"\"\nparser package (imdb package).\n\nThis package provides various parsers to access IMDb data (e.g.: a\nparser for the web/http interface, a parser for the SQL database\ninterface, etc.).\nSo far, the http/httpThin, mobile and sql parsers are implemented.",
"__all__ = ['http', 'mobile', 'sql']"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.