<commit_before>defmodule Mix.Tasks.Phoenix.NewTest do
  use ExUnit.Case

  @app_name "photo_blog"
  @destination_path "/tmp"

  setup_all do
    Mix.Tasks.Phoenix.New.run([@app_name, @destination_path])
    on_exit fn() -> File.rm_rf(project_path) end
    :ok
  end

  test "creates files and directories" do
    expected_files = [".gitignore",
      "README.md",
      "lib",
      "lib/photo_blog.ex",
      "web/controllers/page_controller.ex",
      "web/router.ex",
      "mix.exs",
      "test",
      "test/photo_blog_test.exs",<commit_msg>Ensure temp project path does not exist deleting it prior to invoking Phoenix.New.run.<commit_after>defmodule Mix.Tasks.Phoenix.NewTest do
  use ExUnit.Case

  @app_name "photo_blog"
  @destination_path "/tmp"

  setup_all do
    File.rm_rf(project_path)
    Mix.Tasks.Phoenix.New.run([@app_name, @destination_path])
    on_exit fn() -> File.rm_rf(project_path) end
    :ok
  end

  test "creates files and directories" do
    expected_files = [".gitignore",
      "README.md",
      "lib",
      "lib/photo_blog.ex",
      "web/controllers/page_controller.ex",
      "web/router.ex",
      "mix.exs",
      "test",
      "test/photo_blog_test.exs",
{'fraction_non_alphanumeric': 0.13210702341137123, 'fraction_numerical': 0.0, 'mean_word_length': 3.0167785234899327, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5268693', 'n_tokens_mistral': 444, 'n_tokens_neox': 430, 'n_words': 82}