Ejemplo 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"]])
Ejemplo 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"]
            ])
Ejemplo 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
Ejemplo 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