<commit_before><?php
/**
 * Created by PhpStorm.
 * User: Julián
 * Date: 04/10/2014
 * Time: 05:30 PM
 */

class CommentQuerys {
    public final static function getCommentList($connection) //Lista de Usuarios
    {

        try {
            $comment = $connection->query ("select * from COMMENT");
        } catch (Exception $e) {
            echo ($e);
        }

        return $comment;
    }

    public final static function addComment($connection, Comment $comment)
    {
        try {

            $commentQuery = "insert into COMMENT (text, id_comment_status, id_event, stars) values ('$comment->getText()' , '$comment->getIdCommentStatus()', '$comment->getIdEvent()', '$comment->getStars()' )";
            mysqli_query($connection, $commentQuery);

        } catch (Exception $e) {
            echo ($e);
        }
    }

    public final static function updateComment($connection, $id, $comment)
    {
        try {

            $commentQuery = "update COMMENT set 'text'=$comment->getText(), 'id_comment_status'=$comment->getIdCommentStatus, 'id_event'=$comment->getIdEvent(), 'stars'=$comment->getStars() where 'id'=$id";
            mysqli_query($connection, $commentQuery);

        } catch (Exception $e) {
            echo ($e);
        }
    }

    public final static function deleteComment($connection, $id)
    {

        try {

            $commentQuery = "update COMMENT set active = '0' where id = '$id'";
            mysqli_query($connection, $commentQuery);
<commit_msg>Querys de comment fix update<commit_after><?php
/**
 * Created by PhpStorm.
 * User: Julián
 * Date: 04/10/2014
 * Time: 05:30 PM
 */

class CommentQuerys {
    public final static function getCommentList($connection) //Lista de Usuarios
    {

        try {
            $comment = $connection->query ("select * from COMMENT");
        } catch (Exception $e) {
            echo ($e);
        }

        return $comment;
    }

    public final static function addComment($connection, Comment $comment)
    {
        try {

            $commentQuery = "insert into COMMENT (text, id_comment_status, id_event, stars) values ('$comment->getText()' , '$comment->getIdCommentStatus()', '$comment->getIdEvent()', '$comment->getStars()' )";
            mysqli_query($connection, $commentQuery);

        } catch (Exception $e) {
            echo ($e);
        }
    }

    public final static function updateComment($connection, $comment)
    {
        try {

            $commentQuery = "update COMMENT set 'text'=$comment->getText(), 'id_comment_status'=$comment->getIdCommentStatus, 'id_event'=$comment->getIdEvent(), 'stars'=$comment->getStars() where 'id'=$comment->getId()";
            mysqli_query($connection, $commentQuery);

        } catch (Exception $e) {
            echo ($e);
        }
    }

    public final static function deleteComment($connection, $id)
    {

        try {

            $commentQuery = "update COMMENT set active = '0' where id = '$id'";
            mysqli_query($connection, $commentQuery);

{'fraction_non_alphanumeric': 0.14162806088682992, 'fraction_numerical': 0.008603573792190603, 'mean_word_length': 2.527421236872812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '648068', 'n_tokens_mistral': 891, 'n_tokens_neox': 861, 'n_words': 213}