text:
package Objects;

import jboxGlue.PhysicalObject;
import jboxGlue.PhysicalObjectCircle;
import jboxGlue.WorldManager;

import org.jbox2d.common.Vec2;

import jgame.JGColor;
import jgame.JGObject;
import jgame.platform.JGEngine;

import java.math.*;
import java.util.ArrayList;
import java.util.HashMap;

public class Mass extends PhysicalObjectCircle{
	private static final int MASSOFFSET = 500;
	private String myID;
	private static JGColor myColor = JGColor.yellow;
	private double myMass;
	private boolean isFixed;

	public Mass(String id, double xpos, double ypos,double xvel,double yvel,double mass, JGColor color){
		super(id, 1, myColor, 7,mass);
		setColor(color);
		x=(int)xpos+MASSOFFSET;
		y=(int)ypos;
		setPos(x, y);
		setSpeed(xvel, yvel);
		myID = id;
		myMass = mass;
	}

	public Mass(String id, double xpos, double ypos){
		super(id, 1, myColor, 5,1);
	}

	public String getID(){
		return myID;
	}

	public double getMass(){
		return myMass;
	}

	public void setIsFixed(boolean fixed){
		isFixed = fixed;
	}

	public Vec2 getVec(){
		Vec2 vel = myBody.getLinearVelocity();
		return vel;
	}

	@Override
	public void hit (JGObject other) {
		// we hit something! bounce off it!
		Vec2 velocity = myBody.getLinearVelocity();
		final double DAMPING_FACTOR = .7;
		boolean isSide = other.getBBox().height > other.getBBox().width;
		if (isSide)
			velocity.x *= -DAMPING_FACTOR;
		else
			velocity.y *= -DAMPING_FACTOR;

		myBody.setLinearVelocity(velocity);
		System.out.println("hit");
	}

}


text:
/* Include file for R3 draw utility */

/* Inline macros */

#define R3LoadRgb RNLoadRgb

/* Inline functions */

inline void
R3LoadNormal(const R3Vector& normal)
{
    // Load normal vector
    R3LoadNormal(normal.Coords());
}

inline void
R3LoadPoint(const R3Point& point)
{
    // Load vertex
    R3LoadPoint(point.Coords());
}

inline void
R3LoadTextureCoords(const R2Point& texcoords)
{
    // Set texture coordinate (within R3BeginXXX and R3EndXXX)
    R3LoadTextureCoords(texcoords.Coords());
}

inline void
R3DrawText(const R3Point& p, const char *str)
{
    // Draw text at point
    R3DrawText(p.X(), p.Y(), p.Z(), str);
}

redpajama_set_name: RedPajamaGithub


