<commit_before>class magma(Wig):
	tarball_uri = 'http://icl.cs.utk.edu/projectsfiles/magma/downloads/magma-{RELEASE_VERSION}.tar.gz'
	dependencies = ['openblas']
	last_release_version = '2.3.0'
	config_access = ['PATH_TO_NVCC']
	
	def setup(self):
		self.make_install_flags += [S.prefix_MAKE_INSTALL_FLAG]

	def gen_configure_snippet(self):
		config_fixes = '''| sed 's$#OPENBLASDIR ?=$OPENBLASDIR ?= '$PREFIX'#OPENBLASDIR ?=$' '''
		config_fixes += '''| sed 's$#CUDADIR ?=$CUDADIR ?= '%s'#CUDADIR ?=$' ''' % os.path.join(os.path.dirname(self.cfg('PATH_TO_NVCC')), '..')
		config_fixes += '''| sed '$aLIB += -lm' '''
		config_fixes += '''| sed '$aNVCC = $(CUDADIR)/bin/nvcc' '''
		config_fixes += '''| sed '$aCFLAGS += -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH' '''
		config_fixes += '''| sed '$aCXXFLAGS += -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH' '''
		return ['cat make.inc-examples/make.inc.openblas %s > make.inc' % config_fixes]<commit_msg>Update magma.py<commit_after>class magma(Wig):
	tarball_uri = 'http://icl.cs.utk.edu/projectsfiles/magma/downloads/magma-{RELEASE_VERSION}.tar.gz'
	dependencies = ['openblas']
	last_release_version = '2.3.0'
	config_access = ['PATH_TO_NVCC']
	
	def setup(self):
		self.make_install_flags += [S.prefix_MAKE_INSTALL_FLAG]

	def gen_configure_snippet(self):
		config_fixes = '''| sed 's$#OPENBLASDIR ?=$OPENBLASDIR ?= '$PREFIX'#OPENBLASDIR ?=$' '''
		config_fixes += '''| sed 's$#CUDADIR ?=$CUDADIR ?= '%s'#CUDADIR ?=$' ''' % os.path.join(os.path.dirname(self.cfg('PATH_TO_NVCC')), '..')
		config_fixes += '''| sed '$aLIB += -lm' '''
		config_fixes += '''| sed '$aNVCC = $(CUDADIR)/bin/nvcc' '''
		return ['cat make.inc-examples/make.inc.openblas %s > make.inc' % config_fixes]
{'fraction_non_alphanumeric': 0.2105568445475638, 'fraction_numerical': 0.008120649651972157, 'mean_word_length': 5.412639405204461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3546089', 'n_tokens_mistral': 753, 'n_tokens_neox': 719, 'n_words': 92}