<commit_before>(function () {
  'use strict';

  angular.module('BlurAdmin.pages.dashboard.home')
  .filter('split', function() {
       return function(input, splitChar, splitIndex) {
           // do some bounds checking here to ensure it has that index
           return input.split(splitChar)[splitIndex];
       }
   })
  .controller('CurrentInternCtrl', CurrentInternCtrl);


  /** @ngInject */
  function CurrentInternCtrl($http) {

    var container = document.getElementById('visualization');

  // Create a DataSet (allows two way data-binding)
  var items = new vis.DataSet([
    {id: 1, content: 'item 1', start: '2013-04-20'},
    {id: 2, content: 'item 2', start: '2013-04-14'},
    {id: 3, content: 'item 3', start: '2013-04-18'},
    {id: 4, content: 'item 4', start: '2013-04-16', end: '2013-04-19'},
    {id: 5, content: 'item 5', start: '2013-04-25'},
    {id: 6, content: 'item 6', start: '2013-04-27'}
  ]);

  // Configuration for the Timeline
  var options = {};

  // Create a Timeline
  var timeline = new vis.Timeline(container, items, options);

    var vm = this;
    vm.navigationCollapsed = true;
    vm.showCompose = function(subject, to , text){
      composeModal.open({
        subject : subject,
        to: to,
        text: text
      })
    };





    $http.get("https://58f6jw3pl0.execute-api.us-east-1.amazonaws.com/dev/")
    .then(function(response) {
        vm.tabs = response.data;

        console.log(vm.tabs);

    });

  }


})();<commit_msg>time line is working now<commit_after>(function () {
  'use strict';

  angular.module('BlurAdmin.pages.dashboard.home')
  .filter('split', function() {
       return function(input, splitChar, splitIndex) {
           // do some bounds checking here to ensure it has that index
           return input.split(splitChar)[splitIndex];
       }
   })
  .controller('CurrentInternCtrl', CurrentInternCtrl);


  /** @ngInject */
  function CurrentInternCtrl($http) {

    var vm = this;
    vm.navigationCollapsed = true;
    vm.showCompose = function(subject, to , text){
      composeModal.open({
        subject : subject,
        to: to,
        text: text
      })
    };






    $http.get("https://58f6jw3pl0.execute-api.us-east-1.amazonaws.com/dev/")
    .then(function(response) {
        vm.tabs = response.data;
        internsTimeline(vm.tabs);

    });

  };

  function internsTimeline(interns){
    //console.log(interns);

    var container = document.getElementById('visualization');
    var data=[];
    angular.forEach(interns.records, function(item){
        data.push({id: item.id, content: item.firstname, start: item.startdate, end:item.enddate});
                   console.log(item.firstname);
               })


   // Create a DataSet (allows two way data-binding)
   var items = new vis.DataSet(data);

   // Configuration for the Timeline
   var options = {};

   // Create a Timeline
   var timeline = new vis.Timeline(container, items, options);


  };


})();
{'fraction_non_alphanumeric': 0.15072171869754952, 'fraction_numerical': 0.02685464921114468, 'mean_word_length': 2.6519607843137254, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7310938', 'n_tokens_mistral': 1006, 'n_tokens_neox': 920, 'n_words': 219}