text:
function AddTimer() {
	$("body").empty();
	$("body").append('\

\

\

Add new timer
\

\

\

Date and time
\

Format: YYYY/MM/DD HH:MM
\
		<input type="text" id="datetime" class="entry_field"/>\

Repeat
\

Format: {YY}Y{MM}M{WW}W{DD}D{hh}h{mm}m{ss}s, comment: keep empty if no repetition is required
\
		<select id="repeattime" class="entry_field">\
			<option value="">no repeat</option>\
			<option value="1h">1h</option>\
			<option value="4h">4h</option>\
			<option value="12h">12h</option>\
			<option value="1D">1D</option>\
			<option value="1W">1W</option>\
			<option value="1M">1M</option>\
			<option value="1Y">1Y</option>\
		</select>\

\

Device:
\

Select the device
\
		<select id="DeviceSelection" class="entry_field"></select>\

State:
\

Select the state
\
		<select id="DeviceState" class="entry_field">\
			<option value="On">On</option>\
			<option value="Off">Off</option>\
			<option value="Switch">Switch</option>\
			<option value="Switch">Value</option>\
		</select>\

\

\

Add
\

Cancel
\

');

	$('#datetime').datetimepicker();

	$.getJSON('/api/GetDeviceInfo', function(DevicesInfo) {
		$.each(DevicesInfo, function(DeviceId, DeviceInfo) {
			if (DeviceInfo["type"]=="switch")
				$("#DeviceSelection").append('<option value="'+DeviceId+'">'+DeviceId+'</option>');
		});
	});

	$("#Add_Cnt").click(function() {
		var JobDef={};
		JobDef['time']=$('#datetime').val();
		JobDef['device']=$('#DeviceSelection').val();
		JobDef['command']=$('#DeviceState').val();
		JobDef['repeat']=$('#repeattime').val();
		$.get("/api/TimerDefine "+JSON.stringify(JobDef), function(Result) {
			BuildGui();
		}) .fail(function() {
			alert( "The form contains invalid date. Please correct!" );
		})
	});

	$("#Cancel_Cnt").click(function() {
		BuildGui();
	});
}

function DeleteTimer(TimerId) {
	if (!confirm("Are you sure you want to delete timer '"+TimerId+"'?"))
		return;
	$.get('/api/TimerDelete '+TimerId, function(data) {
		BuildGui();
	});
}

function BuildGui() {
	$.getJSON('/api/TimerList', function(TimerInfo) {

		$("body").empty();
		$("body").append('\

\

\

THC timer module
\

\

\

\

Add
\

Close
\

');

		$("#Add_Cnt").click(function() {
			AddTimer();
		});
		$("#Close_Cnt").click(function() {
			close();
		});

		$.each(TimerInfo, function(TimerId, TimerData) {
			$("body").append('\

'+TimerId+'

');
			$("body").append('\

\

time	'+TimerData["time"]+'
\

repeat	'+TimerData["repeat"]+'
\

device	'+TimerData["device"]+'
\

command	'+TimerData["command"]+'
\

');

			$("body").append('\

\

Delete
\

');

			$("#"+TimerId + "_Cnt").click(function() {
				DeleteTimer(TimerId);
			});

		});
	});
}

$(document).ready(function(){
	var ActiveStyleSheets=opener.GetActiveStyleSheets();
	for (var i=0; i<ActiveStyleSheets.length; i++) {
		$('head').append('<link rel="stylesheet" href="'+ActiveStyleSheets[i]+'" type="text/css" />');
	}
	BuildGui();
});


text:
package com.sumologic.jenkins.jenkinssumologicplugin.constants;

import com.sumologic.jenkins.jenkinssumologicplugin.sender.LogSender;
import org.apache.commons.lang.time.FastDateFormat;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * Sumo Logic plugin for Jenkins model.
 *

 * Sumo Constants
 *

 * Created by Sourabh Jain on 5/2019.
 */
public class SumoConstants {

    private SumoConstants() {

    }

    public static final String SUMO_PIPELINE = "[Pipeline] SumoPipelineLogCollection";
    public static final String COMMA_SEPARATOR = ", ";
    // Changing the value has impact on APP. Also, jenkins calls its computer as master.
    public static final String MAIN = "master";
    public static final String JENKINS_MAIN = "(master)";

    public static final FastDateFormat DATETIME_FORMATTER
            = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss,SSS ZZZZ");

    public static final String GENERATION_ERROR = "Job Status Generation ended with exception as ";

    public static final String CONSOLE_ERROR = "Job Console Logs Sender ended with exception as ";

    public static final String SCM_ERROR = "Job SCM Logs Sender ended with exception as ";

    public static final String GRAPHITE_CONTENT_TYPE = "application/vnd.sumologic.graphite";

    public static final String CARBON_CONTENT_TYPE = "application/vnd.sumologic.carbon2";

    public static final String IGNORE_PATTERN = "(?:queue|nodeMonitors|UpdateCenter|global-build-stats).xml|/(?:fingerprint|builds|config-history)/.*?xml";

    public static final int DIVIDER_FOR_MESSAGES = 100;

    public static final String MONITOR_PATTERN_MATCHER = "error.*?>(.*?)";

    public static final List<String> skipLoggerNames = Collections.unmodifiableList(Arrays.asList(LogSender.class.getName(), "hudson.Extension", "hudson.node_monitors",
            "jenkins.InitReactorRunner", "hudson.util.BootFailure", "shaded.splk.org.apache.http"));

    public static final String PIPELINE = "[Pipeline]";

    public static final String START_OF_PIPELINE = "[Pipeline] Start of Pipeline";

    public static final String END_OF_PIPELINE = "[Pipeline] End of Pipeline";

    public static final int MAX_DATA_SIZE = 50000;
}


text: <link rel="stylesheet" href="http://forio.com/tools/contour/contour.min.css">


text:
/*
 * Do not modify this file. This file is generated from the dynamodb-2012-08-10.normal.json service model.
 */
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;

using Amazon.DynamoDBv2.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;

namespace Amazon.DynamoDBv2.Model.Internal.MarshallTransformations
{
    /// <summary>
    /// Response Unmarshaller for Query operation
    /// </summary>
    public class QueryResponseUnmarshaller : JsonResponseUnmarshaller
    {
        public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
        {
            QueryResponse response = new QueryResponse();

            context.Read();
            int targetDepth = context.CurrentDepth;
            while (context.ReadAtDepth(targetDepth))
            {
                if (context.TestExpression("ConsumedCapacity", targetDepth))
                {
                    var unmarshaller = ConsumedCapacityUnmarshaller.Instance;
                    response.ConsumedCapacity = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Count", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.Count = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("Items", targetDepth))
                {
                    var unmarshaller = new ListUnmarshaller<Dictionary<string, AttributeValue>, DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>>(new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.Instance, AttributeValueUnmarshaller.Instance));
                    response.Items = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("LastEvaluatedKey", targetDepth))
                {
                    var unmarshaller = new DictionaryUnmarshaller<string, AttributeValue, StringUnmarshaller, AttributeValueUnmarshaller>(StringUnmarshaller.Instance, AttributeValueUnmarshaller.Instance);
                    response.LastEvaluatedKey = unmarshaller.Unmarshall(context);
                    continue;
                }
                if (context.TestExpression("ScannedCount", targetDepth))
                {
                    var unmarshaller = IntUnmarshaller.Instance;
                    response.ScannedCount = unmarshaller.Unmarshall(context);
                    continue;
                }
            }

            return response;
        }

        public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
        {
            ErrorResponse errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
            if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
            {
                return new InternalServerErrorException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
            }
            if (errorResponse.Code != null && errorResponse.Code.Equals("ProvisionedThroughputExceededException"))
            {
                return new ProvisionedThroughputExceededException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
            }
            if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
            {
                return new ResourceNotFoundException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
            }
            return new AmazonDynamoDBException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
        }

        private static QueryResponseUnmarshaller _instance = new QueryResponseUnmarshaller();

        internal static QueryResponseUnmarshaller GetInstance()
        {
            return _instance;
        }
        public static QueryResponseUnmarshaller Instance
        {
            get
            {
                return _instance;
            }
        }

    }
}


text:
modifier_charges = class({})

if IsServer() then
	function modifier_charges:Update()
		if self:GetDuration() == -1 then
			self:SetDuration(self.kv.replenish_time, true)
			self:StartIntervalThink(self.kv.replenish_time)
		end

		if self:GetStackCount() == 0 then
			self:GetAbility():StartCooldown(self:GetRemainingTime())
		end
	end

	function modifier_charges:OnCreated(kv)
		self:SetStackCount(kv.start_count or kv.max_count)
		self.kv = kv

		if kv.start_count and kv.start_count ~= kv.max_count then
			self:Update()
		end
	end

	function modifier_charges:DeclareFunctions()
		return {
			MODIFIER_EVENT_ON_ABILITY_EXECUTED
		}
	end

	function modifier_charges:OnAbilityExecuted(params)
		if params.unit == self:GetParent() then
			local ability = params.ability

			if params.ability == self:GetAbility() then
				self:DecrementStackCount()
				self:Update()
			end
		end
	end

	function modifier_charges:OnIntervalThink()
		local stacks = self:GetStackCount()

		if stacks < self.kv.max_count then
			self:SetDuration(self.kv.replenish_time, true)
			self:IncrementStackCount()

			if stacks == self.kv.max_count - 1 then
				self:SetDuration(-1, true)
				self:StartIntervalThink(-1)
			end
		end
	end

	function modifier_charges:SetMaxStackCount(count)
		if self.kv.max_count == count then
			return
		end
		if self.kv.max_count < count then
			self.kv.max_count = count
			self:Update()
		else
			self.kv.max_count = count
			self:SetStackCount(math.min(self:GetStackCount(), count))
			if self:GetStackCount() == count then
				self:SetDuration(-1, true)
				self:StartIntervalThink(-1)
			end
		end
	end
end

function modifier_charges:DestroyOnExpire()
	return false
end

function modifier_charges:IsPurgable()
	return false
end

function modifier_charges:GetAttributes()
	return MODIFIER_ATTRIBUTE_MULTIPLE
end


text:
package org.apache.commons.jxpath.ri.axes;

import org.apache.commons.jxpath.ri.EvalContext;
import org.apache.commons.jxpath.ri.compiler.NodeTest;
import org.apache.commons.jxpath.ri.model.NodePointer;

/**
 * EvalContext that walks the "ancestor::" and "ancestor-or-self::" axes.
 *
 * @author Dmitri Plotnikov
 * @version $Revision$ $Date$
 */
public class AncestorContext extends EvalContext {
    private NodeTest nodeTest;
    private boolean setStarted = false;
    private NodePointer currentNodePointer;
    private boolean includeSelf;

    /**
     * Create a new AncestorContext.
     * @param parentContext represents the previous step on the path
     * @param  includeSelf differentiates between "ancestor::" and
     *                     "ancestor-or-self::" axes
     * @param nodeTest is the name of the element(s) we are looking for
     */
    public AncestorContext(
        EvalContext parentContext,
        boolean includeSelf,
        NodeTest nodeTest) {
        super(parentContext);
        this.includeSelf = includeSelf;
        this.nodeTest = nodeTest;
    }

    public NodePointer getCurrentNodePointer() {
        return currentNodePointer;
    }

    public int getDocumentOrder() {
        return -1;
    }

    public void reset() {
        super.reset();
        setStarted = false;
    }

    public boolean setPosition(int position) {
        if (position < getCurrentPosition()) {
            reset();
        }

        while (getCurrentPosition() < position) {
            if (!nextNode()) {
                return false;
            }
        }
        return true;
    }

    public boolean nextNode() {
        if (!setStarted) {
            setStarted = true;
            currentNodePointer = parentContext.getCurrentNodePointer();
            if (includeSelf && currentNodePointer.testNode(nodeTest)) {
                position++;
                return true;
            }
        }

        while (true) {
            currentNodePointer = currentNodePointer.getImmediateParentPointer();

            if (currentNodePointer == null) {
                return false;
            }

            if (currentNodePointer.testNode(nodeTest)) {
                position++;
                return true;
            }
        }
    }
}


text:
load labeled_images
load unlabeled_images
load public_test_images

%tr_images = reshape_data(tr_images);
test_images = reshape_data(public_test_images);
unlabeled_images = reshape_data(unlabeled_images);
inds = unidrnd(size(unlabeled_images, 2),1, 40000);

%test_images = gabor_features(test_images);
tr_images = gabor_features(tr_images);

pca_train_images = tr_images; %cat(2, tr_images, unlabeled_images(:,inds));

dims = size(tr_images, 1);
[base, mean, projX, eigval] = pcaimg(pca_train_images, dims);

plot(1:dims, eigval);

k = 1;
while (eigval(k) > 10)
    k = k + 1;
end

fprintf('Choose %d\n', k);


text:
package fr.pizzeria.ihm.menu.option;

import java.util.Scanner;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import fr.pizzeria.dao.Dao;
import fr.pizzeria.modele.Livreur;

@Component
public class AjoutLivreurOptionMenu implements OptionMenu {

	private Scanner scanner;
	private Dao<Livreur, String> daoLivreur;

	@Autowired
	public AjoutLivreurOptionMenu(Scanner scanner, Dao<Livreur, String> daoLivreur) {
		super();
		this.scanner = scanner;
		this.daoLivreur = daoLivreur;
	}

	@Override
	public void libelle() {

		System.out.println("8. Ajouter Livreur");

	}

	@Override
	public boolean execute() {

		Livreur newLivreur = new Livreur();

		System.out.println("Nom du livreur");
		newLivreur.setNom(scanner.next());

		System.out.println("Prenom du livreur");
		newLivreur.setPrenom(scanner.next());

		daoLivreur.save(newLivreur);

		return false;
	}

}


text:
import { types, getActionCreator } from './utils/defaults';
import createStore from './utils/createStore';

let store;

beforeEach(() => { store = createStore(); });

describe('given a promise resolved with a boolean value', () => {
  test('resolved action dispatched with boolean payload', (done) => {
    const { dispatch, firstSpy, lastSpy } = store;

    const dispatched = getActionCreator(types.BOOLEAN_PROMISE)();
    const expected = getActionCreator(types.FULFILLED_BOOLEAN_PROMISE)();

    const action = dispatch(dispatched);

    expect(firstSpy.mock.calls[0]).toEqual([dispatched]);

    action.then(() => {
      expect(lastSpy.mock.calls[1]).toEqual([expected]);
      done();
    });
  });

  test('promise returns boolean value', (done) => {
    const { dispatch } = store;

    const dispatched = getActionCreator(types.BOOLEAN_PROMISE)();
    const expected = getActionCreator(types.FULFILLED_BOOLEAN_PROMISE)();

    const action = dispatch(dispatched);

    action.then(({ value, action: actionFromPromise }) => {
      expect(value).toEqual(expected.payload);
      expect(actionFromPromise.payload).toEqual(expected.payload);
      done();
    });
  });
});


text:
using System;
using System.Collections.Generic;
using PlayFab.SharedModels;

namespace PlayFab.MultiplayerModels
{
    [Serializable]
    public class AssetReference
    {
        /// <summary>
        /// The asset's file name. This is a filename with the .zip, .tar, or .tar.gz extension.
        /// </summary>
        public string FileName;
        /// <summary>
        /// The asset's mount path.
        /// </summary>
        public string MountPath;
    }

    [Serializable]
    public class AssetReferenceParams
    {
        /// <summary>
        /// The asset's file name. This must be a filename with the .zip, .tar, or .tar.gz extension.
        /// </summary>
        public string FileName;
        /// <summary>
        /// The asset's mount path.
        /// </summary>
        public string MountPath;
    }

    [Serializable]
    public class AssetSummary
    {
        /// <summary>
        /// The asset's file name. This is a filename with the .zip, .tar, or .tar.gz extension.
        /// </summary>
        public string FileName;
        /// <summary>
        /// The metadata associated with the asset.
        /// </summary>
        public Dictionary<string,string> Metadata;
    }

    public enum AzureRegion
    {
        AustraliaEast,
        AustraliaSoutheast,
        BrazilSouth,
        CentralUs,
        EastAsia,
        EastUs,
        EastUs2,
        JapanEast,
        JapanWest,
        NorthCentralUs,
        NorthEurope,
        SouthCentralUs,
        SoutheastAsia,
        WestEurope,
        WestUs
    }

    public enum AzureVmSize
    {
        Standard_D1_v2,
        Standard_D2_v2,
        Standard_D3_v2,
        Standard_D4_v2,
        Standard_D5_v2,
        Standard_A1_v2,
        Standard_A2_v2,
        Standard_A4_v2,
        Standard_A8_v2,
        Standard_A1,
        Standard_A2,
        Standard_A3,
        Standard_A4
    }

    [Serializable]
    public class BuildRegion
    {
        /// <summary>
        /// The maximum number of multiplayer servers for the region.
        /// </summary>
        public int MaxServers;
        /// <summary>
        /// The build region.
        /// </summary>
        public AzureRegion? Region;
        /// <summary>
        /// The number of standby multiplayer servers for the region.
        /// </summary>
        public int StandbyServers;
        /// <summary>
        /// The status of multiplayer servers in the build region.
        /// </summary>
        public string Status;
    }

    [Serializable]
    public class BuildRegionParams
    {
        /// <summary>
        /// The maximum number of multiplayer servers for the region.
        /// </summary>
        public int MaxServers;
        /// <summary>
        /// The build region.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The number of standby multiplayer servers for the region.
        /// </summary>
        public int StandbyServers;
    }

    [Serializable]
    public class BuildSummary
    {
        /// <summary>
        /// The guid string build ID of the build.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The build name.
        /// </summary>
        public string BuildName;
        /// <summary>
        /// The time the build was created in UTC.
        /// </summary>
        public DateTime? CreationTime;
        /// <summary>
        /// The metadata of the build.
        /// </summary>
        public Dictionary<string,string> Metadata;
    }

    [Serializable]
    public class Certificate
    {
        /// <summary>
        /// Base64 encoded string contents of the certificate.
        /// </summary>
        public string Base64EncodedValue;
        /// <summary>
        /// A name for the certificate. This is used to reference certificates in build configurations.
        /// </summary>
        public string Name;
        /// <summary>
        /// If required for your PFX certificate, use this field to provide a password that will be used to install the certificate
        /// on the container.
        /// </summary>
        public string Password;
    }

    [Serializable]
    public class CertificateSummary
    {
        /// <summary>
        /// The name of the certificate.
        /// </summary>
        public string Name;
        /// <summary>
        /// The thumbprint for the certificate.
        /// </summary>
        public string Thumbprint;
    }

    [Serializable]
    public class ConnectedPlayer
    {
        /// <summary>
        /// The player ID of the player connected to the multiplayer server.
        /// </summary>
        public string PlayerId;
    }

    public enum ContainerFlavor
    {
        ManagedWindowsServerCore,
        CustomLinux,
        ManagedWindowsServerCorePreview
    }

    [Serializable]
    public class ContainerImageReference
    {
        /// <summary>
        /// The container image name.
        /// </summary>
        public string ImageName;
        /// <summary>
        /// The container tag.
        /// </summary>
        public string Tag;
    }

    [Serializable]
    public class CreateBuildWithCustomContainerRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The build name.
        /// </summary>
        public string BuildName;
        /// <summary>
        /// The flavor of container to create a build from.
        /// </summary>
        public ContainerFlavor? ContainerFlavor;
        /// <summary>
        /// The name of the container repository.
        /// </summary>
        public string ContainerRepositoryName;
        /// <summary>
        /// The container command to run when the multiplayer server has been allocated, including any arguments.
        /// </summary>
        public string ContainerRunCommand;
        /// <summary>
        /// The tag for the container.
        /// </summary>
        public string ContainerTag;
        /// <summary>
        /// The list of game assets related to the build.
        /// </summary>
        public List<AssetReferenceParams> GameAssetReferences;
        /// <summary>
        /// The game certificates for the build.
        /// </summary>
        public List<GameCertificateReferenceParams> GameCertificateReferences;
        /// <summary>
        /// Metadata to tag the build.
        /// </summary>
        public Dictionary<string,string> Metadata;
        /// <summary>
        /// The number of multiplayer servers to host on a single VM.
        /// </summary>
        public int MultiplayerServerCountPerVm;
        /// <summary>
        /// The ports to map the build on.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region configurations for the build.
        /// </summary>
        public List<BuildRegionParams> RegionConfigurations;
        /// <summary>
        /// The VM size to create the build on.
        /// </summary>
        public AzureVmSize? VmSize;
    }

    [Serializable]
    public class CreateBuildWithCustomContainerResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The guid string build ID. Must be unique for every build.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The build name.
        /// </summary>
        public string BuildName;
        /// <summary>
        /// The flavor of container of the build.
        /// </summary>
        public ContainerFlavor? ContainerFlavor;
        /// <summary>
        /// The container command to run when the multiplayer server has been allocated, including any arguments.
        /// </summary>
        public string ContainerRunCommand;
        /// <summary>
        /// The time the build was created in UTC.
        /// </summary>
        public DateTime? CreationTime;
        /// <summary>
        /// The custom game container image reference information.
        /// </summary>
        public ContainerImageReference CustomGameContainerImage;
        /// <summary>
        /// The game assets for the build.
        /// </summary>
        public List<AssetReference> GameAssetReferences;
        /// <summary>
        /// The game certificates for the build.
        /// </summary>
        public List<GameCertificateReference> GameCertificateReferences;
        /// <summary>
        /// The metadata of the build.
        /// </summary>
        public Dictionary<string,string> Metadata;
        /// <summary>
        /// The number of multiplayer servers to host on a single VM of the build.
        /// </summary>
        public int MultiplayerServerCountPerVm;
        /// <summary>
        /// The ports the build is mapped on.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region configuration for the build.
        /// </summary>
        public List<BuildRegion> RegionConfigurations;
        /// <summary>
        /// The VM size the build was created on.
        /// </summary>
        public AzureVmSize? VmSize;
    }

    [Serializable]
    public class CreateBuildWithManagedContainerRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The build name.
        /// </summary>
        public string BuildName;
        /// <summary>
        /// The flavor of container to create a build from.
        /// </summary>
        public ContainerFlavor? ContainerFlavor;
        /// <summary>
        /// The list of game assets related to the build.
        /// </summary>
        public List<AssetReferenceParams> GameAssetReferences;
        /// <summary>
        /// The game certificates for the build.
        /// </summary>
        public List<GameCertificateReferenceParams> GameCertificateReferences;
        /// <summary>
        /// Metadata to tag the build.
        /// </summary>
        public Dictionary<string,string> Metadata;
        /// <summary>
        /// The number of multiplayer servers to host on a single VM.
        /// </summary>
        public int MultiplayerServerCountPerVm;
        /// <summary>
        /// The ports to map the build on.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region configurations for the build.
        /// </summary>
        public List<BuildRegionParams> RegionConfigurations;
        /// <summary>
        /// The command to run when the multiplayer server is started, including any arguments.
        /// </summary>
        public string StartMultiplayerServerCommand;
        /// <summary>
        /// The VM size to create the build on.
        /// </summary>
        public AzureVmSize? VmSize;
    }

    [Serializable]
    public class CreateBuildWithManagedContainerResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The guid string build ID. Must be unique for every build.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The build name.
        /// </summary>
        public string BuildName;
        /// <summary>
        /// The flavor of container of the build.
        /// </summary>
        public ContainerFlavor? ContainerFlavor;
        /// <summary>
        /// The time the build was created in UTC.
        /// </summary>
        public DateTime? CreationTime;
        /// <summary>
        /// The game assets for the build.
        /// </summary>
        public List<AssetReference> GameAssetReferences;
        /// <summary>
        /// The game certificates for the build.
        /// </summary>
        public List<GameCertificateReference> GameCertificateReferences;
        /// <summary>
        /// The metadata of the build.
        /// </summary>
        public Dictionary<string,string> Metadata;
        /// <summary>
        /// The number of multiplayer servers to host on a single VM of the build.
        /// </summary>
        public int MultiplayerServerCountPerVm;
        /// <summary>
        /// The ports the build is mapped on.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region configuration for the build.
        /// </summary>
        public List<BuildRegion> RegionConfigurations;
        /// <summary>
        /// The command to run when the multiplayer server has been allocated, including any arguments.
        /// </summary>
        public string StartMultiplayerServerCommand;
        /// <summary>
        /// The VM size the build was created on.
        /// </summary>
        public AzureVmSize? VmSize;
    }

    [Serializable]
    public class CreateRemoteUserRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of to create the remote user for.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The expiration time for the remote user created. Defaults to expiring in one day if not specified.
        /// </summary>
        public DateTime? ExpirationTime;
        /// <summary>
        /// The region of virtual machine to create the remote user for.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The username to create the remote user with.
        /// </summary>
        public string Username;
        /// <summary>
        /// The virtual machine ID the multiplayer server is located on.
        /// </summary>
        public string VmId;
    }

    [Serializable]
    public class CreateRemoteUserResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The expiration time for the remote user created.
        /// </summary>
        public DateTime? ExpirationTime;
        /// <summary>
        /// The generated password for the remote user that was created.
        /// </summary>
        public string Password;
        /// <summary>
        /// The username for the remote user that was created.
        /// </summary>
        public string Username;
    }

    [Serializable]
    public class DeleteAssetRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The filename of the asset to delete. This must be a filename with the .zip, .tar, or .tar.gz extension.
        /// </summary>
        public string FileName;
    }

    [Serializable]
    public class DeleteBuildRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the build to delete.
        /// </summary>
        public string BuildId;
    }

    [Serializable]
    public class DeleteCertificateRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The name of the certificate.
        /// </summary>
        public string Name;
    }

    [Serializable]
    public class DeleteRemoteUserRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the multiplayer server where the remote user is to delete.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The region of the multiplayer server where the remote user is to delete.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The username of the remote user to delete.
        /// </summary>
        public string Username;
        /// <summary>
        /// The virtual machine ID the multiplayer server is located on.
        /// </summary>
        public string VmId;
    }

    [Serializable]
    public class EmptyResponse : PlayFabResultCommon
    {
    }

    [Serializable]
    public class EnableMultiplayerServersForTitleRequest : PlayFabRequestCommon
    {
    }

    [Serializable]
    public class EnableMultiplayerServersForTitleResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The enabled status for the multiplayer server features for the title.
        /// </summary>
        public TitleMultiplayerServerEnabledStatus? Status;
    }

    [Serializable]
    public class GameCertificateReference
    {
        /// <summary>
        /// An alias for the game certificate. The game server will reference this alias via GSDK config to retrieve the game
        /// certificate. This alias is used as an identifier in game server code to allow a new certificate with different Name
        /// field to be uploaded without the need to change any game server code to reference the new Name.
        /// </summary>
        public string GsdkAlias;
        /// <summary>
        /// The name of the game certificate. This name should match the name of a certificate that was previously uploaded to this
        /// title.
        /// </summary>
        public string Name;
    }

    [Serializable]
    public class GameCertificateReferenceParams
    {
        /// <summary>
        /// An alias for the game certificate. The game server will reference this alias via GSDK config to retrieve the game
        /// certificate. This alias is used as an identifier in game server code to allow a new certificate with different Name
        /// field to be uploaded without the need to change any game server code to reference the new Name.
        /// </summary>
        public string GsdkAlias;
        /// <summary>
        /// The name of the game certificate. This name should match the name of a certificate that was previously uploaded to this
        /// title.
        /// </summary>
        public string Name;
    }

    [Serializable]
    public class GetAssetUploadUrlRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The asset's file name to get the upload URL for. This must be a filename with the .zip, .tar, or .tar.gz extension.
        /// </summary>
        public string FileName;
    }

    [Serializable]
    public class GetAssetUploadUrlResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The asset's upload URL.
        /// </summary>
        public string AssetUploadUrl;
        /// <summary>
        /// The asset's file name to get the upload URL for. This must be a filename will be a file with the .zip, .tar, or .tar.gz
        /// extension.
        /// </summary>
        public string FileName;
    }

    [Serializable]
    public class GetBuildRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the build to get.
        /// </summary>
        public string BuildId;
    }

    [Serializable]
    public class GetBuildResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The guid string build ID of the build.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The build name.
        /// </summary>
        public string BuildName;
        /// <summary>
        /// The flavor of container of he build.
        /// </summary>
        public ContainerFlavor? ContainerFlavor;
        /// <summary>
        /// The container command to run when the multiplayer server has been allocated, including any arguments. This only applies
        /// to custom builds. If the build is a managed build, this field will be null.
        /// </summary>
        public string ContainerRunCommand;
        /// <summary>
        /// The time the build was created in UTC.
        /// </summary>
        public DateTime? CreationTime;
        /// <summary>
        /// The custom game container image for a custom build.
        /// </summary>
        public ContainerImageReference CustomGameContainerImage;
        /// <summary>
        /// The game assets for the build.
        /// </summary>
        public List<AssetReference> GameAssetReferences;
        /// <summary>
        /// The game certificates for the build.
        /// </summary>
        public List<GameCertificateReference> GameCertificateReferences;
        /// <summary>
        /// The metadata of the build.
        /// </summary>
        public Dictionary<string,string> Metadata;
        /// <summary>
        /// The number of multiplayer servers to hosted on a single VM of the build.
        /// </summary>
        public int MultiplayerServerCountPerVm;
        /// <summary>
        /// The ports the build is mapped on.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region configuration for the build.
        /// </summary>
        public List<BuildRegion> RegionConfigurations;
        /// <summary>
        /// The command to run when the multiplayer server has been allocated, including any arguments. This only applies to managed
        /// builds. If the build is a custom build, this field will be null.
        /// </summary>
        public string StartMultiplayerServerCommand;
        /// <summary>
        /// The VM size the build was created on.
        /// </summary>
        public AzureVmSize? VmSize;
    }

    [Serializable]
    public class GetContainerRegistryCredentialsRequest : PlayFabRequestCommon
    {
    }

    [Serializable]
    public class GetContainerRegistryCredentialsResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The url of the container registry.
        /// </summary>
        public string DnsName;
        /// <summary>
        /// The password for accessing the container registry.
        /// </summary>
        public string Password;
        /// <summary>
        /// The username for accessing the container registry.
        /// </summary>
        public string Username;
    }

    [Serializable]
    public class GetMultiplayerServerDetailsRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the multiplayer server to get details for.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The region the multiplayer server is located in to get details for.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The title generated guid string session ID of the multiplayer server to get details for. This is to keep track of
        /// multiplayer server sessions.
        /// </summary>
        public string SessionId;
    }

    [Serializable]
    public class GetMultiplayerServerDetailsResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The connected players in the multiplayer server.
        /// </summary>
        public List<ConnectedPlayer> ConnectedPlayers;
        /// <summary>
        /// The IPv4 address of the virtual machine that is hosting this multiplayer server.
        /// </summary>
        public string IPV4Address;
        /// <summary>
        /// The time (UTC) at which a change in the multiplayer server state was observed.
        /// </summary>
        public DateTime? LastStateTransitionTime;
        /// <summary>
        /// The ports the multiplayer server uses.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region the multiplayer server is located in.
        /// </summary>
        public AzureRegion? Region;
        /// <summary>
        /// The string server ID of the multiplayer server generated by PlayFab.
        /// </summary>
        public string ServerId;
        /// <summary>
        /// The guid string session ID of the multiplayer server.
        /// </summary>
        public string SessionId;
        /// <summary>
        /// The state of the multiplayer server.
        /// </summary>
        public string State;
        /// <summary>
        /// The virtual machine ID that the multiplayer server is located on.
        /// </summary>
        public string VmId;
    }

    [Serializable]
    public class GetRemoteLoginEndpointRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the multiplayer server to get remote login information for.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The region of the multiplayer server to get remote login information for.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The virtual machine ID the multiplayer server is located on.
        /// </summary>
        public string VmId;
    }

    [Serializable]
    public class GetRemoteLoginEndpointResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The remote login IPV4 address of multiplayer server.
        /// </summary>
        public string IPV4Address;
        /// <summary>
        /// The remote login port of multiplayer server.
        /// </summary>
        public int Port;
    }

    [Serializable]
    public class GetTitleEnabledForMultiplayerServersStatusRequest : PlayFabRequestCommon
    {
    }

    [Serializable]
    public class GetTitleEnabledForMultiplayerServersStatusResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The enabled status for the multiplayer server features for the title.
        /// </summary>
        public TitleMultiplayerServerEnabledStatus? Status;
    }

    [Serializable]
    public class ListAssetSummariesRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The page size for the request.
        /// </summary>
        public int? PageSize;
        /// <summary>
        /// The skip token for the paged request.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListAssetSummariesResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The list of asset summaries.
        /// </summary>
        public List<AssetSummary> AssetSummaries;
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListBuildSummariesRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The page size for the request.
        /// </summary>
        public int? PageSize;
        /// <summary>
        /// The skip token for the paged request.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListBuildSummariesResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The list of build summaries for a title.
        /// </summary>
        public List<BuildSummary> BuildSummaries;
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListCertificateSummariesRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The page size for the request.
        /// </summary>
        public int? PageSize;
        /// <summary>
        /// The skip token for the paged request.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListCertificateSummariesResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The list of game certificates.
        /// </summary>
        public List<CertificateSummary> CertificateSummaries;
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListContainerImagesRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The page size for the request.
        /// </summary>
        public int? PageSize;
        /// <summary>
        /// The skip token for the paged request.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListContainerImagesResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The list of container images.
        /// </summary>
        public List<string> Images;
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListContainerImageTagsRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The container images we want to list tags for.
        /// </summary>
        public string ImageName;
    }

    [Serializable]
    public class ListContainerImageTagsResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The list of tags for a particular container image.
        /// </summary>
        public List<string> Tags;
    }

    [Serializable]
    public class ListMultiplayerServersRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the multiplayer servers to list.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The page size for the request.
        /// </summary>
        public int? PageSize;
        /// <summary>
        /// The region the multiplayer servers to list.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The skip token for the paged request.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListMultiplayerServersResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The list of multiplayer server summary details.
        /// </summary>
        public List<MultiplayerServerSummary> MultiplayerServerSummaries;
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListQosServersRequest : PlayFabRequestCommon
    {
    }

    [Serializable]
    public class ListQosServersResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The list of QoS servers.
        /// </summary>
        public List<QosServer> QosServers;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListVirtualMachineSummariesRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the virtual machines to list.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The page size for the request.
        /// </summary>
        public int? PageSize;
        /// <summary>
        /// The region of the virtual machines to list.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// The skip token for the paged request.
        /// </summary>
        public string SkipToken;
    }

    [Serializable]
    public class ListVirtualMachineSummariesResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The page size on the response.
        /// </summary>
        public int PageSize;
        /// <summary>
        /// The skip token for the paged response.
        /// </summary>
        public string SkipToken;
        /// <summary>
        /// The list of virtual machine summaries.
        /// </summary>
        public List<VirtualMachineSummary> VirtualMachines;
    }

    [Serializable]
    public class MultiplayerServerSummary
    {
        /// <summary>
        /// The connected players in the multiplayer server.
        /// </summary>
        public List<ConnectedPlayer> ConnectedPlayers;
        /// <summary>
        /// The time (UTC) at which a change in the multiplayer server state was observed.
        /// </summary>
        public DateTime? LastStateTransitionTime;
        /// <summary>
        /// The region the multiplayer server is located in.
        /// </summary>
        public AzureRegion? Region;
        /// <summary>
        /// The string server ID of the multiplayer server generated by PlayFab.
        /// </summary>
        public string ServerId;
        /// <summary>
        /// The state of the multiplayer server.
        /// </summary>
        public string State;
        /// <summary>
        /// The virtual machine ID that the multiplayer server is located on.
        /// </summary>
        public string VmId;
    }

    [Serializable]
    public class Port
    {
        /// <summary>
        /// The name for the port.
        /// </summary>
        public string Name;
        /// <summary>
        /// The number for the port.
        /// </summary>
        public int Num;
        /// <summary>
        /// The protocol for the port.
        /// </summary>
        public ProtocolType Protocol;
    }

    public enum ProtocolType
    {
        TCP,
        UDP
    }

    [Serializable]
    public class QosServer
    {
        /// <summary>
        /// The region the QoS server is located in.
        /// </summary>
        public AzureRegion? Region;
        /// <summary>
        /// The QoS server URL.
        /// </summary>
        public string ServerUrl;
    }

    [Serializable]
    public class RequestMultiplayerServerRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the multiplayer server to request.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The preferred regions to request a multiplayer server from.
        /// </summary>
        public List<AzureRegion> PreferredRegions;
        /// <summary>
        /// Data encoded as a string that is passed to the game server when requested. This can be used to share a cryptographic
        /// secret for servers to authenticate clients or to communicate information such as game mode or map through the request
        /// flow.
        /// </summary>
        public string SessionCookie;
        /// <summary>
        /// A guid string session ID created track the multiplayer server session over its life.
        /// </summary>
        public string SessionId;
    }

    [Serializable]
    public class RequestMultiplayerServerResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The connected players in the multiplayer server.
        /// </summary>
        public List<ConnectedPlayer> ConnectedPlayers;
        /// <summary>
        /// The IPv4 address of the virtual machine that is hosting this multiplayer server.
        /// </summary>
        public string IPV4Address;
        /// <summary>
        /// The time (UTC) at which a change in the multiplayer server state was observed.
        /// </summary>
        public DateTime? LastStateTransitionTime;
        /// <summary>
        /// The ports the multiplayer server uses.
        /// </summary>
        public List<Port> Ports;
        /// <summary>
        /// The region the multiplayer server is located in.
        /// </summary>
        public AzureRegion? Region;
        /// <summary>
        /// The string server ID of the multiplayer server generated by PlayFab.
        /// </summary>
        public string ServerId;
        /// <summary>
        /// The guid string session ID of the multiplayer server.
        /// </summary>
        public string SessionId;
        /// <summary>
        /// The state of the multiplayer server.
        /// </summary>
        public string State;
        /// <summary>
        /// The virtual machine ID that the multiplayer server is located on.
        /// </summary>
        public string VmId;
    }

    [Serializable]
    public class RolloverContainerRegistryCredentialsRequest : PlayFabRequestCommon
    {
    }

    [Serializable]
    public class RolloverContainerRegistryCredentialsResponse : PlayFabResultCommon
    {
        /// <summary>
        /// The url of the container registry.
        /// </summary>
        public string DnsName;
        /// <summary>
        /// The password for accessing the container registry.
        /// </summary>
        public string Password;
        /// <summary>
        /// The username for accessing the container registry.
        /// </summary>
        public string Username;
    }

    [Serializable]
    public class ShutdownMultiplayerServerRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string build ID of the multiplayer server to delete.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The region of the multiplayer server to shut down.
        /// </summary>
        public AzureRegion Region;
        /// <summary>
        /// A guid string session ID of the multiplayer server to shut down.
        /// </summary>
        public string SessionId;
    }

    public enum TitleMultiplayerServerEnabledStatus
    {
        Initializing,
        Enabled,
        Disabled
    }

    [Serializable]
    public class UpdateBuildRegionsRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The guid string ID of the build we want to update regions for.
        /// </summary>
        public string BuildId;
        /// <summary>
        /// The updated region configuration that should be applied to the specified build.
        /// </summary>
        public List<BuildRegionParams> BuildRegions;
    }

    [Serializable]
    public class UploadCertificateRequest : PlayFabRequestCommon
    {
        /// <summary>
        /// The game certificate to upload.
        /// </summary>
        public Certificate GameCertificate;
    }

    [Serializable]
    public class VirtualMachineSummary
    {
        /// <summary>
        /// The virtual machine health status.
        /// </summary>
        public string HealthStatus;
        /// <summary>
        /// The virtual machine state.
        /// </summary>
        public string State;
        /// <summary>
        /// The virtual machine ID.
        /// </summary>
        public string VmId;
    }
}
#endif


