<commit_before>
#pragma once

#include <vector>

namespace gmsh
{
struct ElementData
{
    ElementData(int numberOfNodes, int numberOfTags, int typeId, int id);

    int maxProcessId() const;

    bool isOwnedByProcess(int processId) const;

    bool isSharedByMultipleProcesses() const { return tags.size() > 2 && tags[2] > 1; }

    void convertToZeroBasedIndexing();

    std::vector<int> tags; // Position in tag array
                           // 0 - Physical id
                           // 1 - Geometrical id
                           // 2 - Number of processes element belongs to
                           // 3 - If tags[2] > 1 then owner
                           // 4... - Ghost element processes (shared by processes)
    std::vector<int> nodalConnectivity;
    int typeId;
    int id;
};

inline void ElementData::convertToZeroBasedIndexing()
{
    for (auto& node : nodalConnectivity) --node;
    --id;
}
}<commit_msg>Added docstring<commit_after>
#pragma once

#include <vector>

namespace gmsh
{
struct ElementData
{
    ElementData(int numberOfNodes, int numberOfTags, int typeId, int id);

    int maxProcessId() const;

    bool isOwnedByProcess(int processId) const;

    /** @return true if this element is shared across multiple paritions */
    bool isSharedByMultipleProcesses() const { return tags.size() > 2 && tags[2] > 1; }

    void convertToZeroBasedIndexing();

    std::vector<int> tags; // Position in tag array
                           // 0 - Physical id
                           // 1 - Geometrical id
                           // 2 - Number of processes element belongs to
                           // 3 - If tags[2] > 1 then owner
                           // 4... - Ghost element processes (shared by processes)
    std::vector<int> nodalConnectivity;
    int typeId;
    int id;
};

inline void ElementData::convertToZeroBasedIndexing()
{
    for (auto& node : nodalConnectivity) --node;
    --id;
}
}
{'fraction_non_alphanumeric': 0.09948717948717949, 'fraction_numerical': 0.010256410256410256, 'mean_word_length': 1.9923312883435582, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6676310', 'n_tokens_mistral': 563, 'n_tokens_neox': 531, 'n_words': 173}