<commit_before>package org.glud.trascendentar_android;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.PixelFormat;
import android.util.Log;
import android.view.SurfaceView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.badlogic.gdx.utils.ArrayMap;
import org.artoolkit.ar.base.ARToolKit;
import org.artoolkit.ar.base.assets.AssetHelper;
import org.artoolkit.ar.base.camera.CameraEventListener;
import org.artoolkit.ar.base.camera.CameraPreferencesActivity;
import org.artoolkit.ar.base.camera.CaptureCameraPreview;
import org.glud.trascendentAR.ARToolKitManager;
import static org.artoolkit.ar.base.camera.CameraPreferencesActivity.TAG;

/**
 * Created by juan on 20/05/17.
 */
public abstract class ARLauncher extends AndroidApplication implements CameraEventListener, ARToolKitManager{
    public static class MarkerType{
        public static final String SINGLE="single";
		public static final String MULTI="multi";
    }

    private FrameLayout mainLayout;
    private CaptureCameraPreview preview;
    private View gameView;
    private boolean firstUpdate = false;
    private ArrayMap<String,Integer> markers = new ArrayMap<>();

    @Override
    public void initialize(ApplicationListener listener, AndroidApplicationConfiguration config){
        //Las siguientes dos lines son necesaria para poder añadir markers de la manera que ARToolKit lo maneja
        AssetHelper assetHelper = new AssetHelper(getAssets());
        assetHelper.cacheAssetFolder(this, "Data");

        mainLayout = new FrameLayout(this);
        config.r = 8;
        config.g = 8;
        config.b = 8;
        config.a = 8;

        //Configuraciones basicas
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);<commit_msg>Añadir marcador de tipo nft<commit_after>package org.glud.trascendentar_android;

import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.PixelFormat;
import android.util.Log;
import android.view.SurfaceView;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.badlogic.gdx.utils.ArrayMap;
import org.artoolkit.ar.base.ARToolKit;
import org.artoolkit.ar.base.assets.AssetHelper;
import org.artoolkit.ar.base.camera.CameraEventListener;
import org.artoolkit.ar.base.camera.CameraPreferencesActivity;
import org.artoolkit.ar.base.camera.CaptureCameraPreview;
import org.glud.trascendentAR.ARToolKitManager;
import static org.artoolkit.ar.base.camera.CameraPreferencesActivity.TAG;

/**
 * Created by juan on 20/05/17.
 */
public abstract class ARLauncher extends AndroidApplication implements CameraEventListener, ARToolKitManager{
    public static class MarkerType{
        public static final String SINGLE="single";
		public static final String MULTI="multi";
		public static final String NFT="nft";
    }

    private FrameLayout mainLayout;
    private CaptureCameraPreview preview;
    private View gameView;
    private boolean firstUpdate = false;
    private ArrayMap<String,Integer> markers = new ArrayMap<>();

    @Override
    public void initialize(ApplicationListener listener, AndroidApplicationConfiguration config){
        //Las siguientes dos lines son necesaria para poder añadir markers de la manera que ARToolKit lo maneja
        AssetHelper assetHelper = new AssetHelper(getAssets());
        assetHelper.cacheAssetFolder(this, "Data");

        mainLayout = new FrameLayout(this);
        config.r = 8;
        config.g = 8;
        config.b = 8;
        config.a = 8;

        //Configuraciones basicas
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
{'fraction_non_alphanumeric': 0.08563899868247694, 'fraction_numerical': 0.004391743522178305, 'mean_word_length': 4.708020050125313, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6443704', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1260, 'n_words': 292}