<commit_before>#!/usr/bin/python -u
'''
    ADOdb release build script
'''

from datetime import date
import errno
import getopt
import re
import os
from os import path
import shutil
import subprocess
import sys
import tempfile


# ADOdb Repository reference
origin_repo = "/home/dregad/dev/adodb/git"
release_branch = "master"
release_prefix = "adodb"

# Directories and files to exclude from release tarballs
exclude_list = (".git*",
                "replicate",
                "scripts",
                # There are no png files in there...
                # "cute_icons_for_site/*.png",
                "hs~*.*",
                "adodb-text.inc.php",
                # This file does not exist in current repo
                # 'adodb-lite.inc.php'
                )

# ADOdb version validation regex
version_prefix = "V"
tag_prefix = "v"
version_regex = "[Vv]?[0-9]\.[0-9]+[a-z]?"

# Command-line options
options = "hfks:"
long_options = ["help", "fresh", "keep"]


def usage():
    print '''Usage: %s [options] version release_path
<commit_msg>Release script: reference sourceforge git repo<commit_after>#!/usr/bin/python -u
'''
    ADOdb release build script
'''

from datetime import date
import errno
import getopt
import re
import os
from os import path
import shutil
import subprocess
import sys
import tempfile


# ADOdb Repository reference
origin_repo = "git://git.code.sf.net/p/adodb/git adodb-git"
release_branch = "master"
release_prefix = "adodb"

# Directories and files to exclude from release tarballs
exclude_list = (".git*",
                "replicate",
                "scripts",
                # There are no png files in there...
                # "cute_icons_for_site/*.png",
                "hs~*.*",
                "adodb-text.inc.php",
                # This file does not exist in current repo
                # 'adodb-lite.inc.php'
                )

# ADOdb version validation regex
version_prefix = "V"
tag_prefix = "v"
version_regex = "[Vv]?[0-9]\.[0-9]+[a-z]?"

# Command-line options
options = "hfks:"
long_options = ["help", "fresh", "keep"]


def usage():
    print '''Usage: %s [options] version release_path

{'fraction_non_alphanumeric': 0.12267657992565056, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 2.478190630048465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1272135', 'n_tokens_mistral': 704, 'n_tokens_neox': 655, 'n_words': 198}