

**EXPERIMENTAL: UNDER DEVELOPMENT**
Guarding OpenStreetMap from invalid or suspicious edits, Gabbar is an alpha package of a pre-trained binary problematic/not problematic classifier that was trained on manually labelled changesets from OpenStreetMap.

https://en.wikipedia.org/wiki/Gabbar_Singh_(character)
## Installation
```bash
pip install gabbar
```
## Setup
```bash
# Setup a virtual environment with Python 3.
mkvirtualenv --python=$(which python3) gabbar_py3
# Install in locally editable (``-e``) mode.
pip install -e .[test]
# Install node dependencies.
npm install
```
## Prediction
<img width="919" alt="screen shot 2017-06-30 at 4 17 46 pm" src="https://user-images.githubusercontent.com/2899501/27732638-ce026614-5daf-11e7-900b-caff399a9da9.png">
```bash
# Get a prediction for a changeset.
gabbar 47734592
[
{
"attributes": {
"action_create": 0,
"action_delete": 0,
"action_modify": 1,
"feature_version": 15,
"geometry_kinks": 0,
"geometry_line_distance": 0.619,
"geometry_type_node": 0,
"geometry_type_relation": 0,
"geometry_type_way": 1,
"new_barrier=yes": 0,
"new_bicycle=no": 0,
"new_bicycle=yes": 0,
"new_bridge=yes": 0,
"new_construction=motorway": 0,
"new_foot=yes": 0,
"new_footway=sidewalk": 0,
"new_highway=coastline": 0,
"new_highway=footway": 0,
"new_highway=living_street": 0,
"new_highway=motorway": 0,
"new_highway=path": 0,
"new_highway=primary": 1,
"new_highway=road": 0,
"new_highway=secondary": 0,
"new_highway=service": 0,
"new_highway=tertiary": 0,
"new_highway=track": 0,
"new_highway=unclassified": 0,
"new_horse=no": 0,
"new_horse=yes": 0,
"new_landuse=cemetery": 0,
"new_landuse=footway": 0,
"new_landuse=forest": 0,
"new_landuse=grass": 0,
"new_landuse=recreation_ground": 0,
"new_landuse_1=park": 0,
"new_landuse_1=recreation_ground": 0,
"new_landuse_2=festival area": 0,
"new_landuse_3=dog park": 0,
"new_landuse_3=recreation": 0,
"new_landuse_4=recreation_ground": 0,
"new_landuse_5=water_park": 0,
"new_lanes=2": 0,
"new_layer=1": 0,
"new_leisure=park": 0,
"new_lit=yes": 0,
"new_maxspeed=50": 0,
"new_maxspeed=8": 0,
"new_natural=footway": 0,
"new_natural=tree_row": 0,
"new_noname=yes": 0,
"new_oneway=no": 0,
"new_park=yes": 0,
"new_surface=asphalt": 0,
"new_surface=dirt": 0,
"new_surface=gravel": 0,
"new_surface=unpaved": 0,
"new_surface_1=asphalt": 0,
"new_surface_1=ground": 0,
"new_surface_2=unpaved": 0,
"new_surface_2=wood": 0,
"new_tracktype=grade3": 0,
"new_user_mapping_days": 0,
"new_waterway=river": 0,
"new_waterway=stream": 0,
"old_construction=path": 0,
"old_embankment=yes": 0,
"old_highway=construction": 0,
"old_highway=footway": 0,
"old_highway=path": 0,
"old_highway=pedestrian": 0,
"old_highway=primary": 0,
"old_highway=residential": 0,
"old_highway=service": 0,
"old_highway=tertiary": 0,
"old_highway=unclassified": 0,
"old_lit=no": 0,
"old_maxspeed=30": 0,
"old_natural=coastline": 0,
"old_oneway=yes": 0,
"old_park=paseo": 0,
"old_user_mapping_days": 0,
"old_width=0": 0
},
"changeset_id": "49626684",
"feature_id": "17166500",
"feature_type": "way",
"prediction": 0,
"timestamp": "2017-06-30 16:18:07.965246",
"version": 0.5
}
]
```
## Testing
```bash
npm test
```
## Hyperlinks
- [Validating and protecting OpenStreetMap](https://www.mapbox.com/blog/validating-osm/)
- [Preparing accurate history and caching changesets](https://www.openstreetmap.org/user/geohacker/diary/40846)
- [An open database of inconsistent edits observed on OSM from OSMCha](http://www.openstreetmap.org/user/manoharuss/diary/40118)
Metadata
Release files for gabbar 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gabbar-0.5.1.tar.gz | 4.9 kB | Without provenance | Details for gabbar-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gabbar-0.5.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for gabbar-0.5.1-py2.py3-none-any.whl |
Total release size: 338.0 kB
Release files / gabbar-0.5.1.tar.gz
| Download URL | gabbar-0.5.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2632ed0280773de88cd1819cf4365e9f54830084366fbde1e8a17478d4d0670d
|
|
BLAKE2b-256 checksum How to use checksums |
5d50bba3703ac3b8efce30698d78f8932b598ad0456f7b1ca6f292f9b391da07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / gabbar-0.5.1-py2.py3-none-any.whl
| Download URL | gabbar-0.5.1-py2.py3-none-any.whl |
|---|---|
| Size | 333.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7d52b1297a69baa591c15d7194c8539c8f92bf8bc99947410a3dd10994e7e20c
|
|
BLAKE2b-256 checksum How to use checksums |
bcf567b9e7eb333d415011135be47ae3d7f0e6ab66a22478fafd55f34e49c06f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for gabbar 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.