<commit_before>define([
  'angular',
  'app/core/config',
  'lodash'
],
function (angular, config, _) {
  'use strict';

  var module = angular.module('grafana.routes');

  module.config(function($routeProvider) {
    $routeProvider
      .when('/playlists', {
        templateUrl: 'app/features/playlist/partials/playlists.html',
        controller : 'PlaylistsCtrl'
      })
      .when('/playlists/create', {
        templateUrl: 'app/features/playlist/partials/playlist.html',
        controller : 'PlaylistEditCtrl'
      })
      .when('/playlists/edit/:id', {
        templateUrl: 'app/features/playlist/partials/playlist.html',
        controller : 'PlaylistEditCtrl'
      })
      .when('/playlists/play/:id', {
        templateUrl: 'app/partials/dashboard.html',
        controller : 'LoadDashboardCtrl',
        resolve: {
          init: function(backendSrv, playlistSrv, $route) {
            var playlistId = $route.current.params.id;

            return backendSrv.get('/api/playlists/' + playlistId)
              .then(function(playlist) {
                return backendSrv.get('/api/playlists/' + playlistId + '/dashboards')
                  .then(function(dashboards) {
                    playlistSrv.start(dashboards, playlist.timespan);
                  });
              });
          }
        }
      });
  });
});
<commit_msg>fix(playlist): fix broken build. unused vars<commit_after>define([
  'angular',
  'app/core/config',
  'lodash'
],
function (angular) {
  'use strict';

  var module = angular.module('grafana.routes');

  module.config(function($routeProvider) {
    $routeProvider
      .when('/playlists', {
        templateUrl: 'app/features/playlist/partials/playlists.html',
        controller : 'PlaylistsCtrl'
      })
      .when('/playlists/create', {
        templateUrl: 'app/features/playlist/partials/playlist.html',
        controller : 'PlaylistEditCtrl'
      })
      .when('/playlists/edit/:id', {
        templateUrl: 'app/features/playlist/partials/playlist.html',
        controller : 'PlaylistEditCtrl'
      })
      .when('/playlists/play/:id', {
        templateUrl: 'app/partials/dashboard.html',
        controller : 'LoadDashboardCtrl',
        resolve: {
          init: function(backendSrv, playlistSrv, $route) {
            var playlistId = $route.current.params.id;

            return backendSrv.get('/api/playlists/' + playlistId)
              .then(function(playlist) {
                return backendSrv.get('/api/playlists/' + playlistId + '/dashboards')
                  .then(function(dashboards) {
                    playlistSrv.start(dashboards, playlist.timespan);
                  });
              });
          }
        }
      });
  });
});

{'fraction_non_alphanumeric': 0.1457875457875458, 'fraction_numerical': 0.0, 'mean_word_length': 2.164542294322132, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1880253', 'n_tokens_mistral': 813, 'n_tokens_neox': 806, 'n_words': 110}