<commit_before>package com.quickblox.q_municate.fcm;

import android.os.Bundle;

import com.google.firebase.messaging.RemoteMessage;
import com.quickblox.messages.services.fcm.QBFcmPushListenerService;
import com.quickblox.q_municate.utils.helpers.notification.ChatNotificationHelper;

import java.util.Map;


public class FcmPushListenerService extends QBFcmPushListenerService {
    private String TAG = FcmPushListenerService.class.getSimpleName();

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        super.onMessageReceived(remoteMessage);
    }

    @Override
    protected void sendPushMessage(Map data, String from, String message) {
        super.sendPushMessage(data, from, message);

        Bundle extras = new Bundle();
        extras.putString(ChatNotificationHelper.MESSAGE, message);
        extras.putString(ChatNotificationHelper.USER_ID, (String) data.get(ChatNotificationHelper.USER_ID));
        extras.putString(ChatNotificationHelper.DIALOG_ID, (String) data.get(ChatNotificationHelper.DIALOG_ID));

        new ChatNotificationHelper(this).parseChatMessage(extras);
    }
}<commit_msg>- fixes after reviewer's checking;<commit_after>package com.quickblox.q_municate.fcm;

import android.os.Bundle;

import com.google.firebase.messaging.RemoteMessage;
import com.quickblox.messages.services.fcm.QBFcmPushListenerService;
import com.quickblox.q_municate.utils.helpers.notification.ChatNotificationHelper;

import java.util.Map;


public class FcmPushListenerService extends QBFcmPushListenerService {
    private String TAG = FcmPushListenerService.class.getSimpleName();

    private ChatNotificationHelper chatNotificationHelper;

    public FcmPushListenerService() {
        this.chatNotificationHelper = new ChatNotificationHelper(this);
    }

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {
        super.onMessageReceived(remoteMessage);
    }

    @Override
    protected void sendPushMessage(Map data, String from, String message) {
        super.sendPushMessage(data, from, message);

        Bundle extras = new Bundle();
        extras.putString(ChatNotificationHelper.MESSAGE, message);
        extras.putString(ChatNotificationHelper.USER_ID, (String) data.get(ChatNotificationHelper.USER_ID));
        extras.putString(ChatNotificationHelper.DIALOG_ID, (String) data.get(ChatNotificationHelper.DIALOG_ID));

        chatNotificationHelper.parseChatMessage(extras);
    }
}
{'fraction_non_alphanumeric': 0.08602584814216478, 'fraction_numerical': 0.0, 'mean_word_length': 4.911694510739856, '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': '4445481', 'n_tokens_mistral': 699, 'n_tokens_neox': 672, 'n_words': 117}