<commit_before>package com.bitdecay.game.ui;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction;
import com.badlogic.gdx.scenes.scene2d.actions.MoveToAction;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.bitdecay.game.MyGame;

public class PointBurstEffect extends Group {
    final float DURATION = 2;

    public static PointBurstEffect money(String text) {
        Image moneyIcon = new Image(MyGame.ATLAS.findRegion("uiStuff/btc-512"));
        moneyIcon.setScale(0.5f);

        Image diffIcon = new Image(MyGame.ATLAS.findRegion("uiStuff/grubOff"));
        diffIcon.setScale(0.5f);

        return new PointBurstEffect(moneyIcon, diffIcon, text);
    }

    public PointBurstEffect(Image mainIcon, Image secondaryIcon, String text) {
        addActor(mainIcon);

        if (secondaryIcon != null) {
            secondaryIcon.setPosition(secondaryIcon.getWidth() * -0.55f, mainIcon.getY());
            addActor(secondaryIcon);
        }

        Label textLabel = new Label(text, new Label.LabelStyle(MyGame.FONT, Color.WHITE));
        textLabel.setFontScale(2);
        textLabel.moveBy(mainIcon.getWidth() * 0.55f , mainIcon.getHeight() / 2 - textLabel.getHeight() * 1.5f);
        addActor(textLabel);

        float screenHeight = Gdx.graphics.getHeight();
        setPosition(Gdx.graphics.getWidth() / 2, screenHeight / 2);

        MoveToAction moveTo = Actions.moveTo(getX(), screenHeight);
        moveTo.setDuration(DURATION);
        addAction(moveTo);

        AlphaAction alphaAction = Actions.alpha(0, DURATION);
        addAction(alphaAction);

        // TODO Play sound here?
    }

    @Override
    public void act(float delta) {
        super.act(delta);

        if (!hasActions()) {
            addAction(Actions.removeActor());
        }
    }
}<commit_msg>Scale fix<commit_after>package com.bitdecay.game.ui;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.scenes.scene2d.actions.AlphaAction;
import com.badlogic.gdx.scenes.scene2d.actions.MoveToAction;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.bitdecay.game.MyGame;

public class PointBurstEffect extends Group {
    final float DURATION = 2;

    public static PointBurstEffect money(String text) {
        Image moneyIcon = new Image(MyGame.ATLAS.findRegion("uiStuff/btc-512"));
        moneyIcon.setScale(0.075f);

        Image diffIcon = new Image(MyGame.ATLAS.findRegion("uiStuff/grubOff"));
        diffIcon.setScale(0.5f);

        return new PointBurstEffect(moneyIcon, diffIcon, text);
    }

    public PointBurstEffect(Image mainIcon, Image secondaryIcon, String text) {
        addActor(mainIcon);

        if (secondaryIcon != null) {
            secondaryIcon.setPosition(secondaryIcon.getWidth() * -0.55f, mainIcon.getY());
            addActor(secondaryIcon);
        }

        Label textLabel = new Label(text, new Label.LabelStyle(MyGame.FONT, Color.WHITE));
        textLabel.setFontScale(2);
        textLabel.moveBy(mainIcon.getWidth() * mainIcon.getScaleX(), mainIcon.getHeight() * mainIcon.getScaleY() / 2 - textLabel.getHeight() * 0.55f);
        addActor(textLabel);

        float screenHeight = Gdx.graphics.getHeight();
        setPosition(Gdx.graphics.getWidth() / 2, screenHeight / 2);

        MoveToAction moveTo = Actions.moveTo(getX(), screenHeight);
        moveTo.setDuration(DURATION);
        addAction(moveTo);

        AlphaAction alphaAction = Actions.alpha(0, DURATION);
        addAction(alphaAction);

        // TODO Play sound here?
    }

    @Override
    public void act(float delta) {
        super.act(delta);

        if (!hasActions()) {
            addAction(Actions.removeActor());
        }
    }
}
{'fraction_non_alphanumeric': 0.11957052220595413, 'fraction_numerical': 0.013177159590043924, 'mean_word_length': 3.1404040404040403, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5898086', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1294, 'n_words': 222}