document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_21000 | ---
+++
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
# Only forward if the pause file doesn't exist
-if [ ! -f ./pause ]; then
- python forwardNotif.py
+if [ ! -f ${BASH_SOURCE[0]%/*}/pause ]; then
+ python ${BASH_SOURCE[0]%/*}/forwardNotif.py
fi | bash |
d_bash_21001 | ---
+++
@@ -3,7 +3,7 @@
mkdir -p build-ubuntu
cd build-ubuntu
-cmake ../src
+cmake -DCMAKE_BUILD_TYPE=Release ../src
make -j8
make package | bash |
d_bash_21002 | ---
+++
@@ -7,12 +7,14 @@
# Thresholds
UPPER=$1
WINDOW=$2
-CLF=$3
+MAX_P=$3
+MAX_N=$4
+CLF=$5
for i in $(seq 1 10);
do
LOWER=`echo - | awk "{print $i / 10}"`
if [ `echo - | awk "{print $LOWER <= $UPPER}"` -ne 0 ]; then
rm -f ./.engine/.ncvoter*
- EVAL_FLAGS="$CLF --no-classifier --no-gt... | bash |
d_bash_21003 | ---
+++
@@ -5,4 +5,4 @@
curl $FINK_BASE/admin/api/posts -H "Content-type: application/json" --data @data/post1.json
curl $FINK_BASE/admin/api/posts -H "Content-type: application/json" --data @data/post2.json
curl $FINK_BASE/admin/api/pages -H "Content-type: application/json" --data @data/page1.json
-curl $FINK_BAS... | bash |
d_bash_21004 | ---
+++
@@ -2,7 +2,7 @@
set -e
chmod +x miniconda.sh
./miniconda.sh -b
-export PATH=/home/travis/miniconda/bin:$PATH
+export PATH=$HOME/miniconda/bin:$PATH
conda update --yes conda
conda install --yes conda-server conda-build jinja2 anaconda-client sh pip
conda config --add channels distributions | bash |
d_bash_21005 | ---
+++
@@ -2,4 +2,8 @@
cd /PrairieLearn
docker/start_postgres.sh
-node server.js
+if [[ -n $NODEMON ]] && [[ $NODEMON == "true" ]]; then
+ npm run start-nodemon
+else
+ npm start
+fi | bash |
d_bash_21006 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASS";
+ echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
docker push softinstigate/serverless:latest;
docker push softinstigate/serverless:"$RELEASE";... | bash |
d_bash_21007 | ---
+++
@@ -9,7 +9,7 @@
--privileged \
--publish="${port}:22" \
--volume=/alloc:/alloc \
- --volume=/var/tmp:/var/tmp \
+ --volume=/ninemaster/tmp:/var/tmp \
--volume=/ninemaster/config:/usr/imos/config \
local/ninelet "$@"
sleep 1
@@ -21,6 +21,8 @@
dat... | bash |
d_bash_21008 | ---
+++
@@ -39,19 +39,3 @@
;;
esac
esac
-
-#if (( CURRENT == 2 )); then
- #compadd "$sheets"
-#fi
-
-#case "$words[2]" in
- #edit|copy)
- #_arguments \
- #'*:sheets:($sheets)'
- #;;
- #new)
- #_arguments \
- #'*:insert new name for your sheet:'
-#esac
-
-#return 0 | bash |
d_bash_21009 | ---
+++
@@ -22,8 +22,8 @@
for format in deflate zlib gzip; do
F1=$TMP_DIR/`basename $i`.zopfli.$format
F2=$TMP_DIR/`basename $i`.zopfli-rs.$format
- $ZOPFLI -c $i >$F1
- $ZOPFLI_RS -c $i >$F2
+ $ZOPFLI --$format -c $i >$F1
+ $ZOPFLI_RS --$format -c $i >$F2
c... | bash |
d_bash_21010 | ---
+++
@@ -5,7 +5,7 @@
# Install Miniconda
MINICONDA=Miniconda2-latest-Linux-x86_64.sh
MINICONDA_HOME=$HOME/miniconda
-MINICONDA_MD5=$(curl -s http://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')
+MINICONDA_MD5=$(curl -s https://repo.continuum.io/minicond... | bash |
d_bash_21011 | ---
+++
@@ -22,13 +22,14 @@
export SDL_VIDEODRIVER=dummy
# Install packages and test
-for PYVER in $SUPPORTED_PYTHONS; do
- PYBIN="/opt/python/${PYVER}/bin"
- ${PYBIN}/pip install cffi
- ${PYBIN}/pip install pymunk --no-index -f /io/tools/manylinux-build/wheelhouse
- # TODO: pymunk doesn't bundle test... | bash |
d_bash_21012 | ---
+++
@@ -30,3 +30,5 @@
# Provide quick access to MAMP's Apache server
alias apachectl='/Applications/MAMP/Library/bin/apachectl'
+# Start Node HTTP server and open web browser
+alias hso='http-server -o' | bash |
d_bash_21013 | ---
+++
@@ -3,4 +3,6 @@
#Output from line two
awk 'NR>1' data.txt
+echo "exclued line azx,z,1,b with regular expression"
+awk '!/azx,z,1,b/' data.txt
| bash |
d_bash_21014 | ---
+++
@@ -2,4 +2,4 @@
# runs all the tests in the tests directory
# we prepend the run directory so that `import robocup` finds the `robocup.so` file located there
-PYTHONPATH="../../run" python3 -m unittest discover -s tests
+PYTHONPATH="../../run/lib" python3 -m unittest discover -s tests | bash |
d_bash_21015 | ---
+++
@@ -3,8 +3,13 @@
# Activates(uncomment) or add system elements required by your project.
CONF_SYSTEM_INSTALL_LIST+=("sudo")
CONF_SYSTEM_INSTALL_LIST+=("curl")
+CONF_SYSTEM_INSTALL_LIST+=("wget")
CONF_SYSTEM_INSTALL_LIST+=("rsync")
CONF_SYSTEM_INSTALL_LIST+=("openssh-client")
+CONF_SYSTEM_INSTALL_LIST+=("... | bash |
d_bash_21016 | ---
+++
@@ -1,2 +1,3 @@
+createdb event_detection_test
+sed -i .bak -e 's/username-to-replace/'$(whoami)'/g' test_database.sql && rm test_database.sql.bak
psql event_detection_test < test_database.sql
-sed -i .bak -e 's/username-to-replace/'$(whoami)'/g' test_database.sql && rm test_database.sql.bak | bash |
d_bash_21017 | ---
+++
@@ -13,3 +13,4 @@
export LESS="-R"
export LC_CTYPE=$LANG
+export EDITOR=vim | bash |
d_bash_21018 | ---
+++
@@ -2,12 +2,14 @@
set -e
# setup nvm
+mv ../../../.nvmrc nvmrc # Remove for init otherwise nvm init could fail
if [[ "$OSTYPE" == "darwin"* ]]; then
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
else
source $NVM_DIR/nvm.sh
fi
+mv nvmrc ../../../.nvmrc
# install node
NODE_VERSION=8.... | bash |
d_bash_21019 | ---
+++
@@ -1,4 +1,5 @@
#!/bin/bash
+set -e
# Cleanup anything left from previous test runs
git clean -fdx | bash |
d_bash_21020 | ---
+++
@@ -11,3 +11,15 @@
boot2docker ssh -t sudo "/var/lib/boot2docker/docker-enter \"$1\""
}
fi
+
+function docker-remove-most-recent-container() {
+ about 'attempt to remove the most recent container from docker ps -a'
+ group 'docker'
+ docker ps -a | head -2 | tail -1 | awk '{print $NF}' | xargs doc... | bash |
d_bash_21021 | ---
+++
@@ -7,4 +7,4 @@
FILTER_QUERY="?$(join "||" $FILTER_NAME $FILTER_ID)"
fi
-awscli ec2 describe-instances --output table --filters Name=instance-state-name,Values=pending,running,shutting-down,stopping,stopped --query "Reservations[].Instances[$FILTER_QUERY][].{\"1.Name\":$TAG_NAME,\"2.InstanceId\":Insta... | bash |
d_bash_21022 | ---
+++
@@ -2,19 +2,17 @@
set -eux
function create_new_post() {
- echo "
- ---
- layout: post
- title: <Models - Support Vector Machine>
- subtitle: <Discuss support vector machine and more. One model every week.>
- date: '$(date +%FT%T.%N%:z)'
- author: Shubham Chaudhary
- permalink: <>
-... | bash |
d_bash_21023 | ---
+++
@@ -8,13 +8,13 @@
curl -X 'POST' --silent --data-binary '{"text":"A new build for the proxy has started."}' $WEBHOOK > /dev/null
mkdir dockercfg ; cd dockercfg
echo Downloading Docker requirements..
-wget http://$BUILD_DOCKER_HOST:8081/dockerneeds.tar -q
+wget --user=admin --password=$ADMIN_PASSWORD --no-c... | bash |
d_bash_21024 | ---
+++
@@ -1,4 +1,6 @@
#!/bin/bash
+rm -f /home/vagrant/moodle-*.tgz
/usr/bin/mysql -u moodle -D moodle < /home/vagrant/moodle.sql
-/usr/bin/php /home/vagrant/www/moodle2/htdocs/admin/cli/upgrade.php --non-interactive 2>&1 > /vagrant_log/upgrade.txt
+rm -f /home/vagrant/moodle.sql
+/usr/bin/php /home/vagrant/www... | bash |
d_bash_21025 | ---
+++
@@ -3,6 +3,8 @@
WORKING_DIR=`pwd`
ABS_DIR=$WORKING_DIR/ActionBarSherlock-4.2.0
ABS_LIBRARY_DIR=$WORKING_DIR/ActionBarSherlock-4.2.0/library
+
+export SDK=`grep sdk.dir local.properties | cut -d'=' -f2`
if [ ! -d $ABS_DIR ]; then
# Download ActionBarSherlock
@@ -14,7 +16,7 @@
# Prepare the Ac... | bash |
d_bash_21026 | ---
+++
@@ -2,9 +2,14 @@
set -e
set -x
+use_lxc_1_1=${USE_LXC_1_1:-0}
+
lxc-create -n trusty ct -t download -- -d ubuntu -r trusty -a amd64
lxc-start -dn trusty
-lxc-create -n cent7 ct -t download -- -d centos -r 7 -a amd64
-lxc-start -dn cent7
lxc-create -n cent6 ct -t download -- -d centos -r 6 -a amd64
lxc... | bash |
d_bash_21027 | ---
+++
@@ -7,7 +7,7 @@
echo "Install required dependencies"
sudo apt-get install python-networkx python-matplotlib python-pip python-pil.imagetk
sudo apt-get install python-pymodbus
-sudo pip install cpppo
+sudo pip install cpppo web.py
echo "Install optional dependencies"
sudo apt-get install python-nose pyt... | bash |
d_bash_21028 | ---
+++
@@ -1,26 +1,31 @@
-# Based on ssh-agent code
-
local GPG_ENV=$HOME/.gnupg/gpg-agent.env
-function start_agent {
- /usr/bin/env gpg-agent --daemon --enable-ssh-support --write-env-file ${GPG_ENV} > /dev/null
- chmod 600 ${GPG_ENV}
- . ${GPG_ENV} > /dev/null
+function start_agent_nossh {
+ eval $(/usr/... | bash |
d_bash_21029 | ---
+++
@@ -1,2 +1,2 @@
-export PATH="./bin:/usr/local/bin:/usr/local/sbin:$ZSH/bin:$PATH"
+export PATH="/usr/local/bin:/usr/local/sbin:$DOTFILES/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" | bash |
d_bash_21030 | ---
+++
@@ -11,7 +11,7 @@
# e.g. 'linux-image-generic', etc.
dpkg --list \
| awk '{ print $2 }' \
- | grep 'linux-image-3.*-generic' \
+ | grep 'linux-image-.*-generic' \
| grep -v `uname -r` \
| xargs apt-get -y purge;
| bash |
d_bash_21031 | ---
+++
@@ -1,7 +1,6 @@
GIT_TAG=`git tag --points-at HEAD`
-# Temporary !=
-if [[ "$TRAVIS_BRANCH" != "master" ]]; then
+if [[ "$TRAVIS_BRANCH" = "master" ]]; then
cake build:dist
cd build
@@ -12,6 +11,6 @@
if [[ -n "$GIT_TAG" ]]; then
NAME_WITH_TAG="batman-${GIT_TAG}.tar.gz"
mv batman-master.tar.gz ... | bash |
d_bash_21032 | ---
+++
@@ -1,5 +1,3 @@
-export PETSC_DIR=$PREFIX
-
cd $SRC_DIR
py.test test --backend=sequential -v --tb=native | bash |
d_bash_21033 | ---
+++
@@ -5,7 +5,7 @@
echo "Travis branch: " ${TRAVIS_BRANCH}
echo "Travis pull request: " ${TRAVIS_PULL_REQUEST}
echo "Travis JDK version: " ${TRAVIS_JDK_VERSION}
-if [ "${TRAVIS_JDK_VERSION}" == "openjdk7" -a "${TRAVIS_BRANCH}" == "develop" -a "${TRAVIS_PULL_REQUEST}" == "false" ]; then
+if [ "${TRAVIS_... | bash |
d_bash_21034 | ---
+++
@@ -4,6 +4,6 @@
exit 0
fi
"$JAVA_HOME"/bin/native-image --tool:truffle -H:MaxRuntimeCompileMethods=1200 \
- -cp ../language/target/simplelanguage.jar:../launcher/target/launcher-1.0.0-rc10-SNAPSHOT.jar \
+ -cp ../language/target/simplelanguage.jar:../launcher/target/launcher-1.0.0-rc13-SNAPSHOT.j... | bash |
d_bash_21035 | ---
+++
@@ -1,10 +1,11 @@
#!/usr/bin/env bash
set -e
+shopt -s extglob # required for the rm -rf below
git clone https://${GITHUB_TOKEN}@github.com/psalm/phar.git > /dev/null 2>&1
cd phar
-rm -rf !(".git")
+rm -rf -- !(".git")
cp ../build/psalm.phar ../build/psalm.phar.asc ../assets/psalm-phar/* .
mv dot-gi... | bash |
d_bash_21036 | ---
+++
@@ -3,4 +3,4 @@
rm -rf build
rm -rf dist
python3.7 setup.py bdist_wheel
-podman build "$@" . || docker build "$@"
+podman build "$@" . || docker build "$@" . | bash |
d_bash_21037 | ---
+++
@@ -24,6 +24,7 @@
alias cu='composer update'
alias ci='composer install'
alias ccp='composer create-project'
+alias cdu='composer dump-autoload'
# install composer in the current directory
alias cget='curl -s https://getcomposer.org/installer | php' | bash |
d_bash_21038 | ---
+++
@@ -9,7 +9,10 @@
RIOT_WEB_DIR=riot-web
REACT_SDK_DIR=`pwd`
-git clone --depth=1 --branch develop https://github.com/vector-im/riot-web.git \
+curbranch="${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}"
+echo "Determined branch to be $curbranch"
+
+git clone --depth=1 --branch "$curbranch" https://github.com... | bash |
d_bash_21039 | ---
+++
@@ -12,3 +12,8 @@
alias inphantom="phantomjs --webdriver=8643 --debug=true --ssl-protocol=any --ignore-ssl-errors=true"
alias rx='rr vagrant "sudo /etc/init.d/nginx restart"'
+
+alias selbuild="docker run --rm --name=grid --add-host='develop.vagrant.dev:192.168.80.80' -p 4444:24444 -p 5920:25900 \
+ -v /... | bash |
d_bash_21040 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-BASEDIR="$(realpath $(dirname $0))"
+BASEDIR="$(readlink -f $(dirname $0))"
DATADIR="$BASEDIR/hs-data"
DBFILE="$BASEDIR/db/pegasus.db"
HSDATA="https://github.com/HearthSim/hs-data.git" | bash |
d_bash_21041 | ---
+++
@@ -15,6 +15,8 @@
set -e
-for x in */**.mustache; do
- ruby ./validate.rb "$x";
+DIR=$( dirname "${BASH_SOURCE[0]}" )
+
+for x in "$DIR"/*.mustache "$DIR"/**/*.mustache; do
+ ruby "$DIR/validate.rb" "$x" || exit;
done | bash |
d_bash_21042 | ---
+++
@@ -2,7 +2,7 @@
set -e
-PHP_VERSION=7.0.15-0ubuntu0.16.04.4
+PHP_VERSION=7.0.18-0ubuntu0.16.04.1
COMPOSER_VERSION=1.2.1
# PHP | bash |
d_bash_21043 | ---
+++
@@ -5,4 +5,3 @@
if [ "$LINTLINES" -ge 10 ]; then echo "Time to tidy up: $LINTLINES lint warnings." > $WERCKER_REPORT_MESSAGE_FILE; fail "Time to tidy up."; fi
if [ "$LINTLINES" -ge 5 ]; then echo "You should be tidying soon: $LINTLINES lint warnings." > $WERCKER_REPORT_MESSAGE_FILE; warn "You should be tidy... | bash |
d_bash_21044 | ---
+++
@@ -10,7 +10,7 @@
# xx
jj () {
- kk ~/jab "$@"
+ c ~/jab "$@"
}
jv () { | bash |
d_bash_21045 | ---
+++
@@ -10,3 +10,8 @@
cd ../dbutil
/mesonet/python/bin/python ot2archive.py
/mesonet/python/bin/python hads_delete_dups.py
+
+cd ../climodat
+/mesonet/python/bin/python daily_estimator.py
+/mesonet/python/bin/python compute_ia0000.py
+./run.sh >& a | bash |
d_bash_21046 | ---
+++
@@ -7,9 +7,6 @@
echo "*** Daemontools: starting liquidsoap"
exec 2>&1
-PYTHONPATH=${api_client_path}:$PYTHONPATH
-export PYTHONPATH
-
cd /opt/pypo/bin/scripts
-sudo -u ${ls_user} ${ls_path} ${ls_param}
+sudo PYTHONPATH=${api_client_path} -u ${ls_user} ${ls_path} ${ls_param}
# EOF | bash |
d_bash_21047 | ---
+++
@@ -3,7 +3,6 @@
BUILD_COMMAND="./gradlew assemble && ./gradlew check"
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ]; then
echo "Building on master"
- # Below is disabled until we get repo gets added into jCenter
- #BUILD_COMMAND="./gradlew assemble && ./gradlew ch... | bash |
d_bash_21048 | ---
+++
@@ -9,9 +9,19 @@
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST"
echo "TRAVIS_PULL_REQUEST_SHA: $TRAVIS_PULL_REQUEST_SHA"
+echo "$" "ulimit -a"
+
+ulimit -a
+
+echo
+
git clone https://github.com/aimacode/aima-data
+echo
+
julia -e "versioninfo();"
+
+echo
#Some of the testv() doctests in agents.p... | bash |
d_bash_21049 | ---
+++
@@ -1,5 +1,4 @@
#!/bin/bash
export HELTOUR_ENV=STAGING
-cd /var/www/staging.liches4545.com
+cd /var/www/staging.lichess4545.com
/var/www/staging.lichess4545.com/env/bin/celery -A heltour worker -B -f /var/log/staging.heltour/celery.log
- | bash |
d_bash_21050 | ---
+++
@@ -3,7 +3,7 @@
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
export DONT_CHANGE_SHELL=true
- ./macosx/configure_fresh_system.sh
+ ./macosx/up.sh
exit 0
fi
| bash |
d_bash_21051 | ---
+++
@@ -1,4 +1,11 @@
#!/bin/sh
+# Check if XBMC is installed internally
+if [ -f /data/hack/xbmc/xbmc.sqfs && -f /data/hack/xbmc_sqfs.sh ]; then
+ sh /data/hack/xbmc_sqfs.sh &
+ exit
+fi
+
+# Check if we have XBMC installed on n external drive
for m in /tmp/mnt/*; do
if [ -f ${m}/xbmc.bin ] || [... | bash |
d_bash_21052 | ---
+++
@@ -2,7 +2,7 @@
REMOTE=rust
REPO=https://github.com/rust-lang/rust
-REV=80785a547d29519dbdb5781437ec318fb210b980
+REV=fb44b4c0eb1d344f84f7bb2c90f28e31a8a180be
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" | bash |
d_bash_21053 | ---
+++
@@ -3,17 +3,17 @@
mkdocs build --clean
-REPO="git@github.com:hakaru-dev/hakaru.git"
+REPO="git@github.com:hakaru-dev/hakaru-dev.github.io.git"
git clone $REPO outbound
pushd outbound
-git checkout gh-pages || git checkout --orphan gh-pages
+git checkout master || git checkout --orphan master
git rm ... | bash |
d_bash_21054 | ---
+++
@@ -5,7 +5,7 @@
if [[ ${TRAVIS_EVENT_TYPE} == "cron" ]]; then
BLOCKCHAIN_TYPE="geth"
else
- # FIXME: chagne to "tester" once the test failures are fixed
+ # FIXME: change to "tester" once the test failures are fixed
BLOCKCHAIN_TYPE="geth"
fi
@@ -14,6 +14,7 @@
-Wd \
--travis-fold... | bash |
d_bash_21055 | ---
+++
@@ -1,3 +1,3 @@
#!/bin/bash
VERSION=`python3 -c "import json; f = open('./package.json', 'r'); v = json.loads(f.read())['version']; f.close(); print(v)"`
-towncrier --version $VERSION $1
+towncrier build --version $VERSION $1 | bash |
d_bash_21056 | ---
+++
@@ -21,8 +21,9 @@
done
# Update schemas
-jq_in_place .properties.seedVersion.pattern=\"^${VERSION}$\" spec/schema/seed.manifest.schema.json
-jq_in_place .properties.seedVersion.pattern=\"^${VERSION}$\" spec/schema/seed.metadata.schema.json
+VERSION_PATTERN=$(echo ${VERSION} | sed 's^\.^\\\\\.^g')
+jq_in_p... | bash |
d_bash_21057 | ---
+++
@@ -1,9 +1,16 @@
alias be="bundle exec"
-alias bi="bundle install"
alias bl="bundle list"
alias bp="bundle package"
alias bo="bundle open"
alias bu="bundle update"
+
+if [[ "$(uname)" == 'Darwin' ]]
+then
+ local cores_num="$(sysctl hw.ncpu | awk '{print $2}')"
+else
+ local cores_num="$(nproc)"
+fi
+e... | bash |
d_bash_21058 | ---
+++
@@ -4,11 +4,9 @@
FMON_BIN=/usr/local/fmon/bin/fmon
ICONS_DIR="${SD_DIR}/apps"
SCRIPTS_DIR="${SD_DIR}/.adds"
-LOGFILE="${SD_DIR}/.adds/fmon/fmon.log"
[ -e /mnt/onboard/.kobo/version ] || exit 1
-[ -e "$LOGFILE" ] && rm "$LOGFILE"
for app in koreader sketch; do
- "$FMON_BIN" "${ICONS_DIR}/${app}.png" "... | bash |
d_bash_21059 | ---
+++
@@ -1,6 +1,17 @@
#!/bin/bash
set -e
set -x
+
+for dir in . recipes
+do
+ if [ -e $dir/meta.yaml ]
+ then
+ echo "Recipe $dir/meta.yaml found in invalid location."
+ echo "Recipes must be stored in a subfolder of the recipes directory."
+ exit 1
+ fi
+done
+
SCRIPT_DIR=$( cd "... | bash |
d_bash_21060 | ---
+++
@@ -31,7 +31,7 @@
pyenv global "${pyversions}"
# Now, run the tests after sourcing venv for tox install/use
-if [ ! -d ".toxvenv" ]
+if [ ! -d ".toxenv" ]
then
virtualenv-2.7 .toxenv
fi | bash |
d_bash_21061 | ---
+++
@@ -26,6 +26,7 @@
curl http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda3.sh
bash miniconda3.sh -b -p /opt/conda3
rm miniconda3.sh
+ln -s /opt/conda2 /opt/conda
export PATH="/opt/conda/bin:${PATH}"
source activate root
conda config --set show_channel_urls True | bash |
d_bash_21062 | ---
+++
@@ -5,16 +5,21 @@
set -euo pipefail
-version=1.19.2
-os=linux
-arch=amd64
-
# The version of golang in the debian repositories tends to be incredibly
# out of date; let's get ourselves a newer version from upstream:
-curl -L https://golang.org/dl/go${version}.${os}-${arch}.tar.gz -o go.tar.gz
+if [ -e ... | bash |
d_bash_21063 | ---
+++
@@ -8,6 +8,7 @@
# Needed software
sudo pacman -S openssh \
+rsync \
keepass \
wget \
jdk8-openjdk \ | bash |
d_bash_21064 | ---
+++
@@ -15,7 +15,7 @@
cmake \
flex \
g++ \
- g++-4.9 \
+ g++-5 \
gcc \
git \
libboost1.54-all-dev \
@@ -33,7 +33,7 @@
cd "$(dirname "$0")" || ( echo "cd fail"; exit 1 )
-export CC="gcc-4.9"
-export CXX="g++-4.9"
+export CC="gcc-5"
+export CXX="g++-5"
./get_and_build_eve... | bash |
d_bash_21065 | ---
+++
@@ -16,7 +16,7 @@
if [[ -f requirements.txt ]]; then
if [[ ! -s requirements.txt.md5 ]] || ! md5sum --status -c requirements.txt.md5 > /dev/null 2>&1; then
echo "Python requirements in '$DIR' directory are out of date, 'requirements.txt' has been updated."
- python -m pip install -r requirements.txt
+ ... | bash |
d_bash_21066 | ---
+++
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
-gradleVersion=$(curl --fail --show-error --silent https://services.gradle.org/versions/current | jq --raw-output .version)
-sha=$(curl --fail --show-error --silent "https://downloads.gradle.org/distributions/gradle-${gradleVersion}... | bash |
d_bash_21067 | ---
+++
@@ -1,12 +1,11 @@
#!/bin/bash
#
-# Build Docker images of upload server and worker.
-# Note: Message Queue uses stock RabbitMQ docker image.
+# Build the Docker images of autograder.
#
# Usage:
#
# ./build.sh
-# docker-compose up
+#
function @execute() { echo "$@" >&2; "$@"; }
| bash |
d_bash_21068 | ---
+++
@@ -12,7 +12,7 @@
echo "https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.2%2B10/OpenJDK12U-jdk_x64_linux_hotspot_12.0.2_10.tar.gz"
;;
java13)
- echo "https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk13u-2019-09-17-13-18/OpenJDK13U-jdk_x64_linux_hot... | bash |
d_bash_21069 | ---
+++
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
-brew install openssl
-brew install ctls
+brew tap vapor/homebrew-tap
+brew update
+brew install vapor
swift package generate-xcodeproj | bash |
d_bash_21070 | ---
+++
@@ -1,3 +1,3 @@
bindkey "^y" beginning-of-line
-bindkey "^[" backward-word
-bindkey "^]" forward-word
+bindkey "^b" backward-word
+bindkey "^f" forward-word | bash |
d_bash_21071 | ---
+++
@@ -19,7 +19,7 @@
secret_access_key: $SECRET_ACCESS_KEY
credentials_source: static
EOF
- bosh2 create-release --tarball "../built-buildpacks-artifacts/$language-$version.tgz" --name "$language" --version "$version"
+ bosh2 create-release --tarball "../built-buildpacks-artifacts/$language-buil... | bash |
d_bash_21072 | ---
+++
@@ -1,12 +1,15 @@
#!/bin/bash
-REPODIR="$HOME/dev/mozilla-esr17"
+DIRNAME="js-1.8.8"
+REPONAME="mozilla-esr17"
+REPODIR="$HOME/dev/${REPONAME}"
BUILDDIR=$(pwd)
cd "$REPODIR"
hg revert -a
hg st -un | xargs rm
+
PACKAGEVERSION=188-1.0.0
PACKAGEFULLVERSION="${PACKAGEVERSION}~hg"$(date +%Y%m%d)".es... | bash |
d_bash_21073 | ---
+++
@@ -30,5 +30,5 @@
echo "============================"
echo "Running post deploy"
echo "============================"
-ansible-playbook --connection=ssh --timeout=30 --limit=all --inventory-file=./mvp_inventory/ --sudo ${ansible_verbosity} post_deploy.yml
+ansible-playbook --connection=ssh --timeout=30 --in... | bash |
d_bash_21074 | ---
+++
@@ -1,3 +1,11 @@
. ${srcdir}/emulparams/elf32bmipn32-defs.sh
COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
-INITIAL_READONLY_SECTIONS=".MIPS.options : { *(.MIPS.options) }"
+
+# elf32bmipn32-defs.sh use .reginfo, n64 ABI should use .MIPS.options,
+# override INITIAL_READONLY_SECTIONS to do this.
+INITIAL_READO... | bash |
d_bash_21075 | ---
+++
@@ -1,6 +1,9 @@
source $stdenv/setup
-sh ${src} --accept-license
+echo "Unpacking distribution"
+unzip ${src} || true
+
+echo "Constructing JDK and JRE"
if test -z "$installjdk"; then
sh ${construct} . tmp-linux-jdk tmp-linux-jre
ensureDir $out | bash |
d_bash_21076 | ---
+++
@@ -1,4 +1,4 @@
-../dist/build/docgen/docgen prelude.purs > README.md
+../dist/build/docgen/docgen --hierarchy-images prelude.purs > README.md
../dist/build/hierarchy/hierarchy prelude.purs -o prelude
mkdir -p images
mkdir -p ../docs/source/images | bash |
d_bash_21077 | ---
+++
@@ -20,7 +20,7 @@
NODEPOOL_PYPI_MIRROR=${NODEPOOL_PYPI_MIRROR:-http://pypi.$NODEPOOL_REGION.openstack.org/simple}
-sed -i -e "s,^index-url = .*,index-url = $NODEPOOL_PYPI_MIRROR," /etc/pip.conf
+sudo sed -i -e "s,^index-url = .*,index-url = $NODEPOOL_PYPI_MIRROR," /etc/pip.conf
cat >/home/jenkins/.pyd... | bash |
d_bash_21078 | ---
+++
@@ -11,4 +11,7 @@
sh win32/build-with-bootstrap.sh
cd dist/
cp *zip livestreamer-latest-win32.zip
-travis-artifacts upload --path *zip --target-path ""
+
+for zip in *zip; do
+ travis-artifacts upload --path "$zip" --target-path ""
+done | bash |
d_bash_21079 | ---
+++
@@ -8,3 +8,4 @@
rollup -c rollup.config.js
cp package.json lib
cp README.md lib
+find ./lib -name '*.test.js' -or -name '*.test.mjs' -or -name '*.test.d.ts' | xargs rm | bash |
d_bash_21080 | ---
+++
@@ -11,7 +11,7 @@
# a few SHAs rather than a version.
# Docker Hub doesn't always check out the tag and sometimes checks out the branch, so we should look
# for an appropriately tagged branch as well (heads/v1.2.3).
-if [[ $BRANCH != 'HEAD' && $BRANCH != 'heads/v*' ]]
+if [[ $BRANCH != HEAD && ! $BRANCH =~... | bash |
d_bash_21081 | ---
+++
@@ -28,7 +28,7 @@
exit 1
fi
-$OPENSSL req -new -x509 -nodes -config $OPENSSLCONFIG -out $CERTFILE -keyout $KEYFILE || exit 2
+$OPENSSL req -new -x509 -nodes -config $OPENSSLCONFIG -out $CERTFILE -keyout $KEYFILE -days 365 || exit 2
chmod 0600 $KEYFILE
echo
$OPENSSL x509 -subject -fingerprint -noout ... | bash |
d_bash_21082 | ---
+++
@@ -8,8 +8,6 @@
confDirectory=$BASE/$fileName/etc/$productName
hadoopTarFile=hadoop-1.2.1-bin.tar.gz
# Create directories that are required for the debian package
- mkdir -p $binDirectory
- mkdir -p $sbinDirectory
mkdir -p $confDirectory
wget http://www.apache.org/dist/hadoop/... | bash |
d_bash_21083 | ---
+++
@@ -2,7 +2,7 @@
cd www_files/js
test -e jquery-1.4.4.min.js || wget http://code.jquery.com/jquery-1.4.4.min.js
test -e adhoc.js || wget http://cgit.babelmonkeys.de/cgit.cgi/adhocweb/plain/js/adhoc.js
-test -e strophe.js || (wget --no-check-certificate https://github.com/metajack/strophejs/tarball/release-1... | bash |
d_bash_21084 | ---
+++
@@ -7,5 +7,5 @@
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
# Travis-ci doesn't support docker support on OS X. Just verify ctds builds on OS X.
- pip install -v .
+ pip3 install -v .
fi | bash |
d_bash_21085 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
if [ ! -d "$HOME/.dotfiles" ]; then
echo "Installing dotfiles for the first time!"
- git clone git@github.com:chankaward/dotfiles.git "$HOME/.dotfiles"
+ git clone https://github.com/chankaward/dotfiles.git "$HOME/.dotfiles"
cd "$HOME/.dotfiles"
rake install
else | bash |
d_bash_21086 | ---
+++
@@ -1,15 +1,16 @@
#!/bin/bash
-
-# jenkins swarm slave
-JAR=`ls -1 /usr/share/jenkins/swarm-client-*.jar | tail -n 1`
-
-# if using --link jenkins:jenkins
-if [ ! -z "$JENKINS_PORT_8080_TCP_ADDR" ]; then
- PARAMS="-master http://$JENKINS_PORT_8080_TCP_ADDR:$JENKINS_PORT_8080_TCP_PORT"
-fi
# if `docker ru... | bash |
d_bash_21087 | ---
+++
@@ -24,5 +24,5 @@
# Run Server
-java $CROWD $FIXADS $DEBUG_SSL -cp etc -jar $JAR $*
+exec java $CROWD $FIXADS $DEBUG_SSL -cp etc -jar $JAR $*
| bash |
d_bash_21088 | ---
+++
@@ -33,6 +33,7 @@
echo "Finalizing coverage data..."
lcov --add-tracefile coverage.info --add-tracefile baseline.info --output-file combined.info --quiet
lcov --remove combined.info 'Instantiate.h' --output-file final.info --quiet
+lcov --remove final.info 'Test*' --output-file final.info --quiet
# Repo... | bash |
d_bash_21089 | ---
+++
@@ -17,7 +17,7 @@
check_static "cli/cli.test${SUFFIX-}"
# Try running the cockroach binary.
-MALLOC_CONF=prof:true ./cockroach${SUFFIX-} version
+./cockroach${SUFFIX-} version
strip -S "cockroach${SUFFIX-}"
find . -type f -name '*.test*' -exec strip -S {} ';' | bash |
d_bash_21090 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/sh
set -e
if [ ! -e cpm-external ]; then
- git clone --depth 1 git@github.com:jhallen/cpm.git cpm-external
+ git clone --depth 1 https://github.com/jhallen/cpm.git cpm-external
fi
make -C cpm-external
cp cpm-external/cpm . | bash |
d_bash_21091 | ---
+++
@@ -33,6 +33,9 @@
$CPANM List::MoreUtils
+# Always print stack traces when die()ing
+$CPANM Carp::Always
+
# Install profiler and tools
$CPANM Sub::Name~0.15 # contains the required fixes for Devel::NYTProf to install correctly
$CPANM Devel::NYTProf | bash |
d_bash_21092 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-javadoc -private -sourcepath src/main/java:src/test/java -use -version -author -d doc org.numenta.nupic org.numenta.nupic.util org.numenta.nupic.model org.numenta.nupic.research org.numenta.nupic.integration org.numenta.nupic.encoders org.numenta.nupic.algorithms org.numenta.nu... | bash |
d_bash_21093 | ---
+++
@@ -1,4 +1 @@
export PATH=$PATH:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Library/Frameworks/Python.framework/Versions/Current/bin
-
-alias python="python3"
-alias pip="pip3" | bash |
d_bash_21094 | ---
+++
@@ -18,6 +18,7 @@
echo "${USER}"
nvm install stable
nvm use stable
+nvm alias default node
# Install npm packages
npm update -g npm | bash |
d_bash_21095 | ---
+++
@@ -21,11 +21,11 @@
source tools/internal_ci/helper_scripts/prepare_build_macos_rc
# install cython for all python versions
-python2.7 -m pip install -U cython setuptools wheel
-python3.5 -m pip install -U cython setuptools wheel
-python3.6 -m pip install -U cython setuptools wheel
-python3.7 -m pip insta... | bash |
d_bash_21096 | ---
+++
@@ -1,3 +1,6 @@
+if [[ "$BASE16_THEME" == "base16-*" ]]; then
+ export BASE16_THEME="$(echo "$BASE16_THEME" | grep --extended-regexp --only '^base16-(.*)$')"
+fi
BASE16_SHELL="$HOME/.config/dotfiles/shell/vendor/base16-shell/"
[ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && eval "$("$BASE16_SH... | bash |
d_bash_21097 | ---
+++
@@ -5,7 +5,7 @@
echo "****************************"
echo ""
-JAVA=java5
+JAVA=java6
scriptdir=`dirname "$0"`
. "$scriptdir"/sanity.sh ${JAVA} | bash |
d_bash_21098 | ---
+++
@@ -38,7 +38,7 @@
while [[ $# -gt 1 ]]; do
case "$1" in
--*=*)
- PARAMETERS="$PARAMETERS -D$COMMAND.${1:2}"
+ PARAMETERS="$PARAMETERS -D${1:2}"
;;
-*=*)
PARAMETERS="$PARAMETERS -D$COMMAND.${1:1}" | bash |
d_bash_21099 | ---
+++
@@ -5,17 +5,21 @@
port=3000
fi
-curl localhost:$port/book | json_reformat
-curl localhost:$port/sell --data '{"qty":10,"prc":15}' -H "Content-Type: application/json"
-curl localhost:$port/sell --data '{"qty":10,"prc":13}' -H "Content-Type: application/json"
-curl localhost:$port/buy --data '{"qty":10... | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.