<commit_before>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace SKM.V3.Models
{
    public class CreateKeyModel
    {
        public int ProductId { get; set; }
        public int Period { get; set; }
        public bool F1 { get; set; }
        public bool F2 { get; set; }
        public bool F3 { get; set; }
        public bool F4 { get; set; }
        public bool F5 { get; set; }
        public bool F6 { get; set; }
        public bool F7 { get; set; }
        public bool F8 { get; set; }
        [DefaultValue("")]
        public string Notes { get; set; }
        public bool Block { get; set; }
        public bool TrialActivation { get; set; }
        public bool AutomaticActivation { get; set; }
        public int MaxNoOfMachines { get; set; }
        public string AllowedMachines { get; set; }
    }
    public class CreateKeyResult : BasicResult
    {
        public string Key { get; set; }
    }
    public class GetKeysModel
    {
        /// <summary>
        /// The product id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// If there are more than 100 keys, only 99 will be returned
        /// on the first page. in order to obtain the remaining licenses, 
        /// increment this parameter by 1.
        /// </summary>
        [DefaultValue(1)]
        public int Page { get; set; }
        /// <summary>
        /// Specifies the way to order the result. The order by field has the
        /// following structure: fieldName [ascending|descending]. For example, 
        /// If you want to order by the feature field 1 (F1), you should use F1.
        /// If you want it in descending order, please add the descending keywords 
        /// right after the field, eg. F1 descending. The ascending keyword is 
        /// the default, hence optional.<commit_msg>Add customer id to the create key model.<commit_after>﻿using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace SKM.V3.Models
{
    public class CreateKeyModel
    {
        public int ProductId { get; set; }
        public int Period { get; set; }
        public bool F1 { get; set; }
        public bool F2 { get; set; }
        public bool F3 { get; set; }
        public bool F4 { get; set; }
        public bool F5 { get; set; }
        public bool F6 { get; set; }
        public bool F7 { get; set; }
        public bool F8 { get; set; }
        [DefaultValue("")]
        public string Notes { get; set; }
        public bool Block { get; set; }
        public int CustomerId { get; set; } // maybe int instead?
        public bool TrialActivation { get; set; }
        public bool AutomaticActivation { get; set; }
        public int MaxNoOfMachines { get; set; }
        public string AllowedMachines { get; set; }
    }
    public class CreateKeyResult : BasicResult
    {
        public string Key { get; set; }
    }
    public class GetKeysModel
    {
        /// <summary>
        /// The product id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// If there are more than 100 keys, only 99 will be returned
        /// on the first page. in order to obtain the remaining licenses, 
        /// increment this parameter by 1.
        /// </summary>
        [DefaultValue(1)]
        public int Page { get; set; }
        /// <summary>
        /// Specifies the way to order the result. The order by field has the
        /// following structure: fieldName [ascending|descending]. For example, 
        /// If you want to order by the feature field 1 (F1), you should use F1.
        /// If you want it in descending order, please add the descending keywords 
        /// right after the field, eg. F1 descending. The ascending keyword is 
        /// the default, hence optional.
{'fraction_non_alphanumeric': 0.09696655431682655, 'fraction_numerical': 0.010370754472387866, 'mean_word_length': 1.8748137108792846, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6157385', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1027, 'n_words': 438}