<commit_before>package com.github.luksdlt92.simulacion.model.instance;

import com.github.luksdlt92.simulacion.constant.Seniority;
import com.github.luksdlt92.simulacion.fdp.ComplexityPointsDev;

public class Team {

	private static final int DAYS_PER_SPRINT = 10;
	
    private final int technology;
    private final int[] devs = new int[3];
    private final int hoursWork;

    private int estimatedPoints = 0;
    private int developedPoints = 0;

    public Team(int technology, int devsSenior, int devsSemiSenior, int devsJunior, int hoursWork) {
        this.technology = technology;
        this.devs[Seniority.JUNIOR] = devsJunior;
        this.devs[Seniority.SEMISENIOR] = devsSemiSenior;
        this.devs[Seniority.SENIOR] = devsSenior;
        this.hoursWork = hoursWork;
    }

    /**
     * Calcula los puntos estimados por el equipo para el sprint
     * Tiene que llamarse por cada sprint
     */
    public int estimateSprint() {
        /*// for each seniority
        for (int seniority = 0; seniority < devs.length; seniority++) {
            // for each dev
            for (int i = 0; i < devs[seniority]; i++) {
                estimatedPoints += ComplexityPointsDev.getEstimatedPointsPerSprint(technology, seniority);
            }
        }*/
    	
    	estimatedPoints = new Double(ComplexityPointsDev.getEstimatedPointsPerSprint(this.technology, -1) 
    			* hoursWork * DAYS_PER_SPRINT * this.cantDevs() ).intValue();
    	
    	System.out.println("Estimated points: " + new Integer(estimatedPoints).toString() );

        return estimatedPoints;
    }

    /**
     * Calcula los puntos efectivamente hechos por el equipo para el sprint
     * Tiene que llamarse por cada sprint, después de estimateSprint preferentemente
     */
    public int developSprint() {
    	
    	double developedPoints = 0;
        // for each seniority
        for (int seniority = 0; seniority < devs.length; seniority++) {
            // for each dev<commit_msg>Cambio calculo de estimatedPoints<commit_after>package com.github.luksdlt92.simulacion.model.instance;

import com.github.luksdlt92.simulacion.constant.Seniority;
import com.github.luksdlt92.simulacion.fdp.ComplexityPointsDev;

public class Team {

	private static final int DAYS_PER_SPRINT = 10;
	
    private final int technology;
    private final int[] devs = new int[3];
    private final int hoursWork;

    private int estimatedPoints = 0;
    private int developedPoints = 0;

    public Team(int technology, int devsSenior, int devsSemiSenior, int devsJunior, int hoursWork) {
        this.technology = technology;
        this.devs[Seniority.JUNIOR] = devsJunior;
        this.devs[Seniority.SEMISENIOR] = devsSemiSenior;
        this.devs[Seniority.SENIOR] = devsSenior;
        this.hoursWork = hoursWork;
    }

    /**
     * Calcula los puntos estimados por el equipo para el sprint
     * Tiene que llamarse por cada sprint
     */
    public int estimateSprint() {
        /*// for each seniority
        for (int seniority = 0; seniority < devs.length; seniority++) {
            // for each dev
            for (int i = 0; i < devs[seniority]; i++) {
                estimatedPoints += ComplexityPointsDev.getEstimatedPointsPerSprint(technology, seniority);
            }
        }*/
    	
    	/*estimatedPoints = new Double(ComplexityPointsDev.getEstimatedPointsPerSprint(this.technology, -1) 
    			* hoursWork * DAYS_PER_SPRINT * this.cantDevs() ).intValue();*/
	    
	estimatedPoints = new Double(ComplexityPointsDev.getEstimatedPointsPerSprint(this.technology, hoursWork)).intValue();
    	
    	System.out.println("Estimated points: " + new Integer(estimatedPoints).toString() );

        return estimatedPoints;
    }

    /**
     * Calcula los puntos efectivamente hechos por el equipo para el sprint
     * Tiene que llamarse por cada sprint, después de estimateSprint preferentemente
     */
    public int developSprint() {
    	
    	double developedPoints = 0;
        // for each seniority
        for (int seniority = 0; seniority < devs.length; seniority++) {
            // for each dev
{'fraction_non_alphanumeric': 0.09070958302852963, 'fraction_numerical': 0.007802974884174592, 'mean_word_length': 2.7946345975948197, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3404120', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1233, 'n_words': 314}