duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
$ python | |
Python 3.4.3 (default, Jul 28 2015, 18:20:59) | |
[GCC 4.8.4] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from revscoring.languages import portuguese | |
>>> from revscoring.datasources import revision | |
>>> from revscoring.dependencies import solve | |
>>> solve(portuguese.revision.badwords, cache={revision.text: "potential badword"}) | |
0 | |
>>> solve(portuguese.revision.badwords, cache={revision.text: "puta"}) |
// MIT license | |
// Author: Amir Sarabadani <ladsgroup@gmail.com> | |
mw.config.set( 'ORESHighlighter', { | |
0.075: '#ffe099', | |
0.37: '#ffbe99', | |
0.90: '#f4908a' | |
}); | |
( function ( mw, $ ) { | |
'use strict'; | |
if ( !$('.mw-changeslist').length && !$('mw-contributions-list').length ) { |
mkdir venv | |
cd venv | |
virtualenv 3.4 -p $(which python3) --system-site-packages | |
cd .. | |
source venv/3.4/bin/activate | |
mkdir projects | |
cd projects | |
git clone https://jonasagx@github.com/wiki-ai/revscoring | |
cd revscoring | |
python -m nltk.downloader stopwords |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
$ python | |
Python 3.5.3 (default, Sep 27 2018, 17:25:39) | |
[GCC 6.3.0 20170516] on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> from revscoring import Model | |
>>> model = Model.load(open("models/ptwiki.wp10.gradient_boosting.model")) | |
>>> importance_features = list(sorted(zip(model.estimator.feature_importances_, model.features), reverse=True)) | |
>>> for importance, feature in importance_features: | |
... print(round(importance, 3), feature) | |
... |
# -*- coding: utf-8 -*- | |
''' | |
@author: Danilo ([[Usuário:Danilo.mac]]) | |
@licence: GNU Public Licence version 2 (GPLv2) | |
Script para avaliação automática de qualidade na Wikipédia lusófona, semelhante ao [[Módulo:Avaliação]] | |
Uso: | |
python qualidade.py <nome_do_arquivo> |