<commit_before>package au.gov.ga.geodesy.port.adapter.rest;

import java.io.InputStreamReader;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import au.gov.ga.geodesy.domain.service.IgsSiteLogService;

@Controller
@RequestMapping("/siteLog")
public class SiteLogEndpoint {

    @SuppressWarnings("unused")
    private static final Logger log = LoggerFactory.getLogger(SiteLogEndpoint.class);

    @Autowired
    private IgsSiteLogService service;

    @RequestMapping(value = "/upload", method = RequestMethod.POST)
    public void upload(HttpServletRequest req, HttpServletResponse rsp) throws Exception {
        service.upload(new InputStreamReader(req.getInputStream()));
    }
}<commit_msg>Narrow down a throws clause<commit_after>package au.gov.ga.geodesy.port.adapter.rest;

import java.io.IOException;
import java.io.InputStreamReader;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import au.gov.ga.geodesy.domain.service.IgsSiteLogService;

@Controller
@RequestMapping("/siteLog")
public class SiteLogEndpoint {

    @SuppressWarnings("unused")
    private static final Logger log = LoggerFactory.getLogger(SiteLogEndpoint.class);

    @Autowired
    private IgsSiteLogService service;

    @RequestMapping(value = "/upload", method = RequestMethod.POST)
    public void upload(HttpServletRequest req, HttpServletResponse rsp) throws IOException {
        service.upload(new InputStreamReader(req.getInputStream()));
    }
}
{'fraction_non_alphanumeric': 0.09754948162111216, 'fraction_numerical': 0.001885014137606032, 'mean_word_length': 5.826366559485531, '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': '5028659', 'n_tokens_mistral': 580, 'n_tokens_neox': 592, 'n_words': 110}