<commit_before>package ref

import (
	"fmt"
	"strings"

	"k8s.io/apimachinery/pkg/api/meta"
	"k8s.io/apimachinery/pkg/runtime"
)

var NodeNotFound = "can not build dialer to"

func IsNodeNotFound(err error) bool {
	return strings.Contains(err.Error(), NodeNotFound)
}

func FromStrings(namespace, name string) string {<commit_msg>Check err not nil before calling clusterDialer<commit_after>package ref

import (
	"fmt"
	"strings"

	"k8s.io/apimachinery/pkg/api/meta"
	"k8s.io/apimachinery/pkg/runtime"
)

var NodeNotFound = "can not build dialer to"

func IsNodeNotFound(err error) bool {
	if err == nil {
		return false
	}
	return strings.Contains(err.Error(), NodeNotFound)
}

func FromStrings(namespace, name string) string {
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.005494505494505495, 'mean_word_length': 4.926829268292683, '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': '2308005', 'n_tokens_mistral': 265, 'n_tokens_neox': 261, 'n_words': 63}