text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml;
using System.Xml.Xsl;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Script.Serialization;
using Ext.Net;
using iTextSharp.text;

using CCC.UTILS.Libs;
using LyncBillingUI.Helpers;
using LyncBillingUI.Helpers.Account;
using LyncBillingBase.DataModels;

namespace LyncBillingUI.Pages.SiteAccounting
{
    public partial class PeriodicalReport : System.Web.UI.Page
    {
        private string sipAccount = string.Empty;
        private static List<Site> userSites;
        private List<CallsSummaryForUser> listOfUsersCallsSummary = new List<CallsSummaryForUser>();

        // This actually takes a copy of the current session for some uses on the frontend.
        public UserSession CurrentSession { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            //
            // If the user is not loggedin, redirect to Login page.
            if (HttpContext.Current.Session == null || HttpContext.Current.Session.Contents["UserData"] == null)
            {
                string RedirectTo = String.Format(@"{0}/Site/Accounting/Dashboard", Global.APPLICATION_URL);
                string Url = String.Format(@"{0}/Login?RedirectTo={1}", Global.APPLICATION_URL, RedirectTo);
                Response.Redirect(Url);
            }
            else
            {
                CurrentSession = ((UserSession)HttpContext.Current.Session.Contents["UserData"]);

                if (CurrentSession.ActiveRoleName != Functions.SiteAccountantRoleName)
                {
                    string url = String.Format(@"{0}/Authorize?access={1}", Global.APPLICATION_URL, Functions.SiteAccountantRoleName);
                    Response.Redirect(url);
                }
            }

            sipAccount = CurrentSession.GetEffectiveSipAccount();

            //Get the User Authorized List of Sites
            GetUserSitesData();
        }

        //
        // Get the sites data for this user
        private void GetUserSitesData()
        {
            if (!Ext.Net.X.IsAjaxRequest)
            {
                userSites = Global.DATABASE.SystemRoles.GetSitesByRoles(CurrentSession.SystemRoles, Functions.SiteAccountantRoleName);
            }
        }

        private List<CallsSummaryForUser> PeriodicalReports(int siteID, DateTime startingDate, DateTime endingDate)
        {
            Site site = Global.DATABASE.Sites.GetById(siteID);

            listOfUsersCallsSummary = Global.DATABASE.UsersCallsSummaries.GetBySite(
                    site.Name,
                    startingDate,
                    endingDate,
                    CCC.ORM.Globals.CallsSummaryForUser.GroupBy.UserAndInvoiceFlag)
                .Where(e => e.PersonalCallsCost > 0 || e.BusinessCallsCost > 0 || e.UnallocatedCallsCost > 0)
                .ToList();

            return listOfUsersCallsSummary;
        }

        private void BindDataToReportsGrid(bool siteHasChanged = false, bool dateHasChanged = false, bool callTypeHasChanged = false)
        {
            int callsType, siteID;
            List<CallsSummaryForUser> gridData = new List<CallsSummaryForUser>();

            if (listOfUsersCallsSummary.Count == 0 || (siteHasChanged == true || dateHasChanged == true))
            {
                siteID = Convert.ToInt32(FilterReportsBySite.SelectedItem.Value);
                listOfUsersCallsSummary = PeriodicalReports(siteID, StartingDate.SelectedDate, EndingDate.SelectedDate);
            }

            callsType = Convert.ToInt32(CallsTypesComboBox.SelectedItem.Value);

            if (callsType == 1)
                gridData = listOfUsersCallsSummary.Where(summary => summary.IsInvoiced == "NO").ToList();
            else if (callsType == 2)
                gridData = listOfUsersCallsSummary.Where(summary => summary.IsInvoiced == "N/A").ToList();
            else if (callsType == 3)
                gridData = listOfUsersCallsSummary.Where(summary => summary.IsInvoiced == "YES").ToList();

            PeriodicalReportsGrid.GetStore().DataSource = gridData;
            PeriodicalReportsGrid.GetStore().LoadData(gridData);
        }

