<commit_before>package gaia.cu9.ari.gaiaorbit.render;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;

import gaia.cu9.ari.gaiaorbit.render.IPostProcessor.PostProcessBean;
import gaia.cu9.ari.gaiaorbit.scenegraph.ICamera;
import gaia.cu9.ari.gaiaorbit.util.GlobalConf;

/**
 * Normal SGR, takes care of the regular to-screen rednering with no strange
 * modes (stereoscopic, planetarium, cubemap) active.
 * 
 * @author tsagrista
 *
 */
public class SGR extends SGRAbstract implements ISGR {

    SpriteBatch sb;

    public SGR() {
        super();
        sb = new SpriteBatch();
    }

    @Override
    public void render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, FrameBuffer fb, PostProcessBean ppb) {
        boolean postproc = postprocessCapture(ppb, fb, rw, rh);

        // Viewport
        extendViewport.setCamera(camera.getCamera());
        extendViewport.setWorldSize(rw, rh);
        extendViewport.setScreenSize(rw, rh);
        extendViewport.apply();

        // Render
        sgr.renderScene(camera, t, rc);

        if (GlobalConf.scene.SHADOW_MAPPING) {
            // Render shadow map
            int s = 512;
            sb.begin();
            for (int i = 0; i < sgr.shadowMapFb.length; i++) {
                sb.draw(sgr.shadowMapFb[i].getColorBufferTexture(), 0, 0, s, s);
            }
            sb.end();
        }

        postprocessRender(ppb, fb, postproc, camera, rw, rh);

    }

    @Override
    public void resize(int w, int h) {
    }

    @Override
    public void dispose() {
    }

}<commit_msg>Commented shadow map small preview<commit_after>package gaia.cu9.ari.gaiaorbit.render;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.FrameBuffer;

import gaia.cu9.ari.gaiaorbit.render.IPostProcessor.PostProcessBean;
import gaia.cu9.ari.gaiaorbit.scenegraph.ICamera;
import gaia.cu9.ari.gaiaorbit.util.GlobalConf;

/**
 * Normal SGR, takes care of the regular to-screen rednering with no strange
 * modes (stereoscopic, planetarium, cubemap) active.
 * 
 * @author tsagrista
 *
 */
public class SGR extends SGRAbstract implements ISGR {

    SpriteBatch sb;

    public SGR() {
        super();
        sb = new SpriteBatch(GlobalConf.scene.SHADOW_MAPPING_N_SHADOWS);
    }

    @Override
    public void render(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, FrameBuffer fb, PostProcessBean ppb) {
        boolean postproc = postprocessCapture(ppb, fb, rw, rh);

        // Viewport
        extendViewport.setCamera(camera.getCamera());
        extendViewport.setWorldSize(rw, rh);
        extendViewport.setScreenSize(rw, rh);
        extendViewport.apply();

        // Render
        sgr.renderScene(camera, t, rc);

        // Uncomment this to show the shadow map
        //        if (GlobalConf.scene.SHADOW_MAPPING && GlobalConf.scene.debug) {
        //            // Render shadow map
        //            int s = 512;
        //            sb.begin();
        //            for (int i = 0; i < sgr.shadowMapFb.length; i++) {
        //                sb.draw(sgr.shadowMapFb[i].getColorBufferTexture(), 0, 0, s, s);
        //            }
        //            sb.end();
        //        }

        postprocessRender(ppb, fb, postproc, camera, rw, rh);

    }

    @Override
    public void resize(int w, int h) {
    }

    @Override
    public void dispose() {
    }

}
{'fraction_non_alphanumeric': 0.11293575338519159, 'fraction_numerical': 0.006338231057332181, 'mean_word_length': 2.322488038277512, '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': '7479318', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1108, 'n_words': 250}