<commit_before>#!/bin/bash
echo --- Get cluster for user ---

export OC_CLUSTER_URL=$(curl -X GET --header 'Accept: application/json' "https://api.openshift.io/api/users?filter\[username\]=$1" | jq '.data[0].attributes.cluster')
OC_CLUSTER_URL=$(echo "${OC_CLUSTER_URL//\"/}")

echo --- Using cluster $OC_CLUSTER_URL ---

echo --- Login ---
oc login -u $1 -p $2 $OC_CLUSTER_URL

echo --- Change to Jenkins project ---
oc project $(oc projects -q | grep jenkins)

echo --- List pods ---
oc get pods 

echo --- Get logs for pod ---
oc logs -c content-repository-init $(oc get pods | grep -v slave |  awk '/jenkins/ {print $1}')


<commit_msg>E2E: Updated script for oc logs<commit_after>#!/bin/bash
echo --- Get cluster for user ---

export OC_CLUSTER_URL=$(curl -X GET --header 'Accept: application/json' "https://api.openshift.io/api/users?filter\[username\]=$1" | jq '.data[0].attributes.cluster')
OC_CLUSTER_URL=$(echo "${OC_CLUSTER_URL//\"/}")

echo --- Using cluster $OC_CLUSTER_URL ---

echo --- Login ---
oc login -u $1 -p $2 $OC_CLUSTER_URL

echo --- Change to Jenkins project ---
oc project $(oc projects -q | grep jenkins)

echo --- List pods ---
oc get pods 



{'fraction_non_alphanumeric': 0.18531169940222034, 'fraction_numerical': 0.008539709649871904, 'mean_word_length': 3.055363321799308, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1340234', 'n_tokens_mistral': 426, 'n_tokens_neox': 403, 'n_words': 122}