<commit_before>#!/bin/bash

# conda search -c $1 $2

if [ $# -ne 2  ]; then
 echo "incorrect usage"
 exit 2
fi
CHANNEL="${1//[^a-zA-Z0-9\.\-\_:\/\&~?]/}"
if [ "$CHANNEL" != "defaults" ] ; then
   CHANNEL="-c $CHANNEL --override-channels"
fi
LIB="${2//[^a-zA-Z0-9\.\-\_]/}"
<%= node['conda']['base_dir'] %>/bin/conda search $CHANNEL "${LIB}"  | grep -v Fetching | awk '{print $1","$2}' | grep -v "^\*"
exit ${PIPESTATUS[0]}<commit_msg>[HOPSWORKS-1268] append fix conda search (#334)<commit_after>#!/bin/bash

# conda search -c $1 $2

if [ $# -ne 2  ]; then
 echo "incorrect usage"
 exit 2
fi
CHANNEL="${1//[^a-zA-Z0-9\.\-\_:\/\&~?]/}"
if [ "$CHANNEL" != "defaults" ] ; then
   CHANNEL="$CHANNEL --override-channels"
fi
LIB="${2//[^a-zA-Z0-9\.\-\_]/}"
<%= node['conda']['base_dir'] %>/bin/conda search -c $CHANNEL "${LIB}"  | grep -v Fetching | awk '{print $1","$2}' | grep -v "^\*"
exit ${PIPESTATUS[0]}
{'fraction_non_alphanumeric': 0.2926829268292683, 'fraction_numerical': 0.036585365853658534, 'mean_word_length': 3.36231884057971, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3730350', 'n_tokens_mistral': 409, 'n_tokens_neox': 375, 'n_words': 86}