<commit_before>package create

import (
	"github.com/juju/errgo"
)

var (
	invalidConfigError           = errgo.New("invalid config")
	secretsRetrievalFailedError  = errgo.New("could not retrieve secrets")
	missingCloudConfigKeyError   = errgo.New("missing required key in the cloudconfig")
	malformedCloudConfigKeyError = errgo.New("malformed key in the cloudconfig")
)

// IsInvalidConfig asserts invalidConfigError.
func IsInvalidConfig(err error) bool {
	return errgo.Cause(err) == invalidConfigError
}

func IsMissingCloudConfigKey(err error) bool {
	return errgo.Cause(err) == missingCloudConfigKeyError
}

func IsMalformedCloudConfigKey(err error) bool {
	return errgo.Cause(err) == malformedCloudConfigKeyError
}<commit_msg>aligned service errors with other microservices<commit_after>package create

import (
	"github.com/juju/errgo"
)

var invalidConfigError = errgo.New("invalid config")

// IsInvalidConfig asserts invalidConfigError.
func IsInvalidConfig(err error) bool {
	return errgo.Cause(err) == invalidConfigError
}

var malformedCloudConfigKeyError = errgo.New("malformed key in the cloudconfig")

// IsMalformedCloudConfigKey asserts malformedCloudConfigKeyError.
func IsMalformedCloudConfigKey(err error) bool {
	return errgo.Cause(err) == malformedCloudConfigKeyError
}

var missingCloudConfigKeyError = errgo.New("missing cloud config key")

// IsMissingCloudConfigKey asserts missingCloudConfigKeyError.
func IsMissingCloudConfigKey(err error) bool {
	return errgo.Cause(err) == missingCloudConfigKeyError
}
{'fraction_non_alphanumeric': 0.08485639686684072, 'fraction_numerical': 0.0, 'mean_word_length': 6.3701923076923075, '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': '2937512', 'n_tokens_mistral': 459, 'n_tokens_neox': 444, 'n_words': 106}