<commit_before>package moe.pizza.eveapi.endpoints

import moe.pizza.eveapi.ApiRequest
import moe.pizza.eveapi.generated.eve

import scala.concurrent.{ExecutionContext, Future}
import scala.util.Try



class Eve(baseurl: String)(implicit ec: ExecutionContext) {
  def AllianceList(): Future[Try[Seq[eve.AllianceList.Row]]] = {
    new ApiRequest[eve.AllianceList.Eveapi](baseurl, "Eve/AllianceList.xml.aspx")(eve.AllianceList.AllianceListEveapiFormat).apply().map{_.map{_.result.rowset.row}}
  }
  def CharacterAffiliation(ids: Seq[String]): Future[Try[Seq[eve.CharacterAffiliation.Row]]] = {
    new ApiRequest[eve.CharacterAffiliation.Eveapi](baseurl, "Eve/CharacterAffiliation.xml.aspx", None, Map("ids" -> ids.mkString(",")))(eve.CharacterAffiliation.CharacterAffiliationEveapiFormat).
      apply().map {_.map{_.result.rowset.row}}
  }
  def CharacterID(ids: Seq[String]): Future[Try[Seq[eve.CharacterID.Row]]] = {
    new ApiRequest[eve.CharacterID.Eveapi](baseurl, "Eve/CharacterID.xml.aspx", None, Map("names" -> ids.mkString(",")))(eve.CharacterID.CharacterIDEveapiFormat).apply().map{_.map{_.result.rowset.row}}
  }
  def CharacterInfo(id: Long): Future[Try[eve.CharacterInfo.Result]] = {
    new ApiRequest[eve.CharacterInfo.Eveapi](baseurl, "Eve/CharacterInfo.xml.aspx", None, Map("characterID" -> id.toString))(eve.CharacterInfo.CharacterInfoEveapiFormat).
      apply().map{_.map{_.result}}
  }

  def CharacterName(ids: Seq[Long]): Future[Try[Seq[eve.CharacterName.Row]]] = {
    new ApiRequest[eve.CharacterName.Eveapi](baseurl, "Eve/CharacterName.xml.aspx")(eve.CharacterName.CharacterNameEveapiFormat).<commit_msg>Fixed the CharacterName endpoint<commit_after>package moe.pizza.eveapi.endpoints

import moe.pizza.eveapi.ApiRequest
import moe.pizza.eveapi.generated.eve

import scala.concurrent.{ExecutionContext, Future}
import scala.util.Try



class Eve(baseurl: String)(implicit ec: ExecutionContext) {
  def AllianceList(): Future[Try[Seq[eve.AllianceList.Row]]] = {
    new ApiRequest[eve.AllianceList.Eveapi](baseurl, "Eve/AllianceList.xml.aspx")(eve.AllianceList.AllianceListEveapiFormat).apply().map{_.map{_.result.rowset.row}}
  }
  def CharacterAffiliation(ids: Seq[String]): Future[Try[Seq[eve.CharacterAffiliation.Row]]] = {
    new ApiRequest[eve.CharacterAffiliation.Eveapi](baseurl, "Eve/CharacterAffiliation.xml.aspx", None, Map("ids" -> ids.mkString(",")))(eve.CharacterAffiliation.CharacterAffiliationEveapiFormat).
      apply().map {_.map{_.result.rowset.row}}
  }
  def CharacterID(ids: Seq[String]): Future[Try[Seq[eve.CharacterID.Row]]] = {
    new ApiRequest[eve.CharacterID.Eveapi](baseurl, "Eve/CharacterID.xml.aspx", None, Map("names" -> ids.mkString(",")))(eve.CharacterID.CharacterIDEveapiFormat).apply().map{_.map{_.result.rowset.row}}
  }
  def CharacterInfo(id: Long): Future[Try[eve.CharacterInfo.Result]] = {
    new ApiRequest[eve.CharacterInfo.Eveapi](baseurl, "Eve/CharacterInfo.xml.aspx", None, Map("characterID" -> id.toString))(eve.CharacterInfo.CharacterInfoEveapiFormat).
      apply().map{_.map{_.result}}
  }

  def CharacterName(ids: Seq[Long]): Future[Try[Seq[eve.CharacterName.Row]]] = {
    new ApiRequest[eve.CharacterName.Eveapi](baseurl, "Eve/CharacterName.xml.aspx", None, Map{"ids" -> ids.mkString(",")})(eve.CharacterName.CharacterNameEveapiFormat).
{'fraction_non_alphanumeric': 0.16566265060240964, 'fraction_numerical': 0.0, 'mean_word_length': 6.282894736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '6714767', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1132, 'n_words': 129}