<commit_before>package accounts

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-swagger/go-swagger/client"
	"github.com/go-swagger/go-swagger/errors"
	"github.com/go-swagger/go-swagger/swag"

	strfmt "github.com/go-swagger/go-swagger/strfmt"
)

// NewGetAllAccountsParams creates a new GetAllAccountsParams object
// with the default values initialized.
func NewGetAllAccountsParams() *GetAllAccountsParams {
	var (
		includeRetiredDefault bool   = bool(true)
		orderDefault          string = string("DESC")
		orderByDefault        string = string("created")
		recordsDefault        int32  = int32(10)
	)
	return &GetAllAccountsParams{
		IncludeRetired: &includeRetiredDefault,
		Order:          &orderDefault,
		OrderBy:        &orderByDefault,
		Records:        &recordsDefault,
	}
}

/*GetAllAccountsParams contains all the parameters to send to the API endpoint
for the get all accounts operation typically these are written to a http.Request
*/
type GetAllAccountsParams struct {

	/*Ids
	  A list of account IDs used to filter the output.

	*/
	Ids []string
	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*Metadata*/
	Metadata *string
	/*Offset
	  The offset from the first taxation-link to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of taxation-links to return.

	*/
	Records *int32
	/*UsersOnly
	  Whether only accounts have a user should be returned.

	*/
	UsersOnly *bool
}

// WithIds adds the ids to the get all accounts params
func (o *GetAllAccountsParams) WithIds(ids []string) *GetAllAccountsParams {
	o.Ids = ids
	return o
}

// WithIncludeRetired adds the includeRetired to the get all accounts params
func (o *GetAllAccountsParams) WithIncludeRetired(includeRetired *bool) *GetAllAccountsParams {
	o.IncludeRetired = includeRetired
	return o
}

// WithMetadata adds the metadata to the get all accounts params
func (o *GetAllAccountsParams) WithMetadata(metadata *string) *GetAllAccountsParams {
	o.Metadata = metadata
	return o
}

// WithOffset adds the offset to the get all accounts params
func (o *GetAllAccountsParams) WithOffset(offset *int32) *GetAllAccountsParams {
	o.Offset = offset
	return o
}

// WithOrder adds the order to the get all accounts params
func (o *GetAllAccountsParams) WithOrder(order *string) *GetAllAccountsParams {
	o.Order = order
	return o
}

// WithOrderBy adds the orderBy to the get all accounts params
func (o *GetAllAccountsParams) WithOrderBy(orderBy *string) *GetAllAccountsParams {
	o.OrderBy = orderBy
	return o
}

// WithOrganizations adds the organizations to the get all accounts params
func (o *GetAllAccountsParams) WithOrganizations(organizations []string) *GetAllAccountsParams {
	o.Organizations = organizations
	return o
}

// WithRecords adds the records to the get all accounts params
func (o *GetAllAccountsParams) WithRecords(records *int32) *GetAllAccountsParams {
	o.Records = records
	return o
}

// WithUsersOnly adds the usersOnly to the get all accounts params
func (o *GetAllAccountsParams) WithUsersOnly(usersOnly *bool) *GetAllAccountsParams {
	o.UsersOnly = usersOnly
	return o
}

