<commit_before>package com.czequered.promocodes.controller;

import com.czequered.promocodes.model.Code;
import com.czequered.promocodes.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.hateoas.PagedResources;
import org.springframework.http.HttpEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * @author <NAME>
 */
@RestController
@RequestMapping("/v1/games/{gameId}/codes")
public class CodeController {

    private CodeService service;
    private CodesResourceAssembler assembler;

    @Autowired
    public CodeController(CodeService service, CodesResourceAssembler assembler) {
        this.service = service;
        this.assembler = assembler;
    }
<commit_msg>Allowed CORS<commit_after>package com.czequered.promocodes.controller;

import com.czequered.promocodes.model.Code;
import com.czequered.promocodes.service.CodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.hateoas.PagedResources;
import org.springframework.http.HttpEntity;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * @author <NAME>
 */
@RestController
@RequestMapping("/v1/games/{gameId}/codes")
@CrossOrigin
public class CodeController {

    private CodeService service;
    private CodesResourceAssembler assembler;

    @Autowired
    public CodeController(CodeService service, CodesResourceAssembler assembler) {
        this.service = service;
        this.assembler = assembler;
    }

{'fraction_non_alphanumeric': 0.09635173058933583, 'fraction_numerical': 0.0009354536950420954, 'mean_word_length': 5.601851851851852, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7488609', 'n_tokens_mistral': 605, 'n_tokens_neox': 601, 'n_words': 102}