<commit_before>============
Coding Style
============

Like all development teams, the `Dataverse developers at IQSS <https://dataverse.org/about>`_ have their habits and styles when it comes to writing code. Let's attempt to get on the same page. :)

.. contents:: |toctitle|
	:local:

Java
----

Formatting Code
~~~~~~~~~~~~~~~

Tabs vs. Spaces
^^^^^^^^^^^^^^^

Don't use tabs. Use spaces.

Braces Placement
^^^^^^^^^^^^^^^^

Place curly braces according to the style below, which is an example you can see from Netbeans.

.. code-block:: java

    public class ClassA {

        private String letters[] = new String[]{"A", "B"};

        public int meth(String text, int number) {
            BinaryOperator plus = (a, b) -> {
                return a + b;
            };
            if (text != null) {<commit_msg>specify 4 spaces for Java #5075<commit_after>============
Coding Style
============

Like all development teams, the `Dataverse developers at IQSS <https://dataverse.org/about>`_ have their habits and styles when it comes to writing code. Let's attempt to get on the same page. :)

.. contents:: |toctitle|
	:local:

Java
----

Formatting Code
~~~~~~~~~~~~~~~

Tabs vs. Spaces
^^^^^^^^^^^^^^^

Don't use tabs. Use 4 spaces.

Braces Placement
^^^^^^^^^^^^^^^^

Place curly braces according to the style below, which is an example you can see from Netbeans.

.. code-block:: java

    public class ClassA {

        private String letters[] = new String[]{"A", "B"};

        public int meth(String text, int number) {
            BinaryOperator plus = (a, b) -> {
                return a + b;
            };
            if (text != null) {
{'fraction_non_alphanumeric': 0.17551266586248493, 'fraction_numerical': 0.0036188178528347406, 'mean_word_length': 2.8137931034482757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3828817', 'n_tokens_mistral': 494, 'n_tokens_neox': 463, 'n_words': 190}