<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-

from sys import stdin

words = ' '.join([l.strip() for l in stdin]).split(' ')

found = []

for i, w in enumerate(words):
    if w not in found:
        found.append(w)
    print '%d,%d'%(i, len(found))
<commit_msg>Fixed words counter for lab2: indexing from 1, not from 0<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-

from sys import stdin

words = ' '.join([l.strip() for l in stdin]).split(' ')

found = []

for i, w in enumerate(words):
    if w not in found:
        found.append(w)
    print '%d,%d'%(i+1, len(found))

{'fraction_non_alphanumeric': 0.19087837837837837, 'fraction_numerical': 0.010135135135135136, 'mean_word_length': 3.0340136054421767, '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': '173883', 'n_tokens_mistral': 227, 'n_tokens_neox': 215, 'n_words': 66}