<commit_before>package main

import (
	"encoding/json"
	"fmt"
	"log"
	"os"
	"os/exec"
)

type Result struct {
	OverallSuccess bool `json:"overallSuccess"`
}

func main() {
	usage := func() string {
		return "Usage: tbd-status TREEISH"
	}

	if len(os.Args) != 2 {
		fmt.Println(usage())
		return
	}
	treeish := os.Args[1]

	cmd := exec.Command("git", "notes", "--ref", "tbd", "show", treeish+"^{tree}")
	output, err := cmd.CombinedOutput()

	if err != nil {
		log.Fatalf("%s", string(output))
	}

	result := Result{}
	if err := json.Unmarshal(output, &result); err != nil {
		log.Fatal("tbd-status - json: %s", err, err)
	}

	if result.OverallSuccess {
		os.Exit(0)
	} else {
		os.Exit(1)
	}
}<commit_msg>Return strings for git log<commit_after>package main

import (
	"encoding/json"
	"fmt"
	"os"
	"os/exec"
)

type Result struct {
	OverallSuccess bool `json:"overallSuccess"`
}

func main() {
	usage := func() string {
		return "Usage: tbd-status TREEISH"
	}

	if len(os.Args) != 2 {
		fmt.Println(usage())
		return
	}
	treeish := os.Args[1]

	cmd := exec.Command("git", "notes", "--ref", "tbd", "show", treeish+"^{tree}")
	output, err := cmd.CombinedOutput()
	if err != nil {
		fmt.Printf("%s", string(output))
		os.Exit(-1)
	}

	result := Result{}
	if err := json.Unmarshal(output, &result); err != nil {
		fmt.Printf("%s", err)
		os.Exit(-1)
	}

	if result.OverallSuccess {
		fmt.Print("success")
		os.Exit(0)
	} else {
		fmt.Print("failed")
		os.Exit(1)
	}
}
{'fraction_non_alphanumeric': 0.19958988380041012, 'fraction_numerical': 0.00683526999316473, 'mean_word_length': 3.632911392405063, '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': '4182773', 'n_tokens_mistral': 614, 'n_tokens_neox': 581, 'n_words': 130}