<commit_before>#!/bin/bash
## Description: Install Oracle Java and set is as default java interpreter.

## HOW TO USE (as root):
# curl https://raw.githubusercontent.com/saaadel/scripts/master/linux/oracle-java.sh | bash /dev/stdin


# Java 7
jre7=http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jre-7u80-linux-x64.tar.gz
server_jre7=http://download.oracle.com/otn-pub/java/jdk/7u80-b15/server-jre-7u80-linux-x64.tar.gz
jdk7=http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz

# Java 8
jre8=http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jre-8u112-linux-x64.tar.gz
server_jre8=http://download.oracle.com/otn-pub/java/jdk/8u112-b15/server-jre-8u112-linux-x64.tar.gz
jdk8=http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz


[ -z $bundle ] && bundle='jdk8'
[ -z $bundle_url ] && bundle_url=$(eval echo "\$${bundle}")

## Comment following line if it is JRE, and uncomment if it's JDK.
#jdk=1


env_sh_filepath=/etc/profile.d/java-env.sh
env_csh_filepath=/etc/profile.d/java-env.csh
<commit_msg>Update oracle-java.sh<commit_after>#!/bin/bash -xv
## Description: Install Oracle Java and set is as default java interpreter.

## HOW TO USE (as root):
# curl https://raw.githubusercontent.com/saaadel/scripts/master/linux/oracle-java.sh | bash /dev/stdin
## OR
# curl https://raw.githubusercontent.com/saaadel/scripts/master/linux/oracle-java.sh | bash /dev/stdin


# Java 7
jre7=http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jre-7u80-linux-x64.tar.gz
server_jre7=http://download.oracle.com/otn-pub/java/jdk/7u80-b15/server-jre-7u80-linux-x64.tar.gz
jdk7=http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz

# Java 8
jre8=http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jre-8u112-linux-x64.tar.gz
server_jre8=http://download.oracle.com/otn-pub/java/jdk/8u112-b15/server-jre-8u112-linux-x64.tar.gz
jdk8=http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz


[ -z $bundle ] && bundle='jdk8'
[ -z $bundle_url ] && bundle_url=$(eval echo "\$${bundle}")

## Comment following line if it is JRE, and uncomment if it's JDK.
#jdk=1


env_sh_filepath=/etc/profile.d/java-env.sh
env_csh_filepath=/etc/profile.d/java-env.csh

{'fraction_non_alphanumeric': 0.17951002227171492, 'fraction_numerical': 0.06770601336302895, 'mean_word_length': 4.11617312072893, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1736912', 'n_tokens_mistral': 1084, 'n_tokens_neox': 980, 'n_words': 115}