<commit_before>package uk.co.cntwo.pilllogger.activities;

import uk.co.cntwo.pilllogger.R;
import uk.co.cntwo.pilllogger.R.layout;
import uk.co.cntwo.pilllogger.R.menu;
import uk.co.cntwo.pilllogger.helpers.PillHelper;
import uk.co.cntwo.pilllogger.models.Pill;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;

public class NewPillActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_newpill);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_newpill, menu);
        return true;
    }
    
    public void addPill(View view){
    	Pill pill = new Pill();
    	
    	String name = ((EditText)findViewById(R.id.name)).getText().toString();
    	EditText sizeText = (EditText)findViewById(R.id.size);
    	
    	if(sizeText != null){
	    	int size = Integer.parseInt(sizeText.getText().toString());
	    	pill.setName(name);
	    	pill.setSize(size);
	    	
	    	PillHelper.addPill(getBaseContext(), pill);    
    	}
    }
    
}
<commit_msg>Removed a using that isn't need any more<commit_after>package uk.co.cntwo.pilllogger.activities;

import uk.co.cntwo.pilllogger.R;
import uk.co.cntwo.pilllogger.R.layout;
import uk.co.cntwo.pilllogger.R.menu;
import uk.co.cntwo.pilllogger.helpers.PillHelper;
import uk.co.cntwo.pilllogger.models.Pill;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class NewPillActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_newpill);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.activity_newpill, menu);
        return true;
    }
    
    public void addPill(View view){
    	Pill pill = new Pill();
    	
    	String name = ((EditText)findViewById(R.id.name)).getText().toString();
    	EditText sizeText = (EditText)findViewById(R.id.size);
    	
    	if(sizeText != null){
	    	int size = Integer.parseInt(sizeText.getText().toString());
	    	pill.setName(name);
	    	pill.setSize(size);
	    	
	    	PillHelper.addPill(getBaseContext(), pill);    
    	}
    }
    
}

{'fraction_non_alphanumeric': 0.11272598369372563, 'fraction_numerical': 0.0, 'mean_word_length': 3.3415384615384616, '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': '5937131', 'n_tokens_mistral': 935, 'n_tokens_neox': 903, 'n_words': 177}