<commit_before>/*
 * ElementStructure.h
 *
 *  Created on: Apr 26, 2011
 *      Author: <NAME>
 */

#ifndef ELEMENTSTRUCTURE_H_
#define ELEMENTSTRUCTURE_H_

#include <QStringList>
#include "ParseUnit.h"
#include "Element.h"

namespace opl
{

class ElementStructure
{
protected:
    QString keyWord;
    QStringList argumentConfigurationKeywords;
    QStringList bodyConfigurationKeywords;
    QStringList scopedAccessConfigurationKeywords;

public:
    virtual Element* identify(const ParseUnit* unit) const = 0;

    const QString& getKeyword() const {return keyWord;}
    const QStringList& getArgumentConfigurationKeywords() const {return argumentConfigurationKeywords;}
    const QStringList& getBodyConfigurationKeywords() const {return bodyConfigurationKeywords;}
    const QStringList& getScopedAccessConfigurationKeywords() const {return scopedAccessConfigurationKeywords;}
};

}

#endif /* ELEMENTSTRUCTURE_H_ */
<commit_msg>opl: removed compiler warning (missing virtual destructor)<commit_after>/*
 * ElementStructure.h
 *
 *  Created on: Apr 26, 2011
 *      Author: <NAME>
 */

#ifndef ELEMENTSTRUCTURE_H_
#define ELEMENTSTRUCTURE_H_

#include <QStringList>
#include "ParseUnit.h"
#include "Element.h"

namespace opl
{

class ElementStructure
{
protected:
    QString keyWord;
    QStringList argumentConfigurationKeywords;
    QStringList bodyConfigurationKeywords;
    QStringList scopedAccessConfigurationKeywords;

public:
    virtual Element* identify(const ParseUnit* unit) const = 0;

    const QString& getKeyword() const {return keyWord;}
    const QStringList& getArgumentConfigurationKeywords() const {return argumentConfigurationKeywords;}
    const QStringList& getBodyConfigurationKeywords() const {return bodyConfigurationKeywords;}
    const QStringList& getScopedAccessConfigurationKeywords() const {return scopedAccessConfigurationKeywords;}
    virtual ~ElementStructure();
};

}

#endif /* ELEMENTSTRUCTURE_H_ */

{'fraction_non_alphanumeric': 0.08170606372045221, 'fraction_numerical': 0.007194244604316547, 'mean_word_length': 5.645051194539249, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5506233', 'n_tokens_mistral': 542, 'n_tokens_neox': 546, 'n_words': 140}