text:
namespace AH.ModuleController.UI.HR.Forms
{
    partial class frmAssignOrganogram
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

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

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
            this.cboDepartmentGroup = new AtiqsControlLibrary.SmartComboBox();
            this.smartLabel22 = new AtiqsControlLibrary.SmartLabel();
            this.cboDepartmentType = new AtiqsControlLibrary.SmartComboBox();
            this.smartLabel21 = new AtiqsControlLibrary.SmartLabel();
            this.btnShow = new System.Windows.Forms.Button();
            this.dgvDepartment = new AtiqsControlLibrary.SmartDataGridView();
            this.dgvUnit = new AtiqsControlLibrary.SmartDataGridView();
            this.dgvAssociatedGrid = new AtiqsControlLibrary.SmartDataGridView();
            this.panel2 = new System.Windows.Forms.Panel();
            this.btnAdd = new System.Windows.Forms.Button();
            this.btnRefreshDeptGrp = new System.Windows.Forms.Button();
            this.btnAddDeptGrp = new System.Windows.Forms.Button();
            this.txtSearchDept = new AtiqsControlLibrary.SmartTextBox();
            this.smartLabel1 = new AtiqsControlLibrary.SmartLabel();
            this.btnRefreshDept = new System.Windows.Forms.Button();
            this.btnAddDept = new System.Windows.Forms.Button();
            this.txtSearchUnit = new AtiqsControlLibrary.SmartTextBox();
            this.btnRefreshUnit = new System.Windows.Forms.Button();
            this.btnAddUnit = new System.Windows.Forms.Button();
            this.smartLabel2 = new AtiqsControlLibrary.SmartLabel();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.btnShowUnit = new System.Windows.Forms.Button();
            this.cboDepartment = new AtiqsControlLibrary.SmartComboBox();
            this.smartLabel3 = new AtiqsControlLibrary.SmartLabel();
            this.pnlMain.SuspendLayout();
            this.pnlTop.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvDepartment)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvUnit)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvAssociatedGrid)).BeginInit();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            //
            // frmLabel
            //
            this.frmLabel.Location = new System.Drawing.Point(453, 9);
            this.frmLabel.Size = new System.Drawing.Size(296, 33);
            this.frmLabel.Text = "Department Unit Assign";
            //
            // pnlMain
            //
            this.pnlMain.BackColor = System.Drawing.Color.Lavender;
            this.pnlMain.Controls.Add(this.smartLabel3);
            this.pnlMain.Controls.Add(this.cboDepartment);
            this.pnlMain.Controls.Add(this.btnShowUnit);
            this.pnlMain.Controls.Add(this.button1);
            this.pnlMain.Controls.Add(this.button2);
            this.pnlMain.Controls.Add(this.smartLabel2);
            this.pnlMain.Controls.Add(this.btnRefreshUnit);
            this.pnlMain.Controls.Add(this.btnAddUnit);
            this.pnlMain.Controls.Add(this.txtSearchUnit);
            this.pnlMain.Controls.Add(this.btnRefreshDept);
            this.pnlMain.Controls.Add(this.btnAddDept);
            this.pnlMain.Controls.Add(this.smartLabel1);
            this.pnlMain.Controls.Add(this.txtSearchDept);
            this.pnlMain.Controls.Add(this.btnRefreshDeptGrp);
            this.pnlMain.Controls.Add(this.btnAddDeptGrp);
            this.pnlMain.Controls.Add(this.panel2);
            this.pnlMain.Controls.Add(this.dgvAssociatedGrid);
            this.pnlMain.Controls.Add(this.dgvUnit);
            this.pnlMain.Controls.Add(this.dgvDepartment);
            this.pnlMain.Controls.Add(this.btnShow);
            this.pnlMain.Controls.Add(this.cboDepartmentGroup);
            this.pnlMain.Controls.Add(this.smartLabel22);
            this.pnlMain.Controls.Add(this.cboDepartmentType);
            this.pnlMain.Controls.Add(this.smartLabel21);
            this.pnlMain.Size = new System.Drawing.Size(1219, 877);
            //
            // pnlTop
            //
            this.pnlTop.Size = new System.Drawing.Size(1219, 58);
            //
            // btnEdit
            //
            this.btnEdit.Location = new System.Drawing.Point(30, 796);
            this.btnEdit.Visible = false;
            //
            // btnSave
            //
            this.btnSave.Location = new System.Drawing.Point(992, 796);
            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
            //
            // btnDelete
            //
            this.btnDelete.Location = new System.Drawing.Point(143, 796);
            this.btnDelete.Visible = false;
            //
            // btnNew
            //
            this.btnNew.Location = new System.Drawing.Point(879, 796);
            //
            // btnClose
            //
            this.btnClose.Location = new System.Drawing.Point(1106, 796);
            //
            // btnPrint
            //
            this.btnPrint.Location = new System.Drawing.Point(254, 796);
            this.btnPrint.Visible = false;
            //
            // groupBox1
            //
            this.groupBox1.Location = new System.Drawing.Point(0, 835);
            this.groupBox1.Size = new System.Drawing.Size(1219, 25);
            //
            // cboDepartmentGroup
            //
            this.cboDepartmentGroup.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDepartmentGroup.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboDepartmentGroup.ForeColor = System.Drawing.Color.Blue;
            this.cboDepartmentGroup.FormattingEnabled = true;
            this.cboDepartmentGroup.Location = new System.Drawing.Point(344, 174);
            this.cboDepartmentGroup.Name = "cboDepartmentGroup";
            this.cboDepartmentGroup.Size = new System.Drawing.Size(286, 26);
            this.cboDepartmentGroup.TabIndex = 1;
            //
            // smartLabel22
            //
            this.smartLabel22.AutoSize = true;
            this.smartLabel22.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.smartLabel22.Location = new System.Drawing.Point(343, 156);
            this.smartLabel22.Name = "smartLabel22";
            this.smartLabel22.Size = new System.Drawing.Size(118, 13);
            this.smartLabel22.TabIndex = 120;
            this.smartLabel22.Text = "Department Group :";
            //
            // cboDepartmentType
            //
            this.cboDepartmentType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDepartmentType.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboDepartmentType.ForeColor = System.Drawing.Color.Blue;
            this.cboDepartmentType.FormattingEnabled = true;
            this.cboDepartmentType.Location = new System.Drawing.Point(8, 174);
            this.cboDepartmentType.Name = "cboDepartmentType";
            this.cboDepartmentType.Size = new System.Drawing.Size(256, 26);
            this.cboDepartmentType.TabIndex = 0;
            this.cboDepartmentType.SelectedIndexChanged += new System.EventHandler(this.cboDepartmentType_SelectedIndexChanged);
            //
            // smartLabel21
            //
            this.smartLabel21.AutoSize = true;
            this.smartLabel21.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.smartLabel21.Location = new System.Drawing.Point(8, 156);
            this.smartLabel21.Name = "smartLabel21";
            this.smartLabel21.Size = new System.Drawing.Size(112, 13);
            this.smartLabel21.TabIndex = 119;
            this.smartLabel21.Text = "Department Type :";
            //
            // btnShow
            //
            this.btnShow.BackColor = System.Drawing.Color.SeaGreen;
            this.btnShow.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnShow.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnShow.ForeColor = System.Drawing.Color.White;
            this.btnShow.Location = new System.Drawing.Point(707, 174);
            this.btnShow.Name = "btnShow";
            this.btnShow.Size = new System.Drawing.Size(87, 27);
            this.btnShow.TabIndex = 200;
            this.btnShow.Text = "Show All";
            this.btnShow.UseVisualStyleBackColor = false;
            this.btnShow.Click += new System.EventHandler(this.btnShow_Click);
            //
            // dgvDepartment
            //
            this.dgvDepartment.AllowUserToAddRows = false;
            this.dgvDepartment.AllowUserToDeleteRows = false;
            this.dgvDepartment.AllowUserToOrderColumns = true;
            this.dgvDepartment.AllowUserToResizeColumns = false;
            this.dgvDepartment.AllowUserToResizeRows = false;
            this.dgvDepartment.BackgroundColor = System.Drawing.Color.White;
            this.dgvDepartment.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle7.BackColor = System.Drawing.Color.DodgerBlue;
            dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle7.ForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            this.dgvDepartment.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
            this.dgvDepartment.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle8.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
            dataGridViewCellStyle8.SelectionBackColor = System.Drawing.Color.Gray;
            dataGridViewCellStyle8.SelectionForeColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.dgvDepartment.DefaultCellStyle = dataGridViewCellStyle8;
            this.dgvDepartment.Location = new System.Drawing.Point(-1, 257);
            this.dgvDepartment.MultiSelect = false;
            this.dgvDepartment.Name = "dgvDepartment";
            this.dgvDepartment.RowHeadersVisible = false;
            this.dgvDepartment.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.dgvDepartment.Size = new System.Drawing.Size(339, 619);
            this.dgvDepartment.TabIndex = 201;
            //
            // dgvUnit
            //
            this.dgvUnit.AllowUserToAddRows = false;
            this.dgvUnit.AllowUserToDeleteRows = false;
            this.dgvUnit.AllowUserToOrderColumns = true;
            this.dgvUnit.AllowUserToResizeColumns = false;
            this.dgvUnit.AllowUserToResizeRows = false;
            this.dgvUnit.BackgroundColor = System.Drawing.Color.White;
            this.dgvUnit.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle9.BackColor = System.Drawing.Color.DodgerBlue;
            dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            this.dgvUnit.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
            this.dgvUnit.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle10.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.ControlText;
            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.Gray;
            dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.dgvUnit.DefaultCellStyle = dataGridViewCellStyle10;
            this.dgvUnit.Location = new System.Drawing.Point(344, 257);
            this.dgvUnit.MultiSelect = false;
            this.dgvUnit.Name = "dgvUnit";
            this.dgvUnit.RowHeadersVisible = false;
            this.dgvUnit.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.dgvUnit.Size = new System.Drawing.Size(360, 619);
            this.dgvUnit.TabIndex = 202;
            //
            // dgvAssociatedGrid
            //
            this.dgvAssociatedGrid.AllowUserToAddRows = false;
            this.dgvAssociatedGrid.AllowUserToDeleteRows = false;
            this.dgvAssociatedGrid.AllowUserToOrderColumns = true;
            this.dgvAssociatedGrid.AllowUserToResizeColumns = false;
            this.dgvAssociatedGrid.AllowUserToResizeRows = false;
            this.dgvAssociatedGrid.BackgroundColor = System.Drawing.Color.White;
            this.dgvAssociatedGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None;
            dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle11.BackColor = System.Drawing.Color.DodgerBlue;
            dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle11.ForeColor = System.Drawing.Color.White;
            dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            this.dgvAssociatedGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
            this.dgvAssociatedGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle12.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
            dataGridViewCellStyle12.SelectionBackColor = System.Drawing.Color.Gray;
            dataGridViewCellStyle12.SelectionForeColor = System.Drawing.Color.Yellow;
            dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.dgvAssociatedGrid.DefaultCellStyle = dataGridViewCellStyle12;
            this.dgvAssociatedGrid.Location = new System.Drawing.Point(747, 257);
            this.dgvAssociatedGrid.MultiSelect = false;
            this.dgvAssociatedGrid.Name = "dgvAssociatedGrid";
            this.dgvAssociatedGrid.RowHeadersVisible = false;
            this.dgvAssociatedGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.dgvAssociatedGrid.Size = new System.Drawing.Size(471, 619);
            this.dgvAssociatedGrid.TabIndex = 203;
            this.dgvAssociatedGrid.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvAssociatedGrid_CellClick);
            //
            // panel2
            //
            this.panel2.Controls.Add(this.btnAdd);
            this.panel2.Location = new System.Drawing.Point(707, 258);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(41, 615);
            this.panel2.TabIndex = 204;
            //
            // btnAdd
            //
            this.btnAdd.BackColor = System.Drawing.Color.DodgerBlue;
            this.btnAdd.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnAdd.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnAdd.ForeColor = System.Drawing.Color.White;
            this.btnAdd.Location = new System.Drawing.Point(-1, 277);
            this.btnAdd.Name = "btnAdd";
            this.btnAdd.Size = new System.Drawing.Size(41, 28);
            this.btnAdd.TabIndex = 87;
            this.btnAdd.TabStop = false;
            this.btnAdd.Text = ">>";
            this.btnAdd.UseVisualStyleBackColor = false;
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
            //
            // btnRefreshDeptGrp
            //
            this.btnRefreshDeptGrp.BackColor = System.Drawing.Color.MediumPurple;
            this.btnRefreshDeptGrp.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnRefreshDeptGrp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnRefreshDeptGrp.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnRefreshDeptGrp.ForeColor = System.Drawing.Color.White;
            this.btnRefreshDeptGrp.Location = new System.Drawing.Point(675, 174);
            this.btnRefreshDeptGrp.Name = "btnRefreshDeptGrp";
            this.btnRefreshDeptGrp.Size = new System.Drawing.Size(30, 26);
            this.btnRefreshDeptGrp.TabIndex = 210;
            this.btnRefreshDeptGrp.TabStop = false;
            this.btnRefreshDeptGrp.Text = "..";
            this.btnRefreshDeptGrp.UseVisualStyleBackColor = false;
            this.btnRefreshDeptGrp.Click += new System.EventHandler(this.btnRefreshDeptGrp_Click);
            //
            // btnAddDeptGrp
            //
            this.btnAddDeptGrp.BackColor = System.Drawing.Color.DodgerBlue;
            this.btnAddDeptGrp.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnAddDeptGrp.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnAddDeptGrp.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnAddDeptGrp.ForeColor = System.Drawing.Color.White;
            this.btnAddDeptGrp.Location = new System.Drawing.Point(636, 174);
            this.btnAddDeptGrp.Name = "btnAddDeptGrp";
            this.btnAddDeptGrp.Size = new System.Drawing.Size(35, 26);
            this.btnAddDeptGrp.TabIndex = 209;
            this.btnAddDeptGrp.TabStop = false;
            this.btnAddDeptGrp.Text = "+";
            this.btnAddDeptGrp.UseVisualStyleBackColor = false;
            this.btnAddDeptGrp.Click += new System.EventHandler(this.btnAddDeptGrp_Click);
            //
            // txtSearchDept
            //
            this.txtSearchDept.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtSearchDept.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtSearchDept.Location = new System.Drawing.Point(8, 225);
            this.txtSearchDept.Name = "txtSearchDept";
            this.txtSearchDept.Size = new System.Drawing.Size(256, 24);
            this.txtSearchDept.TabIndex = 211;
            this.txtSearchDept.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtSearchDept_KeyUp);
            //
            // smartLabel1
            //
            this.smartLabel1.AutoSize = true;
            this.smartLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.smartLabel1.Location = new System.Drawing.Point(8, 209);
            this.smartLabel1.Name = "smartLabel1";
            this.smartLabel1.Size = new System.Drawing.Size(124, 13);
            this.smartLabel1.TabIndex = 212;
            this.smartLabel1.Text = "Search Department :";
            //
            // btnRefreshDept
            //
            this.btnRefreshDept.BackColor = System.Drawing.Color.MediumPurple;
            this.btnRefreshDept.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnRefreshDept.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnRefreshDept.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnRefreshDept.ForeColor = System.Drawing.Color.White;
            this.btnRefreshDept.Location = new System.Drawing.Point(308, 225);
            this.btnRefreshDept.Name = "btnRefreshDept";
            this.btnRefreshDept.Size = new System.Drawing.Size(30, 26);
            this.btnRefreshDept.TabIndex = 214;
            this.btnRefreshDept.TabStop = false;
            this.btnRefreshDept.Text = "..";
            this.btnRefreshDept.UseVisualStyleBackColor = false;
            this.btnRefreshDept.Click += new System.EventHandler(this.btnRefreshDept_Click);
            //
            // btnAddDept
            //
            this.btnAddDept.BackColor = System.Drawing.Color.DodgerBlue;
            this.btnAddDept.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnAddDept.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnAddDept.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnAddDept.ForeColor = System.Drawing.Color.White;
            this.btnAddDept.Location = new System.Drawing.Point(270, 225);
            this.btnAddDept.Name = "btnAddDept";
            this.btnAddDept.Size = new System.Drawing.Size(35, 26);
            this.btnAddDept.TabIndex = 213;
            this.btnAddDept.TabStop = false;
            this.btnAddDept.Text = "+";
            this.btnAddDept.UseVisualStyleBackColor = false;
            this.btnAddDept.Click += new System.EventHandler(this.btnAddDept_Click);
            //
            // txtSearchUnit
            //
            this.txtSearchUnit.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.txtSearchUnit.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txtSearchUnit.Location = new System.Drawing.Point(344, 225);
            this.txtSearchUnit.Name = "txtSearchUnit";
            this.txtSearchUnit.Size = new System.Drawing.Size(286, 24);
            this.txtSearchUnit.TabIndex = 215;
            this.txtSearchUnit.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtSearchUnit_KeyUp);
            //
            // btnRefreshUnit
            //
            this.btnRefreshUnit.BackColor = System.Drawing.Color.MediumPurple;
            this.btnRefreshUnit.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnRefreshUnit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnRefreshUnit.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnRefreshUnit.ForeColor = System.Drawing.Color.White;
            this.btnRefreshUnit.Location = new System.Drawing.Point(673, 225);
            this.btnRefreshUnit.Name = "btnRefreshUnit";
            this.btnRefreshUnit.Size = new System.Drawing.Size(30, 26);
            this.btnRefreshUnit.TabIndex = 217;
            this.btnRefreshUnit.TabStop = false;
            this.btnRefreshUnit.Text = "..";
            this.btnRefreshUnit.UseVisualStyleBackColor = false;
            this.btnRefreshUnit.Click += new System.EventHandler(this.btnRefreshUnit_Click);
            //
            // btnAddUnit
            //
            this.btnAddUnit.BackColor = System.Drawing.Color.DodgerBlue;
            this.btnAddUnit.Cursor = System.Windows.Forms.Cursors.Hand;
            this.btnAddUnit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnAddUnit.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnAddUnit.ForeColor = System.Drawing.Color.White;
            this.btnAddUnit.Location = new System.Drawing.Point(636, 225);
            this.btnAddUnit.Name = "btnAddUnit";
            this.btnAddUnit.Size = new System.Drawing.Size(35, 26);
            this.btnAddUnit.TabIndex = 216;
            this.btnAddUnit.TabStop = false;
            this.btnAddUnit.Text = "+";
            this.btnAddUnit.UseVisualStyleBackColor = false;
            this.btnAddUnit.Click += new System.EventHandler(this.btnAddUnit_Click);
            //
            // smartLabel2
            //
            this.smartLabel2.AutoSize = true;
            this.smartLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.smartLabel2.Location = new System.Drawing.Point(341, 209);
            this.smartLabel2.Name = "smartLabel2";
            this.smartLabel2.Size = new System.Drawing.Size(82, 13);
            this.smartLabel2.TabIndex = 218;
            this.smartLabel2.Text = "Search Unit :";
            //
            // button1
            //
            this.button1.BackColor = System.Drawing.Color.MediumPurple;
            this.button1.Cursor = System.Windows.Forms.Cursors.Hand;
            this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button1.ForeColor = System.Drawing.Color.White;
            this.button1.Location = new System.Drawing.Point(307, 174);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(30, 26);
            this.button1.TabIndex = 220;
            this.button1.TabStop = false;
            this.button1.Text = "..";
            this.button1.UseVisualStyleBackColor = false;
            //
            // button2
            //
            this.button2.BackColor = System.Drawing.Color.DodgerBlue;
            this.button2.Cursor = System.Windows.Forms.Cursors.Hand;
            this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.button2.ForeColor = System.Drawing.Color.White;
            this.button2.Location = new System.Drawing.Point(269, 174);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(35, 26);
            this.button2.TabIndex = 219;
            this.button2.TabStop = false;
            this.button2.Text = "+";
            this.button2.UseVisualStyleBackColor = false;
            //
            // btnShowUnit
            //
            this.btnShowUnit.BackColor = System.Drawing.Color.DodgerBlue;
            this.btnShowUnit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.btnShowUnit.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.btnShowUnit.ForeColor = System.Drawing.Color.White;
            this.btnShowUnit.Location = new System.Drawing.Point(1147, 174);
            this.btnShowUnit.Name = "btnShowUnit";
            this.btnShowUnit.Size = new System.Drawing.Size(66, 27);
            this.btnShowUnit.TabIndex = 221;
            this.btnShowUnit.Text = "Show";
            this.btnShowUnit.UseVisualStyleBackColor = false;
            this.btnShowUnit.Click += new System.EventHandler(this.btnShowUnit_Click);
            //
            // cboDepartment
            //
            this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.cboDepartment.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.cboDepartment.ForeColor = System.Drawing.Color.Blue;
            this.cboDepartment.FormattingEnabled = true;
            this.cboDepartment.Location = new System.Drawing.Point(800, 174);
            this.cboDepartment.Name = "cboDepartment";
            this.cboDepartment.Size = new System.Drawing.Size(341, 26);
            this.cboDepartment.TabIndex = 2;
            this.cboDepartment.SelectedIndexChanged += new System.EventHandler(this.cboDepartment_SelectedIndexChanged);
            //
            // smartLabel3
            //
            this.smartLabel3.AutoSize = true;
            this.smartLabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold);
            this.smartLabel3.Location = new System.Drawing.Point(797, 156);
            this.smartLabel3.Name = "smartLabel3";
            this.smartLabel3.Size = new System.Drawing.Size(80, 13);
            this.smartLabel3.TabIndex = 223;
            this.smartLabel3.Text = "Department :";
            //
            // frmAssignOrganogram
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize = new System.Drawing.Size(1219, 860);
            this.isEnterTabAllow = true;
            this.Name = "frmAssignOrganogram";
            this.Load += new System.EventHandler(this.frmAssignOrganogram_Load);
            this.pnlMain.ResumeLayout(false);
            this.pnlMain.PerformLayout();
            this.pnlTop.ResumeLayout(false);
            this.pnlTop.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dgvDepartment)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvUnit)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.dgvAssociatedGrid)).EndInit();
            this.panel2.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private AtiqsControlLibrary.SmartComboBox cboDepartmentGroup;
        private AtiqsControlLibrary.SmartLabel smartLabel22;
        private AtiqsControlLibrary.SmartComboBox cboDepartmentType;
        private AtiqsControlLibrary.SmartLabel smartLabel21;
        private System.Windows.Forms.Button btnShow;
        private AtiqsControlLibrary.SmartDataGridView dgvDepartment;
        private AtiqsControlLibrary.SmartDataGridView dgvUnit;
        private AtiqsControlLibrary.SmartDataGridView dgvAssociatedGrid;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.Button btnAdd;
        private System.Windows.Forms.Button btnRefreshDeptGrp;
        private System.Windows.Forms.Button btnAddDeptGrp;
        private AtiqsControlLibrary.SmartTextBox txtSearchDept;
        private AtiqsControlLibrary.SmartLabel smartLabel1;
        private System.Windows.Forms.Button btnRefreshDept;
        private System.Windows.Forms.Button btnAddDept;
        private AtiqsControlLibrary.SmartTextBox txtSearchUnit;
        private System.Windows.Forms.Button btnRefreshUnit;
        private System.Windows.Forms.Button btnAddUnit;
        private AtiqsControlLibrary.SmartLabel smartLabel2;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.Button btnShowUnit;
        private AtiqsControlLibrary.SmartComboBox cboDepartment;
        private AtiqsControlLibrary.SmartLabel smartLabel3;
    }
}


