<commit_before>package com.growthbeat.link.handler;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import android.content.Context;
import android.content.Intent;

import com.growthbeat.link.GrowthLink;

public class DefaultInstallReferrerReceiveHandler implements InstallReferrerReceiveHandler {

	@Override
	public void onReceive(Context context, Intent intent) {

		String referrer = intent.getStringExtra("referrer");
		if (referrer != null) {
			String decoded = "";
			try {
				decoded = URLDecoder.decode(referrer, "utf-8");
			} catch (UnsupportedEncodingException e) {
				e.printStackTrace();
			}
			if (decoded.length() > 0) {
				GrowthLink.getInstance().setInstallReferrer(decoded);
			}
		}

	}

}<commit_msg>Set null instead of empty string when install referrer is blank<commit_after>package com.growthbeat.link.handler;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import android.content.Context;
import android.content.Intent;

import com.growthbeat.link.GrowthLink;

public class DefaultInstallReferrerReceiveHandler implements InstallReferrerReceiveHandler {

	@Override
	public void onReceive(Context context, Intent intent) {

		String encodedInstallReferrer = intent.getStringExtra("referrer");
		String installReferrer = null;

		if (encodedInstallReferrer != null) {
			try {
				installReferrer = URLDecoder.decode(encodedInstallReferrer, "utf-8");
			} catch (UnsupportedEncodingException e) {
				GrowthLink.getInstance().getLogger().error("Failed to decode install referrer: " + e.getMessage());
			}
		}

		GrowthLink.getInstance().setInstallReferrer(installReferrer);

	}

}
{'fraction_non_alphanumeric': 0.10036057692307693, 'fraction_numerical': 0.0018028846153846155, 'mean_word_length': 5.283018867924528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3638485', 'n_tokens_mistral': 543, 'n_tokens_neox': 484, 'n_words': 101}