<commit_before>#AssertDialog
C#-like assert dialog.

In debug mode: 
shows modal dialog (current thread execution is paused), with two options: stop application, or continue execution.

In release mode: 
writes assert message with stacktrace to Log.wtf.

![](misc/assert.png)

Min SDK version - 14

Usage
-----

Before you start using it, you have to init it. Preferable place to do that, is your applicaion onCreate() method.

First param - operation mode: debug or release.

Second param - context to create dialog from.

```java
    @Override
    public void onCreate() {
        super.onCreate();
        AssertDialog.init(true, getApplicationContext());
    }
```
<commit_msg>New readme message<commit_after>#AssertDialog
C#-like assert dialog. Shows modal dialog when assertion fails blocking current thread.

![](misc/assert.png)

Min SDK version - 14

Usage
-----

Before you start using it, you have to init it. Preferable place to do that, is your applicaion onCreate() method.

First param - operation mode

AssertMode.DIALOG - shows modal dialog (current thread execution is paused), with two options: stop application, or continue execution.
AssertMode.LOG - writes assert message with stacktrace to Log.wtf.
AssertMode.THROW - throws AssertionException 

Second param - context to create dialog from.

```java
    @Override
    public void onCreate() {
        super.onCreate();
        AssertDialog.init(true, getApplicationContext());
    }
```

{'fraction_non_alphanumeric': 0.08829568788501027, 'fraction_numerical': 0.0027378507871321013, 'mean_word_length': 3.7009646302250805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3327406', 'n_tokens_mistral': 412, 'n_tokens_neox': 389, 'n_words': 169}