<commit_before>#!/bin/sh
#
# This is the shell script for building:
# 1. a TAR.GZ package;
# 2. a ZIP package
# of phpMyFAQ using what committed into SVN.
# Note: it requires an internet connection.
#
# Before using it, just only for the first launch, you need to
# launch this command:
#
#   svn checkout svn+ssh://anonymous@thinkforge.org/svnroot/phpmyfaq
#
# When prompted for a password for anonymous, simply press the Enter key.
#
# For creating a package simply run:
#
#   ./svn2package.sh
#
# The script will download the source code from branch CVS_TAG and
# it will create the 2 packages plus their MD5 hashes.
#
# @package   phpMyFAQ
# @author    <NAME> <<EMAIL>>
# @author	 <NAME> <<EMAIL>>
# @author    <NAME> <<EMAIL>>
# @since     2008-09-10
# @copyright 2008-2009 phpMyFAQ Team
# @version   SVN: $Id$
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.

# PMF Version
PMF_VERSION="2.5.0-alpha2"

# Build folder
PMF_BUILD_FOLDER="PMFBUILD_TRUNK_${PMF_VERSION}"

( # Prepare the package building environment
    if [ ! -d ${PMF_BUILD_FOLDER} ]; then
        mkdir ${PMF_BUILD_FOLDER}
    fi

    # Enter the PMF build folder
    cd "${PMF_BUILD_FOLDER}"
    # Clean files
    rm -f *

    # Get the PMF source code from SVN using an anonymous login
    SVN_SSH="ssh -p 20022" svn export svn+ssh://anonymous@thinkforge.org/svnroot/phpmyfaq/trunk/phpmyfaq phpmyfaq

    # Rename the folder in which the SVN code has been retrieved
    mv phpmyfaq "${PMF_PACKAGE_FOLDER}"

    # Build TAR.GZ Package
    tar zcf "${PMF_PACKAGE_FOLDER}.tar.gz" "${PMF_PACKAGE_FOLDER}"
    md5sum "${PMF_PACKAGE_FOLDER}.tar.gz" > "${PMF_PACKAGE_FOLDER}.tar.gz.md5"

    # Build ZIP Package
    zip -r "${PMF_PACKAGE_FOLDER}.zip" "${PMF_PACKAGE_FOLDER}"
    md5sum "${PMF_PACKAGE_FOLDER}.zip" > "${PMF_PACKAGE_FOLDER}.zip.md5"

    # Remove the code folder
    rm -rf "${PMF_PACKAGE_FOLDER}"

) # Back to the folder from which the script was called
<commit_msg>MFB: Added patch by Rene<commit_after>#!/bin/sh
#
# This is the shell script for building:
# 1. a TAR.GZ package;
# 2. a ZIP package
# of phpMyFAQ using what committed into SVN.
# Note: it requires an internet connection.
#
# Before using it, just only for the first launch, you need to
# launch this command:
#
#   svn checkout svn+ssh://anonymous@thinkforge.org/svnroot/phpmyfaq
#
# When prompted for a password for anonymous, simply press the Enter key.
#
# For creating a package simply run:
#
#   ./svn2package.sh
#
# The script will download the source code from branch CVS_TAG and
# it will create the 2 packages plus their MD5 hashes.
#
# @package   phpMyFAQ
# @author    <NAME> <<EMAIL>>
# @author	 <NAME> <<EMAIL>>
# @author    <NAME> <<EMAIL>>
# @since     2008-09-10
# @copyright 2008-2009 phpMyFAQ Team
# @version   SVN: $Id$
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (the "License"); you may not use this file except in
# compliance with the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
# License for the specific language governing rights and limitations
# under the License.

# PMF Version
if [ "x${PMF_VERSION}" = "x" ]; then
	PMF_VERSION="2.5.0-alpha2"
fi

# Build folder
if [ "x${PMF_BUILD_FOLDER}" = "x" ]; then
	PMF_BUILD_FOLDER="PMFBUILD_TRUNK_${PMF_VERSION}"
fi

# Package Folder
if [ "x${PMF_PACKAGE_FOLDER}" = "x" ]; then
	PMF_PACKAGE_FOLDER="phpmyfaq-${PMF_VERSION}"
fi

# Repository path
if [ "x${PMF_REPOSITORY}" = "x" ]; then
	PMF_REPOSITORY='svn+ssh://anonymous@thinkforge.org/svnroot/phpmyfaq/trunk/phpmyfaq'
fi

( # Prepare the package building environment
    if [ -d ${PMF_BUILD_FOLDER} ]; then
        rm -rf ${PMF_BUILD_FOLDER}
    fi

    mkdir ${PMF_BUILD_FOLDER}

    # Enter the PMF build folder
    cd "${PMF_BUILD_FOLDER}"

    # Get the PMF source code from SVN using an anonymous login
    SVN_SSH="ssh -p 20022" svn export "${PMF_REPOSITORY}" phpmyfaq

    # Rename the folder in which the SVN code has been retrieved
    mv phpmyfaq "${PMF_PACKAGE_FOLDER}"

    # Build TAR.GZ Package
    tar zcf "${PMF_PACKAGE_FOLDER}.tar.gz" "${PMF_PACKAGE_FOLDER}"
    md5 "${PMF_PACKAGE_FOLDER}.tar.gz" > "${PMF_PACKAGE_FOLDER}.tar.gz.md5"

    # Build ZIP Package
    zip -r "${PMF_PACKAGE_FOLDER}.zip" "${PMF_PACKAGE_FOLDER}"
    md5 "${PMF_PACKAGE_FOLDER}.zip" > "${PMF_PACKAGE_FOLDER}.zip.md5"

    # Remove the code folder
    rm -rf "${PMF_PACKAGE_FOLDER}"

) # Back to the folder from which the script was called

{'fraction_non_alphanumeric': 0.10924203443498912, 'fraction_numerical': 0.01424896101325945, 'mean_word_length': 3.8271251193887297, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3605144', 'n_tokens_mistral': 1858, 'n_tokens_neox': 1767, 'n_words': 585}