<commit_before>#!/usr/bin/python
import sys
import os
import subprocess

typ  = sys.argv[1]
src_path = sys.argv[2]
if( len(sys.argv)<=3 ):
  install_dirc_name="~/lib/default"
else:
  install_dirc_name=sys.argv[3]

if(typ=="mpi"):
  os.environ['LIBHAO']           = "~/lib/lib_hao/mpi"
  os.environ['GHF_HUBBARD_FFTW'] = "~/lib/ghf_hubbard_fftw/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='~/lib/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH="+install_dirc_name+" "+src_path
elif(typ=="serial"):
  os.environ['LIBHAO'] = "~/lib/lib_hao/serial"
  os.environ['GHF_HUBBARD_FFTW'] = "~/lib/ghf_hubbard_fftw/serial"
  com="cmake -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING=' '\
             -DMODULE_EXTRA_PATH:STRING='~/lib/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH="+install_dirc_name+" "+src_path
elif(typ=="storm"):
  os.environ['LIBHAO'] = "~/lib_hao/mpi"
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -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 "+src_path
elif(typ=="hu"):
  os.environ['LIBHAO'] = "~/lib_hao/mpi"
  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' \<commit_msg>Update the code for storm.<commit_after>#!/usr/bin/python
import sys
import os
import subprocess

typ  = sys.argv[1]
src_path = sys.argv[2]
if( len(sys.argv)<=3 ):
  install_dirc_name="~/lib/default"
else:
  install_dirc_name=sys.argv[3]

if(typ=="mpi"):
  os.environ['LIBHAO']           = "~/lib/lib_hao/mpi"
  os.environ['GHF_HUBBARD_FFTW'] = "~/lib/ghf_hubbard_fftw/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='~/lib/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH="+install_dirc_name+" "+src_path
elif(typ=="serial"):
  os.environ['LIBHAO'] = "~/lib/lib_hao/serial"
  os.environ['GHF_HUBBARD_FFTW'] = "~/lib/ghf_hubbard_fftw/serial"
  com="cmake -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING=' '\
             -DMODULE_EXTRA_PATH:STRING='~/lib/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH="+install_dirc_name+" "+src_path
elif(typ=="storm"):
  os.environ['LIBHAO'] = "~/lib/lib_hao/mpi"
  os.environ['SPRNG'] = "~/sprng2.0"
  com="cmake -DCMAKE_CXX_COMPILER=mpicxx \
             -DCOMPILER_EXTRA_FLAG:STRING='-Wall -O3 -std=c++11' \
             -DCOMPILER_EXTRA_DEF:STRING='-DMPI_HAO' \
             -DMODULE_EXTRA_PATH:STRING='~/lib/Modules' \
             -DCMAKE_INSTALL_PREFIX:PATH="+install_dirc_name+" "+src_path
elif(typ=="hu"):
  os.environ['LIBHAO'] = "~/lib_hao/mpi"
  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' \
{'fraction_non_alphanumeric': 0.1784570596797671, 'fraction_numerical': 0.01339155749636099, 'mean_word_length': 3.3003754693366707, 'pattern_counts': {'":': 0, '<': 5, '<?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': '543412', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1470, 'n_words': 144}