<commit_before>mediaPlayer.constant('YT_event', {
  STOP:            0,
  PLAY:            1,
  PAUSE:           2
});

mediaPlayer.directive('youtube', function($window, YT_event,$sce) {
  return {
    restrict: "E",

    scope: {
      height: "@",
      width: "@",
      videoid: "=",
      controls : "@",
      autoplay : "@",
      loop : "@",
      playlist: "@"
    },

    template: '<iframe id="ytplayer" type="text/html" width="{{width}}" height="{{height}}" ng-src="{{videoUrl}}" frameborder="0"/>',

    link: function(scope, element, attrs, $rootScope) {
        console.log(scope.videoid);
        scope.videoUrl = $sce.trustAsResourceUrl("http://www.youtube.com/embed/"+scope.videoid+"?controls="+scope.controls+"&autoplay="+scope.autoplay+"&loop="+scope.loop+"&playlist="+scope.playlist+"&rel=0&showinfo=0");
    }
  };
});<commit_msg><vinod,padma> Fixed bug,removing http connection in youtube url<commit_after>mediaPlayer.constant('YT_event', {
  STOP:            0,
  PLAY:            1,
  PAUSE:           2
});

mediaPlayer.directive('youtube', function($window, YT_event,$sce) {
  return {
    restrict: "E",

    scope: {
      height: "@",
      width: "@",
      videoid: "=",
      controls : "@",
      autoplay : "@",
      loop : "@",
      playlist: "@"
    },

    template: '<iframe id="ytplayer" type="text/html" width="{{width}}" height="{{height}}" ng-src="{{videoUrl}}" frameborder="0"/>',

    link: function(scope, element, attrs, $rootScope) {
        console.log(scope.videoid);
        scope.videoUrl = $sce.trustAsResourceUrl("www.youtube.com/embed/"+scope.videoid+"?controls="+scope.controls+"&autoplay="+scope.autoplay+"&loop="+scope.loop+"&playlist="+scope.playlist+"&rel=0&showinfo=0");
    }
  };
});
{'fraction_non_alphanumeric': 0.20983419096626643, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 3.206730769230769, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '379637', 'n_tokens_mistral': 603, 'n_tokens_neox': 599, 'n_words': 81}