<commit_before>#!/bin/bash

# Copyright (c) 2015 Intracom S.A. Telecom Solutions. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html

# copy results back to test-server
# ------------------------------------------------------------------------------
cp -r $WORKSPACE/$JOB_NAME"_"$BUILD_NUMBER /home/jenkins/ODLP_Results/sample_tests/

# copy results under 'publisher' folder so that HTML publisher can
# archive the results
# ------------------------------------------------------------------------------
if [ -d "/tmp/publisher" ]; then
  cp -a $WORKSPACE/$JOB_NAME"_"$BUILD_NUMBER/*.* /tmp/publisher
else
  mkdir -p "/tmp/publisher"
  cp -a $WORKSPACE/$JOB_NAME"_"$BUILD_NUMBER/*.* /tmp/publisher
fi

# cleanup the machine
# ------------------------------------------------------------------------------
cd $(dirname $WORKSPACE)
rm -rf $JOB_NAME<commit_msg>change sample tests post actions script of jenkins jobs<commit_after>#!/bin/bash

# Copyright (c) 2015 Intracom S.A. Telecom Solutions. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v1.0 which accompanies this distribution,
# and is available at http://www.eclipse.org/legal/epl-v10.html

# copy results back to test-server
# ------------------------------------------------------------------------------
cp -r $WORKSPACE/$RESULTS_DIR /home/jenkins/ODLP_Results/sample_tests/

# copy results under 'publisher' folder so that HTML publisher can
# archive the results
# ------------------------------------------------------------------------------
if [ -d "/tmp/publisher" ]; then
  cp -a $WORKSPACE/$RESULTS_DIR/*.* /tmp/publisher
else
  mkdir -p "/tmp/publisher"
  cp -a $WORKSPACE/$RESULTS_DIR/*.* /tmp/publisher
fi

# cleanup the machine
# ------------------------------------------------------------------------------
cd $(dirname $WORKSPACE)
rm -rf $JOB_NAME
{'fraction_non_alphanumeric': 0.3095577746077033, 'fraction_numerical': 0.007608178792201617, 'mean_word_length': 1.6802547770700638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2883387', 'n_tokens_mistral': 550, 'n_tokens_neox': 531, 'n_words': 179}