<commit_before>package no.cantara.csdb.cs_application;

import javax.annotation.security.RolesAllowed;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import no.cantara.csdb.Main;
import no.cantara.csdb.config.ConstantValue;
import no.cantara.csdb.cs_application.commands.CommandCreateApplication;
import no.cantara.csdb.cs_application.commands.CommandCreateApplicationConfig;
import no.cantara.csdb.cs_application.commands.CommandDeleteApplication;
import no.cantara.csdb.cs_application.commands.CommandDeleteApplicationConfig;
import no.cantara.csdb.cs_application.commands.CommandApplicationConfigForApplicationByConfigId;
import no.cantara.csdb.cs_application.commands.CommandGetAllApplicationConfigs;
import no.cantara.csdb.cs_application.commands.CommandGetAllApplications;
import no.cantara.csdb.cs_application.commands.CommandGetApplicationByArtifactId;
import no.cantara.csdb.cs_application.commands.CommandGetApplicationConfigsForApplication;
import no.cantara.csdb.cs_application.commands.CommandGetApplicationStatus;
import no.cantara.csdb.cs_application.commands.CommandGetArtifactIdByConfigId;
import no.cantara.csdb.cs_application.commands.CommandGetRemoveThisAppCheck;
import no.cantara.csdb.cs_application.commands.CommandGetRemoveThisAppConfigCheck;
import no.cantara.csdb.cs_application.commands.CommandGetTheLatestApplicationConfigForApplication;
import no.cantara.csdb.cs_application.commands.CommandUpdateApplicationConfig;
import no.cantara.csdb.errorhandling.AppException;
import no.cantara.csdb.errorhandling.AppExceptionCode;
import no.cantara.csdb.util.CommandResponseHandler;
import no.cantara.csdb.util.basecommands.BaseGetCommand;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/application")
public class ApplicationController {


	@Autowired
	public ApplicationController() {

	}

	@GET
	@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
	@RequestMapping(value = "/", method = RequestMethod.GET)<commit_msg>Using override to enforce accept in commands giving 415<commit_after>package no.cantara.csdb.cs_application;

import no.cantara.csdb.Main;
import no.cantara.csdb.cs_application.commands.*;
import no.cantara.csdb.errorhandling.AppException;
import no.cantara.csdb.errorhandling.AppExceptionCode;
import no.cantara.csdb.util.CommandResponseHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

@Controller
@RequestMapping("/application")
public class ApplicationController {


	@Autowired
	public ApplicationController() {

	}

	@GET
	@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
	@RequestMapping(value = "/", method = RequestMethod.GET)
{'fraction_non_alphanumeric': 0.09739555073250136, 'fraction_numerical': 0.0013564839934888768, 'mean_word_length': 7.695754716981132, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '534716', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1088, 'n_words': 145}