code
stringlengths
1
1.49M
vector
listlengths
0
7.38k
snippet
listlengths
0
7.38k
''' 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 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
[ [ 1, 0, 0.0816, 0.0102, 0, 0.66, 0, 688, 0, 4, 0, 0, 688, 0, 0 ], [ 14, 0, 0.1224, 0.0102, 0, 0.66, 0.0714, 792, 6, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1531, 0.0102, 0, ...
[ "import os, re, mimetypes, sys", "SOURCE = sys.argv[1:]", "COMMENT_BLOCK = re.compile(r\"(/\\*.+?\\*/)\", re.MULTILINE | re.DOTALL)", "COMMENT_LICENSE = re.compile(r\"(license)\", re.IGNORECASE)", "COMMENT_COPYRIGHT = re.compile(r\"(copyright)\", re.IGNORECASE)", "EXCLUDE_TYPES = [\n \"application/xml\...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0557, 0.0033, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0689, 0.0033, 0, 0.66, 0.0333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0721, 0.0033, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import os", "import httplib2", "import sessions", "from google.appengine.ext import db", "from google.appengine.ext.webapp import template", "from apiclient.discovery import build_from_document", "from apiclient.http import MediaUpload", "from oauth2...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
[ [ 14, 0, 0.0281, 0.0017, 0, 0.66, 0, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0347, 0.0017, 0, 0.66, 0.0303, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 8, 0, 0.0364, 0.0017, 0, 0...
[ "__author__ = 'afshar@google.com (Ali Afshar)'", "import sys", "sys.path.insert(0, 'lib')", "import os", "import httplib2", "import sessions", "from google.appengine.ext import webapp", "from google.appengine.ext.webapp.util import run_wsgi_app", "from google.appengine.ext import db", "from google...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
[ [ 8, 0, 0.1818, 0.0267, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2032, 0.0053, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 3, 0, 0.2219, 0.0107, 0, 0.66, ...
[ "\"\"\"Module to enforce different constraints on flags.\n\nA validator represents an invariant, enforced over a one or more flags.\nSee 'FLAGS VALIDATORS' in gflags.py's docstring for a usage manual.\n\"\"\"", "__author__ = 'olexiy@google.com (Olexiy Oryeshko)'", "class Error(Exception):\n \"\"\"Thrown If val...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ [ 1, 0, 0.0738, 0.0041, 0, 0.66, 0, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.0779, 0.0041, 0, 0.66, 0.0625, 154, 0, 1, 0, 0, 154, 0, 0 ], [ 1, 0, 0.082, 0.0041, 0, 0...
[ "import base64", "import hashlib", "import logging", "import time", "from OpenSSL import crypto", "from anyjson import simplejson", "CLOCK_SKEW_SECS = 300 # 5 minutes in seconds", "AUTH_TOKEN_LIFETIME_SECS = 300 # 5 minutes in seconds", "MAX_TOKEN_LIFETIME_SECS = 86400 # 1 day in seconds", "cla...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
[ [ 8, 0, 0.0437, 0.0741, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0847, 0.0026, 0, 0.66, 0.0588, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0899, 0.0026, 0, 0.66,...
[ "\"\"\"Multi-credential file store with lock support.\n\nThis module implements a JSON credential store where multiple\ncredentials can be stored in one file. That file supports locking\nboth in a single process and across processes.\n\nThe credential themselves are keyed off of:\n* client_id", "__author__ = 'jb...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n # Should work for Python2.6 and higher.\n import json as simplejson\nexcept ImportError: #...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0145, 0.0035, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0176, 0.0009, 0, 0.66, 0.0244, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0193, 0.0009, 0, 0.66,...
[ "\"\"\"An OAuth 2.0 client.\n\nTools for interacting with OAuth 2.0 protected resources.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import base64", "import clientsecrets", "import copy", "import datetime", "import httplib2", "import logging", "import os", "import sys", "im...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1619, 0.0476, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2, 0.0095, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2286, 0.0095, 0, 0.66, ...
[ "\"\"\"Utilities for reading OAuth 2.0 client secret files.\n\nA client_secrets.json file contains all the information needed to interact with\nan OAuth 2.0 protected service.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from anyjson import simplejson", "TYPE_WEB = 'web'", "TYPE_INSTALL...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1604, 0.0472, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1981, 0.0094, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.217, 0.0094, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 2.0\ncredentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import os", "import stat", "import threading", "from anyjson import simplejson", "from client import Storage as BaseStorage", "from clien...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1371, 0.0403, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1694, 0.0081, 0, 0.66, 0.1111, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1855, 0.0081, 0, 0.66,...
[ "\"\"\"OAuth 2.0 utilities for Django.\n\nUtilities for using OAuth 2.0 in conjunction with\nthe Django datastore.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import oauth2client", "import base64", "import pickle", "from django.db import models", "from oauth2client.client import St...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
[ [ 8, 0, 0.0814, 0.1105, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1453, 0.0058, 0, 0.66, 0.0833, 162, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.1512, 0.0058, 0, 0.66...
[ "\"\"\"MIME-Type Parser\n\nThis module provides basic functions for handling mime-types. It can handle\nmatching mime-types against a list of media-ranges. See section 14.1 of the\nHTTP specification [RFC 2616] for a complete explanation.\n\n http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1", "__v...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1205, 0.1452, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.2046, 0.0033, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2112, 0.0033, 0, 0.66, ...
[ "\"\"\"Schema processing for discovery based APIs\n\nSchemas holds an APIs discovery schemas. It can return those schema as\ndeserialized JSON objects, or pretty print them as prototype objects that\nconform to the schema.\n\nFor example, given the schema:", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", ...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.5312, 0.1562, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.6562, 0.0312, 0, 0.66, 0.5, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 7, 0, 0.875, 0.2812, 0, 0.66, ...
[ "\"\"\"Utility module to import a JSON module\n\nHides all the messy details of exactly where\nwe get a simplejson module from.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "try: # pragma: no cover\n import simplejson\nexcept ImportError: # pragma: no cover\n try:\n # Try to import from...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.0342, 0.0083, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0414, 0.0021, 0, 0.66, 0.0476, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0476, 0.0021, 0, 0.66,...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import copy", "import httplib2", "import logging", "import oauth2 as oauth", "import urllib", "import urlparse", "from anyjson import simplejson", "tr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.1259, 0.037, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.1556, 0.0074, 0, 0.66, 0.125, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.1704, 0.0074, 0, 0.66, ...
[ "\"\"\"Utilities for Google App Engine\n\nUtilities for making it easier to use the\nGoogle API Client for Python on Google App Engine.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "from google.appengine.ext import db", "from apiclient.oauth import OAuthCredentials", "...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 8, 0, 0.2619, 0.0635, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.3175, 0.0159, 0, 0.66, 0.2, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.3492, 0.0159, 0, 0.66, ...
[ "\"\"\"Utilities for OAuth.\n\nUtilities for making it easier to work with OAuth 1.0 credentials.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import pickle", "import threading", "from apiclient.oauth import Storage as BaseStorage", "class Storage(BaseStorage):\n \"\"\"Store and retr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
[ [ 1, 0, 0.2679, 0.0179, 0, 0.66, 0, 629, 0, 1, 0, 0, 629, 0, 0 ], [ 1, 0, 0.2857, 0.0179, 0, 0.66, 0.2, 177, 0, 1, 0, 0, 177, 0, 0 ], [ 1, 0, 0.3036, 0.0179, 0, 0.6...
[ "import apiclient", "import base64", "import pickle", "from django.db import models", "class OAuthCredentialsField(models.Field):\n\n __metaclass__ = models.SubfieldBase\n\n def db_type(self):\n return 'VARCHAR'\n\n def to_python(self, value):", " __metaclass__ = models.SubfieldBase", " def db_t...
__version__ = "1.0c2"
[ [ 14, 0, 1, 1, 0, 0.66, 0, 162, 1, 0, 0, 0, 0, 3, 0 ] ]
[ "__version__ = \"1.0c2\"" ]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.0519, 0.0182, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0649, 0.0026, 0, 0.66, 0.0625, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.0701, 0.0026, 0, 0.66,...
[ "\"\"\"Model objects for requests and responses.\n\nEach API may support one or more serializations, such\nas JSON, Atom, etc. The model classes are responsible\nfor converting between the wire format and the Python\nobject representation.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "import...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ [ 8, 0, 0.1545, 0.0407, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.187, 0.0081, 0, 0.66, 0.0769, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 1, 0, 0.2114, 0.0081, 0, 0.66, ...
[ "\"\"\"Errors for the library.\n\nAll exceptions defined by the library\nshould be defined in this file.\n\"\"\"", "__author__ = 'jcgregorio@google.com (Joe Gregorio)'", "from oauth2client.anyjson import simplejson", "class Error(Exception):\n \"\"\"Base error for this module.\"\"\"\n pass", " \"\"\"Base...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
[ [ 8, 0, 0.0318, 0.0545, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 14, 0, 0.0636, 0.0091, 0, 0.66, 0.0909, 777, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.0727, 0.0091, 0, 0.66...
[ "\"\"\"\niri2uri\n\nConverts an IRI to a URI.\n\n\"\"\"", "__author__ = \"Joe Gregorio (joe@bitworking.org)\"", "__copyright__ = \"Copyright 2006, Joe Gregorio\"", "__contributors__ = []", "__version__ = \"1.0.0\"", "__license__ = \"MIT\"", "__history__ = \"\"\"\n\"\"\"", "import urlparse", "escape_...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
[ [ 8, 0, 0.0365, 0.0708, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 8, 0, 0.0845, 0.0205, 0, 0.66, 0.04, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.0982, 0.0023, 0, 0.66, ...
[ "\"\"\"SocksiPy - Python SOCKS module.\nVersion 1.00\n\nCopyright 2006 Dan-Haim. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n1. Redistributions of source code must retain the above copyright ...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
[ [ 1, 0, 0.006, 0.006, 0, 0.66, 0, 32, 0, 1, 0, 0, 32, 0, 0 ], [ 1, 0, 0.0119, 0.006, 0, 0.66, 0.1, 426, 0, 1, 0, 0, 426, 0, 0 ], [ 1, 0, 0.0179, 0.006, 0, 0.66, ...
[ "import Cookie", "import datetime", "import time", "import email.utils", "import calendar", "import base64", "import hashlib", "import hmac", "import re", "import logging", "class LilCookies:\n\n @staticmethod\n def _utf8(s):\n if isinstance(s, unicode):\n return s.encode(\"utf-8\")\n ...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
[ [ 14, 0, 0.1667, 0.0556, 0, 0.66, 0, 189, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.3889, 0.0556, 0, 0.66, 0.3333, 295, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 0.6111, 0.0556, 0, 0...
[ "manual_verstr = \"1.5\"", "auto_build_num = \"211\"", "verstr = manual_verstr + \".\" + auto_build_num", "try:\n from pyutil.version_class import Version as pyutil_Version\n __version__ = pyutil_Version(verstr)\nexcept (ImportError, ValueError):\n # Maybe there is no pyutil installed.\n from dist...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.2927, 0.561, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.6098, 0.0244, 0, 0.66, 0.25, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.6341, 0.0244, 0, 0.66, ...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
[ [ 8, 0, 0.3, 0.575, 0, 0.66, 0, 0, 1, 0, 0, 0, 0, 0, 0 ], [ 1, 0, 0.625, 0.025, 0, 0.66, 0.3333, 311, 0, 1, 0, 0, 311, 0, 0 ], [ 1, 0, 0.65, 0.025, 0, 0.66, 0.6...
[ "\"\"\"\nThe MIT License\n\nCopyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including withou...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
[ [ 1, 0, 0.0204, 0.0068, 0, 0.66, 0, 540, 0, 1, 0, 0, 540, 0, 0 ], [ 1, 0, 0.0272, 0.0068, 0, 0.66, 0.0833, 614, 0, 1, 0, 0, 614, 0, 0 ], [ 14, 0, 0.0408, 0.0068, 0, ...
[ "import re", "import urllib", "RESERVED = \":/?#[]@!$&'()*+,;=\"", "OPERATOR = \"+./;?|!@\"", "EXPLODE = \"*+\"", "MODIFIER = \":^\"", "TEMPLATE = re.compile(r\"{(?P<operator>[\\+\\./;\\?|!@])?(?P<varlist>[^}]+)}\", re.UNICODE)", "VAR = re.compile(r\"^(?P<varname>[^=\\+\\*:\\^]+)((?P<explode>[\\+\\*])...
#!/usr/bin/python import os, sys import gtk sys.path.append(os.getcwd() + "/widget") sys.path.append(os.getcwd() + "/mod") import initialize import remote_tree import local_tree import systray try: import psyco psyco.full() except ImportError: print 'Absynth supports "psyco", an inline optimizer for python...
[ [ 1, 0, 0.0183, 0.0061, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0244, 0.0061, 0, 0.66, 0.1, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 8, 0, 0.0305, 0.0061, 0, 0.6...
[ "import os, sys", "import gtk", "sys.path.append(os.getcwd() + \"/widget\")", "sys.path.append(os.getcwd() + \"/mod\")", "import initialize", "import remote_tree", "import local_tree", "import systray", "try:\n import psyco\n psyco.full()\nexcept ImportError:\n 'code, you can get it a...
import os, sys import gobject if os.path.isfile('/usr/bin/gnome-session'): import file_mimetypeGNOME as mime else: import mime_typeNonGNOME as mime from threading import Thread from ftplib import FTP class AbsynthModFTP(gobject.GObject): __gsignals__ = { "dirchanged" : (gobject.SIGNAL_RUN_...
[ [ 1, 0, 0.0092, 0.0092, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0183, 0.0092, 0, 0.66, 0.1429, 90, 0, 1, 0, 0, 90, 0, 0 ], [ 4, 0, 0.0413, 0.0367, 0, 0....
[ "import os, sys", "import gobject", "if os.path.isfile('/usr/bin/gnome-session'):\n import file_mimetypeGNOME as mime\nelse:\n import mime_typeNonGNOME as mime", " import file_mimetypeGNOME as mime", " import mime_typeNonGNOME as mime", "from threading import Thread", "from ftplib import FTP...
import pycurl class AbsynthModFTP: def connect(self, server, user, password): self.ftp.setopt(self.ftp.URL, "ftp://%s/" % server) self.ftp.setopt(self.ftp.FTP_USE_EPSV, 1) #self.ftp.setopt(c.USERPWD, '%s:%s' %user %password) self.ftp.perform() def disconnect(self): self....
[ [ 1, 0, 0.0167, 0.0167, 0, 0.66, 0, 708, 0, 1, 0, 0, 708, 0, 0 ], [ 3, 0, 0.525, 0.9667, 0, 0.66, 1, 290, 0, 8, 0, 0, 0, 0, 26 ], [ 2, 1, 0.1, 0.0833, 1, 0.97, ...
[ "import pycurl", "class AbsynthModFTP:\n def connect(self, server, user, password):\n self.ftp.setopt(self.ftp.URL, \"ftp://%s/\" % server)\n self.ftp.setopt(self.ftp.FTP_USE_EPSV, 1)\n #self.ftp.setopt(c.USERPWD, '%s:%s' %user %password)\n self.ftp.perform()\n def disconnect(sel...
import sys import os, shutil, stat import time, datetime if os.path.isfile('/usr/bin/gnome-session'): import file_mimetypeGNOME as mime else: import mime_typeNonGNOME as mime class AbsynthModLocal: def __init__(self): return def pwd(self): return os.getcwd() def cwd(self, name): ...
[ [ 1, 0, 0.0286, 0.0286, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0571, 0.0286, 0, 0.66, 0.25, 688, 0, 3, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0857, 0.0286, 0, 0....
[ "import sys", "import os, shutil, stat", "import time, datetime", "if os.path.isfile('/usr/bin/gnome-session'):\n import file_mimetypeGNOME as mime\nelse:\n import mime_typeNonGNOME as mime", " import file_mimetypeGNOME as mime", " import mime_typeNonGNOME as mime", "class AbsynthModLocal:\n...
#!/usr/bin/python import os, sys import gtk sys.path.append(os.getcwd() + "/widget") sys.path.append(os.getcwd() + "/mod") import initialize import remote_tree import local_tree import systray try: import psyco psyco.full() except ImportError: print 'Absynth supports "psyco", an inline optimizer for python...
[ [ 1, 0, 0.0183, 0.0061, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.0244, 0.0061, 0, 0.66, 0.1, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 8, 0, 0.0305, 0.0061, 0, 0.6...
[ "import os, sys", "import gtk", "sys.path.append(os.getcwd() + \"/widget\")", "sys.path.append(os.getcwd() + \"/mod\")", "import initialize", "import remote_tree", "import local_tree", "import systray", "try:\n import psyco\n psyco.full()\nexcept ImportError:\n 'code, you can get it a...
import gtk def new(self, message): self.log_textbuffer.insert_at_cursor(message)
[ [ 1, 0, 0.2, 0.2, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 2, 0, 0.7, 0.4, 0, 0.66, 1, 145, 0, 2, 0, 0, 0, 0, 1 ], [ 8, 1, 0.8, 0.2, 1, 0.16, 0, 65, ...
[ "import gtk", "def new(self, message):\n self.log_textbuffer.insert_at_cursor(message)", " self.log_textbuffer.insert_at_cursor(message)" ]
import gtk def make(self, *args): assistant = gtk.Assistant() aa = gtk.Fixed() assistant.insert_page(aa, 0) assistant.show()
[ [ 1, 0, 0.1429, 0.1429, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 2, 0, 0.7143, 0.7143, 0, 0.66, 1, 417, 0, 2, 0, 0, 0, 0, 4 ], [ 14, 1, 0.5714, 0.1429, 1, 0.26, ...
[ "import gtk", "def make(self, *args):\n assistant = gtk.Assistant()\n aa = gtk.Fixed()\n assistant.insert_page(aa, 0)\n assistant.show()", " assistant = gtk.Assistant()", " aa = gtk.Fixed()", " assistant.insert_page(aa, 0)", " assistant.show()" ]
import gtk import os def populate(self): self.local_treemodel.clear() for row in self.local.list_file(): self.local_treemodel.append([ row[0], row[1], row[2], row[3], row[4] ]) def treeview_clicked(self): treeselection = self.local_treeview.get_selection() (tmp_model, tmp_iter) = treese...
[ [ 1, 0, 0.0294, 0.0294, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0588, 0.0294, 0, 0.66, 0.25, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.1618, 0.1176, 0, 0....
[ "import gtk", "import os", "def populate(self):\n self.local_treemodel.clear()\n for row in self.local.list_file():\n self.local_treemodel.append([ row[0], row[1], row[2], row[3], row[4] ])", " self.local_treemodel.clear()", " for row in self.local.list_file():\n self.local_treemod...
import pynotify class Notify: def __init__(self): if not pynotify.init("Absynth"): sys.exit(1) def new(self, text): n = pynotify.Notification(text) if not n.show(): print "Failed to send notification" sys.exit(1)
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 893, 0, 1, 0, 0, 893, 0, 0 ], [ 3, 0, 0.6364, 0.8182, 0, 0.66, 1, 325, 0, 2, 0, 0, 0, 0, 6 ], [ 2, 1, 0.4545, 0.2727, 1, 0.51, ...
[ "import pynotify", "class Notify:\n def __init__(self):\n if not pynotify.init(\"Absynth\"):\n sys.exit(1)\n def new(self, text):\n n = pynotify.Notification(text)\n if not n.show():\n print(\"Failed to send notification\")", " def __init__(self):\n if ...
import gtk def trayMenu(self, status_icon, button, activate_time): popmenu = gtk.glade.XML("absynth-ftp.glade", "traymenu") dic = { "on_about" : self.about_dialog, "on_disconnect" : self.on_connect, "on_destroy" : gtk.main_quit } popmenu.signal_auto...
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 2, 0, 0.6, 0.8667, 0, 0.66, 1, 404, 0, 4, 0, 0, 0, 0, 7 ], [ 14, 1, 0.2667, 0.0667, 1, 0.45, ...
[ "import gtk", "def trayMenu(self, status_icon, button, activate_time):\n popmenu = gtk.glade.XML(\"absynth-ftp.glade\", \"traymenu\")\n dic = {\n \"on_about\" : self.about_dialog,\n \"on_disconnect\" : self.on_connect,\n \"on_destroy\" : gtk.main_quit\n }", " po...
import gtk from ftpmod import Download def populate(self): self.remote_treemodel.clear() for row in self.connection.list_file(): self.remote_treemodel.append([ row[0], row[1], row[2], row[3], row[4] ]) def treeview_clicked(self): treeselection = self.remote_treeview.get_selection() (...
[ [ 1, 0, 0.0294, 0.0294, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0588, 0.0294, 0, 0.66, 0.25, 343, 0, 1, 0, 0, 343, 0, 0 ], [ 2, 0, 0.1618, 0.1176, 0, 0....
[ "import gtk", "from ftpmod import Download", "def populate(self):\n self.remote_treemodel.clear()\n for row in self.connection.list_file():\n self.remote_treemodel.append([ row[0], row[1], row[2], row[3], row[4] ])", " self.remote_treemodel.clear()", " for row in self.connection.list_file...
import gtk import os iconTheme = gtk.IconTheme() iconTheme.set_search_path([os.getcwd()+"img/icons"]) def return_folder_mime(): type = "folder" return type def return_mime(file): ext = os.path.splitext(file)[1] if ext == ".txt": type = "text-x-generic" elif ext == ".sh" or ext == ".py" or...
[ [ 1, 0, 0.0303, 0.0303, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0606, 0.0303, 0, 0.66, 0.2, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 14, 0, 0.0909, 0.0303, 0, 0....
[ "import gtk", "import os", "iconTheme = gtk.IconTheme()", "iconTheme.set_search_path([os.getcwd()+\"img/icons\"])", "def return_folder_mime():\n type = \"folder\"\n return type", " type = \"folder\"", " return type", "def return_mime(file):\n ext = os.path.splitext(file)[1]\n if ext ...
import gtk import gobject import ftpmod def define_widgets(self, gladefile): self.AbMainWindow = gladefile.get_widget('AbsynthFull') self.remote_treeview = gladefile.get_widget('remotetree') self.remote_path = gladefile.get_widget('remotepath') self.local_treeview = gladefile.get_widget('localtree') ...
[ [ 1, 0, 0.025, 0.025, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.05, 0.025, 0, 0.66, 0.3333, 90, 0, 1, 0, 0, 90, 0, 0 ], [ 1, 0, 0.075, 0.025, 0, 0.66, ...
[ "import gtk", "import gobject", "import ftpmod", "def define_widgets(self, gladefile):\n self.AbMainWindow = gladefile.get_widget('AbsynthFull')\n self.remote_treeview = gladefile.get_widget('remotetree')\n self.remote_path = gladefile.get_widget('remotepath')\n self.local_treeview = gladefile.get...
import gtk, gtk.glade import widgets import ftpmod import localmod import assistant import log_act import local_tree def locations(self): self.gladefile = gtk.glade.XML("absynth-ftp.glade", "AbsynthFull") widgets.define_widgets(self, self.gladefile) def mods(self): self.connection = ftpmod.AbsynthModFTP()...
[ [ 1, 0, 0.0064, 0.0064, 0, 0.66, 0, 166, 0, 2, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0127, 0.0064, 0, 0.66, 0.0625, 178, 0, 1, 0, 0, 178, 0, 0 ], [ 1, 0, 0.0191, 0.0064, 0, ...
[ "import gtk, gtk.glade", "import widgets", "import ftpmod", "import localmod", "import assistant", "import log_act", "import local_tree", "def locations(self):\n self.gladefile = gtk.glade.XML(\"absynth-ftp.glade\", \"AbsynthFull\")\n widgets.define_widgets(self, self.gladefile)", " self.gl...
import gtk import os def return_folder_mime(): type = "stock_folder" return type def return_mime(file): ext = os.path.splitext(file)[1] if ext == ".txt": type = "gnome-mime-text" elif ext == ".sh": type = "gnome-mime-application-x-shellscript" elif ext == ".py": type =...
[ [ 1, 0, 0.0263, 0.0263, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0526, 0.0263, 0, 0.66, 0.3333, 688, 0, 1, 0, 0, 688, 0, 0 ], [ 2, 0, 0.1316, 0.0789, 0, ...
[ "import gtk", "import os", "def return_folder_mime():\n type = \"stock_folder\"\n return type", " type = \"stock_folder\"", " return type", "def return_mime(file):\n ext = os.path.splitext(file)[1]\n if ext == \".txt\": \n type = \"gnome-mime-text\"\n elif ext == \".sh\":\n ...
WINDOW_TYPE = 0 DATA_DIR = "/home/nico/workspace/Absynth-ftp/src" PIXMAP_DIR = DATA_DIR+"/img/"
[ [ 14, 0, 0.3333, 0.3333, 0, 0.66, 0, 39, 1, 0, 0, 0, 0, 1, 0 ], [ 14, 0, 0.6667, 0.3333, 0, 0.66, 0.5, 318, 1, 0, 0, 0, 0, 3, 0 ], [ 14, 0, 1, 0.3333, 0, 0.66, ...
[ "WINDOW_TYPE = 0", "DATA_DIR = \"/home/nico/workspace/Absynth-ftp/src\"", "PIXMAP_DIR = DATA_DIR+\"/img/\"" ]
import sys from exceptions import Exception class RaiseError: def __init__(self, error): self.error = error def search(self): self.__run = hasattr(sys.modules[self.__module__], "%sError" % self.error) \ and getattr(sys.modules[self.__module__], "%sError" % self.error) or DefaultError return self.__run ...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.1667, 63, 0, 1, 0, 0, 63, 0, 0 ], [ 3, 0, 0.3636, 0.4091, 0, 0....
[ "import sys", "from exceptions import Exception", "class RaiseError:\n\t\n\tdef __init__(self, error):\n\t\tself.error = error\n\t\t\n\tdef search(self):\n\t\tself.__run = hasattr(sys.modules[self.__module__], \"%sError\" % self.error) \\\n\t\t\tand getattr(sys.modules[self.__module__], \"%sError\" % self.error...
import gtk import sys import os, shutil, stat import time, datetime import LocalView class Main(LocalView.Main): def __init__(self, widgetInstance, pathInstance, mimeModule, connectionWidgets, FTPEngine): LocalView.Main.__init__(self, widgetInstance, pathInstance, mimeModule) self.engine = Engine(mimeModule, FT...
[ [ 1, 0, 0.0164, 0.0164, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0328, 0.0164, 0, 0.66, 0.1429, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0492, 0.0164, 0, ...
[ "import gtk", "import sys", "import os, shutil, stat", "import time, datetime", "import LocalView", "class Main(LocalView.Main):\n\t\n\tdef __init__(self, widgetInstance, pathInstance, mimeModule, connectionWidgets, FTPEngine):\n\t\tLocalView.Main.__init__(self, widgetInstance, pathInstance, mimeModule)\n...
import gtk import conf class Main: def __init__(self, popupMenuName, popupMenuEvents): self.__tray = gtk.StatusIcon() self.__tray.set_tooltip("Absynth FTP") self.__tray.set_from_stock("gtk-network") #self.__tray.set_from_icon_name(conf.DATA_DIR + "/img/logo_minimal.png") self.__popupMenuName = popupMen...
[ [ 1, 0, 0.0345, 0.0345, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.069, 0.0345, 0, 0.66, 0.5, 433, 0, 1, 0, 0, 433, 0, 0 ], [ 3, 0, 0.5345, 0.8276, 0, 0.66...
[ "import gtk", "import conf", "class Main:\n\t\n\tdef __init__(self, popupMenuName, popupMenuEvents):\n\t\tself.__tray = gtk.StatusIcon()\n\t\tself.__tray.set_tooltip(\"Absynth FTP\")\n\t\tself.__tray.set_from_stock(\"gtk-network\")\n\t\t#self.__tray.set_from_icon_name(conf.DATA_DIR + \"/img/logo_minimal.png\")"...
__all__ = ["LocalView", "AboutDialog", "SysTray", "LogView", "RemoteView"]
[ [ 14, 0, 1, 1, 0, 0.66, 0, 272, 0, 0, 0, 0, 0, 5, 0 ] ]
[ "__all__ = [\"LocalView\", \"AboutDialog\", \"SysTray\", \"LogView\", \"RemoteView\"]" ]
import gtk class Main: def __init__(self, widgetInstance): self.__logView = widgetInstance self.__buffer = gtk.TextBuffer(None) self.__logView.set_buffer(self.__buffer) def write(self, message): self.__buffer.insert_at_cursor(message + "\n")
[ [ 1, 0, 0.0909, 0.0909, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 3, 0, 0.6364, 0.8182, 0, 0.66, 1, 16, 0, 2, 0, 0, 0, 0, 3 ], [ 2, 1, 0.5909, 0.3636, 1, 0.29, ...
[ "import gtk", "class Main:\n\t\n\tdef __init__(self, widgetInstance):\n\t\tself.__logView = widgetInstance\n\t\tself.__buffer = gtk.TextBuffer(None)\n\t\tself.__logView.set_buffer(self.__buffer)\n\t\t\n\tdef write(self, message):", "\tdef __init__(self, widgetInstance):\n\t\tself.__logView = widgetInstance\n\t\...
import gtk, conf class Main: def __init__(self, *args): self.__glade = gtk.glade.XML(conf.GLADE_MAIN_WINDOW, conf.ABOUT_DIALOG) self.__dialog = self.__glade.get_widget(conf.ABOUT_DIALOG) self.__dialog.set_icon_from_file(conf.DATA_DIR +"/img/logo_minimal.png") self.__dialog....
[ [ 1, 0, 0.0667, 0.0667, 0, 0.66, 0, 166, 0, 2, 0, 0, 166, 0, 0 ], [ 3, 0, 0.6, 0.8667, 0, 0.66, 1, 16, 0, 1, 0, 0, 0, 0, 10 ], [ 2, 1, 0.6333, 0.8, 1, 0.69, 0, ...
[ "import gtk, conf", "class Main:\n def __init__(self, *args):\n self.__glade = gtk.glade.XML(conf.GLADE_MAIN_WINDOW, conf.ABOUT_DIALOG)\n self.__dialog = self.__glade.get_widget(conf.ABOUT_DIALOG)\n \n self.__dialog.set_icon_from_file(conf.DATA_DIR +\"/img/logo_minimal.png\")\n ...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.3247, 0.013, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3377, 0.013, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.3506, 0.013, 0, 0.66,...
[ "import sys, platform, conf", "import gtk", "import raiseError", "class HandleError:\n\t\n\tdef __init__(self, errortype, exception, skipsearch = False):\n\t\tself.errortype \t= errortype\n\t\tself.exception \t= exception\n\t\tself.skipsearch = skipsearch\n \n\tdef __writeBugReport(self):", "\tdef __init...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.5814, 0.0233, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 14, 0, 0.6279, 0.0233, 0, 0.66, 0.0833, 542, 3, 1, 0, 0, 45, 10, 1 ], [ 14, 0, 0.6512, 0.0233, 0, ...
[ "import os, sys", "current_path = os.path.realpath(__file__)", "basedir = os.path.dirname(os.path.realpath(__file__))", "sys.path.insert(0, basedir)", "os.chdir(basedir)", "WINDOW_TYPE = \"AbsynthMain\"", "ABOUT_DIALOG = \"AbsynthAbout\"", "APP_NAME = \"Absynth\"", "APP_VERSION = \"Alpha\"", "DATA...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.3247, 0.013, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3377, 0.013, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.3506, 0.013, 0, 0.66,...
[ "import sys, platform, conf", "import gtk", "import raiseError", "class HandleError:\n\t\n\tdef __init__(self, errortype, exception, skipsearch = False):\n\t\tself.errortype \t= errortype\n\t\tself.exception \t= exception\n\t\tself.skipsearch = skipsearch\n \n\tdef __writeBugReport(self):", "\tdef __init...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.5814, 0.0233, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 14, 0, 0.6279, 0.0233, 0, 0.66, 0.0833, 542, 3, 1, 0, 0, 45, 10, 1 ], [ 14, 0, 0.6512, 0.0233, 0, ...
[ "import os, sys", "current_path = os.path.realpath(__file__)", "basedir = os.path.dirname(os.path.realpath(__file__))", "sys.path.insert(0, basedir)", "os.chdir(basedir)", "WINDOW_TYPE = \"AbsynthMain\"", "ABOUT_DIALOG = \"AbsynthAbout\"", "APP_NAME = \"Absynth\"", "APP_VERSION = \"Alpha\"", "DATA...
# -*- coding: utf-8 -*- from xml.dom import minidom as XMLParser from xml import xpath #from xml.dom.ext.reader import Sax2 #import elementtree.ElementTree as elementTree from abcommon import HandleError class GenericXMLParser: def __init__(self, filename): self.filename = filename try: handler = open(self....
[ [ 1, 0, 0.0203, 0.0068, 0, 0.66, 0, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.027, 0.0068, 0, 0.66, 0.1667, 324, 0, 1, 0, 0, 324, 0, 0 ], [ 1, 0, 0.0473, 0.0068, 0, 0...
[ "from xml.dom import minidom as XMLParser", "from xml import xpath", "from abcommon import HandleError", "class GenericXMLParser:\n\t\n\tdef __init__(self, filename):\n\t\tself.filename = filename\n\t\ttry:\n\t\t\thandler = open(self.filename, \"r\")\n\t\t\toutput = handler.read()\n\t\texcept IOError:", "\t...
import InitializeProtocol class AbsynthConnect: def __init__(self, protocol): self.proxy = InitializeProtocol(protocol) def __getattr__(self, attr): return getattr(self.proxy, attr) if __name__ == "__main__": protocol = "HTTP" a = AbsynthConnect(protocol) a.grabURL(file = "fs"...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 880, 0, 1, 0, 0, 880, 0, 0 ], [ 3, 0, 0.4231, 0.4615, 0, 0.66, 0.5, 983, 0, 2, 0, 0, 0, 0, 2 ], [ 2, 1, 0.3462, 0.1538, 1, 0.95,...
[ "import InitializeProtocol", "class AbsynthConnect:\n def __init__(self, protocol):\n self.proxy = InitializeProtocol(protocol)\n \n def __getattr__(self, attr):\n return getattr(self.proxy, attr)", " def __init__(self, protocol):\n self.proxy = InitializeProtocol(protocol)", ...
import sys from exceptions import Exception class RaiseError: def __init__(self, error): self.error = error def search(self): self.__run = hasattr(sys.modules[self.__module__], "%sError" % self.error) \ and getattr(sys.modules[self.__module__], "%sError" % self.error) or DefaultError return self.__run ...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.1667, 63, 0, 1, 0, 0, 63, 0, 0 ], [ 3, 0, 0.3636, 0.4091, 0, 0....
[ "import sys", "from exceptions import Exception", "class RaiseError:\n\t\n\tdef __init__(self, error):\n\t\tself.error = error\n\t\t\n\tdef search(self):\n\t\tself.__run = hasattr(sys.modules[self.__module__], \"%sError\" % self.error) \\\n\t\t\tand getattr(sys.modules[self.__module__], \"%sError\" % self.error...
import gtk import sys, os, shutil, stat import time, datetime from engine import Widgets from lib import filesmime as mimetypes from abcommon import * import LocalView from lib.libftp import * class treeView(LocalView.treeView): _instance = None def __init__(self): LocalView.treeView.__init__(self) self.wid...
[ [ 1, 0, 0.0102, 0.0102, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0204, 0.0102, 0, 0.66, 0.0909, 509, 0, 4, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0306, 0.0102, 0, ...
[ "import gtk", "import sys, os, shutil, stat", "import time, datetime", "from engine import Widgets", "from lib import filesmime as mimetypes", "from abcommon import *", "import LocalView", "from lib.libftp import *", "class treeView(LocalView.treeView):\n\t_instance = None\n\t\n\tdef __init__(self):...
import gtk import conf from engine import Widgets, XMLtree from abcommon import * class UI(Widgets): def __init__(self,): Widgets.__init__(self) self.changeXMLtree("MenuSysTray") self.__widget = gtk.StatusIcon() self.__popupMenu = self.XMLtree.getWidget("MenuSysTray") self.__set("Absynth FTP", "gtk-net...
[ [ 1, 0, 0.0312, 0.0312, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0625, 0.0312, 0, 0.66, 0.25, 433, 0, 1, 0, 0, 433, 0, 0 ], [ 1, 0, 0.0938, 0.0312, 0, 0....
[ "import gtk", "import conf", "from engine import Widgets, XMLtree", "from abcommon import *", "class UI(Widgets):\n\t\n\tdef __init__(self,):\n\t\tWidgets.__init__(self)\n\t\t\n\t\tself.changeXMLtree(\"MenuSysTray\")\n\t\tself.__widget = gtk.StatusIcon()\n\t\tself.__popupMenu = self.XMLtree.getWidget(\"Menu...
import gtk from engine import Widgets class UI(Widgets): _instance = None def __init__(self): Widgets.__init__(self) self.__logView = self.XMLtree.getWidget("LogView") self.__buffer = gtk.TextBuffer(None) self.__logView.set_buffer(self.__buffer) self.write("Ciao :-)") def write(self, message): s...
[ [ 1, 0, 0.0625, 0.0625, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.125, 0.0625, 0, 0.66, 0.5, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 3, 0, 0.625, 0.8125, 0, 0.66, ...
[ "import gtk", "from engine import Widgets", "class UI(Widgets):\n\t_instance = None\n\t\n\tdef __init__(self):\n\t\tWidgets.__init__(self)\n\t\t\n\t\tself.__logView = self.XMLtree.getWidget(\"LogView\")\n\t\tself.__buffer = gtk.TextBuffer(None)", "\t_instance = None", "\tdef __init__(self):\n\t\tWidgets.__i...
import gtk, conf from engine import Widgets from abcommon import * class UI(Widgets): def __init__(self, *args): #super(UI, self).__init__() Widgets.__init__(self) self.changeXMLtree(conf.ABOUT_DIALOG) self.__widget = self.XMLtree.getWidget(conf.ABOUT_DIALOG) self.__set( icon = conf.DATA_DIR +"/img/...
[ [ 1, 0, 0.0333, 0.0333, 0, 0.66, 0, 166, 0, 2, 0, 0, 166, 0, 0 ], [ 1, 0, 0.0667, 0.0333, 0, 0.66, 0.3333, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 1, 0, 0.1, 0.0333, 0, 0.66, ...
[ "import gtk, conf", "from engine import Widgets", "from abcommon import *", "class UI(Widgets):\n\t\n\tdef __init__(self, *args):\n\t\t#super(UI, self).__init__()\n\t\tWidgets.__init__(self)\n\t\t\n\t\tself.changeXMLtree(conf.ABOUT_DIALOG)\n\t\tself.__widget = self.XMLtree.getWidget(conf.ABOUT_DIALOG)", "\t...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.3247, 0.013, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3377, 0.013, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.3506, 0.013, 0, 0.66,...
[ "import sys, platform, conf", "import gtk", "import raiseError", "class HandleError:\n\t\n\tdef __init__(self, errortype, exception, skipsearch = False):\n\t\tself.errortype \t= errortype\n\t\tself.exception \t= exception\n\t\tself.skipsearch = skipsearch\n \n\tdef __writeBugReport(self):", "\tdef __init...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.5814, 0.0233, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 14, 0, 0.6279, 0.0233, 0, 0.66, 0.0833, 542, 3, 1, 0, 0, 45, 10, 1 ], [ 14, 0, 0.6512, 0.0233, 0, ...
[ "import os, sys", "current_path = os.path.realpath(__file__)", "basedir = os.path.dirname(os.path.realpath(__file__))", "sys.path.insert(0, basedir)", "os.chdir(basedir)", "WINDOW_TYPE = \"AbsynthMain\"", "ABOUT_DIALOG = \"AbsynthAbout\"", "APP_NAME = \"Absynth\"", "APP_VERSION = \"Alpha\"", "DATA...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 7, 0, 0.5686, 0.098, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 1 ], [ 1, 1, 0.549, 0.0196, 1, 0.07, 0, 17, 0, 1, 0, 0, 17, 0, 0 ], [ 8, 1, 0.5686, 0.0196, 1, 0.07, 1, ...
[ "try:\n\timport psyco\n\tpsyco.full()\nexcept ImportError:\n\t\t \"You can get it at http://sourceforge.net/projects/psyco/.\"", "\timport psyco", "\tpsyco.full()", "\t\t \"You can get it at http://sourceforge.net/projects/psyco/.\"", "from widgets.engine import Absynth", "from widgets import AboutDialo...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.3247, 0.013, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.3377, 0.013, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.3506, 0.013, 0, 0.66,...
[ "import sys, platform, conf", "import gtk", "import raiseError", "class HandleError:\n\t\n\tdef __init__(self, errortype, exception, skipsearch = False):\n\t\tself.errortype \t= errortype\n\t\tself.exception \t= exception\n\t\tself.skipsearch = skipsearch\n \n\tdef __writeBugReport(self):", "\tdef __init...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 7, 0, 0.5686, 0.098, 0, 0.66, 0, 0, 0, 1, 0, 0, 0, 0, 1 ], [ 1, 1, 0.549, 0.0196, 1, 0.33, 0, 17, 0, 1, 0, 0, 17, 0, 0 ], [ 8, 1, 0.5686, 0.0196, 1, 0.33, 1, ...
[ "try:\n\timport psyco\n\tpsyco.full()\nexcept ImportError:\n\t\t \"You can get it at http://sourceforge.net/projects/psyco/.\"", "\timport psyco", "\tpsyco.full()", "\t\t \"You can get it at http://sourceforge.net/projects/psyco/.\"", "from widgets.engine import Absynth", "from widgets import AboutDialo...
#!/usr/bin/python # # absynth.py # Copyright (C) Nicola Bizzoca 2006 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006 <ekoes@users.sourceforge.net> # # Absynth is free software. # # You may redistribute it and/or modify it under the terms of the # GNU General Public License, as publis...
[ [ 1, 0, 0.5814, 0.0233, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 14, 0, 0.6279, 0.0233, 0, 0.66, 0.0833, 542, 3, 1, 0, 0, 45, 10, 1 ], [ 14, 0, 0.6512, 0.0233, 0, ...
[ "import os, sys", "current_path = os.path.realpath(__file__)", "basedir = os.path.dirname(os.path.realpath(__file__))", "sys.path.insert(0, basedir)", "os.chdir(basedir)", "WINDOW_TYPE = \"AbsynthMain\"", "ABOUT_DIALOG = \"AbsynthAbout\"", "APP_NAME = \"Absynth\"", "APP_VERSION = \"Alpha\"", "DATA...
# -*- coding: utf-8 -*- from xml.dom import minidom as XMLParser from xml import xpath #from xml.dom.ext.reader import Sax2 #import elementtree.ElementTree as elementTree from abcommon import HandleError class GenericXMLParser: def __init__(self, filename): self.filename = filename try: handler = open(self....
[ [ 1, 0, 0.0203, 0.0068, 0, 0.66, 0, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.027, 0.0068, 0, 0.66, 0.1667, 324, 0, 1, 0, 0, 324, 0, 0 ], [ 1, 0, 0.0473, 0.0068, 0, 0...
[ "from xml.dom import minidom as XMLParser", "from xml import xpath", "from abcommon import HandleError", "class GenericXMLParser:\n\t\n\tdef __init__(self, filename):\n\t\tself.filename = filename\n\t\ttry:\n\t\t\thandler = open(self.filename, \"r\")\n\t\t\toutput = handler.read()\n\t\texcept IOError:", "\t...
import InitializeProtocol class AbsynthConnect: def __init__(self, protocol): self.proxy = InitializeProtocol(protocol) def __getattr__(self, attr): return getattr(self.proxy, attr) if __name__ == "__main__": protocol = "HTTP" a = AbsynthConnect(protocol) a.grabURL(file = "fs"...
[ [ 1, 0, 0.0769, 0.0769, 0, 0.66, 0, 880, 0, 1, 0, 0, 880, 0, 0 ], [ 3, 0, 0.4231, 0.4615, 0, 0.66, 0.5, 983, 0, 2, 0, 0, 0, 0, 2 ], [ 2, 1, 0.3462, 0.1538, 1, 0.3, ...
[ "import InitializeProtocol", "class AbsynthConnect:\n def __init__(self, protocol):\n self.proxy = InitializeProtocol(protocol)\n \n def __getattr__(self, attr):\n return getattr(self.proxy, attr)", " def __init__(self, protocol):\n self.proxy = InitializeProtocol(protocol)", ...
from twisted.protocols.ftp import FTPClientBasic, FTPClient, FTPFileListProtocol from twisted.internet.protocol import ClientCreator from twisted.internet import reactor class FTPClass: def __init__(self, username, password, hostname): self.data = { "username": username, "passwor...
[ [ 1, 0, 0.0152, 0.0152, 0, 0.66, 0, 853, 0, 3, 0, 0, 853, 0, 0 ], [ 1, 0, 0.0303, 0.0152, 0, 0.66, 0.3333, 959, 0, 1, 0, 0, 959, 0, 0 ], [ 1, 0, 0.0455, 0.0152, 0, ...
[ "from twisted.protocols.ftp import FTPClientBasic, FTPClient, FTPFileListProtocol", "from twisted.internet.protocol import ClientCreator", "from twisted.internet import reactor", "class FTPClass:\n \n def __init__(self, username, password, hostname):\n self.data = {\n \"username\": userna...
import sys from exceptions import Exception class RaiseError: def __init__(self, error): self.error = error def search(self): self.__run = hasattr(sys.modules[self.__module__], "%sError" % self.error) \ and getattr(sys.modules[self.__module__], "%sError" % self.error) or DefaultError return self.__run ...
[ [ 1, 0, 0.0455, 0.0455, 0, 0.66, 0, 509, 0, 1, 0, 0, 509, 0, 0 ], [ 1, 0, 0.0909, 0.0455, 0, 0.66, 0.1667, 63, 0, 1, 0, 0, 63, 0, 0 ], [ 3, 0, 0.3636, 0.4091, 0, 0....
[ "import sys", "from exceptions import Exception", "class RaiseError:\n\t\n\tdef __init__(self, error):\n\t\tself.error = error\n\t\t\n\tdef search(self):\n\t\tself.__run = hasattr(sys.modules[self.__module__], \"%sError\" % self.error) \\\n\t\t\tand getattr(sys.modules[self.__module__], \"%sError\" % self.error...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.0594, 0.0031, 0, 0.66, 0, 166, 0, 3, 0, 0, 166, 0, 0 ], [ 3, 0, 0.1922, 0.2562, 0, 0.66, 0.2, 254, 0, 8, 0, 0, 0, 0, 17 ], [ 8, 1, 0.0719, 0.0031, 1, 0.64...
[ "import gtk, gobject, TreeView", "class genericPopupMenuFactory:\n \n \"\"\" Oh fuck, ItemFactory is deprecated :( \"\"\"\n \n def createMenu(self, items):\n self.accels = gtk.AccelGroup()\n self.factory = gtk.ItemFactory(gtk.Menu, \"<menu>\", self.accels)\n #self.__items = items"...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.0927, 0.0049, 0, 0.66, 0, 166, 0, 2, 0, 0, 166, 0, 0 ], [ 3, 0, 0.1098, 0.0195, 0, 0.66, 0.1667, 456, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.1146, 0.0098, 1, 0....
[ "import gtk, gobject", "class rowStore:\n \n def __init__(self, row, iter):\n self.row, self.iter = row, iter", " def __init__(self, row, iter):\n self.row, self.iter = row, iter", " self.row, self.iter = row, iter", "class colStore:\n \n def __init__(self, col, rend, mod...
# -*- coding: utf-8 -*- # Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the term...
[ [ 1, 0, 0.1481, 0.0074, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 3, 0, 0.3778, 0.437, 0, 0.66, 0.3333, 597, 0, 8, 0, 0, 0, 0, 19 ], [ 2, 1, 0.2259, 0.1037, 1, 0....
[ "import gtk", "class genericTextView:\n \n def __init__(self, features):\n self.__features = features\n self.widget = gtk.TextView()\n self.__buffer = self.widget.get_buffer()\n methods = {\n \"editable\" : \"set_editable\",", " def __init__(self, features):\n ...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
[ [ 1, 0, 0.1963, 0.0093, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.2056, 0.0093, 0, 0.66, 0.5, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 1, 0, 0.215, 0.0093, 0, 0.66,...
[ "import gtk", "from engine import Widgets", "import TreeView", "class dwCore:\n def __init__(self):\n self.connection = []\n self.instance = []\n \n def append_session(self, data):\n self.tree.addTreeRow([\n 'folder', None, None, data['name'], 0 ])", " def __i...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.0884, 0.0047, 0, 0.66, 0, 166, 0, 3, 0, 0, 166, 0, 0 ], [ 3, 0, 0.1047, 0.0186, 0, 0.66, 0.1429, 848, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.1093, 0.0093, 1, 0....
[ "import gtk, gobject, TreeViewNew", "class itemStore:\n \n def __init__(self, item, action):\n self.item, self.action = item, action", " def __init__(self, item, action):\n self.item, self.action = item, action", " self.item, self.action = item, action", "class radioGroupStore:...
import gtk class WidgetNode: _widgets = { "chrono": [], "IDs": {} } def __init__(self, widget, parent = None): self.widget = widget self.parent = parent self.children = self.getChildren() self.ID = self.__setID() try: self.parent...
[ [ 1, 0, 0.0063, 0.0063, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 3, 0, 0.3956, 0.7595, 0, 0.66, 0.3333, 440, 0, 13, 0, 0, 0, 0, 37 ], [ 14, 1, 0.0348, 0.0253, 1, ...
[ "import gtk", "class WidgetNode:\n _widgets = {\n \"chrono\": [],\n \"IDs\": {}\n }\n\n def __init__(self, widget, parent = None):\n self.widget = widget", " _widgets = {\n \"chrono\": [],\n \"IDs\": {}\n }", " def __init__(self, widget, p...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.0792, 0.0042, 0, 0.66, 0, 166, 0, 6, 0, 0, 166, 0, 0 ], [ 3, 0, 0.5375, 0.8958, 0, 0.66, 0.5, 320, 0, 10, 0, 0, 0, 0, 99 ], [ 2, 1, 0.1187, 0.0417, 1, 0.9...
[ "import gtk, TreeViewNew, PopupMenuNew, TextView, ToolBar, NoteBook", "class testSuite:\n \n def __init__(self):\n self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)\n self.__createFramework()\n \n self.window.show_all()", " def __init__(self):\n self.window = gtk.Window(g...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.1098, 0.0058, 0, 0.66, 0, 166, 0, 3, 0, 0, 166, 0, 0 ], [ 3, 0, 0.1301, 0.0231, 0, 0.66, 0.25, 198, 0, 1, 0, 0, 0, 0, 0 ], [ 2, 1, 0.1358, 0.0116, 1, 0.13...
[ "import gtk, TreeViewNew, TestSuite", "class pageStore:\n \n def __init__(self, page, widget, number):\n self.page, self.widget, self.number = page, widget, number", " def __init__(self, page, widget, number):\n self.page, self.widget, self.number = page, widget, number", " self....
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.1439, 0.0076, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.1515, 0.0076, 0, 0.66, 0.1111, 509, 0, 4, 0, 0, 509, 0, 0 ], [ 1, 0, 0.1591, 0.0076, 0, ...
[ "import gtk", "import sys, os, shutil, stat", "import time, datetime", "from engine import Widgets", "from lib import filesmime as mimetypes", "from abcommon import *", "import LocalView, TreeViewNew", "class treeViewPath(LocalView.treeViewPath):\n \n def __init__(self):\n LocalView.treeV...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.2794, 0.0147, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.2941, 0.0147, 0, 0.66, 0.3333, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 1, 0, 0.3088, 0.0147, 0, 0.66...
[ "import gtk", "from engine import Widgets", "import TreeView, DownloadView", "class UI(Widgets, DownloadView.dwCore):\n def __init__(self):\n DownloadView.dwCore.__init__(self)\n Widgets.__init__(self)\n self.notebook = self.XMLtree.getWidget(\"MiscBox\")\n \n self.tree =...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
[ [ 1, 0, 0.475, 0.025, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.5, 0.025, 0, 0.66, 0.3333, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 1, 0, 0.525, 0.025, 0, 0.66, 0....
[ "import gtk", "from engine import Widgets", "import NoteBook", "class UI(Widgets):\n\tdef __init__(self):\n\t Widgets.__init__(self)\n\t self.remoteBox = self.XMLtree.getWidget(\"hpaned1\")\n\t \n\t self.widget = NoteBook.genericNoteBook({\n\t\t\t\"show-border\" : False,\n\t\t\t\"show-tabs\"\t: True,...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.4043, 0.0213, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 3, 0, 0.7234, 0.5745, 0, 0.66, 1, 706, 0, 5, 0, 0, 0, 0, 11 ], [ 2, 1, 0.6064, 0.2553, 1, 0.85, ...
[ "import gtk", "class newSuite:\n \n def __init__(self, function):\n self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)\n if callable(function): \n object = function()\n \n self.window.set_default_size(800, 60)", " def __init__(self, function):\n self.window = gt...
global widgetSession import gtk import conf from engine import Widgets import PopupMenuNew class UI(Widgets): def __init__(self,): Widgets.__init__(self) self.__widget = gtk.StatusIcon() self.menu = PopupMenuNew.genericPopupMenu() self.__set("Absynth FTP", "gtk-network") ...
[ [ 1, 0, 0.0968, 0.0323, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.129, 0.0323, 0, 0.66, 0.5, 433, 0, 1, 0, 0, 433, 0, 0 ], [ 1, 0, 0.1613, 0.0323, 0, 0...
[ "import gtk", "import conf", "from engine import Widgets", "import PopupMenuNew", "class UI(Widgets):\n \n def __init__(self,):\n Widgets.__init__(self)\n self.__widget = gtk.StatusIcon()\n self.menu = PopupMenuNew.genericPopupMenu()\n self.__set(\"Absynth FTP\", \"gtk-netw...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.0905, 0.0048, 0, 0.66, 0, 166, 0, 2, 0, 0, 166, 0, 0 ], [ 3, 0, 0.419, 0.6238, 0, 0.66, 0.3333, 829, 0, 9, 0, 0, 0, 0, 51 ], [ 2, 1, 0.1238, 0.0143, 1, 0....
[ "import gtk, gobject", "class genericTreeView:\n \n def createTree(self, type, properties):\n self.widget = gtk.TreeView()\n self.__properties, self.__type = properties, type\n \n def setColumns(self, headers):", " def createTree(self, type, properties):\n self.widget = g...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
[ [ 1, 0, 0.4872, 0.0256, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.5128, 0.0256, 0, 0.66, 0.3333, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 1, 0, 0.5385, 0.0256, 0, 0.66...
[ "import gtk", "from engine import Widgets", "import conf", "class UI(Widgets):\n def __init__(self):\n Widgets.__init__(self)\n self.tabLabel = 'Benvenuti in Absynth-FTP!'\n self.label = gtk.Label(self.tabLabel)\n logo = gtk.Image()\n logo.set_from_file(conf.DATA_DIR +'/i...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
[ [ 1, 0, 0.5758, 0.0303, 0, 0.66, 0, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.6061, 0.0303, 0, 0.66, 0.5, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 3, 0, 0.8333, 0.3636, 0, 0.66, ...
[ "import gtk", "from engine import Widgets", "class UI(Widgets):\n\t\n\tdef __init__(self):\n\t\tWidgets.__init__(self)\n\t\tself.__buffer = gtk.TextBuffer(None)\n\t\tself.__logView = self.XMLtree.getWidget(\"LogView\")\n\t\tself.__logView.set_buffer(self.__buffer)", "\tdef __init__(self):\n\t\tWidgets.__init_...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.3958, 0.0208, 0, 0.66, 0, 166, 0, 2, 0, 0, 166, 0, 0 ], [ 1, 0, 0.4167, 0.0208, 0, 0.66, 0.3333, 3, 0, 1, 0, 0, 3, 0, 0 ], [ 1, 0, 0.4375, 0.0208, 0, 0.66...
[ "import gtk, conf", "from engine import Widgets", "from abcommon import *", "class UI(Widgets):\n\t\n\tdef __init__(self, *args):\n\t\t#super(UI, self).__init__()\n\t\tWidgets.__init__(self)\n\t\t\n\t\tself.changeXMLtree(conf.ABOUT_DIALOG)\n\t\tself.__widget = self.XMLtree.getWidget(conf.ABOUT_DIALOG)", "\t...
#!/usr/bin/python # # Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of...
[ [ 1, 0, 0.5091, 0.0182, 0, 0.66, 0, 55, 0, 1, 0, 0, 55, 0, 0 ], [ 1, 0, 0.5273, 0.0182, 0, 0.66, 0.0667, 26, 0, 1, 0, 0, 26, 0, 0 ], [ 1, 0, 0.5455, 0.0182, 0, 0.66...
[ "from widgetsGtk.engine import Absynth", "from widgetsGtk import AboutDialog", "from widgetsGtk import MainWindow", "from widgetsGtk import LocalView", "from widgetsGtk import RemoteView", "from widgetsGtk import DownloadView", "from widgetsGtk import UploadView", "from widgetsGtk import LogView", "...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.2676, 0.0141, 0, 0.66, 0, 509, 0, 3, 0, 0, 509, 0, 0 ], [ 1, 0, 0.2817, 0.0141, 0, 0.66, 0.25, 166, 0, 1, 0, 0, 166, 0, 0 ], [ 1, 0, 0.2958, 0.0141, 0, 0....
[ "import sys, platform, conf", "import gtk", "import raiseError", "class HandleError:\n\t\n\tdef __init__(self, errortype, exception, skipsearch = False):\n\t\tself.errortype \t= errortype\n\t\tself.exception \t= exception\n\t\tself.skipsearch = skipsearch\n \n\tdef __writeBugReport(self):", "\tdef __init...
#!/usr/bin/python # # Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of...
[ [ 1, 0, 0.5091, 0.0182, 0, 0.66, 0, 55, 0, 1, 0, 0, 55, 0, 0 ], [ 1, 0, 0.5273, 0.0182, 0, 0.66, 0.0667, 26, 0, 1, 0, 0, 26, 0, 0 ], [ 1, 0, 0.5455, 0.0182, 0, 0.66...
[ "from widgetsGtk.engine import Absynth", "from widgetsGtk import AboutDialog", "from widgetsGtk import MainWindow", "from widgetsGtk import LocalView", "from widgetsGtk import RemoteView", "from widgetsGtk import DownloadView", "from widgetsGtk import UploadView", "from widgetsGtk import LogView", "...
# Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU General Pub...
[ [ 1, 0, 0.3725, 0.0196, 0, 0.66, 0, 688, 0, 2, 0, 0, 688, 0, 0 ], [ 1, 0, 0.3922, 0.0196, 0, 0.66, 0.0667, 272, 0, 1, 0, 0, 272, 0, 0 ], [ 3, 0, 0.5392, 0.2353, 0, ...
[ "import os, sys", "import ConfigParser", "class Config:\n def __init__(self):\n self.infile = 'absynth.ini'\n self.option = {}\n self.config = ConfigParser.ConfigParser()\n self.infile = open(self.infile)\n self.config.readfp(self.infile)\n self.infile.close()", " ...
# -*- coding: utf-8 -*- from xml.dom import minidom as XMLParser from xml import xpath #from xml.dom.ext.reader import Sax2 #import elementtree.ElementTree as elementTree from abcommon import HandleError class GenericXMLParser: def __init__(self, filename): self.filename = filename try: handler = open(self....
[ [ 1, 0, 0.0203, 0.0068, 0, 0.66, 0, 290, 0, 1, 0, 0, 290, 0, 0 ], [ 1, 0, 0.027, 0.0068, 0, 0.66, 0.1667, 324, 0, 1, 0, 0, 324, 0, 0 ], [ 1, 0, 0.0473, 0.0068, 0, 0...
[ "from xml.dom import minidom as XMLParser", "from xml import xpath", "from abcommon import HandleError", "class GenericXMLParser:\n\t\n\tdef __init__(self, filename):\n\t\tself.filename = filename\n\t\ttry:\n\t\t\thandler = open(self.filename, \"r\")\n\t\t\toutput = handler.read()\n\t\texcept IOError:", "\t...
#!/usr/bin/python # # Copyright (C) Nicola Bizzoca 2006/2007 <hannibal_smith@users.sourceforge.net> # Copyright (C) Simone Economo 2006/2007 <ekoes@users.sourceforge.net> # # This file is part of Absynth-FTP. # # Absynth-FTP is free software; you can redistribute it and/or modify # it under the terms of the GNU ...
[ [ 1, 0, 0.35, 0.0167, 0, 0.66, 0, 367, 0, 1, 0, 0, 367, 0, 0 ], [ 3, 0, 0.6833, 0.6167, 0, 0.66, 1, 979, 0, 3, 0, 0, 0, 0, 8 ], [ 14, 1, 0.4167, 0.0167, 1, 0.93, ...
[ "import gconf", "class Config:\n\t\n\tclient_dir = \"/apps/absynth-ftp/\"\n\t\n\tdef __init__(self):\n\t\tself.client = gconf.client_get_default()\n\t\tself.client.add_dir (self.client_dir, gconf.CLIENT_PRELOAD_NONE)\n\t\tself._setFunction = { bool : self.client.set_bool,", "\tclient_dir = \"/apps/absynth-ftp/\...