<commit_before># Travis Build config for Android
language: android
sudo: required
jdk: oraclejdk8

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/

env:
  global:
  - ANDROID_API=25
  - EMULATOR_API=21
  - ANDROID_BUILD_TOOLS=25.0.2
  - ADB_INSTALL_TIMEOUT=5 # minutes
  - secure: "<KEY>
  - secure: "<KEY>

android:
  components:
  - tools
  - platform-tools
  - build-tools-$ANDROID_BUILD_TOOLS
  - android-$ANDROID_API
  - android-$EMULATOR_API_LEVEL
  - extra-google-m2repository
  - extra-android-m2repository # for design library
  - addon-google_apis-google-19 # google play services
  - sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL
  - sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API_LEVEL
  licenses:
  - android-sdk-preview-license-.+
  - android-sdk-license-.+
  - google-gdk-license-.+

before_install:
- openssl aes-256-cbc -K $encrypted_7045a360e0b4_key -iv $encrypted_7045a360e0b4_iv -in keystore.jks.enc -out keystore.jks -d
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew
- ./gradlew dependencies || true

before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

script:
- "./gradlew clean build connectedCheck -PdisablePreDex --stacktrace"

before_deploy:
- cp $TRAVIS_BUILD_DIR/keystore.jks $HOME
- cd app/build/outputs/apk/
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/keystore.jks -storepass $storepass -keypass $keypass app-release-unsigned.apk key0
# Verification
- jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/25.0.2/zipalign -v 4 app-release-unsigned.apk nyaapantsu.apk"

deploy:
  provider: releases
  file: nyaapantsu.apk
  skip_cleanup: true
  on:
    repo: NyaaPantsu/NyaaPantsu-android-app
    tags: true
    jdk: oraclejdk8
  api_key:
    secure: "q6RFIUkFgD8cBedK4C9Def1k1826UpFiD2V0ruwLBVc2bKPM5NWZmzo+5srcmvpcuHaI61AAirjd1AIW8/ki/AnDfEGTJADgqdA/nYxLc4Vgu4cLm7fQGxtZIuHgNZtZNR2U48vooPimLNhfUqu1RjHwZStH2wIbRUGrYR/hagApTWB7IbjbaGqravOmeWL+nPDNbMd9QiSCacXB3ZUr+OeGlkgHq2ZOJ1UpdcV+dHv5Eufy8sEJ1IYHYqYNIxJ3fLMI6Cg3Ta5iWiiydsrBedRqPn+Jm2JzMoMfTAU4kjgLKsIrydPrM3qf7y8q9D/qd3oo99m9c0ejkbZ6WP8FL1FEA4r66oQBX4sxUTkTSFFBxLqqkq/jQ+ZXCmRQ/JFPSLPgyXTTFcTQqeBBwGYWgQpd/RjBR25zvagLNe9c9YKr4TCJN8r8bLW8miNH6sNNmU3rMDIl5wLqLfZCu7AIjI4B+esDXrwDtTtUNvipP4S7mvWQpb6FiuLNw9B4+IYTSlW+R73rh+EXZOxzgZ0MCgIXjNjtcnxxF0OG/3xv+5Z+w6hHfPXghcdAV8+l34XIqXHu7SW9JzPDcjXT1mIzBby6Gb1Wydgnynb7RsIUZICQPgvU6KAGNBFfU3RYfyDekiGE/FUZTPjkHFju6cudVYP7bc0BEmAknHid8m1xUEU="<commit_msg>Wrong directory<commit_after># Travis Build config for Android
language: android
sudo: required
jdk: oraclejdk8

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/

env:
  global:
  - ANDROID_API=25
  - EMULATOR_API=21
  - ANDROID_BUILD_TOOLS=25.0.2
  - ADB_INSTALL_TIMEOUT=5 # minutes
  - secure: "<KEY>
  - secure: "<KEY>

android:
  components:
  - tools
  - platform-tools
  - build-tools-$ANDROID_BUILD_TOOLS
  - android-$ANDROID_API
  - android-$EMULATOR_API_LEVEL
  - extra-google-m2repository
  - extra-android-m2repository # for design library
  - addon-google_apis-google-19 # google play services
  - sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL
  - sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API_LEVEL
  licenses:
  - android-sdk-preview-license-.+
  - android-sdk-license-.+
  - google-gdk-license-.+

before_install:
- openssl aes-256-cbc -K $encrypted_7045a360e0b4_key -iv $encrypted_7045a360e0b4_iv -in keystore.jks.enc -out keystore.jks -d
- mkdir "$ANDROID_HOME/licenses" || true
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
- chmod +x gradlew
- ./gradlew dependencies || true

before_script:
- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &

script:
- "./gradlew clean build connectedCheck -PdisablePreDex --stacktrace"

before_deploy:
- cp $TRAVIS_BUILD_DIR/keystore.jks $HOME
- cd app/build/outputs/apk/release/
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/keystore.jks -storepass $storepass -keypass $keypass app-release-unsigned.apk key0
# Verification
- jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/25.0.2/zipalign -v 4 app-release-unsigned.apk nyaapantsu.apk"

deploy:
  provider: releases
  file: nyaapantsu.apk
  skip_cleanup: true
  on:
    repo: NyaaPantsu/NyaaPantsu-android-app
    tags: true
    jdk: oraclejdk8
  api_key:
    secure: "<KEY>
{'fraction_non_alphanumeric': 0.11320754716981132, 'fraction_numerical': 0.05867924528301887, 'mean_word_length': 4.37082066869301, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 12, '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': '1585267', 'n_tokens_mistral': 2502, 'n_tokens_neox': 2295, 'n_words': 326}