<commit_before># Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.

import sys,os;
import cPickle;
import string;
import re;

sys.path.append( "../../opengl_stub" )
parsed_file = open( "../../glapi_parser/gl_header.parsed", "rb" )
gl_mapping = cPickle.load( parsed_file )

import stub_common;

keys = gl_mapping.keys()
keys.sort();

stub_common.CopyrightC()

print """#include <stdio.h>
#include "hiddenlinespu.h"
#include "cr_packfunctions.h"
#include "cr_glwrapper.h"
#include "cr_glstate.h"

void HIDDENLINESPU_APIENTRY hiddenlinespu_PixelStoref( GLenum pname, GLfloat param )
{
	crStatePixelStoref( pname, param );
	crPackPixelStoref( pname, param );
}

void HIDDENLINESPU_APIENTRY hiddenlinespu_PixelStorei( GLenum pname, GLint param )
{
	crStatePixelStorei( pname, param );
	crPackPixelStorei( pname, param );
}
"""

for func_name in stub_common.AllSpecials( "hiddenline_pixel" ):
	(return_type, args, types) = gl_mapping[func_name]
	print 'void HIDDENLINESPU_APIENTRY hiddenlinespu_%s%s' % ( func_name, stub_common.ArgumentString( args, types ) )
	print '{'
	args.append( '&(hiddenline_spu.ctx->pixel.unpack)' )
	print '\tcrPack%s%s;' % ( func_name, stub_common.CallString( args ) )
	print '}'<commit_msg>replace pixel.unpack with client.unpack<commit_after># Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.

import sys,os;
import cPickle;
import string;
import re;

sys.path.append( "../../opengl_stub" )
parsed_file = open( "../../glapi_parser/gl_header.parsed", "rb" )
gl_mapping = cPickle.load( parsed_file )

import stub_common;

keys = gl_mapping.keys()
keys.sort();

stub_common.CopyrightC()

print """#include <stdio.h>
#include "hiddenlinespu.h"
#include "cr_packfunctions.h"
#include "cr_glwrapper.h"
#include "cr_glstate.h"

void HIDDENLINESPU_APIENTRY hiddenlinespu_PixelStoref( GLenum pname, GLfloat param )
{
	crStatePixelStoref( pname, param );
	crPackPixelStoref( pname, param );
}

void HIDDENLINESPU_APIENTRY hiddenlinespu_PixelStorei( GLenum pname, GLint param )
{
	crStatePixelStorei( pname, param );
	crPackPixelStorei( pname, param );
}
"""

for func_name in stub_common.AllSpecials( "hiddenline_pixel" ):
	(return_type, args, types) = gl_mapping[func_name]
	print 'void HIDDENLINESPU_APIENTRY hiddenlinespu_%s%s' % ( func_name, stub_common.ArgumentString( args, types ) )
	print '{'
	args.append( '&(hiddenline_spu.ctx->client.unpack)' )
	print '\tcrPack%s%s;' % ( func_name, stub_common.CallString( args ) )
	print '}'
{'fraction_non_alphanumeric': 0.12988985947588302, 'fraction_numerical': 0.0030383592859855677, 'mean_word_length': 5.753846153846154, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2122505', 'n_tokens_mistral': 964, 'n_tokens_neox': 955, 'n_words': 213}