text:
module uiRenderer {
  type Id = string;
  type RowTokeyFn = (row:{[key:string]: any}) => string;

  api.ixer.addIndex("uiParentToElements", "uiComponentElement", Indexing.create.collector(["uiComponentElement: component"]));
  api.ixer.addIndex("uiElementToAttributes", "uiComponentAttribute", Indexing.create.collector(["uiComponentAttribute: id"]));
  api.ixer.addIndex("uiElementToAttrBindings", "uiAttrBinding", Indexing.create.collector(["uiAttrBinding: elementId"]));

  export class uiRenderer {
    constructor(public renderer:microReact.Renderer) {

    }

    // @NOTE: In the interests of performance, roots will not be checked for ancestry --
    // instead of being a noop, specifying a child of a root as another root results in undefined behavior.
    // If this becomes a problem, it can be changed in the loop that initially populates compiledElements.
    compile(roots:Id[]):microReact.Element[] {
      let elementToChildren = api.ixer.index("uiParentToElements");
      let elementToAttrs = api.ixer.index("uiElementToAttributes");
      let elementToAttrBindings = api.ixer.index("uiElementToAttrBindings");

      let compiledElements:{[id:string]: microReact.Element} = {};
      let compiledKeys:{[id:string]: string} = {};
      let boundRows:{[key:string]: any} = {};
      for(let root of roots) {
        compiledElements[root] = {};
      }

      let stack = roots.slice();
      while(stack.length > 0) {
        let elemId = stack.shift();
        let elem = compiledElements[elemId];
        let key = compiledKeys[elemId];

        // Handle denormalized properties. @FIXME: Position has to get normalized for flow to work.
        let fact = api.ixer.selectOne("uiComponentElement", {id: elemId});
        let {
          "uiComponentElement: left": left,
          "uiComponentElement: top": top,
          "uiComponentElement: right": right,
          "uiComponentElement: bottom": bottom
        } = fact;

        // Handle normalized properties.
        let attrs = elementToAttrs[elemId];
        for(let attr of attrs) {
          let {"uiComponentAttribute: property":prop, "uiComponentAttribute: value":val} = attr;
          // Handle any unique properties here.
          let propertyCompiler = propertyCompilers[prop];
          if(propertyCompiler) {
            propertyCompiler(elem, val, prop);
          } else {
            elem[prop] = val;
          }
        }

        // Handle bound properties.
        let boundAttrs = elementToAttrBindings[elemId];
        if(boundAttrs) {
          let row = boundRows[key];
          for(let attr of boundAttrs) {
            let {"uiAttrBinding: attr":prop, "uiAttrBinding: field":field} = attr;
            elem[prop] = row[field];
          }
        }

        // Prep children and add them to the stack.
        let childrenIds = elementToChildren[elemId];
        let children = elem.children = [];
        let binding = api.ixer.selectOne("uiGroupBinding", {group: elemId});
        if(binding) {
          // If the element is bound, the children must be repeated for each row.
          let boundView = binding["uiGroupBinding: view"];
          let rowToKey = this.generateRowToKeyFn(boundView);
          let boundRows = this.getBoundRows(boundView, key);
          let rowIx = 0;
          for(let row of boundRows) {
            let childKey = rowToKey(row);
            boundRows[childKey] = row;
            for(let childTemplateId of childrenIds) {
              let childId = `${childTemplateId}.${rowIx}`;
              let childElem = {parent: elemId, debug: `${elemId} - ${childId}`};
              compiledKeys[childId] = childKey;
              compiledElements[childId] = childElem;
              children.push(childElem);
              stack.push(childId);
            }
            rowIx++;
          }
        } else {
          // Otherwise insert them with their parents key to enable intermediate nesting.
          let key = compiledKeys[elemId];
          for(let childId of childrenIds) {
            let childElem = {parent: elemId, debug: `${elemId} - ${childId}`};
            compiledKeys[childId] = key;
            compiledElements[childId] = childElem;
            children.push(childElem);
            stack.push(childId);
          }
        }

        // Run elements through elementCompilers based on tag.
        // Match UITK components up to unique tags.
      }

      return roots.map((root) => compiledElements[root]);
    }

