<commit_before>package gfx

// ContextAttributes is a set of properties used to initialize the context for
// the first time.
//
// Each property is a preference, and might not be configurable. To query which
// properties you did receive, check Context.GetAttributes()
type ContextAttributes struct {
	// Alpha is whether the drawing buffer has an alpha channel for alpha
	// compositing operations.
	Alpha bool

	// Antialias is whether the rendering context is antialiased.
	Antialias bool

	// Depth is whether or not the drawing buffer has an depth buffer.
	Depth bool

	// PremultipliedAlpha is whether or not the colors in the drawing buffer
	// are premultiplied alpha. This property is ignored if Alpha is false.
	PremultipliedAlpha bool

	// FailIfMajorPerformanceCaveat is whether a context will be created if
	// system performance is low.
	FailIfMajorPerformanceCaveat bool

	// PreserveDrawingBuffer is whether the drawing buffers are cleared once
	// content has been presented to the user.
	PreserveDrawingBuffer bool
}

// Context is a graphics context. Unlike traditional OpenGL contexts, it is not
// tied to a specific OS thread (but still must be accessed from only one
// goroutine/thread at a time).
type Context interface {
	// NewBuffer returns a new buffer object that contains data such as
	// vertices or colors.
	//
	// WebGL equivilent: CreateBuffer
	NewBuffer() Buffer

	// Attributes returns a structure filled with this context's in-use
	// attributes.
	//
	// WebGL equivilent: getContextAttributes
	Attributes(a ContextAttributes) ContextAttributes
}
<commit_msg>Document equivilents later.<commit_after>package gfx

// ContextAttributes is a set of properties used to initialize the context for
// the first time.
//
// Each property is a preference, and might not be configurable. To query which
// properties you did receive, check Context.GetAttributes()
type ContextAttributes struct {
	// Alpha is whether the drawing buffer has an alpha channel for alpha
	// compositing operations.
	Alpha bool

	// Antialias is whether the rendering context is antialiased.
	Antialias bool

	// Depth is whether or not the drawing buffer has an depth buffer.
	Depth bool

	// PremultipliedAlpha is whether or not the colors in the drawing buffer
	// are premultiplied alpha. This property is ignored if Alpha is false.
	PremultipliedAlpha bool

	// FailIfMajorPerformanceCaveat is whether a context will be created if
	// system performance is low.
	FailIfMajorPerformanceCaveat bool

	// PreserveDrawingBuffer is whether the drawing buffers are cleared once
	// content has been presented to the user.
	PreserveDrawingBuffer bool
}

// Context is a graphics context. Unlike traditional OpenGL contexts, it is not
// tied to a specific OS thread (but still must be accessed from only one
// goroutine/thread at a time).
type Context interface {
	// NewBuffer returns a new buffer object that contains data such as
	// vertices or colors.
	NewBuffer() Buffer

	// Attributes returns a structure filled with this context's in-use
	// attributes.
	Attributes(a ContextAttributes) ContextAttributes
}

{'fraction_non_alphanumeric': 0.05409731113956466, 'fraction_numerical': 0.0, 'mean_word_length': 3.7782874617737003, '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': '554789', 'n_tokens_mistral': 802, 'n_tokens_neox': 777, 'n_words': 404}