<commit_before>`yum install subversion -y`

`mkdir -p /var/svn/project`

`svnadmin create /var/svn/project`

`cp /var/svn/project/hooks/post-commit.tmpl /var/svn/project/hooks/post-commit`

```
#!/bin/sh

export LANG=zh_CN.UTF-8

REPOS="$1"
REV="$2"
SVN_PATH=/usr/bin/svn
WEB_PATH=/home/wwwroot/project
LOG_PATH=/tmp/svn_update.log
echo "nnn##########开始提交 " `date "+%Y-%m-%d %H:%M:%S"` '##################' >> $LOG_PATH
echo `whoami`,$REPOS,$REV >> $LOG_PATH
$SVN_PATH checkout svn://localhost/project $WEB_PATH --username "username" --password "password" >> $LOG_PATH
chown -R www:www $WEB_PATH
```

`systemctl start svnserve`<commit_msg>更新钩子代码<commit_after>`yum install subversion -y`

`mkdir -p /var/svn/project`

`svnadmin create /var/svn/project`

`cp /var/svn/project/hooks/post-commit.tmpl /var/svn/project/hooks/post-commit`

```
#!/bin/sh

export LANG=zh_CN.UTF-8

REPOS="$1"
REV="$2"
WEB_PATH=/home/wwwroot/project
LOG_PATH=/tmp/svn_update.log
SVN_PATH=/usr/bin/svn
SVN_REPOS=svn://localhost/repos/project
SVN_USER="username";
SVN_PWD="password";

echo "nnn##########开始提交 " `date "+%Y-%m-%d %H:%M:%S"` '##################' >> $LOG_PATH
echo `whoami`,$REPOS,$REV >> $LOG_PATH
echo `$SVN_PATH checkout $SVN_REPOS $WEB_PATH --username $SVN_USER --password $SVN_PWD --no-auth-cache >> $LOG_PATH`
chown -R www:www $WEB_PATH

```

`systemctl start svnserve`
{'fraction_non_alphanumeric': 0.22556943423952977, 'fraction_numerical': 0.00440852314474651, 'mean_word_length': 5.219178082191781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '2023044', 'n_tokens_mistral': 601, 'n_tokens_neox': 587, 'n_words': 96}