lots of small changes
This commit is contained in:
parent
c0c35839cc
commit
a5ecbf823f
85 changed files with 180 additions and 110 deletions
|
|
@ -79,5 +79,5 @@ proc readChunks(filename: string, chunksize = 1000000): Stats =
|
|||
file.close()
|
||||
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
echo readChunks(filename)
|
||||
|
|
|
|||
|
|
@ -64,5 +64,5 @@ proc readChunks(filename: string, chunksize = 1000000): Stats =
|
|||
file.close()
|
||||
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
echo readChunks(filename)
|
||||
|
|
|
|||
|
|
@ -29,5 +29,5 @@ proc parse(filename: string): tuple[projectName, pageTitle: string,
|
|||
|
||||
file.close()
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
echo parse(filename)
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ proc readPageCounts(filename: string, chunkSize = 1_000_000) =
|
|||
|
||||
echo("Most popular is: ", mostPopular)
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
const file = "pagecounts-20160101-050000"
|
||||
let filename = getCurrentDir() / file
|
||||
readPageCounts(filename)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ proc readPageCounts(filename: string) =
|
|||
|
||||
echo("Most popular is: ", mostPopular)
|
||||
|
||||
when isMainModule:
|
||||
when true:
|
||||
const file = "pagecounts-20160101-050000"
|
||||
let filename = getCurrentDir() / file
|
||||
readPageCounts(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue