<commit_before># Oodle Ruby API
---

## Description

Oodle is an online classifieds service. By using this client for the [Oodle
API](http://developer.oodle.com/), you can add classified listings to your own site. You can filter
listings by category, region, and keywords. You will need to request an [API
key](http://developer.oodle.com/request-api-key) to get started.

## Installation

    gem install oodle

## Example

    require 'rubygems'
    require 'oodle'
    
    API_KEY = '??????' # Request your API key at http://developer.oodle.com/request-api-key
    
    oodle = Oodle::API.new(API_KEY)
    oodle.region = 'chicago'
    oodle.category = 'sale'
    oodle.num = '15'
    oodle.sort = 'ctime_reverse'
    results = oodle.fetch_listings
    num = results['current']['num']
    listings = results['listings']
    (0..num-1).each { |i| p listings[i]['title'] }

## Dependencies

* xml-simple gem
* json gem

## License

This software is licensed using the MIT License (see LICENSE for details).
<commit_msg>Fix example to use meta.returned not current.num.<commit_after># Oodle Ruby API
---

## Description

Oodle is an online classifieds service. By using this client for the [Oodle
API](http://developer.oodle.com/), you can add classified listings to your own site. You can filter
listings by category, region, and keywords. You will need to request an [API
key](http://developer.oodle.com/request-api-key) to get started.

## Installation

    gem install oodle

## Example

    require 'rubygems'
    require 'oodle'
    
    API_KEY = '??????' # Request your API key at http://developer.oodle.com/request-api-key
    
    oodle = Oodle::API.new(API_KEY)
    oodle.region = 'chicago'
    oodle.category = 'sale'
    oodle.num = '15'
    oodle.sort = 'ctime_reverse'
    results = oodle.fetch_listings
    num = results['meta']['returned']
    listings = results['listings']
    0.upto(num - 1) { |i| p listings[i]['title'] }

## Dependencies

* xml-simple gem
* json gem

## License

This software is licensed using the MIT License (see LICENSE for details).

{'fraction_non_alphanumeric': 0.12379576107899808, 'fraction_numerical': 0.0038535645472061657, 'mean_word_length': 3.3634453781512605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '754572', 'n_tokens_mistral': 699, 'n_tokens_neox': 665, 'n_words': 211}