<commit_before>package org.glob3.mobile.generated; 
//
//  SGMaterialNode.cpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/8/12.
//
//

//
//  SGMaterialNode.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/8/12.
//
//



public class SGMaterialNode extends SGNode
{
  private Color _baseColor;
  private final Color _specularColor;

//  const double _specular;
//  const double _shine;
//  const double _alpha;
//  const double _emit;


  public SGMaterialNode(String id, String sId, Color baseColor, Color specularColor, double specular, double shine, double alpha, double emit)
//  _specular(specular),
//  _shine(shine),
//  _alpha(alpha),
//  _emit(emit)
  {
     super(id, sId);
     _baseColor = baseColor;
     _specularColor = specularColor;

  }

  public final void setBaseColor(Color baseColor)
  {
    if (baseColor != _baseColor)
    {
      _baseColor = null;
      _baseColor = baseColor;
    }
  }

  public void dispose()
  {
    _baseColor = null;
    if (_specularColor != null)
       _specularColor.dispose();
  }

  public final GLState createState(G3MRenderContext rc, GLState parentState)
  {
    if (_baseColor == null)
    {
      return null;
    }
  
    GLState state = new GLState(parentState);
    final float colorsIntensity = 1F;
    //state->enableFlatColor(*_specularColor, colorsIntensity);
    state.enableFlatColor(*_baseColor, colorsIntensity);
  
    return state;
  }

}<commit_msg>Generated<commit_after>package org.glob3.mobile.generated; 
//
//  SGMaterialNode.cpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/8/12.
//
//

//
//  SGMaterialNode.hpp
//  G3MiOSSDK
//
//  Created by <NAME> on 11/8/12.
//
//



public class SGMaterialNode extends SGNode
{
  private Color _baseColor;
  private final Color _specularColor;

//  const double _specular;
//  const double _shine;
//  const double _alpha;
//  const double _emit;


  public SGMaterialNode(String id, String sId, Color baseColor, Color specularColor, double specular, double shine, double alpha, double emit)
//  _specular(specular),
//  _shine(shine),
//  _alpha(alpha),
//  _emit(emit)
  {
     super(id, sId);
     _baseColor = baseColor;
     _specularColor = specularColor;

  }

  public final void setBaseColor(Color baseColor)
  {
    if (baseColor != _baseColor)
    {
      _baseColor = null;
      _baseColor = baseColor;
    }
  }

  public void dispose()
  {
    _baseColor = null;
    if (_specularColor != null)
       _specularColor.dispose();
  }

  public final GLState createState(G3MRenderContext rc, GLState parentState)
  {
    if (_baseColor == null)
    {
      return null;
    }
  
    GLState state = new GLState(parentState);
    final float colorsIntensity = 1F;
    state.enableFlatColor(_baseColor, colorsIntensity);
  
    return state;
  }

}
{'fraction_non_alphanumeric': 0.10807113543091655, 'fraction_numerical': 0.010259917920656635, 'mean_word_length': 2.3200908059023835, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '5013535', 'n_tokens_mistral': 1047, 'n_tokens_neox': 989, 'n_words': 226}