<commit_before># platform context

Helper to figure out the platform context (browser/io, windows/mac/linux, ie/firefox/chrome, dartvm/js)

The `PlatformContext` object can be used in both browser and io application to test the current environment

## Setup

### IO application

```dart
import 'package:platform_context/context_io.dart';

main() {
  run(ioPlatformContext);
}
```

### Browser application

```
import 'package:platform_context/context_browser.dart';

main() {
  run(browserPlatformContext);
}
```
<commit_msg>Add web demo in gh-pages<commit_after># platform context

Helper to figure out the platform context (browser/io, windows/mac/linux, ie/firefox/chrome, dartvm/js)

The `PlatformContext` object can be used in both browser and io application to test the current environment

Web demo: http://alextekartik.github.io/platform_context.dart/build/example/platform_context_browser_example.html

## Setup

### IO application

```dart
import 'package:platform_context/context_io.dart';

main() {
  run(ioPlatformContext);
}
```

### Browser application

```
import 'package:platform_context/context_browser.dart';

main() {
  run(browserPlatformContext);
}
```

{'fraction_non_alphanumeric': 0.11819727891156463, 'fraction_numerical': 0.0, 'mean_word_length': 5.6875, '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': '6138318', 'n_tokens_mistral': 365, 'n_tokens_neox': 350, 'n_words': 97}