<commit_before>#!/bin/bash
#
# Version and build information for Plasma_state
#
# $Id$
#
######################################################################

######################################################################
#
# Version
#
######################################################################

PLASMA_STATE_BLDRVERSION=${PLASMA_STATE_BLDRVERSION:-"2.7.0-r214"}
PLASMA_STATE_TAR_BLDRVERSION=${PLASMA_STATE_TAR_BLDRVERSION:-"1.0.2"}

######################################################################
#
# Other values
#
######################################################################

PLASMA_STATE_BUILDS=${PLASMA_STATE_BUILDS:-"ser"}
addBenBuild plasma_state
PLASMA_STATE_DEPS=pspline,netlib_lite,netcdf,hdf5
PLASMA_STATE_UMASK=002

######################################################################
#
# Launch plasma_state builds.
#
######################################################################

buildPlasma_state() {
  # The tarball is in ftpkgs
# Check for svn version or package
  if test -d $PROJECT_DIR/plasma_state; then
    getVersion -l plasma_state plasma_state
    bilderPreconfig plasma_state
    res=$?
  else
    PLASMA_STATE_BLDRVERSION=$PLASMA_STATE_TAR_BLDRVERSION
    bilderUnpack plasma_state
    res=$?
  fi

  if test $res = 0; then

# Tone down optimization for xl
    case $CC in
      xlc* | */xlc*)
        PS_COMPFLAGS_SER="$CONFIG_COMPFLAGS_SER --with-optimization=minimal"
        PS_COMPFLAGS_PAR="$CONFIG_COMPFLAGS_PAR --with-optimization=minimal"
        ;;
      *)
        PS_COMPFLAGS_SER="$CONFIG_COMPFLAGS_SER"
        PS_COMPFLAGS_PAR="$CONFIG_COMPFLAGS_PAR"
        ;;
    esac

# Use compiler wrappers for actual make
    local PS_MAKE_COMPILERS_SER="CC='\$(abs_top_builddir)/txutils/cc' CXX='\$(abs_top_builddir)/txutils/cxx' FC='\$(abs_top_builddir)/txutils/f90' F77='\$(abs_top_builddir)/txutils/f77'"
    local PS_MAKE_COMPILERS_BEN="CC='\$(abs_top_builddir)/txutils/cc' CXX='\$(abs_top_builddir)/txutils/cxx' FC='\$(abs_top_builddir)/txutils/f90' F77='\$(abs_top_builddir)/txutils/f77'"

# Build everything
    if bilderConfig plasma_state ser "$CONFIG_COMPILERS_SER $PS_COMPFLAGS_SER $PLASMA_STATE_SER_OTHER_ARGS $CONFIG_SUPRA_SP_ARG"; then
      bilderBuild plasma_state ser "$PS_MAKE_COMPILERS_SER $PLASMA_STATE_MAKE_ARGS"
    fi
    if bilderConfig plasma_state ben "$CONFIG_COMPILERS_BEN $PS_COMPFLAGS_PAR --enable-back-end-node $PLASMA_STATE_BEN_OTHER_ARGS $CONFIG_SUPRA_SP_ARG"; then
      bilderBuild plasma_state ben "$PS_MAKE_COMPILERS_BEN $PLASMA_STATE_MAKE_ARGS"
    fi
  fi
}

######################################################################
#
# Test Plasma_state
#
######################################################################

testPlasma_state() {
  techo "Not testing plasma_state."
}

######################################################################
#
# Install Plasma_state
#
######################################################################

installPlasma_state() {
# Set umask to allow only group to modify
  bilderInstall plasma_state ser plasma_state
  bilderInstall plasma_state ben plasma_state-ben
}

<commit_msg> the compiler wrappers seem to have moved<commit_after>#!/bin/bash
#
# Version and build information for Plasma_state
#
# $Id$
#
######################################################################

######################################################################
#
# Version
#
######################################################################

PLASMA_STATE_BLDRVERSION=${PLASMA_STATE_BLDRVERSION:-"2.7.0-r214"}
PLASMA_STATE_TAR_BLDRVERSION=${PLASMA_STATE_TAR_BLDRVERSION:-"1.0.2"}

######################################################################
#
# Other values
#
######################################################################

