<commit_before>#!/bin/sh

# This file is for you, the developer, to run while developing the code.  It automatically pushes
#   your new changes into couchdb whenever you save a file.

# . ../bin/activate

# # Development copy - arwd.iriscouch.com
# # Get the admin username and password for couchdb
#LOGIN=$(cat login.txt)
#PORT=80
#HOST=arwd.iriscouch.com
# HOST=arwd.cloudant.com
#DBNAME=rcl-dev

# # Development copy - local
# # Get the admin username and password for couchdb
LOGIN=$(cat login.txt)
PORT=5984
HOST=localhost
# HOST=arwd.cloudant.com
DBNAME=rcl-dev

# Production copy
# Get the admin username and password for couchdb
# LOGIN=$(cat login.txt)
# PORT=5984
# HOST=localhost
# DBNAME=rcl

URL=http://$LOGIN@$HOST:$PORT/$DBNAME
<commit_msg>Make it easier to switch between deployment locations<commit_after>#!/bin/sh

# This file is for you, the developer, to run while developing the code.  It automatically pushes
#   your new changes into couchdb whenever you save a file.

# . ../bin/activate

MODE="dev-local"
#MODE="dev-iriscouch"
#MODE="prod-local"
#MODE="prod-iriscouch"

if [ "$MODE" = 'dev-iriscouch' ];
then
  # # Development copy - arwd.iriscouch.com
  # # Get the admin username and password for couchdb
  LOGIN=$(cat login.txt)
  PORT=80
  HOST=arwd.iriscouch.com
  # HOST=arwd.cloudant.com
  DBNAME=rcl-dev;
fi

if [ "$MODE" = 'dev-local' ];
then
  # # Development copy - local
  # # Get the admin username and password for couchdb
  LOGIN=$(cat login.txt)
  PORT=5984
  HOST=localhost
  # HOST=arwd.cloudant.com
  DBNAME=rcl-dev;
fi;

if [ "$MODE" = 'prod-local' ];
then
  # Production copy
  # Get the admin username and password for couchdb
  LOGIN=$(cat login.txt)
  PORT=5984
  HOST=localhost
  DBNAME=rcl;
fi;

if [ "$MODE" = 'prod-iriscouch' ];
then
  # Production copy
  # Get the admin username and password for couchdb
  LOGIN=$(cat login.txt)
  PORT=80
  HOST=arwd.iriscouch.com
  DBNAME=rcl;
fi;

URL=http://$LOGIN@$HOST:$PORT/$DBNAME

{'fraction_non_alphanumeric': 0.1243680485338726, 'fraction_numerical': 0.011122345803842264, 'mean_word_length': 4.022842639593908, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1005734', 'n_tokens_mistral': 719, 'n_tokens_neox': 695, 'n_words': 202}