<commit_before>package ppi

import (
	"nrf5/hal/te"
)

// ChanGroup repersents PPI channel group. There are 6 channel groups numbered
// from 0 to 5.
type ChanGroup byte

// Channels returns channels that belongs to the group c.
func (g ChanGroup) Channels() Channels {
	return Channels(r().chg[g].Load())
}

// SetChannels sets channels that belongs to the group c.
func (g ChanGroup) SetChannels(c Channels) {
	r().chg[g].Store(uint32(c))
}

// EN returns task that can be used to enable channel group g.
func (g ChanGroup) EN() *te.Task {
	return r().Task(int(g) * 2)
}

// DIS returns task that can be used to disable channel group g.
func (g ChanGroup) DIS() *te.Task {
	return r().Task(int(g)*2 + 1)
}
<commit_msg>nrf5/hal/ppi: Rename ChanGroup to Group.<commit_after>package ppi

import (
	"nrf5/hal/te"
)

// Group repersents PPI channel group. There are 6 channel groups numbered from
// 0 to 5.
type Group byte

// Channels returns channels that belongs to the group g.
func (g Group) Channels() Channels {
	return Channels(r().chg[g].Load())
}

// SetChannels sets channels that belongs to the group g.
func (g Group) SetChannels(c Channels) {
	r().chg[g].Store(uint32(c))
}

// EN returns task that can be used to enable channel group g.
func (g Group) EN() *te.Task {
	return r().Task(int(g) * 2)
}

// DIS returns task that can be used to disable channel group g.
func (g Group) DIS() *te.Task {
	return r().Task(int(g)*2 + 1)
}

{'fraction_non_alphanumeric': 0.13028413028413027, 'fraction_numerical': 0.013167013167013167, 'mean_word_length': 3.688311688311688, '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': '4536916', 'n_tokens_mistral': 518, 'n_tokens_neox': 498, 'n_words': 190}