<commit_before>UrlShortener

## Synopsis
URL Shortener is an alpha engine/plugin gem , when setup and added to an application, it provides the views and services to generate short url and redirection from short url


## Motivation

The motivation behind this gem was to learn to build a ruby engine/plugin

## Installation

* Add gem to application

```
gem 'url_shortener', :git => 'git://github.com/arvind-rama/url_shortener.git' 

```
* Add URL shortener table to application database

```
rake URLShortener:install:migrations
```

## How to use

* Transformation 

http://[host:port||domain]/urls/create?url=https://www.google.com.my/maps/place/KL+City+Centre+Park/@3.1556466,101.7128026,17z/data=!3m1!4b1!4m2!3m1!1s0x31cc37d3dae66605:0xced2781fa7347a4e?hl=en

This generates a short URL 

* Short URL
<commit_msg>Engine info added to README<commit_after>UrlShortener

## Synopsis
URL Shortener is an alpha engine/plugin gem , when setup and added to an application, it provides the views and services to generate short url and redirection from short url


## Motivation

The motivation behind this gem was to learn to build a ruby engine/plugin

## Installation

* Add gem to application

```
gem 'url_shortener', :git => 'git://github.com/arvind-rama/url_shortener.git' 

```
* Add URL shortener table to application database

```
rake URLShortener:install:migrations
```

* Mount Engine

```
 mount UrlShortener::Engine => "/" ,  as: "shortener_engine"
```

## How to use

* Transformation 

http://[host:port||domain]/urls/create?url=https://www.google.com.my/maps/place/KL+City+Centre+Park/@3.1556466,101.7128026,17z/data=!3m1!4b1!4m2!3m1!1s0x31cc37d3dae66605:0xced2781fa7347a4e?hl=en

This generates a short URL 

* Short URL

{'fraction_non_alphanumeric': 0.11290322580645161, 'fraction_numerical': 0.0576036866359447, 'mean_word_length': 5.116197183098592, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '1388703', 'n_tokens_mistral': 657, 'n_tokens_neox': 592, 'n_words': 160}