hunk.code_window:         self.mean = mean
           self.low = low
           self.high = high
           # Squash to range if specified.
           # TODO(ekl) might make sense to use a beta distribution instead:
           # http://proceedings.mlr.press/v70/chou17a/chou17a.pdf
           if low is not None:
               self.mean = low + tf.sigmoid(self.mean) * (high - low)
  
hunk.labels: keep keep keep keep replace replace replace keep keep keep
hunk.after_edit:         # Squash to range if specified. We use a sigmoid here this to avoid the
           # mean drifting too far past the bounds and causing nan outputs.
           # https://github.com/ray-project/ray/issues/1862
  
hunk.file_path: python/ray/rllib/models/action_dist.py
hunk.type: replace
file: #!/bin/bash
  
  if [ "$TRAVIS_PULL_REQUEST" == "false" ] ; then
    # Not in a pull request, so compare against parent commit
    base_commit="HEAD^"
    echo "Running clang-format against parent commit $(git rev-parse $base_commit)"
  else
    base_commit="$TRAVIS_BRANCH"
    echo "Running clang-format against branch $base_commit, with hash $(git rev-parse $base_commit)"
  fi
  output="$(.travis/git-clang-format --binary clang-format-3.8 --commit $base_commit --diff --exclude '(.*thirdparty/|.*redismodule.h|.*webui*)')"
  if [ "$output" == "no modified files to format" ] || [ "$output" == "clang-format did not modify any files" ] ; then
    echo "clang-format passed."
    exit 0
  else
    echo "clang-format failed:"
    echo "$output"
    exit 1
  fi
  