<commit_before># Braintree .NET Client Library

The Braintree assembly provides integration access to the Braintree Gateway.

## Dependencies

* none

## Quick Start Example

    using System;
    using Braintree;

    namespace BraintreeExample
    {
        class Program
        {
            static void Main(string[] args)
            {
                var gateway = new BraintreeGateway
                {
                    Environment = Braintree.Environment.SANDBOX,
                    MerchantId = "the_merchant_id",
                    PublicKey = "a_public_key",
                    PrivateKey = "a_private_key"
                };

                TransactionRequest request = new TransactionRequest
                {
                    Amount = 1000M,
                    CreditCard = new CreditCardRequest
                    {
                        Number = "4111111111111111",
                        ExpirationDate = "05/2012"
                    }
                };

                Result<Transaction> result = gateway.Transaction.Sale(request);

                if (result.IsSuccess())
                {
                    Transaction transaction = result.Target;
                    if (transaction.Status == TransactionStatus.AUTHORIZED)
                    {
                        Console.WriteLine("Success!: " + transaction.Id);
                    }
                    else
                    {
                        Console.WriteLine("Error processing transaction:");
                        Console.WriteLine("  Status: " + transaction.Status);
                        Console.WriteLine("  Code: " + transaction.ProcessorResponseCode);
                        Console.WriteLine("  Text: " + transaction.ProcessorResponseText);
                    }
                }
                else
                {
                    foreach (ValidationError error in result.Errors.DeepAll())
                    {<commit_msg>updated README quickstart for 2.0<commit_after># Braintree .NET Client Library

The Braintree assembly provides integration access to the Braintree Gateway.

## Dependencies

* none

## Quick Start Example

    using System;
    using Braintree;

    namespace BraintreeExample
    {
        class Program
        {
            static void Main(string[] args)
            {
                var gateway = new BraintreeGateway
                {
                    Environment = Braintree.Environment.SANDBOX,
                    MerchantId = "the_merchant_id",
                    PublicKey = "a_public_key",
                    PrivateKey = "a_private_key"
                };

                TransactionRequest request = new TransactionRequest
                {
                    Amount = 1000M,
                    CreditCard = new CreditCardRequest
                    {
                        Number = "4111111111111111",
                        ExpirationDate = "05/2012"
                    }
                };

                Result<Transaction> result = gateway.Transaction.Sale(request);

                if (result.IsSuccess())
                {
                    Transaction transaction = result.Target;
                    Console.WriteLine("Success!: " + transaction.Id);
                }
                else if (result.Transaction != null)
                {
                    Transaction transaction = result.Transaction;
                    Console.WriteLine("Error processing transaction:");
                    Console.WriteLine("  Status: " + transaction.Status);
                    Console.WriteLine("  Code: " + transaction.ProcessorResponseCode);
                    Console.WriteLine("  Text: " + transaction.ProcessorResponseText);
                }
                else
                {
                    foreach (ValidationError error in result.Errors.DeepAll())
                    {
{'fraction_non_alphanumeric': 0.07032457496136012, 'fraction_numerical': 0.013910355486862442, 'mean_word_length': 1.1888387824126267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '4164984', 'n_tokens_mistral': 913, 'n_tokens_neox': 779, 'n_words': 185}