text:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using org.swyn.foundation.utils;

namespace tdbadmin
{
	/// <summary>
	/// Summary description for Country.
	/// </summary>
	public class FCountry : System.Windows.Forms.Form
	{
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.GroupBox groupBox2;
		private System.Windows.Forms.GroupBox TDB_abgrp;
		private System.Windows.Forms.Button TDB_ab_clr;
		private System.Windows.Forms.Button TDB_ab_sel;
		private System.Windows.Forms.Button TDB_ab_exit;
		private System.Windows.Forms.Button TDB_ab_del;
		private System.Windows.Forms.Button TDB_ab_upd;
		private System.Windows.Forms.Button TDB_ab_ins;
		private System.Windows.Forms.Label Land_l_capital;
		private System.Windows.Forms.ComboBox Land_e_capital;
		private System.Windows.Forms.ComboBox Land_e_lang;
		private System.Windows.Forms.ComboBox Land_e_cur;
		private System.Windows.Forms.TextBox Land_e_vat;
		private System.Windows.Forms.TextBox Land_e_dateformat;
		private System.Windows.Forms.Label Land_l_cur;
		private System.Windows.Forms.Label Land_l_lang;
		private System.Windows.Forms.Label Land_l_vat;
		private System.Windows.Forms.Label Land_l_dateformat;
		private System.Windows.Forms.Label tdb_e_id;
		private System.Windows.Forms.TextBox tdb_e_bez;
		private System.Windows.Forms.TextBox tdb_e_code;
		private System.Windows.Forms.TextBox tdb_e_text;
		private System.Windows.Forms.Label tdb_l_text;
		private System.Windows.Forms.Label tdb_l_code;
		private System.Windows.Forms.Label tdb_l_bez;
		private System.Windows.Forms.Label tdb_l_id;
		private tdbgui.GUIctry Ctry;
        private Button Land_e_addlang;

		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public FCountry()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			Ctry = new tdbgui.GUIctry();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form 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.groupBox1 = new System.Windows.Forms.GroupBox();
            this.tdb_e_id = new System.Windows.Forms.Label();
            this.tdb_e_bez = new System.Windows.Forms.TextBox();
            this.tdb_e_code = new System.Windows.Forms.TextBox();
            this.tdb_e_text = new System.Windows.Forms.TextBox();
            this.tdb_l_text = new System.Windows.Forms.Label();
            this.tdb_l_code = new System.Windows.Forms.Label();
            this.tdb_l_bez = new System.Windows.Forms.Label();
            this.tdb_l_id = new System.Windows.Forms.Label();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.Land_l_dateformat = new System.Windows.Forms.Label();
            this.Land_l_vat = new System.Windows.Forms.Label();
            this.Land_l_lang = new System.Windows.Forms.Label();
            this.Land_l_cur = new System.Windows.Forms.Label();
            this.Land_e_dateformat = new System.Windows.Forms.TextBox();
            this.Land_e_vat = new System.Windows.Forms.TextBox();
            this.Land_e_cur = new System.Windows.Forms.ComboBox();
            this.Land_e_lang = new System.Windows.Forms.ComboBox();
            this.Land_e_capital = new System.Windows.Forms.ComboBox();
            this.Land_l_capital = new System.Windows.Forms.Label();
            this.TDB_abgrp = new System.Windows.Forms.GroupBox();
            this.TDB_ab_clr = new System.Windows.Forms.Button();
            this.TDB_ab_sel = new System.Windows.Forms.Button();
            this.TDB_ab_exit = new System.Windows.Forms.Button();
            this.TDB_ab_del = new System.Windows.Forms.Button();
            this.TDB_ab_upd = new System.Windows.Forms.Button();
            this.TDB_ab_ins = new System.Windows.Forms.Button();
            this.Land_e_addlang = new System.Windows.Forms.Button();
            this.groupBox1.SuspendLayout();
            this.groupBox2.SuspendLayout();
            this.TDB_abgrp.SuspendLayout();
            this.SuspendLayout();
            //
            // groupBox1
            //
            this.groupBox1.Controls.Add(this.tdb_e_id);
            this.groupBox1.Controls.Add(this.tdb_e_bez);
            this.groupBox1.Controls.Add(this.tdb_e_code);
            this.groupBox1.Controls.Add(this.tdb_e_text);
            this.groupBox1.Controls.Add(this.tdb_l_text);
            this.groupBox1.Controls.Add(this.tdb_l_code);
            this.groupBox1.Controls.Add(this.tdb_l_bez);
            this.groupBox1.Controls.Add(this.tdb_l_id);
            this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
            this.groupBox1.Location = new System.Drawing.Point(0, 0);
            this.groupBox1.Name = "groupBox1";
            this.groupBox1.Size = new System.Drawing.Size(640, 192);
            this.groupBox1.TabIndex = 13;
            this.groupBox1.TabStop = false;
            this.groupBox1.Text = "Description";
            //
            // tdb_e_id
            //
            this.tdb_e_id.Location = new System.Drawing.Point(136, 24);
            this.tdb_e_id.Name = "tdb_e_id";
            this.tdb_e_id.Size = new System.Drawing.Size(64, 16);
            this.tdb_e_id.TabIndex = 9;
            //
            // tdb_e_bez
            //
            this.tdb_e_bez.Location = new System.Drawing.Point(136, 40);
            this.tdb_e_bez.Name = "tdb_e_bez";
            this.tdb_e_bez.Size = new System.Drawing.Size(456, 20);
            this.tdb_e_bez.TabIndex = 0;
            //
            // tdb_e_code
            //
            this.tdb_e_code.Location = new System.Drawing.Point(136, 64);
            this.tdb_e_code.Name = "tdb_e_code";
            this.tdb_e_code.Size = new System.Drawing.Size(456, 20);
            this.tdb_e_code.TabIndex = 1;
            //
            // tdb_e_text
            //
            this.tdb_e_text.Location = new System.Drawing.Point(136, 88);
            this.tdb_e_text.Multiline = true;
            this.tdb_e_text.Name = "tdb_e_text";
            this.tdb_e_text.Size = new System.Drawing.Size(456, 88);
            this.tdb_e_text.TabIndex = 2;
            //
            // tdb_l_text
            //
            this.tdb_l_text.Location = new System.Drawing.Point(8, 121);
            this.tdb_l_text.Name = "tdb_l_text";
            this.tdb_l_text.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.tdb_l_text.Size = new System.Drawing.Size(100, 23);
            this.tdb_l_text.TabIndex = 4;
            this.tdb_l_text.Text = "Description";
            //
            // tdb_l_code
            //
            this.tdb_l_code.Location = new System.Drawing.Point(8, 63);
            this.tdb_l_code.Name = "tdb_l_code";
            this.tdb_l_code.Size = new System.Drawing.Size(100, 23);
            this.tdb_l_code.TabIndex = 3;
            this.tdb_l_code.Text = "Code";
            //
            // tdb_l_bez
            //
            this.tdb_l_bez.Location = new System.Drawing.Point(8, 39);
            this.tdb_l_bez.Name = "tdb_l_bez";
            this.tdb_l_bez.Size = new System.Drawing.Size(100, 23);
            this.tdb_l_bez.TabIndex = 2;
            this.tdb_l_bez.Text = "Title";
            //
            // tdb_l_id
            //
            this.tdb_l_id.Location = new System.Drawing.Point(8, 21);
            this.tdb_l_id.Name = "tdb_l_id";
            this.tdb_l_id.Size = new System.Drawing.Size(100, 23);
            this.tdb_l_id.TabIndex = 1;
            this.tdb_l_id.Text = "ID";
            //
            // groupBox2
            //
            this.groupBox2.Controls.Add(this.Land_e_addlang);
            this.groupBox2.Controls.Add(this.Land_l_dateformat);
            this.groupBox2.Controls.Add(this.Land_l_vat);
            this.groupBox2.Controls.Add(this.Land_l_lang);
            this.groupBox2.Controls.Add(this.Land_l_cur);
            this.groupBox2.Controls.Add(this.Land_e_dateformat);
            this.groupBox2.Controls.Add(this.Land_e_vat);
            this.groupBox2.Controls.Add(this.Land_e_cur);
            this.groupBox2.Controls.Add(this.Land_e_lang);
            this.groupBox2.Controls.Add(this.Land_e_capital);
            this.groupBox2.Controls.Add(this.Land_l_capital);
            this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.groupBox2.Location = new System.Drawing.Point(0, 192);
            this.groupBox2.Name = "groupBox2";
            this.groupBox2.Size = new System.Drawing.Size(640, 253);
            this.groupBox2.TabIndex = 14;
            this.groupBox2.TabStop = false;
            this.groupBox2.Text = "Details";
            //
            // Land_l_dateformat
            //
            this.Land_l_dateformat.Location = new System.Drawing.Point(8, 162);
            this.Land_l_dateformat.Name = "Land_l_dateformat";
            this.Land_l_dateformat.Size = new System.Drawing.Size(100, 16);
            this.Land_l_dateformat.TabIndex = 11;
            this.Land_l_dateformat.Text = "Date Time format";
            //
            // Land_l_vat
            //
            this.Land_l_vat.Location = new System.Drawing.Point(8, 122);
            this.Land_l_vat.Name = "Land_l_vat";
            this.Land_l_vat.Size = new System.Drawing.Size(100, 16);
            this.Land_l_vat.TabIndex = 10;
            this.Land_l_vat.Text = "VAT";
            //
            // Land_l_lang
            //
            this.Land_l_lang.Location = new System.Drawing.Point(8, 50);
            this.Land_l_lang.Name = "Land_l_lang";
            this.Land_l_lang.Size = new System.Drawing.Size(100, 16);
            this.Land_l_lang.TabIndex = 9;
            this.Land_l_lang.Text = "Main language";
            //
            // Land_l_cur
            //
            this.Land_l_cur.Location = new System.Drawing.Point(8, 82);
            this.Land_l_cur.Name = "Land_l_cur";
            this.Land_l_cur.Size = new System.Drawing.Size(100, 16);
            this.Land_l_cur.TabIndex = 8;
            this.Land_l_cur.Text = "Currency";
            //
            // Land_e_dateformat
            //
            this.Land_e_dateformat.Location = new System.Drawing.Point(136, 160);
            this.Land_e_dateformat.Name = "Land_e_dateformat";
            this.Land_e_dateformat.Size = new System.Drawing.Size(304, 20);
            this.Land_e_dateformat.TabIndex = 7;
            //
            // Land_e_vat
            //
            this.Land_e_vat.Location = new System.Drawing.Point(136, 120);
            this.Land_e_vat.Name = "Land_e_vat";
            this.Land_e_vat.Size = new System.Drawing.Size(304, 20);
            this.Land_e_vat.TabIndex = 6;
            //
            // Land_e_cur
            //
            this.Land_e_cur.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Land_e_cur.Location = new System.Drawing.Point(136, 80);
            this.Land_e_cur.Name = "Land_e_cur";
            this.Land_e_cur.Size = new System.Drawing.Size(304, 21);
            this.Land_e_cur.TabIndex = 5;
            //
            // Land_e_lang
            //
            this.Land_e_lang.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Land_e_lang.Location = new System.Drawing.Point(136, 48);
            this.Land_e_lang.Name = "Land_e_lang";
            this.Land_e_lang.Size = new System.Drawing.Size(304, 21);
            this.Land_e_lang.TabIndex = 4;
            //
            // Land_e_capital
            //
            this.Land_e_capital.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Land_e_capital.Location = new System.Drawing.Point(136, 14);
            this.Land_e_capital.Name = "Land_e_capital";
            this.Land_e_capital.Size = new System.Drawing.Size(304, 21);
            this.Land_e_capital.TabIndex = 3;
            this.Land_e_capital.SelectedIndexChanged += new System.EventHandler(this.Land_e_capital_SelectedIndexChanged);
            this.Land_e_capital.DropDown += new System.EventHandler(this.Land_e_capital_SelectedIndexChanged);
            //
            // Land_l_capital
            //
            this.Land_l_capital.Location = new System.Drawing.Point(8, 16);
            this.Land_l_capital.Name = "Land_l_capital";
            this.Land_l_capital.Size = new System.Drawing.Size(100, 16);
            this.Land_l_capital.TabIndex = 2;
            this.Land_l_capital.Text = "Capital city";
            //
            // TDB_abgrp
            //
            this.TDB_abgrp.Controls.Add(this.TDB_ab_clr);
            this.TDB_abgrp.Controls.Add(this.TDB_ab_sel);
            this.TDB_abgrp.Controls.Add(this.TDB_ab_exit);
            this.TDB_abgrp.Controls.Add(this.TDB_ab_del);
            this.TDB_abgrp.Controls.Add(this.TDB_ab_upd);
            this.TDB_abgrp.Controls.Add(this.TDB_ab_ins);
            this.TDB_abgrp.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.TDB_abgrp.Location = new System.Drawing.Point(0, 392);
            this.TDB_abgrp.Name = "TDB_abgrp";
            this.TDB_abgrp.Size = new System.Drawing.Size(640, 53);
            this.TDB_abgrp.TabIndex = 15;
            this.TDB_abgrp.TabStop = false;
            this.TDB_abgrp.Text = "Actions";
            //
            // TDB_ab_clr
            //
            this.TDB_ab_clr.Dock = System.Windows.Forms.DockStyle.Right;
            this.TDB_ab_clr.Location = new System.Drawing.Point(487, 16);
            this.TDB_ab_clr.Name = "TDB_ab_clr";
            this.TDB_ab_clr.Size = new System.Drawing.Size(75, 34);
            this.TDB_ab_clr.TabIndex = 10;
            this.TDB_ab_clr.Text = "Clear";
            this.TDB_ab_clr.Click += new System.EventHandler(this.TDB_ab_clr_Click);
            //
            // TDB_ab_sel
            //
            this.TDB_ab_sel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
            this.TDB_ab_sel.Dock = System.Windows.Forms.DockStyle.Left;
            this.TDB_ab_sel.Location = new System.Drawing.Point(228, 16);
            this.TDB_ab_sel.Name = "TDB_ab_sel";
            this.TDB_ab_sel.Size = new System.Drawing.Size(80, 34);
            this.TDB_ab_sel.TabIndex = 8;
            this.TDB_ab_sel.Text = "Select";
            this.TDB_ab_sel.UseVisualStyleBackColor = false;
            this.TDB_ab_sel.Click += new System.EventHandler(this.TDB_ab_sel_Click);
            //
            // TDB_ab_exit
            //
            this.TDB_ab_exit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.TDB_ab_exit.Dock = System.Windows.Forms.DockStyle.Right;
            this.TDB_ab_exit.Location = new System.Drawing.Point(562, 16);
            this.TDB_ab_exit.Name = "TDB_ab_exit";
            this.TDB_ab_exit.Size = new System.Drawing.Size(75, 34);
            this.TDB_ab_exit.TabIndex = 9;
            this.TDB_ab_exit.Text = "Exit";
            this.TDB_ab_exit.UseVisualStyleBackColor = false;
            this.TDB_ab_exit.Click += new System.EventHandler(this.TDB_ab_exit_Click);
            //
            // TDB_ab_del
            //
            this.TDB_ab_del.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.TDB_ab_del.Dock = System.Windows.Forms.DockStyle.Left;
            this.TDB_ab_del.Location = new System.Drawing.Point(153, 16);
            this.TDB_ab_del.Name = "TDB_ab_del";
            this.TDB_ab_del.Size = new System.Drawing.Size(75, 34);
            this.TDB_ab_del.TabIndex = 7;
            this.TDB_ab_del.Text = "Delete";
            this.TDB_ab_del.UseVisualStyleBackColor = false;
            this.TDB_ab_del.Click += new System.EventHandler(this.TDB_ab_del_Click);
            //
            // TDB_ab_upd
            //
            this.TDB_ab_upd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.TDB_ab_upd.Dock = System.Windows.Forms.DockStyle.Left;
            this.TDB_ab_upd.Location = new System.Drawing.Point(78, 16);
            this.TDB_ab_upd.Name = "TDB_ab_upd";
            this.TDB_ab_upd.Size = new System.Drawing.Size(75, 34);
            this.TDB_ab_upd.TabIndex = 6;
            this.TDB_ab_upd.Text = "Update";
            this.TDB_ab_upd.UseVisualStyleBackColor = false;
            this.TDB_ab_upd.Click += new System.EventHandler(this.TDB_ab_upd_Click);
            //
            // TDB_ab_ins
            //
            this.TDB_ab_ins.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.TDB_ab_ins.Dock = System.Windows.Forms.DockStyle.Left;
            this.TDB_ab_ins.Location = new System.Drawing.Point(3, 16);
            this.TDB_ab_ins.Name = "TDB_ab_ins";
            this.TDB_ab_ins.Size = new System.Drawing.Size(75, 34);
            this.TDB_ab_ins.TabIndex = 5;
            this.TDB_ab_ins.Text = "Insert";
            this.TDB_ab_ins.UseVisualStyleBackColor = false;
            this.TDB_ab_ins.Click += new System.EventHandler(this.TDB_ab_ins_Click);
            //
            // Land_e_addlang
            //
            this.Land_e_addlang.Location = new System.Drawing.Point(487, 43);
            this.Land_e_addlang.Name = "Land_e_addlang";
            this.Land_e_addlang.Size = new System.Drawing.Size(126, 23);
            this.Land_e_addlang.TabIndex = 12;
            this.Land_e_addlang.Text = "Additional languages";
            this.Land_e_addlang.UseVisualStyleBackColor = true;
            //
            // FCountry
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(640, 445);
            this.Controls.Add(this.TDB_abgrp);
            this.Controls.Add(this.groupBox2);
            this.Controls.Add(this.groupBox1);
            this.Name = "FCountry";
            this.Text = "Country";
            this.Load += new System.EventHandler(this.Country_Load);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.TDB_abgrp.ResumeLayout(false);
            this.ResumeLayout(false);

		}
		#endregion

