<commit_before>package org.kneelawk.simplecursemodpackdownloader.task

import java.util.concurrent.locks.ReentrantLock

import org.kneelawk.simplecursemodpackdownloader.event.EventBus
import org.kneelawk.simplecursemodpackdownloader.util.LockUtil.lock
import org.kneelawk.simplecursemodpackdownloader.util.LockUtil.tryLock

abstract class AbstractTask(eventBus: EventBus) extends Task {

  protected val children = new TaskManifest
  @volatile protected var state: EngineState = EngineState.NotStarted
  @volatile protected var lastUpdate: Long = 0
  @volatile protected var blocked: Boolean = false

  override def addChild(task: Task) {<commit_msg>Make sure lastUpdate is correct on construction<commit_after>package org.kneelawk.simplecursemodpackdownloader.task

import java.util.concurrent.locks.ReentrantLock

import org.kneelawk.simplecursemodpackdownloader.event.EventBus
import org.kneelawk.simplecursemodpackdownloader.util.LockUtil.lock
import org.kneelawk.simplecursemodpackdownloader.util.LockUtil.tryLock

abstract class AbstractTask(eventBus: EventBus) extends Task {

  protected val children = new TaskManifest
  @volatile protected var state: EngineState = EngineState.NotStarted
  @volatile protected var lastUpdate: Long = System.currentTimeMillis()
  @volatile protected var blocked: Boolean = false

  override def addChild(task: Task) {
{'fraction_non_alphanumeric': 0.06548933038999265, 'fraction_numerical': 0.0007358351729212656, 'mean_word_length': 6.640449438202247, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '422335', 'n_tokens_mistral': 398, 'n_tokens_neox': 387, 'n_words': 92}