<commit_before>#
# Run the unit tests associated with the node.js client sdk
#
main() {
   # Initialization
   init

   {
   # Start member services
   startMemberServices

   # Run tests in network mode
   export DEPLOY_MODE='net'
   runTests

   # Run tests in dev mode
   export DEPLOY_MODE='dev'
   runTests

   # Stop peer and member services
   stopPeer
   stopMemberServices

   } 2>&1 | tee $LOGDIR/log
}

# initialization & cleanup
init() {
   # Initialize variables
   FABRIC=$GOPATH/src/github.com/hyperledger/fabric
   LOGDIR=/tmp/node-sdk-unit-test
   MSEXE=$FABRIC/membersrvc/membersrvc
   MSLOGFILE=$LOGDIR/membersrvc.log
   PEEREXE=$FABRIC/peer/peer
   PEERLOGFILE=$LOGDIR/peer.log
   UNITTEST=$FABRIC/sdk/node/test/unit
   EXAMPLES=$FABRIC/examples/chaincode/go

   # Clean up if anything remaining from previous run
   stopMemberServices
   stopPeer
   rm -rf /var/hyperledger/production /tmp/keyValStore $LOGDIR
   mkdir $LOGDIR<commit_msg>path correction for both membersrvc and peer binaries<commit_after>#
# Run the unit tests associated with the node.js client sdk
#
main() {
   # Initialization
   init

   {
   # Start member services
   startMemberServices

   # Run tests in network mode
   export DEPLOY_MODE='net'
   runTests

   # Run tests in dev mode
   export DEPLOY_MODE='dev'
   runTests

   # Stop peer and member services
   stopPeer
   stopMemberServices

   } 2>&1 | tee $LOGDIR/log
}

# initialization & cleanup
init() {
   # Initialize variables
   FABRIC=$GOPATH/src/github.com/hyperledger/fabric
   LOGDIR=/tmp/node-sdk-unit-test
   MSEXE=$FABRIC/build/bin/membersrvc
   MSLOGFILE=$LOGDIR/membersrvc.log
   PEEREXE=$FABRIC/build/bin/peer
   PEERLOGFILE=$LOGDIR/peer.log
   UNITTEST=$FABRIC/sdk/node/test/unit
   EXAMPLES=$FABRIC/examples/chaincode/go

   # Clean up if anything remaining from previous run
   stopMemberServices
   stopPeer
   rm -rf /var/hyperledger/production /tmp/keyValStore $LOGDIR
   mkdir $LOGDIR
{'fraction_non_alphanumeric': 0.08664627930682976, 'fraction_numerical': 0.0020387359836901123, 'mean_word_length': 3.421171171171171, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5806969', 'n_tokens_mistral': 691, 'n_tokens_neox': 665, 'n_words': 154}