		#region Form callbacks
		private void TDB_ab_sel_Click(object sender, System.EventArgs e)
		{
			SelForm Fsel = new SelForm();
			Ctry.Sel(Fsel.GetLV);
			Fsel.Accept += new EventHandler(TDB_ab_sel_Click_Return);
			Fsel.ShowDialog(this);
		}

		void TDB_ab_sel_Click_Return(object sender, EventArgs e)
		{
			int id = -1, rows = 0;
			SelForm Fsel = (SelForm)sender;
			id = Fsel.GetID;
			Ctry.Get(id, ref rows);
			tdb_e_id.Text = Ctry.ObjId.ToString();
			tdb_e_bez.Text = Ctry.ObjBez;
			tdb_e_code.Text = Ctry.ObjCode;
			tdb_e_text.Text = Ctry.ObjText;
			// first add items and AFTERWARDS the text !!
			this.Land_e_capital.SelectedValue = Ctry.ObjCapid;
			this.Land_e_cur.SelectedValue = Ctry.ObjCurid;
			this.Land_e_lang.SelectedValue = Ctry.ObjLangid;
			this.Land_e_vat.Text = Ctry.ObjVat.ToString();
			this.Land_e_dateformat.Text = Ctry.ObjDateformat;
		}

		private void TDB_ab_exit_Click(object sender, System.EventArgs e)
		{
			Close();
		}

