<commit_before>;;____________________________________________________________________ 
;; File: cust-autoinsert.el
;;____________________________________________________________________ 
;;  
;; Author: <NAME> <<EMAIL>>
;; Update: 2013-06-17 11:44:38+0200
;; Revision: $Id$ 
;;
;; Copyright: 2013 (C) <NAME>
;;
;;--------------------------------------------------------------------

;; Set up autoinsert-mode first:
(load-library "autoinsert")
(add-hook 'find-file-hooks 'auto-insert)

;; Set up the mappings between file types and content to be inserted:
(setq
 auto-insert			t
 auto-insert-directory          "~/.env/templates/"
 auto-insert-alist
 (append
  ;; C++ source files
  '((
     ("\\.\\(cc\\|C\\|cpp\\|cxx\\)\\'" . "C++ Source File")
     nil
     '(setq class (file-name-sans-extension (buffer-name)))
"//_______________________________________________________________________
// File: " (buffer-name) "
//________________________________________________________________________
//
// Author: " (user-full-name)  " <" user-mail-address ">
// Update: " (format-time-string "%Y-%m-%d %T%z") "
// Revision: $Id" "$
// Description: " (read-string "Description: ") "
//
// Copyright (C) " (format-time-string "%Y") " " (user-full-name) "
//
//------------------------------------------------------------------------

//<<<< INCLUDES                                                       >>>>

#include \"" class ".h\"

//<<<< PRIVATE DEFINES                                                >>>>
//<<<< PRIVATE CONSTANTS                                              >>>>
//<<<< PRIVATE TYPES                                                  >>>>
//<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>
//<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>
//<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>
//<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>
//<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>
//<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>

" class "::" class " (" _ ") {
}")
    ;; C/C++ header files 
    (("\\.\\(h\\|hxx\\)\\'" . "C/C++ Header File")
     nil
     '(setq class (file-name-sans-extension (buffer-name)))
     '(setq guard (concat (upcase class) "_H"))
"#ifndef " guard "
#define " guard " 1
//_______________________________________________________________________
// File: " (buffer-name) "
//________________________________________________________________________
//
// Author: " (user-full-name)  " <" user-mail-address ">
// Update: " (format-time-string "%Y-%m-%d %T%z") "
// Revision: $Id" "$
// Description: " (read-string "Description: ") "
//
// Copyright (C) " (format-time-string "%Y") " " (user-full-name) "
//
//------------------------------------------------------------------------

//<<<< INCLUDES                                                       >>>>

//<<<< PUBLIC DEFINES                                                 >>>>
//<<<< PUBLIC CONSTANTS                                               >>>>
//<<<< PUBLIC TYPES                                                   >>>>
//<<<< PUBLIC VARIABLES                                               >>>>
//<<<< PUBLIC FUNCTIONS                                               >>>>
//<<<< CLASS DECLARATIONS                                             >>>>

class " class " {
public:
  " class "(" _ ");
  // implicit copy constructor
  // implicit assignment operator
  // implicit destructor
private:

};

//<<<< INLINE PUBLIC FUNCTIONS                                        >>>>
//<<<< INLINE MEMBER FUNCTIONS                                        >>>>

#endif // " guard "
"
)
    ;; Java:
    (("\\.\\(jni\\|java\\)\\'" . "Java Source File")
     nil
     '(setq class (file-name-sans-extension (buffer-name)))
"//____________________________________________________________________
// File: " (buffer-name) "
//____________________________________________________________________
//
// Author: " (user-full-name)  " <" user-mail-address ">
// Update: " (format-time-string "%Y-%m-%d %T%z") "
// Revision: $Id" "$
// Description: " (read-string "Description: ") "
//
// Copyright (C) " (format-time-string "%Y") " " (user-full-name) "
//
//--------------------------------------------------------------------
")

    ;; C main:<commit_msg>Stub out C++ member functions.<commit_after>;;____________________________________________________________________ 
;; File: cust-autoinsert.el
;;____________________________________________________________________ 
;;  
;; Author: <NAME> <<EMAIL>>
;; Update: 2013-06-17 11:44:38+0200
;; Revision: $Id$ 
;;
;; Copyright: 2013 (C) <NAME>
;;
;;--------------------------------------------------------------------

;; Set up autoinsert-mode first:
(load-library "autoinsert")
(add-hook 'find-file-hooks 'auto-insert)

;; Set up the mappings between file types and content to be inserted:
(setq
 auto-insert			t
 auto-insert-directory          "~/.env/templates/"
 auto-insert-alist
 (append
  ;; C++ source files
  '((
     ("\\.\\(cc\\|C\\|cpp\\|cxx\\)\\'" . "C++ Source File")
     nil
     '(setq class (file-name-sans-extension (buffer-name)))
"//_______________________________________________________________________
// File: " (buffer-name) "
//________________________________________________________________________
//
// Author: " (user-full-name)  " <" user-mail-address ">
// Update: " (format-time-string "%Y-%m-%d %T%z") "
// Revision: $Id" "$
// Description: " (read-string "Description: ") "
//
// Copyright (C) " (format-time-string "%Y") " " (user-full-name) "
//
//------------------------------------------------------------------------

//<<<< INCLUDES                                                       >>>>

#include \"" class ".h\"

//<<<< PRIVATE DEFINES                                                >>>>
//<<<< PRIVATE CONSTANTS                                              >>>>
//<<<< PRIVATE TYPES                                                  >>>>
//<<<< PRIVATE VARIABLE DEFINITIONS                                   >>>>
//<<<< PUBLIC VARIABLE DEFINITIONS                                    >>>>
//<<<< CLASS STRUCTURE INITIALIZATION                                 >>>>
//<<<< PRIVATE FUNCTION DEFINITIONS                                   >>>>
//<<<< PUBLIC FUNCTION DEFINITIONS                                    >>>>
//<<<< MEMBER FUNCTION DEFINITIONS                                    >>>>

" class "::" class " (" _ ") {
}")
    ;; C/C++ header files 
    (("\\.\\(h\\|hxx\\)\\'" . "C/C++ Header File")
     nil
     '(setq class (file-name-sans-extension (buffer-name)))
     '(setq guard (concat (upcase class) "_H"))
"#ifndef " guard "
#define " guard " 1
//_______________________________________________________________________
// File: " (buffer-name) "
//________________________________________________________________________
//
// Author: " (user-full-name)  " <" user-mail-address ">
// Update: " (format-time-string "%Y-%m-%d %T%z") "
// Revision: $Id" "$
// Description: " (read-string "Description: ") "
//
// Copyright (C) " (format-time-string "%Y") " " (user-full-name) "
//
//------------------------------------------------------------------------

//<<<< INCLUDES                                                       >>>>

//<<<< PUBLIC DEFINES                                                 >>>>
//<<<< PUBLIC CONSTANTS                                               >>>>
//<<<< PUBLIC TYPES                                                   >>>>
//<<<< PUBLIC VARIABLES                                               >>>>
//<<<< PUBLIC FUNCTIONS                                               >>>>
//<<<< CLASS DECLARATIONS                                             >>>>

class " class " {
public:
  " class "(" _ ");
  // virtual ~" class "();
  // implicit copy constructor
  // implicit assignment operator
  // implicit destructor
private:
  // " class "(const " class " & r);
  // " class " & operator=(const " class " & r);
};

//<<<< INLINE PUBLIC FUNCTIONS                                        >>>>
// inline std::ostream & operator<< (std::ostream & O, const " class " & rhs);

//<<<< INLINE MEMBER FUNCTIONS                                        >>>>

#endif // " guard "
"
)
    ;; Java:
    (("\\.\\(jni\\|java\\)\\'" . "Java Source File")
     nil
     '(setq class (file-name-sans-extension (buffer-name)))
"//____________________________________________________________________
// File: " (buffer-name) "
//____________________________________________________________________
//
// Author: " (user-full-name)  " <" user-mail-address ">
// Update: " (format-time-string "%Y-%m-%d %T%z") "
// Revision: $Id" "$
// Description: " (read-string "Description: ") "
//
// Copyright (C) " (format-time-string "%Y") " " (user-full-name) "
//
//--------------------------------------------------------------------
")

    ;; C main:
{'fraction_non_alphanumeric': 0.23258913695434855, 'fraction_numerical': 0.005109407975119404, 'mean_word_length': 1.4354882337030024, 'pattern_counts': {'":': 2, '<': 171, '<?xml version=': 0, '>': 169, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 60, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2065481', 'n_tokens_mistral': 2279, 'n_tokens_neox': 2179, 'n_words': 443}