<commit_before>#!/bin/bash

etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/host 127.0.0.1
etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/password <PASSWORD>
etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/port 3306
etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/username remco
etcdctl --endpoints=127.0.0.1:2379 set /appdata/upstream/app1 10.0.1.10:8080
etcdctl --endpoints=127.0.0.1:2379 set /appdata/upstream/app2 10.0.1.11:8080
cat integration/etcd/etcd.toml | etcdctl --endpoints=127.0.0.1:2379 set /remco/config

remco config etcd -c /remco/test --api-version=2
cmp /tmp/remco-basic-test-etcdv2.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv2.conf
cmp /tmp/remco-basic-test-etcdv3.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv3.conf

export ETCDCTL_API=3
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/host 127.0.0.1
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/password p@<PASSWORD>
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/port 3306
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/username remco
etcdctl --endpoints=127.0.0.1:2379 put /appdata/upstream/app1 10.0.1.10:8080
etcdctl --endpoints=127.0.0.1:2379 put /appdata/upstream/app2 10.0.1.11:8080
cat integration/etcd/etcd.toml | etcdctl --endpoints=127.0.0.1:2379 put /remco/config

remco config etcd -c /remco/test --api-version=3
cmp /tmp/remco-basic-test-etcdv2.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv2.conf
cmp /tmp/remco-basic-test-etcdv3.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv3.conf
<commit_msg>fixed typo<commit_after>#!/bin/bash

etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/host 127.0.0.1
etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/password <PASSWORD>
etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/port 3306
etcdctl --endpoints=127.0.0.1:2379 set /appdata/database/username remco
etcdctl --endpoints=127.0.0.1:2379 set /appdata/upstream/app1 10.0.1.10:8080
etcdctl --endpoints=127.0.0.1:2379 set /appdata/upstream/app2 10.0.1.11:8080
cat integration/etcd/etcd.toml | etcdctl --endpoints=127.0.0.1:2379 set /remco/config > /dev/null

remco config etcd -c /remco/config --api-version=2
cmp /tmp/remco-basic-test-etcdv2.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv2.conf
cmp /tmp/remco-basic-test-etcdv3.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv3.conf

export ETCDCTL_API=3
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/host 127.0.0.1
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/password <PASSWORD>
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/port 3306
etcdctl --endpoints=127.0.0.1:2379 put /appdata/database/username remco
etcdctl --endpoints=127.0.0.1:2379 put /appdata/upstream/app1 10.0.1.10:8080
etcdctl --endpoints=127.0.0.1:2379 put /appdata/upstream/app2 10.0.1.11:8080
cat integration/etcd/etcd.toml | etcdctl --endpoints=127.0.0.1:2379 put /remco/config

remco config etcd -c /remco/config --api-version=3
cmp /tmp/remco-basic-test-etcdv2.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv2.conf
cmp /tmp/remco-basic-test-etcdv3.conf ./integration/config/test.config || cat /tmp/remco-basic-test-etcdv3.conf

{'fraction_non_alphanumeric': 0.1625336121900209, 'fraction_numerical': 0.12847325963549447, 'mean_word_length': 3.982142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 40, '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': '888417', 'n_tokens_mistral': 1604, 'n_tokens_neox': 1407, 'n_words': 216}