<commit_before>/**
 * Created by Alessandro on 19/11/2016.
 */
angular
  .module('app', [])
  .controller('appCtrl', ['$scope', '$http', '$window', function appCtrl($scope, $http, $window) {
      var imgData = [];
      $window.fbAsyncInit = function() {
          FB.init({
              appId: '1151594398249523',
              status: true,
              cookie: true,
              xfbml: true,
              version: 'v2.4'
          });

          FB.AppEvents.logPageView();
          FB.getLoginStatus(function(response) {
              if (response.status === 'connected') {
                  console.log('Logged in.');
                  FB.api(
                          '/1283053661745309/photos?fields=link,name,images',
                          function(response) {
                              if (response && !response.error) {
                                  response.data.forEach(function(element){
                                      imgData.push(element.images[0].source);
                                  });
                              } else {
                                  console.log("nothing");
                              }
                          }
                  );
              }
              else {
                  console.log("not logged in");
                  FB.login();
              }<commit_msg>Supply image id with the message<commit_after>/**
 * Created by Alessandro on 19/11/2016.
 */
angular
  .module('app', [])
  .controller('appCtrl', ['$scope', '$http', '$window', function appCtrl($scope, $http, $window) {
      var imgData = [];
      $window.fbAsyncInit = function() {
          FB.init({
              appId: '1151594398249523',
              status: true,
              cookie: true,
              xfbml: true,
              version: 'v2.4'
          });

          FB.AppEvents.logPageView();
          FB.getLoginStatus(function(response) {
              if (response.status === 'connected') {
                  console.log('Logged in.');
                  FB.api(
                          '/1283053661745309/photos?fields=link,name,images',
                          function(response) {
                              if (response && !response.error) {
                                  response.data.forEach(function(element){
                                      imgData.push({src: element.images[0].source, id: element.id});
                                  });
                              } else {
                                  console.log("nothing");
                              }
                          }
                  );
              }
              else {
                  console.log("not logged in");
                  FB.login();
              }
{'fraction_non_alphanumeric': 0.12191582002902758, 'fraction_numerical': 0.031204644412191583, 'mean_word_length': 0.9920520231213873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3049626', 'n_tokens_mistral': 735, 'n_tokens_neox': 651, 'n_words': 114}