- Copy the code below to a bookmarklet generator site such as https://caiorss.github.io/bookmarklet-maker/
- Add the generated bookmarklet to your favorites
- Open a Jira board where some columns are empty
- Click on the bookmark to toggle the visibility of these columns
Copied from https://github.com/wikimedia/articlequality/blob/5a7b0054af8f018d5569acc35648fc0293d0ed40/model_info/ptwiki.wp10.md
Model Information: - type: GradientBoosting - version: 0.8.0 - params: {'min_samples_split': 2, 'label_weights': None, 'max_depth': 7, 'min_impurity_split': None, 'learning_rate': 0.01, 'verbose': 0, 'max_features': 'log2', 'center': True, 'subsample': 1.0, 'n_estimators': 300, 'warm_start': False, 'multilabel': False, 'min_samples_leaf': 1, 'labels': ['1', '2', '3', '4', '5', '6'], 'scale': True, 'presort': 'auto', 'population_rates': None, 'loss': 'deviance', 'random_state': None, 'max_leaf_nodes': None, 'init': None, 'n_iter_no_change': None, 'criterion': 'friedman_mse', 'min_impurity_decrease': 0.0, 'validation_fraction': 0.1, 'tol': 0.0001, 'min_weight_fraction_leaf': 0.0} Environment: - revscoring_version: '2.6.9' - platform: 'Linux-4.9.0-11-amd64-x86_64-with-debian-9.12'
- machine: 'x86_64'
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
%matplotlib inline | |
# Before and after https://github.com/wikimedia/articlequality/pull/127 | |
file_names = ['ptwiki.labelings.20200301.json', | |
'ptwiki.labelings.20200301.extractor-and-reverts.json'] | |
sets = [] | |
for file_name in file_names: |
- Open the Moodle course of interest and go to Administration> Course Administration > Reports > Logs.
- Click on "Get these logs"
- Download table data as comma separated values (e.g.
input1.csv
). The script will use this as one of its input files. - Create a file "
videos.csv
", with a columntitle
(containing the titles that are present in the logs) and a columnlength
, with the length (in minutes) of each video. - Run the script passing the names of the csv files used as input and output:
$ python process-moodle-logs.py --logs input1.csv --videos videos.csv --stats output.csv --aggregated output_agg.csv
- Check out the resulting two files:
#!/usr/bin/python3 | |
# Copyright © 2018 He7d3r <http://he7d3r.mit-license.org> | |
import argparse | |
import re | |
import fileinput | |
from pathlib import Path | |
re_rule = re.compile("<(?:Typo)?\s+(?:word=\"(.*?)\"\s+)?find=\"(.*?)\"\s+replace=\"(.*?)\"\s*\/?>") | |
def fix_typos(typos, filename): |
#!/usr/bin/perl -w | |
# Code : Dake | |
use strict; | |
use Parse::MediaWikiDump; | |
use utf8; | |
my $dump = shift(@ARGV) or die "Please specify a dump file"; | |
my $pages = Parse::MediaWikiDump::Pages->new($dump); | |
my $page; |
// Based on https://meta.wikimedia.org/wiki/User:Krinkle/Tools/Global_SUL.js?oldid=10130488 | |
/** | |
* This script provides an extra Special-page action called "WMGrep" which | |
* allows searching over all WMF wikis. | |
* After enabling the script, the tool is accessible from [[Special:BlankPage/wmgrep]]. | |
* | |
* @source meta.wikimedia.org/wiki/User:Krinkle/Tools/Global_SUL | |
* @revision 4 (2014-10-08) | |
* @stats [[File:Krinkle_Global_SUL.js]] | |
*/ |
# The raw original list is at | |
# https://gist.github.com/Ladsgroup/cc22515f55ae3d868f47/c7343517b47b6908ac89e3bd2df68f9cee6cd188#file-ptwiki | |
# Caveats: https://meta.wikimedia.org/w/index.php?title=Research_talk:Revision_scoring_as_a_service&oldid=12148651#Badwords | |
adoro | |
aki | |
amo | |
bla | |
blablabla | |
coco |