// WriteToRequest writes these params to a swagger request
func (o *GetAllAccountsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error {

	var res []error

	valuesIds := o.Ids

	joinedIds := swag.JoinByFormat(valuesIds, "multi")
	// query array param ids
	if err := r.SetQueryParam("ids", joinedIds...); err != nil {
		return err
	}

	if o.IncludeRetired != nil {

		// query param include_retired
		var qrIncludeRetired bool
		if o.IncludeRetired != nil {
			qrIncludeRetired = *o.IncludeRetired
		}
		qIncludeRetired := swag.FormatBool(qrIncludeRetired)
		if qIncludeRetired != "" {
			if err := r.SetQueryParam("include_retired", qIncludeRetired); err != nil {
				return err
			}
		}

	}<commit_msg>client: Generate client for fixed query param<commit_after>package accounts

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-swagger/go-swagger/client"
	"github.com/go-swagger/go-swagger/errors"
	"github.com/go-swagger/go-swagger/swag"

	strfmt "github.com/go-swagger/go-swagger/strfmt"
)

// NewGetAllAccountsParams creates a new GetAllAccountsParams object
// with the default values initialized.
func NewGetAllAccountsParams() *GetAllAccountsParams {
	var (
		includeRetiredDefault bool   = bool(true)
		orderDefault          string = string("DESC")
		orderByDefault        string = string("created")
		recordsDefault        int32  = int32(10)
	)
	return &GetAllAccountsParams{
		IncludeRetired: &includeRetiredDefault,
		Order:          &orderDefault,
		OrderBy:        &orderByDefault,
		Records:        &recordsDefault,
	}
}

/*GetAllAccountsParams contains all the parameters to send to the API endpoint
for the get all accounts operation typically these are written to a http.Request
*/
type GetAllAccountsParams struct {

	/*ID
	  A list of account IDs used to filter the output.

	*/
	ID []string
	/*IncludeRetired
	  Whether retired products should be returned.

	*/
	IncludeRetired *bool
	/*Metadata*/
	Metadata *string
	/*Offset
	  The offset from the first taxation-link to return.

	*/
	Offset *int32
	/*Order
	  Ihe direction of any ordering, either ASC or DESC.

	*/
	Order *string
	/*OrderBy
	  Specify a field used to order the result set.

	*/
	OrderBy *string
	/*Organizations
	  A list of organization-IDs used to restrict the scope of API calls.

	*/
	Organizations []string
	/*Records
	  The maximum number of taxation-links to return.

	*/
	Records *int32
	/*UsersOnly
	  Whether only accounts have a user should be returned.

	*/
	UsersOnly *bool
}

// WithID adds the id to the get all accounts params
func (o *GetAllAccountsParams) WithID(id []string) *GetAllAccountsParams {
	o.ID = id
	return o
}

// WithIncludeRetired adds the includeRetired to the get all accounts params
func (o *GetAllAccountsParams) WithIncludeRetired(includeRetired *bool) *GetAllAccountsParams {
	o.IncludeRetired = includeRetired
	return o
}

// WithMetadata adds the metadata to the get all accounts params
func (o *GetAllAccountsParams) WithMetadata(metadata *string) *GetAllAccountsParams {
	o.Metadata = metadata
	return o
}

// WithOffset adds the offset to the get all accounts params
func (o *GetAllAccountsParams) WithOffset(offset *int32) *GetAllAccountsParams {
	o.Offset = offset
	return o
}

// WithOrder adds the order to the get all accounts params
func (o *GetAllAccountsParams) WithOrder(order *string) *GetAllAccountsParams {
	o.Order = order
	return o
}

// WithOrderBy adds the orderBy to the get all accounts params
func (o *GetAllAccountsParams) WithOrderBy(orderBy *string) *GetAllAccountsParams {
	o.OrderBy = orderBy
	return o
}

// WithOrganizations adds the organizations to the get all accounts params
func (o *GetAllAccountsParams) WithOrganizations(organizations []string) *GetAllAccountsParams {
	o.Organizations = organizations
	return o
}

// WithRecords adds the records to the get all accounts params
func (o *GetAllAccountsParams) WithRecords(records *int32) *GetAllAccountsParams {
	o.Records = records
	return o
}

// WithUsersOnly adds the usersOnly to the get all accounts params
func (o *GetAllAccountsParams) WithUsersOnly(usersOnly *bool) *GetAllAccountsParams {
	o.UsersOnly = usersOnly
	return o
}

// WriteToRequest writes these params to a swagger request
func (o *GetAllAccountsParams) WriteToRequest(r client.Request, reg strfmt.Registry) error {

	var res []error

	valuesID := o.ID

	joinedID := swag.JoinByFormat(valuesID, "multi")
	// query array param id
	if err := r.SetQueryParam("id", joinedID...); err != nil {
		return err
	}

	if o.IncludeRetired != nil {

		// query param include_retired
		var qrIncludeRetired bool
		if o.IncludeRetired != nil {
			qrIncludeRetired = *o.IncludeRetired
		}
		qIncludeRetired := swag.FormatBool(qrIncludeRetired)
		if qIncludeRetired != "" {
			if err := r.SetQueryParam("include_retired", qIncludeRetired); err != nil {
				return err
			}
		}

	}
{'fraction_non_alphanumeric': 0.08293141983296083, 'fraction_numerical': 0.0032937301493941888, 'mean_word_length': 4.039715471250741, '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': '6532115', 'n_tokens_mistral': 2698, 'n_tokens_neox': 2570, 'n_words': 870}