<commit_before>package efs_util

import (
	"bytes"
	"github.com/watermint/toolbox/essentials/file/efs_base"
	"strings"
)

type fileImpl struct {
	base efs_base.FileSystemBase
}

func (z fileImpl) FilePutBin(path efs_base.Path, data []byte) efs_base.FsError {
	return z.base.FilePut(path, bytes.NewReader(data))
}

func (z fileImpl) FilePutText(path efs_base.Path, data string, opts ...FilePutTextOpt) efs_base.FsError {
	return z.base.FilePut(path, strings.NewReader(data))
}

func (z fileImpl) FilePutJson(path efs_base.Path, data interface{}, opts ...FilePutJsonOpt) efs_base.FsError {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FilePutTextLines(path efs_base.Path, adder func(l TextLineAdder)) efs_base.FsError {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetBin(path efs_base.Path) (data []byte, fsError efs_base.FsError) {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetText(path efs_base.Path, opts ...FileGetTextOpts) (data string, fsError efs_base.FsError) {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetTextLine(path efs_base.Path, handler func(line string) bool, opts FileGetTextOpt) efs_base.FsError {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetJson(path efs_base.Path, model interface{}) efs_base.FsError {<commit_msg>Release candidate<commit_after>package efs_util

import (
	"bytes"
	"github.com/watermint/toolbox/essentials/file/efs_base"
	"io"
	"strings"
)

type fileImpl struct {
	base efs_base.FileSystemBase
}

func (z fileImpl) FilePutBin(path efs_base.Path, data []byte) efs_base.FsError {
	return z.base.FilePut(path, io.NopCloser(bytes.NewReader(data)))
}

func (z fileImpl) FilePutText(path efs_base.Path, data string, opts ...FilePutTextOpt) efs_base.FsError {
	return z.base.FilePut(path, io.NopCloser(strings.NewReader(data)))
}

func (z fileImpl) FilePutJson(path efs_base.Path, data interface{}, opts ...FilePutJsonOpt) efs_base.FsError {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FilePutTextLines(path efs_base.Path, adder func(l TextLineAdder)) efs_base.FsError {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetBin(path efs_base.Path) (data []byte, fsError efs_base.FsError) {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetText(path efs_base.Path, opts ...FileGetTextOpts) (data string, fsError efs_base.FsError) {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetTextLine(path efs_base.Path, handler func(line string) bool, opts FileGetTextOpt) efs_base.FsError {
	//TODO implement me
	panic("implement me")
}

func (z fileImpl) FileGetJson(path efs_base.Path, model interface{}) efs_base.FsError {
{'fraction_non_alphanumeric': 0.12336719883889695, 'fraction_numerical': 0.0, 'mean_word_length': 5.441588785046729, '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': '3088973', 'n_tokens_mistral': 1025, 'n_tokens_neox': 1018, 'n_words': 240}