<commit_before>package server

import (
	"../hashtree"
	"../network"
	"../bitset"
)

type Source interface {
	RequestableSize() hashtree.Bytes
	AddRequest(file *network.File)
	RemoveRequest(file *network.File)
	Reset()
}

type DownloadTask struct {
	id      network.StaticId
	sources []Source
	requesting bitset.BitSet
}


<commit_msg>not sure ...<commit_after>package server

import (
	"../bitset"
	"../hashtree"
	"../network"
)

type Source interface {
	RequestableSize() hashtree.Bytes
	AddRequest(file *network.File)
	RemoveRequest(file *network.File)
	Reset()
}

type DownloadTask struct {
	id              network.StaticId
	sources         []Source
	hashCompleted   bool
	requestedHashes bitset.BitSet
	requestedData   bitset.BitSet
}

func newDownlaodTask(d Database, id network.StaticId, sources []Source) *DownloadTask {
	return &DownloadTask{
		id:            id,
		sources:       sources,
		hashCompleted: false,
		//requested:
	}
}
{'fraction_non_alphanumeric': 0.11452810180275716, 'fraction_numerical': 0.0, 'mean_word_length': 3.4739336492890995, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1732708', 'n_tokens_mistral': 321, 'n_tokens_neox': 313, 'n_words': 73}