<commit_before>package com.androidsx.rateme.demo1;

import android.app.Activity;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import androidcourse.t4.t6.R;

import com.androidsx.rateme.RateMeDialogTimer;
import com.androidsx.rateme.DialogRateMe;

public class SampleProject extends Activity {
    private Button buttonRateMe;
    private static final String MY_PACKAGE_NAME = "com.androidsx.smileys";
    private static final String EMAIL = "<EMAIL>";
    private static final int INSTALL_DAYS = 20;
    private static final int LAUNCH_TIMES = 5;
    
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_contacts); 
		buttonRateMe = (Button)findViewById(R.id.buttonrateme);		
		buttonRateMe.setOnClickListener(new OnClickListener() {          
            @Override
            public void onClick(View v) {
                AlertMenu();            
            }
        });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.delete, menu);
		return true;
	}
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Take appropriate action for each action item click

		switch (item.getItemId()) {
		case R.id.RateMe:
		    AlertMenu();

		default:
			return super.onOptionsItemSelected(item);
		}
	}
	
    @Override
    protected void onStart() {
        super.onStart();
        RateMeDialogTimer rateDialog = new RateMeDialogTimer(INSTALL_DAYS,LAUNCH_TIMES);
        RateMeDialogTimer.onStart(this);
        if (RateMeDialogTimer.shouldShowRateDialog(this)) {
            DialogFragment dialogo = DialogRateMe.newInstance(
                    MY_PACKAGE_NAME,EMAIL);
            dialogo.show(getFragmentManager(), "dialog");
        }
        
    }
	
    private void AlertMenu (){
	    DialogFragment dialogo = DialogRateMe.newInstance(
	            MY_PACKAGE_NAME,EMAIL);
        dialogo.show(getFragmentManager(), "dialog");
	}
}<commit_msg>change objext dialogo to dialog<commit_after>package com.androidsx.rateme.demo1;

import android.app.Activity;
import android.app.DialogFragment;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import androidcourse.t4.t6.R;

import com.androidsx.rateme.RateMeDialogTimer;
import com.androidsx.rateme.DialogRateMe;

public class SampleProject extends Activity {
    private Button buttonRateMe;
    private static final String MY_PACKAGE_NAME = "com.androidsx.smileys";
    private static final String EMAIL = "<EMAIL>";
    private static final int INSTALL_DAYS = 20;
    private static final int LAUNCH_TIMES = 5;
    
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_contacts); 
		buttonRateMe = (Button)findViewById(R.id.buttonrateme);		
		buttonRateMe.setOnClickListener(new OnClickListener() {          
            @Override
            public void onClick(View v) {
                AlertMenu();            
            }
        });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.delete, menu);
		return true;
	}
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Take appropriate action for each action item click

		switch (item.getItemId()) {
		case R.id.RateMe:
		    AlertMenu();

		default:
			return super.onOptionsItemSelected(item);
		}
	}
	
    @Override
    protected void onStart() {
        super.onStart();
        RateMeDialogTimer rateDialog = new RateMeDialogTimer(INSTALL_DAYS,LAUNCH_TIMES);
        RateMeDialogTimer.onStart(this);
        if (RateMeDialogTimer.shouldShowRateDialog(this)) {
            DialogFragment dialog = DialogRateMe.newInstance(
                    MY_PACKAGE_NAME,EMAIL);
            dialog.show(getFragmentManager(), "dialog");
        }
        
    }
	
    private void AlertMenu (){
	    DialogFragment dialog = DialogRateMe.newInstance(
	            MY_PACKAGE_NAME,EMAIL);
	    dialog.show(getFragmentManager(), "dialog");
	}
}
{'fraction_non_alphanumeric': 0.09076751946607342, 'fraction_numerical': 0.0026696329254727474, 'mean_word_length': 3.257575757575758, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4626203', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1277, 'n_words': 292}