<commit_before>package masterapi

import (
	"fmt"
	"github.com/KIT-MAMID/mamid/model"
)

func (s *Slave) assertNoZeroFieldsSet() error {
	return nil
}

func concatErrors(err1, err2 error) error {
	return fmt.Errorf("%s: %s", err1.Error(), err2.Error())
}

func assertIsPortNumber(u uint) error {
	if u < uint(model.PortNumberMin) || u > uint(model.PortNumberMax) {
		return fmt.Errorf("a port number must be in [%d, %d]", model.PortNumberMin, model.PortNumberMin)<commit_msg>FIX: masterapi invalid port range max value.<commit_after>package masterapi

import (
	"fmt"
	"github.com/KIT-MAMID/mamid/model"
)

func (s *Slave) assertNoZeroFieldsSet() error {
	return nil
}

func concatErrors(err1, err2 error) error {
	return fmt.Errorf("%s: %s", err1.Error(), err2.Error())
}

func assertIsPortNumber(u uint) error {
	if u < uint(model.PortNumberMin) || u > uint(model.PortNumberMax) {
		return fmt.Errorf("a port number must be in [%d, %d]", model.PortNumberMin, model.PortNumberMax)
{'fraction_non_alphanumeric': 0.14475025484199797, 'fraction_numerical': 0.00815494393476045, 'mean_word_length': 5.1375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7643626', 'n_tokens_mistral': 361, 'n_tokens_neox': 355, 'n_words': 89}