<commit_before>#!/usr/bin/python
# -*- coding: utf-8  -*-
""" wmflabs_queries.py regroups query builder functions in order to generate queries for wmflabs databases.
"""


def category_flatt(category):
    """
    category_flattening
            List all subcategories of given category
    """
        return """SELECT page.page_title
	FROM categorylinks
	JOIN page ON page.page_id = categorylinks.cl_from
	WHERE page.page_namespace = 14 AND categorylinks.cl_to = '%s";""" % (category)


def main():
    categories = category(
        "Content_media_by_years_and_quarters_-_Supported_by_Wikimedia_France_-_2014_-_2")
    print categories

if __name__ == "__main__":
    main()<commit_msg>fix indention of return<commit_after>#!/usr/bin/python
# -*- coding: utf-8  -*-
""" wmflabs_queries.py regroups query builder functions in order to generate queries for wmflabs databases.
"""


def category_flatt(category):
    """
    category_flattening
            List all subcategories of given category
    """
    return """SELECT page.page_title
	FROM categorylinks
	JOIN page ON page.page_id = categorylinks.cl_from
	WHERE page.page_namespace = 14 AND categorylinks.cl_to = '%s";""" % (category)


def main():
    categories = category(
        "Content_media_by_years_and_quarters_-_Supported_by_Wikimedia_France_-_2014_-_2")
    print categories

if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.10549132947976879, 'fraction_numerical': 0.011560693641618497, 'mean_word_length': 3.8090277777777777, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4312661', 'n_tokens_mistral': 445, 'n_tokens_neox': 424, 'n_words': 108}