<commit_before>
        
   GO   
        



                                             /=+===============================+=\ 
                                            /  :                               :  \  
                                            )==:           TEMPLATES           :==(   
                                            \  :_______________________________:  /    
                                             \=+===============================+=/


import "text/template"            #Input is UTF-8 string + struct OBJ
                                  #Is a string, which can contain {{...}} markers, which are substituted
                                  #Can pipe with |

{{VAL}}                           #STR, CHAR, BOOL, NUM, nil
{{.}}                             #OBJ
{{.VARR}}                         #OBJ.VARR
{{$VAR[.VARR]}}                   #Uses variable
{{.FUNC [...]}}                   #OBJ.FUNC(...)
{{FUNC [...]}}                    #FUNC(...)

{{/* COMMENT */}}                 #

{{- ...}}                         
{{... -}}                         #Trim whitespaces on left|right of {{}}

{{if BOOL}} ... 
 [{{else [if BOOL]}} ...] {{end}} #
{{range OBJ|ARR}} ...             #Iterates, changing current context OBJ
 [{{else}} ...] {{end}}           #Else is if no iteration

{{with OBJ}} ... [{{else}} ...] {{end}}     #Changes context
                                  #Else is if OBJ is nothing

{{define "TEMPLATE"}} ... {{end}} #Defines template
{{template "TEMPLATE" [OBJ]}}     #Expands template (with OBJ set as context)
{{block "TEMPLATE" OBJ}}...{{end}}#Same as:
                                  #  {{define "TEMPLATE"}} ... {{end}}
                                  #  {{template "TEMPLATE" [OBJ]}}

{{... (VAL) ...}}                 #Go subexpression
<commit_msg>no commit message<commit_after>
      
   GO  
      



                                             /=+===============================+=\
                                            /  :                               :  \
                                            )==:           TEMPLATES           :==(
                                            \  :_______________________________:  /
                                             \=+===============================+=/


import "text/template"            #Input is UTF-8 string + struct OBJ
                                  #Is a string, which can contain {{...}} markers, which are substituted
                                  #Can pipe with |

{{VAL}}                           #STR, CHAR, BOOL, NUM, nil
{{.}}                             #OBJ
{{.VARR}}                         #OBJ.VARR
{{$VAR[.VARR]}}                   #Uses variable
{{.FUNC [...]}}                   #OBJ.FUNC(...)
{{FUNC [...]}}                    #FUNC(...)

{{/* COMMENT */}}                 #

{{- ...}}
{{... -}}                         #Trim whitespaces on left|right of {{}}

{{if BOOL}} ...
 [{{else [if BOOL]}} ...] {{end}} #
{{range OBJ|ARR}} ...             #Iterates, changing current context OBJ
 [{{else}} ...] {{end}}           #Else is if no iteration

{{with OBJ}} ... [{{else}} ...] {{end}}     #Changes context
                                  #Else is if OBJ is nothing

{{define "TEMPLATE"}} ... {{end}} #Defines template
{{template "TEMPLATE" [OBJ]}}     #Expands template (with OBJ set as context)
{{block "TEMPLATE" OBJ}}...{{end}}#Same as:
                                  #  {{define "TEMPLATE"}} ... {{end}}
                                  #  {{template "TEMPLATE" [OBJ]}}

{{... (VAL) ...}}                 #Go subexpression

{'fraction_non_alphanumeric': 0.32585049757000695, 'fraction_numerical': 0.0004628558204119417, 'mean_word_length': 1.2723449001051526, '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': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2239371', 'n_tokens_mistral': 3045, 'n_tokens_neox': 2967, 'n_words': 226}