code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Изменить" - необязательное выражение вида "field1=\'новое значение\'". Результаты операции JOIN нельзя изменить или удалить.',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"Uaktualnij" jest dodatkowym wyrażeniem postaci "pole1=\'nowawartość\'". Nie możesz uaktualnić lub usunąć wyników z JOIN:',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" è un\'espressione opzionale come "campo1=\'nuovo valore\'". Non si può fare "update" o "delete" dei risultati di un JOIN ',
'%Y-%m-%d': '%d/%m/%Y',
'%Y-%m-%d %H:%M:%S': '%d/%m/%... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression optionnelle comme "champ1=\'nouvellevaleur\'". Vous ne pouvez mettre à jour ou supprimer les résultats d\'un JOIN',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "field1=\'newvalue\'". Não pode actualizar ou eliminar os resultados de um JOIN',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%Y-%m-%d': '%Y.%m.%d.',
'%Y-%m-%d %H:%M:%S': '%Y.%m.%d. %H:%M:%S',
'%s... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "campo1=\'novovalor\'". Você não pode atualizar ou apagar os resultados de um JOIN',
'%Y-%m-%d': '%d-%m-%Y',
'%Y-%m-%d %H:%M:%S': '%d-%m-%Y %H:%M:%... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" je voliteľný výraz ako "field1=\'newvalue\'". Nemôžete upravovať alebo zmazať výsledky JOINu',
'%Y-%m-%d': '%d.%m.%Y',
'%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M:%S',
'%s rows deleted... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" est une expression optionnelle comme "champ1=\'nouvellevaleur\'". Vous ne pouvez mettre à jour ou supprimer les résultats d\'un JOIN',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"更新" 是選擇性的條件式, 格式就像 "欄位1=\'值\'". 但是 JOIN 的資料不可以使用 update 或是 delete"',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',
'%s rows deleted': '已刪除 %s 筆',
'%s rows updated': ... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" é uma expressão opcional como "field1=\'newvalue\'". Não pode actualizar ou eliminar os resultados de um JOIN',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S',... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN',
'%Y-%m-%d': '%Y.%m.%d.',
'%Y-%m-%d %H:%M:%S': '%Y.%m.%d. %H:%M:%S',
'%s... | Python |
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" je voliteľný výraz ako "field1=\'newvalue\'". Nemôžete upravovať alebo zmazať výsledky JOINu',
'%Y-%m-%d': '%d.%m.%Y',
'%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M:%S',
'%s rows deleted... | Python |
plugin_uc_language_admin_created = True
plugin_uc_language_version = 1.0plugin_uc_language_admin_created = True
plugin_uc_language_version = 1.0 | Python |
# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################
response.titl... | Python |
# This code was lifted and modified from the instant-press application by Pablo Martin.
# Code modification where made by Christopher Steel of Voice of Access and remain:
# License: GPL, General Public License v.2
#
# Here is Pablo's header from the original code.
#
# -*- coding: utf-8 -*-
# Instant Press, site that wo... | Python |
# This code was lifted from the instant-press application by Pablo Martin.
# Mucho hackyness modification where made by Christopher Steel of Voice of Access.
# Please address any issues with this application to Christopher.Steel@VoiceOfAcess.org
#
# The code remains:
# License: GPL, General Public License v.2
#
# Here ... | Python |
# coding: utf8
# plugin_flatpages/menu_0_response_menu_5_flatpages.py
application_controller = APPLICATION_CONTROLER
response.menu+=[
# (T('flatpages'), False, URL(request.application,T('plugin_flatpages'),'index#content'),
(T('flatpages'), False, URL(request.application,application_controller,'index'),
[
(... | Python |
# -*- coding: utf-8 -*-
# Adapted by Christopher Steel of Voice of Access as automated admin user creater.
# Original liscense:
# Instant Press, site that work out the box. Blog system for Web2py Framework
# Site: http://www.instant2press.com
# Site: http://code.google.com/p/instant-press/
# Copyright (c) 2010- Mulo... | Python |
# coding: utf8
#########################################################################
## this is the main application menu add/remove items as required
#########################################################################
response.menu_developer = [
(T('Developer'), False, URL('default','index'), [])
]
... | Python |
# -*- coding: utf-8 -*-
#########################################################################
## This scaffolding model makes your app work on Google App Engine too
## File is released under public domain and you can use without limitations
#########################################################################
... | Python |
from gluon.contrib.markdown import WIKI
#from gluon.contrib.markdown import MARKMIN
FLATPAGE_VIEW = 'plugin_flatpages.html'
if session._language is None:
session._language = 'en'
import os
cwd = os.getcwd()
format=MARKMIN
plugin_name = 'plugin_flatpages'
PLUGIN_NAME = APPLICATION_CONTROLER = 'plugin_flatpages'
db... | Python |
# coding: utf8
response.menu = [
(T('Home'), False, URL('default','index'), [])
]
response.menu += [
(T('About Us'), False, URL('default','about_us'), [])
]
response.menu += [
(T('Products'), False, URL('default','products'), [])
]
response.menu += [
(T('Services'), False, URL('default','services'),... | Python |
# coding: utf8
import os
##################
# change language
# languages that don't need translation:
#
T.current_languages = ['en', 'en-en', 'en-ca']
# select user specified _languageuage (via args, session or browser config)
#
if '_language' in request.vars:
session._language = _language = request.vars._langua... | Python |
##################################
# debug user group and membership
#
debug_ensure_users = False
debug_ensure_group = False
debug_ensure_membership = False
debug_ensure_user_group_and_membership = False
##############
# Ensure User
#
def _ensure_user(first_name,l... | Python |
# coding: utf8
# try something like
def index(): return dict(message="hello from plugin_flatpages/menu_0_response_menu_5_flatpages.py") | Python |
# coding: utf8
# coding: utf8
import os
cwd = os.getcwd()
format=MARKMIN
#def index():
# response.content_title = T('Language Menu')
# response.content_subtitle = T('Change the sites displayed language')
#
# return dict(message='testing 123')
def index(): return plugin_flatpage()
def about():
"""
... | Python |
# -*- coding: utf-8 -*-
# ##########################################################
# ## make sure administrator is on localhost
# ###########################################################
import os
import socket
import datetime
import copy
import gluon.contenttype
import gluon.fileutils
# ## critical --- make a ... | Python |
# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## This is a samples controller
## - index is the default action of any application
## - user is required for authentication and authorizatio... | Python |
# coding: utf8
def index(): return dict(message="hello from plugin_uc_admin.py")
def failed_authorization():
if len(request.args):
message=str(request.args[0])
else:
message=T("not authorized")
return dict(message=message)
| Python |
#!/usr/bin/env python
#
# Copyright 2006, 2007 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
... | Python |
#!/bin/env python
import subprocess
tags = map(lambda x: x.strip(), subprocess.Popen(['git', 'tag', '-l'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].splitlines())
upper = len(tags) - 1
for i in xrange(upper, -1, -1):
if i == upper:
first = tags[i]
last = ''
m = 'AFTER %s' % tags... | Python |
'''
Created on 2013-05-19
@author: nein
'''
print 'hello' | Python |
'''
Created on 25 02 2013
@author: nein
requirements:
- PyGame http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
- NumPy http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
'''
import pygame
from functools import partial
#from pool import ThreadPool
from multiprocessing import Pool, Manager
from Qu... | Python |
'''
Created on 2013-02-26
taken form http://code.activestate.com/recipes/577187-python-thread-pool/
'''
from Queue import Queue
from threading import Thread
class Worker(Thread):
"""Thread executing tasks from a given tasks queue"""
def __init__(self, tasks):
Thread.__init__(self)
... | Python |
'''
Created on 2013-02-27
@author: nein
'''
from multiprocessing import Process, Queue
def f(q):
q.put([42, None, 'hello'])
if __name__ == '__main__':
q = Queue()
p = Process(target=f, args=(q,))
p.start()
print q.get() # prints "[42, None, 'hello']"
p.join() | Python |
import random
import itertools
import copy
import operator
import numpy
import gameController as GC
from gameController import Actions
def fieldStdDev(field):
return numpy.std( [v for v in (row for row in field.cells)] )
class FineBot:
def __init__(self):
self.gen = random.Random()
self.ge... | Python |
import random
import itertools
import copy
import operator
import gameController as GC
from gameController import Actions
class RandomBot:
def __init__(self):
self.gen = random.Random()
self.gen.seed()
def decide(self, field):
return self.gen.choice([Actions.UP, Actions.DOWN, Actions.... | Python |
import random
import itertools
class Field:
def __init__(self, size=4):
self.size = size
self.cells = [[0] * size for _ in range(size)]
def __str__(self):
out = ''
for row in self.cells:
for cell in row:
out += ('%4d, ' % cell)
out += '\b\b\n'
return out
... | Python |
import sys
import random
import copy
import numpy
import gameController as GC
from gameController import Field
from badBots import RandomBot, MinimizeBot, MaxScoreBot
from fineBot import FineBot
def testBot(count, bot):
print 'goind to play %d games with bot %s' % (count, bot)
results = []
for ... | Python |
import re
import util
def smita(reader):
data = {}
headers = reader.next()
for row in reader:
for entry, header in zip(row, headers):
if entry == '':
continue
m = re.match(r'[0-9]+: Sample_([^ ]+) ([^0-9]+)([0-9]+)\.fcs', entry)
if m:
... | Python |
from Foundation import *
from AppKit import *
import csv
import itertools
import util
# from google.appengine.ext.webapp import template
def join(ctl, filename):
out = csv.writer(open(filename, 'w'))
for record in ctl.correlations():
for x, row in zip(record['nodes'], record['matrix']):
o... | Python |
import math
import util
def pearson(data):
correl = []
for state, results in data.iteritems():
nodes = results.keys()
mfis = results.values()
stdev = [math.sqrt(util.var(res)) for res in mfis]
matrix = []
for sx, x in zip(stdev, mfis):
row = []
fo... | Python |
import objc
import Foundation
import AppKit
from PyObjCTools import AppHelper
# import modules containing classes required to start application and load MainMenu.nib
import FlowJo_CorrelationAppDelegate
# pass control to AppKit
AppHelper.runEventLoop()
| Python |
import itertools
def avg(x):
return sum(x)/(len(x) or 1)
def cov(x, y):
return avg([p * q for p, q in zip(x, y)]) - avg(x) * avg(y)
def var(x):
return cov(x, x)
def with_counter(x):
return itertools.izip(itertools.count(), x)
def ranks(x):
pairs = sorted(itertools.izip(x, itertools.count()))
... | Python |
from Foundation import *
from AppKit import *
import objc
import csv
import sys
import correlate
import readers
import writers
class FlowJo_CorrelationAppDelegate(NSObject):
inputFile = objc.ivar(u'inputFile')
format = objc.ivar(u'format')
correlator = objc.ivar(u'correlator')
threshold = objc.ivar(u... | Python |
# Copyright (C) 2010 Punyashloka Biswal, Smita Gopinath, Drew Hotson.
import csv, sys
import os, os.path
from itertools import combinations
experiments = [
(os.path.splitext(os.path.basename(fn))[0], float(sig), float(trend),
dict(((x, y), float(c)) for (x, y, c) in
(row[-3:] for row in cs... | Python |
from distutils.core import setup, Extension
import os, sys
setup(name="flud",
version="0.1.0",
description="flud decentralized backup",
long_description='a 100% decentralized backup system',
author="Alen Peacock",
author_email="apeacock@flud.org",
url='http://flud.org',
license='GPLv3 (c)2004-2007 Alen... | Python |
"""
FludCrypto.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
Provides FludRSA (an enhanced RSA.RSAobj), as well as convenience functions
for creating hashes, finding hash collisions, etc.
"""
import binascii
import operator
import s... | Python |
"""
FludServer.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
flud server operations
"""
import threading, binascii, time, os, stat, httplib, gc, re, sys, logging, sets
from twisted.web import server, resource, client
from twisted.we... | Python |
"""
LocalPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Protocol for talking to a flud node locally (from client code -- command line,
GUI, etc).
Each command in the local protocol begins with 4 bytes designating the type ... | Python |
#!/usr/bin/python
"""
LocalClient.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
LocalClient provides client functions which can be called to send commands to
a local FludNode instance.
"""
import sys, os, time
from twisted.internet.... | Python |
"""
ServerDHTPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Primitive server DHT protocol
"""
import binascii, time, os, stat, httplib, gc, re, sys, logging, random, sets
from twisted.web.resource import Resource
from twis... | Python |
#!/usr/bin/python
"""
LocalClient.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
LocalClient provides client functions which can be called to send commands to
a local FludNode instance.
"""
import sys, os, time
from twisted.internet.... | Python |
"""
ConnectionQueue, (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
This module manages the connection queue. In order to reduce the
probability of the reactor getting tied up servicing requests/responses
during periods of extreme busy... | Python |
"""
ClientPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Primitive client storage protocol
"""
from twisted.web import http, client
from twisted.internet import reactor, threads, defer, error
from twisted.python import fai... | Python |
"""
FludClient.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
flud client ops.
"""
from twisted.web import client
from twisted.internet import error
import os, stat, httplib, sys, logging
from ClientPrimitives import *
from ClientD... | Python |
"""
ServerPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Primitive server storage protocol
"""
import binascii, time, os, stat, httplib, gc, re, sys, logging, sets
import tempfile, tarfile
from StringIO import StringIO
fro... | Python |
"""
FludCommUtil.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
Communications routines used by both client and server code.
"""
from twisted.web import client
from twisted.internet import reactor, defer
from twisted.python import fai... | Python |
"""
ClientDHTPrimitives.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Primitive client DHT protocol
"""
import time, os, stat, httplib, sys, random, logging
from twisted.web import http, client
from twisted.internet import reactor, t... | Python |
"""
FludkRouting.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
Implements kademlia-style kbuckets (the routing table for the DHT layer).
Although this is not a derivative of Khashmir (written by Andrew Loewenstern,
Aaron Swartz, et.... | Python |
import zfec
import zfec.easyfec as easyfec
import zfec.filefec as filefec
from util import fileutil
from util.mathutil import log_ceil
import array, os, re, struct, traceback
FORMAT_FORMAT = "%%s.%%0%dd_%%0%dd%%s"
RE_FORMAT = "%s.[0-9]+_[0-9]+%s"
def encode_to_files(inf, fsize, dirname, prefix, k, m, suffix=".fec", o... | Python |
from twisted.python import failure
from twisted.internet import defer
"""
FludDefer.py (c) 2003-2006 Alen Peacock. This program is distributed under the
terms of the GNU General Public License (the GPL), version 3.
"""
class ErrDeferredList(defer.DeferredList):
"""
ErrDeferredList acts just like DeferredList, exc... | Python |
#!/usr/bin/python
"""
FludNode.py (c) 2003-2006 Alen Peacock. This program is distributed under the
terms of the GNU General Public License (the GPL), verison 3.
FludNode is the process that runs to talk with other nodes in the flud backup network.
"""
from twisted.internet import reactor, defer
import threading, s... | Python |
"""
CheckboxState.py, (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
CheckboxState represents the states which a checkbox in DirCtrl can take
"""
class CheckboxState:
(UNSELECTED, SELECTED, SELECTEDCHILD, SELECTEDPARENT, EXCLUDED,
... | Python |
class FludException(Exception):
pass
| Python |
#!/usr/bin/python
"""
FludTestGauges.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Provides gauges for visualizing storage for multiple flud nodes running on
the same host. This is really only useful for demos and testing.
"""
impo... | Python |
import os, stat, sys, tarfile, tempfile
import gzip
from flud.FludCrypto import hashstream
from flud.fencode import fencode
"""
TarfileUtils.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
Provides additional tarfile functionality (d... | Python |
#!/usr/bin/python
"""
FludNode.py (c) 2003-2006 Alen Peacock. This program is distributed under the
terms of the GNU General Public License (the GPL), verison 3.
FludNode is the process that runs to talk with other nodes in the flud backup network.
"""
from twisted.internet import reactor, defer
import threading, s... | Python |
#!/usr/bin/python
"""
FludScheduler.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), verison 3.
FludScheduler is the process monitors files for changes, and then tells flud to
back them up.
"""
import sys, os, time, stat
from twisted.internet im... | Python |
#!/usr/bin/python
"""
FludLocalClient.py, (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
FludLocalClient provides a command-line client for interacting with FludNode.
"""
import sys, os, time
from twisted.internet import reactor
from ... | Python |
#!/usr/bin/python
"""
FludClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
FludClient provides a GUI Client for interacting with FludNode.
"""
#from twisted.internet import wxreactor
#wxreactor.install()
import sys, os, strin... | Python |
#!/usr/bin/python
"""
FludTestGauges.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Provides gauges for visualizing storage for multiple flud nodes running on
the same host. This is really only useful for demos and testing.
"""
impo... | Python |
#!/usr/bin/python
"""
FludNode.tac (c) 2003-2006 Alen Peacock. This program is distributed under the
terms of the GNU General Public License (the GPL).
This is the application file used by twistd to daemonize FludNode.
"""
import os
from twisted.application import service, internet
import flud.FludNode
from flud.pr... | Python |
import base64
"""
fencode.py (c) 2003-2006 Alen Peacock. This program is distributed under the
terms of the GNU General Public License (the GPL), version 3.
Provides efficient urlsafe base64 encoding of python types (int, long, string,
None, dict, tuple, list) -- in the same vein as BitTorrent's bencode or MNet's
me... | Python |
# XXX: this class goes away
class Reputation:
"""
Each node maintains a list of reputation
objects corresponding to reputations of other nodes. Reputations may be
self-generated (in which case the originator is this node itself), or may
be relayed (in which case some other node is the originator).
Self-gene... | Python |
#!/usr/bin/python
"""
FludLocalClient.py, (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
FludLocalClient provides a command-line client for interacting with FludNode.
"""
import sys, os, time
from twisted.internet import reactor
from ... | Python |
import urlparse, os, types
from twisted.web import client
from twisted.internet import reactor, defer
from twisted.python import failure
"""
HTTPMultipartDownloader.py (c) 2003-2006 Alen Peacock. This program is
distributed under the terms of the GNU General Public License (the GPL),
version 3.
HTTPMultipartDownloa... | Python |
#!/usr/bin/python
"""
FludClient.py, (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
FludClient provides a GUI Client for interacting with FludNode.
"""
#from twisted.internet import wxreactor
#wxreactor.install()
import sys, os, strin... | Python |
"""
FludConfig.py, (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
manages configuration file for flud backup.
"""
import os, sys, socket, re, logging
import ConfigParser
import flud.FludCrypto as FludCrypto
from flud.FludCrypto import ... | Python |
#!/usr/bin/python
"""
FludNode.tac (c) 2003-2006 Alen Peacock. This program is distributed under the
terms of the GNU General Public License (the GPL).
This is the application file used by twistd to daemonize FludNode.
"""
import os
from twisted.application import service, internet
import flud.FludNode
from flud.pr... | Python |
#!/usr/bin/python
"""
FludScheduler.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), verison 3.
FludScheduler is the process monitors files for changes, and then tells flud to
back them up.
"""
import sys, os, time, stat
from twisted.internet im... | Python |
"""
FludFileOperations.py (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
Implements file storage and retrieval operations using flud primitives.
"""
import os, stat, sys, logging, binascii, random, time
from zlib import crc32
from Strin... | Python |
"""
Okay, so this isn't a real python module, yet. Wanted to get down a few ideas
on versioning. First, the background.
Traditional backup systems that provide versioning support allow the user to
retrieve the current version of a file, or any of N previous versions that were
stored during previous backup operatio... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket
from twisted.python import failure
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from flud.protocol.FludClient import FludClient
from flud.protocol.FludCommUtil im... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket, shutil, tempfile
from binascii import crc32
from StringIO import StringIO
from twisted.python import failure
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from fl... | Python |
#!/usr/bin/python
"""
FludFileOpTest.py, (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
System tests for FludFileOperations
"""
import sys, os, time, logging, tempfile, shutil
from twisted.internet import reactor
sys.path.append(os.p... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket, tempfile
from twisted.python import failure
from StringIO import StringIO
from zlib import crc32
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from flud.protocol.... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket
from twisted.python import failure
from twisted.internet import defer
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from flud.protocol.FludClient import FludClient... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket
from twisted.python import failure
from twisted.internet import defer
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from flud.protocol.FludClient import FludClient... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket, shutil, tempfile
from binascii import crc32
from StringIO import StringIO
from twisted.python import failure
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from fl... | Python |
#!/usr/bin/python
"""
FludFileOpTest.py, (c) 2003-2006 Alen Peacock. This program is distributed
under the terms of the GNU General Public License (the GPL), version 3.
System tests for FludFileOperations
"""
import sys, os, time, logging, tempfile, shutil
from twisted.internet import reactor
sys.path.append(os.p... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket
from twisted.python import failure
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from flud.protocol.FludClient import FludClient
from flud.protocol.FludCommUtil im... | Python |
#!/usr/bin/python
import tarfile, tempfile, random, os, sys
import gzip
from Crypto.Hash import SHA256
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.fencode import fencode
import flud.TarfileUtils as TarfileUtils
def maketarball(numfiles, avgsize, hashnames... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket
from twisted.python import failure
from twisted.internet import defer
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
import flud.FludCrypto
from flud.FludNode import FludNode
from flud.protocol.FludC... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket, tempfile
from twisted.python import failure
from StringIO import StringIO
from zlib import crc32
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.FludNode import FludNode
from flud.protocol.... | Python |
#!/usr/bin/python
import time, os, stat, random, sys, logging, socket
from twisted.python import failure
from twisted.internet import defer
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
import flud.FludCrypto
from flud.FludNode import FludNode
from flud.protocol.FludC... | Python |
#!/usr/bin/python
import tarfile, tempfile, random, os, sys
import gzip
from Crypto.Hash import SHA256
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(
os.path.abspath(__file__)))))
from flud.fencode import fencode
import flud.TarfileUtils as TarfileUtils
def maketarball(numfiles, avgsize, hashnames... | Python |
from distutils.core import setup, Extension
import os, sys
setup(name="flud",
version="0.1.0",
description="flud decentralized backup",
long_description='a 100% decentralized backup system',
author="Alen Peacock",
author_email="apeacock@flud.org",
url='http://flud.org',
license='GPLv3 (c)2004-2007 Alen... | Python |
"""
FludCrypto.py (c) 2003-2006 Alen Peacock. This program is distributed under
the terms of the GNU General Public License (the GPL), version 3.
Provides FludRSA (an enhanced RSA.RSAobj), as well as convenience functions
for creating hashes, finding hash collisions, etc.
"""
import binascii
import operator
import s... | Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.