<commit_before>#!/bin/bash

#
# Upload CLI
#
curl --ftp-create-dirs -T tools/cli/target/teavm-cli-$NEW_VERSION.jar \
  -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
  ftp://$TEAVM_FTP_HOST/httpdocs/cli/dev/teavm-cli-$NEW_VERSION.jar


#
# Update IDEA repository descriptor
#
cat <<EOF >.idea-repository.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugins>
  <plugin id="org.teavm.idea" url="https://dl.bintray.com/konsoletyper/teavm/org/teavm/teavm-idea/$NEW_VERSION/teavm-idea-$NEW_VERSION.zip" version="$NEW_VERSION">
    <idea-version since-build="163.12024.16" until-build="181.*" />
    <description>TeaVM support</description>
  </plugin>
</plugins>
EOF

curl --ftp-create-dirs -T .idea-repository.xml \
  -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
  ftp://$TEAVM_FTP_HOST/httpdocs/idea/dev/teavmRepository.xml


#
# Upload Eclipse plugin
#
#cd tools/eclipse/updatesite/target/repository
#  find . -type f -exec curl \
#    --ftp-create-dirs \
#    -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
#    -T {} \
#    ftp://$TEAVM_FTP_HOST/httpdocs/eclipse/update-site/$BASE_VERSION-dev/{} \;
#cd ../../../../..<commit_msg>Fix updating IDEA repository<commit_after>#!/bin/bash

#
# Upload CLI
#
curl --ftp-create-dirs -T tools/cli/target/teavm-cli-$NEW_VERSION.jar \
  -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
  ftp://$TEAVM_FTP_HOST/httpdocs/cli/dev/teavm-cli-$NEW_VERSION.jar


#
# Update IDEA repository descriptor
#
cat <<EOF >.idea-repository.xml
<?xml version="1.0" encoding="UTF-8"?>
<plugins>
  <plugin id="org.teavm.idea" url="https://dl.bintray.com/konsoletyper/teavm/org/teavm/teavm-idea/$NEW_VERSION/teavm-idea-$NEW_VERSION.zip" version="$NEW_VERSION">
    <idea-version since-build="173.*" until-build="193.*" />
    <description>TeaVM support</description>
  </plugin>
</plugins>
EOF

curl --ftp-create-dirs -T .idea-repository.xml \
  -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
  ftp://$TEAVM_FTP_HOST/httpdocs/idea/dev/teavmRepository.xml


#
# Upload Eclipse plugin
#
#cd tools/eclipse/updatesite/target/repository
#  find . -type f -exec curl \
#    --ftp-create-dirs \
#    -u $TEAVM_FTP_LOGIN:$TEAVM_FTP_PASSWORD \
#    -T {} \
#    ftp://$TEAVM_FTP_HOST/httpdocs/eclipse/update-site/$BASE_VERSION-dev/{} \;
#cd ../../../../..
{'fraction_non_alphanumeric': 0.18498659517426275, 'fraction_numerical': 0.011170688114387846, 'mean_word_length': 3.6939203354297696, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 2, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '3549696', 'n_tokens_mistral': 970, 'n_tokens_neox': 916, 'n_words': 115}