<commit_before>[![Go Report Card](https://goreportcard.com/badge/github.com/ablox/replicat)](https://goreportcard.com/report/github.com/ablox/replicat)

# replicat
Replication for the cloud

usage:
directory=/tmp/foo go run replicat


Start Replicat with my custom key

1. Ray:    replicat --clusterKey <KEY> --directory /tmp/foo

2. Jacob:  replicat --clusterKey <KEY> --directory /tmp/foo (this uses machine's hostname:port as the name)

3. James:  replicat --clusterKey <KEY> --directory /tmp/foo

// Instances are using tmp folder for testing. Switch to a permanant folder for production or long term use.

go get golang.org/x/crypto/blake2b
#making sure changes can still send



# catapp
docker run -ti -p 8080:8080 cbd58a4e2054

# webcat 
docker run -ti -p 8000:8000 -p 8100:8100 eefc3a03ea1b /bin/bash
go build
./webcat &

<!-- docker run -ti -p 8100:8100 -p 8000:8000 13d17943db5b /bin/bash -->


# replicat
docker run -ti -p 8101:8101 9ca776207015 /bin/bash
./replicat --m=192.168.1.156:8100 --a=0.0.0.0:8101

docker run -ti -p 8102:8102 9ca776207015 /bin/bash
./replicat --m=192.168.1.156:8100 --a=0.0.0.0:8102

fc48c7fff890



# open URL
http://0.0.0.0:8080/


docker run -ti -p 8080:8080 -ip 172.17.0.2 cbd58a4e2054

<commit_msg>adding fix to routing table and fixing spelling error<commit_after>[![Go Report Card](https://goreportcard.com/badge/github.com/ablox/replicat)](https://goreportcard.com/report/github.com/ablox/replicat)

# replicat
Replication for the cloud

usage:
directory=/tmp/foo go run replicat


Start Replicat with my custom key

1. Ray:    replicat --clusterKey <KEY> --directory /tmp/foo

2. Jacob:  replicat --clusterKey <KEY> --directory /tmp/foo (this uses machine's hostname:port as the name)

3. James:  replicat --clusterKey <KEY> --directory /tmp/foo

// Instances are using tmp folder for testing. Switch to a permanent folder for production or long term use.

go get golang.org/x/crypto/blake2b
#making sure changes can still send



# catapp
docker run -ti -p 8080:8080 cbd58a4e2054

# webcat 
docker run -ti -p 8000:8000 -p 8100:8100 eefc3a03ea1b /bin/bash
go build
./webcat &

<!-- docker run -ti -p 8100:8100 -p 8000:8000 13d17943db5b /bin/bash -->


# replicat
docker run -ti -p 8101:8101 9ca776207015 /bin/bash
./replicat --m=192.168.1.156:8100 --a=0.0.0.0:8101

docker run -ti -p 8102:8102 9ca776207015 /bin/bash
./replicat --m=192.168.1.156:8100 --a=0.0.0.0:8102

fc48c7fff890


# Fixing Routing Table Mac - Error socket connection refused
sudo ifconfig en0 down
sudo route flush
sudo ifconfig en0 up




# open URL
http://0.0.0.0:8080/


docker run -ti -p 8080:8080 -ip 172.17.0.2 cbd58a4e2054


{'fraction_non_alphanumeric': 0.12608531521328803, 'fraction_numerical': 0.13590033975084936, 'mean_word_length': 3.4019933554817277, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, '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': '277383', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1018, 'n_words': 299}