<commit_before>﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SoftUni Blog</title>
    <link rel="stylesheet" href="styles/style.css" />
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <script src="scripts/jquery-1.10.2.js"></script>
    <!--<script src="scripts/bootstrap.js"></script>-->
    <style>
        .windowsTable {
            display: block;
            overflow-x: hidden;
            overflow-y: auto;
            height: 106px;
            width: 405px;
        }

        .iosTable {
            display: block;
            -webkit-overflow-scrolling: touch;
            overflow: scroll;
            height: 106px;
            width: 405px;
        }
    </style>
</head>
<body>

    <div class="container">
        <main role="main" class="pb-3">

            <style>
                table {
                    font-family: arial, sans-serif;
                    border-collapse: collapse;
                    width: 100%;
                }

                td, th {
                    border: 1px solid #dddddd;
                    text-align: center;
                    padding: 8px;
                }

                tr:nth-child(even) {
                    background-color: #dddddd;
                }

                .vl {
                    border-left: 4px solid gray;
                    height: 800px;
                }
            </style>

            <div class="float-left text-center" style="width:530px;">
                <div class="text-center" style="border: 1px solid black;border-radius: 25px;padding: 10px;width: 260px;position: relative;margin: auto;">
                    <label>Продукт:</label>
                    <br>
                    <input type="text" id="product-name">

                    <br>
                    <br>

                    <label>Количество:</label>
                    <br>
                    <input id="br" type="checkbox" value="бр." onchange="onQuantityTypeChange(this, 'kg')">
                    <label for="br">бр.</label>
                    <input id="kg" type="checkbox" value="кг." onchange="onQuantityTypeChange(this, 'br')" checked="checked" style="margin-left:15px;">
                    <label for="kg">кг.</label>
                    <input type="number" id="product-quantity" min="0">

                    <br>
                    <br>

                    <label>Цена:</label>
                    <br>
                    <input type="number" id="product-price" min="0">

                    <br>
                    <br>
                    <hr>

                    <button class="btn btn-primary" onclick="addProduct()">Добави</button>
                </div>

                <br>

                <div style="margin-left:15px;">
                    <input type="text" id="myInput" onkeyup="searchFunction()" placeholder="Tърси име на продукт...">
                    <br>
                    <br>

                    <table id="products-table" width="300px">
                        <thead>
                            <tr>
                                <th>Продукт</th>
                                <th>Количество</th>
                                <th>Цена</th>
                            </tr>
                            <tr style=""><td>zele</td><td>23</td><td>17.5 лв.</td><td style="display: none;">брой</td></tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class=" float-left vl" style="margin-left:15px; margin-right:15px;"></div>

            <div class="float-left" style="width:530px;">
                <div style="text-align:center; width:530px;">
                    <h4> Калкулатор </h4>
                    <br>
                </div>

                <div class="text-center" style="border: 1px solid black; border-radius:25px; padding:10px; width: 230px;position: relative;margin: auto;">
                    <label>Продукт:</label>
                    <br>
                    <select id="added-products" style="height:30px; width:180px;">
                        <option value="zele">zele</option>
                    </select>

                    <br>
                    <br>

                    <label>Количество:</label>
                    <input type="number" id="product-quantity-for-calc" min="0">

                    <br>
                    <br>
                    <hr>

                    <button class="btn btn-primary" onclick="addProductForCalc()">Добави</button>
                    <button class="btn btn-danger" onclick="clearCalcTable()">Изчисти</button>
                </div>

                <br>
                <br>
                <br>

                <div style="margin-left:15px;">
                    <table>
                        <thead>
                            <tr>
                                <th>Продукт</th>
                                <th>Количество</th>
                                <th>Цена</th>
                            </tr>
                        </thead>
                        <tbody id="calculate-products-table">
                            <tr><td>zele</td><td>5</td><td>3.80 лв.</td></tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="2">Общо:</td>
                                <td id="calc-sum">3.80 лв.</td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>

            <script>
                var products = [];

                var Product = function (name, quantity, quantityType, price) {
                    return {
                        name: name,
                        quantity: quantity,
                        quantityType: quantityType,
                        price: price
                    };
                };

                function addProductForCalc() {
                    var table = document.getElementById("calculate-products-table");

                    var product = document.getElementById("added-products").value;
                    var quantity = document.getElementById("product-quantity-for-calc");

                    var fullProductInfo = products.filter(function (value, index, arr) {
                        return value.name == product;
                    })[0];

                    var formatedQuantity = "";<commit_msg>Index updated.<commit_after>﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SoftUni Blog</title>
    <link rel="stylesheet" href="styles/style.css" />
    <script src="scripts/jquery-1.10.2.js"></script>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>
    <!--<script src="scripts/bootstrap.js"></script>-->
    <style>
        .windowsTable {
            display: block;
            overflow-x: hidden;
            overflow-y: auto;
            height: 106px;
            width: 405px;
        }

        .iosTable {
            display: block;
            -webkit-overflow-scrolling: touch;
            overflow: scroll;
            height: 106px;
            width: 405px;
        }
    </style>
</head>
<body>

    <div class="container">
        <main role="main" class="pb-3">

            <style>
                table {
                    font-family: arial, sans-serif;
                    border-collapse: collapse;
                    width: 100%;
                }

                td, th {
                    border: 1px solid #dddddd;
                    text-align: center;
                    padding: 8px;
                }

                tr:nth-child(even) {
                    background-color: #dddddd;
                }

                .vl {
                    border-left: 4px solid gray;
                    height: 800px;
                }
            </style>

            <div class="float-left text-center" style="width:530px;">
                <div class="text-center" style="border: 1px solid black;border-radius: 25px;padding: 10px;width: 260px;position: relative;margin: auto;">
                    <label>Продукт:</label>
                    <br>
                    <input type="text" id="product-name">

                    <br>
                    <br>

                    <label>Количество:</label>
                    <br>
                    <input id="br" type="checkbox" value="бр." onchange="onQuantityTypeChange(this, 'kg')">
                    <label for="br">бр.</label>
                    <input id="kg" type="checkbox" value="кг." onchange="onQuantityTypeChange(this, 'br')" checked="checked" style="margin-left:15px;">
                    <label for="kg">кг.</label>
                    <input type="number" id="product-quantity" min="0">

                    <br>
                    <br>

                    <label>Цена:</label>
                    <br>
                    <input type="number" id="product-price" min="0">

                    <br>
                    <br>
                    <hr>

                    <button class="btn btn-primary" onclick="addProduct()">Добави</button>
                </div>

                <br>

                <div style="margin-left:15px;">
                    <input type="text" id="myInput" onkeyup="searchFunction()" placeholder="Tърси име на продукт...">
                    <br>
                    <br>

                    <table id="products-table" width="300px">
                        <thead>
                            <tr>
                                <th>Продукт</th>
                                <th>Количество</th>
                                <th>Цена</th>
                            </tr>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class=" float-left vl" style="margin-left:15px; margin-right:15px;"></div>

            <div class="float-left" style="width:530px;">   
                <div style="text-align:center; width:530px;">
                    <h4> Калкулатор </h4>
                    <br>
                </div>

                <div class="text-center" style="border: 1px solid black; border-radius:25px; padding:10px; width: 230px;position: relative;margin: auto;">
                    <label>Продукт:</label>
                    <br>
                    <select id="added-products" style="height:30px; width:180px;">
                    </select>

                    <br>
                    <br>

                    <label>Количество:</label>
                    <input type="number" id="product-quantity-for-calc" min="0">

                    <br>
                    <br>
                    <hr>

                    <button class="btn btn-primary" onclick="addProductForCalc()">Добави</button>
                    <button class="btn btn-danger" onclick="clearCalcTable()">Изчисти</button>
                </div>

                <br>
                <br>
                <br>

                <div style="margin-left:15px;">
                    <table>
                        <thead>
                            <tr>
                                <th>Продукт</th>
                                <th>Количество</th>
                                <th>Цена</th>
                            </tr>
                        </thead>
                        <tbody id="calculate-products-table">
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="2">Общо:</td>
                                <td id="calc-sum">0</td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>

            <script>
                var products = [];

                var Product = function (name, quantity, quantityType, price) {
                    return {
                        name: name,
                        quantity: quantity,
                        quantityType: quantityType,
                        price: price
                    };
                };

                function addProductForCalc() {
                    var table = document.getElementById("calculate-products-table");

                    var product = document.getElementById("added-products").value;
                    var quantity = document.getElementById("product-quantity-for-calc");

                    var fullProductInfo = products.filter(function (value, index, arr) {
                        return value.name == product;
                    })[0];

                    var formatedQuantity = "";
{'fraction_non_alphanumeric': 0.12796992481203007, 'fraction_numerical': 0.013458646616541354, 'mean_word_length': 1.0412829957028853, 'pattern_counts': {'":': 0, '<': 287, '<?xml version=': 0, '>': 287, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1003256', 'n_tokens_mistral': 3706, 'n_tokens_neox': 3289, 'n_words': 611}