<commit_before>package com.getshared.eStore.app;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

public class ProductDetailActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gallery);
        Intent intent = getIntent();
        final Bitmap bitmap = (Bitmap) intent.getParcelableExtra("bitmapImage1");
        final Bitmap bitmap2 = (Bitmap) intent.getParcelableExtra("bitmapImage2");
        String name = intent.getStringExtra("name");
        String price = intent.getStringExtra("price");
        final String Link = intent.getStringExtra("link");
        String productInf = intent.getStringExtra("productInfo");
        TextView productName = (TextView) findViewById(R.id._pinfo);
        TextView productPrice = (TextView) findViewById(R.id._cinfo);
        TextView productInfo = (TextView) findViewById(R.id.productdetail_info);
        productName.setText(name);
        productPrice.setText(price);
        productInfo.setText(productInf);

        final ImageView productDetailImageView = (ImageView) findViewById(R.id.productdetail_image);
        productDetailImageView.setImageBitmap(bitmap);
        final ImageView second_button = (ImageView) findViewById(R.id.test_photo2);
        second_button.setImageBitmap(bitmap);
        if (bitmap2 != null) {
            final ImageView third_button = (ImageView) findViewById(R.id.test_photo3);
            third_button.setImageBitmap(bitmap2);
            third_button.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {
                    productDetailImageView.setImageBitmap(bitmap2);
                }
            });
        } else {
            final ImageView third_button = (ImageView) findViewById(R.id.test_photo3);
            third_button.setVisibility(View.INVISIBLE);
        }
        //final ImageView four_button = (ImageView)findViewById(R.id.test_photo3);
        //final ImageView five_button = (ImageView)findViewById(R.id.test_photo1);
        //final ImageView six_button = (ImageView)findViewById(R.id.imageView1);

        second_button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
            }
        });

       /*five_button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
         	 
            }
         });
      four_button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
         	  
            }
         });
      six_button.setOnClickListener(new OnClickListener() {
          public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
          }
       });
			*/
        TextView newPage1 = (TextView) findViewById(R.id._business);
        newPage1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent();
                intent.setAction(Intent.ACTION_VIEW);
                intent.addCategory(Intent.CATEGORY_BROWSABLE);
                intent.setData(Uri.parse(Link));
                startActivity(intent);<commit_msg>Some changes in TextView Appearance in ProductDetailActivity<commit_after>package com.getshared.eStore.app;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

public class ProductDetailActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gallery);
        Intent intent = getIntent();
        final Bitmap bitmap = (Bitmap) intent.getParcelableExtra("bitmapImage1");
        final Bitmap bitmap2 = (Bitmap) intent.getParcelableExtra("bitmapImage2");
        String name = intent.getStringExtra("name");
        String price = intent.getStringExtra("price");
        final String Link = intent.getStringExtra("link");
       // String productInf = intent.getStringExtra("productInfo");
        TextView productName = (TextView) findViewById(R.id._pinfo);
        TextView productPrice = (TextView) findViewById(R.id._cinfo);
   
        productName.setText(name);
        productPrice.setText(price);
       // productInfo.setText(productInf);
        productName.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				Intent intent = getIntent();
				  String name = intent.getStringExtra("name");
				TextView productInfo = (TextView) findViewById(R.id.productdetail_info);				
				productInfo.setText(name);
			}
        	
        });
        productPrice.setOnClickListener(new OnClickListener(){

     			@Override
     			public void onClick(View v) {
     				Intent intent = getIntent();
     				String price = intent.getStringExtra("price");
     				TextView productInfo = (TextView) findViewById(R.id.productdetail_info);     				
     				productInfo.setText(price);
     			}
             	
             });

        final ImageView productDetailImageView = (ImageView) findViewById(R.id.productdetail_image);
        productDetailImageView.setImageBitmap(bitmap);
        final ImageView second_button = (ImageView) findViewById(R.id.test_photo2);
        second_button.setImageBitmap(bitmap);
        if (bitmap2 != null) {
            final ImageView third_button = (ImageView) findViewById(R.id.test_photo3);
            third_button.setImageBitmap(bitmap2);
            third_button.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {
                    productDetailImageView.setImageBitmap(bitmap2);
                }
            });
        } else {
            final ImageView third_button = (ImageView) findViewById(R.id.test_photo3);
            third_button.setVisibility(View.INVISIBLE);
        }
        //final ImageView four_button = (ImageView)findViewById(R.id.test_photo3);
        //final ImageView five_button = (ImageView)findViewById(R.id.test_photo1);
        //final ImageView six_button = (ImageView)findViewById(R.id.imageView1);

        second_button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
            }
        });
        

       /*five_button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
         	 
            }
         });
      four_button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
         	  
            }
         });
      six_button.setOnClickListener(new OnClickListener() {
          public void onClick(View v) {
                productDetailImageView.setImageBitmap(bitmap);
          }
       });
			*/
        TextView newPage1 = (TextView) findViewById(R.id._business);
        newPage1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent = new Intent();
                intent.setAction(Intent.ACTION_VIEW);
                intent.addCategory(Intent.CATEGORY_BROWSABLE);
                intent.setData(Uri.parse(Link));
                startActivity(intent);
{'fraction_non_alphanumeric': 0.09540503317891574, 'fraction_numerical': 0.0035056967572304996, 'mean_word_length': 2.5836698070883806, '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': '7055815', 'n_tokens_mistral': 2120, 'n_tokens_neox': 1971, 'n_words': 369}