        private void DoInvoice(Site site, int callTypeId, string callTypeDesc, DateTime startingDate, DateTime endingDate)
        {
            Mailer email;
            bool status = false;
            string errorMessage = string.Empty;

            if (callTypeId == 1)
            {
                try
                {
                    Global.DATABASE.PhoneCalls.ChargeAllocatedPhoneCallsOfSite(site.Id, startingDate, endingDate);
                    Global.DATABASE.PhoneCalls.MarkUnallocatedPhoneCallsAsPending(site.Id, startingDate, endingDate);

                    status = true;
                }
                catch (Exception ex)
                {
                    errorMessage = string.Empty;

                    if (!string.IsNullOrEmpty(ex.Message)) { errorMessage += "Exception Message:
" + ex.Message + "

"; }
                    if (ex.InnerException != null) { errorMessage += "Exception InnerException:

" + ex.InnerException.ToString() + "

"; }
                    if (!string.IsNullOrEmpty(ex.StackTrace)) { errorMessage += "Exception StackTrace:

" + ex.StackTrace + "

"; }

                    status = false;
                }
            }
            else if (callTypeId == 2)
            {
                try
                {
                    Global.DATABASE.PhoneCalls.ChargeUnallocatedPhoneCallsOfSite(site.Id, startingDate, endingDate);

                    status = true;
                }
                catch (Exception ex)
                {
                    errorMessage = string.Empty;

                    if (!string.IsNullOrEmpty(ex.Message)) { errorMessage += "Exception Message:
" + ex.Message + "

"; }
                    if (ex.InnerException != null) { errorMessage += "Exception InnerException:

" + ex.InnerException.ToString() + "

"; }
                    if (!string.IsNullOrEmpty(ex.StackTrace)) { errorMessage += "Exception StackTrace:

" + ex.StackTrace + "

"; }

                    status = false;
                }
            }

            // Send notification email
            // Get all the users with either of the following:
            // a> System Developer Role
            // b> Site Accountant Role on this Site

            List<SystemRole> developers = Global.DATABASE.SystemRoles.GetAll().Where(role => role.RoleId == Global.DATABASE.Roles.DeveloperRoleID).ToList();
            List<SystemRole> siteAccountants = Global.DATABASE.SystemRoles.GetAll().Where(role => role.RoleId == Global.DATABASE.Roles.SiteAccountantRoleID && role.SiteId == site.Id).ToList();

            if (status == true)
            {
                List<SystemRole> people = developers.Concat(siteAccountants).ToList();

                foreach (var person in people)
                {
                    email = new Mailer(
                        person.SipAccount,
                        "iBill Invoicing Operation",
                        String.Format("Notification:

Kindly note the invoicing operation of \"{0}\" Phone Calls of {1} Site for the period: \"{2} - {3}\" has finished successfully.",
                            callTypeDesc,
                            site.Name,
                            startingDate.ToString(),
                            endingDate.ToString()));
                }
            }
            else
            {
                foreach (var superPerson in developers)
                {
                    email = new Mailer(
                        superPerson.SipAccount,
                        "iBill Invoicing Operation",
                        String.Format("ERROR Notification:

An error occured while performing the invoicing operation of \"{0}\" Phone Calls of {1} Site for the period: \"{2} - {3}\".

The operation was not completed successfully.

Error Information:

{4}",
                            callTypeDesc,
                            site.Name,
                            startingDate.ToString(),
                            endingDate.ToString(),
                            errorMessage));
                }

                foreach (var person in siteAccountants)
                {
                    email = new Mailer(
                        person.SipAccount,
                        "iBill Invoicing Operation",
                        String.Format("ERROR Notification:

An error occured while performing the invoicing operation of \"{0}\" Phone Calls of {1} Site for the period: \"{2} - {3}\".

The operation was not completed successfully.

Kindly contact the HelpDesk.",
                            callTypeDesc,
                            site.Name,
                            startingDate.ToString(),
                            endingDate.ToString()));
                }
            }
        }//end-do-invoice

        protected void SitesStore_Load(object sender, EventArgs e)
        {
            if (!Ext.Net.X.IsAjaxRequest)
            {
                FilterReportsBySite.GetStore().DataSource = userSites;
                FilterReportsBySite.GetStore().DataBind();
            }
        }

        [DirectMethod]
        protected void FilterReportsBySite_Selecting(object sender, DirectEventArgs e)
        {
            int siteID;

            if (FilterReportsBySite.SelectedItem.Index != -1)
            {
                StartingDate.Disabled = false;

                //If the dates were previously chosen, jsut refresh the data!
                if (FilterReportsBySite.SelectedItem.Index != -1 && StartingDate.SelectedValue != null && EndingDate.SelectedValue != null)
                {
                    siteID = Convert.ToInt32(FilterReportsBySite.SelectedItem.Value);

                    CallsTypesComboBox.Disabled = false;
                    AdvancedToolsMenu.Disabled = false;

                    BindDataToReportsGrid(siteHasChanged: true);
                }
            }
            else
            {
                StartingDate.Disabled = true;
                EndingDate.Disabled = true;
                CallsTypesComboBox.Disabled = true;
                AdvancedToolsMenu.Disabled = true;
            }
        }

        [DirectMethod]
        protected void StartingDate_Selection(object sender, DirectEventArgs e)
        {
            if (StartingDate.SelectedValue != null)
            {
                EndingDate.Disabled = false;

                if (EndingDate.SelectedValue != null)
                {
                    BindDataToReportsGrid(dateHasChanged: true);
                }
            }
            else
            {
                EndingDate.Disabled = true;
                CallsTypesComboBox.Disabled = true;
                AdvancedToolsMenu.Disabled = true;
            }
        }

        [DirectMethod]
        protected void EndingDate_Selection(object sender, DirectEventArgs e)
        {
            int siteID;

            if (FilterReportsBySite.SelectedItem.Index != -1 && StartingDate.SelectedValue != null && EndingDate.SelectedValue != null)
            {
                siteID = Convert.ToInt32(FilterReportsBySite.SelectedItem.Value);

                CallsTypesComboBox.Disabled = false;
                AdvancedToolsMenu.Disabled = false;

                BindDataToReportsGrid(dateHasChanged: true);
            }
            else
            {
                CallsTypesComboBox.Disabled = true;
                AdvancedToolsMenu.Disabled = true;
            }
        }

        [DirectMethod]
        protected void FilterReportsByCallsTypes_Select(object sender, DirectEventArgs e)
        {
            int callsType;
            InvoiceUsers.Disabled = true;

            if (CallsTypesComboBox.SelectedItem.Index > -1)
            {
                callsType = Convert.ToInt32(CallsTypesComboBox.SelectedItem.Value);

                if (callsType == 1 || callsType == 2)
                {
                    InvoiceUsers.Disabled = false;
                }

                BindDataToReportsGrid(callTypeHasChanged: true);
            }
        }

        [DirectMethod]
        protected void InvoiceUsers_Button_Click(object sender, DirectEventArgs e)
        {
            X.Msg.Confirm("Message", "Are you sure you want to perform the invoicing operation?
Kindly note that this operation cannot be undone!", new MessageBoxButtonsConfig
            {
                Ok = new MessageBoxButtonConfig
                {
                    Handler = "ExtOperationsNamespace.ConfirmDoInvoice()",
                    Text = "Yes!"
                },
                Cancel = new MessageBoxButtonConfig
                {
                    //Handler = "CompanyX.DoNo()",
                    Text = "Cancel"
                }
            }).Show();
        }

        [DirectMethod]
        public void ConfirmDoInvoice()
        {
            // BEGIN PERFORMING THE OPERATION
            int siteID;
            int callTypeId;
            string callTypeDesc;
            DateTime startingDate;
            DateTime endingDate;

            siteID = Convert.ToInt32(FilterReportsBySite.SelectedItem.Value);
            callTypeId = Convert.ToInt32(CallsTypesComboBox.SelectedItem.Value);
            callTypeDesc = Convert.ToString(CallsTypesComboBox.SelectedItem.Text);
            startingDate = new DateTime(StartingDate.SelectedDate.Year, StartingDate.SelectedDate.Month, 1);
            endingDate = new DateTime(EndingDate.SelectedDate.Year, EndingDate.SelectedDate.Month, 1).AddMonths(1).AddDays(-1);

            var site = Global.DATABASE.Sites.GetById(siteID);

            if (callTypeId == 1 || callTypeId == 2)
            {
                Thread invoiceProcess = new Thread(() => DoInvoice(site, callTypeId, callTypeDesc, startingDate, endingDate));
                invoiceProcess.Start();
            }

            //Show an information message box
            X.Msg.Show(new MessageBoxConfig
            {
                Title = "Invoice Operation",
                Message = "The operation has started and it might take a while to finish. However, you will be notified via your email when the operation finishes. Feel free to close this window if you wish.",
                Buttons = MessageBox.Button.OK,
                Icon = MessageBox.Icon.INFO
            });
        }

        protected void PeriodicalReportsStore_SubmitData(object sender, StoreSubmitDataEventArgs e)
        {
            DateTime startDate;
            DateTime endDate;
            Document pdfDocument;
            Dictionary<string, string> pdfDocumentHeaders;
            Dictionary<string, Dictionary<string, object>> UsersCollection;
            int SiteID;
            Site SelectedSite;

            //These are created to hold the data submitted through the grid as JSON
            List<LyncBillingBase.DataModels.User> usersData;
            Dictionary<string, object> tempUserDataContainer;

            XmlNode xml = e.Xml;
            string format = this.FormatType.Value.ToString();
            string pdfReportFileName = string.Empty;

            SiteID = Convert.ToInt32(FilterReportsBySite.SelectedItem.Value);
            SelectedSite = Global.DATABASE.Sites.GetById(SiteID);

            int callsType = Convert.ToInt32(CallsTypesComboBox.SelectedItem.Value);
            string callsTypeString = string.Empty;

            this.Response.Clear();

            switch (callsType)
            {
                case 1:
                    callsTypeString = "Not Charged";
                    break;
                case 2:
                    callsTypeString = "Pending Charges";
                    break;
                case 3:
                    callsTypeString = "Charged";
                    break;
                default:
                    callsTypeString = "Not Charged";
                    break;
            }

            switch (format)
            {
                // -----------------------------
                // CASE OF SUMMARIZED XML REPORT
                case "xls":
                    this.Response.Clear();
                    this.Response.ContentType = "application/vnd.ms-excel";
                    this.Response.AddHeader("Content-Disposition", "attachment; filename=PeriodicalReport_Summary.xls");
                    XslCompiledTransform xtExcel = new XslCompiledTransform();
                    xtExcel.Load(Server.MapPath("~/Resources/excel.xsl"));
                    xtExcel.Transform(xml, null, Response.OutputStream);

                    break;

                // ------------------------------
                // CASE OF SUMMARIZED PDF REPORT
                case "pdf":
                    UsersCollection = new Dictionary<string, Dictionary<string, object>>();
                    usersData = (new JavaScriptSerializer()).Deserialize<List<LyncBillingBase.DataModels.User>>(e.Json);

                    foreach (var user in usersData)
                    {
                        tempUserDataContainer = new Dictionary<string, object>();
                        //tempUserDataContainer.Add(Enums.GetDescription(Enums.PhoneCallSummary.DisplayName), user.FullName);
                        //tempUserDataContainer.Add(Enums.GetDescription(Enums.PhoneCallSummary.EmployeeID), user.EmployeeID);
                        //tempUserDataContainer.Add(Enums.GetDescription(Enums.PhoneCallSummary.ChargingParty), user.SipAccount);

                        if (!UsersCollection.Keys.Contains(user.SipAccount))
                            UsersCollection.Add(user.SipAccount, tempUserDataContainer);
                    }

                    pdfReportFileName = string.Format(
                        "{0}_Periodical_Summary_Report_{1}_{2}.pdf",
                        SelectedSite.Name.ToUpper(),
                        StartingDate.SelectedDate.Month + "-" + StartingDate.SelectedDate.Year + "--" + EndingDate.SelectedDate.Month + "-" + EndingDate.SelectedDate.Year,
                        callsTypeString.Replace(' ', '_')
                    );

                    Dictionary<string, string> headers = new Dictionary<string, string>()
                    {
                        {"siteName", SelectedSite.Name},
                        {"title", "Accounting Perdiodical Report [Summary]"},
                        {"subTitle", String.Format("From {0}, To {1}; {2}",
                                        StartingDate.SelectedDate.Month + "-" + StartingDate.SelectedDate.Year,
                                        EndingDate.SelectedDate.Month + "-" + EndingDate.SelectedDate.Year,
                                        callsTypeString)
                        }
                    };

                    pdfDocument = new Document();

                    //if (callsType == 1)
                    //    UserCallsSummary.ExportUsersCallsSummaryToPDF(SelectedSite.SiteName, StartingDate.SelectedDate, EndingDate.SelectedDate, UsersCollection, Response, out pdfDocument, headers, notChargedCalls: true);
                    //else if (callsType == 2)
                    //    UserCallsSummary.ExportUsersCallsSummaryToPDF(SelectedSite.SiteName, StartingDate.SelectedDate, EndingDate.SelectedDate, UsersCollection, Response, out pdfDocument, headers, pendingChargesCalls: true);
                    //else if (callsType == 3)
                    //    UserCallsSummary.ExportUsersCallsSummaryToPDF(SelectedSite.SiteName, StartingDate.SelectedDate, EndingDate.SelectedDate, UsersCollection, Response, out pdfDocument, headers, chargedCalls: true);

                    Response.ContentType = "application/pdf";
                    Response.AddHeader("content-disposition", "attachment;filename=" + pdfReportFileName);
                    Response.Cache.SetCacheability(HttpCacheability.NoCache);
                    Response.Write(pdfDocument);

                    break;

                // ---------------------------
                // CASE OF DETAILED PDF REPORT
                case "pdf-d":
                    UsersCollection = new Dictionary<string, Dictionary<string, object>>();
                    usersData = (new JavaScriptSerializer()).Deserialize<List<LyncBillingBase.DataModels.User>>(e.Json);

                    foreach (var user in usersData)
                    {
                        tempUserDataContainer = new Dictionary<string, object>();
                        //tempUserDataContainer.Add(Enums.GetDescription(Enums.PhoneCallSummary.DisplayName), user.FullName);
                        //tempUserDataContainer.Add(Enums.GetDescription(Enums.PhoneCallSummary.EmployeeID), user.EmployeeID);
                        //tempUserDataContainer.Add(Enums.GetDescription(Enums.PhoneCallSummary.ChargingParty), user.SipAccount);

                        if (!UsersCollection.Keys.Contains(user.SipAccount))
                            UsersCollection.Add(user.SipAccount, tempUserDataContainer);
                    }

                    startDate = StartingDate.SelectedDate;
                    endDate = EndingDate.SelectedDate;

                    //Initialize the response.
                    pdfReportFileName = string.Format(
                        "{0}_Periodical_Detailed_Report_{1}_{2}.pdf",
                        SelectedSite.Name.ToUpper(),
                        StartingDate.SelectedDate.Month + "-" + StartingDate.SelectedDate.Year + "--" + EndingDate.SelectedDate.Month + "-" + EndingDate.SelectedDate.Year,
                        callsTypeString.Replace(' ', '_')
                    );

                    pdfDocumentHeaders = new Dictionary<string, string>()
                    {
                        {"siteName", SelectedSite.Name},
                        {"title", "Accounting Periodical Report [Detailed]"},
                        {"subTitle", String.Format("From {0}, To {1}; {2}",
                                        startDate.Month + "-" + startDate.Year,
                                        endDate.Month + "-" + endDate.Year,
                                        callsTypeString)
                        }
                    };

                    pdfDocument = new Document();

                    //if (callsType == 1)
                    //    UserCallsSummary.ExportUsersCallsDetailedToPDF(SelectedSite.SiteName, startDate, endDate, UsersCollection, Response, out pdfDocument, pdfDocumentHeaders, notChargedCalls: true);
                    //else if (callsType == 2)
                    //    UserCallsSummary.ExportUsersCallsDetailedToPDF(SelectedSite.SiteName, startDate, endDate, UsersCollection, Response, out pdfDocument, pdfDocumentHeaders, pendingChargesCalls: true);
                    //else if (callsType == 3)
                    //    UserCallsSummary.ExportUsersCallsDetailedToPDF(SelectedSite.SiteName, startDate, endDate, UsersCollection, Response, out pdfDocument, pdfDocumentHeaders, chargedCalls: true);

                    Response.ContentType = "application/pdf";
                    Response.AddHeader("content-disposition", "attachment;filename=" + pdfReportFileName);
                    Response.Cache.SetCacheability(HttpCacheability.NoCache);
                    Response.Write(pdfDocument);

                    break;
            }

            this.Response.End();

        }//End-Function

    }

}


text:
<?php

declare(strict_types=1);

namespace Auth0\Laravel\Contract\Event\Configuration;

use Auth0\SDK\Configuration\SdkConfiguration;

interface Built
{
    /**
     * AuthenticationFailed constructor.
     *
     * @param  SdkConfiguration  $configuration  an instance of Auth0\SDK\Configuration\SdkConfiguration for use with the Auth0-PHP SDK
     */
    public function __construct(SdkConfiguration $configuration);

    /**
     * Returns the exception to be thrown.
     */
    public function getConfiguration(): SdkConfiguration;

    /**
     * Determine whether the provided exception will be thrown by the SDK.
     *
     * @param  SdkConfiguration  $configuration  an instance of Auth0\SDK\Configuration\SdkConfiguration for use with the Auth0-PHP SDK
     */
    public function setConfiguration(SdkConfiguration $configuration): self;
}

redpajama_set_name: RedPajamaGithub


text:
package com.example.tests;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
import java.util.Random;
import org.testng.annotations.Test;
import com.example.utils.SortedListOf;

public class ContactRemovalTests extends TestBase{
	@Test
	public void deliteSomeContact() {

		 // save old state
		SortedListOf<ContactData> oldList
			= new SortedListOf<ContactData>(app.getHibernateHelper().listContact());

	    Random rnd = new Random ();
	    int indexForDel = rnd.nextInt(oldList.size()-1);

	    // actions
		app.getContactHelper().deleteContact(indexForDel);

	    // save new state
		SortedListOf<ContactData> newList
			= new SortedListOf<ContactData>(app.getHibernateHelper().listContact());

	    // compare states
		assertThat(newList, equalTo(oldList.without(indexForDel)));
	}

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:batch="http://www.springframework.org/schema/batch"
	xmlns="http://www.springframework.org/schema/beans"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">

	<!-- Batch Job for importing persons -->
	<batch:job id="importBatchJob">
		<batch:description>Imports person entities from csv </batch:description>
		<batch:validator ref="importJobParametersValidator"/>
		<batch:listeners>
			<batch:listener ref="loggingJobListener"/>
		</batch:listeners>
		<batch:step id="importStep">
			<batch:tasklet transaction-manager="jpaTransactionManager">
				<batch:chunk
					reader="csvImportReader"
					processor="loggingItemProcessor"
					writer="repositoryItemWriter"
					commit-interval="10" skip-limit="5" >
					<batch:skippable-exception-classes>
						<batch:include class="java.lang.IllegalArgumentException"/>
						<batch:include class="org.springframework.batch.item.file.FlatFileParseException"/>
						<batch:include class="javax.validation.ConstraintViolationException"/>
					</batch:skippable-exception-classes>
					<batch:listeners>
						<batch:listener ref="loggingSkipListener"/>
					</batch:listeners>
				</batch:chunk>
			</batch:tasklet>
			<batch:listeners>
				<batch:listener ref="loggingStepListener"/>
			</batch:listeners>
		</batch:step>
	</batch:job>

	<!-- Batch Job for exporting persons to cvs and xml-->
	<batch:job id="exportBatchJob">
		<batch:description>Exports person entities to csv and xml</batch:description>
		<batch:validator ref="exportJobParametersValidator"/>
		<batch:listeners>
			<batch:listener ref="loggingJobListener"/>
		</batch:listeners>
		<!--
			Split job into two potentially parallel executing steps for
			exporting to csv and xml formats
		-->
		<batch:split id="splitOutputFiles" task-executor="taskExecutor" next="prettyFormatXml">
			<batch:flow>
				<batch:step id="xmlExportStep">
					<batch:tasklet transaction-manager="jpaTransactionManager">
						<batch:chunk
							reader="repositoryItemReader"
							processor="loggingItemProcessor"
							writer="xmlExportWriter"
							commit-interval="10"/>
					</batch:tasklet>
					<batch:listeners>
						<batch:listener ref="loggingStepListener"/>
					</batch:listeners>
				</batch:step>
			</batch:flow>
			<batch:flow>
				<batch:step id="csvExportStep">
					<batch:tasklet transaction-manager="jpaTransactionManager">
						<batch:chunk
							reader="repositoryItemReader"
							processor="loggingItemProcessor"
							writer="csvExportWriter"
							commit-interval="10"/>
					</batch:tasklet>
					<batch:listeners>
						<batch:listener ref="loggingStepListener"/>
					</batch:listeners>
				</batch:step>
			</batch:flow>
		</batch:split>
		<batch:step id="prettyFormatXml">
			<batch:tasklet ref="prettyFormatXmlTasklet"/>
		</batch:step>
	</batch:job>

</beans>


text:
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://mockbin.com/har"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];


text:
            Run Name

            Template Name

            Description

            <waltz-markdown text="$ctrl.run.description">
            </waltz-markdown>

                Submission Due

                <waltz-editable-field on-save="$ctrl.updateDueDate"
                                      field-type="date"
                                      date-format="yyyy-MM-dd"
                                      initial-val="$ctrl.run.dueDate">
                </waltz-editable-field>

                Approval Due

                <waltz-editable-field on-save="$ctrl.updateApprovalDueDate"
                                      field-type="date"
                                      date-format="yyyy-MM-dd"
                                      initial-val="$ctrl.run.approvalDueDate"
                                      min-date="$ctrl.run.dueDate">
                </waltz-editable-field>

            Contact

            Status


text:
package com.herblee.gnensisweather.utils;

/**
 * @author HERB
 * @date Created on 2017/8/10 20:33
 * @info: 全局类
 */
public class Content {

    public static String CHINA_URL = "http://guolin.tech/api/china";
    public static String WEATHERURL = "http://guolin.tech/api/weather?cityid=";

    public static String WEATHERKEY = "&key=d199cd69c13344aaaea3a3ae3a441911";

    public static String REQUESTBINGPIC = "http://guolin.tech/api/bing_pic";
}


text:
/*
 *	Demonstration TLS client
 *
 *       Compile with
 *
 *       gcc -Wall -o tls_client tls_client.c -L/usr/lib -lssl -lcrypto
 *
 *       Execute with
 *
 *       ./tls_client <server_INET_address> <port> <client message string>
 *
 *       Generate certificate with
 *
 *       openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout tls_demonstration_cert.pem -out tls_demonstration_cert.pem
 *
 *	 Developed for Intel Edison IoT Curriculum by UCLA WHI
 */
#include "tls_header.h"

int main(int argc, char **argv)
{
    int port, range, rate;
    int server;
    int receive_length, line_length;
    char ip_addr[BUFSIZE];
	char *my_ip_addr;
    char *line = NULL;
    char buf[BUFSIZE];
    double heart_rate;
    FILE *fp = NULL;
    SSL *ssl;
    SSL_CTX *ctx;

	my_ip_addr = get_ip_addr();
    printf("My ip addr is: %s\n", my_ip_addr);

    /* READING COMMAND LINE ARGUMENTS */
    if(argc != 2)
    {
	fprintf(stderr, "Error. Usage: ./set_rate <rate>. Exiting.\n");
	exit(1);
    }
    rate = atoi(argv[1]);
    if(rate < 1 || rate > 5)
    {
	fprintf(stderr, "Error. Rate must be between 0 and 5. You supplied %d. Exiting.\n", rate);
	exit(1);
    }
    /* FINISHED READING COMMAND LINE ARGUMENTS */

    /* READ INPUT FILE */
    fp = fopen("config_file", "r");
    if(fp == NULL){
	fprintf(stderr, "Error opening config file with name 'config_file'. Exiting.\n");
	exit(1);
    }
    printf("Reading input file...\n");
    while(getline(&line, &line_length, fp) > 0){
	if(strstr(line, "host_ip") != NULL){
	    sscanf(line, "host_ip: %s\n", ip_addr);
	}
	else if(strstr(line, "port") != NULL){
	    sscanf(line, "port: %d\n", &port);
	}
	else{
	    fprintf(stderr, "Unrecognized line found: %s. Ignoring.\n", line);
	}
    }
    fclose(fp);
    /* FINISH READING INPUT FILE */

    printf("Connecting to: %s:%d\n", ip_addr, port);

    /* SET UP TLS COMMUNICATION */
    SSL_library_init();
    ctx = initialize_client_CTX();
    server = open_port(ip_addr, port);
    ssl = SSL_new(ctx);
    SSL_set_fd(ssl, server);
    /* FINISH SETUP OF TLS COMMUNICATION */

    /* SEND HEART RATE TO SERVER */
    if (SSL_connect(ssl) == -1){ //make sure connection is valid
	fprintf(stderr, "Error. TLS connection failure. Aborting.\n");
	ERR_print_errors_fp(stderr);
	exit(1);
    }
    else {
	printf("Client-Server connection complete with %s encryption\n", SSL_get_cipher(ssl));
	display_server_certificate(ssl);
    }

    /* SEND SAMPLE RATE TO SERVER */
    memset(buf,0,sizeof(buf)); //clear out the buffer
    sprintf(buf, "IP: %s new_rate: %d", my_ip_addr, rate);
    printf("Sending message '%s' to server...\n", buf);
    SSL_write(ssl, buf, strlen(buf));

    /* PRINT RESPONSE FROM SERVER */
    memset(buf, 0, sizeof(buf));
    SSL_read(ssl, buf, sizeof(buf));
    printf("Received message '%s' from server\n", buf);
    /* FINISH PRINTING RESPONSE RATE TO SERVER */

    //clean up operations
    SSL_free(ssl);
    close(server);
    SSL_CTX_free(ctx);
    return 0;
}


text:
package gopdf

import (
	"bytes"
	"fmt"

	"github.com/signintech/pdft/minigopdf/fontmaker/core"
)

//SubfontDescriptorObj pdf subfont descriptorObj object
type SubfontDescriptorObj struct {
	buffer                bytes.Buffer
	PtrToSubsetFontObj    *SubsetFontObj
	indexObjPdfDictionary int
}

func (s *SubfontDescriptorObj) init(func() *GoPdf) {}

func (s *SubfontDescriptorObj) getType() string {
	return "SubFontDescriptor"
}
func (s *SubfontDescriptorObj) getObjBuff() *bytes.Buffer {
	return &s.buffer
}

func (s *SubfontDescriptorObj) build(objID int) error {

	ttfp := s.PtrToSubsetFontObj.GetTTFParser()
	//fmt.Printf("-->%d\n", ttfp.UnitsPerEm())
	s.buffer.WriteString("<<\n")
	s.buffer.WriteString("/Type /FontDescriptor\n")
	s.buffer.WriteString(fmt.Sprintf("/Ascent %d\n", DesignUnitsToPdf(ttfp.Ascender(), ttfp.UnitsPerEm())))
	s.buffer.WriteString(fmt.Sprintf("/CapHeight %d\n", DesignUnitsToPdf(ttfp.CapHeight(), ttfp.UnitsPerEm())))
	s.buffer.WriteString(fmt.Sprintf("/Descent %d\n", DesignUnitsToPdf(ttfp.Descender(), ttfp.UnitsPerEm())))
	s.buffer.WriteString(fmt.Sprintf("/Flags %d\n", ttfp.Flag()))
	s.buffer.WriteString(fmt.Sprintf("/FontBBox [%d %d %d %d]\n",
		DesignUnitsToPdf(ttfp.XMin(), ttfp.UnitsPerEm()),
		DesignUnitsToPdf(ttfp.YMin(), ttfp.UnitsPerEm()),
		DesignUnitsToPdf(ttfp.XMax(), ttfp.UnitsPerEm()),
		DesignUnitsToPdf(ttfp.YMax(), ttfp.UnitsPerEm()),
	))
	s.buffer.WriteString(fmt.Sprintf("/FontFile2 %d 0 R\n", s.indexObjPdfDictionary+1))
	s.buffer.WriteString(fmt.Sprintf("/FontName /%s\n", CreateEmbeddedFontSubsetName(s.PtrToSubsetFontObj.GetFamily())))
	s.buffer.WriteString(fmt.Sprintf("/ItalicAngle %d\n", ttfp.ItalicAngle()))
	s.buffer.WriteString("/StemV 0\n")
	s.buffer.WriteString(fmt.Sprintf("/XHeight %d\n", DesignUnitsToPdf(ttfp.XHeight(), ttfp.UnitsPerEm())))
	s.buffer.WriteString(">>\n")
	return nil
}

//SetIndexObjPdfDictionary set PdfDictionary pointer
func (s *SubfontDescriptorObj) SetIndexObjPdfDictionary(index int) {
	s.indexObjPdfDictionary = index
}

//SetPtrToSubsetFontObj set SubsetFont pointer
func (s *SubfontDescriptorObj) SetPtrToSubsetFontObj(ptr *SubsetFontObj) {
	s.PtrToSubsetFontObj = ptr
}

//DesignUnitsToPdf convert unit
func DesignUnitsToPdf(val int, unitsPerEm uint) int {
	return core.Round(float64(float64(val) * 1000.00 / float64(unitsPerEm)))
}

//GetObjBuff get buffer
func (s *SubfontDescriptorObj) GetObjBuff() *bytes.Buffer {
	return s.getObjBuff()
}

//Build build buffer
func (s *SubfontDescriptorObj) Build(objID int) error {
	return s.build(objID)
}


text:
import { config } from '../../config';
import { User } from '../../models';
import { IGoogleOAuthConfiguration, setOAuthGood } from '../config';
import { ensureFirstUser, findOrCreateUserSocialAuth, isFirstUserInitialised } from '../users';

const Strategy = require('passport-google-oauth20').Strategy;

class AuthError extends Error {

}

export interface IGoogleProfile {
  id: string;
  displayName: string;
  name: {
    familyName: string;
    givenName: string;
  };
  emails: Array<{
    value: string;
    verified: string;
  }>;
  photos: Array<{
    value: string;
  }>;
}

/**
 * Map Google OAuth data to a data object to jam into a User model
 */
export function mapAuthDataToUser(profile: IGoogleProfile) {
  const email = profile.emails[0].value;

  return {
    email,
    name: profile.displayName,
  };
}

/**
 * Map Google OAuth data to a data object to jam into a UserSocialAuth model
 */
export function mapAuthDataToUserSocialAuth(accessToken: string, refreshToken: string, profile: IGoogleProfile) {
  return {
    provider: 'google',
    socialId: profile.id,
    extra: {
      accessToken,
      refreshToken,
      profile,
    },
  };
}

/**
 * Login verification after successful Google Oauth flow. Takes the passed in data an:
 *
 *   1. Finds or creates the user based on their email address
 *   2. Finds or creates a social auth record and relates it to the user
 */
export async function verifyGoogleToken(accessToken: string, refreshToken: string, profile: IGoogleProfile): Promise<User> {

  const userData = mapAuthDataToUser(profile);

  if (!userData) {
    throw new Error('Error extracting user auth data');
  }

  if (!await isFirstUserInitialised()) {
    await ensureFirstUser(userData);
  }

  await setOAuthGood(true);

  const user = await User.findOne({
    where: { email: userData.email },
  });

  if (!user) {
    throw new AuthError(`User ${userData.email} is not yet registered with Moderator.`);
  }

  if (!user.isActive) {
    throw new AuthError(`User ${userData.email} has been deactivated.`);
  }

  const userSocialAuthData = mapAuthDataToUserSocialAuth(accessToken, refreshToken, profile);
  await findOrCreateUserSocialAuth(user, userSocialAuthData);

  return user;
}

export function getGoogleStrategy(
  oauthConfig: IGoogleOAuthConfiguration,
) {
  return new Strategy(
    {
      clientID: oauthConfig.id,
      clientSecret: oauthConfig.secret,
      callbackURL: `${config.get('api_url')}/auth/callback/google`,
      userProfileURL: 'https://www.googleapis.com/oauth2/v3/userinfo',
    },
    async (accessToken: string, refreshToken: string, profile: IGoogleProfile,
           callback: (err: any, user?: User | false, info?: any) => any) => {
      try {
        const user = await verifyGoogleToken(accessToken, refreshToken, profile);

        // Sync avatar
        if (profile.photos && profile.photos[0] && profile.photos[0].value) {
          await user.update({avatarURL: profile.photos[0].value});
        }

        callback(null, user);
      }
      catch (e) {
        if (e instanceof AuthError) {
          callback(null, false, {reason: e.message});
        }
        else {
          callback(e);
        }
      }
    },
  );
}


text:
(function () {
  'use strict';

  /**
   * @ngdoc controller
   * @name ExportInstanceNetworkPortController
   * @description
   * Controller for the Export Instance - Network Step.
   */
  angular
    .module('horizon.dashboard.aws.workflow.export-instance')
    .controller('ExportInstanceNetworkPortController', ExportInstanceNetworkPortController);

  ExportInstanceNetworkPortController.$inject = [
    '$scope',
    'horizon.framework.widgets.action-list.button-tooltip.row-warning.service'
  ];

  function ExportInstanceNetworkPortController($scope, tooltipService) {
    var ctrl = this;

    ctrl.portStatuses = {
      'ACTIVE': gettext('Active'),
      'DOWN': gettext('Down')
    };

    ctrl.portAdminStates = {
      'UP': gettext('Up'),
      'DOWN': gettext('Down')
    };

    ctrl.vnicTypes = {
      'normal': gettext('Normal'),
      'direct': gettext('Direct'),
      'macvtap': gettext('MacVTap')
    };

    ctrl.tableDataMulti = {
      available: $scope.model.ports,
      allocated: $scope.model.newInstanceSpec.ports,
      displayedAvailable: [],
      displayedAllocated: []
    };

    ctrl.tableLimits = {
      maxAllocation: -1
    };

    ctrl.tableHelpText = {
      allocHelpText: gettext('Select ports from those listed below.')
    };

    ctrl.tooltipModel = tooltipService;

    ctrl.nameOrID = function nameOrId(data) {
      return angular.isDefined(data.name) && data.name !== '' ? data.name : data.id;
    };
  }
})();


text:
<?php

/** @file
* @brief
*/

include ('../inc/includes.php');

Session::checkRight("budget", READ);

Html::header(Budget::getTypeName(1), $_SERVER['PHP_SELF'], "management", "budget");

Search::show('Budget');

Html::footer();


text:
package container

import (
	"sort"
)

// RingBuffer is a generic ring buffer implementation that contains
// sequential data (i.e. such as time ordered data).
// RingBuffer is implemented using slices. From testing, this should
// be fast than linked-list implementations, and also allows for efficient
// indexing of ordered data.
type RingBuffer struct {
	buffer  []interface{}
	next    int // index of ring buffer head.
	maxSize int
}

// NewRingBuffer constructs a new ring buffer for a given buffer size.
func NewRingBuffer(bufferSize int) *RingBuffer {
	return &RingBuffer{
		buffer:  make([]interface{}, 0, bufferSize),
		maxSize: bufferSize,
	}
}

func (eb *RingBuffer) isFull() bool {
	return len(eb.buffer) >= eb.maxSize
}

func (eb *RingBuffer) incr() {
	eb.next = (eb.next + 1) % eb.maxSize
}

// Add adds an element to the buffer.
func (eb *RingBuffer) Add(e interface{}) {
	if eb.maxSize == 0 {
		return
	}
	if eb.isFull() {
		eb.buffer[eb.next] = e
		eb.incr()
		return
	}
	eb.incr()
	eb.buffer = append(eb.buffer, e)
}

func (eb *RingBuffer) dumpWithCallback(callback func(v interface{})) {
	for i := 0; i < len(eb.buffer); i++ {
		callback(eb.at(i))
	}
}

func (eb *RingBuffer) at(i int) interface{} {
	return eb.buffer[eb.mapIndex(i)]
}

// firstValidIndex returns the first **absolute** index in the buffer that satisfies
// isValid.
// note: this value needs to be mapped before indexing the buffer.
func (eb *RingBuffer) firstValidIndex(isValid func(interface{}) bool) int {
	return sort.Search(len(eb.buffer), func(i int) bool {
		return isValid(eb.at(i))
	})
}

// IterateValid calls the callback on each element of the buffer, starting with
// the first element in the buffer that satisfies "isValid".
func (eb *RingBuffer) IterateValid(isValid func(interface{}) bool, callback func(interface{})) {
	startIndex := eb.firstValidIndex(isValid)
	l := len(eb.buffer) - startIndex
	for i := 0; i < l; i++ {
		index := eb.mapIndex(startIndex + i)
		callback(eb.buffer[index])
	}
}

// maps index in [0:len(buffer)) to the actual index in buffer.
func (eb *RingBuffer) mapIndex(indexOffset int) int {
	ret := (eb.next + indexOffset) % len(eb.buffer)
	return ret
}

// Compact clears out invalidated elements in the buffer.
// This may require copying the entire buffer.
// It is assumed that if buffer[i] is invalid then every entry [0...i-1] is also not valid.
func (eb *RingBuffer) Compact(isValid func(interface{}) bool) {
	if len(eb.buffer) == 0 {
		return
	}
	startIndex := eb.firstValidIndex(isValid)
	// In this case, we compact the entire buffer.
	if startIndex >= len(eb.buffer) {
		eb.buffer = []interface{}{}
		eb.next = 0
		return
	}

	mappedStart := eb.mapIndex(startIndex) // mapped start is the new index 0 of our buffer.
	// new length will be how long the current buffer is, minus the absolute starting index.
	newBufferLength := len(eb.buffer) - startIndex
	// case where the head index is to the left of the tail index.
	// e.x. [... head, tail, ...]
	// mappedStart + newBufferLength is the upper bound of the new buffer list
	// if we don't have to worry about mapping.
	//
	// e.x. [mappedStart:mappedStart+newBufferLength] <- this is our new buffer.
	//
	// If this value is less than or equal to the length then we don't need
	// to worry about any part of the list wrapping around.
	if mappedStart+newBufferLength > len(eb.buffer) {
		// now we can find the actual end index, by offsetting the startIndex
		// by the length and mapping it.
		// [... startIndex+newBufferLen ... startIndex ...]
		end := eb.mapIndex(startIndex + newBufferLength)
		tmp := make([]interface{}, len(eb.buffer[:end]))
		copy(tmp, eb.buffer[:end])

		eb.buffer = eb.buffer[mappedStart:]
		eb.buffer = append(eb.buffer, tmp...)

		// at this point the buffer is such that the 0th element
		// maps to the 0th index in the buffer array.
		eb.next = len(eb.buffer)
		if eb.isFull() {
			eb.next = eb.next % eb.maxSize
		}
		return
	}
	// otherwise, the head is to the right of the tail.
	begin := mappedStart
	end := mappedStart + newBufferLength
	eb.buffer = eb.buffer[begin:end]
	eb.next = len(eb.buffer)
	if eb.isFull() {
		eb.next = eb.next % eb.maxSize
	}
}

// Iterate is a convenience function over IterateValid that iterates
// all elements in the buffer.
func (eb *RingBuffer) Iterate(callback func(interface{})) {
	eb.IterateValid(func(e interface{}) bool { return true }, callback)
}

// Size returns the size of the buffer.
func (eb *RingBuffer) Size() int {
	return len(eb.buffer)
}


text:
<?php

final class NuanceGitHubIssuesImportCursor
  extends NuanceGitHubImportCursor {

  const CURSORTYPE = 'github.issues';

  protected function getGitHubAPIEndpointURI($user, $repository) {
    return "/repos/{$user}/{$repository}/issues/events";
  }

  protected function newNuanceItemFromGitHubRecord(array $record) {
    $source = $this->getSource();

    $id = $record['id'];
    $item_key = "github.issueevent.{$id}";

    $container_key = null;

    return NuanceItem::initializeNewItem(NuanceGitHubEventItemType::ITEMTYPE)
      ->setStatus(NuanceItem::STATUS_IMPORTING)
      ->setSourcePHID($source->getPHID())
      ->setItemKey($item_key)
      ->setItemContainerKey($container_key)
      ->setItemProperty('api.type', 'issue')
      ->setItemProperty('api.raw', $record);
  }

}


text:
.. Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.

.. include:: ../../common.defs

.. _admin-plugins-stats-over-http:

Stats Over HTTP Plugin
**********************

This plugin implements an HTTP interface to all Traffic Server statistics. The
metrics returned are in a JSON format, for easy processing. This plugin is now
part of the standard ATS build process, and should be available after install.

Enabling Stats Over HTTP
========================

To enable this plugin, add to the :file:`plugin.config` file::

    stats_over_http.so

After starting Traffic Server, the JSON metrics are now available on the
default URL::

    http://host:port/_stats

where host and port is the hostname/IP and port number of the server.

Plugin Options
==============

.. option:: --integer-counters

This option causes the plugin to emit floating point and integral
metric values as JSON numbers, rather then JSON strings. This can
cause interoperability problems since integer metrics have a 64-bit
unsigned range.

.. option:: --wrap-counters

This option wraps 64-bit unsigned values to the 64-bit signed range.
This aids interoperability with Java, since prior to the Java SE 8
release, Java did not have a 64-bit unsigned type.

You can optionally modify the path to use, and this is highly
recommended in a public facing server. For example::

    stats_over_http.so 81c075bc0cca1435ea899ba4ad72766b

and the URL would then be e.g.::

    https://host:port/81c075bc0cca1435ea899ba4ad72766b

This is weak security at best, since the secret could possibly leak if you are
careless and send it over clear text.


text:
package dtl

import (
	"context"

	original "github.com/Azure/azure-sdk-for-go/services/devtestlabs/mgmt/2018-09-15/dtl"
)

const (
	DefaultBaseURI = original.DefaultBaseURI
)

type CostThresholdStatus = original.CostThresholdStatus

const (
	Disabled CostThresholdStatus = original.Disabled
	Enabled  CostThresholdStatus = original.Enabled
)

type CostType = original.CostType

const (
	Projected   CostType = original.Projected
	Reported    CostType = original.Reported
	Unavailable CostType = original.Unavailable
)

type CustomImageOsType = original.CustomImageOsType

const (
	Linux   CustomImageOsType = original.Linux
	None    CustomImageOsType = original.None
	Windows CustomImageOsType = original.Windows
)

type EnableStatus = original.EnableStatus

const (
	EnableStatusDisabled EnableStatus = original.EnableStatusDisabled
	EnableStatusEnabled  EnableStatus = original.EnableStatusEnabled
)

type EnvironmentPermission = original.EnvironmentPermission

const (
	Contributor EnvironmentPermission = original.Contributor
	Reader      EnvironmentPermission = original.Reader
)

type FileUploadOptions = original.FileUploadOptions

const (
	FileUploadOptionsNone                            FileUploadOptions = original.FileUploadOptionsNone
	FileUploadOptionsUploadFilesAndGenerateSasTokens FileUploadOptions = original.FileUploadOptionsUploadFilesAndGenerateSasTokens
)

type HTTPStatusCode = original.HTTPStatusCode

const (
	Accepted                     HTTPStatusCode = original.Accepted
	BadGateway                   HTTPStatusCode = original.BadGateway
	BadRequest                   HTTPStatusCode = original.BadRequest
	Conflict                     HTTPStatusCode = original.Conflict
	Continue                     HTTPStatusCode = original.Continue
	Created                      HTTPStatusCode = original.Created
	ExpectationFailed            HTTPStatusCode = original.ExpectationFailed
	Forbidden                    HTTPStatusCode = original.Forbidden
	GatewayTimeout               HTTPStatusCode = original.GatewayTimeout
	Gone                         HTTPStatusCode = original.Gone
	HTTPVersionNotSupported      HTTPStatusCode = original.HTTPVersionNotSupported
	InternalServerError          HTTPStatusCode = original.InternalServerError
	LengthRequired               HTTPStatusCode = original.LengthRequired
	MethodNotAllowed             HTTPStatusCode = original.MethodNotAllowed
	MovedPermanently             HTTPStatusCode = original.MovedPermanently
	MultipleChoices              HTTPStatusCode = original.MultipleChoices
	NoContent                    HTTPStatusCode = original.NoContent
	NonAuthoritativeInformation  HTTPStatusCode = original.NonAuthoritativeInformation
	NotAcceptable                HTTPStatusCode = original.NotAcceptable
	NotFound                     HTTPStatusCode = original.NotFound
	NotImplemented               HTTPStatusCode = original.NotImplemented
	NotModified                  HTTPStatusCode = original.NotModified
	OK                           HTTPStatusCode = original.OK
	PartialContent               HTTPStatusCode = original.PartialContent
	PaymentRequired              HTTPStatusCode = original.PaymentRequired
	PreconditionFailed           HTTPStatusCode = original.PreconditionFailed
	ProxyAuthenticationRequired  HTTPStatusCode = original.ProxyAuthenticationRequired
	Redirect                     HTTPStatusCode = original.Redirect
	RequestedRangeNotSatisfiable HTTPStatusCode = original.RequestedRangeNotSatisfiable
	RequestEntityTooLarge        HTTPStatusCode = original.RequestEntityTooLarge
	RequestTimeout               HTTPStatusCode = original.RequestTimeout
	RequestURITooLong            HTTPStatusCode = original.RequestURITooLong
	ResetContent                 HTTPStatusCode = original.ResetContent
	SeeOther                     HTTPStatusCode = original.SeeOther
	ServiceUnavailable           HTTPStatusCode = original.ServiceUnavailable
	SwitchingProtocols           HTTPStatusCode = original.SwitchingProtocols
	TemporaryRedirect            HTTPStatusCode = original.TemporaryRedirect
	Unauthorized                 HTTPStatusCode = original.Unauthorized
	UnsupportedMediaType         HTTPStatusCode = original.UnsupportedMediaType
	Unused                       HTTPStatusCode = original.Unused
	UpgradeRequired              HTTPStatusCode = original.UpgradeRequired
	UseProxy                     HTTPStatusCode = original.UseProxy
)

type HostCachingOptions = original.HostCachingOptions

const (
	HostCachingOptionsNone      HostCachingOptions = original.HostCachingOptionsNone
	HostCachingOptionsReadOnly  HostCachingOptions = original.HostCachingOptionsReadOnly
	HostCachingOptionsReadWrite HostCachingOptions = original.HostCachingOptionsReadWrite
)

type LinuxOsState = original.LinuxOsState

const (
	DeprovisionApplied   LinuxOsState = original.DeprovisionApplied
	DeprovisionRequested LinuxOsState = original.DeprovisionRequested
	NonDeprovisioned     LinuxOsState = original.NonDeprovisioned
)

type NotificationChannelEventType = original.NotificationChannelEventType

const (
	AutoShutdown NotificationChannelEventType = original.AutoShutdown
	Cost         NotificationChannelEventType = original.Cost
)

type PolicyEvaluatorType = original.PolicyEvaluatorType

const (
	AllowedValuesPolicy PolicyEvaluatorType = original.AllowedValuesPolicy
	MaxValuePolicy      PolicyEvaluatorType = original.MaxValuePolicy
)

type PolicyFactName = original.PolicyFactName

const (
	PolicyFactNameEnvironmentTemplate         PolicyFactName = original.PolicyFactNameEnvironmentTemplate
	PolicyFactNameGalleryImage                PolicyFactName = original.PolicyFactNameGalleryImage
	PolicyFactNameLabPremiumVMCount           PolicyFactName = original.PolicyFactNameLabPremiumVMCount
	PolicyFactNameLabTargetCost               PolicyFactName = original.PolicyFactNameLabTargetCost
	PolicyFactNameLabVMCount                  PolicyFactName = original.PolicyFactNameLabVMCount
	PolicyFactNameLabVMSize                   PolicyFactName = original.PolicyFactNameLabVMSize
	PolicyFactNameScheduleEditPermission      PolicyFactName = original.PolicyFactNameScheduleEditPermission
	PolicyFactNameUserOwnedLabPremiumVMCount  PolicyFactName = original.PolicyFactNameUserOwnedLabPremiumVMCount
	PolicyFactNameUserOwnedLabVMCount         PolicyFactName = original.PolicyFactNameUserOwnedLabVMCount
	PolicyFactNameUserOwnedLabVMCountInSubnet PolicyFactName = original.PolicyFactNameUserOwnedLabVMCountInSubnet
)

type PolicyStatus = original.PolicyStatus

const (
	PolicyStatusDisabled PolicyStatus = original.PolicyStatusDisabled
	PolicyStatusEnabled  PolicyStatus = original.PolicyStatusEnabled
)

type PremiumDataDisk = original.PremiumDataDisk

const (
	PremiumDataDiskDisabled PremiumDataDisk = original.PremiumDataDiskDisabled
	PremiumDataDiskEnabled  PremiumDataDisk = original.PremiumDataDiskEnabled
)

type ReportingCycleType = original.ReportingCycleType

const (
	CalendarMonth ReportingCycleType = original.CalendarMonth
	Custom        ReportingCycleType = original.Custom
)

type SourceControlType = original.SourceControlType

const (
	GitHub SourceControlType = original.GitHub
	VsoGit SourceControlType = original.VsoGit
)

type StorageType = original.StorageType

const (
	Premium     StorageType = original.Premium
	Standard    StorageType = original.Standard
	StandardSSD StorageType = original.StandardSSD
)

type TargetCostStatus = original.TargetCostStatus

const (
	TargetCostStatusDisabled TargetCostStatus = original.TargetCostStatusDisabled
	TargetCostStatusEnabled  TargetCostStatus = original.TargetCostStatusEnabled
)

type TransportProtocol = original.TransportProtocol

const (
	TCP TransportProtocol = original.TCP
	UDP TransportProtocol = original.UDP
)

type UsagePermissionType = original.UsagePermissionType

const (
	Allow   UsagePermissionType = original.Allow
	Default UsagePermissionType = original.Default
	Deny    UsagePermissionType = original.Deny
)

type VirtualMachineCreationSource = original.VirtualMachineCreationSource

const (
	FromCustomImage        VirtualMachineCreationSource = original.FromCustomImage
	FromGalleryImage       VirtualMachineCreationSource = original.FromGalleryImage
	FromSharedGalleryImage VirtualMachineCreationSource = original.FromSharedGalleryImage
)

type WindowsOsState = original.WindowsOsState

const (
	NonSysprepped    WindowsOsState = original.NonSysprepped
	SysprepApplied   WindowsOsState = original.SysprepApplied
	SysprepRequested WindowsOsState = original.SysprepRequested
)

type ApplicableSchedule = original.ApplicableSchedule
type ApplicableScheduleFragment = original.ApplicableScheduleFragment
type ApplicableScheduleProperties = original.ApplicableScheduleProperties
type ApplicableSchedulePropertiesFragment = original.ApplicableSchedulePropertiesFragment
type ApplyArtifactsRequest = original.ApplyArtifactsRequest
type ArmTemplate = original.ArmTemplate
type ArmTemplateInfo = original.ArmTemplateInfo
type ArmTemplateList = original.ArmTemplateList
type ArmTemplateListIterator = original.ArmTemplateListIterator
type ArmTemplateListPage = original.ArmTemplateListPage
type ArmTemplateParameterProperties = original.ArmTemplateParameterProperties
type ArmTemplateParameterPropertiesFragment = original.ArmTemplateParameterPropertiesFragment
type ArmTemplateProperties = original.ArmTemplateProperties
type ArmTemplatesClient = original.ArmTemplatesClient
type Artifact = original.Artifact
type ArtifactDeploymentStatusProperties = original.ArtifactDeploymentStatusProperties
type ArtifactDeploymentStatusPropertiesFragment = original.ArtifactDeploymentStatusPropertiesFragment
type ArtifactInstallProperties = original.ArtifactInstallProperties
type ArtifactInstallPropertiesFragment = original.ArtifactInstallPropertiesFragment
type ArtifactList = original.ArtifactList
type ArtifactListIterator = original.ArtifactListIterator
type ArtifactListPage = original.ArtifactListPage
type ArtifactParameterProperties = original.ArtifactParameterProperties
type ArtifactParameterPropertiesFragment = original.ArtifactParameterPropertiesFragment
type ArtifactProperties = original.ArtifactProperties
type ArtifactSource = original.ArtifactSource
type ArtifactSourceFragment = original.ArtifactSourceFragment
type ArtifactSourceList = original.ArtifactSourceList
type ArtifactSourceListIterator = original.ArtifactSourceListIterator
type ArtifactSourceListPage = original.ArtifactSourceListPage
type ArtifactSourceProperties = original.ArtifactSourceProperties
type ArtifactSourcePropertiesFragment = original.ArtifactSourcePropertiesFragment
type ArtifactSourcesClient = original.ArtifactSourcesClient
type ArtifactsClient = original.ArtifactsClient
type AttachDiskProperties = original.AttachDiskProperties
type AttachNewDataDiskOptions = original.AttachNewDataDiskOptions
type AttachNewDataDiskOptionsFragment = original.AttachNewDataDiskOptionsFragment
type BaseClient = original.BaseClient
type BulkCreationParameters = original.BulkCreationParameters
type BulkCreationParametersFragment = original.BulkCreationParametersFragment
type CloudError = original.CloudError
type CloudErrorBody = original.CloudErrorBody
type ComputeDataDisk = original.ComputeDataDisk
type ComputeDataDiskFragment = original.ComputeDataDiskFragment
type ComputeVMInstanceViewStatus = original.ComputeVMInstanceViewStatus
type ComputeVMInstanceViewStatusFragment = original.ComputeVMInstanceViewStatusFragment
type ComputeVMProperties = original.ComputeVMProperties
type ComputeVMPropertiesFragment = original.ComputeVMPropertiesFragment
type CostThresholdProperties = original.CostThresholdProperties
type CostsClient = original.CostsClient
type CustomImage = original.CustomImage
type CustomImageFragment = original.CustomImageFragment
type CustomImageList = original.CustomImageList
type CustomImageListIterator = original.CustomImageListIterator
type CustomImageListPage = original.CustomImageListPage
type CustomImageProperties = original.CustomImageProperties
type CustomImagePropertiesCustom = original.CustomImagePropertiesCustom
type CustomImagePropertiesCustomFragment = original.CustomImagePropertiesCustomFragment
type CustomImagePropertiesFragment = original.CustomImagePropertiesFragment
type CustomImagePropertiesFromPlan = original.CustomImagePropertiesFromPlan
type CustomImagePropertiesFromPlanFragment = original.CustomImagePropertiesFromPlanFragment
type CustomImagePropertiesFromVM = original.CustomImagePropertiesFromVM
type CustomImagePropertiesFromVMFragment = original.CustomImagePropertiesFromVMFragment
type CustomImagesClient = original.CustomImagesClient
type CustomImagesCreateOrUpdateFuture = original.CustomImagesCreateOrUpdateFuture
type CustomImagesDeleteFuture = original.CustomImagesDeleteFuture
type DataDiskProperties = original.DataDiskProperties
type DataDiskPropertiesFragment = original.DataDiskPropertiesFragment
type DataDiskStorageTypeInfo = original.DataDiskStorageTypeInfo
type DataDiskStorageTypeInfoFragment = original.DataDiskStorageTypeInfoFragment
type DayDetails = original.DayDetails
type DayDetailsFragment = original.DayDetailsFragment
type DetachDataDiskProperties = original.DetachDataDiskProperties
type DetachDiskProperties = original.DetachDiskProperties
type Disk = original.Disk
type DiskFragment = original.DiskFragment
type DiskList = original.DiskList
type DiskListIterator = original.DiskListIterator
type DiskListPage = original.DiskListPage
type DiskProperties = original.DiskProperties
type DiskPropertiesFragment = original.DiskPropertiesFragment
type DisksAttachFuture = original.DisksAttachFuture
type DisksClient = original.DisksClient
type DisksCreateOrUpdateFuture = original.DisksCreateOrUpdateFuture
type DisksDeleteFuture = original.DisksDeleteFuture
type DisksDetachFuture = original.DisksDetachFuture
type Environment = original.Environment
type EnvironmentDeploymentProperties = original.EnvironmentDeploymentProperties
type EnvironmentDeploymentPropertiesFragment = original.EnvironmentDeploymentPropertiesFragment
type EnvironmentFragment = original.EnvironmentFragment
type EnvironmentList = original.EnvironmentList
type EnvironmentListIterator = original.EnvironmentListIterator
type EnvironmentListPage = original.EnvironmentListPage
type EnvironmentProperties = original.EnvironmentProperties
type EnvironmentPropertiesFragment = original.EnvironmentPropertiesFragment
type EnvironmentsClient = original.EnvironmentsClient
type EnvironmentsCreateOrUpdateFuture = original.EnvironmentsCreateOrUpdateFuture
type EnvironmentsDeleteFuture = original.EnvironmentsDeleteFuture
type EvaluatePoliciesProperties = original.EvaluatePoliciesProperties
type EvaluatePoliciesRequest = original.EvaluatePoliciesRequest
type EvaluatePoliciesResponse = original.EvaluatePoliciesResponse
type Event = original.Event
type EventFragment = original.EventFragment
type ExportResourceUsageParameters = original.ExportResourceUsageParameters
type ExternalSubnet = original.ExternalSubnet
type ExternalSubnetFragment = original.ExternalSubnetFragment
type Formula = original.Formula
type FormulaFragment = original.FormulaFragment
type FormulaList = original.FormulaList
type FormulaListIterator = original.FormulaListIterator
type FormulaListPage = original.FormulaListPage
type FormulaProperties = original.FormulaProperties
type FormulaPropertiesFragment = original.FormulaPropertiesFragment
type FormulaPropertiesFromVM = original.FormulaPropertiesFromVM
type FormulaPropertiesFromVMFragment = original.FormulaPropertiesFromVMFragment
type FormulasClient = original.FormulasClient
type FormulasCreateOrUpdateFuture = original.FormulasCreateOrUpdateFuture
type GalleryImage = original.GalleryImage
type GalleryImageList = original.GalleryImageList
type GalleryImageListIterator = original.GalleryImageListIterator
type GalleryImageListPage = original.GalleryImageListPage
type GalleryImageProperties = original.GalleryImageProperties
type GalleryImageReference = original.GalleryImageReference
type GalleryImageReferenceFragment = original.GalleryImageReferenceFragment
type GalleryImagesClient = original.GalleryImagesClient
type GenerateArmTemplateRequest = original.GenerateArmTemplateRequest
type GenerateUploadURIParameter = original.GenerateUploadURIParameter
type GenerateUploadURIResponse = original.GenerateUploadURIResponse
type GlobalSchedulesClient = original.GlobalSchedulesClient
type GlobalSchedulesExecuteFuture = original.GlobalSchedulesExecuteFuture
type GlobalSchedulesRetargetFuture = original.GlobalSchedulesRetargetFuture
type HourDetails = original.HourDetails
type HourDetailsFragment = original.HourDetailsFragment
type IdentityProperties = original.IdentityProperties
type ImportLabVirtualMachineRequest = original.ImportLabVirtualMachineRequest
type InboundNatRule = original.InboundNatRule
type InboundNatRuleFragment = original.InboundNatRuleFragment
type Lab = original.Lab
type LabAnnouncementProperties = original.LabAnnouncementProperties
type LabAnnouncementPropertiesFragment = original.LabAnnouncementPropertiesFragment
type LabCost = original.LabCost
type LabCostDetailsProperties = original.LabCostDetailsProperties
type LabCostProperties = original.LabCostProperties
type LabCostSummaryProperties = original.LabCostSummaryProperties
type LabFragment = original.LabFragment
type LabList = original.LabList
type LabListIterator = original.LabListIterator
type LabListPage = original.LabListPage
type LabProperties = original.LabProperties
type LabPropertiesFragment = original.LabPropertiesFragment
type LabResourceCostProperties = original.LabResourceCostProperties
type LabSupportProperties = original.LabSupportProperties
type LabSupportPropertiesFragment = original.LabSupportPropertiesFragment
type LabVhd = original.LabVhd
type LabVhdList = original.LabVhdList
type LabVhdListIterator = original.LabVhdListIterator
type LabVhdListPage = original.LabVhdListPage
type LabVirtualMachine = original.LabVirtualMachine
type LabVirtualMachineCreationParameter = original.LabVirtualMachineCreationParameter
type LabVirtualMachineCreationParameterFragment = original.LabVirtualMachineCreationParameterFragment
type LabVirtualMachineCreationParameterProperties = original.LabVirtualMachineCreationParameterProperties
type LabVirtualMachineCreationParameterPropertiesFragment = original.LabVirtualMachineCreationParameterPropertiesFragment
type LabVirtualMachineFragment = original.LabVirtualMachineFragment
type LabVirtualMachineList = original.LabVirtualMachineList
type LabVirtualMachineListIterator = original.LabVirtualMachineListIterator
type LabVirtualMachineListPage = original.LabVirtualMachineListPage
type LabVirtualMachineProperties = original.LabVirtualMachineProperties
type LabVirtualMachinePropertiesFragment = original.LabVirtualMachinePropertiesFragment
type LabsClaimAnyVMFuture = original.LabsClaimAnyVMFuture
type LabsClient = original.LabsClient
type LabsCreateEnvironmentFuture = original.LabsCreateEnvironmentFuture
type LabsCreateOrUpdateFuture = original.LabsCreateOrUpdateFuture
type LabsDeleteFuture = original.LabsDeleteFuture
type LabsExportResourceUsageFuture = original.LabsExportResourceUsageFuture
type LabsImportVirtualMachineFuture = original.LabsImportVirtualMachineFuture
type LinuxOsInfo = original.LinuxOsInfo
type LinuxOsInfoFragment = original.LinuxOsInfoFragment
type NetworkInterfaceProperties = original.NetworkInterfaceProperties
type NetworkInterfacePropertiesFragment = original.NetworkInterfacePropertiesFragment
type NotificationChannel = original.NotificationChannel
type NotificationChannelFragment = original.NotificationChannelFragment
type NotificationChannelList = original.NotificationChannelList
type NotificationChannelListIterator = original.NotificationChannelListIterator
type NotificationChannelListPage = original.NotificationChannelListPage
type NotificationChannelProperties = original.NotificationChannelProperties
type NotificationChannelPropertiesFragment = original.NotificationChannelPropertiesFragment
type NotificationChannelsClient = original.NotificationChannelsClient
type NotificationSettings = original.NotificationSettings
type NotificationSettingsFragment = original.NotificationSettingsFragment
type NotifyParameters = original.NotifyParameters
type OperationError = original.OperationError
type OperationMetadata = original.OperationMetadata
type OperationMetadataDisplay = original.OperationMetadataDisplay
type OperationResult = original.OperationResult
type OperationsClient = original.OperationsClient
type ParameterInfo = original.ParameterInfo
type ParametersValueFileInfo = original.ParametersValueFileInfo
type PercentageCostThresholdProperties = original.PercentageCostThresholdProperties
type PoliciesClient = original.PoliciesClient
type Policy = original.Policy
type PolicyFragment = original.PolicyFragment
type PolicyList = original.PolicyList
type PolicyListIterator = original.PolicyListIterator
type PolicyListPage = original.PolicyListPage
type PolicyProperties = original.PolicyProperties
type PolicyPropertiesFragment = original.PolicyPropertiesFragment
type PolicySetResult = original.PolicySetResult
type PolicySetsClient = original.PolicySetsClient
type PolicyViolation = original.PolicyViolation
type Port = original.Port
type PortFragment = original.PortFragment
type ProviderOperationResult = original.ProviderOperationResult
type ProviderOperationResultIterator = original.ProviderOperationResultIterator
type ProviderOperationResultPage = original.ProviderOperationResultPage
type ProviderOperationsClient = original.ProviderOperationsClient
type RdpConnection = original.RdpConnection
type ResizeLabVirtualMachineProperties = original.ResizeLabVirtualMachineProperties
type Resource = original.Resource
type RetargetScheduleProperties = original.RetargetScheduleProperties
type Schedule = original.Schedule
type ScheduleCreationParameter = original.ScheduleCreationParameter
type ScheduleCreationParameterFragment = original.ScheduleCreationParameterFragment
type ScheduleCreationParameterProperties = original.ScheduleCreationParameterProperties
type ScheduleCreationParameterPropertiesFragment = original.ScheduleCreationParameterPropertiesFragment
type ScheduleFragment = original.ScheduleFragment
type ScheduleList = original.ScheduleList
type ScheduleListIterator = original.ScheduleListIterator
type ScheduleListPage = original.ScheduleListPage
type ScheduleProperties = original.ScheduleProperties
type SchedulePropertiesFragment = original.SchedulePropertiesFragment
type SchedulesClient = original.SchedulesClient
type SchedulesExecuteFuture = original.SchedulesExecuteFuture
type Secret = original.Secret
type SecretFragment = original.SecretFragment
type SecretList = original.SecretList
type SecretListIterator = original.SecretListIterator
type SecretListPage = original.SecretListPage
type SecretProperties = original.SecretProperties
type SecretPropertiesFragment = original.SecretPropertiesFragment
type SecretsClient = original.SecretsClient
type SecretsCreateOrUpdateFuture = original.SecretsCreateOrUpdateFuture
type ServiceFabric = original.ServiceFabric
type ServiceFabricFragment = original.ServiceFabricFragment
type ServiceFabricList = original.ServiceFabricList
type ServiceFabricListIterator = original.ServiceFabricListIterator
type ServiceFabricListPage = original.ServiceFabricListPage
type ServiceFabricProperties = original.ServiceFabricProperties
type ServiceFabricPropertiesFragment = original.ServiceFabricPropertiesFragment
type ServiceFabricSchedulesClient = original.ServiceFabricSchedulesClient
type ServiceFabricSchedulesExecuteFuture = original.ServiceFabricSchedulesExecuteFuture
type ServiceFabricsClient = original.ServiceFabricsClient
type ServiceFabricsCreateOrUpdateFuture = original.ServiceFabricsCreateOrUpdateFuture
type ServiceFabricsDeleteFuture = original.ServiceFabricsDeleteFuture
type ServiceFabricsStartFuture = original.ServiceFabricsStartFuture
type ServiceFabricsStopFuture = original.ServiceFabricsStopFuture
type ServiceRunner = original.ServiceRunner
type ServiceRunnersClient = original.ServiceRunnersClient
type SharedPublicIPAddressConfiguration = original.SharedPublicIPAddressConfiguration
type SharedPublicIPAddressConfigurationFragment = original.SharedPublicIPAddressConfigurationFragment
type ShutdownNotificationContent = original.ShutdownNotificationContent
type Subnet = original.Subnet
type SubnetFragment = original.SubnetFragment
type SubnetOverride = original.SubnetOverride
type SubnetOverrideFragment = original.SubnetOverrideFragment
type SubnetSharedPublicIPAddressConfiguration = original.SubnetSharedPublicIPAddressConfiguration
type SubnetSharedPublicIPAddressConfigurationFragment = original.SubnetSharedPublicIPAddressConfigurationFragment
type TargetCostProperties = original.TargetCostProperties
type UpdateResource = original.UpdateResource
type User = original.User
type UserFragment = original.UserFragment
type UserIdentity = original.UserIdentity
type UserIdentityFragment = original.UserIdentityFragment
type UserList = original.UserList
type UserListIterator = original.UserListIterator
type UserListPage = original.UserListPage
type UserProperties = original.UserProperties
type UserPropertiesFragment = original.UserPropertiesFragment
type UserSecretStore = original.UserSecretStore
type UserSecretStoreFragment = original.UserSecretStoreFragment
type UsersClient = original.UsersClient
type UsersCreateOrUpdateFuture = original.UsersCreateOrUpdateFuture
type UsersDeleteFuture = original.UsersDeleteFuture
type VirtualMachineSchedulesClient = original.VirtualMachineSchedulesClient
type VirtualMachineSchedulesExecuteFuture = original.VirtualMachineSchedulesExecuteFuture
type VirtualMachinesAddDataDiskFuture = original.VirtualMachinesAddDataDiskFuture
type VirtualMachinesApplyArtifactsFuture = original.VirtualMachinesApplyArtifactsFuture
type VirtualMachinesClaimFuture = original.VirtualMachinesClaimFuture
type VirtualMachinesClient = original.VirtualMachinesClient
type VirtualMachinesCreateOrUpdateFuture = original.VirtualMachinesCreateOrUpdateFuture
type VirtualMachinesDeleteFuture = original.VirtualMachinesDeleteFuture
type VirtualMachinesDetachDataDiskFuture = original.VirtualMachinesDetachDataDiskFuture
type VirtualMachinesRedeployFuture = original.VirtualMachinesRedeployFuture
type VirtualMachinesResizeFuture = original.VirtualMachinesResizeFuture
type VirtualMachinesRestartFuture = original.VirtualMachinesRestartFuture
type VirtualMachinesStartFuture = original.VirtualMachinesStartFuture
type VirtualMachinesStopFuture = original.VirtualMachinesStopFuture
type VirtualMachinesTransferDisksFuture = original.VirtualMachinesTransferDisksFuture
type VirtualMachinesUnClaimFuture = original.VirtualMachinesUnClaimFuture
type VirtualNetwork = original.VirtualNetwork
type VirtualNetworkFragment = original.VirtualNetworkFragment
type VirtualNetworkList = original.VirtualNetworkList
type VirtualNetworkListIterator = original.VirtualNetworkListIterator
type VirtualNetworkListPage = original.VirtualNetworkListPage
type VirtualNetworkProperties = original.VirtualNetworkProperties
type VirtualNetworkPropertiesFragment = original.VirtualNetworkPropertiesFragment
type VirtualNetworksClient = original.VirtualNetworksClient
type VirtualNetworksCreateOrUpdateFuture = original.VirtualNetworksCreateOrUpdateFuture
type VirtualNetworksDeleteFuture = original.VirtualNetworksDeleteFuture
type WeekDetails = original.WeekDetails
type WeekDetailsFragment = original.WeekDetailsFragment
type WindowsOsInfo = original.WindowsOsInfo
type WindowsOsInfoFragment = original.WindowsOsInfoFragment

func New(subscriptionID string) BaseClient {
	return original.New(subscriptionID)
}
func NewArmTemplateListIterator(page ArmTemplateListPage) ArmTemplateListIterator {
	return original.NewArmTemplateListIterator(page)
}
func NewArmTemplateListPage(getNextPage func(context.Context, ArmTemplateList) (ArmTemplateList, error)) ArmTemplateListPage {
	return original.NewArmTemplateListPage(getNextPage)
}
func NewArmTemplatesClient(subscriptionID string) ArmTemplatesClient {
	return original.NewArmTemplatesClient(subscriptionID)
}
func NewArmTemplatesClientWithBaseURI(baseURI string, subscriptionID string) ArmTemplatesClient {
	return original.NewArmTemplatesClientWithBaseURI(baseURI, subscriptionID)
}
func NewArtifactListIterator(page ArtifactListPage) ArtifactListIterator {
	return original.NewArtifactListIterator(page)
}
func NewArtifactListPage(getNextPage func(context.Context, ArtifactList) (ArtifactList, error)) ArtifactListPage {
	return original.NewArtifactListPage(getNextPage)
}
func NewArtifactSourceListIterator(page ArtifactSourceListPage) ArtifactSourceListIterator {
	return original.NewArtifactSourceListIterator(page)
}
func NewArtifactSourceListPage(getNextPage func(context.Context, ArtifactSourceList) (ArtifactSourceList, error)) ArtifactSourceListPage {
	return original.NewArtifactSourceListPage(getNextPage)
}
func NewArtifactSourcesClient(subscriptionID string) ArtifactSourcesClient {
	return original.NewArtifactSourcesClient(subscriptionID)
}
func NewArtifactSourcesClientWithBaseURI(baseURI string, subscriptionID string) ArtifactSourcesClient {
	return original.NewArtifactSourcesClientWithBaseURI(baseURI, subscriptionID)
}
func NewArtifactsClient(subscriptionID string) ArtifactsClient {
	return original.NewArtifactsClient(subscriptionID)
}
func NewArtifactsClientWithBaseURI(baseURI string, subscriptionID string) ArtifactsClient {
	return original.NewArtifactsClientWithBaseURI(baseURI, subscriptionID)
}
func NewCostsClient(subscriptionID string) CostsClient {
	return original.NewCostsClient(subscriptionID)
}
func NewCostsClientWithBaseURI(baseURI string, subscriptionID string) CostsClient {
	return original.NewCostsClientWithBaseURI(baseURI, subscriptionID)
}
func NewCustomImageListIterator(page CustomImageListPage) CustomImageListIterator {
	return original.NewCustomImageListIterator(page)
}
func NewCustomImageListPage(getNextPage func(context.Context, CustomImageList) (CustomImageList, error)) CustomImageListPage {
	return original.NewCustomImageListPage(getNextPage)
}
func NewCustomImagesClient(subscriptionID string) CustomImagesClient {
	return original.NewCustomImagesClient(subscriptionID)
}
func NewCustomImagesClientWithBaseURI(baseURI string, subscriptionID string) CustomImagesClient {
	return original.NewCustomImagesClientWithBaseURI(baseURI, subscriptionID)
}
func NewDiskListIterator(page DiskListPage) DiskListIterator {
	return original.NewDiskListIterator(page)
}
func NewDiskListPage(getNextPage func(context.Context, DiskList) (DiskList, error)) DiskListPage {
	return original.NewDiskListPage(getNextPage)
}
func NewDisksClient(subscriptionID string) DisksClient {
	return original.NewDisksClient(subscriptionID)
}
func NewDisksClientWithBaseURI(baseURI string, subscriptionID string) DisksClient {
	return original.NewDisksClientWithBaseURI(baseURI, subscriptionID)
}
func NewEnvironmentListIterator(page EnvironmentListPage) EnvironmentListIterator {
	return original.NewEnvironmentListIterator(page)
}
func NewEnvironmentListPage(getNextPage func(context.Context, EnvironmentList) (EnvironmentList, error)) EnvironmentListPage {
	return original.NewEnvironmentListPage(getNextPage)
}
func NewEnvironmentsClient(subscriptionID string) EnvironmentsClient {
	return original.NewEnvironmentsClient(subscriptionID)
}
func NewEnvironmentsClientWithBaseURI(baseURI string, subscriptionID string) EnvironmentsClient {
	return original.NewEnvironmentsClientWithBaseURI(baseURI, subscriptionID)
}
func NewFormulaListIterator(page FormulaListPage) FormulaListIterator {
	return original.NewFormulaListIterator(page)
}
func NewFormulaListPage(getNextPage func(context.Context, FormulaList) (FormulaList, error)) FormulaListPage {
	return original.NewFormulaListPage(getNextPage)
}
func NewFormulasClient(subscriptionID string) FormulasClient {
	return original.NewFormulasClient(subscriptionID)
}
func NewFormulasClientWithBaseURI(baseURI string, subscriptionID string) FormulasClient {
	return original.NewFormulasClientWithBaseURI(baseURI, subscriptionID)
}
func NewGalleryImageListIterator(page GalleryImageListPage) GalleryImageListIterator {
	return original.NewGalleryImageListIterator(page)
}
func NewGalleryImageListPage(getNextPage func(context.Context, GalleryImageList) (GalleryImageList, error)) GalleryImageListPage {
	return original.NewGalleryImageListPage(getNextPage)
}
func NewGalleryImagesClient(subscriptionID string) GalleryImagesClient {
	return original.NewGalleryImagesClient(subscriptionID)
}
func NewGalleryImagesClientWithBaseURI(baseURI string, subscriptionID string) GalleryImagesClient {
	return original.NewGalleryImagesClientWithBaseURI(baseURI, subscriptionID)
}
func NewGlobalSchedulesClient(subscriptionID string) GlobalSchedulesClient {
	return original.NewGlobalSchedulesClient(subscriptionID)
}
func NewGlobalSchedulesClientWithBaseURI(baseURI string, subscriptionID string) GlobalSchedulesClient {
	return original.NewGlobalSchedulesClientWithBaseURI(baseURI, subscriptionID)
}
func NewLabListIterator(page LabListPage) LabListIterator {
	return original.NewLabListIterator(page)
}
func NewLabListPage(getNextPage func(context.Context, LabList) (LabList, error)) LabListPage {
	return original.NewLabListPage(getNextPage)
}
func NewLabVhdListIterator(page LabVhdListPage) LabVhdListIterator {
	return original.NewLabVhdListIterator(page)
}
func NewLabVhdListPage(getNextPage func(context.Context, LabVhdList) (LabVhdList, error)) LabVhdListPage {
	return original.NewLabVhdListPage(getNextPage)
}
func NewLabVirtualMachineListIterator(page LabVirtualMachineListPage) LabVirtualMachineListIterator {
	return original.NewLabVirtualMachineListIterator(page)
}
func NewLabVirtualMachineListPage(getNextPage func(context.Context, LabVirtualMachineList) (LabVirtualMachineList, error)) LabVirtualMachineListPage {
	return original.NewLabVirtualMachineListPage(getNextPage)
}
func NewLabsClient(subscriptionID string) LabsClient {
	return original.NewLabsClient(subscriptionID)
}
func NewLabsClientWithBaseURI(baseURI string, subscriptionID string) LabsClient {
	return original.NewLabsClientWithBaseURI(baseURI, subscriptionID)
}
func NewNotificationChannelListIterator(page NotificationChannelListPage) NotificationChannelListIterator {
	return original.NewNotificationChannelListIterator(page)
}
func NewNotificationChannelListPage(getNextPage func(context.Context, NotificationChannelList) (NotificationChannelList, error)) NotificationChannelListPage {
	return original.NewNotificationChannelListPage(getNextPage)
}
func NewNotificationChannelsClient(subscriptionID string) NotificationChannelsClient {
	return original.NewNotificationChannelsClient(subscriptionID)
}
func NewNotificationChannelsClientWithBaseURI(baseURI string, subscriptionID string) NotificationChannelsClient {
	return original.NewNotificationChannelsClientWithBaseURI(baseURI, subscriptionID)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
	return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
	return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewPoliciesClient(subscriptionID string) PoliciesClient {
	return original.NewPoliciesClient(subscriptionID)
}
func NewPoliciesClientWithBaseURI(baseURI string, subscriptionID string) PoliciesClient {
	return original.NewPoliciesClientWithBaseURI(baseURI, subscriptionID)
}
func NewPolicyListIterator(page PolicyListPage) PolicyListIterator {
	return original.NewPolicyListIterator(page)
}
func NewPolicyListPage(getNextPage func(context.Context, PolicyList) (PolicyList, error)) PolicyListPage {
	return original.NewPolicyListPage(getNextPage)
}
func NewPolicySetsClient(subscriptionID string) PolicySetsClient {
	return original.NewPolicySetsClient(subscriptionID)
}
func NewPolicySetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySetsClient {
	return original.NewPolicySetsClientWithBaseURI(baseURI, subscriptionID)
}
func NewProviderOperationResultIterator(page ProviderOperationResultPage) ProviderOperationResultIterator {
	return original.NewProviderOperationResultIterator(page)
}
func NewProviderOperationResultPage(getNextPage func(context.Context, ProviderOperationResult) (ProviderOperationResult, error)) ProviderOperationResultPage {
	return original.NewProviderOperationResultPage(getNextPage)
}
func NewProviderOperationsClient(subscriptionID string) ProviderOperationsClient {
	return original.NewProviderOperationsClient(subscriptionID)
}
func NewProviderOperationsClientWithBaseURI(baseURI string, subscriptionID string) ProviderOperationsClient {
	return original.NewProviderOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewScheduleListIterator(page ScheduleListPage) ScheduleListIterator {
	return original.NewScheduleListIterator(page)
}
func NewScheduleListPage(getNextPage func(context.Context, ScheduleList) (ScheduleList, error)) ScheduleListPage {
	return original.NewScheduleListPage(getNextPage)
}
func NewSchedulesClient(subscriptionID string) SchedulesClient {
	return original.NewSchedulesClient(subscriptionID)
}
func NewSchedulesClientWithBaseURI(baseURI string, subscriptionID string) SchedulesClient {
	return original.NewSchedulesClientWithBaseURI(baseURI, subscriptionID)
}
func NewSecretListIterator(page SecretListPage) SecretListIterator {
	return original.NewSecretListIterator(page)
}
func NewSecretListPage(getNextPage func(context.Context, SecretList) (SecretList, error)) SecretListPage {
	return original.NewSecretListPage(getNextPage)
}
func NewSecretsClient(subscriptionID string) SecretsClient {
	return original.NewSecretsClient(subscriptionID)
}
func NewSecretsClientWithBaseURI(baseURI string, subscriptionID string) SecretsClient {
	return original.NewSecretsClientWithBaseURI(baseURI, subscriptionID)
}
func NewServiceFabricListIterator(page ServiceFabricListPage) ServiceFabricListIterator {
	return original.NewServiceFabricListIterator(page)
}
func NewServiceFabricListPage(getNextPage func(context.Context, ServiceFabricList) (ServiceFabricList, error)) ServiceFabricListPage {
	return original.NewServiceFabricListPage(getNextPage)
}
func NewServiceFabricSchedulesClient(subscriptionID string) ServiceFabricSchedulesClient {
	return original.NewServiceFabricSchedulesClient(subscriptionID)
}
func NewServiceFabricSchedulesClientWithBaseURI(baseURI string, subscriptionID string) ServiceFabricSchedulesClient {
	return original.NewServiceFabricSchedulesClientWithBaseURI(baseURI, subscriptionID)
}
func NewServiceFabricsClient(subscriptionID string) ServiceFabricsClient {
	return original.NewServiceFabricsClient(subscriptionID)
}
func NewServiceFabricsClientWithBaseURI(baseURI string, subscriptionID string) ServiceFabricsClient {
	return original.NewServiceFabricsClientWithBaseURI(baseURI, subscriptionID)
}
func NewServiceRunnersClient(subscriptionID string) ServiceRunnersClient {
	return original.NewServiceRunnersClient(subscriptionID)
}
func NewServiceRunnersClientWithBaseURI(baseURI string, subscriptionID string) ServiceRunnersClient {
	return original.NewServiceRunnersClientWithBaseURI(baseURI, subscriptionID)
}
func NewUserListIterator(page UserListPage) UserListIterator {
	return original.NewUserListIterator(page)
}
func NewUserListPage(getNextPage func(context.Context, UserList) (UserList, error)) UserListPage {
	return original.NewUserListPage(getNextPage)
}
func NewUsersClient(subscriptionID string) UsersClient {
	return original.NewUsersClient(subscriptionID)
}
func NewUsersClientWithBaseURI(baseURI string, subscriptionID string) UsersClient {
	return original.NewUsersClientWithBaseURI(baseURI, subscriptionID)
}
func NewVirtualMachineSchedulesClient(subscriptionID string) VirtualMachineSchedulesClient {
	return original.NewVirtualMachineSchedulesClient(subscriptionID)
}
func NewVirtualMachineSchedulesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineSchedulesClient {
	return original.NewVirtualMachineSchedulesClientWithBaseURI(baseURI, subscriptionID)
}
func NewVirtualMachinesClient(subscriptionID string) VirtualMachinesClient {
	return original.NewVirtualMachinesClient(subscriptionID)
}
func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachinesClient {
	return original.NewVirtualMachinesClientWithBaseURI(baseURI, subscriptionID)
}
func NewVirtualNetworkListIterator(page VirtualNetworkListPage) VirtualNetworkListIterator {
	return original.NewVirtualNetworkListIterator(page)
}
func NewVirtualNetworkListPage(getNextPage func(context.Context, VirtualNetworkList) (VirtualNetworkList, error)) VirtualNetworkListPage {
	return original.NewVirtualNetworkListPage(getNextPage)
}
func NewVirtualNetworksClient(subscriptionID string) VirtualNetworksClient {
	return original.NewVirtualNetworksClient(subscriptionID)
}
func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string) VirtualNetworksClient {
	return original.NewVirtualNetworksClientWithBaseURI(baseURI, subscriptionID)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
	return original.NewWithBaseURI(baseURI, subscriptionID)
}
func PossibleCostThresholdStatusValues() []CostThresholdStatus {
	return original.PossibleCostThresholdStatusValues()
}
func PossibleCostTypeValues() []CostType {
	return original.PossibleCostTypeValues()
}
func PossibleCustomImageOsTypeValues() []CustomImageOsType {
	return original.PossibleCustomImageOsTypeValues()
}
func PossibleEnableStatusValues() []EnableStatus {
	return original.PossibleEnableStatusValues()
}
func PossibleEnvironmentPermissionValues() []EnvironmentPermission {
	return original.PossibleEnvironmentPermissionValues()
}
func PossibleFileUploadOptionsValues() []FileUploadOptions {
	return original.PossibleFileUploadOptionsValues()
}
func PossibleHTTPStatusCodeValues() []HTTPStatusCode {
	return original.PossibleHTTPStatusCodeValues()
}
func PossibleHostCachingOptionsValues() []HostCachingOptions {
	return original.PossibleHostCachingOptionsValues()
}
func PossibleLinuxOsStateValues() []LinuxOsState {
	return original.PossibleLinuxOsStateValues()
}
func PossibleNotificationChannelEventTypeValues() []NotificationChannelEventType {
	return original.PossibleNotificationChannelEventTypeValues()
}
func PossiblePolicyEvaluatorTypeValues() []PolicyEvaluatorType {
	return original.PossiblePolicyEvaluatorTypeValues()
}
func PossiblePolicyFactNameValues() []PolicyFactName {
	return original.PossiblePolicyFactNameValues()
}
func PossiblePolicyStatusValues() []PolicyStatus {
	return original.PossiblePolicyStatusValues()
}
func PossiblePremiumDataDiskValues() []PremiumDataDisk {
	return original.PossiblePremiumDataDiskValues()
}
func PossibleReportingCycleTypeValues() []ReportingCycleType {
	return original.PossibleReportingCycleTypeValues()
}
func PossibleSourceControlTypeValues() []SourceControlType {
	return original.PossibleSourceControlTypeValues()
}
func PossibleStorageTypeValues() []StorageType {
	return original.PossibleStorageTypeValues()
}
func PossibleTargetCostStatusValues() []TargetCostStatus {
	return original.PossibleTargetCostStatusValues()
}
func PossibleTransportProtocolValues() []TransportProtocol {
	return original.PossibleTransportProtocolValues()
}
func PossibleUsagePermissionTypeValues() []UsagePermissionType {
	return original.PossibleUsagePermissionTypeValues()
}
func PossibleVirtualMachineCreationSourceValues() []VirtualMachineCreationSource {
	return original.PossibleVirtualMachineCreationSourceValues()
}
func PossibleWindowsOsStateValues() []WindowsOsState {
	return original.PossibleWindowsOsStateValues()
}
func UserAgent() string {
	return original.UserAgent() + " profiles/preview"
}
func Version() string {
	return original.Version()
}


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Vaccinium jefense Luteyn & Wilbur

### Remarks
null


text:
package org.shaon.utd.sirius.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Fahad Shaon
 */
@Entity
@Table(name = "registered")
public class Registered {

    @Id
    private RegisteredPK registeredPK = new RegisteredPK();

    //bidirectional association!
    @Column(name = "student_id", nullable = false, updatable = false, insertable = false)
    private Long student;

    @Column(name = "section_id", nullable = false, updatable = false, insertable = false)
    private Long section;
    //...

    @Column(name = "numeric_grade")
    private Integer numericGrade;

    @Column(name = "letter_grade")
    private String letterGrade;

    public Integer getNumericGrade() {
        return numericGrade;
    }

    public void setNumericGrade(Integer numericGrade) {
        this.numericGrade = numericGrade;
    }

    public String getLetterGrade() {
        return letterGrade;
    }

    public void setLetterGrade(String letterGrade) {
        this.letterGrade = letterGrade;
    }

    public Student getStudent() {
        return registeredPK.getStudent();
    }

    public void setStudent(Student student) {
        this.registeredPK.setStudent(student);
    }

    public Section getSection() {
        return registeredPK.getSection();
    }

    public void setSection(Section section) {
        this.registeredPK.setSection(section);
    }
}


text:
package org.apache.hedwig.filter;

import java.io.IOException;
import java.util.List;
import java.util.LinkedList;

import com.google.protobuf.ByteString;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.hedwig.protocol.PubSubProtocol.Message;
import org.apache.hedwig.protocol.PubSubProtocol.SubscriptionPreferences;

/**
 * A filter filters messages in pipeline.
 */
public class PipelineFilter extends LinkedList<ServerMessageFilter>
implements ServerMessageFilter {

    @Override
    public ServerMessageFilter initialize(Configuration conf)
    throws ConfigurationException, IOException {
        for (ServerMessageFilter filter : this) {
            filter.initialize(conf);
        }
        return this;
    }

    @Override
    public void uninitialize() {
        while (!isEmpty()) {
            ServerMessageFilter filter = removeLast();
            filter.uninitialize();
        }
    }

    @Override
    public MessageFilterBase setSubscriptionPreferences(ByteString topic, ByteString subscriberId,
                                                        SubscriptionPreferences preferences) {
        for (ServerMessageFilter filter : this) {
            filter.setSubscriptionPreferences(topic, subscriberId, preferences);
        }
        return this;
    }

    @Override
    public boolean testMessage(Message message) {
        for (ServerMessageFilter filter : this) {
            if (!filter.testMessage(message)) {
                return false;
            }
        }
        return true;
    }

}


text:
import {Column, Entity, PrimaryGeneratedColumn} from "../../../../src/index";
import {Category} from "./Category";
import {ManyToOne} from "../../../../src/decorator/relations/ManyToOne";

@Entity()
export class Animal {

    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    name: string;

    @ManyToOne(() => Category)
    category: Category;

}


text:
import * as React from 'react';
import { Button } from 'antd'
const DuckImage = require('../assets/Duck.jpg')

export default (props:
    JSX.IntrinsicClassAttributes<React.HTMLProps<HTMLDivElement>>) =>

    hello!!

        <Button type="primary">Primary</Button>


text:
package net.javacrumbs.mocksocket.connection.matcher;

import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

import net.javacrumbs.mocksocket.MockSocketException;
import net.javacrumbs.mocksocket.connection.AbstractMockConnectionFactory;
import net.javacrumbs.mocksocket.connection.RequestRecorder;
import net.javacrumbs.mocksocket.connection.data.RequestSocketData;
import net.javacrumbs.mocksocket.connection.data.SocketData;

import org.hamcrest.Matcher;

/**
 * Mock connection that is based on {@link Matcher}s.
 * @author Lukas Krecan
 *
 */
public class MatcherBasedMockConnectionFactory extends AbstractMockConnectionFactory implements RequestRecorder, MatcherBasedMockResultRecorder, MatcherBasedMockRecorder {

	private final List<MatcherWithData> matchers = new ArrayList<MatcherWithData>();

	protected InputStream createInputStream() {
		return new RedirectingInputStream(getRequestSocketData());
	}

	public MatcherBasedMockRecorder thenReturn(SocketData data) {
		matchers.get(matchers.size()-1).addData(data);
		return this;
	}

	public MatcherBasedMockResultRecorder andWhenRequest(Matcher<RequestSocketData> matcher) {
		matchers.add(new MatcherWithData(matcher));
		return this;
	}

	/**
	 * Input stream that redirects to actual InputStread based on OutputStreamData. Has to be done this way since InputStram could be created before
	 * OutputStream data are written.
	 * @author Lukas Krecan
	 *
	 */
	class RedirectingInputStream extends InputStream
	{
		private final RequestSocketData requestSocketData;
		private InputStream wrappedInputStream;

		public RedirectingInputStream(RequestSocketData requestSocketData)
		{
			this.requestSocketData = requestSocketData;
		}

		@Override
		public int read() throws IOException {
			if (wrappedInputStream==null)
			{
				wrappedInputStream = findInputStream();
			}
			return wrappedInputStream.read();
		}

		private InputStream findInputStream() throws IOException, MockSocketException {
			for (MatcherWithData matcher : matchers) {
				if (matcher.getMatcher().matches(requestSocketData))
				{
					return matcher.getResponse();
				}
			}
			throw new MockSocketException("No matcher matches request "+requestSocketData+". Do not know which response to return.");
		}
	}

	protected class MatcherWithData
	{
		private final Matcher<RequestSocketData> matcher;
		private final List<SocketData> responseData = new ArrayList<SocketData>();
		private int actualResponse = 0;

		public MatcherWithData(Matcher<RequestSocketData> matcher) {
			this.matcher = matcher;
		}

		public InputStream getResponse() {
			if (responseData.size()>actualResponse)
			{
				return responseData.get(actualResponse++).getData();
			}
			else
			{
				throw new MockSocketException("No more connections expected for request matching matcher: "+matcher+". Requests recorded so far are: "+requestData());
			}
		}

		public void addData(SocketData data)
		{
			responseData.add(data);
		}

		public Matcher<RequestSocketData> getMatcher() {
			return matcher;
		}

	}

}