<commit_before>/**

  Checkout SCM

  Get the code from SCM and init / update submodules
  Leave the repository on the actual branch, instead of "deatached"

  Parameters:
  * String targetPlatform one of:
    - "android": copy debug.keystore from home folder ~/.android/debug.keystore
    - "": do nothing
*/
def call(String targetPlatform = '') {
    timestamps {
        ansiColor('xterm') {
            script {
                checkout scm
                if (!env.BRANCH_NAME.startsWith('PR-')) {
                    sh 'git checkout ' + env.BRANCH_NAME + ' && git pull '
                }
                sh 'git submodule update --init'
                if (targetPlatform == 'android') {
                    sh "mkdir -p ?/.android && cp -n ~/.android/debug.keystore ?/.android"
                }
            }
        }
    }
}
<commit_msg>Set Dockerfile with common library part<commit_after>/**

  Checkout SCM

  Get the code from SCM and init / update submodules
  Leave the repository on the actual branch, instead of "deatached"

  Parameters:
  * String targetPlatform one of:
    - "android": copy debug.keystore from home folder ~/.android/debug.keystore
    - "": do nothing
*/
def call(String targetPlatform = '') {
    timestamps {
        ansiColor('xterm') {
            script {
                checkout scm
                if (!env.BRANCH_NAME.startsWith('PR-')) {
                    sh 'git checkout ' + env.BRANCH_NAME + ' && git pull '
                }
                sh 'git submodule update --init'
                if (targetPlatform == 'android') {
                    sh "mkdir -p ?/.android && cp -n ~/.android/debug.keystore ?/.android && wget -O - https://raw.githubusercontent.com/pedroamador/ci-scripts/develop/docker/android-emulator/Dockerfile > Dockerfile && cat Dockerfile.tail >> Dockerfile"
                }
            }
        }
    }
}

{'fraction_non_alphanumeric': 0.11393746687864335, 'fraction_numerical': 0.0, 'mean_word_length': 1.7481804949053856, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '4009319', 'n_tokens_mistral': 557, 'n_tokens_neox': 521, 'n_words': 148}