<commit_before>package app

import (
	"github.com/rancher/types/apis/management.cattle.io/v3"
	"github.com/rancher/types/config"
	"k8s.io/apimachinery/pkg/api/errors"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
	defaultURL    = "https://github.com/rancher/charts"
	defaultBranch = "master"
)

func addCatalogs(management *config.ManagementContext) error {
	catalogClient := management.Management.Catalogs("")
	_, err := catalogClient.Get("rancher", metav1.GetOptions{})
	if err != nil && !errors.IsNotFound(err) {
		return err
	} else if errors.IsNotFound(err) {
		obj := &v3.Catalog{
			ObjectMeta: metav1.ObjectMeta{<commit_msg>update catalog url to https://git.rancher.io/charts<commit_after>package app

import (
	"github.com/rancher/types/apis/management.cattle.io/v3"
	"github.com/rancher/types/config"
	"k8s.io/apimachinery/pkg/api/errors"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
	defaultURL    = "https://git.rancher.io/charts"
	defaultBranch = "master"
)

func addCatalogs(management *config.ManagementContext) error {
	catalogClient := management.Management.Catalogs("")
	_, err := catalogClient.Get("rancher", metav1.GetOptions{})
	if err != nil && !errors.IsNotFound(err) {
		return err
	} else if errors.IsNotFound(err) {
		obj := &v3.Catalog{
			ObjectMeta: metav1.ObjectMeta{
{'fraction_non_alphanumeric': 0.15128593040847202, 'fraction_numerical': 0.012102874432677761, 'mean_word_length': 4.752173913043478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '4849730', 'n_tokens_mistral': 506, 'n_tokens_neox': 498, 'n_words': 73}