fix for nimInAction

This commit is contained in:
Arne Döring 2018-11-20 11:08:18 +01:00 • committed by Araq
commit 6946116272
16 changed files with 88 additions and 33 deletions

View file

@ -1,3 +1,7 @@
discard """
action: compile
"""
# See this page for info about the format https://wikitech.wikimedia.org/wiki/Analytics/Data/Pagecounts-all-sites
import tables, parseutils, strutils, threadpool

View file

@ -1,3 +1,7 @@
discard """
action: compile
"""
# See this page for info about the format https://wikitech.wikimedia.org/wiki/Analytics/Data/Pagecounts-all-sites
import tables, parseutils, strutils, threadpool, re

View file

@ -1,3 +1,7 @@
discard """
action: compile
"""
# See this page for info about the format https://wikitech.wikimedia.org/wiki/Analytics/Data/Pagecounts-all-sites
import tables, parseutils, strutils

View file

@ -1,3 +1,7 @@
discard """
action: compile
"""
import os, parseutils, threadpool, strutils
type
@ -69,4 +73,4 @@ proc readPageCounts(filename: string, chunkSize = 1_000_000) =
when isMainModule:
const file = "pagecounts-20160101-050000"
let filename = getCurrentDir() / file
readPageCounts(filename)
readPageCounts(filename)

View file

@ -1,3 +1,7 @@
discard """
action: compile
"""
import threadpool
var counter = 0
@ -10,4 +14,4 @@ proc increment(x: int) =
spawn increment(10_000)
spawn increment(10_000)
sync()
echo(counter)
echo(counter)

View file

@ -1,3 +1,7 @@
discard """
action: compile
"""
import os, parseutils
proc parse(line: string, domainCode, pageTitle: var string,
@ -31,4 +35,4 @@ proc readPageCounts(filename: string) =
when isMainModule:
const file = "pagecounts-20160101-050000"
let filename = getCurrentDir() / file
readPageCounts(filename)
readPageCounts(filename)