<commit_before>|forthebadge1| |forthebadge2| |forthebadge3|


malaffinity
===========

|travis| |coveralls| |rtd|

Calculate affinity between MyAnimeList users


What is this?
-------------

Calculate the affinity (Pearson's Correlation \* 100) between a "base"
user and another user. Refer to the `docs <#documentation>`__ for more info.


Install
-------

.. code-block:: bash

    pip install malaffinity


Dependencies
------------

* BeautifulSoup4
* lxml
* Requests


Examples
--------

.. code-block:: python

   from malaffinity import MALAffinity

   ma = MALAffinity("YOUR_USERNAME")

   affinity, shared = ma.calculate_affinity("OTHER_USERNAME")

   print(affinity)
   # 79.00545465639877
   print(shared)
   # 82

.. code-block:: python

   import malaffinity

   affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME")

   # ...


Documentation
-------------

Documentation at https://malaffinity.readthedocs.io
<commit_msg>Dammit JetBrains<commit_after>|forthebadge1| |forthebadge2| |forthebadge3|


malaffinity
===========

|travis| |coveralls| |rtd|

Calculate affinity between MyAnimeList users


What is this?
-------------

Calculate the affinity (Pearson's Correlation \* 100) between a "base"
user and another user. Refer to the `docs <#documentation>`__ for more info.


Install
-------

.. code-block:: bash

    pip install malaffinity


Dependencies
------------

* BeautifulSoup4
* lxml
* Requests


Examples
--------

.. code-block:: python

    from malaffinity import MALAffinity

    ma = MALAffinity("YOUR_USERNAME")

    affinity, shared = ma.calculate_affinity("OTHER_USERNAME")

    print(affinity)
    # 79.00545465639877
    print(shared)
    # 82

.. code-block:: python

    import malaffinity

    affinity, shared = malaffinity.calculate_affinity("YOUR_USERNAME", "OTHER_USERNAME")

    # ...


Documentation
-------------

Documentation at https://malaffinity.readthedocs.io

{'fraction_non_alphanumeric': 0.15424164524421594, 'fraction_numerical': 0.02570694087403599, 'mean_word_length': 3.1054852320675104, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7673043', 'n_tokens_mistral': 709, 'n_tokens_neox': 588, 'n_words': 149}