document_id stringlengths 8 12 | document stringlengths 50 3.21k | split stringclasses 1
value |
|---|---|---|
d_bash_23300 | ---
+++
@@ -17,18 +17,4 @@
# Let test server know we should allow testing.
export PHP_CURL_CLASS_TEST_MODE_ENABLED="yes"
-if [[ "${CI_PHP_VERSION}" == "7.0" ]]; then
- start_php_servers
-elif [[ "${CI_PHP_VERSION}" == "7.1" ]]; then
- start_php_servers
-elif [[ "${CI_PHP_VERSION}" == "7.2" ]]; then
- sta... | bash |
d_bash_23301 | ---
+++
@@ -1,6 +1,10 @@
#! /usr/bin/env bash
INSTALL="$HOME/.local/share/icons/xscreensaver/timetunnel"
+if ! test -d "${INSTALL}"
+then
+ mkdir "${INSTALL}"
+fi
# Check if any of the images are missing.
if [[ -f "$INSTALL/tardis.xpm" && -f "$INSTALL/whohead1.xpm" && -f "$INSTALL/whologo.xpm" ]]; then
ech... | bash |
d_bash_23302 | ---
+++
@@ -1,7 +1,7 @@
#!/bin/bash
-set -x
for src in *.cpp
do
+ echo g++ -Wall -pipe -march=native -gdwarf-3 -pthread -g -std=c++1y -c $src -o $src.o &
g++ -Wall -pipe -march=native -gdwarf-3 -pthread -g -std=c++1y -c $src -o $src.o &
done
wait
@@ -15,7 +15,9 @@
fi
done
-g++ $objs main.cpp.o -o... | bash |
d_bash_23303 | ---
+++
@@ -7,7 +7,8 @@
cd ${BASH_SOURCE%/*}
# Run system tests
-java -jar gws-system-test.jar \
- -testjar gws-system-test.jar \
+java \
-DwebServicesUrl=http://localhost:8080 \
- -DoauthProviderUrl=https://${ENV}geodesy-openam.geodesy.ga.gov.au/openam/oauth2
+ -DoauthProviderUrl=https://${ENV}geod... | bash |
d_bash_23304 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-svn_revision=`cd "$1" && LANG=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
+svn_revision=`cd "$1" && LC_ALL=C svn info 2> /dev/null | grep Revision | cut -d' ' -f2`
test $svn_revision || svn_revision=UNKNOWN
NEW_REVISION="#define FFMPEG_VERSION \"SVN-r$svn_revisio... | bash |
d_bash_23305 | ---
+++
@@ -20,15 +20,22 @@
if [ "$1" = "-m" ]; then
MAJOR=$(($MAJOR + 1))
MINOR="0"
+ NEW_VERSION=$MAJOR.$MINOR
+ shift
+elif [ "$1" = "-v" ]; then
+ shift
+ NEW_VERSION="$1"
shift
else
MINOR=$(($MINOR + 1))
+ NEW_VERSION=$MAJOR.$MINOR
fi
-sed -i "s/$VERSION/$MAJOR.$MINOR/g" setup.py
+
+sed -i "s... | bash |
d_bash_23306 | ---
+++
@@ -3,7 +3,7 @@
if [ $ARCH != "amd64" ]; then
# prepare qemu
- docker run --rm --privileged hypriot/qemu-register
+ docker run --rm --privileged multiarch/qemu-user-static:register --reset
fi
if [ -d tmp ]; then | bash |
d_bash_23307 | ---
+++
@@ -4,4 +4,6 @@
export SHELLCHECK_OPTS="-e SC2059 -e SC2034 -e SC1090 -e SC2154"
# Run linter
-shellcheck "$@"
+if type shellcheck &>/dev/null ; then
+ shellcheck "$@"
+fi | bash |
d_bash_23308 | ---
+++
@@ -41,6 +41,6 @@
}
it_parses_nested_lists() {
- result=$($LISHP "'(1 2 '(3))")
- test "$result" = "(1 2 (quote 3)))"
+ result=$($LISHP "'(1 2 (3))")
+ test "$result" = "(1 2 (3))"
} | bash |
d_bash_23309 | ---
+++
@@ -17,7 +17,7 @@
./script/run_carton.sh install YAML::Syck
# Install BerkeleyDB correctly before installing the remaining modules from carton.lock
- BERKELEYDB_INCLUDE=/usr/local/include/db44 \
+ BERKELEYDB_INCLUDE=/usr/local/include \
BERKELEYDB_LIB=/usr/local/lib \
./script/run_carton.sh install ... | bash |
d_bash_23310 | ---
+++
@@ -17,7 +17,7 @@
if [[ -z "$*" ]]; then
ARGS=$DEFAULT_CONFIG
else
- if [[ "$*" =~ "^--[a-z]" ]]; then
+ if [[ "$*" =~ ^--[a-z] ]]; then
ARGS="$DEFAULT_CONFIG $*"
else
ARGS="$*" | bash |
d_bash_23311 | ---
+++
@@ -2,7 +2,7 @@
#
# Run hlint on most of the codebase.
#
-# We skip the generated schema, since we deliberate use conventions
+# We skip the generated schema, since we deliberately use conventions
# in the output that hlint will flag. We also skip code that is meant
# to be replaced by the generated outp... | bash |
d_bash_23312 | ---
+++
@@ -5,7 +5,7 @@
# www.pfsense.com
# Grab a random value
-value=`hexdump -n1 -e\"%u\" /dev/random`
+value=`od -A n -d -N2 /dev/random | awk '{print int(($1/65536)*2000)}'`
# Sleep for that time.
sleep $value | bash |
d_bash_23313 | ---
+++
@@ -16,11 +16,16 @@
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# GET ALL THE PLUGINS!
- git clone https://github.com/easymotion/vim-easymotion ~/.vim/bundle/easymotion
git clone git://github.com/tpope/vim-surround ~/.vim/bundle/surround
git clone git://git... | bash |
d_bash_23314 | ---
+++
@@ -4,4 +4,6 @@
python manage.py collectstatic --noinput
python manage.py migrate --noinput
+echo "$GIT_SHA" > static/revision.txt
+
exec gunicorn wsgi:application -b 0.0.0.0:8000 -w 2 --log-file - | bash |
d_bash_23315 | ---
+++
@@ -24,5 +24,6 @@
sleep 0.1
done
fi
+ set +e
jupyter nbsearch update-index $CONDA_DIR/etc/jupyter/jupyter_notebook_config.py local
fi | bash |
d_bash_23316 | ---
+++
@@ -1,2 +1,8 @@
#!/bin/sh
-gradle :systemtests:test -Psystemtests -i --rerun-tasks -Djava.net.preferIPv4Stack=true $1
+TESTCASE=$1
+
+if [ -n "$TESTCASE" ]; then
+ EXTRA_ARGS="-Dtest.single=$TESTCASE"
+fi
+
+gradle :systemtests:test -Psystemtests -i --rerun-tasks -Djava.net.preferIPv4Stack=true $EXTRA_ARG... | bash |
d_bash_23317 | ---
+++
@@ -10,6 +10,12 @@
# Install `ShellCheck` (required for testing)
brew install shellcheck
+
+ # To better simulate a clean macOS install, remove certain things
+ # included by default by Travis CI with brew
+ brew cask uninstall java6
+ brew cask uninstall java7
+ brew cask uninstall... | bash |
d_bash_23318 | ---
+++
@@ -1,5 +1,7 @@
#! /bin/bash
+mkdir -p ~/.config/fish/functions
+mkdir -p ~/.config/fish/conf.d
ln -s -f $(git rev-parse --show-toplevel)/fish/functions/*.fish ~/.config/fish/functions/
ln -s -f $(git rev-parse --show-toplevel)/fish/conf.d/*.fish ~/.config/fish/conf.d/
ln -s -f $(git rev-parse --show-to... | bash |
d_bash_23319 | ---
+++
@@ -21,4 +21,5 @@
git pull
fi
+make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install | bash |
d_bash_23320 | ---
+++
@@ -6,4 +6,3 @@
echo "Failing if lint produces local modifications"
git diff --exit-code
. .shell-lint.sh
-deactivate | bash |
d_bash_23321 | ---
+++
@@ -5,19 +5,23 @@
set -euo pipefail
-declare -A DEVICES
-DEVICES['Nude Super-M']='A0:E9:DB:5C:FD:44'
-DEVICES['Zeus']='60:E3:27:09:12:DE'
+declare -A MAC_ADDRESSES PULSE_SINKS
+MAC_ADDRESSES['Nude Super-M']='A0:E9:DB:5C:FD:44'
+MAC_ADDRESSES['Zeus']='60:E3:27:09:12:DE'
+PULSE_SINKS['Nude Super-M']='bluez... | bash |
d_bash_23322 | ---
+++
@@ -1,3 +1,26 @@
unsetopt auto_cd # with cdpath enabled, auto_cd gives too many false positives
cdpath=($HOME/code $HOME/code/work $HOME/code/work/current $HOME/code/vim $HOME/code/alfred $HOME)
-alias c=cd
+
+_cdpath_directories() {
+ modified_in_last_days=${1:-999}
+ echo "${CDPATH//:/\n}" | while read ... | bash |
d_bash_23323 | ---
+++
@@ -40,7 +40,7 @@
if [[ ${RET_CODE} != 0 ]] && [[ $1 == "npm run test" ]]; then
#Run DEBUG_TEST_CMD command to show error in log
echo "[FAILED] $1 -> try to re-run to show error in debug mode"
- local DEBUG_TEST_CMD="`which istanbul` cover _mocha -- --compilers js:babel/registe... | bash |
d_bash_23324 | ---
+++
@@ -7,5 +7,4 @@
GATE_DEST=$BASE/new
DEVSTACK_PATH=$GATE_DEST/devstack
-echo "Projects: $PROJECTS"
$BASE/new/devstack-gate/devstack-vm-gate.sh | bash |
d_bash_23325 | ---
+++
@@ -1,7 +1,5 @@
#!/bin/bash
set -e
-
-source $(dirname $0)/common.sh
version=$( cat version/version )
| bash |
d_bash_23326 | ---
+++
@@ -23,4 +23,4 @@
estimate-ngram -s FixKN -o 7 -t ${outdir}/corpus -wl ${outdir}/arpa
-phonetisaurus-arpa2wfst --lm=${outdir}/arpa --ofile=${outdir}/wfsa
+phonetisaurus-arpa2wfst --lm=${outdir}/arpa --ofile=${outdir}/wfsa --split="]" | bash |
d_bash_23327 | ---
+++
@@ -29,5 +29,6 @@
cd "$INSTALL_DIR"
git clone https://github.com/danmar/cppcheck.git
cd cppcheck
+git checkout 1.88
make | bash |
d_bash_23328 | ---
+++
@@ -11,8 +11,6 @@
mkdir -p ~/.nvm
fi
source ~/dotfiles/terminal/bash/load_nvm.sh
-nvm install 8.17.0
-nvm install 10.16.3
nvm install 12.16.3
nvm install 16.5.0
nvm alias default 16.5.0 | bash |
d_bash_23329 | ---
+++
@@ -1,5 +1,5 @@
#!/bin/bash
-ver=`cat src/mumble/Global.h | grep '#define MUMBLE_VERSION' | sed 's,.*MUMBLE_VERSION\ ",,' | sed 's,".*,,'`
+ver=`cat src/mumble/Global.h | grep '#define MUMBLE_VERSION' | sed 's,.*MUMBLE_VERSION\ ,,'`
if [ "$ver" != "" ]; then
python scripts/osxdist.py $ver
else | bash |
d_bash_23330 | ---
+++
@@ -1,8 +1,27 @@
-# Sets reasonable OS X defaults.
-#
-# Or, in other words, set shit how I like in OS X.
-#
-# The original idea (and a couple settings) were grabbed from:
-# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
-#
-# Run ./set-defaults.sh and you'll be good to go.
+#!/usr/bin/env bas... | bash |
d_bash_23331 | ---
+++
@@ -3,6 +3,6 @@
pip3 install -e . --upgrade
git clone -b $INFRA_BRANCH https://$GIT_USERNAME:$GIT_PASSWORD@$INFRA_REPO
-python3 dodo/test/sys_tests/test_sys_stack_create.py -y amazonia/application.yaml -d dodo/configuration_code/scripts/amazonia/amazonia/amazonia_ga_defaults.yaml -t testSysStackGA.templat... | bash |
d_bash_23332 | ---
+++
@@ -8,6 +8,10 @@
fi
}
+clipencode() {
+ cat $1 | base64 -w 0 | xclip -selection clipboard
+}
+
# Aliases
alias pass-generate="pass generate -c"
k8s_aliases | bash |
d_bash_23333 | ---
+++
@@ -3,3 +3,5 @@
alias vim='ec'
alias vi='ec'
+
+__append-path-entry $HOME/.cask/bin | bash |
d_bash_23334 | ---
+++
@@ -29,6 +29,9 @@
done
if $A_VERSION_HAS_FAILED ; then
+ echo "***************************************"
+ echo "One or more driver versions have FAILED"
+ echo "***************************************"
exit 1;
fi
| bash |
d_bash_23335 | ---
+++
@@ -9,9 +9,9 @@
echo "#!/bin/bash" > /etc/profile.d/local-bin.sh
echo "pathmunge /usr/local/bin after" >> /etc/profile.d/local-bin.sh
-gem install sass -v 3.4.10
+gem install -N sass -v 3.4.10
echo "Installed SASS version: `/usr/local/bin/sass -v`"
echo "Installing Compass"
-gem install compass -v 1.0... | bash |
d_bash_23336 | ---
+++
@@ -1,4 +1,11 @@
#/bin/bash -eu
+
+if [[ `uname` == "Linux" ]]
+then
+ mv lib/amd64/jli/*.so lib
+ mv lib/amd64/*.so lib
+ rm -r lib/amd64
+fi
cp -r bin $PREFIX
cp -r include $PREFIX | bash |
d_bash_23337 | ---
+++
@@ -3,11 +3,16 @@
set -e
NO_USE_BINARIES=""
+VERBOSE_MODE=""
if [[ "${no_use_binaries}" == "true" ]] ; then
NO_USE_BINARIES='--no-use-binaries'
fi
+if [[ "${verbose_output}" == "true" ]] ; then
+ VERBOSE_MODE='--verbose'
+fi
+
#
# Bootstrap
-carthage "${carthage_command}" --platform iOS ${NO_USE... | bash |
d_bash_23338 | ---
+++
@@ -1,24 +1,28 @@
#!/bin/sh
-ARG=""
+ARGD=""
+ARGE=""
if [ x"$1" = x"-v" -o x"$1" = x"-V" ]; then
- ARG="-l debug"
+ ARGD="-l debug"
+ ARGE="-V"
fi
-timeout 5s ./examples/ex1 $ARG
+echo "Starting test ..."
+
+timeout 5s ./examples/ex1 $ARGE
if [ $? -eq 0 ]; then
echo "Test FAIL! (1)"
... | bash |
d_bash_23339 | ---
+++
@@ -18,7 +18,7 @@
then
# this means we're running jenkins
cp crashstats/settings/local.py-dist crashstats/settings/local.py
- echo "# force jenkins.sh" >> crashstats/settings/local.py
+ echo "# force compression for CI" >> crashstats/settings/local.py
echo "COMPRESS_OFFLINE = True" >> cr... | bash |
d_bash_23340 | ---
+++
@@ -15,7 +15,7 @@
export DEV_NET="-device virtio-net,netdev=net0,mac=$macaddress -netdev tap,id=net0,script=$qemu_ifup"
export SMP="-smp 1"
-export DEV_GRAPHICS="-vga std" #"--nographic"
+export DEV_GRAPHICS="--nographic" #For a VGA console (which won't work over ssh), use "-vga std"
export DEV_HDD="-h... | bash |
d_bash_23341 | ---
+++
@@ -3,5 +3,4 @@
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install -y jenkins
-sudo usermod -aG docker vagrant
sudo service jenkins start | bash |
d_bash_23342 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh -ex
-V=ocaml-4.02.0
+V=ocaml-4.02.1
URL=http://caml.inria.fr/pub/distrib/ocaml-4.02/${V}.tar.gz
mkdir -p bootstrap
cd bootstrap | bash |
d_bash_23343 | ---
+++
@@ -3,7 +3,7 @@
bundle install --path "${HOME}/bundles/${JOB_NAME}" --deployment
-bundle exec rake test
+bundle exec rake syntax test
RESULT=$?
mkdir -p build | bash |
d_bash_23344 | ---
+++
@@ -3,30 +3,34 @@
# Verify parameters exist
if [[ $# -lt 2 ]]
then
- echo 'Usage: ./add_copyright.sh {image} "COPYRIGHT TEXT"'
+ echo 'Usage: ./add_copyright.sh "COPYRIGHT TEXT" {image}'
exit 1
fi
PLACEMENT="southeast"
TEXT_SIZE="20"
-INPUT_IMAGE="$1"
-BASE=${INPUT_IMAGE%.*}
-OUTPUT_IMAGE="output/$B... | bash |
d_bash_23345 | ---
+++
@@ -41,6 +41,30 @@
fi
}
+test_std_header_plus_custom() {
+ local expected=$(cat <<EOS
+---
+[imag]
+links = []
+version = "0.1.0"
+
+[zzz]
+zzz = "z"
+---
+
+EOS
+)
+
+ imag-store create -p /test-std-header-plus-custom entry -h zzz.zzz=z
+ local result=$(cat ${STORE}/test-std-header-plus-cust... | bash |
d_bash_23346 | ---
+++
@@ -23,3 +23,5 @@
conda install -y anaconda-client
conda install -y jinja2
+
+conda update -y --all | bash |
d_bash_23347 | ---
+++
@@ -17,7 +17,7 @@
SAML_SSL_CERT_FILE=$WORKSPACE/configuration_secure/${SAML_CERT_FILE}
cd $WORKSPACE/sysadmin
-pip install -r requirements.txt
+pip install -r requirements/base.txt
cd jenkins
python saml-ssl-expiration-check.py --region $REGION -d $DAYS -i $SAML_SSL_CERT_FILE | bash |
d_bash_23348 | ---
+++
@@ -17,6 +17,6 @@
destination=remote_builds/`hostname``pwd | tr / _`
ssh "$machine" mkdir -p remote_builds
-rsync -ac --delete . "$machine:$destination/"
+rsync -ac --delete $RSYNC_ARGS . "$machine:$destination/"
ssh "$machine" cd "$destination" \&\& make "$@"
-rsync -ac "$machine:$destination/" .
+rsync... | bash |
d_bash_23349 | ---
+++
@@ -3,13 +3,15 @@
# need to install node first to be able to install yarn (as at prebuild no node is present yet)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
+
+
+# install
+cd /var/app/staging/
+
nvm install 15
echo "installed node versio... | bash |
d_bash_23350 | ---
+++
@@ -1,6 +1,11 @@
#!/usr/bin/env sh
-UNIT_TEST=./check_mem_leaks
+SCRIPT_PATH="$(dirname "$(readlink -f "$0")")"
+if test -z "${1}"; then
+ UNIT_TEST="${SCRIPT_PATH}/check_mem_leaks"
+else
+ UNIT_TEST="${1}"
+fi
VALGRIND_LOG_FILE=${UNIT_TEST}.valgrind
LEAK_MESSAGE="are definitely lost"
| bash |
d_bash_23351 | ---
+++
@@ -5,5 +5,8 @@
if [ ! -d "$OMZDIR" ]; then
echo "Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
+else
+ echo "Updating oh-my-zsh"
+ cd $OMZDIR && git pull
fi
| bash |
d_bash_23352 | ---
+++
@@ -5,6 +5,6 @@
cd "$(dirname "${BASH_SOURCE[0]}")"
# Force create symlinks
-ln -sf "$(pwd)/.bash_profile" ~
-ln -sf "$(pwd)/.vimrc" ~
-ln -sf "$(pwd)/.gitconfig" ~
+ln -sf "$PWD/.bash_profile" ~
+ln -sf "$PWD/.vimrc" ~
+ln -sf "$PWD/.gitconfig" ~ | bash |
d_bash_23353 | ---
+++
@@ -21,4 +21,4 @@
root="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
make -C $root/../src api_wrappers toolkit_version
-(cd $root/../src/python; python setup.py sdist upload -s)
+(cd $root/../src/python; python setup.py sdist upload -s -i 2F7B9277) | bash |
d_bash_23354 | ---
+++
@@ -9,11 +9,20 @@
else
echo "Installing node modules (package.json)"
fi
+ echo "mem and disk before install"
+ free -mh
+ df -h
echo "Going to install"
npm install --unsafe-perm --userconfig $build_dir/.npmrc 2>&1
+ echo "mem and disk post install"
+ free -mh
+ df ... | bash |
d_bash_23355 | ---
+++
@@ -1,5 +1,15 @@
#!/bin/bash
+
+is_charging=$(acpi | grep Charging)
+
+# Add differente prefix to log file depending if charging or not
+if [[ $is_charging = "" ]]; then
+ prefix=$'dis'
+else
+ prefix=$'char'
+fi
log_date=$(date '+%d_%m_%Y-%H_%M')
-upower -i /org/freedesktop/UPower/devices/battery_BAT1 ... | bash |
d_bash_23356 | ---
+++
@@ -20,8 +20,8 @@
. ../scripts/check_secrets.sh
if [[ "$have_secrets" == true ]]; then
../scripts/install_secrets.sh
- cp Secrets/quickstart-ios/"${DIRECTORY}"/GoogleService-Info.plist ./
- cp Secrets/quickstart-ios/TestUtils/FIREGSignInInfo.h ../TestUtils/
+ cp ../scripts/Secrets/quicksta... | bash |
d_bash_23357 | ---
+++
@@ -15,7 +15,7 @@
cd "$TRAVIS_BUILD_DIR"/ld || exit
# increase irom0_0_seg size for all modules build
-sed -E -i.bak 's@(.*irom0_0_seg *:.*len *=) *[^,]*(.*)@\1 0xA0000\2@' nodemcu.ld
+sed -E -i.bak 's@(.*irom0_0_seg *:.*len *=) *[^,]*(.*)@\1 0xC0000\2@' nodemcu.ld
cat nodemcu.ld
# change to "root" di... | bash |
d_bash_23358 | ---
+++
@@ -21,6 +21,7 @@
for _sublime_path in $_sublime_darwin_paths; do
if [[ -a $_sublime_path ]]; then
alias st="'$_sublime_path'"
+ break
fi
done
fi | bash |
d_bash_23359 | ---
+++
@@ -4,4 +4,4 @@
what="$@"
fi
-exec python3 -m pytest -v --log-level=DEBUG --cov=scuba --cov=tests $what
+exec python3 -m pytest -v --log-level=DEBUG --junit-xml=unit-test-results.xml --cov=scuba --cov=tests $what | bash |
d_bash_23360 | ---
+++
@@ -2,6 +2,7 @@
for i in $1/*.bin
do
+ find . -name "*.gcda" -type f -delete
if test -f $i
then
if ./$i | bash |
d_bash_23361 | ---
+++
@@ -4,11 +4,10 @@
readonly RAILS_VERSIONS=(41 42 50 51)
readonly RUBY_VERSIONS=(2.3.8 2.3.8 2.5 2.5)
-readonly CURRENT_JOB_IDX=`expr ${BUILDKITE_PARALLEL_JOB} + 1`
-readonly RAILS_VERSION=${RAILS_VERSIONS[$CURRENT_JOB_IDX]}
-readonly RUBY_VERSION=${RUBY_VERSIONS[$CURRENT_JOB_IDX]}
+readonly RAILS_VERSION=... | bash |
d_bash_23362 | ---
+++
@@ -4,5 +4,5 @@
# make sure the package repository is up to date
zypper --non-interactive --gpg-auto-import-keys ref
-zypper -n in --no-recommends python-devel python-pip make bind-utils
+zypper -n in --no-recommends python-devel python-pip make bind-utils gcc-c++
pip install pytest mock==1.0.0 timelib | bash |
d_bash_23363 | ---
+++
@@ -6,6 +6,11 @@
if [ ! -e $REDCAP_ROOT ]; then
echo "Error: REDCAP_ROOT, $REDCAP_ROOT, does not exist. Exiting."
+ exit
+fi
+if [ ! -e $REDCAP_HOOKS ]; then
+ mkdir $REDCAP_ROOT/hooks
+ echo "REDCap Hooks Directory Created."
exit
fi
@@ -17,8 +22,8 @@
echo "Error: redcap-extras ... | bash |
d_bash_23364 | ---
+++
@@ -33,4 +33,4 @@
aptly repo create -distribution=${DISTRIBUTION} -comment="${COMMENT}" -component=main mcpr-cli-release
aptly repo add mcpr-cli-release bin/${LATEST_PREFIX}/linux/${1}
aptly snapshot create mcpr-cli-${1} from repo mcpr-cli-release
-aptly publish snapshot -batch=true -gpg-key="C4B1ED8C" -ar... | bash |
d_bash_23365 | ---
+++
@@ -10,7 +10,7 @@
sudo apt-get update -qq
sudo apt-get install -y aptitude
-sudo aptitude install -y nkf git screen vim rubygems1.9.1 ruby1.9.1-dev ipython g++ trash-cli python-pip lyx ${pdf_viewer} ${image_viewer} ${image_editor} ${desktop_capture} ${video_editor} ${webdav_client} meshlab exuberant-ctags... | bash |
d_bash_23366 | ---
+++
@@ -21,9 +21,6 @@
exit 1
fi
-# Update the server from repositories
-apt-get -y -qq update > /dev/null
-apt-get -y -qq upgrade > /dev/null
-
# Install baseline packages
-apt-get install -y -qq git xinetd perl wget curl python ssh mysql-server openjdk-7-jdk maven sshpass > /dev/null
+apt-get upgrade -q... | bash |
d_bash_23367 | ---
+++
@@ -14,13 +14,14 @@
fi
export NVIM_HOME="$XDG_CONFIG_HOME/nvim"
+export NVIM_INIT="$XDG_CONFIG_HOME/nvim/init.vim"
./install_nvim.sh
# Make sure we have the needed directories
mkdir -p "$NVIM_HOME/undos"
-mkdir -p "$NVIM_HOME/undos"
+mkdir -p "$NVIM_HOME/bundle"
mkdir -p "$XDG_DATA_HOME/shada"
... | bash |
d_bash_23368 | ---
+++
@@ -2,6 +2,7 @@
CLASSPATH_COMPILE=JGSTestclasses/Demo/target/scala-2.11/classes:JGSTestclasses/Scratch/target/scala-2.11/classes:JGSSupport/target/scala-2.11/classes:DynamicAnalyzer/target/scala-2.11/classes
CLASSPATH_RUN=.:DynamicAnalyzer/target/scala-2.11/classes:GradualConstraints/InstrumentationSupport/... | bash |
d_bash_23369 | ---
+++
@@ -14,5 +14,10 @@
fly unpause-pipeline --pipeline "${pipeline}"
curl "${ATC_URL}/pipelines/${pipeline}/jobs/init-bucket/builds" -X POST
+
+cat <<EOF
+You can watch the last vpc deploy job by running the command below.
+You might need to wait a few moments before the latest build starts.
+
fly -t "${fly_... | bash |
d_bash_23370 | ---
+++
@@ -14,12 +14,8 @@
END_FOLD
fi
-if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
- extended="--extended --exclude feature_pruning"
-fi
-
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
BEGIN_FOLD functional-tests
- DOCKER_EXEC test/functional/test_runner.py --ci --combinedlogslen=4000 --coverage --quiet -... | bash |
d_bash_23371 | ---
+++
@@ -5,18 +5,23 @@
# This is useful when developing new Gatsby features and wanting to test them out with real user-tests.
-# You should invoke this from the project root, i.e. ./bin/gatsby.sh
-
# To run non-interactively (i.e. skip prompting of the simulation to be run) use:
-# ./bin/gatsby.sh [-f] -s... | bash |
d_bash_23372 | ---
+++
@@ -23,7 +23,7 @@
pip install -q tf-nightly;
elif [[ "$version" == "tf2" ]]
then
- pip install -q "tf-nightly-2.0-preview"
+ pip install -q "tf-nightly"
else
pip install -q "tensorflow==$version"
fi | bash |
d_bash_23373 | ---
+++
@@ -12,12 +12,11 @@
mkdir build
cd build
-ls -R ../googletest/googletest
cmake .. \
-DCMAKE_MODULE_PATH=/usr/local/opt/sfml/share/SFML/cmake/Modules \
-DGTEST_LIBRARY=../googletest/build/googlemock/gtest/libgtest.a \
-DGTEST_MAIN_LIBRARY=../googletest/build/googlemock/gtest/libgtest_main.a \
- -DGT... | bash |
d_bash_23374 | ---
+++
@@ -6,12 +6,8 @@
if [ -f ~/.bash_profile ]; then
source ~/.bash_profile > /dev/null
-fi
-
-if [ -f ~/.bash_login ]; then
+elif [ -f ~/.bash_login ]; then
source ~/.bash_login > /dev/null
-fi
-
-if [ -f ~/.profile ]; then
+elif [ -f ~/.profile ]; then
source ~/.profile > /dev/null
fi | bash |
d_bash_23375 | ---
+++
@@ -1,10 +1,12 @@
#!/bin/bash
set -v
+set -e
# Enable APIs
gcloud services enable vision.googleapis.com
gcloud services enable cloudfunctions.googleapis.com
+gcloud services enable firestore.googleapis.com
# Create a public EU multi-region bucket with uniform access
export BUCKET_NAME=uploaded-pi... | bash |
d_bash_23376 | ---
+++
@@ -11,5 +11,5 @@
}
rm_stubs() {
- /usr/bin/rm -rf $BATS_TEST_DIRNAME/stub
+ /bin/rm -rf $BATS_TEST_DIRNAME/stub
} | bash |
d_bash_23377 | ---
+++
@@ -15,6 +15,10 @@
else
# also for X11:
export LDFLAGS="$LDFLAGS -Wl,-rpath-link,$PREFIX/lib"
+
+ # Clashing libX11 causes overlinking problems unless we do this
+ # libX11 is provided by xorg-libx11 and pulled in by cairo
+ rm -rf $PREFIX/lib/libX11.so*
fi
meson setup builddir -D enab... | bash |
d_bash_23378 | ---
+++
@@ -10,6 +10,7 @@
if [ "$ERLWS" == 4 ]; then
CFLAGS=-m32
+ LDFLAGS=-m32
fi
-[ -d deps/uuid-1.6.2 ] || (cd deps && tar xzvfp uuid-1.6.2.tar.gz && cd uuid-1.6.2 && CFLAGS=$CFLAGS ./configure -disable-debug --without-perl --without-php --without-pgsql && make)
+[ -d deps/uuid-1.6.2 ] || (cd deps && t... | bash |
d_bash_23379 | ---
+++
@@ -1,5 +1,10 @@
# Customize prompt
# See https://wiki.archlinux.org/index.php/Zsh#Customizing_the_prompt
# See http://www.nparikh.org/unix/prompt.php
+# See https://wiki.archlinux.org/index.php/Git#Git_prompt
+# See https://git-scm.com/book/tr/v2/Git-in-Other-Environments-Git-in-Zsh
autoload -U colors &&... | bash |
d_bash_23380 | ---
+++
@@ -7,8 +7,13 @@
shift
else
echo "usage: $0 SV_TESTS_LOG_DIR" >&2
- exit1
+ exit 1
fi
-# Summarize and count the distinct error messages
-find $LOG_DIR -name "*.log" | xargs grep --no-filename -E "^(error|fatal):" | sort | uniq -c | sort -rn | less
+if [ $# -ge 0 ]; then
+ # Search trou... | bash |
d_bash_23381 | ---
+++
@@ -19,11 +19,13 @@
ROOT_DIR=$(git rev-parse --show-toplevel)
-cmake --version
+CMAKE_BIN=${CMAKE_BIN:-$(which cmake)}
+
+"$CMAKE_BIN" --version
cd ${ROOT_DIR?}
rm -rf build/
mkdir build && cd build
-cmake -DIREE_BUILD_COMPILER=ON -DIREE_BUILD_TESTS=ON -DIREE_BUILD_SAMPLES=OFF -DIREE_BUILD_DEBUGGER=... | bash |
d_bash_23382 | ---
+++
@@ -9,4 +9,4 @@
# We need to test with a package that supports Emacs 24.5 here.
emacs --batch -l "$HOME/.emacs.d/straight/repos/straight.el/bootstrap.el" \
--eval "(straight-use-package 'use-package)" \
- --eval "(use-package clojure-mode :straight t)"
+ --eval "(use-... | bash |
d_bash_23383 | ---
+++
@@ -1,4 +1,6 @@
zmodload -i zsh/complist
+
+WORDCHARS=''
unsetopt menu_complete # do not autoselect the first completion entry
unsetopt flowcontrol | bash |
d_bash_23384 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/bash
-git_tag="$(git describe || echo unknown)"
+git_tag="$(git describe --dirty || echo unknown)"
git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
git_files_are_clean=1
# Check if there are any modified files. | bash |
d_bash_23385 | ---
+++
@@ -20,8 +20,8 @@
# Functions to display messages
note() {
- echo ${textblue}$@${textreset}
+ echo -e "${textblue}$@${textreset}"
}
header() {
- echo ${textred}$@${textreset}
+ echo -e "${textred}$@${textreset}"
} | bash |
d_bash_23386 | ---
+++
@@ -8,7 +8,7 @@
echo '<small>'
echo '<img class="footer" src="rootlogo_s.gif" alt="root"/></a>'
# Doxygen unconditionally adds a space in front of $DOXYGEN_ROOT_VERSION
-echo 'ROOT'$DOXYGEN_ROOT_VERSION' - Reference Guide Generated on $datetime.'
+echo 'ROOT'$DOXYGEN_ROOT_VERSION' - Reference Guide Generat... | bash |
d_bash_23387 | ---
+++
@@ -14,11 +14,26 @@
# This script is executed inside post_test_hook function in devstack gate.
-cd /opt/stack/new/mistral/functionaltests
-sudo ./run_tests.sh
-RETVAL=$?
+
+RETVAL=0
+
+#Run API tests only for mistral repository
+if [[ "$ZUUL_PROJECT" == "stackforge/mistral" ]]; then
+ cd /opt/stack/ne... | bash |
d_bash_23388 | ---
+++
@@ -6,6 +6,9 @@
--link avalon-mongo:mongo \
--env AVALON_SILENT \
--env AVALON_MONGO=mongodb://mongo:27017 \
+ --env TRAVIS_JOB_ID \
+ --env TRAVIS_BRANCH \
+ --env COVERALLS_REPO_TOKEN \
avalon/core:maya
# Rename coverage data file and will be combined later
mv .coverage .coverage.maya | bash |
d_bash_23389 | ---
+++
@@ -17,15 +17,23 @@
EOF
service mysql stop
mysqld_safe --skip-grant-tables --init-file=/tmp/recover_root_mysql.ini &
+
+ while ! [[ "$mysqld_process_pid" =~ ^[0-9]+$ ]]; do
+ mysqld_process_pid=$(echo "$(ps -C mysqld -o pid=)" | sed -e 's/^ *//g' -e 's/ *$//g')
+ sleep 1
+ done
+
+ ... | bash |
d_bash_23390 | ---
+++
@@ -1,7 +1,8 @@
#!/bin/sh
echo "The shell is $SHELL"
set -e
-PIP_INSTALL="pip install --use-mirrors --upgrade"
+[ "$IS_TRAVIS" = "true" ] && CFLAGS=-O0 pip install lxml || true
+PIP_INSTALL="pip install --use-mirrors"
$PIP_INSTALL --editable .
$PIP_INSTALL -r requirements.txt
[ -n "$DAV_SERVER" ] || DAV... | bash |
d_bash_23391 | ---
+++
@@ -1,3 +1,9 @@
+#!/bin/bash
+cd ~/Downloads
+wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
+bash Miniconda3-latest-MacOSX-x86_64.sh
+
+source ~/.bashrc
packages='jupyter
pymc
@@ -22,3 +28,5 @@
source activate astropy2
pip install barak
+
+# source deactivate | bash |
d_bash_23392 | ---
+++
@@ -5,6 +5,23 @@
should_raise 0
test \
+ "make init" \
+ "ls" \
+ should_output "Config.mk\nMakefile\ndep\ndoc\ninclude\nsrc"
+
+test \
"cp ../resources/hello.cpp hello.cpp" \
"make standard" \
should_raise 0
+
+test \
+ "cp ../resources/hello.cpp hello.cpp" \
+ "make standard" \
+ "ls" \... | bash |
d_bash_23393 | ---
+++
@@ -6,7 +6,9 @@
echo "Taking a screenshot of $input and saving it into $output"
xterm -maximized -e "echo hi && cat $input && read" &
sleep .5s
- import -window "$(xdotool search --class xterm)" $output
+ window_id=$(xdotool search --class xterm | head)
+ import -window "$window_id" /tmp/screensho... | bash |
d_bash_23394 | ---
+++
@@ -28,6 +28,6 @@
}
# find . -name *.slim | xargs git diff --
-# TODO: add function to open last working files in vim
-# git diff HEAD~2 --name-only
-# Example: vim `git diff HEAD~2 --name-only`
+vim-last() {
+ vim `git diff HEAD~$1 --name-only`
+} | bash |
d_bash_23395 | ---
+++
@@ -17,4 +17,4 @@
alias gb='git branch'
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias grm="git status | grep deleted | awk '{\$1=\$2=\"\"; print \$0}' | \
- sed 's/^[ \t]*//' | sed 's/ /\\\\ /g' | xargs git rm"
+ perl -pe 's/^[ \t]*//' | sed 's/ /\\... | bash |
d_bash_23396 | ---
+++
@@ -8,6 +8,7 @@
script/websocket-server.rb stop
kill $(cat tmp/pids/server.pid)
-rake db:drop
+rake db:drop RAILS_ENV=test
+rake db:drop RAILS_ENV=production
exit $EXIT | bash |
d_bash_23397 | ---
+++
@@ -2,7 +2,8 @@
#based on
#http://dev.px4.io/ros-mavros-installation.html
if [ ! -d /DroneLab/ros/catkin_ws/build ] ; then
-source /opt/ros/indigo/setup.bash
+#source /opt/ros/indigo/setup.bash
+source /opt/ros/kinetic/setup.bash
cd /DroneLab/ros/catkin_ws
catkin_make install && cd build && make install
... | bash |
d_bash_23398 | ---
+++
@@ -1,17 +1,12 @@
#!/bin/bash
-cd $1
+# gm mogrify needs to be called from folder where images are
+cd $1/orig
-mkdir 10p
-mkdir 240p
-mkdir 360p
-mkdir 480p
-mkdir 720p
-mkdir 1080p
-
-ls orig/*|while read i;do gm convert $i -resize "10x" -unsharp 2x0.5+0.5+0 -quality 80 10p/`basename $i`;done
-ls orig/... | bash |
d_bash_23399 | ---
+++
@@ -1,6 +1,6 @@
#!/bin/sh
-INFILE=CT062.fits
+INFILE=data/CT062.fits
./denoising_with_fft.py -s -t 0.02 "${INFILE}"
./denoising_with_wavelets_mr_transform.py "${INFILE}" | bash |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.