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
{"headline": 721, "dateModified": 395, "mainEntityOfPage": 385, "additionalType": 300, "description": 96, "title": 67, "itemListElement": 59, "jobTitle": 43, "address": 40, "aggregateRating": 29, "applicationCategory": 20, "offers": 20, "alternateName": 19, "screenshot": 18, "events": 17, "photo": 16, "thumbnailUrl": 14, "keywords": 12, "artworkSurface": 10, "artMedium": 10, "artist": 10, "mainContentOfPage": 10, "containedIn": 10, "jobtitle": 10, "breadcrumb": 10, "fileSize": 10, "fileFormat": 10, "subjectOf": 10, "isbn": 9, "review": 9, "performerIn": 9, "additionalName": 8, "relatedTo": 8, "articleBody": 7, "pageTitle": 7, "type": 7, "publicationNumber": 7, "numberWithoutCodes": 7, "kindCode": 7, "publicationDescription": 7, "countryCode": 7, "countryName": 7, "priorArtKeywords": 7, "priorArtDate": 7, "legalStatusIfi": 7, "applicationNumber": 7, "assigneeCurrent": 7, "assigneeOriginal": 7, "priorityDate": 7, "filingDate": 7, "publicationDate": 7, "links": 7, "cpcs": 7, "application": 7, "family": 7, "forwa |
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
{"good_items_with_ex_idef": 3703045, "total_unref": 119703291, "done_up_to": "Q87469000", "total_total": 202513067, "detailed_stats": {"P345": 691913, "P1006": 390318, "P1216": 380261, "P7859": 342128, "P2163": 307992, "P434": 205058, "P436": 170743, "P3186": 162899, "P950": 156054, "P1953": 149446, "P1447": 130303, "P3138": 122957, "P2013": 115571, "P1954": 115093, "P2949": 111093, "P243": 93634, "P2600": 89820, "P535": 85769, "P1258": 83724, "P650": 82984, "P724": 79641, "P480": 78477, "P3762": 68658, "P3478": 65001, "P1415": 60807, "P2435": 60480, "P6127": 60431, "P236": 59267, "P3782": 58360, "P380": 58255, "P1053": 57678, "P5032": 56489, "P3829": 52892, "P2843": 48994, "P2427": 47133, "P2638": 44448, "P2924": 43436, "P2574": 42252, "P1047": 41241, "P905": 41124, "P5786": 39147, "P5361": 35750, "P481": 35354, "P6671": 35129, "P2346": 33830, "P3537": 32716, "P6689": 31406, "P435": 31145, "P2631": 30926, "P4342": 30080, "P1644": 29615, "P2456": 28177, "P4947": 27879, "P4762": 27656, "P2626": 27297, "P2397": |
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 | |
# Run like: "python phpunit4_killer.py /var/lib/mediawiki/extensions/Wikibase/" | |
import os | |
import sys | |
import re | |
import subprocess | |
def find_files(path): | |
files = [] | |
for r, d, f in os.walk(path): |
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: CC-0 | |
var api = new mw.Api(); | |
function block() { | |
var params = { | |
action:'query', | |
prop: 'imageinfo', | |
generator: 'search', | |
gsrsearch: 'incaption:"no caption, no cc-zero"', | |
gsrnamespace: 6, | |
gsrlimit: 50 |
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
<?php | |
use Wikibase\Client\DataBridge\DataBridgeConfigValueProvider; | |
use Wikibase\Client\WikibaseClient; | |
use Wikibase\Lib\Modules\MediaWikiConfigModule; | |
return call_user_func( function() { | |
$moduleTemplate = [ | |
'localBasePath' => __DIR__, | |
'remoteExtPath' => 'Wikibase/client/resources', |
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
function swat { | |
# open browser window (--new-tab will only target the new window in a separate command) | |
firefox \ | |
--new-window https://wikitech.wikimedia.org/wiki/Deployments | |
firefox \ | |
--new-tab https://logstash.wikimedia.org/app/kibana#/dashboard/Fatal-Monitor \ | |
--new-tab https://logstash.wikimedia.org/app/kibana#/dashboard/mediawiki-errors \ | |
--new-tab https://logstash.wikimedia.org/app/kibana#/dashboard/mwdebug1002 \ | |
--new-tab https://integration.wikimedia.org/zuul/ \ | |
--new-tab https://tools.wmflabs.org/versions/ |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# PoolCounter client | |
# License: MIT | |
# Based on https://github.com/wikimedia/operations-debs-python-thumbor-wikimedia/blob/master/wikimedia_thumbor/poolcounter/__init__.py | |
import socket | |
import logging | |
import time |
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 re | |
import time | |
import subprocess | |
shard_mapping = { | |
's1': [ | |
'db1052', | |
'db1067', | |
'db1080', |
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
<?php | |
/** | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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: GPL2+ | |
import pywikibot | |
import json | |
import random | |
import string | |
import numpy as np | |
import math | |
site = pywikibot.Site('en', 'lexeme') | |
distro = np.random.normal(10, 5, 550) |