<commit_before>#!/bin/csh -f
set prog = $0:t
if (($1 == "") || ($1 == "-h") || ($1 == "--help")) then
   echo "Usage: $prog <DESIGN_CONTR> <SRC_FILE> <DEST_NAME>"
   exit -1
endif

if ($?DOP_HOME == 0) then
   setenv DOP_HOME $0:h/../..
endif
setenv DVC_CSH $DOP_HOME/dvc/csh
source $DVC_CSH/11_get_svn.csh
source $DVC_CSH/12_get_version.csh
source $DVC_CSH/15_get_container.csh

if ($2 != "") then
    set src_name = $2
    set dst_name = $2:t
    if ($3 != "") then
        set dst_name = $3
    endif
    if {(test -h $DVC_CONTAINER/$dst_name)} then
       # if dest is link, remove the link first
       rm -f $DVC_CONTAINER/$dst_name
    else if {(test -d $DVC_CONTAINER/$dst_name)} then
       # if dest is dir, add the link
       set destname = $dst_name/$src_name:t
    else if {(test -e $DVC_CONTAINER/$dst_name)} then
       # if dest is file, remove the orginal file
       rm -fr $DVC_CONTAINER/$dst_name
    endif
    ln -f -s `realpath $src_name` $DVC_CONTAINER/$dst_name
    (cd $DVC_CONTAINER; svn add $dst_name --force)
endif

<commit_msg>remove realpath dependency<commit_after>#!/bin/csh -f
set prog = $0:t
if (($1 == "") || ($1 == "-h") || ($1 == "--help")) then
   echo "Usage: $prog <DESIGN_CONTR> <SRC_FILE> <DEST_NAME>"
   exit -1
endif

if ($?DOP_HOME == 0) then
   setenv DOP_HOME $0:h/../..
endif
setenv DVC_CSH $DOP_HOME/dvc/csh
source $DVC_CSH/11_get_svn.csh
source $DVC_CSH/12_get_version.csh
source $DVC_CSH/15_get_container.csh

if ($2 != "") then
    set src_name = $2
    set dst_name = $2:t
    if ($3 != "") then
        set dst_name = $3
    endif
    if {(test -h $DVC_CONTAINER/$dst_name)} then
       # if dest is link, remove the link first
       rm -f $DVC_CONTAINER/$dst_name
    else if {(test -d $DVC_CONTAINER/$dst_name)} then
       # if dest is dir, add the link
       set destname = $dst_name/$src_name:t
    else if {(test -e $DVC_CONTAINER/$dst_name)} then
       # if dest is file, remove the orginal file
       rm -fr $DVC_CONTAINER/$dst_name
    endif
    ln -f -s $src_name $DVC_CONTAINER/$dst_name
    (cd $DVC_CONTAINER; svn add $dst_name --force)
endif


{'fraction_non_alphanumeric': 0.14744801512287334, 'fraction_numerical': 0.017013232514177693, 'mean_word_length': 2.835144927536232, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3269358', 'n_tokens_mistral': 898, 'n_tokens_neox': 854, 'n_words': 235}