text:
'use strict';

import { TPromise } from 'vs/base/common/winjs.base';
import { EditorInput } from 'vs/workbench/common/editor';
import { IEventEmitter } from 'vs/base/common/eventEmitter';
import { IDisposable } from 'vs/base/common/lifecycle';
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
import Event from 'vs/base/common/event';

// Model raw interfaces

export interface IRawFileStatus {
	x: string;
	y: string;
	path: string;
	mimetype: string;
	rename?: string;
}

export interface IRemote {
	name: string;
	url: string;
}

export enum RefType {
	Head,
	RemoteHead,
	Tag
}

export interface IRef {
	name: string;
	commit: string;
	type: RefType;
	remote?: string;
}

export interface IBranch extends IRef {
	upstream?: string;
	ahead?: number;
	behind?: number;
}

export interface IRawStatus {
	repositoryRoot: string;
	state?: ServiceState;
	status: IRawFileStatus[];
	HEAD: IBranch;
	refs: IRef[];
	remotes: IRemote[];
}

export interface ICommit {
	hash: string;
	message: string;
}

// Model enums

export enum StatusType {
	INDEX,
	WORKING_TREE,
	MERGE
}

export enum Status {
	INDEX_MODIFIED,
	INDEX_ADDED,
	INDEX_DELETED,
	INDEX_RENAMED,
	INDEX_COPIED,

	MODIFIED,
	DELETED,
	UNTRACKED,
	IGNORED,

	ADDED_BY_US,
	ADDED_BY_THEM,
	DELETED_BY_US,
	DELETED_BY_THEM,
	BOTH_ADDED,
	BOTH_DELETED,
	BOTH_MODIFIED
}

// Model events

export const ModelEvents = {
	MODEL_UPDATED: 'ModelUpdated',
	STATUS_MODEL_UPDATED: 'StatusModelUpdated',
	HEAD_UPDATED: 'HEADUpdated',
	REFS_UPDATED: 'RefsUpdated',
	REMOTES_UPDATED: 'RemotesUpdated'
};

// Model interfaces

export interface IFileStatus {
	getId(): string;
	getType(): StatusType;
	getPath(): string;
	getPathComponents(): string[];
	getMimetype(): string;
	getStatus(): Status;
	getRename(): string;
	clone(): IFileStatus;
	update(other: IFileStatus): void;
}

export interface IStatusGroup extends IEventEmitter {
	getType(): StatusType;
	update(statusList: IFileStatus[]): void;
	all(): IFileStatus[];
	find(path: string): IFileStatus;
}

export interface IStatusSummary {
	hasWorkingTreeChanges: boolean;
	hasIndexChanges: boolean;
	hasMergeChanges: boolean;
}

export interface IStatusModel extends IEventEmitter {
	getSummary(): IStatusSummary;
	update(status: IRawFileStatus[]): void;
	getIndexStatus(): IStatusGroup;
	getWorkingTreeStatus(): IStatusGroup;
	getMergeStatus(): IStatusGroup;
	getGroups(): IStatusGroup[];
	find(path: string, type: StatusType): IFileStatus;
}

export interface IModel extends IEventEmitter {
	getRepositoryRoot(): string;
	getStatus(): IStatusModel;
	getHEAD(): IBranch;
	getRefs(): IRef[];
	getRemotes(): IRemote[];
	update(status: IRawStatus): void;
	getPS1(): string;
}

// Service operations

export interface IGitOperation extends IDisposable {
	id: string;
	run(): TPromise<IRawStatus>;
}

// Service enums

export enum ServiceState {
	NotInitialized,
	NotARepo,
	NotAtRepoRoot,
	OK,
	Huge,
	NoGit,
	Disabled,
	NotAWorkspace
}

export enum RawServiceState {
	OK,
	GitNotFound,
	Disabled
}

export const GitErrorCodes = {
	BadConfigFile: 'BadConfigFile',
	AuthenticationFailed: 'AuthenticationFailed',
	NoUserNameConfigured: 'NoUserNameConfigured',
	NoUserEmailConfigured: 'NoUserEmailConfigured',
	NoRemoteRepositorySpecified: 'NoRemoteRepositorySpecified',
	NotAGitRepository: 'NotAGitRepository',
	NotAtRepositoryRoot: 'NotAtRepositoryRoot',
	Conflict: 'Conflict',
	UnmergedChanges: 'UnmergedChanges',
	PushRejected: 'PushRejected',
	RemoteConnectionError: 'RemoteConnectionError',
	DirtyWorkTree: 'DirtyWorkTree',
	CantOpenResource: 'CantOpenResource',
	GitNotFound: 'GitNotFound',
	CantCreatePipe: 'CantCreatePipe',
	CantAccessRemote: 'CantAccessRemote',
	RepositoryNotFound: 'RepositoryNotFound'
};

export enum AutoFetcherState {
	Disabled,
	Inactive,
	Active,
	Fetching
}

// Service events

export const ServiceEvents = {
	STATE_CHANGED: 'stateChanged',
	REPO_CHANGED: 'repoChanged',
	OPERATION_START: 'operationStart',
	OPERATION_END: 'operationEnd',
	OPERATION: 'operation',
	ERROR: 'error',
	DISPOSE: 'dispose'
};

// Service operations

export const ServiceOperations = {
	STATUS: 'status',
	INIT: 'init',
	ADD: 'add',
	STAGE: 'stage',
	BRANCH: 'branch',
	CHECKOUT: 'checkout',
	CLEAN: 'clean',
	UNDO: 'undo',
	RESET: 'reset',
	REVERT: 'revert',
	COMMIT: 'commit',
	COMMAND: 'command',
	BACKGROUND_FETCH: 'backgroundfetch',
	PULL: 'pull',
	PUSH: 'push',
	SYNC: 'sync'
};

// Service config

export interface IGitConfiguration {
	enabled: boolean;
	path: string;
	autorefresh: boolean;
	autofetch: boolean;
	enableLongCommitWarning: boolean;
	allowLargeRepositories: boolean;
	confirmSync: boolean;
	countBadge: string;
}

// Service interfaces

export interface IAutoFetcher {
	state: AutoFetcherState;
	activate(): void;
	deactivate(): void;
}

export interface IGitCredentialScope {
	protocol: string;
	host: string;
	path: string;
}

export interface ICredentials {
	username: string;
	password: string;
}

export interface IGitServiceError extends Error {
	gitErrorCode: string;
}

export interface IPushOptions {
	setUpstream?: boolean;
}

export interface IRawGitService {
	onOutput: Event<string>;
	getVersion(): TPromise<string>;
	serviceState(): TPromise<RawServiceState>;
	statusCount(): TPromise<number>;
	status(): TPromise<IRawStatus>;
	init(): TPromise<IRawStatus>;
	add(filesPaths?: string[]): TPromise<IRawStatus>;
	stage(filePath: string, content: string): TPromise<IRawStatus>;
	branch(name: string, checkout?: boolean): TPromise<IRawStatus>;
	checkout(treeish?: string, filePaths?: string[]): TPromise<IRawStatus>;
	clean(filePaths: string[]): TPromise<IRawStatus>;
	undo(): TPromise<IRawStatus>;
	reset(treeish: string, hard?: boolean): TPromise<IRawStatus>;
	revertFiles(treeish: string, filePaths?: string[]): TPromise<IRawStatus>;
	fetch(): TPromise<IRawStatus>;
	pull(rebase?: boolean): TPromise<IRawStatus>;
	push(remote?: string, name?: string, options?: IPushOptions): TPromise<IRawStatus>;
	sync(): TPromise<IRawStatus>;
	commit(message: string, amend?: boolean, stage?: boolean, signoff?: boolean): TPromise<IRawStatus>;
	detectMimetypes(path: string, treeish?: string): TPromise<string[]>;
	show(path: string, treeish?: string): TPromise<string>;
	clone(url: string, parentPath: string): TPromise<string>;
	getCommitTemplate(): TPromise<string>;
	getCommit(ref: string): TPromise<ICommit>;
}

export const GIT_SERVICE_ID = 'gitService';

export const IGitService = createDecorator<IGitService>(GIT_SERVICE_ID);

export interface IGitService extends IEventEmitter {
	_serviceBrand: any;
	allowHugeRepositories: boolean;
	onOutput: Event<string>;
	status(): TPromise<IModel>;
	init(): TPromise<IModel>;
	add(files?: IFileStatus[]): TPromise<IModel>;
	stage(filePath: string, content: string): TPromise<IModel>;
	branch(name: string, checkout?: boolean): TPromise<IModel>;
	checkout(treeish?: string, files?: IFileStatus[]): TPromise<IModel>;
	clean(files: IFileStatus[]): TPromise<IModel>;
	undo(): TPromise<IModel>;
	reset(treeish: string, hard?: boolean): TPromise<IModel>;
	revertFiles(treeish: string, files?: IFileStatus[]): TPromise<IModel>;
	fetch(): TPromise<IModel>;
	pull(rebase?: boolean): TPromise<IModel>;
	push(remote?: string, name?: string, options?: IPushOptions): TPromise<IModel>;
	sync(): TPromise<IModel>;
	commit(message: string, amend?: boolean, stage?: boolean, signoff?: boolean): TPromise<IModel>;
	detectMimetypes(path: string, treeish?: string): TPromise<string[]>;
	buffer(path: string, treeish?: string): TPromise<string>;
	clone(url: string, parentPath: string): TPromise<string>;

