<commit_before>/*******************************************************************************
 * Copyright (c) 2011, 2017 Eurotech and/or its affiliates and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *******************************************************************************/
package org.eclipse.kapua.service.authorization.group.shiro;

import org.eclipse.kapua.locator.KapuaProvider;
import org.eclipse.kapua.model.id.KapuaId;
import org.eclipse.kapua.service.authorization.group.Group;
import org.eclipse.kapua.service.authorization.group.GroupCreator;
import org.eclipse.kapua.service.authorization.group.GroupFactory;
import org.eclipse.kapua.service.authorization.group.GroupListResult;
import org.eclipse.kapua.service.authorization.group.GroupQuery;
import org.eclipse.kapua.service.authorization.role.Role;
import org.eclipse.kapua.service.authorization.role.RoleListResult;
import org.eclipse.kapua.service.authorization.role.shiro.RoleImpl;
import org.eclipse.kapua.service.authorization.role.shiro.RoleListResultImpl;

/**
 * {@link GroupFactory} implementation.
 * 
 * @since 1.0.0
 */
@KapuaProvider
public class GroupFactoryImpl implements GroupFactory {

    @Override
    public GroupCreator newCreator(KapuaId scopeId, String name) {
        return new GroupCreatorImpl(scopeId, name);
    }

    @Override
    public Group newGroup(KapuaId scopeId) {
        return new GroupImpl(scopeId);
    }
    
    @Override
    public GroupListResult newGroupListResult() {
        return new GroupListResultImpl();
    }
    
    @Override
    public GroupQuery newQuery(KapuaId scopeId) {
        return new GroupQueryImpl(scopeId);
    }<commit_msg>Code and import clean up and code formatting<commit_after>/*******************************************************************************
 * Copyright (c) 2011, 2017 Eurotech and/or its affiliates and others
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Eurotech - initial API and implementation
 *******************************************************************************/
package org.eclipse.kapua.service.authorization.group.shiro;

import org.eclipse.kapua.locator.KapuaProvider;
import org.eclipse.kapua.model.id.KapuaId;
import org.eclipse.kapua.service.authorization.group.Group;
import org.eclipse.kapua.service.authorization.group.GroupCreator;
import org.eclipse.kapua.service.authorization.group.GroupFactory;
import org.eclipse.kapua.service.authorization.group.GroupListResult;
import org.eclipse.kapua.service.authorization.group.GroupQuery;

/**
 * {@link GroupFactory} implementation.
 * 
 * @since 1.0.0
 */
@KapuaProvider
public class GroupFactoryImpl implements GroupFactory {

    @Override
    public GroupCreator newCreator(KapuaId scopeId, String name) {
        return new GroupCreatorImpl(scopeId, name);
    }

    @Override
    public Group newGroup(KapuaId scopeId) {
        return new GroupImpl(scopeId);
    }

    @Override
    public GroupListResult newGroupListResult() {
        return new GroupListResultImpl();
    }

    @Override
    public GroupQuery newQuery(KapuaId scopeId) {
        return new GroupQueryImpl(scopeId);
    }
{'fraction_non_alphanumeric': 0.16908344733242134, 'fraction_numerical': 0.008207934336525308, 'mean_word_length': 4.607361963190184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1225783', 'n_tokens_mistral': 1021, 'n_tokens_neox': 972, 'n_words': 231}