<commit_before>/**
 * Copyright 2014 the original author or authors
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.wandrell.tabletop.business.model.punkapocalyptic.unit;

import java.util.Collection;

import com.wandrell.tabletop.business.model.punkapocalyptic.faction.Faction;
import com.wandrell.tabletop.business.model.punkapocalyptic.unit.event.GangListener;
import com.wandrell.tabletop.business.model.valuehandler.EditableValueHandler;
import com.wandrell.util.tag.NewInstantiable;

/**
 * Represents a band composed by a group of units, and all the other data
 * associated to it.
 * 
 * @author <NAME>
 * @version 0.1.0
 */
public interface Gang extends NewInstantiable {

    /**
     * Adds a listener for band events.
     * 
     * @param listener
     *            the listener for band events to add
     */
    public void addGangListener(final GangListener listener);

    /**
     * Adds a unit to the band.
     * 
     * @param unit
     *            the unit to add
     */
    public void addUnit(final Unit unit);

    /**
     * Removes all the units from the band.
     */
    public void clearUnits();

    @Override
    public Gang createNewInstance();

    /**
     * Returns the number of bullets globally assigned to the band.
     * 
     * @return the number of bullets globally assigned
     */
    public EditableValueHandler getBullets();

    /**
     * The band's faction.
     * 
     * @return the band's faction
     */
    public Faction getFaction();

    /**
     * The band units.
     * 
     * @return the band units
     */
    public Collection<Unit> getUnits();

    /**
     * Returns the band's valoration.
     * 
     * @return the band's valoration
     */
    public EditableValueHandler getValoration();

    /**
     * Removes a listener for band events.
     * 
     * @param listener
     *            the listener for band events to remove
     */
    public void removeGangListener(final GangListener listener);

    /**
     * Removes a unit from the band.
     * 
     * @param unit
     *            the unit to remove
     */<commit_msg>Corrected the valoration class.<commit_after>/**
 * Copyright 2014 the original author or authors
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.wandrell.tabletop.business.model.punkapocalyptic.unit;

import java.util.Collection;

import com.wandrell.tabletop.business.model.punkapocalyptic.faction.Faction;
import com.wandrell.tabletop.business.model.punkapocalyptic.unit.event.GangListener;
import com.wandrell.tabletop.business.model.valuehandler.EditableValueHandler;
import com.wandrell.tabletop.business.model.valuehandler.ValueHandler;
import com.wandrell.util.tag.NewInstantiable;

/**
 * Represents a band composed by a group of units, and all the other data
 * associated to it.
 * 
 * @author <NAME>
 * @version 0.1.0
 */
public interface Gang extends NewInstantiable {

    /**
     * Adds a listener for band events.
     * 
     * @param listener
     *            the listener for band events to add
     */
    public void addGangListener(final GangListener listener);

    /**
     * Adds a unit to the band.
     * 
     * @param unit
     *            the unit to add
     */
    public void addUnit(final Unit unit);

    /**
     * Removes all the units from the band.
     */
    public void clearUnits();

    @Override
    public Gang createNewInstance();

    /**
     * Returns the number of bullets globally assigned to the band.
     * 
     * @return the number of bullets globally assigned
     */
    public EditableValueHandler getBullets();

    /**
     * The band's faction.
     * 
     * @return the band's faction
     */
    public Faction getFaction();

    /**
     * The band units.
     * 
     * @return the band units
     */
    public Collection<Unit> getUnits();

    /**
     * Returns the band's valoration.
     * 
     * @return the band's valoration
     */
    public ValueHandler getValoration();

    /**
     * Removes a listener for band events.
     * 
     * @param listener
     *            the listener for band events to remove
     */
    public void removeGangListener(final GangListener listener);

    /**
     * Removes a unit from the band.
     * 
     * @param unit
     *            the unit to remove
     */
{'fraction_non_alphanumeric': 0.08892209975714553, 'fraction_numerical': 0.004109844946758827, 'mean_word_length': 2.492498369210698, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1377050', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1462, 'n_words': 527}