		private void TDB_ab_ins_Click(object sender, System.EventArgs e)
		{
			Ctry.InsUpd(true, tdb_e_bez.Text, tdb_e_code.Text, tdb_e_text.Text,
				(int)this.Land_e_capital.SelectedValue, (int)this.Land_e_cur.SelectedValue,
				(int)this.Land_e_lang.SelectedValue, Convert.ToDouble(this.Land_e_vat.Text),
				this.Land_e_dateformat.Text);
			tdb_e_id.Text = Ctry.ObjId.ToString();
		}

		private void TDB_ab_upd_Click(object sender, System.EventArgs e)
		{
			Ctry.InsUpd(false, tdb_e_bez.Text, tdb_e_code.Text, tdb_e_text.Text,
				(int)this.Land_e_capital.SelectedValue, (int)this.Land_e_cur.SelectedValue,
				(int)this.Land_e_lang.SelectedValue, Convert.ToDouble(this.Land_e_vat.Text),
				this.Land_e_dateformat.Text);
		}

		private void TDB_ab_del_Click(object sender, System.EventArgs e)
		{
			int rows = 0;
			Ctry.Get(Convert.ToInt32(tdb_e_id.Text), ref rows);
			Ctry.Delete();
		}

		private void TDB_ab_clr_Click(object sender, System.EventArgs e)
		{
			tdb_e_id.Text = "";
			tdb_e_bez.Text = "";
			tdb_e_code.Text = "";
			tdb_e_text.Text = "";
			Land_e_vat.Text = "0";
			Land_e_dateformat.Text = "";
		}
		private void Country_Load(object sender, System.EventArgs e)
		{
			tdbgui.GUIcity C = new tdbgui.GUIcity();
			C.SetCombo(this.Land_e_capital);

			tdbgui.GUIlang L = new tdbgui.GUIlang();
			L.SetCombo(this.Land_e_lang);

			tdbgui.GUIcur Cur = new tdbgui.GUIcur();
			Cur.SetCombo(this.Land_e_cur);
		}

		#endregion

		private void Land_e_capital_SelectedIndexChanged(object sender, System.EventArgs e)
		{
		}

	}
}


text:
import {Example} from "./Example";

const title: string = "A success message, with a close timer";

const snippet: string = `
<SweetAlert
  success
  title="Success Data!"
  onConfirm={this.onConfirm}
  onCancel={this.onCancel}
  timeout={2000}
>
  This success message will automatically close after 2 seconds
</SweetAlert>
`;

export default new Example(title, snippet);

redpajama_set_name: RedPajamaGithub


text:
<project default="all" basedir="../">

	<property environment="env" />

	<property name="package.name" value="qrcode-java"/>

	<property name="build" location="build"/>
	<property name="dist" location="dist"/>
	<property name="src" location="src"/>

	<property name="src.java" location="${src}/java"/>
	<property name="src.assets" location="${src}/assets"/>
	<property name="src.sample.web" location="${src}/sample/web"/>

	<property name="build.java" location="${build}/java"/>
	<property name="build.javadoc" location="${build}/javadoc"/>

	<target name="all" depends="package"/>

	<target name="init">
		<fail unless="env.SERVLET_API" message="environment variable SERVLET_API not set."/>
		<fail unless="env.JAVA5_BOOTSTRAP_CLASSPATH" message="environment variable JAVA5_BOOTSTRAP_CLASSPATH not set."/>
	</target>

	<target name="clean">

		<delete dir="${build}"/>
		<delete dir="${dist}"/>

	</target>

	<target name="compile" depends="init">

		<mkdir dir="${build.java}"/>

		<javac
			target="1.5"
			source="1.5"
			bootclasspath="${env.JAVA5_BOOTSTRAP_CLASSPATH}"
	    	classpath="${env.SERVLET_API}"
			srcdir="${src.java}"
	    	includes="**/*.java"
	    	destdir="${build.java}"
	    	debug="true"
	    	encoding="UTF-8"
			includeantruntime="false" />

	</target>

	<target name="docs" depends="init">

		<mkdir dir="${build.javadoc}"/>

		<property name="doc.title" value="QRCode for Java"/>

		<javadoc
	    	classpath="${env.SERVLET_API}"
			encoding="UTF-8"
			docencoding="UTF-8"
			charset="UTF-8"
	    	packagenames="com.d_project.qrcode.*"
	    	destdir="${build.javadoc}"
			doctitle="${doc.title}"
	    	windowtitle="${doc.title}"
			author="false">
	    	<fileset dir="${src.java}">
	    		<include name="**/*.java"/>
	    	</fileset>
		</javadoc>

	</target>

	<target name="dist" depends="compile">

		<mkdir dir="${dist}"/>

		<jar jarfile="${dist}/qrcode.jar" basedir="${build.java}"/>

	</target>

	<target name="sample" depends="dist">

		<war warfile="${dist}/QRCodeSample.war" webxml="${src.sample.web}/WEB-INF/web.xml">
			<zipfileset dir="${src.sample.web}">
				<patternset>
					<exclude name="**/web.xml"/>
				</patternset>
			</zipfileset>
			<zipfileset prefix="WEB-INF/lib" dir="${dist}">
				<patternset>
					<include name="qrcode.jar"/>
				</patternset>
			</zipfileset>
		</war>

	</target>

	<target name="package" depends="docs,sample">

		<zip destfile="${dist}/${package.name}.zip">
			<zipfileset prefix="${package.name}" dir="${src.assets}">
				<patternset>
					<include name="README.txt"/>
				</patternset>
			</zipfileset>
			<zipfileset prefix="${package.name}" dir="dist">
				<patternset>
					<include name="qrcode.jar"/>
				</patternset>
			</zipfileset>
			<zipfileset prefix="${package.name}/sample" dir="dist">
				<patternset>
					<include name="QRCodeSample.war"/>
				</patternset>
			</zipfileset>
			<zipfileset prefix="${package.name}/apidocs" dir="${build.javadoc}"/>
	    </zip>

	</target>

</project>


