<commit_before>package org.gete.android.dorongkotak;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Process;
import android.view.View;

public class MenuView extends Activity {
	private MediaPlayer mBackgroundMusic;
	private Intent mIntent;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu_view);
		mBackgroundMusic = MediaPlayer.create(this, R.raw.menuscreenmusic);
		mBackgroundMusic.setLooping(true);
		mBackgroundMusic.setVolume(1, 1);
		mBackgroundMusic.start();
	}
	
	public void tampilGame(View view) {
		mIntent = new Intent(MenuView.this, GameView.class);
		startActivity(mIntent);
	}
	
	public void tampilKredit(View view) {
		mIntent = new Intent(MenuView.this, CreditView.class);
		startActivity(mIntent);
	}
	
	public void keluar(View view) {
		mBackgroundMusic.stop();
		mBackgroundMusic.release();
		hentikanProses();
	}
	
	@Override
	public void onDestroy() {
		super.onDestroy();
		mBackgroundMusic.release();
		hentikanProses();
	}
	<commit_msg>Kelas yang digunakan untuk membuat tampilan game menu<commit_after>package org.gete.android.dorongkotak;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Process;
import android.util.Log;
import android.view.View;

public class MenuView extends Activity {
	private MediaPlayer mBackgroundMusic;
	private Intent mIntent;
	private static String TAG = "MenuView";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu_view);
		mBackgroundMusic = MediaPlayer.create(this, R.raw.menuscreenmusic);
		mBackgroundMusic.setLooping(true);
		mBackgroundMusic.setVolume(1, 1);
		mBackgroundMusic.start();
		Log.d(TAG, "onCreate(savedInstanceState");
	}
	
	public void tampilGame(View view) {
		mIntent = new Intent(MenuView.this, GameView.class);
		startActivity(mIntent);
	}
	
	public void tampilKredit(View view) {
		mIntent = new Intent(MenuView.this, CreditView.class);
		startActivity(mIntent);
	}
	
	public void keluar(View view) {
		mBackgroundMusic.stop();
		mBackgroundMusic.release();
		hentikanProses();
	}
	
	@Override
	public void onDestroy() {
		super.onDestroy();
		mBackgroundMusic.release();
		hentikanProses();
	}
	
{'fraction_non_alphanumeric': 0.10558499796167957, 'fraction_numerical': 0.0016306563391765185, 'mean_word_length': 5.526595744680851, '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': '4815424', 'n_tokens_mistral': 837, 'n_tokens_neox': 763, 'n_words': 158}