<commit_before># Ember Truth Helpers for HTMLBars

Helpers for HTMLBars `{{#if}}` & `{{#unless}}`: 

**`eq`**

    {{#if (eq 1 2)}} 1 == 2 {{/if}}
    {{#unless (eq 1 2)}} 1 != 2 {{/unless}}

**`not`**

    {{#if (not hasCrayons)}} I don't have crayons {{/if}}
    {{#if (not hasCrayons hasPaper)}} I don't have crayons or paper {{/if}}

**`and`**

    {{#if (and hasCrayons hasPaper)}} I have crayons and paper {{/if}}

**`or`**

    {{#if (or hasCrayons hasPaper)}} I have something {{/if}}

**`is-array`**

    {{#if (is-array siblings)}} 
        {{#each siblings as |sibling|}} 
            My sibling: {{sibling}} 
        {{/each}} 
    {{/if}}
    
**`in combination`**

    {{#if (and (not model.isLoading) model.isError)}}
    		There was an error loading the model
    {{/if}}
    
**`stand alone`**

    {{and itsCold myJumper}} 
    (returns myJumper if itsCold is truthy, otherwise returns itsCold ('false'))
    

## Install

* `ember install:addon ember-truth-helpers`

## Development

* `git clone https://github.com/jmurphyau/ember-truth-helpers.git`
* `npm install`
* `bower install`
* `ember server`
* Visit your app at http://localhost:4200.

## Running Tests

* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).<commit_msg>Changed markdown formatting to get syntax highlighting<commit_after># Ember Truth Helpers for HTMLBars

Helpers for HTMLBars `{{#if}}` & `{{#unless}}`: 

**`eq`**
```hbs
{{#if (eq 1 2)}} 1 == 2 {{/if}}
{{#unless (eq 1 2)}} 1 != 2 {{/unless}}
```

**`not`**
```hbs
{{#if (not hasCrayons)}} I don't have crayons {{/if}}
{{#if (not hasCrayons hasPaper)}} I don't have crayons or paper {{/if}}
```

**`and`**
```hbs
{{#if (and hasCrayons hasPaper)}} I have crayons and paper {{/if}}
```

**`or`**
```hbs
{{#if (or hasCrayons hasPaper)}} I have something {{/if}}
```

**`is-array`**
```hbs
{{#if (is-array siblings)}} 
    {{#each siblings as |sibling|}} 
        My sibling: {{sibling}} 
    {{/each}} 
{{/if}}
```

**`in combination`**
```hbs
{{#if (and (not model.isLoading) model.isError)}}
    There was an error loading the model
{{/if}}
```

**`stand alone`**
```hbs
{{and itsCold myJumper}} 
<!--returns `myJumper` if `itsCold` is truthy, otherwise returns `itsCold`-->
```

## Install

* `ember install:addon ember-truth-helpers`

## Development

* `git clone https://github.com/jmurphyau/ember-truth-helpers.git`
* `npm install`
* `bower install`
* `ember server`
* Visit your app at http://localhost:4200.

## Running Tests

* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://www.ember-cli.com/](http://www.ember-cli.com/).
{'fraction_non_alphanumeric': 0.2134344528710726, 'fraction_numerical': 0.00866738894907909, 'mean_word_length': 3.632107023411371, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1903441', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1015, 'n_words': 303}