    // Generate a unique key for the given row based on the structure of the given view.
    generateRowToKeyFn(viewId:Id):RowTokeyFn {
      var keys = api.ixer.getKeys(viewId);

      if(keys.length > 1) {
        return (row:{}) => {
          return `${viewId}: ${row[keys[0]]}`;
        }
      } else if(keys.length > 0) {
        return (row:{}) => {
          return `${viewId}: ${keys.map((key) => row[key]).join(",")}`;
        }
      } else {
        return (row:{}) => `${viewId}: ${JSON.stringify(row)}`;
      }
    }

    // Get only the rows of view matching the key (if specified) or all rows from the view if not.
    getBoundRows(viewId:Id, key?:any): any[] {
      var keys = api.ixer.getKeys(viewId);
      if(key && keys.length === 1) {
        return api.ixer.select(viewId, {[api.code.name(keys[0])]: key});
      } else if(key && keys.length > 0) {
        let rowToKey = this.generateRowToKeyFn(viewId);
        return api.ixer.select(viewId, {}).filter((row) => rowToKey(row) === key);
      } else {
        return api.ixer.select(viewId, {});
      }
    }
  }

  export type PropertyCompiler = (elem:microReact.Element, val:any, prop:string) => void;
  export var propertyCompilers:{[property:string]:PropertyCompiler} = {};

