Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(40)  |  Call(25)  |  Derive(0)  |  Import(15)

src/b/i/BitTornado-HEAD/BitTornado/BT1/Uploader.py   BitTornado(Download)
from BitTornado.CurrentRateMeasure import Measure
 
 
class Upload:
    def __init__(self, connection, ratelimiter, totalup, choker, storage,
        self.super_seeding = False
        self.buffer = []
        self.measure = Measure(config['max_rate_period'],
                               config['upload_rate_fudge'])
        self.was_ever_interested = False

src/o/w/OwnTube-HEAD/videoportal/BitTornadoABC/BitTornado/BT1/Uploader.py   OwnTube(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
 
        self.super_seeding = False
        self.buffer = []
        self.measure = Measure(config['max_rate_period'], config['upload_rate_fudge'])
        self.was_ever_interested = False
        if storage.get_amount_left() == 0:

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/BT1/Uploader.py   FriendlyTorrent(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
 
        self.super_seeding = False
        self.buffer = []
        self.measure = Measure(config['max_rate_period'], config['upload_rate_fudge'])
        self.was_ever_interested = False
        if storage.get_amount_left() == 0:

src/h/e/Herd-HEAD/BitTornado/BT1/Uploader.py   Herd(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
 
        self.super_seeding = False
        self.buffer = []
        self.measure = Measure(config['max_rate_period'], config['upload_rate_fudge'])
        self.was_ever_interested = False
        if storage.get_amount_left() == 0:

src/s/w/swarm-HEAD/BitTornado/BT1/Uploader.py   swarm(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
 
        self.super_seeding = False
        self.buffer = []
        self.measure = Measure(config['max_rate_period'], config['upload_rate_fudge'])
        self.was_ever_interested = False
        if storage.get_amount_left() == 0:

src/o/w/OwnTube-HEAD/videoportal/BitTornadoABC/BitTornado/BT1/Downloader.py   OwnTube(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
from BitTornado.bitfield import Bitfield
        self.interested = False
        self.active_requests = []
        self.measure = Measure(downloader.max_rate_period)
        self.peermeasure = Measure(downloader.max_rate_period)
        self.have = Bitfield(downloader.numpieces)
        self.max_rate_period = max_rate_period
        self.measurefunc = measurefunc
        self.totalmeasure = Measure(max_rate_period*storage.piece_length/storage.request_size)
        self.numpieces = numpieces
        self.chunksize = chunksize

src/f/r/FriendlyTorrent-HEAD/src/tornado/BitTornado/BT1/Downloader.py   FriendlyTorrent(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
from BitTornado.bitfield import Bitfield
        self.interested = False
        self.active_requests = []
        self.measure = Measure(downloader.max_rate_period)
        self.peermeasure = Measure(downloader.max_rate_period)
        self.have = Bitfield(downloader.numpieces)
        self.max_rate_period = max_rate_period
        self.measurefunc = measurefunc
        self.totalmeasure = Measure(max_rate_period*storage.piece_length/storage.request_size)
        self.numpieces = numpieces
        self.chunksize = chunksize

src/h/e/Herd-HEAD/BitTornado/BT1/Downloader.py   Herd(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
from BitTornado.bitfield import Bitfield
        self.interested = False
        self.active_requests = []
        self.measure = Measure(downloader.max_rate_period)
        self.peermeasure = Measure(downloader.max_rate_period)
        self.have = Bitfield(downloader.numpieces)
        self.max_rate_period = max_rate_period
        self.measurefunc = measurefunc
        self.totalmeasure = Measure(max_rate_period*storage.piece_length/storage.request_size)
        self.numpieces = numpieces
        self.chunksize = chunksize

src/b/i/BitTornado-HEAD/BitTornado/BT1/Downloader.py   BitTornado(Download)
import random
from BitTornado.CurrentRateMeasure import Measure
from BitTornado.bitfield import Bitfield
from BitTornado.clock import clock
 
        self.interested = False
        self.active_requests = []
        self.measure = Measure(downloader.max_rate_period)
        self.peermeasure = Measure(downloader.max_rate_period)
        self.have = Bitfield(downloader.numpieces)
        self.max_rate_period = max_rate_period
        self.measurefunc = measurefunc
        self.totalmeasure = Measure(max_rate_period * storage.piece_length /
                                    storage.request_size)
        self.numpieces = numpieces

src/s/w/swarm-HEAD/BitTornado/BT1/Downloader.py   swarm(Download)
# Written by Bram Cohen
# see LICENSE.txt for license information
 
from BitTornado.CurrentRateMeasure import Measure
from BitTornado.bitfield import Bitfield
        self.interested = False
        self.active_requests = []
        self.measure = Measure(downloader.max_rate_period)
        self.peermeasure = Measure(downloader.max_rate_period)
        self.have = Bitfield(downloader.numpieces)
        self.max_rate_period = max_rate_period
        self.measurefunc = measurefunc
        self.totalmeasure = Measure(max_rate_period*storage.piece_length/storage.request_size)
        self.numpieces = numpieces
        self.chunksize = chunksize

  1 | 2  Next