<commit_before>﻿// Copyright (c) 2017 <NAME>.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Hangfire.EntityFramework
{
    internal class HangfireSet
    {
        [Key, Column(Order = 0)]
        [Required]
        [StringLength(100)]
        public string Key { get; set; }

        [Key, Column(Order = 1)]
        [Required]
        [StringLength(100)]
        public string Value { get; set; }

        public double Score { get; set; }

        [DateTimePrecision(7)]
        [Index("IX_HangfireSet_CreatedAt", IsUnique = false)]
        public DateTime CreatedAt { get; set; }

        [DateTimePrecision(7)]
        [Index("IX_HangfireSet_ExpireAt", IsUnique = false)]
        public DateTime? ExpireAt { get; set; }
    }
}<commit_msg>Add HangfireSet Score index<commit_after>﻿// Copyright (c) 2017 <NAME>.
// Licensed under the MIT License. See LICENSE file in the project root for full license information.

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Hangfire.EntityFramework
{
    internal class HangfireSet
    {
        [Key, Column(Order = 0)]
        [Required]
        [StringLength(100)]
        public string Key { get; set; }

        [Key, Column(Order = 1)]
        [Required]
        [StringLength(100)]
        public string Value { get; set; }

        [Index("IX_HangfireSet_Score", IsUnique = false)]
        public double Score { get; set; }

        [DateTimePrecision(7)]
        [Index("IX_HangfireSet_CreatedAt", IsUnique = false)]
        public DateTime CreatedAt { get; set; }

        [DateTimePrecision(7)]
        [Index("IX_HangfireSet_ExpireAt", IsUnique = false)]
        public DateTime? ExpireAt { get; set; }
    }
}
{'fraction_non_alphanumeric': 0.10531803962460896, 'fraction_numerical': 0.014598540145985401, 'mean_word_length': 2.8075396825396823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7139814', 'n_tokens_mistral': 574, 'n_tokens_neox': 534, 'n_words': 156}