<commit_before>First do some setup:

<!-- @lesson1 @init -->
```
export DEMO_DIR=/tmp/mdrip_example
mkdir -p $DEMO_DIR/src/example
```

Write a *Go* function...

<!-- @lesson1 -->
```
 cat - <<EOF >$DEMO_DIR/src/example/add.go
package main

func add(x, y int) (int) { return x + y }
EOF
echo "the next command intended to fail"
badCommandToTriggerTestFailure
```

...and a main program to call it:

<!-- @lesson1 -->
```
 cat - <<EOF >$DEMO_DIR/src/example/main.go
package main

import "fmt"

func main() {
    fmt.Printf("Calling add on 1 and 2 yields %d.\n", add(1, 2))
}
EOF
GOPATH=$DEMO_DIR go install example
$DEMO_DIR/bin/example
```

Copy/paste the above into a shell to build and run your *Go* program.

Clean up with this command:

<!-- @cleanup -->
```
/bin/rm -rf $DEMO_DIR
```<commit_msg>tweak<commit_after>First do some setup:

<!-- @lesson1 @cleanup -->
```
DEMO_DIR=/tmp/mdrip_example
mkdir -p $DEMO_DIR/src/example
```

Write a *Go* function...

<!-- @lesson1 -->
```
 cat - <<EOF >$DEMO_DIR/src/example/add.go
package main

func add(x, y int) (int) { return x + y }
EOF
echo "the next command intended to fail"
badCommandToTriggerTestFailure
```

...and a main program to call it:

<!-- @lesson1 -->
```
 cat - <<EOF >$DEMO_DIR/src/example/main.go
package main

import "fmt"

func main() {
    fmt.Printf("Calling add on 1 and 2 yields %d.\n", add(1, 2))
}
EOF
GOPATH=$DEMO_DIR go install example
$DEMO_DIR/bin/example
```

Copy/paste the above into a shell to build and run your *Go* program.

Clean up with this command:

<!-- @lesson1 @cleanup -->
```
/bin/rm -rf $DEMO_DIR
```
{'fraction_non_alphanumeric': 0.17219787100814027, 'fraction_numerical': 0.00939261114589856, 'mean_word_length': 3.4512534818941503, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '3174984', 'n_tokens_mistral': 617, 'n_tokens_neox': 590, 'n_words': 186}