Skip to content

Commit f18b5b8

Browse files
author
jjhenkel
committed
Try and make this example output deterministic to avoid confusion.
1 parent f4cc735 commit f18b5b8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

rq2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Printing details:
2828
+ data[n].raw_dockerfile
2929
+ data[n].clean_stdout_log
3030
+ Example of pre-processed data we used for clustering:
31-
['the command / bin / sh c go wrapper download returned a non zero code : 1']
31+
['add failed : failed to get http : / / repo1 . maven . org / maven2 / org / codehaus / cargo / cargo jetty 7 and onwards deployer / 1 . 4 . 4 / cargo jetty 7 and onwards deployer 1 . 4 . 4 . war with status 501 https required : 501 https required . ', 'use https : / / repo1 . maven . org / maven2 / ', 'more information at https : / / links . sonatype . com / central / 501 https required']
3232
```
3333

3434
## Details

rq2/clustering.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
data.append(json.loads(fin.read().decode('utf-8')))
2222
print(' + Done!')
2323

24+
data = sorted(data, key=lambda x: x['clean_stderr_log'])
25+
2426
print('Printing details:')
2527
print(' + Number of records: {}'.format(len(data)))
2628
print(' + Available fields:')

0 commit comments

Comments
 (0)