<commit_before>var iotf = require("../");

var appClientConfig = {
  org: '*******',
  id: ''+Date.now(),
  "auth-key": '<KEY>',
  "auth-token": '******'
};

var appClient = new iotf.IotfApplication(appClientConfig);

//setting the log level to trace. By default its 'warn'
appClient.log.setLevel('info');

//
appClient.
getLogicalInterfaces(). then (function onSuccess (response) {
	console.log("Success");
	console.log("Number of Logical interfaces : "+response.meta.total_rows);
	console.log(response);
}, function onError (argument) {

	console.log("Fail");
	console.log(argument);
});

appClient.
addLogicalInterface("logicalInterface1", "This is my logical interface", "597b2bde52faff00019649bb"). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});


appClient.
deletePhysicalInterface('597a9f5152faff0001fdb550'). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
getLogicalInterface('597b2e1752faff000178b12a'). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
updateLogicalInterface('597b2e1752faff000178b12a',"logicalInterface2", "This is updated logical interface", "597b2bde52faff00019649bb"). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
performOperationOnLogicalInterface('597b2e1752faff000178b12a',"validate-configuration"). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
getActiveLogicalInterfaces(). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});<commit_msg>updated sample<commit_after>var iotf = require("../");

var appClientConfig = {
  org: '*******',
  id: ''+Date.now(),
  "auth-key": '<KEY>',
  "auth-token": '******'
};

var appClient = new iotf.IotfApplication(appClientConfig);

//setting the log level to trace. By default its 'warn'
appClient.log.setLevel('info');

//
appClient.
getLogicalInterfaces(). then (function onSuccess (response) {
	console.log("Success");
	console.log("Number of Logical interfaces : "+response.meta.total_rows);
	console.log(response);
}, function onError (argument) {

	console.log("Fail");
	console.log(argument);
});

appClient.
addLogicalInterface("logicalInterface1", "This is my logical interface", "597b2bde52faff00019649bb"). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});


appClient.
deleteLogicalInterface('597a9f5152faff0001fdb550'). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
getLogicalInterface('597b2e1752faff000178b12a'). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
updateLogicalInterface('597b2e1752faff000178b12a',"logicalInterface2", "This is updated logical interface", "597b2bde52faff00019649bb"). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
performOperationOnLogicalInterface('597b2e1752faff000178b12a',"validate-configuration"). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
getActiveLogicalInterfaces(). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
getActiveLogicalInterface('597b2e1752faff000178b12a'). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});

appClient.
performOperationOnActiveLogicalInterface('597b2e1752faff000178b12a','deactivate-configuration'). then (function onSuccess (response) {
	console.log("Success");
	console.log(response);
}, function onError (argument) {
	console.log("Fail");
	console.log(argument);
});
{'fraction_non_alphanumeric': 0.16832504145936983, 'fraction_numerical': 0.045190713101160865, 'mean_word_length': 6.820097244732577, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '1190896', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1553, 'n_words': 295}