<commit_before>#!/bin/bash

set -e
releaseurl="https://api.github.com/repos/openebs/mayaserver/releases"
CURDIR=`pwd`

if [[ $(which mayaserver >/dev/null && mayaserver version | head -n 1 | cut -d ' ' -f 2 | sed 's/dev//' | cut -d "'" -f 2) == "$MAYA_VERSION" ]]; then    
echo "Mayaserver v$MAYA_VERSION already installed; Skipping"
    exit
fi

cd /tmp/

#if [ ! -f "./mayaserver_${MAYA_VERSION}.zip" ]; then
echo "Fetching Mayaserver ${MAYA_VERSION} ..."
#curl -sSL https://github.com/openebs/mayaserver/releases/download/${MAYA_VERSION}/mayaserver-linux_amd64.zip -o mayaserver.zip
wget $(curl -sS $releaseurl | grep "browser_download_url" | awk '{print $2}' | tr -d '"' | head -n 2 | tail -n 1)

echo "Installing Mayaserver ${MAYA_VERSION} ..."
unzip mayaserver-linux_amd64.zip
sudo chmod +x mayaserver
sudo mv mayaserver /usr/bin/mayaserver

# Setup config directory for mayaserver
sudo mkdir -p /etc/mayaserver/orchprovider
sudo chmod a+w /etc/mayaserver/orchprovider


cd ${CURDIR}<commit_msg>Fixing the installation<commit_after>#!/bin/bash

set -e

MAYA_VERSION="0.0.5"
CURDIR=`pwd`

if [[ $(which mayaserver >/dev/null && mayaserver version | head -n 1 | cut -d ' ' -f 2 | sed 's/dev//' | cut -d "'" -f 2) == "$MAYA_VERSION" ]]; then    
echo "Mayaserver v$MAYA_VERSION already installed; Skipping"
    exit
fi

cd /tmp/

if [ ! -f "./mayaserver_${MAYA_VERSION}.zip" ]; then
echo "Fetching Mayaserver ${MAYA_VERSION} ..."
curl -sSL https://github.com/openebs/mayaserver/releases/download/${MAYA_VERSION}/mayaserver-linux_amd64.zip -o mayaserver.zip
fi

echo "Installing Mayaserver ${MAYA_VERSION} ..."
unzip mayaserver.zip
sudo chmod +x mayaserver
sudo mv mayaserver /usr/bin/mayaserver

# Setup config directory for mayaserver
sudo mkdir -p /etc/mayaserver/orchprovider
sudo chmod a+w /etc/mayaserver/orchprovider


cd ${CURDIR}
{'fraction_non_alphanumeric': 0.15154807170016296, 'fraction_numerical': 0.00977729494839761, 'mean_word_length': 4.074380165289257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4096270', 'n_tokens_mistral': 741, 'n_tokens_neox': 688, 'n_words': 175}