<commit_before>package br.edu.ifpb.ifopendoors.service;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import br.edu.ifpb.ifopendoors.controller.DoorController;
import br.edu.ifpb.ifopendoors.controller.GateController;
import br.edu.ifpb.ifopendoors.controller.PersonController;
import br.edu.ifpb.ifopendoors.controller.RoomController;
import br.edu.ifpb.ifopendoors.controller.TypeRoomController;

public class IFOpenDoorsApplication extends Application {

	private Set<Object> singletons = new HashSet<Object>();
	private Set<Class<?>> empty = new HashSet<Class<?>>();

	public IFOpenDoorsApplication() {
		
		// ADD YOUR RESTFUL RESOURCES HERE
		this.singletons.add(new RoomController());
		this.singletons.add(new RestServices());
		this.singletons.add(new PersonController());
		this.singletons.add(new DoorController());
		this.singletons.add(new TypeRoomController());
		this.singletons.add(new GateController());
	}

	public Set<Class<?>> getClasses() {
		return this.empty;
	}

	public Set<Object> getSingletons() {
		return this.singletons;
	}
}<commit_msg>Ajustes Servidor<commit_after>package br.edu.ifpb.ifopendoors.service;

import java.util.HashSet;
import java.util.Set;

import javax.ws.rs.core.Application;

import org.jboss.resteasy.plugins.interceptors.CorsFilter;

import br.edu.ifpb.ifopendoors.controller.DoorController;
import br.edu.ifpb.ifopendoors.controller.GateController;
import br.edu.ifpb.ifopendoors.controller.PersonController;
import br.edu.ifpb.ifopendoors.controller.RoomController;
import br.edu.ifpb.ifopendoors.controller.TypeRoomController;

public class IFOpenDoorsApplication extends Application {

	private Set<Object> singletons = new HashSet<Object>();
	private Set<Class<?>> empty = new HashSet<Class<?>>();

	public IFOpenDoorsApplication() {
		
		CorsFilter filter = new CorsFilter();
		filter.getAllowedOrigins().add("*");
		filter.setAllowedMethods("POST, GET, DELETE, PUT, OPTIONS");
		filter.setAllowedHeaders("Content-Type, Authorization");
		
		this.singletons.add(filter);
		
		// ADD YOUR RESTFUL RESOURCES HERE
		this.singletons.add(new RoomController());
		this.singletons.add(new RestServices());
		this.singletons.add(new PersonController());
		this.singletons.add(new DoorController());
		this.singletons.add(new TypeRoomController());
		this.singletons.add(new GateController());
	}

	public Set<Class<?>> getClasses() {
		return this.empty;
	}

	public Set<Object> getSingletons() {
		return this.singletons;
	}
}
{'fraction_non_alphanumeric': 0.12822548630408892, 'fraction_numerical': 0.0, 'mean_word_length': 5.7924528301886795, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4630936', 'n_tokens_mistral': 875, 'n_tokens_neox': 794, 'n_words': 140}