<commit_before>package net.atos.entng.community;

import net.atos.entng.community.controllers.CommunityController;
import net.atos.entng.community.events.CommunityRepositoryEvents;
import net.atos.entng.community.filters.ManagerFilter;
import net.atos.entng.community.services.impl.DefaultCommunityService;

import org.entcore.common.events.EventStoreFactory;
import org.entcore.common.http.BaseServer;
import org.entcore.common.user.RepositoryHandler;


public class Community extends BaseServer {

	@Override
	public void start() {
		super.start();

		EventStoreFactory eventStoreFactory = EventStoreFactory.getFactory();
		eventStoreFactory.setContainer(container);
		eventStoreFactory.setVertx(vertx);
		vertx.eventBus().registerHandler("user.repository", new RepositoryHandler(new CommunityRepositoryEvents(vertx.eventBus())));

		setDefaultResourceFilter(new ManagerFilter());
		CommunityController communityController = new CommunityController();
		communityController.setCommunityService(new DefaultCommunityService());
		addController(communityController);
	}<commit_msg>fix repository events declaration<commit_after>package net.atos.entng.community;

import net.atos.entng.community.controllers.CommunityController;
import net.atos.entng.community.events.CommunityRepositoryEvents;
import net.atos.entng.community.filters.ManagerFilter;
import net.atos.entng.community.services.impl.DefaultCommunityService;

import org.entcore.common.events.EventStoreFactory;
import org.entcore.common.http.BaseServer;
import org.entcore.common.user.RepositoryHandler;


public class Community extends BaseServer {

	@Override
	public void start() {
		super.start();

		EventStoreFactory eventStoreFactory = EventStoreFactory.getFactory();
		eventStoreFactory.setContainer(container);
		eventStoreFactory.setVertx(vertx);
		setRepositoryEvents(new CommunityRepositoryEvents(vertx.eventBus()));

		setDefaultResourceFilter(new ManagerFilter());
		CommunityController communityController = new CommunityController();
		communityController.setCommunityService(new DefaultCommunityService());
		addController(communityController);
	}
{'fraction_non_alphanumeric': 0.09505882352941177, 'fraction_numerical': 0.0, 'mean_word_length': 7.821576763485477, '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': '6956178', 'n_tokens_mistral': 595, 'n_tokens_neox': 541, 'n_words': 89}