<commit_before>#!/bin/bash

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

set -ex
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start || true

npm run clean
npm run build
npm test
npm run test:coverage

# Install in-place and enable the server extension
export PATH="$HOME/miniconda/bin:$PATH"
pip install -v .
jupyter serverextension enable --py jupyterlab

# Run the python tests
npm run build:serverextension
pushd jupyterlab && nosetests && popd

npm run build:examples
npm run docs
cp jupyter-plugins-demo.gif docs


# Make sure we can start and kill the lab server
jupyter lab --no-browser &
TASK_PID=$!
# Make sure the task is running
ps -p $TASK_PID || exit 1
sleep 5
kill $TASK_PID
wait $TASK_PID
<commit_msg>Fix travis script order<commit_after>#!/bin/bash

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

set -ex
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start || true

export PATH="$HOME/miniconda/bin:$PATH"

npm run clean
npm run build
npm test
npm run test:coverage


# Install in-place and enable the server extension
pip install -v .
jupyter serverextension enable --py jupyterlab

# Run the python tests
npm run build:serverextension
pushd jupyterlab && nosetests && popd

npm run build:examples
npm run docs
cp jupyter-plugins-demo.gif docs


# Make sure we can start and kill the lab server
jupyter lab --no-browser &
TASK_PID=$!
# Make sure the task is running
ps -p $TASK_PID || exit 1
sleep 5
kill $TASK_PID
wait $TASK_PID

{'fraction_non_alphanumeric': 0.08226221079691516, 'fraction_numerical': 0.006426735218508998, 'mean_word_length': 4.155629139072848, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '628974', 'n_tokens_mistral': 573, 'n_tokens_neox': 529, 'n_words': 209}