Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make evaluation/intro more user-friendly #680

Merged
merged 2 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions evaluation/intro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To create the input files needed for evaluation, run:

```bash
./input/setup.sh
```
4 changes: 3 additions & 1 deletion evaluation/intro/input/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ cd $(dirname $0)
if [ ! -f ./100M.txt ]; then
curl -sf --connect-timeout 10 'ndr.md/data/dummy/100M.txt' > 100M.txt
if [ $? -ne 0 ]; then
curl -f 'http://www.gutenberg.org/files/2600/2600-0.txt' | head -c 1M > 1M.txt
# Pipe curl through tac (twice) in order to consume all the output from curl.
# This way, curl can write the whole page and not emit an error code.
curl -fL 'http://www.gutenberg.org/files/2600/2600-0.txt' | tac | tac | head -c 1M > 1M.txt
[ $? -ne 0 ] && eexit 'cannot find 1M.txt'
touch 100M.txt
for (( i = 0; i < 100; i++ )); do
Expand Down