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/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Commons Impact Metrics Downloader | |
# https://wikitech.wikimedia.org/wiki/Commons_Impact_Metrics | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
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/env python3 | |
# -*- coding: utf-8 -*- | |
from phabricator import Phabricator | |
from datetime import datetime, timedelta | |
class Task(object): | |
def __init__(self, maniphest, transactions, project, default_column, base_url): |
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/python3 | |
# -*- coding: utf-8 -*- | |
from collections import defaultdict | |
import argparse | |
import itertools | |
import random | |
import sys | |
BOOTSTRAP_SAMPLES = 100 |
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
<!-- | |
This is a sample application that shows how to use the Pageview API. | |
Read more here: https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageview_API | |
The most important code is inside the updateChart function, towards the end of the file. | |
The rest of the code is just html, css and input setup. | |
Disclaimer: This is just sample code, it has not been tested in all browsers/devices. | |
Distributed under the Unlicense: http://unlicense.org/ | |
--> |