<commit_before>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pandemic.game.board.parts;

import java.awt.Color;
import java.awt.Graphics2D;
import java.util.List;
import java.awt.Point;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;

/**
 *
 * @author Pípa
 */
public class Outbreaks {

    private int count = 0;
    private final List<Point> centers = new ArrayList<>(8);
    private static final int radius = 20;

    public void addOutbreak() {
        
    }
    public Outbreaks() {
        URL cfgFile = this.getClass().getResource("/pandemic/data/board/outbreaks");
        try {
            load(cfgFile);
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
    }

    private void load(URL u) throws IOException {
        try (BufferedReader br = new BufferedReader(new InputStreamReader(u.openStream(), StandardCharsets.UTF_8))) {
            while (true) {
                String s = br.readLine();
                if (s == null) {
                    break;
                }
                s = s.trim();
                if (s.startsWith("#")) {
                    continue;
                }
                String[] parts = s.split(",");
                centers.add(new Point(Integer.valueOf(parts[0]), Integer.valueOf(parts[1])));

            }
        }
    }

    public void draw(Graphics2D g) {
        g.setColor(new Color(count * 30, 125, 125, 125));
        g.fillOval(centers.get(count).x - radius, centers.get(count).y - radius, radius * 2, radius * 2);
    }
}
<commit_msg>dded msising count++ for add outbreak<commit_after>/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pandemic.game.board.parts;

import java.awt.Color;
import java.awt.Graphics2D;
import java.util.List;
import java.awt.Point;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;

/**
 *
 * @author Pípa
 */
public class Outbreaks {

    private int count = 0;
    private final List<Point> centers = new ArrayList<>(8);
    private static final int radius = 20;

    public void addOutbreak() {
        count++;
    }

    public Outbreaks() {
        URL cfgFile = this.getClass().getResource("/pandemic/data/board/outbreaks");
        try {
            load(cfgFile);
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
    }

    private void load(URL u) throws IOException {
        try (BufferedReader br = new BufferedReader(new InputStreamReader(u.openStream(), StandardCharsets.UTF_8))) {
            while (true) {
                String s = br.readLine();
                if (s == null) {
                    break;
                }
                s = s.trim();
                if (s.startsWith("#")) {
                    continue;
                }
                String[] parts = s.split(",");
                centers.add(new Point(Integer.valueOf(parts[0]), Integer.valueOf(parts[1])));

            }
        }
    }

    public void draw(Graphics2D g) {
        g.setColor(new Color(count * 30, 125, 125, 125));
        g.fillOval(centers.get(count).x - radius, centers.get(count).y - radius, radius * 2, radius * 2);
    }
}

{'fraction_non_alphanumeric': 0.1187822777928785, 'fraction_numerical': 0.011959771677086164, 'mean_word_length': 2.1426131511528608, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4143330', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1042, 'n_words': 280}