<commit_before>/*******************************************************************************
 * Copyright (c) 2014 <NAME> and other Contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    <NAME> - Initial Contribution
 *******************************************************************************/ 
#include "QuickstartClient.h"

// QuickstartClient (Constructor)
// Constructs the quickstart client, setting up an asynchronous
// MQTT client connection to the Quickstart service and the topic
// string to be used when publishing.
// @param deviceName 	- The name you wish to provide the service as an identifier.
// @param macAddress	- The MAC Address you wish to provide the service.
QuickstartClient::QuickstartClient(std::string deviceName, std::string macAddress) {
	client = std::unique_ptr<mqtt::async_client>(new mqtt::async_client("messaging.quickstart.internetofthings.ibmcloud.com:1883", "quickstart:" + macAddress));
	topic = std::string("iot-1/d/" + macAddress + "/evt/rpi-quickstart/json");
	myName = deviceName;

	if(client) {<commit_msg>Connect to iot-2 Quickstart<commit_after>/*******************************************************************************
 * Copyright (c) 2014 <NAME> and other Contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    <NAME> - Initial Contribution
 *******************************************************************************/ 
#include "QuickstartClient.h"

// QuickstartClient (Constructor)
// Constructs the quickstart client, setting up an asynchronous
// MQTT client connection to the Quickstart service and the topic
// string to be used when publishing.
// @param deviceName 	- The name you wish to provide the service as an identifier.
// @param macAddress	- The MAC Address you wish to provide the service.
QuickstartClient::QuickstartClient(std::string deviceName, std::string macAddress) {
	client = std::unique_ptr<mqtt::async_client>(new mqtt::async_client("quickstart.messaging.internetofthings.ibmcloud.com:1883", 
																		"d:quickstart:iotsample-raspberrypi:" + macAddress));
	topic = std::string("iot-2/evt/status/fmt/json");
	myName = deviceName;

	if(client) {
{'fraction_non_alphanumeric': 0.2116564417177914, 'fraction_numerical': 0.010352760736196318, 'mean_word_length': 5.317191283292979, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2806851', 'n_tokens_mistral': 714, 'n_tokens_neox': 657, 'n_words': 221}