<jupyter_start><jupyter_text><jupyter_code>!apt install golang-go 1>/dev/null && go version
%%writefile 1.go
package main

import "fmt"

func p(id int, ch chan string) {
    for i := 0; i < 10; i++ {
        ch<- fmt.Sprintf("%d hola %d", id, i)
    }
}

func main() {
    ch1 := make(chan string)
    ch2 := make(chan string)

    go p(1, ch1)
    go p(2, ch2)

    for i := 0; i < 20; i++ {
        select {
        case msg1 := <-ch1:
            fmt.Printf("%s\n", msg1)
        case msg2 := <-ch2:
            fmt.Printf("%s\n", msg2)
        }
    }
}
!go run 1.go<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17333333333333334, 'fraction_numerical': 0.035, 'mean_word_length': 2.050761421319797, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 6, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '543361', 'license': 'CC0-1.0', 'n_tokens_mistral': 256, 'n_tokens_neox': 242, 'n_words': 64, 'path': '20202/pcd_20202_103_select.ipynb', 'repo_name': 'pcsilcan/pcd', 'size': '600'}