- ah: article history template
- a: assessment template
- bl: backlinks via wikipedia api
- d: dom
- f4: article feedback v4 (ratings)
- f5: article feedback v5 (comments)
- gn: google news results
- gs: google search results
- pv: page views
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Orange | |
from Orange import orange | |
attributes = [a for a in in_data.domain.attributes if 'trimmed' not in a.name and 'kurtosis' not in a.name and 'skewness' not in a.name and 'variance' not in a.name and not a.name.startswith('rv_')] | |
fomp = Orange.feature.Discrete("fomp", values=['True', 'False']) | |
def check_fomp(inst, return_what): | |
try: | |
if inst['ah_mainpage_age'] > 0 and inst['ah_current'] == 'FA': | |
return fomp('True') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GLOBAL_TIMEOUT = 26000; // milliseconds | |
var jsdom = require('jsdom'); | |
var dummy_window = jsdom.jsdom().createWindow(); | |
dummy_window.XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; | |
var jq_lib = require('jquery'); | |
var $ = jq_lib.create(dummy_window); | |
$.support.cors = true; | |
var extend = $.extend; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# some code from Twisted Matrix's irc_test.py | |
from twisted.words.protocols import irc | |
from twisted.internet import reactor, protocol | |
import time, sys, re, datetime | |
CHANNEL = 'en.wikipedia' # use language.project | |
def process_message(message): | |
color_re = re.compile("\x03(?:\d{1,2}(?:,\d{1,2})?)?", re.UNICODE) # remove IRC color codes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sendData = { | |
action: 'edit', | |
format: 'json', | |
title: 'User:Slaporte/sandbox', | |
text: 'test', | |
summary: 'test', | |
token: '+\\' | |
}; | |
function iframe_post(url, data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sendData = { | |
action: 'edit', | |
format: 'json', | |
title: 'User:Slaporte/sandbox', | |
text: 'test', | |
summary: 'test', | |
token: '+\\' | |
}; | |
$.ajax({ |
NewerOlder