<commit_before># go-google-geoip

Google App Engine GO Lang GeoIP server

## Install

Clone repo

```sh
git clone https://github.com/yieme/go-google-geoip.git
cd go-google-geoip
```

## Run locally

```sh
goapp serve
```

## Usage

Built in help

```sh
curl http://localhost:8080/api
```

Renders

```js
{
  "help_url": "/api",
  "version_url": "/version",
  "about_url": "/",
  "geodata_long_json_url": "/jsonlong",
  "geodata_long_jsonp_url": "/jsonlong/{callback}",
  "geodata_json_url": "/json",
  "geodata_jsonp_url": "/json/{callback}",
  "stats_url": "/stats"
}
```

## Deploy to App Engine

Edit ```app.yaml``` and replace ```gipjson``` with your application name

```sh
goapp deploy
```


## License

MIT<commit_msg>clarify<commit_after># go-google-geoip

Google App Engine GO Lang GeoIP server

## Install

Clone repo

```sh
git clone https://github.com/yieme/go-google-geoip.git
cd go-google-geoip
```

## Run locally

```sh
goapp serve
```

## Usage

Built in help

```sh
curl http://localhost:8080/api
```

Renders

```js
{
  "help_url": "/api",
  "version_url": "/version",
  "about_url": "/",
  "geodata_long_json_url": "/jsonlong",
  "geodata_long_jsonp_url": "/jsonlong/{callback}",
  "geodata_json_url": "/json",
  "geodata_jsonp_url": "/json/{callback}",
  "stats_url": "/stats"
}
```

## Deploy to App Engine

Edit ```app.yaml``` and replace ```gipjson``` with your application name

```sh
goapp deploy
```

## Note

GeoIP data other than country as ```zz``` is only available once the application has been deployed to Google App Engine.

## License

MIT
{'fraction_non_alphanumeric': 0.18106734434561628, 'fraction_numerical': 0.005082592121982211, 'mean_word_length': 4.303030303030303, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4564941', 'n_tokens_mistral': 614, 'n_tokens_neox': 584, 'n_words': 150}