<commit_before>Scale
=====

Scale is a little project that aims to take Pharo into the shell. That is, to write shell scripts in Pharo, use it's power, and have a better syntax instead of the ugly bash one :).

Examples
-------

Writing a program that interacts with stdin and stdout:

```bash
#!/usr/bin/scale/pharo

system stdout << 'I will echo everything you type. Type exit to exit';cr;cr.

got := system stdin upTo: Character lf.
[ got = 'exit' ] whileFalse: [
	system stdout << got; cr.
	got := system stdin upTo: Character lf.
]
```

Writing a program that calls ls -l

```bash
#!/usr/bin/scale/pharo

(system call: 'ls -l') lines do: [ :line |
	system stdout << line.
	system stdout cr.
].
```

Or doing the same directly in Pharo :D

```bash
#!/usr/bin/scale/pharo

system workingDirectory entries do: [ :entry |
	system stdout << entry asString.
	system stdout cr.
].
```

Reference
-------
TODO

Loading
-------

TODO<commit_msg>Added reference to examples directory<commit_after>Scale
=====

Scale is a little project that aims to take Pharo into the shell. That is, to write shell scripts in Pharo, use it's power, and have a better syntax instead of the ugly bash one :).

Examples
-------

You can find a lot more of examples in the examples directory. Here we show you a bunch of them


#### Writing a program that interacts with stdin and stdout:

```bash
#!/usr/bin/scale/pharo

system stdout << 'I will echo everything you type. Type exit to exit';cr;cr.

got := system stdin upTo: Character lf.
[ got = 'exit' ] whileFalse: [
	system stdout << got; cr.
	got := system stdin upTo: Character lf.
]
```

#### Writing a program that calls ls -l

```bash
#!/usr/bin/scale/pharo

(system call: 'ls -l') lines do: [ :line |
	system stdout << line.
	system stdout cr.
].
```

#### Or doing the same directly in Pharo :D

```bash
#!/usr/bin/scale/pharo

system workingDirectory entries do: [ :entry |
	system stdout << entry asString.
	system stdout cr.
].
```

Reference
-------
TODO

Loading
-------

TODO
{'fraction_non_alphanumeric': 0.1352154531946508, 'fraction_numerical': 0.0, 'mean_word_length': 3.2887473460721868, 'pattern_counts': {'":': 0, '<': 19, '<?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': '158948', 'n_tokens_mistral': 684, 'n_tokens_neox': 644, 'n_words': 277}