<commit_before>cloudmine-javasdk
=================

Backend Java API for interaction with CloudMine

=================
Build from scratch instructions
0. If there have been any changes to the android project itself OR this is your first time doing a build from scratch, you must build the android project first. Use this command to do so:
mvn package -DskipTests=true -f $ANDROID_HOME/pom.xml;mvn install:install-file -DgroupId=com.cloudmine.api -DartifactId=cloudmine-android -Dversion=0.3-SNAPSHOT -Dpackaging=jar -DpomFile=$ANDROID_HOME/pom.xml -Dfile=$ANDROID_HOME/target/cloudmine-android-0.3-SNAPSHOT.jar
where $ANDROID_HOME = the home directory of the android project.
1. Run all of the integration and unit tests. 
2. Edit the pom.xml so that the version # is correct
3. Build the jar
3.1 for android, the command is: mvn assembly:assembly -DdescriptorId=jar-with-dependencies -DbuildFor=android -DskipTests=true
3.2 for javasdk, the command is: mvn package -DskipTests=true
4. Rename the jar from cloudmine-javasdk-0.#-jar-with-dependencies.jar to cloudmine-android-v0.#.jar
5. Test that the jar works by following the set up instructions in the Android documentations, using the newly built jar instead of the downloadable jar, and then running the project.
6. Generate JavaDoc jar: mvn javadoc:jar 
7. Rename the jar to cloudmine-android-v0.#-javadoc.jar
8. Zip up the javadoc jar and the main jar, make sure the zip file is named "cloudmine-android-v0.#.zip"
9. Go to https://github.com/cloudmine/cloudmine-android/downloads select "Choose a new file", select the zip file you created, and upload it
10. Update the links on the website
11. Deploy locally, redownload the zip, and test that the jar works
12. Redeploy the CloudMine website<commit_msg>How to build the javasdk and add it to maven added<commit_after>cloudmine-javasdk
=================

Backend Java API for interaction with CloudMine

=================
Build from scratch instructions
0. 
If there have been any changes to the android project itself OR this is your first time doing a build from scratch, you must build the android project first. The android project depends on the JavaSDK, so you must build and add that to your local maven repository first:
mvn package -DskipTests=true -f $JAVA_SDK_HOME/pom.xml;mvn install:install-file -DgroupId=com.cloudmine.api -DartifactId=cloudmine-javasdk -Dversion=0.3-SNAPSHOT -Dpackaging=jar -DpomFileJAVA_SDK_HOME/pom.xml -DfileJAVA_SDK_HOME/target/cloudmine-javasdk-0.3.jar -DgeneratePom=true
Then use this command to build and add the android sdk:
mvn package -DskipTests=true -f $ANDROID_HOME/pom.xml;mvn install:install-file -DgroupId=com.cloudmine.api -DartifactId=cloudmine-android -Dversion=0.3-SNAPSHOT -Dpackaging=jar -DpomFile=$ANDROID_HOME/pom.xml -Dfile=$ANDROID_HOME/target/cloudmine-android-0.3-SNAPSHOT.jar
where $ANDROID_HOME = the home directory of the android project.
If you haven't 
1. Run all of the integration and unit tests. 
2. Edit the pom.xml so that the version # is correct
3. Build the jar
3.1 for android, the command is: mvn assembly:assembly -DdescriptorId=jar-with-dependencies -DbuildFor=android -DskipTests=true
3.2 for javasdk, the command is: mvn package -DskipTests=true
4. Rename the jar from cloudmine-javasdk-0.#-jar-with-dependencies.jar to cloudmine-android-v0.#.jar
5. Test that the jar works by following the set up instructions in the Android documentations, using the newly built jar instead of the downloadable jar, and then running the project.
6. Generate JavaDoc jar: mvn javadoc:jar 
7. Rename the jar to cloudmine-android-v0.#-javadoc.jar
8. Zip up the javadoc jar and the main jar, make sure the zip file is named "cloudmine-android-v0.#.zip"
9. Go to https://github.com/cloudmine/cloudmine-android/downloads select "Choose a new file", select the zip file you created, and upload it
10. Update the links on the website
11. Deploy locally, redownload the zip, and test that the jar works
12. Redeploy the CloudMine website
13. Tag the build: git tag -a v0.# -m 'version 0.#', then push to the main repo: git push --tags
{'fraction_non_alphanumeric': 0.09053196681307955, 'fraction_numerical': 0.015617374328940947, 'mean_word_length': 4.661602209944752, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2905214', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1248, 'n_words': 516}