<commit_before>"""
Generate an agenda for the next meeting::

    python agenda.py talks.json [number]

Skips over any talks already reviewed, then prints out a simple agenda of the
next [number] talks.

"""
import sys
import json

with open(sys.argv[1]) as fp:
    talks = json.load(fp)

try:
    num_talks = int(sys.argv[2])
except (IndexError, ValueError):
    num_talks = 12

index = 0
while "decision" in talks[index]:
    index += 1

for talk in talks[index:index+num_talks]:
    print 'http://us.pycon.org/2012/review/{id} - {name}'.format(**talk)<commit_msg>unicode fix to agenda script<commit_after>"""
Generate an agenda for the next meeting::

    python agenda.py talks.json [number]

Skips over any talks already reviewed, then prints out a simple agenda of the
next [number] talks.

"""
import sys
import json

with open(sys.argv[1]) as fp:
    talks = json.load(fp)

try:
    num_talks = int(sys.argv[2])
except (IndexError, ValueError):
    num_talks = 12

index = 0
while "decision" in talks[index]:
    index += 1

for talk in talks[index:index+num_talks]:
    print u'http://us.pycon.org/2012/review/{id} - {name}'.format(**talk)
{'fraction_non_alphanumeric': 0.1289198606271777, 'fraction_numerical': 0.017421602787456445, 'mean_word_length': 3.9313304721030042, 'pattern_counts': {'":': 0, '<': 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': '2159250', 'n_tokens_mistral': 401, 'n_tokens_neox': 382, 'n_words': 127}