<commit_before>package logica;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Sha1 {
    
    public static class HashTextTest {
	 
	    /**
	     * @param args
	     * @throws NoSuchAlgorithmException 
	     */
	/*public static void main(String[] args) throws NoSuchAlgorithmException {
	        System.out.println(sha1("Admin"));
	    }*/
	     
	    public static String sha1(String input) throws NoSuchAlgorithmException {
	        MessageDigest mDigest = MessageDigest.getInstance("SHA1");
	        byte[] result = mDigest.digest(input.getBytes());
	        StringBuffer sb = new StringBuffer();
	        for (int i = 0; i < result.length; i++) {
	            sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));
	        }
	         
	        return sb.toString();
	    }
	}

}<commit_msg>Tratando excepción en ves de propagarla.<commit_after>package logica;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class Sha1 {
    
    public static class HashTextTest {
	 
	    /**
	     * @param args
	     * @throws NoSuchAlgorithmException 
	     */
	/*public static void main(String[] args) throws NoSuchAlgorithmException {
	        System.out.println(sha1("Admin"));
	    }*/
	     
	    public static String sha1(String input) {
	        MessageDigest mDigest;
		try {
		    mDigest = MessageDigest.getInstance("SHA1");
		} catch (NoSuchAlgorithmException e) {
		    // TODO Auto-generated catch block
		    e.printStackTrace();
		}
	        byte[] result = mDigest.digest(input.getBytes());
	        StringBuffer sb = new StringBuffer();
	        for (int i = 0; i < result.length; i++) {
	            sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));
	        }
	         
	        return sb.toString();
	    }
	}

}
{'fraction_non_alphanumeric': 0.11445459430413756, 'fraction_numerical': 0.013970983342289092, 'mean_word_length': 2.513207547169811, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3192787', 'n_tokens_mistral': 591, 'n_tokens_neox': 524, 'n_words': 123}