<commit_before>// tests that errors are properly propagated for dependsOn, map, and flatMap

lazy val root = (project in file(".")).
  settings(
    a := (baseDirectory map (b =>  if ((b / "succeed").exists) () else sys.error("fail"))).value,
    b := (a.task(at => nop dependsOn(at))).value,
    c := (a map { _ => () }).value,
    d := (a flatMap { _ => task { () } }).value
  )
lazy val a = taskKey[Unit]("")
lazy val b = taskKey[Unit]("")
lazy val c = taskKey[Unit]("")
lazy val d = taskKey[Unit]("")

lazy val input = (project in file("input")).
  settings(
    f := (inputTask { _ map { args => if (args(0) == "succeed") () else sys.error("fail") } }).evaluated,
    j := sys.error("j"),
    g := (f dependsOn(j)).evaluated,
    h := (f map { _ => IO.touch(file("h")) }).evaluated
  )
lazy val f = inputKey[Unit]("")
lazy val g = inputKey[Unit]("")
lazy val h = inputKey[Unit]("")
lazy val j = taskKey[Unit]("")
<commit_msg>Migrate actions/depends-on to fix it<commit_after>// tests that errors are properly propagated for dependsOn, map, and flatMap

lazy val root = (project in file(".")).
  settings(
    a := (baseDirectory map (b =>  if ((b / "succeed").exists) () else sys.error("fail"))).value,
    b := (a.task(at => nop dependsOn(at))).value,
    c := (a map { _ => () }).value,
    d := (a flatMap { _ => task { () } }).value
  )
lazy val a = taskKey[Unit]("")
lazy val b = taskKey[Unit]("")
lazy val c = taskKey[Unit]("")
lazy val d = taskKey[Unit]("")

lazy val input = (project in file("input")).
  settings(
    f := (if (Def.spaceDelimited().parsed.head == "succeed") () else sys.error("fail")),
    j := sys.error("j"),
    g := (f dependsOn(j)).evaluated,
    h := (f map { _ => IO.touch(file("h")) }).evaluated
  )
lazy val f = inputKey[Unit]("")
lazy val g = inputKey[Unit]("")
lazy val h = inputKey[Unit]("")
lazy val j = taskKey[Unit]("")

{'fraction_non_alphanumeric': 0.21972132904608788, 'fraction_numerical': 0.0005359056806002144, 'mean_word_length': 3.5315533980582523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '5098766', 'n_tokens_mistral': 690, 'n_tokens_neox': 682, 'n_words': 200}