<commit_before>package main
 
import (
	"container/ring"
)

type Color string

var colors = [...]Color {"white","blue","red","yellow","orange","green"}

type Face [8]Color

type Edge [12]*Color

type Cube struct {
    faceMap map[Color]Face
    edgeMap map[Color]Edge
}    

type ThreeDTransformer struct {
    faceRing ring.Ring
    edgeRing ring.Ring
}

func main() {
    cube1 := new(Cube)
    face1 := &Face {"red","red","red","red","red","red","red","red"}
    faceMap1 := make(map[Color]*Face)
    faceMap1["red"] = face1
    cube1.faceMap = faceMap1
    edge1 := Edge {&face1[0], &face1[1], &face1[2], &face1[3], &face1[4], &face1[5],
                   &face1[6], &face1[7], &face1[0], &face1[1], &face1[2], &face1[3]}
    edgeMap1 := make(map[Color]Edge)
    edgeMap1["red"] = edge1
    cube1.edgeMap = edgeMap1
    *cube1.edgeMap["red"][0] = "blue"
    *cube1.edgeMap["red"][1] = "green"
    fmt.Println(cube1.faceMap["red"][0])
    fmt.Println(cube1.faceMap["red"][1])
    fmt.Println(cube1.faceMap["red"][2]
}<commit_msg>Demonstrate how to get colors out of cube.<commit_after>package main
 
import (
	"container/ring"
)

type Color string

var colors = [...]Color {"white","blue","red","yellow","orange","green"}

type Face [8]Color

type Edge [12]*Color

type Cube struct {
    faceMap map[Color]Face
    edgeMap map[Color]Edge
}    

type ThreeDTransformer struct {
    faceRing ring.Ring
    edgeRing ring.Ring
}

func main() {
    cube1 := new(Cube)
    face1 := &Face {"red","red","red","red","red","red","red","red"}
    faceMap1 := make(map[Color]*Face)
    faceMap1["red"] = face1
    cube1.faceMap = faceMap1
    edge1 := Edge {&face1[0], &face1[1], &face1[2], &face1[3], &face1[4], &face1[5],
                   &face1[6], &face1[7], &face1[0], &face1[1], &face1[2], &face1[3]}
    edgeMap1 := make(map[Color]Edge)
    edgeMap1["red"] = edge1
    cube1.edgeMap = edgeMap1
    *cube1.edgeMap["red"][0] = "blue"
    *cube1.edgeMap["red"][1] = "green"
    fmt.Println(cube1.faceMap["red"][0])
    fmt.Println(cube1.faceMap["red"][1])
    fmt.Println(cube1.faceMap["red"][2])
    fmt.Println(*cube1.edgeMap["red"][2])
}
{'fraction_non_alphanumeric': 0.20533208606173994, 'fraction_numerical': 0.047708138447146865, 'mean_word_length': 3.8835616438356166, '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': '2085661', 'n_tokens_mistral': 869, 'n_tokens_neox': 847, 'n_words': 150}