<commit_before>package eu.choreos.signal.sender;

class SignalSender {
	
	native int sendSignalByPID(int pid, int sig);
	native int sendSignalByProcessName(String name, int sig);

	static {
		System.loadLibrary("signalsender");
	}

	public static void main(String[] args) {

		SignalSender sigsender = new SignalSender();

		/*
		 Example of uses

		 sendsignal <signal> -n name -s 1
		 sendsignal <signal> -p pid -s 1 
		*/

		if(args.length != 5) {
			System.out.println("Usage: TODO");
			return;

		}

		if( args[1] == "-n" ) {
			sigsender.sendSignalByProcessName(args[2], Integer.parseInt(args[4]));
		}
		else if ( args[1] == "-p" ) {
			sigsender.sendSignalByPID(Integer.parseInt(args[2]), Integer.parseInt(args[4]));
		}
	}
}<commit_msg>using NarSystem to load the library<commit_after>package eu.choreos.signal.sender;

class SignalSender {
	
	native int sendSignalByPID(int pid, int sig);
	native int sendSignalByProcessName(String name, int sig);

	static {
		NarSystem.loadLibrary();
	}

	public static void main(String[] args) {

		SignalSender sigsender = new SignalSender();

		/*
		 Example of uses

		 sendsignal <signal> -n name -s 1
		 sendsignal <signal> -p pid -s 1 
		*/

		if(args.length != 5) {
			System.out.println("Usage: TODO");
			return;

		}

		if( args[1] == "-n" ) {
			sigsender.sendSignalByProcessName(args[2], Integer.parseInt(args[4]));
		}
		else if ( args[1] == "-p" ) {
			sigsender.sendSignalByPID(Integer.parseInt(args[2]), Integer.parseInt(args[4]));
		}
	}
}
{'fraction_non_alphanumeric': 0.14770459081836326, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 3.7, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1793145', 'n_tokens_mistral': 597, 'n_tokens_neox': 517, 'n_words': 121}