<commit_before>import openliveq as olq
import pytest
import os
from .test_base import TestBase

class TestCollection(TestBase):
    def test_df(self, c):
        result = c.df
        assert result["社会保険事務所"] == 1
        assert result["国民年金"] == 8

    def test_cf(self, c):
        result = c.cf
        assert result["社会保険事務所"] > 1
        assert result["国民年金"] > 8

    @pytest.fixture
    def c(self, parsed_questions):
        result = olq.Collection()
        for ws in parsed_questions:
            result.add(ws)
        return result<commit_msg>Update test for collection<commit_after>import openliveq as olq
import pytest
import os
from .test_base import TestBase

class TestCollection(TestBase):
    def test_df(self, c):
        result = c.df
        assert result["社会保険事務所"] == 1
        assert result["国民年金"] == 4

    def test_cf(self, c):
        result = c.cf
        assert result["社会保険事務所"] > 1
        assert result["国民年金"] > 4

    @pytest.fixture
    def c(self, parsed_questions):
        result = olq.Collection()
        for ws in parsed_questions:
            result.add(ws)
        return result
{'fraction_non_alphanumeric': 0.09795191451469279, 'fraction_numerical': 0.007123775601068566, 'mean_word_length': 2.3855421686746987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2940093', 'n_tokens_mistral': 388, 'n_tokens_neox': 373, 'n_words': 100}