<commit_before>package org.sewas.rest;

import org.sewas.domain.model.LeagueTable;
import org.sewas.exception.MatchdayNotAvailableException;
import org.sewas.exception.OpenLigaDbNotOkException;
import org.sewas.exception.SeasonNotAvailableException;
import org.sewas.service.LeagueTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sebastian on 21/05/17.
 */
@RestController
public class LeagueTableController implements ILeagueTableApi {

    @Autowired
    private LeagueTableService leagueTableService;

    @Override
    public ResponseEntity<LeagueTable> getCurrentTableForLeague(@PathVariable  String leagueID, @PathVariable String season) throws SeasonNotAvailableException, OpenLigaDbNotOkException {
        return new ResponseEntity<>(this.leagueTableService.returnCurrentLeagueTable(leagueID, season), HttpStatus.OK);
    }

    @Override
    public ResponseEntity<LeagueTable> getLeagueTableForMatchDay(@PathVariable String leagueID, @PathVariable String season, @PathVariable String matchday) throws MatchdayNotAvailableException, OpenLigaDbNotOkException {
        return new ResponseEntity<>(this.leagueTableService.returnMatchdayLeagueTable(leagueID, season, matchday), HttpStatus.OK);
    }
<commit_msg>Defined PathVariable<commit_after>package org.sewas.rest;

import org.sewas.domain.model.LeagueTable;
import org.sewas.exception.MatchdayNotAvailableException;
import org.sewas.exception.OpenLigaDbNotOkException;
import org.sewas.exception.SeasonNotAvailableException;
import org.sewas.service.LeagueTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sebastian on 21/05/17.
 */
@RestController
public class LeagueTableController implements ILeagueTableApi {

    @Autowired
    private LeagueTableService leagueTableService;

    @Override
    public ResponseEntity<LeagueTable> getCurrentTableForLeague(@PathVariable(name = "leagueID")  String leagueID, @PathVariable(name = "season") String season) throws SeasonNotAvailableException, OpenLigaDbNotOkException {
        return new ResponseEntity<>(this.leagueTableService.returnCurrentLeagueTable(leagueID, season), HttpStatus.OK);
    }

    @Override
    public ResponseEntity<LeagueTable> getLeagueTableForMatchDay(@PathVariable(name = "leagueID") String leagueID, @PathVariable(name = "season") String season, @PathVariable(name = "matchday") String matchday) throws MatchdayNotAvailableException, OpenLigaDbNotOkException {
        return new ResponseEntity<>(this.leagueTableService.returnMatchdayLeagueTable(leagueID, season, matchday), HttpStatus.OK);
    }

{'fraction_non_alphanumeric': 0.08333333333333333, 'fraction_numerical': 0.00392156862745098, 'mean_word_length': 6.848717948717948, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3135759', 'n_tokens_mistral': 825, 'n_tokens_neox': 792, 'n_words': 156}