<commit_before>#!/usr/bin/python
import sys
import os
import subprocess
typ  = sys.argv[1]
dirc = sys.argv[2]
if(typ=="mpi"):
  com="cmake -DCMAKE_CXX_COMPILER=mpic++ \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
elif(typ=="serial"):
  com="cmake -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING=' '\
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/serial "+dirc
elif(typ=="storm"):
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -march=barcelona -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
elif(typ=="hu"):
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -march=corei7 -m64 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
elif(typ=="hu+magma"):
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -march=corei7 -m64 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DUSE_MAGMA=on \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
subprocess.call(com, shell=True )<commit_msg>Change the -DCMAKE_INSTALL_PREFIX:PATH for hu+magma<commit_after>#!/usr/bin/python
import sys
import os
import subprocess
typ  = sys.argv[1]
dirc = sys.argv[2]
if(typ=="mpi"):
  com="cmake -DCMAKE_CXX_COMPILER=mpic++ \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
elif(typ=="serial"):
  com="cmake -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING=' '\
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/serial "+dirc
elif(typ=="storm"):
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -march=barcelona -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
elif(typ=="hu"):
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -march=corei7 -m64 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpi "+dirc
elif(typ=="hu+magma"):
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -march=corei7 -m64 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DUSE_MAGMA=on \
             -DMODULE_EXTRA_PATH:STRING='~/cmake/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH=~/lib_hao/mpimagma "+dirc
subprocess.call(com, shell=True )
{'fraction_non_alphanumeric': 0.1646456480732956, 'fraction_numerical': 0.015629210455402855, 'mean_word_length': 2.8426501035196687, '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': '2506261', 'n_tokens_mistral': 1590, 'n_tokens_neox': 1535, 'n_words': 152}