<commit_before>#!/usr/bin/env bash

repo='kotlin-dsl-snapshots-local'

# .children[-2] selects the one before the last which is the all distro
latestSnapshotPath=`
    http get https://repo.gradle.org/gradle/api/storage/$repo/ \
        | jq -r '[ .children[] | select(.uri | startswith("/gradle-kotlin-dsl-")) ][-2].uri'`

find . -name gradle-wrapper.properties \
    | xargs perl -p -i -e "s|^(distributionUrl=.*$repo).*|\$1$latestSnapshotPath|"

find . -name gradle-wrapper.properties \
    | xargs git commit -m"Update wrappers to latest snapshot distro"<commit_msg>Pin snapshot distro to 4.10<commit_after>#!/usr/bin/env bash

repo='kotlin-dsl-snapshots-local'

# .children[-2] selects the one before the last which is the all distro
latestSnapshotPath=`
    http get https://repo.gradle.org/gradle/api/storage/$repo/ \
        | jq -r '[ .children[] | select(.uri | startswith("/gradle-kotlin-dsl-4.10-")) ][-2].uri'`

find . -name gradle-wrapper.properties \
    | xargs perl -p -i -e "s|^(distributionUrl=.*$repo).*|\$1$latestSnapshotPath|"

find . -name gradle-wrapper.properties \
    | xargs git commit -m"Update wrappers to latest snapshot distro"
{'fraction_non_alphanumeric': 0.16652286453839515, 'fraction_numerical': 0.010353753235547885, 'mean_word_length': 3.496124031007752, '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': '6371965', 'n_tokens_mistral': 423, 'n_tokens_neox': 395, 'n_words': 95}