text:
namespace RhIO
{
FrameStreamViewer::FrameStreamViewer(const std::string& name) : _name(name)
{
}

void FrameStreamViewer::start()
{
  cv::namedWindow(_name, cv::WINDOW_NORMAL);
}

void FrameStreamViewer::stop()
{
  cv::destroyWindow(_name);
}

void FrameStreamViewer::pushFrame(const cv::Mat& frame)
{
  cv::resizeWindow(_name, frame.cols, frame.rows);
  cv::imshow(_name, frame);
  cv::imwrite("/tmp/out.png", frame);
  cv::waitKey(1);
}
}  // namespace RhIO

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8" ?>

<Module>
  <ModulePrefs title="Demo OAuth2 Authorization Code Gadget (Simple pull from Facebook Friends">
    <OAuth2>
      <Service name="facebook" scope="user_about_me">
      </Service>
    </OAuth2>
    <Require feature="oauthpopup" />

  </ModulePrefs>
  <Content type="html">
      <![CDATA[

      Personalize this gadget

        In order to use this Demo Gadget you must

Have or create a Facebook account and know your userid and password

Register a new application at https://developers.facebook.com/apps

Make sure your app's "Site URL" applies to your shindig environment (e.g. http://localhost:8080/gadgets/oauth2callback)

Update the Facebook client "App ID" and "App Secret" in the OAuth2 persistence (default is config/oauth2.json)

Restart the server

Click the link above to initiate the authorization process

      Please click
      I've approved access
      once you've approved access to your data.

code:

uri:

description:

explanation:

trace:

        ]]>
  </Content>
