<commit_before>﻿using System.Collections;
using System.Collections.Generic;
using GSoft.Dynamite.Lists;
using Microsoft.Office.Server.ApplicationRegistry.MetadataModel;
using Microsoft.SharePoint;

namespace GSoft.Dynamite.Definitions
{
    /// <summary>
    /// Definition for a list
    /// </summary>
    public class ListInfo : BaseTypeInfo
    {
        /// <summary>
        /// Default constructor for serialization purposes
        /// </summary>
        public ListInfo()
        {
            // Default value
            this.WriteSecurity = WriteSecurityOptions.AllUser;
            this.Overwrite = false;

            this.ContentTypes = new List<ContentTypeInfo>();
            this.DefaultViewFields = new List<IFieldInfo>();
            this.FieldDefinitions = new List<IFieldInfo>();
        }
        
        /// <summary>
        /// Initializes a new ListInfo
        /// </summary>
        /// <param name="webRelativeUrl">The web-relative URL of the list</param>
        /// <param name="displayNameResourceKey">Display name resource key</param>
        /// <param name="descriptionResourceKey">Description resource key</param>
        /// <param name="groupResourceKey">Description resource key</param>
        public ListInfo(string webRelativeUrl, string displayNameResourceKey, string descriptionResourceKey)
            : base(displayNameResourceKey, descriptionResourceKey, string.Empty)
        {
            // Default value
            this.WriteSecurity = WriteSecurityOptions.AllUser;
            this.Overwrite = false;

            this.ContentTypes = new List<ContentTypeInfo>();
            this.DefaultViewFields = new List<IFieldInfo>();
            this.FieldDefinitions = new List<IFieldInfo>();
        }

        /// <summary>
        /// Gets or sets the root folder URL.
        /// </summary>
        /// <value>
        /// The root folder URL.
        /// </value>
        public string RootFolderUrl { get; set; }

        /// <summary>
        /// Gets or sets the list template identifier.
        /// </summary>
        /// <value>
        /// The list template identifier.
        /// </value>
        public SPListTemplateType ListTemplate { get; set; }
<commit_msg>- [ListInfo] Fix the RootFolderUrl property setting. Now passed through the constructor (webRelativeUrl)<commit_after>﻿using System.Collections;
using System.Collections.Generic;
using GSoft.Dynamite.Lists;
using Microsoft.Office.Server.ApplicationRegistry.MetadataModel;
using Microsoft.SharePoint;

namespace GSoft.Dynamite.Definitions
{
    /// <summary>
    /// Definition for a list
    /// </summary>
    public class ListInfo : BaseTypeInfo
    {
        /// <summary>
        /// Default constructor for serialization purposes
        /// </summary>
        public ListInfo()
        {
            // Default value
            this.WriteSecurity = WriteSecurityOptions.AllUser;
            this.Overwrite = false;

            this.ContentTypes = new List<ContentTypeInfo>();
            this.DefaultViewFields = new List<IFieldInfo>();
            this.FieldDefinitions = new List<IFieldInfo>();
        }

        /// <summary>
        /// Initializes a new ListInfo
        /// </summary>
        /// <param name="webRelativeUrl">The web-relative URL of the list</param>
        /// <param name="displayNameResourceKey">Display name resource key</param>
        /// <param name="descriptionResourceKey">Description resource key</param>
        public ListInfo(string webRelativeUrl, string displayNameResourceKey, string descriptionResourceKey)
            : base(displayNameResourceKey, descriptionResourceKey, string.Empty)
        {
            this.RootFolderUrl = webRelativeUrl;

            // Default value
            this.WriteSecurity = WriteSecurityOptions.AllUser;
            this.Overwrite = false;

            this.ContentTypes = new List<ContentTypeInfo>();
            this.DefaultViewFields = new List<IFieldInfo>();
            this.FieldDefinitions = new List<IFieldInfo>();
        }

        /// <summary>
        /// Gets or sets the root folder URL.
        /// </summary>
        /// <value>
        /// The root folder URL.
        /// </value>
        public string RootFolderUrl { get; set; }

        /// <summary>
        /// Gets or sets the list template identifier.
        /// </summary>
        /// <value>
        /// The list template identifier.
        /// </value>
        public SPListTemplateType ListTemplate { get; set; }

{'fraction_non_alphanumeric': 0.1128638080426572, 'fraction_numerical': 0.0, 'mean_word_length': 2.04394861392833, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '1877995', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1079, 'n_words': 284}