<commit_before>tineye-api
==========

TinEye Commercial API Node.js library

Installation
------------

::

    $ npm install tineye-api

Using the library
-----------------

Once installed, require the library to start using it:

::

    var tineye = require('tineye-api')

Once required, you are ready to start using it with node!

::

    var api = new tineye('https://api.tineye.com/rest/', public_key, private_key)

Searching
---------

::

    url = 'http://tineye.com/images/meloncat.jpg'
    api.search_url(url, 0, 10, 'score', 'desc', function(data) {
      console.log(data)
    })

    img = fs.openSync('/Users/Mypath')
    api.search_data(img, 0, 10, 'size', 'asc', function(data) {
      console.log(data)
    })

Remaining Searches
------------------

::

    api.remaining_searches(function(data) {
      console.log(data)
    })

Number of Indexed Images
------------------------

::

    api.image_count(function(data) {
      console.log(data)
    })

Release History
---------------

* 0.1.0 Initial release
<commit_msg>Updating README.<commit_after>tineye-api
==========

TinEye Commercial API Node.js library

Installation
------------

::

    $ npm install tineye-api

Using the library
-----------------

Once installed, require the library to start using it:

::

    var tineye = require('tineye-api')

Once required, you are ready to start using it with node!

::

    var api = new tineye('https://api.tineye.com/rest/', public_key, private_key)

Searching
---------

::

    url = 'http://tineye.com/images/meloncat.jpg'
    api.search_url(url, 0, 10, 'score', 'desc', function(data) {
      console.log(data)
    })

    img = fs.readFileSync('/Users/Mypath')
    api.search_data(img, 0, 10, 'size', 'asc', function(data) {
      console.log(data)
    })

Remaining Searches
------------------

::

    api.remaining_searches(function(data) {
      console.log(data)
    })

Number of Indexed Images
------------------------

::

    api.image_count(function(data) {
      console.log(data)
    })

Release History
---------------

* 0.1.0 Initial release

{'fraction_non_alphanumeric': 0.21801629132726402, 'fraction_numerical': 0.008624820316243412, 'mean_word_length': 2.187786259541985, 'pattern_counts': {'":': 0, '<': 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': '588852', 'n_tokens_mistral': 721, 'n_tokens_neox': 684, 'n_words': 153}