<commit_before>file(GLOB_RECURSE admin_ui_files
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.hbs
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.html
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.js
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.scss
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/config/*.js
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/lib/*.js
)
add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-build-dir
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/bower.json
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/package.json
  DEPENDS
    ${admin_ui_files}
    ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/bower.json
    ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/package.json
    ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/yarn.lock
  COMMAND mkdir -p ${CORE_BUILD_DIR}/tmp/admin-ui-build
  COMMAND rsync -a -v --delete-after "--filter=:- ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/.gitignore" --exclude=/dist-prod --exclude=/dist-dev ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/ ${CORE_BUILD_DIR}/tmp/admin-ui-build/
  COMMAND touch ${STAMP_DIR}/core-admin-ui-build-dir
)

add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-yarn-install
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/node_modules
  DEPENDS
    yarn
    ${STAMP_DIR}/core-admin-ui-build-dir
  COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} yarn install && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} yarn clean
  COMMAND touch ${STAMP_DIR}/core-admin-ui-yarn-install
)

add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-bower-install
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/bower_components
  DEPENDS
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/bower.json
    ${STAMP_DIR}/core-admin-ui-yarn-install
  COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/bower install --allow-root && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/bower prune --allow-root
  COMMAND touch ${STAMP_DIR}/core-admin-ui-bower-install
)

add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-build
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/dist-dev
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/dist-prod
  DEPENDS
    ${STAMP_DIR}/core-admin-ui-build-dir
    ${STAMP_DIR}/core-admin-ui-yarn-install
    ${STAMP_DIR}/core-admin-ui-bower-install<commit_msg>Don't run "yarn clean" since it may remove needed files.<commit_after>file(GLOB_RECURSE admin_ui_files
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.hbs
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.html
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.js
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/app/*.scss
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/config/*.js
  ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/lib/*.js
)
add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-build-dir
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/bower.json
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/package.json
  DEPENDS
    ${admin_ui_files}
    ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/bower.json
    ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/package.json
    ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/yarn.lock
  COMMAND mkdir -p ${CORE_BUILD_DIR}/tmp/admin-ui-build
  COMMAND rsync -a -v --delete-after "--filter=:- ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/.gitignore" --exclude=/dist-prod --exclude=/dist-dev ${CMAKE_SOURCE_DIR}/src/api-umbrella/admin-ui/ ${CORE_BUILD_DIR}/tmp/admin-ui-build/
  COMMAND touch ${STAMP_DIR}/core-admin-ui-build-dir
)

add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-yarn-install
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/node_modules
  DEPENDS
    yarn
    ${STAMP_DIR}/core-admin-ui-build-dir
  COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} yarn install
  COMMAND touch ${STAMP_DIR}/core-admin-ui-yarn-install
)

add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-bower-install
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/bower_components
  DEPENDS
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/bower.json
    ${STAMP_DIR}/core-admin-ui-yarn-install
  COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/bower install --allow-root && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/bower prune --allow-root
  COMMAND touch ${STAMP_DIR}/core-admin-ui-bower-install
)

add_custom_command(
  OUTPUT
    ${STAMP_DIR}/core-admin-ui-build
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/dist-dev
    ${CORE_BUILD_DIR}/tmp/admin-ui-build/dist-prod
  DEPENDS
    ${STAMP_DIR}/core-admin-ui-build-dir
    ${STAMP_DIR}/core-admin-ui-yarn-install
    ${STAMP_DIR}/core-admin-ui-bower-install
{'fraction_non_alphanumeric': 0.16663199500728104, 'fraction_numerical': 0.0, 'mean_word_length': 4.197837837837838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2466464', 'n_tokens_mistral': 1965, 'n_tokens_neox': 1885, 'n_words': 182}