<commit_before>package k8s

import (
  _ "fmt"
  "errors"
  "encoding/base64"
)

func GetSecret (namespace, key, data string) (string, error){
  s := &Secret{}

  s, err := getSecret(namespace, key)
  if err != nil {
    return "", errors.New("missing key" + key)
  }
  v := s.Data[data]
  d, err := base64.StdEncoding.DecodeString(v)
  if err != nil {
    return "", err
  }
  return string(d), nil
}<commit_msg>remove struct<commit_after>package k8s

import (
  _ "fmt"
  "errors"
  "encoding/base64"
)

func GetSecret (namespace, key, data string) (string, error){
  s, err := getSecret(namespace, key)
  if err != nil {
    return "", errors.New("missing key" + key)
  }
  v := s.Data[data]
  d, err := base64.StdEncoding.DecodeString(v)
  if err != nil {
    return "", err
  }
  return string(d), nil
}
{'fraction_non_alphanumeric': 0.15965346534653466, 'fraction_numerical': 0.012376237623762377, 'mean_word_length': 3.3031914893617023, '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': '2033807', 'n_tokens_mistral': 302, 'n_tokens_neox': 295, 'n_words': 79}