<commit_before>package main

import (
	"log"
	"path/filepath"
)

// RunTests runs all tests below the current path or the path specified
// this is a simplistic wrapper around the go test tool
func RunTests(args []string) {

	// Send two paths to go - root and src
	// we do this to ignore the vendor dir
	testDirs := filepath.Join(". .", "src", "...")

	if len(args) > 0 {
		testDirs = args[0]
	}

	log.Printf("Running tests at %s", testDirs)

	result, err := runCommand("go", "test", testDirs)
	if err != nil {
		log.Printf("Error running tests %s", err)
	}
<commit_msg>Adjusted test command again to fix broken args<commit_after>package main

import (
	"log"
	"path/filepath"
	"strings"
)

// RunTests runs all tests below the current path or the path specified
// this is a simplistic wrapper around the go test tool
func RunTests(args []string) {

	// Run tests on the src dir, this skips root server tests but also skips vendor tests
	testDir := strings.Join([]string{".", "src", "..."}, string(filepath.Separator))

	if len(args) > 0 {
		testDir = args[0]
	}

	log.Printf("Running tests at %s", testDir)

	result, err := runCommand("go", "test", testDir)
	if err != nil {
		log.Printf("Error running tests %s", err)
	}

{'fraction_non_alphanumeric': 0.13458401305057097, 'fraction_numerical': 0.0032626427406199023, 'mean_word_length': 3.647727272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3236344', 'n_tokens_mistral': 415, 'n_tokens_neox': 404, 'n_words': 153}