<commit_before>#!/bin/bash
# Help To Linux'CN Translate Team
# Filename: $0 	Version: 2.0.1 	Author:<EMAIL>

# Exit the exception.
  set -e

# Check Soft whether existed.
  for git in soft
  do
 	 hash $soft >/dev/null 2>&1 || {
 	 echo "Error: $soft is not installed"
  	 exit 1
  	 }
  done

# Set Chinease Language
  LCTT_Language=$(echo $LANG)
  #! NOT SO STRONG
  if [[ ! $LCTT_Language =~ "zh_CN.UTF-8" ]];then
    export LANG="zh_CN.UTF-8" || export LC_ALL="zh_CN.UTF-8" 
    test  $? -eq 0 || { 
    echo -e "\e[1;31mPlease Check \"Chinese Support\" was install or not\e[0m\n"
    exit 1
    }
  fi 

# Get Github User detail
  read -p "Github User: " Iname
  read -p "Github Mail: " Email
  #! Warm: Test User INPUT
  #git clone https://$Iname@github.com/$Iname/TranslateProject 
  #! WarmPlease add Key login later
  cd $PWD/TranslateProject
  git config --global user.name  "$Iname"
  git config --global user.email "$Email"
  echo -e "\e[1;32mlctt-cli was got ready\e[0m"
  echo -e "\n\e[1;42m Press any key to continue \e[0m"
  read 

# Show the "lctttranslatemodle" file or not
  echo -e "\033[37;33;5m \
  $(cat "$(find . -inum $(ls -i |grep LCTT | \
  awk '{print $1}'))" | head -n 1)\033[39;49;0m"
  cat "$(find . -inum $(ls -i |grep LCTT | awk '{print $1}'))" | grep -vi \#
  #Warm: Not has not do it...

# Show the thime and Say think you
  echo -e "\e[1;33m\nWelcome, "$Iname"! "$(date "+Time Now: %T")"\e[0m\n"
  #! Warm: Later add morning afternoon

# Find File.
# KEYWORDS="*translated|*translating|*fanyi|*|*뷭"
# cd $PWD/../TranslateProject/sources/tech/
# grep -RHEvi ${KEYWORDS} * | grep -Ev "LCTT淶.md|.git|README" | \
# grep -RHEvi ${KEYWORDS} * | grep -Ev "$(find . -type d | sed 's#[^/]*/##' | \
# awk -F '[/]' '{print $2}')|LCTT淶.md|.git|README" | \
#  cut -d "/" -f2  | awk -F '.md:' '{print $1}' | sort -u | sed -s 's/$/.md/'
# sed -s 's/^/"/;s/$/",/' | less 
  if [[ -d "$PWD/../TranslateProject/sources/tech/" ]]; then
    tech="$PWD/../TranslateProject/sources/tech/"
    find  $tech  -type f | grep -v README.md |  wc -l
  fi
  if [[ -d "$PWD/../TranslateProject/sources/talk/" ]]; then
    talk="$PWD/../TranslateProject/sources/talk/"
    find  $talk  -type f | grep -v README.md |  wc -l
  fi

# Show File.
  cat /dev/null > /tmp/TranslateProject_talk.txt
  cat /dev/null > /tmp/TranslateProject_tech.txt
  cat /dev/null > /tmp/TranslateProject.txt

  for i in translated translating fanyi  뷭 
  do
  cd $talk && grep -RHi $i *| cut -d ":" -f 1 >> /tmp/TranslateProject_talk.txt 
  cd $tech && grep -RHi $i *| cut -d ":" -f 1 >> /tmp/TranslateProject_tech.txt
  done

  find $tech -type f |grep -v README.md |\
  grep -v "$(cat /tmp/TranslateProject_tech.txt |\
  sort -u )" >> /tmp/TranslateProject.txt
  find $talk -type f |grep -v README.md |\
  grep -v "$(cat /tmp/TranslateProject_talk.txt |\
  sort -u )" >> /tmp/TranslateProject.txt<commit_msg>Part Four of Five<commit_after>#!/bin/bash
# Help To Linux'CN Translate Team
# Filename: $0 	Version: 2.0.1 	Author:<EMAIL>

# Exit the exception.
  set -e

# Check Soft whether existed.
  for git in soft
  do
 	 hash $soft >/dev/null 2>&1 || {
 	 echo "Error: $soft is not installed"
  	 exit 1
  	 }
  done

