GithubHelp home page GithubHelp logo

wikimedia / labs-tools-awmd-stats Goto Github PK

View Code? Open in Web Editor NEW
4.0 15.0 4.0 1.87 MB

Github mirror of "labs/tools/awmd-stats" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

License: MIT License

Python 19.53% Shell 1.28% CSS 6.91% JavaScript 3.25% HTML 69.03%

labs-tools-awmd-stats's Introduction

awmd-stats License: MIT

Africa Wikimedia Developer (AWMD) statisitics tool is meant for gathering monthly statistics of African technical contributors into Wikimedia projects such as; MediaWiki, MediaWiki extensions, etc. For more information see: https://www.mediawiki.org/wiki/Awmd-stats

Ranking method

The tool uses a method to rank different contributors based on their patches and the state of the patch. Assume "m" is the number of patches merged and "n" is the number of patches under review, the formula is:

points = (2 x m) + n

Requirements

Clone project

git clone ssh://<USERNAME>@gerrit.wikimedia.org:29418/labs/tools/awmd-stats

Setup and documentation

Install application dependencies and regenerate documentation using the setup.sh script:

./setup.sh

The above script attempts to check system requirements and tell informs user on next steps.

Quickstart the tool

export FLASK_APP=flasky.py
flask run

Read the code documentations

To view documentation of the codes which makes use of the docstrings, use this endpoint

On localhost

localhost:5000/docs/index

On Toolforge server

https://tools.wmflabs.org/awmd-stats/docs/index

Testing the tool

pip install pytest

Then run the command below (make sure you're in the project's root for example):

py.test -v tests/

NOTE: If you find any failing test, report on Phabricator here: https://phabricator.wikimedia.org/project/board/2858/.

Coding conventions

The contributors to this tool are strongly encouraged to use the following coding guidelines:

Track your contributions

  • You want your contributions to be tracked by this tool? Nicely add your information in the contributors.json in the JSON format and the tool will automatically run a cron to fetch your contributions.

Contributors

License

This project is open source and available under the MIT License.

labs-tools-awmd-stats's People

Contributors

3to1null avatar ahipeau avatar ammarpad avatar anyijonathan avatar arcayn avatar brendajerop avatar didicodes avatar ifeanyijasper avatar kizule avatar mahveotm avatar refeed avatar rolandekouakou avatar rosalieper avatar samuelguebo avatar sfarida avatar somechris avatar sunboy005 avatar tybanash avatar xsavitar avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.