<commit_before>sudo: required
env:
  matrix:
  - OS_TYPE=centos OS_VERSION=6
  - OS_TYPE=centos OS_VERSION=7
  
services:
  - docker
  
before_install:
  - sudo apt-get update
  - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
  - sudo service docker restart
  - sleep 5
  - sudo docker pull centos:centos${OS_VERSION}

  
script:
 # Run tests in Container
 - docker run --privileged -d -ti -e "container=docker"  -v /sys/fs/cgroup:/sys/fs/cgroup -v `pwd`:/htcondor-ce:rw  centos:centos${OS_VERSION}   /usr/sbin/init
 - DOCKER_CONTAINER_ID=$(docker ps | grep centos | awk '{print $1}')
 - docker logs $DOCKER_CONTAINER_ID
 - >
   docker exec -ti $DOCKER_CONTAINER_ID /bin/bash -c 'bash -xe /htcondor-ce/tests/test_inside_docker.sh ${OS_VERSION}
     echo -ne "------\nEND HTCONDOR-CE TESTS\n------\nSystemD Units:\n------\n";
     systemctl --no-pager --all --full status
     echo -ne "------\nJournalD Logs:\n------\n" ;
     sudo journalctl --catalog --all --full --no-pager'
 - docker ps -a
 - docker stop $DOCKER_CONTAINER_ID
 - docker rm -v $DOCKER_CONTAINER_ID

<commit_msg>Remove sudo from inside docker<commit_after>sudo: required
env:
  matrix:
  - OS_TYPE=centos OS_VERSION=6
  - OS_TYPE=centos OS_VERSION=7
  
services:
  - docker
  
before_install:
  - sudo apt-get update
  - echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
  - sudo service docker restart
  - sleep 5
  - sudo docker pull centos:centos${OS_VERSION}

  
script:
 # Run tests in Container
 - docker run --privileged -d -ti -e "container=docker"  -v /sys/fs/cgroup:/sys/fs/cgroup -v `pwd`:/htcondor-ce:rw  centos:centos${OS_VERSION}   /usr/sbin/init
 - DOCKER_CONTAINER_ID=$(docker ps | grep centos | awk '{print $1}')
 - docker logs $DOCKER_CONTAINER_ID
 - >
   docker exec -ti $DOCKER_CONTAINER_ID /bin/bash -c 'bash -xe /htcondor-ce/tests/test_inside_docker.sh ${OS_VERSION}
     echo -ne "------\nEND HTCONDOR-CE TESTS\n------\nSystemD Units:\n------\n";
     systemctl --no-pager --all --full status
     echo -ne "------\nJournalD Logs:\n------\n" ;
     journalctl --catalog --all --full --no-pager'
 - docker ps -a
 - docker stop $DOCKER_CONTAINER_ID
 - docker rm -v $DOCKER_CONTAINER_ID


{'fraction_non_alphanumeric': 0.1625531914893617, 'fraction_numerical': 0.011914893617021277, 'mean_word_length': 2.7436305732484074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3978467', 'n_tokens_mistral': 981, 'n_tokens_neox': 898, 'n_words': 211}