<commit_before><commit_msg>Create TesApplet.java<commit_after>
import java.applet.Applet;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;

/**
 * @author agaust
 * @blog bloggersmart.net - python.web.id
 */
public class TesApplet extends Applet {
    private Object fontMetrics;
    @SuppressWarnings("empty-statment")
    @Override
    public void paint(Graphics grafik) {
        Font font = new Font("sanserif", Font.BOLD, 20);
        grafik.setFont(font);
        grafik.setColor(Color.blue);
        
        int xPusat = this.getSize().width/2;
        int yPusat = this.getSize().height/2;
        
        String ucapan = "Selamat Belajar JAVA Applet";
        FontMetrics fontMetrics = this.getFontMetrics(font);
        int posisiX = xPusat-(fontMetrics.stringWidth(ucapan)/2);
        
        grafik.drawString(ucapan, xPusat, yPusat);
    }
}
{'fraction_non_alphanumeric': 0.11563876651982379, 'fraction_numerical': 0.005506607929515419, 'mean_word_length': 2.935064935064935, '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': '6928468', 'n_tokens_mistral': 306, 'n_tokens_neox': 302, 'n_words': 60}