</Module>


text:
@interface RAutoTextField : UITextField

@end


text:
.. _azure_policyassignments:

Policy assignments
==================

Filters
-------
- Standard Value Filter (see :ref:`filters`)
    - Model: `Profile <https://docs.microsoft.com/en-us/python/api/azure-mgmt-cdn/azure.mgmt.cdn.models.profile?view=azure-python>`_

Actions
-------
- ARM Resource Actions (see :ref:`azure_genericarmaction`)

Example Policies
----------------

This policy will find all policy assignments named 'test-assignment' and delete them.

.. code-block:: yaml

  policies:
    - name: remove-test-assignments
      resource: azure.policyassignments
      filters:
        - type: value
          key: properties.displayName
          value_type: normalize
          op: eq
          value: 'test-assignment'
      actions:
        - type: delete


text:
var _jvoigtlaender$elm_memo$Native_RandomHelper = function(){
  function randomInt(upper){
    return Math.floor(Math.random() * upper);
  }

  return {
    randomInt: randomInt
  };
}();


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap_Test</title>

	<link rel="stylesheet" href="/math/stylesheets/bootstrap/css/bootstrap.min.css">

		<?php
			require_once($_SERVER['DOCUMENT_ROOT'] . '/math/templates/navbar-template.html');
		?>

							<form action="post.php" method="post">

									Ваше имя:

									<input type="text" size="40">

</form>

					<?php
						require_once($_SERVER['DOCUMENT_ROOT'] . '/math/templates/right-panel-template.html');
					?>

						<?php
							require_once($_SERVER['DOCUMENT_ROOT'] . '/math/templates/copyrights.html');
						?>


text:
package paperparcel.internal;

import android.os.Parcel;
import android.os.Parcelable;
import org.junit.Test;
import paperparcel.PaperParcel;
import paperparcel.ProcessorConfig;
import paperparcel.TypeAdapter;

import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;

@ProcessorConfig(options = @PaperParcel.Options(reflectAnnotations = UtilsTest.Reflect.class))
public class UtilsTest {

  @Test public void canReadPrivateField() {
    int expected = 100;
    PrivateRead privateRead = new PrivateRead(expected);
    int actual = Utils.readField(int.class, PrivateRead.class, privateRead, "myPrivateField");
    assertThat(expected).isEqualTo(actual);
  }

  @Test public void canWritePrivateField() {
    int expected = 100;
    PrivateWrite privateWrite = new PrivateWrite();
    Utils.writeField(expected, PrivateWrite.class, privateWrite, "myPrivateField");
    assertThat(expected).isEqualTo(privateWrite.getMyPrivateField());
  }

  @Test public void canCallPrivateConstructor() {
    Utils.init(PrivateConstructor.class, new Class[] {}, new Object[] {});
  }

  @SuppressWarnings("ConstantConditions")
  @Test public void nullSafeClone() {
    Integer expected = null;
    Parcel parcel = Parcel.obtain();
    try {
      StaticAdapters.INTEGER_ADAPTER.writeToParcel(expected, parcel, 0);
      fail();
    } catch (NullPointerException ignore) {
    }
    TypeAdapter<Integer> nullSafeIntAdapter = Utils.nullSafeClone(StaticAdapters.INTEGER_ADAPTER);
    nullSafeIntAdapter.writeToParcel(expected, parcel, 0);
    parcel.setDataPosition(0);
    Integer actual = nullSafeIntAdapter.readFromParcel(parcel);
    parcel.recycle();
    assertThat(expected).isNull();
    assertThat(actual).isNull();
  }

  @SuppressWarnings("ConstantConditions")
  @Test public void inlineWriteAndReadNullable() {
    Integer expected = null;
    Parcel parcel = Parcel.obtain();
    try {
      StaticAdapters.INTEGER_ADAPTER.writeToParcel(expected, parcel, 0);
      fail();
    } catch (NullPointerException ignore) {
    }
    Utils.writeNullable(expected, parcel, 0, StaticAdapters.INTEGER_ADAPTER);
    parcel.setDataPosition(0);
    Integer actual = Utils.readNullable(parcel, StaticAdapters.INTEGER_ADAPTER);
    parcel.recycle();
    assertThat(expected).isNull();
    assertThat(actual).isNull();
  }

  @interface Reflect {}

  @PaperParcel
  static final class PrivateRead implements Parcelable {
    public static final Parcelable.Creator<PrivateRead> CREATOR
        = PaperParcelUtilsTest_PrivateRead.CREATOR;

    @Reflect
    private int myPrivateField;

    PrivateRead(int myPrivateField) {
      this.myPrivateField = myPrivateField;
    }

    @Override public int describeContents() {
      return 0;
    }

    @Override public void writeToParcel(Parcel dest, int flags) {
      PaperParcelUtilsTest_PrivateRead.writeToParcel(this, dest, flags);
    }
  }

  @PaperParcel
  static final class PrivateWrite implements Parcelable {
    public static final Parcelable.Creator<PrivateWrite> CREATOR
        = PaperParcelUtilsTest_PrivateWrite.CREATOR;

    @Reflect
    private int myPrivateField;

    int getMyPrivateField() {
      return myPrivateField;
    }

    @Override public int describeContents() {
      return 0;
    }

    @Override public void writeToParcel(Parcel dest, int flags) {
      PaperParcelUtilsTest_PrivateWrite.writeToParcel(this, dest, flags);
    }
  }

  @PaperParcel
  static final class PrivateConstructor implements Parcelable {
    public static final Parcelable.Creator<PrivateConstructor> CREATOR
        = PaperParcelUtilsTest_PrivateConstructor.CREATOR;

    private int myPrivateField;

    @Reflect
    private PrivateConstructor() {
    }

    int getMyPrivateField() {
      return myPrivateField;
    }

    void setMyPrivateField(int myPrivateField) {
      this.myPrivateField = myPrivateField;
    }

    @Override public int describeContents() {
      return 0;
    }

    @Override public void writeToParcel(Parcel dest, int flags) {
      PaperParcelUtilsTest_PrivateConstructor.writeToParcel(this, dest, flags);
    }
  }
}


text:
class CreateWineTypeSimilarityScoresTable < ActiveRecord::Migration
    def change
        create_table(:wine_type_similarity_scores) do |t|
            t.string :wine_type_1
            t.string :wine_type_2
            t.float :similarity_score
            t.timestamps
        end
    end
end


text:
#include "config.h"
#include "core/dom/EventTarget.h"

#include "EventTargetHeaders.h"
#include "EventTargetInterfaces.h"
#include "V8EventTarget.h"

