<commit_before><!doctype html>
<html>
    <head>
<!--        <script src="/bower_components/angular/angular.js"></script> -->
<!--        <script src="/bower_components/angular-youtube-embed/dist/angular-youtube-embed.js"></script> -->
<!--        <script src="/bower_components/angular-route/angular-route.js"></script> -->
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular-route.min.js"></script>
        <script src="/angular-youtube-embed.min.js"></script>
        <script type="text/javascript">
            var myApp = angular.module('myApp', ['ngRoute', 'youtube-embed']);

            myApp.controller('MainCtrl', function ($scope) {
              // have a video id
              $scope.actual = 'i9MHigUZKEM';
              $scope.videos = [
                {
                    'id': 1,
                    'videoId': '04DOp1F9Od4',
                    'title': 'JavaScript for Everybody',
                    'author': '<NAME>'
                },
                {
                    'id': 2,
                    'videoId': 'mfOh-J-9BY0',
                    'title': 'Plight Of The Butterfly: Object.observe()',
                    'author': '<NAME>'
                },
                {
                    'id': 3,
                    'videoId': 'v0TFmdO4ZP0',
                    'title': 'JavaScript Masterclass',
                    'author': '<NAME>'
                }
              ];
              $scope.chooseVideo = function(id) {
                debugger;
                $scope.actual = $scope.videos[id-1].videoId;
              };
            });

            myApp.config(['$routeProvider',
              function($routeProvider) {
                $routeProvider.
                when('/', {
                    templateUrl: 'templates/home.html',
                    controller: 'HomeController'
                }).
                when('/video/:videoId', {
                    templateUrl: 'templates/video.html',
                    controller: 'VideoController'
                }).
                otherwise({
                    redirectTo: '/'
                });
            }]);

            myApp.controller('VideoController', function($scope, $routeParams) {
                $scope.video = $scope.videos[$routeParams.videoId - 1];
            });

            myApp.controller('HomeController', function($scope) {
                $scope.message = "Welcome to watch.js!";
            });
        </script>
    </head>
    <body ng-app="myApp">
        <div ng-controller="MainCtrl">
            <ul ng-repeat="video in videos">
                <li><a href="#/video/{{ video.id }}" ng-click="chooseVideo">
                    {{ video.author }}: <i>{{ video.title }}</i>
                </a></li>
            </ul>
            <hr />
            <div ng-view=""></div>
        </div>
    </body>
</html>
<commit_msg>demo error fix<commit_after><!doctype html>
<html>
    <head>
<!--        <script src="/bower_components/angular/angular.js"></script> -->
<!--        <script src="/bower_components/angular-youtube-embed/dist/angular-youtube-embed.js"></script> -->
<!--        <script src="/bower_components/angular-route/angular-route.js"></script> -->
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular-route.min.js"></script>
        <script src="angular-youtube-embed.min.js"></script>
        <script type="text/javascript">
            var myApp = angular.module('myApp', ['ngRoute', 'youtube-embed']);

            myApp.controller('MainCtrl', function ($scope) {
              // have a video id
              $scope.actual = 'i9MHigUZKEM';
              $scope.videos = [
                {
                    'id': 1,
                    'videoId': '04DOp1F9Od4',
                    'title': 'JavaScript for Everybody',
                    'author': '<NAME>'
                },
                {
                    'id': 2,
                    'videoId': 'mfOh-J-9BY0',
                    'title': 'Plight Of The Butterfly: Object.observe()',
                    'author': '<NAME>'
                },
                {
                    'id': 3,
                    'videoId': 'v0TFmdO4ZP0',
                    'title': 'JavaScript Masterclass',
                    'author': '<NAME>'
                }
              ];
              $scope.chooseVideo = function(id) {
                debugger;
                $scope.actual = $scope.videos[id-1].videoId;
              };
            });

            myApp.config(['$routeProvider',
              function($routeProvider) {
                $routeProvider.
                when('/', {
                    templateUrl: 'templates/home.html',
                    controller: 'HomeController'
                }).
                when('/video/:videoId', {
                    templateUrl: 'templates/video.html',
                    controller: 'VideoController'
                }).
                otherwise({
                    redirectTo: '/'
                });
            }]);

            myApp.controller('VideoController', function($scope, $routeParams) {
                $scope.video = $scope.videos[$routeParams.videoId - 1];
            });

            myApp.controller('HomeController', function($scope) {
                $scope.message = "Welcome to watch.js!";
            });
        </script>
    </head>
    <body ng-app="myApp">
        <div ng-controller="MainCtrl">
            <ul ng-repeat="video in videos">
                <li><a href="#/video/{{ video.id }}" ng-click="chooseVideo">
                    {{ video.author }}: <i>{{ video.title }}</i>
                </a></li>
            </ul>
            <hr />
            <div ng-view=""></div>
        </div>
    </body>
</html>

{'fraction_non_alphanumeric': 0.16042154566744732, 'fraction_numerical': 0.007360321177651389, 'mean_word_length': 1.2872991583779647, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, 'https://': 4, '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': '6028173', 'n_tokens_mistral': 1683, 'n_tokens_neox': 1558, 'n_words': 246}