<commit_before>#!/bin/bash

set -e

log()   { echo ">>> $1" ; }

sed -i "s|<username>|$OSC_USERNAME|g" /root/.oscrc
sed -i "s|<password>|$OSC_PASSWORD|g" /root/.oscrc

# build the spec file
log "building the spec file"
velum-git-resource/packaging/suse/make_spec.sh velum

pushd velum-osc-resource/Virtualization:containers:Velum/velum 1> /dev/null
  log "updating osc checkout to newest revision"
  osc up
  log "removing old specfile"
  osc rm velum.spec
  log "adding new specfile"
  cp ../../../velum-git-resource/packaging/suse/velum.spec .
popd 1> /dev/null

cp -a velum-osc-resource/Virtualization:containers:Velum/velum/. velum-osc-updated-resource/<commit_msg>packaging: fetch newest tarball from github<commit_after>#!/bin/bash

set -e

log()   { echo ">>> $1" ; }

sed -i "s|<username>|$OSC_USERNAME|g" /root/.oscrc
sed -i "s|<password>|$OSC_PASSWORD|g" /root/.oscrc

# build the spec file
log "building the spec file"
velum-git-resource/packaging/suse/make_spec.sh velum

pushd velum-osc-resource/Virtualization:containers:Velum/velum 1> /dev/null
  log "updating osc checkout to newest revision"
  osc up
  log "removing old specfile"
  osc rm velum.spec
  log "adding new specfile"
  cp ../../../velum-git-resource/packaging/suse/velum.spec .
  log "fetching newest release from github"
  wget --no-check-certificate -O master.tar.gz https://github.com/kubic-project/velum/archive/master.tar.gz
popd 1> /dev/null

cp -a velum-osc-resource/Virtualization:containers:Velum/velum/. velum-osc-updated-resource/
{'fraction_non_alphanumeric': 0.14539473684210527, 'fraction_numerical': 0.003947368421052632, 'mean_word_length': 3.9064516129032256, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, 'https://': 1, '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': '4105528', 'n_tokens_mistral': 584, 'n_tokens_neox': 563, 'n_words': 131}