<commit_before>package net.atos.entng.rbs.events;

import org.entcore.common.sql.Sql;
import org.entcore.common.sql.SqlResult;
import org.entcore.common.sql.SqlStatementsBuilder;
import org.entcore.common.user.RepositoryEvents;
import org.vertx.java.core.Handler;
import org.vertx.java.core.json.JsonArray;
import org.vertx.java.core.json.JsonObject;
import org.vertx.java.core.logging.Logger;
import org.vertx.java.core.logging.impl.LoggerFactory;

import fr.wseduc.webutils.Either;


public class RbsRepositoryEvents implements RepositoryEvents {

	private static final Logger log = LoggerFactory.getLogger(RbsRepositoryEvents.class);
	private final boolean shareOldGroupsToUsers;

	public RbsRepositoryEvents(boolean shareOldGroupsToUsers) {
		this.shareOldGroupsToUsers = shareOldGroupsToUsers;
	}

	@Override
	public void exportResources(String exportId, String userId, JsonArray groups, String exportPath, String locale) {
		// TODO Implement export
		log.error("Event [exportResources] is not implemented");
	}

	@Override
	public void deleteGroups(JsonArray groups) {
		if (shareOldGroupsToUsers) {
			// TODO Implement shareOldGroupsToUsers
			log.error("Case [shareOldGroupsToUsers] for Event [deleteGroups] is not implemented");
			return;
		}

		if (groups != null && groups.size() > 0){
			final JsonArray groupsIds = new JsonArray();
			for (Object o : groups) {<commit_msg>fix export resources method signature<commit_after>package net.atos.entng.rbs.events;

import org.entcore.common.sql.Sql;
import org.entcore.common.sql.SqlResult;
import org.entcore.common.sql.SqlStatementsBuilder;
import org.entcore.common.user.RepositoryEvents;
import org.vertx.java.core.Handler;
import org.vertx.java.core.json.JsonArray;
import org.vertx.java.core.json.JsonObject;
import org.vertx.java.core.logging.Logger;
import org.vertx.java.core.logging.impl.LoggerFactory;

import fr.wseduc.webutils.Either;


public class RbsRepositoryEvents implements RepositoryEvents {

	private static final Logger log = LoggerFactory.getLogger(RbsRepositoryEvents.class);
	private final boolean shareOldGroupsToUsers;

	public RbsRepositoryEvents(boolean shareOldGroupsToUsers) {
		this.shareOldGroupsToUsers = shareOldGroupsToUsers;
	}

	@Override
	public void exportResources(String exportId, String userId, JsonArray groups, String exportPath, String locale, String host, final Handler<Boolean> handler) {
		// TODO Implement export
		log.error("Event [exportResources] is not implemented");
	}

	@Override
	public void deleteGroups(JsonArray groups) {
		if (shareOldGroupsToUsers) {
			// TODO Implement shareOldGroupsToUsers
			log.error("Case [shareOldGroupsToUsers] for Event [deleteGroups] is not implemented");
			return;
		}

		if (groups != null && groups.size() > 0){
			final JsonArray groupsIds = new JsonArray();
			for (Object o : groups) {
{'fraction_non_alphanumeric': 0.09701230228471001, 'fraction_numerical': 0.00070298769771529, 'mean_word_length': 5.4389140271493215, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '5831279', 'n_tokens_mistral': 882, 'n_tokens_neox': 840, 'n_words': 201}