<commit_before>﻿<!DOCTYPE html>

<html lang="ja">
<HEAD>
<title>YaizuSample</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="./style.css" type="text/css">
</HEAD>

<BODY>
<div id="container">
<H1>1. Property files</H1>


<H2 ID="1.1">1.1 Server properties</H2>
<div class="topic">
<p>
YaizuSample server loads sample.conf at the timing of process start.
sample.conf can handle following properties.
</p>
<table class="tblstyle">
<tr><th>Property name</th><th>Description</th></tr>
<tr><td>servicehost</td><td>IP address or host name of server where listen to client connection.</td></tr>
<tr><td>serviceport</td><td>Port number where listen to client connection.</td></tr>
<tr><td>workerthreads</td><td>Number of worker threads handle client connection.<br/>
                              This number includes threads for status acquisition and threads for operation.<br/>
                              n (2 =&lt; n =&lt; 250)<br/>(defalult=190)</td></tr>
<tr><td>threadinterval</td><td>Wait time in milliseconds which each thread takes.<br/>(default=200)</td></tr>
<tr><td>securemode</td><td>Enable SSL/TLS connection.<br/>true or false can be specified.<br/>(defauld=false)</td></tr>
<tr><td>privatekey</td><td>Path to private key file for secure connection.<br/></td></tr>
<tr><td>certificate</td><td>Path to certificate file for secure connection.<br/></td></tr>
<tr><td>trustedcert</td><td>Path to trusted certificate file for secure connection.<br/>This is used by StkWebAppCmd.</td></tr>
<tr><td>workdir</td><td>Work directory<br/>(default=Same directory with executable file)</td></tr>
</table><br/>
An example of sample.conf is shown below.<br/>
<table class="tblstyle"><tr><td>
<pre><code>servicehost=localhost
serviceport=8081
securemode=true
privatekey=C:\Program Files\Example\server.key
certificate=C:\Program Files\Example\server.crt
trustedcert=C:\Program Files\Example\ca.crt
workdir=C:\Program Files\Example\work</code></pre>
</td></tr></table>
</div><p>


<H2 ID="1.2">1.2 Agent properties</H2>
<div class="topic">
<p>
YaizuSample agent loads agent.conf at the timing of process start.
agent.conf can handle following properties.
</p>
<table class="tblstyle">
<tr><th>Property name</th><th>Description</th></tr>
<tr><td>targethost</td><td>IP address or host name of destination server where agent connects to</td></tr>
<tr><td>targetport</td><td>Port number where agent connects tos</td></tr>
<tr><td>workdir</td><td>Work directory</td></tr>
<tr><td>hostname</td><td>Host name which server recognizes.</td></tr>
<tr><td>securemode</td><td>Enable SSL/TLS connection.<br/>true or false can be specified.<br/>(defauld=false)</td></tr>
<tr><td>trustedcert</td><td>Path to trusted certificate file for secure connection.<br/></td></tr>
</table><br/>
An example of agent.conf is shown below.<br/>
<table class="tblstyle"><tr><td>
<pre><code>targethost=localhost
targetport=8081
workdir=c:\bucket_agent
hostname=
securemode=true
trustedcert=C:\Program Files\Example\ca.crt</code></pre>
</td></tr></table>
</div><p>


<H2 ID="1.3">1.3 Data and configuration files</H2>
<div class="topic">
<p>
YaizuSample agent uses following folders and files.<br/>
</p>
Windows edition<br/>
<ul>
<li>&lt;Installation folder&gt;\agent.conf<br/>Properties flie of agent</li>
<li>&lt;Installation folder&gt;\work<br/>Work folder of agent</li>
</ul>Linux edition<br/>
<ul>
<li>/etc/agent.conf<br/>Properties flie of agent</li>
<li>/usr/share/servalagt<br/>Work folder of agent</li>
</ul>
<commit_msg>#72 : Documentation : For "scriptencode"<commit_after>﻿<!DOCTYPE html>

<html lang="ja">
<HEAD>
<title>YaizuSample</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="./style.css" type="text/css">
</HEAD>

<BODY>
<div id="container">
<H1>1. Property files</H1>


