<commit_before>package services
//import upickle.default._
import livelygig.shared._
import mockdata.MockFiles
import play.api.Play.current
import play.api.libs.ws._

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
//import play.libs.Json
import org.json4s.jackson.JsonMethods._
import org.json4s.jackson.Serialization.write

class ApiService extends Api {
  implicit val formats = org.json4s.DefaultFormats
  var BASE_URL = "http://localhost:9876/api"
  var CREATE_USER_REQUEST_MSG = "createUserRequest"
  var CONFIRM_EMAIL_MSG = "confirmEmailToken"
  var INITIALIZE_SESSION_MSG = "initializeSessionRequest"
  var SESSION_PING = "sessionPing"
  val wsRequest : WSRequest = WS.url(BASE_URL)


  override def createAgent(requestContent: String): Future[/*ApiResponse[CreateUserResponse]*/String] = {
    println(write(requestContent))
    WS.url(BASE_URL).post(requestContent).map(
      response=>response.body.toString
    )
  }<commit_msg>- resetting the BASE_URL to the Nirvanic hosted one<commit_after>package services
//import upickle.default._
import livelygig.shared._
import mockdata.MockFiles
import play.api.Play.current
import play.api.libs.ws._

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
//import play.libs.Json
import org.json4s.jackson.JsonMethods._
import org.json4s.jackson.Serialization.write

class ApiService extends Api {
  implicit val formats = org.json4s.DefaultFormats
  var BASE_URL = "http://192.168.3.11:9876/api"
  var CREATE_USER_REQUEST_MSG = "createUserRequest"
  var CONFIRM_EMAIL_MSG = "confirmEmailToken"
  var INITIALIZE_SESSION_MSG = "initializeSessionRequest"
  var SESSION_PING = "sessionPing"
  val wsRequest : WSRequest = WS.url(BASE_URL)


  override def createAgent(requestContent: String): Future[/*ApiResponse[CreateUserResponse]*/String] = {
    println(write(requestContent))
    WS.url(BASE_URL).post(requestContent).map(
      response=>response.body.toString
    )
  }
{'fraction_non_alphanumeric': 0.09775561097256857, 'fraction_numerical': 0.011471321695760598, 'mean_word_length': 5.249221183800623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3872999', 'n_tokens_mistral': 661, 'n_tokens_neox': 631, 'n_words': 122}