<commit_before>﻿@model ICollection<Azimuth.Shared.Dto.TracksDto>

@{ Html.RenderPartial("_ChangeLikeStatus");}

<button class="btn btn-default" type="button" id="backToPlaylistsBtn">Back</button>

<h2>@ViewBag.playlistName</h2>

@Html.DisplayFor(x => x)

    <script type="text/javascript" src="../../Scripts/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
    @*<script type="text/javascript" src="../../Scripts/bootstrap.min.js"></script>*@

<script type="text/javascript">
    $(document).ready(function() {
        $('#playlist-spinner').hide();
        $('#tracksArea').show();
        $('button#backToPlaylistsBtn').off('click').click(function() {
            $('#tracksArea').empty();
            document.audioManager.stop();
            $('#playlistsArea').show();
        });

        document.audioManager.refreshTracks();
        document.audioManager.refreshPlaylistTracks();
        document.audioManager.bindPlayBtnListeners();

        $('.track-info-btn').click(function() {
            var $self = $(this);
            var $trackInfoSpinner = $('#trackInfo-spinner');
            var author = $self.parent().children('.track-description').children('.track-info').find('span');
            var trackName = $self.parent().children('.track-description').children('.track-title');
            $trackInfoSpinner.show();
            $.ajax({
                url: '/api/usertracks/trackinfo?artist=' + author.text() + '&trackName=' + trackName.text(),
                async: true,
                success: function(trackInfo) {
                    $trackInfoSpinner.hide();
                    var $trackInfoTemplate = $('#trackInfoTemplate');
                    var object = $trackInfoTemplate.tmpl(trackInfo);
                    var $trackInfoContainer = $('.modal-body');
                    $trackInfoContainer.text('');
                    object.appendTo($trackInfoContainer);
                    if (trackInfo.Lyric != null) {<commit_msg>Fixed bug with tracks progress slidebar dragging etc<commit_after>﻿@model ICollection<Azimuth.Shared.Dto.TracksDto>

@{ Html.RenderPartial("_ChangeLikeStatus");}

<button class="btn btn-default" type="button" id="backToPlaylistsBtn">Back</button>

<h2>@ViewBag.playlistName</h2>

@Html.DisplayFor(x => x)

    <script type="text/javascript" src="../../Scripts/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="https://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
    @*<script type="text/javascript" src="../../Scripts/bootstrap.min.js"></script>*@

<script type="text/javascript">
    $(document).ready(function() {
        $('#playlist-spinner').hide();
        $('#tracksArea').show();
        $('button#backToPlaylistsBtn').off('click').click(function() {
            $('#tracksArea').empty();
            document.audioManager.stop();
            $('#playlistsArea').show();
        });

        document.audioManager.refreshTracks();
        document.audioManager.refreshPlaylistTracks();
        document.audioManager.bindPlayBtnListeners();
        document.audioManager.bindListeners();

        $('.track-info-btn').click(function() {
            var $self = $(this);
            var $trackInfoSpinner = $('#trackInfo-spinner');
            var author = $self.parent().children('.track-description').children('.track-info').find('span');
            var trackName = $self.parent().children('.track-description').children('.track-title');
            $trackInfoSpinner.show();
            $.ajax({
                url: '/api/usertracks/trackinfo?artist=' + author.text() + '&trackName=' + trackName.text(),
                async: true,
                success: function(trackInfo) {
                    $trackInfoSpinner.hide();
                    var $trackInfoTemplate = $('#trackInfoTemplate');
                    var object = $trackInfoTemplate.tmpl(trackInfo);
                    var $trackInfoContainer = $('.modal-body');
                    $trackInfoContainer.text('');
                    object.appendTo($trackInfoContainer);
                    if (trackInfo.Lyric != null) {
{'fraction_non_alphanumeric': 0.17816365366317793, 'fraction_numerical': 0.003330161750713606, 'mean_word_length': 2.628127696289905, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '671289', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1145, 'n_words': 150}