<commit_before>#ifndef KGLPAINTER_H
#define KGLPAINTER_H

#include <QObject>
#include <QPainter>
#include <GL/glew.h>
#include "kgltexture.h"
#include "kglpoint.h"
class KGLPainterPrivate;
class KGLPainter;
class KGLPainter : public QObject
{
public:
    KGLPainter(QObject * parent=0);
    ~KGLPainter();
    
        void setMode(int mode);
    void drawRect(const QRectF &rect);
    void drawRect(float x, float y, float w, float h);
    void drawLine(const QLineF &line, float lineWidth=1);
    void drawLine(float x1, float y1, float x2, float y2, float lineWidth=1);
    void drawPoint(const QPointF &point, float pointSize=1);
    void drawPoint(float x, float y);
    void drawCircle(const QPointF &center, float radius, float step=10);
    void drawCircle(float cx,float cy, float radius, float step = 10);


protected:
    void draw();

private:
    KGLPainterPrivate * d;
};

#endif // KGLPAINTER_H
<commit_msg>this class has a d-pointer and misses copy constructor, operator = so disable them<commit_after>#ifndef KGLPAINTER_H
#define KGLPAINTER_H

#include <QObject>
#include <QPainter>
#include <GL/glew.h>
#include "kgltexture.h"
#include "kglpoint.h"
class KGLPainterPrivate;
class KGLPainter;
class KGLPainter : public QObject
{
public:
    KGLPainter(QObject * parent=0);
    ~KGLPainter();
    
        void setMode(int mode);
    void drawRect(const QRectF &rect);
    void drawRect(float x, float y, float w, float h);
    void drawLine(const QLineF &line, float lineWidth=1);
    void drawLine(float x1, float y1, float x2, float y2, float lineWidth=1);
    void drawPoint(const QPointF &point, float pointSize=1);
    void drawPoint(float x, float y);
    void drawCircle(const QPointF &center, float radius, float step=10);
    void drawCircle(float cx,float cy, float radius, float step = 10);


protected:
    void draw();

private:
    Q_DISABLE_COPY(KGLPainter)
    KGLPainterPrivate * d;
};

#endif // KGLPAINTER_H

{'fraction_non_alphanumeric': 0.10648148148148148, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 4.2853260869565215, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2831897', 'n_tokens_mistral': 703, 'n_tokens_neox': 678, 'n_words': 203}