<commit_before>package com.example.rollingball.app;

import android.opengl.GLES20;
import android.opengl.GLSurfaceView;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;


/**
 * Created by sakamoto on 2014/05/14.
 */
class MainRenderer implements GLSurfaceView.Renderer
//public class MainRenderer extends GLSurfaceView.Renderer
{
  //final private MainView _main_view;
  private MainView _main_view;
  private long _before_time_in_ns;

  //public MainRender( final MainView main_view )
  public MainView MainRender( final MainView main_view )
  {
    _main_view = main_view;
  }

  @Override
  public void onDrawFrame(GL10 gl){
    final long delta_time_in_ns = System.nanoTime() - _before_time_in_ns;

    _main_view.scene_maneger.update( delta_time_in_ns );

    GLES20.glClearColor( 0.9f, 0.9f, 1.0f, 1.0f );
    GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);

    _main_view.scene_manager.draw();

    _before_time_in_ns = System.nanoTime();
  }

  @Override
  public void onSurfaceChanged( final GL10 gl10, final int width, final int height )
  {
    GLES20.glViewport( 0, 0, width, height );
  }

  @Override
  public void onSurfaceCreated( final GL10 gl10, final EGLConfig eglConfig )
  {
    int vertex_shader = GLES20.glCreateShader( GLES20.GL_VERTEX_SHADER );

    if( vertex_shader == 0 )
      throw new RuntimeException();

    GLES20.glShaderSource
      ( vertex_shader
        , "#version 100\n"
          + "attribute vec4 position;\n"
          + "attribute vec2 texcoord;\n"
          + "attribute vec3 normal;\n"
          + "varying vec2 var_texcoord;\n"<commit_msg>fix #80 typo<commit_after>package com.example.rollingball.app;

import android.opengl.GLES20;
import android.opengl.GLSurfaceView;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;


/**
 * Created by sakamoto on 2014/05/14.
 */
class MainRenderer implements GLSurfaceView.Renderer
//public class MainRenderer extends GLSurfaceView.Renderer
{
  //final private MainView _main_view;
  private MainView _main_view;
  private long _before_time_in_ns;

  //public MainRender( final MainView main_view )
  public MainView MainRender( final MainView main_view )
  {
    _main_view = main_view;
  }

  @Override
  public void onDrawFrame(GL10 gl){
    final long delta_time_in_ns = System.nanoTime() - _before_time_in_ns;

    _main_view.scene_manager.update( delta_time_in_ns );

    GLES20.glClearColor( 0.9f, 0.9f, 1.0f, 1.0f );
    GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);

    _main_view.scene_manager.draw();

    _before_time_in_ns = System.nanoTime();
  }

  @Override
  public void onSurfaceChanged( final GL10 gl10, final int width, final int height )
  {
    GLES20.glViewport( 0, 0, width, height );
  }

  @Override
  public void onSurfaceCreated( final GL10 gl10, final EGLConfig eglConfig )
  {
    int vertex_shader = GLES20.glCreateShader( GLES20.GL_VERTEX_SHADER );

    if( vertex_shader == 0 )
      throw new RuntimeException();

    GLES20.glShaderSource
      ( vertex_shader
        , "#version 100\n"
          + "attribute vec4 position;\n"
          + "attribute vec2 texcoord;\n"
          + "attribute vec3 normal;\n"
          + "varying vec2 var_texcoord;\n"
{'fraction_non_alphanumeric': 0.09391251147139798, 'fraction_numerical': 0.0336494340776996, 'mean_word_length': 3.5606694560669454, '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': '5216410', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1119, 'n_words': 245}