Exemplo n.º 1
0
def print_stats(articles_by_lang):
    print "\t".join(["Wp_code", "Total_size", "Real_size", "real_total_ratio",
                     "adjusted_size", "articles", "avg good page length"])
    for lang in articles_by_lang:
        stats = get_stats(
            articles_by_lang[lang])
        print "\t".join(str(x) for x in [lang, stats["total_size"],
            stats["real_size"], stats["real_total_ratio"],
            stats["adjusted_size"], stats["articles"],
            stats["avg good page length"]])
Exemplo n.º 2
0
def print_stats(articles_by_lang):
    print "\t".join([
        "Wp_code", "Total_size", "Real_size", "real_total_ratio",
        "adjusted_size", "articles", "avg good page length"
    ])
    for lang in articles_by_lang:
        stats = get_stats(articles_by_lang[lang])
        print "\t".join(
            str(x) for x in [
                lang, stats["total_size"], stats["real_size"],
                stats["real_total_ratio"], stats["adjusted_size"],
                stats["articles"], stats["avg good page length"]
            ])
Exemplo n.º 3
0
def print_stats(articles_by_lang):
    for lang in articles_by_lang:
        tot_size, real_size, real_total_ratio, adjusted_size = get_stats(
            articles_by_lang[lang])
        print lang, tot_size, real_size, real_total_ratio, adjusted_size
Exemplo n.º 4
0
def print_stats(articles_by_lang):
    for lang in articles_by_lang:
        tot_size, real_size, real_total_ratio, adjusted_size = get_stats(
            articles_by_lang[lang])
        print lang, tot_size, real_size, real_total_ratio, adjusted_size