<commit_before>#!/bin/csh -f
set fileName=${1:r}
set awkScript=${2}    
echo '      MODULE '${fileName}_mod   > ${fileName}_temp
echo '#include "CPP_OPTIONS.h"'      >> ${fileName}_temp
echo '#include "CPP_EEOPTIONS.h"'    >> ${fileName}_temp
echo '#include "GMREDI_OPTIONS.h"'   >> ${fileName}_temp
if ( ${fileName} != 'SIZE' &&  ${fileName} != 'MNC_COMMON' &&  ${fileName} != 'EEPARAMS' ) then
  echo '      use SIZE_mod'          >> ${fileName}_temp
endif
if ( ${fileName} != 'EEPARAMS' &&  ${fileName} != 'SIZE' &&  ${fileName} != 'MNC_COMMON' ) then
  echo '      use EEPARAMS_mod'      >> ${fileName}_temp
endif
if ( ${fileName} != 'PARAMS' && ${fileName} != 'EEPARAMS' &&  ${fileName} != 'SIZE' &&  ${fileName} != 'MNC_COMMON' && ${fileName} != 'GAD' && ${fileName} != 'GRID' ) then
  echo '      use PARAMS_mod'	     >> ${fileName}_temp
endif
if ( ${fileName} == 'ctrl' || ${fileName} == 'ctrl_dummy' || ${fileName} == 'CTRL_GENARR' ) then
  echo '      use CTRL_SIZE_mod'     >> ${fileName}_temp
endif
if ( ${fileName} == 'PTRACERS_FIELDS' || ${fileName} == 'PTRACERS_PARAMS' || ${fileName} == 'PTRACERS_START' || ${fileName} == 'PTRACERS_TAVE' || ${fileName} == 'ptracers_ad_check_lev1_dir' || ${fileName} == 'ptracers_ad_check_lev2_dir' || ${fileName} == 'ptracers_ad_check_lev3_dir' || ${fileName} == 'ptracers_ad_check_lev4_dir' || ${fileName} == 'ptracers_adcommon' ) then
  echo '      use PTRACERS_SIZE_mod'     >> ${fileName}_temp
endif
#echo awk -f ${awkScript} ${fileName}.h   
awk -f ${awkScript} ${fileName}.h | grep -v mpif.h   >> ${fileName}_temp
echo '      END MODULE' ${fileName}_mod   >> ${fileName}_temp
cp ${fileName}_temp ${fileName}_mod.FF90
\rm ${fileName}_temp<commit_msg>add dic dependencies<commit_after>#!/bin/csh -f
set fileName=${1:r}
set awkScript=${2}    
echo '      MODULE '${fileName}_mod   > ${fileName}_temp
echo '#include "CPP_OPTIONS.h"'      >> ${fileName}_temp
echo '#include "CPP_EEOPTIONS.h"'    >> ${fileName}_temp
echo '#include "GMREDI_OPTIONS.h"'   >> ${fileName}_temp
if ( ${fileName} == 'DIC_LOAD' ) then
  echo '#include "DIC_OPTIONS.h"'    >> ${fileName}_temp
endif
if ( ${fileName} != 'SIZE' &&  ${fileName} != 'MNC_COMMON' &&  ${fileName} != 'EEPARAMS' ) then
  echo '      use SIZE_mod'          >> ${fileName}_temp
endif
if ( ${fileName} != 'EEPARAMS' &&  ${fileName} != 'SIZE' &&  ${fileName} != 'MNC_COMMON' ) then
  echo '      use EEPARAMS_mod'      >> ${fileName}_temp
endif
if ( ${fileName} != 'PARAMS' && ${fileName} != 'EEPARAMS' &&  ${fileName} != 'SIZE' &&  ${fileName} != 'MNC_COMMON' && ${fileName} != 'GAD' && ${fileName} != 'GRID' ) then
  echo '      use PARAMS_mod'	     >> ${fileName}_temp
endif
if ( ${fileName} == 'ctrl' || ${fileName} == 'ctrl_dummy' || ${fileName} == 'CTRL_GENARR' ) then
  echo '      use CTRL_SIZE_mod'     >> ${fileName}_temp
endif
if ( ${fileName} == 'PTRACERS_FIELDS' || ${fileName} == 'PTRACERS_PARAMS' || \
     ${fileName} == 'PTRACERS_START' || ${fileName} == 'PTRACERS_TAVE' || \
     ${fileName} == 'GCHEM_FIELDS' ) then
  echo '      use PTRACERS_SIZE_mod' >> ${fileName}_temp
endif
#echo awk -f ${awkScript} ${fileName}.h   
awk -f ${awkScript} ${fileName}.h | grep -v mpif.h   >> ${fileName}_temp
echo '      END MODULE' ${fileName}_mod   >> ${fileName}_temp
cp ${fileName}_temp ${fileName}_mod.FF90
\rm ${fileName}_temp
{'fraction_non_alphanumeric': 0.20929535232383809, 'fraction_numerical': 0.003598200899550225, 'mean_word_length': 4.180124223602484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 47, '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': '508149', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1253, 'n_words': 258}