<commit_before>#ifndef BALL_H
#define BALL_H

#include <QQuickItem>
#include "types/visibleitem.h"

class Ball : public VisibleItem
{
    Q_OBJECT

    Q_PROPERTY(qreal angle READ angle WRITE setAngle NOTIFY angleChanged)
    Q_PROPERTY(qreal time READ time WRITE setTime NOTIFY timeChanged)
    Q_PROPERTY(int speed READ speed CONSTANT)
    Q_PROPERTY(bool isAvailable READ isAvailable WRITE setIsAvailable NOTIFY isAvailableChanged)
    Q_PROPERTY(int stepsOfThrow READ stepsOfThrow WRITE setStepsOfThrow NOTIFY stepsOfThrowChanged)
    Q_PROPERTY(QUrl imageURL READ imageURL NOTIFY imageURLChanged)

    private:
        /*----Informace o hodu---*/
        qreal p_angle;
        qreal p_time;
        int p_speed;
        /*-----------------------*/

        /*--Aktuální stav míče---*/
        bool p_isAvailable;
        int p_stepsOfThrow;
        /*-----------------------*/

        /*-----Grafika míče------*/
        QUrl p_imageURL;
        /*-----------------------*/

        /*--------Metody---------*/
        void enable();
        /*-----------------------*/

    public:
        explicit Ball(QQuickItem *parent = 0);

        Q_INVOKABLE void disable();<commit_msg>init commit<commit_after>#ifndef BALL_H
#define BALL_H

#include <QQuickItem>
#include "types/visibleitem.h"

class Ball : public VisibleItem
{
    Q_OBJECT

    Q_PROPERTY(qreal angle READ angle WRITE setAngle NOTIFY angleChanged)
    Q_PROPERTY(qreal time READ time WRITE setTime NOTIFY timeChanged)
    Q_PROPERTY(int speed READ speed CONSTANT)
    Q_PROPERTY(bool isAvailable READ isAvailable WRITE setIsAvailable NOTIFY isAvailableChanged)
    Q_PROPERTY(int stepsOfThrow READ stepsOfThrow WRITE setStepsOfThrow NOTIFY stepsOfThrowChanged)
    //Q_PROPERTY(QUrl imageURL READ imageURL NOTIFY imageURLChanged)
//int
    private:
        /*----Informace o hodu---*/
        qreal p_angle;
        qreal p_time;
        int p_speed;
        /*-----------------------*/

        /*--Aktuální stav míče---*/
        bool p_isAvailable;
        int p_stepsOfThrow;
        /*-----------------------*/

        /*-----Grafika míče------*/
        QUrl p_imageURL;
        /*-----------------------*/

        /*--------Metody---------*/
        void enable();
        /*-----------------------*/

    public:
        explicit Ball(QQuickItem *parent = 0);

        Q_INVOKABLE void disable();
{'fraction_non_alphanumeric': 0.17852631578947367, 'fraction_numerical': 0.0008421052631578948, 'mean_word_length': 1.7757009345794392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6497334', 'n_tokens_mistral': 693, 'n_tokens_neox': 695, 'n_words': 177}