<commit_before>//
//  PBJGLProgram.h
//  Vision
//
//  Created by <NAME> on 4/9/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>

extern NSString * const PBJGLProgramAttributeVertex;
extern NSString * const PBJGLProgramAttributeTextureCoord;
extern NSString * const PBJGLProgramAttributeNormal;

@interface PBJGLProgram : NSObject

- (id)initWithVertexShaderName:(NSString *)vertexShaderName fragmentShaderName:(NSString *)fragmentShaderName;

- (void)addAttribute:(NSString *)attributeName;

- (GLuint)attributeLocation:(NSString *)attributeName;
- (int)uniformLocation:(NSString *)uniformName;

- (BOOL)link;
- (void)use;

@end<commit_msg>PBJGLProgram, added comments<commit_after>//
//  PBJGLProgram.h
//  Vision
//
//  Created by <NAME> on 4/9/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/ES2/gl.h>
#import <OpenGLES/ES2/glext.h>

// common attribute names
extern NSString * const PBJGLProgramAttributeVertex;
extern NSString * const PBJGLProgramAttributeTextureCoord;
extern NSString * const PBJGLProgramAttributeNormal;

// inspired by <NAME>, https://github.com/jlamarche/iOS-OpenGLES-Stuff
@interface PBJGLProgram : NSObject

- (id)initWithVertexShaderName:(NSString *)vertexShaderName fragmentShaderName:(NSString *)fragmentShaderName;

- (void)addAttribute:(NSString *)attributeName;

- (GLuint)attributeLocation:(NSString *)attributeName;
- (int)uniformLocation:(NSString *)uniformName;

- (BOOL)link;
- (void)use;

@end
{'fraction_non_alphanumeric': 0.13358302122347065, 'fraction_numerical': 0.012484394506866416, 'mean_word_length': 5.596707818930041, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 1, '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': '5285263', 'n_tokens_mistral': 563, 'n_tokens_neox': 509, 'n_words': 106}