<commit_before>package main

import (
	"fmt"
	"log"

	kapi "k8s.io/kubernetes/pkg/api"
	"k8s.io/kubernetes/pkg/client/unversioned"
	"k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
	"k8s.io/kubernetes/pkg/runtime"
)

var (
	kubeconfig = "/Users/fanhongling/Downloads/github.com/openshift/origin/kubeconfig"
)

func main() {
    kubeconfig = "/home/ubuntu/.kube/config"
	// k8s.io/kubernetes/pkg/client/unversioned/clientcmd/loader.go
	config, err := clientcmd.LoadFromFile(kubeconfig)
	if err != nil {
		log.Fatal(err)
	}

	// k8s.io/kubernetes/pkg/client/unversioned/clientcmd/client_config.go
	clientConfig := clientcmd.NewDefaultClientConfig(*config, &clientcmd.ConfigOverrides{})

    restConfig, err := clientConfig.ClientConfig()
    if err != nil {
        log.Fatal(err)
    }
    
	// k8s.io/kubernetes/pkg/client/unversioned/helper.go
	kclient, err := unversioned.New(restConfig)
	if err != nil {
		log.Fatal(err)<commit_msg>kubernetes client<commit_after>package main

import (
	"fmt"
	"log"

	kapi "k8s.io/kubernetes/pkg/api"
	"k8s.io/kubernetes/pkg/client/unversioned"
	"k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
	"k8s.io/kubernetes/pkg/runtime"
)

var (
	kubeconfig = "/Users/fanhongling/Downloads/github.com/openshift/origin/kubeconfig"
)

func main() {
    kubeconfig = "/home/ubuntu/.kube/config"
    
	// k8s.io/kubernetes/pkg/client/unversioned/clientcmd/loader.go
	config, err := clientcmd.LoadFromFile(kubeconfig)
	if err != nil {
		log.Fatal(err)
	}

	// k8s.io/kubernetes/pkg/client/unversioned/clientcmd/client_config.go
	clientConfig := clientcmd.NewDefaultClientConfig(*config, &clientcmd.ConfigOverrides{})

    restConfig, err := clientConfig.ClientConfig()
    if err != nil {
        log.Fatal(err)
    }
    
	// k8s.io/kubernetes/pkg/client/unversioned/helper.go
	kclient, err := unversioned.New(restConfig)
	if err != nil {
		log.Fatal(err)
{'fraction_non_alphanumeric': 0.14626391096979333, 'fraction_numerical': 0.007419183889772125, 'mean_word_length': 3.9038961038961038, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6292386', 'n_tokens_mistral': 747, 'n_tokens_neox': 710, 'n_words': 88}