<commit_before>#!/bin/bash
#
# Version and build information for boost
#
# $Id$
#
# ./bootstrap.sh -show-libraries
# ./b2 --build-dir=ser --stagedir=ser/stage link=static --without-python threading=multi variant=release -s NO_COMPRESSION=1 --layout=system --without-mpi stage
# ./b2 --prefix=/contrib/boost-1_50_0-ser --build-dir=ser --stagedir=ser/stage link=static --without-python threading=multi variant=release -s NO_COMPRESSION=1 --layout=system --without-mpi install
#
######################################################################

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

# version 1_50_0 does not build with Intel compiler on windows (Pletzer)
BOOST_BLDRVERSION_STD=1_53_0
BOOST_BLDRVERSION_EXP=1_53_0

#if [ $USER == 'ssides' ]; then
#    BOOST_BLDRVERSION_STD=1_47_0
#fi

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

if test -z "$BOOST_DESIRED_BUILDS"; then
  BOOST_DESIRED_BUILDS=ser
# No need for shared library unless that is the library for Python
  if isCcCc4py; then
    BOOST_DESIRED_BUILDS=$BOOST_DESIRED_BUILDS,sersh
  fi
fi
computeBuilds boost
addCc4pyBuild boost
# It does not hurt to add deps that do not get built
# (e.g., Python on Darwin and CYGWIN)
# Only certain builds depend on Python
BOOST_DEPS=Python,bzip2

######################################################################
#
# Launch boost builds.
#
######################################################################

buildBoost() {

# Look for needed packages
  case `uname` in
    Linux)
      if ! test -f /usr/include/bzlib.h; then
        techo "WARNING: May need to install bzip2-devel."
      fi
      ;;
  esac

# Process
  if bilderUnpack -i boost; then

# Determine the toolset
    local toolsetarg_ser=
    local toolsetarg_cc4py=
    case `uname`-`uname -r` in
      CYGWIN*-WOW64*) 
        toolsetarg_ser="toolset=msvc-${VISUALSTUDIO_VERSION}.0"
        ;;
      CYGWIN-*) ;;
      Darwin-12.*)
# Clang works for g++ as well on Darwin-12
        toolsetarg_ser="toolset=clang"
        ;;
      Darwin-*)
        case $CXX in
          *clang++) toolsetarg_ser="toolset=clang";;
          *g++) ;;
        esac
        ;;
      Linux-*)
        toolsetarg_cc4py="toolset=gcc"
        case $CXX in
          *g++) ;;
          *icpc) toolsetarg_ser="toolset=intel";;
          *pgCC) toolsetarg_ser="toolset=pgi";;
        esac
        ;;
    esac
    toolsetarg_cc4py=${toolsetarg_cc4py:-"$toolsetarg_ser"}

# These args are actually to bilderBuild
    local BOOST_ALL_ADDL_ARGS="threading=multi variant=release -s NO_COMPRESSION=1 --layout=system --without-mpi"
    local staticlinkargs="link=static"
    local sharedlinkargs="link=shared"
    local sermdlinkargs="link=static"  # Not yet used, but this should be right
    if [[ `uname` =~ CYGWIN ]]; then
      staticlinkargs="runtime-link=static $staticlinkargs"<commit_msg>Removing some cruft.<commit_after>#!/bin/bash
#
# Version and build information for boost
#
# $Id$
#
# ./bootstrap.sh -show-libraries
# ./b2 --build-dir=ser --stagedir=ser/stage link=static --without-python threading=multi variant=release -s NO_COMPRESSION=1 --layout=system --without-mpi stage
# ./b2 --prefix=/contrib/boost-1_50_0-ser --build-dir=ser --stagedir=ser/stage link=static --without-python threading=multi variant=release -s NO_COMPRESSION=1 --layout=system --without-mpi install
#
######################################################################

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

# version 1_50_0 does not build with Intel compiler on windows (Pletzer)
BOOST_BLDRVERSION_STD=1_53_0
BOOST_BLDRVERSION_EXP=1_53_0

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

if test -z "$BOOST_DESIRED_BUILDS"; then
  BOOST_DESIRED_BUILDS=ser
# No need for shared library unless that is the library for Python
  if isCcCc4py; then
    BOOST_DESIRED_BUILDS=$BOOST_DESIRED_BUILDS,sersh
  fi
fi
computeBuilds boost
addCc4pyBuild boost
# It does not hurt to add deps that do not get built
# (e.g., Python on Darwin and CYGWIN)
# Only certain builds depend on Python
BOOST_DEPS=Python,bzip2

######################################################################
#
# Launch boost builds.
#
######################################################################

buildBoost() {

# Look for needed packages
  case `uname` in
    Linux)
      if ! test -f /usr/include/bzlib.h; then
        techo "WARNING: May need to install bzip2-devel."
      fi
      ;;
  esac

# Process
  if bilderUnpack -i boost; then

# Determine the toolset
    local toolsetarg_ser=
    local toolsetarg_cc4py=
    case `uname`-`uname -r` in
      CYGWIN*-WOW64*)
        toolsetarg_ser="toolset=msvc-${VISUALSTUDIO_VERSION}.0"
        ;;
      CYGWIN-*) ;;
      Darwin-12.*)
# Clang works for g++ as well on Darwin-12
        toolsetarg_ser="toolset=clang"
        ;;
      Darwin-*)
        case $CXX in
          *clang++) toolsetarg_ser="toolset=clang";;
          *g++) ;;
        esac
        ;;
      Linux-*)
        toolsetarg_cc4py="toolset=gcc"
        case $CXX in
          *g++) ;;
          *icpc) toolsetarg_ser="toolset=intel";;
          *pgCC) toolsetarg_ser="toolset=pgi";;
        esac
        ;;
    esac
    toolsetarg_cc4py=${toolsetarg_cc4py:-"$toolsetarg_ser"}

# These args are actually to bilderBuild
    local BOOST_ALL_ADDL_ARGS="threading=multi variant=release -s NO_COMPRESSION=1 --layout=system --without-mpi"
    local staticlinkargs="link=static"
    local sharedlinkargs="link=shared"
    local sermdlinkargs="link=static"  # Not yet used, but this should be right
    if [[ `uname` =~ CYGWIN ]]; then
      staticlinkargs="runtime-link=static $staticlinkargs"
{'fraction_non_alphanumeric': 0.257518488085456, 'fraction_numerical': 0.01248972884141331, 'mean_word_length': 3.904109589041096, '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': '1409736', 'n_tokens_mistral': 1978, 'n_tokens_neox': 1839, 'n_words': 435}