<commit_before>package cfclient

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"strconv"

	"github.com/pkg/errors"
)

type SpaceRequest struct {
	Name               string   `json:"name"`
	OrganizationGuid   string   `json:"organization_guid"`
	DeveloperGuid      []string `json:"developer_guids"`
	ManagerGuid        []string `json:"manager_guids"`
	AuditorGuid        []string `json:"auditor_guids"`
	DomainGuid         []string `json:"domain_guids"`
	SecurityGroupGuids []string `json:"security_group_guids"`
	SpaceQuotaDefGuid  string   `json:"space_quota_definition_guid"`
	AllowSSH           bool     `json:"allow_ssh"`
}

type SpaceResponse struct {
	Count     int             `json:"total_results"`
	Pages     int             `json:"total_pages"`
	NextUrl   string          `json:"next_url"`
	Resources []SpaceResource `json:"resources"`
}
<commit_msg>Added "omitempty" for optional parameters (#165)<commit_after>package cfclient

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"net/url"
	"strconv"

	"github.com/pkg/errors"
)

type SpaceRequest struct {
	Name               string   `json:"name"`
	OrganizationGuid   string   `json:"organization_guid"`
	DeveloperGuid      []string `json:"developer_guids,omitempty"`
	ManagerGuid        []string `json:"manager_guids,omitempty"`
	AuditorGuid        []string `json:"auditor_guids,omitempty"`
	DomainGuid         []string `json:"domain_guids,omitempty"`
	SecurityGroupGuids []string `json:"security_group_guids,omitempty"`
	SpaceQuotaDefGuid  string   `json:"space_quota_definition_guid,omitempty"`
	AllowSSH           bool     `json:"allow_ssh,omitempty"`
}

type SpaceResponse struct {
	Count     int             `json:"total_results"`
	Pages     int             `json:"total_pages"`
	NextUrl   string          `json:"next_url"`
	Resources []SpaceResource `json:"resources"`
}

{'fraction_non_alphanumeric': 0.12162876784769963, 'fraction_numerical': 0.0015864621893178213, 'mean_word_length': 3.6372549019607843, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3243403', 'n_tokens_mistral': 613, 'n_tokens_neox': 596, 'n_words': 117}