<commit_before>#!/bin/sh

. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh

testDetectGradlew()
{
  touch ${BUILD_DIR}/gradlew
  detect
  assertAppDetected "Gradle"
}

testDetectSettingsGradle()
{
  touch ${BUILD_DIR}/settings.gradle
  detect
  assertAppDetected "Gradle"
}

testDetectBuildGradle()
{
  touch ${BUILD_DIR}/build.gradle
  detect
  assertAppDetected "Gradle"
}

testNoDetectAntProject()
{
  touch ${BUILD_DIR}/build.xml
  detect
  assertNoAppDetected
}

testNoDetectMavenProject()
{
  touch ${BUILD_DIR}/pom.xml
  detect
  assertNoAppDetected
}<commit_msg>Updated detect tests for new stderr output<commit_after>#!/bin/sh

. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh

testDetectGradlew()
{
  touch ${BUILD_DIR}/gradlew
  detect
  assertAppDetected "Gradle"
}

testDetectSettingsGradle()
{
  touch ${BUILD_DIR}/settings.gradle
  detect
  assertAppDetected "Gradle"
}

testDetectBuildGradle()
{
  touch ${BUILD_DIR}/build.gradle
  detect
  assertAppDetected "Gradle"
}

testNoDetectAntProject()
{
  touch ${BUILD_DIR}/build.xml
  detect
  assertEquals "1" "${RETURN}"
}

testNoDetectMavenProject()
{
  touch ${BUILD_DIR}/pom.xml
  detect
  assertEquals "1" "${RETURN}"
}
{'fraction_non_alphanumeric': 0.11942809083263246, 'fraction_numerical': 0.001682085786375105, 'mean_word_length': 5.16580310880829, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4634144', 'n_tokens_mistral': 460, 'n_tokens_neox': 430, 'n_words': 70}