<commit_before>package common

import (
	"errors"
	"net"
	"sync"

	"github.com/miolini/bankgo/rpc/proto"
	"golang.org/x/net/context"
	"google.golang.org/grpc"
)

var (
	ErrNotFound = errors.New("UserID not found")
	ErrUserIDBadValue = errors.New("UserID must be greater than 0")
)

type BalanceStorageServer struct {
	proto.BalanceStorageServer
	dataShards      []*dataShard
	dataShardsCount int64
	listener        net.Listener
	grpcServer      *grpc.Server
}

type dataShard struct {
	sync.RWMutex
	data map[int64]int64
}

func newDataShard() *dataShard {<commit_msg>server changes<commit_after>package common

import (
	"errors"
	"net"
	"sync"

	"github.com/miolini/bankgo/rpc/proto"
	"golang.org/x/net/context"
	"google.golang.org/grpc"
	"net/http"
)

var (
	ErrNotFound = errors.New("UserID not found")
	ErrUserIDBadValue = errors.New("UserID must be greater than 0")
)

type BalanceStorageServer struct {
	proto.BalanceStorageServer
	dataShards      []*dataShard
	dataShardsCount int64
	listener        net.Listener
	grpcServer      *grpc.Server
}

type dataShard struct {
	sync.RWMutex
	data map[int64]int64
}

func newDataShard() *dataShard {
{'fraction_non_alphanumeric': 0.10879025239338555, 'fraction_numerical': 0.012184508268059183, 'mean_word_length': 4.203619909502263, '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': '1178945', 'n_tokens_mistral': 437, 'n_tokens_neox': 426, 'n_words': 86}