<commit_before>package technologyconversations

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import scala.util.Properties._

class Books extends Simulation {

  val httpConf = http.baseURL(envOrElse("DOMAIN", "http://localhost"))
  val users = envOrElse("USERS", "100").toInt
  val usersOverSeconds = envOrElse("USERS_OVER_SECONDS", users.toString).toInt
  val maxResponseTime = envOrElse("MAX_RESPONSE_TIME", "1000").toInt
  val duration = envOrElse("DURATION", "120").toInt

  val jsonHeader = Map("Content-Type" -> "application/json")

  val scn = scenario("books")
    .during(duration) {
      .exec(
        http("books-post")
          .put("/api/v1/books")<commit_msg>Added stress duration<commit_after>package technologyconversations

import io.gatling.core.Predef._
import io.gatling.http.Predef._
import scala.concurrent.duration._
import scala.util.Properties._

class Books extends Simulation {

  val httpConf = http.baseURL(envOrElse("DOMAIN", "http://localhost"))
  val users = envOrElse("USERS", "100").toInt
  val usersOverSeconds = envOrElse("USERS_OVER_SECONDS", users.toString).toInt
  val maxResponseTime = envOrElse("MAX_RESPONSE_TIME", "1000").toInt
  val duration = envOrElse("DURATION", "120").toInt

  val jsonHeader = Map("Content-Type" -> "application/json")

  val scn = scenario("books")
    .during(duration) {
      exec(
        http("books-post")
          .put("/api/v1/books")
{'fraction_non_alphanumeric': 0.1383776414451261, 'fraction_numerical': 0.014996591683708248, 'mean_word_length': 4.477611940298507, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4251139', 'n_tokens_mistral': 508, 'n_tokens_neox': 473, 'n_words': 91}