namespace WebCore {

#define TRY_TO_WRAP_WITH_INTERFACE(interfaceName) \
    if (eventNames().interfaceFor##interfaceName == desiredInterface) \
        return toV8(static_cast<interfaceName*>(impl), creationContext, isolate);

v8::Handle<v8::Value> toV8(EventTarget* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
    if (!impl)
        return v8NullWithCheck(isolate);

    AtomicString desiredInterface = impl->interfaceName();
    EVENT_TARGET_INTERFACES_FOR_EACH(TRY_TO_WRAP_WITH_INTERFACE)

    ASSERT_NOT_REACHED();
    return v8Undefined();
}

v8::Handle<v8::Value> toV8ForMainWorld(EventTarget* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
    return toV8(impl, creationContext, isolate);
}

#undef TRY_TO_WRAP_WITH_INTERFACE

} // namespace WebCore


text:
<TITLE>Review for Star Wars: Episode I - The Phantom Menace (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">

Star Wars: Episode I - The Phantom Menace (1999)

reviewed by
Roger Gerbig

STAR WARS EPISODE I - THE PHANTOM MENACE
w/ Liam Neeson, Ewan McGregor, Natalie Portman
Dir: George Lucas

The Thumbs For Sale! review by Roger Gerbig

Believe it or not, these Thumbs! hitchhiked all the way from the sunny
Central Coast of California to Columbia, Tennessee (business trip)
to catch an opening night show of "Star Wars: Episode I - The
Phantom Menace." Sometimes you do what you have to do. After all, this
self-styled movie critic and his army of droids--er--interns is but
one of the legion of complete and total "Star Wars" fans who when all
else seems boring and mundane, turn to tracking small disturbances in
the Force like some turn to bickering about tiny variations in a day's
weather.

That's what I call an active lifestyle.

Fortunately though, I never let this obsession get the best of me.
I've remained cool, collected and placidly normal over the
years--never even once showing up to a job interview brandishing my
lightsaber.

In the sixteen odd years since the last installment, some things in
the "Star Wars" universe have changed, while others haven't. "Phantom
Menace" opens up roughly 30 years (or about the time it would take
George Lucas to crank out 5.45 "Star Wars" movies) before the original
trilogy. The tiny planet, Naboo--featuring what may be the first
viable ecosystem of any planet visited in the Lucas universe--is under
siege by the Trade Federation, which appears to be quite a sinister
Political Action Committee replete with deep pockets, an army of
droids, and leaders who have no noses. And judging by their near
complete inability to lip sync to their dialogue, the Viceroy and his
sidekick may just have been borrowed from the Japanese touring company
of "Star Wars on Ice."

Being that this is sort of a dicey situation, the Republic wastes no
time sending in a couple of Jedi Knights, Qui-Gon Jinn (Neeson) and
Obi-Wan Kenobi (McGregor), to negotiate a settlement of sorts. Of
course, things go a bit wrong and soon those lightsabers are pressed
into action. Then things get worse when the Trade Federation decides
to stray from the peaceful pasture of planetary orbit and stage a
full-blown invasion of Naboo.

All of which illustrates the first major problem I had with this
flick. You see, the Jedi are basically a couple MBAs (that's Mythical
Bad Asses in Thumbs! speak). Every line they utter (when not rehashing
"classics" from the first trilogy) drips with self-importance and
excessive knowledge of the way things are. And Lucas makes it
abundantly apparent that when it's a lightsaber vs. a legion, the
lightsaber reigns supreme. Sure, in the first 45 minutes alone they're
chased by battle droids, forced to stow away on enemy ships, nearly
stomped on by the Federation's war machine, hunted mercilessly by the
really big fish in the pond, and finally driven to flee to the far
corners of the galaxy. But there's never really any sense of danger
during any of this turmoil. They're just a couple of Jedi, caught in
an amazing universe of special effects.

The furious pace of plot and planet hopping are nearly guaranteed to
make you feel like you've embarked on an extended bus tour of the
universe. Sure, it's great to see the sights, but Lucas the driver
leaves you wondering if you'll ever get a chance to make a pit stop.
In fact, it's debatable whether or not this tour guide would ever stop
long enough at a roadside stand for you to buy some trinkets for the
folks back home.

The rather thin plot labors under being a setup piece for parts II and
III of this trilogy, and suffers from some ill-begotten cloning of
certain characteristics of "Return of the Jedi." When all the films
are completed, I can assure you that this one will be the least able
to stand on its own.

As our heroes rocket across the galaxy collecting cast members and
bumper stickers (Tattooine is for Lovers!), it suddenly occurred to me
how deficient the characters were--at least in comparison to those in
the first series. It's not bad acting, it's just the purely functional
nature of the dialogue. Apparently, as a species, humans aren't all
that funny (Han Solo being a notable exception). Just forget your
dream of having a career in stand-up comedy in the ring of clubs
dotting the edge of the Republic. Unless you've got floppy ears, fur,
or skin tones that lean toward the blue end of the spectrum, that is.

Which leads us to the requisite Jar Jar Binks paragraph. Every other
critic has one, so why can't I? For those of you doing time in Jabba's
dungeons, Mr. Binks is the klutzy amphibious alien dude entrusted with
96% of the humor present in the script. Already the most controversial
character in the "Star Wars" universe, I'll limit my critique to one
point: Upon occasion, someone really needs to come between Lucas and
his marketing "yes" men and casually mention that, "um...this ain't
necessarily funny."

Now, if we could just schedule him and a squad of Ewoks to engage in a
little Ultimate Fighting between themselves... There's a pay-per-view
event even I'd pay for.

While it's obvious that I have a few complaints, I will say your
entertainment dollar isn't wasted. Not only are the visuals
spectacular, but Lucasfilm had enough common sense to keep some of the
better ones out of the previews. And, if you missed subtlety the first
time around, as I did, rest assured. A second viewing does wonders for
the actors' performances. Portman's regal Queen Amidala makes a
plausible case against business casual dress in the workplace, and
Darth Maul's actually pretty evil despite his vaguely devilish good
looks and M.C. Hammer-inspired getup. Subtlety also befriends the
finer points of production design. These are fabulously-realized
worlds we're visiting here, though I still wish I could open the bus's
window!

Unfortunately, I'm completely incapable of lowering my expectations of
an event such as this, which didn't serve me well. "Phantom Menace"
just isn't a good enough movie to shatter said expectations. But it is
an event. It is entertaining. And it's got enough of those classic
holes in the plot (why wasn't Obi-Wan able to sense a certain dark
presence when he was standing less than five feet away?) to merit much
frivolous discussion over the next few years until the next
installment arrives.

And here's one perhaps all of you can help me out with: since main
Jedi characters tend to have hyphenated first names like "Obi-Wan" and
"Qui-Gon", why wasn't that other famous Jedi named something like
"Luke-Warm Skywalker?"

At any rate, a good show!
Visit the Thumbs! online at www.thumbsforsale.com
©1999 Roger Gerbig

The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).

The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.

Please direct comments/criticisms of the review to relevant newsgroups.

Broken URLs inthe reviews are the responsibility of the author.

The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.

Related links: index of all rec.arts.movies.reviews reviews


text:
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.appendOffsetOfLegend = exports.getBarPosition = exports.getBarSizeList = exports.getTicksOfScale = exports.getLegendProps = exports.getMainColorOfGraphicItem = exports.calculateActiveTickIndex = exports.getTicksOfAxis = exports.getCoordinatesOfGrid = exports.isCategorialAxis = exports.getDomainOfItemsWithSameAxis = exports.getDomainOfStackGroups = exports.getDomainOfDataByKey = exports.calculateDomainOfTicks = exports.getStackedDataOfItem = exports.getStackGroupsByAxisId = exports.getStackedData = exports.detectReferenceElementsDomain = undefined;

var _isNil2 = require('lodash/isNil');

var _isNil3 = _interopRequireDefault(_isNil2);

var _uniqueId2 = require('lodash/uniqueId');

var _uniqueId3 = _interopRequireDefault(_uniqueId2);

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _rechartsScale = require('recharts-scale');

var _d3Shape = require('d3-shape');

var _ReactUtils = require('./ReactUtils');

var _DataUtils = require('./DataUtils');

var _ReferenceDot = require('../cartesian/ReferenceDot');

var _ReferenceDot2 = _interopRequireDefault(_ReferenceDot);

var _ReferenceLine = require('../cartesian/ReferenceLine');

var _ReferenceLine2 = _interopRequireDefault(_ReferenceLine);

var _ReferenceArea = require('../cartesian/ReferenceArea');

var _ReferenceArea2 = _interopRequireDefault(_ReferenceArea);

var _Legend = require('../component/Legend');

var _Legend2 = _interopRequireDefault(_Legend);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

/* eslint no-param-reassign: 0 */
var offsetSign = function offsetSign(series) {
  var n = series.length;
  if (n <= 0) {
    return;
  }

  for (var j = 0, m = series[0].length; j < m; ++j) {
    var positive = 0;
    var negative = 0;

    for (var i = 0; i < n; ++i) {
      var value = isNaN(series[i][j][1]) ? series[i][j][0] : series[i][j][1];

      if (value >= 0) {
        series[i][j][0] = positive;
        series[i][j][1] = positive + value;
        positive = series[i][j][1];
      } else {
        series[i][j][0] = negative;
        series[i][j][1] = negative + value;
        negative = series[i][j][1];
      }
    }
  }
};

var STACK_OFFSET_MAP = {
  sign: offsetSign,
  expand: _d3Shape.stackOffsetExpand,
  none: _d3Shape.stackOffsetNone,
  silhouette: _d3Shape.stackOffsetSilhouette,
  wiggle: _d3Shape.stackOffsetWiggle
};

var detectReferenceElementsDomain = exports.detectReferenceElementsDomain = function detectReferenceElementsDomain(children, domain, axisId, axisType) {
  var lines = (0, _ReactUtils.findAllByType)(children, _ReferenceLine2.default);
  var dots = (0, _ReactUtils.findAllByType)(children, _ReferenceDot2.default);
  var elements = lines.concat(dots);
  var areas = (0, _ReactUtils.findAllByType)(children, _ReferenceArea2.default);
  var idKey = axisType + 'Id';
  var valueKey = axisType[0];
  var finalDomain = domain;

  if (elements.length) {
    finalDomain = elements.reduce(function (result, el) {
      if (el.props[idKey] === axisId && el.props.alwaysShow && (0, _DataUtils.isNumber)(el.props[valueKey])) {
        var value = el.props[valueKey];

        return [Math.min(result[0], value), Math.max(result[1], value)];
      }
      return result;
    }, finalDomain);
  }

  if (areas.length) {
    (function () {
      var key1 = valueKey + '1';
      var key2 = valueKey + '2';

      finalDomain = areas.reduce(function (result, el) {
        if (el.props[idKey] === axisId && el.props.alwaysShow && (0, _DataUtils.isNumber)(el.props[key1]) && (0, _DataUtils.isNumber)(el.props[key2])) {
          var value1 = el.props[key1];
          var value2 = el.props[key2];

          return [Math.min(result[0], value1, value2), Math.max(result[1], value1, value2)];
        }
        return result;
      }, finalDomain);
    })();
  }

  return finalDomain;
};