<H2 ID="1.1">1.1 Server properties</H2>
<div class="topic">
<p>
YaizuSample server loads sample.conf at the timing of process start.
sample.conf can handle following properties.
</p>
<table class="tblstyle">
<tr><th>Property name</th><th>Description</th></tr>
<tr><td>servicehost</td><td>IP address or host name of server where listen to client connection.</td></tr>
<tr><td>serviceport</td><td>Port number where listen to client connection.</td></tr>
<tr><td>workerthreads</td><td>Number of worker threads handle client connection.<br/>
                              This number includes threads for status acquisition and threads for operation.<br/>
                              n (2 =&lt; n =&lt; 250)<br/>(defalult=190)</td></tr>
<tr><td>threadinterval</td><td>Wait time in milliseconds which each thread takes.<br/>(default=200)</td></tr>
<tr><td>securemode</td><td>Enable SSL/TLS connection.<br/>true or false can be specified.<br/>(defauld=false)</td></tr>
<tr><td>privatekey</td><td>Path to private key file for secure connection.<br/></td></tr>
<tr><td>certificate</td><td>Path to certificate file for secure connection.<br/></td></tr>
<tr><td>trustedcert</td><td>Path to trusted certificate file for secure connection.<br/>This is used by StkWebAppCmd.</td></tr>
<tr><td>workdir</td><td>Work directory<br/>(default=Same directory with executable file)</td></tr>
</table><br/>
An example of sample.conf is shown below.<br/>
<table class="tblstyle"><tr><td>
<pre><code>servicehost=localhost
serviceport=8081
securemode=true
privatekey=C:\Program Files\Example\server.key
certificate=C:\Program Files\Example\server.crt
trustedcert=C:\Program Files\Example\ca.crt
workdir=C:\Program Files\Example\work</code></pre>
</td></tr></table>
</div><p>


<H2 ID="1.2">1.2 Agent properties</H2>
<div class="topic">
<p>
YaizuSample agent loads agent.conf at the timing of process start.
agent.conf can handle following properties.
</p>
<table class="tblstyle">
<tr><th>Property name</th><th>Description</th></tr>
<tr><td>targethost</td><td>IP address or host name of destination server where agent connects to</td></tr>
<tr><td>targetport</td><td>Port number where agent connects tos</td></tr>
<tr><td>workdir</td><td>Work directory</td></tr>
<tr><td>hostname</td><td>Host name which server recognizes.</td></tr>
<tr><td>scriptencode</td><td>Encode type of script. UTF8 or SJIS can be specified.</td></tr>
<tr><td>securemode</td><td>Enable SSL/TLS connection.<br/>true or false can be specified.<br/>(defauld=false)</td></tr>
<tr><td>trustedcert</td><td>Path to trusted certificate file for secure connection.<br/></td></tr>
</table><br/>
An example of agent.conf is shown below.<br/>
<table class="tblstyle"><tr><td>
<pre><code>targethost=localhost
targetport=8081
workdir=c:\bucket_agent
hostname=
scriptencode=UTF8
securemode=true
trustedcert=C:\Program Files\Example\ca.crt</code></pre>
</td></tr></table>
</div><p>


<H2 ID="1.3">1.3 Data and configuration files</H2>
<div class="topic">
<p>
YaizuSample agent uses following folders and files.<br/>
</p>
Windows edition<br/>
<ul>
<li>&lt;Installation folder&gt;\agent.conf<br/>Properties flie of agent</li>
<li>&lt;Installation folder&gt;\work<br/>Work folder of agent</li>
</ul>Linux edition<br/>
<ul>
<li>/etc/agent.conf<br/>Properties flie of agent</li>
<li>/usr/share/servalagt<br/>Work folder of agent</li>
</ul>

{'fraction_non_alphanumeric': 0.1889687586397567, 'fraction_numerical': 0.011611833010782417, 'mean_word_length': 5.589253187613843, 'pattern_counts': {'":': 0, '<': 395, '<?xml version=': 0, '>': 395, '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': '5302515', 'n_tokens_mistral': 2465, 'n_tokens_neox': 2406, 'n_words': 598}