<commit_before>package dragon

import (
	"os"
	"os/exec"
	"path/filepath"
	"strings"
)

func installUsing(f *os.File) error {
	current := filepath.Join(outPath(), "zstdlib.go")
	backup := strings.Replace(current, ".go", ".g_", 1)

	err := os.Rename(current, backup)
	if err != nil {
		return err
	}
	defer os.Rename(backup, current)

	err = os.Rename(f.Name(), current)
	if err != nil {
		return err
	}

	return install()
}

func install() error {<commit_msg>For the backup file name, just add ".bak" postfix.<commit_after>package dragon

import (
	"os"
	"os/exec"
	"path/filepath"
)

func installUsing(f *os.File) error {
	current := filepath.Join(outPath(), "zstdlib.go")
	backup := current + ".bak"

	err := os.Rename(current, backup)
	if err != nil {
		return err
	}
	defer os.Rename(backup, current)

	err = os.Rename(f.Name(), current)
	if err != nil {
		return err
	}

	return install()
}

func install() error {
{'fraction_non_alphanumeric': 0.16213275299238303, 'fraction_numerical': 0.001088139281828074, 'mean_word_length': 3.7916666666666665, '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': '2909575', 'n_tokens_mistral': 361, 'n_tokens_neox': 347, 'n_words': 91}