	getState(): ServiceState;
	getModel(): IModel;
	getInput(status: IFileStatus): TPromise<EditorInput>;
	isInitialized(): boolean;
	isIdle(): boolean;
	getRunningOperations(): IGitOperation[];
	getAutoFetcher(): IAutoFetcher;
	getCommitTemplate(): TPromise<string>;
	getCommit(ref: string): TPromise<ICommit>;
}

export interface IAskpassService {
	askpass(id: string, host: string, command: string): TPromise<ICredentials>;
}


text:
namespace LiveAnalyser.Controls
{
    partial class Projection
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.debug = new System.Windows.Forms.Label();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox4 = new System.Windows.Forms.GroupBox();
            this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.label9 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.BaseLatDir = new System.Windows.Forms.ComboBox();
            this.UseCurrent = new System.Windows.Forms.Button();
            this.BaseLatMin = new System.Windows.Forms.TextBox();
            this.latlabel = new System.Windows.Forms.Label();
            this.lonlabel = new System.Windows.Forms.Label();
            this.AddCur = new System.Windows.Forms.Button();
            this.UseSelected = new System.Windows.Forms.Button();
            this.BaseLonDir = new System.Windows.Forms.ComboBox();
            this.label1 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.UploadCur = new System.Windows.Forms.Button();
            this.BaseLatDeg = new System.Windows.Forms.TextBox();
            this.BaseLonDeg = new System.Windows.Forms.TextBox();
            this.BaseName = new System.Windows.Forms.TextBox();
            this.BaseDesc = new System.Windows.Forms.TextBox();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.BaseLonMin = new System.Windows.Forms.TextBox();
            this.groupBox3 = new System.Windows.Forms.GroupBox();
            this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
            this.label5 = new System.Windows.Forms.Label();
            this.UploadProj = new System.Windows.Forms.Button();
            this.ProjLon = new System.Windows.Forms.Label();
            this.newLanLab = new System.Windows.Forms.Label();
            this.namLab = new System.Windows.Forms.Label();
            this.ProjName = new System.Windows.Forms.TextBox();
            this.ProjDesc = new System.Windows.Forms.TextBox();
            this.Newlatlab = new System.Windows.Forms.Label();
            this.ProjLat = new System.Windows.Forms.Label();
            this.AddProj = new System.Windows.Forms.Button();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
            this.dist = new System.Windows.Forms.TextBox();
            this.dir = new System.Windows.Forms.TextBox();
            this.Dirlab = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.distlab = new System.Windows.Forms.Label();
            this.note = new System.Windows.Forms.Label();
            this.debugMes = new System.Windows.Forms.Label();
            this.tableLayoutPanel1.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.tableLayoutPanel5.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.tableLayoutPanel2.SuspendLayout();
            this.groupBox3.SuspendLayout();
            this.tableLayoutPanel4.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.tableLayoutPanel3.SuspendLayout();
            this.SuspendLayout();
            //
            // debug
            //
            this.debug.AutoSize = true;
            this.debug.Location = new System.Drawing.Point(58, 286);
            this.debug.Name = "debug";
            this.debug.Size = new System.Drawing.Size(0, 13);
            this.debug.TabIndex = 17;
            //
            // tableLayoutPanel1
            //
            this.tableLayoutPanel1.AutoSize = true;
            this.tableLayoutPanel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel1.ColumnCount = 1;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel1.Controls.Add(this.groupBox4, 0, 0);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 1;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 483F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 483F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 483F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(411, 483);
            this.tableLayoutPanel1.TabIndex = 19;
            //
            // groupBox4
            //
            this.groupBox4.AutoSize = true;
            this.groupBox4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.groupBox4.BackColor = System.Drawing.SystemColors.Control;
            this.groupBox4.Controls.Add(this.tableLayoutPanel5);
            this.groupBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox4.Location = new System.Drawing.Point(3, 3);
            this.groupBox4.Name = "groupBox4";
            this.groupBox4.Size = new System.Drawing.Size(405, 477);
            this.groupBox4.TabIndex = 25;
            this.groupBox4.TabStop = false;
            this.groupBox4.Text = "Waypoint Projection:";
            //
            // tableLayoutPanel5
            //
            this.tableLayoutPanel5.AutoSize = true;
            this.tableLayoutPanel5.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel5.ColumnCount = 1;
            this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel5.Controls.Add(this.groupBox1, 0, 0);
            this.tableLayoutPanel5.Controls.Add(this.groupBox3, 0, 2);
            this.tableLayoutPanel5.Controls.Add(this.groupBox2, 0, 1);
            this.tableLayoutPanel5.Controls.Add(this.note, 0, 3);
            this.tableLayoutPanel5.Controls.Add(this.debugMes, 0, 4);
            this.tableLayoutPanel5.Location = new System.Drawing.Point(24, 22);
            this.tableLayoutPanel5.Margin = new System.Windows.Forms.Padding(0);
            this.tableLayoutPanel5.Name = "tableLayoutPanel5";
            this.tableLayoutPanel5.RowCount = 5;
            this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel5.Size = new System.Drawing.Size(378, 433);
            this.tableLayoutPanel5.TabIndex = 25;
            this.tableLayoutPanel5.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel5_Paint);
            //
            // groupBox1
            //
            this.groupBox1.AutoSize = true;
            this.groupBox1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.groupBox1.Controls.Add(this.tableLayoutPanel2);
            this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox1.Location = new System.Drawing.Point(3, 3);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(372, 194);
            this.groupBox1.TabIndex = 22;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "From:";
            //
            // tableLayoutPanel2
            //
            this.tableLayoutPanel2.AutoSize = true;
            this.tableLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel2.ColumnCount = 7;
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel2.Controls.Add(this.label9, 4, 3);
            this.tableLayoutPanel2.Controls.Add(this.label8, 4, 2);
            this.tableLayoutPanel2.Controls.Add(this.BaseLatDir, 5, 2);
            this.tableLayoutPanel2.Controls.Add(this.UseCurrent, 0, 0);
            this.tableLayoutPanel2.Controls.Add(this.BaseLatMin, 3, 2);
            this.tableLayoutPanel2.Controls.Add(this.latlabel, 0, 2);
            this.tableLayoutPanel2.Controls.Add(this.lonlabel, 0, 3);
            this.tableLayoutPanel2.Controls.Add(this.AddCur, 6, 4);
            this.tableLayoutPanel2.Controls.Add(this.UseSelected, 0, 1);
            this.tableLayoutPanel2.Controls.Add(this.BaseLonDir, 5, 3);
            this.tableLayoutPanel2.Controls.Add(this.label1, 0, 4);
            this.tableLayoutPanel2.Controls.Add(this.label3, 0, 5);
            this.tableLayoutPanel2.Controls.Add(this.UploadCur, 6, 2);
            this.tableLayoutPanel2.Controls.Add(this.BaseLatDeg, 1, 2);
            this.tableLayoutPanel2.Controls.Add(this.BaseLonDeg, 1, 3);
            this.tableLayoutPanel2.Controls.Add(this.BaseName, 1, 4);
            this.tableLayoutPanel2.Controls.Add(this.BaseDesc, 1, 5);
            this.tableLayoutPanel2.Controls.Add(this.label6, 2, 2);
            this.tableLayoutPanel2.Controls.Add(this.label7, 2, 3);
            this.tableLayoutPanel2.Controls.Add(this.BaseLonMin, 3, 3);
            this.tableLayoutPanel2.Location = new System.Drawing.Point(30, 31);
            this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(0);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
            this.tableLayoutPanel2.RowCount = 6;
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel2.Size = new System.Drawing.Size(339, 146);
            this.tableLayoutPanel2.TabIndex = 0;
            this.tableLayoutPanel2.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel2_Paint);
            //
            // label9
            //
            this.label9.AutoSize = true;
            this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label9.Location = new System.Drawing.Point(157, 77);
            this.label9.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(16, 20);
            this.label9.TabIndex = 34;
            this.label9.Text = "\"";
            //
            // label8
            //
            this.label8.AutoSize = true;
            this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label8.Location = new System.Drawing.Point(157, 50);
            this.label8.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(16, 20);
            this.label8.TabIndex = 33;
            this.label8.Text = "\"";
            //
            // BaseLatDir
            //
            this.BaseLatDir.DisplayMember = "N";
            this.BaseLatDir.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BaseLatDir.FormattingEnabled = true;
            this.BaseLatDir.Items.AddRange(new object[] {
            "N",
            "S"});
            this.BaseLatDir.Location = new System.Drawing.Point(180, 53);
            this.BaseLatDir.Name = "BaseLatDir";
            this.BaseLatDir.Size = new System.Drawing.Size(37, 21);
            this.BaseLatDir.TabIndex = 25;
            this.BaseLatDir.Text = "N";
            this.BaseLatDir.ValueMember = "N";
            this.BaseLatDir.TextChanged += new System.EventHandler(this.SetBase);
            //
            // UseCurrent
            //
            this.UseCurrent.AutoSize = true;
            this.UseCurrent.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel2.SetColumnSpan(this.UseCurrent, 7);
            this.UseCurrent.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.UseCurrent.Location = new System.Drawing.Point(0, 0);
            this.UseCurrent.Margin = new System.Windows.Forms.Padding(0);
            this.UseCurrent.Name = "UseCurrent";
            this.UseCurrent.Size = new System.Drawing.Size(146, 25);
            this.UseCurrent.TabIndex = 11;
            this.UseCurrent.Text = "Use current position";
            this.UseCurrent.UseVisualStyleBackColor = true;
            this.UseCurrent.Click += new System.EventHandler(this.SetToCurrent_Click);
            //
            // BaseLatMin
            //
            this.BaseLatMin.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BaseLatMin.Location = new System.Drawing.Point(107, 53);
            this.BaseLatMin.Margin = new System.Windows.Forms.Padding(4, 3, 0, 3);
            this.BaseLatMin.Name = "BaseLatMin";
            this.BaseLatMin.Size = new System.Drawing.Size(50, 21);
            this.BaseLatMin.TabIndex = 2;
            this.BaseLatMin.Text = "00.000";
            this.BaseLatMin.TextChanged += new System.EventHandler(this.SetBase);
            //
            // latlabel
            //
            this.latlabel.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.latlabel.AutoSize = true;
            this.latlabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.latlabel.Location = new System.Drawing.Point(24, 56);
            this.latlabel.Name = "latlabel";
            this.latlabel.Size = new System.Drawing.Size(23, 15);
            this.latlabel.TabIndex = 1;
            this.latlabel.Text = "lat:";
            //
            // lonlabel
            //
            this.lonlabel.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.lonlabel.AutoSize = true;
            this.lonlabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lonlabel.Location = new System.Drawing.Point(20, 83);
            this.lonlabel.Name = "lonlabel";
            this.lonlabel.Size = new System.Drawing.Size(27, 15);
            this.lonlabel.TabIndex = 3;
            this.lonlabel.Text = "lon:";
            //
            // AddCur
            //
            this.AddCur.AutoSize = true;
            this.AddCur.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.AddCur.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.AddCur.Location = new System.Drawing.Point(231, 107);
            this.AddCur.Name = "AddCur";
            this.tableLayoutPanel2.SetRowSpan(this.AddCur, 2);
            this.AddCur.Size = new System.Drawing.Size(80, 25);
            this.AddCur.TabIndex = 12;
            this.AddCur.Text = "Add to list";
            this.AddCur.UseVisualStyleBackColor = true;
            this.AddCur.Click += new System.EventHandler(this.CurAddList);
            //
            // UseSelected
            //
            this.UseSelected.AutoSize = true;
            this.UseSelected.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel2.SetColumnSpan(this.UseSelected, 7);
            this.UseSelected.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.UseSelected.Location = new System.Drawing.Point(0, 25);
            this.UseSelected.Margin = new System.Windows.Forms.Padding(0);
            this.UseSelected.Name = "UseSelected";
            this.UseSelected.Size = new System.Drawing.Size(160, 25);
            this.UseSelected.TabIndex = 0;
            this.UseSelected.Text = "Use selected waypoint";
            this.UseSelected.UseVisualStyleBackColor = true;
            this.UseSelected.Leave += new System.EventHandler(this.Project);
            //
            // BaseLonDir
            //
            this.BaseLonDir.DisplayMember = "N";
            this.BaseLonDir.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BaseLonDir.FormattingEnabled = true;
            this.BaseLonDir.Items.AddRange(new object[] {
            "W",
            "E"});
            this.BaseLonDir.Location = new System.Drawing.Point(180, 80);
            this.BaseLonDir.Name = "BaseLonDir";
            this.BaseLonDir.Size = new System.Drawing.Size(37, 21);
            this.BaseLonDir.TabIndex = 26;
            this.BaseLonDir.Text = "W";
            this.BaseLonDir.ValueMember = "W";
            this.BaseLonDir.TextChanged += new System.EventHandler(this.SetBase);
            //
            // label1
            //
            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.Location = new System.Drawing.Point(3, 107);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(44, 15);
            this.label1.TabIndex = 16;
            this.label1.Text = "Name:";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // label3
            //
            this.label3.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.label3.AutoSize = true;
            this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label3.Location = new System.Drawing.Point(9, 128);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(38, 15);
            this.label3.TabIndex = 27;
            this.label3.Text = "Desc:";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // UploadCur
            //
            this.UploadCur.AutoSize = true;
            this.UploadCur.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.UploadCur.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.UploadCur.Location = new System.Drawing.Point(228, 50);
            this.UploadCur.Margin = new System.Windows.Forms.Padding(0);
            this.UploadCur.Name = "UploadCur";
            this.tableLayoutPanel2.SetRowSpan(this.UploadCur, 2);
            this.UploadCur.Size = new System.Drawing.Size(111, 25);
            this.UploadCur.TabIndex = 19;
            this.UploadCur.Text = "Upload to GPS";
            this.UploadCur.UseVisualStyleBackColor = true;
            this.UploadCur.Click += new System.EventHandler(this.BaseUpload);
            //
            // BaseLatDeg
            //
            this.BaseLatDeg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BaseLatDeg.Location = new System.Drawing.Point(60, 53);
            this.BaseLatDeg.Margin = new System.Windows.Forms.Padding(10, 3, 0, 3);
            this.BaseLatDeg.Name = "BaseLatDeg";
            this.BaseLatDeg.Size = new System.Drawing.Size(23, 21);
            this.BaseLatDeg.TabIndex = 29;
            this.BaseLatDeg.Text = "00";
            this.BaseLatDeg.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.BaseLatDeg.TextChanged += new System.EventHandler(this.SetBase);
            //
            // BaseLonDeg
            //
            this.BaseLonDeg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BaseLonDeg.Location = new System.Drawing.Point(53, 80);
            this.BaseLonDeg.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
            this.BaseLonDeg.Name = "BaseLonDeg";
            this.BaseLonDeg.Size = new System.Drawing.Size(30, 21);
            this.BaseLonDeg.TabIndex = 30;
            this.BaseLonDeg.Tag = "";
            this.BaseLonDeg.Text = "000";
            this.BaseLonDeg.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.BaseLonDeg.TextChanged += new System.EventHandler(this.SetBase);
            //
            // BaseName
            //
            this.BaseName.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.tableLayoutPanel2.SetColumnSpan(this.BaseName, 5);
            this.BaseName.Location = new System.Drawing.Point(50, 104);
            this.BaseName.Margin = new System.Windows.Forms.Padding(0);
            this.BaseName.MaxLength = 12;
            this.BaseName.Name = "BaseName";
            this.BaseName.Size = new System.Drawing.Size(67, 21);
            this.BaseName.TabIndex = 18;
            this.BaseName.TextChanged += new System.EventHandler(this.SetBase);
            //
            // BaseDesc
            //
            this.BaseDesc.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.tableLayoutPanel2.SetColumnSpan(this.BaseDesc, 5);
            this.BaseDesc.Location = new System.Drawing.Point(50, 125);
            this.BaseDesc.Margin = new System.Windows.Forms.Padding(0);
            this.BaseDesc.MaxLength = 1000;
            this.BaseDesc.Name = "BaseDesc";
            this.BaseDesc.Size = new System.Drawing.Size(178, 21);
            this.BaseDesc.TabIndex = 28;
            //
            // label6
            //
            this.label6.AutoSize = true;
            this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label6.Location = new System.Drawing.Point(83, 50);
            this.label6.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(15, 20);
            this.label6.TabIndex = 31;
            this.label6.Text = "°";
            //
            // label7
            //
            this.label7.AutoSize = true;
            this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label7.Location = new System.Drawing.Point(83, 77);
            this.label7.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(15, 20);
            this.label7.TabIndex = 32;
            this.label7.Text = "°";
            //
            // BaseLonMin
            //
            this.BaseLonMin.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.BaseLonMin.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.BaseLonMin.Location = new System.Drawing.Point(106, 80);
            this.BaseLonMin.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3);
            this.BaseLonMin.Name = "BaseLonMin";
            this.BaseLonMin.Size = new System.Drawing.Size(51, 21);
            this.BaseLonMin.TabIndex = 4;
            this.BaseLonMin.Text = "00.000";
            this.BaseLonMin.TextChanged += new System.EventHandler(this.SetBase);
            //
            // groupBox3
            //
            this.groupBox3.AutoSize = true;
            this.groupBox3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.groupBox3.Controls.Add(this.tableLayoutPanel4);
            this.groupBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox3.Location = new System.Drawing.Point(0, 284);
            this.groupBox3.Margin = new System.Windows.Forms.Padding(0);
            this.groupBox3.Name = "groupBox3";
            this.groupBox3.Padding = new System.Windows.Forms.Padding(0);
            this.groupBox3.Size = new System.Drawing.Size(366, 116);
            this.groupBox3.TabIndex = 24;
            this.groupBox3.TabStop = false;
            this.groupBox3.Text = "Result:";
            //
            // tableLayoutPanel4
            //
            this.tableLayoutPanel4.AutoSize = true;
            this.tableLayoutPanel4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel4.ColumnCount = 3;
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel4.Controls.Add(this.label5, 0, 3);
            this.tableLayoutPanel4.Controls.Add(this.UploadProj, 2, 0);
            this.tableLayoutPanel4.Controls.Add(this.ProjLon, 1, 1);
            this.tableLayoutPanel4.Controls.Add(this.newLanLab, 0, 1);
            this.tableLayoutPanel4.Controls.Add(this.namLab, 0, 2);
            this.tableLayoutPanel4.Controls.Add(this.ProjName, 1, 2);
            this.tableLayoutPanel4.Controls.Add(this.ProjDesc, 1, 3);
            this.tableLayoutPanel4.Controls.Add(this.Newlatlab, 0, 0);
            this.tableLayoutPanel4.Controls.Add(this.ProjLat, 1, 0);
            this.tableLayoutPanel4.Controls.Add(this.AddProj, 2, 2);
            this.tableLayoutPanel4.Location = new System.Drawing.Point(30, 30);
            this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(0);
            this.tableLayoutPanel4.Name = "tableLayoutPanel4";
            this.tableLayoutPanel4.RowCount = 4;
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel4.Size = new System.Drawing.Size(336, 72);
            this.tableLayoutPanel4.TabIndex = 0;
            this.tableLayoutPanel4.Paint += new System.Windows.Forms.PaintEventHandler(this.tableLayoutPanel4_Paint);
            //
            // label5
            //
            this.label5.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.label5.AutoSize = true;
            this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label5.Location = new System.Drawing.Point(9, 54);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(38, 15);
            this.label5.TabIndex = 28;
            this.label5.Text = "Desc:";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // UploadProj
            //
            this.UploadProj.AutoSize = true;
            this.UploadProj.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.UploadProj.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.UploadProj.Location = new System.Drawing.Point(225, 0);
            this.UploadProj.Margin = new System.Windows.Forms.Padding(0);
            this.UploadProj.Name = "UploadProj";
            this.tableLayoutPanel4.SetRowSpan(this.UploadProj, 2);
            this.UploadProj.Size = new System.Drawing.Size(111, 25);
            this.UploadProj.TabIndex = 10;
            this.UploadProj.Text = "Upload to GPS";
            this.UploadProj.UseVisualStyleBackColor = true;
            this.UploadProj.Click += new System.EventHandler(this.ProjUpload);
            //
            // ProjLon
            //
            this.ProjLon.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.ProjLon.AutoSize = true;
            this.ProjLon.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ProjLon.Location = new System.Drawing.Point(53, 15);
            this.ProjLon.Name = "ProjLon";
            this.ProjLon.Size = new System.Drawing.Size(31, 15);
            this.ProjLon.TabIndex = 14;
            this.ProjLon.Text = "???";
            //
            // newLanLab
            //
            this.newLanLab.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.newLanLab.AutoSize = true;
            this.newLanLab.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.newLanLab.Location = new System.Drawing.Point(20, 15);
            this.newLanLab.Name = "newLanLab";
            this.newLanLab.Size = new System.Drawing.Size(27, 15);
            this.newLanLab.TabIndex = 13;
            this.newLanLab.Text = "lon:";
            //
            // namLab
            //
            this.namLab.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.namLab.AutoSize = true;
            this.namLab.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.namLab.Location = new System.Drawing.Point(3, 33);
            this.namLab.Name = "namLab";
            this.namLab.Size = new System.Drawing.Size(44, 15);
            this.namLab.TabIndex = 15;
            this.namLab.Text = "Name:";
            //
            // ProjName
            //
            this.ProjName.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.ProjName.Location = new System.Drawing.Point(50, 30);
            this.ProjName.Margin = new System.Windows.Forms.Padding(0);
            this.ProjName.MaxLength = 12;
            this.ProjName.Name = "ProjName";
            this.ProjName.Size = new System.Drawing.Size(64, 21);
            this.ProjName.TabIndex = 16;
            this.ProjName.TextChanged += new System.EventHandler(this.SetProjName);
            //
            // ProjDesc
            //
            this.ProjDesc.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.ProjDesc.Location = new System.Drawing.Point(50, 51);
            this.ProjDesc.Margin = new System.Windows.Forms.Padding(0);
            this.ProjDesc.MaxLength = 1000;
            this.ProjDesc.Name = "ProjDesc";
            this.ProjDesc.Size = new System.Drawing.Size(175, 21);
            this.ProjDesc.TabIndex = 29;
            //
            // Newlatlab
            //
            this.Newlatlab.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.Newlatlab.AutoSize = true;
            this.Newlatlab.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Newlatlab.Location = new System.Drawing.Point(24, 0);
            this.Newlatlab.Name = "Newlatlab";
            this.Newlatlab.Size = new System.Drawing.Size(23, 15);
            this.Newlatlab.TabIndex = 11;
            this.Newlatlab.Text = "lat:";
            //
            // ProjLat
            //
            this.ProjLat.AutoSize = true;
            this.ProjLat.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.ProjLat.Location = new System.Drawing.Point(60, 0);
            this.ProjLat.Margin = new System.Windows.Forms.Padding(10, 0, 3, 0);
            this.ProjLat.Name = "ProjLat";
            this.ProjLat.Size = new System.Drawing.Size(23, 15);
            this.ProjLat.TabIndex = 12;
            this.ProjLat.Text = "??";
            //
            // AddProj
            //
            this.AddProj.AutoSize = true;
            this.AddProj.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.AddProj.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.AddProj.Location = new System.Drawing.Point(228, 33);
            this.AddProj.Name = "AddProj";
            this.tableLayoutPanel4.SetRowSpan(this.AddProj, 2);
            this.AddProj.Size = new System.Drawing.Size(80, 25);
            this.AddProj.TabIndex = 17;
            this.AddProj.Text = "Add to list";
            this.AddProj.UseVisualStyleBackColor = true;
            this.AddProj.Click += new System.EventHandler(this.AddProj_Click);
            //
            // groupBox2
            //
            this.groupBox2.AutoSize = true;
            this.groupBox2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.groupBox2.Controls.Add(this.tableLayoutPanel3);
            this.groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.groupBox2.Location = new System.Drawing.Point(0, 200);
            this.groupBox2.Margin = new System.Windows.Forms.Padding(0);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Padding = new System.Windows.Forms.Padding(0);
            this.groupBox2.Size = new System.Drawing.Size(236, 84);
            this.groupBox2.TabIndex = 23;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "By:";
            //
            // tableLayoutPanel3
            //
            this.tableLayoutPanel3.AutoSize = true;
            this.tableLayoutPanel3.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel3.ColumnCount = 3;
            this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.tableLayoutPanel3.Controls.Add(this.dist, 1, 0);
            this.tableLayoutPanel3.Controls.Add(this.dir, 1, 1);
            this.tableLayoutPanel3.Controls.Add(this.Dirlab, 0, 1);
            this.tableLayoutPanel3.Controls.Add(this.label2, 2, 0);
            this.tableLayoutPanel3.Controls.Add(this.label4, 2, 1);
            this.tableLayoutPanel3.Controls.Add(this.distlab, 0, 0);
            this.tableLayoutPanel3.Location = new System.Drawing.Point(27, 28);
            this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(0);
            this.tableLayoutPanel3.Name = "tableLayoutPanel3";
            this.tableLayoutPanel3.RowCount = 2;
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle());
            this.tableLayoutPanel3.Size = new System.Drawing.Size(209, 42);
            this.tableLayoutPanel3.TabIndex = 0;
            //
            // dist
            //
            this.dist.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.dist.Location = new System.Drawing.Point(65, 0);
            this.dist.Margin = new System.Windows.Forms.Padding(0);
            this.dist.MaxLength = 5;
            this.dist.Name = "dist";
            this.dist.Size = new System.Drawing.Size(57, 21);
            this.dist.TabIndex = 5;
            this.dist.TextChanged += new System.EventHandler(this.Project);
            this.dist.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Numeric_KeyPress);
            //
            // dir
            //
            this.dir.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.dir.Location = new System.Drawing.Point(65, 21);
            this.dir.Margin = new System.Windows.Forms.Padding(0);
            this.dir.MaxLength = 3;
            this.dir.Name = "dir";
            this.dir.Size = new System.Drawing.Size(57, 21);
            this.dir.TabIndex = 9;
            this.dir.TextChanged += new System.EventHandler(this.Project);
            this.dir.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Numeric_KeyPress);
            //
            // Dirlab
            //
            this.Dirlab.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.Dirlab.AutoSize = true;
            this.Dirlab.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Dirlab.Location = new System.Drawing.Point(3, 24);
            this.Dirlab.Name = "Dirlab";
            this.Dirlab.Size = new System.Drawing.Size(59, 15);
            this.Dirlab.TabIndex = 8;
            this.Dirlab.Text = "Direction:";
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Dock = System.Windows.Forms.DockStyle.Left;
            this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label2.Location = new System.Drawing.Point(125, 0);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(81, 21);
            this.label2.TabIndex = 10;
            this.label2.Text = "(Nautical  miles)";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.Dock = System.Windows.Forms.DockStyle.Left;
            this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label4.Location = new System.Drawing.Point(125, 21);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(58, 21);
            this.label4.TabIndex = 11;
            this.label4.Text = "° (degrees)";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // distlab
            //
            this.distlab.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.distlab.AutoSize = true;
            this.distlab.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.distlab.Location = new System.Drawing.Point(4, 3);
            this.distlab.Name = "distlab";
            this.distlab.Size = new System.Drawing.Size(58, 15);
            this.distlab.TabIndex = 7;
            this.distlab.Text = "Distance:";
            //
            // note
            //
            this.note.AutoSize = true;
            this.note.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.note.Location = new System.Drawing.Point(3, 400);
            this.note.Name = "note";
            this.note.Size = new System.Drawing.Size(320, 13);
            this.note.TabIndex = 25;
            this.note.Text = "If chg WP on GPS, GPS will add Num to Name and save new WP";
            //
            // debugMes
            //
            this.debugMes.AutoSize = true;
            this.debugMes.Location = new System.Drawing.Point(3, 413);
            this.debugMes.Name = "debugMes";
            this.debugMes.Size = new System.Drawing.Size(0, 20);
            this.debugMes.TabIndex = 26;
            //
            // Projection
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoSize = true;
            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.Controls.Add(this.tableLayoutPanel1);
            this.Controls.Add(this.debug);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.MinimumSize = new System.Drawing.Size(346, 286);
            this.Name = "Projection";
            this.Size = new System.Drawing.Size(411, 483);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.tableLayoutPanel5.ResumeLayout(false);
            this.tableLayoutPanel5.PerformLayout();
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.tableLayoutPanel2.ResumeLayout(false);
            this.tableLayoutPanel2.PerformLayout();
            this.groupBox3.ResumeLayout(false);
            this.groupBox3.PerformLayout();
            this.tableLayoutPanel4.ResumeLayout(false);
            this.tableLayoutPanel4.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.tableLayoutPanel3.ResumeLayout(false);
            this.tableLayoutPanel3.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label debug;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
        private System.Windows.Forms.GroupBox groupBox4;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
        private System.Windows.Forms.Button UploadCur;
        private System.Windows.Forms.Button UseCurrent;
        private System.Windows.Forms.TextBox BaseLatMin;
        private System.Windows.Forms.Label latlabel;
        private System.Windows.Forms.TextBox BaseLonMin;
        private System.Windows.Forms.Label lonlabel;
        private System.Windows.Forms.TextBox BaseName;
        private System.Windows.Forms.Button AddCur;
        private System.Windows.Forms.Button UseSelected;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.GroupBox groupBox3;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
        private System.Windows.Forms.Button AddProj;
        private System.Windows.Forms.Label Newlatlab;
        private System.Windows.Forms.Label ProjLon;
        private System.Windows.Forms.Label newLanLab;
        private System.Windows.Forms.TextBox ProjName;
        private System.Windows.Forms.Label namLab;
        private System.Windows.Forms.Label ProjLat;
        private System.Windows.Forms.GroupBox groupBox2;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
        private System.Windows.Forms.Label distlab;
        private System.Windows.Forms.TextBox dist;
        private System.Windows.Forms.TextBox dir;
        private System.Windows.Forms.Label Dirlab;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.ComboBox BaseLatDir;
        private System.Windows.Forms.ComboBox BaseLonDir;
        private System.Windows.Forms.TextBox BaseDesc;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.TextBox ProjDesc;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5;
        private System.Windows.Forms.Button UploadProj;
        private System.Windows.Forms.Label note;
        private System.Windows.Forms.Label debugMes;
        private System.Windows.Forms.TextBox BaseLatDeg;
        private System.Windows.Forms.TextBox BaseLonDeg;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Label label7;
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.huawei.esdk.ivs.professional.local.bean;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.huawei.esdk.ivs.professional.local.impl.autogen.Adapter3;

