<commit_before>    <div class="hidden time">    
    <?php
        date_default_timezone_set('Asia/Kolkata');
        echo date('Y-m-d H:i:s')."\n";
    ?>
    </div>
    <table class="view">
    <?php
        include_once('db.php');

        $sql_cryptocurrencies = "SELECT name, current FROM cryptocurrencies;";
        $sql_commodities = "SELECT name, current FROM commodities;";
        $sql_stocks = "SELECT name, sector, current, difference, percentage FROM stocks;";

    ?>
            <tr class="sector"><td colspan="4" class="sector">Cryptocurrencies</td></tr> 
    <?php
        $res = mysqli_query($db, $sql_cryptocurrencies);
        while($ar = mysqli_fetch_array($res)) {
            $name = $ar['name'];
            $current = $ar['current'];
            $str = '<tr class="stock"><td class="name">'.$name.'</td><td class="current" colspan="3">'.$current.'</td></tr>';
            echo $str."\n";
        }
    ?>

            <tr class="sector"><td colspan="4" class="sector">Commodities</td></tr>
    <?php
        $res = mysqli_query($db, $sql_commodities);
        while($ar = mysqli_fetch_array($res)) {
            $name = $ar['name'];
            $current = $ar['current'];
            $str = '<tr class="stock"><td class="name">'.$name.'</td><td class="current" colspan="3">'.$current.'</td></tr>';
            echo $str."\n";
        }
    ?>
            
            <tr class="sector"><td colspan="4" class="sector">Securities</td></tr>
    <?php
        $res = mysqli_query($db, $sql_commodities);
        while($ar = mysqli_fetch_array($res)) {
            $name = $ar['name'];
            $sector = $ar['sector'];
            $current = $ar['current'];
            $difference = $ar['difference'];
            $percentage = $ar['percentage'];
            $str = '<tr class="stock"><td class="name">'.$name.'<br><small>'.$sector.'</small></td><td class="current">'.$current.'</td><td class="difference"><span class="not_inverted triangle">&#9650;</span>'.$difference.'</td><td class="percentage high">'.$percentage.'</td></tr>';<commit_msg>Error fix sql_stocks typo in stockstable.php<commit_after>    <div class="hidden time">    
    <?php
        date_default_timezone_set('Asia/Kolkata');
        echo date('Y-m-d H:i:s')."\n";
    ?>
    </div>
    <table class="view">
    <?php
        include_once('db.php');

        $sql_cryptocurrencies = "SELECT name, current FROM cryptocurrencies;";
        $sql_commodities = "SELECT name, current FROM commodities;";
        $sql_stocks = "SELECT name, sector, current, difference, percentage FROM stocks;";

    ?>
            <tr class="sector"><td colspan="4" class="sector">Cryptocurrencies</td></tr> 
    <?php
        $res = mysqli_query($db, $sql_cryptocurrencies);
        while($ar = mysqli_fetch_array($res)) {
            $name = $ar['name'];
            $current = $ar['current'];
            $str = '<tr class="stock"><td class="name">'.$name.'</td><td class="current" colspan="3">'.$current.'</td></tr>';
            echo $str."\n";
        }
    ?>

            <tr class="sector"><td colspan="4" class="sector">Commodities</td></tr>
    <?php
        $res = mysqli_query($db, $sql_commodities);
        while($ar = mysqli_fetch_array($res)) {
            $name = $ar['name'];
            $current = $ar['current'];
            $str = '<tr class="stock"><td class="name">'.$name.'</td><td class="current" colspan="3">'.$current.'</td></tr>';
            echo $str."\n";
        }
    ?>
            
            <tr class="sector"><td colspan="4" class="sector">Securities</td></tr>
    <?php
        $res = mysqli_query($db, $sql_stocks);
        while($ar = mysqli_fetch_array($res)) {
            $name = $ar['name'];
            $sector = $ar['sector'];
            $current = $ar['current'];
            $difference = $ar['difference'];
            $percentage = $ar['percentage'];
            $str = '<tr class="stock"><td class="name">'.$name.'<br><small>'.$sector.'</small></td><td class="current">'.$current.'</td><td class="difference"><span class="not_inverted triangle">&#9650;</span>'.$difference.'</td><td class="percentage high">'.$percentage.'</td></tr>';
{'fraction_non_alphanumeric': 0.2144572526416907, 'fraction_numerical': 0.004322766570605188, 'mean_word_length': 2.6312118570183087, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 95, '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': '1252403', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1285, 'n_words': 222}