<commit_before>// Command nodet-for-select is a for-select pattern between two compatible
// recursive select.
package main

import "fmt"

func sel1(ch1, ch2 chan int, done chan struct{}) {
	select {
	case <-ch1:
		fmt.Println("sel1: recv")
		done <- struct{}{}
	case ch2 <- 1:
		fmt.Println("sel1: send")
		sel1(ch1, ch2, done)
	}
}

func sel2(ch1, ch2 chan int, done chan struct{}) {
	select {
	case <-ch2:
		fmt.Println("sel2: recv")
		sel2(ch1, ch2, done)
	case ch1 <- 2:
		fmt.Println("sel2: send")
		done <- struct{}{}
	}
}
<commit_msg>Put 'for' in 'for-select'<commit_after>// Command nodet-for-select is a for-select pattern between two compatible
// recursive select.
package main

import "fmt"

func sel1(ch1, ch2 chan int, done chan struct{}) {
	for {
		select {
		case <-ch1:
			fmt.Println("sel1: recv")
			done <- struct{}{}
		case ch2 <- 1:
			fmt.Println("sel1: send")
		}
	}
}

func sel2(ch1, ch2 chan int, done chan struct{}) {
	for {
		select {
		case <-ch2:
			fmt.Println("sel2: recv")
		case ch1 <- 2:
			fmt.Println("sel2: send")
			done <- struct{}{}
		}
	}
}

{'fraction_non_alphanumeric': 0.16512915129151293, 'fraction_numerical': 0.03505535055350553, 'mean_word_length': 3.189189189189189, 'pattern_counts': {'":': 0, '<': 15, '<?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': '4907638', 'n_tokens_mistral': 484, 'n_tokens_neox': 429, 'n_words': 123}