<commit_before># angular2-fractionize

[![npm version](https://badge.fury.io/js/angular2-fractionize.svg)](https://badge.fury.io/js/angular2-fractionize)

Angular Pipe that formats numbers to a fraction

## Install

```
npm install angular2-fractionize
```

## FractionizeModule

```ts
import { FractionizeModule } from 'angular2-fractionize';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FractionizeModule
  ],
  bootstrap: [ AppComponent ],
})
export class AppModule {}
```

## FractionizePipe

```ts
@Component({
  // ...
})
class AppComponent() {
  x: string = `2.333`;
}
```

```html
<p> {{ description | fractionize }} </p>
```

Outputs: 2 &#2153
<commit_msg>Markup fix<commit_after># angular2-fractionize

[![npm version](https://badge.fury.io/js/angular2-fractionize.svg)](https://badge.fury.io/js/angular2-fractionize)

Angular Pipe that formats numbers to a fraction

## Install

```
npm install angular2-fractionize
```

## FractionizeModule

```ts
import { FractionizeModule } from 'angular2-fractionize';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FractionizeModule
  ],
  bootstrap: [ AppComponent ],
})
export class AppModule {}
```

## FractionizePipe

```ts
@Component({
  // ...
})
class AppComponent() {
  x: string = `2.333`;
}
```

```html
<p> {{ description | fractionize }} </p>
```

Outputs: 2 &#2153;

{'fraction_non_alphanumeric': 0.1716101694915254, 'fraction_numerical': 0.01977401129943503, 'mean_word_length': 4.097122302158273, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '7069508', 'n_tokens_mistral': 540, 'n_tokens_neox': 497, 'n_words': 99}