<commit_before>package hu.eltesoft.modelexecution.ide.common;

import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IStartup;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class PluginLogger implements BundleActivator, IStartup {

	private static final String PLUGIN_ID = "hu.eltesoft.modelexecution.logger";
	
	private static ILog log = null;

	public static void log(IStatus status) {
		if (log != null) {
			log.log(status);
		}
	}

	public static void logError(String msg, Throwable e) {
		log(new Status(IStatus.ERROR, PLUGIN_ID, msg, e));
	}

	public static void logError(String msg) {
		log(new Status(IStatus.ERROR, PLUGIN_ID, msg));
	}

	public static void logInfo(String msg) {
		log(new Status(IStatus.INFO, PLUGIN_ID, msg));
	}
	
	public void earlyStartup() {
		PluginLogger.log = Platform.getLog(Platform.getBundle(PLUGIN_ID));
	}

	public void start(BundleContext context) throws Exception {
		// TODO Auto-generated method stub
		
	}

	public void stop(BundleContext context) throws Exception {
		// TODO Auto-generated method stub
		
	}
}<commit_msg>corrected plugin name<commit_after>package hu.eltesoft.modelexecution.ide.common;

import org.eclipse.core.runtime.ILog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.IStartup;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

public class PluginLogger implements BundleActivator, IStartup {

	private static final String PLUGIN_ID = "hu.eltesoft.modelexecution.ide.common";
	
	private static ILog log = null;

	public static void log(IStatus status) {
		if (log != null) {
			log.log(status);
		}
	}

	public static void logError(String msg, Throwable e) {
		log(new Status(IStatus.ERROR, PLUGIN_ID, msg, e));
	}

	public static void logError(String msg) {
		log(new Status(IStatus.ERROR, PLUGIN_ID, msg));
	}

	public static void logInfo(String msg) {
		log(new Status(IStatus.INFO, PLUGIN_ID, msg));
	}
	
	@Override
	public void earlyStartup() {
		PluginLogger.log = Platform.getLog(Platform.getBundle(PLUGIN_ID));
	}

	@Override
	public void start(BundleContext context) throws Exception {
	}

	@Override
	public void stop(BundleContext context) throws Exception {
	}
}
{'fraction_non_alphanumeric': 0.10616578195181707, 'fraction_numerical': 0.0, 'mean_word_length': 4.805687203791469, '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': '5665578', 'n_tokens_mistral': 845, 'n_tokens_neox': 791, 'n_words': 191}