<commit_before>#!/usr/bin/env bash
# This script is for forks to upload their apks to their apk branch for danger to fetch them.
# The script which uploads builded apk from travis to the apk branch in the main repository is
# upload-apk.sh. This script was build so that in every PR the apk can be attached as comment
# via danger. The use of using two seperate scripts is to ensure that the token doesnot needed
# to be changed after every pull request merge. Travis will call this script if not in the main
# repository i.e, phimpme-android.

# Create a new directory that will contain out generated apk
mkdir $HOME/buildApk/

# Copy generated apk from build folder to the folder just created
cp -R app/build/outputs/apk/app-debug.apk $HOME/buildApk/

# Setting up git
cd $HOME
git config --global user.email "<EMAIL>"
git config --global user.name "Travis CI"

# Clone the fork into the buildApk folder
# *** Important: For everychange pls update the below line in the following format:
# git clone --quiet --branch=apk htpps://username:authentiToken@github.com/username/phimpme-android apk > /dev/null
# replacing username with your github username and authentiToken with a personal token for your account.***
# Your token is advised to have only access to public repositories. Its only needed.
git clone --quiet --branch=apk https://mohitmanuja:3<PASSWORD>1f64<PASSWORD>610a2307e06572<PASSWORD>89a@github.com/mohitmanuja/phimpme-android  apk > /dev/null
cp -Rf $HOME/buildApk/*
cd apk

git checkout --orphan workaround
git add -A

#add files
#git add -f .<commit_msg>Updates the build file for ease of doing things<commit_after>#!/usr/bin/env bash
# This script is for forks to upload their apks to their apk branch for danger to fetch them.
# The script which uploads builded apk from travis to the apk branch in the main repository is
# upload-apk.sh. This script was build so that in every PR the apk can be attached as comment
# via danger. The use of using two seperate scripts is to ensure that the token doesnot needed
# to be changed after every pull request merge. Travis will call this script if not in the main
# repository i.e, phimpme-android.

# Create a new directory that will contain out generated apk
mkdir $HOME/buildApk/

# Copy generated apk from build folder to the folder just created
cp -R app/build/outputs/apk/app-debug.apk $HOME/buildApk/

# Setting up git
cd $HOME
git config --global user.email "<EMAIL>"
git config --global user.name "Travis CI"

# Clone the fork into the buildApk folder
git clone --quiet --branch=apk https://$USERNAME:$API_TOKEN@github.com/$USERNAME/phimpme-android  apk > /dev/null
cp -Rf $HOME/buildApk/*
cd apk

git checkout --orphan workaround
git add -A

#add files
#git add -f .
{'fraction_non_alphanumeric': 0.0755750273822563, 'fraction_numerical': 0.0065717415115005475, 'mean_word_length': 4.036764705882353, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '7278405', 'n_tokens_mistral': 850, 'n_tokens_neox': 807, 'n_words': 388}