code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
# 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 writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# 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.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# 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.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# 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.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# 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...
# 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.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 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...
# 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", "...
# 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.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 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...
# 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...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 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...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # 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 l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 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 (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 l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 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 oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" 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_...
"""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.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 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 modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# 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/python # $Id: testupnpigd.py,v 1.4 2008/10/11 10:27:20 nanard Exp $ # MiniUPnP project # Author : Thomas Bernard # This Sample code is public domain. # website : http://miniupnp.tuxfamily.org/ # import the python miniupnpc module import miniupnpc import socket import BaseHTTPServer # function definition d...
[ [ 1, 0, 0.0526, 0.0526, 0, 0.66, 0, 772, 0, 1, 0, 0, 772, 0, 0 ], [ 1, 0, 0.1053, 0.0526, 0, 0.66, 0.25, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.1579, 0.0526, 0, 0....
[ "import miniupnpc", "import socket", "import BaseHTTPServer", "def list_redirections():\n\ti = 0\n\twhile True:\n\t\tp = u.getgenericportmapping(i)\n\t\tif p==None:\n\t\t\tbreak\n\t\tprint(i, p)\n\t\ti = i + 1", "\ti = 0", "\twhile True:\n\t\tp = u.getgenericportmapping(i)\n\t\tif p==None:\n\t\t\tbreak\n\...
#! /usr/bin/python # $Id: setup.py,v 1.3 2009/04/17 20:59:42 nanard Exp $ # the MiniUPnP Project (c) 2007 Thomas Bernard # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ # # python script to build the miniupnpc module under unix # # replace libminiupnpc.a by libminiupnpc.so for shared library usage from dis...
[ [ 1, 0, 0.6, 0.0667, 0, 0.66, 0, 152, 0, 2, 0, 0, 152, 0, 0 ], [ 8, 0, 0.8, 0.3333, 0, 0.66, 1, 234, 3, 3, 0, 0, 0, 0, 2 ] ]
[ "from distutils.core import setup, Extension", "setup(name=\"miniupnpc\", version=\"1.3\",\n ext_modules=[\n\t Extension(name=\"miniupnpc\", sources=[\"miniupnpcmodule.c\"],\n\t\t\t extra_objects=[\"libminiupnpc.a\"])\n\t\t\t ])" ]
#! /usr/bin/python # $Id: setupmingw32.py,v 1.1 2007/06/12 23:04:13 nanard Exp $ # the MiniUPnP Project (c) 2007 Thomas Bernard # http://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/ # # python script to build the miniupnpc module under unix # from distutils.core import setup, Extension setup(name="miniupnpc", ve...
[ [ 1, 0, 0.5333, 0.0667, 0, 0.66, 0, 152, 0, 2, 0, 0, 152, 0, 0 ], [ 8, 0, 0.7667, 0.4, 0, 0.66, 1, 234, 3, 3, 0, 0, 0, 0, 2 ] ]
[ "from distutils.core import setup, Extension", "setup(name=\"miniupnpc\", version=\"1.0-RC6\",\n ext_modules=[\n\t Extension(name=\"miniupnpc\", sources=[\"miniupnpcmodule.c\"],\n\t libraries=[\"ws2_32\"],\n\t\t\t extra_objects=[\"libminiupnpc.a\"])\n\t\t\t ])" ]
#! /usr/bin/python # MiniUPnP project # Author : Thomas Bernard # This Sample code is public domain. # website : http://miniupnp.tuxfamily.org/ # import the python miniupnpc module import miniupnpc import sys # create the object u = miniupnpc.UPnP() print 'inital(default) values :' print ' discoverdelay', u.discoverd...
[ [ 1, 0, 0.3333, 0.3333, 0, 0.66, 0, 772, 0, 1, 0, 0, 772, 0, 0 ], [ 1, 0, 0.6667, 0.3333, 0, 0.66, 1, 509, 0, 1, 0, 0, 509, 0, 0 ] ]
[ "import miniupnpc", "import sys" ]
#! /usr/bin/python import dbus bus = dbus.SessionBus() proxy = bus.get_object('org.xchat.service', '/org/xchat/Remote') remote = dbus.Interface(proxy, 'org.xchat.connection') path = remote.Connect ("example.py", "Python example", "Example of a D-Bus client written in python", "1.0") proxy =...
[ [ 1, 0, 0.1071, 0.0357, 0, 0.66, 0, 551, 0, 1, 0, 0, 551, 0, 0 ], [ 14, 0, 0.1786, 0.0357, 0, 0.66, 0.1, 857, 3, 0, 0, 0, 971, 10, 1 ], [ 14, 0, 0.2143, 0.0357, 0, ...
[ "import dbus", "bus = dbus.SessionBus()", "proxy = bus.get_object('org.xchat.service', '/org/xchat/Remote')", "remote = dbus.Interface(proxy, 'org.xchat.connection')", "path = remote.Connect (\"example.py\",\n\t\t \"Python example\",\n\t\t \"Example of a D-Bus client written in python\",\n\t\t ...
print("only a test")
[ [ 8, 0, 1, 0.5, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "print(\"only a test\")" ]
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus & ...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-lstdc++...
from scipy.sparse import coo_matrix from scipy.io import mmwrite from numpy.random import permutation M = N = 10 for nnz in [0, 1, 2, 5, 8, 10, 15, 20, 30, 50, 80, 100]: P = permutation(M * N)[:nnz] I = P / N J = P % N V = permutation(nnz) + 1 A = coo_matrix( (V,(I,J)) , shape=(M,N)) filename ...
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 683, 0, 1, 0, 0, 683, 0, 0 ], [ 1, 0, 0.1333, 0.0667, 0, 0.66, 0.25, 670, 0, 1, 0, 0, 670, 0, 0 ], [ 1, 0, 0.2, 0.0667, 0, 0.66,...
[ "from scipy.sparse import coo_matrix", "from scipy.io import mmwrite", "from numpy.random import permutation", "M = N = 10", "for nnz in [0, 1, 2, 5, 8, 10, 15, 20, 30, 50, 80, 100]:\n P = permutation(M * N)[:nnz]\n I = P / N\n J = P % N\n V = permutation(nnz) + 1\n\n A = coo_matrix( (V,(I,J)...
import os import inspect # try to import an environment first try: Import('env') except: exec open("../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # on windows we have to do /bi...
[ [ 1, 0, 0.0175, 0.0175, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0351, 0.0175, 0, 0.66, 0.0714, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 7, 0, 0.1228, 0.0877, 0, ...
[ "import os", "import inspect", "try:\n Import('env')\nexcept:\n exec(open(\"../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-lstdc++\")", " env.Ap...
import os import glob from warnings import warn cusp_abspath = os.path.abspath("../../cusp/") # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # this function builds a trivial source file from a Cusp header def trivial_source_from_header(...
[ [ 1, 0, 0.0141, 0.0141, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0282, 0.0141, 0, 0.66, 0.0667, 958, 0, 1, 0, 0, 958, 0, 0 ], [ 1, 0, 0.0423, 0.0141, 0, ...
[ "import os", "import glob", "from warnings import warn", "cusp_abspath = os.path.abspath(\"../../cusp/\")", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
#!/usr/bin/env python import os,csv device_id = '0' # index of the device to use binary_filename = '../spmv' # command used to run the tests output_file = 'benchmark_output.log' # file where results are stored # The unstructured matrices are available online: # http://www.nvidia.com/con...
[ [ 1, 0, 0.0189, 0.0094, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0377, 0.0094, 0, 0.66, 0.0714, 689, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0566, 0.0094, 0, ...
[ "import os,csv", "device_id = '0' # index of the device to use", "binary_filename = '../spmv' # command used to run the tests", "output_file = 'benchmark_output.log' # file where results are stored", "mats = []", "unstructured_path = '~/scratch/Matrices/williams/mm/'", "unstruct...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
import os import inspect import glob # try to import an environment first try: Import('env') except: exec open("../../build/build-env.py") env = Environment() # on mac we have to tell the linker to link against the C++ library if env['PLATFORM'] == "darwin": env.Append(LINKFLAGS = "-lstdc++") # find all .cus...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.1111, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 1, 0, 0.1034, 0.0345, 0, 0...
[ "import os", "import inspect", "import glob", "try:\n Import('env')\nexcept:\n exec(open(\"../../build/build-env.py\"))\n env = Environment()", " Import('env')", " exec(open(\"../../build/build-env.py\"))", " env = Environment()", "if env['PLATFORM'] == \"darwin\":\n env.Append(LINKFLAGS = \"-l...
#!/usr/bin/python # # Copyright 2012 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance 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 agre...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import json", "import httplib", "from urlparse import urlparse" ]
#!/usr/bin/python # # Copyright 2012 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance 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 agre...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import json", "import httplib", "from urlparse import urlparse" ]
#!/usr/bin/python # # Copyright 2012 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance 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 agre...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import json", "import httplib", "from urlparse import urlparse" ]
#!/usr/bin/python # # Copyright 2012 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance 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 agre...
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.4, 0.2, 0, 0.66, 0.3333, 463, 0, 1, 0, 0, 463, 0, 0 ], [ 1, 0, 0.6, 0.2, 0, 0.66, 0.6667, ...
[ "import sys", "import json", "import httplib", "from urlparse import urlparse" ]
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 14, 0, 0.2727, 0.0909, 0, 0.66, 0.1111, 15, 3, 0, 0, 0, 654, 10, 1 ], [ 14, 0, 0.3636, 0.0909, 0, ...
[ "import time", "t = time.time()", "u = time.gmtime(t)", "s = time.strftime('%a, %e %b %Y %T GMT', u)", "print('Content-Type: text/javascript')", "print('Cache-Control: no-cache')", "print('Date: ' + s)", "print('Expires: ' + s)", "print('')", "print('var timeskew = new Date().getTime() - ' + str(t...
#!/usr/bin/python # # 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 required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # 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 required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/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 gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # 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 ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# 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 # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
# 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.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# 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 writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# 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.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# 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.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# 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.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# 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...
# 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.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 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...
# 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", "...
# 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.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 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...
# 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...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 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...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # 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 l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 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 (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 l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 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 oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" 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_...
"""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.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 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 modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# 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>[\\+\\*])...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
import sys, os, popen2 def cmd(comando): out = popen2.popen3(comando) try: return out[0].read() except: print "Imposible de ejecutar Comando: <"+comando+">" print raw_input("Nos vemos luego, enter para salir") sys.exit(1) def cargar(): directoriosTest = cmd("cd .. && ls Source/*Tests/bin/Debug/*.Tests....
[ [ 1, 0, 0.0085, 0.0085, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 2, 0, 0.0551, 0.0678, 0, 0.66, 0.1111, 604, 0, 1, 1, 0, 0, 0, 6 ], [ 14, 1, 0.0339, 0.0085, 1, 0...
[ "import sys, os, popen2", "def cmd(comando):\n\tout = popen2.popen3(comando)\n\ttry:\n\t\treturn out[0].read()\n\texcept:\n\t\tprint(\"Imposible de ejecutar Comando: <\"+comando+\">\")\n\t\tprint(raw_input(\"Nos vemos luego, enter para salir\"))\n\t\tsys.exit(1)", "\tout = popen2.popen3(comando)", "\ttry:\n\t...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') fin2=open('time_err_n3.dat') todo=fin.read().split('\n') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] ys2=[float(x.split()[1]) for x in todo2 if x] yer...
[ [ 1, 0, 0.1304, 0.0435, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2174, 0.0435, 0, 0.66, 0.0556, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.2609, 0.0435, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "fin2=open('time_err_n3.dat')", "todo=fin.read().split('\\n')", "todo2=fin2.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "ys2=[float(x.split()[1]) for x in todo2 if x]"...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $cw$") xlabel("Cantidad de Perso...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2778, 0.0556, 0, 0.66, 0.0714, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3333, 0.0556, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "todo=fin.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "yerr=[float(x.split()[2]) for x in todo if x]", "title(\"Tiempo de ejecucion de $cw$\")", "xlabel(\"Cantidad de ...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') fin2=open('time_err_n3.dat') todo=fin.read().split('\n') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] ys2=[float(x.split()[1]) for x in todo2 if x] yer...
[ [ 1, 0, 0.1304, 0.0435, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2174, 0.0435, 0, 0.66, 0.0556, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.2609, 0.0435, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "fin2=open('time_err_n3.dat')", "todo=fin.read().split('\\n')", "todo2=fin2.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "ys2=[float(x.split()[1]) for x in todo2 if x]"...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $cw$") xlabel("Cantidad de Personas") ylabel("Cantidad de operaciones") plot(xs,...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2941, 0.0588, 0, 0.66, 0.0769, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('counts.dat')", "todo=fin.read().split('\\n')", "xs=[int(x.split()[0]) for x in todo if x]", "ys=[int(x.split()[1]) for x in todo if x]", "title(\"Cantidad de operaciones de $cw$\")", "xlabel(\"Cantidad de Personas\")", "ylabel(\"Cantidad de operaciones\")"...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="cw" tamanios_entrada=sorted(range(1,45)*2) def prueba(tamanio_entrada): out=str(tamanio_entrada) for i in range(tamani...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed", "from math import sqrt", "def prueba(tamanio_entrada):\n\tout=str(tamanio_entrada)\n\tfor i in range(tamanio_entrada):\n\t\tout+='\\n'\n\t\tli=list(set([str(x+1) for x in [randint(0,tamanio_entrada-1) for am in range(randint...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="cw_n3" tamanios_entrada=sorted(range(1,45)*2) def prueba(tamanio_entrada): out=str(tamanio_entrada) for i in range(tam...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed", "from math import sqrt", "def prueba(tamanio_entrada):\n\tout=str(tamanio_entrada)\n\tfor i in range(tamanio_entrada):\n\t\tout+='\\n'\n\t\tli=list(set([str(x+1) for x in [randint(0,tamanio_entrada-1) for am in range(randint...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin2=open('time_err_n3.dat') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo2 if x] ys2=[float(x.split()[1]) for x in todo2 if x] yerr2=[float(x.split()[2]) for x in todo2 if x] title("Tiempo de ejecución de algoritmo cubico de $...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2778, 0.0556, 0, 0.66, 0.0769, 965, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3333, 0.0556, 0, ...
[ "from matplotlib.pyplot import *", "fin2=open('time_err_n3.dat')", "todo2=fin2.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo2 if x]", "ys2=[float(x.split()[1]) for x in todo2 if x]", "yerr2=[float(x.split()[2]) for x in todo2 if x]", "title(\"Tiempo de ejecución de algoritmo cubico de $cw...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin2=open('time_err_n3.dat') todo2=fin2.read().split('\n') xs=[float(x.split()[0]) for x in todo2 if x] ys2=[float(x.split()[1]) for x in todo2 if x] yerr2=[float(x.split()[2]) for x in todo2 if x] title("Tiempo de ejecución de algoritmo cubico de $...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2778, 0.0556, 0, 0.66, 0.0769, 965, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3333, 0.0556, 0, ...
[ "from matplotlib.pyplot import *", "fin2=open('time_err_n3.dat')", "todo2=fin2.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo2 if x]", "ys2=[float(x.split()[1]) for x in todo2 if x]", "yerr2=[float(x.split()[2]) for x in todo2 if x]", "title(\"Tiempo de ejecución de algoritmo cubico de $cw...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="cw" tamanios_entrada=sorted(range(1,45)*2) def prueba(tamanio_entrada): out=str(tamanio_entrada) for i in range(tamani...
[ [ 1, 0, 0.0385, 0.0385, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0769, 0.0385, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1154, 0.0385, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed", "from math import sqrt", "def prueba(tamanio_entrada):\n\tout=str(tamanio_entrada)\n\tfor i in range(tamanio_entrada):\n\t\tout+='\\n'\n\t\tli=list(set([str(x+1) for x in [randint(0,tamanio_entrada-1) for am in range(randint...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $cw$") xlabel("Cantidad de Perso...
[ [ 1, 0, 0.1667, 0.0556, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2778, 0.0556, 0, 0.66, 0.0714, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3333, 0.0556, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "todo=fin.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "yerr=[float(x.split()[2]) for x in todo if x]", "title(\"Tiempo de ejecucion de $cw$\")", "xlabel(\"Cantidad de ...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $cw$") xlabel("Cantidad de Personas") ylabel("Cantidad de operaciones") plot(xs,...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2941, 0.0588, 0, 0.66, 0.0769, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('counts.dat')", "todo=fin.read().split('\\n')", "xs=[int(x.split()[0]) for x in todo if x]", "ys=[int(x.split()[1]) for x in todo if x]", "title(\"Cantidad de operaciones de $cw$\")", "xlabel(\"Cantidad de Personas\")", "ylabel(\"Cantidad de operaciones\")"...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $matching$") xlabel("Tamano de e...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2941, 0.0588, 0, 0.66, 0.0769, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "todo=fin.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "yerr=[float(x.split()[2]) for x in todo if x]", "title(\"Tiempo de ejecucion de $matching$\")", "xlabel(\"Tamano...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $matching$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(...
[ [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.3125, 0.0625, 0, 0.66, 0.0833, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.375, 0.0625, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('counts.dat')", "todo=fin.read().split('\\n')", "xs=[int(x.split()[0]) for x in todo if x]", "ys=[int(x.split()[1]) for x in todo if x]", "title(\"Cantidad de operaciones de $matching$\")", "xlabel(\"Tamano de entrada\")", "ylabel(\"Cantidad de operaciones\...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="matching" tamanios_entrada=sorted(range(3,300)[::5]) def prueba(tamanio_entrada): return str(tamanio_entrada)+' '+' '.j...
[ [ 1, 0, 0.0476, 0.0476, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0952, 0.0476, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1429, 0.0476, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed", "from math import sqrt", "def prueba(tamanio_entrada):\n\treturn str(tamanio_entrada)+' '+' '.join([str(randint(0,tamanio_entrada/2)) for x in range(tamanio_entrada)])", "\treturn str(tamanio_entrada)+' '+' '.join([str(ran...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="matching" tamanios_entrada=sorted(range(3,300)[::5]) def prueba(tamanio_entrada): return str(tamanio_entrada)+' '+' '.j...
[ [ 1, 0, 0.0476, 0.0476, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0952, 0.0476, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1429, 0.0476, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed", "from math import sqrt", "def prueba(tamanio_entrada):\n\treturn str(tamanio_entrada)+' '+' '.join([str(randint(0,tamanio_entrada/2)) for x in range(tamanio_entrada)])", "\treturn str(tamanio_entrada)+' '+' '.join([str(ran...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $matching$") xlabel("Tamano de e...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2941, 0.0588, 0, 0.66, 0.0769, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "todo=fin.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "yerr=[float(x.split()[2]) for x in todo if x]", "title(\"Tiempo de ejecucion de $matching$\")", "xlabel(\"Tamano...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $matching$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(...
[ [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.3125, 0.0625, 0, 0.66, 0.0833, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.375, 0.0625, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('counts.dat')", "todo=fin.read().split('\\n')", "xs=[int(x.split()[0]) for x in todo if x]", "ys=[int(x.split()[1]) for x in todo if x]", "title(\"Cantidad de operaciones de $matching$\")", "xlabel(\"Tamano de entrada\")", "ylabel(\"Cantidad de operaciones\...
#!/usr/bin/env python from Tkinter import * from random import * from math import sqrt import subprocess def prueba(tamanio_entrada): cant=int(random()*tamanio_entrada) w=randint(3,int(2*sqrt(tamanio_entrada))) h=tamanio_entrada/w vs=[] for v in range(cant): orient=choice(['-','|']) if orient=='|': l=rand...
[ [ 1, 0, 0.0405, 0.0135, 0, 0.66, 0, 368, 0, 1, 0, 0, 368, 0, 0 ], [ 1, 0, 0.0541, 0.0135, 0, 0.66, 0.0714, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0676, 0.0135, 0, ...
[ "from Tkinter import *", "from random import *", "from math import sqrt", "import subprocess", "def prueba(tamanio_entrada):\n\tcant=int(random()*tamanio_entrada)\n\tw=randint(3,int(2*sqrt(tamanio_entrada)))\n\th=tamanio_entrada/w\n\tvs=[]\n\tfor v in range(cant):\n\t\torient=choice(['-','|'])\n\t\tif orien...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $flood$") xlabel("Tamano de entr...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2941, 0.0588, 0, 0.66, 0.0769, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "todo=fin.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "yerr=[float(x.split()[2]) for x in todo if x]", "title(\"Tiempo de ejecucion de $flood$\")", "xlabel(\"Tamano de...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $flood$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(xs,...
[ [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.3125, 0.0625, 0, 0.66, 0.0833, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.375, 0.0625, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('counts.dat')", "todo=fin.read().split('\\n')", "xs=[int(x.split()[0]) for x in todo if x]", "ys=[int(x.split()[1]) for x in todo if x]", "title(\"Cantidad de operaciones de $flood$\")", "xlabel(\"Tamano de entrada\")", "ylabel(\"Cantidad de operaciones\")"...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed,choice from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="flood" tamanios_entrada=sorted(range(100,5000)[::35]) def prueba(tamanio_entrada): cant=int(random()*tamanio_en...
[ [ 1, 0, 0.0238, 0.0238, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0476, 0.0238, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.0714, 0.0238, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed,choice", "from math import sqrt", "def prueba(tamanio_entrada):\n\tcant=int(random()*tamanio_entrada)\n\tw=randint(3,int(2*sqrt(tamanio_entrada)))\n\th=tamanio_entrada/w\n\tvs=[]\n\tfor v in range(cant):\n\t\torient=choice(['-...
#!/usr/bin/env python import getopt,sys import subprocess from random import random,randint,seed,choice from math import sqrt seed(1234) # defino el seed para hacer el experimento reproducible ejecutable="flood" tamanios_entrada=sorted(range(100,5000)[::35]) def prueba(tamanio_entrada): cant=int(random()*tamanio_en...
[ [ 1, 0, 0.0238, 0.0238, 0, 0.66, 0, 588, 0, 2, 0, 0, 588, 0, 0 ], [ 1, 0, 0.0476, 0.0238, 0, 0.66, 0.1667, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.0714, 0.0238, 0, ...
[ "import getopt,sys", "import subprocess", "from random import random,randint,seed,choice", "from math import sqrt", "def prueba(tamanio_entrada):\n\tcant=int(random()*tamanio_entrada)\n\tw=randint(3,int(2*sqrt(tamanio_entrada)))\n\th=tamanio_entrada/w\n\tvs=[]\n\tfor v in range(cant):\n\t\torient=choice(['-...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('time_err.dat') todo=fin.read().split('\n') xs=[float(x.split()[0]) for x in todo if x] ys=[float(x.split()[1]) for x in todo if x] yerr=[float(x.split()[2]) for x in todo if x] title("Tiempo de ejecucion de $flood$") xlabel("Tamano de entr...
[ [ 1, 0, 0.1765, 0.0588, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.2941, 0.0588, 0, 0.66, 0.0769, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.3529, 0.0588, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('time_err.dat')", "todo=fin.read().split('\\n')", "xs=[float(x.split()[0]) for x in todo if x]", "ys=[float(x.split()[1]) for x in todo if x]", "yerr=[float(x.split()[2]) for x in todo if x]", "title(\"Tiempo de ejecucion de $flood$\")", "xlabel(\"Tamano de...
#!/usr/bin/env python from Tkinter import * from random import * from math import sqrt import subprocess def prueba(tamanio_entrada): cant=int(random()*tamanio_entrada) w=randint(3,int(2*sqrt(tamanio_entrada))) h=tamanio_entrada/w vs=[] for v in range(cant): orient=choice(['-','|']) if orient=='|': l=rand...
[ [ 1, 0, 0.0405, 0.0135, 0, 0.66, 0, 368, 0, 1, 0, 0, 368, 0, 0 ], [ 1, 0, 0.0541, 0.0135, 0, 0.66, 0.0714, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0676, 0.0135, 0, ...
[ "from Tkinter import *", "from random import *", "from math import sqrt", "import subprocess", "def prueba(tamanio_entrada):\n\tcant=int(random()*tamanio_entrada)\n\tw=randint(3,int(2*sqrt(tamanio_entrada)))\n\th=tamanio_entrada/w\n\tvs=[]\n\tfor v in range(cant):\n\t\torient=choice(['-','|'])\n\t\tif orien...
#!/usr/bin/env python # coding: utf-8 from matplotlib.pyplot import * fin=open('counts.dat') todo=fin.read().split('\n') xs=[int(x.split()[0]) for x in todo if x] ys=[int(x.split()[1]) for x in todo if x] title("Cantidad de operaciones de $flood$") xlabel("Tamano de entrada") ylabel("Cantidad de operaciones") plot(xs,...
[ [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.3125, 0.0625, 0, 0.66, 0.0833, 225, 3, 1, 0, 0, 693, 10, 1 ], [ 14, 0, 0.375, 0.0625, 0, ...
[ "from matplotlib.pyplot import *", "fin=open('counts.dat')", "todo=fin.read().split('\\n')", "xs=[int(x.split()[0]) for x in todo if x]", "ys=[int(x.split()[1]) for x in todo if x]", "title(\"Cantidad de operaciones de $flood$\")", "xlabel(\"Tamano de entrada\")", "ylabel(\"Cantidad de operaciones\")"...