<commit_before>package moe.minori.pgpclipper.util;

import android.support.annotation.Nullable;

/**
 * Created by Minori on 2015-10-18.
 */
public class EncryptionUtils {

    public static String byteArrayToHex (byte[] input)
    {
        StringBuilder builder = new StringBuilder();

        for ( byte one : input )
        {
            builder.append(String.format("%02X", one));
        }

        return builder.toString();
    }

    public static byte[] hexToByteArray (String input)
    {
        byte [] binary = new byte[input.length() / 2];
<commit_msg>EncryptionUtils exception handle - when input is null<commit_after>package moe.minori.pgpclipper.util;

import android.support.annotation.Nullable;

/**
 * Created by Minori on 2015-10-18.
 */
public class EncryptionUtils {

    public static String byteArrayToHex (byte[] input)
    {
        if ( input == null )
            return null;

        StringBuilder builder = new StringBuilder();

        for ( byte one : input )
        {
            builder.append(String.format("%02X", one));
        }

        return builder.toString();
    }

    public static byte[] hexToByteArray (String input)
    {
        if ( input == null )
            return null;

        byte [] binary = new byte[input.length() / 2];

{'fraction_non_alphanumeric': 0.11119751166407466, 'fraction_numerical': 0.017107309486780714, 'mean_word_length': 2.308483290488432, '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': '3315444', 'n_tokens_mistral': 376, 'n_tokens_neox': 351, 'n_words': 98}