var getStackedData = exports.getStackedData = function getStackedData(data, stackItems, offsetType) {
  var dataKeys = stackItems.map(function (item) {
    return item.props.dataKey;
  });
  var stack = (0, _d3Shape.stack)().keys(dataKeys).value(function (d, key) {
    return +d[key] || 0;
  }).order(_d3Shape.stackOrderNone).offset(STACK_OFFSET_MAP[offsetType]);

  return stack(data);
};

var getStackGroupsByAxisId = exports.getStackGroupsByAxisId = function getStackGroupsByAxisId(data, items, numericAxisId, cateAxisId, offsetType) {
  var stackGroups = items.reduce(function (result, item) {
    var stackId = item.props.stackId;

    var axisId = item.props[numericAxisId];
    var parentGroup = result[axisId] || { hasStack: false, stackGroups: {} };

    if ((0, _DataUtils.isNumOrStr)(stackId)) {
      var childGroup = parentGroup.stackGroups[stackId] || {
        numericAxisId: numericAxisId, cateAxisId: cateAxisId, items: []
      };

      childGroup.items = [item].concat(childGroup.items);

      if (childGroup.items.length >= 2) {
        parentGroup.hasStack = true;
      }

      parentGroup.stackGroups[stackId] = childGroup;
    } else {
      parentGroup.stackGroups[(0, _uniqueId3.default)('_stackId_')] = {
        numericAxisId: numericAxisId, cateAxisId: cateAxisId, items: [item]
      };
    }

    return _extends({}, result, _defineProperty({}, axisId, parentGroup));
  }, {});

  return Object.keys(stackGroups).reduce(function (result, axisId) {
    var group = stackGroups[axisId];

    if (group.hasStack) {
      group.stackGroups = Object.keys(group.stackGroups).reduce(function (res, stackId) {
        var g = group.stackGroups[stackId];

        return _extends({}, res, _defineProperty({}, stackId, {
          numericAxisId: numericAxisId,
          cateAxisId: cateAxisId,
          items: g.items,
          stackedData: getStackedData(data, g.items, offsetType)
        }));
      }, {});
    }

    return _extends({}, result, _defineProperty({}, axisId, group));
  }, {});
};

var getStackedDataOfItem = exports.getStackedDataOfItem = function getStackedDataOfItem(item, stackGroups) {
  var stackId = item.props.stackId;

  if ((0, _DataUtils.isNumOrStr)(stackId)) {
    var group = stackGroups[stackId];

    if (group && group.items.length) {
      var itemIndex = -1;

      for (var i = 0, len = group.items.length; i < len; i++) {
        if (group.items[i] === item) {
          itemIndex = i;
          break;
        }
      }
      return itemIndex >= 0 ? group.stackedData[itemIndex] : null;
    }
  }

  return null;
};
/**
 * get domain of ticks
 * @param  {Array} ticks Ticks of axis
 * @param  {String} type  The type of axis
 * @return {Array} domain
 */
var calculateDomainOfTicks = exports.calculateDomainOfTicks = function calculateDomainOfTicks(ticks, type) {
  if (type === 'number') {
    return [Math.min.apply(null, ticks), Math.max.apply(null, ticks)];
  }

  return ticks;
};

/**
 * Get domain of data by key
 * @param  {Array} data   The data displayed in the chart
 * @param  {String} key  The unique key of a group of data
 * @param  {String} type The type of axis
 * @return {Array} Domain of data
 */
var getDomainOfDataByKey = exports.getDomainOfDataByKey = function getDomainOfDataByKey(data, key, type) {
  if (type === 'number') {
    var domain = data.map(function (entry) {
      return entry[key];
    }).filter(_DataUtils.isNumber);

    return [Math.min.apply(null, domain), Math.max.apply(null, domain)];
  }

  return data.map(function (entry) {
    var value = entry[key];

    return (0, _DataUtils.isNumOrStr)(value) ? value : '';
  });
};

var getDomainOfSingle = function getDomainOfSingle(data) {
  return data.reduce(function (result, entry) {
    return [Math.min.apply(null, entry.concat([result[0]]).filter(_DataUtils.isNumber)), Math.max.apply(null, entry.concat([result[1]]).filter(_DataUtils.isNumber))];
  }, [Infinity, -Infinity]);
};

var getDomainOfStackGroups = exports.getDomainOfStackGroups = function getDomainOfStackGroups(stackGroups, startIndex, endIndex) {
  return Object.keys(stackGroups).reduce(function (result, stackId) {
    var group = stackGroups[stackId];
    var stackedData = group.stackedData;

    var domain = stackedData.reduce(function (res, entry) {
      var s = getDomainOfSingle(entry.slice(startIndex, endIndex + 1));

      return [Math.min(res[0], s[0]), Math.max(res[1], s[1])];
    }, [Infinity, -Infinity]);

    return [Math.min(domain[0], result[0]), Math.max(domain[1], result[1])];
  }, [Infinity, -Infinity]).map(function (result) {
    return result === Infinity || result === -Infinity ? 0 : result;
  });
};

/**
 * Get domain of data by the configuration of item element
 * @param  {Array} data   The data displayed in the chart
 * @param  {Array} items  The instances of item
 * @param  {String} type  The type of axis, number - Number Axis, category - Category Axis
 * @return {Array}        Domain
 */
var getDomainOfItemsWithSameAxis = exports.getDomainOfItemsWithSameAxis = function getDomainOfItemsWithSameAxis(data, items, type) {
  var domains = items.map(function (item) {
    return getDomainOfDataByKey(data, item.props.dataKey, type);
  });

  if (type === 'number') {
    // Calculate the domain of number axis
    return domains.reduce(function (result, entry) {
      return [Math.min(result[0], entry[0]), Math.max(result[1], entry[1])];
    }, [Infinity, -Infinity]);
  }

  var tag = {};
  // Get the union set of category axis
  return domains.reduce(function (result, entry) {
    for (var i = 0, len = entry.length; i < len; i++) {
      if (!tag[entry[i]]) {
        tag[entry[i]] = true;

        result.push(entry[i]);
      }
    }
    return result;
  }, []);
};

var isCategorialAxis = exports.isCategorialAxis = function isCategorialAxis(layout, axisType) {
  return layout === 'horizontal' && axisType === 'xAxis' || layout === 'vertical' && axisType === 'yAxis';
};
/**
* Calculate the Coordinates of grid
* @param  {Array} ticks The ticks in axis
* @param {Number} min   The minimun value of axis
* @param {Number} max   The maximun value of axis
* @return {Array}       Coordinates
*/
var getCoordinatesOfGrid = exports.getCoordinatesOfGrid = function getCoordinatesOfGrid(ticks, min, max) {
  var hasMin = void 0,
      hasMax = void 0;

  var values = ticks.map(function (entry) {
    if (entry.coordinate === min) {
      hasMin = true;
    }
    if (entry.coordinate === max) {
      hasMax = true;
    }

    return entry.coordinate;
  });

  if (!hasMin) {
    values.push(min);
  }
  if (!hasMax) {
    values.push(max);
  }

  return values;
};

/**
 * Get the ticks of an axis
 * @param  {Object}  axis The configuration of an axis
 * @param {Boolean} isGrid Whether or not are the ticks in grid
 * @param {Boolean} isAll Return the ticks of all the points or not
 * @return {Array}  Ticks
 */
var getTicksOfAxis = exports.getTicksOfAxis = function getTicksOfAxis(axis, isGrid, isAll) {
  if (!axis) return null;
  var scale = axis.scale;
  var duplicateDomain = axis.duplicateDomain,
      type = axis.type;

  var offset = (isGrid || isAll) && type === 'category' ? scale.bandwidth() / 2 : 0;

  // The ticks setted by user should only affect the ticks adjacent to axis line
  if (isGrid && (axis.ticks || axis.niceTicks)) {
    return (axis.ticks || axis.niceTicks).map(function (entry) {
      var scaleContent = duplicateDomain ? duplicateDomain.indexOf(entry) : entry;

      return {
        coordinate: scale(scaleContent) + offset,
        value: entry
      };
    });
  }

  if (axis.isCategorial && axis.categoricalDomain) {
    return axis.categoricalDomain.map(function (entry, index) {
      return {
        coordinate: scale(entry),
        value: entry,
        index: index
      };
    });
  }

  if (scale.ticks && !isAll) {
    return scale.ticks(axis.tickCount).map(function (entry) {
      return { coordinate: scale(entry) + offset, value: entry };
    });
  }

  // When axis has duplicated text, serial numbers are used to generate scale
  return scale.domain().map(function (entry, index) {
    return {
      coordinate: scale(entry) + offset,
      value: duplicateDomain ? duplicateDomain[entry] : entry,
      index: index
    };
  });
};

var calculateActiveTickIndex = exports.calculateActiveTickIndex = function calculateActiveTickIndex(coordinate, ticks) {
  var index = -1;
  var len = ticks.length;

  if (len > 1) {
    for (var i = 0; i < len; i++) {
      if (i === 0 && coordinate <= (ticks[i].coordinate + ticks[i + 1].coordinate) / 2 || i > 0 && i < len - 1 && coordinate > (ticks[i].coordinate + ticks[i - 1].coordinate) / 2 && coordinate <= (ticks[i].coordinate + ticks[i + 1].coordinate) / 2 || i === len - 1 && coordinate > (ticks[i].coordinate + ticks[i - 1].coordinate) / 2) {
        index = ticks[i].index;
        break;
      }
    }
  } else {
    index = 0;
  }

  return index;
};

/**
 * Get the main color of each graphic item
 * @param  {ReactElement} item A graphic item
 * @return {String}            Color
 */
var getMainColorOfGraphicItem = exports.getMainColorOfGraphicItem = function getMainColorOfGraphicItem(item) {
  var displayName = item.type.displayName;
  var result = void 0;

  switch (displayName) {
    case 'Line':
    case 'Area':
      result = item.props.stroke;
      break;
    default:
      result = item.props.fill;
      break;
  }

  return result;
};

