<commit_before>angular-mergely
===============

An extended angular wrapper for [mergely](https://github.com/wickedest/Mergely).

Usage
-----

The module of interest is termed `mergely`, so one must require that from
angular in order to make use of this package.

Then one can make use of the `mergelyEditor` element directive.

The following attributes can be set on the `mergelyEditor` directive:

  * `files`
    A file name to data map of files in the original project.
  * `mergeFiles`
    A file name to data map of files in the new project.
  * `accept({filename: data, ...})`
    A function to be called upon the completion of the merge with the amended data.
  * `cancel()`
    A function to be called upon the cancelation of the merge.

The following css classes are of importance (in addition to those provided by
mergely itself):

  * `merge-bar`
    The bars above and below the mergely editor.
  * `merge-top-bar`
    The bar above the mergely editor.
  * `merge-bottom-bar`<commit_msg>Fixed accuracy issues in readme<commit_after>angular-mergely
===============

An extended angular wrapper for [mergely](https://github.com/wickedest/Mergely).

Usage
-----

The module of interest is termed `mergely`, so one must require that from
angular in order to make use of this package.

Then one can make use of the `mergelyEditor` element directive.

The following attributes can be set on the `mergelyEditor` directive:

  * `originalFiles`
    A file name to data map of files in the original project.
  * `otherFiles`
    A file name to data map of files in the new project.
  * `acceptCallback({filename: data, ...})`
    A function to be called upon the completion of the merge with the amended data.
  * `cancelCallback()`
    A function to be called upon the cancelation of the merge.
  * `acceptButtonClass`
    A set of classes to be added to the accept button.
  * `cancelButtonClass`
    A set of classes to be added to the cancel button.

The following css classes are of importance (in addition to those provided by
mergely itself):

  * `merge-bar`
    The bars above and below the mergely editor.
  * `merge-top-bar`
    The bar above the mergely editor.
  * `merge-bottom-bar`
{'fraction_non_alphanumeric': 0.08636363636363636, 'fraction_numerical': 0.0, 'mean_word_length': 3.538144329896907, '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': '6451189', 'n_tokens_mistral': 631, 'n_tokens_neox': 610, 'n_words': 301}