diff --git a/demos/curl.demo b/demos/curl.demo index 31604e9..1ea4824 100755 --- a/demos/curl.demo +++ b/demos/curl.demo @@ -1,5 +1,5 @@ #!/bin/bash -export url='http://127.0.0.1:8080/Analyze' +export url='http://127.0.0.1:8081/Analyze' export header='content-type: application/json' export data='"http://samplecsvs.s3.amazonaws.com/SacramentocrimeJanuary2006.csv"' curl -w "\n" --header "$header " --data "$data" $url diff --git a/perfected/CountDigits.dyalog b/perfected/CountDigits.dyalog index 3d53628..23eba66 100644 --- a/perfected/CountDigits.dyalog +++ b/perfected/CountDigits.dyalog @@ -1,5 +1,5 @@ - r←CountDigits csv;txt;fields -⍝ frequency count of digits 0-9 in csv text + r←CountDigits csv;txt;fields +⍝ Frequency count of digits 0-9 in csv text txt←csv~'-' ⍝ ignore minus signs fields←(~txt∊',',⎕UCS 13 10)⊆txt ⍝ split on , CR or LF