text:
namespace VFS.Application.GUI
{
    partial class frmExplorer
    {
        /// <summary>
        /// Erforderliche Designervariable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Verwendete Ressourcen bereinigen.
        /// </summary>
        /// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Vom Windows Form-Designer generierter Code

        /// <summary>
        /// Erforderliche Methode für die Designerunterstützung.
        /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmExplorer));
            this.mainMenu = new System.Windows.Forms.MenuStrip();
            this.mFileTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.openFileTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.createFileTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.openSettingsTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.openAboutTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.closeTabTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.endTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.vFSToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
            this.extractAllTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.navigationTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.goBackTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.pageForwardTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.pageBackTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.filesTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.directoryTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.addDirTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.dirRenameTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.dirDeleteTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.dirExtractTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.fileTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.fileAddTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.fileRenameTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.fileDeleteTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.fileOpenTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.fileExtractTSMI = new System.Windows.Forms.ToolStripMenuItem();
            this.pnlPageContainer = new Design.DesignPanel();
            this.pnlBreadCrumbContainer = new Design.DesignPanel();
            this.pnlTopBarMain = new Design.DesignPanel();
            this.designButton10 = new Design.DesignButton();
            this.designButton9 = new Design.DesignButton();
            this.designButton8 = new Design.DesignButton();
            this.designButton7 = new Design.DesignButton();
            this.designButton6 = new Design.DesignButton();
            this.designButton5 = new Design.DesignButton();
            this.designButton4 = new Design.DesignButton();
            this.designButton3 = new Design.DesignButton();
            this.designButton2 = new Design.DesignButton();
            this.designButton1 = new Design.DesignButton();
            this.panel3 = new Design.DesignPanel();
            this.txtSearch = new System.Windows.Forms.TextBox();
            this.pnlPageControllerContainer = new Design.DesignPanel();
            this.pnlMainNavMount = new Design.DesignPanel();
            this.pnlGoForward = new Design.DesignButton();
            this.pnlGoBack = new Design.DesignButton();
            this.pnlMount = new Design.DesignPanel();
            this.pnlUnmount = new Design.DesignButton();
            this.pnlAddMount = new Design.DesignButton();
            this.pnlBottomBar = new Design.DesignPanel();
            this.chkHorizontal = new System.Windows.Forms.CheckBox();
            this.lblSites = new System.Windows.Forms.Label();
            this.chkPreview = new System.Windows.Forms.CheckBox();
            this.mainMenu.SuspendLayout();
            this.pnlTopBarMain.SuspendLayout();
            this.panel3.SuspendLayout();
            this.pnlMainNavMount.SuspendLayout();
            this.pnlMount.SuspendLayout();
            this.pnlBottomBar.SuspendLayout();
            this.SuspendLayout();
            //
            // mainMenu
            //
            this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mFileTSMI,
            this.vFSToolStripMenuItem});
            this.mainMenu.Location = new System.Drawing.Point(0, 0);
            this.mainMenu.Name = "mainMenu";
            this.mainMenu.Size = new System.Drawing.Size(814, 24);
            this.mainMenu.TabIndex = 0;
            this.mainMenu.Text = "mainMenue";
            this.mainMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.mainMenu_ItemClicked);
            //
            // mFileTSMI
            //
            this.mFileTSMI.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.openFileTSMI,
            this.createFileTSMI,
            this.openSettingsTSMI,
            this.openAboutTSMI,
            this.closeTabTSMI,
            this.endTSMI});
            this.mFileTSMI.Name = "mFileTSMI";
            this.mFileTSMI.Size = new System.Drawing.Size(46, 20);
            this.mFileTSMI.Text = "Datei";
            //
            // openFileTSMI
            //
            this.openFileTSMI.Image = global::VFS.Application.Properties.Resources.Open;
            this.openFileTSMI.Name = "openFileTSMI";
            this.openFileTSMI.ShortcutKeyDisplayString = "Strg+O";
            this.openFileTSMI.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
            this.openFileTSMI.Size = new System.Drawing.Size(190, 22);
            this.openFileTSMI.Text = "Datei öffnen";
            this.openFileTSMI.Click += new System.EventHandler(this.openFileTSMI_Click);
            //
            // createFileTSMI
            //
            this.createFileTSMI.Image = global::VFS.Application.Properties.Resources.Add;
            this.createFileTSMI.Name = "createFileTSMI";
            this.createFileTSMI.ShortcutKeyDisplayString = "Strg+E";
            this.createFileTSMI.Size = new System.Drawing.Size(190, 22);
            this.createFileTSMI.Text = "Datei erstellen";
            this.createFileTSMI.Click += new System.EventHandler(this.createFileTSMI_Click);
            //
            // openSettingsTSMI
            //
            this.openSettingsTSMI.Image = global::VFS.Application.Properties.Resources.Settings;
            this.openSettingsTSMI.Name = "openSettingsTSMI";
            this.openSettingsTSMI.Size = new System.Drawing.Size(190, 22);
            this.openSettingsTSMI.Text = "Einstellungen";
            this.openSettingsTSMI.Click += new System.EventHandler(this.openSettingsTSMI_Click);
            //
            // openAboutTSMI
            //
            this.openAboutTSMI.Image = global::VFS.Application.Properties.Resources.About;
            this.openAboutTSMI.Name = "openAboutTSMI";
            this.openAboutTSMI.Size = new System.Drawing.Size(190, 22);
            this.openAboutTSMI.Text = "Über";
            this.openAboutTSMI.Click += new System.EventHandler(this.openAboutTSMI_Click);
            //
            // closeTabTSMI
            //
            this.closeTabTSMI.Image = global::VFS.Application.Properties.Resources.Abort;
            this.closeTabTSMI.Name = "closeTabTSMI";
            this.closeTabTSMI.Size = new System.Drawing.Size(190, 22);
            this.closeTabTSMI.Text = "Tab schließen";
            this.closeTabTSMI.Click += new System.EventHandler(this.closeTabTSMI_Click);
            //
            // endTSMI
            //
            this.endTSMI.Image = global::VFS.Application.Properties.Resources.CloseIcon;
            this.endTSMI.Name = "endTSMI";
            this.endTSMI.Size = new System.Drawing.Size(190, 22);
            this.endTSMI.Text = "Beenden";
            this.endTSMI.Click += new System.EventHandler(this.endTSMI_Click);
            //
            // vFSToolStripMenuItem
            //
            this.vFSToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.extractAllTSMI,
            this.navigationTSMI,
            this.filesTSMI});
            this.vFSToolStripMenuItem.Name = "vFSToolStripMenuItem";
            this.vFSToolStripMenuItem.Size = new System.Drawing.Size(38, 20);
            this.vFSToolStripMenuItem.Text = "VFS";
            //
            // extractAllTSMI
            //
            this.extractAllTSMI.Image = global::VFS.Application.Properties.Resources.checklist_icon;
            this.extractAllTSMI.Name = "extractAllTSMI";
            this.extractAllTSMI.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W)));
            this.extractAllTSMI.Size = new System.Drawing.Size(204, 22);
            this.extractAllTSMI.Text = "Alles entpacken";
            this.extractAllTSMI.Click += new System.EventHandler(this.extractAllTSMI_Click);
            //
            // navigationTSMI
            //
            this.navigationTSMI.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.goBackTSMI,
            this.pageForwardTSMI,
            this.pageBackTSMI});
            this.navigationTSMI.Name = "navigationTSMI";
            this.navigationTSMI.Size = new System.Drawing.Size(204, 22);
            this.navigationTSMI.Text = "Navigation";
            //
            // goBackTSMI
            //
            this.goBackTSMI.Image = global::VFS.Application.Properties.Resources.BackBig;
            this.goBackTSMI.Name = "goBackTSMI";
            this.goBackTSMI.ShortcutKeys = System.Windows.Forms.Keys.F10;
            this.goBackTSMI.Size = new System.Drawing.Size(162, 22);
            this.goBackTSMI.Text = "Zurück";
            //
            // pageForwardTSMI
            //
            this.pageForwardTSMI.Image = global::VFS.Application.Properties.Resources.ForwardLittle;
            this.pageForwardTSMI.Name = "pageForwardTSMI";
            this.pageForwardTSMI.ShortcutKeys = System.Windows.Forms.Keys.F11;
            this.pageForwardTSMI.Size = new System.Drawing.Size(162, 22);
            this.pageForwardTSMI.Text = "Seite vor";
            //
            // pageBackTSMI
            //
            this.pageBackTSMI.Image = global::VFS.Application.Properties.Resources.BackLittle;
            this.pageBackTSMI.Name = "pageBackTSMI";
            this.pageBackTSMI.ShortcutKeys = System.Windows.Forms.Keys.F12;
            this.pageBackTSMI.Size = new System.Drawing.Size(162, 22);
            this.pageBackTSMI.Text = "Seite zurück";
            //
            // filesTSMI
            //
            this.filesTSMI.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.directoryTSMI,
            this.fileTSMI});
            this.filesTSMI.Name = "filesTSMI";
            this.filesTSMI.Size = new System.Drawing.Size(204, 22);
            this.filesTSMI.Text = "Dateien";
            //
            // directoryTSMI
            //
            this.directoryTSMI.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.addDirTSMI,
            this.dirRenameTSMI,
            this.dirDeleteTSMI,
            this.dirExtractTSMI});
            this.directoryTSMI.Image = ((System.Drawing.Image)(resources.GetObject("directoryTSMI.Image")));
            this.directoryTSMI.Name = "directoryTSMI";
            this.directoryTSMI.Size = new System.Drawing.Size(111, 22);
            this.directoryTSMI.Text = "Ordner";
            //
            // addDirTSMI
            //
            this.addDirTSMI.Image = global::VFS.Application.Properties.Resources.Add;
            this.addDirTSMI.Name = "addDirTSMI";
            this.addDirTSMI.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F1)));
            this.addDirTSMI.Size = new System.Drawing.Size(295, 22);
            this.addDirTSMI.Text = "Hinzufügen";
            //
            // dirRenameTSMI
            //
            this.dirRenameTSMI.Image = global::VFS.Application.Properties.Resources.Rename;
            this.dirRenameTSMI.Name = "dirRenameTSMI";
            this.dirRenameTSMI.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F2)));
            this.dirRenameTSMI.Size = new System.Drawing.Size(295, 22);
            this.dirRenameTSMI.Text = "Umbenennen";
            this.dirRenameTSMI.Click += new System.EventHandler(this.umbenenenToolStripMenuItem_Click);
            //
            // dirDeleteTSMI
            //
            this.dirDeleteTSMI.Image = global::VFS.Application.Properties.Resources.CloseIcon;
            this.dirDeleteTSMI.Name = "dirDeleteTSMI";
            this.dirDeleteTSMI.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F3)));
            this.dirDeleteTSMI.Size = new System.Drawing.Size(295, 22);
            this.dirDeleteTSMI.Text = "Löschen";
            //
            // dirExtractTSMI
            //
            this.dirExtractTSMI.Image = ((System.Drawing.Image)(resources.GetObject("dirExtractTSMI.Image")));
            this.dirExtractTSMI.Name = "dirExtractTSMI";
            this.dirExtractTSMI.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F4)));
            this.dirExtractTSMI.Size = new System.Drawing.Size(295, 22);
            this.dirExtractTSMI.Text = "Ausgewählten Ordner entpacken";
            //
            // fileTSMI
            //
            this.fileTSMI.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fileAddTSMI,
            this.fileRenameTSMI,
            this.fileDeleteTSMI,
            this.fileOpenTSMI,
            this.fileExtractTSMI});
            this.fileTSMI.Name = "fileTSMI";
            this.fileTSMI.Size = new System.Drawing.Size(111, 22);
            this.fileTSMI.Text = "Datei";
            //
            // fileAddTSMI
            //
            this.fileAddTSMI.Image = global::VFS.Application.Properties.Resources.Add;
            this.fileAddTSMI.Name = "fileAddTSMI";
            this.fileAddTSMI.ShortcutKeys = System.Windows.Forms.Keys.F1;
            this.fileAddTSMI.Size = new System.Drawing.Size(249, 22);
            this.fileAddTSMI.Text = "Hinzufügen";
            //
            // fileRenameTSMI
            //
            this.fileRenameTSMI.Image = global::VFS.Application.Properties.Resources.Rename;
            this.fileRenameTSMI.Name = "fileRenameTSMI";
            this.fileRenameTSMI.ShortcutKeys = System.Windows.Forms.Keys.F2;
            this.fileRenameTSMI.Size = new System.Drawing.Size(249, 22);
            this.fileRenameTSMI.Text = "Umbenennen";
            //
            // fileDeleteTSMI
            //
            this.fileDeleteTSMI.Image = global::VFS.Application.Properties.Resources.CloseIcon;
            this.fileDeleteTSMI.Name = "fileDeleteTSMI";
            this.fileDeleteTSMI.ShortcutKeys = System.Windows.Forms.Keys.F3;
            this.fileDeleteTSMI.Size = new System.Drawing.Size(249, 22);
            this.fileDeleteTSMI.Text = "Löschen";
            //
            // fileOpenTSMI
            //
            this.fileOpenTSMI.Image = global::VFS.Application.Properties.Resources.Open;
            this.fileOpenTSMI.Name = "fileOpenTSMI";
            this.fileOpenTSMI.ShortcutKeys = System.Windows.Forms.Keys.F4;
            this.fileOpenTSMI.Size = new System.Drawing.Size(249, 22);
            this.fileOpenTSMI.Text = "Öffnen";
            //
            // fileExtractTSMI
            //
            this.fileExtractTSMI.Name = "fileExtractTSMI";
            this.fileExtractTSMI.ShortcutKeys = System.Windows.Forms.Keys.F5;
            this.fileExtractTSMI.Size = new System.Drawing.Size(249, 22);
            this.fileExtractTSMI.Text = "Ausgewählte Datei entpacken";
            //
            // pnlPageContainer
            //
            this.pnlPageContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
            | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.pnlPageContainer.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlPageContainer.BorderThickness = 2;
            this.pnlPageContainer.Location = new System.Drawing.Point(149, 141);
            this.pnlPageContainer.Name = "pnlPageContainer";
            this.pnlPageContainer.Size = new System.Drawing.Size(665, 316);
            this.pnlPageContainer.TabIndex = 11;
            //
            // pnlBreadCrumbContainer
            //
            this.pnlBreadCrumbContainer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.pnlBreadCrumbContainer.BackColor = System.Drawing.SystemColors.Control;
            this.pnlBreadCrumbContainer.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlBreadCrumbContainer.BorderThickness = 2;
            this.pnlBreadCrumbContainer.Location = new System.Drawing.Point(149, 83);
            this.pnlBreadCrumbContainer.Name = "pnlBreadCrumbContainer";
            this.pnlBreadCrumbContainer.Size = new System.Drawing.Size(502, 59);
            this.pnlBreadCrumbContainer.TabIndex = 10;
            //
            // pnlTopBarMain
            //
            this.pnlTopBarMain.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.pnlTopBarMain.BackColor = System.Drawing.SystemColors.Control;
            this.pnlTopBarMain.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlTopBarMain.BorderThickness = 2;
            this.pnlTopBarMain.Controls.Add(this.designButton10);
            this.pnlTopBarMain.Controls.Add(this.designButton9);
            this.pnlTopBarMain.Controls.Add(this.designButton8);
            this.pnlTopBarMain.Controls.Add(this.designButton7);
            this.pnlTopBarMain.Controls.Add(this.designButton6);
            this.pnlTopBarMain.Controls.Add(this.designButton5);
            this.pnlTopBarMain.Controls.Add(this.designButton4);
            this.pnlTopBarMain.Controls.Add(this.designButton3);
            this.pnlTopBarMain.Controls.Add(this.designButton2);
            this.pnlTopBarMain.Controls.Add(this.designButton1);
            this.pnlTopBarMain.Location = new System.Drawing.Point(149, 24);
            this.pnlTopBarMain.Name = "pnlTopBarMain";
            this.pnlTopBarMain.Size = new System.Drawing.Size(665, 61);
            this.pnlTopBarMain.TabIndex = 8;
            //
            // designButton10
            //
            this.designButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.designButton10.BackgroundImage = global::VFS.Application.Properties.Resources.AllAps;
            this.designButton10.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton10.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton10.BorderThickness = 2;
            this.designButton10.Location = new System.Drawing.Point(500, 3);
            this.designButton10.Name = "designButton10";
            this.designButton10.Size = new System.Drawing.Size(50, 50);
            this.designButton10.TabIndex = 20;
            //
            // designButton9
            //
            this.designButton9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.designButton9.BackgroundImage = global::VFS.Application.Properties.Resources.Settings;
            this.designButton9.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton9.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton9.BorderThickness = 2;
            this.designButton9.Location = new System.Drawing.Point(556, 3);
            this.designButton9.Name = "designButton9";
            this.designButton9.Size = new System.Drawing.Size(50, 50);
            this.designButton9.TabIndex = 19;
            //
            // designButton8
            //
            this.designButton8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.designButton8.BackgroundImage = global::VFS.Application.Properties.Resources.AboutBig;
            this.designButton8.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton8.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton8.BorderThickness = 2;
            this.designButton8.Location = new System.Drawing.Point(612, 3);
            this.designButton8.Name = "designButton8";
            this.designButton8.Size = new System.Drawing.Size(50, 50);
            this.designButton8.TabIndex = 18;
            //
            // designButton7
            //
            this.designButton7.BackgroundImage = global::VFS.Application.Properties.Resources.Rename;
            this.designButton7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton7.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton7.BorderThickness = 2;
            this.designButton7.Location = new System.Drawing.Point(344, 3);
            this.designButton7.Name = "designButton7";
            this.designButton7.Size = new System.Drawing.Size(50, 50);
            this.designButton7.TabIndex = 17;
            //
            // designButton6
            //
            this.designButton6.BackgroundImage = global::VFS.Application.Properties.Resources.Paste;
            this.designButton6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton6.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton6.BorderThickness = 2;
            this.designButton6.Location = new System.Drawing.Point(288, 3);
            this.designButton6.Name = "designButton6";
            this.designButton6.Size = new System.Drawing.Size(50, 50);
            this.designButton6.TabIndex = 16;
            //
            // designButton5
            //
            this.designButton5.BackgroundImage = global::VFS.Application.Properties.Resources.Copy;
            this.designButton5.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton5.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton5.BorderThickness = 2;
            this.designButton5.Location = new System.Drawing.Point(232, 3);
            this.designButton5.Name = "designButton5";
            this.designButton5.Size = new System.Drawing.Size(50, 50);
            this.designButton5.TabIndex = 15;
            //
            // designButton4
            //
            this.designButton4.BackgroundImage = global::VFS.Application.Properties.Resources.DeleteFolder;
            this.designButton4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton4.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton4.BorderThickness = 2;
            this.designButton4.Location = new System.Drawing.Point(176, 3);
            this.designButton4.Name = "designButton4";
            this.designButton4.Size = new System.Drawing.Size(50, 50);
            this.designButton4.TabIndex = 14;
            //
            // designButton3
            //
            this.designButton3.BackgroundImage = global::VFS.Application.Properties.Resources.AddFolder;
            this.designButton3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton3.BorderThickness = 2;
            this.designButton3.Location = new System.Drawing.Point(120, 3);
            this.designButton3.Name = "designButton3";
            this.designButton3.Size = new System.Drawing.Size(50, 50);
            this.designButton3.TabIndex = 13;
            //
            // designButton2
            //
            this.designButton2.BackgroundImage = global::VFS.Application.Properties.Resources.DeleteFile;
            this.designButton2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton2.BorderThickness = 2;
            this.designButton2.Location = new System.Drawing.Point(64, 3);
            this.designButton2.Name = "designButton2";
            this.designButton2.Size = new System.Drawing.Size(50, 50);
            this.designButton2.TabIndex = 12;
            //
            // designButton1
            //
            this.designButton1.BackgroundImage = global::VFS.Application.Properties.Resources.AddFile;
            this.designButton1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.designButton1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.designButton1.BorderThickness = 2;
            this.designButton1.Location = new System.Drawing.Point(8, 3);
            this.designButton1.Name = "designButton1";
            this.designButton1.Size = new System.Drawing.Size(50, 50);
            this.designButton1.TabIndex = 11;
            //
            // panel3
            //
            this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.panel3.BackColor = System.Drawing.SystemColors.Control;
            this.panel3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.panel3.BorderThickness = 2;
            this.panel3.Controls.Add(this.txtSearch);
            this.panel3.Location = new System.Drawing.Point(649, 83);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(165, 59);
            this.panel3.TabIndex = 10;
            //
            // txtSearch
            //
            this.txtSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.txtSearch.BackColor = System.Drawing.Color.White;
            this.txtSearch.Location = new System.Drawing.Point(8, 16);
            this.txtSearch.Name = "txtSearch";
            this.txtSearch.Size = new System.Drawing.Size(146, 23);
            this.txtSearch.TabIndex = 6;
            this.txtSearch.Text = "Suchen ...";
            this.txtSearch.TextChanged += new System.EventHandler(this.txtSearch_TextChanged);
            this.txtSearch.Enter += new System.EventHandler(this.txtSearch_Enter);
            this.txtSearch.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtSearch_KeyDown);
            this.txtSearch.Leave += new System.EventHandler(this.txtSearch_Leave);
            //
            // pnlPageControllerContainer
            //
            this.pnlPageControllerContainer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
            | System.Windows.Forms.AnchorStyles.Left)));
            this.pnlPageControllerContainer.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlPageControllerContainer.BorderThickness = 2;
            this.pnlPageControllerContainer.Location = new System.Drawing.Point(0, 140);
            this.pnlPageControllerContainer.Name = "pnlPageControllerContainer";
            this.pnlPageControllerContainer.Size = new System.Drawing.Size(151, 382);
            this.pnlPageControllerContainer.TabIndex = 12;
            //
            // pnlMainNavMount
            //
            this.pnlMainNavMount.BackColor = System.Drawing.SystemColors.Control;
            this.pnlMainNavMount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlMainNavMount.BorderThickness = 2;
            this.pnlMainNavMount.Controls.Add(this.pnlGoForward);
            this.pnlMainNavMount.Controls.Add(this.pnlGoBack);
            this.pnlMainNavMount.Location = new System.Drawing.Point(1, 83);
            this.pnlMainNavMount.Name = "pnlMainNavMount";
            this.pnlMainNavMount.Size = new System.Drawing.Size(150, 59);
            this.pnlMainNavMount.TabIndex = 9;
            //
            // pnlGoForward
            //
            this.pnlGoForward.BackgroundImage = global::VFS.Application.Properties.Resources.ForwardBig;
            this.pnlGoForward.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.pnlGoForward.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlGoForward.BorderThickness = 2;
            this.pnlGoForward.Location = new System.Drawing.Point(75, 14);
            this.pnlGoForward.Name = "pnlGoForward";
            this.pnlGoForward.Size = new System.Drawing.Size(32, 32);
            this.pnlGoForward.TabIndex = 10;
            //
            // pnlGoBack
            //
            this.pnlGoBack.BackgroundImage = global::VFS.Application.Properties.Resources.BackBig;
            this.pnlGoBack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.pnlGoBack.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlGoBack.BorderThickness = 2;
            this.pnlGoBack.Location = new System.Drawing.Point(37, 14);
            this.pnlGoBack.Name = "pnlGoBack";
            this.pnlGoBack.Size = new System.Drawing.Size(32, 32);
            this.pnlGoBack.TabIndex = 9;
            //
            // pnlMount
            //
            this.pnlMount.BackColor = System.Drawing.SystemColors.Control;
            this.pnlMount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlMount.BorderThickness = 2;
            this.pnlMount.Controls.Add(this.pnlUnmount);
            this.pnlMount.Controls.Add(this.pnlAddMount);
            this.pnlMount.Location = new System.Drawing.Point(1, 24);
            this.pnlMount.Name = "pnlMount";
            this.pnlMount.Size = new System.Drawing.Size(150, 61);
            this.pnlMount.TabIndex = 10;
            //
            // pnlUnmount
            //
            this.pnlUnmount.BackgroundImage = global::VFS.Application.Properties.Resources.Unmount;
            this.pnlUnmount.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.pnlUnmount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlUnmount.BorderThickness = 2;
            this.pnlUnmount.Location = new System.Drawing.Point(75, 12);
            this.pnlUnmount.Name = "pnlUnmount";
            this.pnlUnmount.Size = new System.Drawing.Size(32, 32);
            this.pnlUnmount.TabIndex = 10;
            //
            // pnlAddMount
            //
            this.pnlAddMount.BackgroundImage = global::VFS.Application.Properties.Resources.Hinzufügen;
            this.pnlAddMount.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.pnlAddMount.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlAddMount.BorderThickness = 2;
            this.pnlAddMount.Location = new System.Drawing.Point(37, 12);
            this.pnlAddMount.Name = "pnlAddMount";
            this.pnlAddMount.Size = new System.Drawing.Size(32, 32);
            this.pnlAddMount.TabIndex = 9;
            //
            // pnlBottomBar
            //
            this.pnlBottomBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.pnlBottomBar.BackColor = System.Drawing.Color.White;
            this.pnlBottomBar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(127)))), ((int)(((byte)(204)))), ((int)(((byte)(194)))), ((int)(((byte)(194)))));
            this.pnlBottomBar.BorderThickness = 2;
            this.pnlBottomBar.Controls.Add(this.chkHorizontal);
            this.pnlBottomBar.Controls.Add(this.lblSites);
            this.pnlBottomBar.Controls.Add(this.chkPreview);
            this.pnlBottomBar.Location = new System.Drawing.Point(149, 460);
            this.pnlBottomBar.Name = "pnlBottomBar";
            this.pnlBottomBar.Size = new System.Drawing.Size(665, 65);
            this.pnlBottomBar.TabIndex = 10;
            //
            // chkHorizontal
            //
            this.chkHorizontal.AutoSize = true;
            this.chkHorizontal.CheckAlign = System.Drawing.ContentAlignment.TopLeft;
            this.chkHorizontal.Checked = true;
            this.chkHorizontal.CheckState = System.Windows.Forms.CheckState.Checked;
            this.chkHorizontal.Location = new System.Drawing.Point(88, 3);
            this.chkHorizontal.Name = "chkHorizontal";
            this.chkHorizontal.Size = new System.Drawing.Size(150, 19);
            this.chkHorizontal.TabIndex = 9;
            this.chkHorizontal.Text = "Horizontale Darstellung";
            this.chkHorizontal.UseVisualStyleBackColor = true;
            this.chkHorizontal.CheckedChanged += new System.EventHandler(this.chkHorizontal_CheckedChanged);
            //
            // lblSites
            //
            this.lblSites.AutoSize = true;
            this.lblSites.Location = new System.Drawing.Point(589, 38);
            this.lblSites.Name = "lblSites";
            this.lblSites.Size = new System.Drawing.Size(73, 15);
            this.lblSites.TabIndex = 7;
            this.lblSites.Text = "Seite 1 von 1";
            //
            // chkPreview
            //
            this.chkPreview.AutoSize = true;
            this.chkPreview.Location = new System.Drawing.Point(8, 3);
            this.chkPreview.Name = "chkPreview";
            this.chkPreview.Size = new System.Drawing.Size(74, 19);
            this.chkPreview.TabIndex = 8;
            this.chkPreview.Text = "Vorschau";
            this.chkPreview.UseVisualStyleBackColor = true;
            this.chkPreview.CheckedChanged += new System.EventHandler(this.chkPreview_CheckedChanged);
            //
            // frmExplorer
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.White;
            this.ClientSize = new System.Drawing.Size(814, 522);
            this.Controls.Add(this.pnlPageContainer);
            this.Controls.Add(this.pnlBreadCrumbContainer);
            this.Controls.Add(this.pnlTopBarMain);
            this.Controls.Add(this.panel3);
            this.Controls.Add(this.pnlPageControllerContainer);
            this.Controls.Add(this.pnlMainNavMount);
            this.Controls.Add(this.pnlMount);
            this.Controls.Add(this.pnlBottomBar);
            this.Controls.Add(this.mainMenu);
            this.DoubleBuffered = true;
            this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.mainMenu;
            this.MinimumSize = new System.Drawing.Size(830, 561);
            this.Name = "frmExplorer";
            this.Text = "VFS";
            this.Load += new System.EventHandler(this.frmExplorer_Load);
            this.mainMenu.ResumeLayout(false);
            this.mainMenu.PerformLayout();
            this.pnlTopBarMain.ResumeLayout(false);
            this.panel3.ResumeLayout(false);
            this.panel3.PerformLayout();
            this.pnlMainNavMount.ResumeLayout(false);
            this.pnlMount.ResumeLayout(false);
            this.pnlBottomBar.ResumeLayout(false);
            this.pnlBottomBar.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.MenuStrip mainMenu;
        private System.Windows.Forms.ToolStripMenuItem mFileTSMI;
        private System.Windows.Forms.ToolStripMenuItem openFileTSMI;
        private System.Windows.Forms.ToolStripMenuItem createFileTSMI;
        private System.Windows.Forms.ToolStripMenuItem openSettingsTSMI;
        private System.Windows.Forms.ToolStripMenuItem openAboutTSMI;
        private System.Windows.Forms.ToolStripMenuItem closeTabTSMI;
        private System.Windows.Forms.ToolStripMenuItem endTSMI;
        private System.Windows.Forms.ToolStripMenuItem vFSToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem extractAllTSMI;
        private System.Windows.Forms.ToolStripMenuItem navigationTSMI;
        private System.Windows.Forms.ToolStripMenuItem goBackTSMI;
        private System.Windows.Forms.ToolStripMenuItem pageForwardTSMI;
        private System.Windows.Forms.ToolStripMenuItem pageBackTSMI;
        private System.Windows.Forms.ToolStripMenuItem filesTSMI;
        private System.Windows.Forms.ToolStripMenuItem directoryTSMI;
        private System.Windows.Forms.ToolStripMenuItem addDirTSMI;
        private System.Windows.Forms.ToolStripMenuItem dirRenameTSMI;
        private System.Windows.Forms.ToolStripMenuItem dirDeleteTSMI;
        private System.Windows.Forms.ToolStripMenuItem dirExtractTSMI;
        private System.Windows.Forms.ToolStripMenuItem fileTSMI;
        private System.Windows.Forms.ToolStripMenuItem fileAddTSMI;
        private System.Windows.Forms.ToolStripMenuItem fileRenameTSMI;
        private System.Windows.Forms.ToolStripMenuItem fileDeleteTSMI;
        private System.Windows.Forms.ToolStripMenuItem fileOpenTSMI;
        private System.Windows.Forms.ToolStripMenuItem fileExtractTSMI;
        private System.Windows.Forms.Label lblSites;
        private System.Windows.Forms.TextBox txtSearch;

        private Design.DesignPanel pnlTopBarMain;
        private Design.DesignPanel pnlMainNavMount;
        private Design.DesignPanel pnlMount;
        private Design.DesignButton pnlAddMount;
        private Design.DesignButton pnlUnmount;
        private Design.DesignButton pnlGoForward;
        private Design.DesignButton pnlGoBack;

        private Design.DesignPanel pnlBottomBar;
        private Design.DesignPanel pnlBreadCrumbContainer;
        private Design.DesignPanel pnlPageContainer;
        private Design.DesignPanel panel3;
        private Design.DesignPanel pnlPageControllerContainer;
        private System.Windows.Forms.CheckBox chkPreview;
        private Design.DesignButton designButton1;
        private Design.DesignButton designButton2;
        private Design.DesignButton designButton3;
        private Design.DesignButton designButton4;
        private Design.DesignButton designButton5;
        private Design.DesignButton designButton6;
        private Design.DesignButton designButton7;
        private Design.DesignButton designButton8;
        private Design.DesignButton designButton9;
        private Design.DesignButton designButton10;
        private System.Windows.Forms.CheckBox chkHorizontal;
    }
}


