<commit_before>package cyberpunk.core.state

import com.badlogic.gdx.graphics.g2d.Batch
import com.badlogic.gdx.math.Vector2

abstract class StateAdapter : State {

  /* State methods that absolutely must be overridden. */

  override abstract fun update(delta: Float)
  override abstract fun render(batch: Batch)
  override abstract fun dispose()

  /* State methods that may or may not be overridden. */

  override fun resize(width: Int, height: Int) {}
  override fun hide() {}
  override fun pause() {}
  override fun resume() {}

  /* State input conversion methods - can't be overridden. */

  final override fun unproject(screenCoordinates: Vector2): Vector2 {
    return StateManager.viewport.unproject(screenCoordinates)
  }<commit_msg>Add slightly more idiomatic Kotlin for empty functions<commit_after>package cyberpunk.core.state

import com.badlogic.gdx.graphics.g2d.Batch
import com.badlogic.gdx.math.Vector2

abstract class StateAdapter : State {

  /* State methods that absolutely must be overridden. */

  override abstract fun update(delta: Float)
  override abstract fun render(batch: Batch)
  override abstract fun dispose()

  /* State methods that may or may not be overridden. */

  override fun resize(width: Int, height: Int) = Unit
  override fun hide() = Unit
  override fun pause() = Unit
  override fun resume() = Unit

  /* State input conversion methods - can't be overridden. */

  final override fun unproject(screenCoordinates: Vector2): Vector2 {
    return StateManager.viewport.unproject(screenCoordinates)
  }
{'fraction_non_alphanumeric': 0.08779857972885732, 'fraction_numerical': 0.005164622336991607, 'mean_word_length': 4.201342281879195, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6077097', 'n_tokens_mistral': 449, 'n_tokens_neox': 416, 'n_words': 151}