<commit_before><?php

class NotifyMyAndroid
{
	var $_version = '0.0.2-php4';
	var $_obj_curl = null;
	var $_return_code;
	var $_remaining;
	var $_resetdate;
	
	var $_use_proxy = false;
	var $_proxy = null;
	var $_proxy_userpwd = null;

	var $_api_key = null;
	var $_dev_key = null;
	var $_api_domain = 'https://www.notifymyandroid.com/publicapi/';
	var $_url_verify = 'verify?apikey=%s';
	var $_url_push = 'notify';
	
	var $_params = array(			// Accessible params [key => maxsize]
		'apikey' 	=> 		48,		// User API Key.
		'developerkey' 	=>		48,		// Provider key.
		'priority' 	=> 		2,		// Range from -2 to 2.
		'application' 	=> 		254,	// Name of the app.
		'event' 	=> 		1000,	// Name of the event.
		'description' 	=> 		10000,	// Description of the event.
	);
	
	function NotifyMyAndroid($apikey=null, $verify=false, $devkey=null, $proxy=null, $userpwd=null)<commit_msg>Fix for Notify My Android for PHP7<commit_after><?php

class NotifyMyAndroid
{
	var $_version = '0.0.2-php4';
	var $_obj_curl = null;
	var $_return_code;
	var $_remaining;
	var $_resetdate;
	
	var $_use_proxy = false;
	var $_proxy = null;
	var $_proxy_userpwd = null;

	var $_api_key = null;
	var $_dev_key = null;
	var $_api_domain = 'https://www.notifymyandroid.com/publicapi/';
	var $_url_verify = 'verify?apikey=%s';
	var $_url_push = 'notify';
	
	var $_params = array(			// Accessible params [key => maxsize]
		'apikey' 	=> 		48,		// User API Key.
		'developerkey' 	=>		48,		// Provider key.
		'priority' 	=> 		2,		// Range from -2 to 2.
		'application' 	=> 		254,	// Name of the app.
		'event' 	=> 		1000,	// Name of the event.
		'description' 	=> 		10000,	// Description of the event.
	);
	
	function __construct($apikey=null, $verify=false, $devkey=null, $proxy=null, $userpwd=null)
{'fraction_non_alphanumeric': 0.15768576290414066, 'fraction_numerical': 0.02665910380034033, 'mean_word_length': 3.3341523341523343, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 2, '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': '4920359', 'n_tokens_mistral': 765, 'n_tokens_neox': 703, 'n_words': 177}