<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.cards;

import j2a.BitmapImage;
import j2a.Factory;
import j2a.GraphicsCanvas;
import pandemic.game.board.parts.tokens.City;

/**
 *
 * @author Pípa
 */
public class PlayerCard extends Card {

    public PlayerCard(BitmapImage bg, City fg) {
        super(bg, fg);
    }

    public static class EventCard extends PlayerCard {

        public EventCard(BitmapImage bg, City fg) {
            super(bg, fg);
        }
    }

    public static class Epidemy extends PlayerCard {

        public Epidemy(BitmapImage bg, City fg) {
            super(bg, fg);
        }

        @Override
        public BitmapImage getForeground() {
            BitmapImage b = j2a.Factory.BitmapImage.newBitmapImage(getBackground().getWidth(), getBackground().getHeight());
            GraphicsCanvas g2d = b.createGraphics();
            g2d.setColor(Factory.Color.getBLACK());
            g2d.drawRect(0, 0, b.getWidth() - 1, b.getHeight() - 1);
            g2d.setColor(Factory.Color.getCYAN());
            g2d.drawLine(0, 0, getBackground().getWidth(), getBackground().getHeight());
            g2d.drawLine(getBackground().getWidth(), 0, 0, getBackground().getHeight());
            return b;
        }

        @Override
        public String toString() {
            return this.getClass().getSimpleName() + " Epidemy! ";
        }

    }
}
<commit_msg>Lines in epidem cadr made wider<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.cards;

import j2a.BitmapImage;
import j2a.Factory;
import j2a.GraphicsCanvas;
import pandemic.game.board.parts.tokens.City;

/**
 *
 * @author Pípa
 */
public class PlayerCard extends Card {

    public PlayerCard(BitmapImage bg, City fg) {
        super(bg, fg);
    }

    public static class EventCard extends PlayerCard {

        public EventCard(BitmapImage bg, City fg) {
            super(bg, fg);
        }
    }

    public static class Epidemy extends PlayerCard {

        public Epidemy(BitmapImage bg, City fg) {
            super(bg, fg);
        }

        @Override
        public BitmapImage getForeground() {
            BitmapImage b = j2a.Factory.BitmapImage.newBitmapImage(getBackground().getWidth(), getBackground().getHeight());
            GraphicsCanvas g2d = b.createGraphics();
            g2d.setColor(Factory.Color.getBLACK());
            g2d.drawRect(0, 0, b.getWidth() - 1, b.getHeight() - 1);
            if (city == null){
                g2d.setColor(Factory.Color.getCYAN());
            } else {
                g2d.setColor(city.getColor());    
            }
            for (int i = 0; i < getBackground().getWidth()/6; i++) {
                g2d.drawLine(0+i, 0, getBackground().getWidth()-i, getBackground().getHeight());
                g2d.drawLine(getBackground().getWidth()-i, 0, 0+i, getBackground().getHeight());
            }
            return b;
        }

        @Override
        public String toString() {
            return this.getClass().getSimpleName() + " Epidemy! ";
        }

    }
}

{'fraction_non_alphanumeric': 0.11801426872770511, 'fraction_numerical': 0.01159334126040428, 'mean_word_length': 2.305500982318271, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3866317', 'n_tokens_mistral': 1006, 'n_tokens_neox': 963, 'n_words': 243}