fix for nimInAction
This commit is contained in:
parent
161e14829a
commit
6946116272
16 changed files with 88 additions and 33 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue