<commit_before>sudo: required
language: java
jdk:
- oraclejdk8
services:
- docker
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - "$HOME/.gradle/caches/"
  - "$HOME/.gradle/wrapper/"
script:
- docker run -d --name "origin" --privileged --pid=host --net=host -v /:/rootfs:ro
  -v /var/run:/var/run:rw -v /sys:/sys -v /var/lib/docker:/var/lib/docker:rw -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes
  openshift/origin:v1.3.0-alpha.1 start
- sleep 20
- cat /etc/hosts
- wget https://github.com/openshift/origin/releases/download/v1.3.0-alpha.1/openshift-origin-client-tools-v1.3.0-alpha.1-6e83535-linux-64bit.tar.gz
  -O oclient.tar.gz
- tar xzvf oclient.tar.gz
- cp openshift-origin-client-tools-v1.3.0-alpha.1-6e83535-linux-64bit/oc .
- "./oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443"
- "./oc new-project enmasse-ci"
- "./oc policy add-role-to-user view system:serviceaccount:$(./oc project -q):default"
- "./oc policy add-role-to-user edit system:serviceaccount:$(./oc project -q):deployer"
- "curl -s https://raw.githubusercontent.com/enmasseproject/openshift-configuration/master/enmasse-template.yaml | ./oc process -f - | ./oc create -f -"
- ./scripts/wait_until_up.sh 6
- sleep 60
- ./scripts/scale_controller.sh mytopic 3
- OPENSHIFT_USER=test OPENSHIFT_TOKEN=`./oc config view -o jsonpath='{.users[?(@.name == "test/localhost:8443")].user.token}'` OPENSHIFT_URL=https://localhost:8443 PN_TRACE_FRM=1 gradle check -i
after_failure:
- docker logs origin
- ./scripts/print_logs.sh
env:
  global:
  - secure: <KEY>
  - secure: <KEY>
  - <KEY>
  - <KEY>
<commit_msg>Move it after setting up router<commit_after>sudo: required
language: java
jdk:
- oraclejdk8
services:
- docker
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - "$HOME/.gradle/caches/"
  - "$HOME/.gradle/wrapper/"
script:
- docker run -d --name "origin" --privileged --pid=host --net=host -v /:/rootfs:ro
  -v /var/run:/var/run:rw -v /sys:/sys -v /var/lib/docker:/var/lib/docker:rw -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes
  openshift/origin:v1.3.0-alpha.1 start
- sleep 20
- cat /etc/hosts
- wget https://github.com/openshift/origin/releases/download/v1.3.0-alpha.1/openshift-origin-client-tools-v1.3.0-alpha.1-6e83535-linux-64bit.tar.gz
  -O oclient.tar.gz
- tar xzvf oclient.tar.gz
- cp openshift-origin-client-tools-v1.3.0-alpha.1-6e83535-linux-64bit/oc .
- "./oc login -u test -p test --insecure-skip-tls-verify=true https://localhost:8443"
- "./oc new-project enmasse-ci"
- "./oc policy add-role-to-user view system:serviceaccount:$(./oc project -q):default"
- "./oc policy add-role-to-user edit system:serviceaccount:$(./oc project -q):deployer"
- "curl -s https://raw.githubusercontent.com/enmasseproject/openshift-configuration/master/enmasse-template.yaml | ./oc process -f - | ./oc create -f -"
- ./scripts/wait_until_up.sh 6
- ./scripts/scale_controller.sh mytopic 3
- sleep 120
- OPENSHIFT_USER=test OPENSHIFT_TOKEN=`./oc config view -o jsonpath='{.users[?(@.name == "test/localhost:8443")].user.token}'` OPENSHIFT_URL=https://localhost:8443 PN_TRACE_FRM=1 gradle check -i
after_failure:
- docker logs origin
- ./scripts/print_logs.sh
env:
  global:
  - secure: <KEY>
  - secure: <KEY>
  - secure: <KEY>
  - secure: <KEY>

{'fraction_non_alphanumeric': 0.18047253060062624, 'fraction_numerical': 0.03102761172786792, 'mean_word_length': 3.436868686868687, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6138178', 'n_tokens_mistral': 1433, 'n_tokens_neox': 1327, 'n_words': 245}