def very_active_editors_absolute_per_project():
	dygraph_fn = 'rc_very_active_editors_count_project'
	metric = 'Very active editors - Absolute - Per Project'
	next_metric = 'Very active editors - Indexed - Per Wiki'
	n_lines = 12 # wikivoyage is 10
	data = p.parse_StatisticsMonthly(metric,next_metric,n_lines)
	p.write_dygraph_file(data,dygraph_fn)
def new_editors_count():
	dygraph_fn='rc_new_editors_count'
	metric="New editors - Absolute - Per Wiki"
	next_metric="New editors - Absolute - Per Project"

	n_lines = 10

	data = p.parse_StatisticsMonthly(metric,next_metric,n_lines=n_lines)

	# write dygraph file
	p.write_dygraph_file(data,dygraph_fn)
def edit_counts():
	dygraph_fn='rc_edits_count'
	metric="Edits per month - Absolute - Per Wiki"
	next_metric="Edits per month - Absolute - Per Project"

	n_lines = 25

	data = p.parse_StatisticsMonthly(metric,next_metric,n_lines=n_lines)

	# write dygraph file
	p.write_dygraph_file(data,dygraph_fn)
def new_article_count():

	dygraph_fn='rc_new_article_count'
	metric="New articles per day - Absolute - Per Wiki"
	next_metric="New articles per day - Absolute - Per Project"

	n_lines = 25

	data = p.parse_StatisticsMonthly(metric,next_metric,n_lines=n_lines)

	# write dygraph file
	p.write_dygraph_file(data,dygraph_fn)
def article_count():

	dygraph_fn='rc_article_count'
	metric="Article count (official) - Absolute - Per Wiki"
	next_metric="Article count (official) - Absolute - Per Project"

	n_lines = 9

	data = p.parse_StatisticsMonthly(metric,next_metric,n_lines=n_lines)

	# write dygraph file
	p.write_dygraph_file(data,dygraph_fn)
def binary_files():

	dygraph_fn='rc_binary_files'
	metric="Binaries per month - Absolute"
	next_metric="Binaries per month - Indexed"

	n_lines = 20

	data = p.parse_StatisticsMonthly(metric,next_metric)

	# write dygraph file
	p.write_dygraph_file(data,dygraph_fn)
def very_active_editors():
	dygraph_fn='rc_very_active_editors_count'
	metric="Very active editors - Absolute - Per Wiki"
	next_metric="Very active editors - Absolute - Per Project"

	# n_lines = 10 # only old report card entries
	n_lines = 25 # all countries so graph can be edited using the dataset-ui

	data = p.parse_StatisticsMonthly(metric,next_metric,n_lines=n_lines)

	# Update 05/01/12: not necessary anymore
	# hack hack, the total editors in that section is incorrect as of now as it should inlcude 'commons'. 
	# hackdata = p.parse_StatisticsMonthly(metric='Very active editors - Absolute - Per Project',next_metric='Whatever....we only want 3 lines',n_lines=3)
	# replace 'All projects'
	# data['Total'] = hackdata['All projects']

	# write dygraph file
	p.write_dygraph_file(data,dygraph_fn)