<commit_before># go-sptrans #

go-sptrans is a Go client library for the [SPTrans Olho Vivo API](http://www.sptrans.com.br/desenvolvedores/APIOlhoVivo.aspx).

### Features

- [x] Routes 
- [ ] Stops
- [ ] Corridors 
- [ ] Companies
- [ ] Position of vehicles
- [ ] Arrival Forecast 
- [ ] Speed on lanes


## Install

go get github.com/sergioaugrod/go-sptrans/sptrans

## Usage

### Search Route by description or number

```go
client = sptrans.NewClient(token)
client.Authenticate()

client.Route.Search("Lapa")
client.Route.Search("8000")
```

### Search Route by direction

```go
client = sptrans.NewClient(token)
client.Authenticate()

client.Route.SearchByDirection("Lapa", 1)
client.Route.SearchByDirection("Lapa", 2)
```

## Contributing

1. Clone 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. Submit a pull request :D

## License

[MIT License](LICENSE)
<commit_msg>Fix README.md<commit_after># go-sptrans #

go-sptrans is a Go client library for the [SPTrans Olho Vivo API](http://www.sptrans.com.br/desenvolvedores/APIOlhoVivo.aspx).

### Features

- [x] Routes 
- [ ] Stops
- [ ] Corridors 
- [ ] Companies
- [ ] Position of vehicles
- [ ] Arrival Forecast 
- [ ] Speed on lanes


## Install

go get github.com/sergioaugrod/go-sptrans/sptrans

## Usage

### Search Route by description or number

```go
token = "<PASSWORD>"
client = sptrans.NewClient(token)
client.Authenticate()

client.Route.Search("Lapa")
client.Route.Search("8000")
```

### Search Route by direction

```go
token = "<PASSWORD>"
client = sptrans.NewClient(token)
client.Authenticate()

client.Route.SearchByDirection("Lapa", 1)
client.Route.SearchByDirection("Lapa", 2)
```

## Contributing

1. Clone 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. Submit a pull request :D

## License

[MIT License](LICENSE)

{'fraction_non_alphanumeric': 0.1443050193050193, 'fraction_numerical': 0.010617760617760617, 'mean_word_length': 4.195488721804511, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3535256', 'n_tokens_mistral': 751, 'n_tokens_neox': 730, 'n_words': 201}