/**
 *
Java class for Backlight complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="Backlight">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="backlightMode" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="backlightLevel" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="reserve" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Backlight", propOrder = {
    "backlightMode",
    "backlightLevel",
    "reserve"
})
public class Backlight {

    @XmlElement(required = true, type = String.class)
    @XmlJavaTypeAdapter(Adapter3 .class)
    @XmlSchemaType(name = "int")
    protected Integer backlightMode;
    @XmlElement(required = true, type = String.class)
    @XmlJavaTypeAdapter(Adapter3 .class)
    @XmlSchemaType(name = "int")
    protected Integer backlightLevel;
    @XmlElement(required = true)
    protected String reserve;

    /**
     * Gets the value of the backlightMode property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public Integer getBacklightMode() {
        return backlightMode;
    }

    /**
     * Sets the value of the backlightMode property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setBacklightMode(Integer value) {
        this.backlightMode = value;
    }

    /**
     * Gets the value of the backlightLevel property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public Integer getBacklightLevel() {
        return backlightLevel;
    }

    /**
     * Sets the value of the backlightLevel property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setBacklightLevel(Integer value) {
        this.backlightLevel = value;
    }

    /**
     * Gets the value of the reserve property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    public String getReserve() {
        return reserve;
    }

    /**
     * Sets the value of the reserve property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setReserve(String value) {
        this.reserve = value;
    }

}


text:
using System;
using System.ComponentModel;
using System.Net;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace CygnusControls
{
	/// <summary>
	/// Interaction logic for UserControl1.xaml
	/// </summary>
	public partial class IPEditBox : UserControl, INotifyPropertyChanged
	{
		#region · Class Variables ·

		private IPAddress m_ip_address = new IPAddress(0);

		#endregion

		#region · Constructor ·

		public IPEditBox()
		{
			InitializeComponent();

			gEditBoxes.DataContext = this;
		}

		#endregion

		#region · Properties ·

		/// <summary>
		/// Current IP Address value
		/// </summary>
		public IPAddress IPAddressValue
		{
			get { return (IPAddress)GetValue(IPAddressValueProperty); }
			set { SetValue(IPAddressValueProperty, value); }
		}

		// Using a DependencyProperty as the backing store for IPAddressValue.  This enables animation, styling, binding, etc...
		public static readonly DependencyProperty IPAddressValueProperty =
				DependencyProperty.Register("IPAddressValue", typeof(IPAddress), typeof(IPEditBox), new FrameworkPropertyMetadata(new IPAddress(new byte[] {0,0,0,0}), FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIPAddressValueProperty));

		private static void OnIPAddressValueProperty(DependencyObject obj, DependencyPropertyChangedEventArgs e)
		{
			((IPEditBox)obj).m_ip_address = (IPAddress)(e.NewValue);

			((IPEditBox)obj).NotifyPropertyChanged("Octet1");
			((IPEditBox)obj).NotifyPropertyChanged("Octet2");
			((IPEditBox)obj).NotifyPropertyChanged("Octet3");
			((IPEditBox)obj).NotifyPropertyChanged("Octet4");
		}

		/// <summary>
		/// First octet of the IP Address
		/// </summary>
		public Int32 Octet1
		{
			get
			{
				if (m_ip_address == null)
					return 0;
				else
					return m_ip_address.GetAddressBytes()[0];
			}
			set
			{
				byte[] address_bytes = m_ip_address.GetAddressBytes();
				address_bytes[0] = (byte)value;
				IPAddressValue = new IPAddress(address_bytes);
				NotifyPropertyChanged("Octet1");
			}
		}

		/// <summary>
		/// Second octet of the IP address
		/// </summary>
		public Int32 Octet2
		{
			get
			{
				if (m_ip_address == null)
					return 0;
				else
					return m_ip_address.GetAddressBytes()[1];
			}
			set
			{
				byte[] address_bytes = m_ip_address.GetAddressBytes();
				address_bytes[1] = (byte)value;
				IPAddressValue = new IPAddress(address_bytes);
				NotifyPropertyChanged("Octet2");
			}
		}

		/// <summary>
		/// Third octet of the IP address
		/// </summary>
		public Int32 Octet3
		{
			get
			{
				if (m_ip_address == null)
					return 0;
				else
					return m_ip_address.GetAddressBytes()[2];
			}
			set
			{
				byte[] address_bytes = m_ip_address.GetAddressBytes();
				address_bytes[2] = (byte)value;
				IPAddressValue = new IPAddress(address_bytes);
				NotifyPropertyChanged("Octet3");
			}
		}

		/// <summary>
		/// Forth octet of the IP address
		/// </summary>
		public Int32 Octet4
		{
			get
			{
				if (m_ip_address == null)
					return 0;
				else
					return m_ip_address.GetAddressBytes()[3];
			}
			set
			{
				byte[] address_bytes = m_ip_address.GetAddressBytes();
				address_bytes[3] = (byte)value;
				IPAddressValue = new IPAddress(address_bytes);
				NotifyPropertyChanged("Octet4");
			}
		}

		#endregion

		#region · Overrides ·

		public override string ToString()
		{
			return m_ip_address.ToString();// String.Format("{0}.{1}.{2}.{3}", Octet1, Octet2, Octet3, Octet4);
		}

		#endregion

		#region · Events ·

		private void TextOctet_GotFocus(object sender, RoutedEventArgs e)
		{
			TextBox tb = (TextBox)sender;
			tb.SelectAll();
		}

		private void TextOctet_TextChanged(object sender, TextChangedEventArgs e)
		{

			String outString = String.Empty;

			String[] text = Regex.Split(((TextBox)sender).Text, "");
			foreach (string s in text)
				if (!Regex.IsMatch(s, "[^0-9]"))
					outString += s;

			if (String.IsNullOrWhiteSpace(outString))
				outString = "";
			else if (int.Parse(outString) > 255)
				outString = "255";

			((TextBox)sender).Text = outString;
			((TextBox)sender).GetBindingExpression(TextBox.TextProperty).UpdateSource();
		}

		private void FirstOctet_TextChanged(object sender, TextChangedEventArgs e)
		{

			String outString = String.Empty;

			String[] text = Regex.Split(((TextBox)sender).Text, "");
			foreach (string s in text)
				if (!Regex.IsMatch(s, "[^0-9]"))
					outString += s;

			if (String.IsNullOrWhiteSpace(outString))
				outString = "";
			else if (int.Parse(outString) > 255)
				outString = "255";

			((TextBox)sender).Text = outString;
			((TextBox)sender).GetBindingExpression(TextBox.TextProperty).UpdateSource();

		}

		private void TextOctet_PreviewMouseDown(object sender, MouseButtonEventArgs e)
		{
			TextBox tb = (TextBox)sender;
			tb.SelectAll();
		}

		private void TextOctetDecimalArrows_PreviewKeyUp(object sender, KeyEventArgs e)
		{
			if (e.Key == Key.Decimal)
			{
				TraversalRequest tRequest = new TraversalRequest(FocusNavigationDirection.Next);
				UIElement keyboardFocus = Keyboard.FocusedElement as UIElement;

				if (keyboardFocus != null)
				{
					keyboardFocus.MoveFocus(tRequest);
				}

				e.Handled = true;
			}
			else if (e.Key == Key.Right && ((TextBox)sender).Name != "TextOctet4")
			{
				if (((TextBox)sender).CaretIndex == ((TextBox)sender).Text.Length)
				{
					TraversalRequest tRequest = new TraversalRequest(FocusNavigationDirection.Next);
					UIElement keyboardFocus = Keyboard.FocusedElement as UIElement;

					if (keyboardFocus != null)
					{
						keyboardFocus.MoveFocus(tRequest);
					}

					e.Handled = true;
				}
			}
			else if (e.Key == Key.Left && ((TextBox)sender).Name != "TextOctet1")
			{
				if (((TextBox)sender).CaretIndex == 0)
				{
					TraversalRequest tRequest = new TraversalRequest(FocusNavigationDirection.Previous);
					UIElement keyboardFocus = Keyboard.FocusedElement as UIElement;

					if (keyboardFocus != null)
					{
						keyboardFocus.MoveFocus(tRequest);
					}

					e.Handled = true;
				}
			}
		}

		private void TextOctetArrowsOnly_PreviewKeyUp(object sender, KeyEventArgs e)
		{
			if (e.Key == Key.Right && ((TextBox)sender).Name != "TextOctet4")
			{
				if (((TextBox)sender).CaretIndex == ((TextBox)sender).Text.Length)
				{
					TraversalRequest tRequest = new TraversalRequest(FocusNavigationDirection.Next);
					UIElement keyboardFocus = Keyboard.FocusedElement as UIElement;

					if (keyboardFocus != null)
					{
						keyboardFocus.MoveFocus(tRequest);
					}

					e.Handled = true;
				}
			}
			else if (e.Key == Key.Left && ((TextBox)sender).Name != "TextOctet1")
			{
				if (((TextBox)sender).CaretIndex == 0)
				{
					TraversalRequest tRequest = new TraversalRequest(FocusNavigationDirection.Previous);
					UIElement keyboardFocus = Keyboard.FocusedElement as UIElement;

					if (keyboardFocus != null)
					{
						keyboardFocus.MoveFocus(tRequest);
					}

					e.Handled = true;
				}
			}
		}

		private void TextOctet1_LostFocus(object sender, RoutedEventArgs e)
		{
			if (String.IsNullOrWhiteSpace(((TextBox)sender).Text))
				((TextBox)sender).Text = "0";
		}

		#endregion

		#region · INotifyPropertyChanged ·

		public event PropertyChangedEventHandler PropertyChanged;

		private void NotifyPropertyChanged(String info)
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs(info));
			}
		}

		#endregion
	}
}


text:
import os

from oauth2client import client, crypt
from rest_framework.response import Response

from rest_framework.exceptions import AuthenticationFailed, PermissionDenied

def resolve_google_oauth(request):
    # token should be passed as an object {'ID_Token' : id_token }
    # to this view
    token = request.data.get('ID_Token')
    CLIENT_ID = os.environ.get('CLIENT_ID')

    token.replace(" ", "")

    try:
        idinfo = client.verify_id_token(token, CLIENT_ID)

        if 'hd' not in idinfo:
            raise AuthenticationFailed('Sorry, only Andelans can sign in')

        if idinfo['hd'] != 'andela.com':
            raise AuthenticationFailed('Sorry, only Andelans can sign in')

        if idinfo['iss'] not in ['accounts.google.com', 'https://accounts.google.com']:
            raise PermissionDenied('Wrong Issuer')

        if idinfo['email_verified'] == 'True' and idinfo['aud'] == CLIENT_ID:
            return idinfo

    except crypt.AppIdentityError:
        raise PermissionDenied('Invalid Token')

    return idinfo


text:
namespace Mgc {

class MAGICFM BezierTriangle2G : public BezierTriangleG
{
public:
    // Construction.  BezierTriangle2G accepts responsibility for deleting
    // the input array.
    BezierTriangle2G (Vector3* akCtrlPoint);

    // position and derivatives up to second order
    virtual Vector3 GetPosition (Real fU, Real fV) const;
    virtual Vector3 GetDerivativeU (Real fU, Real fV) const;
    virtual Vector3 GetDerivativeV (Real fU, Real fV) const;
    virtual Vector3 GetDerivativeUU (Real fU, Real fV) const;
    virtual Vector3 GetDerivativeUV (Real fU, Real fV) const;
    virtual Vector3 GetDerivativeVV (Real fU, Real fV) const;

    // tessellation by recursive subdivision
    virtual void Tessellate (int iLevel, bool bWantNormals);

protected:
    // precomputation (d/dh = d/du - d/dv)
    class MAGICFM BlockParameters
    {
    public:
        Vector3 m_kXuu, m_kXvv, m_kXhh;
    };

    // subdivide triangle with right angle at Lower Left corner
    void SubdivideLL (int iLevel, Real fDSqr, Vector3* akX, Vector3* akXu,
        Vector3* akXv, int i0, int i1, int i2, BlockParameters& rkBP);

    // subdivide triangle with right angle at Upper Right corner
    void SubdivideUR (int iLevel, Real fDSqr, Vector3* akX, Vector3* akXu,
        Vector3* akXv, int i0, int i1, int i2, BlockParameters& rkBP);
};

} // namespace Mgc

#endif


text:
require 'spec_helper'

module ::Rails
  class Railtie
    def self.initializer(name)
    end
  end
end

require_relative '../../lib/fist_of_fury/railtie'

describe FistOfFury::Railtie do
  after :all do
    Object.send(:remove_const, :Rails)
  end

  it 'derives from ::Rails::Railtie' do
    expect(described_class.ancestors).to include(::Rails::Railtie)
  end
end


text:
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace org.healthwise.newrelic.rabbitmq
{
    ///////////////////////////////////////////////////////////////////////////////
    // Objects for /api/overview and /api/nodes
    ///////////////////////////////////////////////////////////////////////////////

    public class ExchangeType
    {
        public string name { get; set; }
        public string description { get; set; }
        public bool enabled { get; set; }
        public string internal_purpose { get; set; }
    }

    public class AuthMechanism
    {
        public string name { get; set; }
        public string description { get; set; }
        public bool enabled { get; set; }
    }

    public class Application
    {
        public string name { get; set; }
        public string description { get; set; }
        public string version { get; set; }
    }

    public class SslOpts
    {
        public string cacertfile { get; set; }
        public string certfile { get; set; }
        public string keyfile { get; set; }
    }

    public class Context
    {
        public string description { get; set; }
        public string path { get; set; }
        public string port { get; set; }
        public string ssl { get; set; }
        public SslOpts ssl_opts { get; set; }
    }

    public class MemUsedDetails
    {
        public double rate { get; set; }
    }

    public class FdUsedDetails
    {
        public double rate { get; set; }
    }

    public class SocketsUsedDetails
    {
        public double rate { get; set; }
    }

    public class ProcUsedDetails
    {
        public double rate { get; set; }
    }

    public class DiskFreeDetails
    {
        public double rate { get; set; }
    }

    public class GcNumDetails
    {
        public double rate { get; set; }
    }

    public class GcBytesReclaimedDetails
    {
        public double rate { get; set; }
    }

    public class ContextSwitchesDetails
    {
        public double rate { get; set; }
    }

    public class IoReadCountDetails
    {
        public double rate { get; set; }
    }

    public class IoReadBytesDetails
    {
        public double rate { get; set; }
    }

    public class IoReadAvgTimeDetails
    {
        public double rate { get; set; }
    }

    public class IoWriteCountDetails
    {
        public double rate { get; set; }
    }

    public class IoWriteBytesDetails
    {
        public double rate { get; set; }
    }

    public class IoWriteAvgTimeDetails
    {
        public double rate { get; set; }
    }

    public class IoSyncCountDetails
    {
        public double rate { get; set; }
    }

    public class IoSyncAvgTimeDetails
    {
        public double rate { get; set; }
    }

    public class IoSeekCountDetails
    {
        public double rate { get; set; }
    }

    public class IoSeekAvgTimeDetails
    {
        public double rate { get; set; }
    }

    public class IoReopenCountDetails
    {
        public double rate { get; set; }
    }

    public class MnesiaRamTxCountDetails
    {
        public double rate { get; set; }
    }

    public class MnesiaDiskTxCountDetails
    {
        public double rate { get; set; }
    }

    public class MsgStoreReadCountDetails
    {
        public double rate { get; set; }
    }

    public class MsgStoreWriteCountDetails
    {
        public double rate { get; set; }
    }

    public class QueueIndexJournalWriteCountDetails
    {
        public double rate { get; set; }
    }

    public class QueueIndexWriteCountDetails
    {
        public double rate { get; set; }
    }

    public class QueueIndexReadCountDetails
    {
        public double rate { get; set; }
    }

    public class IoFileHandleOpenAttemptCountDetails
    {
        public double rate { get; set; }
    }

    public class IoFileHandleOpenAttemptAvgTimeDetails
    {
        public double rate { get; set; }
    }

    public class SendBytesDetails
    {
        public double rate { get; set; }
    }

    public class RecvBytesDetails
    {
        public double rate { get; set; }
    }

    public class Stats
    {
        public long send_bytes { get; set; }
        public SendBytesDetails send_bytes_details { get; set; }
        public long recv_bytes { get; set; }
        public RecvBytesDetails recv_bytes_details { get; set; }
    }

    public class ClusterLink
    {
        public Stats stats { get; set; }
        public string name { get; set; }

        /*
        public string peer_addr { get; set; }
        public long peer_port { get; set; }
        public string sock_addr { get; set; }
        public long sock_port { get; set; }
        public long recv_bytes { get; set; }
        public long send_bytes { get; set; }
        */
    }

    public class MetricsGcQueueLength
    {
        public long connection_closed { get; set; }
        public long channel_closed { get; set; }
        public long consumer_deleted { get; set; }
        public long exchange_deleted { get; set; }
        public long queue_deleted { get; set; }
        public long vhost_deleted { get; set; }
        public long node_node_deleted { get; set; }
        public long channel_consumer_deleted { get; set; }
    }

    ///////////////////////////////////////////////////////////////////////////////
    // Node Object
    ///////////////////////////////////////////////////////////////////////////////
    public class NodeObject
    {
        public string name { get; set; }

        public long mem_used { get; set; }

        public long mem_limit { get; set; }

        public double disk_free { get; set; }

        public long fd_total { get; set; }

        public long fd_used { get; set; }

        public long sockets_used { get; set; }

        public long sockets_total { get; set; }

        public bool running { get; set; }

        public List<object> partitions { get; set; }

        public bool mem_alarm { get; set; }

        public bool disk_free_alarm { get; set; }

        /*
                public string os_pid { get; set; }
                public long disk_free_limit { get; set; }
                public long proc_total { get; set; }
                public string rates_mode { get; set; }
                public long uptime { get; set; }
                public long run_queue { get; set; }
                public long processors { get; set; }
                public List<ExchangeType> exchange_types { get; set; }
                public List<AuthMechanism> auth_mechanisms { get; set; }
                public List<Application> applications { get; set; }
                public List<Context> contexts { get; set; }
                public string log_file { get; set; }
                public string sasl_log_file { get; set; }
                public string db_dir { get; set; }
                public List<string> config_files { get; set; }
                public long net_ticktime { get; set; }
                public List<string> enabled_plugins { get; set; }
                public string type { get; set; }
                public MemUsedDetails mem_used_details { get; set; }
                public FdUsedDetails fd_used_details { get; set; }
                public SocketsUsedDetails sockets_used_details { get; set; }
                public long proc_used { get; set; }
                public ProcUsedDetails proc_used_details { get; set; }
                public DiskFreeDetails disk_free_details { get; set; }
                public long gc_num { get; set; }
                public GcNumDetails gc_num_details { get; set; }
                public long gc_bytes_reclaimed { get; set; }
                public GcBytesReclaimedDetails gc_bytes_reclaimed_details { get; set; }
                public long context_switches { get; set; }
                public ContextSwitchesDetails context_switches_details { get; set; }
                public long io_read_count { get; set; }
                public IoReadCountDetails io_read_count_details { get; set; }
                public long io_read_bytes { get; set; }
                public IoReadBytesDetails io_read_bytes_details { get; set; }
                public double io_read_avg_time { get; set; }
                public IoReadAvgTimeDetails io_read_avg_time_details { get; set; }
                public long io_write_count { get; set; }
                public IoWriteCountDetails io_write_count_details { get; set; }
                public long io_write_bytes { get; set; }
                public IoWriteBytesDetails io_write_bytes_details { get; set; }
                public double io_write_avg_time { get; set; }
                public IoWriteAvgTimeDetails io_write_avg_time_details { get; set; }
                public long io_sync_count { get; set; }
                public IoSyncCountDetails io_sync_count_details { get; set; }
                public double io_sync_avg_time { get; set; }
                public IoSyncAvgTimeDetails io_sync_avg_time_details { get; set; }
                public double io_seek_count { get; set; }
                public IoSeekCountDetails io_seek_count_details { get; set; }
                public double io_seek_avg_time { get; set; }
                public IoSeekAvgTimeDetails io_seek_avg_time_details { get; set; }
                public long io_reopen_count { get; set; }
                public IoReopenCountDetails io_reopen_count_details { get; set; }
                public long mnesia_ram_tx_count { get; set; }
                public MnesiaRamTxCountDetails mnesia_ram_tx_count_details { get; set; }
                public long mnesia_disk_tx_count { get; set; }
                public MnesiaDiskTxCountDetails mnesia_disk_tx_count_details { get; set; }
                public long msg_store_read_count { get; set; }
                public MsgStoreReadCountDetails msg_store_read_count_details { get; set; }
                public long msg_store_write_count { get; set; }
                public MsgStoreWriteCountDetails msg_store_write_count_details { get; set; }
                public long queue_index_journal_write_count { get; set; }
                public QueueIndexJournalWriteCountDetails queue_index_journal_write_count_details { get; set; }
                public long queue_index_write_count { get; set; }
                public QueueIndexWriteCountDetails queue_index_write_count_details { get; set; }
                public long queue_index_read_count { get; set; }
                public QueueIndexReadCountDetails queue_index_read_count_details { get; set; }
                public long io_file_handle_open_attempt_count { get; set; }
                public IoFileHandleOpenAttemptCountDetails io_file_handle_open_attempt_count_details { get; set; }
                public double io_file_handle_open_attempt_avg_time { get; set; }
                public IoFileHandleOpenAttemptAvgTimeDetails io_file_handle_open_attempt_avg_time_details { get; set; }
                public List<ClusterLink> cluster_links { get; set; }
                public MetricsGcQueueLength metrics_gc_queue_length { get; set; }
        */
    }

    public class ClusterName
    {
        public string name { get; set; }
    }

    ///////////////////////////////////////////////////////////////////////////////
    // Queue Object
    ///////////////////////////////////////////////////////////////////////////////
    public class MessagesDetails
    {
        public double rate { get; set; }
    }

    public class MessagesUnacknowledgedDetails
    {
        public double rate { get; set; }
    }

    public class MessagesReadyDetails
    {
        public double rate { get; set; }
    }

    public class ReductionsDetails
    {
        public double rate { get; set; }
    }

    public class DeliverGetDetails
    {
        public double rate { get; set; }
    }

    public class AckDetails
    {
        public double rate { get; set; }
    }

    public class RedeliverDetails
    {
        public double rate { get; set; }
    }

    public class DeliverNoAckDetails
    {
        public double rate { get; set; }
    }

    public class DeliverDetails
    {
        public double rate { get; set; }
    }

    public class GetNoAckDetails
    {
        public double rate { get; set; }
    }

    public class GetDetails
    {
        public double rate { get; set; }
    }

    public class PublishDetails
    {
        public double rate { get; set; }
    }

    public class MessageStats
    {

        public long deliver_get { get; set; }

        public long ack { get; set; }

        public long redeliver { get; set; }

        public long deliver_no_ack { get; set; }

        public long deliver { get; set; }

        public long get_no_ack { get; set; }

        public long get { get; set; }

        public long publish { get; set; }

        public PublishDetails publish_details { get; set; }

        public DeliverGetDetails deliver_get_details { get; set; }

        public AckDetails ack_details { get; set; }

        public RedeliverDetails redeliver_details { get; set; }

        public DeliverNoAckDetails deliver_no_ack_details { get; set; }

        public DeliverDetails deliver_details { get; set; }

        public GetNoAckDetails get_no_ack_details { get; set; }

        public GetDetails get_details { get; set; }

        /*
        public DeliverGetDetails deliver_get_details { get; set; }
        public AckDetails ack_details { get; set; }
        public RedeliverDetails redeliver_details { get; set; }
        public DeliverNoAckDetails deliver_no_ack_details { get; set; }
        public DeliverDetails deliver_details { get; set; }
        public GetNoAckDetails get_no_ack_details { get; set; }
        public GetDetails get_details { get; set; }
        */
    }

    public class Arguments
    {
        [JsonProperty("x-ha-policy")]
        public string x_ha_policy { get; set; }

        [JsonProperty("x-internal-purpose")]
        public string x_internal_purpose { get; set; }
    }

    public class BackingQueueStatus
    {
        public string mode { get; set; }
        public long q1 { get; set; }
        public long q2 { get; set; }
        public List<object> delta { get; set; }
        public long q3 { get; set; }
        public long q4 { get; set; }
        public long len { get; set; }
        public string target_ram_count { get; set; }
        public long next_seq_id { get; set; }
        public double avg_ingress_rate { get; set; }
        public double avg_egress_rate { get; set; }
        public long avg_ack_ingress_rate { get; set; }
        public long avg_ack_egress_rate { get; set; }
        public long mirror_seen { get; set; }
        public long mirror_senders { get; set; }
    }

    public class GarbageCollection
    {
        public long minor_gcs { get; set; }
        public long fullsweep_after { get; set; }
        public long min_heap_size { get; set; }
        public long min_bin_vheap_size { get; set; }
        public long max_heap_size { get; set; }
    }

    public class Exchange
    {
        public string vhost { get; set; }
        public string name { get; set; }
    }

    public class IncomingStats
    {
        public PublishDetails publish_details { get; set; }
        public long publish { get; set; }
    }

    public class Incoming
    {
        public Exchange exchange { get; set; }
        public IncomingStats stats { get; set; }
    }

    public class ChannelDetails
    {
        public string peer_host { get; set; }
        public long peer_port { get; set; }
        public string connection_name { get; set; }
        public string user { get; set; }
        public long number { get; set; }
        public string node { get; set; }
        public string name { get; set; }
    }

    public class Stats2
    {
        public DeliverGetDetails deliver_get_details { get; set; }
        public long deliver_get { get; set; }
        public AckDetails ack_details { get; set; }
        public long ack { get; set; }
        public RedeliverDetails redeliver_details { get; set; }
        public long redeliver { get; set; }
        public DeliverNoAckDetails deliver_no_ack_details { get; set; }
        public long deliver_no_ack { get; set; }
        public DeliverDetails deliver_details { get; set; }
        public long deliver { get; set; }
        public GetNoAckDetails get_no_ack_details { get; set; }
        public long get_no_ack { get; set; }
        public GetDetails get_details { get; set; }
        public long get { get; set; }
    }

    public class Delivery
    {
        //public List<ChannelDetails> channel_details { get; set; }
        public Stats2 stats { get; set; }
    }

    public class QueueObject
    {
        public long messages { get; set; }

        public string vhost { get; set; }

        public string name { get; set; }

        public List<Incoming> incoming { get; set; }

        public List<Delivery> deliveries { get; set; }

        public string state { get; set; }

        /*
        public MessageStats message_stats { get; set; }
        public MessagesDetails messages_details { get; set; }
        public long messages_ready { get; set; }
        public MessagesReadyDetails messages_ready_details { get; set; }
        public MessagesUnacknowledgedDetails messages_unacknowledged_details { get; set; }
        public long messages_unacknowledged { get; set; }
        public ReductionsDetails reductions_details { get; set; }
        public long reductions { get; set; }
        public string node { get; set; }
        public Arguments arguments { get; set; }
        public bool exclusive { get; set; }
        public bool auto_delete { get; set; }
        public bool durable { get; set; }
        public long message_bytes_paged_out { get; set; }
        public long messages_paged_out { get; set; }
        public BackingQueueStatus backing_queue_status { get; set; }
        public object head_message_timestamp { get; set; }
        public long message_bytes_persistent { get; set; }
        public long message_bytes_ram { get; set; }
        public long message_bytes_unacknowledged { get; set; }
        public long message_bytes_ready { get; set; }
        public long message_bytes { get; set; }
        public long messages_persistent { get; set; }
        public long messages_unacknowledged_ram { get; set; }
        public long messages_ready_ram { get; set; }
        public long messages_ram { get; set; }
        public GarbageCollection garbage_collection { get; set; }
        public string state { get; set; }
        public List<string> recoverable_slaves { get; set; }
        public List<string> synchronised_slave_nodes { get; set; }
        public List<string> slave_nodes { get; set; }
        public long memory { get; set; }
        public object consumer_utilisation { get; set; }
        public long consumers { get; set; }
        public object exclusive_consumer_tag { get; set; }
        public string policy { get; set; }
        */
    }

    ///////////////////////////////////////////////////////////////////////////////
    // Connection Details
    ///////////////////////////////////////////////////////////////////////////////

    public class RecvOctDetails
    {
        public double rate { get; set; }
    }

    public class SendOctDetails
    {
        public double rate { get; set; }
    }

    public class Capabilities
    {
        public bool publisher_confirms { get; set; }
        public bool consumer_cancel_notify { get; set; }
        public bool exchange_exchange_bindings { get; set; }

        [JsonProperty("basic.nack")]
        public bool basic_nack { get; set; }

        [JsonProperty("connection.blocked")]
        public bool connection_blocked { get; set; }
        public bool authentication_failure_close { get; set; }
    }

    public class ClientProperties
    {
        public Capabilities capabilities { get; set; }
        public string product { get; set; }
        public string platform { get; set; }
        public string version { get; set; }
        public string information { get; set; }
    }

    public class ConnectionObject
    {
        public string name { get; set; }

        /*
        public ReductionsDetails reductions_details { get; set; }
        public long reductions { get; set; }
        public RecvOctDetails recv_oct_details { get; set; }
        public long recv_oct { get; set; }
        public SendOctDetails send_oct_details { get; set; }
        public long send_oct { get; set; }
        public long connected_at { get; set; }
        public ClientProperties client_properties { get; set; }
        public long channel_max { get; set; }
        public long frame_max { get; set; }
        public long timeout { get; set; }
        public string vhost { get; set; }
        public string user { get; set; }
        public string protocol { get; set; }
        public object ssl_hash { get; set; }
        public string ssl_cipher { get; set; }
        public string ssl_key_exchange { get; set; }
        public string ssl_protocol { get; set; }
        public string auth_mechanism { get; set; }
        public object peer_cert_validity { get; set; }
        public object peer_cert_issuer { get; set; }
        public object peer_cert_subject { get; set; }
        public bool ssl { get; set; }
        public string peer_host { get; set; }
        public string host { get; set; }
        public long peer_port { get; set; }
        public long port { get; set; }
        public string node { get; set; }
        public string type { get; set; }
        public GarbageCollection garbage_collection { get; set; }
        public long channels { get; set; }
        public string state { get; set; }
        public long send_pend { get; set; }
        public long send_cnt { get; set; }
        public long recv_cnt { get; set; }
        */
    }

}


