code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/python # # Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU ...
[ [ 1, 0, 0.35, 0.0167, 0, 0.66, 0, 367, 0, 1, 0, 0, 367, 0, 0 ], [ 3, 0, 0.6833, 0.6167, 0, 0.66, 1, 979, 0, 3, 0, 0, 0, 0, 8 ], [ 14, 1, 0.4167, 0.0167, 1, 0.48, ...
[ "import gconf", "class Config:\n\t\n\tclient_dir = \"/apps/absynth-ftp/\"\n\t\n\tdef __init__(self):\n\t\tself.client = gconf.client_get_default()\n\t\tself.client.add_dir (self.client_dir, gconf.CLIENT_PRELOAD_NONE)\n\t\tself._setFunction = { bool : self.client.set_bool,", "\tclient_dir = \"/apps/absynth-ftp/\...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.088, 0.0046, 0, 0.66, 0, 853, 0, 3, 0, 0, 853, 0, 0 ], [ 1, 0, 0.0926, 0.0046, 0, 0.66, 0.1429, 959, 0, 1, 0, 0, 959, 0, 0 ], [ 1, 0, 0.0972, 0.0046, 0, 0...
[ "from twisted.protocols.ftp import FTPClientBasic, FTPClient, FTPFileListProtocol", "from twisted.internet.protocol import ClientCreator", "from twisted.internet import reactor, protocol, defer", "from twisted.internet import threads", "from lib import filesmime as mimetypes", "import gobject, os", "cla...
#!/usr/bin/python import sys import os import os.path import ConfigParser import csv import httplib cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'fetch_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_file) samp...
[ [ 1, 0, 0.0769, 0.0256, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1026, 0.0256, 0, 0.66, 0.0714, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1282, 0.0256, 0, ...
[ "import sys", "import os", "import os.path", "import ConfigParser", "import csv", "import httplib", "cwd = os.path.abspath((os.path.dirname(sys.argv[0])))", "config_file = os.path.join(cwd, 'fetch_samples.conf')", "config = ConfigParser.RawConfigParser()", "config.read(config_file)", "samples_di...
#!/usr/bin/python import sys import os import os.path import ConfigParser from xml.etree import ElementTree cwd = os.path.abspath((os.path.dirname(sys.argv[0]))) config_file = os.path.join(cwd, 'analyze_samples.conf') #print 'config file: %s' % config_file config = ConfigParser.RawConfigParser() config.read(config_f...
[ [ 1, 0, 0.0938, 0.0312, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.125, 0.0312, 0, 0.66, 0.1, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1562, 0.0312, 0, 0.66...
[ "import sys", "import os", "import os.path", "import ConfigParser", "from xml.etree import ElementTree", "cwd = os.path.abspath((os.path.dirname(sys.argv[0])))", "config_file = os.path.join(cwd, 'analyze_samples.conf')", "config = ConfigParser.RawConfigParser()", "config.read(config_file)", "sampl...
""" Demonstrates how to create points and change some of the properties of points. """ import os import simplekml # Cities of the World with their coordinates and time corresponding to 12:00 noon, Eastern Standard Time # Source: http://www.infoplease.com/ipa/A0001769.html cities = [ ('Aberdeen, Scotland',...
[ [ 8, 0, 0.0136, 0.0204, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.034, 0.0068, 0, 0.66,...
[ "\"\"\"\nDemonstrates how to create points and change some of the properties of points.\n\"\"\"", "import os", "import simplekml", "cities = [\n ('Aberdeen, Scotland', '5:00 p.m.', 57.15, -2.15),\n ('Adelaide, Australia', '2:30 a.m.', -34.916667, 138.6),\n ('Algiers, Algeria', '6:00 p.m.', 36.833333,...
""" Demonstrates how to create a linestring focusing on the extrude and altitudemode properties. """ import os import simplekml # Create an instance of Kml kml = simplekml.Kml(name="LineString", open=1) # Create a linestring with two points (ie. a line) linestring = kml.newlinestring(name="A Line") linestr...
[ [ 8, 0, 0.0625, 0.0938, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.125, 0.0312, 0, 0.66, 0.0588, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1562, 0.0312, 0, 0.66,...
[ "\"\"\"\nDemonstrates how to create a linestring focusing on the extrude and altitudemode properties.\n\"\"\"", "import os", "import simplekml", "kml = simplekml.Kml(name=\"LineString\", open=1)", "linestring = kml.newlinestring(name=\"A Line\")", "linestring.coords = [(-122.364383,37.824664),(-122.364152...
""" Demonstrates the basics of overlays (ground screen and photo overlay). """ import os from simplekml import Kml, OverlayXY, ScreenXY, Units, Camera, AltitudeMode, ViewVolume kml = Kml(name="Overlays", open=1) # GroundOverlay ground = kml.newgroundoverlay(name='GroundOverlay Test') ground.icon.href = 'h...
[ [ 8, 0, 0.0513, 0.0769, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1282, 0.0256, 0, 0.66, 0.0476, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1538, 0.0256, 0, 0.66...
[ "\"\"\"\nDemonstrates the basics of overlays (ground screen and photo overlay).\n\"\"\"", "import os", "from simplekml import Kml, OverlayXY, ScreenXY, Units, Camera, AltitudeMode, ViewVolume", "kml = Kml(name=\"Overlays\", open=1)", "ground = kml.newgroundoverlay(name='GroundOverlay Test')", "ground.icon...
""" Demonstrates three types of MultiGeometry (point, linestring and polygon) using the South Africa coordinate system as a basis. """ import os from simplekml import Kml, Color kml = Kml(name="MultiGeometry", open=1) # Creating MultiGeometry multipnt = kml.newmultigeometry(name="MultiPoint") # SA (Hartebe...
[ [ 8, 0, 0.0357, 0.0536, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0893, 0.0179, 0, 0.66, 0.0476, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1071, 0.0179, 0, 0.66...
[ "\"\"\"\nDemonstrates three types of MultiGeometry (point, linestring and polygon) using the South Africa coordinate system as a basis.\n\"\"\"", "import os", "from simplekml import Kml, Color", "kml = Kml(name=\"MultiGeometry\", open=1)", "multipnt = kml.newmultigeometry(name=\"MultiPoint\") # SA (Hartebee...
""" This shows the use of the 3 different types of extended data: Data, Simple Data and Simple Array Data, as well as prettying up the data. """ import os from simplekml import Kml, Types, Snippet, Color # The KML kml = Kml(name="ExtendedData", open=1) # Data Example----------------------------------------...
[ [ 8, 0, 0.0247, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0617, 0.0123, 0, 0.66, 0.0303, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0741, 0.0123, 0, 0.66,...
[ "\"\"\"\nThis shows the use of the 3 different types of extended data: Data, Simple Data and Simple Array Data, as well as prettying up the data.\n\"\"\"", "import os", "from simplekml import Kml, Types, Snippet, Color", "kml = Kml(name=\"ExtendedData\", open=1)", "pnt = kml.newpoint(name='1. World of Birds...
""" This is a recreation of the example found in the KML Reference: http://code.google.com/apis/kml/documentation/kmlreference.html#gxtrack The unnecessary styling has not been implemented, but if you compare the KML References example in Google Earth to this example you should see no difference whatsoever (except for...
[ [ 8, 0, 0.0286, 0.0429, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0714, 0.0143, 0, 0.66, 0.0294, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0857, 0.0143, 0, 0.66...
[ "\"\"\"\nThis is a recreation of the example found in the KML Reference: http://code.google.com/apis/kml/documentation/kmlreference.html#gxtrack The unnecessary styling has not been implemented, but if you compare the KML References example in Google Earth to this example you should see no difference whatsoever (ex...
""" Demonstrates touring with the reproduction of the tour sample in the KML Reference https://developers.google.com/kml/documentation/kmlreference#gxtour with the addition of GxSoundCue """ import os import simplekml # Create an instance of kml kml = simplekml.Kml(name="Tours", open=1) # Create a new poin...
[ [ 8, 0, 0.0488, 0.0732, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.122, 0.0244, 0, 0.66, 0.0476, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1463, 0.0244, 0, 0.66,...
[ "\"\"\"\nDemonstrates touring with the reproduction of the tour sample in the KML Reference https://developers.google.com/kml/documentation/kmlreference#gxtour with the addition of GxSoundCue\n\"\"\"", "import os", "import simplekml", "kml = simplekml.Kml(name=\"Tours\", open=1)", "pnt = kml.newpoint(name=\...
""" Example demonstrating how to use gx:Track with a model. """ import os from simplekml import Kml, Model, AltitudeMode, Orientation, Scale # Coordinates and timestamps to be used to locate the car model in time and space car_info = {"coord" : [ (-1.205638094515976,52.86427051097027,0...
[ [ 8, 0, 0.0247, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0617, 0.0123, 0, 0.66, 0.0625, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0741, 0.0123, 0, 0.66,...
[ "\"\"\"\nExample demonstrating how to use gx:Track with a model.\n\"\"\"", "import os", "from simplekml import Kml, Model, AltitudeMode, Orientation, Scale", "car_info = {\"coord\" : [\n (-1.205638094515976,52.86427051097027,0), \n (-1.205381150785744,52.86520449509...
""" The very basics of simplekml. """ from __future__ import unicode_literals import os from simplekml import Kml, ColorMode, AltitudeMode, Style # Create an instance of Kml kml = Kml(name="Basics", open=1) # Create a new document doc = kml.newdocument(name="A Document") # Create a nested document ne...
[ [ 8, 0, 0.0263, 0.0395, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0658, 0.0132, 0, 0.66, 0.0196, 777, 0, 1, 0, 0, 777, 0, 0 ], [ 1, 0, 0.0789, 0.0132, 0, 0.66...
[ "\"\"\"\nThe very basics of simplekml.\n\"\"\"", "from __future__ import unicode_literals", "import os", "from simplekml import Kml, ColorMode, AltitudeMode, Style", "kml = Kml(name=\"Basics\", open=1)", "doc = kml.newdocument(name=\"A Document\")", "nestdoc = doc.newdocument()", "nestdoc.name = \"A N...
""" Styling points, linestrings, polygons and TOC items. """ import os from simplekml import Kml, ListItemType, Color kml = Kml(name="Styling", open=1) # Make all the items into radio buttons kml.document.liststyle.listitemtype = ListItemType.radiofolder # Change the icon of the document in the TOC kml...
[ [ 8, 0, 0.04, 0.06, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1, 0.02, 0, 0.66, 0.0385, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.12, 0.02, 0, 0.66, 0.0769,...
[ "\"\"\"\nStyling points, linestrings, polygons and TOC items.\n\"\"\"", "import os", "from simplekml import Kml, ListItemType, Color", "kml = Kml(name=\"Styling\", open=1)", "kml.document.liststyle.listitemtype = ListItemType.radiofolder", "kml.document.liststyle.itemicon.href = \"http://maps.google.com/m...
""" A collection of various features and stylings. """ import os from simplekml import * # Create an instance of Kml kml = Kml(name="Various") # Change the top level feature from a document to a folder kml.document = Folder(name="Various", open=1) #A NetworkLink netlink = kml.newnetworklink(name="Brok...
[ [ 8, 0, 0.0345, 0.0517, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.069, 0.0172, 0, 0.66, 0.0278, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1034, 0.0172, 0, 0.66,...
[ "\"\"\"\nA collection of various features and stylings.\n\"\"\"", "import os", "from simplekml import *", "kml = Kml(name=\"Various\")", "kml.document = Folder(name=\"Various\", open=1)", "netlink = kml.newnetworklink(name=\"Broken NetworkLink\")", "netlink.link.href = \"http://www.foobar.com/foo/bar.km...
""" How to use simplekml. """ import os from simplekml import Kml kml = Kml(name="Usage", open=1) # open=1 just opens the document in the TOC (table of contents). Not a necessary step. # A simple Point kml.newpoint(name="Kirstenbosch", coords=[(18.432314,-33.988862)]) # A simple Linestring showing off H...
[ [ 8, 0, 0.08, 0.12, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2, 0.04, 0, 0.66, 0.1429, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.24, 0.04, 0, 0.66, 0.2857,...
[ "\"\"\"\nHow to use simplekml.\n\"\"\"", "import os", "from simplekml import Kml", "kml = Kml(name=\"Usage\", open=1) # open=1 just opens the document in the TOC (table of contents). Not a necessary step.", "kml.newpoint(name=\"Kirstenbosch\", coords=[(18.432314,-33.988862)])", "lin = kml.newlinestring(na...
import os import glob from pygments import highlight from pygments.lexers import PythonLexer from pygments.formatters import HtmlFormatter import simplekml formatter = HtmlFormatter(linenos=True, noclasses=True) formatter.get_style_defs('.highlight') file_path, file_name = os.path.split(os.path.abspath(__fi...
[ [ 1, 0, 0.0192, 0.0192, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0385, 0.0192, 0, 0.66, 0.0714, 958, 0, 1, 0, 0, 958, 0, 0 ], [ 1, 0, 0.0577, 0.0192, 0, ...
[ "import os", "import glob", "from pygments import highlight", "from pygments.lexers import PythonLexer", "from pygments.formatters import HtmlFormatter", "import simplekml", "formatter = HtmlFormatter(linenos=True, noclasses=True)", "formatter.get_style_defs('.highlight')", "file_path, file_name = o...
from distutils.core import setup setup( name = 'simplekml', packages = ['simplekml'], version = '1.2.3', description = 'A Simple KML creator', author='Kyle Lancaster', author_email='kyle.lan@gmail.com', url='http://code.google.com/p/simplekml/', license='GNU General Public Lic...
[ [ 1, 0, 0.0227, 0.0227, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 8, 0, 0.5341, 0.9545, 0, 0.66, 1, 234, 3, 10, 0, 0, 0, 0, 1 ] ]
[ "from distutils.core import setup", "setup(\n name = 'simplekml',\n packages = ['simplekml'],\n version = '1.2.3',\n description = 'A Simple KML creator',\n author='Kyle Lancaster',\n author_email='kyle.lan@gmail.com',\n url='http://code.google.com/p/simplekml/'," ]
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0198, 0.0375, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0417, 0.0021, 0, 0.66, 0.0909, 983, 0, 2, 0, 0, 983, 0, 0 ], [ 1, 0, 0.0437, 0.0021, 0, 0.66...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0396, 0.075, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0833, 0.0042, 0, 0.66, 0.2, 983, 0, 3, 0, 0, 983, 0, 0 ], [ 1, 0, 0.0875, 0.0042, 0, 0.66, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0674, 0.1277, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1418, 0.0071, 0, 0.66, 0.25, 983, 0, 1, 0, 0, 983, 0, 0 ], [ 1, 0, 0.1489, 0.0071, 0, 0.66, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0251, 0.0475, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0528, 0.0026, 0, 0.66, 0.1111, 983, 0, 2, 0, 0, 983, 0, 0 ], [ 3, 0, 0.1161, 0.1187, 0, 0.66...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0375, 0.0711, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0791, 0.004, 0, 0.66, 0.25, 983, 0, 1, 0, 0, 983, 0, 0 ], [ 3, 0, 0.3261, 0.4822, 0, 0.66, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.004, 0.0076, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0084, 0.0004, 0, 0.66, 0.0312, 321, 0, 2, 0, 0, 321, 0, 0 ], [ 1, 0, 0.0088, 0.0004, 0, 0.66,...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.abstra...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0505, 0.0957, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1064, 0.0053, 0, 0.66, 0.1667, 983, 0, 1, 0, 0, 983, 0, 0 ], [ 3, 0, 0.1649, 0.0904, 0, 0.66...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0311, 0.059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0656, 0.0033, 0, 0.66, 0.0714, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66,...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "import os", "import...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0311, 0.059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0656, 0.0033, 0, 0.66, 0.1429, 983, 0, 2, 0, 0, 983, 0, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66,...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0182, 0.0345, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0383, 0.0019, 0, 0.66, 0.1111, 770, 0, 1, 0, 0, 770, 0, 0 ], [ 1, 0, 0.0402, 0.0019, 0, 0.66...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "import xml.dom.minido...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.2209, 0.4186, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.7326, 0.5581, 0, 0.66, 1, 766, 0, 3, 0, 0, 186, 0, 11 ], [ 8, 1, 0.4884, 0.0233, 1, 0.14, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "class Coordinates(obj...
""" Obtained from http://python3porting.com/noconv.html enable unicode support in python 2 and 3. """ import sys if sys.version < '3': import codecs def u(x): return codecs.unicode_escape_decode(x)[0] else: def u(x): return x
[ [ 8, 0, 0.1923, 0.3077, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4615, 0.0769, 0, 0.66, 0.5, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 4, 0, 0.7692, 0.5385, 0, 0.66, ...
[ "\"\"\"\nObtained from http://python3porting.com/noconv.html enable unicode support\nin python 2 and 3.\n\"\"\"", "import sys", "if sys.version < '3':\n import codecs\n def u(x):\n return codecs.unicode_escape_decode(x)[0]\nelse:\n def u(x):\n return x", " import codecs", " def ...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0285, 0.0541, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.0661, 0.015, 0, 0.66, 0.0667, 265, 0, 0, 0, 0, 186, 0, 0 ], [ 8, 1, 0.0631, 0.003, 1, 0.5, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "class AltitudeMode(ob...
""" simplekml Copyright 2011 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribut...
[ [ 8, 0, 0.2632, 0.5, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.5526, 0.0263, 0, 0.66, 0.0588, 321, 0, 7, 0, 0, 321, 0, 0 ], [ 1, 0, 0.5789, 0.0263, 0, 0.66, ...
[ "\"\"\"\nsimplekml\nCopyright 2011 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml....
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.023, 0.0436, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0484, 0.0024, 0, 0.66, 0.1, 983, 0, 3, 0, 0, 983, 0, 0 ], [ 1, 0, 0.0508, 0.0024, 0, 0.66, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0432, 0.0818, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0909, 0.0045, 0, 0.66, 0.1667, 983, 0, 1, 0, 0, 983, 0, 0 ], [ 3, 0, 0.1955, 0.1864, 0, 0.66...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0448, 0.0849, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0943, 0.0047, 0, 0.66, 0.2, 983, 0, 2, 0, 0, 983, 0, 0 ], [ 1, 0, 0.0991, 0.0047, 0, 0.66, ...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
""" Copyright 2011-2012 Kyle Lancaster This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in ...
[ [ 8, 0, 0.0353, 0.0669, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0743, 0.0037, 0, 0.66, 0.1111, 983, 0, 2, 0, 0, 983, 0, 0 ], [ 1, 0, 0.0781, 0.0037, 0, 0.66...
[ "\"\"\"\nCopyright 2011-2012 Kyle Lancaster\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.", "from simplekml.base i...
#inaccurate pyLightpack class animation examples for 10 LED Lightpack configuration (3+2+3+2 clockwise from the left edge). import lightpack, time, re, random lpack = lightpack.lightpack('127.0.0.1', 3636, [2,3,6,7,8,9,10,4,5,1] ) lpack.connect() lpack.lock() first = True while True : for k in range (0, 10...
[ [ 1, 0, 0.1111, 0.0556, 0, 0.66, 0, 635, 0, 4, 0, 0, 635, 0, 0 ], [ 14, 0, 0.2222, 0.0556, 0, 0.66, 0.1667, 117, 3, 3, 0, 0, 635, 10, 1 ], [ 8, 0, 0.2778, 0.0556, 0, ...
[ "import lightpack, time, re, random", "lpack = lightpack.lightpack('127.0.0.1', 3636, [2,3,6,7,8,9,10,4,5,1] )", "lpack.connect()", "lpack.lock()", "first = True", "while True :\n\tfor k in range (0, 10) :\t\n\t\tif first :\n\t\t\tlpack.setColorToAll(80,0,0)\n\t\telse :\n\t\t\tlpack.setColorToAll(0,0,80)...
#inaccurate pyLightpack class animation examples for 10 LED Lightpack configuration (3+2+3+2 clockwise from the left edge). import lightpack, time, re, random lpack = lightpack.lightpack('127.0.0.1', 3636, [2,3,6,7,8,9,10,4,5,1] ) lpack.connect() lpack.lock() print ('***pyLightpack animation examples (read scr...
[ [ 1, 0, 0.0169, 0.0085, 0, 0.66, 0, 635, 0, 4, 0, 0, 635, 0, 0 ], [ 14, 0, 0.0339, 0.0085, 0, 0.66, 0.1, 117, 3, 3, 0, 0, 635, 10, 1 ], [ 8, 0, 0.0424, 0.0085, 0, 0...
[ "import lightpack, time, re, random", "lpack = lightpack.lightpack('127.0.0.1', 3636, [2,3,6,7,8,9,10,4,5,1] )", "lpack.connect()", "lpack.lock()", "print ('***pyLightpack animation examples (read script header first)***')", "print ('\t1 -- Basic flash 4 times')", "print ('\t2 -- \"Snake\"')", "print ...
#Skype contact waiting script. It flashes Lightpack when target buddy in contact list are changed his online status. #You need Skype4Py module and lightpack.py class for using it. import Skype4Py, lightpack, time, sys skype = Skype4Py.Skype() # Create an instance of the Skype class lpack = lightpack.lightpack('...
[ [ 1, 0, 0.1379, 0.0345, 0, 0.66, 0, 279, 0, 4, 0, 0, 279, 0, 0 ], [ 14, 0, 0.2069, 0.0345, 0, 0.66, 0.1429, 627, 3, 0, 0, 0, 969, 10, 1 ], [ 14, 0, 0.2414, 0.0345, 0, ...
[ "import Skype4Py, lightpack, time, sys", "skype = Skype4Py.Skype() # Create an instance of the Skype class", "lpack = lightpack.lightpack('127.0.0.1', 3636, [2,3,6,7,8,9,10,4,5,1] )", "skype.Attach() # Connect the Skype object to the Skype client", "targetstat = ['ONLINE', 'DND', 'SKYPEME'] # Array of targe...
from xml.dom import minidom from xml.dom import EMPTY_NAMESPACE try: import json except ImportError: import simplejson as json import lightpack import time import urllib import urllib2 username = '***********' password = '*************' lpack = lightpack.lightpack('127.0.0.1', 3636, [2,3,6,7,8,9,10,...
[ [ 1, 0, 0.0127, 0.0127, 0, 0.66, 0, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0253, 0.0127, 0, 0.66, 0.0345, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 7, 0, 0.057, 0.0506, 0, 0...
[ "from xml.dom import minidom", "from xml.dom import EMPTY_NAMESPACE", "try:\n import json\nexcept ImportError:\n import simplejson as json", " import json", " import simplejson as json", "import lightpack", "import time", "import urllib", "import urllib2", "username = '***********'", "passwo...
import socket, time, imaplib, re, sys class lightpack: # host = '127.0.0.1' # The remote host # port = 3636 # The same port as used by the server # ledMap = [1,2,3,4,5,6,7,8,9,10] #mapped LEDs def __init__(self, _host, _port, _ledMap): self.host = _host self.port = _port self.ledM...
[ [ 1, 0, 0.0093, 0.0093, 0, 0.66, 0, 687, 0, 5, 0, 0, 687, 0, 0 ], [ 3, 0, 0.5093, 0.972, 0, 0.66, 1, 635, 0, 17, 0, 0, 0, 0, 49 ], [ 2, 1, 0.0981, 0.0374, 1, 0.91, ...
[ "import socket, time, imaplib, re, sys", "class lightpack:\n\n#\thost = '127.0.0.1' # The remote host\n#\tport = 3636 # The same port as used by the server\n#\tledMap = [1,2,3,4,5,6,7,8,9,10] \t#mapped LEDs\n\t\n\tdef __init__(self, _host, _port, _ledMap):\n\t\tself.host = _host", "\tdef __init_...
# Gmail checker script. It check you mail thru IMAP and run clockwise "snake" effect if you have unread messages in the box import lightpack, time, imaplib, re, getpass def gmail_checker(username,password): import imaplib,re i=imaplib.IMAP4_SSL('imap.gmail.com') try: i....
[ [ 1, 0, 0.075, 0.025, 0, 0.66, 0, 635, 0, 5, 0, 0, 635, 0, 0 ], [ 2, 0, 0.25, 0.275, 0, 0.66, 0.1667, 592, 0, 2, 1, 0, 0, 0, 9 ], [ 1, 1, 0.15, 0.025, 1, 0.41, ...
[ "import lightpack, time, imaplib, re, getpass", "def gmail_checker(username,password):\n import imaplib,re\n i=imaplib.IMAP4_SSL('imap.gmail.com')\n try:\n i.login(username,password)\n x,y=i.status('INBOX','(MESSAGES UNSEEN)')\n messages=int(re.sea...
from data import * from template import * wwwPath = "www/" convert("conferenceList.template", wwwPath + "index.html", {'wwwPath':'www/'})
[ [ 1, 0, 0.25, 0.25, 0, 0.66, 0, 929, 0, 1, 0, 0, 929, 0, 0 ], [ 1, 0, 0.5, 0.25, 0, 0.66, 0.3333, 549, 0, 1, 0, 0, 549, 0, 0 ], [ 14, 0, 0.75, 0.25, 0, 0.66, 0....
[ "from data import *", "from template import *", "wwwPath = \"www/\"", "convert(\"conferenceList.template\", wwwPath + \"index.html\", {'wwwPath':'www/'})" ]
stmn_start = "[%" stmn_end = "%]" expr_start = "<%" expr_end = "%>" def convert(template, target, globals=[]): previousChar = "" thisChar = "" inPython = False pythonString = "" with open(template, "r") as input: with open(target, 'w') as output: while True: ...
[ [ 14, 0, 0.0204, 0.0204, 0, 0.66, 0, 810, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0408, 0.0204, 0, 0.66, 0.1667, 509, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0612, 0.0204, 0, 0...
[ "stmn_start = \"[%\"", "stmn_end = \"%]\"", "expr_start = \"<%\"", "expr_end = \"%>\"", "def convert(template, target, globals=[]):\n previousChar = \"\"\n thisChar = \"\"\n inPython = False\n pythonString = \"\"\n with open(template, \"r\") as input:\n with open(target, 'w') as output...
def saveToFile(content, fileName): import os.path dir = os.path.split(fileName)[0] try: os.makedirs(dir) except: pass f = open(fileName, 'w') f.write(content) f.close() def loadFromFile(fileName): f = open(fileName) s = f.read() f.close() retur...
[ [ 2, 0, 0.1486, 0.2703, 0, 0.66, 0, 934, 0, 2, 0, 0, 0, 0, 5 ], [ 1, 1, 0.0541, 0.027, 1, 0.2, 0, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 14, 1, 0.0811, 0.027, 1, 0.2, 0....
[ "def saveToFile(content, fileName):\n import os.path\n dir = os.path.split(fileName)[0]\n try:\n os.makedirs(dir)\n except:\n pass\n f = open(fileName, 'w')", " import os.path", " dir = os.path.split(fileName)[0]", " try:\n os.makedirs(dir)\n except:\n pa...
from util import * class Papers(list): def __init__(self, list = [], date = None): self[:] = list self.date = date class Paper: # citations can be int, "notFound". "notFound" means not found on google scholar def __init__(self, title, authors): self.title = title ...
[ [ 1, 0, 0.0065, 0.0065, 0, 0.66, 0, 811, 0, 1, 0, 0, 811, 0, 0 ], [ 3, 0, 0.029, 0.0258, 0, 0.66, 0.0625, 141, 0, 1, 0, 0, 430, 0, 0 ], [ 2, 1, 0.0323, 0.0194, 1, 0...
[ "from util import *", "class Papers(list):\n def __init__(self, list = [], date = None):\n self[:] = list\n self.date = date", " def __init__(self, list = [], date = None):\n self[:] = list\n self.date = date", " self[:] = list", " self.date = date", "class ...
#!/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\...
# $Id: test-hello.py 3302 2010-08-09 18:39:20Z eldering $ # # This should give CORRECT on the default problem 'hello'. # # @EXPECTED_RESULTS@: CORRECT print "Hello world!"
[ [ 8, 0, 1, 0.1429, 0, 0.66, 0, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "print(\"Hello world!\")" ]
# $Id: test-syntax-error.py 3302 2010-08-09 18:39:20Z eldering $ # # Python doesn't have a syntax check, so this should fail at runtime # with a RUN-ERROR. # # @EXPECTED_RESULTS@: RUN-ERROR This is not correct Python syntax and will give errors!
[]
[]
#!/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 -*- import sys def renormalize(x): i = len(x)-1 while i > 0: if x[i-1] < x[i]: x[i-1] = x[i] i -= 1 if len(sys.argv) != 3: print "specify filename and desired number of hits" sys.exit(0) def buildInterpol(precisao, revocacao): normalizedPoints = [0.1*x for x in range(11)] ...
[ [ 1, 0, 0.0187, 0.0093, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 2, 0, 0.0561, 0.0467, 0, 0.66, 0.0357, 885, 0, 1, 0, 0, 0, 0, 1 ], [ 14, 1, 0.0467, 0.0093, 1, 0...
[ "import sys", "def renormalize(x):\n i = len(x)-1\n while i > 0:\n if x[i-1] < x[i]: x[i-1] = x[i]\n i -= 1", " i = len(x)-1", " while i > 0:\n if x[i-1] < x[i]: x[i-1] = x[i]\n i -= 1", " if x[i-1] < x[i]: x[i-1] = x[i]", " if x[i-1] < x[i]: x[i-1] = x[i]", "if len(sys.argv) != 3:...
# -*- coding: utf-8 -*- import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) data = open("buffer_sizes.txt", "r") lines = data.readlines() data.close() x = [] y = [] xall = [] yall = [] i = 0 tmp_x = [] tmp_y = [] for line in lines: tokens = line.split() tmp_x.append(int(tokens[1])) tmp...
[ [ 1, 0, 0.0606, 0.0303, 0, 0.66, 0, 596, 0, 1, 0, 0, 596, 0, 0 ], [ 14, 0, 0.1212, 0.0303, 0, 0.66, 0.0625, 806, 3, 0, 0, 0, 789, 10, 1 ], [ 14, 0, 0.1515, 0.0303, 0, ...
[ "import matplotlib.pyplot as plt", "fig = plt.figure()", "ax = fig.add_subplot(111)", "data = open(\"buffer_sizes.txt\", \"r\")", "lines = data.readlines()", "data.close()", "x = []", "y = []", "xall = []", "yall = []", "i = 0", "tmp_x = []", "tmp_y = []", "for line in lines:\n tokens = l...
#!/usr/bin/python import socket import struct import string import sys # sinalizacao # ABIT = 8 : ativo off-hook, desativo on-hook # BBIT = 4 : desativo ringando, ativo sem ring # CBIT = 2 : desativo # DBIT = 1 : ativo audioorig = open('601.raw','r').read() posaudioorig = 0 audioenv='' audio1 = [] def imprimepacote...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.25, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.1364, 0.0455, 0, 0....
[ "import socket", "import struct", "import string", "import sys", "def imprimepacote(pac):\n print(\" \")\n # tira ethernet\n pac = pac[14:]\n print(\"Subaddr: %d\" % struct.unpack('>H', pac[0:2]))\n sampleschunk = struct.unpack('B', pac[2])[0]\n print(\"Samples Chunk: %d\" % sampleschunk)\n pr...
#!/usr/bin/python import socket import struct import string import sys # sinalizacao # ABIT = 8 : ativo off-hook, desativo on-hook # BBIT = 4 : desativo ringando, ativo sem ring # CBIT = 2 : desativo # DBIT = 1 : ativo audioorig = open('601.raw','r').read() posaudioorig = 0 audioenv='' audio1 = [] def imprimepacote...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.25, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 1, 0, 0.1364, 0.0455, 0, 0....
[ "import socket", "import struct", "import string", "import sys", "def imprimepacote(pac):\n print(\" \")\n # tira ethernet\n pac = pac[14:]\n print(\"Subaddr: %d\" % struct.unpack('>H', pac[0:2]))\n sampleschunk = struct.unpack('B', pac[2])[0]\n print(\"Samples Chunk: %d\" % sampleschunk)\n pr...
#!/usr/bin/python import socket import struct s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0xd00d)) s.bind(("sn1", 0xd00d)) while 1: pac = s.recv(1024) print " " # tira ethernet pac = pac[14:] print "Subaddr: %d" % struct.unpack('>H', pac[0:2]) sampleschunk = struct.unpack('B',...
[ [ 1, 0, 0.12, 0.04, 0, 0.66, 0, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.16, 0.04, 0, 0.66, 0.25, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 14, 0, 0.24, 0.04, 0, 0.66, 0.5...
[ "import socket", "import struct", "s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0xd00d))", "s.bind((\"sn1\", 0xd00d))", "while 1:\n pac = s.recv(1024)\n print(\" \")\n # tira ethernet\n pac = pac[14:]\n print(\"Subaddr: %d\" % struct.unpack('>H', pac[0:2]))\n sampleschunk = ...
#!/usr/bin/python import socket import struct s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0xd00d)) s.bind(("sn1", 0xd00d)) while 1: pac = s.recv(1024) print " " # tira ethernet pac = pac[14:] print "Subaddr: %d" % struct.unpack('>H', pac[0:2]) sampleschunk = struct.unpack('B',...
[ [ 1, 0, 0.12, 0.04, 0, 0.66, 0, 687, 0, 1, 0, 0, 687, 0, 0 ], [ 1, 0, 0.16, 0.04, 0, 0.66, 0.25, 399, 0, 1, 0, 0, 399, 0, 0 ], [ 14, 0, 0.24, 0.04, 0, 0.66, 0.5...
[ "import socket", "import struct", "s = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0xd00d))", "s.bind((\"sn1\", 0xd00d))", "while 1:\n pac = s.recv(1024)\n print(\" \")\n # tira ethernet\n pac = pac[14:]\n print(\"Subaddr: %d\" % struct.unpack('>H', pac[0:2]))\n sampleschunk = ...
#!/usr/bin/env pypy import os, sys, logging, re import argparse import fnmatch configurations = {'lite', 'pro'} package_dirs = { 'lite': ('src/cx/hell/android/pdfview',), 'pro': ('src/cx/hell/android/pdfviewpro',) } file_replaces = { 'lite': ( 'cx.hell.android.pdfview.', '"cx.hell.an...
[ [ 1, 0, 0.014, 0.0047, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0187, 0.0047, 0, 0.66, 0.0526, 325, 0, 1, 0, 0, 325, 0, 0 ], [ 1, 0, 0.0234, 0.0047, 0, 0...
[ "import os, sys, logging, re", "import argparse", "import fnmatch", "configurations = {'lite', 'pro'}", "package_dirs = {\n 'lite': ('src/cx/hell/android/pdfview',),\n 'pro': ('src/cx/hell/android/pdfviewpro',)\n}", "file_replaces = {\n 'lite': (\n 'cx.hell.android.pdfview.',\n '\"c...
#!/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/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...
# 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.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...
""" 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...
# 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.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) 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...
# 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...
#!/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 (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...
__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.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: #...
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 ...
# 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.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...