text:
package process

import (
	"extendedPlotter/data"
	"extendedPlotter/settings"
	"fmt"
	"image"
	"image/png"
	"os"
)

//create image
func CreateImg(s settings.Settings) error {
	//create data from file
	d := data.NewData()
	err := d.CreateFromFile(s.FilenameIn, s.Identifier, s.Separator, s.Accuracy)
	//check for any errors
	if err != nil {
		return err
	}
	//create rectangle with fitting dimensions (rectangle is used to build a rgbaImage)
	rect := image.Rectangle{image.Point{0, 0}, image.Point{s.Scaling * d.X, s.Scaling * d.Y}}
	//build image form rectangle
	img := image.NewRGBA(rect)

	//range over x and y coordinates of data.Img
	for x := range d.Img {
		for y := range d.Img[x] {
			for fx := 0; fx < s.Scaling; fx++ {
				for fy := 0; fy < s.Scaling; fy++ {
					//set the color of the current pixel according to its value in d.Img (if it doesn't exist, it is set to transparent)
					img.SetRGBA(s.Scaling*x+fx, s.Scaling*(d.Y-y-1)+fy, s.Colors[d.Img[x][y]])
				}
			}
		}
		fmt.Printf("\r%d%% finished", int(100*(x+1)/d.X))
	}
	fmt.Println()

	//finally save the image with the given name
	f, _ := os.Create(s.FilenameOut)
	defer f.Close()
	err = png.Encode(f, img)
	if err != nil {
		return err
	}
	return nil
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Intervention\Image\Gd\Commands;

use Intervention\Image\Commands\AbstractCommand;

class GammaCommand extends AbstractCommand
{
    /**
     * Applies gamma correction to a given image
     *
     * @param  \Intervention\Image\Image $image
     * @return boolean
     */
    public function execute($image)
    {
        $gamma = $this->argument(0)->type('numeric')->required()->value();

        return imagegammacorrect($image->getCore(), 1, $gamma);
    }
}


text:
package org.zstack.compute.host;

import org.springframework.beans.factory.annotation.Autowired;
import org.zstack.core.asyncbatch.While;
import org.zstack.core.cascade.*;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.CloudBusCallBack;
import org.zstack.core.cloudbus.CloudBusListCallBack;
import org.zstack.core.db.DatabaseFacade;
import org.zstack.core.db.Q;
import org.zstack.core.db.SimpleQuery;
import org.zstack.core.errorcode.ErrorFacade;
import org.zstack.header.cluster.ClusterInventory;
import org.zstack.header.cluster.ClusterVO;
import org.zstack.header.core.Completion;
import org.zstack.header.core.WhileDoneCompletion;
import org.zstack.header.errorcode.ErrorCodeList;
import org.zstack.header.host.*;
import org.zstack.header.message.MessageReply;
import org.zstack.header.volume.VolumeHostRefVO;
import org.zstack.header.volume.VolumeHostRefVO_;
import org.zstack.header.volume.VolumeVO;
import org.zstack.header.volume.VolumeVO_;
import org.zstack.utils.CollectionUtils;
import org.zstack.utils.Utils;
import org.zstack.utils.function.Function;
import org.zstack.utils.logging.CLogger;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

import static org.zstack.core.Platform.inerr;

/**
 */
public class HostCascadeExtension extends AbstractAsyncCascadeExtension {
    private static final CLogger logger = Utils.getLogger(HostCascadeExtension.class);

    @Autowired
    private DatabaseFacade dbf;
    @Autowired
    private HostExtensionPointEmitter extpEmitter;
    @Autowired
    private CloudBus bus;
    @Autowired
    private ErrorFacade errf;

    private static final String NAME = HostVO.class.getSimpleName();

    @Override
    public void asyncCascade(CascadeAction action, Completion completion) {
        if (action.isActionCode(CascadeConstant.DELETION_CHECK_CODE)) {
            handleDeletionCheck(action, completion);
        } else if (action.isActionCode(CascadeConstant.DELETION_DELETE_CODE, CascadeConstant.DELETION_FORCE_DELETE_CODE)) {
            handleDeletion(action, completion);
        } else if (action.isActionCode(CascadeConstant.DELETION_CLEANUP_CODE)) {
            handleDeletionCleanup(action, completion);
        } else {
            completion.success();
        }

    }

    private void handleDeletionCleanup(CascadeAction action, Completion completion) {
        try {
            final List<HostInventory> hinvs = hostFromAction(action);
            if (hinvs != null) {
                hinvs.forEach(h -> dbf.eoCleanup(HostVO.class, h.getUuid()));
            } else {
                dbf.eoCleanup(HostVO.class);
            }
        } catch (NullPointerException e) {
            logger.warn(e.getLocalizedMessage());
            dbf.eoCleanup(HostVO.class);
        } finally {
            completion.success();
        }
    }

    private void handleDeletion(final CascadeAction action, final Completion completion) {
        final List<HostInventory> hinvs = hostFromAction(action);
        if (hinvs == null) {
            completion.success();
            return;
        }

        detachDataVolume(hinvs);

        List<HostDeletionMsg> msgs = new ArrayList<HostDeletionMsg>();
        for (HostInventory hinv : hinvs) {
            HostDeletionMsg msg = new HostDeletionMsg();
            msg.setForceDelete(action.isActionCode(CascadeConstant.DELETION_FORCE_DELETE_CODE));
            msg.setHostUuid(hinv.getUuid());
            bus.makeTargetServiceIdByResourceUuid(msg, HostConstant.SERVICE_ID, hinv.getUuid());
            msgs.add(msg);
        }

        bus.send(msgs, 10, new CloudBusListCallBack(completion) {
            @Override
            public void run(List<MessageReply> replies) {
                if (!action.isActionCode(CascadeConstant.DELETION_FORCE_DELETE_CODE)) {
                    for (MessageReply r : replies) {
                        if (!r.isSuccess()) {
                            completion.fail(r.getError());
                            return;
                        }
                    }
                }

                List<String> uuids = new ArrayList<String>();
                for (MessageReply r : replies) {
                    HostInventory hinv = hinvs.get(replies.indexOf(r));
                    uuids.add(hinv.getUuid());
                    logger.debug(String.format("delete host[uuid:%s, name:%s]", hinv.getUuid(), hinv.getName()));
                }

                dbf.removeByPrimaryKeys(uuids, HostVO.class);
                completion.success();
            }
        });
    }

    private void handleDeletionCheck(CascadeAction action, Completion completion) {
        List<HostInventory> hinvs = hostFromAction(action);
        if (hinvs == null) {
            completion.success();
            return;
        }

        try {
            for (HostInventory hinv : hinvs) {
                extpEmitter.preDelete(hinv);
            }

            completion.success();
        } catch (HostException e) {
            completion.fail(inerr(e.getMessage()));
        }
    }

    @Override
    public List<String> getEdgeNames() {
        return Arrays.asList(ClusterVO.class.getSimpleName());
    }

    @Override
    public String getCascadeResourceName() {
        return NAME;
    }

    private List<HostInventory> hostFromAction(CascadeAction action) {
        List<HostInventory> ret = null;
        if (ClusterVO.class.getSimpleName().equals(action.getParentIssuer())) {
            List<ClusterInventory> clusters = action.getParentIssuerContext();
            List<String> cuuids = CollectionUtils.transformToList(clusters, new Function<String, ClusterInventory>() {
                @Override
                public String call(ClusterInventory arg) {
                    return arg.getUuid();
                }
            });

            SimpleQuery<HostVO> q = dbf.createQuery(HostVO.class);
            q.add(HostVO_.clusterUuid, SimpleQuery.Op.IN, cuuids);
            List<HostVO> hvos = q.list();
            if (!hvos.isEmpty()) {
                ret = HostInventory.valueOf(hvos);
            }
        } else if (NAME.equals(action.getParentIssuer())) {
            ret = action.getParentIssuerContext();
        }

        return ret;
    }

    @Override
    public CascadeAction createActionForChildResource(CascadeAction action) {
        if (CascadeConstant.DELETION_CODES.contains(action.getActionCode())) {
            List<HostInventory> invs = hostFromAction(action);
            if (invs != null) {
                return action.copy().setParentIssuer(NAME).setParentIssuerContext(invs);
            }
        }

        return null;
    }

    private void detachDataVolume(List<HostInventory> hinvs) {
        List<DetachDataVolumeFromHostMsg> dmsgs = hinvs.stream().map(hostInv -> {
            VolumeHostRefVO refVO = Q.New(VolumeHostRefVO.class).eq(VolumeHostRefVO_.hostUuid, hostInv.getUuid()).find();
            if (refVO == null) {
                return null;
            }
            String volumeInstallPath = Q.New(VolumeVO.class).select(VolumeVO_.installPath)
                    .eq(VolumeVO_.uuid, refVO.getVolumeUuid()).findValue();
            return new VolumeHostRef(refVO, volumeInstallPath);
        }).filter(Objects::nonNull).map(volumeHostRef -> {
            DetachDataVolumeFromHostMsg dmsg = new DetachDataVolumeFromHostMsg();
            dmsg.setHostUuid(volumeHostRef.refVO.getHostUuid());
            dmsg.setMountPath(volumeHostRef.refVO.getMountPath());
            dmsg.setDevice(volumeHostRef.refVO.getDevice());
            dmsg.setVolumeUuid(volumeHostRef.refVO.getVolumeUuid());
            dmsg.setVolumeInstallPath(volumeHostRef.volumeInstallPath);
            bus.makeTargetServiceIdByResourceUuid(dmsg, HostConstant.SERVICE_ID, volumeHostRef.refVO.getHostUuid());
            return dmsg;
        }).collect(Collectors.toList());
        if (dmsgs.isEmpty()) {
            return;
        }
        new While<>(dmsgs).each((umsg, com) -> bus.send(umsg, new CloudBusCallBack(com) {
            @Override
            public void run(MessageReply reply) {
                if (!reply.isSuccess()) {
                    logger.warn(String.format("failed to detach volume on host, %s", reply.getError()));
                }
                com.done();
            }
        })).run(new WhileDoneCompletion(null) {
            @Override
            public void done(ErrorCodeList errorCodeList) {
            }
        });
    }

    static class VolumeHostRef {
        private final VolumeHostRefVO refVO;
        private final String volumeInstallPath;

        VolumeHostRef(VolumeHostRefVO refVO, String volumeInstallPath) {
            this.refVO = refVO;
            this.volumeInstallPath = volumeInstallPath;
        }
    }
}


text:
class SubTask < ActiveRecord::Base
  belongs_to :task
end


text:
package com.giantbomb.api.model;

import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;

import org.apache.commons.lang3.Validate;
import org.apache.http.client.utils.URIBuilder;

public abstract class AbstractApiRequest
{
    private static final int MAX_LIMIT_VALUE = 100;

    private static final String RESPONSE_FIELD_LIST_KEY = "field_list";
    private static final String LIMIT_KEY = "limit";
    private static final String FORMAT_KEY = "format";
    private static final String API_KEY_KEY = "api_key";

    private List<Field> responseFieldList;
    private Integer limit;

    public AbstractApiRequest()
    {
        this.responseFieldList = new ArrayList<>();
        this.limit = null;
    }

    protected abstract String getQueryPath();

    public List<Field> getResponseFieldList()
    {
        return this.responseFieldList;
    }

    public void setResponseFieldList(List<Field> fieldList)
    {
        this.responseFieldList = fieldList;
    }

    public void addResponseField(Field field)
    {
        if(this.responseFieldList != null && !this.responseFieldList.contains(field))
        {
            this.responseFieldList.add(field);
        }
    }

    public Integer getLimit()
    {
        return this.limit;
    }

    public void setLimit(Integer limit)
    {
        if(limit != null)
        {
            Validate.inclusiveBetween(0, MAX_LIMIT_VALUE, limit, "Invalid limit.  Limit must be between 0 and " + MAX_LIMIT_VALUE);
        }
        this.limit = limit;
    }

    public URI getUri(final String baseUri, final String apiKey, final String format) throws URISyntaxException
    {
        Validate.notNull(apiKey, "The API Key cannot be null.");
        Validate.notNull(format, "The format cannot be null.");

        URIBuilder uriBuilder = new URIBuilder(baseUri);
        uriBuilder.setPath(getQueryPath());

        Map<String,String> queryParams = getQueryParameters();
        queryParams.put(FORMAT_KEY, format);
        queryParams.put(API_KEY_KEY, apiKey);
        for(Map.Entry<String,String> param : queryParams.entrySet())
        {
            uriBuilder.addParameter(param.getKey(), param.getValue());
        }

        return uriBuilder.build();
    }

    protected Map<String,String> getQueryParameters()
    {
        Map<String,String> params = new TreeMap<>();

        if(this.limit != null)
        {
            params.put(LIMIT_KEY, this.limit.toString());
        }

        if(this.responseFieldList != null && !this.responseFieldList.isEmpty())
        {
            StringBuilder fieldListString = new StringBuilder(128);
            fieldListString.append(this.responseFieldList.get(0));
            for(int i=1; i < this.responseFieldList.size(); i++)
            {
                fieldListString.append(",");
                fieldListString.append(this.responseFieldList.get(i).getApiValue());
            }
            params.put(RESPONSE_FIELD_LIST_KEY, fieldListString.toString());
        }

        return params;
    }
}


text:
/**
 * Created by Lijingjing on 16/11/20.
 */

'use strict';

angular.module('myApp.management')
    .controller('ConfigManagementCtrl', ConfigManagementCtrl)
    .factory('ConfigManagementService', ConfigManagementService);

function ConfigManagementService($http, BaseUrl) {

    var getLinesRequest = function () {
        return $http({
            method: 'GET',
            url: BaseUrl + '/CarPlatform/lines',
            crossDomain: true
        });
    };

    var getConfigRequest = function (lineNo) {
        return $http({
            method: 'GET',
            url: BaseUrl + '/CarPlatform/configurations/byline?line=' + lineNo,
            crossDomain: true
        });
    };

    var postConfigRequest = function (data) {
        return $http({
            method: 'POST',
            url: BaseUrl + '/CarPlatform/configurations',
            headers: {Authorization: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidHlwZSI6ImRlYWxlciIsImlhdCI6MTQ3NjE1MTc5MTg1M30.g-A_CRjPy3pkQJFfAVHPhRc1SH-Cu1DyR4OhhorP-eA'},
            crossDomain: true,
            data: data
        });
    };

    var deleteConfig = function (id) {
        return $http({
            method: 'DELETE',
            url: BaseUrl + '/CarPlatform/configurations/' + id,
            headers: {Authorization: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwidHlwZSI6ImRlYWxlciIsImlhdCI6MTQ3NjE1MTc5MTg1M30.g-A_CRjPy3pkQJFfAVHPhRc1SH-Cu1DyR4OhhorP-eA'},
        });
    };

    return {
        getLines: function () {
            return getLinesRequest();
        },

        getConfig: function (lineNo) {
            return getConfigRequest(lineNo);
        },

        postConfig: function (data) {
            return postConfigRequest(data);
        },

        deleteConfig: function (id) {
            return deleteConfig(id);
        }
    }

}

/** @ngInject */
function ConfigManagementCtrl($scope, $filter, editableOptions, editableThemes, ConfigManagementService, $document, $uibModal) {

    var parentElem = angular.element($document[0].querySelector('.data'));
    $scope.configs = [];

    $scope.openWnd = function (index, id) {
        $uibModal.open({
            animation: true,
            templateUrl: 'deleteInfo.html',
            size: 'sm',
            appendTo: parentElem,
            windowClass: 'center-modal',
            resolve: {
                configs: function () {
                    return $scope.configs;
                }
            },
            controller: function ($scope, configs, ConfigManagementService, $uibModalInstance) {
                $scope.deleteItem = function () {
                    configs.splice(index, 1);

                    ConfigManagementService.deleteConfig(id).success(function (data, status) {
                        $uibModalInstance.dismiss();
                    }).error(function (data, status) {
                        //alert(status);
                    });

                };

                $scope.cancelDelete = function () {
                    $uibModalInstance.dismiss('cancel');
                };
            }
        });
    };

    $scope.addnow = 0;

    $scope.opened = {};

    $scope.showAdd = false;

    $scope.open = function ($event, elementOpened) {
        $event.preventDefault();
        $event.stopPropagation();

        $scope.opened[elementOpened] = !$scope.opened[elementOpened];
    };

    ConfigManagementService.getLines().success(function (data, status) {
        $scope.lines = data.data;
        $scope.selectedLine = $scope.lines[0];
    });

    $scope.getConfigs = function (lineNo) {
        ConfigManagementService.getConfig(lineNo).success(function (data, status) {
            $scope.configs = data.data;
            if($scope.configs.length == 0)
            {
                alert("所查询的信息为空!");
            }
        });
    };

    $scope.editRow = function (rowform, lineId) {
        //$scope.clearConfigsColors();
        rowform.$show();
    };

    $scope.removeConfig = function (index, id) {
        $scope.configs.splice(index, 1);
        ConfigManagementService.deleteConfig(id).success(function (data, status) {
        }).error(function (data, status) {
            //alert(status);
        });

        //    之后要和后台交互
    };

    $scope.queryByLine = function () {
        $scope.getConfigs($scope.selectedLine.id);
        $scope.showAdd = true;
    };

    $scope.addConfig = function () {

        if ($scope.addnow === 1)
            return;

        if ($scope.configs == undefined) {
            alert("请选择一个车系进行查询后添加!");
            return;
        }
        $scope.addnow = 1;

        $scope.inserted = {
            id: null,
            name: ''
        };
        $scope.configs.unshift($scope.inserted);
    };

    $scope.checkConfigId = function (data) {
        if (data == null)
            return "车系不能为空!";
    };

    $scope.updateConfigs = function () {
        $scope.configs = [];
        $scope.showAdd = false;
    };

    $scope.saveConfig = function (data) {
        $scope.addnow = 0;
        var d = {
            data: {
                line: {
                    id: $scope.selectedLine.id
                },
                name: data["config.name"]
            }

        };
        ConfigManagementService.postConfig(JSON.stringify(d)).success(function (data, status) {
            $scope.getConfigs($scope.selectedLine.id);
        }).error(function (data, stauts) {
            alert('添加失败');
        });

    };

    $scope.cancelAdding = function (index) {
        $scope.addnow = 0;
        $scope.configs.splice(index, 1);
    };

    editableOptions.theme = 'bs3';
    editableThemes['bs3'].submitTpl = '<button type="submit" class="btn btn-primary btn-with-icon"></button>';
    editableThemes['bs3'].cancelTpl = '<button type="button" ng-click="$form.$cancel()" class="btn btn-default btn-with-icon"></button>';

}


text:
from pyparsing import Combine, LineEnd, Literal, Optional, Suppress, Word, alphanums

urn_word = Word(f"{alphanums}_$?=%.&,")
ge_metrics_urn = Combine(
    Suppress(Literal("urn:great_expectations:"))
    + Literal("metrics").setResultsName("urn_type")
    + Suppress(":")
    + urn_word.setResultsName("run_id")
    + Suppress(":")
    + urn_word.setResultsName("expectation_suite_name")
    + Suppress(":")
    + urn_word.setResultsName("metric_name")
    + Optional(Suppress(":") + urn_word.setResultsName("metric_kwargs"))
    + Suppress(LineEnd())
)
ge_validations_urn = Combine(
    Suppress(Literal("urn:great_expectations:"))
    + Literal("validations").setResultsName("urn_type")
    + Suppress(":")
    + urn_word.setResultsName("expectation_suite_name")
    + Suppress(":")
    + urn_word.setResultsName("metric_name")
    + Optional(Suppress(":") + urn_word.setResultsName("metric_kwargs"))
    + Suppress(LineEnd())
)
ge_stores_urn = Combine(
    Suppress(Literal("urn:great_expectations:"))
    + Literal("stores").setResultsName("urn_type")
    + Suppress(":")
    + urn_word.setResultsName("store_name")
    + Suppress(":")
    + urn_word.setResultsName("metric_name")
    + Optional(Suppress(":") + urn_word.setResultsName("metric_kwargs"))
    + Suppress(LineEnd())
)

ge_urn = ge_metrics_urn | ge_validations_urn | ge_stores_urn


text:
package ai.elimu.logic.converters;

import org.apache.commons.lang.StringUtils;
import ai.elimu.dao.AllophoneDao;
import ai.elimu.model.content.Allophone;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.converter.Converter;

public class StringToAllophoneConverter implements Converter<String, Allophone> {

    @Autowired
    private AllophoneDao allophoneDao;

    /**
     * Convert Allophone id to Allophone
     */
    public Allophone convert(String id) {
        if (StringUtils.isBlank(id)) {
            return null;
        } else {
            Long allophoneId = Long.parseLong(id);
            Allophone allophone = allophoneDao.read(allophoneId);
            return allophone;
        }
    }
}


text:
**Namespace:** [OfficeDevPnP.Core.UPAWebService](OfficeDevPnP.Core.UPAWebService.md)
**Assembly:** OfficeDevPnP.Core.dll
## Syntax
```C#
public Leader()
```
## See also
- [Leader](OfficeDevPnP.Core.UPAWebService.Leader.md)
- [OfficeDevPnP.Core.UPAWebService](OfficeDevPnP.Core.UPAWebService.md)


text:
set -o errexit
set -o nounset
set -o pipefail

export KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..

# Install tools we need, but only from vendor/...
cd ${KUBE_ROOT}
go install ./vendor/github.com/tallclair/mdtoc
if ! which mdtoc >/dev/null 2>&1; then
    echo "Can't find mdtoc - is your GOPATH 'bin' in your PATH?" >&2
    echo "  GOPATH: ${GOPATH}" >&2
    echo "  PATH:   ${PATH}" >&2
    exit 1
fi

# Update tables of contents if necessary.
grep --include='*.md' -rl docs/enhancements/* -e '<!-- toc -->' | xargs mdtoc --inplace


text:
package com.dtstack.jlogstash.format.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 *
 * @author sishu.yss
 *
 */
public class HostUtil {

	public static String getHostNameForLiunx() {
        try {
            return (InetAddress.getLocalHost()).getHostName();
        } catch (UnknownHostException uhe) {
            String host = uhe.getMessage(); // host = "hostname: hostname"
            if (host != null) {
                int colon = host.indexOf(':');
                if (colon > 0) {
                    return host.substring(0, colon);
                }
            }
            return "UnknownHost";
        }
    }

    public static String getHostName() {
        if (System.getenv("COMPUTERNAME") != null) {
            return System.getenv("COMPUTERNAME");
        } else {
            return getHostNameForLiunx();
        }
    }

}


text:
package sardata

import (
	"bytes"
	"encoding/binary"
	"io"
	"math"

	"github.com/luci/luci-go/common/errors"
	"github.com/luci/luci-go/common/iotools"
)

// BlockHeader is used as the prefix to a block.
type BlockHeader struct {
	// Length is the number of compressed bytes compose the block, after the end
	// of this header.
	Length uint64

	// Compression indicates the compression decoder scheme that should be used
	// for the block.
	Compression CompressionScheme
}

func (b BlockHeader) Write(w io.Writer) error {
	buf := make([]byte, binary.MaxVarintLen64+1)
	buf = buf[:binary.PutUvarint(buf, b.Length)]
	buf = append(buf, byte(b.Compression))
	_, err := w.Write(buf)
	return err
}

func (b *BlockHeader) Read(r io.Reader) (err error) {
	br := byteReader{Reader: r}

	if b.Length, err = binary.ReadUvarint(br); err != nil {
		return
	}
	c, err := br.ReadByte()
	if err != nil {
		return
	}
	b.Compression = CompressionScheme(c)
	return b.Compression.Valid()
}

// BlockWriter returns a writer that will compress the data given to it. When
// the returned writer is closed, a BlockHeader and the compressed data will be
// written to `w`.
//
// This means that the compressed data is unfortunately buffered in memory so
// that the length of the compressed data can be calculated to put into the
// header.
func BlockWriter(w io.Writer, scheme CompressionScheme, level int) (io.WriteCloser, error) {
	buf := bytes.Buffer{}
	compressWriter, err := scheme.Writer(&buf, level)
	if err != nil {
		return nil, err
	}
	countWriter := &iotools.CountingWriter{Writer: compressWriter}

	return writeCloseHook{
		countWriter,
		func() error {
			if err := compressWriter.Close(); err != nil {
				return err
			}
			h := BlockHeader{uint64(buf.Len()), scheme}
			if err := h.Write(w); err != nil {
				return err
			}
			_, err := w.Write(buf.Bytes())
			return err
		},
	}, nil
}

// BlockReader expects to read a compressed block from r. If it finds one and
// knows the compression scheme of the block, it will return a ReadCloser which
// can be used to read the decompressed data from the block.
func BlockReader(r io.Reader) (io.ReadCloser, error) {
	h := BlockHeader{}
	if err := h.Read(r); err != nil {
		return nil, err
	}
	if h.Length > math.MaxInt64 {
		return nil, errors.New("block length exceeds int64")
	}
	return h.Compression.Reader(io.LimitReader(r, int64(h.Length)))
}


text:
using System;
using SJP.Schematic.Core;

namespace SJP.Schematic.Migrations.Operations
{
    public class DropForeignKeyOperation : MigrationOperation
    {
        public DropForeignKeyOperation(IRelationalDatabaseTable table, IDatabaseRelationalKey foreignKey)
        {
            Table = table ?? throw new ArgumentNullException(nameof(table));
            ForeignKey = foreignKey ?? throw new ArgumentNullException(nameof(foreignKey));
        }

        public IRelationalDatabaseTable Table { get; }

        public IDatabaseRelationalKey ForeignKey { get; }
    }
}


text:
This library implements a [backplane](https://sites.google.com/site/backplanespec/) server and client on [NodeJS](http://nodejs.org/).

## Links

* [API](http://digitalbutter.github.com/node-backplane/api/)
* [Issues](https://github.com/digitalbutter/node-backplane/issues)
* [Project Tracker](https://www.pivotaltracker.com/projects/255711)

## Installation

    npm install backplane

## Usage

This library includes 3 major components. A client for periodically polling an existing backplane server, a backplane server that runs on a plain node installation and a backplane server designed to work with connect.

### Client:

The client is used to poll an existing backplane server for messages. Once created it will check the backplane server for new messages at a specified interval.

<script src="http://gist-it.appspot.com/github/digitalbutter/node-backplane/raw/master/Examples/backplanePoller/poller.js"></script>

### Connect Server:

This component implements a response handler for using with the [Connect](https://github.com/senchalabs/connect) middleware framework.

<script src="http://gist-it.appspot.com/github/digitalbutter/node-backplane/raw/master/Examples/backplaneServer/connect.js"></script>

### Plain Node Server:

This component allows you to create a backplane server on a vanilla node installation.

<script src="http://gist-it.appspot.com/github/digitalbutter/node-backplane/raw/master/Examples/backplaneServer/node.js"></script>

## License

This library is licensed under the MIT license. A copy of this can be found [here](https://github.com/digitalbutter/node-backplane/blob/master/LICENSE)


text:
Build and install [Nginx](https://nginx.org) on any UNIX system with the latest version of [OpenSSL](https://www.openssl.org) to support [ALPN](https://en.wikipedia.org/wiki/Application-Layer_Protocol_Negotiation), and therefore [HTTP/2](https://en.wikipedia.org/wiki/HTTP/2).

## Features
* Builds and installs Nginx with its dependencies in a single step.
* Uses the latest stable/LTS versions of the software.
* Can be used on any UNIX system with the corresponding dependencies.
* Is transparent and secure, by not forcing the system administrator to rely on packages built and distributed by unofficial sources.

## *To use, or not to use*
Below are shown the **GNU/Linux distributions** for which the official Nginx packages come with versions of OpenSSL **that support ALPN**. If your operating system and version are listed below, **do not use** this utility. In that case it is preferable to use the [official Nginx packages](https://nginx.org/en/linux_packages.html) through your distribution's package manager.

* CentOS/Oracle Linux/RHEL 7.4 and later.
* Debian 9 (Stretch) and later.
* Ubuntu 16.04 LTS (Xenial Xerus) and later.

## Dependencies
This utility requires `wget` and essential building tools like the `make` command and the GCC compiler. To install the necessary packages, go to the `dependencies` directory and run the script corresponding to your GNU/Linux distribution or family. For example:

```Shell
sh dependencies/debian-ubuntu.sh
```

The minimum OpenSSL version that supports ALPN is 1.0.2. You can edit the software versions that are going to be compiled by editing the `data/versions.sh` file. By default, the utility will build the latest stable version of Nginx with the latest supported stable/LTS versions of OpenSSL, PCRE and Zlib.

## Usage
Run the main script and Nginx will be automatically compiled and installed in your system.

```Shell
sh compile.sh
```

If you want to build the latest mainline Nginx version instead of the stable one, comment and uncomment the corresponding lines of the `data/versions.sh` file. Do the same if you want to use the latest stable OpenSSL version instead of the LTS (long term support) one. If you want to support TLS 1.3 (that is a development feature), follow the instructions of the `data/versions.sh` file.

## Modules

There are extra modules that you can optionally install by editing the file `data/modules.sh`.

### Pagespeed

[Pagespeed](https://github.com/pagespeed/ngx_pagespeed) is an open-source module created by Google to help make the web faster by rewriting web pages to reduce latency and bandwidth.

### Naxsi

[Naxsi](https://www.nbs-system.com/securite-informatique/outils-securite-informatique-open-source/naxsi/) is a web application firewall based on sets of rules. To enable it, edit the file `data/modules.sh` and set the `INSTALL_NAXSI` variable to `yes`.

Settings example for `nginx.conf`:

```Nginx
http {
    include /etc/nginx/naxsi/naxsi-core.rules;
}
```

Settings example for `conf.d/*.conf`:

```Nginx
location / {
    try_files $uri $uri/ /index.php?$query_string;
    SecRulesEnabled;
    CheckRule "$SQL >= 10" BLOCK;
    CheckRule "$RFI >= 10" BLOCK;
    CheckRule "$TRAVERSAL >= 5" BLOCK;
    CheckRule "$EVADE >= 5" BLOCK;
    CheckRule "$XSS >= 10" BLOCK;
    DeniedUrl "/naxsi.html";
    include   /etc/nginx/naxsi/naxsi-wordpress.rules;
}
```

For the `DeniedUrl` rule to work, create a file named `naxsi.html` in the root directory.

## License
This software is distributed under the MIT license. Please read `LICENSE` for information on the software availability and distribution.


text:
/* tslint:disable:no-unused-variable */

import { TestBed, async, inject } from '@angular/core/testing';
import { AuthService } from './auth.service';
import { HttpModule } from '@angular/http';
// Always try to use Stub - mock on service in Unit tests
const authServiceStub = {
  isLoggedIn: function (user) {
    return user;
  },

  login(name, password) {
    if (!name && !password) {
      return { error: 'error' };
    } else {
      return { username: 'nice' };
    }
  },

  logout() {
    return { text: 'You are now logged out' };
  },

  register(user) {
    if (user.email === 'email') {
      return null;
    } else {
      return { email: user.email };
    }
  }
};

describe('AuthService', () => {
  beforeEach(() => {
    TestBed.configureTestingModule({
      imports: [
        HttpModule
      ],
      providers: [
        // Here you provide what should be used as a service
        { provide: AuthService, useValue: authServiceStub }
      ]
    });
  });

  it('should exist', inject([AuthService], (service: AuthService) => {
    expect(service).toBeTruthy();
  }));

  it('should have function', inject([AuthService], (service: AuthService) => {
    expect(typeof service.isLoggedIn).toEqual('function');
    expect(typeof service.login).toEqual('function');
    expect(typeof service.logout).toEqual('function');
    expect(typeof service.register).toEqual('function');
  }));

  it('should have proper isLoggedIn', inject([AuthService], (service: AuthService) => {
    expect(service.isLoggedIn({ username: 'mail' })).toEqual({ username: 'mail' });
  }));

  it('should have proper login', inject([AuthService], (service: AuthService) => {
    expect(service.login()).toEqual({ error: 'error' });
    expect(service.login('alex', 'pass')).toEqual({ username: 'nice' });
  }));

  it('should have proper logout', inject([AuthService], (service: AuthService) => {
    expect(service.logout()).toEqual({ text: 'You are now logged out' });
  }));

  it('should have proper register', inject([AuthService], (service: AuthService) => {
    expect(service.register({ email: 'email' })).toEqual(null);
    expect(service.register({ email: 'email2' })).toEqual({ email: 'email2' });
  }));
});


text:
package com.busqueumlugar.dao.impl;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.ProjectionList;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.busqueumlugar.dao.BairrosDao;
import com.busqueumlugar.dao.ImovelDao;
import com.busqueumlugar.form.RelatorioForm;
import com.busqueumlugar.model.Bairros;
import com.busqueumlugar.model.Imovel;
import com.busqueumlugar.util.DateUtil;
import com.mysql.jdbc.StringUtils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Repository
public class BairrosDaoImpl extends GenericDAOImpl<Bairros, Long>  implements BairrosDao {

	private static final Logger log = LoggerFactory.getLogger(BairrosDaoImpl.class);

	public BairrosDaoImpl() {
		super(Bairros.class);
	}

	public Bairros findBairrosById(int id) {
		return (Bairros)session().createCriteria(Bairros.class)
				.add(Restrictions.eq("id", id)).uniqueResult();
	}

	@Override
	public List<Bairros> findBairrosPorIdCidade(int idCidade) {
		return (List<Bairros>)session().createCriteria(Bairros.class)
				.add(Restrictions.eq("cidade", String.valueOf(idCidade))).list();
	}

	@Override
	public List relatorioSobreBairros(RelatorioForm form) {

		Criteria crit = session().createCriteria(Imovel.class);
		if ( form.getIdEstado() > 0 ) {
			 crit.add(Restrictions.eq("idEstado", form.getIdEstado()));

			 if ( form.getIdCidade() > 0 )
				 crit.add(Restrictions.eq("idCidade", form.getIdCidade()));
		 }

		 if ( ! StringUtils.isNullOrEmpty(form.getAcao()))
	        crit.add(Restrictions.eq("acao", form.getAcao()));

	     if ( ! StringUtils.isNullOrEmpty(form.getTipoImovel()))
	        crit.add(Restrictions.eq("tipoImovel", form.getTipoImovel()));

	    if ( ! StringUtils.isNullOrEmpty(form.getPerfilImovel()) && ! form.getPerfilImovel().equals("todos") )
	        crit.add(Restrictions.eq("perfilImovel", form.getPerfilImovel()));

	    ProjectionList projList = Projections.projectionList();
	    projList.add(Projections.groupProperty("idBairro"));
		projList.add(Projections.sum("valorImovel").as("valor"));
		crit.setProjection(projList);
		if (form.getOpcaoRelatorioSobreLocalidade().equals("B"))
			crit.addOrder(Order.desc("valor"));
	    else if (form.getOpcaoRelatorioSobreLocalidade().equals("C"))
	    	crit.addOrder(Order.desc("valor"));

		crit.add(Restrictions.ge("dataCadastro", DateUtil.formataDataBanco(form.getDataInicio())));
		crit.add(Restrictions.le("dataCadastro", DateUtil.formataDataBanco(form.getDataFim())));
		crit.setMaxResults(form.getQuantMaxRegistrosResultado());
		return crit.list();
	}

}


text:
wget -c https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.17.zip
unzip go_appengine_sdk_linux_amd64-1.9.17.zip

wget -c http://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip
unzip nacl_sdk.zip


text:
// typeinfo/SimpleDynamicProxy.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
import java.lang.reflect.*;

class DynamicProxyHandler implements InvocationHandler {
  private Object proxied;
  DynamicProxyHandler(Object proxied) {
    this.proxied = proxied;
  }
  @Override
  public Object
  invoke(Object proxy, Method method, Object[] args)
  throws Throwable {
    System.out.println(
      "**** proxy: " + proxy.getClass() +
      ", method: " + method + ", args: " + args);
    if(args != null)
      for(Object arg : args)
        System.out.println("  " + arg);
    return method.invoke(proxied, args);
  }
}

class SimpleDynamicProxy {
  public static void consumer(Interface iface) {
    iface.doSomething();
    iface.somethingElse("bonobo");
  }
  public static void main(String[] args) {
    RealObject real = new RealObject();
    consumer(real);
    // Insert a proxy and call again:
    Interface proxy = (Interface)Proxy.newProxyInstance(
      Interface.class.getClassLoader(),
      new Class[]{ Interface.class },
      new DynamicProxyHandler(real));
    consumer(proxy);
  }
}
/* Output:
doSomething
somethingElse bonobo
**** proxy: class $Proxy0, method: public abstract void
Interface.doSomething(), args: null
doSomething
**** proxy: class $Proxy0, method: public abstract void
Interface.somethingElse(java.lang.String), args:
[Ljava.lang.Object;@6bc7c054
  bonobo
somethingElse bonobo
*/


text:
#ifndef IVW_TRANSFERFUNCTIONCONTROLPOINTCONNECTION_H
#define IVW_TRANSFERFUNCTIONCONTROLPOINTCONNECTION_H

#include <modules/qtwidgets/qtwidgetsmoduledefine.h>
#include <modules/qtwidgets/properties/propertywidgetqt.h>
#include <modules/qtwidgets/tf/tfeditorprimitive.h>

#include <warn/push>
#include <warn/ignore/all>
#include <QGraphicsItem>
#include <warn/pop>

namespace inviwo {

class TFEditorControlPoint;

class IVW_MODULE_QTWIDGETS_API TFControlPointConnection : public QGraphicsItem {
public:
    TFControlPointConnection();
    virtual ~TFControlPointConnection();

    void updateShape();

    // override for qgraphicsitem_cast (refer qt documentation)
    enum { Type = UserType + TFEditorPrimitive::TFControlPointConnectionType };
    int type() const { return Type; }

    friend IVW_MODULE_QTWIDGETS_API bool operator==(const TFControlPointConnection& lhs,
                                                    const TFControlPointConnection& rhs);

    // Compare points by their "x" value
    friend IVW_MODULE_QTWIDGETS_API bool operator<(const TFControlPointConnection& lhs,
                                                   const TFControlPointConnection& rhs);

    TFEditorControlPoint* left_;   // Non-owning reference
    TFEditorControlPoint* right_;  // Non-owning reference

    QPointF getStart() const;
    QPointF getStop() const;

protected:
    // Overload
    void paint(QPainter* p, const QStyleOptionGraphicsItem* options, QWidget* widget);
    QRectF boundingRect() const;
    QPainterPath shape() const;

private:
    QPainterPath path_;
    QPainterPath shape_;
    QRectF rect_;
};

IVW_MODULE_QTWIDGETS_API bool operator==(const TFControlPointConnection& lhs,
                                         const TFControlPointConnection& rhs);
IVW_MODULE_QTWIDGETS_API bool operator!=(const TFControlPointConnection& lhs,
                                         const TFControlPointConnection& rhs);
IVW_MODULE_QTWIDGETS_API bool operator<(const TFControlPointConnection& lhs,
                                        const TFControlPointConnection& rhs);
IVW_MODULE_QTWIDGETS_API bool operator>(const TFControlPointConnection& lhs,
                                        const TFControlPointConnection& rhs);
IVW_MODULE_QTWIDGETS_API bool operator<=(const TFControlPointConnection& lhs,
                                         const TFControlPointConnection& rhs);
IVW_MODULE_QTWIDGETS_API bool operator>=(const TFControlPointConnection& lhs,
                                         const TFControlPointConnection& rhs);

}  // namespace inviwo

#endif  // IVW_TRANSFERFUNCTIONCONTROLPOINTCONNECTION_H


text:
from __future__ import print_function

import cv2
import numpy as np

import backgnd_sub
import colorSampleLocation
import colorSampler as cs
import angleDerivation as ad
from utils import image_utils

class Lympht:
    def __init__(self):
        self.capture = cv2.VideoCapture(0)
        self.main_window_name = "lympht"
        self.font = cv2.FONT_HERSHEY_SIMPLEX
        self.bg_sub = backgnd_sub.BackgroundSubtractor()
        self.cs = None
        self.csl = colorSampleLocation.ColorSampleLocation(self.capture.read()[1])
        self.cs_locations = self.csl.get_color_sample_locations()
        self.max_angle = 0

    def run(self):
        while True:
            _, frame = self.capture.read()
            frame = image_utils.mirror_image(frame)
            draw_frame = frame.copy()
            bg = frame.copy()
            frame_height, frame_width, frame_channels = frame.shape
            frame_hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

            # Listen for ESC or ENTER key
            c = cv2.waitKey(7) % 0x100
            if c == 27 or c == 10:
                break
            # On 'b' keypress, we save the background
            elif c == ord('b'):
                self.bg_sub.set_frame_as_background(bg)
            elif c == ord('c'):
                self.cs = cs.ColorSampler(frame_hsv, self.cs_locations)
                self.cs.addColorRangesFromFrame()
            elif c == ord('a'):
                self.cs.addColorRangesFromFrame()
            elif c == ord('r'):
                self.max_angle = 0

            # If background is set, we can differentiate
            # foreground and background
            if self.bg_sub.background_set is True:
                bg_thresh, contours = self.bg_sub.get_diff(bg)
                contour_count = len(contours)
                cv2.imshow('thresh', bg_thresh)

            # If skin color is sampled, we can isolate the sampled colors in the image
            if self.cs is not None:
                thresh = self.cs.get_color_mask(frame_hsv)
                cv2.imshow('color_thresh', thresh)
            else:
                self.csl.draw_sample_locations(draw_frame)

            if self.bg_sub.background_set and self.cs is not None:
                combined = cv2.bitwise_and(bg_thresh, thresh)

                _, contours, _ = cv2.findContours(combined.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
                contour_count = len(contours)

                # find largest contour
                try:
                    largest_contour_index, largest_contour = max(enumerate(contours), key=lambda x: len(x[1]))
                except ValueError:
                    largest_contour_index, largest_contour = 0, [[]]

                if contour_count > 0:
                    hull = cv2.convexHull(largest_contour)
                    # count, _, _ = hull.shape
                    hull.ravel()
                    # hull.shape = count, 2
                    cv2.polylines(frame, np.int32([hull]), True, (0, 255, 0), 3)

                    area = cv2.contourArea(largest_contour)
                        #cv2.putText(draw_frame, "largest contour area " + str(area) + "px",
                        #(0, frame_height / 6), self.font, 0.5, (50, 50, 255), 2)

                    hull_area = cv2.contourArea(hull)
                    #cv2.putText(draw_frame, "hull area " + str(hull_area) + "px",
                     #           (0, frame_height / 8), self.font, 3, (50, 50, 255), 7)

                    rows, cols = thresh.shape[:2]
                    [vx, vy, x, y] = cv2.fitLine(largest_contour, cv2.DIST_L2, 0, 0.01, 0.01)
                    lefty = int((-x * vy / vx) + y)
                    righty = int(((cols - x) * vy / vx) + y)

                    verticalLine = [(cols / 2, 0), (cols / 2, rows - 1)]
                    contourLine = [(cols - 1, righty), (0, lefty)]

                    verticalVector = (0, 1)
                    contourVector = (vx, vy)
                    angle = ad.AngleDerivation.findAngle(verticalVector, contourVector)

                    if angle > self.max_angle:
                        self.max_angle = angle

                    cv2.line(draw_frame, contourLine[0], contourLine[1], (0, 255, 0), 4)
                    cv2.line(draw_frame, verticalLine[0], verticalLine[1], (0, 255, 0), 4)
                    cv2.putText(draw_frame, "max angle " + str(self.max_angle)[0:8] + " degs",
                                (0, frame_height - (frame_height / 8)), self.font, 3, (50, 50, 255), 7)
                    cv2.putText(draw_frame, "angle " + str(angle)[0:8] + " degs",
                                (0, frame_height - (frame_height / 4)), self.font, 3, (50, 50, 255), 7)

                cv2.drawContours(draw_frame, contours, largest_contour_index, (255, 255, 0), 3)

                cv2.imshow('combined', combined)

            cv2.imshow(self.main_window_name, draw_frame)

        cv2.destroyAllWindows()

if __name__ == "__main__":
    lympht = Lympht()
    lympht.run()


text:
package com.siyeh.ig.controlflow;

import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.*;
import com.intellij.util.IncorrectOperationException;
import com.siyeh.InspectionGadgetsBundle;
import com.siyeh.ig.BaseInspection;
import com.siyeh.ig.BaseInspectionVisitor;
import com.siyeh.ig.InspectionGadgetsFix;
import com.siyeh.ig.psiutils.BoolUtils;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class LoopWithImplicitTerminationConditionInspection
  extends BaseInspection {

  @Override
  @Nls
  @NotNull
  public String getDisplayName() {
    return InspectionGadgetsBundle.message(
      "loop.with.implicit.termination.condition.display.name");
  }

  @Override
  @NotNull
  protected String buildErrorString(Object... infos) {
    if (Boolean.TRUE.equals(infos[0])) {
      return InspectionGadgetsBundle.message(
        "loop.with.implicit.termination.condition.dowhile.problem.descriptor");
    }
    return InspectionGadgetsBundle.message(
      "loop.with.implicit.termination.condition.problem.descriptor");
  }

  @Override
  @Nullable
  protected InspectionGadgetsFix buildFix(Object... infos) {
    return new LoopWithImplicitTerminationConditionFix();
  }

  private static class LoopWithImplicitTerminationConditionFix
    extends InspectionGadgetsFix {
    @Override
    @NotNull
    public String getFamilyName() {
      return getName();
    }

    @Override
    @NotNull
    public String getName() {
      return InspectionGadgetsBundle.message(
        "loop.with.implicit.termination.condition.quickfix");
    }

    @Override
    protected void doFix(Project project, ProblemDescriptor descriptor)
      throws IncorrectOperationException {
      final PsiElement element = descriptor.getPsiElement();
      final PsiElement parent = element.getParent();
      final PsiExpression loopCondition;
      final PsiStatement body;
      final boolean firstStatement;
      if (parent instanceof PsiWhileStatement) {
        final PsiWhileStatement whileStatement =
          (PsiWhileStatement)parent;
        loopCondition = whileStatement.getCondition();
        body = whileStatement.getBody();
        firstStatement = true;
      }
      else if (parent instanceof PsiDoWhileStatement) {
        final PsiDoWhileStatement doWhileStatement =
          (PsiDoWhileStatement)parent;
        loopCondition = doWhileStatement.getCondition();
        body = doWhileStatement.getBody();
        firstStatement = false;
      }
      else if (parent instanceof PsiForStatement) {
        final PsiForStatement forStatement = (PsiForStatement)parent;
        loopCondition = forStatement.getCondition();
        body = forStatement.getBody();
        firstStatement = true;
      }
      else {
        return;
      }
      if (loopCondition == null) {
        return;
      }
      final PsiStatement statement;
      if (body instanceof PsiBlockStatement) {
        final PsiBlockStatement blockStatement = (PsiBlockStatement)body;
        final PsiCodeBlock codeBlock = blockStatement.getCodeBlock();
        final PsiStatement[] statements = codeBlock.getStatements();
        if (statements.length == 0) {
          return;
        }
        if (firstStatement) {
          statement = statements[0];
        }
        else {
          statement = statements[statements.length - 1];
        }
      }
      else {
        statement = body;
      }
      if (!(statement instanceof PsiIfStatement)) {
        return;
      }
      final PsiIfStatement ifStatement = (PsiIfStatement)statement;
      final PsiExpression ifCondition = ifStatement.getCondition();
      if (ifCondition == null) {
        return;
      }
      final PsiStatement thenBranch = ifStatement.getThenBranch();
      final PsiStatement elseBranch = ifStatement.getElseBranch();
      if (containsUnlabeledBreakStatement(thenBranch)) {
        final String negatedExpressionText =
          BoolUtils.getNegatedExpressionText(ifCondition);
        replaceExpression(loopCondition, negatedExpressionText);
        replaceStatement(ifStatement, elseBranch);
      }
      else if (containsUnlabeledBreakStatement(elseBranch)) {
        loopCondition.replace(ifCondition);
        if (thenBranch == null) {
          ifStatement.delete();
        }
        else {
          replaceStatement(ifStatement, thenBranch);
        }
      }
    }

    private static void replaceStatement(
      @NotNull PsiStatement replacedStatement,
      @Nullable PsiStatement replacingStatement)
      throws IncorrectOperationException {
      if (replacingStatement == null) {
        replacedStatement.delete();
        return;
      }
      if (!(replacingStatement instanceof PsiBlockStatement)) {
        replacedStatement.replace(replacingStatement);
        return;
      }
      final PsiBlockStatement blockStatement =
        (PsiBlockStatement)replacingStatement;
      final PsiCodeBlock codeBlock =
        blockStatement.getCodeBlock();
      final PsiElement[] children = codeBlock.getChildren();
      if (children.length > 2) {
        final PsiElement receiver = replacedStatement.getParent();
        for (int i = children.length - 2; i > 0; i--) {
          final PsiElement child = children[i];
          if (child instanceof PsiWhiteSpace) {
            continue;
          }
          receiver.addAfter(child, replacedStatement);
        }
        replacedStatement.delete();
      }
    }
  }

  @Override
  public BaseInspectionVisitor buildVisitor() {
    return new LoopWithImplicitTerminationConditionVisitor();
  }

  private static class LoopWithImplicitTerminationConditionVisitor
    extends BaseInspectionVisitor {

    @Override
    public void visitWhileStatement(PsiWhileStatement statement) {
      super.visitWhileStatement(statement);
      final PsiExpression condition = statement.getCondition();
      if (!BoolUtils.isTrue(condition)) {
        return;
      }
      if (isLoopWithImplicitTerminationCondition(statement, true)) {
        return;
      }
      registerStatementError(statement, Boolean.FALSE);
    }

    @Override
    public void visitDoWhileStatement(PsiDoWhileStatement statement) {
      super.visitDoWhileStatement(statement);
      final PsiExpression condition = statement.getCondition();
      if (!BoolUtils.isTrue(condition)) {
        return;
      }
      if (isLoopWithImplicitTerminationCondition(statement, false)) {
        return;
      }
      registerStatementError(statement, Boolean.TRUE);
    }

    @Override
    public void visitForStatement(PsiForStatement statement) {
      super.visitForStatement(statement);
      final PsiExpression condition = statement.getCondition();
      if (!BoolUtils.isTrue(condition)) {
        return;
      }
      if (isLoopWithImplicitTerminationCondition(statement, true)) {
        return;
      }
      registerStatementError(statement, Boolean.FALSE);
    }

    private static boolean isLoopWithImplicitTerminationCondition(
      PsiLoopStatement statement, boolean firstStatement) {
      final PsiStatement body = statement.getBody();
      final PsiStatement bodyStatement;
      if (body instanceof PsiBlockStatement) {
        final PsiBlockStatement blockStatement =
          (PsiBlockStatement)body;
        final PsiCodeBlock codeBlock = blockStatement.getCodeBlock();
        final PsiStatement[] statements = codeBlock.getStatements();
        if (statements.length == 0) {
          return true;
        }
        if (firstStatement) {
          bodyStatement = statements[0];
        }
        else {
          bodyStatement = statements[statements.length - 1];
        }
      }
      else {
        bodyStatement = body;
      }
      return !isImplicitTerminationCondition(bodyStatement);
    }

    private static boolean isImplicitTerminationCondition(
      @Nullable PsiStatement statement) {
      if (!(statement instanceof PsiIfStatement)) {
        return false;
      }
      final PsiIfStatement ifStatement = (PsiIfStatement)statement;
      final PsiStatement thenBranch = ifStatement.getThenBranch();
      if (containsUnlabeledBreakStatement(thenBranch)) {
        return true;
      }
      final PsiStatement elseBranch = ifStatement.getElseBranch();
      return containsUnlabeledBreakStatement(elseBranch);
    }
  }

  static boolean containsUnlabeledBreakStatement(
    @Nullable PsiStatement statement) {
    if (!(statement instanceof PsiBlockStatement)) {
      return isUnlabeledBreakStatement(statement);
    }
    final PsiBlockStatement blockStatement =
      (PsiBlockStatement)statement;
    final PsiCodeBlock codeBlock =
      blockStatement.getCodeBlock();
    final PsiStatement[] statements = codeBlock.getStatements();
    if (statements.length != 1) {
      return false;
    }
    final PsiStatement firstStatement = statements[0];
    return isUnlabeledBreakStatement(firstStatement);
  }

  private static boolean isUnlabeledBreakStatement(
    @Nullable PsiStatement statement) {
    if (!(statement instanceof PsiBreakStatement)) {
      return false;
    }
    final PsiBreakStatement breakStatement =
      (PsiBreakStatement)statement;
    final PsiIdentifier identifier =
      breakStatement.getLabelIdentifier();
    return identifier == null;
  }
}