<commit_before># Test spec for the Cloud Runtimes container structure testing framework.
#
# See https://github.com/GoogleCloudPlatform/runtimes-common/blob/master/structure_tests/README.md for more detail.
#
schemaVersion: 1.0.0

commandTests:
- name: 'correct java version is installed'
  command: ['java', '-version']
  expectedError: ['openjdk version "1\.${openjdk.version.major}.*${openjdk.version.minor}"']
- name: 'OPENJDK_VERSION env variable is set correctly'
  command: ['env']
  expectedOutput: ['OPENJDK_VERSION=${openjdk.version}']

fileExistenceTests:
- name: 'ssl certificates are present'
  path: '/etc/ssl/certs/java/cacerts'
  isDirectory: false
  shouldExist: true
- name: 'App Engine logs directory exists'
  path: '/var/log/app_engine'
  isDirectory: true
  shouldExist: true
- name: 'Cloud debugger agent is installed'
  path: '/opt/cdbg/format-env-appengine-vm.sh'
  isDirectory: false
  shouldExist: true
- name: 'Docker entrypoint exists'
  path: '/docker-entrypoint.bash'
  isDirectory: false
  shouldExist: true
- name: 'Env setup script exists'
  path: '/setup-env.bash'
  isDirectory: false
  shouldExist: true<commit_msg>adding license tests to java structure tests (#36)<commit_after># Test spec for the Cloud Runtimes container structure testing framework.
#
# See https://github.com/GoogleCloudPlatform/runtimes-common/blob/master/structure_tests/README.md for more detail.
#
schemaVersion: 1.0.0

commandTests:
- name: 'correct java version is installed'
  command: ['java', '-version']
  expectedError: ['openjdk version "1\.${openjdk.version.major}.*${openjdk.version.minor}"']
- name: 'OPENJDK_VERSION env variable is set correctly'
  command: ['env']
  expectedOutput: ['OPENJDK_VERSION=${openjdk.version}']

fileExistenceTests:
- name: 'ssl certificates are present'
  path: '/etc/ssl/certs/java/cacerts'
  isDirectory: false
  shouldExist: true
- name: 'App Engine logs directory exists'
  path: '/var/log/app_engine'
  isDirectory: true
  shouldExist: true
- name: 'Cloud debugger agent is installed'
  path: '/opt/cdbg/format-env-appengine-vm.sh'
  isDirectory: false
  shouldExist: true
- name: 'Docker entrypoint exists'
  path: '/docker-entrypoint.bash'
  isDirectory: false
  shouldExist: true
- name: 'Env setup script exists'
  path: '/setup-env.bash'
  isDirectory: false
  shouldExist: true

licenseTests:
- debian: true
  files: []
{'fraction_non_alphanumeric': 0.12547209399916073, 'fraction_numerical': 0.00419639110365086, 'mean_word_length': 4.6761904761904765, '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': '401548', 'n_tokens_mistral': 790, 'n_tokens_neox': 769, 'n_words': 210}