<commit_before>//var dbus = module.exports = require('node-dbus');
var dbus = require('node-dbus');

module.exports = function() {
	var self = this;

	this.init = function(callback) {
		dbus.start(function() {
			self.systemBus = dbus.system_bus();
			self.manager = dbus.get_interface(self.systemBus, 'net.connman', '/', 'net.connman.Manager');
			self.properties = self.manager.GetProperties();

			console.log(self.manager);

			callback();
		});
	};

	this.__defineGetter__('AvailableTechnologies', function() {
		return self.properties.AvailableTechnologies;
	});

	this.__defineGetter__('GetState', function() {
		return self.manager.GetState();
	});

	this.__defineGetter__('OfflineMode', function() {
		return self.manager.GetProperties().OfflineMode;
	});

	this.__defineSetter__('OfflineMode', function(value) {
		return self.manager.SetProperty('OfflineMode', false);
	});
};<commit_msg>Support ConnectedTechnologies and EnabledTechnologies Properties<commit_after>//var dbus = module.exports = require('node-dbus');
var dbus = require('node-dbus');

module.exports = function() {
	var self = this;

	this.init = function(callback) {
		dbus.start(function() {
			self.systemBus = dbus.system_bus();
			self.manager = dbus.get_interface(self.systemBus, 'net.connman', '/', 'net.connman.Manager');
			self.properties = self.manager.GetProperties();

			console.log(self.manager.GetProperties());
//			console.log(self.manager);

			callback();
		});
	};

	this.__defineGetter__('AvailableTechnologies', function() {
		return self.manager.GetProperties().AvailableTechnologies;
	});

	this.__defineGetter__('EnabledTechnologies', function() {
		return self.manager.GetProperties().EnabledTechnologies;
	});

	this.__defineGetter__('ConnectedTechnologies', function() {
		return self.manager.GetProperties().ConnectedTechnologies;
	});

	this.__defineGetter__('GetState', function() {
		return self.manager.GetState();
	});

	this.__defineGetter__('OfflineMode', function() {
		return self.manager.GetProperties().OfflineMode;
	});

	this.__defineSetter__('OfflineMode', function(value) {
		return self.manager.SetProperty('OfflineMode', false);
	});
};
{'fraction_non_alphanumeric': 0.1625, 'fraction_numerical': 0.0, 'mean_word_length': 5.41246290801187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6040637', 'n_tokens_mistral': 718, 'n_tokens_neox': 662, 'n_words': 97}