<commit_before>package custom_metrics

import (
	"github.com/enmasseproject/enmasse/version"
	"github.com/prometheus/client_golang/prometheus"
	"os"
	customMetrics "sigs.k8s.io/controller-runtime/pkg/metrics"
)

// Custom metrics
var (
	versionInfo = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name:        "enmasse_version_info",
			Help:        "Enmasse Operator version and product version",
			ConstLabels: prometheus.Labels{"operator_version": version.Version, "version": os.Getenv("VERSION")},
		},
	)
)

func Init() {
	// Register custom metrics with the global prometheus registry
	customMetrics.Registry.MustRegister(versionInfo)
}<commit_msg>Removed extra 'enmasse' from version metrics name<commit_after>package custom_metrics

import (
	"github.com/enmasseproject/enmasse/version"
	"github.com/prometheus/client_golang/prometheus"
	"os"
	customMetrics "sigs.k8s.io/controller-runtime/pkg/metrics"
)

// Custom metrics
var (
	versionInfo = prometheus.NewGauge(
		prometheus.GaugeOpts{
			Name:        "version_info",
			Help:        "Enmasse Operator version and product version",
			ConstLabels: prometheus.Labels{"operator_version": version.Version, "version": os.Getenv("VERSION")},
		},
	)
)

func Init() {
	// Register custom metrics with the global prometheus registry
	customMetrics.Registry.MustRegister(versionInfo)
}
{'fraction_non_alphanumeric': 0.11326378539493294, 'fraction_numerical': 0.0014903129657228018, 'mean_word_length': 4.813852813852814, 'pattern_counts': {'":': 4, '<': 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': '112273', 'n_tokens_mistral': 458, 'n_tokens_neox': 424, 'n_words': 84}