<commit_before>#!/bin/sh
#########################################################################
#                                                                       #
#                            Objective Caml                             #
#                                                                       #
#           <NAME>, <NAME>, INRIA Rocquencourt            #
#                                                                       #
#   Copyright 2001 Institut National de Recherche en Informatique et    #
#   en Automatique.  All rights reserved.  This file is distributed     #
#   under the terms of the Q Public License version 1.0.                #
#                                                                       #
#########################################################################

# $Id$

bytecode_objs=''
native_objs=''
c_objs=''
c_libs=''
c_libs_caml=''
c_opts=''
c_opts_caml=''
caml_opts=''
caml_libs=''
ocamlc='%%BINDIR%%/ocamlc'
ocamlopt='%%BINDIR%%/ocamlopt'
output='a'
output_c=''
sharedldtype='%%SHAREDLDTYPE%%'
dynlink='%%SUPPORTS_SHARED_LIBRARIES%%'
custom_opt='-custom'

while :; do
    case "$1" in
    "")
        break;;
    *.cmo|*.cma)
        bytecode_objs="$bytecode_objs $1";;
    *.cmx|*.cmxa)
        native_objs="$native_objs $1";;
    *.ml|*.mli)
        bytecode_objs="$bytecode_objs $1"
        native_objs="$native_objs $1";;
    *.o|*.a)
        c_objs="$c_objs $1";;
    -cclib)
        caml_libs="$caml_libs $1 $2"
        shift;;
    -ccopt|-dllpath)
        caml_opts="$caml_opts $1 $2"
        shift;;
    -custom)
        dynlink=false;;
    -I)
        caml_opts="$caml_opts $1 $2"
        shift;;
    -linkall)
        caml_opts="$caml_opts $1";;
    -l*)
        c_libs="$c_libs $1"
        c_libs_caml="$c_libs_caml -cclib $1";;
    -L*)
        c_opts="$c_opts $1"
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -ocamlc)
        ocamlc="$2"
        shift;;
    -ocamlopt)
        ocamlopt="$2"
        shift;;
    -o)
        output="$2"
        shift;;
    -oc)
        output_c="$2"
        shift;;
    -pthread)
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -Wl,-rpath)
        case $2 in
        -Wl,*)
            rpatharg=`echo $2 | sed "s/-Wl,//"`
            if test "$sharedldtype" = "ld"; then
                c_opts="$c_opts -rpath $rpatharg"
            else
                c_opts="$c_opts $1,$rpatharg"
            fi
            c_opts_caml="$c_opts_caml -ccopt $1,$rpatharg"
            shift;;
        *)
            echo "No argument to '$1', ignored" 1>&2;;
        esac;;
    -Wl,-rpath,*)
        if test "$sharedldtype" = "ld"; then
            rpatharg=`echo $1 | sed "s/-Wl,-rpath,//"`
            c_opts="$c_opts -rpath $rpatharg"
        else
            c_opts="$c_opts $1"
        fi
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -Wl,-R*)
        if test "$sharedldtype" = "ld"; then
            rpatharg=`echo $1 | sed "s/-Wl,-R//"`
            c_opts="$c_opts -R$rpatharg"
        else
            c_opts="$c_opts $1"
        fi
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -*)
        echo "Unknown option '$1', ignored" 1>&2;;
    *)
        echo "Don't know what to do with '$1', ignored" 1>&2;;
    esac
    shift
done

if test "$output_c" = ""; then output_c="$output"; fi
<commit_msg>finit -R/-rpath<commit_after>#!/bin/sh
#########################################################################
#                                                                       #
#                            Objective Caml                             #
#                                                                       #
#           <NAME>, <NAME>, INRIA Rocquencourt            #
#                                                                       #
#   Copyright 2001 Institut National de Recherche en Informatique et    #
#   en Automatique.  All rights reserved.  This file is distributed     #
#   under the terms of the Q Public License version 1.0.                #
#                                                                       #
#########################################################################

# $Id$

bytecode_objs=''
native_objs=''
c_objs=''
c_libs=''
c_libs_caml=''
c_opts=''
c_opts_caml=''
caml_opts=''
caml_libs=''
ocamlc='%%BINDIR%%/ocamlc'
ocamlopt='%%BINDIR%%/ocamlopt'
output='a'
output_c=''
sharedldtype='%%SHAREDLDTYPE%%'
dynlink='%%SUPPORTS_SHARED_LIBRARIES%%'
custom_opt='-custom'

while :; do
    case "$1" in
    "")
        break;;
    *.cmo|*.cma)
        bytecode_objs="$bytecode_objs $1";;
    *.cmx|*.cmxa)
        native_objs="$native_objs $1";;
    *.ml|*.mli)
        bytecode_objs="$bytecode_objs $1"
        native_objs="$native_objs $1";;
    *.o|*.a)
        c_objs="$c_objs $1";;
    -cclib)
        caml_libs="$caml_libs $1 $2"
        shift;;
    -ccopt)
        caml_opts="$caml_opts $1 $2"
        shift;;
    -custom)
        dynlink=false;;
    -I)
        caml_opts="$caml_opts $1 $2"
        shift;;
    -linkall)
        caml_opts="$caml_opts $1";;
    -l*)
        c_libs="$c_libs $1"
        c_libs_caml="$c_libs_caml -cclib $1";;
    -L*)
        c_opts="$c_opts $1"
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -ocamlc)
        ocamlc="$2"
        shift;;
    -ocamlopt)
        ocamlopt="$2"
        shift;;
    -o)
        output="$2"
        shift;;
    -oc)
        output_c="$2"
        shift;;
    -pthread)
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -R|-rpath)
        c_opts="$c_opts $1 $2"
        c_opts_caml="$c_opts_caml -ccopt $1 -ccopt $2"
        shift;;
    -R*)
        c_opts="$c_opts $1"
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -Wl,-rpath)
        case $2 in
        -Wl,*)
            rpatharg=`echo $2 | sed "s/^-Wl,//"`
            if test "$sharedldtype" = "ld"; then
                c_opts="$c_opts -rpath $rpatharg"
            else
                c_opts="$c_opts $1,$rpatharg"
            fi
            c_opts_caml="$c_opts_caml -ccopt $1,$rpatharg"
            shift;;
        *)
            echo "No argument to '$1', ignored" 1>&2;;
        esac;;
    -Wl,-rpath,*)
        if test "$sharedldtype" = "ld"; then
            rpatharg=`echo $1 | sed "s/^-Wl,-rpath,//"`
            c_opts="$c_opts -rpath $rpatharg"
        else
            c_opts="$c_opts $1"
        fi
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -Wl,-R*)
        if test "$sharedldtype" = "ld"; then
            rpatharg=`echo $1 | sed "s/^-Wl,-R//"`
            c_opts="$c_opts -R$rpatharg"
        else
            c_opts="$c_opts $1"
        fi
        c_opts_caml="$c_opts_caml -ccopt $1";;
    -*)
        echo "Unknown option '$1', ignored" 1>&2;;
    *)
        echo "Don't know what to do with '$1', ignored" 1>&2;;
    esac
    shift
done

if test "$output_c" = ""; then output_c="$output"; fi

{'fraction_non_alphanumeric': 0.19026742656729503, 'fraction_numerical': 0.01461347362268011, 'mean_word_length': 1.5254612546125461, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7351381', 'n_tokens_mistral': 2403, 'n_tokens_neox': 2337, 'n_words': 451}