<commit_before>import os
import pytest
from click.testing import CliRunner

from populus.utils.filesystem import (
    get_contracts_dir,
)

from populus.cli import main




def test_initializing_project(project_dir):
    contracts_dir = get_contracts_dir(project_dir)

    os.rmdir(contracts_dir)

    expected_paths = (
        contracts_dir,
        os.path.join(contracts_dir, 'Example.sol'),
        os.path.join(project_dir, 'tests'),
        os.path.join(project_dir, 'tests', 'test_example.py'),
        os.path.join(project_dir, 'populus.ini')
    )

    for path in expected_paths:
        assert not os.path.exists(path)

    runner = CliRunner()
    result = runner.invoke(main, ['init'])

    assert result.exit_code == 0, result.output + str(result.exception)
<commit_msg>fixi init command<commit_after>import os
import pytest
from click.testing import CliRunner

from populus.utils.filesystem import (
    get_contracts_dir,
)

from populus.cli import main




def test_initializing_project(project_dir):
    contracts_dir = get_contracts_dir(project_dir)

    os.rmdir(contracts_dir)

    expected_paths = (
        contracts_dir,
        os.path.join(contracts_dir, 'Greeter.sol'),
        os.path.join(project_dir, 'tests'),
        os.path.join(project_dir, 'tests', 'test_greeter.py'),
        os.path.join(project_dir, 'populus.ini')
    )

    for path in expected_paths:
        assert not os.path.exists(path)

    runner = CliRunner()
    result = runner.invoke(main, ['init'])

    assert result.exit_code == 0, result.output + str(result.exception)

{'fraction_non_alphanumeric': 0.10913705583756345, 'fraction_numerical': 0.0012690355329949238, 'mean_word_length': 3.4422535211267604, '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': '7533552', 'n_tokens_mistral': 526, 'n_tokens_neox': 509, 'n_words': 100}