<commit_before>package donut

import "io"

// INTERFACES

// Donut interface
type Donut interface {
	CreateBucket(bucket string) error
	ListBuckets() ([]string, error)
	GetObjectWriter(bucket, object string) (ObjectWriter, error)
	GetObject(bucket, object string) (io.ReadCloser, error)
	GetObjectMetadata(bucket, object string) (map[string]string, error)
	//	GetObjectWriter(bucket, object string) (ObjectWriter, error)
	//	ListObjects(bucket string) ([]string, error)
}

// Bucket interface
type Bucket interface {
	GetNodes() ([]string, error)
}

// Node interface
type Node interface {
	GetBuckets() ([]string, error)
	GetWriter(bucket, object string) (Writer, error)
	GetReader(bucket, object string) (io.ReadCloser, error)
	GetMetadata(bucket, object string) (map[string]string, error)
	GetDonutMetadata(bucket, object string) (map[string]string, error)
}

// ObjectWriter interface
type ObjectWriter interface {
	Write([]byte) (int, error)
	Close() error
	CloseWithError(error) error
	SetMetadata(map[string]string) error
	GetMetadata() (map[string]string, error)
}

// Writer interface
type Writer interface {
	ObjectWriter

	GetDonutMetadata() (map[string]string, error)
	SetDonutMetadata(map[string]string) error
}
<commit_msg>Minor change, removing unnecessary commented method<commit_after>package donut

import "io"

// INTERFACES

// Donut interface
type Donut interface {
	CreateBucket(bucket string) error
	ListBuckets() ([]string, error)
	GetObjectWriter(bucket, object string) (ObjectWriter, error)
	GetObject(bucket, object string) (io.ReadCloser, error)
	GetObjectMetadata(bucket, object string) (map[string]string, error)
	//	ListObjects(bucket string) ([]string, error)
}

// Bucket interface
type Bucket interface {
	GetNodes() ([]string, error)
}

// Node interface
type Node interface {
	GetBuckets() ([]string, error)
	GetWriter(bucket, object string) (Writer, error)
	GetReader(bucket, object string) (io.ReadCloser, error)
	GetMetadata(bucket, object string) (map[string]string, error)
	GetDonutMetadata(bucket, object string) (map[string]string, error)
}

// ObjectWriter interface
type ObjectWriter interface {
	Write([]byte) (int, error)
	Close() error
	CloseWithError(error) error
	SetMetadata(map[string]string) error
	GetMetadata() (map[string]string, error)
}

// Writer interface
type Writer interface {
	ObjectWriter

	GetDonutMetadata() (map[string]string, error)
	SetDonutMetadata(map[string]string) error
}

{'fraction_non_alphanumeric': 0.11973845525132816, 'fraction_numerical': 0.0, 'mean_word_length': 6.307462686567164, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6582171', 'n_tokens_mistral': 767, 'n_tokens_neox': 758, 'n_words': 208}