<commit_before>var widget_push = {
  _push: null,
  elements: null,
  init: function () {
  	_push=this;
  	_push.elements = $('div[data-type="push"]');
 	_push.elements.each(function(index) {

		var device = $(this).data('device');
		$(this).data('cmd', $(this).data('cmd') || 'set');
		var elem = $(this).famultibutton({
			backgroundIcon: 'fa-circle-thin',
			offColor: '#505050',
			onColor: '#aa6900',
			mode: 'push', 
			
			// Called in toggle on state.
			toggleOn: function( ) {
				  if( device && typeof device != "undefined") {
					 var cmd = [$(this).data('cmd'), device, $(this).data('set')].join(' ');
				     setFhemStatus(cmd);
				     TOAST && $.toast(cmd);
				   }<commit_msg>Verwendung als data-cmd="{perlSub()}"<commit_after>var widget_push = {
  _push: null,
  elements: null,
  init: function () {
  	_push=this;
  	_push.elements = $('div[data-type="push"]');
 	_push.elements.each(function(index) {

		var device = $(this).data('device');
		$(this).data('cmd', $(this).data('cmd') || 'set');
		var elem = $(this).famultibutton({
			backgroundIcon: 'fa-circle-thin',
			offColor: '#505050',
			onColor: '#aa6900',
			mode: 'push', 
			
			// Called in toggle on state.
			toggleOn: function( ) {
				var cmd = [$(this).data('cmd'), device, $(this).data('set')].join(' ');
				setFhemStatus(cmd);
				if( device && typeof device != "undefined") {
					TOAST && $.toast(cmd);
				}
{'fraction_non_alphanumeric': 0.2159090909090909, 'fraction_numerical': 0.014204545454545454, 'mean_word_length': 3.430817610062893, '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': '2437447', 'n_tokens_mistral': 590, 'n_tokens_neox': 493, 'n_words': 100}