<commit_before>package controllers

import javax.inject.Inject

import com.scalableminds.util.accesscontext.GlobalAccessContext
import models.team._
import play.api.Play
import play.api.i18n.MessagesApi
import play.api.libs.concurrent.Execution.Implicits._
import play.api.libs.json.Json
import play.api.mvc.Action
import play.api.Play.current

class OrganizationController @Inject()(val messagesApi: MessagesApi) extends Controller {

  def listAllOrganizations = Action.async { implicit request =>
    for {
      allOrgs <- OrganizationDAO.findAll(GlobalAccessContext)
    } yield {
      Ok(Json.toJson(allOrgs.map(org => Json.obj("id" -> org.id, "name" -> org.name, "additionalInformation" -> org.additionalInformation, "displayname" -> org.displayName))))
    }
  }

  def getOperatorData = Action.async { implicit request =>
    for {
      data <- Play.configuration.getString("operatorData").toFox
    } yield {
      Ok(Json.toJson(data))
    }
  }
}<commit_msg>use camel case for organization's displayname in JSON (#2896)<commit_after>package controllers

import javax.inject.Inject

import com.scalableminds.util.accesscontext.GlobalAccessContext
import models.team._
import play.api.Play
import play.api.i18n.MessagesApi
import play.api.libs.concurrent.Execution.Implicits._
import play.api.libs.json.Json
import play.api.mvc.Action
import play.api.Play.current

class OrganizationController @Inject()(val messagesApi: MessagesApi) extends Controller {

  def listAllOrganizations = Action.async { implicit request =>
    for {
      allOrgs <- OrganizationDAO.findAll(GlobalAccessContext)
    } yield {
      Ok(Json.toJson(allOrgs.map(org => Json.obj("id" -> org.id, "name" -> org.name, "additionalInformation" -> org.additionalInformation, "displayName" -> org.displayName))))
    }
  }

  def getOperatorData = Action.async { implicit request =>
    for {
      data <- Play.configuration.getString("operatorData").toFox
    } yield {
      Ok(Json.toJson(data))
    }
  }
}
{'fraction_non_alphanumeric': 0.11746987951807229, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 4.149870801033591, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '5206861', 'n_tokens_mistral': 615, 'n_tokens_neox': 589, 'n_words': 118}