<commit_before>package io.shiftleft.joern.console

import io.shiftleft.console.BridgeBase

object AmmoniteBridge extends App with BridgeBase {

  runAmmonite(parseConfig(args))

  /**
    * Code that is executed when starting the shell
    * */
  override def predefPlus(lines: List[String]) : String = {
    val default =
      """
        |import io.shiftleft.joern.console._
        |import io.shiftleft.joern.console.Console._
        |import io.shiftleft.semanticcpg.language._
        |import io.shiftleft.dataflowengine.language._
        |
      """.stripMargin
    lines.foldLeft(default) { case (res, line) => res + s"\n$line" }
  }

  override def promptStr() : String = "joern> "<commit_msg>Add missing resolver.<commit_after>package io.shiftleft.joern.console

import io.shiftleft.console.BridgeBase

object AmmoniteBridge extends App with BridgeBase {

  runAmmonite(parseConfig(args))

  /**
    * Code that is executed when starting the shell
    * */
  override def predefPlus(lines: List[String]) : String = {
    val default =
      """
        |import io.shiftleft.joern.console._
        |import io.shiftleft.joern.console.Console._
        |import io.shiftleft.semanticcpg.language._
        |import io.shiftleft.dataflowengine.language._
        |implicit val resolver = NoResolve
        |
      """.stripMargin
    lines.foldLeft(default) { case (res, line) => res + s"\n$line" }
  }

  override def promptStr() : String = "joern> "
{'fraction_non_alphanumeric': 0.11461908030199039, 'fraction_numerical': 0.0, 'mean_word_length': 2.97275204359673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2372036', 'n_tokens_mistral': 450, 'n_tokens_neox': 442, 'n_words': 98}