<commit_before>﻿using nl.fhict.IntelliCloud.Business.Authorization;
using nl.fhict.IntelliCloud.Common.DataTransfer;
using nl.fhict.IntelliCloud.Common.DataTransfer.Input;
using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace nl.fhict.IntelliCloud.Service
{
    [ServiceContract]
    public interface IUserService
    {
        /// <summary>
        /// Method for getting a user based on it's ID or a list of UserSource instances.
        /// All parameters are optional - if no parameters are provided the currently logged in user will be returned.
        /// </summary>
        /// <param name="id">The ID of the user. Optional.</param>
        /// <param name="sources">A list of UserSource instances. Optional.</param>
        /// <returns>The matched user based on the values of the parameters, otherwise the currently logged in user.</returns>
        [OperationContract]
        [WebInvoke(Method = "PUT",
            UriTemplate = "users?userId={userId}",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped)]
        [AuthorizationRequired(UserType.Customer, UserType.Employee)]
        User GetUser(string userId, List<UserSource> sources);

        /// <summary>
        /// Method used for creating a new user.
        /// </summary>
        /// <param name="type">The type of user. Required.</param>
        /// <param name="sources">A list of UserSource instances. Required (must contain at least one item).</param>
        /// <param name="firstName">The user's first name. Optional.</param>
        /// <param name="infix">The user's infix. Optional.</param>
        /// <param name="lastName">The user's last name. Optional.</param>
        /// <param name="avatar">The user's avatar URL. Optional.</param>
        [OperationContract]
        [WebInvoke(Method = "POST",
            UriTemplate = "users",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped)]
        [AuthorizationRequired(UserType.Employee)]
        void CreateUser(UserType type, IList<UserSource> sources, string firstName, string infix, string lastName, string avatar);
    }
}
<commit_msg>Sorted usings.<commit_after>﻿using nl.fhict.IntelliCloud.Business.Authorization;
using nl.fhict.IntelliCloud.Common.DataTransfer;
using nl.fhict.IntelliCloud.Common.DataTransfer.Input;
using System.Collections.Generic;
using System.ServiceModel;
using System.ServiceModel.Web;

namespace nl.fhict.IntelliCloud.Service
{
    [ServiceContract]
    public interface IUserService
    {
        /// <summary>
        /// Method for getting a user based on it's ID or a list of UserSource instances.
        /// All parameters are optional - if no parameters are provided the currently logged in user will be returned.
        /// </summary>
        /// <param name="id">The ID of the user. Optional.</param>
        /// <param name="sources">A list of UserSource instances. Optional.</param>
        /// <returns>The matched user based on the values of the parameters, otherwise the currently logged in user.</returns>
        [OperationContract]
        [WebInvoke(Method = "PUT",
            UriTemplate = "users?userId={userId}",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped)]
        [AuthorizationRequired(UserType.Customer, UserType.Employee)]
        User GetUser(string userId, List<UserSource> sources);

        /// <summary>
        /// Method used for creating a new user.
        /// </summary>
        /// <param name="type">The type of user. Required.</param>
        /// <param name="sources">A list of UserSource instances. Required (must contain at least one item).</param>
        /// <param name="firstName">The user's first name. Optional.</param>
        /// <param name="infix">The user's infix. Optional.</param>
        /// <param name="lastName">The user's last name. Optional.</param>
        /// <param name="avatar">The user's avatar URL. Optional.</param>
        [OperationContract]
        [WebInvoke(Method = "POST",
            UriTemplate = "users",
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped)]
        [AuthorizationRequired(UserType.Employee)]
        void CreateUser(UserType type, IList<UserSource> sources, string firstName, string infix, string lastName, string avatar);
    }
}

{'fraction_non_alphanumeric': 0.11292346298619825, 'fraction_numerical': 0.0, 'mean_word_length': 2.553491827637444, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '3864046', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1217, 'n_words': 355}