<commit_before>#!/bin/bash

echo "install webmin"
yum -y install webmin

echo "configure webmin"
echo "webprefix=/webmin" >> /etc/webmin/config
echo "webprefixnoredir=1" >> /etc/webmin/config
echo "referers=localhost" >> /etc/webmin/config
echo "referer=1" >> /etc/webmin/config

cat > /etc/httpd/conf.d/webmin.conf << "EOF"
ProxyPreserveHost On
Proxypass /webmin http://localhost:10000
Proxypassreverse /webmin http://localhost:10000
ProxyRequests Off
EOF

echo "launch webmin"
systemctl start webmin.service

echo "reload httpd"
systemctl restart httpd.service

echo "launch webmin on boot"
systemctl enable webmin.service<commit_msg>Update webmin.bash<commit_after>#!/bin/bash

echo "install webmin"
yum -y install webmin

echo "configure webmin"
echo "webprefix=/webmin" >> /etc/webmin/config
echo "webprefixnoredir=1" >> /etc/webmin/config
echo "referers=localhost" >> /etc/webmin/config
echo "referer=1" >> /etc/webmin/config

echo "configure httpd proxy"
cat > /etc/httpd/conf.d/webmin.conf << "EOF"
ProxyPreserveHost On
Proxypass /webmin http://localhost:10000
Proxypassreverse /webmin http://localhost:10000
ProxyRequests Off
EOF

echo "remove ssl (for httpd proxy)"
sed -i "s/^\(ssl=\).*/\10/" /etc/webmin/miniserv.conf

echo "launch webmin"
systemctl start webmin.service

echo "reload httpd"
systemctl restart httpd.service

echo "launch webmin on boot"
systemctl enable webmin.service
{'fraction_non_alphanumeric': 0.12598425196850394, 'fraction_numerical': 0.018611309949892626, 'mean_word_length': 5.131578947368421, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 0, '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': '5154046', 'n_tokens_mistral': 513, 'n_tokens_neox': 490, 'n_words': 128}