<commit_before>#!/bin/bash

# Author: <NAME>
# Date: 2013-04-02
# Version: 1.00
#
# Info:
#   Quick script for setting up the drives for swift storage nodes
#
# Attention:
#   On a real system, I usually have a udev file created for the drives
#   in order to maintain a sane device block order otherwise somtimes the kernel
#   may choose another label for a drive that has been hot swapped. 
#   The udev rules are created mapping each device block ID to a SYMLINK of
#   format cXuYp, where X is the controller number and Y the unit number.
#
#   On a VM system, it's a whole other story and therefore a drive_list
#   would be used to figure those out.
#



# Arguments
num_of_args=$#
args_sarray=("$@")


usage_display (){
cat << USAGE

Syntax:
    sudo drivescout_wrapper.sh [ip address/ip range] [zone/zone-range]  [region]
      - IP range as "1.1.1.1-254"
      - Zone can be either a single zone or a range like 1-5
      - Region, if not specified it will default to 1

      For more detailed help see "drivescout -h" 
USAGE
exit 1
}


# Variables
ip_adr=$1
zone=$2<commit_msg>fixing ip_addr variable<commit_after>#!/bin/bash

# Author: <NAME>
# Date: 2013-04-02
# Version: 1.00
#
# Info:
#   Quick script for setting up the drives for swift storage nodes
#
# Attention:
#   On a real system, I usually have a udev file created for the drives
#   in order to maintain a sane device block order otherwise somtimes the kernel
#   may choose another label for a drive that has been hot swapped. 
#   The udev rules are created mapping each device block ID to a SYMLINK of
#   format cXuYp, where X is the controller number and Y the unit number.
#
#   On a VM system, it's a whole other story and therefore a drive_list
#   would be used to figure those out.
#



# Arguments
num_of_args=$#
args_sarray=("$@")


usage_display (){
cat << USAGE

Syntax:
    sudo drivescout_wrapper.sh [ip address/ip range] [zone/zone-range]  [region]
      - IP range as "1.1.1.1-254"
      - Zone can be either a single zone or a range like 1-5
      - Region, if not specified it will default to 1

      For more detailed help see "drivescout -h" 
USAGE
exit 1
}


# Variables
ip_addr=$1
zone=$2
{'fraction_non_alphanumeric': 0.08040201005025126, 'fraction_numerical': 0.0219278209227958, 'mean_word_length': 3.1873804971319313, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4306156', 'n_tokens_mistral': 748, 'n_tokens_neox': 695, 'n_words': 317}