This file contains hidden or 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
List of words that are common in reverted edits but not in not-reverted edits in Wikipedia, divded by language. |
This file contains hidden or 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
hak 171 | |
frp 302 | |
tt 881 | |
pcd 251 | |
yo 405 | |
test 10 | |
vls 37 | |
qu 421 | |
eml 24 | |
kn 11 |
This file contains hidden or 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
# License: MIT | |
import pywikibot, codecs, json | |
site = pywikibot.Site('ca') | |
offset = 0 | |
cases = [] | |
while True: | |
req = pywikibot.data.api.Request(site=site, action='query', list='cxpublishedtranslations', limit=500, offset=offset) | |
offset += 500 | |
res = req.submit() | |
if not res['result']['translations']: |
This file contains hidden or 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
GNU nano 2.2.6 File: scripts/amire80.py | |
# License: MIT | |
import pywikibot, codecs, json | |
site = pywikibot.Site('ca') | |
offset = 0 | |
_base_dir = '/data/project/dexbot/pywikibot-core/' | |
cases = [] | |
while True: | |
req = pywikibot.data.api.Request(site=site, action='query', list='cxpublishedtranslations', limit=500, offset=offset) |
This file contains hidden or 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 codecs | |
import math | |
import sklearn.cluster | |
import matplotlib.pyplot as plt | |
x = set() | |
c = 0 | |
path = '/home/amir/Downloads/featuresetsforclustering/ptwiki.features_reverted.20k.tsv' | |
with codecs.open(path, 'r', 'utf-8') as f: | |
for line in f: |
This file contains hidden or 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
#MIT license | |
import pywikibot | |
import mwparserfromhell | |
site = pywikibot.Site('meta', fam='meta') | |
page = pywikibot.Page(site, 'Research:Revision scoring as a service/Word lists') | |
text = page.get() | |
wikicode = mwparserfromhell.parse(text) | |
templates = wikicode.filter_templates() | |
for template in templates: | |
if str(template.name).strip() == 'Research:Revision scoring as a service/template/word list item': |
This file contains hidden or 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
features = [ | |
wb_diff_f.number_added_sitelinks, | |
wb_diff_f.number_removed_sitelinks, | |
wb_diff_f.number_changed_sitelinks, | |
wb_diff_f.number_added_labels, | |
wb_diff_f.number_removed_labels, | |
wb_diff_f.number_changed_labels, | |
wb_diff_f.number_added_descriptions, | |
wb_diff_f.number_removed_descriptions, | |
wb_diff_f.number_changed_descriptions, |
This file contains hidden or 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 sys | |
import time | |
import codecs | |
import json | |
import random | |
from mw.lib import reverts | |
from ipaddress import ip_address | |
from pywikibot import xmlreader |
This file contains hidden or 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
[0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 | |
0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 | |
0 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | |
0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1 0 0 1 0 1 | |
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 | |
0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 | |
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 | |
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 | |
0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 |
This file contains hidden or 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
(1, 'en') | |
(1, 'sv') | |
(1, 'nl') | |
(0, 'de') | |
(0, 'fr') | |
(0, 'war') | |
(0, 'ru') | |
(0, 'ceb') | |
(0, 'it') | |
(0, 'es') |
OlderNewer