Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,14 +1,14 @@
|
|||
library(XML)
|
||||
find.unimplemented.tasks <- function(lang="R"){
|
||||
PT <- xmlInternalTreeParse( paste("http://www.rosettacode.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Programming_Tasks&cmlimit=500&format=xml",sep="") )
|
||||
PT.nodes <- getNodeSet(PT,"//cm")
|
||||
PT.titles = as.character( sapply(PT.nodes, xmlGetAttr, "title") )
|
||||
language <- xmlInternalTreeParse( paste("http://www.rosettacode.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:",
|
||||
lang, "&cmlimit=500&format=xml",sep="") )
|
||||
lang.nodes <- getNodeSet(language,"//cm")
|
||||
lang.titles = as.character( sapply(lang.nodes, xmlGetAttr, "title") )
|
||||
unimplemented <- setdiff(PT.titles, lang.titles)
|
||||
unimplemented
|
||||
PT <- xmlInternalTreeParse( paste("http://www.rosettacode.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:Programming_Tasks&cmlimit=500&format=xml",sep="") )
|
||||
PT.nodes <- getNodeSet(PT,"//cm")
|
||||
PT.titles = as.character( sapply(PT.nodes, xmlGetAttr, "title") )
|
||||
language <- xmlInternalTreeParse( paste("http://www.rosettacode.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:",
|
||||
lang, "&cmlimit=500&format=xml",sep="") )
|
||||
lang.nodes <- getNodeSet(language,"//cm")
|
||||
lang.titles = as.character( sapply(lang.nodes, xmlGetAttr, "title") )
|
||||
unimplemented <- setdiff(PT.titles, lang.titles)
|
||||
unimplemented
|
||||
}
|
||||
# Usage
|
||||
find.unimplemented.tasks(lang="Python")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue