<commit_before>package storage

import (
	"context"
	"sync"
)

func NewMock() mock {
	return mock{
		files: map[string][]byte{},
	}
}

type mock struct {
	sync.Mutex
	files map[string][]byte
}

func (m *mock) Put(_ context.Context, album string, image string, b []byte) (string, error) {
	m.Lock()
	defer m.Unlock()
	filename := "albums/" + album + "/images/" + image
	m.files[filename] = b
	src := "/aye-and-nay/" + filename
	return src, nil
}

func (m *mock) Get(_ context.Context, album string, image string) ([]byte, error) {
	m.Lock()
	defer m.Unlock()
	filename := "albums/" + album + "/images/" + image
	b := m.files[filename]
	return b, nil
}

func (m *mock) Remove(_ context.Context, album string, image string) error {
	m.Lock()
	defer m.Unlock()
	filename := "albums/" + album + "/images/" + image
	delete(m.files, filename)
	return nil
}<commit_msg>Optimize memory use<commit_after>package storage

import (
	"context"
)

func NewMock() mock {
	return mock{}
}

type mock struct {
}

func (m *mock) Put(_ context.Context, album string, image string, b []byte) (string, error) {
	return "", nil
}

func (m *mock) Get(_ context.Context, album string, image string) ([]byte, error) {
	return nil, nil
}

func (m *mock) Remove(_ context.Context, album string, image string) error {
	return nil
}
{'fraction_non_alphanumeric': 0.16039907904834996, 'fraction_numerical': 0.0, 'mean_word_length': 4.0347490347490345, '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': '3805107', 'n_tokens_mistral': 459, 'n_tokens_neox': 456, 'n_words': 148}