<commit_before>package br.com.remomeurumo.controller;

import static javax.ws.rs.core.MediaType.APPLICATION_JSON;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import br.com.remomeurumo.model.Aluno;
import br.com.remomeurumo.persistence.Transactional;

/**
 * @author jardim
 */
@RequestScoped
@Transactional
@Path("resumoAlunos")
public class ResumoAlunosController {

	@Inject
	protected EntityManager em;

	@GET
	@Produces(APPLICATION_JSON)
	@Path("procurarAluno")
	public Aluno procurarAluno(@QueryParam("id") Long id) {

		Aluno aluno = em.find(Aluno.class, id);
		System.out.println("Aluno: " + aluno.getNome());
		aluno.setAlunoAtividadesTransient(aluno.getAlunoAtividades());
		aluno.setAvaliacoesTransient(aluno.getAvaliacoesTransient());
		return aluno;
	}

}
<commit_msg>Acertos finais<commit_after>package br.com.remomeurumo.controller;

import static javax.ws.rs.core.MediaType.APPLICATION_JSON;

import java.util.ArrayList;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import br.com.remomeurumo.model.Aluno;
import br.com.remomeurumo.model.AlunoAtividade;
import br.com.remomeurumo.model.AvaliacaoClinica;
import br.com.remomeurumo.persistence.Transactional;

/**
 * @author jardim
 */
@RequestScoped
@Transactional
@Path("resumoAlunos")
public class ResumoAlunosController {

	@Inject
	protected EntityManager em;

	@GET
	@Produces(APPLICATION_JSON)
	@Path("procurarAluno")
	public Aluno procurarAluno(@QueryParam("id") Long id) {

		Aluno aluno = em.find(Aluno.class, id);
		System.out.println("Aluno: " + aluno.getNome());
		aluno.setAlunoAtividadesTransient(new ArrayList<AlunoAtividade>());
		aluno.getAlunoAtividadesTransient().addAll(aluno.getAlunoAtividades());
		aluno.setAvaliacoesTransient(new ArrayList<AvaliacaoClinica>());
		aluno.getAvaliacoesTransient().addAll(aluno.getAvaliacoesTransient());
		return aluno;
	}

}

{'fraction_non_alphanumeric': 0.12369732668781151, 'fraction_numerical': 0.0, 'mean_word_length': 6.287128712871287, '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': '3524418', 'n_tokens_mistral': 829, 'n_tokens_neox': 818, 'n_words': 117}