<commit_before>#!/bin/bash
# Download each project from CrowdIn, and package is a JAR
# Includes the TinyMCE localization

l="sv"

rm -rf ./work/alf-i18n_${l}
mkdir -p ./work/alf-i18n_${l}

cd ./work/alf-i18n_${l}

curl -L http://www.tinymce.com/i18n/download.php?download=sv_SE > tinymce.zip

curl -L http://crowdin.net/download/project/alfresco/sv-SE.zip > alfresco.zip

unzip tinymce.zip 
unzip alfresco.zip

for f in `find alfresco -type f`; do
  mv $f ${f%.properties}_${l}.properties;
done;

for f in `find share -type f`; do
  mv $f ${f%.properties}_${l}.properties;
done;

for f in `find rm -type f`; do
  mv $f ${f%.properties}_${l}.properties;
done;

#Repository translations:
mkdir -p repo/META-INF
touch repo/META-INF/MANIFEST.MF
cp -rf alfresco repo/
cp -rf rm/repo/config/alfresco/* repo/alfresco/

#Share translations:
#mkdir -p share/alfresco
#cp -rf share/* share/alfresco/
cp -rf rm/share/config/alfresco/* share/alfresco/
#TinyMCE
mkdir -p share/META-INF/modules/editors/tiny_mce
mv langs share/META-INF/modules/editors/tiny_mce/

# Fix bug with rm.properties where swedish characters are not automatically encoded
native2ascii share/alfresco/messages/rm_sv.properties share/alfresco/messages/rm_sv.properties
rm -r alfresco rm
#Create jar
cd repo
zip -r alfresco-${l}.jar META-INF alfresco
mv alfresco-${l}.jar ../
cd ..
cd share
zip -r share-${l}.jar META-INF alfresco
mv share-${l}.jar ../
cd ..


<commit_msg>Update of "update"-script<commit_after>#!/bin/bash
# Download each project from CrowdIn, and package is a JAR
# Includes the TinyMCE localization

l="sv"

rm -rf ./work/alf-i18n_${l}
mkdir -p ./work/alf-i18n_${l}

cd ./work/alf-i18n_${l}

curl -L http://www.tinymce.com/i18n/download.php?download=sv_SE > tinymce.zip

curl -L http://crowdin.net/download/project/alfresco/sv-SE.zip > alfresco.zip

unzip tinymce.zip 
unzip alfresco.zip

for f in `find alfresco -type f`; do
  mv $f ${f%.properties}_${l}.properties;
done;

for f in `find share -type f`; do
  mv $f ${f%.properties}_${l}.properties;
done;

for f in `find rm -type f`; do
  mv $f ${f%.properties}_${l}.properties;
done;

#Repository translations:
mkdir -p repo/META-INF
touch repo/META-INF/MANIFEST.MF
cp -rf alfresco repo/
cp -rf rm/repo/config/alfresco/* repo/alfresco/

#Share translations:
#mkdir -p share/alfresco
#cp -rf share/* share/alfresco/
cp -rf rm/share/config/alfresco/* share/alfresco/
#TinyMCE
mkdir -p share/META-INF/modules/editors/tiny_mce
mv langs share/META-INF/modules/editors/tiny_mce/

# Fix bug with rm.properties where swedish characters are not automatically encoded
#native2ascii share/alfresco/messages/rm_sv.properties share/alfresco/messages/rm_sv.properties
rm -r alfresco rm
#Create jar
cd repo
zip -r alfresco-${l}.jar META-INF alfresco
mv alfresco-${l}.jar ../
cd ..
cd share
zip -r share-${l}.jar META-INF alfresco
mv share-${l}.jar ../
cd ..



{'fraction_non_alphanumeric': 0.14668057003823426, 'fraction_numerical': 0.006256517205422315, 'mean_word_length': 3.8127090301003346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1954146', 'n_tokens_mistral': 1208, 'n_tokens_neox': 1139, 'n_words': 296}