# Set Chinease Language
  LCTT_Language=$(echo $LANG)
  #! NOT SO STRONG
  if [[ ! $LCTT_Language =~ "zh_CN.UTF-8" ]];then
    export LANG="zh_CN.UTF-8" || export LC_ALL="zh_CN.UTF-8" 
    test  $? -eq 0 || { 
    echo -e "\e[1;31mPlease Check \"Chinese Support\" was install or not\e[0m\n"
    exit 1
    }
  fi 

# Get Github User detail
  read -p "Github User: " Iname
  read -p "Github Mail: " Email
  #! Warm: Test User INPUT
 # git clone https://$Iname@github.com/$Iname/TranslateProject 
  #! WarmPlease add Key login later
  cd $PWD/TranslateProject
  git config --global user.name  "$Iname"
  git config --global user.email "$Email"
  echo -e "\e[1;32mlctt-cli was got ready\e[0m"
  echo -e "\n\e[1;42m Press any key to continue \e[0m"
  read 

# Show the "lctttranslatemodle" file or not
  echo -e "\033[37;33;5m \
  $(cat "$(find . -inum $(ls -i |grep LCTT | \
  awk '{print $1}'))" | head -n 1)\033[39;49;0m"
  cat "$(find . -inum $(ls -i |grep LCTT | awk '{print $1}'))" | grep -vi \#
  #Warm: Not has not do it...

# Show the thime and Say think you
  echo -e "\e[1;33m\nWelcome, "$Iname"! "$(date "+Time Now: %T")"\e[0m\n"
  #! Warm: Later add morning afternoon

# Find File.
# KEYWORDS="*translated|*translating|*fanyi|*|*뷭"
# cd $PWD/../TranslateProject/sources/tech/
# grep -RHEvi ${KEYWORDS} * | grep -Ev "LCTT淶.md|.git|README" | \
# grep -RHEvi ${KEYWORDS} * | grep -Ev "$(find . -type d | sed 's#[^/]*/##' | \
# awk -F '[/]' '{print $2}')|LCTT淶.md|.git|README" | \
#  cut -d "/" -f2  | awk -F '.md:' '{print $1}' | sort -u | sed -s 's/$/.md/'
# sed -s 's/^/"/;s/$/",/' | less 
  if [[ -d "$PWD/../TranslateProject/sources/tech/" ]]; then
    tech="$PWD/../TranslateProject/sources/tech/"
    tech_num=$(find  $tech  -type f | grep -v README.md |  wc -l)
    echo "tech have $tech_num article."
  fi
  if [[ -d "$PWD/../TranslateProject/sources/talk/" ]]; then
    talk="$PWD/../TranslateProject/sources/talk/"
    talk_num=$(find  $talk  -type f | grep -v README.md |  wc -l)
    echo "talk have $talk_num article."
  fi

# Show File.
  cat /dev/null > /tmp/TranslateProject_talk.txt
  cat /dev/null > /tmp/TranslateProject_tech.txt
  cat /dev/null > /tmp/TranslateProject.txt
  echo -e "\n\e[1;42m Press any key to continue \e[0m"
  read 

  for i in translated translating fanyi  뷭 
  do
  cd $talk && grep -RHi $i *| cut -d ":" -f 1 >> /tmp/TranslateProject_talk.txt 
  cd $tech && grep -RHi $i *| cut -d ":" -f 1 >> /tmp/TranslateProject_tech.txt
  done

  find $tech -type f |grep -v README.md |\
  grep -v "$(cat /tmp/TranslateProject_tech.txt |\
  sort -u )" >> /tmp/TranslateProject.txt
  find $talk -type f |grep -v README.md |\
  grep -v "$(cat /tmp/TranslateProject_talk.txt |\
  sort -u )" >> /tmp/TranslateProject.txt

  awk -F '[..]' '{print $3,$4,$5,$6}' /tmp/TranslateProject.txt | sed 's/[md$]//g'|\
  sed 's#^\/TranslateProject\/sources##g' | sed 'sO^[\/]'OOg | sed 's/^/.\//'

# Give The Number.
{'fraction_non_alphanumeric': 0.1915240423797881, 'fraction_numerical': 0.018255908720456397, 'mean_word_length': 2.7075528700906344, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 31, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2294008', 'n_tokens_mistral': 2628, 'n_tokens_neox': 2486, 'n_words': 686}