var getLegendProps = exports.getLegendProps = function getLegendProps(children, graphicItems, width) {
  var legendItem = (0, _ReactUtils.findChildByType)(children, _Legend2.default);

  if (!legendItem) {
    return null;
  }

  var legendData = legendItem.props && legendItem.props.payload || graphicItems.map(function (child) {
    var _child$props = child.props,
        dataKey = _child$props.dataKey,
        name = _child$props.name,
        legendType = _child$props.legendType;

    return {
      dataKey: dataKey,
      type: legendType || 'square',
      color: getMainColorOfGraphicItem(child),
      value: name || dataKey,
      payload: child.props
    };
  }, undefined);

  return _extends({}, legendItem.props, _Legend2.default.getWithHeight(legendItem, width), {
    payload: legendData
  });
};
/**
 * Configure the scale function of axis
 * @param {Object} scale The scale function
 * @param {Object} opts  The configuration of axis
 * @return {Object}      null
 */
var getTicksOfScale = exports.getTicksOfScale = function getTicksOfScale(scale, opts) {
  var type = opts.type,
      tickCount = opts.tickCount,
      originalDomain = opts.originalDomain,
      allowDecimals = opts.allowDecimals;

  if (opts.scale !== 'auto' && opts.scale !== 'linear') {
    return null;
  }

  if (tickCount && type === 'number' && originalDomain && (originalDomain[0] === 'auto' || originalDomain[1] === 'auto')) {
    // Calculate the ticks by the number of grid when the axis is a number axis
    var domain = scale.domain();
    var tickValues = (0, _rechartsScale.getNiceTickValues)(domain, tickCount, allowDecimals);

    scale.domain(calculateDomainOfTicks(tickValues, type));

    return { niceTicks: tickValues };
  } else if (tickCount && type === 'number') {
    var _domain = scale.domain();
    var _tickValues = (0, _rechartsScale.getTickValues)(_domain, tickCount, allowDecimals);

    return { niceTicks: _tickValues };
  }

  return null;
};

/**
 * Calculate the size of all groups for stacked bar graph
 * @param  {Object} stackGroups The items grouped by axisId and stackId
 * @return {Object} The size of all groups
 */
var getBarSizeList = exports.getBarSizeList = function getBarSizeList(_ref) {
  var globalSize = _ref.barSize,
      _ref$stackGroups = _ref.stackGroups,
      stackGroups = _ref$stackGroups === undefined ? {} : _ref$stackGroups;

  var result = {};
  var numericAxisIds = Object.keys(stackGroups);

  for (var i = 0, len = numericAxisIds.length; i < len; i++) {
    var sgs = stackGroups[numericAxisIds[i]].stackGroups;
    var stackIds = Object.keys(sgs);

    for (var j = 0, sLen = stackIds.length; j < sLen; j++) {
      var _sgs$stackIds$j = sgs[stackIds[j]],
          items = _sgs$stackIds$j.items,
          cateAxisId = _sgs$stackIds$j.cateAxisId;

      var barItems = items.filter(function (item) {
        return item.type.displayName === 'Bar';
      });

      if (barItems && barItems.length) {
        var _barItems$0$props = barItems[0].props,
            dataKey = _barItems$0$props.dataKey,
            selfSize = _barItems$0$props.barSize;

        var cateId = barItems[0].props[cateAxisId];

        if (!result[cateId]) {
          result[cateId] = [];
        }

        result[cateId].push({
          dataKey: dataKey,
          stackList: barItems.slice(1).map(function (item) {
            return item.props.dataKey;
          }),
          barSize: (0, _isNil3.default)(selfSize) ? globalSize : selfSize
        });
      }
    }
  }

  return result;
};

/**
   * Calculate the size of each bar and the gap between two bars
   * @param  {Number} bandSize  The size of each category
   * @param  {sizeList} sizeList  The size of all groups
   * @param  {maxBarSize} maxBarSize The maximum size of bar
   * @return {Number} The size of each bar and the gap between two bars
   */
var getBarPosition = exports.getBarPosition = function getBarPosition(_ref2) {
  var barGap = _ref2.barGap,
      barCategoryGap = _ref2.barCategoryGap,
      bandSize = _ref2.bandSize,
      _ref2$sizeList = _ref2.sizeList,
      sizeList = _ref2$sizeList === undefined ? [] : _ref2$sizeList,
      maxBarSize = _ref2.maxBarSize;

  var len = sizeList.length;
  if (len < 1) return null;
  var result = void 0;

  // whether or not is barSize setted by user
  if (sizeList[0].barSize === +sizeList[0].barSize) {
    (function () {
      var sum = sizeList.reduce(function (res, entry) {
        return res + entry.barSize || 0;
      }, 0);
      sum += (len - 1) * barGap;
      var offset = (bandSize - sum) / 2 >> 0;
      var prev = { offset: offset - barGap, size: 0 };

      result = sizeList.reduce(function (res, entry) {
        var newRes = _extends({}, res, _defineProperty({}, entry.dataKey, {
          offset: prev.offset + prev.size + barGap,
          size: entry.barSize
        }));

        prev = newRes[entry.dataKey];

        if (entry.stackList && entry.stackList.length) {
          entry.stackList.forEach(function (key) {
            newRes[key] = newRes[entry.dataKey];
          });
        }
        return newRes;
      }, {});
    })();
  } else {
    (function () {
      var offset = (0, _DataUtils.getPercentValue)(barCategoryGap, bandSize, 0, true);
      var originalSize = (bandSize - 2 * offset - (len - 1) * barGap) / len >> 0;
      var size = maxBarSize === +maxBarSize ? Math.min(originalSize, maxBarSize) : originalSize;

      result = sizeList.reduce(function (res, entry, i) {
        var newRes = _extends({}, res, _defineProperty({}, entry.dataKey, {
          offset: offset + (originalSize + barGap) * i + (originalSize - size) / 2,
          size: size
        }));

        if (entry.stackList && entry.stackList.length) {
          entry.stackList.forEach(function (key) {
            newRes[key] = newRes[entry.dataKey];
          });
        }
        return newRes;
      }, {});
    })();
  }

  return result;
};

var appendOffsetOfLegend = exports.appendOffsetOfLegend = function appendOffsetOfLegend(offset, items, props) {
  var children = props.children,
      width = props.width,
      height = props.height;

  var legendProps = getLegendProps(children, items, width);
  var newOffset = offset;

  if (legendProps) {
    var box = _Legend2.default.getLegendBBox(legendProps, width, height) || {};
    var align = legendProps.align,
        verticalAlign = legendProps.verticalAlign,
        layout = legendProps.layout;

    if ((layout === 'vertical' || layout === 'horizontal' && verticalAlign === 'center') && (0, _DataUtils.isNumber)(offset[align])) {
      newOffset = _extends({}, offset, _defineProperty({}, align, newOffset[align] + (box.width || 0)));
    }

    if ((layout === 'horizontal' || layout === 'vertical' && align === 'center') && (0, _DataUtils.isNumber)(offset[verticalAlign])) {
      newOffset = _extends({}, offset, _defineProperty({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)));
    }
  }

  return newOffset;
};


text:
using Cielo;
using Cielo.Helper;
using Newtonsoft.Json;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cielo
{
    public class CieloApi : CieloBaseApi, ICieloApi
    {
        public virtual IMerchant Merchant { get; }
        public virtual IEnvironment Environment { get; }

        public CieloApi(IEnvironment environment, IMerchant merchant)
        {
            this.Environment = environment;
            this.Merchant = merchant;

            PreConfigurationTls12();
        }

        /// <summary>
        /// New instance of production environment
        /// </summary>
        /// <param name="merchant">Merchant of production environment</param>
        public CieloApi(IMerchant merchant)
            : this(CieloEnvironment.Production, merchant)
        {
        }

        public virtual Transaction CreateTransaction(Guid requestId, Transaction transaction)
        {
            var client = CreateClient(Environment.TransactionUrl, Merchant);
            var request = CreateRequest(requestId, "/1/sales/", Method.POST);

            request.AddJsonBody(transaction);

            var response = client.Execute(request);

            VerifyResponse(response);

            return JsonConvert.DeserializeObject<Transaction>(response.Content);
        }

        public virtual Transaction GetTransaction(Guid requestId, Guid paymentId)
        {
            var client = CreateClient(Environment.QueryUrl, Merchant);
            var request = CreateRequest(requestId, "/1/sales/{PaymentId}", Method.GET);

            request.AddParameter("PaymentId", paymentId, ParameterType.UrlSegment);

            var response = client.Execute(request);

            VerifyResponse(response);

            return JsonConvert.DeserializeObject<Transaction>(response.Content);
        }

        public virtual ReturnStatus CancellationTransaction(Guid requestId, Guid paymentId, decimal? amount = null)
        {
            var client = CreateClient(Environment.TransactionUrl, Merchant);
            var request = CreateRequest(requestId, "/1/sales/{PaymentId}/void", Method.PUT);

            request.AddParameter("PaymentId", paymentId, ParameterType.UrlSegment);

            if (amount.HasValue)
            {
                request.AddParameter("Amount", NumberHelper.DecimalToInteger(amount), ParameterType.QueryString);
            }

            var response = client.Execute(request);

            VerifyResponse(response);

            return JsonConvert.DeserializeObject<ReturnStatus>(response.Content);
        }

        public virtual ReturnStatus CaptureTransaction(Guid requestId, Guid paymentId, decimal? amount = null, decimal? serviceTaxAmount = null)
        {
            var client = CreateClient(Environment.TransactionUrl, Merchant);
            var request = CreateRequest(requestId, "/1/sales/{PaymentId}/capture", Method.PUT);

            request.AddParameter("PaymentId", paymentId, ParameterType.UrlSegment);

            if (amount.HasValue)
            {
                request.AddParameter("Amount", NumberHelper.DecimalToInteger(amount), ParameterType.QueryString);
            }

            if (serviceTaxAmount.HasValue)
            {
                request.AddParameter("SeviceTaxAmount", NumberHelper.DecimalToInteger(serviceTaxAmount), ParameterType.QueryString);
            }

            var response = client.Execute(request);

            VerifyResponse(response);

            return JsonConvert.DeserializeObject<ReturnStatus>(response.Content);
        }
    }
}


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
A. F. C. P. de Saint-Hilaire, Fl. Bras. merid. 3:82. 1833

#### Original name
null

### Remarks
null