  export function addPropertyCompiler(prop:string, compiler:PropertyCompiler) {
    if(propertyCompilers[prop]) {
      throw new Error(`Refusing to overwrite existing compiler for property: "${prop}"`);
    }
    propertyCompilers[prop] = compiler;
  }
}


text:
package de.ahus1.lottery.adapter.dropwizard;

import de.ahus1.keycloak.dropwizard.KeycloakConfiguration;
import io.dropwizard.Configuration;

// tag::config[]
public class LotteryConfiguration extends Configuration {

    private KeycloakConfiguration keycloakConfiguration = new KeycloakConfiguration();

    public KeycloakConfiguration getKeycloakConfiguration() {
        return keycloakConfiguration;
    }

    public void setKeycloakConfiguration(KeycloakConfiguration keycloakConfiguration) {
        this.keycloakConfiguration = keycloakConfiguration;
    }
}
// end::config[]


text:
from django.conf.urls import include, url
from django.conf import settings
from django.contrib import admin
from rest_framework import routers
from .api.viewSet import MovieViewSet, GenderViewSet, QualityViewSet, YearViewSet
from .views import Home

router = routers.DefaultRouter()
router.register(r'movies', MovieViewSet)
router.register(r'year', YearViewSet)
router.register(r'quality', QualityViewSet)
router.register(r'gender', GenderViewSet)

