<commit_before>package PGP_Reference_Application;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.NoSuchFileException;
import java.security.NoSuchProviderException;
import java.security.Security;

import PGP_Reference_Application.Keys.PGPEncryptionKeys;
import PGP_Reference_Application.PGPDecryption.PGPDecrypt;
import PGP_Reference_Application.PGPEncryption.PgpEncrypt;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.openpgp.PGPCompressedData;
import org.bouncycastle.openpgp.PGPEncryptedData;
import org.bouncycastle.openpgp.PGPException;
import org.bouncycastle.openpgp.PGPUtil;

/**
 * Created by gsoto on 2/25/2017.
 */
public class Program {

    private static String _keyRingHome = "C:\\keys\\Kleopatra";

    private static String publicKeyRingFilename = "pubring.gpg";

    private static String secretKeyRingFilename = "secring.gpg";

    private static String secretKeyRingPassphrase = "<PASSWORD>";

    private static String filePath = "C:\\\\Keys\\\\Files";

    private static String originalInputFile = "PlainText.txt";

    private static String encryptedFile = "JavaEncryptedData1.txt";

    private static String outputFile = "JavaOriginal.txt";

    // Used for signing
    private static int sigHashAlgorithm = PGPUtil.SHA1;

    private static String signatureKeyUserId = "Gregory Soto1 <<EMAIL>>";

    private static boolean withIntegrityCheck = true;

    private static boolean withArmor = true;

    // Used for compression
    private static int compressionAlgorithm = PGPCompressedData.ZIP;

    // Used for encryption
    private static int symmetricAlgorithm = PGPEncryptedData.AES_128;

    private static String publicKeyEncryptionUserId = "<NAME> <<EMAIL>>";

    public static void main(String[] args) {
        Security.addProvider(new BouncyCastleProvider());

        Program objPgp = new Program();
        /*if ((Debugger.IsAttached != true)) {
            _keyRingHome = Environment.GetEnvironmentVariable("GNUPGHOME");
        }*/

        try{

            objPgp.encryption();
            //objPgp.decryption();
        }
        catch(Exception ex){
            System.out.println("Something went wrong");
            System.out.println(ex.getMessage());<commit_msg>Update Program.java<commit_after>package PGP_Reference_Application;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.file.NoSuchFileException;
import java.security.NoSuchProviderException;
import java.security.Security;

import PGP_Reference_Application.Keys.PGPEncryptionKeys;
import PGP_Reference_Application.PGPDecryption.PGPDecrypt;
import PGP_Reference_Application.PGPEncryption.PgpEncrypt;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.openpgp.PGPCompressedData;
import org.bouncycastle.openpgp.PGPEncryptedData;
import org.bouncycastle.openpgp.PGPException;
import org.bouncycastle.openpgp.PGPUtil;

/**
 * Created by gsoto on 2/25/2017.
 */
public class Program {

    private static String _keyRingHome = "C:\\keys\\Kleopatra";

    private static String publicKeyRingFilename = "pubring.gpg";

    private static String secretKeyRingFilename = "secring.gpg";

    private static String secretKeyRingPassphrase = "<PASSWORD>";

    private static String filePath = "C:\\\\Keys\\\\Files";

    private static String originalInputFile = "PlainText.txt";

    private static String encryptedFile = "JavaEncryptedData1.txt";

    private static String outputFile = "JavaOriginal.txt";

    // Used for signing
    private static int sigHashAlgorithm = PGPUtil.SHA1;

    private static String signatureKeyUserId = "<NAME> <<EMAIL>>";

    private static boolean withIntegrityCheck = true;

    private static boolean withArmor = true;

    // Used for compression
    private static int compressionAlgorithm = PGPCompressedData.ZIP;

    // Used for encryption
    private static int symmetricAlgorithm = PGPEncryptedData.AES_128;

    private static String publicKeyEncryptionUserId = "<NAME> <<EMAIL>>";

    public static void main(String[] args) {
        Security.addProvider(new BouncyCastleProvider());

        Program objPgp = new Program();
        /*if ((Debugger.IsAttached != true)) {
            _keyRingHome = Environment.GetEnvironmentVariable("GNUPGHOME");
        }*/

        try{

            objPgp.encryption();
            //objPgp.decryption();
        }
        catch(Exception ex){
            System.out.println("Something went wrong");
            System.out.println(ex.getMessage());
{'fraction_non_alphanumeric': 0.09470100021281123, 'fraction_numerical': 0.005320280910832092, 'mean_word_length': 3.906054279749478, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '2279748', 'n_tokens_mistral': 1374, 'n_tokens_neox': 1308, 'n_words': 303}