<commit_before>---
layout: page
title: Test
---



<input id="button" type="submit" value="Go" />

<script>
    $(function() {
//            $.support.cors = true;

        $('#button').click(function() {
            
            
//            $.ajax({
//                url: 'https://api.mongolab.com/api/1/databases/anahata/collections/test?apiKey=<KEY>',
//                data: JSON.stringify({"name" : "Foo" , "needRide" : true}),
//                type: "POST",
//                contentType: "application/json",
//                success: function(data) {
//                    console.log(data);
//                },
//                error: function(error) {
//                    console.log(error);
//                }
//            });
            
            $.ajax({
//                url: 'https://api.mongolab.com/api/1/databases/anahata/collections/test?apiKey=<KEY>',
                url: 'http://nodejs-marushkevych.rhcloud.com/comments',
                type: 'GET',
                success: function(data) {
                    console.log(data);
                },
                error: function(error) {
                    console.log(error);
                }
            });
            
            
        });
    });
</script><commit_msg>using secure api<commit_after>---
layout: page
title: Test
---



<input id="button" type="submit" value="Go" />

<script>
    $(function() {
//            $.support.cors = true;

        $('#button').click(function() {
            
            
//            $.ajax({
//                url: 'https://api.mongolab.com/api/1/databases/anahata/collections/test?apiKey=<KEY>',
//                data: JSON.stringify({"name" : "Foo" , "needRide" : true}),
//                type: "POST",
//                contentType: "application/json",
//                success: function(data) {
//                    console.log(data);
//                },
//                error: function(error) {
//                    console.log(error);
//                }
//            });
            $.support.cors = true;
            $.ajax({
//                url: 'https://api.mongolab.com/api/1/databases/anahata/collections/test?apiKey=<KEY>',
                url: 'https://nodejs-marushkevych.rhcloud.com/comments',
                type: 'GET',
                success: function(data) {
                    console.log('success:', data);
                },
                error: function(req, status, err) {
                    console.log('error:', req, status, err);

                }
            });
            
            
        });
    });
</script>
{'fraction_non_alphanumeric': 0.16953693073096057, 'fraction_numerical': 0.0015308075009567547, 'mean_word_length': 1.111470113085622, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 5, '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': '4454200', 'n_tokens_mistral': 755, 'n_tokens_neox': 713, 'n_words': 101}