<commit_before>#!/bin/bash

# Start up VNC server and launch xlsession and novnc

# Author: <NAME> <<EMAIL>>

# Copyright <NAME> 2017. All rights reserved.

# Start up xdummy with the given size
RESOLUT="${RESOLUT:-1440x900}"
SIZE=`echo $RESOLUT | sed -e "s/x/ /"`
grep -s -q $RESOLUT /etc/X11/xorg.conf && \
sudo perl -i -p -e "s/Virtual \d+ \d+/Virtual $SIZE/" /etc/X11/xorg.conf

/usr/local/bin/init_vnc

Xorg -noreset -logfile $DOCKER_HOME/.log/Xorg.log -config /etc/X11/xorg.conf :0 2> $DOCKER_HOME/.log/Xorg_err.log &
sleep 0.1

# startup lxsession with proper environment variables
export DISPLAY=:0.0
export HOME=$DOCKER_HOME
export SHELL=$DOCKER_SHELL
export USER=$DOCKER_USER
export LOGFILE=$DOCKER_USER

eval `ssh-agent` > /dev/null

/usr/bin/lxsession -s LXDE -e LXDE > $DOCKER_HOME/.log/lxsession.log 2>&1 &

# startup x11vnc with a new password
export VNCPASS=`openssl rand -base64 6 | sed 's/\//-/'`

mkdir -p $DOCKER_HOME/.vnc && \
x11vnc -storepasswd $VNCPASS ~/.vnc/passwd > $DOCKER_HOME/.log/x11vnc.log 2>&1

# Use the -repeat option to enable keyboard repeat
# https://ubuntuforums.org/showthread.php?t=1344610
x11vnc -display :0 -xkb -repeat -forever -shared  -usepw >> $DOCKER_HOME/.log/x11vnc.log 2>&1 &

# sudo service dbus start > $DOCKER_HOME/.log/dbus.log 2>&1
<commit_msg>Reenabled dbus<commit_after>#!/bin/bash

# Start up VNC server and launch xlsession and novnc

# Author: <NAME> <<EMAIL>>

# Copyright <NAME> 2017. All rights reserved.

# Start up xdummy with the given size
RESOLUT="${RESOLUT:-1440x900}"
SIZE=`echo $RESOLUT | sed -e "s/x/ /"`
grep -s -q $RESOLUT /etc/X11/xorg.conf && \
sudo perl -i -p -e "s/Virtual \d+ \d+/Virtual $SIZE/" /etc/X11/xorg.conf

/usr/local/bin/init_vnc

Xorg -noreset -logfile $DOCKER_HOME/.log/Xorg.log -config /etc/X11/xorg.conf :0 2> $DOCKER_HOME/.log/Xorg_err.log &
sleep 0.1

# startup lxsession with proper environment variables
export DISPLAY=:0.0
export HOME=$DOCKER_HOME
export SHELL=$DOCKER_SHELL
export USER=$DOCKER_USER
export LOGFILE=$DOCKER_USER

eval `ssh-agent` > /dev/null

/usr/bin/lxsession -s LXDE -e LXDE > $DOCKER_HOME/.log/lxsession.log 2>&1 &

# startup x11vnc with a new password
export VNCPASS=`openssl rand -base64 6 | sed 's/\//-/'`

mkdir -p $DOCKER_HOME/.vnc && \
x11vnc -storepasswd $VNCPASS ~/.vnc/passwd > $DOCKER_HOME/.log/x11vnc.log 2>&1

# Use the -repeat option to enable keyboard repeat
# https://ubuntuforums.org/showthread.php?t=1344610
x11vnc -display :0 -xkb -repeat -forever -shared  -usepw >> $DOCKER_HOME/.log/x11vnc.log 2>&1 &

sudo service dbus start > $DOCKER_HOME/.log/dbus.log 2>&1

{'fraction_non_alphanumeric': 0.15121200461716044, 'fraction_numerical': 0.04001539053482109, 'mean_word_length': 3.8059149722735675, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, 'https://': 2, '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': '7565533', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1066, 'n_words': 265}