<commit_before>package se.z_app.zmote.gui;


import se.z_app.stb.api.RemoteControl;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.ImageView;

public class SplashActivity extends Activity {

	// At the start, we are going to use just some time, then we will use
	// other condition (modules load finish, for example.)
	// Set the display time, in milliseconds (or extract it out as a configurable parameter)
    private final int SPLASH_DISPLAY_LENGTH = 1000;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_splash, menu);
        return true;
    }
 
    @Override
    protected void onResume() {
    	
        super.onResume();

        // To do here
        // Access the BD
        // Get the operator logo
        // Set @id/opLogo to the image we get
        ImageView iView = (ImageView) findViewById(R.id.opLogo);
        iView.setImageResource(R.drawable.tele2);
        
        new Handler().postDelayed(new Runnable() {
        	
            
            public void run() {
				RemoteControl.instance();
                //Finish the splash activity so it can't be returned to.
                SplashActivity.this.finish();
                // Create an Intent that will start the main activity.
                Intent mainIntent = new Intent(SplashActivity.this, SelectSTBActivity.class);
                SplashActivity.this.startActivity(mainIntent);
                
            }
        }, SPLASH_DISPLAY_LENGTH);
    }
}
<commit_msg>SplashActivity code updated according to Java Standard<commit_after>package se.z_app.zmote.gui;


import se.z_app.stb.api.RemoteControl;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.widget.ImageView;


/**
 * First screen loaded with the current STB logo and loading animation
 * @author Francisco
 *
 */
public class SplashActivity extends Activity {
	/* TODO
	 * Right now we're using some established time
	 * We should figure out when to leave the screen
	 *  (modules load finish, for example.)
	 * Set the display time, in milliseconds (or extract it out as a configurable parameter) */
	
    private final int SPLASH_DISPLAY_LENGTH = 1000;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_splash, menu);
        return true;
    }
 
    @Override
    protected void onResume() {
        super.onResume();

        /* TODO here:
         	1- Access the BD
        	2- Get the operator logo
         	3- Set @id/opLogo to the image we get    */
        
        ImageView iView = (ImageView) findViewById(R.id.opLogo);
        iView.setImageResource(R.drawable.tele2);
        
        new Handler().postDelayed(new Runnable() {
        	
            
            public void run() {
				RemoteControl.instance();
               
				//Finish the splash activity so it can't be returned to.
                SplashActivity.this.finish(); 		
              
                // Create an Intent that will start the main activity.
                Intent mainIntent = new Intent(SplashActivity.this, 
                								SelectSTBActivity.class); 
                
                SplashActivity.this.startActivity(mainIntent);
                
            }
            
        }, SPLASH_DISPLAY_LENGTH);
        
    }
    
    
    
}

{'fraction_non_alphanumeric': 0.08158029758850692, 'fraction_numerical': 0.0033350436121087736, 'mean_word_length': 2.1418211120064465, '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': '2878564', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1024, 'n_words': 299}