<commit_before>package ru.thewizardplusplus.wizardbudget;

import android.content.*;
import android.widget.*;

public class BuyResetReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		Toast.makeText(context, "[BUY RESET]", Toast.LENGTH_LONG).show();
	}
}<commit_msg>Issue #77: processing broadcast.<commit_after>package ru.thewizardplusplus.wizardbudget;

import android.content.*;
import android.widget.*;

public class BuyResetReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		final Context context_copy = context;
		new Thread(
			new Runnable() {
				@Override
				public void run() {
					BuyManager buy_manager = new BuyManager(context_copy);
					buy_manager.resetMonthlyBuy();

					if (
						//Settings
						//.getCurrent(context_copy)
						//.isSmsParsingNotification()
						true
					) {
						Utils.showNotification(
							context_copy,
							context_copy.getString(R.string.app_name),
							"Monthly purchases have been reset.",
							null
						);
					}
				}
			}
		).start();
	}
}
{'fraction_non_alphanumeric': 0.10474485228290063, 'fraction_numerical': 0.0017905102954341987, 'mean_word_length': 3.472, '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': '978935', 'n_tokens_mistral': 426, 'n_tokens_neox': 324, 'n_words': 75}