示例#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"]])
示例#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"]
            ])
示例#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
示例#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