<commit_before>#!/bin/bash
# set -x

usage()
{
cat << EOF
usage: $0 options

This script starts up the OpenBazaar client and server.

OPTIONS:
  -h    Help information
  -o    Seed Mode
  -i    Server Public IP
  -p    Server Public Port (default 12345)
  -k    Web Interface IP (default 127.0.0.1; use 0.0.0.0 for any)
  -q    Web Interface Port (default 8888)
  -l    Log file
  -d    Development mode
  -n    Number of Dev nodes to start up
  -a    Bitmessage API username
  -b    Bitmessage API password
  -c    Bitmessage API port
  -u    Market ID
  -j    Disable upnp
  -s    List of additional seeds
EOF
}

PYTHON="./env/bin/python"
if [ ! -x $PYTHON ]; then
  echo "No python executable found at ${PYTHON}"
  if which python2 2>/dev/null; then<commit_msg>run.sh: update default web interface port in help output<commit_after>#!/bin/bash
# set -x

usage()
{
cat << EOF
usage: $0 options

This script starts up the OpenBazaar client and server.

OPTIONS:
  -h    Help information
  -o    Seed Mode
  -i    Server Public IP
  -p    Server Public Port (default 12345)
  -k    Web Interface IP (default 127.0.0.1; use 0.0.0.0 for any)
  -q    Web Interface Port (default random)
  -l    Log file
  -d    Development mode
  -n    Number of Dev nodes to start up
  -a    Bitmessage API username
  -b    Bitmessage API password
  -c    Bitmessage API port
  -u    Market ID
  -j    Disable upnp
  -s    List of additional seeds
EOF
}

PYTHON="./env/bin/python"
if [ ! -x $PYTHON ]; then
  echo "No python executable found at ${PYTHON}"
  if which python2 2>/dev/null; then
{'fraction_non_alphanumeric': 0.08900190718372536, 'fraction_numerical': 0.02542911633820725, 'mean_word_length': 2.3922413793103448, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5942635', 'n_tokens_mistral': 576, 'n_tokens_neox': 542, 'n_words': 219}