<commit_before><?php include("header.php"); ?>

    <!-- page content -->
    <div class="right_col" role="main">

        <div class="">

            <div class="clearfix"></div>

            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">

                            <div class="col-md-12">

                                <div id="button">
                                    <button class="btn btn-primary" onclick="getLocation()">Find a local ATM</button>
                                </div>

                                <p id="demo"></p>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>

    </div>
    <!-- /page content -->
    </div>


    <script>
        var x = document.getElementById("demo");
        var y = document.getElementById("button");

        function getLocation() {
            x.innerHTML = "<i class='fa fa-refresh fa-spin'></i>";
            if (navigator.geolocation) {
                navigator.geolocation.getCurrentPosition(showPosition);
            } else {
                x.innerHTML = "Geolocation is not supported by this browser.";
            }
            // Remove button
            y.innerHTML = "";
        }

        function showPosition(position) {
            $.get("http://api.reimaginebanking.com/atms?lat=" + position.coords.latitude + "&lng=" + position.coords.longitude + "&rad=25&key=c50e2ab66da1e818d92a5884067a17ef", function (data, status) {
                alert("Data: " + data + "\nStatus: " + status);
                x.innerHTML = "<h2>ATMs Near Me</h2>";
                for (var i = 0; i < data.length; i++) {
                    var obj = data[i];
                    x.innerHTML += "<br><strong>" + data[i]['name'] + "</strong><br>";
                }
            });
        }
    </script>

    <?php include("footer.php"); ?><commit_msg>Print out atms<commit_after><?php include("header.php"); ?>

    <!-- page content -->
    <div class="right_col" role="main">

        <div class="">

            <div class="clearfix"></div>

            <div class="row">
                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">
                        <div class="x_content">

                            <div class="col-md-12">

                                <div id="button">
                                    <button class="btn btn-primary" onclick="getLocation()">Find a local ATM</button>
                                </div>

                                <p id="demo"></p>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>

    </div>
    <!-- /page content -->
    </div>


    <script>
        var x = document.getElementById("demo");
        var y = document.getElementById("button");

        function getLocation() {
            x.innerHTML = "<i class='fa fa-refresh fa-spin'></i>";
            if (navigator.geolocation) {
                navigator.geolocation.getCurrentPosition(showPosition);
            } else {
                x.innerHTML = "Geolocation is not supported by this browser.";
            }
            // Remove button
            y.innerHTML = "";
        }

        function showPosition(position) {
            $.get("http://api.reimaginebanking.com/atms?lat=" + position.coords.latitude + "&lng=" + position.coords.longitude + "&rad=25&key=c50e2ab66da1e818d92a5884067a17ef", function (data, status) {
                alert("Data: " + data + "\nStatus: " + status);
                x.innerHTML = "<h2>ATMs Near Me</h2>";
                for (var i = 0; i < data.data.length; i++) {
                    var obj = data.data[i];
                    x.innerHTML += "<br><strong>" + obj['name'] + "</strong><br>";
                }
            });
        }
    </script>

    <?php include("footer.php"); ?>
{'fraction_non_alphanumeric': 0.15548558973116977, 'fraction_numerical': 0.015984499878905305, 'mean_word_length': 1.263013698630137, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 81, 'https://': 0, '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': '4846706', 'n_tokens_mistral': 1202, 'n_tokens_neox': 1103, 'n_words': 224}