<commit_before>= Pixmatch

Pixmatch REST API client library for TinEye[http://www.tineye.com/] reverse-image search.

== Using

    gem install pixmatch

== Example

  require 'rubygems'
  require 'pixmatch'
  
  Pixmatch.configure do |config|
    config.username     = 'username'
    config.password     = 'password'
    config.url          = 'api.tineye.com'
  end

  # ping the server
  response = Pixmatch.ping()
  puts response['status']

  # count the number of images in the collection
  count = Pixmatch.count()
  
  # add an image
  Pixmatch.add('images/mona-lisa.jpg')
  Pixmatch.add(File.new('images/mona-lisa.jpg')
  
  # add a collection of images
  Pixmatch.add(Dir.glob('images/*.jpg'))
  
  # list images
  images = Pixmatch.list()
  images.each { |filename| puts filename }

  # delete an image
  Pixmatch.delete('mona-lisa.jpg')

  # delete an array of images
  Pixmatch.delete([ 'mona-lisa.jpg', 'mona-lisa-botero.jpg' ])
  
  # search
  found = Pixmatch.search('images/mona-lisa.jpg')
  found.each { |find|
    puts "#{find['filename']}: #{find['score']}"
  }

== Contributing

* Fork the project
* Copy 'config/pixmatch.yml.default' to 'config/pixmatch.yml'. Edit your pixmatch API credentials as follows.
    test:
      <<: *settings
      username: '<your username>'
      password: '<<PASSWORD>>'
      endpoint: 'http://<your url>.tineye.com'
* Run 'bundle install'
* Test with 'rspec spec'
* Send pull requests.
  
== Copyright

Copyright (c) 2011 Art.sy

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be<commit_msg>Fixed url, no http.<commit_after>= Pixmatch

Pixmatch REST API client library for TinEye[http://www.tineye.com/] reverse-image search.

== Using

    gem install pixmatch

== Example

  require 'rubygems'
  require 'pixmatch'
  
  Pixmatch.configure do |config|
    config.username     = 'username'
    config.password     = 'password'
    config.url          = 'api.tineye.com'
  end

  # ping the server
  response = Pixmatch.ping()
  puts response['status']

  # count the number of images in the collection
  count = Pixmatch.count()
  
  # add an image
  Pixmatch.add('images/mona-lisa.jpg')
  Pixmatch.add(File.new('images/mona-lisa.jpg')
  
  # add a collection of images
  Pixmatch.add(Dir.glob('images/*.jpg'))
  
  # list images
  images = Pixmatch.list()
  images.each { |filename| puts filename }

  # delete an image
  Pixmatch.delete('mona-lisa.jpg')

  # delete an array of images
  Pixmatch.delete([ 'mona-lisa.jpg', 'mona-lisa-botero.jpg' ])
  
  # search
  found = Pixmatch.search('images/mona-lisa.jpg')
  found.each { |find|
    puts "#{find['filename']}: #{find['score']}"
  }

== Contributing

* Fork the project
* Copy 'config/pixmatch.yml.default' to 'config/pixmatch.yml'. Edit your pixmatch API credentials as follows.
    test:
      <<: *settings
      username: '<your username>'
      password: '<<PASSWORD>>'
      endpoint: '<your url>.tineye.com'
* Run 'bundle install'
* Test with 'rspec spec'
* Send pull requests.
  
== Copyright

Copyright (c) 2011 Art.sy

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
{'fraction_non_alphanumeric': 0.11228334589299171, 'fraction_numerical': 0.002009545340366742, 'mean_word_length': 3.5508571428571427, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '4456366', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1215, 'n_words': 406}