text:
    The maximum number of items to display in the drop-down.

    Any non-number value as well as 0 or negative values will default to all.


text:
package breeze.linalg

import breeze.generic.UFunc
import breeze.linalg.support.CanTraverseValues
import breeze.linalg.support.CanTraverseValues.ValuesVisitor
import breeze.storage.Zero

import scala.util.control.ControlThrowable

/**
 * all(t) true if all elements of t are non-zero
 * all(f, t) returns true if all elements of t satisfy f
 *
 * @author dlwh
  **/
object all extends UFunc {
  private case object Found extends ControlThrowable

  implicit def reduceUFunc[F, T, S](
      implicit impl2: Impl2[S => Boolean, T, Boolean],
      base: UFunc.UImpl[F, S, Boolean]): Impl2[F, T, Boolean] = {
    new Impl2[F, T, Boolean] {
      override def apply(v: F, v2: T): Boolean = {
        all((x: S) => base(x), v2)
      }
    }
  }

  implicit def reduceFun[T, S](implicit ctv: CanTraverseValues[T, S]): Impl2[S => Boolean, T, Boolean] = {
    new Impl2[S => Boolean, T, Boolean] {
      override def apply(f: S => Boolean, v2: T): Boolean = {

        object Visitor extends ValuesVisitor[S] {
          def visit(a: S): Unit = {
            if (!f(a)) throw Found
          }

          def zeros(numZero: Int, zeroValue: S): Unit = {
            if (numZero != 0 && !f(zeroValue)) throw Found
          }

        }

        try {
          ctv.traverse(v2, Visitor)
          true
        } catch {
          case Found => false
        }

      }
    }
  }

