<commit_before>---
title: "Infrastruture DevOps News"
layout: single
permalink: /news/
author_profile: true
custom_js:
- jquery-1.12.4.min
- jquery-dateFormat.min
---

<br>
<div id="result"></div>

<script>

var query = {
  "selector": {
    "timestamp": {
      "$gt": 0
    }
  },
  "fields": [
    "title",
    "link",
    "timestamp",
    "excerpt",
    "sentiment",
    "keywords",
    "concepts"
  ],
  "sort": [
    {
      "timestamp": "desc"
    }
  ]
};

$.ajax({
  type: "POST",
  url: "https://2619ca16-f337-42b9-b353-08009fcf31d7-bluemix.cloudant.com/blog_news/_find?limit=10",
  headers: {"Authorization": "Basic <KEY>},
  data: JSON.stringify( query ),
  contentType: "application/json; charset=utf-8",
  dataType: "json",
  success: function(data) {
      $( "#result" ).empty();
      $(data.docs).each(function (index, value) {
        $('<a>',{
          text: value.title,
          href: value.link
        }).appendTo( "#result" );
        $('<br>').appendTo("#result");
        $( "#result" ).append( value.excerpt );
        $('<br>').appendTo("#result");
        $( "#result" ).append( "<i>" +  DateFormat.format.prettyDate(new Date(1000*value.timestamp).getTime()) + "</i>" );
        $('<br>').appendTo("#result");
        $( "#result" ).append( value.sentiment.type );
        $('<br>').appendTo("#result");
      });
  }
});

</script><commit_msg>Added sentiment icon<commit_after>---
title: "Infrastruture DevOps News"
layout: single
permalink: /news/
author_profile: true
custom_js:
- jquery-1.12.4.min
- jquery-dateFormat.min
---

<br>
<div id="result"></div>

<script>

var query = {
  "selector": {
    "timestamp": {
      "$gt": 0
    }
  },
  "fields": [
    "title",
    "link",
    "timestamp",
    "excerpt",
    "sentiment",
    "keywords",
    "concepts"
  ],
  "sort": [
    {
      "timestamp": "desc"
    }
  ]
};

$.ajax({
  type: "POST",
  url: "https://2619ca16-f337-42b9-b353-08009fcf31d7-bluemix.cloudant.com/blog_news/_find?limit=10",
  headers: {"Authorization": "Basic <KEY>},
  data: JSON.stringify( query ),
  contentType: "application/json; charset=utf-8",
  dataType: "json",
  success: function(data) {
      $( "#result" ).empty();
      $(data.docs).each(function (index, value) {
        $('<a>',{
          text: value.title,
          href: value.link
        }).appendTo( "#result" );
        $('<br>').appendTo("#result");
        $( "#result" ).append( value.excerpt );
        $('<br>').appendTo("#result");
        $( "#result" ).append( "<i>" +  DateFormat.format.prettyDate(new Date(1000*value.timestamp).getTime()) + "</i>" );
        $('<br>').appendTo("#result");
        $("#result").append($('<img>',src: value.sentiment.type + '.jpg'}))
        $('<br>').appendTo("#result");
        $('<br>').appendTo("#result");
      });
  }
});

</script>
{'fraction_non_alphanumeric': 0.2330613692798865, 'fraction_numerical': 0.024831500532103583, 'mean_word_length': 2.7650200267022695, 'pattern_counts': {'":': 14, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 2, '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': '1018084', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1010, 'n_words': 168}