<commit_before>package com.bravelittlescientist.android_puzzle_view;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class PuzzleActivity extends Activity {

    private PuzzleSurfaceView puzzleSurfaceView;
    private PuzzleGameThread puzzleThread;

    private static final String TAG = "PuzzleActivity";

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.puzzle_layout);

        puzzleSurfaceView = (PuzzleSurfaceView) findViewById(R.id.puzzle_surface);
        puzzleThread = puzzleSurfaceView.getGameThread();


        if (savedInstanceState == null) {
            // On new Puzzle
            puzzleThread.setState(PuzzleGameThread.STATE_READY);
            Log.w(this.getClass().getName(), "SIS is null");
        } else {
            // Restoring previous puzzle
            puzzleThread.restorePuzzleState(savedInstanceState);
            Log.w(this.getClass().getName(), "SIS is not null");
        }

        /** The following is temporary display code **/
        /*Bitmap[] p = puzzleThread.getPuzzlePiecesArray();
        int[] pDimensions = puzzleThread.getPuzzleDimensions();

        GridLayout gL = (GridLayout) findViewById(R.id.puzzle_overlay_layout);
        gL.setColumnCount(pDimensions[3]);
        gL.setRowCount(pDimensions[2]);

        for (int i = 0; i < p.length; i++) {
            ImageView iV = new ImageView(this);
            BitmapDrawable bMP = new BitmapDrawable(p[i]);
            iV.setImageDrawable(bMP);
            gL.addView(iV);
        } */

        /** End temporary display code **/
        puzzleThread.startPuzzle();

    }
<commit_msg>Removed full-screen window setting due to its SurfaceView interference.<commit_after>package com.bravelittlescientist.android_puzzle_view;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class PuzzleActivity extends Activity {

    private PuzzleSurfaceView puzzleSurfaceView;
    private PuzzleGameThread puzzleThread;

    private static final String TAG = "PuzzleActivity";

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.puzzle_layout);

        puzzleSurfaceView = (PuzzleSurfaceView) findViewById(R.id.puzzle_surface);
        puzzleThread = puzzleSurfaceView.getGameThread();

        if (savedInstanceState == null) {
            // On new Puzzle
            puzzleThread.setState(PuzzleGameThread.STATE_READY);
            Log.w(this.getClass().getName(), "SIS is null");
        } else {
            // Restoring previous puzzle
            puzzleThread.restorePuzzleState(savedInstanceState);
            Log.w(this.getClass().getName(), "SIS is not null");
        }

        /** The following is temporary display code **/
        /*Bitmap[] p = puzzleThread.getPuzzlePiecesArray();
        int[] pDimensions = puzzleThread.getPuzzleDimensions();

        GridLayout gL = (GridLayout) findViewById(R.id.puzzle_overlay_layout);
        gL.setColumnCount(pDimensions[3]);
        gL.setRowCount(pDimensions[2]);

        for (int i = 0; i < p.length; i++) {
            ImageView iV = new ImageView(this);
            BitmapDrawable bMP = new BitmapDrawable(p[i]);
            iV.setImageDrawable(bMP);
            gL.addView(iV);
        } */

        /** End temporary display code **/
        puzzleThread.startPuzzle();

    }

{'fraction_non_alphanumeric': 0.10152920531461519, 'fraction_numerical': 0.0015041363750313362, 'mean_word_length': 2.8365384615384617, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5218165', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1090, 'n_words': 233}