<commit_before>language: java
sudo: false
install: true
addons:
  sonarqube:
    token:
      secure: SONAR_TOKEN
jdk:
  - oraclejdk8
addons:
  apt:
    packages:
      - oracle-java8-installer
before_script:
 - "echo $JAVA_OPTS"
 - "export JAVA_OPTS=-Xmx1024m"
 - "echo $SONAR_SCANNER_OPTS="
 - "export SONAR_SCANNER_OPTS=-Xmx1024m"
script:
  - mvn clean -e org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN
cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'<commit_msg>add sonarqueb comments for PR<commit_after>language: java
sudo: false
install: true
addons:
  sonarqube
jdk:
  - oraclejdk8
addons:
  apt:
    packages:
      - oracle-java8-installer
script:
  - mvn clean -e org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarqube.com  \
                                                                                  -Dsonar.login=$SONAR_TOKEN \
                                                                                  -Dsonar.github.oauth=$GITHUB_ACCESS_TOKEN \
                                                                                  -Dsonar.github.pullRequest=$PULL_REQUEST_ID \
                                                                                  -Dsonar.analysis.mode=preview
cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.00966183574879227, 'mean_word_length': 1.5892857142857142, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6758118', 'n_tokens_mistral': 464, 'n_tokens_neox': 447, 'n_words': 72}