<commit_before>package dynago

type updateItemRequest struct {
	Key       Document
	TableName string

	ConditionExpression string `json:",omitempty"`
	UpdateExpression    string `json:",omitempty"`
	expressionAttributes

	ReturnConsumedCapacity      string       `json:",omitempty"` // TODO
	ReturnItemCollectionMetrics string       `json:",omitempty"` // TODO
	ReturnValues                ReturnValues `json:",omitempty"`
}

type updateItemResponse struct {
	Attributes Document
	// TODO ConsumedCapacity
	// TODO ItemCollectionMetrics
}

func newUpdateItem(client *Client, table string, key Document) *UpdateItem {
	return &UpdateItem{
		client: client,
		req: updateItemRequest{
			Key:       key,
			TableName: table,
		},
	}
}

type UpdateItem struct {
	client *Client
	req    updateItemRequest
}

// Set a condition expression for conditional update.
func (u UpdateItem) ConditionExpression(expression string, params ...Params) *UpdateItem {
	u.req.paramsHelper(params)
	u.req.ConditionExpression = expression
	return &u
}

// Set an update expression to update specific fields and values.
func (u UpdateItem) UpdateExpression(expression string, params ...Params) *UpdateItem {
	u.req.paramsHelper(params)
	u.req.UpdateExpression = expression
	return &u
}
<commit_msg>Remove unused result struct for scan<commit_after>package dynago

type updateItemRequest struct {
	Key       Document
	TableName string

	ConditionExpression string `json:",omitempty"`
	UpdateExpression    string `json:",omitempty"`
	expressionAttributes

	ReturnConsumedCapacity      string       `json:",omitempty"` // TODO
	ReturnItemCollectionMetrics string       `json:",omitempty"` // TODO
	ReturnValues                ReturnValues `json:",omitempty"`
}

func newUpdateItem(client *Client, table string, key Document) *UpdateItem {
	return &UpdateItem{
		client: client,
		req: updateItemRequest{
			Key:       key,
			TableName: table,
		},
	}
}

type UpdateItem struct {
	client *Client
	req    updateItemRequest
}

// Set a condition expression for conditional update.
func (u UpdateItem) ConditionExpression(expression string, params ...Params) *UpdateItem {
	u.req.paramsHelper(params)
	u.req.ConditionExpression = expression
	return &u
}

// Set an update expression to update specific fields and values.
func (u UpdateItem) UpdateExpression(expression string, params ...Params) *UpdateItem {
	u.req.paramsHelper(params)
	u.req.UpdateExpression = expression
	return &u
}

{'fraction_non_alphanumeric': 0.08954008954008955, 'fraction_numerical': 0.0, 'mean_word_length': 4.174736842105263, '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': '6681655', 'n_tokens_mistral': 672, 'n_tokens_neox': 649, 'n_words': 204}