<commit_before># Duck

## Presentation

Duck is what makes your project go from this

[IMAGE junk code]

to this

[IMAGE organized repo]

## Commands

`duck create *project-name*`

  Creates folders for your project including :

  `build`
  
    - all your app builds
  
  `config`
  
    - some configuration variables
  
  `doc`
  
    - documentations
  
  `junk`
  
    - for junk code
  
  `logs`
  
    - logs for compilation, unit test, versioning, etc
  
  `src`
  
    - contains your source code
  
  `compile`
  
    - compilation file
  
  `runtest`
  
    - unit test central
  
  `run`
  
    - run the last build of your project

##Organization

Your code is organized that way :

- `src/`

  - Your `main.cpp` : main file

  - `classes/` : contains all your classes organized in their *className* dir as

        <code>*className*.class.cpp</code>

          - class method implementation

       <code>*className*.class.h</code>

         - class implementation and method declaration

       <code>*className*.test.cpp</code>

          - class unit test

        <code>*className*.test.dependencies</code>

          - '*className*.test.cpp' compilation dependencies

        + *optional* `someOtherUnitTests.test.cpp` always with their `someOtherUnitTests.test.dependencies`

  - `config/` : contains 2 files

    `macros.h`

      - preprocessor macros

    `constants.h` -> preprocessor constants<commit_msg>Work in progress<commit_after># Duck

## Presentation

Duck is what makes your project go from this

[IMAGE junk code]

to this

[IMAGE organized repo]

## Commands

`duck create *project-name*`

  Creates folders for your project including :

  `build`
  
    - all your app builds
  
  `config`
  
    - some configuration variables
  
  `doc`
  
    - documentations
  
  `junk`
  
    - for junk code
  
  `logs`
  
    - logs for compilation, unit test, versioning, etc
  
  `src`
  
    - contains your source code
  
  `compile`
  
    - compilation file
  
  `runtest`
  
    - unit test central
  
  `run`
  
    - run the last build of your project

##Organization

Your code is organized that way :

- `src/`

  - Your `main.cpp` : main file

  - `classes/` : contains all your classes organized in their *className* dir as

      <code>*className*.class.cpp</code>

        - class method implementation

      <code>*className*.class.h</code>

        - class implementation and method declaration

      <code>*className*.test.cpp</code>

        - class unit test

      <code>*className*.test.dependencies</code>

        - '*className*.test.cpp' compilation dependencies

      + *optional* `someOtherUnitTests.test.cpp` always with their `someOtherUnitTests.test.dependencies`

  - `config/` : contains 2 files

    `macros.h`

      - preprocessor macros

    `constants.h` -> preprocessor constants
{'fraction_non_alphanumeric': 0.09691011235955056, 'fraction_numerical': 0.0007022471910112359, 'mean_word_length': 2.3517647058823528, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '273581', 'n_tokens_mistral': 899, 'n_tokens_neox': 856, 'n_words': 261}