<commit_before>format_version: 1.0.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

workflows:
  test:
    steps:
    - path::./:
        inputs:
        - gemfile_content: |-
            source 'https://rubygems.org'
            gem "safe_yaml"
        - ruby_content: |-
            require "safe_yaml/load"

            yaml = <<-EOYAML
            ---
            a: 1
            b: 2
            EOYAML

            res_hash = SafeYAML.load(yaml)
            puts "res_hash: #{res_hash}"
            raise "Invalid data (a)!" if res_hash["a"] != 1
            raise "Invalid data (b)!" if res_hash["b"] != 2
        - script_run_dir: ./_tmp<commit_msg>bitrise.yml : better tests<commit_after>format_version: 1.0.0
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git

workflows:
  test:
    steps:
    - change-workdir:
        inputs:
        - path: ./_tmp
    - path::./:
    - script:
        inputs:
        - content: mkdir -p ./test_script_run_dir
    - path::./:
        inputs:
        - gemfile_content: |-
            source 'https://rubygems.org'
            gem "safe_yaml"
        - ruby_content: |-
            require "safe_yaml/load"

            yaml = <<-EOYAML
            ---
            a: 1
            b: 2
            EOYAML

            res_hash = SafeYAML.load(yaml)
            puts "res_hash: #{res_hash}"
            raise "Invalid data (a)!" if res_hash["a"] != 1
            raise "Invalid data (b)!" if res_hash["b"] != 2
        - script_run_dir: ./test_script_run_dir
{'fraction_non_alphanumeric': 0.1308531109685696, 'fraction_numerical': 0.008980115458627326, 'mean_word_length': 1.5, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5764384', 'n_tokens_mistral': 538, 'n_tokens_neox': 512, 'n_words': 102}