<commit_before>using System;
using System.Runtime.InteropServices;

namespace Torshify.Core.Native
{
    internal partial class Spotify
    {
        public delegate void AlbumBrowseCompleteCallback(IntPtr albumBrowsePtr, IntPtr userDataPtr);

        /// <summary>
        /// Check if the album object is populated with data.
        /// </summary>
        /// <param name="albumPtr">The album object.</param>
        /// <returns>True if metadata is present, false if not.</returns>
        [DllImport("spotify")]
        internal static extern bool sp_album_is_loaded(IntPtr albumPtr);

        /// <summary>
        /// Return true if the album is available in the current region.
        /// </summary>
        /// <param name="albumPtr">The album.</param>
        /// <returns>True if album is available for playback, otherwise false.</returns>
        /// <remarks>The album must be loaded or this function will always return false.
        /// <seealso cref="sp_album_is_loaded"/>
        /// </remarks>
        [DllImport("spotify")]
        internal static extern bool sp_album_is_available(IntPtr albumPtr);
<commit_msg>Fixed bug with IAlbum.IsAvailable. Was always returning true<commit_after>using System;
using System.Runtime.InteropServices;

namespace Torshify.Core.Native
{
    internal partial class Spotify
    {
        public delegate void AlbumBrowseCompleteCallback(IntPtr albumBrowsePtr, IntPtr userDataPtr);

        /// <summary>
        /// Check if the album object is populated with data.
        /// </summary>
        /// <param name="albumPtr">The album object.</param>
        /// <returns>True if metadata is present, false if not.</returns>
        [DllImport("spotify")]
        internal static extern bool sp_album_is_loaded(IntPtr albumPtr);

        /// <summary>
        /// Return true if the album is available in the current region.
        /// </summary>
        /// <param name="albumPtr">The album.</param>
        /// <returns>True if album is available for playback, otherwise false.</returns>
        /// <remarks>The album must be loaded or this function will always return false.
        /// <seealso cref="sp_album_is_loaded"/>
        /// </remarks>
        [DllImport("spotify")]
        [return: MarshalAs(UnmanagedType.I1)]
        internal static extern bool sp_album_is_available(IntPtr albumPtr);

{'fraction_non_alphanumeric': 0.1120067882901994, 'fraction_numerical': 0.00042426813746287653, 'mean_word_length': 2.5458646616541354, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '6948253', 'n_tokens_mistral': 617, 'n_tokens_neox': 611, 'n_words': 197}