<commit_before># IATACode

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'iata_code'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install iata_code

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( http://github.com/<my-github-username>/iata_code/fork )
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
<commit_msg>Not to forget usage and installation instructions<commit_after># IATACode

Automate finding IATA codes from their search page.

## Installation

After cloning repository:

    $ bundle
    $ bundle exec rake install

## Usage

CLI: search IATA codes by given airline name

    $ iata_code find lufthansa
    Deutsche Lufthansa AG: LH
    Lufthansa Cargo AG: LH
    Lufthansa CityLine GmbH: CL
    Lufthansa Systems AG: S1
    
Plain Ruby:

```ruby
result = IATACode::Scraper.new.scrape("lufthansa") // => {"Deutsche Lufthansa AG"=>"LH", "Lufthansa Cargo AG"=>"LH", "Lufthansa CityLine GmbH"=>"CL", "Lufthansa Systems AG"=>"S1"}
```

{'fraction_non_alphanumeric': 0.10254306808859721, 'fraction_numerical': 0.005742411812961444, 'mean_word_length': 3.8995983935742973, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '1476825', 'n_tokens_mistral': 438, 'n_tokens_neox': 412, 'n_words': 143}