text:
<!DOCTYPE frameset SYSTEM "frameset.dtd">
<frameset>
    <predicate lemma="massage">
        <note>
            Frames file for 'massage' based on sentences in wsj.  No Verbnet
            entry, Framenet entry Manipulation.
        </note>

        <roleset id="massage.01" name="lay on hands" vncls="20-1">
            <roles>
                <role descr="masseur/masseuse" n="0">
                    <vnrole vncls="20-1" vntheta="Agent"/>
                </role>
                <role descr="lucky patient" n="1">
                    <vnrole vncls="20-1" vntheta="Experiencer"/>
                </role>
            </roles>

            <example name="ah, that feels good">
                <inflection aspect="progressive" form="participle" person="ns" tense="ns" voice="active"/>
                <text>
                    [Scot MacInnis, a masseur in Boulder, Colo.,]-1 had a scary experience
                    while [*-1] massaging a man in a natural-foods supermarket as part
                    of a store promotion.
                </text>
                <arg n="0">[*-1]</arg>
                <rel>massaging</rel>
                <arg n="1">a man</arg>
                <arg f="LOC" n="M">in a natural-foods supermarket</arg>
                <arg n="M" f="ADV">as part of a store promotion</arg>
            </example>

            <example name="not literal">
                <inflection aspect="ns" form="infinitive" person="ns" tense="ns" voice="ns"/>
                <text>
                    His board members alone have pledged $800,000 and he-1 is just
                    beginning [*-1] to massage local foundations and corporations.
                </text>
                <arg n="0">[*-1]</arg>
                <rel>massage</rel>
                <arg n="1">local foundations and corporations</arg>
            </example>

        </roleset>
    </predicate>
</frameset>


text:
class Greeter {
    constructor(public message: string) {
    }

    greet(): string {
        return "Hello " + this.message;
    }
}

//new Greeter("World").greet();


text:
package de.uniwuerzburg.info3.ofcprobe.vswitch.trafficgen.ofevent;

import de.uniwuerzburg.info3.ofcprobe.vswitch.connection.IOFConnection;

/**
 * Event describing the Generation of an PacketIn
 *
 * @author Christopher Metter(christopher.metter@informatik.uni-wuerzburg.de)
 */
public class PacketInEvent implements IOFEvent {

    private EventType type;
    private IOFConnection ofSwitch;

    /**
     * Constructor
     *
     * @param ofSwitch
     */
    public PacketInEvent(IOFConnection ofSwitch) {
        this.ofSwitch = ofSwitch;
        this.type = EventType.PACKET_IN_EVENT;
    }

    @Override
    public IOFConnection getCon() {
        return this.ofSwitch;
    }

    @Override
    public EventType getType() {
        return this.type;
    }

    @Override
    public String toString() {
        String output = new String();
        output += "Type:" + this.type + ";Con:" + this.ofSwitch.toString();
        return output;
    }

}


text:
<?php

error_reporting(E_STRICT | E_ALL);

// You can set the include path to src directory or reference
// DfpUser.php directly via require_once.
// $path = '/path/to/dfp_api_php_lib/src';
$path = dirname(__FILE__) . '/../../../../src';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);

require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php';
require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php';

try {
  // Get DfpUser from credentials in "../auth.ini"
  // relative to the DfpUser.php file's directory.
  $user = new DfpUser();

  // Log SOAP XML request and response.
  $user->LogDefaults();

  // Get the LineItemService.
  $lineItemService = $user->GetService('LineItemService', 'v201306');

  // Set the ID of the order to get line items from.
  $orderId = 'INSERT_ORDER_ID_HERE';

  // Set defaults for page and statement.
  $page = new LineItemPage();
  $vars = MapUtils::GetMapEntries(array('orderId' =>
      new NumberValue($orderId)));
  $filterStatement = new Statement(NULL, $vars);
  $offset = 0;

  // Collect all line item custom field IDs for an order.
  $customFieldIds = array();
  do {
    // Create a statement to only select line items from a given order.
    $filterStatement->query = sprintf('WHERE orderId = :orderId LIMIT 500 ' .
        'OFFSET %d', $offset);

    // Get line items by statement.
    $page = $lineItemService->getLineItemsByStatement($filterStatement);

    // Get custom field IDs from the line items of an order.
    if (isset($page->results)) {
      foreach ($page->results as $lineItem) {
        if (isset($lineItem->customFieldValues)) {
          foreach ($lineItem->customFieldValues as $customFieldValue) {
            $customFieldId = $customFieldValue->customFieldId;
            if (!in_array($customFieldId, $customFieldIds)) {
              $customFieldIds[] = $customFieldId;
            }
          }
        }
      }
    }

    $offset += 500;
  } while ($offset < $page->totalResultSetSize);

  // Get the ReportService.
  $reportService = $user->GetService('ReportService', 'v201306');

  // Create report job.
  $reportJob = new ReportJob();

  // Create report query.
  $reportQuery = new ReportQuery();
  $reportQuery->dateRangeType = 'LAST_MONTH';
  $reportQuery->dimensions = array('LINE_ITEM_ID', 'LINE_ITEM_NAME');
  $reportQuery->customFieldIds = $customFieldIds;
  $reportQuery->columns = array('AD_SERVER_IMPRESSIONS');
  $reportJob->reportQuery = $reportQuery;

  // Report on a single order.
  $filterStatement->query = 'WHERE ORDER_ID = :orderId';
  $reportQuery->statement = $filterStatement;

  // Run report job.
  $reportJob = $reportService->runReportJob($reportJob);

  do {
    printf("Report with ID '%s' is running.\n", $reportJob->id);
    sleep(30);
    // Get report job.
    $reportJob = $reportService->getReportJob($reportJob->id);
  } while ($reportJob->reportJobStatus == 'IN_PROGRESS');

  if ($reportJob->reportJobStatus == 'FAILED') {
    printf("Report job with ID '%s' failed to finish successfully.\n",
        $reportJob->id);
  } else {
    printf("Report job with ID '%s' completed successfully.\n", $reportJob->id);
  }
} catch (OAuth2Exception $e) {
  ExampleUtils::CheckForOAuth2Errors($e);
} catch (ValidationException $e) {
  ExampleUtils::CheckForOAuth2Errors($e);
} catch (Exception $e) {
  print $e->getMessage() . "\n";
}


text:
require 'spec_helper'

describe 'Redis' do
  describe service('redis_6379') do
    it { should be_enabled }
    it { should be_running }
  end

  describe port(6379) do
    it { should be_listening.on('0.0.0.0').with('tcp') }
  end

  describe file('/etc/redis/6379.conf') do
    it { should be_file }
    it { should be_owned_by 'redis' }
    its(:content) { should match /port 6379/ }
  end

  describe file('/var/run/redis/6379.pid') do
    it { should be_file }
    it { should be_owned_by 'redis' }
    its(:size) { should > 0 }
  end

  describe file('/proc/sys/vm/overcommit_memory') do
    it { should be_file }
    it { should contain '1' }
  end

  describe file('/usr/bin/redis-server') do
    it { should be_symlink }
  end

  describe file('/usr/bin/redis-cli') do
    it { should be_symlink }
  end
end


text:
require 'write_xlsx/package/xml_writer_simple'
require 'write_xlsx/chart'
require 'write_xlsx/utility'

module Writexlsx
  class Chart
    class Area < self
      include Writexlsx::Utility

      def initialize(subtype)
        super(subtype)
        @subtype = subtype || 'standard'
        @cross_between = 'midCat'
        @show_crosses  = false

        # Override and reset the default axis values.
        @y_axis.defaults[:num_format] = '0%' if @subtype == 'percent_stacked'

        set_y_axis

        # Set the available data label positions for this chart type.
        @label_position_default = 'center'
        @label_positions = { 'center' => 'ctr' }
      end

      #
      # Override the virtual superclass method with a chart specific method.
      #
      def write_chart_type(params)
        # Write the c:areaChart element.
        write_area_chart(params)
      end

      #
      # Write the <c:areaChart> element.
      #
      def write_area_chart(params)
        series = axes_series(params)
        return if series.empty?

        subtype = if @subtype == 'percent_stacked'
                    'percentStacked'
                  else
                    @subtype
                  end
        @writer.tag_elements('c:areaChart') do
          # Write the c:grouping element.
          write_grouping(subtype)
          # Write the series elements.
          series.each { |s| write_series(s) }

          # Write the c:dropLines element.
          write_drop_lines

          # Write the c:marker element.
          write_marker_value

          # Write the c:axId elements
          write_axis_ids(params)
        end
      end
    end
  end
end


text:
FROM golang:alpine AS builder

ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go

RUN apk --no-cache add \
		gcc \
		git \
		libc-dev

ENV CFSSL_VERSION v1.4.1

RUN git clone --depth 1 --branch "$CFSSL_VERSION" https://github.com/cloudflare/cfssl.git /go/src/github.com/cloudflare/cfssl

RUN set -x && \
	go get github.com/cloudflare/cfssl_trust/... && \
	go get github.com/GeertJohan/go.rice/rice && \
	cd /go/src/github.com/cloudflare/cfssl && rice embed-go -i=./cli/serve && \
	mkdir bin && cd bin && \
	go build ../cmd/cfssl && \
	go build ../cmd/cfssljson && \
	go build ../cmd/mkbundle && \
	go build ../cmd/multirootca && \
	echo "Build complete."

FROM alpine:latest

COPY --from=builder /go/src/github.com/cloudflare/cfssl_trust /etc/cfssl
COPY --from=builder /go/src/github.com/cloudflare/cfssl/bin/ /usr/bin

WORKDIR /etc/cfssl

EXPOSE 8888

ENTRYPOINT ["cfssl"]
CMD ["--help"]


text:
package org.springframework.boot.web.context;

import org.springframework.boot.web.server.WebServer;
import org.springframework.context.ApplicationContext;

/**
 * Interface to be implemented by {@link ApplicationContext application contexts} that
 * create and manage the lifecycle of an embedded {@link WebServer}.
 *
 * @author Phillip Webb
 * @since 2.0.0
 */
public interface WebServerApplicationContext extends ApplicationContext {

	/**
	 * Returns the {@link WebServer} that was created by the context or {@code null} if
	 * the server has not yet been created.
	 * @return the web server
	 */
	WebServer getWebServer();

	/**
	 * Returns the namespace of the web server application context or {@code null} if no
	 * namespace has been set. Used for disambiguation when multiple web servers are
	 * running in the same application (for example a management context running on a
	 * different port).
	 * @return the server namespace
	 */
	String getServerNamespace();

}


text:
require 'turbo-sprockets/railtie'

module TurboSprockets
  autoload :AssetResolver,     'turbo-sprockets/asset_resolver'
  autoload :ParallelCompiler,  'turbo-sprockets/parallel_compiler'
  autoload :ParallelPreloader, 'turbo-sprockets/parallel_preloader'

  class Config
    attr_reader :precompiler, :preloader

    def initialize(options = {})
      @precompiler = ComponentConfig.new(options.fetch(:precompiler, {}))
      @preloader = ComponentConfig.new(options.fetch(:preloader, {}))
    end
  end

  class ComponentConfig
    DEFAULT_WORKER_COUNT = 2

    attr_accessor :enabled, :worker_count, :logger
    alias_method :enabled?, :enabled

    def initialize(options = {})
      options.each_pair do |key, value|
        send("#{key}=", value)
      end
    end

    def worker_count
      worker_count_from_env || @worker_count || DEFAULT_WORKER_COUNT
    end

    def logger
      @logger || Rails.logger
    end

    private

    def worker_count_from_env
      if count = ENV['TURBO_SPROCKETS_WORKER_COUNT']
        count.to_i
      end
    end
  end

  class << self
    def configure
      yield configuration
    end

    def configuration
      # hopefully people think these are sane defaults :|
      @configuration ||= Config.new(
        precompiler: { enabled: !Rails.env.development? },
        preloader:   { enabled: Rails.env.development? && Rails.const_defined?(:Server) }
      )
    end
  end
