<commit_before>require 'test_helper'

class IncidentsControllerTest < ActionController::TestCase
  setup do
    @incident = incidents(:one)
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:incidents)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create incident" do<commit_msg>Assert conditional display if dev warning<commit_after>require 'test_helper'

class IncidentsControllerTest < ActionController::TestCase
  setup do
    @incident = incidents(:one)
  end

  # Not sure where this should go. It only cares about application layout
  test "should render development warning banner" do
    get :index
    assert_template layout: "layouts/application"
    assert_select 'div.dev-warning', false

    Rails.env = 'development'
    get :index
    assert_template layout: "layouts/application"
    assert_select 'div.dev-warning'
  end

  test "should get index" do
    get :index
    assert_response :success
    assert_not_nil assigns(:incidents)
  end

  test "should get new" do
    get :new
    assert_response :success
  end

  test "should create incident" do
{'fraction_non_alphanumeric': 0.06706281833616298, 'fraction_numerical': 0.0, 'mean_word_length': 3.7349397590361444, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7478337', 'n_tokens_mistral': 344, 'n_tokens_neox': 330, 'n_words': 115}