<commit_before>package edu.hsc.hypower.physicloud;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map.Entry;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import edu.hsc.hypower.physicloud.core.HeartBeatVerticle;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.AsyncResult;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Handler;
import io.vertx.core.Launcher;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.json.JsonObject;
import io.vertx.core.spi.cluster.ClusterManager;
import oshi.SystemInfo;

/**
 * The new PhysiCloud launching class.
 * @author <EMAIL>
 *         <EMAIL>
 */
public class PhysiCloudLauncher {

	public static void main(String[] args) {

		//		SystemInfo si = new SystemInfo();
		//		System.out.println("proc speed (MHz) = " + (si.getHardware().getProcessor().getVendorFreq() / 1E6 ));
		//		System.out.println("# processors = " + si.getHardware().getProcessor().getPhysicalProcessorCount());
		//		System.out.println("# cores = " + si.getHardware().getProcessor().getLogicalProcessorCount());

		//		DeploymentOptions options = new DeploymentOptions();

		// Read in properties file, which is JSON

		try	{

			ObjectMapper mapper = new ObjectMapper();
			String configFileName = args[0];
			JsonNode rootNode = mapper.readTree(new File(configFileName));

			String nodeIp = rootNode.get("IP").asText();											// retrieve IP	
			System.out.println("Sensor node IP Address: " + nodeIp);

			String deviceLocation = rootNode.get("Location").asText();								// retrieve location
			System.out.println("Sensor node location: " + deviceLocation);

			String secCode = rootNode.get("securityCode").asText();									// retrieve security code
			System.out.println("Sensor node security code: " + secCode);<commit_msg>This is a tester file for utilizing the OSHI library.<commit_after>package edu.hsc.hypower.physicloud;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map.Entry;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import edu.hsc.hypower.physicloud.core.HeartBeatVerticle;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.AsyncResult;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Handler;
import io.vertx.core.Launcher;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.json.JsonObject;
import io.vertx.core.spi.cluster.ClusterManager;
import oshi.SystemInfo;

/**
 * The new PhysiCloud launching class.
 * @author <EMAIL>
 *         <EMAIL>
 */
public class PhysiCloudLauncher {

	public static void main(String[] args) {

		//		SystemInfo si = new SystemInfo();
		//		System.out.println("proc speed (MHz) = " + (si.getHardware().getProcessor().getVendorFreq() / 1E6 ));
		//		System.out.println("# processors = " + si.getHardware().getProcessor().getPhysicalProcessorCount());
		//		System.out.println("# cores = " + si.getHardware().getProcessor().getLogicalProcessorCount());

		//		DeploymentOptions options = new DeploymentOptions();

		// Read in properties file, which is JSON

		try	{

			ObjectMapper mapper = new ObjectMapper();
			//String configFileName = args[0];
			JsonNode rootNode = mapper.readTree(new File("test.json"));

			String nodeIp = rootNode.get("IP").asText();											// retrieve IP	
			System.out.println("Sensor node IP Address: " + nodeIp);

			String deviceLocation = rootNode.get("Location").asText();								// retrieve location
			System.out.println("Sensor node location: " + deviceLocation);

			String secCode = rootNode.get("securityCode").asText();									// retrieve security code
			System.out.println("Sensor node security code: " + secCode);
{'fraction_non_alphanumeric': 0.13336602108359893, 'fraction_numerical': 0.0014709487619514587, 'mean_word_length': 4.284974093264249, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3106864', 'n_tokens_mistral': 1405, 'n_tokens_neox': 1259, 'n_words': 260}