<commit_before>package goshare

import (
  "time"

  abkleveldb "github.com/abhishekkr/levigoNS/leveldb"
  levigoNS "github.com/abhishekkr/levigoNS"
  levigoTSDS "github.com/abhishekkr/levigoTSDS"
)


type GetValFunc func(key string) string
type PushKeyValFunc func(key string, val string) bool
type DelKeyFunc func(key string) bool


func GetVal(key string) string{
  return abkleveldb.GetVal(key, db)
}


func PushKeyVal(key string, val string) bool{
  return abkleveldb.PushKeyVal(key, val, db)
}


func DelKey(key string) bool{
  return abkleveldb.DelKey(key, db)
}


func hmap_to_csv(hmap levigoNS.HashMap) string{
  csv := ""
  for  key, value := range hmap {
    csv += key + "," + value + "\n"
  }
  return csv
}


func GetValNS(key string) string{
  return hmap_to_csv(levigoNS.ReadNS(key, db))
}


func PushKeyValNS(key string, val string) bool{
  return levigoNS.PushNS(key, val, db)
}


func DelKeyNS(key string) bool{
  levigoNS.DeleteNSRecursive(key, db)
  return true
}


func GetValTSDS(key string) string{
  return hmap_to_csv(levigoTSDS.ReadTSDS(key, db))
}<commit_msg>use ReadNSRecursive  in GetValNS method<commit_after>package goshare

import (
  "time"

  abkleveldb "github.com/abhishekkr/levigoNS/leveldb"
  levigoNS "github.com/abhishekkr/levigoNS"
  levigoTSDS "github.com/abhishekkr/levigoTSDS"
)


type GetValFunc func(key string) string
type PushKeyValFunc func(key string, val string) bool
type DelKeyFunc func(key string) bool


func GetVal(key string) string{
  return abkleveldb.GetVal(key, db)
}


func PushKeyVal(key string, val string) bool{
  return abkleveldb.PushKeyVal(key, val, db)
}


func DelKey(key string) bool{
  return abkleveldb.DelKey(key, db)
}


func hmap_to_csv(hmap levigoNS.HashMap) string{
  csv := ""
  for  key, value := range hmap {
    csv += key + "," + value + "\n"
  }
  return csv
}


func GetValNS(key string) string{
  return hmap_to_csv(levigoNS.ReadNSRecursive(key, db))
}


func PushKeyValNS(key string, val string) bool{
  return levigoNS.PushNS(key, val, db)
}


func DelKeyNS(key string) bool{
  levigoNS.DeleteNSRecursive(key, db)
  return true
}


func GetValTSDS(key string) string{
  return hmap_to_csv(levigoTSDS.ReadTSDS(key, db))
}
{'fraction_non_alphanumeric': 0.10774105930285197, 'fraction_numerical': 0.0, 'mean_word_length': 4.6091370558375635, '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': '2578662', 'n_tokens_mistral': 893, 'n_tokens_neox': 861, 'n_words': 202}