<commit_before>﻿$params = @{  }

function read_conf($filename)
{
  $lines = get-content $filename
  foreach($line in $lines){
    # コメントと空行を除外する
    if($line -match "^$"){ continue }
    if($line -match "^\s*;"){ continue }

    $param = $line.split("=",2)

    $params[$param[0]] = $param[1]
  }
}

read_conf ".\sindan.conf"

if ( Test-Path $params["LOCKFILE_SENDLOG"] ) {<commit_msg>remove jsonfile. change running codepage (432 -> 437).<commit_after>﻿$params = @{  }

function read_conf($filename)
{
  $lines = get-content $filename
  foreach($line in $lines){
    # Remove comments and blank lines.
    if($line -match "^$"){ continue }
    if($line -match "^\s*;"){ continue }

    $param = $line.split("=",2)

    $params[$param[0]] = $param[1]
  }
}

read_conf ".\sindan.conf"

if ( Test-Path $params["LOCKFILE_SENDLOG"] ) {
{'fraction_non_alphanumeric': 0.20336943441636582, 'fraction_numerical': 0.01444043321299639, 'mean_word_length': 3.6222222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2715834', 'n_tokens_mistral': 329, 'n_tokens_neox': 316, 'n_words': 62}