<commit_before>package com.ibm.iotf.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;

import com.ibm.iotf.client.api.Device;
import com.ibm.iotf.client.api.DeviceFactory;

import junit.framework.TestCase;

public class TestGetDevices extends TestCase {
	
	public void testGetDevices(){
		/*String deviceType = "iotsample-arduino";
		String deviceId = "00aaaaaaaa02";
		Properties opt = new Properties();
		//opt.setProperty("authKey", "<KEY>");
		//opt.setProperty("authToken", "<PASSWORD>");
		opt.put("authKey", "<KEY>");
		opt.put("authToken", <PASSWORD>");*/
		try{
			Properties opt = new Properties();
			//opt.setProperty("authKey", "<KEY>");
			//opt.setProperty("authToken", "<PASSWORD>");
			String deviceType = "";
			String deviceId = "";
			String authKey = "";
			String authToken = "";
			
			File file = new File("src/test.properties");
			FileInputStream fileInput = new FileInputStream(file);
			Properties properties = new Properties();
			properties.load(fileInput);
			fileInput.close();

			Enumeration<Object> enuKeys = properties.keys();
			
			while (enuKeys.hasMoreElements()) {
				
				String key = (String) enuKeys.nextElement();
				System.out.println(key + ": " );
				if(key.equals("deviceType") ){
					
					deviceType = properties.getProperty(key);
					
				}
				if(key.equals("deviceId")){
					deviceId = properties.getProperty(key);
					
				}
				if(key.equals("authKey")){
					authKey = properties.getProperty(key);
					
				}
				if(key.equals("authToken")){
					authToken = properties.getProperty(key);
					
				}
				//System.out.println(key + ": " + value);
			}
		
			
			
			
			//opt.put("authKey", "<KEY>");
			//opt.put("authToken", <PASSWORD>");
			
			opt.put("authKey", authKey);
			opt.put("authToken", authToken);


		DeviceFactory factory = new DeviceFactory(opt);
		//String metadata = "";
		Device[] device = factory.getDevices();
		if(device != null)
			System.out.println("Get Devices  " + device);
		else 
			System.out.println("Not able to get Device ");
		
		assertEquals("Getdevices", device != null, factory.getDevices());
		//assertEquals("A test for Hello World String", "Hello World", hello.sayHello());
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		}



}<commit_msg>Removed superfluous comments<commit_after>package com.ibm.iotf.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;

import com.ibm.iotf.client.api.Device;
import com.ibm.iotf.client.api.DeviceFactory;

import junit.framework.TestCase;

public class TestGetDevices extends TestCase {
	
	public void testGetDevices(){
		try{
			Properties opt = new Properties();
			String deviceType = "";
			String deviceId = "";
			String authKey = "";
			String authToken = "";
			
			File file = new File("src/test.properties");
			FileInputStream fileInput = new FileInputStream(file);
			Properties properties = new Properties();
			properties.load(fileInput);
			fileInput.close();

			Enumeration<Object> enuKeys = properties.keys();
			
			while (enuKeys.hasMoreElements()) {
				
				String key = (String) enuKeys.nextElement();
				System.out.println(key + ": " );
				if(key.equals("deviceType") ){
					deviceType = properties.getProperty(key);
				}
				if(key.equals("deviceId")){
					deviceId = properties.getProperty(key);
				}
				if(key.equals("authKey")){
					authKey = properties.getProperty(key);
				}
				if(key.equals("authToken")){
					authToken = properties.getProperty(key);
				}
			}
			opt.put("authKey", authKey);
			opt.put("authToken", authToken);
		DeviceFactory factory = new DeviceFactory(opt);
		//String metadata = "";
		Device[] device = factory.getDevices();
		if(device != null)
			System.out.println("Get Devices  " + device);
		else 
			System.out.println("Not able to get Device ");
		
		assertEquals("Getdevices", device != null, factory.getDevices());
		//assertEquals("A test for Hello World String", "Hello World", hello.sayHello());
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
{'fraction_non_alphanumeric': 0.152317880794702, 'fraction_numerical': 0.0009134505594884677, 'mean_word_length': 3.6744930629669157, 'pattern_counts': {'":': 3, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '966052', 'n_tokens_mistral': 1614, 'n_tokens_neox': 1328, 'n_words': 274}