urlpatterns = [
    url(r'^$', Home.as_view()),
    url(r'^movie/(?P<slug>[-\ \w]+)/$', Home.as_view()),
    url(r'^api/', include(router.urls)),
]


text:
package org.apache.carbondata.core.indexstore;

import java.io.IOException;
import java.util.Set;

import org.apache.carbondata.core.datastore.block.SegmentProperties;
import org.apache.carbondata.core.index.Segment;
import org.apache.carbondata.core.index.dev.Index;

import org.apache.hadoop.fs.Path;

/**
 * Fetches the detailed segmentProperties which has more information to execute the query
 */
public interface SegmentPropertiesFetcher {

  /**
   * get the Segment properties based on the SegmentID.
   * @param segment
   * @return
   * @throws IOException
   */
  SegmentProperties getSegmentProperties(Segment segment)
      throws IOException;

  SegmentProperties getSegmentProperties(Segment segment, Set<Path> partitionLocations)
      throws IOException;

  SegmentProperties getSegmentPropertiesFromIndex(Index coarseGrainIndex);
}


text:
Exploring the use of AppEngine for the Rare Diseases hackathon.

This repository contains experimental code intended to explore the feasibility
of using the AppEngine platform to implement a web application to support the
rare diseases community.

The code in this repository is distributed under the Apache 2.0 License.
See LICENSE file for details.


