<commit_before>test:
  pre:
    # install dependencies
    - pip install git+https://github.com/demisto/demisto-py.git@test-content
    - pip install pykwalify

    # validate yaml
    - chmod +x ./Tests/yamlvalidator
    - ./Tests/yamlvalidator

    # build content descriptor
    - ./setContentDescriptor.sh $CIRCLE_BUILD_NUM cb78e08b698de8247eb556054c2eeb3e3c541b36 3.1.0

    # create content bundle
    - mkdir bundle
    - cd Tools/ && for i in */ ; do zip -jr "../bundle/tools-${i%/}.zip" "$i"; done
    - cp Integrations/* bundle/
    - cp Misc/* bundle/
    - cp Playbooks/* bundle/
    - cp Reports/* bundle/
    - cp content-descriptor.json bundle/
    - cp $(find Scripts -type f -print) bundle/

    - cd bundle/ && zip ../content.zip *
    - cp content.zip $CIRCLE_ARTIFACTS/content.zip
    - cp release-notes.txt $CIRCLE_ARTIFACTS/
  override:
    - chmod +x ./Tests/scripts/*

    # ensure file name
    - ./Tests/scripts/validate_files_structure.sh

    # get installer from server
    - ./Tests/scripts/server_get_artifact.sh

    # run demisto instance
    - ./Tests/scripts/create_instance.sh

    # download conf file
    - ./Tests/scripts/download_demisto_conf.sh

    # run installer
    - ./Tests/scripts/run_installer_on_instance.sh

    # wait until server is ready
    - ./Tests/scripts/wait_until_server_ready.sh

    # run tests
    - ./Tests/scripts/run_tests.sh

    - sleep 9m

    # terminate instance
    - ./Tests/scripts/destroy_instances.sh<commit_msg>removed sleep<commit_after>test:
  pre:
    # install dependencies
    - pip install git+https://github.com/demisto/demisto-py.git@test-content
    - pip install pykwalify

    # validate yaml
    - chmod +x ./Tests/yamlvalidator
    - ./Tests/yamlvalidator

    # build content descriptor
    - ./setContentDescriptor.sh $CIRCLE_BUILD_NUM cb78e08b698de8247eb556054c2eeb3e3c541b36 3.1.0

    # create content bundle
    - mkdir bundle
    - cd Tools/ && for i in */ ; do zip -jr "../bundle/tools-${i%/}.zip" "$i"; done
    - cp Integrations/* bundle/
    - cp Misc/* bundle/
    - cp Playbooks/* bundle/
    - cp Reports/* bundle/
    - cp content-descriptor.json bundle/
    - cp $(find Scripts -type f -print) bundle/

    - cd bundle/ && zip ../content.zip *
    - cp content.zip $CIRCLE_ARTIFACTS/content.zip
    - cp release-notes.txt $CIRCLE_ARTIFACTS/
  override:
    - chmod +x ./Tests/scripts/*

    # ensure file name
    - ./Tests/scripts/validate_files_structure.sh

    # get installer from server
    - ./Tests/scripts/server_get_artifact.sh

    # run demisto instance
    - ./Tests/scripts/create_instance.sh

    # download conf file
    - ./Tests/scripts/download_demisto_conf.sh

    # run installer
    - ./Tests/scripts/run_installer_on_instance.sh

    # wait until server is ready
    - ./Tests/scripts/wait_until_server_ready.sh

    # run tests
    - ./Tests/scripts/run_tests.sh

    # terminate instance
    - ./Tests/scripts/destroy_instances.sh
{'fraction_non_alphanumeric': 0.11782579338284943, 'fraction_numerical': 0.01924375422012154, 'mean_word_length': 2.3632236095346197, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6285931', 'n_tokens_mistral': 1030, 'n_tokens_neox': 966, 'n_words': 216}