PLASMA_STATE_BUILDS=${PLASMA_STATE_BUILDS:-"ser"}
addBenBuild plasma_state
PLASMA_STATE_DEPS=pspline,netlib_lite,netcdf,hdf5
PLASMA_STATE_UMASK=002

######################################################################
#
# Launch plasma_state builds.
#
######################################################################

buildPlasma_state() {
  # The tarball is in ftpkgs
# Check for svn version or package
  if test -d $PROJECT_DIR/plasma_state; then
    getVersion -l plasma_state plasma_state
    bilderPreconfig plasma_state
    res=$?
  else
    PLASMA_STATE_BLDRVERSION=$PLASMA_STATE_TAR_BLDRVERSION
    bilderUnpack plasma_state
    res=$?
  fi

  if test $res = 0; then

# Tone down optimization for xl
    case $CC in
      xlc* | */xlc*)
        PS_COMPFLAGS_SER="$CONFIG_COMPFLAGS_SER --with-optimization=minimal"
        PS_COMPFLAGS_PAR="$CONFIG_COMPFLAGS_PAR --with-optimization=minimal"
        ;;
      *)
        PS_COMPFLAGS_SER="$CONFIG_COMPFLAGS_SER"
        PS_COMPFLAGS_PAR="$CONFIG_COMPFLAGS_PAR"
        ;;
    esac

# Use compiler wrappers for actual make
# Looks like this was for building on LCFs but as of Mar 29 2014 the compiler 
# wrappers no longer exist (?) Pletzer. 
    local PS_MAKE_COMPILERS_SER=""
    if test -f '\$abs_top_builddir)/txutils/cc'; then
       PS_MAKE_COMPILERS_SER="CC='\$(abs_top_builddir)/txutils/cc'"
    fi
    if test -f '\$(abs_top_builddir)/txutils/cxx'; then
       PS_MAKE_COMPILERS_SER="$PS_MAKE_COMPILERS_SER CXX='\$(abs_top_builddir)/txutils/cxx'"
    fi
    if test -f '\$(abs_top_builddir)/txutils/f90'; then
       PS_MAKE_COMPILERS_SER="$PS_MAKE_COMPILERS_SER FC='\$(abs_top_builddir)/txutils/f90'"
    fi
    if test -f '\$(abs_top_builddir)/txutils/f77'; then
       PS_MAKE_COMPILERS_SER="$PS_MAKE_COMPILERS_SER F77='\$(abs_top_builddir)/txutils/f77'"
    fi

    local PS_MAKE_COMPILERS_BEN="CC='\$(abs_top_builddir)/txutils/cc' CXX='\$(abs_top_builddir)/txutils/cxx' FC='\$(abs_top_builddir)/txutils/f90' F77='\$(abs_top_builddir)/txutils/f77'"

# Build everything
    if bilderConfig plasma_state ser "$CONFIG_COMPILERS_SER $PS_COMPFLAGS_SER $PLASMA_STATE_SER_OTHER_ARGS $CONFIG_SUPRA_SP_ARG"; then
      bilderBuild plasma_state ser "$PS_MAKE_COMPILERS_SER $PLASMA_STATE_MAKE_ARGS"
    fi
    if bilderConfig plasma_state ben "$CONFIG_COMPILERS_BEN $PS_COMPFLAGS_PAR --enable-back-end-node $PLASMA_STATE_BEN_OTHER_ARGS $CONFIG_SUPRA_SP_ARG"; then
      bilderBuild plasma_state ben "$PS_MAKE_COMPILERS_BEN $PLASMA_STATE_MAKE_ARGS"
    fi
  fi
}

######################################################################
#
# Test Plasma_state
#
######################################################################

testPlasma_state() {
  techo "Not testing plasma_state."
}

######################################################################
#
# Install Plasma_state
#
######################################################################

installPlasma_state() {
# Set umask to allow only group to modify
  bilderInstall plasma_state ser plasma_state
  bilderInstall plasma_state ben plasma_state-ben
}


{'fraction_non_alphanumeric': 0.30247718383311606, 'fraction_numerical': 0.008981602201941184, 'mean_word_length': 6.191666666666666, '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': '2609850', 'n_tokens_mistral': 2241, 'n_tokens_neox': 2123, 'n_words': 354}