code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python js = open('bookmarklet.min.js').read() config = open('bookmarklet_config.template').read() print config % {'bookmarklet_min_js': js}
[ [ 14, 0, 0.6, 0.2, 0, 0.66, 0, 62, 3, 0, 0, 0, 453, 10, 2 ], [ 14, 0, 0.8, 0.2, 0, 0.66, 0.5, 308, 3, 0, 0, 0, 453, 10, 2 ], [ 8, 0, 1, 0.2, 0, 0.66, 1, 535...
[ "js = open('bookmarklet.min.js').read()", "config = open('bookmarklet_config.template').read()", "print(config % {'bookmarklet_min_js': js})" ]
#!/usr/bin/python # This code is original from jsmin by Douglas Crockford, it was translated to # Python by Baruch Even. The original code had the following copyright and # license. # # /* jsmin.c # 2007-05-22 # # Copyright (c) 2002 Douglas Crockford (www.crockford.com) # # Permission is hereby granted, free of ch...
[ [ 1, 0, 0.1514, 0.0046, 0, 0.66, 0, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 2, 0, 0.1766, 0.0367, 0, 0.66, 0.1429, 275, 0, 1, 1, 0, 0, 0, 6 ], [ 14, 1, 0.1651, 0.0046, 1, 0...
[ "from StringIO import StringIO", "def jsmin(js):\n ins = StringIO(js)\n outs = StringIO()\n JavascriptMinify().minify(ins, outs)\n str = outs.getvalue()\n if len(str) > 0 and str[0] == '\\n':\n str = str[1:]\n return str", " ins = StringIO(js)", " outs = StringIO()", " Java...
#!/usr/bin/env python # # 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.0988, 0.1292, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1663, 0.002, 0, 0.66, 0.0526, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1683, 0.002, 0, 0.66, ...
[ "\"\"\"Fork-join queue for App Engine.\n\nThe Task Queue API executes tasks in a push manner instead of polling with\nvisibility time like Amazon SQS and other workqueue systems. However, often\nyou may need to process multiple pieces of queued work simultaneously in a\nsingle App Engine request; the benefit being ...
#!/usr/bin/env python """THIS IS AN EMPTY FILE."""
[ [ 8, 0, 1, 0.5, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ] ]
[ "\"\"\"THIS IS AN EMPTY FILE.\"\"\"" ]
#!/usr/bin/env python # # Copyright 2009 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.1667, 0.0093, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.1852, 0.0093, 0, 0.66, 0.1, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2037, 0.0093, 0, 0.66, ...
[ "__author__ = 'bslatkin@gmail.com (Brett Slatkin)'", "\"\"\"Tests for the feed_identifier module.\"\"\"", "import logging", "import os", "import unittest", "import xml.sax", "import feed_identifier", "class TestBase(unittest.TestCase):\n\n def setUp(self):\n self.testdata = os.path.join(os.path.di...
#!/usr/bin/env python # # Copyright 2009 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...
[ [ 1, 0, 0.383, 0.0213, 0, 0.66, 0, 941, 0, 1, 0, 0, 941, 0, 0 ], [ 8, 0, 0.4043, 0.0213, 0, 0.66, 0.0667, 653, 3, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0.4468, 0.0213, 0, 0.6...
[ "import testutil", "testutil.fix_path()", "from main import *", "import code", "import getpass", "import sys", "from google.appengine.ext.remote_api import remote_api_stub", "from google.appengine.ext import db", "def auth_func():\n return raw_input('Username:'), getpass.getpass('Password:')", " ...
#!/usr/bin/env python # # Copyright 2009 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.0105, 0.0006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0116, 0.0006, 0, 0.66, 0.0278, 686, 0, 1, 0, 0, 686, 0, 0 ], [ 1, 0, 0.0122, 0.0006, 0, 0.66...
[ "\"\"\"Tests for the dos module.\"\"\"", "import cProfile", "import gc", "import logging", "logging.basicConfig(format='%(levelname)-8s %(filename)s] %(message)s')", "import os", "import random", "import sys", "import unittest", "import testutil", "testutil.fix_path()", "from google.appengine....
#!/usr/bin/env python # # Copyright 2009 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.0636, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0707, 0.0035, 0, 0.66, 0.0526, 609, 0, 1, 0, 0, 609, 0, 0 ], [ 1, 0, 0.0742, 0.0035, 0, 0.66...
[ "\"\"\"Utilities common to all tests.\"\"\"", "import StringIO", "import base64", "import cgi", "import logging", "import os", "import sys", "import tempfile", "import unittest", "import urllib", "TEST_APP_ID = 'my-app-id'", "TEST_VERSION_ID = 'my-version.1234'", "os.environ['APPLICATION_ID'...
#!/usr/bin/env python # # Copyright 2009 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.1295, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1439, 0.0072, 0, 0.66, 0.125, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1583, 0.0072, 0, 0.66,...
[ "\"\"\"URLFetchServiceStub implementation that returns mock values.\"\"\"", "import logging", "from google.appengine import runtime", "from google.appengine.api import apiproxy_stub", "from google.appengine.api import urlfetch_service_pb", "from google.appengine.api import urlfetch_stub", "from google.a...
#!/usr/bin/env python # # 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.1224, 0.0068, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1361, 0.0068, 0, 0.66, 0.0556, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1429, 0.0068, 0, 0.66...
[ "\"\"\"Offline cleanup and analysis jobs used with the hub.\"\"\"", "import datetime", "import logging", "import math", "import re", "import time", "from google.appengine.ext import db", "import main", "from mapreduce import context", "from mapreduce import input_readers", "from mapreduce import...
#!/usr/bin/env python # # Copyright 2009 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.0041, 0.0002, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0046, 0.0002, 0, 0.66, 0.0147, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0048, 0.0002, 0, 0.66...
[ "\"\"\"Tests for the main module.\"\"\"", "import datetime", "import logging", "logging.basicConfig(format='%(levelname)-8s %(filename)s] %(message)s')", "import os", "import shutil", "import sys", "import time", "import tempfile", "import unittest", "import urllib", "import xml.sax", "impor...
#!/usr/bin/env python # # Copyright 2009 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.1314, 0.0073, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.146, 0.0073, 0, 0.66, 0.0714, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1606, 0.0073, 0, 0.66, ...
[ "__author__ = 'bslatkin@gmail.com (Brett Slatkin)'", "\"\"\"Atom/RSS feed parser that determines a feed's canonical ID.\"\"\"", "import cStringIO", "import logging", "import re", "import xml.sax", "import xml.sax.handler", "import xml.sax.saxutils", "DEBUG = False", "class TrivialEntityResolver(xm...
#!/usr/bin/env python # # Copyright 2009 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.3333, 0.1111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4127, 0.0159, 0, 0.66, 0.1111, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.4286, 0.0159, 0, 0.66...
[ "\"\"\"Loadtest script that provides a dummy publisher and subscriber.\n\nEvery time a feed is requested from this loadtest publisher, it will produce a\nnew, random Atom payload. The loadtest app also provides a subscriber interface\nthat will accept any subscription. All notification messages will be thrown\naway...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ [ 8, 0, 0.1957, 0.0109, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2174, 0.0109, 0, 0.66, 0.0833, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2283, 0.0109, 0, 0.66...
[ "\"\"\"Simple publisher example that pings the hub after publishing.\"\"\"", "import logging", "import urllib", "import wsgiref.handlers", "from google.appengine.api import urlfetch", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp import template", "from google.appengine....
#!/usr/bin/env python # # 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.0833, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0926, 0.0046, 0, 0.66, 0.0556, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 8, 0, 0.0972, 0.0046, 0, 0.66...
[ "\"\"\"Tests for the virtual_feed module.\"\"\"", "import logging", "logging.basicConfig(format='%(levelname)-8s %(filename)s] %(message)s')", "import os", "import sys", "import unittest", "sys.path.insert(0, os.getcwd())", "os.chdir('../hub')", "sys.path.insert(0, os.getcwd())", "import testutil"...
#!/usr/bin/env python # # 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.1512, 0.0988, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2093, 0.0058, 0, 0.66, 0.0833, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.2209, 0.0058, 0, 0.66...
[ "\"\"\"Virtual feed receiver for publishing aggregate feeds using fat pings.\n\nThis isn't part of the PubSubHubbub spec. We have no intentions of making it to\nbe part of the spec. This extension hook is useful for creating a virtual\nfeed (e.g., a firehose feed) using an aggregation of other feeds that are\nfat p...
#!/usr/bin/env python # # Copyright 2009 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.1084, 0.006, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1205, 0.006, 0, 0.66, 0.0526, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 8, 0, 0.1265, 0.006, 0, 0.66, ...
[ "\"\"\"Tests for the fat_publish module.\"\"\"", "import logging", "logging.basicConfig(format='%(levelname)-8s %(filename)s] %(message)s')", "import os", "import sys", "import unittest", "sys.path.insert(0, os.getcwd())", "os.chdir('../hub')", "sys.path.insert(0, os.getcwd())", "import testutil",...
#!/usr/bin/env python # # Copyright 2009 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.2148, 0.1831, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3169, 0.007, 0, 0.66, 0.125, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.331, 0.007, 0, 0.66, ...
[ "\"\"\"Fat publish receiver for working around caching issues with the demo hub.\n\nThis isn't part of the PubSubHubbub spec. We have no intentions of making it to\nbe part of the spec. This extension hook is useful for publishers who want to\ntry out the PubSubHubbub protocol without building or running their own ...
#!/usr/bin/env python # # Copyright 2009 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.1295, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1439, 0.0072, 0, 0.66, 0.1, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1583, 0.0072, 0, 0.66, ...
[ "\"\"\"Tests for the pubsubhubbub_publish module.\"\"\"", "__author__ = 'bslatkin@gmail.com (Brett Slatkin)'", "import BaseHTTPServer", "import urllib", "import unittest", "import threading", "import pubsubhubbub_publish", "REQUESTS = 0", "class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):...
#!/usr/bin/env python # # Copyright 2009 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...
[ [ 1, 0, 0.5, 0.0278, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 14, 0, 0.6528, 0.1667, 0, 0.66, 0.5, 757, 1, 0, 0, 0, 0, 3, 0 ], [ 8, 0, 0.8889, 0.25, 0, 0.66, ...
[ "from distutils.core import setup", "LONG_DESC = (\n 'A simple, open, server-to-server web-hook-based pubsub '\n '(publish/subscribe) protocol as a simple extension to Atom. '\n 'Parties (servers) speaking the PubSubHubbub protocol can get '\n 'near-instant notifications (via webhook callbacks) when a...
#==================================================================== # 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...
from setuptools import setup from abcesac import __version__ as version setup( name="abc2esac", version=version, description="abc2esac is an ABC to EsAC music format converter", license='GPLv3', author="Marcus Weseloh", author_email="mawe42@gmail.com", url="http://abc2esac.googlecode.com/"...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0.5, 125, 0, 1, 0, 0, 125, 0, 0 ], [ 8, 0, 0.6562, 0.75, 0, 0.66,...
[ "from setuptools import setup", "from abcesac import __version__ as version", "setup(\n name=\"abc2esac\",\n version=version,\n description=\"abc2esac is an ABC to EsAC music format converter\",\n license='GPLv3',\n author=\"Marcus Weseloh\",\n author_email=\"mawe42@gmail.com\",\n url=\"htt...
#!/usr/bin/env python """ ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
[ [ 8, 0, 0.1646, 0.2911, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3291, 0.0127, 0, 0.66, 0.2, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.3418, 0.0127, 0, 0.66, ...
[ "\"\"\"\n\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify", "import os.path", "from optparse import OptionParser", "fro...
#!/usr/bin/env python """ ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
[ [ 8, 0, 0.1646, 0.2911, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3291, 0.0127, 0, 0.66, 0.2, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.3418, 0.0127, 0, 0.66, ...
[ "\"\"\"\n\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify", "import os.path", "from optparse import OptionParser", "fro...
import unittest from abcesac.tests.parser import * from abcesac.tests.music import * from abcesac.tests.grouper import * if __name__ == '__main__': unittest.main()
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.3333, 0.1111, 0, 0.66, 0.25, 876, 0, 1, 0, 0, 876, 0, 0 ], [ 1, 0, 0.4444, 0.1111, 0, 0.66...
[ "import unittest", "from abcesac.tests.parser import *", "from abcesac.tests.music import *", "from abcesac.tests.grouper import *", "if __name__ == '__main__':\n unittest.main()", " unittest.main()" ]
import unittest from fractions import Fraction as F from abcesac.music import * class KeyTestCase(unittest.TestCase): def test_get_notes(self): got = Key('C').get_notes() want = ['C','D','E','F','G','A','B'] self.assertEquals(got, want) got = Key('D').get_notes() want = [...
[ [ 1, 0, 0.0066, 0.0066, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0132, 0.0066, 0, 0.66, 0.25, 909, 0, 1, 0, 0, 909, 0, 0 ], [ 1, 0, 0.0263, 0.0066, 0, 0.66...
[ "import unittest", "from fractions import Fraction as F", "from abcesac.music import *", "class KeyTestCase(unittest.TestCase):\n\n def test_get_notes(self):\n got = Key('C').get_notes()\n want = ['C','D','E','F','G','A','B']\n self.assertEquals(got, want)\n\n got = Key('D').get...
import unittest import math import os import difflib import sys from fractions import Fraction as F from abcesac import abc_to_esac from abcesac.parser import ABCParser from abcesac.music import Song from abcesac.grouper import TemperleyGrouper class TemperleyGrouperTestCase(unittest.TestCase): def test_grouper(...
[ [ 1, 0, 0.0263, 0.0263, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0526, 0.0263, 0, 0.66, 0.0909, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0789, 0.0263, 0, 0....
[ "import unittest", "import math", "import os", "import difflib", "import sys", "from fractions import Fraction as F", "from abcesac import abc_to_esac", "from abcesac.parser import ABCParser", "from abcesac.music import Song", "from abcesac.grouper import TemperleyGrouper", "class TemperleyGroup...
import unittest import difflib import sys from fractions import Fraction as F from abcesac import abc_to_esac from abcesac.parser import ABCParser from abcesac.music import Song class ParseABCHeaderTestCase(unittest.TestCase): def setUp(self): self.song = Song() self.parser = ABCParser(self.song) ...
[ [ 1, 0, 0.0119, 0.0119, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0238, 0.0119, 0, 0.66, 0.1111, 866, 0, 1, 0, 0, 866, 0, 0 ], [ 1, 0, 0.0357, 0.0119, 0, 0....
[ "import unittest", "import difflib", "import sys", "from fractions import Fraction as F", "from abcesac import abc_to_esac", "from abcesac.parser import ABCParser", "from abcesac.music import Song", "class ParseABCHeaderTestCase(unittest.TestCase):\n def setUp(self):\n self.song = Song()\n ...
""" ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh 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 Fr...
[ [ 8, 0, 0.1897, 0.3621, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3966, 0.0172, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.431, 0.0172, 0, 0.66,...
[ "\"\"\"\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as publishe...
""" ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh 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 Fr...
[ [ 8, 0, 0.1183, 0.2258, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2473, 0.0108, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2581, 0.0108, 0, 0.66...
[ "\"\"\"\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as publishe...
from setuptools import setup from abcesac import __version__ as version setup( name="abc2esac", version=version, description="abc2esac is an ABC to EsAC music format converter", license='GPLv3', author="Marcus Weseloh", author_email="mawe42@gmail.com", url="http://abc2esac.googlecode.com/"...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.1875, 0.0625, 0, 0.66, 0.5, 125, 0, 1, 0, 0, 125, 0, 0 ], [ 8, 0, 0.6562, 0.75, 0, 0.66,...
[ "from setuptools import setup", "from abcesac import __version__ as version", "setup(\n name=\"abc2esac\",\n version=version,\n description=\"abc2esac is an ABC to EsAC music format converter\",\n license='GPLv3',\n author=\"Marcus Weseloh\",\n author_email=\"mawe42@gmail.com\",\n url=\"htt...
#!/usr/bin/env python """ ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
[ [ 8, 0, 0.1646, 0.2911, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3291, 0.0127, 0, 0.66, 0.2, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.3418, 0.0127, 0, 0.66, ...
[ "\"\"\"\n\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify", "import os.path", "from optparse import OptionParser", "fro...
#!/usr/bin/env python """ ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as ...
[ [ 8, 0, 0.1646, 0.2911, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3291, 0.0127, 0, 0.66, 0.2, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.3418, 0.0127, 0, 0.66, ...
[ "\"\"\"\n\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify", "import os.path", "from optparse import OptionParser", "fro...
import unittest from abcesac.tests.parser import * from abcesac.tests.music import * from abcesac.tests.grouper import * if __name__ == '__main__': unittest.main()
[ [ 1, 0, 0.1111, 0.1111, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.3333, 0.1111, 0, 0.66, 0.25, 876, 0, 1, 0, 0, 876, 0, 0 ], [ 1, 0, 0.4444, 0.1111, 0, 0.66...
[ "import unittest", "from abcesac.tests.parser import *", "from abcesac.tests.music import *", "from abcesac.tests.grouper import *", "if __name__ == '__main__':\n unittest.main()", " unittest.main()" ]
import unittest from fractions import Fraction as F from abcesac.music import * class KeyTestCase(unittest.TestCase): def test_get_notes(self): got = Key('C').get_notes() want = ['C','D','E','F','G','A','B'] self.assertEquals(got, want) got = Key('D').get_notes() want = [...
[ [ 1, 0, 0.0066, 0.0066, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0132, 0.0066, 0, 0.66, 0.25, 909, 0, 1, 0, 0, 909, 0, 0 ], [ 1, 0, 0.0263, 0.0066, 0, 0.66...
[ "import unittest", "from fractions import Fraction as F", "from abcesac.music import *", "class KeyTestCase(unittest.TestCase):\n\n def test_get_notes(self):\n got = Key('C').get_notes()\n want = ['C','D','E','F','G','A','B']\n self.assertEquals(got, want)\n\n got = Key('D').get...
import unittest import math import os import difflib import sys from fractions import Fraction as F from abcesac import abc_to_esac from abcesac.parser import ABCParser from abcesac.music import Song from abcesac.grouper import TemperleyGrouper class TemperleyGrouperTestCase(unittest.TestCase): def test_grouper(...
[ [ 1, 0, 0.0263, 0.0263, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0526, 0.0263, 0, 0.66, 0.0909, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 1, 0, 0.0789, 0.0263, 0, 0....
[ "import unittest", "import math", "import os", "import difflib", "import sys", "from fractions import Fraction as F", "from abcesac import abc_to_esac", "from abcesac.parser import ABCParser", "from abcesac.music import Song", "from abcesac.grouper import TemperleyGrouper", "class TemperleyGroup...
import unittest import difflib import sys from fractions import Fraction as F from abcesac import abc_to_esac from abcesac.parser import ABCParser from abcesac.music import Song class ParseABCHeaderTestCase(unittest.TestCase): def setUp(self): self.song = Song() self.parser = ABCParser(self.song) ...
[ [ 1, 0, 0.0119, 0.0119, 0, 0.66, 0, 88, 0, 1, 0, 0, 88, 0, 0 ], [ 1, 0, 0.0238, 0.0119, 0, 0.66, 0.1111, 866, 0, 1, 0, 0, 866, 0, 0 ], [ 1, 0, 0.0357, 0.0119, 0, 0....
[ "import unittest", "import difflib", "import sys", "from fractions import Fraction as F", "from abcesac import abc_to_esac", "from abcesac.parser import ABCParser", "from abcesac.music import Song", "class ParseABCHeaderTestCase(unittest.TestCase):\n def setUp(self):\n self.song = Song()\n ...
""" ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh 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 Fr...
[ [ 8, 0, 0.1897, 0.3621, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3966, 0.0172, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.431, 0.0172, 0, 0.66,...
[ "\"\"\"\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as publishe...
""" ================================================================================ abc2esac - ABC to EsAC conversion Copyright (C) 2010, Marcus Weseloh 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 Fr...
[ [ 8, 0, 0.1183, 0.2258, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2473, 0.0108, 0, 0.66, 0.1667, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.2581, 0.0108, 0, 0.66...
[ "\"\"\"\n================================================================================\n\n abc2esac - ABC to EsAC conversion\n Copyright (C) 2010, Marcus Weseloh\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as publishe...
## R-tree. # see doc/ref/r-tree-clustering-split-algo.pdf MAXCHILDREN=10 MAX_KMEANS=5 import math, random, sys import time import array from rect import Rect, union_all, NullRect class RTree(object): def __init__(self): self.count = 0 self.stats = { "overflow_f" : 0, "avg...
[ [ 14, 0, 0.0096, 0.0024, 0, 0.66, 0, 70, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.012, 0.0024, 0, 0.66, 0.0769, 147, 1, 0, 0, 0, 0, 1, 0 ], [ 1, 0, 0.0144, 0.0024, 0, 0.66...
[ "MAXCHILDREN=10", "MAX_KMEANS=5", "import math, random, sys", "import time", "import array", "from rect import Rect, union_all, NullRect", "class RTree(object):\n def __init__(self):\n self.count = 0\n self.stats = { \n \"overflow_f\" : 0,\n \"avg_overflow_t_f\" : ...
#!/usr/bin/env python # quick'n'dirty benchmark viewer. import pylab as pl import sys, csv if (__name__ == "__main__"): file_counts = len(sys.argv) - 1 def pos(row,col): rr= (row * file_counts) + col return rr + 1 for (column_number, filename) in enumerate(sys.argv[1:]): ...
[ [ 1, 0, 0.122, 0.0244, 0, 0.66, 0, 735, 0, 1, 0, 0, 735, 0, 0 ], [ 1, 0, 0.1463, 0.0244, 0, 0.66, 0.5, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 4, 0, 0.6098, 0.8049, 0, 0.66...
[ "import pylab as pl", "import sys, csv", "if (__name__ == \"__main__\"):\n\n\n file_counts = len(sys.argv) - 1\n \n\n def pos(row,col):\n rr= (row * file_counts) + col", " file_counts = len(sys.argv) - 1", " def pos(row,col):\n rr= (row * file_counts) + col\n return rr + ...
# Like bench_rtree but uses the libspatialindex c library. For comparison! # http://pypi.python.org/pypi/Rtree # TODO: path hackery. if __name__ == "__main__": import sys, os mypath = os.path.dirname(sys.argv[0]) sys.path.append(os.path.abspath(os.path.join(mypath, "../../"))) from pyrtree.bench.bench_rtr...
[ [ 4, 0, 0.1912, 0.1176, 0, 0.66, 0, 0, 0, 0, 0, 0, 0, 0, 4 ], [ 1, 1, 0.1765, 0.0294, 1, 0.77, 0, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 14, 1, 0.2059, 0.0294, 1, 0.77, ...
[ "if __name__ == \"__main__\":\n import sys, os\n mypath = os.path.dirname(sys.argv[0])\n sys.path.append(os.path.abspath(os.path.join(mypath, \"../../\")))", " import sys, os", " mypath = os.path.dirname(sys.argv[0])", " sys.path.append(os.path.abspath(os.path.join(mypath, \"../../\")))", ...
import gc # TODO: path hackery. if __name__ == "__main__": import sys, os mypath = os.path.dirname(sys.argv[0]) sys.path.append(os.path.abspath(os.path.join(mypath, "../../"))) from pyrtree.rtree import RTree from pyrtree.tests.test_rtree import RectangleGen,TstO import time # TODO: make these command-li...
[ [ 1, 0, 0.0192, 0.0192, 0, 0.66, 0, 92, 0, 1, 0, 0, 92, 0, 0 ], [ 4, 0, 0.0865, 0.0769, 0, 0.66, 0.1, 0, 0, 0, 0, 0, 0, 0, 4 ], [ 1, 1, 0.0769, 0.0192, 1, 0.08, ...
[ "import gc", "if __name__ == \"__main__\":\n import sys, os\n mypath = os.path.dirname(sys.argv[0])\n sys.path.append(os.path.abspath(os.path.join(mypath, \"../../\")))", " import sys, os", " mypath = os.path.dirname(sys.argv[0])", " sys.path.append(os.path.abspath(os.path.join(mypath, \"....
import math class Rect(object): """ A rectangle class that stores: an axis aligned rectangle, and: two flags (swapped_x and swapped_y). (The flags are stored implicitly via swaps in the order of minx/y and maxx/y.) """ __slots__ = ("x","y","xx","yy", "swapped_x", "swapped_y") def __ini...
[ [ 1, 0, 0.0081, 0.0081, 0, 0.66, 0, 526, 0, 1, 0, 0, 526, 0, 0 ], [ 3, 0, 0.4715, 0.9024, 0, 0.66, 0.2, 333, 0, 15, 0, 0, 186, 0, 19 ], [ 8, 1, 0.0488, 0.0407, 1, 0...
[ "import math", "class Rect(object):\n \"\"\"\n A rectangle class that stores: an axis aligned rectangle, and: two\n flags (swapped_x and swapped_y). (The flags are stored\n implicitly via swaps in the order of minx/y and maxx/y.)\n \"\"\"\n\n __slots__ = (\"x\",\"y\",\"xx\",\"yy\", \"swapped_...
def take(n,f,*args,**kwargs): i = 0 while i < n: yield f(*args,**kwargs) i = i + 1
[ [ 2, 0, 0.6667, 0.8333, 0, 0.66, 0, 0, 0, 4, 0, 0, 0, 0, 1 ], [ 14, 1, 0.5, 0.1667, 1, 0.47, 0, 826, 1, 0, 0, 0, 0, 1, 0 ], [ 5, 1, 0.8333, 0.5, 1, 0.47, 1, ...
[ "def take(n,f,*args,**kwargs):\n i = 0\n while i < n:\n yield f(*args,**kwargs)\n i = i + 1", " i = 0", " while i < n:\n yield f(*args,**kwargs)\n i = i + 1", " yield f(*args,**kwargs)", " i = i + 1" ]
__all__ = ["rtree","rect"] import rect import rtree Rect = rect.Rect RTree = rtree.RTree
[ [ 14, 0, 0.25, 0.125, 0, 0.66, 0, 272, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.5, 0.125, 0, 0.66, 0.25, 902, 0, 1, 0, 0, 902, 0, 0 ], [ 1, 0, 0.625, 0.125, 0, 0.66, 0....
[ "__all__ = [\"rtree\",\"rect\"]", "import rect", "import rtree", "Rect = rect.Rect", "RTree = rtree.RTree" ]
#!/usr/bin/env python from distutils.core import setup setup( name = "pyrtree", packages = ["pyrtree"], version = "0.50", description = "2-Dimensional RTree spatial index", author = "Dan Shoutis", author_email = "dan@shoutis.org", url="http://code.google.com/p/pyrtree", long_descriptio...
[ [ 1, 0, 0.15, 0.05, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 8, 0, 0.625, 0.8, 0, 0.66, 1, 234, 3, 8, 0, 0, 0, 0, 1 ] ]
[ "from distutils.core import setup", "setup(\n name = \"pyrtree\",\n packages = [\"pyrtree\"],\n version = \"0.50\",\n description = \"2-Dimensional RTree spatial index\",\n author = \"Dan Shoutis\",\n author_email = \"dan@shoutis.org\",\n url=\"http://code.google.com/p/pyrtree\"," ]
#!/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>[\\+\\*])...
# -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
[ [ 1, 0, 0.0376, 0.0014, 0, 0.66, 0, 842, 0, 1, 0, 0, 842, 0, 0 ], [ 1, 0, 0.0391, 0.0014, 0, 0.66, 0.0769, 919, 0, 1, 0, 0, 919, 0, 0 ], [ 3, 0, 0.0463, 0.0072, 0, ...
[ "from AlienFX.AlienFXProperties import *", "from AlienFX.AlienFXTexts import *", "class AlienFXPowerMode:\n\tdef __init__(self, name, description, block):\n\t\tself.description = description\n\t\t#self.blockId = block\n\t\tself.name = name", "\tdef __init__(self, name, description, block):\n\t\tself.descripti...
# -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
[ [ 3, 0, 0.6065, 0.7963, 0, 0.66, 0, 791, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.6111, 0.787, 1, 0.28, 0, 555, 0, 1, 0, 0, 0, 0, 0 ], [ 14, 2, 0.2407, 0.0093, 2, 0.31, ...
[ "class AlienFXTexts:\n\tdef __init__(self):\n\t\t#errors:\n\t\tself.ALIEN_FX_ERROR_TITLE_TEXT = \"AlienFX error\"\n\t\tself.DATA_LENGTH_ERROR_FORMAT = \"Data length should be %d but was %d\"\n\t\tself.DEVICE_NOT_PRESENT_ERROR_TEXT = \"The application was unable to communicate with the alienFX device. The device is ...
from AlienFX.AlienFXTexts import * from AlienFXComputers import * class AlienFXConfiguration: def __init__(self): self.name = "Default configuration" self.area = {} self.computer = "" self.AlienFXTexts = AlienFXTexts() def Create(self,name,computer,speed,path): self.name = name self.computer = comput...
[ [ 1, 0, 0.0129, 0.0065, 0, 0.66, 0, 919, 0, 1, 0, 0, 919, 0, 0 ], [ 1, 0, 0.0194, 0.0065, 0, 0.66, 0.25, 353, 0, 1, 0, 0, 353, 0, 0 ], [ 3, 0, 0.3677, 0.6645, 0, 0....
[ "from AlienFX.AlienFXTexts import *", "from AlienFXComputers import *", "class AlienFXConfiguration:\n\tdef __init__(self):\n\t\tself.name = \"Default configuration\"\n\t\tself.area = {}\n\t\tself.computer = \"\"\n\t\tself.AlienFXTexts = AlienFXTexts()\n\t\n\tdef Create(self,name,computer,speed,path):", "\tde...
# -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # #...
[ [ 1, 0, 0.2875, 0.0125, 0, 0.66, 0, 590, 0, 1, 0, 0, 590, 0, 0 ], [ 1, 0, 0.3, 0.0125, 0, 0.66, 0.5, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 3, 0, 0.6625, 0.6875, 0, 0.66, ...
[ "import platform", "import sys,os", "class AlienFXProperties:\n\tdef __init__(self):\n\t\tself.isDebug = False\n\t\t\n\t\tself.AUTHOR = \"Blondel Leo\"\n\t\t\n\t\t#Application info\n\t\tself.ALIEN_FX_VERSION = \"pre alpha\"", "\tdef __init__(self):\n\t\tself.isDebug = False\n\t\t\n\t\tself.AUTHOR = \"Blondel ...
#!/usr/bin/python # -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
[ [ 1, 0, 0.0961, 0.003, 0, 0.66, 0, 932, 0, 1, 0, 0, 932, 0, 0 ], [ 1, 0, 0.0991, 0.003, 0, 0.66, 0.1111, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.1021, 0.003, 0, 0.6...
[ "from AlienFX.AlienFXEngine import *", "from socket import *", "import sys", "import os", "BUFSIZ = 4096", "HOST = 'localhost'", "PORT = 25436 #ALIEN port as if you typed ALIEN on your phone ;)", "ADDR = (HOST,PORT)", "class ServCmd:\n\tdef __init__(s):\n\t\tprint(\"Initializing Driver ...\")\n\t\t...
#!/usr/bin/python # -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
[ [ 1, 0, 0.1923, 0.0077, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2, 0.0077, 0, 0.66, 0.1111, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.2077, 0.0077, 0, 0.6...
[ "import sys", "import gtk", "import appindicator", "import imaplib", "import re", "import pyAlienFX", "from AlienFX.AlienFXConfiguration import *", "PING_FREQUENCY = 10 # seconds", "class pyAlienFX_Indicator:\n\t\"\"\"The indicator class that takes care of creating the menu then loading it throught ...
#!/usr/bin/python import sys class parser: def __init__(self,path): f = open(path) self.string = f.readlines() self.clean() self.Strip() self.Print() def clean(self): tmp = [] for l in xrange(len(self.string)): if " " in self.string[l]: tmp.append(self.string[l]) self.string = tmp de...
[ [ 1, 0, 0.0517, 0.0172, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 3, 0, 0.4914, 0.8276, 0, 0.66, 0.5, 968, 0, 4, 0, 0, 0, 0, 18 ], [ 2, 1, 0.1466, 0.1034, 1, 0.28...
[ "import sys", "class parser:\n\tdef __init__(self,path):\n\t\tf = open(path)\n\t\tself.string = f.readlines()\n\t\tself.clean()\n\t\tself.Strip()\n\t\tself.Print()", "\tdef __init__(self,path):\n\t\tf = open(path)\n\t\tself.string = f.readlines()\n\t\tself.clean()\n\t\tself.Strip()\n\t\tself.Print()", "\t\tf ...
#!/usr/bin/python # -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
[ [ 1, 0, 0.5, 0.5, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 1, 0.5, 0, 0.66, 1, 590, 0, 1, 0, 0, 590, 0, 0 ] ]
[ "import os,sys", "import platform" ]
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 1, 0, 0.048, 0.0017, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0497, 0.0017, 0, 0.66, 0.0323, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0513, 0.0017, 0, 0...
[ "from ctypes import *", "import ctypes.util", "import usb.util", "from usb._debug import methodtrace", "import logging", "__author__ = 'Wander Lairson Costa'", "__all__ = ['get_backend']", "_logger = logging.getLogger('usb.backend.openusb')", "class _usb_endpoint_desc(Structure):\n _fields_ = [('...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 1, 0, 0.0479, 0.0017, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0495, 0.0017, 0, 0.66, 0.0238, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0512, 0.0017, 0, ...
[ "from ctypes import *", "import ctypes.util", "import usb.util", "import sys", "import logging", "from usb._debug import methodtrace", "import usb._interop as _interop", "__author__ = 'Wander Lairson Costa'", "__all__ = ['get_backend']", "_logger = logging.getLogger('usb.backend.libusb10')", "_L...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 8, 0, 0.1372, 0.1196, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2011, 0.0027, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2065, 0.0027, 0, 0.66, ...
[ "r\"\"\"usb.backend - Backend interface.\n\nThis module exports:\n\nIBackend - backend interface.\n\nBackends are Python objects which implement the IBackend interface.\nThe easiest way to do so is inherinting from IBackend.", "__author__ = 'Wander Lairson Costa'", "__all__ = ['IBackend', 'libusb01', 'libusb10'...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 1, 0, 0.0514, 0.0018, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0532, 0.0018, 0, 0.66, 0.0294, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.055, 0.0018, 0, 0...
[ "from ctypes import *", "import ctypes.util", "import os", "import usb.backend", "import usb.util", "import sys", "from usb.core import USBError", "from usb._debug import methodtrace", "import usb._interop as _interop", "import logging", "__author__ = 'Wander Lairson Costa'", "__all__ = ['get_...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 14, 0, 0.4328, 0.0149, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4627, 0.0149, 0, 0.66, 0.1667, 272, 0, 0, 0, 0, 0, 5, 0 ], [ 1, 0, 0.4925, 0.0149, 0, 0....
[ "__author__ = 'Wander Lairson Costa'", "__all__ = ['methodtrace', 'functiontrace']", "import logging", "import usb._interop as _interop", "def _trace_function_call(logger, fname, *args, **named_args):\n logger.debug(\n # TODO: check if 'f' is a method or a free function\n fn...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 8, 0, 0.0399, 0.0119, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0477, 0.0012, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0501, 0.0012, 0, 0.66...
[ "r\"\"\"usb.core - Core USB features.\n\nThis module exports:\n\nDevice - a class representing a USB device.\nConfiguration - a class representing a configuration descriptor.\nInterface - a class representing an interface descriptor.\nEndpoint - a class representing an endpoint descriptor.", "__author__ = 'Wander...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 8, 0, 0.1409, 0.0556, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1746, 0.004, 0, 0.66, 0.05, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.2103, 0.0595, 0, 0.66, ...
[ "r\"\"\"usb.control - USB standard control requests\n\nThis module exports:\n\nget_status - get recipeint status\nclear_feature - clear a recipient feature\nset_feature - set a recipient feature\nget_descriptor - get a device descriptor", "__author__ = 'Wander Lairson Costa'", "__all__ = ['get_status',\n ...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 8, 0, 0.1385, 0.0577, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1731, 0.0038, 0, 0.66, 0.0263, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1808, 0.0038, 0, 0.66,...
[ "r\"\"\"usb.util - Utility functions.\n\nThis module exports:\n\nendpoint_address - return the endpoint absolute address.\nendpoint_direction - return the endpoint transfer direction.\nendpoint_type - return the endpoint type\nctrl_direction - return the direction of a control transfer", "__author__ = 'Wander Lai...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 8, 0, 0.4, 0.1294, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4824, 0.0118, 0, 0.66, 0.1429, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.4941, 0.0118, 0, 0.66, ...
[ "r\"\"\"PyUSB - Easy USB access in Python\n\nThis package exports the following modules and subpackages:\n\n core - the main USB implementation\n legacy - the compatibility layer with 0.x version\n backend - the support for backend implementations.", "import logging", "import os", "__author__ = 'Wand...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 1, 0, 0.0876, 0.003, 0, 0.66, 0, 60, 0, 1, 0, 0, 60, 0, 0 ], [ 1, 0, 0.0906, 0.003, 0, 0.66, 0.0145, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0937, 0.003, 0, 0.66,...
[ "import usb.core as core", "import usb.util as util", "import usb._interop as _interop", "import usb.control as control", "__author__ = 'Wander Lairson Costa'", "USBError = core.USBError", "CLASS_AUDIO = 1", "CLASS_COMM = 2", "CLASS_DATA = 10", "CLASS_HID = 3", "CLASS_HUB = 9", "CLASS_MASS_STO...
# Copyright (C) 2009-2011 Wander Lairson Costa # # The following terms apply to all files associated # with the software unless explicitly disclaimed in individual files. # # The authors hereby grant permission to use, copy, modify, distribute, # and license this software and its documentation for any purpose, provi...
[ [ 1, 0, 0.2519, 0.0074, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2593, 0.0074, 0, 0.66, 0.1111, 80, 0, 1, 0, 0, 80, 0, 0 ], [ 14, 0, 0.2741, 0.0074, 0, 0...
[ "import sys", "import array", "__all__ = ['_reduce', '_set', '_next', '_groupby', '_sorted', '_update_wrapper']", "try:\n import functools\n _reduce = functools.reduce\nexcept (ImportError, AttributeError):\n _reduce = reduce", " import functools", " _reduce = functools.reduce", " _red...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
[ [ 1, 0, 0.3514, 0.0135, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3649, 0.0135, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.3784, 0.0135, 0, ...
[ "import os", "import re", "import tempfile", "import shutil", "ignore_pattern = re.compile('^(.svn|target|bin|classes)')", "java_pattern = re.compile('^.*\\.java')", "annot_pattern = re.compile('import org\\.apache\\.http\\.annotation\\.')", "def process_dir(dir):\n files = os.listdir(dir)\n for...
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
[ [ 1, 0, 0.0816, 0.0102, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1224, 0.0102, 0, 0.66, 0.0714, 792, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1531, 0.0102, 0, ...
[ "import os, re, mimetypes, sys", "SOURCE = sys.argv[1:]", "COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)", "COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)", "COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)", "EXCLUDE_TYPES = [\n \"application/xml\...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import os import shutil import sys # Bump pyglet/__init__.py version as well. VERSION = '1.2dev' long_description = '''pyglet provides an object-oriented programming interface for developing games and other visually-rich applicat...
[ [ 8, 0, 0.0116, 0.0066, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0199, 0.0033, 0, 0.66, 0.0769, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0233, 0.0033, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import os", "import shutil", "import sys", "VERSION = '1.2dev'", "long_description = '''pyglet provides an object-oriented programming\ninterface for developing games and other visually-rich applications\nfor Windows, Mac OS X ...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import math import warnings import pyglet import pyglet.image try: from pyglet.gl.VERSION_1_5 import * except ImportError: warnings.warn('OpenGL 1.5 or later is required collision detection. '\ 'Please u...
[ [ 8, 0, 0.0241, 0.0138, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0069, 0, 0.66, 0.125, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0483, 0.0069, 0, 0.66,...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id$'", "import math", "import warnings", "import pyglet", "import pyglet.image", "try:\n from pyglet.gl.VERSION_1_5 import *\nexcept ImportError:\n warnings.warn('OpenGL 1.5 or later is required collision detection. '\\\n ...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import ctypes as c import gzip import marshal import sys class AnonymousStruct(c.Structure): __slots__ = () _fields_ = ( ('foo', c.c_int), ) class AnonymousUnion(c.Union): __slots__ = () _fields_ = (...
[ [ 1, 0, 0.0054, 0.0054, 0, 0.66, 0, 182, 0, 1, 0, 0, 182, 0, 0 ], [ 1, 0, 0.0108, 0.0054, 0, 0.66, 0.125, 967, 0, 1, 0, 0, 967, 0, 0 ], [ 1, 0, 0.0162, 0.0054, 0, 0...
[ "import ctypes as c", "import gzip", "import marshal", "import sys", "class AnonymousStruct(c.Structure):\n __slots__ = ()\n _fields_ = (\n ('foo', c.c_int),\n )", " __slots__ = ()", " _fields_ = (\n ('foo', c.c_int),\n )", "class AnonymousUnion(c.Union):\n __slots__...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import gzip import cPickle as marshal import optparse import os import sys import xml.sax def parse_type(type_string): '''Get a tuple of the type components for a SWIG-formatted type. For example, given the type "p.f(p....
[ [ 8, 0, 0.0077, 0.0044, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0132, 0.0022, 0, 0.66, 0.0435, 959, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0154, 0.0022, 0, 0.66...
[ "'''\n'''", "__docformat__ = 'restructuredtext'", "__version__ = '$Id: $'", "import gzip", "import cPickle as marshal", "import optparse", "import os", "import sys", "import xml.sax", "def parse_type(type_string):\n '''Get a tuple of the type components for a SWIG-formatted type.\n\n For exa...