  implicit def reduceZero[T, S](implicit impl2: Impl2[S => Boolean, T, Boolean], z: Zero[S]): Impl[T, Boolean] =
    new Impl[T, Boolean] {
      override def apply(v: T): Boolean = {
        all((_: S) != z.zero, v)
      }
    }

}


text:
[![Build Status](https://travis-ci.org/tricoder42/python-ariadne.svg)](https://travis-ci.org/tricoder42/python-ariadne)
[![Coverage Status](https://coveralls.io/repos/tricoder42/python-ariadne/badge.svg)](https://coveralls.io/r/tricoder42/python-ariadne)

django-ariadne
==============

:warning: **This library is early alpha without stable API**

Functional/integration testing for websites. Right now focused on testing
websites written in [Django](https://www.djangoproject.com) ...


text:
```typescript
import {selectivity} from 'ng2-selectivity';
```

### Annotations
```typescript
// class Selectivity
@Component({
  selector: 'ng2-selectivity',
  properties: [
    'allowClear',
    'placeholder',
    'items',
    'multiple',
    'showSearchInputInDropdown']
})
```

### Selectivity properties

  - `items` - (`Array<any>`) - Array of items from which to select. Should be an array of objects with `id` and `text` properties.
  As convenience, you may also pass an array of strings, in which case the same string is used for both the ID and the text.
  Items may be nested by adding a `children` property to any item, whose value should be another array of items. Items that have children may omit having an ID.
  If `items` are specified, all items are expected to be available locally and all selection operations operate on this local array only.
  If omitted, items are not available locally, and the `query` option should be provided to fetch data.
  - `data` (`?Array<any>`) - Initial selection data to set. This should be an object with `id` and `text` properties in the case of input type 'Single',
  or an array of such objects otherwise. This option is mutually exclusive with value.
  - `allowClear` (`?boolean=false`) (*not yet supported*) - Set to `true` to allow the selection to be cleared. This option only applies to single-value inputs.
  - `placeholder` (`?string=''`) - Placeholder text to display when the element has no focus and selected items.
  - `multiple` - (`?boolean=false`) - Mode of this component. If set `true` user can select more than one option.
  - `showSearchInputInDropdown` - (`?boolean=true`) - Set to `false` to remove the search input used in dropdowns.
  This option only applies to single-value inputs, as multiple-value inputs don't have the search input in the dropdown to begin with.

### Selectivity events

  - `data` - it fires during all events of this component; returns `Array<any>` - current selected data
  - `selected` - it fires after a new option selected; returns object with `id` and `text` properties that describes a new option.
  - `removed` - it fires after an option removed; returns object with `id` and `text` properties that describes a removed option.