text:
angular_reg_example
===================

Registration and authentication simulation in Angular.js

## How to run
* Install Node.js
* Install Node.js dependencies:

   		npm install

* Install tools:

    	npm install gulp bower -g

* Install client-side dependencies:

		bower install

* Start this application

		gulp --require coffee-script


text:
describe RedClothParslet::Parser::Block do
  let(:parser) { described_class.new }
  let(:transform) { RedClothParslet::Transform.new }

  describe "table" do
    it { should parse("|one|two|three|").with(transform).
         as([table([
           table_row([
             table_data(["one"]),
             table_data(["two"]),
             table_data(["three"])
           ])
    ])]) }

    it { should parse("|one|two|three|\n|four|five|six|").with(transform).
         as([table([
           table_row([
             table_data(["one"]),
             table_data(["two"]),
             table_data(["three"])
           ]),
             table_row([
               table_data(["four"]),
               table_data(["five"]),
               table_data(["six"])
           ])
    ])]) }

    it { should parse("|_. Jan|_. Feb|_. Mar|").with(transform).
         as([table([
           table_row([
             table_header(["Jan"]),
             table_header(["Feb"]),
             table_header(["Mar"])
           ])
    ])]) }

    it { should parse("||||\n|a|||").with(transform).
         as([table([
           table_row([table_data([""]), table_data([""]), table_data([""])]),
           table_row([table_data(["a"]), table_data([""]), table_data([""])])
         ])])
    }

    describe "table attributes" do
      it { should parse("table{border:1px solid black}.\n|This|is|a|row|").with(transform).
           as([table([
             table_row([
               table_data(["This"]),
               table_data(["is"]),
               table_data(["a"]),
               table_data(["row"])
             ])
      ], {:style => {"border"=>"1px solid black"}})]) }

      it { should parse("|A|row|\n{background:#ddd}. |Gray|row|").with(transform).
           as([table([
             table_row([
               table_data(["A"]),
               table_data(["row"])
             ]),
               table_row([
                 table_data(["Gray"]),
                 table_data(["row"])
             ], {:style => {"background"=>"#ddd"}})
      ])]) }

      it { should parse("|\\2. spans two cols |").with(transform).
           as([table(
             table_row(
               table_data("spans two cols ", {:colspan => '2'})
             )
      )]) }
      it { should parse("|/2. spans two rows |").with(transform).
           as([table(
             table_row(
               table_data("spans two rows ", {:rowspan => '2'})
             )
      )]) }
    end

    describe "table row" do
      subject { described_class.new.table_row }
      it { should parse("|one|two|") }
      it { should parse("{color:red}. |one|two|") }
    end

    describe "end_table_row" do
      subject { described_class.new.end_table_row }
    end

    context "spaces around table data" do
      it { should parse("| one | two | three |").with(transform).
           as([table([
             table_row([
               table_data([" one "]),
               table_data([" two "]),
               table_data([" three "])
             ])
      ])]) }
    end

    describe "advanced table" do
      it { should parse("|^.\n|_. First Header |_. Second Header |\n|~.\n|\\2=. A footer, centered & across two columns |\n|-.\n| Content Cell | Content Cell |\n| Content Cell | Content Cell |").with(transform).
        as([table([
            t_head([table_row([table_header(["First Header "]), table_header(["Second Header "])])]),
            t_foot([table_row([table_data(["A footer, centered & across two columns "], {:colspan => '2', :style => {"align" => "center"}})])]),
            t_body([
              table_row([table_data([" Content Cell "]), table_data([" Content Cell "])]),
              table_row([table_data([" Content Cell "]), table_data([" Content Cell "])])
            ])
        ])])
      }
    end
  end

