<commit_before>libmockspotify
==============

A mock of libspotify for use in development of language bindings.

This project was started in July 2011 with the goal of splitting out
pyspotify's mock of libspotify, so that it could be reused by the developers of
the Node.js and Ruby bindings for libspotify.

Coordination of the development efforts happens on GitHub and #spotify on
Freenode.

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

::

    $ ./autogen.sh
    $ ./configure
    $ make
    # make install<commit_msg>Update README with fork information<commit_after>libmockspotify
==============

A mock of libspotify for use in development of language bindings.

This project was started in July 2011 with the goal of splitting out
pyspotify's mock of libspotify, so that it could be reused by the developers of
the Node.js and Ruby bindings for libspotify.

Coordination of the development efforts happens on GitHub and #spotify on
Freenode.

Note about my fork
------------------
To ease usage in my own development, I’ve turned this project into a
Ruby gem. This allows you to install it as a gem, and also allows you
to retrieve the path to the compiled binary.

Installing it as a gem:

    gem install mockspotify

Using its’ API (one method):

    require 'mockspotify'
    MockSpotify.lib_path # => path/to/gem/src/libmockspotify.extension

You can then use this to bind this library using Ruby FFI:

    require 'ffi'
    require 'mockspotify'

    module Spotify
      extend FFI::Library
      ffi_lib MockSpotify.lib_path

      attach_function …, etc
    end

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

::

    $ ./autogen.sh
    $ ./configure
    $ make
    # make install
{'fraction_non_alphanumeric': 0.08630054315027158, 'fraction_numerical': 0.004828002414001207, 'mean_word_length': 3.155388471177945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '162158', 'n_tokens_mistral': 480, 'n_tokens_neox': 456, 'n_words': 214}