<commit_before># go-octokit

Go toolkit for the GitHub API.

# Hypermedia-driven client

## Show a user

```go
package main

import "github.com/octokit/go-octokit"

func main() {
    client := octokit.NewClient()
    usersService, err := client.Users(&octokit.UsersHyperlink, octokit.M{"user": "jingweno"})
    if err != nil  {
      // Handle error
    }

    user, result := usersService.Get()
    if result.HasError() {
      // Handle error
    }

    // Do something with user
}
```

## Pagination

```go
package main

import "github.com/octokit/go-octokit/octokit"

func main() {
    client := octokit.NewClient()
    usersService, err := client.Users(&octokit.AllUsersHyperlink, nil)
    if err != nil  {
      // Handle error
    }

    users, result := usersService.GetAll()
    if result.HasError() {
      // Handle error
    }

    // Do something with users

    // Next page
    usersService, err := client.Users(result.NextPage, nil)
    if result.HasError() {
      // Handle error
    }

    // Do something with users
}

```

More [examples](https://github.com/octokit/go-octokit/blob/master/examples/example.go) are available.

## Release Notes

See [Releases](https://github.com/octokit/go-octokit/releases).

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

go-octokit is released under the MIT license. See
[LICENSE.md](https://github.com/octokit/go-octokit/blob/master/LICENSE.md).
<commit_msg>Fix typo in README import<commit_after># go-octokit

Go toolkit for the GitHub API.

# Hypermedia-driven client

## Show a user

```go
package main

import "github.com/octokit/go-octokit"

func main() {
    client := octokit.NewClient()
    usersService, err := client.Users(&octokit.UsersHyperlink, octokit.M{"user": "jingweno"})
    if err != nil  {
      // Handle error
    }

    user, result := usersService.Get()
    if result.HasError() {
      // Handle error
    }

    // Do something with user
}
```

## Pagination

```go
package main

import "github.com/octokit/go-octokit"

func main() {
    client := octokit.NewClient()
    usersService, err := client.Users(&octokit.AllUsersHyperlink, nil)
    if err != nil  {
      // Handle error
    }

    users, result := usersService.GetAll()
    if result.HasError() {
      // Handle error
    }

    // Do something with users

    // Next page
    usersService, err := client.Users(result.NextPage, nil)
    if result.HasError() {
      // Handle error
    }

    // Do something with users
}

```

More [examples](https://github.com/octokit/go-octokit/blob/master/examples/example.go) are available.

## Release Notes

See [Releases](https://github.com/octokit/go-octokit/releases).

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

go-octokit is released under the MIT license. See
[LICENSE.md](https://github.com/octokit/go-octokit/blob/master/LICENSE.md).

{'fraction_non_alphanumeric': 0.1366440468846391, 'fraction_numerical': 0.0030845157310302285, 'mean_word_length': 2.9261501210653753, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5138375', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1066, 'n_words': 288}