<commit_before>#!/usr/bin/env bash

if [ -n "$GITHUB_API_KEY" ]; then
    cd "$TRAVIS_BUILD_DIR"
    if [ "$TRAVIS_PULL_REQUEST" == false ] && [ "$TRAVIS_BRANCH" == 'master' ]; then
        echo "Build branch master"
        git clone <EMAIL>:olzraiti/react-jsonschema-form.git .tmp
        cd .tmp
        git checkout olzraiti/overrideRegistry
        npm run dist
        npm link
        cd "$TRAVIS_BUILD_DIR"
        echo "✓ Checkout and build fork"
        # This generates a `docs` directory containing demo and sassdoc
        npm link react-jsonschema-form
        npm run build-storybook
        echo "✓ Create storybook-static directory"
        # Publish on gh-pages
        cd storybook-static
        git init
        git checkout -b gh-pages
        git add .
        git -c user.name='travis' -c user.email='travis' commit -m 'Generate gh-pages from CI'
        git push -f -q https://frassinier:$GITHUB_API_KEY@github.com/frassinier/rjsf-material-design gh-pages &> /dev/null
        echo "✓ Push storybook-static/ content to gh-pages"
    else
        echo "Building PR #$TRAVIS_PULL_REQUEST from branch $TRAVIS_BRANCH"<commit_msg>fix: change ssh to https<commit_after>#!/usr/bin/env bash

if [ -n "$GITHUB_API_KEY" ]; then
    cd "$TRAVIS_BUILD_DIR"
    if [ "$TRAVIS_PULL_REQUEST" == false ] && [ "$TRAVIS_BRANCH" == 'master' ]; then
        echo "Build branch master"
        git clone https://github.com/olzraiti/react-jsonschema-form.git .tmp
        cd .tmp
        git checkout olzraiti/overrideRegistry
        npm run dist
        npm link
        cd "$TRAVIS_BUILD_DIR"
        echo "✓ Checkout and build fork"
        # This generates a `docs` directory containing demo and sassdoc
        npm link react-jsonschema-form
        npm run build-storybook
        echo "✓ Create storybook-static directory"
        # Publish on gh-pages
        cd storybook-static
        git init
        git checkout -b gh-pages
        git add .
        git -c user.name='travis' -c user.email='travis' commit -m 'Generate gh-pages from CI'
        git push -f -q https://frassinier:$GITHUB_API_KEY@github.com/frassinier/rjsf-material-design gh-pages &> /dev/null
        echo "✓ Push storybook-static/ content to gh-pages"
    else
        echo "Building PR #$TRAVIS_PULL_REQUEST from branch $TRAVIS_BRANCH"
{'fraction_non_alphanumeric': 0.09948320413436693, 'fraction_numerical': 0.0, 'mean_word_length': 2.3715529753265603, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3793428', 'n_tokens_mistral': 775, 'n_tokens_neox': 755, 'n_words': 215}