<commit_before>#!/bin/bash
# -*- Mode: sh -*-
# _repo-init-template.sh --- init a src repo
# Copyright (C) 2016-2017  <NAME> (dan.harms)
# Author: <NAME> <<EMAIL>>
# Created: Tuesday, May  3, 2016
# Version: 1.0
# Modified Time-stamp: <2017-04-14 07:16:56 dharms>
# Modified by: <NAME>
# Keywords: src repo

if [ $# -lt 2 ]; then
    echo "!!! Usage: repo-init.sh project version [target]"
    exit 1
fi

proj=$1
ver=$2
subdir=${3:-$proj-$ver}
echo "Using $proj version $ver"

_yesorno.sh "Clone $proj into $(pwd)/$subdir/proj?"
[ $? == 1 ] && exit

if [ ! -d $subdir/$proj/.git ]; then
    mkdir -p $subdir
    # git clone ssh://git@addr:7999/proj/proj.git $subdir/proj
fi

cd $subdir

setupf=$proj-setup.sh
prof=$proj-$ver.eprof
envf=$proj.env

cp -f ~/config/repos/$proj/$ver/$setupf repo-setup.sh
cp -f ~/config/repos/$proj/$ver/$prof .
cp -f ~/config/repos/$proj/$ver/$envf .repo-env

if [ ! -d $proj/.git/hooks ]; then
    echo "! $proj repo missing; install first."
    exit 1<commit_msg>update default repo template script for proviso<commit_after>#!/bin/bash
# -*- Mode: sh -*-
# _repo-init-template.sh --- init a src repo
# Copyright (C) 2016-2017  <NAME> (dan.harms)
# Author: <NAME> <<EMAIL>>
# Created: Tuesday, May  3, 2016
# Version: 1.0
# Modified Time-stamp: <2017-06-19 11:08:43 dan.harms>
# Modified by: <NAME>
# Keywords: src repo

if [ $# -lt 2 ]; then
    echo "!!! Usage: repo-init.sh project version [target]"
    exit 1
fi

proj=$1
ver=$2
subdir=${3:-$proj-$ver}
echo "Using $proj version $ver"

_yesorno.sh "Clone $proj into $(pwd)/$subdir/proj?"
[ $? == 1 ] && exit

if [ ! -d $subdir/$proj/.git ]; then
    mkdir -p $subdir
    # git clone ssh://git@addr:7999/proj/proj.git $subdir/proj
fi

cd $subdir

setupf=$proj-setup.sh
projf=$proj-$ver.proviso
envf=$proj.env

cp -f ~/config/repos/$proj/$ver/$setupf repo-setup.sh
cp -f ~/config/repos/$proj/$ver/$projf .
cp -f ~/config/repos/$proj/$ver/$envf .repo-env

if [ ! -d $proj/.git/hooks ]; then
    echo "! $proj repo missing; install first."
    exit 1
{'fraction_non_alphanumeric': 0.1964549483013294, 'fraction_numerical': 0.03938946331856229, 'mean_word_length': 3.2510460251046025, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6621503', 'n_tokens_mistral': 901, 'n_tokens_neox': 792, 'n_words': 209}