<commit_before>package main

import (
	"fmt"
	"os"
	"path/filepath"
	"runtime"
	"strings"
	"time"

	"../dos"
	"../lua"
)

func versionOrStamp() string {
	if version != "" {
		return version
	} else {
		return "v" + stamp
	}
}

func loadBundleScript1(L lua.Lua, path string) error {
	if dbg {
		println("load cached ", path)
	}
	bin, err := Asset(path)
	if err != nil {
		return err
	}
	err = L.LoadBufferX(path, bin, "t")
	if err != nil {
		return err
	}
	err = L.Call(0, 0)
	if err != nil {
		return err
	}
	return nil
}

func loadScripts(L lua.Lua) error {
	exeName, exeNameErr := dos.GetModuleFileName()
	if exeNameErr != nil {
		fmt.Fprintln(os.Stderr, exeNameErr)
	}
	exeFolder := filepath.Dir(exeName)

	if !silentmode {
		fmt.Printf("Nihongo Yet Another GOing Shell %s-%s by %s & %s\n",
			versionOrStamp(),
			runtime.GOARCH,
			runtime.Version(),
			"Lua 5.3")
		fmt.Println("Copyright (c) 2014-2016 HAYAMA_Kaoru and NYAOS.ORG")
	}

	nyagos_d := filepath.Join(exeFolder, "nyagos.d")
	nyagos_d_fd, nyagos_d_err := os.Open(nyagos_d)
	if nyagos_d_err == nil {
		defer nyagos_d_fd.Close()
		finfos, err := nyagos_d_fd.Readdir(-1)<commit_msg>Change Copyright print on startup<commit_after>package main

import (
	"fmt"
	"os"
	"path/filepath"
	"runtime"
	"strings"
	"time"

	"../dos"
	"../lua"
)

func versionOrStamp() string {
	if version != "" {
		return version
	} else {
		return "v" + stamp
	}
}

func loadBundleScript1(L lua.Lua, path string) error {
	if dbg {
		println("load cached ", path)
	}
	bin, err := Asset(path)
	if err != nil {
		return err
	}
	err = L.LoadBufferX(path, bin, "t")
	if err != nil {
		return err
	}
	err = L.Call(0, 0)
	if err != nil {
		return err
	}
	return nil
}

func loadScripts(L lua.Lua) error {
	exeName, exeNameErr := dos.GetModuleFileName()
	if exeNameErr != nil {
		fmt.Fprintln(os.Stderr, exeNameErr)
	}
	exeFolder := filepath.Dir(exeName)

	if !silentmode {
		fmt.Printf("Nihongo Yet Another GOing Shell %s-%s by %s & %s\n",
			versionOrStamp(),
			runtime.GOARCH,
			runtime.Version(),
			"Lua 5.3")
		fmt.Println("(c) 2014-2016 NYAOS.ORG <http://www.nyaos.org>")
	}

	nyagos_d := filepath.Join(exeFolder, "nyagos.d")
	nyagos_d_fd, nyagos_d_err := os.Open(nyagos_d)
	if nyagos_d_err == nil {
		defer nyagos_d_fd.Close()
		finfos, err := nyagos_d_fd.Readdir(-1)
{'fraction_non_alphanumeric': 0.1546793760831889, 'fraction_numerical': 0.012131715771230503, 'mean_word_length': 3.483495145631068, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3986836', 'n_tokens_mistral': 1072, 'n_tokens_neox': 990, 'n_words': 221}