Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/Text-processing-1/Ursala/text-processing-1.ursala
Normal file
21
Task/Text-processing-1/Ursala/text-processing-1.ursala
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#import std
|
||||
#import nat
|
||||
#import flo
|
||||
|
||||
parsed_data = ^|A(~&,* ^|/%ep@iNC ~&h==`1)*htK27K28pPCS (sep 9%cOi&)*FyS readings_dot_txt
|
||||
|
||||
daily_stats =
|
||||
|
||||
* ^|A(~&,@rFlS ^/length ^/plus:-0. ||0.! ~&i&& mean); mat` + <.
|
||||
~&n,
|
||||
'accept: '--+ @ml printf/'%7.0f'+ float,
|
||||
'total: '--+ @mrl printf/'%10.1f',
|
||||
'average: '--+ @mrr printf/'%7.3f'>
|
||||
|
||||
long_run =
|
||||
|
||||
-+
|
||||
~&i&& ^|TNC('maximum of '--@h+ %nP,' consecutive false readings ending on line '--),
|
||||
@nmrSPDSL -&~&,leql$^; ^/length ~&zn&-@hrZPF+ rlc both ~&rZ+-
|
||||
|
||||
main = ^T(daily_stats^lrNCT/~& @mSL 'summary ':,long_run) parsed_data
|
||||
Loading…
Add table
Add a link
Reference in a new issue