<commit_before>package table;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.net.URL;
import java.util.Properties;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;

public class WelcomeWindow implements Runnable {
	
	private JFrame frame;
	private String fileName="image.png";
	
	public void run() {
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		int a=screenSize.width/2-250;
		int b=screenSize.height/2-250;
		
	    frame = new JFrame("ӭʹд");
		frame.setBounds(a-80, b, 500, 500);
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		URL base = this.getClass().getResource(fileName);	
		
		//Properties property= System.getProperties();
		
		//String classPath=property.get("java.class.path").toString();
		
		
		//String path=base.toString().substring(6).replace("Drawing/bin/table/", "").replace("le:/","").replace("drawing.jar!/table/","")+"Image/image.gif";
		String path=base.getPath();
		System.out.println(path);
		//System.out.println("classPath is:"+classPath);
		JLabel lable=new JLabel(new ImageIcon(base));
		lable.setSize(500, 500);
			
		lable.setVisible(true);
		
		
		frame.add(lable, BorderLayout.CENTER);
		frame.pack();
		frame.setVisible(true);
		//JOptionPane.showMessageDialog(frame, path+"\n");
		
	}

}
<commit_msg>作业提交成功了已经<commit_after>package table;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class WelcomeWindow implements Runnable {
	
	private JFrame frame;
	private String fileName="image.png";
	
	public void run() {
		Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
		int a=screenSize.width/2-250;
		int b=screenSize.height/2-250;
		
	    frame = new JFrame("ӭʹд");
		frame.setBounds(a-80, b, 500, 500);
		frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		
		URL base = this.getClass().getResource(fileName);	
		
		//Properties property= System.getProperties();
		
		//String classPath=property.get("java.class.path").toString();
		
		
		//String path=base.toString().substring(6).replace("Drawing/bin/table/", "").replace("le:/","").replace("drawing.jar!/table/","")+"Image/image.gif";
		String path=base.getPath();
		System.out.println(path);
		//System.out.println("classPath is:"+classPath);
		JLabel lable=new JLabel(new ImageIcon(base));
		lable.setSize(500, 500);
			
		lable.setVisible(true);
		
		
		frame.add(lable, BorderLayout.CENTER);
		frame.pack();
		frame.setVisible(true);
		//JOptionPane.showMessageDialog(frame, path+"\n");
		
	}

}

{'fraction_non_alphanumeric': 0.15038864481243663, 'fraction_numerical': 0.01554579249746536, 'mean_word_length': 3.8366013071895426, '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': '6512608', 'n_tokens_mistral': 1110, 'n_tokens_neox': 980, 'n_words': 160}