code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
import new import re import _base from html5lib import ihatexml from html5lib import constants from html5lib.constants import namespaces tag_regexp = re.compile("{([^}]*)}(.*)") moduleCache = {} def getETreeModule(ElementTreeImplementation, fullTree=False): name = "_" + ElementTreeImplementation.__name__+"build...
[ [ 1, 0, 0.003, 0.003, 0, 0.66, 0, 145, 0, 1, 0, 0, 145, 0, 0 ], [ 1, 0, 0.0061, 0.003, 0, 0.66, 0.1111, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0122, 0.003, 0, 0.66...
[ "import new", "import re", "import _base", "from html5lib import ihatexml", "from html5lib import constants", "from html5lib.constants import namespaces", "tag_regexp = re.compile(\"{([^}]*)}(.*)\")", "moduleCache = {}", "def getETreeModule(ElementTreeImplementation, fullTree=False):\n name = \"_...
import warnings warnings.warn("BeautifulSoup 3.x (as of 3.1) is not fully compatible with html5lib and support will be removed in the future", DeprecationWarning) from BeautifulSoup import BeautifulSoup, Tag, NavigableString, Comment, Declaration import _base from html5lib.constants import namespaces, DataLossWarnin...
[ [ 1, 0, 0.0044, 0.0044, 0, 0.66, 0, 358, 0, 1, 0, 0, 358, 0, 0 ], [ 8, 0, 0.0132, 0.0044, 0, 0.66, 0.1111, 960, 3, 2, 0, 0, 0, 0, 1 ], [ 1, 0, 0.0219, 0.0044, 0, 0....
[ "import warnings", "warnings.warn(\"BeautifulSoup 3.x (as of 3.1) is not fully compatible with html5lib and support will be removed in the future\", DeprecationWarning)", "from BeautifulSoup import BeautifulSoup, Tag, NavigableString, Comment, Declaration", "import _base", "from html5lib.constants import na...
import _base from html5lib.constants import voidElements, namespaces, prefixes from xml.sax.saxutils import escape # Really crappy basic implementation of a DOM-core like thing class Node(_base.Node): type = -1 def __init__(self, name): self.name = name self.parent = None self.value = N...
[ [ 1, 0, 0.004, 0.004, 0, 0.66, 0, 464, 0, 1, 0, 0, 464, 0, 0 ], [ 1, 0, 0.0081, 0.004, 0, 0.66, 0.1, 970, 0, 3, 0, 0, 970, 0, 0 ], [ 1, 0, 0.0121, 0.004, 0, 0.66, ...
[ "import _base", "from html5lib.constants import voidElements, namespaces, prefixes", "from xml.sax.saxutils import escape", "class Node(_base.Node):\n type = -1\n def __init__(self, name):\n self.name = name\n self.parent = None\n self.value = None\n self.childNodes = []\n ...
from html5lib.constants import scopingElements, tableInsertModeElements, namespaces try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset # The scope markers are inserted when entering buttons, object element...
[ [ 1, 0, 0.0029, 0.0029, 0, 0.66, 0, 970, 0, 3, 0, 0, 970, 0, 0 ], [ 7, 0, 0.013, 0.0174, 0, 0.66, 0.25, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 1, 0.0087, 0.0029, 1, 0.42, ...
[ "from html5lib.constants import scopingElements, tableInsertModeElements, namespaces", "try:\n frozenset\nexcept NameError:\n # Import from the sets module for python 2.3\n from sets import Set as set\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import Set as set"...
"""A collection of modules for building different kinds of tree from HTML documents. To create a treebuilder for a new type of tree, you need to do implement several things: 1) A set of classes for various types of elements: Document, Doctype, Comment, Element. These must implement the interface of _base.treebuilders...
[ [ 8, 0, 0.1739, 0.337, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3587, 0.0109, 0, 0.66, 0.5, 163, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.6902, 0.6304, 0, 0.66, ...
[ "\"\"\"A collection of modules for building different kinds of tree from\nHTML documents.\n\nTo create a treebuilder for a new type of tree, you need to do\nimplement several things:\n\n1) A set of classes for various types of elements: Document, Doctype,\nComment, Element. These must implement the interface of", ...
try: frozenset except NameError: #Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset class MethodDispatcher(dict): """Dict with 2 special properties: On initiation, keys that are lists, sets or tuples are converted to multiple ...
[ [ 7, 0, 0.0224, 0.0385, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 1, 0.0128, 0.0064, 1, 0.12, 0, 0, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0321, 0.0064, 1, 0.12, 0, ...
[ "try:\n frozenset\nexcept NameError:\n #Import from the sets module for python 2.3\n from sets import Set as set\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import Set as set", " from sets import ImmutableSet as frozenset", "class MethodDispatcher(dict):\n ...
from lxml import etree from html5lib.treebuilders.etree import tag_regexp from gettext import gettext _ = gettext import _base from html5lib.constants import voidElements from html5lib import ihatexml class Root(object): def __init__(self, et): self.elementtree = et self.children =...
[ [ 1, 0, 0.0057, 0.0057, 0, 0.66, 0, 123, 0, 1, 0, 0, 123, 0, 0 ], [ 1, 0, 0.0114, 0.0057, 0, 0.66, 0.0909, 706, 0, 1, 0, 0, 706, 0, 0 ], [ 1, 0, 0.0229, 0.0057, 0, ...
[ "from lxml import etree", "from html5lib.treebuilders.etree import tag_regexp", "from gettext import gettext", "_ = gettext", "import _base", "from html5lib.constants import voidElements", "from html5lib import ihatexml", "class Root(object):\n def __init__(self, et):\n self.elementtree = et...
import gettext _ = gettext.gettext import new import copy import re import _base from html5lib.constants import voidElements tag_regexp = re.compile("{([^}]*)}(.*)") moduleCache = {} def getETreeModule(ElementTreeImplementation): name = "_" + ElementTreeImplementation.__name__+"builder" if name in moduleCa...
[ [ 1, 0, 0.0077, 0.0077, 0, 0.66, 0, 723, 0, 1, 0, 0, 723, 0, 0 ], [ 14, 0, 0.0154, 0.0077, 0, 0.66, 0.1, 660, 7, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0308, 0.0077, 0, 0.66...
[ "import gettext", "_ = gettext.gettext", "import new", "import copy", "import re", "import _base", "from html5lib.constants import voidElements", "tag_regexp = re.compile(\"{([^}]*)}(.*)\")", "moduleCache = {}", "def getETreeModule(ElementTreeImplementation):\n name = \"_\" + ElementTreeImpleme...
import re import gettext _ = gettext.gettext from BeautifulSoup import BeautifulSoup, Declaration, Comment, Tag from html5lib.constants import namespaces import _base class TreeWalker(_base.NonRecursiveTreeWalker): doctype_regexp = re.compile( r'(?P<name>[^\s]*)(\s*PUBLIC\s*"(?P<publicId>.*)"\s*"(?P<syste...
[ [ 1, 0, 0.0169, 0.0169, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0339, 0.0169, 0, 0.66, 0.1667, 723, 0, 1, 0, 0, 723, 0, 0 ], [ 14, 0, 0.0508, 0.0169, 0, ...
[ "import re", "import gettext", "_ = gettext.gettext", "from BeautifulSoup import BeautifulSoup, Declaration, Comment, Tag", "from html5lib.constants import namespaces", "import _base", "class TreeWalker(_base.NonRecursiveTreeWalker):\n doctype_regexp = re.compile(\n r'(?P<name>[^\\s]*)(\\s*PUB...
from xml.dom.pulldom import START_ELEMENT, END_ELEMENT, \ COMMENT, IGNORABLE_WHITESPACE, CHARACTERS import _base from html5lib.constants import voidElements class TreeWalker(_base.TreeWalker): def __iter__(self): ignore_until = None previous = None for event in self.tree: ...
[ [ 1, 0, 0.0268, 0.0357, 0, 0.66, 0, 412, 0, 5, 0, 0, 412, 0, 0 ], [ 1, 0, 0.0714, 0.0179, 0, 0.66, 0.3333, 464, 0, 1, 0, 0, 464, 0, 0 ], [ 1, 0, 0.1071, 0.0179, 0, ...
[ "from xml.dom.pulldom import START_ELEMENT, END_ELEMENT, \\\n COMMENT, IGNORABLE_WHITESPACE, CHARACTERS", "import _base", "from html5lib.constants import voidElements", "class TreeWalker(_base.TreeWalker):\n def __iter__(self):\n ignore_until = None\n previous = None\n for event in ...
import gettext _ = gettext.gettext import _base class TreeWalker(_base.NonRecursiveTreeWalker): """Given that simpletree has no performant way of getting a node's next sibling, this implementation returns "nodes" as tuples with the following content: 1. The parent Node (Element, Document or DocumentF...
[ [ 1, 0, 0.0139, 0.0139, 0, 0.66, 0, 723, 0, 1, 0, 0, 723, 0, 0 ], [ 14, 0, 0.0278, 0.0139, 0, 0.66, 0.3333, 660, 7, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0556, 0.0139, 0, 0...
[ "import gettext", "_ = gettext.gettext", "import _base", "class TreeWalker(_base.NonRecursiveTreeWalker):\n \"\"\"Given that simpletree has no performant way of getting a node's\n next sibling, this implementation returns \"nodes\" as tuples with the\n following content:\n\n 1. The parent Node (El...
import gettext _ = gettext.gettext from html5lib.constants import voidElements, spaceCharacters spaceCharacters = u"".join(spaceCharacters) class TreeWalker(object): def __init__(self, tree): self.tree = tree def __iter__(self): raise NotImplementedError def error(self, msg): ret...
[ [ 1, 0, 0.0061, 0.0061, 0, 0.66, 0, 723, 0, 1, 0, 0, 723, 0, 0 ], [ 14, 0, 0.0121, 0.0061, 0, 0.66, 0.0769, 660, 7, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0242, 0.0061, 0, 0...
[ "import gettext", "_ = gettext.gettext", "from html5lib.constants import voidElements, spaceCharacters", "spaceCharacters = u\"\".join(spaceCharacters)", "class TreeWalker(object):\n def __init__(self, tree):\n self.tree = tree\n\n def __iter__(self):\n raise NotImplementedError\n\n d...
"""A collection of modules for iterating through different kinds of tree, generating tokens identical to those produced by the tokenizer module. To create a tree walker for a new type of tree, you need to do implement a tree walker object (called TreeWalker by convention) that implements a 'serialize' method taking a ...
[ [ 8, 0, 0.0962, 0.1731, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2115, 0.0192, 0, 0.66, 0.5, 172, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.625, 0.7692, 0, 0.66, ...
[ "\"\"\"A collection of modules for iterating through different kinds of\ntree, generating tokens identical to those produced by the tokenizer\nmodule.\n\nTo create a tree walker for a new type of tree, you need to do\nimplement a tree walker object (called TreeWalker by convention) that\nimplements a 'serialize' me...
from xml.dom import Node import gettext _ = gettext.gettext import _base from html5lib.constants import voidElements class TreeWalker(_base.NonRecursiveTreeWalker): def getNodeDetails(self, node): if node.nodeType == Node.DOCUMENT_TYPE_NODE: return _base.DOCTYPE, node.name, node.publicId, nod...
[ [ 1, 0, 0.027, 0.027, 0, 0.66, 0, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0811, 0.027, 0, 0.66, 0.2, 723, 0, 1, 0, 0, 723, 0, 0 ], [ 14, 0, 0.1081, 0.027, 0, 0.66, ...
[ "from xml.dom import Node", "import gettext", "_ = gettext.gettext", "import _base", "from html5lib.constants import voidElements", "class TreeWalker(_base.NonRecursiveTreeWalker):\n def getNodeDetails(self, node):\n if node.nodeType == Node.DOCUMENT_TYPE_NODE:\n return _base.DOCTYPE,...
from genshi.core import START, END, XML_NAMESPACE, DOCTYPE, TEXT from genshi.core import START_NS, END_NS, START_CDATA, END_CDATA, PI, COMMENT from genshi.output import NamespaceFlattener import _base from html5lib.constants import voidElements class TreeWalker(_base.TreeWalker): def __iter__(self): de...
[ [ 1, 0, 0.0143, 0.0143, 0, 0.66, 0, 987, 0, 5, 0, 0, 987, 0, 0 ], [ 1, 0, 0.0286, 0.0143, 0, 0.66, 0.2, 987, 0, 6, 0, 0, 987, 0, 0 ], [ 1, 0, 0.0429, 0.0143, 0, 0.6...
[ "from genshi.core import START, END, XML_NAMESPACE, DOCTYPE, TEXT", "from genshi.core import START_NS, END_NS, START_CDATA, END_CDATA, PI, COMMENT", "from genshi.output import NamespaceFlattener", "import _base", "from html5lib.constants import voidElements", "class TreeWalker(_base.TreeWalker):\n de...
import _base from html5lib.sanitizer import HTMLSanitizerMixin class Filter(_base.Filter, HTMLSanitizerMixin): def __iter__(self): for token in _base.Filter.__iter__(self): token = self.sanitize_token(token) if token: yield token
[ [ 1, 0, 0.125, 0.125, 0, 0.66, 0, 464, 0, 1, 0, 0, 464, 0, 0 ], [ 1, 0, 0.25, 0.125, 0, 0.66, 0.5, 689, 0, 1, 0, 0, 689, 0, 0 ], [ 3, 0, 0.75, 0.625, 0, 0.66, 1...
[ "import _base", "from html5lib.sanitizer import HTMLSanitizerMixin", "class Filter(_base.Filter, HTMLSanitizerMixin):\n def __iter__(self):\n for token in _base.Filter.__iter__(self):\n token = self.sanitize_token(token)\n if token: yield token", " def __iter__(self):\n ...
try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import ImmutableSet as frozenset import re import _base from html5lib.constants import rcdataElements, spaceCharacters spaceCharacters = u"".join(spaceCharacters) SPACES_REGEX = re.compile(u"[%s]+" % spaceCharacters) ...
[ [ 7, 0, 0.0732, 0.122, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 1, 0.0488, 0.0244, 1, 0.05, 0, 0, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 1, 0.122, 0.0244, 1, 0.05, 0, ...
[ "try:\n frozenset\nexcept NameError:\n # Import from the sets module for python 2.3\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import ImmutableSet as frozenset", "import re", "import _base", "from html5lib.constants import rcdataElements, spaceCharacters", "s...
import _base class Filter(_base.Filter): def __init__(self, source, encoding): _base.Filter.__init__(self, source) self.encoding = encoding def __iter__(self): state = "pre_head" meta_found = (self.encoding is None) pending = [] for token in _base.Filter.__iter...
[ [ 1, 0, 0.0159, 0.0159, 0, 0.66, 0, 464, 0, 1, 0, 0, 464, 0, 0 ], [ 3, 0, 0.5238, 0.9683, 0, 0.66, 1, 813, 0, 2, 0, 0, 362, 0, 12 ], [ 2, 1, 0.0794, 0.0476, 1, 0.35...
[ "import _base", "class Filter(_base.Filter):\n def __init__(self, source, encoding):\n _base.Filter.__init__(self, source)\n self.encoding = encoding\n\n def __iter__(self):\n state = \"pre_head\"\n meta_found = (self.encoding is None)", " def __init__(self, source, encoding...
import _base class Filter(_base.Filter): def slider(self): previous1 = previous2 = None for token in self.source: if previous1 is not None: yield previous2, previous1, token previous2 = previous1 previous1 = token yield previous2, previous...
[ [ 1, 0, 0.005, 0.005, 0, 0.66, 0, 464, 0, 1, 0, 0, 464, 0, 0 ], [ 3, 0, 0.5074, 0.9901, 0, 0.66, 1, 813, 0, 4, 0, 0, 362, 0, 3 ], [ 2, 1, 0.0371, 0.0396, 1, 0.78, ...
[ "import _base", "class Filter(_base.Filter):\n def slider(self):\n previous1 = previous2 = None\n for token in self.source:\n if previous1 is not None:\n yield previous2, previous1, token\n previous2 = previous1\n previous1 = token", " def slid...
class Filter(object): def __init__(self, source): self.source = source def __iter__(self): return iter(self.source) def __getattr__(self, name): return getattr(self.source, name)
[ [ 3, 0, 0.6, 0.9, 0, 0.66, 0, 813, 0, 3, 0, 0, 186, 0, 2 ], [ 2, 1, 0.35, 0.2, 1, 0.11, 0, 555, 0, 2, 0, 0, 0, 0, 0 ], [ 14, 2, 0.4, 0.1, 2, 0.01, 0, 848, ...
[ "class Filter(object):\n def __init__(self, source):\n self.source = source\n\n def __iter__(self):\n return iter(self.source)\n\n def __getattr__(self, name):", " def __init__(self, source):\n self.source = source", " self.source = source", " def __iter__(self):\n ...
from gettext import gettext _ = gettext import _base from html5lib.constants import cdataElements, rcdataElements, voidElements from html5lib.constants import spaceCharacters spaceCharacters = u"".join(spaceCharacters) class LintError(Exception): pass class Filter(_base.Filter): def __iter__(self): open...
[ [ 1, 0, 0.0114, 0.0114, 0, 0.66, 0, 723, 0, 1, 0, 0, 723, 0, 0 ], [ 14, 0, 0.0227, 0.0114, 0, 0.66, 0.1429, 660, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0455, 0.0114, 0, 0...
[ "from gettext import gettext", "_ = gettext", "import _base", "from html5lib.constants import cdataElements, rcdataElements, voidElements", "from html5lib.constants import spaceCharacters", "spaceCharacters = u\"\".join(spaceCharacters)", "class LintError(Exception): pass", "class Filter(_base.Filter)...
# # The goal is to finally have a form filler where you pass data for # each form, using the algorithm for "Seeding a form with initial values" # See http://www.whatwg.org/specs/web-forms/current-work/#seeding # import _base from html5lib.constants import spaceCharacters spaceCharacters = u"".join(spaceCharacters) c...
[ [ 1, 0, 0.0551, 0.0079, 0, 0.66, 0, 464, 0, 1, 0, 0, 464, 0, 0 ], [ 1, 0, 0.0709, 0.0079, 0, 0.66, 0.3333, 970, 0, 1, 0, 0, 970, 0, 0 ], [ 14, 0, 0.0787, 0.0079, 0, ...
[ "import _base", "from html5lib.constants import spaceCharacters", "spaceCharacters = u\"\".join(spaceCharacters)", "class SimpleFilter(_base.Filter):\n def __init__(self, source, fieldStorage):\n _base.Filter.__init__(self, source)\n self.fieldStorage = fieldStorage\n\n def __iter__(self):...
""" HTML parsing library based on the WHATWG "HTML5" specification. The parser is designed to be compatible with existing HTML found in the wild and implements well-defined error recovery that is largely compatible with modern desktop web browsers. Example usage: import html5lib f = open("my_document.html") tree = h...
[ [ 8, 0, 0.3824, 0.7059, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.7647, 0.0588, 0, 0.66, 0.2, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.8235, 0.0588, 0, 0.66, ...
[ "\"\"\" \nHTML parsing library based on the WHATWG \"HTML5\"\nspecification. The parser is designed to be compatible with existing\nHTML found in the wild and implements well-defined error recovery that\nis largely compatible with modern desktop web browsers.\n\nExample usage:", "__version__ = \"0.90\"", "from ...
try: frozenset except NameError: # Import from the sets module for python 2.3 from sets import Set as set from sets import ImmutableSet as frozenset try: from collections import deque except ImportError: from utils import deque from constants import contentModelFlags, spaceCharacters from c...
[ [ 7, 0, 0.0029, 0.005, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 0 ], [ 8, 1, 0.0017, 0.0008, 1, 0.4, 0, 0, 2, 0, 0, 0, 0, 0, 0 ], [ 1, 1, 0.0041, 0.0008, 1, 0.4, 0, ...
[ "try:\n frozenset\nexcept NameError:\n # Import from the sets module for python 2.3\n from sets import Set as set\n from sets import ImmutableSet as frozenset", " frozenset", " from sets import Set as set", " from sets import ImmutableSet as frozenset", "try:\n from collections impor...
#!/usr/bin/env python import csv, sys, os, datetime COLOR = "green" TEST = "cf" MACHINE = os.environ["MACHINE"] XYMONHOME = os.environ["XYMONHOME"] filename = XYMONHOME+'/tmp/cf_lastseen.csv' YM = "" RM = "" T = "" T0="Peers as last seen by "+MACHINE+" :\n<TABLE border=1 cellpadding=5><TR><TD>Host</TD><...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 312, 0, 4, 0, 0, 312, 0, 0 ], [ 2, 0, 0.5385, 0.6923, 0, 0.66, 1, 589, 0, 2, 0, 0, 0, 0, 2 ], [ 14, 1, 0.3077, 0.0769, 1, 0.57, ...
[ "import csv, sys, os, datetime", "def xymon_rep(color,l0):\n TEST = \"cf\"\n XYMON = os.environ[\"XYMON\"]\n XYMSRV = os.environ[\"XYMSRV\"]\n # Report status to the xymon server\n LINE = 'status '+MACHINE+'.'+TEST+' '+COLOR+' Cfengine status \\n'+L0\n cmd = XYMON+' '+XYMSRV+' \"'+LINE+'\"'\n os.system...
#!/usr/bin/env python import csv, sys, os, datetime COLOR = "green" TEST = "cf" MACHINE = os.environ["MACHINE"] XYMONHOME = os.environ["XYMONHOME"] filename = XYMONHOME+'/tmp/cf_lastseen.csv' YM = "" RM = "" T = "" T0="Peers as last seen by "+MACHINE+" :\n<TABLE border=1 cellpadding=5><TR><TD>Host</TD><...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 312, 0, 4, 0, 0, 312, 0, 0 ], [ 2, 0, 0.5385, 0.6923, 0, 0.66, 1, 589, 0, 2, 0, 0, 0, 0, 2 ], [ 14, 1, 0.3077, 0.0769, 1, 0.44, ...
[ "import csv, sys, os, datetime", "def xymon_rep(color,l0):\n TEST = \"cf\"\n XYMON = os.environ[\"XYMON\"]\n XYMSRV = os.environ[\"XYMSRV\"]\n # Report status to the xymon server\n LINE = 'status '+MACHINE+'.'+TEST+' '+COLOR+' Cfengine status \\n'+L0\n cmd = XYMON+' '+XYMSRV+' \"'+LINE+'\"'\n os.system...
#!/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\...
"""Implementation of JSONEncoder """ import re try: from sijs._speedups import encode_basestring_ascii as c_encode_basestring_ascii except ImportError: c_encode_basestring_ascii = None try: from sijs._speedups import make_encoder as c_make_encoder except ImportError: c_make_encoder = None ESCAPE = re....
[ [ 8, 0, 0.0034, 0.0046, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0068, 0.0023, 0, 0.66, 0.0667, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 7, 0, 0.0148, 0.0091, 0, 0.66...
[ "\"\"\"Implementation of JSONEncoder\n\"\"\"", "import re", "try:\n from sijs._speedups import encode_basestring_ascii as c_encode_basestring_ascii\nexcept ImportError:\n c_encode_basestring_ascii = None", " from sijs._speedups import encode_basestring_ascii as c_encode_basestring_ascii", " c_en...
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
[ [ 8, 0, 0.1572, 0.3113, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3145, 0.0031, 0, 0.66, 0.0909, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3223, 0.0126, 0, 0.66...
[ "r\"\"\"JSON (JavaScript Object Notation) <http://json.org> is a subset of\nJavaScript syntax (ECMA-262 3rd edition) used as a lightweight data\ninterchange format.\n\n:mod:`simplejson` exposes an API familiar to users of the standard library\n:mod:`marshal` and :mod:`pickle` modules. It is the externally maintaine...
"""JSON token scanner """ import re try: from sijs._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', (re.VERBOSE | re.MULTILINE | re.DOTALL)) def py_make_scanner(co...
[ [ 8, 0, 0.0231, 0.0308, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0462, 0.0154, 0, 0.66, 0.1667, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 7, 0, 0.0846, 0.0615, 0, 0.66...
[ "\"\"\"JSON token scanner\n\"\"\"", "import re", "try:\n from sijs._speedups import make_scanner as c_make_scanner\nexcept ImportError:\n c_make_scanner = None", " from sijs._speedups import make_scanner as c_make_scanner", " c_make_scanner = None", "__all__ = ['make_scanner']", "NUMBER_RE =...
## auth.py ## ## Copyright (C) 2003-2005 Alexey "Snake" Nezhdanov ## ## 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 2, or (at your option) ## any later version. ##...
[ [ 8, 0, 0.0571, 0.0123, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0679, 0.0031, 0, 0.66, 0.1, 393, 0, 1, 0, 0, 393, 0, 0 ], [ 1, 0, 0.071, 0.0031, 0, 0.66, ...
[ "\"\"\"\nProvides library with all Non-SASL and SASL authentication mechanisms.\nCan be used both for client and transport authentication.\n\"\"\"", "from protocol import *", "from client import PlugIn", "import hashlib,base64,random,dispatcher,re", "def HH(some): return hashlib.md5(some).hexdigest()", "d...
## filetransfer.py ## ## Copyright (C) 2004 Alexey "Snake" Nezhdanov ## ## 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 2, or (at your option) ## any later version....
[ [ 8, 0, 0.096, 0.0253, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1162, 0.0051, 0, 0.66, 0.25, 393, 0, 1, 0, 0, 393, 0, 0 ], [ 1, 0, 0.1212, 0.0051, 0, 0.66, ...
[ "\"\"\"\nThis module contains IBB class that is the simple implementation of JEP-0047.\nNote that this is just a transport for data. You have to negotiate data transfer before\n(via StreamInitiation most probably). Unfortunately SI is not implemented yet.\n\"\"\"", "from protocol import *", "from dispatcher imp...
## roster.py ## ## Copyright (C) 2003-2005 Alexey "Snake" Nezhdanov ## ## 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 2, or (at your option) ## any later version. ...
[ [ 8, 0, 0.1005, 0.0217, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1196, 0.0054, 0, 0.66, 0.3333, 393, 0, 1, 0, 0, 393, 0, 0 ], [ 1, 0, 0.125, 0.0054, 0, 0.66,...
[ "\"\"\"\nSimple roster implementation. Can be used though for different tasks like\nmass-renaming of contacts.\n\"\"\"", "from protocol import *", "from client import PlugIn", "class Roster(PlugIn):\n\t\"\"\" Defines a plenty of methods that will allow you to manage roster.\n\t\tAlso automatically track prese...
# JID Escaping XEP-0106 for the xmpppy based transports written by Norman Rasmussen """This file is the XEP-0106 commands. Implemented commands as follows: 4.2 Encode : Encoding Transformation 4.3 Decode : Decoding Transformation """ xep0106mapping = [ [' ' ,'20'], ['"' ,'22'], ['&' ,'26'], ['\'','27'], ['/...
[ [ 8, 0, 0.1455, 0.1636, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3364, 0.1818, 0, 0.66, 0.25, 710, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.5091, 0.1273, 0, 0.66, ...
[ "\"\"\"This file is the XEP-0106 commands.\n\nImplemented commands as follows:\n\n4.2 Encode : Encoding Transformation\n4.3 Decode : Decoding Transformation", "xep0106mapping = [\n\t[' ' ,'20'],\n\t['\"' ,'22'],\n\t['&' ,'26'],\n\t['\\'','27'],\n\t['/' ,'2f'],\n\t[':' ,'3a'],\n\t['<' ,'3c'],", "def JIDEncode(st...
# $Id: __init__.py,v 1.9 2005/03/07 09:34:51 snakeru Exp $ """ All features of xmpppy library contained within separate modules. At present there are modules: simplexml - XML handling routines protocol - jabber-objects (I.e. JID and different stanzas and sub-stanzas) handling routines. debug - Jacob Lundquist's debugg...
[ [ 8, 0, 0.4839, 0.8065, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.9355, 0.0323, 0, 0.66, 0.3333, 346, 0, 11, 0, 0, 346, 0, 0 ], [ 1, 0, 0.9677, 0.0323, 0, 0.6...
[ "\"\"\"\nAll features of xmpppy library contained within separate modules.\nAt present there are modules:\nsimplexml - XML handling routines\nprotocol - jabber-objects (I.e. JID and different stanzas and sub-stanzas) handling routines.\ndebug - Jacob Lundquist's debugging module. Very handy if you like colored debu...
#===istalismanplugin=== # -*- coding: utf-8 -*- import inspect def plugin_search_hnd(type, source, parameters): if not parameters: return if not parameters.lower() in COMMANDS: reply(type, source, u'Такой команды не существует!') return cmd=COMMAND_HANDLERS[parameters.lower()] file=in...
[ [ 1, 0, 0.1905, 0.0476, 0, 0.66, 0, 878, 0, 1, 0, 0, 878, 0, 0 ], [ 2, 0, 0.5714, 0.5238, 0, 0.66, 0.5, 550, 0, 3, 0, 0, 0, 0, 11 ], [ 4, 1, 0.381, 0.0476, 1, 0.88,...
[ "import inspect", "def plugin_search_hnd(type, source, parameters):\n if not parameters: return\n if not parameters.lower() in COMMANDS:\n reply(type, source, u'Такой команды не существует!')\n return\n cmd=COMMAND_HANDLERS[parameters.lower()]\n file=inspect.getfile(cmd)\n size=str(os...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # Initial Copyright © 2007 dimichxp <dimichxp@gmail.com> # Modifications Copyright © 2007 Als <Als@exploit.in> # Modifications Copyright © 2010 Evgеn # This program is free software; you can redistribute it and/or modify # it under the ...
[ [ 2, 0, 0.7432, 0.4324, 0, 0.66, 0, 800, 0, 3, 0, 0, 0, 0, 9 ], [ 1, 1, 0.5676, 0.027, 1, 0.24, 0, 345, 0, 1, 0, 0, 345, 0, 0 ], [ 1, 1, 0.5946, 0.027, 1, 0.24, ...
[ "def handler_TVru_fomenko(type, source, parameters):\n\timport urllib2\n\timport re\n\timport time\n\n\treq = urllib2.Request('http://www.fomenko.ru/foma/lenta/text.html')\n\tr = urllib2.urlopen(req)\n\tradky=r.readlines()", "\timport urllib2", "\timport re", "\timport time", "\treq = urllib2.Request('http:...
#===istalismanplugin=== # -*- coding: utf-8 -*- def handler_absurd(type, source, parameters): try: if parameters: if parameters.count(' '): parameters=parameters.replace(' ','_') req = urllib2.Request('http://absurdopedia.wikia.com/wiki/'+parameters.encod...
[ [ 2, 0, 0.5645, 0.7742, 0, 0.66, 0, 771, 0, 3, 0, 0, 0, 0, 24 ], [ 7, 1, 0.5806, 0.7419, 1, 0.24, 0, 0, 0, 1, 0, 0, 0, 0, 24 ], [ 4, 2, 0.5645, 0.6452, 2, 0.49, ...
[ "def handler_absurd(type, source, parameters):\n try:\n if parameters:\n if parameters.count(' '):\n parameters=parameters.replace(' ','_')\n req = urllib2.Request('http://absurdopedia.wikia.com/wiki/'+parameters.encode('utf-8'))\n req.add_header = ('User-ag...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # send_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # Help Copyright © 2007 dimichxp <dimichxp@gmail.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
[ [ 14, 0, 0.2273, 0.0114, 0, 0.66, 0, 707, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.4432, 0.375, 0, 0.66, 0.1667, 982, 0, 3, 0, 0, 0, 0, 17 ], [ 14, 1, 0.2727, 0.0114, 1, 0....
[ "sendqueue={}", "def handler_send_save(ltype, source, parameters):\n\tgroupchat=source[1]\n\tif GROUPCHATS.has_key(groupchat):\n\t\tnicks = GROUPCHATS[groupchat].keys()\n\t\targs = parameters.split(' ')\n\t\tdate=time.strftime('%Y-%m-%d %H:%M:%S', time.gmtime())\n\t\tfromnick=source[2]+u' из '+source[1]+u' в '+da...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # idle_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # 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...
[ [ 14, 0, 0.2043, 0.0108, 0, 0.66, 0, 912, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.2796, 0.1398, 0, 0.66, 0.1429, 588, 0, 3, 0, 0, 0, 0, 11 ], [ 14, 1, 0.2258, 0.0108, 1, 0...
[ "idle_pending=[]", "def handler_idle(type, source, parameters):\n\tidle_iq = xmpp.Iq('get')\n\tid='idle'+str(random.randrange(1000, 9999))\n\tglobals()['idle_pending'].append(id)\n\tidle_iq.setID(id)\n\tidle_iq.addChild('query', {}, [], 'jabber:iq:last');\n\tif parameters:\n\t\tparam = parameters.strip()", "\ti...
#===istalismanplugin=== # -*- coding: utf-8 -*- LAST_MESSAGE={} def last_message(raw, type, source, parameters): if source[1] not in GROUPCHATS.keys() or type=='private': return if len(parameters)>500 or parameters.isspace(): return if not source[1] in LAST_MESSAGE.keys(): ...
[ [ 14, 0, 0.1429, 0.0357, 0, 0.66, 0, 347, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.4107, 0.4286, 0, 0.66, 0.25, 906, 0, 4, 0, 0, 0, 0, 8 ], [ 4, 1, 0.2679, 0.0714, 1, 0.2, ...
[ "LAST_MESSAGE={}", "def last_message(raw, type, source, parameters):\n if source[1] not in GROUPCHATS.keys() or type=='private':\n return\n if len(parameters)>500 or parameters.isspace():\n return\n if not source[1] in LAST_MESSAGE.keys():\n LAST_MESSAGE[source[1]]={'body':[]}\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- # by 40tman import os, xmpp, time, sys, time, pdb, urllib, threading, types, random LAST_REG_JID={} JID_REG_TIME={} def generate_reg(_len = None, sg = None): if sg == None: sg = 'aoeuizxcvbnmsdfghjklqwrtyp1234567890' if _len == None: _len = random.Random()...
[ [ 1, 0, 0.0382, 0.0076, 0, 0.66, 0, 688, 0, 10, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0534, 0.0076, 0, 0.66, 0.1667, 769, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0687, 0.0076, 0, ...
[ "import os, xmpp, time, sys, time, pdb, urllib, threading, types, random", "LAST_REG_JID={}", "JID_REG_TIME={}", "def generate_reg(_len = None, sg = None):\n if sg == None:\n sg = 'aoeuizxcvbnmsdfghjklqwrtyp1234567890'\n if _len == None:\n _len = random.Random().randint(1, 100)\n s = ''\n l = len(sg...
#===istalismanplugin=== # -*- coding: utf-8 -*- # [TALKERS FOR TALISMAN BOT BY GIGABYTE] # Плагин подсчитывает болтунов # Name: Talkers # Version: 2.100 beta # By: Gigabyte # Official room: stalker@conference.jabbers.ru # mail: gigabyte@ngs.ru # www: http://jabbrik.ru # Плагин является ксклюзивным для сайта http://...
[ [ 14, 0, 0.0691, 0.0036, 0, 0.66, 0, 774, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.0836, 0.0036, 0, 0.66, 0.05, 195, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0909, 0.0036, 0, 0.6...
[ "SAVE_COUNT = 5", "TALKERS_BD = {}", "TALKERS_CONF = {}", "T = {}", "TALKERS_BOT_VERSION = {}", "TALKERS_FILE = 'dynamic/%ROOM%/talkers.txt'", "TALKERS_NOT_LOG = ['jid@server']", "TALKERS_LOG_ON_LENGTH = 0", "TALKERS_LOG_PRIVATE = 0", "TALKERS_SORT_OF = 0", "TALKERS_PASSIVE_TIMER = 0", "TIMEOU...
#===istalismanplugin=== # -*- coding: utf-8 -*- REGION = """ Республика Адыгея - 01 Республика Башкортостан - 02 Республика Бурятия - 03 Республика Горный Алтай - 04 Республика Дагестан - 05 Ингушская Республика - 06 Кабардино-Балкарская Республика - 07 Республика Калмыкия - 08 Карачаево-Черкесская Республика...
[ [ 14, 0, 0.433, 0.8036, 0, 0.66, 0, 876, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.9107, 0.1339, 0, 0.66, 0.5, 994, 0, 3, 0, 0, 0, 0, 10 ], [ 14, 1, 0.8571, 0.0089, 1, 0.36,...
[ "REGION = \"\"\"\n Республика Адыгея - 01\n Республика Башкортостан - 02\n Республика Бурятия - 03\n Республика Горный Алтай - 04\n Республика Дагестан - 05\n Ингушская Республика - 06\n Кабардино-Балкарская Республика - 07", "def hnd_region(type, source, parameters):\n rep=''\n parameters=parameter...
#===istalismanplugin=== # -*- coding: utf-8 -*- def isrus_text(type, source, parameters): rus=0 eng=0 R={} E={} n=0 if parameters and len(parameters)<100: for x in parameters: n+=1 try: if ord(x)>127: ...
[ [ 2, 0, 0.5233, 0.8372, 0, 0.66, 0, 652, 0, 3, 0, 0, 0, 0, 8 ], [ 14, 1, 0.1395, 0.0233, 1, 0.95, 0, 242, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 1, 0.1628, 0.0233, 1, 0.95, ...
[ "def isrus_text(type, source, parameters):\n rus=0\n eng=0\n R={}\n E={}\n n=0\n if parameters and len(parameters)<100:\n for x in parameters:", " rus=0", " eng=0", " R={}", " E={}", " n=0", " if parameters and len(parameters)<100:\n for x in parameters:...
#===istalismanplugin=== # -*- coding: utf-8 -*- # author ferym@jabbim.org.ru # web sites - http://jabbrik.ru , http://veganet.org # plugin version 1.5-testing import os def handler_note_add(type, source, parameters): if check_file('notepad','notepad.txt'): files = 'dynamic/notepad/notepad.txt' ...
[ [ 1, 0, 0.0457, 0.0057, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.24, 0.3714, 0, 0.66, 0.1667, 799, 0, 3, 0, 0, 0, 0, 64 ], [ 4, 1, 0.2429, 0.3657, 1, 0.6...
[ "import os", "def handler_note_add(type, source, parameters):\n if check_file('notepad','notepad.txt'):\n files = 'dynamic/notepad/notepad.txt'\n fp = open(files, 'r')\n note = eval(fp.read())\n fp.close()\n if parameters:\n if note.has_key(get_true_jid(source[1]+'/'+source[2]))...
#===istalismanplugin=== # -*- coding: utf-8 -*- LASTSPAM1 = {} SP_STOP_TIM = {} def generate_iq(_len = None, sg = None): if sg == None: sg = 'aoeuizxcvb_nmsdfghjklqwrtyp1234567890' if _len == None: _len = random.Random().randint(1, 100) s = '' l = len(sg) while _len > 0: s += sg[random.Random(...
[ [ 14, 0, 0.0388, 0.0097, 0, 0.66, 0, 565, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0583, 0.0097, 0, 0.66, 0.1429, 138, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.1359, 0.1068, 0, 0....
[ "LASTSPAM1 = {}", "SP_STOP_TIM = {}", "def generate_iq(_len = None, sg = None):\n if sg == None:\n sg = 'aoeuizxcvb_nmsdfghjklqwrtyp1234567890'\n if _len == None:\n _len = random.Random().randint(1, 100)\n s = ''\n l = len(sg)\n while _len > 0:", " if sg == None:\n sg = 'aoeuizxcvb_nmsdfghjklqw...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # stanza_plugin.py # Initial Copyright © 2007 dimichxp <dimichxp@gmail.com> def handler_stanza(type, source, parameters): if parameters: node=xmpp.simplexml.XML2Node(unicode(parameters).encode('utf8')) # JCON.SendAndCallForResponse(node, hand...
[ [ 2, 0, 0.6042, 0.3333, 0, 0.66, 0, 577, 0, 3, 0, 0, 0, 0, 5 ], [ 4, 1, 0.5833, 0.2083, 1, 0.15, 0, 0, 2, 0, 0, 0, 0, 0, 4 ], [ 14, 2, 0.5417, 0.0417, 2, 0.26, ...
[ "def handler_stanza(type, source, parameters):\n\tif parameters:\n\t\tnode=xmpp.simplexml.XML2Node(unicode(parameters).encode('utf8'))\n#\t\tJCON.SendAndCallForResponse(node, handler_stanza_answ,{'type': type, 'source': source})\n\t\tJCON.send(node)\n\t\treturn\n\trep = u'ты что посылать собралсо?'\n\treply(type, s...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # fact_plugin.py # Initial Copyright © 2002-2005 Mike Mintz <mikemintz@gmail.com> # Modifications Copyright © 2007 Als <Als@exploit.in> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera...
[ [ 14, 0, 0.5405, 0.027, 0, 0.66, 0, 429, 1, 0, 0, 0, 0, 3, 0 ], [ 2, 0, 0.7027, 0.2432, 0, 0.66, 0.3333, 147, 0, 1, 1, 0, 0, 0, 8 ], [ 14, 1, 0.6216, 0.027, 1, 0.94...
[ "TLD_FILE = 'static/tlds.txt'", "def fact_tld(query):\n\tfp = open(TLD_FILE, u'r')\n\twhile 1:\n\t\tline = fp.readline()\n\t\tif not line:\n\t\t\treturn u'не нашёл :('\n\t\t(key, value) = string.split(line, ': ', 1)\n\t\tif string.lower(query).strip() == string.lower(key).strip():", "\tfp = open(TLD_FILE, u'r')...
#===istalismanplugin=== # -*- coding: utf-8 -*- def send_top(type, source, parameters): if not parameters or not source[1] in GROUPCHATS.keys(): return STANZA="""<message type="groupchat" to="%s" > <subject>%s</subject> </message>""" % (source[1], parameters) node=xmpp.simplexml.XM...
[ [ 2, 0, 0.45, 0.45, 0, 0.66, 0, 301, 0, 3, 0, 0, 0, 0, 6 ], [ 4, 1, 0.325, 0.1, 1, 0.15, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 13, 2, 0.35, 0.05, 2, 0.89, 0, 0, ...
[ "def send_top(type, source, parameters):\n if not parameters or not source[1] in GROUPCHATS.keys():\n return\n STANZA=\"\"\"<message type=\"groupchat\" to=\"%s\" >\n <subject>%s</subject>\n </message>\"\"\" % (source[1], parameters)\n node=xmpp.simplexml.XML2Node(unicode(STANZA).encode('utf8'))\...
#===istalismanplugin=== # -*- coding: utf-8 -*- import sys LAST_AERR = {} ADMIN_ERR = [] ERR_L = {'t':0,'m':[]} class err: def write(self, text): h=u'Хьюстон, у нас проблемы: \n' if JCON.isConnected(): if text.isspace(): ...
[ [ 1, 0, 0.0342, 0.0085, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 14, 0, 0.0513, 0.0085, 0, 0.66, 0.0714, 132, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0684, 0.0085, 0, ...
[ "import sys", "LAST_AERR = {}", "ADMIN_ERR = []", "ERR_L = {'t':0,'m':[]}", "class err:\n def write(self, text):\n h=u'Хьюстон, у нас проблемы: \\n'\n if JCON.isConnected():\n if text.isspace():\n return\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- #plugin from http://jabbrik.ru AMSGCONF = {} def handler_amsg(type, source, parameters): ADMINFILE = 'static/amsg.txt' fp = open(ADMINFILE, 'r') txt = eval(fp.read()) if checkbl(get_true_jid(source[1]+'/'+source[2]).lower()): ...
[ [ 14, 0, 0.0286, 0.0048, 0, 0.66, 0, 712, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.1524, 0.2333, 0, 0.66, 0.0714, 156, 0, 3, 0, 0, 0, 0, 43 ], [ 14, 1, 0.0429, 0.0048, 1, 0...
[ "AMSGCONF = {}", "def handler_amsg(type, source, parameters):\n ADMINFILE = 'static/amsg.txt'\n fp = open(ADMINFILE, 'r')\n txt = eval(fp.read())\n if checkbl(get_true_jid(source[1]+'/'+source[2]).lower()):\n reply(type, source, u'Вы заблокированы по причине: '+checkbl(get_true_jid(...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman def cmd_acc_set(type,source,parameters): global COMMANDS if not parameters: reply(type,source,u'and?') return if not parameters.count(' '): reply(type,source,u'read help!') return s=parameters.split() if s[0...
[ [ 2, 0, 0.3529, 0.4902, 0, 0.66, 0, 965, 0, 3, 0, 0, 0, 0, 16 ], [ 4, 1, 0.1765, 0.0588, 1, 0.77, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 2, 0.1765, 0.0196, 2, 0.01, ...
[ "def cmd_acc_set(type,source,parameters):\n global COMMANDS\n if not parameters:\n reply(type,source,u'and?')\n return\n if not parameters.count(' '):\n reply(type,source,u'read help!')\n return", " if not parameters:\n reply(type,source,u'and?')\n return", ...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # Автор: 40tman MORZE={u' ':'-...-',u'a':'.-',u'а':'.-',u'b':'-...',u'б':'-...',u'в':'.--',u'w':'.--',u'g':'--.',u'г':'--.',u'д':'-..',u'd':'-..',u'e':'.',u'е':'.',u'ж':'...-',u'v':'...-',u'з':'--..',u'z':'--..',u'i':'..',u'и':'..',u'j':'.---',u'й':...
[ [ 14, 0, 0.1333, 0.0167, 0, 0.66, 0, 640, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.575, 0.8, 0, 0.66, 0.5, 238, 0, 3, 0, 0, 0, 0, 33 ], [ 4, 1, 0.2167, 0.05, 1, 0.21, 0...
[ "MORZE={u' ':'-...-',u'a':'.-',u'а':'.-',u'b':'-...',u'б':'-...',u'в':'.--',u'w':'.--',u'g':'--.',u'г':'--.',u'д':'-..',u'd':'-..',u'e':'.',u'е':'.',u'ж':'...-',u'v':'...-',u'з':'--..',u'z':'--..',u'i':'..',u'и':'..',u'j':'.---',u'й':'.---',u'k':'-.-',u'к':'-.-',u'л':'.-..',u'l':'.-..',u'm':'--',u'м':'--',u'n':'-.'...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman SR_PS={u'полное_имя':u'fn',u'fn':u'fn',u'организация':u'orgname',u'orgname':u'orgname',u'mail':u'email',u'name':u'first',u'фамилия':u'last',u'city':u'locality',u'дата':u'bday',u'data':u'bday',u'nick':u'nick',u'ник':u'nick',u'мыло':u'email',u'мейл':u'em...
[ [ 14, 0, 0.0686, 0.0098, 0, 0.66, 0, 548, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0882, 0.0098, 0, 0.66, 0.2, 555, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.3873, 0.5686, 0, 0.66,...
[ "SR_PS={u'полное_имя':u'fn',u'fn':u'fn',u'организация':u'orgname',u'orgname':u'orgname',u'mail':u'email',u'name':u'first',u'фамилия':u'last',u'city':u'locality',u'дата':u'bday',u'data':u'bday',u'nick':u'nick',u'ник':u'nick',u'мыло':u'email',u'мейл':u'email',u'имя':u'first',u'город':u'locality'}", "VJUD={'t':0}", ...
#===istalismanplugin=== # -*- coding: utf-8 -*- def hnd_www(type, source, parameters): if not parameters: return if not parameters.count('.'): reply(type, source, u'Неверный адрес!') if parameters.count('http://'): parameters=parameters.replace('http://','') try: ...
[ [ 2, 0, 0.5345, 0.8276, 0, 0.66, 0, 650, 0, 3, 0, 0, 0, 0, 27 ], [ 4, 1, 0.1897, 0.069, 1, 0.52, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 13, 2, 0.2069, 0.0345, 2, 0.88, ...
[ "def hnd_www(type, source, parameters):\n if not parameters:\n return\n if not parameters.count('.'):\n reply(type, source, u'Неверный адрес!')\n if parameters.count('http://'):\n parameters=parameters.replace('http://','')\n try:", " if not parameters:\n return", " ...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman from re import compile as re_compile strip_tags = re_compile(r'<[^<>]+>') LS_SRCL={} def decode_log(text): return strip_tags.sub('', text.replace('<br />','\n').replace('<br>','\n')).replace('&nbsp;', ' ').replace('&lt;', '<').replace('&gt;', '>').r...
[ [ 1, 0, 0.0488, 0.0081, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.065, 0.0081, 0, 0.66, 0.2, 144, 3, 1, 0, 0, 574, 10, 1 ], [ 14, 0, 0.0894, 0.0081, 0, 0...
[ "from re import compile as re_compile", "strip_tags = re_compile(r'<[^<>]+>')", "LS_SRCL={}", "def decode_log(text):\n return strip_tags.sub('', text.replace('<br />','\\n').replace('<br>','\\n')).replace('&nbsp;', ' ').replace('&lt;', '<').replace('&gt;', '>').replace('&quot;', '\"').replace('\\t','').rep...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman #Для захода бота по инвайту в комнате должно быть не меньше 3-х человек. inv_id=[] PROTECT_INV=[] def invite_join(msg): mas, fromjid, body = msg.getChildren(), msg.getFrom(), '' try: cp=msg.getBody() body=cp.split()[0] ...
[ [ 14, 0, 0.0745, 0.0106, 0, 0.66, 0, 681, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.0851, 0.0106, 0, 0.66, 0.1667, 907, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.2394, 0.2766, 0, 0....
[ "inv_id=[]", "PROTECT_INV=[]", "def invite_join(msg):\n mas, fromjid, body = msg.getChildren(), msg.getFrom(), ''\n try:\n cp=msg.getBody()\n body=cp.split()[0]\n except: return\n if INVITE_JOIN!='1': return\n if not fromjid in PROTECT_INV:", " mas, fromjid, body = msg.getChild...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # commoff_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # 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; eit...
[ [ 14, 0, 0.0766, 0.004, 0, 0.66, 0, 555, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.1573, 0.1492, 0, 0.66, 0.0455, 646, 0, 3, 0, 0, 0, 0, 19 ], [ 4, 1, 0.0927, 0.0121, 1, 0.5...
[ "poke_nicks={}", "def handler_poke(type, source, parameters):\n\tif type=='private':\n\t\treply(type,source,u':-P')\n\t\treturn\n\tgroupchat = source[1]\n\tif parameters:\n\t\tif parameters==u'last10':\n\t\t\tcnt=0", "\tif type=='private':\n\t\treply(type,source,u':-P')\n\t\treturn", "\t\treply(type,source,u'...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # features_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # 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...
[ [ 2, 0, 0.3041, 0.2268, 0, 0.66, 0, 768, 0, 3, 1, 0, 0, 0, 11 ], [ 14, 1, 0.2062, 0.0103, 1, 0.4, 0, 42, 4, 0, 0, 0, 0, 0, 0 ], [ 4, 1, 0.3144, 0.2062, 1, 0.4, ...
[ "def greetz_work(jid='',greet='',gch=''):\n\tDBPATH='dynamic/'+gch+'/greetz.txt'\n\tif check_file(gch,'greetz.txt'):\n\t\tgreetzdb = eval(read_file(DBPATH))\n\t\tif jid and greet:\n\t\t\tif not jid in greetzdb.keys():\n\t\t\t\tgreetzdb[jid]=jid\n\t\t\t\tgreetzdb[jid]=greet", "\tDBPATH='dynamic/'+gch+'/greetz.txt'...
#===istalismanplugin=== # -*- coding: utf-8 -*- try: MK = 'dynamic/macros.txt' fp0 = file(MK, 'r') MX = eval(read_file(MK)) fp0.close() except: pass TIME_ABORT=[] LAST_FRA={} SMALL_FRA=[u'ась?',u'а по-подробней?',u'и что ты хочешь сказать?',u'это что,все?'] BOLTUN={} BOLTUN_QI...
[ [ 7, 0, 0.0125, 0.0125, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 4 ], [ 14, 1, 0.0089, 0.0018, 1, 0.51, 0, 460, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 1, 0.0107, 0.0018, 1, 0.51, ...
[ "try:\n MK = 'dynamic/macros.txt'\n fp0 = file(MK, 'r')\n MX = eval(read_file(MK))\n fp0.close()\nexcept:\n pass", " MK = 'dynamic/macros.txt'", " fp0 = file(MK, 'r')", " MX = eval(read_file(MK))", " fp0.close()", "TIME_ABORT=[]", "LAST_FRA=...
#===istalismanplugin=== # -*- coding: utf-8 -*- BUTIL=[] def handler_bytil(type,source,parameters): if source[1] not in GROUPCHATS: return if not parameters or parameters == '': return BT = 'dynamic/bytil.txt' fp = open(BT, 'r') txt = eval(fp.re...
[ [ 14, 0, 0.0625, 0.0156, 0, 0.66, 0, 80, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.25, 0.2969, 0, 0.66, 0.1429, 245, 0, 3, 0, 0, 0, 0, 14 ], [ 4, 1, 0.1328, 0.0312, 1, 0.84,...
[ "BUTIL=[]", "def handler_bytil(type,source,parameters):\n if source[1] not in GROUPCHATS:\n return\n if not parameters or parameters == '':\n return\n BT = 'dynamic/bytil.txt'\n fp = open(BT, 'r')\n txt = eval(fp.read())", " if source[1] no...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman import os, xmpp, time, sys, time, pdb, urllib, threading, types, random FANTOM={'user':{},'nick':[], 'serv':[], 'w':0} def fantom_hnd_join(cl,groupchat): nick = random.choice(FANTOM['nick']) prs = xmpp.protocol.Presence(groupchat+'/'+nick) prs.setTag...
[ [ 1, 0, 0.0292, 0.0058, 0, 0.66, 0, 688, 0, 10, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0468, 0.0058, 0, 0.66, 0.0833, 776, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.0848, 0.0468, 0, ...
[ "import os, xmpp, time, sys, time, pdb, urllib, threading, types, random", "FANTOM={'user':{},'nick':[], 'serv':[], 'w':0}", "def fantom_hnd_join(cl,groupchat):\n nick = random.choice(FANTOM['nick'])\n prs = xmpp.protocol.Presence(groupchat+'/'+nick)\n prs.setTag('x', namespace=xmpp.NS_MUC).addChild('history...
#===istalismanplugin=== # -*- coding: utf-8 -*- def roster_sub(type,source,parameters): if parameters: if not parameters.count('@') or not parameters.count('.'): reply(type,source,u'читай помощь по команде!') return ROSTER = JCON....
[ [ 2, 0, 0.17, 0.16, 0, 0.66, 0, 533, 0, 3, 0, 0, 0, 0, 6 ], [ 4, 1, 0.18, 0.14, 1, 0.62, 0, 0, 2, 0, 0, 0, 0, 0, 6 ], [ 4, 2, 0.16, 0.06, 2, 0.39, 0, 0, ...
[ "def roster_sub(type,source,parameters):\n if parameters:\n if not parameters.count('@') or not parameters.count('.'):\n reply(type,source,u'читай помощь по команде!')\n return\n ROSTER = JCON.getRoster()\n ROSTER.Subs...
#! /usr/bin/env python # -*- coding: utf-8 -*- import os, time, sys, time, pdb, urllib, threading, types, random i=os.path.dirname(__file__) i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i) sys.path.insert(0, os.path.join(i,'modules')) import xmpp if len(sys.argv)!=3: sys.exit(0) TIME_SJ...
[ [ 1, 0, 0.049, 0.0098, 0, 0.66, 0, 688, 0, 9, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0686, 0.0098, 0, 0.66, 0.0667, 826, 3, 1, 0, 0, 959, 10, 1 ], [ 14, 0, 0.0784, 0.0098, 0, ...
[ "import os, time, sys, time, pdb, urllib, threading, types, random", "i=os.path.dirname(__file__)", "i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i)", "i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i)", "i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i)", "sys.path.insert(0, os.path.join(i,...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # version_plugin.py # Initial Copyright © 2007 dimichxp <dimichxp@gmail.com> # Modifications Copyright © 2007 Als <Als@exploit.in> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 14, 0, 0.25, 0.0125, 0, 0.66, 0, 428, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.4125, 0.3125, 0, 0.66, 0.3333, 214, 0, 3, 0, 0, 0, 0, 16 ], [ 14, 1, 0.275, 0.0125, 1, 0.6,...
[ "version_pending=[]", "def handler_version(type, source, parameters):\n\tnick = source[2]\n\tgroupchat=source[1]\n\tiq = xmpp.Iq('get')\n\tid='vers'+str(random.randrange(1000, 9999))\n\tglobals()['version_pending'].append(id)\n\tiq.setID(id)\n\tiq.addChild('query', {}, [], 'jabber:iq:version');", "\tnick = sour...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # status_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # 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...
[ [ 2, 0, 0.5185, 0.3519, 0, 0.66, 0, 739, 0, 3, 0, 0, 0, 0, 9 ], [ 4, 1, 0.5278, 0.3333, 1, 0.24, 0, 0, 2, 0, 0, 0, 0, 0, 9 ], [ 4, 2, 0.463, 0.1667, 2, 0.57, 0,...
[ "def handler_status(type, source, parameters):\n\tif parameters:\n\t\tif GROUPCHATS.has_key(source[1]) and GROUPCHATS[source[1]].has_key(parameters):\n\t\t\tstmsg=GROUPCHATS[source[1]][parameters]['stmsg']\n\t\t\tstatus=GROUPCHATS[source[1]][parameters]['status']\n\t\t\tif stmsg:\n\t\t\t\treply(type,source, paramet...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # weather_plugin.py # Автор: 40tman import urllib import urllib2 import re from re import compile as re_compile strip_tags = re_compile(r'<[^<>]+>') def weather_get(type, source, parameters): if not parameters: reply(typ...
[ [ 1, 0, 0.0317, 0.0035, 0, 0.66, 0, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0352, 0.0035, 0, 0.66, 0.1111, 345, 0, 1, 0, 0, 345, 0, 0 ], [ 1, 0, 0.0387, 0.0035, 0, ...
[ "import urllib", "import urllib2", "import re", "from re import compile as re_compile", "strip_tags = re_compile(r'<[^<>]+>')", "def weather_get(type, source, parameters):\n if not parameters:\n reply(type, source, u'Город?')\n return\n n='3'\n if paramet...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin SEA_BAT='dynamic/sea_bat.txt' SBT={} SBT_FIELD=""". a b c d e f g 1 | | | | | | | | 2 | | | | | | | | 3 | | | | | | | | 4 | | | | | | | | 5 | | | | | | | | 6 | | | | | | | |""" def sea_bat_start(typ...
[ [ 14, 0, 0.0211, 0.0035, 0, 0.66, 0, 529, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0281, 0.0035, 0, 0.66, 0.1, 122, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0456, 0.0246, 0, 0.66...
[ "SEA_BAT='dynamic/sea_bat.txt'", "SBT={}", "SBT_FIELD=\"\"\". a b c d e f g\n1 | | | | | | | |\n2 | | | | | | | |\n3 | | | | | | | |\n4 | | | | | | | |\n5 | | | | | | | |\n6 | | | | | | | |\"\"\"", "def sea_bat_start(type, source, parameters):\n if not ...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # more_plugin.py # Initial Copyright © 2009 Als <als-als@ya.ru> # 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 ...
[ [ 2, 0, 0.5, 0.1778, 0, 0.66, 0, 68, 0, 3, 0, 0, 0, 0, 3 ], [ 4, 1, 0.4444, 0.0222, 1, 0.4, 0, 0, 2, 0, 0, 0, 0, 0, 0 ], [ 13, 2, 0.4444, 0.0222, 2, 0.91, 0, ...
[ "def handler_more(type, source, parameters):\n\tif parameters: return\n\tif type!='private':\n\t\tif source[1] in GCHCFGS.keys() and GCHCFGS[source[1]]['more']==1:\n\t\t\tif LAST['gch'][source[1]]['msg']:\n\t\t\t\treply(type,source, LAST['gch'][source[1]]['msg'])\n\telse:\n\t\treply(type,source, u'а смысл?')", "\...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # commoff_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # 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; eit...
[ [ 2, 0, 0.3333, 0.3926, 0, 0.66, 0, 869, 0, 3, 0, 0, 0, 0, 16 ], [ 4, 1, 0.1556, 0.0222, 1, 0.34, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 2, 0.1556, 0.0074, 2, 0.21, ...
[ "def handler_commoff(type,source,parameters):\n\tif not source[1] in GROUPCHATS:\n\t\treply(type, source, u'это возможно только в конференции')\n\t\treturn\n\tna=[u'доступ',u'eval',u'логин',u'логаут',u'!stanza',u'unglobacc',u'свал',u'рестарт',u'globacc',u'команды',u'sh',u'exec',u'commoff',u'common']\n\tvalcomm,notv...
#! /usr/bin/env python # -*- coding: utf-8 -*- import os, time, sys, time, pdb, urllib, threading, types, random i=os.path.dirname(__file__) i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i) sys.path.insert(0, os.path.join(i,'modules')) import xmpp if len(sys.argv)!=3: sys.exit(0) TIME_SJ...
[ [ 1, 0, 0.049, 0.0098, 0, 0.66, 0, 688, 0, 9, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0686, 0.0098, 0, 0.66, 0.0667, 826, 3, 1, 0, 0, 959, 10, 1 ], [ 14, 0, 0.0784, 0.0098, 0, ...
[ "import os, time, sys, time, pdb, urllib, threading, types, random", "i=os.path.dirname(__file__)", "i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i)", "i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i)", "i=list(os.path.split(i));i.pop(len(i)-1);i=''.join(i)", "sys.path.insert(0, os.path.join(i,...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # roulette_plugin.py # Initial Copyright © 2007 dimichxp <dimichxp@gmail.com> # Modifications Copyright © 2007-2008 Als <Als@exploit.in> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
[ [ 2, 0, 0.6556, 0.4444, 0, 0.66, 0, 708, 0, 3, 0, 0, 0, 0, 10 ], [ 14, 1, 0.4667, 0.0222, 1, 0.96, 0, 361, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 1, 0.4889, 0.0222, 1, 0.96, ...
[ "def handler_roulette_one(type, source, parameters):\n\tgroupchat = source[1]\n\tnick = source[2]\n\trep =''\n\tif not user_level(source,groupchat)>=15:\n\t\tif GROUPCHATS.has_key(groupchat):\n\t\t\tif nick:\n\t\t\t\trandom.seed(int(time.time()))", "\tgroupchat = source[1]", "\tnick = source[2]", "\trep =''",...
#===istalismanplugin=== # -*- coding: utf-8 -*- def handler_pod_pl(type,source,parameters): if not parameters: return fp = 'plugins/' + parameters+'_plugin.py' if not os.path.exists(fp): fp = 'plugins/' + parameters+'.py' if not os.path.exists(fp): fp = 'plugins/' + parameters if not ...
[ [ 2, 0, 0.2174, 0.3696, 0, 0.66, 0, 293, 0, 3, 0, 0, 0, 0, 33 ], [ 4, 1, 0.0435, 0.0072, 1, 0.59, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 13, 2, 0.0435, 0.0072, 2, 0.37, ...
[ "def handler_pod_pl(type,source,parameters):\n if not parameters: return\n\n fp = 'plugins/' + parameters+'_plugin.py'\n\n if not os.path.exists(fp):\n fp = 'plugins/' + parameters+'.py'\n if not os.path.exists(fp):", " if not parameters: return", " if not parameters: return", " fp = 'plugins/' + pa...
#===istalismanplugin=== # -*- coding: utf-8 -*- def hnd_change_config(type,source,parameters): if not parameters: reply(type,source,u'?') return if not parameters.count(' '): reply(type,source,u'что-то тут не так!') return s=parameters.split() if not s[0].count('@'): ...
[ [ 2, 0, 0.5091, 0.8909, 0, 0.66, 0, 967, 0, 3, 0, 0, 0, 0, 31 ], [ 4, 1, 0.1091, 0.0545, 1, 0.05, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 2, 0.1091, 0.0182, 2, 0.62, ...
[ "def hnd_change_config(type,source,parameters):\n if not parameters:\n reply(type,source,u'?')\n return\n if not parameters.count(' '):\n reply(type,source,u'что-то тут не так!')\n return\n s=parameters.split()", " if not parameters:\n reply(type,source,u'?')\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- import shutil PRIVLOG_SEARCH={} def handler_privlog_q(type, source, parameters): (year, month, day, hour, minute, second, weekday, yearday, daylightsavings) = time.localtime() global PRIVLOG_SEARCH if not PRIVATE_LOG_DIR: repl...
[ [ 1, 0, 0.0102, 0.0025, 0, 0.66, 0, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0152, 0.0025, 0, 0.66, 0.0769, 221, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.2411, 0.4289, 0, 0...
[ "import shutil", "PRIVLOG_SEARCH={}", "def handler_privlog_q(type, source, parameters):\n (year, month, day, hour, minute, second, weekday, yearday, daylightsavings) = time.localtime()\n global PRIVLOG_SEARCH\n if not PRIVATE_LOG_DIR:\n reply(type, source, u'В настройках бота...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # juick_plugin.py # exclusively for juick.com ;) # Initial Copyright © Als <als-als@ya.ru> # 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 ...
[ [ 14, 0, 0.0738, 0.0034, 0, 0.66, 0, 655, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.1158, 0.0738, 0, 0.66, 0.0667, 80, 0, 3, 0, 0, 0, 0, 14 ], [ 4, 1, 0.1174, 0.0705, 1, 0.5...
[ "juick_reply={'uids': {}}", "def handler_juick(type, source, parameters):\n\tif parameters:\n\t\tif re.match('^#[0-9]+(\\+|/[0-9]+(-[0-9]+)?)?$',parameters): # thanks dimichxp!!!\n\t\t\tray=parameters[1:]\n\t\t\thandler_juick_ray(type, source, ray, 0)\n\t\telif parameters.startswith('@'):\n\t\t\ttry:\n\t\t\t\tsom...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # time_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # Modifications Copyright © 2007 dimichxp <dimichxp@gmail.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public...
[ [ 1, 0, 0.0922, 0.0046, 0, 0.66, 0, 890, 0, 3, 0, 0, 890, 0, 0 ], [ 14, 0, 0.1014, 0.0046, 0, 0.66, 0.0833, 908, 0, 0, 0, 0, 0, 5, 0 ], [ 2, 0, 0.1774, 0.1382, 0, 0...
[ "import string,re,calendar", "time_pending=[]", "def handler_gettime_xep_disco(type, source, parameters):\n\tif parameters.strip():\n\t\tjid=source[1]+'/'+parameters.strip().strip()\n\t\tif GROUPCHATS.has_key(source[1]) and GROUPCHATS[source[1]].has_key(parameters.strip()):\n\t\t\tif GROUPCHATS[source[1]][param...
#===istalismanplugin=== # -*- coding: utf-8 -*- chislo567 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] chislo2567={} def chislo789(type, source, parameters): if not source[1] in GROUPCHATS: return if source[1] in chislo2567: reply(type,source, u'в данную игру уже играют, подождите 3 минуты.') return gr...
[ [ 14, 0, 0.0667, 0.0133, 0, 0.66, 0, 26, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.08, 0.0133, 0, 0.66, 0.1667, 168, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.2067, 0.2133, 0, 0.66,...
[ "chislo567 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]", "chislo2567={}", "def chislo789(type, source, parameters):\n\tif not source[1] in GROUPCHATS:\n\t\treturn\n\tif source[1] in chislo2567:\n\t\treply(type,source, u'в данную игру уже играют, подождите 3 минуты.')\n\t\treturn\n\tgroupchat = source[1]\n\tnick=source...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman def handler_ch_st(type, source, parameters): if parameters: args,show,status=parameters.split(' ',1),'','' if args[0] in ['away','xa','dnd','chat']: show=args[0] else: show=None status=parameters if not status: try: status=args[1] ...
[ [ 2, 0, 0.2551, 0.2857, 0, 0.66, 0, 752, 0, 3, 0, 0, 0, 0, 2 ], [ 4, 1, 0.2653, 0.2653, 1, 0.8, 0, 0, 2, 0, 0, 0, 0, 0, 2 ], [ 14, 2, 0.1633, 0.0204, 2, 0.82, 0...
[ "def handler_ch_st(type, source, parameters):\n\tif parameters:\n\t\targs,show,status=parameters.split(' ',1),'',''\n\t\tif args[0] in ['away','xa','dnd','chat']:\n\t\t\tshow=args[0]\n\t\telse:\n\t\t\tshow=None\n\t\t\tstatus=parameters", "\tif parameters:\n\t\targs,show,status=parameters.split(' ',1),'',''\n\t\ti...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Портировал с Нейтрон бота: Gigabyte (http://jabbrik.ru/) from xml.sax import make_parser, handler RSS_CACHE_FILE = 'dynamic/RSS_CACHE.txt' RSS_INTERVAL = 30 RSS_QUERY_DELAY = 10 RSS_ITEM_DELAY = 120 RSS_CACHE = {} last_query = 0 UNSENT_HEADLINES = [] RSS_IS_ENABLED ...
[ [ 1, 0, 0.0228, 0.0038, 0, 0.66, 0, 587, 0, 2, 0, 0, 587, 0, 0 ], [ 14, 0, 0.0304, 0.0038, 0, 0.66, 0.025, 845, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0342, 0.0038, 0, 0...
[ "from xml.sax import make_parser, handler", "RSS_CACHE_FILE = 'dynamic/RSS_CACHE.txt'", "RSS_INTERVAL = 30", "RSS_QUERY_DELAY = 10", "RSS_ITEM_DELAY = 120", "RSS_CACHE = {}", "last_query = 0", "UNSENT_HEADLINES = []", "RSS_IS_ENABLED = 0", "initialize_file(RSS_CACHE_FILE, \"{'channels': {}}\")", ...
#===istalismanplugin=== # -*- coding: utf-8 -*- TURBO_PING = {} TURBO_LIM = {} def handler_turbo_ping(t, s, p): global TURBO_PING global TURBO_LIM jid = s[1]+'/'+s[2] if p: if s[1] in GROUPCHATS and p in GROUPCHATS[s[1]]: if p==get_bo...
[ [ 14, 0, 0.0392, 0.0098, 0, 0.66, 0, 209, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.049, 0.0098, 0, 0.66, 0.2, 18, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.4167, 0.7059, 0, 0.66, ...
[ "TURBO_PING = {}", "TURBO_LIM = {}", "def handler_turbo_ping(t, s, p):\n global TURBO_PING\n global TURBO_LIM\n jid = s[1]+'/'+s[2]\n if p:\n if s[1] in GROUPCHATS and p in GROUPCHATS[s[1]]:\n if p==get_bot_nick(s[1]):\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman def timel_hnd(type,source,parameters): if not parameters: reply(type,source,u'и?') return if parameters.count('@') and parameters.count('.'): jid=parameters.strip() else: if source[1] in GROUPCHATS: ...
[ [ 2, 0, 0.1468, 0.1905, 0, 0.66, 0, 0, 0, 3, 0, 0, 0, 0, 14 ], [ 4, 1, 0.0714, 0.0238, 1, 0.73, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 2, 0.0714, 0.0079, 2, 0.7, 0, ...
[ "def timel_hnd(type,source,parameters):\n if not parameters:\n reply(type,source,u'и?')\n return\n if parameters.count('@') and parameters.count('.'):\n jid=parameters.strip()\n else:\n if source[1] in GROUPCHATS:", " if not parameters:\n reply(type,source,u'и?')\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # complaint_plugin.py # Initial Copyright © 2007 Als <Als@exploit.in> # Help Copyright © 2007 dimichxp <dimichxp@gmail.com> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Lic...
[ [ 2, 0, 0.6957, 0.5435, 0, 0.66, 0, 798, 0, 3, 0, 0, 0, 0, 15 ], [ 4, 1, 0.7065, 0.5217, 1, 0.2, 0, 0, 0, 0, 0, 0, 0, 0, 15 ], [ 8, 2, 0.4783, 0.0217, 2, 0.33, ...
[ "def handler_complaint(type, source, parameters):\n\tif type == 'public':\n\t\treply(type, source, u'это команда работает только у меня в привате!')\n\telif type == 'private':\n\t\tgroupchat=source[1]\n\t\tif GROUPCHATS.has_key(groupchat):\n\t\t\tnicks = GROUPCHATS[groupchat].keys()\n\t\t\targs = parameters.split('...
#===istalismanplugin=== # -*- coding: utf-8 -*- JOINSF={} def leave_nick_stat(groupchat,nick,code,reason): if len(nick)>19: return if groupchat in GROUPCHATS: if not groupchat+nick in JOINSF: JOINSF[groupchat+nick] = {'joins':time.time()} ...
[ [ 14, 0, 0.122, 0.0244, 0, 0.66, 0, 614, 0, 0, 0, 0, 0, 6, 0 ], [ 2, 0, 0.2561, 0.1951, 0, 0.66, 0.25, 685, 0, 4, 0, 0, 0, 0, 3 ], [ 4, 1, 0.2073, 0.0488, 1, 0.96, ...
[ "JOINSF={}", "def leave_nick_stat(groupchat,nick,code,reason):\n if len(nick)>19:\n return\n if groupchat in GROUPCHATS:\n if not groupchat+nick in JOINSF:\n JOINSF[groupchat+nick] = {'joins':time.time()}\n else:\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- PR_TEST = {} PRIVACY_ID = {} PRIVACY_LIST = [] ROSTER_OLD = [] PRIVACY_FILTER = {} def privacy_xml(typ='get', nod=None, name=None): iq = xmpp.Iq(typ)# 1 query = xmpp.Node('query') query.setNamespace(xmpp.NS_PRIVACY) if nod and name: ...
[ [ 14, 0, 0.0095, 0.0024, 0, 0.66, 0, 329, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0119, 0.0024, 0, 0.66, 0.05, 55, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0143, 0.0024, 0, 0.66...
[ "PR_TEST = {}", "PRIVACY_ID = {}", "PRIVACY_LIST = []", "ROSTER_OLD = []", "PRIVACY_FILTER = {}", "def privacy_xml(typ='get', nod=None, name=None):\n iq = xmpp.Iq(typ)# 1\n query = xmpp.Node('query')\n query.setNamespace(xmpp.NS_PRIVACY)\n if nod and name:\n l=xmpp.Node(nod, {'name': na...
#===istalismanplugin=== # -*- coding: utf-8 -*- # (C) Gigabyte # * Распространять без указания ссылки на ресурс и автора ЗАПРЕЩЕНО! # * Применимо только в личных целях, никакой коммерции!!! import random, time board_list = {} comp_marker = None marker = None TTT_SCORE = {} def ttt_load_score(conf): global TTT...
[ [ 1, 0, 0.026, 0.0029, 0, 0.66, 0, 715, 0, 2, 0, 0, 715, 0, 0 ], [ 14, 0, 0.0318, 0.0029, 0, 0.66, 0.04, 531, 0, 0, 0, 0, 0, 6, 0 ], [ 14, 0, 0.0347, 0.0029, 0, 0.6...
[ "import random, time", "board_list = {}", "comp_marker = None", "marker = None", "TTT_SCORE = {}", "def ttt_load_score(conf):\n global TTT_SCORE\n try:\n fp = open('dynamic/%s/tictactoe.txt' % (conf), 'r')\n tmp = eval(fp.read())\n fp.close()\n except:\n# print 'Create...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # vote_plugin.py # Initial Copyright © 2002-2005 Mike Mintz <mikemintz@gmail.com> # Modifications Copyright © 2007 Als <Als@exploit.in> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera...
[ [ 14, 0, 0.0535, 0.0027, 0, 0.66, 0, 623, 0, 0, 0, 0, 0, 6, 0 ], [ 7, 0, 0.0602, 0.0053, 0, 0.66, 0.04, 0, 0, 1, 0, 0, 0, 0, 2 ], [ 14, 1, 0.0588, 0.0027, 1, 0.82, ...
[ "POLLINGS = {}", "try:\tPOLLINGS=eval(read_file('dynamic/vote.dat'))\nexcept:\tpass", "try:\tPOLLINGS=eval(read_file('dynamic/vote.dat'))", "def handler_vote_vote(type, source, parameters):\n\tglobal POLLINGS\n\tjid=get_true_jid(source)\n\tif POLLINGS.has_key(source[1]):\n\t\tif POLLINGS[source[1]]['finished'...
#===istalismanplugin=== # -*- coding: utf-8 -*- def handler_help_help(type, source, parameters): ctglist = [] if parameters and COMMANDS.has_key(parameters.strip()): rep = COMMANDS[parameters.strip()]['desc'].decode("utf-8") + u'\nКатегории: ' for cat in COMMANDS[parameters.strip()]['category']: ctglist.appen...
[ [ 2, 0, 0.1719, 0.2344, 0, 0.66, 0, 53, 0, 3, 0, 0, 0, 0, 15 ], [ 14, 1, 0.0781, 0.0156, 1, 0.67, 0, 562, 0, 0, 0, 0, 0, 5, 0 ], [ 4, 1, 0.1797, 0.1875, 1, 0.67, ...
[ "def handler_help_help(type, source, parameters):\n\tctglist = []\n\tif parameters and COMMANDS.has_key(parameters.strip()):\n\t\trep = COMMANDS[parameters.strip()]['desc'].decode(\"utf-8\") + u'\\nКатегории: '\n\t\tfor cat in COMMANDS[parameters.strip()]['category']:\n\t\t\tctglist.append(cat)\n\t\trep += ', '.joi...
#===istalismanplugin=== # -*- coding: utf-8 -*- import urllib2,re,urllib from re import compile as re_compile strip_tags = re_compile(r'<[^<>]+>') def handler_bashorgru_get(type, source, parameters): if parameters.strip()=='': req = urllib2.Request('http://bash.org.ru/random') else: req = urllib2.Request('htt...
[ [ 1, 0, 0.0134, 0.0034, 0, 0.66, 0, 345, 0, 3, 0, 0, 345, 0, 0 ], [ 1, 0, 0.0201, 0.0034, 0, 0.66, 0.0323, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 14, 0, 0.0268, 0.0034, 0, ...
[ "import urllib2,re,urllib", "from re import compile as re_compile", "strip_tags = re_compile(r'<[^<>]+>')", "def handler_bashorgru_get(type, source, parameters):\n\tif parameters.strip()=='':\n\t\treq = urllib2.Request('http://bash.org.ru/random')\n\telse:\n\t\treq = urllib2.Request('http://bash.org.ru/quote/...
#===istalismanplugin=== # -*- coding: utf-8 -*- #by 40tman SRCIAFL=[] SRCIAFLON=[] SRCLAST={} SRN_BASE={} SRJ_RES={'n':0} def now_srch_start(type,source,parameters): h, k, z, n, al, arl = '','','','','','' if not parameters: reply(type,source,u'введите ключевые символы для поиска по н...
[ [ 14, 0, 0.0195, 0.0033, 0, 0.66, 0, 951, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.0228, 0.0033, 0, 0.66, 0.0556, 226, 0, 0, 0, 0, 0, 5, 0 ], [ 14, 0, 0.0261, 0.0033, 0, 0...
[ "SRCIAFL=[]", "SRCIAFLON=[]", "SRCLAST={}", "SRN_BASE={}", "SRJ_RES={'n':0}", "def now_srch_start(type,source,parameters):\n h, k, z, n, al, arl = '','','','','',''\n if not parameters:\n reply(type,source,u'введите ключевые символы для поиска по нику или Jabber-ID!')\n ...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # access_plugin.py # Initial Copyright © 2002-2005 Mike Mintz <mikemintz@gmail.com> # Modifications Copyright © Als <Als@exploit.in> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General P...
[ [ 2, 0, 0.1524, 0.0549, 0, 0.66, 0, 441, 0, 3, 0, 0, 0, 0, 5 ], [ 4, 1, 0.1372, 0.0122, 1, 0.04, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 8, 2, 0.1402, 0.0061, 2, 0.81, 0...
[ "def handler_access_login(type, source, parameters):\n\tif type == 'public':\n\t\treply(type, source, u'эту команду нужно было выполнять в привате!')\n\tjid = get_true_jid(source)\n\tif parameters.strip() == ADMIN_PASSWORD:\n\t\tGLOBACCESS[jid]=100\n\t\treply('private', source, u'пароль принят, глобальный полный до...
#===istalismanplugin=== # -*- coding: utf-8 -*- def hand_probability(type, source, parameters): if not parameters or len(parameters)<6: return if len(parameters)>100: return num=str(random.randrange(0, 100)) reply(type,source,u'ваше утверждение верно на '+unicode(num)+u'% процентов') ...
[ [ 2, 0, 0.5714, 0.5, 0, 0.66, 0, 269, 0, 3, 0, 0, 0, 0, 6 ], [ 4, 1, 0.4643, 0.1429, 1, 0.28, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], [ 13, 2, 0.5, 0.0714, 2, 0.39, 0, ...
[ "def hand_probability(type, source, parameters):\n if not parameters or len(parameters)<6:\n return\n if len(parameters)>100:\n return\n num=str(random.randrange(0, 100))\n reply(type,source,u'ваше утверждение верно на '+unicode(num)+u'% процентов')", " if not parameters or len(parame...
#===istalismanplugin=== # -*- coding: utf-8 -*- # Talisman plugin # horo_plugin.py # Автор: 40tman import urllib import urllib2 import re from re import compile as re_compile strip_tags = re_compile(r'<[^<>]+>') def horo_get(type, source, parameters): if not parameters: reply(type, so...
[ [ 1, 0, 0.1875, 0.0208, 0, 0.66, 0, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.2083, 0.0208, 0, 0.66, 0.1667, 345, 0, 1, 0, 0, 345, 0, 0 ], [ 1, 0, 0.2292, 0.0208, 0, ...
[ "import urllib", "import urllib2", "import re", "from re import compile as re_compile", "strip_tags = re_compile(r'<[^<>]+>')", "def horo_get(type, source, parameters):\n if not parameters:\n reply(type, source, u'Знак?')\n return\n ZNAKI={u'овен':'1',u'телец':'...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
[ [ 1, 0, 0.0588, 0.0118, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0706, 0.0118, 0, 0.66, 0.125, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 1, 0, 0.0824, 0.0118, 0, 0...
[ "import logging", "import shutil", "import sys", "import urlparse", "import SimpleHTTPServer", "import BaseHTTPServer", "class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n \"\"\"Handle playfoursquare.com requests, for testing.\"\"\"\n\n def do_GET(self):\n logging.warn('do_GET: %s, %s',...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
[ [ 1, 0, 0.1111, 0.037, 0, 0.66, 0, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.1481, 0.037, 0, 0.66, 0.1429, 394, 0, 1, 0, 0, 394, 0, 0 ], [ 1, 0, 0.1852, 0.037, 0, 0.6...
[ "import os", "import subprocess", "import sys", "BASEDIR = '../main/src/com/joelapenna/foursquare'", "TYPESDIR = '../captures/types/v1'", "captures = sys.argv[1:]", "if not captures:\n captures = os.listdir(TYPESDIR)", " captures = os.listdir(TYPESDIR)", "for f in captures:\n basename = f.split('...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
[ [ 8, 0, 0.0631, 0.0991, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.1261, 0.009, 0, 0.66, 0.05, 2, 0, 1, 0, 0, 2, 0, 0 ], [ 1, 0, 0.1351, 0.009, 0, 0.66, 0....
[ "\"\"\"\nPull a oAuth protected page from foursquare.\n\nExpects ~/.oget to contain (one on each line):\nCONSUMER_KEY\nCONSUMER_KEY_SECRET\nUSERNAME\nPASSWORD", "import httplib", "import os", "import re", "import sys", "import urllib", "import urllib2", "import urlparse", "import user", "from xml....
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
[ [ 1, 0, 0.0201, 0.0067, 0, 0.66, 0, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0268, 0.0067, 0, 0.66, 0.0769, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0336, 0.0067, 0, ...
[ "import datetime", "import sys", "import textwrap", "import common", "from xml.dom import pulldom", "PARSER = \"\"\"\\\n/**\n * Copyright 2009 Joe LaPenna\n */\n\npackage com.joelapenna.foursquare.parsers;\n\nimport com.joelapenna.foursquare.Foursquare;", "BOOLEAN_STANZA = \"\"\"\\\n } else i...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
[ [ 1, 0, 0.0263, 0.0088, 0, 0.66, 0, 715, 0, 1, 0, 0, 715, 0, 0 ], [ 1, 0, 0.0439, 0.0088, 0, 0.66, 0.0833, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.0526, 0.0088, 0, ...
[ "import logging", "from xml.dom import minidom", "from xml.dom import pulldom", "BOOLEAN = \"boolean\"", "STRING = \"String\"", "GROUP = \"Group\"", "DEFAULT_INTERFACES = ['FoursquareType']", "INTERFACES = {\n}", "DEFAULT_CLASS_IMPORTS = [\n]", "CLASS_IMPORTS = {\n# 'Checkin': DEFAULT_CLASS_IMP...
''' 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.58, ...
[ "'''\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 '''...