end


text:
/*
 * Created on 13 五月 2015 ( Time 21:15:33 )
 * Generated by Telosys Tools Generator ( version 2.1.0 )
 */
package com.dt.hippo.auto.web.common;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;
import org.springframework.ui.Model;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

@Component
public class MessageHelper {

	public void addException(Model uiModel, String messageKey, Exception e) {
		List<Message> messages = getMessages(uiModel);
		addException(messages, messageKey, e);
	}

	public void addException(RedirectAttributes redirectAttributes, String messageKey, Exception e) {
		List<Message> messages = getMessages(redirectAttributes);
		addException(messages, messageKey, e);
	}

	public void addException(List<Message> messages, Exception e) {
		if(e.getCause() == null) {
			messages.add(new Message(MessageType.DANGER, "error", e.getMessage()));
		} else {
			messages.add(new Message(MessageType.DANGER, "error.with.cause", e.getMessage(), e.getCause().getMessage()));
		}
	}

	public void addException(List<Message> messages, String messageKey, Exception e) {
		if(e.getCause() == null) {
			messages.add(new Message(MessageType.DANGER, messageKey, e.getMessage()));
		} else {
			messages.add(new Message(MessageType.DANGER, messageKey, e.getMessage(), e.getCause().getMessage()));
		}
	}

	public void addMessage(RedirectAttributes redirectAttributes, Message message) {
		List<Message> messages = getMessages(redirectAttributes);
		messages.add(message);
	}

	public void addMessage(Model uiModel, Message message) {
		List<Message> messages = getMessages(uiModel);
		messages.add(message);
	}

	@SuppressWarnings("unchecked")
	private List<Message> getMessages(RedirectAttributes redirectAttributes) {
		Map<String,Object> map = (Map<String, Object>) redirectAttributes.getFlashAttributes();
		List<Message> messages = (List<Message>) map.get("messages");
		if(messages == null) {
			messages = new ArrayList<Message>();
			map.put("messages", messages);
		}
		return (List<Message>) map.get("messages");
	}

	@SuppressWarnings("unchecked")
	private List<Message> getMessages(Model uiModel) {
		Map<String,Object> map = uiModel.asMap();
		List<Message> messages = (List<Message>) map.get("messages");
		if(messages == null) {
			messages = new ArrayList<Message>();
			map.put("messages", messages);
		}
		return (List<Message>) map.get("messages");
	}
}


text:
.link {
  border-bottom: 1px solid var(--sep_color);
}


text:
	@if ($playlist_obj)

				{{ $playlist_obj->title }}
	@else

				New Playlist
	@endif

			@foreach ($playlist_videos as $video)

id }}" class="dragable-video-item" style="max-width: 100%;">

{{ $video->title }}

							<form data-id="{{ $video->id }}"
								  method="POST"
								  action="{{ action('PlaylistsController@remove', [$video->id]) }}"
								  accept-charset="UTF-8"
								  class="form-remove-{{ $video->id }} btn-group">
								<button type="submit" class="btn btn-xs btn-warning btn-playlist-panel"></button>
								{{ csrf_field() }}
								{{ method_field('DELETE') }}
								thumbnail }}">
							</form>

				@endforeach

		{{-- buttons --}}
		@if ($playlist_obj)

			{{-- Update --}}
			{!! Form::model($playlist_obj, [
			'class' 	=> 'form-horizontal form-with-video-list',
			'method' 	=> 'PATCH',
			'action' 	=> ['PlaylistsController@update', $playlist_obj->id]]) !!}
				{{ Form::input('hidden', 'title', null, ['id' => 'title', 'name' => 'title', 'class' => 'form-control firstField'] ) }}
				{!! Form::submit('Save', ['class' => 'btn btn-primary btn-playlist-panel-control' ]) !!}
			{{ Form::close() }}

			{{-- Close --}}
			{{ Form::open(['action' => 'PlaylistsController@removeall']) }}
				{{ csrf_field() }}
				{{ method_field('POST') }}
				<button type="submit" class="btn btn-danger btn-playlist-panel-control">Close</button>
			{{ Form::close() }}

			{{-- Details --}}
			id]) }}" role="button">Details

		@elseif(count($playlist_videos))

			{{-- Open --}}
			{{ Form::open(['action' => 'PlaylistsController@store'])}}
				{{ csrf_field() }}
				{{ method_field('POST') }}

					{{ Form::label('playlist-title', 'Title', ['class' => 'col-sm-1 control-label']) }}
						{{ Form::input('text', 'title', null, ['id' => 'playlist-title', 'class' => 'form-control'] ) }}

					{{ Form::label('playlist-description', 'Description', ['class' => 'col-sm-1 control-label']) }}
						{{ Form::textarea('description', null, ['class' => 'form-control', 'size' => '10x5']) }}

					{{ Form::label('playlist-password', 'Password', ['class' => 'col-sm-1 control-label']) }}
						{{ Form::input('text', 'password', null, ['id' => 'playlist-password', 'class' => 'form-control'] ) }}

				{{-- Create --}}
				<button type="submit" class="btn btn-primary btn-playlist-panel-control" disabled>Create</button>
			{{ Form::close() }}

			{{-- Empty --}}
			{{ Form::open(['action' => 'PlaylistsController@removeall', 'data-function' => 'hook_empty']) }}
				{{ csrf_field() }}
				{{ method_field('POST') }}
				<button type="submit" class="btn btn-danger btn-playlist-panel-control">Empty</button>
			{{ Form::close() }}

		@else

		Playlist is empty

		@endif


text:
using System;

namespace Jojatekok.MoneroAPI
{
    public class LogMessageReceivedEventArgs : EventArgs
    {
        public LogMessage LogMessage { get; private set; }

        internal LogMessageReceivedEventArgs(LogMessage logMessage)
        {
            LogMessage = logMessage;
        }
    }
}


text:
class CreateActivities < ActiveRecord::Migration
  def change
    create_table :activities do |t|
      t.references :exercise, index: true
      t.references :intensity, index: true
      t.boolean :commute
      t.integer :duration
      t.integer :distance
      t.datetime :date
      t.text :description

      t.timestamps null: false
    end
    add_foreign_key :activities, :exercises
    add_foreign_key :activities, :intensities
  end
end


text:
require "google/cloud/trace"
require "minitest/rg"
require "active_record"

module Google
  module Cloud
    module Trace
      def self.stub_new
        define_singleton_method :new do |*args|
          yield *args
        end
      end
      # Create default unmocked methods that will raise if ever called
      def self.new *args
        raise "This code example is not yet mocked"
      end
    end
    module Core
      module Environment
        # Create default unmocked methods that will raise if ever called
        def self.gce_vm? connection: nil
          raise "This code example is not yet mocked"
        end
        def self.get_metadata_attribute uri, attr_name, connection: nil
          raise "This code example is not yet mocked"
        end
      end
    end
  end
end

def mock_trace
  Google::Cloud::Trace.stub_new do |*args|
    credentials = OpenStruct.new(client: OpenStruct.new(updater_proc: Proc.new {}))
    trace = Google::Cloud::Trace::Project.new(Google::Cloud::Trace::Service.new("my-project", credentials))

    trace.service.mocked_lowlevel_client = Minitest::Mock.new

    yield trace.service.mocked_lowlevel_client if block_given?

    trace
  end
end

YARD::Doctest.configure do |doctest|
  ##
  # SKIP
  #

  # Skip all GAPIC for now
  doctest.skip "Google::Cloud::Trace::V1::TraceServiceClient"

  ##
  # BEFORE (mocking)
  #

  stubbed_page = OpenStruct.new next_page_token: nil
  stubbed_page.define_singleton_method :map do |&block|
    [].map &block
  end
  stubbed_list_traces = OpenStruct.new page: stubbed_page

  doctest.before "Google::Cloud#trace" do
    mock_trace do |mock|
      mock.expect :list_traces, stubbed_list_traces, [String, Hash]
    end
  end

  doctest.before "Google::Cloud.trace" do
    mock_trace do |mock|
      mock.expect :list_traces, stubbed_list_traces, [String, Hash]
    end
  end

  doctest.before "Google::Cloud::Trace" do
    mock_trace do |mock|
      mock.expect :list_traces, stubbed_list_traces, [String, Hash]
    end
  end

  doctest.before "Google::Cloud::Trace::Project" do
    mock_trace do |mock|
      mock.expect :list_traces, stubbed_list_traces, [String, Hash]
    end
  end

  doctest.before "Google::Cloud::Trace::Project#get_trace" do
    mock_trace do |mock|
      mock.expect :get_trace, stubbed_list_traces, [String, String]
    end
  end

  doctest.before "Google::Cloud::Trace::Project#patch_traces" do
    mock_trace do |mock|
      mock.expect :patch_traces, stubbed_list_traces, [String, Google::Devtools::Cloudtrace::V1::Traces]
    end
  end

  doctest.before "Google::Cloud::Trace::LabelKey.set_stack_trace" do
    mock_trace
  end

  doctest.before "Google::Cloud::Trace::Notifications.instrument" do
    mocked_connection = Minitest::Mock.new
    mocked_connection.expect :execute, nil, [String]
    ActiveRecord::Base.define_singleton_method :connection do
      mocked_connection
    end
  end
end


text:
package com.source3g.netty.common.util;

import java.io.InputStream;

import com.source3g.common.util.PropertiesHelper;

/**
 *
  * @ClassName: PropertiesUtil
  * @Description: 属性文件工具类
  * @author Comsys-zt
  * @date 2016年4月13日 下午3:16:10
  *
 */
public class PropertiesUtil {

	private static PropertiesHelper ph;

	private static String path = "conf/properties/config.properties";

	static {
		InputStream  in =  PropertiesUtil.class.getClassLoader().getResourceAsStream(path);
		try {
			ph = new PropertiesHelper(in);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static String getPropertiesParams(String key) {
		return ph.getValue(key);
	}
}


text:
1. Remove tom notes (because of mono)
2. Remove mono

## Add some important ppa repositories:
1. sudo add-apt-repository ppa:webupd8team/java
2. sudo add-apt-repository ppa:webupd8team/atom
3. sudo add-apt-repository ppa:graphics-drivers/ppa