end


text:
class QMimeData;
class WXDLLIMPEXP_CORE wxDataObject : public wxDataObjectBase
{
public:
  wxDataObject();
  virtual ~wxDataObject();
  virtual bool IsSupportedFormat(const wxDataFormat& format, Direction dir = Get) const;
    // Adds object's data to Qt mime data appropriately for type
  virtual void QtAddDataTo(QMimeData& mimeData) const;
    // Sets object's data from Qt mime data appropriately for type
  virtual bool QtSetDataFrom(const QMimeData& mimeData);
private:
    // Sets object's data from Qt mime data in specific format
  virtual void QtSetDataSingleFormat(const QMimeData& mimeData, const wxDataFormat& format);
};
#endif


text:
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/layout_first"
    android:orientation="vertical"
    android:gravity="center_horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <ImageView
        android:id="@+id/image_icon1"
        android:src="@mipmap/ic_launcher"
        android:layout_marginTop="@dimen/extra_large_margin"
        android:layout_marginBottom="@dimen/small_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <ImageView
        android:id="@+id/image_icon2"
        android:src="@mipmap/ic_launcher"
        android:layout_marginBottom="@dimen/small_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <ImageView
        android:id="@+id/image_icon3"
        android:src="@mipmap/ic_launcher"
        android:layout_marginBottom="@dimen/small_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <ImageView
        android:id="@+id/image_icon4"
        android:src="@mipmap/ic_launcher"
        android:layout_marginBottom="@dimen/small_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <ImageView
        android:id="@+id/image_icon5"
        android:src="@mipmap/ic_launcher"
        android:layout_marginBottom="@dimen/small_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
    <ImageView
        android:id="@+id/image_icon6"
        android:src="@mipmap/ic_launcher"
        android:layout_marginBottom="@dimen/small_margin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

</LinearLayout>


text:
Welcome to SMILE-WIDE
======================

SMILE-WIDE is a Bayesian network library.
Initially, SMILE-WIDE is a version of the well known SMILE library,
augmented With Integrated Distributed Execution. This allows execution on very
large datasets. As SMILE-WIDE is developed, BigData-specific capabilities will surpass the standard Bayesian network interfaces.

Programmer-facing, SMILE-WIDE is a .jar library which you can include in your software.
User-facing, it is also integrated into Hive as a UDF to provide posterior probabilities
of missing values, given the observed values for each instance.

SMILE-WIDE uses Hadoop for inference on large data. It is written in Java using the underlying SMILE library.
The version 1.0 SMILE-WIDE is using SMILE library written in C++. We are working on design and implement SMILE
in Java for better performance of SMILE-WIDE job execution on Hadoop platform.

Contents
--------

How to build the software

How to run an example SMILE-WIDE Hadoop job

How to test Hive integration

Problems and solutions

How to generate Javadoc API documentation

Please contact the authors with any questions or problems:

* Haiqin Wang
* Rob Cranfill
* Tomasz Sowinski
* Martijn de Jongh
* Marek Druzdzel

How to build the software
-------------------------

SMILE-WIDE is an Eclipse project configured to use Maven. All external dependencies
are pulled from the appropriate Maven repositories.
The code can be built from the IDE or directly from the command line.
The basic build can be started with the following command:

```
mvn clean package</code>
```

This creates two jars in the target directory and copies the appropriate native library
to the target/lib directory.

The binary files are:

smile-wide-0.0.1-SNAPSHOT.jar

		Contains the SMILE-WIDE code

smile-wide-0.0.1-SNAPSHOT-job.jar

		Contains the SMILE-WIDE code and the core SMILE jar in its lib subdirectory.
		This makes running SMILE-WIDE-based Hadoop jobs easier, because Hadoop will automatically
		add SMILE jar to the classpath on the machines running in the cluster.

libjsmile.so, libjsmile.jnilib or jsmile.dll

		JNI library containing the C++ SMILE code

It's possible to build for a platform different from the one running the Maven by overriding the smile.native.platform
variable. For example, when building for Hadoop on 64-bit Linux cluster with Maven or Eclipse running on OSX, the command
should be extended to:

```
mvn clean package -Dsmile.native.platform=linux64 -Dmaven.test.skip=true
```

How to run an example SMILE-WIDE Hadoop job
-------------------------------------------

The example below executes a Hadoop job loop which learns the parameters of
probability distributions for the kiva.xdsl network. Note that the jar file
contains the SMILE jar in its lib directory. However, the native library
must be explicitly added to the job's distributed cache with the Hadoop's
-files option. Additionally, since the specifics of EM require the access
to SMILE functionality locally, the .so file should be copied to the
$HADOOP_BIN/native directory.

```
hadoop jar smile-wide-0.0.1-SNAPSHOT-job.jar smile.wide.algorithms.em.RunDistributedEM \
  -files em-tmp.xdsl,libjsmile.so \
  -D mapred.max.split.size=250000 -D mapred.reduce.tasks=12 \
  em.initial.netfile=kiva.xdsl em.work.netfile=em-tmp.xdsl \
  em.data.file=pitt/kiva500k.txt em.stat.file=pitt/em-out \
  em.separator=9 em.local.stat.file=em-local.txt
```

The file kiva.xdsl is located in the project's input directory; pitt/kiva500k.txt is in the compute cluster's HDFS.

The output of the job is the local file named em-tmp.xdsl, containing the modified kiva.xdsl network with
learned parameters.

How to test Hive integration
----------------------------

To test the Hive UDFs, execute the normal maven package build followed by runscripts/hivePosteriors.sh. This
creates the target/hive-test directory, containing all the files required for UDF test. The command to run the test is:

```
hive -f hivePosteriors.q
```

Hive will import small data file and perform four queries, each calling into SMILE-WIDE UDFs.

Problems and Solutions
----------------------

java.lang.UnsatisfiedLinkError: no jsmile in java.library.path

This exception is caused by missing native library. The platform-specific library is placed in target/lib during the Maven build,
but Hadoop and Hive must be made aware of its existence. This is done with the Hadoop's -files option or
Hive's 'ADD FILE'. Some of SMILE-WIDE algorithms contain nontrivial local component running within the
Hadoop's client JVM. In such case the shared library should be added to $HADOOP_BIN/native directory

How to generate Javadoc API documentation
-----------------------------------------

The SMILE-WIDE API Javadoc documentation can be generated from the command line. With 'javadoc' on the path,
issue the following command:

```
javadoc @options.javadoc.text
```

This will generate HTML documentation in the 'javadocs' directory.