<commit_before># go-neutron

Go library for Neutron v2.0 API

### Installation

Install using `go get github.com/markstgodard/go-neutron`.


### Usage

```go
// create new client
client, err := neutron.NewClient("http://192.168.56.101:9696", "some-keystone-token")
if err != nil {
    log.Fatal(err)
}

// create network
net := neutron.Network{
  Name:         "sample_network",
  Description:  "a sample network",
  AdminStateUp: true,
}
network, err := client.CreateNetwork(net)

// get networks
networks, err := client.Networks()
if err != nil {
    log.Fatal(err)
}

// get networks by name
networks, err := client.NetworksByName("mynet")
if err != nil {
    log.Fatal(err)
}

// get subnets for owning project
subnets, err := client.Subnets()
if err != nil {
    log.Fatal(err)
}

// get subnets for owning project by name
subnets, err := client.SubnetsByName("mysubnet")
if err != nil {
    log.Fatal(err)
}
```<commit_msg>add network readme<commit_after># go-neutron

Go library for Neutron v2.0 API

### Installation

Install using `go get github.com/markstgodard/go-neutron`.


### Usage

```go
// create new client
client, err := neutron.NewClient("http://192.168.56.101:9696", "some-keystone-token")
if err != nil {
    log.Fatal(err)
}

// create network
net := neutron.Network{
  Name:         "sample_network",
  Description:  "a sample network",
  AdminStateUp: true,
}
network, err := client.CreateNetwork(net)
if err != nil {
    log.Fatal(err)
}

// get networks
networks, err := client.Networks()
if err != nil {
    log.Fatal(err)
}

// get networks by name
networks, err := client.NetworksByName("mynet")
if err != nil {
    log.Fatal(err)
}

// get subnets for owning project
subnets, err := client.Subnets()
if err != nil {
    log.Fatal(err)
}

// get subnets for owning project by name
subnets, err := client.SubnetsByName("mysubnet")
if err != nil {
    log.Fatal(err)
}
```
{'fraction_non_alphanumeric': 0.15210526315789474, 'fraction_numerical': 0.017894736842105262, 'mean_word_length': 3.5154394299287413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5656774', 'n_tokens_mistral': 717, 'n_tokens_neox': 657, 'n_words': 182}