text:
{-# LANGUAGE FlexibleContexts #-}

module AI.Visualizations
( networkHistogram
, weightList
, biasList
) where

import           AI.Layer
import           AI.Network
import           AI.Network.FeedForwardNetwork
import           AI.Neuron
import           Numeric.LinearAlgebra

import           Data.Foldable                      (foldMap)
import           GHC.Float
import           Graphics.Histogram
import           AI.Trainer

weightList :: FeedForwardNetwork -> [Double]
weightList = toList . flatten . weightMatrix <=< layers

biasList :: FeedForwardNetwork -> [Double]
biasList = toList . biasVector <=< layers

networkHistogram :: FilePath -> (FeedForwardNetwork -> [Double]) -> FeedForwardNetwork -> IO ()
networkHistogram filename listFunction n = do
  let hist = histogram binSturges (listFunction n)
  plot filename hist
  return ()


text:
package org.onlab.packet.ipv6;

import org.onlab.packet.BasePacket;
import org.onlab.packet.Data;
import org.onlab.packet.DeserializationException;
import org.onlab.packet.Deserializer;
import org.onlab.packet.IPacket;
import org.onlab.packet.IPv6;

import java.nio.ByteBuffer;
import java.util.Arrays;

import static org.onlab.packet.PacketUtils.checkHeaderLength;
import static org.onlab.packet.PacketUtils.checkInput;

/**
 * Base class for hop-by-hop options and destination options.
 */
public class BaseOptions extends BasePacket implements IExtensionHeader {
    public static final byte FIXED_HEADER_LENGTH = 2; // bytes
    public static final byte FIXED_OPTIONS_LENGTH = 6; // bytes
    public static final byte LENGTH_UNIT = 8; // bytes per unit

    protected byte nextHeader;
    protected byte headerExtLength;
    protected byte[] options;
    protected byte type;

    @Override
    public byte getNextHeader() {
        return this.nextHeader;
    }

    @Override
    public BaseOptions setNextHeader(final byte nextHeader) {
        this.nextHeader = nextHeader;
        return this;
    }

    /**
     * Gets the extension length of this header.
     *
     * @return header length
     */
    public byte getHeaderExtLength() {
        return this.headerExtLength;
    }

    /**
     * Sets the extension length of this header.
     *
     * @param headerExtLength the header length to set
     * @return this
     */
    public BaseOptions setHeaderExtLength(final byte headerExtLength) {
        this.headerExtLength = headerExtLength;
        return this;
    }

    /**
     * Gets the options.
     *
     * @return the options
     */
    public byte[] getOptions() {
        return this.options;
    }

    /**
     * Sets the options.
     *
     * @param options the options to set
     * @return this
     */
    public BaseOptions setOptions(final byte[] options) {
        this.options =
                Arrays.copyOfRange(options, 0, options.length);
        return this;
    }

    /**
     * Gets the type of this option.
     *
     * @return the type
     */
    protected byte getType() {
        return this.type;
    }

    /**
     * Sets the type of this option.
     * Must be either IPv6.PROTOCOL_HOPOPT or IPv6.PROTOCOL_DSTOPT
     *
     * @param type the type to set
     * @return this
     */
    protected BaseOptions setType(final byte type) {
        this.type = type;
        return this;
    }

    @Override
    public byte[] serialize() {
        byte[] payloadData = null;
        if (this.payload != null) {
            this.payload.setParent(this);
            payloadData = this.payload.serialize();
        }

        int headerLength = FIXED_HEADER_LENGTH + options.length;
        int payloadLength = 0;
        if (payloadData != null) {
            payloadLength = payloadData.length;
        }

        final byte[] data = new byte[headerLength + payloadLength];
        final ByteBuffer bb = ByteBuffer.wrap(data);

        bb.put(this.nextHeader);
        bb.put(this.headerExtLength);
        bb.put(this.options, 0, options.length);

        if (payloadData != null) {
            bb.put(payloadData);
        }

        if (this.parent != null && this.parent instanceof IExtensionHeader) {
            ((IExtensionHeader) this.parent).setNextHeader(this.type);
        }
        return data;
    }

    @Override
    public IPacket deserialize(byte[] data, int offset, int length) {
        final ByteBuffer bb = ByteBuffer.wrap(data, offset, length);
        this.nextHeader = bb.get();
        this.headerExtLength = bb.get();
        int optionLength =
                FIXED_OPTIONS_LENGTH + LENGTH_UNIT * this.headerExtLength;
        this.options = new byte[optionLength];
        bb.get(this.options, 0, optionLength);

        Deserializer<? extends IPacket> deserializer;
        if (IPv6.PROTOCOL_DESERIALIZER_MAP.containsKey(this.nextHeader)) {
            deserializer = IPv6.PROTOCOL_DESERIALIZER_MAP.get(this.nextHeader);
        } else {
            deserializer = Data.deserializer();
        }
        try {
            this.payload = deserializer.deserialize(data, bb.position(),
                                                    bb.limit() - bb.position());
            this.payload.setParent(this);
        } catch (DeserializationException e) {
            return this;
        }

        return this;
    }

    /*
     * (non-Javadoc)
     *
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 5807;
        int result = super.hashCode();
        result = prime * result + this.nextHeader;
        result = prime * result + this.headerExtLength;
        for (byte b : this.options) {
            result = prime * result + b;
        }
        return result;
    }

    /*
     * (non-Javadoc)
     *
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(final Object obj) {
        if (this == obj) {
            return true;
        }
        if (!super.equals(obj)) {
            return false;
        }
        if (!(obj instanceof BaseOptions)) {
            return false;
        }
        final BaseOptions other = (BaseOptions) obj;
        if (this.nextHeader != other.nextHeader) {
            return false;
        }
        if (this.headerExtLength != other.headerExtLength) {
            return false;
        }
        if (!Arrays.equals(this.options, other.options)) {
            return false;
        }
        if (this.type != other.type) {
            return false;
        }
        return true;
    }

    /**
     * Deserializer function for IPv6 base options.
     *
     * @return deserializer function
     */
    public static Deserializer<BaseOptions> deserializer() {
        return (data, offset, length) -> {
            checkInput(data, offset, length, FIXED_HEADER_LENGTH);

            BaseOptions baseOptions = new BaseOptions();

            ByteBuffer bb = ByteBuffer.wrap(data, offset, length);
            baseOptions.nextHeader = bb.get();
            baseOptions.headerExtLength = bb.get();
            int optionLength =
                    FIXED_OPTIONS_LENGTH + LENGTH_UNIT * baseOptions.headerExtLength;

            checkHeaderLength(bb.remaining(), optionLength);

            baseOptions.options = new byte[optionLength];
            bb.get(baseOptions.options, 0, optionLength);

            Deserializer<? extends IPacket> deserializer;
            if (IPv6.PROTOCOL_DESERIALIZER_MAP.containsKey(baseOptions.nextHeader)) {
                deserializer = IPv6.PROTOCOL_DESERIALIZER_MAP.get(baseOptions.nextHeader);
            } else {
                deserializer = Data.deserializer();
            }
            baseOptions.payload = deserializer.deserialize(data, bb.position(),
                                               bb.limit() - bb.position());
            baseOptions.payload.setParent(baseOptions);

            return baseOptions;
        };
    }
}


text:
#ifndef test_hc_elementretrievetagname
#define test_hc_elementretrievetagname

/**
 *     The "getElementsByTagName()" method returns a NodeList
 *    of all descendant elements with a given tagName.
 *
 *    Invoke the "getElementsByTagName()" method and create
 *    a NodeList of "code" elements.  Retrieve the second
 *    "code" element in the list and return the NodeName.
* @author Curt Arnold
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-104682815
*/

template<class string_type, class string_adaptor>
class hc_elementretrievetagname : public DOMTestCase<string_type, string_adaptor>
{
    typedef DOMTestCase<string_type, string_adaptor> baseT;
   public:
     hc_elementretrievetagname(std::string name) : baseT(name)
     {

       //   check if loaded documents are supported for content type
       const std::string contentType = baseT::getContentType();
    baseT::preload(contentType, "hc_staff", false);
    }

  typedef typename Arabica::DOM::DOMImplementation<string_type, string_adaptor>  DOMImplementation;
  typedef typename Arabica::DOM::Document<string_type, string_adaptor> Document;
  typedef typename Arabica::DOM::DocumentType<string_type, string_adaptor> DocumentType;
  typedef typename Arabica::DOM::DocumentFragment<string_type, string_adaptor> DocumentFragment;
  typedef typename Arabica::DOM::Node<string_type, string_adaptor> Node;
  typedef typename Arabica::DOM::Element<string_type, string_adaptor> Element;
  typedef typename Arabica::DOM::Attr<string_type, string_adaptor> Attr;
  typedef typename Arabica::DOM::NodeList<string_type, string_adaptor> NodeList;
  typedef typename Arabica::DOM::NamedNodeMap<string_type, string_adaptor> NamedNodeMap;
  typedef typename Arabica::DOM::Entity<string_type, string_adaptor> Entity;
  typedef typename Arabica::DOM::EntityReference<string_type, string_adaptor> EntityReference;
  typedef typename Arabica::DOM::CharacterData<string_type, string_adaptor> CharacterData;
  typedef typename Arabica::DOM::CDATASection<string_type, string_adaptor> CDATASection;
  typedef typename Arabica::DOM::Text<string_type, string_adaptor> Text;
  typedef typename Arabica::DOM::Comment<string_type, string_adaptor> Comment;
  typedef typename Arabica::DOM::ProcessingInstruction<string_type, string_adaptor> ProcessingInstruction;
  typedef typename Arabica::DOM::Notation<string_type, string_adaptor> Notation;

  typedef typename Arabica::DOM::DOMException DOMException;
  typedef string_type String;
  typedef string_adaptor SA;
  typedef bool boolean;

   /*
    * Runs the test case.
    */
   void runTest()
   {
      Document doc;
      NodeList elementList;
      Node testEmployee;
      String strong;
      doc = (Document) baseT::load("hc_staff", false);
      elementList = doc.getElementsByTagName(SA::construct_from_utf8("code"));
      testEmployee = elementList.item(1);
      strong = testEmployee.getNodeName();
      baseT::assertEquals("code", strong, __LINE__, __FILE__);
  strong = ((Element) /*Node */testEmployee).getTagName();
      baseT::assertEquals("code", strong, __LINE__, __FILE__);

   }

   /*
    *  Gets URI that identifies the test.
    */
   std::string getTargetURI() const
   {
      return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_elementretrievetagname";
   }
};

#endif


text:
/* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.flowable.rest.service.api.runtime.task;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.flowable.engine.common.api.FlowableException;
import org.flowable.engine.common.api.FlowableObjectNotFoundException;
import org.flowable.rest.service.api.RestResponseFactory;
import org.flowable.rest.service.api.engine.variable.RestVariable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

/**
 * @author Frederik Heremans
 */
@RestController
@Api(tags = { "Tasks" }, description = "Manage Tasks")
public class TaskVariableDataResource extends TaskVariableBaseResource {

  @RequestMapping(value = "/runtime/tasks/{taskId}/variables/{variableName}/data", method = RequestMethod.GET, produces = "application/json")
  @ApiImplicitParams(
          @ApiImplicitParam(name = "scope", dataType = "string", value = "Scope of variable to be returned. When local, only task-local variable value is returned. When global, only variable value from the task's parent execution-hierarchy are returned. When the parameter is omitted, a local variable will be returned if it exists, otherwise a global variable.", paramType = "query")
  )
  @ApiResponses(value = {
          @ApiResponse(code = 200, message = "Indicates the task was found and the requested variables are returned."),
          @ApiResponse(code = 404, message = "Indicates the requested task was not found or the task doesn't have a variable with the given name (in the given scope). Status message provides additional information.")
  })
  @ApiOperation(value = "Get the binary data for a variable", tags = {"Tasks"}, nickname = "geTaskVariableData",
          notes = "The response body contains the binary value of the variable. When the variable is of type binary, the content-type of the response is set to application/octet-stream, regardless of the content of the variable or the request accept-type header. In case of serializable, application/x-java-serialized-object is used as content-type.")
  @ResponseBody
  public byte[] getVariableData(@ApiParam(name = "taskId") @PathVariable("taskId") String taskId,
          @ApiParam(name = "variableName") @PathVariable("variableName") String variableName,
          @ApiParam(hidden = true) @RequestParam(value = "scope", required = false) String scope,
      HttpServletRequest request, HttpServletResponse response) {
    try {
      byte[] result = null;

      RestVariable variable = getVariableFromRequest(taskId, variableName, scope, true);
      if (RestResponseFactory.BYTE_ARRAY_VARIABLE_TYPE.equals(variable.getType())) {
        result = (byte[]) variable.getValue();
        response.setContentType("application/octet-stream");

      } else if (RestResponseFactory.SERIALIZABLE_VARIABLE_TYPE.equals(variable.getType())) {
        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        ObjectOutputStream outputStream = new ObjectOutputStream(buffer);
        outputStream.writeObject(variable.getValue());
        outputStream.close();
        result = buffer.toByteArray();
        response.setContentType("application/x-java-serialized-object");

      } else {
        throw new FlowableObjectNotFoundException("The variable does not have a binary data stream.", null);
      }
      return result;

    } catch (IOException ioe) {
      // Re-throw IOException
      throw new FlowableException("Unexpected error getting variable data", ioe);
    }
  }
}


text:
#ifndef NET_GRPC_NODE_CHANNEL_CREDENTIALS_H_
#define NET_GRPC_NODE_CHANNEL_CREDENTIALS_H_

#include <nan.h>
#include <node.h>
#include "grpc/grpc.h"
#include "grpc/grpc_security.h"

namespace grpc {
namespace node {

/* Wrapper class for grpc_channel_credentials structs */
class ChannelCredentials : public Nan::ObjectWrap {
 public:
  static void Init(v8::Local<v8::Object> exports);
  static bool HasInstance(v8::Local<v8::Value> val);
  /* Wrap a grpc_channel_credentials struct in a javascript object */
  static v8::Local<v8::Value> WrapStruct(grpc_channel_credentials *credentials);

  /* Returns the grpc_channel_credentials struct that this object wraps */
  grpc_channel_credentials *GetWrappedCredentials();

 private:
  explicit ChannelCredentials(grpc_channel_credentials *credentials);
  ~ChannelCredentials();

  // Prevent copying
  ChannelCredentials(const ChannelCredentials &);
  ChannelCredentials &operator=(const ChannelCredentials &);

  static NAN_METHOD(New);
  static NAN_METHOD(CreateSsl);
  static NAN_METHOD(CreateInsecure);

  static NAN_METHOD(Compose);
  static Nan::Callback *constructor;
  // Used for typechecking instances of this javascript class
  static Nan::Persistent<v8::FunctionTemplate> fun_tpl;

  grpc_channel_credentials *wrapped_credentials;
};

}  // namespace node
}  // namespace grpc

#endif  // NET_GRPC_NODE_CHANNEL_CREDENTIALS_H_


text:
package alluxio.util;

import static java.util.stream.Collectors.toList;

import org.apache.commons.compress.archivers.tar.TarArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream;
import org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream;
import org.apache.commons.compress.compressors.gzip.GzipCompressorOutputStream;
import org.apache.commons.io.IOUtils;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;

/**
 * Utility methods for working with tar archives.
 */
public final class TarUtils {
  /**
   * Creates a gzipped tar archive from the given path, streaming the data to the give output
   * stream.
   *
   * @param dirPath the path to archive
   * @param output the output stream to write the data to
   */
  public static void writeTarGz(Path dirPath, OutputStream output)
      throws IOException, InterruptedException {
    GzipCompressorOutputStream zipStream = new GzipCompressorOutputStream(output);
    TarArchiveOutputStream archiveStream = new TarArchiveOutputStream(zipStream);
    for (Path subPath : Files.walk(dirPath).collect(toList())) {
      if (Thread.interrupted()) {
        throw new InterruptedException();
      }
      File file = subPath.toFile();
      TarArchiveEntry entry = new TarArchiveEntry(file, dirPath.relativize(subPath).toString());
      archiveStream.putArchiveEntry(entry);
      if (file.isFile()) {
        try (InputStream fileIn = Files.newInputStream(subPath)) {
          IOUtils.copy(fileIn, archiveStream);
        }
      }
      archiveStream.closeArchiveEntry();
    }
    archiveStream.finish();
    zipStream.finish();
  }

  /**
   * Reads a gzipped tar archive from a stream and writes it to the given path.
   *
   * @param dirPath the path to write the archive to
   * @param input the input stream
   */
  public static void readTarGz(Path dirPath, InputStream input) throws IOException {
    InputStream zipStream = new GzipCompressorInputStream(input);
    TarArchiveInputStream archiveStream = new TarArchiveInputStream(zipStream);
    TarArchiveEntry entry;
    while ((entry = (TarArchiveEntry) archiveStream.getNextEntry()) != null) {
      File outputFile = new File(dirPath.toFile(), entry.getName());
      if (entry.isDirectory()) {
        outputFile.mkdirs();
      } else {
        outputFile.getParentFile().mkdirs();
        try (FileOutputStream fileOut = new FileOutputStream(outputFile)) {
          IOUtils.copy(archiveStream, fileOut);
        }
      }
    }
  }

  private TarUtils() {} // Utils class
}


text:
package v1alpha1

import (
	v1alpha1 "github.com/openebs/maya/pkg/apis/openebs.io/v1alpha1"
	scheme "github.com/openebs/maya/pkg/client/clientset/versioned/scheme"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	rest "k8s.io/client-go/rest"
)

// VolumePoliciesGetter has a method to return a VolumePolicyInterface.
// A group's client should implement this interface.
type VolumePoliciesGetter interface {
	VolumePolicies() VolumePolicyInterface
}

// VolumePolicyInterface has methods to work with VolumePolicy resources.
type VolumePolicyInterface interface {
	Create(*v1alpha1.VolumePolicy) (*v1alpha1.VolumePolicy, error)
	Update(*v1alpha1.VolumePolicy) (*v1alpha1.VolumePolicy, error)
	Delete(name string, options *v1.DeleteOptions) error
	DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
	Get(name string, options v1.GetOptions) (*v1alpha1.VolumePolicy, error)
	List(opts v1.ListOptions) (*v1alpha1.VolumePolicyList, error)
	Watch(opts v1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.VolumePolicy, err error)
	VolumePolicyExpansion
}

// volumePolicies implements VolumePolicyInterface
type volumePolicies struct {
	client rest.Interface
}

// newVolumePolicies returns a VolumePolicies
func newVolumePolicies(c *OpenebsV1alpha1Client) *volumePolicies {
	return &volumePolicies{
		client: c.RESTClient(),
	}
}

// Get takes name of the volumePolicy, and returns the corresponding volumePolicy object, and an error if there is any.
func (c *volumePolicies) Get(name string, options v1.GetOptions) (result *v1alpha1.VolumePolicy, err error) {
	result = &v1alpha1.VolumePolicy{}
	err = c.client.Get().
		Resource("volumepolicies").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}

// List takes label and field selectors, and returns the list of VolumePolicies that match those selectors.
func (c *volumePolicies) List(opts v1.ListOptions) (result *v1alpha1.VolumePolicyList, err error) {
	result = &v1alpha1.VolumePolicyList{}
	err = c.client.Get().
		Resource("volumepolicies").
		VersionedParams(&opts, scheme.ParameterCodec).
		Do().
		Into(result)
	return
}

// Watch returns a watch.Interface that watches the requested volumePolicies.
func (c *volumePolicies) Watch(opts v1.ListOptions) (watch.Interface, error) {
	opts.Watch = true
	return c.client.Get().
		Resource("volumepolicies").
		VersionedParams(&opts, scheme.ParameterCodec).
		Watch()
}

// Create takes the representation of a volumePolicy and creates it.  Returns the server's representation of the volumePolicy, and an error, if there is any.
func (c *volumePolicies) Create(volumePolicy *v1alpha1.VolumePolicy) (result *v1alpha1.VolumePolicy, err error) {
	result = &v1alpha1.VolumePolicy{}
	err = c.client.Post().
		Resource("volumepolicies").
		Body(volumePolicy).
		Do().
		Into(result)
	return
}

// Update takes the representation of a volumePolicy and updates it. Returns the server's representation of the volumePolicy, and an error, if there is any.
func (c *volumePolicies) Update(volumePolicy *v1alpha1.VolumePolicy) (result *v1alpha1.VolumePolicy, err error) {
	result = &v1alpha1.VolumePolicy{}
	err = c.client.Put().
		Resource("volumepolicies").
		Name(volumePolicy.Name).
		Body(volumePolicy).
		Do().
		Into(result)
	return
}

// Delete takes name of the volumePolicy and deletes it. Returns an error if one occurs.
func (c *volumePolicies) Delete(name string, options *v1.DeleteOptions) error {
	return c.client.Delete().
		Resource("volumepolicies").
		Name(name).
		Body(options).
		Do().
		Error()
}

// DeleteCollection deletes a collection of objects.
func (c *volumePolicies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
	return c.client.Delete().
		Resource("volumepolicies").
		VersionedParams(&listOptions, scheme.ParameterCodec).
		Body(options).
		Do().
		Error()
}

// Patch applies the patch and returns the patched volumePolicy.
func (c *volumePolicies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.VolumePolicy, err error) {
	result = &v1alpha1.VolumePolicy{}
	err = c.client.Patch(pt).
		Resource("volumepolicies").
		SubResource(subresources...).
		Name(name).
		Body(data).
		Do().
		Into(result)
	return
}


text:
package ui

import (
	"fmt"
	"regexp"
	"strconv"
	"strings"
	"unicode"
	"unicode/utf8"

	"github.com/tcolar/goed/core"
)

func (v *View) ClearSelections() {
	v.selections = []core.Selection{}
}

// Text returns the text contained in the selection of the given view
// Note: **NOT** a rectangle but from pt1 to pt2
func (v *View) SelectionText(s *core.Selection) [][]rune {
	cf := s.ColFrom
	ct := s.ColTo
	lt := s.LineTo
	lf := s.LineFrom
	if lt == -1 {
		lt = v.LineCount() - 1
	}
	if lf == lt {
		return *v.backend.Slice(lf, cf, lt, ct).Text()
	}
	// first line
	text := *v.backend.Slice(lf, cf, lf, -1).Text()
	for l := lf + 1; l < lt; l++ {
		// middle
		text = append(text, *v.backend.Slice(l, 0, l, -1).Text()...)
	}
	// last line
	text = append(text, *v.backend.Slice(lt, 0, lt, ct).Text()...)
	return text
}

// Selected returns whether the text at line, col is current selected
// also returns the matching selection, if any.
func (v *View) Selected(col, line int) (bool, *core.Selection) {
	for _, s := range v.selections {
		if line < s.LineFrom || line > s.LineTo {
			continue
		} else if line > s.LineFrom && line < s.LineTo {
			return true, &s
		} else if s.LineFrom == s.LineTo {
			return col >= s.ColFrom && col <= s.ColTo, &s
		} else if line == s.LineFrom && col >= s.ColFrom {
			return true, &s
		} else if line == s.LineTo && col <= s.ColTo {
			return true, &s
		}
	}
	return false, nil
}

func (v *View) Cut() {
	if len(v.selections) == 0 {
		v.SelectLine(v.CurLine())
	}
	v.SelectionCopy(&v.selections[0])
	v.SelectionDelete(&v.selections[0])
	v.ClearSelections()
}

func (v *View) Copy() {
	if len(v.selections) == 0 {
		v.SelectLine(v.CurLine())
	}
	v.SelectionCopy(&v.selections[0])
}

func (v *View) SelectionCopy(s *core.Selection) {
	t := v.SelectionText(s)
	text := core.RunesToString(t)
	if len(text) == 0 {
		return
	}
	// when copying full lines, add a "\n" at the end of the copy
	if s.ColTo == -1 {
		text += "\n"
	}
	core.Ed.SetStatus(fmt.Sprintf("Copied %d lines to clipboard.", len(t)))
	err := core.ClipboardWrite(text)
	if err != nil {
		core.Ed.SetStatusErr(err.Error())
	}
}

func (v *View) SelectionDelete(s *core.Selection) {
	colTo := s.ColTo
	if colTo == -1 {
		colTo = v.LineLen(v.slice, s.LineTo)
	}
	v.Delete(s.LineFrom, s.ColFrom, s.LineTo, colTo, true)
}

func (v *View) Paste() {
	text, err := core.ClipboardRead()
	if err != nil {
		core.Ed.SetStatusErr(err.Error())
		return
	}
	if len(v.selections) > 0 {
		v.DeleteCur()
	}
	ln, col := v.CurTextPos()
	v.Insert(ln, col, text, true)
}

var locationRegexp = regexp.MustCompile(`([^"\s(){}[\]<>,?|+=&^%#@!;':\x1B]+)(:\d+)?(:\d+)?`)

// Try to select a "location" from the given position
// a location is a path with possibly a line number and maybe a column number as well
func (v *View) ExpandSelectionPath(line, col int) *core.Selection {
	l := v.Line(v.slice, line)
	ln := string(l)
	// Note: Indexes taken and returned by FindAllStringIndex are in BYTES, not runes
	// not very inutitive to say the least
	c := core.RunesLen(l[:col])
	matches := locationRegexp.FindAllStringIndex(ln, -1)
	var best []int
	// Find the "narrowest" match around the cursor
	for _, s := range matches {
		if s[0] <= c && s[1] >= c {
			if best == nil || s[1]-s[0] < best[1]-best[0] {
				best = s
			}
		}
	}
	if best == nil {
		return nil
	}
	// convert byte indexes back to rune count
	r1 := utf8.RuneCountInString(ln[:best[0]])
	r2 := utf8.RuneCountInString(ln[:best[1]])
	return core.NewSelection(line, r1, line, r2-1)
}

// Try to select the longest "word" from current position.
func (v *View) ExpandSelectionWord(line, col int) *core.Selection {
	l := v.Line(v.slice, line)
	if col < 0 || col >= len(l) {
		return nil
	}
	c1, c2 := col, col
	for ; c1 >= 0 && isWordRune(l[c1]); c1-- {
	}
	c1++
	for ; c2 < len(l) && isWordRune(l[c2]); c2++ {
	}
	c2--
	if c1 >= c2 {
		return nil
	}
	return core.NewSelection(line, c1, line, c2)
}

func isWordRune(r rune) bool {
	return unicode.IsLetter(r) || unicode.IsDigit(r) || r == '_'
}

func (v *View) SelectAll() {
	lastLn := v.LineCount() - 1
	slice := v.Backend().Slice(lastLn, 0, lastLn, -1)
	s := core.NewSelection(0, 0, lastLn, v.LineLen(slice, lastLn)-1)
	v.selections = []core.Selection{
		*s,
	}
}

// Select the whole given line
func (v *View) SelectLine(line int) {
	s := core.NewSelection(line, 0, line, -1)
	v.selections = []core.Selection{
		*s,
	}
}

// Select a word at the given location (if any)
func (v *View) SelectWord(line, col int) {
	s := v.ExpandSelectionWord(line, col)
	if s != nil {
		v.selections = []core.Selection{
			*s,
		}
	}
}

// Parses a selection into a location (file, line, col)
func (v *View) SelectionToLoc(sel *core.Selection) (loc string, line, col int) {
	sub := locationRegexp.FindAllStringSubmatch(core.RunesToString(v.SelectionText(sel)), 1)
	if len(sub) == 0 {
		return
	}
	s := sub[0]
	if len(s) >= 1 {
		loc = s[1]
	}
	if len(s[2]) > 0 {
		line, _ = strconv.Atoi(s[2][1:])
	}
	if len(s[3]) > 0 {
		col, _ = strconv.Atoi(s[3][1:])
	}
	return loc, line, col
}

// Stretch a selection toward a new position
func (v *View) StretchSelection(prevl, prevc, l, c int) {
	if len(v.selections) != 0 {
		s := &v.selections[0]
		s.LineFrom, s.LineTo, s.ColFrom, s.ColTo = prevl, l, prevc, c
		s.Normalize()
	} else {
		s := core.NewSelection(prevl, prevc, l, c)
		s.Normalize()
		v.selections = []core.Selection{*s}
	}
}

// Open what's selected or under the cursor
// if newView is true then open in a new view, otherwise
// replace content of v
func (v *View) OpenSelection(newView bool) {
	ed := core.Ed.(*Editor)
	newView = newView || v.Dirty()
	if len(v.selections) == 0 {
		ln, col := v.CurTextPos()
		selection := v.ExpandSelectionPath(ln, col)
		if selection == nil {
			ed.SetStatusErr("Could not expand location from cursor location.")
			return
		}
		v.selections = []core.Selection{*selection}
	}
	loc, line, col := v.SelectionToLoc(&v.selections[0])
	line-- // we use 0 indexes in views
	col--
	isDir := false
	loc, isDir = core.LookupLocation(v.WorkDir(), strings.TrimSpace(loc))
	vids := ed.ViewsByLoc(loc)
	if len(vids) > 0 {
		vv := ed.ViewById(vids[0])
		if vv != nil {
			// Already open
			vv.SetCursorPos(line, col)
			ed.ViewActivate(vv.Id())
			return
		}
	}
	v2 := ed.NewView(loc)
	if _, err := ed.Open(loc, v2.Id(), v.WorkDir(), false); err != nil {
		ed.SetStatusErr(err.Error())
		return
	}
	if newView {
		if isDir {
			ed.AddDirViewSmart(v2)
		} else {
			ed.InsertViewSmart(v2)
		}
	} else {
		ed.ReplaceView(v, v2)
	}
	v2.SetCursorPos(line, col)
	ed.ViewActivate(v2.Id())
}


text:
import React from 'react';
import Markdown from 'react-markdown';
import {
  compose,
  pure,
  setDisplayName,
  withPropsOnChange,
} from 'recompose';

import Row from '@ncigdc/uikit/Flex/Row';
import BannerLink from './BannerLink';
import './styles.scss';

const levelToIcon = {
  error: ,
  info: ,
  warning: ,
};

type BannerProps = {
  dismissed: boolean,
  dismissible: boolean,
  handleOnDismiss: () => {},
  isSectionHeader: boolean,
  level: string,
  message: string,
  reactElement: boolean,
};

const Banner = ({
  dismissed,
  dismissible,
  handleOnDismiss,
  isSectionHeader,
  level = 'info',
  message,
  reactElement,
  style,
}: BannerProps) => (
  <Row
    className={`header-banner ${
      isSectionHeader
        ? 'sectionHeader'
        : `notification ${level.toLowerCase()}`
    }`}
    style={style}
    >
    {level !== 'none' && levelToIcon[level.toLowerCase()]}

    {message && (

        {!reactElement ? (
          <Markdown
            renderers={{
              link: props => <BannerLink level={level} {...props} />,
            }}
            source={message}
            />
        ) : (
          message
        )}

    )}

    {dismissible && (
      <button
        aria-disabled={dismissed}
        className="header-banner-dismiss-button"
        onClick={handleOnDismiss}
        type="button"
        >
        Dismiss
        {' '}

      </button>
    )}
  </Row>
);

const styles = {
  dismissed: {
    borderBottom: 0,
    fontSize: 0,
    height: 0,
    lineHeight: 0,
    opacity: 0,
    paddingBottom: 0,
    paddingTop: 0,
  },
  show: {
    height: 'auto',
    lineHeight: 'unset',
    opacity: 1,
  },
};

const verticalPadding = pad => ({
  paddingBottom: `${pad}rem`,
  paddingTop: `${pad}rem`,
});

export default compose(
  setDisplayName('EnhancedBanner'),
  withPropsOnChange(
    ({
      dismissed,
      message,
    }, {
      dismissed: nextDismissed,
      message: nextMessage,
    }) => !(
      dismissed === nextDismissed &&
      message === nextMessage
    ),
    ({
      dismissed,
      isSectionHeader,
      message,
    }) => ({
      style: {
        ...(dismissed || !message
          ? styles.dismissed
          : {
            ...styles.show,
            ...verticalPadding(isSectionHeader ? '0.5' : '1'),
          }),
      },
    }),
  ),
  pure,
)(Banner);


text:
using UnityEngine;
using System;
using LuaInterface;
using SLua;
using System.Collections.Generic;
public class Lua_UnityEngine_Vector3 : LuaObject {
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int constructor(IntPtr l) {
		try {
			int argc = LuaDLL.lua_gettop(l);
			UnityEngine.Vector3 o;
			if(argc==4){
				System.Single a1;
				checkType(l,2,out a1);
				System.Single a2;
				checkType(l,3,out a2);
				System.Single a3;
				checkType(l,4,out a3);
				o=new UnityEngine.Vector3(a1,a2,a3);
				pushValue(l,true);
				pushValue(l,o);
				return 2;
			}
			else if(argc==3){
				System.Single a1;
				checkType(l,2,out a1);
				System.Single a2;
				checkType(l,3,out a2);
				o=new UnityEngine.Vector3(a1,a2);
				pushValue(l,true);
				pushValue(l,o);
				return 2;
			}
			return error(l,"New object failed.");
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Set(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			System.Single a1;
			checkType(l,2,out a1);
			System.Single a2;
			checkType(l,3,out a2);
			System.Single a3;
			checkType(l,4,out a3);
			self.Set(a1,a2,a3);
			pushValue(l,true);
			setBack(l,self);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Scale(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			UnityEngine.Vector3 a1;
			checkType(l,2,out a1);
			self.Scale(a1);
			pushValue(l,true);
			setBack(l,self);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Normalize(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			self.Normalize();
			pushValue(l,true);
			setBack(l,self);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Lerp_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			System.Single a3;
			checkType(l,3,out a3);
			var ret=UnityEngine.Vector3.Lerp(a1,a2,a3);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int LerpUnclamped_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			System.Single a3;
			checkType(l,3,out a3);
			var ret=UnityEngine.Vector3.LerpUnclamped(a1,a2,a3);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Slerp_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			System.Single a3;
			checkType(l,3,out a3);
			var ret=UnityEngine.Vector3.Slerp(a1,a2,a3);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int SlerpUnclamped_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			System.Single a3;
			checkType(l,3,out a3);
			var ret=UnityEngine.Vector3.SlerpUnclamped(a1,a2,a3);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int OrthoNormalize_s(IntPtr l) {
		try {
			int argc = LuaDLL.lua_gettop(l);
			if(argc==2){
				UnityEngine.Vector3 a1;
				checkType(l,1,out a1);
				UnityEngine.Vector3 a2;
				checkType(l,2,out a2);
				UnityEngine.Vector3.OrthoNormalize(ref a1,ref a2);
				pushValue(l,true);
				pushValue(l,a1);
				pushValue(l,a2);
				return 3;
			}
			else if(argc==3){
				UnityEngine.Vector3 a1;
				checkType(l,1,out a1);
				UnityEngine.Vector3 a2;
				checkType(l,2,out a2);
				UnityEngine.Vector3 a3;
				checkType(l,3,out a3);
				UnityEngine.Vector3.OrthoNormalize(ref a1,ref a2,ref a3);
				pushValue(l,true);
				pushValue(l,a1);
				pushValue(l,a2);
				pushValue(l,a3);
				return 4;
			}
			pushValue(l,false);
			LuaDLL.lua_pushstring(l,"No matched override function to call");
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int MoveTowards_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			System.Single a3;
			checkType(l,3,out a3);
			var ret=UnityEngine.Vector3.MoveTowards(a1,a2,a3);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int RotateTowards_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			System.Single a3;
			checkType(l,3,out a3);
			System.Single a4;
			checkType(l,4,out a4);
			var ret=UnityEngine.Vector3.RotateTowards(a1,a2,a3,a4);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int SmoothDamp_s(IntPtr l) {
		try {
			int argc = LuaDLL.lua_gettop(l);
			if(argc==4){
				UnityEngine.Vector3 a1;
				checkType(l,1,out a1);
				UnityEngine.Vector3 a2;
				checkType(l,2,out a2);
				UnityEngine.Vector3 a3;
				checkType(l,3,out a3);
				System.Single a4;
				checkType(l,4,out a4);
				var ret=UnityEngine.Vector3.SmoothDamp(a1,a2,ref a3,a4);
				pushValue(l,true);
				pushValue(l,ret);
				pushValue(l,a3);
				return 3;
			}
			else if(argc==5){
				UnityEngine.Vector3 a1;
				checkType(l,1,out a1);
				UnityEngine.Vector3 a2;
				checkType(l,2,out a2);
				UnityEngine.Vector3 a3;
				checkType(l,3,out a3);
				System.Single a4;
				checkType(l,4,out a4);
				System.Single a5;
				checkType(l,5,out a5);
				var ret=UnityEngine.Vector3.SmoothDamp(a1,a2,ref a3,a4,a5);
				pushValue(l,true);
				pushValue(l,ret);
				pushValue(l,a3);
				return 3;
			}
			else if(argc==6){
				UnityEngine.Vector3 a1;
				checkType(l,1,out a1);
				UnityEngine.Vector3 a2;
				checkType(l,2,out a2);
				UnityEngine.Vector3 a3;
				checkType(l,3,out a3);
				System.Single a4;
				checkType(l,4,out a4);
				System.Single a5;
				checkType(l,5,out a5);
				System.Single a6;
				checkType(l,6,out a6);
				var ret=UnityEngine.Vector3.SmoothDamp(a1,a2,ref a3,a4,a5,a6);
				pushValue(l,true);
				pushValue(l,ret);
				pushValue(l,a3);
				return 3;
			}
			pushValue(l,false);
			LuaDLL.lua_pushstring(l,"No matched override function to call");
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Scale_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Scale(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Cross_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Cross(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Reflect_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Reflect(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Normalize_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			var ret=UnityEngine.Vector3.Normalize(a1);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Dot_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Dot(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Project_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Project(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int ProjectOnPlane_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.ProjectOnPlane(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Angle_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Angle(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Distance_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Distance(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int ClampMagnitude_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			System.Single a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.ClampMagnitude(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Magnitude_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			var ret=UnityEngine.Vector3.Magnitude(a1);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int SqrMagnitude_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			var ret=UnityEngine.Vector3.SqrMagnitude(a1);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Min_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Min(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int Max_s(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=UnityEngine.Vector3.Max(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_Addition(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=a1+a2;
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_Subtraction(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=a1-a2;
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_UnaryNegation(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			var ret=-a1;
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_Multiply(IntPtr l) {
		try {
			int argc = LuaDLL.lua_gettop(l);
			if(matchType(l,argc,1,typeof(float),typeof(UnityEngine.Vector3))){
				System.Single a1;
				checkType(l,1,out a1);
				UnityEngine.Vector3 a2;
				checkType(l,2,out a2);
				var ret=a1*a2;
				pushValue(l,true);
				pushValue(l,ret);
				return 2;
			}
			else if(matchType(l,argc,1,typeof(UnityEngine.Vector3),typeof(float))){
				UnityEngine.Vector3 a1;
				checkType(l,1,out a1);
				System.Single a2;
				checkType(l,2,out a2);
				var ret=a1*a2;
				pushValue(l,true);
				pushValue(l,ret);
				return 2;
			}
			pushValue(l,false);
			LuaDLL.lua_pushstring(l,"No matched override function to call");
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_Division(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			System.Single a2;
			checkType(l,2,out a2);
			var ret=a1/a2;
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_Equality(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=(a1==a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int op_Inequality(IntPtr l) {
		try {
			UnityEngine.Vector3 a1;
			checkType(l,1,out a1);
			UnityEngine.Vector3 a2;
			checkType(l,2,out a2);
			var ret=(a1!=a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_kEpsilon(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.kEpsilon);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_x(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			pushValue(l,true);
			pushValue(l,self.x);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_x(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			System.Single v;
			checkType(l,2,out v);
			self.x=v;
			setBack(l,self);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_y(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			pushValue(l,true);
			pushValue(l,self.y);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_y(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			System.Single v;
			checkType(l,2,out v);
			self.y=v;
			setBack(l,self);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_z(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			pushValue(l,true);
			pushValue(l,self.z);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int set_z(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			System.Single v;
			checkType(l,2,out v);
			self.z=v;
			setBack(l,self);
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_normalized(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			pushValue(l,true);
			pushValue(l,self.normalized);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_magnitude(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			pushValue(l,true);
			pushValue(l,self.magnitude);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_sqrMagnitude(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			pushValue(l,true);
			pushValue(l,self.sqrMagnitude);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_zero(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.zero);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_one(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.one);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_forward(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.forward);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_back(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.back);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_up(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.up);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_down(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.down);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_left(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.left);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int get_right(IntPtr l) {
		try {
			pushValue(l,true);
			pushValue(l,UnityEngine.Vector3.right);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int getItem(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			int v;
			checkType(l,2,out v);
			var ret = self[v];
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	static public int setItem(IntPtr l) {
		try {
			UnityEngine.Vector3 self;
			checkType(l,1,out self);
			int v;
			checkType(l,2,out v);
			float c;
			checkType(l,3,out c);
			self[v]=c;
			pushValue(l,true);
			return 1;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
	static public void reg(IntPtr l) {
		getTypeTable(l,"UnityEngine.Vector3");
		addMember(l,Set);
		addMember(l,Scale);
		addMember(l,Normalize);
		addMember(l,Lerp_s);
		addMember(l,LerpUnclamped_s);
		addMember(l,Slerp_s);
		addMember(l,SlerpUnclamped_s);
		addMember(l,OrthoNormalize_s);
		addMember(l,MoveTowards_s);
		addMember(l,RotateTowards_s);
		addMember(l,SmoothDamp_s);
		addMember(l,Scale_s);
		addMember(l,Cross_s);
		addMember(l,Reflect_s);
		addMember(l,Normalize_s);
		addMember(l,Dot_s);
		addMember(l,Project_s);
		addMember(l,ProjectOnPlane_s);
		addMember(l,Angle_s);
		addMember(l,Distance_s);
		addMember(l,ClampMagnitude_s);
		addMember(l,Magnitude_s);
		addMember(l,SqrMagnitude_s);
		addMember(l,Min_s);
		addMember(l,Max_s);
		addMember(l,op_Addition);
		addMember(l,op_Subtraction);
		addMember(l,op_UnaryNegation);
		addMember(l,op_Multiply);
		addMember(l,op_Division);
		addMember(l,op_Equality);
		addMember(l,op_Inequality);
		addMember(l,getItem);
		addMember(l,setItem);
		addMember(l,"kEpsilon",get_kEpsilon,null,false);
		addMember(l,"x",get_x,set_x,true);
		addMember(l,"y",get_y,set_y,true);
		addMember(l,"z",get_z,set_z,true);
		addMember(l,"normalized",get_normalized,null,true);
		addMember(l,"magnitude",get_magnitude,null,true);
		addMember(l,"sqrMagnitude",get_sqrMagnitude,null,true);
		addMember(l,"zero",get_zero,null,false);
		addMember(l,"one",get_one,null,false);
		addMember(l,"forward",get_forward,null,false);
		addMember(l,"back",get_back,null,false);
		addMember(l,"up",get_up,null,false);
		addMember(l,"down",get_down,null,false);
		addMember(l,"left",get_left,null,false);
		addMember(l,"right",get_right,null,false);
		createTypeMetatable(l,constructor, typeof(UnityEngine.Vector3),typeof(System.ValueType));
	}
}