code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
#!/usr/bin/env python #------------------------------------------------------------------------------# # errors.py # # # # Copyright (c) 2009, Code A La Mode, original autho...
[ [ 8, 0, 0.3026, 0.193, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.4298, 0.0263, 0, 0.66, 0.25, 814, 0, 0, 0, 0, 645, 0, 0 ], [ 8, 1, 0.4298, 0.0088, 1, 0.09, ...
[ "\"\"\"Custom grab-it exception classes.\n\nExample throwing:\n >>> try:\n ... 1 / 0\n ... except ZeroDivisionError:\n ... raise SearchError(msg='divided by 0')\n ...", "class _Error(Exception):\n \"\"\"Base class from which exception classes in this module inherit.\"\"\"\n pass", "...
#------------------------------------------------------------------------------# # index.py # # # # Copyright (c) 2009, Code A La Mode, original authors. ...
[ [ 8, 0, 0.1341, 0.0061, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1524, 0.0061, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.1585, 0.0061, 0, 0.66, ...
[ "\"\"\"Bookmark saving and indexing logic.\"\"\"", "import datetime", "import logging", "from google.appengine.api import users", "from google.appengine.ext import db", "from google.appengine.ext import webapp", "import decorators", "import models", "import utils", "_log = logging.getLogger(__name...
#------------------------------------------------------------------------------# # config.py # # # # Copyright (c) 2009, Code A La Mode, original authors. ...
[ [ 8, 0, 0.1654, 0.0075, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.188, 0.0075, 0, 0.66, 0.0357, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1955, 0.0075, 0, 0.66,...
[ "\"\"\"grab-it configuration, tunable options.\"\"\"", "import logging", "import os", "_log = logging.getLogger(__name__)", "SERVER_SOFTWARE = os.getenv('SERVER_SOFTWARE')", "DEBUG = SERVER_SOFTWARE and SERVER_SOFTWARE.split('/')[0] == 'Development'", "_log.debug('turning %s debug mode' % ('on' if DEBUG...
import time import BaseHTTPServer, cgi import urlparse from BaseHTTPServer import BaseHTTPRequestHandler import json from DBConnection import DBConn HOST_NAME = '172.30.242.233' # !!!REMEMBER TO CHANGE THIS!!! PORT_NUMBER = 9000 # Maybe set this to 9000. CONNECTION = DBConn() class MyHandler(BaseHTTPServer.BaseHTTPR...
[ [ 1, 0, 0.0046, 0.0046, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 1, 0, 0.0093, 0.0046, 0, 0.66, 0.1, 801, 0, 2, 0, 0, 801, 0, 0 ], [ 1, 0, 0.0139, 0.0046, 0, 0.6...
[ "import time", "import BaseHTTPServer, cgi", "import urlparse", "from BaseHTTPServer import BaseHTTPRequestHandler", "import json", "from DBConnection import DBConn", "HOST_NAME = '172.30.242.233' # !!!REMEMBER TO CHANGE THIS!!!", "PORT_NUMBER = 9000 # Maybe set this to 9000.", "CONNECTION = DBConn(...
#!/usr/bin/env python # XMPP client utils for testing bot from twisted.internet import reactor, defer from twisted.internet.task import LoopingCall from twisted.words.protocols.jabber import xmlstream, sasl, sasl_mechanisms, jid, client from twisted.words.protocols.jabber.client import CheckVersionInitializer, BindIn...
[ [ 1, 0, 0.0113, 0.0023, 0, 0.66, 0, 937, 0, 2, 0, 0, 937, 0, 0 ], [ 1, 0, 0.0135, 0.0023, 0, 0.66, 0.0667, 85, 0, 1, 0, 0, 85, 0, 0 ], [ 1, 0, 0.0158, 0.0023, 0, 0....
[ "from twisted.internet import reactor, defer", "from twisted.internet.task import LoopingCall", "from twisted.words.protocols.jabber import xmlstream, sasl, sasl_mechanisms, jid, client", "from twisted.words.protocols.jabber.client import CheckVersionInitializer, BindInitializer,\\\n SessionInitializer", ...
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. import sys from twisted.internet import reactor from twisted.names.srvconnect import SRVConnector from twisted.words.xish import domish from twisted.words.protocols.jabber import xmlstream, client, jid class Client(object): def __init__(self,...
[ [ 1, 0, 0.0606, 0.0152, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0758, 0.0152, 0, 0.66, 0.1111, 937, 0, 1, 0, 0, 937, 0, 0 ], [ 1, 0, 0.0909, 0.0152, 0, ...
[ "import sys", "from twisted.internet import reactor", "from twisted.names.srvconnect import SRVConnector", "from twisted.words.xish import domish", "from twisted.words.protocols.jabber import xmlstream, client, jid", "class Client(object):\n def __init__(self, client_jid, secret):\n f = client.X...
#!/usr/bin/env python from twisted.internet import reactor from twisted.words.xish import domish from twisted.words.protocols.jabber import xmlstream from wokkel import server from kontalk.xmppserver.component import net class NetConnector(object): def __init__(self, host, port): authenticator = net.XM...
[ [ 1, 0, 0.0319, 0.0106, 0, 0.66, 0, 937, 0, 1, 0, 0, 937, 0, 0 ], [ 1, 0, 0.0532, 0.0106, 0, 0.66, 0.1429, 276, 0, 1, 0, 0, 276, 0, 0 ], [ 1, 0, 0.0638, 0.0106, 0, ...
[ "from twisted.internet import reactor", "from twisted.words.xish import domish", "from twisted.words.protocols.jabber import xmlstream", "from wokkel import server", "from kontalk.xmppserver.component import net", "class NetConnector(object):\n def __init__(self, host, port):\n authenticator = n...
#!/usr/bin/env python from twisted.internet import reactor, defer from twisted.internet.task import LoopingCall from twisted.words.protocols.jabber import xmlstream, sasl, sasl_mechanisms, jid, client from twisted.words.protocols.jabber.client import CheckVersionInitializer, BindInitializer,\ SessionInitializer f...
[ [ 1, 0, 0.0141, 0.0035, 0, 0.66, 0, 937, 0, 2, 0, 0, 937, 0, 0 ], [ 1, 0, 0.0176, 0.0035, 0, 0.66, 0.05, 85, 0, 1, 0, 0, 85, 0, 0 ], [ 1, 0, 0.0211, 0.0035, 0, 0.66...
[ "from twisted.internet import reactor, defer", "from twisted.internet.task import LoopingCall", "from twisted.words.protocols.jabber import xmlstream, sasl, sasl_mechanisms, jid, client", "from twisted.words.protocols.jabber.client import CheckVersionInitializer, BindInitializer,\\\n SessionInitializer", ...
#!/usr/bin/env python # Copyright (c) 2007 Sander Marechal # See jukebox/trunk/LICENSE for details """ This is a test server build on my twisted.words hacks """ from twisted.cred import portal from twisted.cred import checkers from twisted.internet import reactor from twisted.words.xish import domish from twisted.wo...
[ [ 8, 0, 0.0593, 0.0254, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0847, 0.0085, 0, 0.66, 0.1, 847, 0, 1, 0, 0, 847, 0, 0 ], [ 1, 0, 0.0932, 0.0085, 0, 0.66, ...
[ "\"\"\"\nThis is a test server build on my twisted.words hacks\n\"\"\"", "from twisted.cred import portal", "from twisted.cred import checkers", "from twisted.internet import reactor", "from twisted.words.xish import domish", "from twisted.words.protocols.jabber import xmlstream", "from xmppserver impor...
#!/usr/bin/env python # Testing bot for Kontalk XMPP from twisted.internet import reactor from twisted.words.xish import domish from twisted.words.protocols.jabber import jid, xmlstream, client from wokkel import xmppim import sys, time, demjson, base64, gpgme, gpgme.editutil try: from io import BytesIO except...
[ [ 1, 0, 0.0148, 0.003, 0, 0.66, 0, 937, 0, 1, 0, 0, 937, 0, 0 ], [ 1, 0, 0.0178, 0.003, 0, 0.66, 0.0667, 276, 0, 1, 0, 0, 276, 0, 0 ], [ 1, 0, 0.0207, 0.003, 0, 0.6...
[ "from twisted.internet import reactor", "from twisted.words.xish import domish", "from twisted.words.protocols.jabber import jid, xmlstream, client", "from wokkel import xmppim", "import sys, time, demjson, base64, gpgme, gpgme.editutil", "try:\n from io import BytesIO\nexcept ImportError:\n from St...
import base64, socket, sys from twisted.application import service from twisted.internet import defer, protocol, reactor from twisted.python import log from twisted.words.protocols.jabber import client, error, jid, sasl, xmlstream from twisted.words.xish import domish XPATH_ALL = "//*" XPATH_AUTH = "//auth[@xmlns='%s'...
[ [ 1, 0, 0.0032, 0.0032, 0, 0.66, 0, 177, 0, 3, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0065, 0.0032, 0, 0.66, 0.04, 85, 0, 1, 0, 0, 85, 0, 0 ], [ 1, 0, 0.0097, 0.0032, 0, 0.66...
[ "import base64, socket, sys", "from twisted.application import service", "from twisted.internet import defer, protocol, reactor", "from twisted.python import log", "from twisted.words.protocols.jabber import client, error, jid, sasl, xmlstream", "from twisted.words.xish import domish", "XPATH_ALL = \"//...
#!/usr/bin/env python from twisted.internet import reactor, defer from twisted.internet.task import LoopingCall from twisted.words.protocols.jabber import xmlstream, sasl, sasl_mechanisms, jid, client from twisted.words.protocols.jabber.client import CheckVersionInitializer, BindInitializer,\ SessionInitializer f...
[ [ 1, 0, 0.0081, 0.002, 0, 0.66, 0, 937, 0, 2, 0, 0, 937, 0, 0 ], [ 1, 0, 0.0101, 0.002, 0, 0.66, 0.05, 85, 0, 1, 0, 0, 85, 0, 0 ], [ 1, 0, 0.0121, 0.002, 0, 0.66, ...
[ "from twisted.internet import reactor, defer", "from twisted.internet.task import LoopingCall", "from twisted.words.protocols.jabber import xmlstream, sasl, sasl_mechanisms, jid, client", "from twisted.words.protocols.jabber.client import CheckVersionInitializer, BindInitializer,\\\n SessionInitializer", ...
# -*- coding: utf-8 -*- '''twistd plugin for XMPP router.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ei...
[ [ 8, 0, 0.0328, 0.0164, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1803, 0.2787, 0, 0.66, 0.1, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3607, 0.0164, 0, 0.66, 0...
[ "'''twistd plugin for XMPP router.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either ver...
# -*- coding: utf-8 -*- '''twistd plugin for Dropbox fileserver.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundat...
[ [ 8, 0, 0.0345, 0.0172, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1897, 0.2931, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3793, 0.0172, 0, 0.66, ...
[ "'''twistd plugin for Dropbox fileserver.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, eit...
# -*- coding: utf-8 -*- '''twistd plugin for XMPP net.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eithe...
[ [ 8, 0, 0.0351, 0.0175, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.193, 0.2982, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.386, 0.0175, 0, 0.66, ...
[ "'''twistd plugin for XMPP net.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either versio...
# -*- coding: utf-8 -*- '''twistd plugin for XMPP c2s.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eithe...
[ [ 8, 0, 0.0345, 0.0172, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1897, 0.2931, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3793, 0.0172, 0, 0.66, ...
[ "'''twistd plugin for XMPP c2s.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either versio...
# -*- coding: utf-8 -*- '''twistd plugin for XMPP resolver.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ...
[ [ 8, 0, 0.0377, 0.0189, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.2075, 0.3208, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.4151, 0.0189, 0, 0.66, ...
[ "'''twistd plugin for XMPP resolver.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either v...
# -*- coding: utf-8 -*- '''twistd plugin for XMPP s2s.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eithe...
[ [ 8, 0, 0.0351, 0.0175, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.193, 0.2982, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.386, 0.0175, 0, 0.66, ...
[ "'''twistd plugin for XMPP s2s.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either versio...
# -*- coding: utf-8 -*- """Kontalk Dropbox file server.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eith...
[ [ 8, 0, 0.0101, 0.005, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0553, 0.0854, 0, 0.66, 0.0714, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1106, 0.005, 0, 0.66, ...
[ "\"\"\"Kontalk Dropbox file server.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, eit...
# -*- coding: utf-8 -*- """Authentication utilities.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ...
[ [ 8, 0, 0.0123, 0.0061, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0675, 0.1043, 0, 0.66, 0.0625, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.135, 0.0061, 0, 0.66, ...
[ "\"\"\"Authentication utilities.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either...
# -*- coding: utf-8 -*- """Upload services modules.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either v...
[ [ 8, 0, 0.0333, 0.0167, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1833, 0.2833, 0, 0.66, 0.25, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3667, 0.0167, 0, 0.66, ...
[ "\"\"\"Upload services modules.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either ...
# -*- coding: utf-8 -*- """Kontalk XMPP resolver component.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ...
[ [ 8, 0, 0.0018, 0.0009, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0098, 0.0151, 0, 0.66, 0.0588, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0196, 0.0009, 0, 0.66, ...
[ "\"\"\"Kontalk XMPP resolver component.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation,...
# -*- coding: utf-8 -*- """Kontalk XMPP router component.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ei...
[ [ 8, 0, 0.0099, 0.0049, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0542, 0.0837, 0, 0.66, 0.1111, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1084, 0.0049, 0, 0.66, ...
[ "\"\"\"Kontalk XMPP router component.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, e...
# -*- coding: utf-8 -*- """Kontalk XMPP sm component (part of c2s).""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foun...
[ [ 8, 0, 0.0025, 0.0013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0138, 0.0213, 0, 0.66, 0.0556, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0275, 0.0013, 0, 0.66, ...
[ "\"\"\"Kontalk XMPP sm component (part of c2s).\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Fou...
# -*- coding: utf-8 -*- '''Kontalk XMPP s2s component.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eithe...
[ [ 8, 0, 0.0078, 0.0039, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0428, 0.0661, 0, 0.66, 0.0909, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0856, 0.0039, 0, 0.66, ...
[ "'''Kontalk XMPP s2s component.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either versio...
# -*- coding: utf-8 -*- """Storage modules.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3...
[ [ 8, 0, 0.0037, 0.0019, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0204, 0.0316, 0, 0.66, 0.0435, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0409, 0.0019, 0, 0.66, ...
[ "\"\"\"Storage modules.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either version ...
# -*- coding: utf-8 -*- '''Keyring functions.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version...
[ [ 8, 0, 0.0043, 0.0022, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0239, 0.037, 0, 0.66, 0.125, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0457, 0.0022, 0, 0.66, ...
[ "'''Keyring functions.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either version 3 of th...
# -*- coding: utf-8 -*- '''Interface to database.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ver...
[ [ 8, 0, 0.0114, 0.0057, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0629, 0.0971, 0, 0.66, 0.0833, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.12, 0.0057, 0, 0.66, ...
[ "'''Interface to database.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either version 3 o...
# -*- coding: utf-8 -*- """Utilities for everybody.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either v...
[ [ 8, 0, 0.013, 0.0065, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0714, 0.1104, 0, 0.66, 0.037, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1364, 0.0065, 0, 0.66, ...
[ "\"\"\"Utilities for everybody.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either ...
# -*- coding: utf-8 -*- '''Twisted logging to Python loggin bridge.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foun...
[ [ 8, 0, 0.0299, 0.0149, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1642, 0.2537, 0, 0.66, 0.0769, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.3284, 0.0149, 0, 0.66, ...
[ "'''Twisted logging to Python loggin bridge.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, ...
# -*- coding: utf-8 -*- '''Push notifications support.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, eithe...
[ [ 8, 0, 0.0144, 0.0072, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0791, 0.1223, 0, 0.66, 0.0833, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1583, 0.0072, 0, 0.66, ...
[ "'''Push notifications support.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either versio...
# -*- coding: utf-8 -*- '''Version information.''' ''' Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either versi...
[ [ 8, 0, 0.0667, 0.0333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.3667, 0.5667, 0, 0.66, 0.1667, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.7, 0.0333, 0, 0.66, ...
[ "'''Version information.'''", "'''\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either version 3 of ...
# -*- coding: utf-8 -*- """TLS powered by GnuTLS.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ver...
[ [ 8, 0, 0.026, 0.013, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.1429, 0.2208, 0, 0.66, 0.125, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.2857, 0.013, 0, 0.66, 0....
[ "\"\"\"TLS powered by GnuTLS.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either ve...
# -*- coding: utf-8 -*- """XMPP stream compression.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either v...
[ [ 8, 0, 0.0075, 0.0038, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0415, 0.0642, 0, 0.66, 0.0714, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0849, 0.0151, 0, 0.66, ...
[ "\"\"\"XMPP stream compression.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, either ...
# -*- coding: utf-8 -*- """Client registration providers.""" """ Kontalk XMPP server Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ei...
[ [ 8, 0, 0.0071, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0389, 0.0601, 0, 0.66, 0.1, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0777, 0.0035, 0, 0.66, 0...
[ "\"\"\"Client registration providers.\"\"\"", "\"\"\"\n Kontalk XMPP server\n Copyright (C) 2011 Kontalk Devteam <devteam@kontalk.org>\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 published by\n the Free Software Foundation, e...
# -*- coding: utf-8 -*- ''' This code is under Public Domain. ''' import urllib import urllib2 import urlparse import json BASEURL = "https://rest.nexmo.com" class NexmoMessage: def __init__(self, details): self.sms = details if 'type' not in self.sms: self.sms['type'] = 'text' ...
[ [ 8, 0, 0.0104, 0.0052, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0208, 0.0052, 0, 0.66, 0.1667, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.026, 0.0052, 0, 0.66,...
[ "''' This code is under Public Domain. '''", "import urllib", "import urllib2", "import urlparse", "import json", "BASEURL = \"https://rest.nexmo.com\"", "class NexmoMessage:\n\n def __init__(self, details):\n self.sms = details\n if 'type' not in self.sms:\n self.sms['type']...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 879, 0, 1, 0, 0, 879, 0, 0 ], [ 7, 0, 0.5, 0.5455, 0, 0.66, 0.5, 0, 0, 1, 0, 0, 0, 0, 2 ], [ 1, 1, 0.3636, 0.0909, 1, 0.21, ...
[ "from django.core.management import execute_manager", "try:\n import settings # Assumed to be in the same directory.\nexcept ImportError:\n import sys\n sys.stderr.write(\"Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\\nYou'll have to run dj...
from django import forms from django.contrib.auth.models import User class ContactForm(forms.Form): name = forms.CharField(max_length=100, help_text="Full Name", widget=forms.TextInput(attrs={'size':'40'}),required=False) subject = forms.CharField(max_length=100, help_text="Subject of ...
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 294, 0, 1, 0, 0, 294, 0, 0 ], [ 1, 0, 0.1333, 0.0667, 0, 0.66, 0.5, 808, 0, 1, 0, 0, 808, 0, 0 ], [ 3, 0, 0.6333, 0.8, 0, 0.66, ...
[ "from django import forms", "from django.contrib.auth.models import User", "class ContactForm(forms.Form):\n name = forms.CharField(max_length=100,\n help_text=\"Full Name\", widget=forms.TextInput(attrs={'size':'40'}),required=False)\n subject = forms.CharField(max_length=100,\n he...
from django.conf.urls.defaults import * from views import * urlpatterns = patterns('', (r'^', contact), (r'^thanks/$', static, {'template':'contact_thanks.html'}), )
[ [ 1, 0, 0.125, 0.125, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.25, 0.125, 0, 0.66, 0.5, 547, 0, 1, 0, 0, 547, 0, 0 ], [ 14, 0, 0.6875, 0.5, 0, 0.66, ...
[ "from django.conf.urls.defaults import *", "from views import *", "urlpatterns = patterns('',\n (r'^', contact),\n (r'^thanks/$', static, {'template':'contact_thanks.html'}),\n)" ]
#r!/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 or...
[ [ 1, 0, 0.3333, 0.0196, 0, 0.66, 0, 128, 0, 1, 0, 0, 128, 0, 0 ], [ 1, 0, 0.3529, 0.0196, 0, 0.66, 0.2, 852, 0, 1, 0, 0, 852, 0, 0 ], [ 1, 0, 0.3725, 0.0196, 0, 0.6...
[ "from django.conf import settings", "from django.shortcuts import render_to_response", "from django.http import HttpResponseRedirect", "from forms import *", "def static(request, template):\n return render_to_response(template, RequestContext(request,{}))", " return render_to_response(template, RequestC...
from django.conf import settings from django.conf.urls.defaults import * from django.contrib import databrowse from django.contrib import admin admin.autodiscover() #from shapeft.custom_admin import editor #from registration.views import register urlpatterns = patterns('', (r'^_admin_/', include(admin.site.url...
[ [ 1, 0, 0.0357, 0.0357, 0, 0.66, 0, 128, 0, 1, 0, 0, 128, 0, 0 ], [ 1, 0, 0.0714, 0.0357, 0, 0.66, 0.2, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.1429, 0.0357, 0, 0.6...
[ "from django.conf import settings", "from django.conf.urls.defaults import *", "from django.contrib import databrowse", "from django.contrib import admin", "admin.autodiscover()", "urlpatterns = patterns('',\n (r'^_admin_/', include(admin.site.urls)),\n# (r'^editor/(.*)', editor.root),\n (r'^data...
#!/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 or ...
[ [ 1, 0, 0.4146, 0.0244, 0, 0.66, 0, 40, 0, 1, 0, 0, 40, 0, 0 ], [ 1, 0, 0.439, 0.0244, 0, 0.66, 0.3333, 886, 0, 1, 0, 0, 886, 0, 0 ], [ 3, 0, 0.622, 0.2439, 0, 0.66...
[ "from django.db import models", "from django.contrib.gis.geos import Point", "class OAuthRequestToken(models.Model):\n \"\"\"OAuth Request Token.\"\"\"\n session_key = models.CharField(max_length=250)\n ft_token = models.CharField(max_length=250)\n ft_token_secret = models.CharField(max_length=250)\...
#!/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 or ...
[ [ 1, 0, 0.68, 0.04, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.72, 0.04, 0, 0.66, 0.5, 547, 0, 2, 0, 0, 547, 0, 0 ], [ 14, 0, 0.9, 0.24, 0, 0.66, 1, ...
[ "from django.conf.urls.defaults import *", "from views import FTVerify, FTAuthenticate", "urlpatterns = patterns('',\n\n (r'^FTVerify/$', FTVerify),\n (r'^FTAuthenticate/$', FTAuthenticate),\n\n)" ]
#!/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 or ...
[ [ 1, 0, 0.1356, 0.0085, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1441, 0.0085, 0, 0.66, 0.0588, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.1525, 0.0085, 0, ...
[ "import os", "import random", "from datetime import datetime", "from django.conf import settings", "from django.shortcuts import render_to_response, get_object_or_404", "from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden, Http404", "from django.template import RequestConte...
import random import md5 from django.db import models from ft_auth.models import OAuthAccessToken STATUS_CODES = { 1 : 'In Queue (%s ahead of you)', 2 : 'Initial Processing', 3 : 'Importing into Fusion Tables', 4 : 'Complete', 6 : 'Error' } class shapeUpload(models.Model): """An upload -- includes location ...
[ [ 1, 0, 0.0204, 0.0204, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0408, 0.0204, 0, 0.66, 0.2, 604, 0, 1, 0, 0, 604, 0, 0 ], [ 1, 0, 0.0816, 0.0204, 0, 0.6...
[ "import random", "import md5", "from django.db import models", "from ft_auth.models import OAuthAccessToken", "STATUS_CODES = {\n 1 : 'In Queue (%s ahead of you)',\n 2 : 'Initial Processing',\n 3 : 'Importing into Fusion Tables',\n 4 : 'Complete',\n 6 : 'Error'\n}", "class shapeUpload(models.Model):\n \"...
#!/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 or ...
[ [ 1, 0, 0.64, 0.04, 0, 0.66, 0, 341, 0, 1, 0, 0, 341, 0, 0 ], [ 1, 0, 0.68, 0.04, 0, 0.66, 0.5, 547, 0, 1, 0, 0, 547, 0, 0 ], [ 14, 0, 0.88, 0.28, 0, 0.66, 1, ...
[ "from django.conf.urls.defaults import *", "from views import *", "urlpatterns = patterns('',\n\n (r'^upload/$', generic_import),\n url(r'^uploads/(?P<upload_ids>[a-gA-F\\d]*)/$', upload_detail, name=\"upload_detail\"),\n (r'^$', static, {'template':'index.html'}),\n\n)" ]
#!/usr/bin/env python import BaseHTTPServer import CGIHTTPServer import cgitb; cgitb.enable() ## This line enables CGI error reporting def run(port=8000): print "starting at http://localhost:%d/cgi/index.html"%port server = BaseHTTPServer.HTTPServer handler = CGIHTTPServer.CGIHTTPRequestHandler serv...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 801, 0, 1, 0, 0, 801, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66, 0.2, 734, 0, 1, 0, 0, 734, 0, 0 ], [ 1, 0, 0.1852, 0.037, 0, 0.66, ...
[ "import BaseHTTPServer", "import CGIHTTPServer", "import cgitb; cgitb.enable() ## This line enables CGI error reporting", "import cgitb; cgitb.enable() ## This line enables CGI error reporting", "def run(port=8000):\n print(\"starting at http://localhost:%d/cgi/index.html\"%port)\n server = BaseHTTP...
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating/editing an offer # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi def run(): class param: svalue = 0 min_svalue=0 tx = 0 # logge...
[ [ 1, 0, 0.0947, 0.0105, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.1053, 0.0105, 0, 0.66, 0.1, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.1158, 0.0105, 0, 0.6...
[ "import accoufer", "import shelve", "import cgi", "def run():\n class param:\n svalue = 0\n min_svalue=0\n tx = 0\n # logged user\n login, user = accoufer.userCookie()", " class param:\n svalue = 0\n min_svalue=0\n tx = 0", " svalue = 0", " ...
# -*- coding: utf-8 -*- # accoufer : general library for cgi scripts # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import cgitb; cgitb.enable() ## This line enables CGI error reporting from config import * import sys, os import cgi, shelve # access to accoufer generic library sy...
[ [ 1, 0, 0.0315, 0.0045, 0, 0.66, 0, 691, 0, 1, 0, 0, 691, 0, 0 ], [ 8, 0, 0.0315, 0.0045, 0, 0.66, 0.02, 976, 3, 0, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0405, 0.0045, 0, 0.66...
[ "import cgitb; cgitb.enable() ## This line enables CGI error reporting", "import cgitb; cgitb.enable() ## This line enables CGI error reporting", "from config import *", "import sys, os", "import cgi, shelve", "sys.path.append(LIB_PATH)", "SERVICE_URL = SERVICE_HOST + os.path.normpath(SERVICE_PATH)", ...
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating an offer # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi , math def run(): # logged user login, user = accoufer.userCookie() clients = {} rows ...
[ [ 1, 0, 0.1552, 0.0172, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.1724, 0.0172, 0, 0.66, 0.1667, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.1897, 0.0172, 0, ...
[ "import accoufer", "import shelve", "import cgi , math", "def run():\n # logged user\n login, user = accoufer.userCookie()\n\n clients = {}\n rows = []\n for uoffer in user[accoufer.USER_OFFERS]:\n clientref = str(uoffer[accoufer.USER_OFF_CLIENT])", " login, user = accoufer.userCook...
#! /usr/bin/python import accoufer body = """ <h1>%s</h1> %s. <ul> <li/> list <a href="./xclients">registered accoufer services</a> <li/> manage <a href="./xmanage">your offers and account</a> <li/> show <a href="./xlogs">your transactions logs</a> (<a href="http://code.google.co...
[ [ 1, 0, 0.1, 0.05, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 14, 0, 0.55, 0.75, 0, 0.66, 0.5, 477, 4, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 1, 0.05, 0, 0.66, 1, 535...
[ "import accoufer", "body = \"\"\"\n <h1>%s</h1>\n \n %s.\n\n <ul> \n <li/> list <a href=\"./xclients\">registered accoufer services</a>\n <li/> manage <a href=\"./xmanage\">your offers and account</a>", "print(accoufer.HTML%(accoufer.NAME, body))" ]
#! /usr/bin/python import accoufer if accoufer.SSL_PRIVATE_KEY is None: ssl = "" else: ssl = "ssl = yes" print"""Content-Type: text/plain url = %s ip = %s name-en = %s desc-en = %s %s """%(accoufer.SERVICE_URL, accoufer.ALLOWED_IP, accoufer.NAME, accoufer.DESC, ssl)
[ [ 1, 0, 0.5, 0.5, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ] ]
[ "import accoufer" ]
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating new user account # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi def run(): # extract parameters form = cgi.FieldStorage() if "login" not in form:...
[ [ 1, 0, 0.1389, 0.0139, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.1528, 0.0139, 0, 0.66, 0.1111, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.1667, 0.0139, 0, ...
[ "import accoufer", "import shelve", "import cgi", "def run():\n # extract parameters\n form = cgi.FieldStorage()\n if \"login\" not in form:\n print(accoufer.HTML%(\"Create new user\", FORM))\n return \n try:\n login = form[\"login\"].value", " form = cgi.FieldStorage()",...
#! /usr/bin/python import accoufer print "Content-Type: text/plain" print print file(accoufer.SSL_PUBLIC_X509).read()
[ [ 1, 0, 0.5, 0.25, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 8, 0, 1, 0.25, 0, 0.66, 1, 535, 3, 1, 0, 0, 0, 0, 1 ] ]
[ "import accoufer", "print(\"Content-Type: text/plain\")" ]
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating/editing a new client # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi def run(): class param: url = "" # logged user login, user = a...
[ [ 1, 0, 0.1216, 0.0135, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.1351, 0.0135, 0, 0.66, 0.1111, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.1486, 0.0135, 0, ...
[ "import accoufer", "import shelve", "import cgi", "def run():\n class param:\n url = \"\"\n \n # logged user\n login, user = accoufer.userCookie()\n\n # extract parameters", " class param:\n url = \"\"", " url = \"\"", " login, user = accoufer.userCookie()",...
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating databases # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi import os def run(): if os.path.exists(accoufer.USER_PATH): return error("Already instal...
[ [ 1, 0, 0.2222, 0.0222, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.2444, 0.0222, 0, 0.66, 0.125, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.2667, 0.0222, 0, 0...
[ "import accoufer", "import shelve", "import cgi", "import os", "def run():\n if os.path.exists(accoufer.USER_PATH):\n return error(\"Already installed\")\n\n try:\n os.mkdir(accoufer.DATA_PATH)\n except:\n pass # file exist", " if os.path.exists(accoufer.USER_PATH):\n ...
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script to get transfer logs # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import os def run(): # logged user login, user = accoufer.userCookie() print "Content-Type: text/plain" ...
[ [ 1, 0, 0.3704, 0.037, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.4074, 0.037, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.6667, 0.4074, 0, 0....
[ "import accoufer", "import os", "def run():\n # logged user\n login, user = accoufer.userCookie()\n \n print(\"Content-Type: text/plain\")\n print(path = accoufer.logpath(login))\n try:\n f = open(path)", " login, user = accoufer.userCookie()", " print(\"Content-Type: text...
# -*- coding: utf-8 -*- # accoufer : configuration file for cgi scripts # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file # service url SERVICE_HOST = "http://localhost:8000" SERVICE_PATH = "/cgi/" # bdd paths : you may need to use "../data" if your server # set curren...
[ [ 14, 0, 0.3, 0.0333, 0, 0.66, 0, 526, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3333, 0.0333, 0, 0.66, 0.125, 177, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.4667, 0.0333, 0, 0.66,...
[ "SERVICE_HOST = \"http://localhost:8000\"", "SERVICE_PATH = \"/cgi/\"", "DATA_PATH = \"./data\"", "LIB_PATH = \"./lib\"", "ALLOWED_IP = \"127.0.0.1\"", "SSL_PRIVATE_KEY = None", "SSL_PUBLIC_X509 = None", "NAME = \"Sample service\"", "DESC = \"Accoufer demonstration server\"" ]
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for requesting offers from a server # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi import urllib2, urllib,math def run(): class param: table = "" se...
[ [ 1, 0, 0.1111, 0.0111, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.1222, 0.0111, 0, 0.66, 0.1111, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.1333, 0.0111, 0, ...
[ "import accoufer", "import shelve", "import cgi", "import urllib2, urllib,math", "def run():\n class param:\n table = \"\"\n server = \"\"\n # extract parameters\n form = cgi.FieldStorage()\n try:\n param.ref = form[\"ref\"].value", " class param:\n table = \"\"\...
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating/editing a new client # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi import accerror def run(): clients = shelve.open(accoufer.CLIENT_PATH) rows = [] ...
[ [ 1, 0, 0.2143, 0.0238, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.2381, 0.0238, 0, 0.66, 0.1667, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.2619, 0.0238, 0, ...
[ "import accoufer", "import shelve", "import cgi", "import accerror", "def run():\n clients = shelve.open(accoufer.CLIENT_PATH)\n rows = []\n for url in clients:\n if url.endswith('_'):\n continue \n ref,name,url = clients[url] \n row = \"\"\"<tr><td><a href=\"./xpr...
#! /usr/bin/python # -*- coding: utf-8 -*- # # accoufer : cgi script for creating new user account # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file import accoufer import shelve import cgi def run(): # extract parameters form = cgi.FieldStorage() if "login" not in form:...
[ [ 1, 0, 0.1562, 0.0156, 0, 0.66, 0, 537, 0, 1, 0, 0, 537, 0, 0 ], [ 1, 0, 0.1719, 0.0156, 0, 0.66, 0.1111, 710, 0, 1, 0, 0, 710, 0, 0 ], [ 1, 0, 0.1875, 0.0156, 0, ...
[ "import accoufer", "import shelve", "import cgi", "def run():\n # extract parameters\n form = cgi.FieldStorage()\n if \"login\" not in form:\n header = 'Set-Cookie: user=; expires=Thu, 2 Aug 2001 00:00:00 UTC; path=%s'\n print(accoufer.HTML_HEADER%(accoufer.logoutHeader(), \"Login\", FO...
# -*- coding: utf-8 -*- # accoufer : error codes # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file ERR_BAD_REQUEST = 1 ERR_FORBIDEN = 2 ERR_USER = 3 ERR_PARAM = 4 ERR_UNKNOWN_OFFER = 5 ERR_NO_PROTOCOL = 6
[ [ 14, 0, 0.5833, 0.0833, 0, 0.66, 0, 511, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.6667, 0.0833, 0, 0.66, 0.2, 29, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.75, 0.0833, 0, 0.66, ...
[ "ERR_BAD_REQUEST = 1", "ERR_FORBIDEN = 2", "ERR_USER = 3", "ERR_PARAM = 4", "ERR_UNKNOWN_OFFER = 5", "ERR_NO_PROTOCOL = 6" ]
# -*- coding: utf-8 -*- # accoufer : error codes # # Copyright S.Keim 2011 # Available under the MIT licence see the COPYING file ERR_BAD_REQUEST = 1 ERR_FORBIDEN = 2 ERR_USER = 3 ERR_PARAM = 4 ERR_UNKNOWN_OFFER = 5 ERR_NO_PROTOCOL = 6
[ [ 14, 0, 0.5833, 0.0833, 0, 0.66, 0, 511, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.6667, 0.0833, 0, 0.66, 0.2, 29, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.75, 0.0833, 0, 0.66, ...
[ "ERR_BAD_REQUEST = 1", "ERR_FORBIDEN = 2", "ERR_USER = 3", "ERR_PARAM = 4", "ERR_UNKNOWN_OFFER = 5", "ERR_NO_PROTOCOL = 6" ]
import urllib,urllib2,re,os,sys import xbmc,xbmcplugin,xbmcgui,xbmcaddon import HTMLParser homepage = 'http://www.redtube.com' __settings__ = xbmcaddon.Addon(id='plugin.video.redtube') home = __settings__.getAddonInfo('path') imagedir = xbmc.translatePath( os.path.join( home, 'images' ) ) def GET_HTTP(url): req = ...
[ [ 1, 0, 0.0083, 0.0083, 0, 0.66, 0, 614, 0, 5, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0165, 0.0083, 0, 0.66, 0.0385, 877, 0, 4, 0, 0, 877, 0, 0 ], [ 1, 0, 0.0248, 0.0083, 0, ...
[ "import urllib,urllib2,re,os,sys", "import xbmc,xbmcplugin,xbmcgui,xbmcaddon", "import HTMLParser", "homepage = 'http://www.redtube.com'", "__settings__ = xbmcaddon.Addon(id='plugin.video.redtube')", "home = __settings__.getAddonInfo('path')", "imagedir = xbmc.translatePath( os.path.join( home, 'images'...
#!/usr/bin/python import urllib,urllib2,re import xbmc,xbmcplugin,xbmcgui,sys def GET_HTTP(url): req = urllib2.Request(url) req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0') req.add_header('Referer', 'http://beeg.com/') response = urllib2.urlopen(req) html=respon...
[ [ 1, 0, 0.0063, 0.0021, 0, 0.66, 0, 614, 0, 3, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0084, 0.0021, 0, 0.66, 0.0476, 877, 0, 4, 0, 0, 877, 0, 0 ], [ 2, 0, 0.02, 0.0169, 0, 0....
[ "import urllib,urllib2,re", "import xbmc,xbmcplugin,xbmcgui,sys", "def GET_HTTP(url):\n req = urllib2.Request(url)\n req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0')\n req.add_header('Referer', 'http://beeg.com/')\n response = urllib2.urlopen(req)\n html=respon...
#!/usr/bin/python import urllib,urllib2,re import xbmc,xbmcplugin,xbmcgui,sys def GET_HTTP(url): req = urllib2.Request(url) req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0') req.add_header('Referer', 'http://beeg.com/') response = urllib2.urlopen(req) html=respon...
[ [ 1, 0, 0.0063, 0.0021, 0, 0.66, 0, 614, 0, 3, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0084, 0.0021, 0, 0.66, 0.0476, 877, 0, 4, 0, 0, 877, 0, 0 ], [ 2, 0, 0.02, 0.0169, 0, 0....
[ "import urllib,urllib2,re", "import xbmc,xbmcplugin,xbmcgui,sys", "def GET_HTTP(url):\n req = urllib2.Request(url)\n req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0')\n req.add_header('Referer', 'http://beeg.com/')\n response = urllib2.urlopen(req)\n html=respon...
import urllib,urllib2,re,os,sys import xbmc,xbmcplugin,xbmcgui,xbmcaddon import HTMLParser homepage = 'http://www.epornik.com' __settings__ = xbmcaddon.Addon(id='plugin.video.epornik') home = __settings__.getAddonInfo('path') imagedir = xbmc.translatePath( os.path.join( home, 'images' ) ) def GET_HTML(url): req = ...
[ [ 1, 0, 0.0082, 0.0082, 0, 0.66, 0, 614, 0, 5, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0164, 0.0082, 0, 0.66, 0.0385, 877, 0, 4, 0, 0, 877, 0, 0 ], [ 1, 0, 0.0246, 0.0082, 0, ...
[ "import urllib,urllib2,re,os,sys", "import xbmc,xbmcplugin,xbmcgui,xbmcaddon", "import HTMLParser", "homepage = 'http://www.epornik.com'", "__settings__ = xbmcaddon.Addon(id='plugin.video.epornik')", "home = __settings__.getAddonInfo('path')", "imagedir = xbmc.translatePath( os.path.join( home, 'images'...
#!/usr/bin/python import urllib,urllib2,re import xbmc,xbmcplugin,xbmcgui,sys def GET_HTTP(url): req = urllib2.Request(url) req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0') response = urllib2.urlopen(req) html=response.read() response.close() return html def ...
[ [ 1, 0, 0.0297, 0.0099, 0, 0.66, 0, 614, 0, 3, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0396, 0.0099, 0, 0.66, 0.0625, 877, 0, 4, 0, 0, 877, 0, 0 ], [ 2, 0, 0.0891, 0.0693, 0, ...
[ "import urllib,urllib2,re", "import xbmc,xbmcplugin,xbmcgui,sys", "def GET_HTTP(url):\n req = urllib2.Request(url)\n req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0')\n response = urllib2.urlopen(req)\n html=response.read()\n response.close()\n return html", ...
#!/usr/bin/python import urllib,urllib2,re import xbmc,xbmcplugin,xbmcgui,sys def GET_HTTP(url): req = urllib2.Request(url) req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0') response = urllib2.urlopen(req) html=response.read() response.close() return html def ...
[ [ 1, 0, 0.0297, 0.0099, 0, 0.66, 0, 614, 0, 3, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0396, 0.0099, 0, 0.66, 0.0625, 877, 0, 4, 0, 0, 877, 0, 0 ], [ 2, 0, 0.0891, 0.0693, 0, ...
[ "import urllib,urllib2,re", "import xbmc,xbmcplugin,xbmcgui,sys", "def GET_HTTP(url):\n req = urllib2.Request(url)\n req.add_header('User-Agent','Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0')\n response = urllib2.urlopen(req)\n html=response.read()\n response.close()\n return html", ...
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
[ [ 1, 0, 0.1818, 0.0909, 0, 0.66, 0, 654, 0, 1, 0, 0, 654, 0, 0 ], [ 14, 0, 0.2727, 0.0909, 0, 0.66, 0.1111, 15, 3, 0, 0, 0, 654, 10, 1 ], [ 14, 0, 0.3636, 0.0909, 0, ...
[ "import time", "t = time.time()", "u = time.gmtime(t)", "s = time.strftime('%a, %e %b %Y %T GMT', u)", "print('Content-Type: text/javascript')", "print('Cache-Control: no-cache')", "print('Date: ' + s)", "print('Expires: ' + s)", "print('')", "print('var timeskew = new Date().getTime() - ' + str(t...
#!/usr/bin/python import sys, hashlib def write_file(fn, buf): fp = open(fn, "wb") fp.write(buf) fp.close() def usage(): print ("Usage: " + sys.argv[0] + " infile outfile label") def main(): if( len(sys.argv) != 4): usage() sys.exit() fp = open( sys.argv[1] , "rb") hash_str = has...
[ [ 1, 0, 0.0714, 0.0238, 0, 0.66, 0, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 2, 0, 0.1548, 0.0952, 0, 0.66, 0.25, 725, 0, 2, 0, 0, 0, 0, 3 ], [ 14, 1, 0.1429, 0.0238, 1, 0.1...
[ "import sys, hashlib", "def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()", "\tfp = open(fn, \"wb\")", "\tfp.write(buf)", "\tfp.close()", "def usage():\n\tprint (\"Usage: \" + sys.argv[0] + \" infile outfile label\")", "\tprint (\"Usage: \" + sys.argv[0] + \" infile outfi...
#!/usr/bin/python import sys, re, os def write_file(fn, buf): fp = open(fn, "wb") fp.write(buf) fp.close() def usage(): print ("Usage: " + os.path.split(__file__)[1] + " version outfile") def crete_version_str(ver): base = list("0.00") version = str(ver) ret = [] base[0] = version[0] base...
[ [ 1, 0, 0.0577, 0.0192, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 2, 0, 0.125, 0.0769, 0, 0.66, 0.2, 725, 0, 2, 0, 0, 0, 0, 3 ], [ 14, 1, 0.1154, 0.0192, 1, 0.77,...
[ "import sys, re, os", "def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()", "\tfp = open(fn, \"wb\")", "\tfp.write(buf)", "\tfp.close()", "def usage():\n\tprint (\"Usage: \" + os.path.split(__file__)[1] + \" version outfile\")", "\tprint (\"Usage: \" + os.path.split(__file...
#!/usr/bin/python """ PRO build script""" import os, shutil, sys NIGHTLY=0 VERSION="B10" PRO_BUILD = [ { "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" }, { "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" }, { "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" }, { "fn": "660PRO-%s.rar", "config": "CONFIG...
[ [ 8, 0, 0.0297, 0.0099, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0495, 0.0099, 0, 0.66, 0.0909, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0693, 0.0099, 0, 0.6...
[ "\"\"\" PRO build script\"\"\"", "import os, shutil, sys", "NIGHTLY=0", "VERSION=\"B10\"", "PRO_BUILD = [\n\t\t\t{ \"fn\": \"620PRO-%s.rar\", \"config\": \"CONFIG_620=1\" },\n\t\t\t{ \"fn\": \"635PRO-%s.rar\", \"config\": \"CONFIG_635=1\" },\n\t\t\t{ \"fn\": \"639PRO-%s.rar\", \"config\": \"CONFIG_639=1\" }...
#!/usr/bin/python import sys, os, gzip, StringIO def dump_binary(fn, data): f = open(fn, "wb") f.write(data) f.close() def dec_prx(fn): f = open(fn, "rb") f.seek(0x150) dat = f.read() f.close() temp=StringIO.StringIO(dat) f=gzip.GzipFile(fileobj=temp, mode='rb') dec = f.read(f) f.close() fn = "%s.dec.p...
[ [ 1, 0, 0.0909, 0.0303, 0, 0.66, 0, 509, 0, 4, 0, 0, 509, 0, 0 ], [ 2, 0, 0.197, 0.1212, 0, 0.66, 0.25, 336, 0, 2, 0, 0, 0, 0, 3 ], [ 14, 1, 0.1818, 0.0303, 1, 0.57...
[ "import sys, os, gzip, StringIO", "def dump_binary(fn, data):\n\tf = open(fn, \"wb\")\n\tf.write(data)\n\tf.close()", "\tf = open(fn, \"wb\")", "\tf.write(data)", "\tf.close()", "def dec_prx(fn):\n\tf = open(fn, \"rb\")\n\tf.seek(0x150)\n\tdat = f.read()\n\tf.close()\n\n\ttemp=StringIO.StringIO(dat)\n\tf=...
#!/usr/bin/python class FakeTime: def time(self): return 1225856967.109 import sys, os, struct, gzip, hashlib, StringIO gzip.time = FakeTime() def binary_replace(data, newdata, offset): return data[0:offset] + newdata + data[offset+len(newdata):] def prx_compress(output, hdr, input, mod_name="", mod_a...
[ [ 3, 0, 0.0488, 0.0366, 0, 0.66, 0, 425, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.0549, 0.0244, 1, 0.33, 0, 654, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 2, 0.061, 0.0122, 2, 0.51, ...
[ "class FakeTime:\n def time(self):\n return 1225856967.109", " def time(self):\n return 1225856967.109", " return 1225856967.109", "import sys, os, struct, gzip, hashlib, StringIO", "gzip.time = FakeTime()", "def binary_replace(data, newdata, offset):\n\treturn data[0:offset] + ...
#!/usr/bin/python import sys, hashlib def toNID(name): hashstr = hashlib.sha1(name.encode()).hexdigest().upper() return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2] if __name__ == "__main__": assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4") for name in sys.argv[1:]: print ("%s: %s"...
[ [ 1, 0, 0.2308, 0.0769, 0, 0.66, 0, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 2, 0, 0.4615, 0.2308, 0, 0.66, 0.5, 259, 0, 1, 1, 0, 0, 0, 4 ], [ 14, 1, 0.4615, 0.0769, 1, 0.92...
[ "import sys, hashlib", "def toNID(name):\n\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()\n\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]", "\thashstr = hashlib.sha1(name.encode()).hexdigest().upper()", "\treturn \"0x\" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + ha...
#!/usr/bin/python from hashlib import * import sys, struct def sha512(psid): if len(psid) != 16: return "".encode() for i in range(512): psid = sha1(psid).digest() return psid def get_psid(str): if len(str) != 32: return "".encode() b = "".encode() for i in range(0, len(str), 2): b += struct.pack('B...
[ [ 1, 0, 0.0652, 0.0217, 0, 0.66, 0, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.087, 0.0217, 0, 0.66, 0.2, 509, 0, 2, 0, 0, 509, 0, 0 ], [ 2, 0, 0.2065, 0.1739, 0, 0.66...
[ "from hashlib import *", "import sys, struct", "def sha512(psid):\n\tif len(psid) != 16:\n\t\treturn \"\".encode()\n\n\tfor i in range(512):\n\t\tpsid = sha1(psid).digest()\n\n\treturn psid", "\tif len(psid) != 16:\n\t\treturn \"\".encode()", "\t\treturn \"\".encode()", "\tfor i in range(512):\n\t\tpsid =...
#!/usr/bin/python """ pspbtcnf_editor: An script that add modules from pspbtcnf """ import sys, os, re from getopt import * from struct import * BTCNF_MAGIC=0x0F803001 verbose = False def print_usage(): print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path...
[ [ 8, 0, 0.022, 0.0165, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0385, 0.0055, 0, 0.66, 0.0769, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.044, 0.0055, 0, 0.66, ...
[ "\"\"\"\npspbtcnf_editor: An script that add modules from pspbtcnf\n\"\"\"", "import sys, os, re", "from getopt import *", "from struct import *", "BTCNF_MAGIC=0x0F803001", "verbose = False", "def print_usage():\n\tprint (\"%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]\" ...
#!/usr/bin/python import os def main(): lists = [ "ISODrivers/Galaxy/galaxy.prx", "ISODrivers/March33/march33.prx", "ISODrivers/March33/march33_620.prx", "ISODrivers/March33/march33_660.prx", "ISODrivers/Inferno/inferno.prx", "Popcorn/popcorn.prx", "Satelite/satelite.prx", "Stargate/stargate....
[ [ 1, 0, 0.1034, 0.0345, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.5345, 0.7586, 0, 0.66, 0.5, 624, 0, 0, 0, 0, 0, 0, 3 ], [ 14, 1, 0.431, 0.4828, 1, 0.94,...
[ "import os", "def main():\n\tlists = [\n\t\t\t\"ISODrivers/Galaxy/galaxy.prx\",\n\t\t\t\"ISODrivers/March33/march33.prx\",\n\t\t\t\"ISODrivers/March33/march33_620.prx\",\n\t\t\t\"ISODrivers/March33/march33_660.prx\",\n\t\t\t\"ISODrivers/Inferno/inferno.prx\",\n\t\t\t\"Popcorn/popcorn.prx\",", "\tlists = [\n\t\t...
#!/usr/bin/python class FakeTime: def time(self): return 1225856967.109 import os, gzip, StringIO gzip.time = FakeTime() def create_gzip(input, output): f_in=open(input, 'rb') temp=StringIO.StringIO() f=gzip.GzipFile(fileobj=temp, mode='wb') f.writelines(f_in) f.close() f_in.close() fout=open(out...
[ [ 3, 0, 0.0909, 0.0682, 0, 0.66, 0, 425, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.1023, 0.0455, 1, 0.77, 0, 654, 0, 1, 1, 0, 0, 0, 0 ], [ 13, 2, 0.1136, 0.0227, 2, 0.99, ...
[ "class FakeTime:\n def time(self):\n return 1225856967.109", " def time(self):\n return 1225856967.109", " return 1225856967.109", "import os, gzip, StringIO", "gzip.time = FakeTime()", "def create_gzip(input, output):\n\tf_in=open(input, 'rb')\n\ttemp=StringIO.StringIO()\n\tf=g...
#!/usr/bin/python import os, sys, getopt def usage(): print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0])) def write_file(fn, buf): fp = open(fn, "wb") fp.write(buf) fp.close() def main(): inputsize = 0 try: optlist, args = getopt.getopt(sys.argv[1:], 'l:h') except getopt.GetoptError: us...
[ [ 1, 0, 0.0536, 0.0179, 0, 0.66, 0, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 2, 0, 0.0982, 0.0357, 0, 0.66, 0.25, 129, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 1, 0.1071, 0.0179, 1, 0.73...
[ "import os, sys, getopt", "def usage():\n\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))", "\tprint (\"Usage: %s [-l size ] basefile input output\" % (sys.argv[0]))", "def write_file(fn, buf):\n\tfp = open(fn, \"wb\")\n\tfp.write(buf)\n\tfp.close()", "\tfp = open(fn, \"wb\")", "\t...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
[ [ 8, 0, 0.1905, 0.3333, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 3, 0, 0.7143, 0.619, 0, 0.66, 1, 229, 0, 2, 0, 0, 186, 0, 1 ], [ 8, 1, 0.5238, 0.1429, 1, 0.39, ...
[ "'''\nModule which prompts the user for translations and saves them.\n\nTODO: implement\n\n@author: Rodrigo Damazio\n'''", "class Translator(object):\n '''\n classdocs\n '''\n\n def __init__(self, language):\n '''\n Constructor", " '''\n classdocs\n '''", " def __init__(self, language):\n '''...
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
[ [ 8, 0, 0.0319, 0.0532, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0745, 0.0106, 0, 0.66, 0.1429, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0851, 0.0106, 0, 0.66...
[ "'''\nModule which brings history information about files from Mercurial.\n\n@author: Rodrigo Damazio\n'''", "import re", "import subprocess", "REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*')", "def _GetOutputLines(args):\n '''\n Runs an external process and returns its output as a list of lines...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
[ [ 8, 0, 0.0261, 0.0435, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0609, 0.0087, 0, 0.66, 0.3333, 573, 0, 1, 0, 0, 573, 0, 0 ], [ 1, 0, 0.0696, 0.0087, 0, 0.66...
[ "'''\nModule which parses a string XML file.\n\n@author: Rodrigo Damazio\n'''", "from xml.parsers.expat import ParserCreate", "import re", "class StringsParser(object):\n '''\n Parser for string XML files.\n\n This object is not thread-safe and should be used for parsing a single file at\n a time, only.\n...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
[ [ 8, 0, 0.0417, 0.0521, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0833, 0.0104, 0, 0.66, 0.125, 640, 0, 1, 0, 0, 640, 0, 0 ], [ 1, 0, 0.0938, 0.0104, 0, 0.66,...
[ "'''\nEntry point for My Tracks i18n tool.\n\n@author: Rodrigo Damazio\n'''", "import mytracks.files", "import mytracks.translate", "import mytracks.validate", "import sys", "def Usage():\n print('Usage: %s <command> [<language> ...]\\n' % sys.argv[0])\n print('Commands are:')\n print(' cleanup')\n p...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
[ [ 8, 0, 0.0304, 0.0522, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0696, 0.0087, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0783, 0.0087, 0, 0.66, ...
[ "'''\nModule which compares languague files to the master file and detects\nissues.\n\n@author: Rodrigo Damazio\n'''", "import os", "from mytracks.parser import StringsParser", "import mytracks.history", "class Validator(object):\n\n def __init__(self, languages):\n '''\n Builds a strings file valida...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
[ [ 8, 0, 0.0667, 0.1111, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1333, 0.0222, 0, 0.66, 0.125, 79, 0, 1, 0, 0, 79, 0, 0 ], [ 1, 0, 0.1556, 0.0222, 0, 0.66, ...
[ "'''\nModule for dealing with resource files (but not their contents).\n\n@author: Rodrigo Damazio\n'''", "import os.path", "from glob import glob", "import re", "MYTRACKS_RES_DIR = 'MyTracks/res'", "ANDROID_MASTER_VALUES = 'values'", "ANDROID_VALUES_MASK = 'values-*'", "def GetMyTracksDir():\n '''\n...
#!/usr/bin/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 or a...
[ [ 1, 0, 0.4595, 0.027, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 8, 0, 0.7568, 0.5135, 0, 0.66, 1, 234, 3, 8, 0, 0, 0, 0, 1 ] ]
[ "from distutils.core import setup", "setup(name='aclgen',\n maintainer='Google',\n maintainer_email='capirca-dev@googlegroups.com',\n version='1.108',\n url='http://code.google.com/p/aclgen',\n license='Apache License, Version 2.0',\n classifiers=[\n 'Development Status :: 5...
#!/usr/bin/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 or a...
[ [ 1, 0, 0.4595, 0.027, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 8, 0, 0.7568, 0.5135, 0, 0.66, 1, 234, 3, 8, 0, 0, 0, 0, 1 ] ]
[ "from distutils.core import setup", "setup(name='aclgen',\n maintainer='Google',\n maintainer_email='capirca-dev@googlegroups.com',\n version='1.108',\n url='http://code.google.com/p/aclgen',\n license='Apache License, Version 2.0',\n classifiers=[\n 'Development Status :: 5...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.1477, 0.0067, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1678, 0.0067, 0, 0.66, 0.0417, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.1745, 0.0067, 0, 0...
[ "__author__ = 'watson@google.com (Tony Watson)'", "import copy", "import dircache", "from optparse import OptionParser", "import os", "import stat", "from lib import naming", "from lib import policy", "from lib import cisco", "from lib import iptables", "from lib import speedway", "from lib im...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.1477, 0.0067, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1678, 0.0067, 0, 0.66, 0.0417, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.1745, 0.0067, 0, 0...
[ "__author__ = 'watson@google.com (Tony Watson)'", "import copy", "import dircache", "from optparse import OptionParser", "import os", "import stat", "from lib import naming", "from lib import policy", "from lib import cisco", "from lib import iptables", "from lib import speedway", "from lib im...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # unless required by...
[ [ 14, 0, 0.0319, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0336, 0.0017, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0387, 0.0017, 0, 0....
[ "__author__ = 'pmoody@google.com (Peter Moody)'", "__author__ = 'watson@google.com (Tony Watson)'", "import logging", "import aclgenerator", "import nacaddr", "class Error(Exception):\n pass", "class JuniperTermPortProtocolError(Error):\n pass", "class TcpEstablishedWithNonTcp(Error):\n pass", "c...
#!/usr/bin/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 or ...
[ [ 8, 0, 0.3393, 0.0179, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.375, 0.0179, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.4375, 0.0357, 0, 0.66, ...
[ "\"\"\"Common library for network ports and protocol handling.\"\"\"", "__author__ = 'watson@google.com (Tony Watson)'", "class Error(Exception):\n \"\"\"Base error class.\"\"\"", " \"\"\"Base error class.\"\"\"", "class BadPortValue(Error):\n \"\"\"Invalid port format.\"\"\"", " \"\"\"Invalid port fo...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. """ACL Generator base class.""" import copy import re import policy # generic error class class Error(Exception): """Base error class.""" pass class NoPlatformPolicyError(Error): """Raised when a policy is received that doesn't suppor...
[ [ 8, 0, 0.0185, 0.0037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0258, 0.0037, 0, 0.66, 0.0625, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0295, 0.0037, 0, 0.66...
[ "\"\"\"ACL Generator base class.\"\"\"", "import copy", "import re", "import policy", "class Error(Exception):\n \"\"\"Base error class.\"\"\"\n pass", " \"\"\"Base error class.\"\"\"", "class NoPlatformPolicyError(Error):\n \"\"\"Raised when a policy is received that doesn't support this platform.\...
#!/usr/bin/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 or ag...
[ [ 1, 0, 0.4634, 0.0244, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 1, 0, 0.5122, 0.0244, 0, 0.66, 0.5, 368, 0, 1, 0, 0, 368, 0, 0 ], [ 8, 0, 0.7927, 0.439, 0, 0.66...
[ "from distutils.core import setup", "import aclgen", "setup(name='aclgen',\n maintainer='Google',\n maintainer_email='capirca-dev@googlegroups.com',\n version=ipaddr.__version__,\n url='http://code.google.com/p/aclgen/',\n license='Apache License, Version 2.0',\n classifiers=[\n ...
#!/usr/bin/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 or agre...
[ [ 8, 0, 0.0289, 0.0016, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0321, 0.0016, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0337, 0.0016, 0, 0.66...
[ "\"\"\"Cisco renderer.\"\"\"", "__author__ = 'pmoody@google.com (Peter Moody)'", "__author__ = 'watson@google.com (Tony Watson)'", "import logging", "import re", "from third_party import ipaddr", "import aclgenerator", "import nacaddr", "_ACTION_TABLE = {\n 'accept': 'permit',\n 'deny': 'deny'...
#!/usr/bin/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 or ag...
[ [ 8, 0, 0.0683, 0.0036, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0755, 0.0036, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0827, 0.0036, 0, 0.66,...
[ "\"\"\"Check where hosts, ports and protocols are matched in a capirca policy.\"\"\"", "__author__ = 'watson@google.com (Tony Watson)'", "import sys", "import nacaddr", "import policy", "import port", "class Error(Exception):\n \"\"\"Base error class.\"\"\"", " \"\"\"Base error class.\"\"\"", "cla...
#!/usr/bin/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 or ag...
[ [ 1, 0, 0.4634, 0.0244, 0, 0.66, 0, 152, 0, 1, 0, 0, 152, 0, 0 ], [ 1, 0, 0.5122, 0.0244, 0, 0.66, 0.5, 368, 0, 1, 0, 0, 368, 0, 0 ], [ 8, 0, 0.7927, 0.439, 0, 0.66...
[ "from distutils.core import setup", "import aclgen", "setup(name='aclgen',\n maintainer='Google',\n maintainer_email='capirca-dev@googlegroups.com',\n version=ipaddr.__version__,\n url='http://code.google.com/p/aclgen/',\n license='Apache License, Version 2.0',\n classifiers=[\n ...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. """Speedway iptables generator. This is a subclass of Iptables lib.""" __author__ = 'watson@google.com (Tony Watson)' import iptables class Term(iptables.Term): """Generate Iptables policy terms.""" _PLATFORM = 'speedway' _PREJUMP_...
[ [ 8, 0, 0.2121, 0.0909, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.303, 0.0303, 0, 0.66, 0.25, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3636, 0.0303, 0, 0.66, ...
[ "\"\"\"Speedway iptables generator.\n\n This is a subclass of Iptables lib.\"\"\"", "__author__ = 'watson@google.com (Tony Watson)'", "import iptables", "class Term(iptables.Term):\n \"\"\"Generate Iptables policy terms.\"\"\"\n _PLATFORM = 'speedway'\n _PREJUMP_FORMAT = None\n _POSTJUMP_FORMAT = '-A %s...
#!/usr/bin/python2.4 # # Copyright 2011 Google Inc. All Rights Reserved. """ACL Generator base class.""" import copy import re import policy # generic error class class Error(Exception): """Base error class.""" pass class NoPlatformPolicyError(Error): """Raised when a policy is received that doesn't suppor...
[ [ 8, 0, 0.0185, 0.0037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0258, 0.0037, 0, 0.66, 0.0625, 739, 0, 1, 0, 0, 739, 0, 0 ], [ 1, 0, 0.0295, 0.0037, 0, 0.66...
[ "\"\"\"ACL Generator base class.\"\"\"", "import copy", "import re", "import policy", "class Error(Exception):\n \"\"\"Base error class.\"\"\"\n pass", " \"\"\"Base error class.\"\"\"", "class NoPlatformPolicyError(Error):\n \"\"\"Raised when a policy is received that doesn't support this platform.\...