<commit_before>package main

import (
	"fmt"
	"strings"
)

func ReverseWords(stringR string) []string {
	//indexSpace = make([]int, 0)
	var wordsList []string
	/**
	for i, s := range stringR {
		if s == " " {
			indexSpace = append(indexSpace, i)
		}
	}
	for i, _ := range indexSpace {
		if i < len(indexSpace)-1; indexSpace[i+1]-indexSpace[i] >= 2 {
			wordsList = append(wordsList, stringR[indexSpace[i]:indexSpace[i+1]])
		}
	}*/

	wordsList = strings.Split(stringR, " ")
	return wordsList
}

func main() {
	fmt.Print(ReverseWords("ccQ nihao"))
}<commit_msg>finish go version<commit_after>package main

import (
	"fmt"
	"os"
	"strings"
)

var args []string = os.Args[1:]

func ReverseWords(stringR string) []string {

	wordsList := strings.Split(stringR, " ")
	var newWordsList []string
	//fmt.Println(wordsList)

	for i := len(wordsList) - 1; i >= 0; i = i - 1 {
		newWordsList = append(newWordsList, wordsList[i])
		//fmt.Println(wordsList[i])
	}
	return newWordsList
}

func main() {
	var result string
	for _, i := range args {
		result = result + i + " "
	}
	result = strings.TrimSuffix(result, " ")
	fmt.Print(ReverseWords(result))
}
{'fraction_non_alphanumeric': 0.1628721541155867, 'fraction_numerical': 0.00788091068301226, 'mean_word_length': 3.948051948051948, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2956714', 'n_tokens_mistral': 465, 'n_tokens_neox': 429, 'n_words': 97}