<commit_before>defaults:

  npm-install: &npm-install
    run:
      name: "Install npm deps"
      command: |
        npm install --no-package-lock

  lint: &lint
    run:
      name: "Lint source code"
      command: |
        npm run lint

  validate-build: &validate-build
    run:
      name: "Validate build artifacts were correctly included"
      command: |
        npm run build:validate

  install-cpp-ethereum: &install-cpp-ethereum
    run:
      name: "Install cpp-ethereum"
      command: |
        URL=https://github.com/ethereum/cpp-ethereum/releases/download/v1.4.0.dev0/cpp-ethereum-1.4.0.dev0-linux.tar.gz
        curl -L $URL | sudo tar xz -C /usr/local

  build-hera: &build-hera
    run: 
      name: "Build hera"
      working_directory: ~
      command: |
        git clone https://github.com/ewasm/hera
        cd hera
        git reset <KEY> --hard
        git submodule update --init --recursive
        cmake -DBUILD_SHARED_LIBS=ON .
        make -j8
        mv ~/evm2wasm/hera/src/libhera.so ~/libhera.so

  build-hera-cpp: &build-hera-cpp
    run: 
      name: "Build hera (with builtin evm2wasm)"
      working_directory: ~
      command: |
        git clone https://github.com/ewasm/hera
        cd hera
        git reset <KEY> --hard
        git submodule update --init --recursive
        rm -rf evm2wasm
        ln -s /home/builder/evm2wasm evm2wasm
        cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=evm2wasm/cmake/toolchains/cxx11-pic.cmake .
        make -j8
        mv ~/evm2wasm/hera/src/libhera.so ~/libhera.so

  vm-tests: &vm-tests
    run:
      name: "Run ethereum VM tests"
      command: |
        npm run vmTests

  print-cpp-hera-version: &print-cpp-hera-version
    run:
      name: "Using cpp-ethereum and Hera versions:"
      working_directory: ~/<commit_msg>CircleCI: update Hera to 30d03549<commit_after>defaults:

  npm-install: &npm-install
    run:
      name: "Install npm deps"
      command: |
        npm install --no-package-lock

  lint: &lint
    run:
      name: "Lint source code"
      command: |
        npm run lint

  validate-build: &validate-build
    run:
      name: "Validate build artifacts were correctly included"
      command: |
        npm run build:validate

  install-cpp-ethereum: &install-cpp-ethereum
    run:
      name: "Install cpp-ethereum"
      command: |
        URL=https://github.com/ethereum/cpp-ethereum/releases/download/v1.4.0rc4/aleth-1.4.0rc4-linux-x86_64.tar.gz
        curl -L $URL | sudo tar xz -C /usr/local

  build-hera: &build-hera
    run: 
      name: "Build hera"
      working_directory: ~
      command: |
        git clone https://github.com/ewasm/hera
        cd hera
        git reset <PASSWORD> --hard
        git submodule update --init --recursive
        cmake -DBUILD_SHARED_LIBS=ON .
        make -j8
        mv ~/evm2wasm/hera/src/libhera.so ~/libhera.so

  build-hera-cpp: &build-hera-cpp
    run: 
      name: "Build hera (with builtin evm2wasm)"
      working_directory: ~
      command: |
        git clone https://github.com/ewasm/hera
        cd hera
        git reset <PASSWORD>33caafb4adbb27ea --hard
        git submodule update --init --recursive
        rm -rf evm2wasm
        ln -s /home/builder/evm2wasm evm2wasm
        cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_TOOLCHAIN_FILE=evm2wasm/cmake/toolchains/cxx11-pic.cmake .
        make -j8
        mv ~/evm2wasm/hera/src/libhera.so ~/libhera.so

  vm-tests: &vm-tests
    run:
      name: "Run ethereum VM tests"
      command: |
        npm run vmTests

  print-cpp-hera-version: &print-cpp-hera-version
    run:
      name: "Using cpp-ethereum and Hera versions:"
      working_directory: ~/
{'fraction_non_alphanumeric': 0.10830618892508144, 'fraction_numerical': 0.014657980456026058, 'mean_word_length': 2.0379225061830173, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1238293', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1314, 'n_words': 292}