<commit_before>package com.razorpay.sampleapp;

import android.app.Activity;
import android.view.View;
import android.os.Bundle;
import android.widget.Toast;
import android.widget.Button;
import android.view.View.OnClickListener;

import com.razorpay.Checkout;
import org.json.JSONObject;

public class PaymentActivity extends Activity
{
  final String public_key = "rzp_test_1DP5mmOlF5G5ag";

  public PaymentActivity(){}

  @Override
  public void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    // payment button created by you in xml layout
    View button = (View) findViewById(R.id.pay_btn);

    // you need to pass current activity in order to let razorpay create CheckoutActivity
    final Activity activity = this;
    final CheckoutFragment co = new CheckoutFragment();
    co.setPublicKey(public_key);

    button.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View arg0) {
        try{
          JSONObject options = new JSONObject("{" +
            "description: 'Demoing Charges'," +
            "image: 'https://i.imgur.com/3g7nmJC.png'," +
            "currency: 'INR'}"
          );

          options.put("amount", "500");
          options.put("name", "<NAME>");
          options.put("prefill", new JSONObject("{email: '<EMAIL>', contact: '9876543210'}"));

          co.open(activity, options);

        } catch(Exception e){
          Toast.makeText(activity, e.getMessage(), Toast.LENGTH_SHORT).show();
          e.printStackTrace();
        }
      };
    });
  }
}<commit_msg>Updates merchant image to rzp logo<commit_after>package com.razorpay.sampleapp;

import android.app.Activity;
import android.view.View;
import android.os.Bundle;
import android.widget.Toast;
import android.widget.Button;
import android.view.View.OnClickListener;

import com.razorpay.Checkout;
import org.json.JSONObject;

public class PaymentActivity extends Activity
{
  final String public_key = "rzp_test_1DP5mmOlF5G5ag";

  public PaymentActivity(){}

  @Override
  public void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    // payment button created by you in xml layout
    View button = (View) findViewById(R.id.pay_btn);

    // you need to pass current activity in order to let razorpay create CheckoutActivity
    final Activity activity = this;
    final CheckoutFragment co = new CheckoutFragment();
    co.setPublicKey(public_key);

    button.setOnClickListener(new OnClickListener() {
      @Override
      public void onClick(View arg0) {
        try{
          JSONObject options = new JSONObject("{" +
            "description: 'Demoing Charges'," +
            "image: 'https://rzp-mobile.s3.amazonaws.com/images/rzp.png'," +
            "currency: 'INR'}"
          );

          options.put("amount", "500");
          options.put("name", "<NAME>");
          options.put("prefill", new JSONObject("{email: '<EMAIL>', contact: '9876543210'}"));

          co.open(activity, options);

        } catch(Exception e){
          Toast.makeText(activity, e.getMessage(), Toast.LENGTH_SHORT).show();
          e.printStackTrace();
        }
      };
    });
  }
}
{'fraction_non_alphanumeric': 0.1210171568627451, 'fraction_numerical': 0.011948529411764705, 'mean_word_length': 3.096612296110414, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1788896', 'n_tokens_mistral': 987, 'n_tokens_neox': 933, 'n_words': 221}