text:
package com.google.zxing.datamatrix;

import com.google.zxing.BarcodeFormat;
import com.google.zxing.DecodeHintType;
import com.google.zxing.MonochromeBitmapSource;
import com.google.zxing.Reader;
import com.google.zxing.ReaderException;
import com.google.zxing.Result;
import com.google.zxing.ResultPoint;
import com.google.zxing.ResultMetadataType;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.common.DecoderResult;
import com.google.zxing.common.DetectorResult;
import com.google.zxing.datamatrix.decoder.Decoder;
import com.google.zxing.datamatrix.detector.Detector;

import java.util.Hashtable;

/**
 * This implementation can detect and decode Data Matrix codes in an image.
 *
 * @author bbrown@google.com (Brian Brown)
 */
public final class DataMatrixReader implements Reader {

  private static final ResultPoint[] NO_POINTS = new ResultPoint[0];

  private final Decoder decoder = new Decoder();

  /**
   * Locates and decodes a Data Matrix code in an image.
   *
   * @return a String representing the content encoded by the Data Matrix code
   * @throws ReaderException if a Data Matrix code cannot be found, or cannot be decoded
   */
  public Result decode(MonochromeBitmapSource image) throws ReaderException {
    return decode(image, null);
  }

  public Result decode(MonochromeBitmapSource image, Hashtable hints)
      throws ReaderException {
    DecoderResult decoderResult;
    ResultPoint[] points;
    if (hints != null && hints.containsKey(DecodeHintType.PURE_BARCODE)) {
      BitMatrix bits = extractPureBits(image);
      decoderResult = decoder.decode(bits);
      points = NO_POINTS;
    } else {
      DetectorResult detectorResult = new Detector(image).detect();
      decoderResult = decoder.decode(detectorResult.getBits());
      points = detectorResult.getPoints();
    }
    Result result = new Result(decoderResult.getText(), decoderResult.getRawBytes(), points, BarcodeFormat.DATAMATRIX);
    if (decoderResult.getByteSegments() != null) {
      result.putMetadata(ResultMetadataType.BYTE_SEGMENTS, decoderResult.getByteSegments());
    }
    return result;
  }

  /**
   * This method detects a Data Matrix code in a "pure" image -- that is, pure monochrome image
   * which contains only an unrotated, unskewed, image of a Data Matrix code, with some white border
   * around it. This is a specialized method that works exceptionally fast in this special
   * case.
   */
  private static BitMatrix extractPureBits(MonochromeBitmapSource image) throws ReaderException {
    // Now need to determine module size in pixels

    int height = image.getHeight();
    int width = image.getWidth();
    int minDimension = Math.min(height, width);

    // First, skip white border by tracking diagonally from the top left down and to the right:
    int borderWidth = 0;
    while (borderWidth < minDimension && !image.isBlack(borderWidth, borderWidth)) {
      borderWidth++;
    }
    if (borderWidth == minDimension) {
      throw ReaderException.getInstance();
    }

    // And then keep tracking across the top-left black module to determine module size
    int moduleEnd = borderWidth + 1;
    while (moduleEnd < width && image.isBlack(moduleEnd, borderWidth)) {
      moduleEnd++;
    }
    if (moduleEnd == width) {
      throw ReaderException.getInstance();
    }

    int moduleSize = moduleEnd - borderWidth;

    // And now find where the bottommost black module on the first column ends
    int columnEndOfSymbol = height - 1;
    while (columnEndOfSymbol >= 0 && !image.isBlack(borderWidth, columnEndOfSymbol)) {
    	columnEndOfSymbol--;
    }
    if (columnEndOfSymbol < 0) {
      throw ReaderException.getInstance();
    }
    columnEndOfSymbol++;

    // Make sure width of barcode is a multiple of module size
    if ((columnEndOfSymbol - borderWidth) % moduleSize != 0) {
      throw ReaderException.getInstance();
    }
    int dimension = (columnEndOfSymbol - borderWidth) / moduleSize;

    // Push in the "border" by half the module width so that we start
    // sampling in the middle of the module. Just in case the image is a
    // little off, this will help recover.
    borderWidth += moduleSize >> 1;

    int sampleDimension = borderWidth + (dimension - 1) * moduleSize;
    if (sampleDimension >= width || sampleDimension >= height) {
      throw ReaderException.getInstance();
    }

    // Now just read off the bits
    BitMatrix bits = new BitMatrix(dimension);
    for (int i = 0; i < dimension; i++) {
      int iOffset = borderWidth + i * moduleSize;
      for (int j = 0; j < dimension; j++) {
        if (image.isBlack(borderWidth + j * moduleSize, iOffset)) {
          bits.set(i, j);
        }
      }
    }
    return bits;
  }

}


text:
import java.util.NoSuchElementException;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class SinglyLinkedList
{
	private ListNode first;
	private ListNode last;

	public SinglyLinkedList()
	{
		first = null;
		last = null;
	}

	//returns value of first element
	public Object getFirst()
	{
		if (first == null)
		{
			throw new NoSuchElementException();
		}
		else
		{
			return first.getValue();
		}
	}

	public void addFirst(Object value) //returns the value of the first ListNode
	{
		first = new ListNode(value, first);
	}

	public void printList()	//prints out the list
	{
		ListNode temp = first; // start at the first node
		while (temp != null)
		{
			Item i = (Item)(temp.getValue());
			int id1 = i.getId();
			int inv1 = i.getInv();
			System.out.println("Id=" + id1 + ", " + "Inv=" + inv1);
			temp = temp.getNext(); // go to next node
		}
	}

	public void addLast(Object value)	//adds passed in value as a ListNode to the end of the list
	{
		//if list is not empty
		if (first != null)
		{

			ListNode val = new ListNode(value, null);
			last.setNext(val);
			last = val;
		}
		//if empty, just assign new value to first and last
		else
		{
			ListNode o = new ListNode(value, null);
			first = o;
			last = o;
		}
	}

	//returns last element in the SinglyLinkedList
	public Object getLast()
	{
		if (first == null)
		{
			throw new NoSuchElementException();
		}
		else
		{
			return last.getValue();
		}
	}

	//returns number of nodes in the SinglyLinkedList
	public int size()
	{
		int count = 0;
		for (ListNode n = first; n != null; n = n.getNext())
		{
			count++;
		}
		return count;
	}

	//loads Item objects from specified file, inserts in ascending order
	public void loadData()
	{
		clear();
		File afile = new File ("file50.txt");
		Scanner fromfile = null;
		int id, inv;

		try
		{
			fromfile = new Scanner(afile);
		}
		catch (FileNotFoundException e)
		{
			System.out.println("\nFile not found!\n");
			System.exit(1);
		}
		while(fromfile.hasNext())			//if next element, enter loop. if not, exit
		{
			id = fromfile.nextInt();
			inv = fromfile.nextInt();
			Item i = new Item (id,inv);
			insert(i);
		}
	}

	//inserts Item objects in the correct order, ascending
	public void insert(Item i)
	{
		boolean found = false;
		//if empty
		if (first == null)
		{
			addFirst(i);
			last = first;
			return;
		}
		ListNode prev = first;
		ListNode curr = first;
		ListNode n = new ListNode(i, null);

		//find prev, curr, where to insert
		while((curr != null) && (i.compareTo(curr.getValue()) > 0))
		{
			prev = curr;
			curr = curr.getNext();

		}
		//insert before first
		if (curr == first)
		{
			n.setNext(curr);
			first = n;
		}
		//insert after last
		else if (prev == last)
		{
			prev.setNext(n);
			last = n;
		}
		//normal case
		else
		{
			n.setNext(curr);
			prev.setNext(n);
		}
	}

	//returns the first ListNode, as opposed to the value in getFirst()
	public ListNode getFirst2()
	{
		return first;
	}

	//recursive implementation required
	//prints the LinkedList in reverse order
	public void printBackwards(ListNode n)
	{
		if (n != null)
		{
			printBackwards(n.getNext());

			Item i = (Item)(n.getValue());
			int id = i.getId();
			int inv = i.getInv();
			System.out.println("Id= " + id + ", Inv=" + inv);
		}
	}

	//searches for the inputted Id, returns the inventory avaialble
	public void testFind()
	{
		boolean found = false;
		Scanner keyboard = new Scanner (System.in);
		int id = 0;
		System.out.println();
		while (true)
		{
			found = false;
			System.out.print("Please enter an ID number to search for (-1 to quit) -> ");
			id = keyboard.nextInt();
			if (id == -1)
			{
				System.out.println("\n");
				break;
			}
			for (ListNode n = first; n != null; n = n.getNext())
			{
				Object obj = n.getValue();
				Item i = (Item)obj;
				int newid = i.getId();
				if (id == newid)
				{
					System.out.println("Id = " + newid + " Inv = " + i.getInv());
					System.out.println();
					found = true;
					break;
				}
			}
			if (found == false)
			{
				System.out.println("Id = " + id + " No such part in stock!");
				System.out.println();
			}
		}
	}

	//delets a ListNode from the list, given an Id
	public void testDelete()
	{
		int id = 0;
		boolean found = false;
		Scanner keyboard = new Scanner (System.in);
		System.out.println();
		while (true)
		{
			System.out.print("\nPlease enter an ID number to delete (-1 to quit) -> ");
			id = keyboard.nextInt();
			if (id == -1)
			{
				System.out.println();
				break;
			}
			if (first == null)
			{
				System.out.println("List is empty!");
				continue;
			}
			ListNode prev = first;
			ListNode curr = first;
			while((curr != null) && (id != ((Item)(curr.getValue())).getId()))
			{
				prev = curr;
				curr = curr.getNext();
			}
			//if id not in list
			if (curr == null)
			{
				System.out.println("Id # " + id+ "  No such part in stock!");
				continue;
			}
			//if insert after last element
			if (curr == last)
			{
				prev.setNext(null);
				last = prev;
			}
			//if insert before first element
			else if (curr == first)
			{
				first = first.getNext();
				curr.setNext(null);
			}
			//normal case
			else
			{
				prev.setNext(curr.getNext());
			}
			System.out.println("Id #" + id+ " was deleted!");
		}
	}

	//sets all ListNodes in the list to null
	public void clear()
	{
		ListNode n = first;
		while (first != null)
		{
			 n = first;
			 first = first.getNext();
			 n.setNext(null);
		}
		first = last = null;
	}
}

redpajama_set_name: RedPajamaGithub


text:
package io.craigmiller160.stockmarket.gui;

import static io.craigmiller160.stockmarket.controller.StockMarketController.PORTFOLIO_STATE_PROPERTY;
import static io.craigmiller160.stockmarket.controller.StockMarketController.SELECTED_STOCK_PROPERTY;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_200_DAY_AVG;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_200_DAY_AVG_PERCENT;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_50_DAY_AVG;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_50_DAY_AVG_PERCENT;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_TODAY;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_TODAY_PERCENT;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_YEAR_HIGH;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_YEAR_HIGH_PERCENT;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_YEAR_LOW;
import static io.craigmiller160.stockmarket.stock.Stock.CHANGE_YEAR_LOW_PERCENT;
import static io.craigmiller160.stockmarket.stock.Stock.CURRENT_PRICE;
import static io.craigmiller160.stockmarket.stock.Stock.FIFTY_DAY_AVG;
import static io.craigmiller160.stockmarket.stock.Stock.LAST_TRADE_DATE;
import static io.craigmiller160.stockmarket.stock.Stock.LAST_TRADE_TIME;
import static io.craigmiller160.stockmarket.stock.Stock.NAME;
import static io.craigmiller160.stockmarket.stock.Stock.SYMBOL;
import static io.craigmiller160.stockmarket.stock.Stock.TWO_HUNDRED_DAY_AVG;
import static io.craigmiller160.stockmarket.stock.Stock.YEAR_HIGH;
import static io.craigmiller160.stockmarket.stock.Stock.YEAR_LOW;
import static io.craigmiller160.stockmarket.stock.OwnedStock.*;
import io.craigmiller160.mvp.listener.AbstractListenerView;
import io.craigmiller160.stockmarket.stock.OwnedStock;
import io.craigmiller160.stockmarket.stock.Stock;
import io.craigmiller160.stockmarket.util.Fonts;
import io.craigmiller160.stockmarket.util.Language;

import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Font;
import java.beans.PropertyChangeEvent;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Map;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import net.jcip.annotations.NotThreadSafe;
import net.miginfocom.swing.MigLayout;

/**
 * GUI component that defines the panel that displays the detailed
 * information about a stock.
 *

 * Like all GUI classes in this program, this class separates its
 * instantiation code from its assembly code for maximum flexibility.
 *

 * THREAD SAFETY: Swing is NOT thread safe.
 *
 * @author craig
 * @version 2.0
 */
@NotThreadSafe
public class StockDetailsPanel extends AbstractListenerView {

	/**
	 * Format for displaying amounts of money in the GUI.
	 */
	private NumberFormat moneyFormat = new DecimalFormat("$###,###,###,##0.00");

	/**
	 * Format for displaying percentages in the GUI.
	 */
	private NumberFormat percentFormat = new DecimalFormat("###,###,###,##0.00%");

	/**
	 * Format for displaying date values in the GUI.
	 */
	private DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");

	/**
	 * Format for displaying time values in the GUI.
	 */
	private DateFormat timeFormat = new SimpleDateFormat("hh:mmaa");

	/**
	 * The panel created by this class.
	 */
	private final JPanel stockDetailsPanel;

	/**
	 * The scroll pane for the panel created by this class.
	 */
	private final JScrollPane stockDetailsScrollPane;

	/**
	 * Shared <tt>Language</tt> module for locale-specific text.
	 */
	private static final Language LANGUAGE = Language.getInstance();

	/**
	 * The constant name of the not owned panel for the owned panel switcher.
	 */
	private static final String NOT_OWNED_PANEL = "NotOwnedPanel";

	/**
	 * The constant name of the owned panel for the owner panel switcher.
	 */
	private static final String OWNED_PANEL = "OwnedPanel";

	/**
	 * The stock symbol label.
	 */
	private JLabel symbolLabel;

	/**
	 * The company name label.
	 */
	private JLabel nameLabel;

	/**
	 * The current price label.
	 */
	private JLabel currentPriceLabel;

	/**
	 * The current price value.
	 */
	private JLabel currentPriceValue;

	/**
	 * The not owned panel. Displayed when the stock being shown
	 * is not owned in the portfolio.
	 */
	private JPanel notOwnedPanel;

	/**
	 * The owned panel. Displayed when the stock being shown
	 * is owned in the portfolio to show additional stats.
	 */
	private JPanel ownedPanel;

	/**
	 * The panel that switches between displaying the owned and not owned panels.
	 */
	private JPanel ownershipSwitchPanel;

	/**
	 * The layout for the ownership switch panel.
	 */
	private CardLayout ownershipSwitchLayout;

	/**
	 * The label for if the stock isn't owned.
	 */
	private JLabel notOwnedLabel;

	/**
	 * The share quantity label.
	 */
	private JLabel shareQuantityLabel;

	/**
	 * The share quantity value.
	 */
	private JLabel shareQuantityValue;

	/**
	 * the total value label.
	 */
	private JLabel totalValueLabel;

	/**
	 * The total value... value.
	 */
	private JLabel totalValue;

	/**
	 * The net label.
	 */
	private JLabel netLabel;

	/**
	 * The net value.
	 */
	private JLabel netValue;

	/**
	 * The last trade label.
	 */
	private JLabel lastTradeLabel;

	/**
	 * The last trade date value.
	 */
	private JLabel lastTradeDateValue;

	/**
	 * The last trade time value.
	 */
	private JLabel lastTradeTimeValue;

	/**
	 * The day's change label.
	 */
	private JLabel dayChangeLabel;

	/**
	 * The day's change value.
	 */
	private JLabel dayChangeValue;

	/**
	 * The year high label.
	 */
	private JLabel yearHighLabel;

	/**
	 * The year high value.
	 */
	private JLabel yearHighValue;

	/**
	 * The change in year high label.
	 */
	private JLabel changeYearHighLabel;

	/**
	 * The change in year high value.
	 */
	private JLabel changeYearHighValue;

	/**
	 * The year low label.
	 */
	private JLabel yearLowLabel;

	/**
	 * The year low value.
	 */
	private JLabel yearLowValue;

	/**
	 * The change in year low label.
	 */
	private JLabel changeYearLowLabel;

	/**
	 * The change in year low value.
	 */
	private JLabel changeYearLowValue;

	/**
	 * The fifty day average label.
	 */
	private JLabel fiftyDayAvgLabel;

	/**
	 * The fifty day value label.
	 */
	private JLabel fiftyDayAvgValue;

	/**
	 * The change in 50 day average label.
	 */
	private JLabel change50DayAvgLabel;

	/**
	 * The change in 50 day average value.
	 */
	private JLabel change50DayAvgValue;

	/**
	 * The two hundred day average label.
	 */
	private JLabel twoHundredDayAvgLabel;

	/**
	 * The two hundred day average value.
	 */
	private JLabel twoHundredDayAvgValue;

	/**
	 * The change in two hundred day average label.
	 */
	private JLabel change200DayAvgLabel;

	/**
	 * The change in two hundred day average value.
	 */
	private JLabel change200DayAvgValue;

	/**
	 * Create the panel.
	 */
	public StockDetailsPanel() {
		super();
		stockDetailsPanel = createStockDetailsPanel();
		stockDetailsScrollPane = createStockDetailsScrollPane(stockDetailsPanel);
		initComponents();
		assembleStockDetailsPanel();
	}

	/**
	 * Create the <tt>JPanel</tt> that this class wraps around.
	 *
	 * @return the created <tt>JPanel</tt>.
	 */
	private JPanel createStockDetailsPanel(){
		JPanel stockDetailsPanel = new JPanel();
		stockDetailsPanel.setLayout(new MigLayout("center"));
		stockDetailsPanel.setBackground(Color.WHITE);

		return stockDetailsPanel;
	}

	/**
	 * Create the <tt>JScrollPane</tt> for the panel created by this class
	 * to reside in.
	 *
	 * @return the created <tt>JScrollPane</tt>.
	 */
	private JScrollPane createStockDetailsScrollPane(JPanel stockDetailsPanel){
		JScrollPane scrollPane = new JScrollPane(stockDetailsPanel);
		scrollPane.getVerticalScrollBar().setUnitIncrement(15);
		scrollPane.getHorizontalScrollBar().setUnitIncrement(15);

		return scrollPane;
	}

	/**
	 * Create the <tt>JScrollPane</tt> for the panel created by this class
	 * to reside in.
	 *
	 * @return the created <tt>JScrollPane</tt>.
	 */
	private void initComponents(){
		symbolLabel = createLabel("", Fonts.BIG_LABEL_FONT,
				LANGUAGE.getString("stock_symbol_tooltip"));
		nameLabel = createLabel("", Fonts.BIG_LABEL_FONT,
				LANGUAGE.getString("stock_name_tooltip"));
		currentPriceLabel = createLabel(LANGUAGE.getString("current_price_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("current_price_tooltip"));
		currentPriceValue = createLabel("$0.00", Fonts.FIELD_FONT,
				LANGUAGE.getString("current_price_tooltip"));

		notOwnedPanel = new JPanel();
		notOwnedPanel.setLayout(new MigLayout());
		notOwnedPanel.setBackground(Color.WHITE);

		ownedPanel = new JPanel();
		ownedPanel.setLayout(new MigLayout());
		ownedPanel.setBackground(Color.WHITE);

		ownershipSwitchLayout = new CardLayout();
		ownershipSwitchPanel = new JPanel();
		ownershipSwitchPanel.setLayout(ownershipSwitchLayout);

		notOwnedLabel = createLabel(LANGUAGE.getString("not_owned_label"),
				Fonts.LABEL_FONT, null);

		shareQuantityLabel = createLabel(LANGUAGE.getString("share_quantity_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("share_quantity_tooltip"));

		shareQuantityValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("share_quantity_tooltip"));

		totalValueLabel = createLabel(LANGUAGE.getString("stock_value_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("stock_value_tooltip"));

		totalValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("stock_value_tooltip"));

		netLabel = createLabel(LANGUAGE.getString("stock_net_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("stock_net_tooltip"));

		netValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("stock_net_tooltip"));

		lastTradeLabel = createLabel(LANGUAGE.getString("last_trade_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("last_trade_tooltip"));

		lastTradeDateValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("last_trade_date_tooltip"));

		lastTradeTimeValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("last_trade_time_tooltip"));

		dayChangeLabel = createLabel(LANGUAGE.getString("change_from_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("day_change_tooltip"));

		dayChangeValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("day_change_tooltip"));

		yearHighLabel = createLabel(LANGUAGE.getString("year_high_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("year_high_tooltip"));

		yearHighValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("year_high_tooltip"));

		changeYearHighLabel = createLabel(LANGUAGE.getString("change_from_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("change_year_high_tooltip"));

		changeYearHighValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("change_year_high_tooltip"));

		yearLowLabel = createLabel(LANGUAGE.getString("year_low_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("year_low_tooltip"));

		yearLowValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("year_low_tooltip"));

		changeYearLowLabel = createLabel(LANGUAGE.getString("change_from_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("change_year_low_tooltip"));

		changeYearLowValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("change_year_low_tooltip"));

		fiftyDayAvgLabel = createLabel(LANGUAGE.getString("fifty_day_avg_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("fifty_day_avg_tooltip"));

		fiftyDayAvgValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("fifty_day_avg_tooltip"));

		change50DayAvgLabel = createLabel(LANGUAGE.getString("change_from_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("change_50_avg_tooltip"));

		change50DayAvgValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("change_50_avg_tooltip"));

		twoHundredDayAvgLabel = createLabel(LANGUAGE.getString("two_hundred_day_avg_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("two_hundred_day_avg_tooltip"));

		twoHundredDayAvgValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("two_hundred_day_avg_tooltip"));

		change200DayAvgLabel = createLabel(LANGUAGE.getString("change_from_label") + ": ",
				Fonts.LABEL_FONT, LANGUAGE.getString("change_200_avg_tooltip"));

		change200DayAvgValue = createLabel("", Fonts.FIELD_FONT,
				LANGUAGE.getString("change_200_avg_tooltip"));
	}

	/**
	 * Utility method for creating a <tt>JLabel</tt> based on the specified
	 * parameters.
	 *
	 * @param text the label's text.
	 * @param font the label's font.
	 * @param toolTipText the label's tool tip text.
	 * @return the created label.
	 */
	private JLabel createLabel(String text, Font font, String toolTipText){
		JLabel label = new JLabel(text);
		label.setFont(font);
		label.setToolTipText(toolTipText);

		return label;
	}

	/**
	 * Assemble the stock details panel.
	 */
	private void assembleStockDetailsPanel(){
		stockDetailsPanel.add(symbolLabel, "center, split 2, span 2, gap 0 0 20");
		stockDetailsPanel.add(nameLabel, "gap 0 0 20, wrap");
		stockDetailsPanel.add(currentPriceLabel, "center, split 2, span 2, gap 0 0 20");
		stockDetailsPanel.add(currentPriceValue, "wrap");

		notOwnedPanel.add(notOwnedLabel, "center, pushx");
		ownershipSwitchPanel.add(notOwnedPanel, NOT_OWNED_PANEL);

		ownedPanel.add(shareQuantityLabel, "gap 0");
		ownedPanel.add(shareQuantityValue, "");
		ownedPanel.add(totalValueLabel, "gap 20");
		ownedPanel.add(totalValue, "");
		ownedPanel.add(netLabel, "gap 20");
		ownedPanel.add(netValue, "");
		ownershipSwitchPanel.add(ownedPanel, OWNED_PANEL);

		stockDetailsPanel.add(ownershipSwitchPanel, "center, span 2, gap 0 0 20, wrap");

		stockDetailsPanel.add(lastTradeLabel, "split 2");
		stockDetailsPanel.add(lastTradeDateValue, "");

		stockDetailsPanel.add(dayChangeLabel, "split 2, gap 30 0 20");
		stockDetailsPanel.add(dayChangeValue, "wrap");

		stockDetailsPanel.add(lastTradeTimeValue, "align right, wrap");

		stockDetailsPanel.add(yearHighLabel, "split 2, gap 0 0 20");
		stockDetailsPanel.add(yearHighValue, "");
		stockDetailsPanel.add(changeYearHighLabel, "split 2, gap 30 0 20");
		stockDetailsPanel.add(changeYearHighValue, "wrap");

		stockDetailsPanel.add(yearLowLabel, "split 2, gap 0 0 20");
		stockDetailsPanel.add(yearLowValue, "");
		stockDetailsPanel.add(changeYearLowLabel, "split 2, gap 30 0 20");
		stockDetailsPanel.add(changeYearLowValue, "wrap");

		stockDetailsPanel.add(fiftyDayAvgLabel, "split 2, gap 0 0 20");
		stockDetailsPanel.add(fiftyDayAvgValue, "");
		stockDetailsPanel.add(change50DayAvgLabel, "split 2, gap 30 0 20");
		stockDetailsPanel.add(change50DayAvgValue, "wrap");

		stockDetailsPanel.add(twoHundredDayAvgLabel, "split 2, gap 0 0 20");
		stockDetailsPanel.add(twoHundredDayAvgValue, "");
		stockDetailsPanel.add(change200DayAvgLabel, "split 2, gap 30 0 20");
		stockDetailsPanel.add(change200DayAvgValue, "wrap");
	}

	/**
	 * Return the panel created by this class.
	 *
	 * @return the panel created by this class.
	 */
	public JScrollPane getPanel(){
		return stockDetailsScrollPane;
	}

	/**
	 * {@inheritDoc}
	 * @throws IllegalArgumentException if the new value from the event is not
	 * the expected type to perform the operation.
	 */
	@Override
	public void changeProperty(PropertyChangeEvent event) {
		if(event.getPropertyName() == SELECTED_STOCK_PROPERTY){
			if(event.getNewValue() instanceof Stock){
				displayStockDetails((Stock) event.getNewValue());
			}
			else{
				throw new IllegalArgumentException(
						"Not instance of Stock: " + event.getNewValue());
			}
		}
		else if(event.getPropertyName() == PORTFOLIO_STATE_PROPERTY){
			if(event.getNewValue() instanceof PortfolioState){
				portfolioStateChanged((PortfolioState) event.getNewValue());
			}
			else{
				throw new IllegalArgumentException(
						"Not instance of PortfolioState: " + event.getNewValue());
			}
		}
	}

	/**
	 * Display the details of the specified stock in the panel.
	 *
	 * @param stock the stock to display.
	 */
	public void displayStockDetails(Stock stock){
		Map<String,Object> valueMap = stock.getValueMap(true);

		String symbol = (String) valueMap.get(SYMBOL);
		setStockSymbol(symbol);

		String name = (String) valueMap.get(NAME);
		setStockName(name);

		BigDecimal currentPrice = (BigDecimal) valueMap.get(CURRENT_PRICE);
		setCurrentPrice(currentPrice);

		Calendar lastTradeDate = (Calendar) valueMap.get(LAST_TRADE_DATE);
		setLastTradeDate(lastTradeDate);

		Calendar lastTradeTime = (Calendar) valueMap.get(LAST_TRADE_TIME);
		setLastTradeTime(lastTradeTime);

		BigDecimal changeToday = (BigDecimal) valueMap.get(CHANGE_TODAY);
		BigDecimal changeTodayPercent = (BigDecimal) valueMap.get(CHANGE_TODAY_PERCENT);
		setChangeToday(changeToday, changeTodayPercent);

		BigDecimal yearHigh = (BigDecimal) valueMap.get(YEAR_HIGH);
		setYearHigh(yearHigh);

		BigDecimal changeYearHigh = (BigDecimal) valueMap.get(CHANGE_YEAR_HIGH);
		BigDecimal changeYearHighPercent = (BigDecimal) valueMap.get(CHANGE_YEAR_HIGH_PERCENT);
		setChangeYearHigh(changeYearHigh, changeYearHighPercent);

		BigDecimal yearLow = (BigDecimal) valueMap.get(YEAR_LOW);
		setYearLow(yearLow);

		BigDecimal changeYearLow = (BigDecimal) valueMap.get(CHANGE_YEAR_LOW);
		BigDecimal changeYearLowPercent = (BigDecimal) valueMap.get(CHANGE_YEAR_LOW_PERCENT);
		setChangeYearLow(changeYearLow, changeYearLowPercent);

		BigDecimal fiftyDayAvg = (BigDecimal) valueMap.get(FIFTY_DAY_AVG);
		set50DayAvg(fiftyDayAvg);

		BigDecimal change50DayAvg = (BigDecimal) valueMap.get(CHANGE_50_DAY_AVG);
		BigDecimal change50DayAvgPercent = (BigDecimal) valueMap.get(CHANGE_50_DAY_AVG_PERCENT);
		setChange50DayAvg(change50DayAvg, change50DayAvgPercent);

		BigDecimal twoHundredDayAvg = (BigDecimal) valueMap.get(TWO_HUNDRED_DAY_AVG);
		set200DayAvg(twoHundredDayAvg);

		BigDecimal change200DayAvg = (BigDecimal) valueMap.get(CHANGE_200_DAY_AVG);
		BigDecimal change200DayAvgPercent = (BigDecimal) valueMap.get(CHANGE_200_DAY_AVG_PERCENT);
		setChange200DayAvg(change200DayAvg, change200DayAvgPercent);

		if(stock instanceof OwnedStock){
			int quantity = (Integer) valueMap.get(QUANTITY_OF_SHARES);
			setStockQuantity(quantity);

			BigDecimal value = (BigDecimal) valueMap.get(TOTAL_VALUE);
			setTotalValue(value);

			BigDecimal net = (BigDecimal) valueMap.get(NET);
			setNet(net);
		}

	}

	/**
	 * Set the share quantity label.
	 *
	 * @param quantity the quantity of shares.
	 */
	public void setStockQuantity(int quantity){
		shareQuantityValue.setText("" + quantity);
	}

	/**
	 * Set the total value label.
	 *
	 * @param value the total value of all shares of the stock.
	 */
	public void setTotalValue(BigDecimal value){
		totalValue.setText(moneyFormat.format(value));
	}

	/**
	 * Set the net gain/loss on the stock label.
	 *
	 * @param net the net gain/loss on the stock.
	 */
	public void setNet(BigDecimal net){
		netValue.setText(moneyFormat.format(net));
	}

	public void setStockSymbol(String symbol){
		symbolLabel.setText(symbol + ": ");
	}

	/**
	 * Set the company name label.
	 *
	 * @param name the company name.
	 */
	public void setStockName(String name){
		nameLabel.setText(name);
	}

	/**
	 * Set the current price label.
	 *
	 * @param currentPrice the current price.
	 */
	public void setCurrentPrice(BigDecimal currentPrice){
		currentPriceValue.setText(moneyFormat.format(currentPrice));
	}

	/**
	 * Set the last trade date label.
	 *
	 * @param lastTradeDate the last trade date.
	 */
	public void setLastTradeDate(Calendar lastTradeDate){
		lastTradeDateValue.setText(dateFormat.format(lastTradeDate.getTime()));
	}

	/**
	 * Set the last trade time label.
	 *
	 * @param lastTradeTime the last trade time.
	 */
	public void setLastTradeTime(Calendar lastTradeTime){
		lastTradeTimeValue.setText(timeFormat.format(lastTradeTime.getTime()));
	}

	/**
	 * Set the change in price today label.
	 *
	 * @param changeToday the change in price today.
	 * @param changeTodayPercent the change in price today in percent.
	 */
	public void setChangeToday(BigDecimal changeToday, BigDecimal changeTodayPercent){
		dayChangeValue.setText(
				moneyFormat.format(changeToday)
				+ " (" + percentFormat.format(changeTodayPercent.divide(new BigDecimal(100))) + ")");
	}

	/**
	 * Set the year high label.
	 *
	 * @param yearHigh the year high.
	 */
	public void setYearHigh(BigDecimal yearHigh){
		yearHighValue.setText(moneyFormat.format(yearHigh));
	}

	/**
	 * Set the change in year high label.
	 *
	 * @param changeYearHigh the change in year high.
	 * @param changeYearHighPercent the change in year high in percent.
	 */
	public void setChangeYearHigh(BigDecimal changeYearHigh, BigDecimal changeYearHighPercent){
		changeYearHighValue.setText(
				moneyFormat.format(changeYearHigh)
				+ " (" + percentFormat.format(changeYearHighPercent.divide(new BigDecimal(100))) + ")");
	}

	/**
	 * Set the year low label.
	 *
	 * @param yearLow the year low.
	 */
	public void setYearLow(BigDecimal yearLow){
		yearLowValue.setText(moneyFormat.format(yearLow));
	}

	/**
	 * Set the change in year low label.
	 *
	 * @param changeYearLow the change in year low.
	 * @param changeYearLowPercent the change in year low in percent.
	 */
	public void setChangeYearLow(BigDecimal changeYearLow, BigDecimal changeYearLowPercent){
		changeYearLowValue.setText(
				moneyFormat.format(changeYearLow)
				+ " (" + percentFormat.format(changeYearLowPercent.divide(new BigDecimal(100))) + ")");
	}

	/**
	 * Set the 50 day average label.
	 *
	 * @param fiftyDayAvg the 50 day average.
	 */
	public void set50DayAvg(BigDecimal fiftyDayAvg){
		fiftyDayAvgValue.setText(moneyFormat.format(fiftyDayAvg));
	}

	/**
	 * Set the change in 50 day average label.
	 *
	 * @param change50DayAvg the change in 50 day average.
	 * @param change50DayAvgPercent the change in 50 day average in percent.
	 */
	public void setChange50DayAvg(BigDecimal change50DayAvg, BigDecimal change50DayAvgPercent){
		change50DayAvgValue.setText(
				moneyFormat.format(change50DayAvg)
				+ " (" + percentFormat.format(change50DayAvgPercent.divide(new BigDecimal(100))) + ")");
	}

	/**
	 * Set the 200 day average label.
	 *
	 * @param twoHundredDayAvg the 200 day average.
	 */
	public void set200DayAvg(BigDecimal twoHundredDayAvg){
		twoHundredDayAvgValue.setText(moneyFormat.format(twoHundredDayAvg));
	}

	/**
	 * Set the change in 200 day average label.
	 *
	 * @param change200DayAvg the change in 200 day average.
	 * @param change200DayAvgPercent the change in 200 day average in percent.
	 */
	public void setChange200DayAvg(BigDecimal change200DayAvg, BigDecimal change200DayAvgPercent){
		change200DayAvgValue.setText(
				moneyFormat.format(change200DayAvg)
				+ " (" + percentFormat.format(change200DayAvgPercent.divide(new BigDecimal(100))) + ")");
	}

	/**
	 * Respond to a change in the portfolio state by changing which
	 * components are enabled/disabled, shown/hidden, etc.
	 *
	 * @param portfolioState the state of the portfolio.
	 */
	public void portfolioStateChanged(PortfolioState portfolioState){
		if(portfolioState == PortfolioState.CLOSED){

		}
		else if(portfolioState == PortfolioState.OPEN_NO_STOCK){

		}
		else if(portfolioState == PortfolioState.OPEN_STOCK){
			ownershipSwitchLayout.show(ownershipSwitchPanel, NOT_OWNED_PANEL);
		}
		else if(portfolioState == PortfolioState.OPEN_OWNED_STOCK){
			ownershipSwitchLayout.show(ownershipSwitchPanel, OWNED_PANEL);
		}
	}

	@Override
	public Object getValueForAction(String actionCommand) {
		//LOGGER.logp(Level.FINEST, this.getClass().getName(), "getValue",
				//"Entering method", new Object[] {"Command: " + valueToGet});

		return null;
	}

}


text:
package org.gradle.internal;

import org.gradle.Person;

public class PersonInternal extends Person {
    public PersonInternal(String name) {
        super(name);
    }
}


text:
<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "vmes".
 *
 * @property integer $id
 * @property string $title
 * @property string $subtitle
 */
class Vmes extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'vmes';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['title', 'subtitle'], 'required'],
            [['title', 'subtitle'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'subtitle' => 'Subtitle',
        ];
    }
}


text:
package de.turban.deadlock.tracer.runtime.datacollection;

import java.lang.ref.WeakReference;
import java.util.Objects;

class LockWeakRef extends WeakReference<Object> {

    private final int hash;

    public LockWeakRef(Object referent) {
        super(referent);
        Objects.requireNonNull(referent);
        hash = System.identityHashCode(referent);
    }

    @Override
    public int hashCode() {
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        LockWeakRef other = (LockWeakRef) obj;
        Object otherObj = other.get();
        Object thisObj = this.get();
        return otherObj == thisObj;
    }

}


text:
echo Conventions:
/bin/echo -n "Checking ... "
xmllint --schema conventions.xsd --path xsd --noout Examples/Input/conventions.xml
echo -------

echo CurveConfig:
/bin/echo -n "Checking ... "
xmllint --schema curveconfig.xsd --path xsd --noout Examples/Input/curveconfig.xml
echo -------

echo Portfolio Files Examples:
find Examples -name 'portfolio*.xml' -print0 | while read -d $'\0' file
do
  /bin/echo -n "Checking ... "
  xmllint --schema instruments.xsd --path xsd --noout $file
done
echo -------

echo Netting Set Files Examples:
find Examples -name 'netting*.xml' -print0 | while read -d $'\0' file
do
  /bin/echo -n "Checking ... "
  xmllint --schema nettingsetdefinitions.xsd --path xsd --noout $file
done
echo -------

echo Simulation Files Examples:
find Examples -name 'simulation*.xml' -print0 | while read -d $'\0' file
do
  /bin/echo -n "Checking ... "
  xmllint --schema simulation.xsd --path xsd --noout $file
done
echo -------

echo Pricing Engine Files Examples:
find Examples -name 'pricingeng*.xml' -print0 | while read -d $'\0' file
do
  /bin/echo -n "Checking ... "
  xmllint --schema pricingengines.xsd --path xsd --noout $file
done
echo -------

echo Todays Market Files Examples:
find Examples -name 'todaysmarket*.xml' -print0 | while read -d $'\0' file
do
  /bin/echo -n "Checking ... "
  xmllint --schema todaysmarket.xsd --path xsd --noout $file
done
echo -------

echo ORE Examples:
find Examples -name 'ore*.xml' -print0 | while read -d $'\0' file
do
  /bin/echo -n "Checking ... "
  xmllint --schema ore.xsd --path xsd --noout $file
done
echo -------


text:
package mesosphere.marathon

import javax.inject.Provider

import com.codahale.metrics.MetricRegistry
import com.google.inject.AbstractModule
import com.google.inject.matcher.{ AbstractMatcher, Matchers }
import org.aopalliance.intercept.{ MethodInterceptor, MethodInvocation }
import org.apache.log4j.{ Level, Logger }
import org.rogach.scallop.ScallopConf

/**
  * Options related to debugging marathon.
  * All options should be optional and turned off by default.
  */
trait DebugConf extends ScallopConf {

  lazy val debugTracing = opt[Boolean]("enable_tracing",
    descr = "Enable trace logging of service method calls",
    default = Some(false),
    noshort = true)

  lazy val enableMetrics = opt[Boolean]("enable_metrics",
    descr = "Enable metric measurement of service method calls",
    default = Some(false),
    noshort = true)

  lazy val logLevel = opt[String]("logging_level",
    descr = "Set logging level to one of: off, fatal, error, warn, info, debug, trace, all",
    noshort = true
  )
}

class DebugModule(conf: DebugConf) extends AbstractModule {

  trait Behavior extends MethodInterceptor {
    def className(in: MethodInvocation): String = in.getThis.getClass.getName
  }

  /**
    * Measure processing time of each service method.
    */
  class MetricsBehavior(provider: Provider[MetricRegistry]) extends Behavior {
    override def invoke(in: MethodInvocation): AnyRef = {
      val timer = provider.get.timer(s"service.${className(in)}.${in.getMethod.getName}")
      val ctx = timer.time()
      try {
        in.proceed()
      }
      finally {
        ctx.stop()
      }
    }
  }

  /**
    * Add trace, whenever a service method is entered and finished.
    */
  class TracingBehavior extends Behavior {
    override def invoke(in: MethodInvocation): AnyRef = {
      val logger = Logger.getLogger(className(in))
      val method = s"""${className(in)}.${in.getMethod.getName}(${in.getArguments.mkString(", ")})"""
      logger.trace(s">>> $method")
      val result = in.proceed()
      logger.trace(s"<<< $method")
      result
    }
  }

  object MarathonMatcher extends AbstractMatcher[Class[_]] {
    override def matches(t: Class[_]): Boolean = t.getPackage.getName.startsWith("mesosphere")
  }

  override def configure(): Unit = {
    //set trace log level
    conf.logLevel.get.foreach(level => Logger.getRootLogger.setLevel(Level.toLevel(level.toUpperCase())))

    //add behaviors
    val registry = getProvider(classOf[MetricRegistry])
    val tracing = conf.debugTracing.get.filter(identity).map(_ => new TracingBehavior)
    val metrics = conf.enableMetrics.get.filter(identity).map(_ => new MetricsBehavior(registry))
    val behaviors = (tracing :: metrics :: Nil).flatten
    if (behaviors.nonEmpty) bindInterceptor(MarathonMatcher, Matchers.any(), behaviors: _*)
  }
}


text:
A PSR-7 adapter for [SecureHeaders](https://github.com/aidantwoods/SecureHeaders).
For more information on adapters, see [Framework Integration](https://github.com/aidantwoods/SecureHeaders/wiki/Framework-Integration) in the SecureHeaders Wiki.

## Installation

`composer require secureheaders/psradapter`

## Usage

Assuming you already have a PSR-7 response object (e.g. returned from a previous middleware) in the `$response` variable:

```php
// Configure SecureHeaders
$headers = new Aidantwoods\SecureHeaders\SecureHeaders;
$headers->strictMode();

// Instantiate the adapter with your response object
$adapter = new SecureHeaders\PsrHttpAdapter\Psr7Adapter($response);

// Apply your SecureHeaders configuration
$headers->apply($adapter);

// And finally retrieve the updated HTTP response object
$response = $adapter->getSecuredResponse();
```


text:
<?xml version="1.0" encoding="UTF-8"?>
<configurationDescriptor version="62">
  <logicalFolder name="root" displayName="root" projectFiles="true">
    <logicalFolder name="HeaderFiles"
                   displayName="Header Files"
                   projectFiles="true">
    </logicalFolder>
    <logicalFolder name="LinkerScript"
                   displayName="Linker Files"
                   projectFiles="true">
    </logicalFolder>
    <logicalFolder name="SourceFiles"
                   displayName="Source Files"
                   projectFiles="true">
      <itemPath>main.c</itemPath>
    </logicalFolder>
    <logicalFolder name="ExternalFiles"
                   displayName="Important Files"
                   projectFiles="false">
      <itemPath>Makefile</itemPath>
    </logicalFolder>
  </logicalFolder>
  <projectmakefile>Makefile</projectmakefile>
  <confs>
    <conf name="default" type="2">
      <toolsSet>
        <developmentServer>localhost</developmentServer>
        <targetDevice>PIC18F45K20</targetDevice>
        <targetHeader></targetHeader>
        <targetPluginBoard></targetPluginBoard>
        <platformTool>PICkit3PlatformTool</platformTool>
        <languageToolchain>XC8</languageToolchain>
        <languageToolchainVersion>1.33</languageToolchainVersion>
        <platform>3</platform>
      </toolsSet>
      <compileType>
        <linkerTool>
          <linkerLibItems>
          </linkerLibItems>
        </linkerTool>
        <archiverTool>
        </archiverTool>
        <loading>
          <useAlternateLoadableFile>false</useAlternateLoadableFile>
          <parseOnProdLoad>false</parseOnProdLoad>
          <alternateLoadableFile></alternateLoadableFile>
        </loading>
      </compileType>
      <makeCustomizationType>
        <makeCustomizationPreStepEnabled>false</makeCustomizationPreStepEnabled>
        <makeCustomizationPreStep></makeCustomizationPreStep>
        <makeCustomizationPostStepEnabled>false</makeCustomizationPostStepEnabled>
        <makeCustomizationPostStep></makeCustomizationPostStep>
        <makeCustomizationPutChecksumInUserID>false</makeCustomizationPutChecksumInUserID>
        <makeCustomizationEnableLongLines>false</makeCustomizationEnableLongLines>
        <makeCustomizationNormalizeHexFile>false</makeCustomizationNormalizeHexFile>
      </makeCustomizationType>
      <HI-TECH-COMP>
        <property key="asmlist" value="true"/>
        <property key="define-macros" value=""/>
        <property key="extra-include-directories" value=""/>
        <property key="identifier-length" value="255"/>
        <property key="operation-mode" value="free"/>
        <property key="opt-xc8-compiler-strict_ansi" value="false"/>
        <property key="optimization-assembler" value="true"/>
        <property key="optimization-assembler-files" value="true"/>
        <property key="optimization-debug" value="false"/>
        <property key="optimization-global" value="true"/>
        <property key="optimization-invariant-enable" value="false"/>
        <property key="optimization-invariant-value" value="16"/>
        <property key="optimization-level" value="9"/>
        <property key="optimization-set" value="default"/>
        <property key="optimization-speed" value="false"/>
        <property key="preprocess-assembler" value="true"/>
        <property key="undefine-macros" value=""/>
        <property key="use-cci" value="false"/>
        <property key="use-iar" value="false"/>
        <property key="verbose" value="false"/>
        <property key="warning-level" value="0"/>
        <property key="what-to-do" value="ignore"/>
      </HI-TECH-COMP>
      <HI-TECH-LINK>
        <property key="additional-options-checksum" value=""/>
        <property key="additional-options-code-offset" value=""/>
        <property key="additional-options-command-line" value=""/>
        <property key="additional-options-errata" value=""/>
        <property key="additional-options-extend-address" value="false"/>
        <property key="additional-options-trace-type" value=""/>
        <property key="additional-options-use-response-files" value="false"/>
        <property key="backup-reset-condition-flags" value="false"/>
        <property key="calibrate-oscillator" value="true"/>
        <property key="calibrate-oscillator-value" value=""/>
        <property key="clear-bss" value="true"/>
        <property key="code-model-external" value="wordwrite"/>
        <property key="code-model-rom" value=""/>
        <property key="create-html-files" value="false"/>
        <property key="data-model-ram" value=""/>
        <property key="data-model-size-of-double" value="24"/>
        <property key="data-model-size-of-float" value="24"/>
        <property key="display-class-usage" value="false"/>
        <property key="display-hex-usage" value="false"/>
        <property key="display-overall-usage" value="true"/>
        <property key="display-psect-usage" value="false"/>
        <property key="fill-flash-options-addr" value=""/>
        <property key="fill-flash-options-const" value=""/>
        <property key="fill-flash-options-how" value="0"/>
        <property key="fill-flash-options-inc-const" value="1"/>
        <property key="fill-flash-options-increment" value=""/>
        <property key="fill-flash-options-seq" value=""/>
        <property key="fill-flash-options-what" value="0"/>
        <property key="format-hex-file-for-download" value="false"/>
        <property key="initialize-data" value="true"/>
        <property key="keep-generated-startup.as" value="false"/>
        <property key="link-in-c-library" value="true"/>
        <property key="link-in-peripheral-library" value="true"/>
        <property key="managed-stack" value="false"/>
        <property key="opt-xc8-linker-file" value="false"/>
        <property key="opt-xc8-linker-link_startup" value="false"/>
        <property key="opt-xc8-linker-serial" value=""/>
        <property key="program-the-device-with-default-config-words" value="true"/>
      </HI-TECH-LINK>
      <PICkit3PlatformTool>
        <property key="AutoSelectMemRanges" value="auto"/>
        <property key="Freeze Peripherals" value="true"/>
        <property key="SecureSegment.SegmentProgramming" value="FullChipProgramming"/>
        <property key="ToolFirmwareFilePath"
                  value="Press to browse for a specific firmware version"/>
        <property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
        <property key="firmware.download.all" value="false"/>
        <property key="hwtoolclock.frcindebug" value="false"/>
        <property key="memories.aux" value="false"/>
        <property key="memories.bootflash" value="true"/>
        <property key="memories.configurationmemory" value="true"/>
        <property key="memories.configurationmemory2" value="true"/>
        <property key="memories.dataflash" value="true"/>
        <property key="memories.eeprom" value="true"/>
        <property key="memories.flashdata" value="true"/>
        <property key="memories.id" value="true"/>
        <property key="memories.programmemory" value="true"/>
        <property key="memories.programmemory.end" value="0x7fff"/>
        <property key="memories.programmemory.partition2" value="true"/>
        <property key="memories.programmemory.partition2.end"
                  value="${memories.programmemory.partition2.end.value}"/>
        <property key="memories.programmemory.partition2.start"
                  value="${memories.programmemory.partition2.start.value}"/>
        <property key="memories.programmemory.start" value="0x0"/>
        <property key="poweroptions.powerenable" value="true"/>
        <property key="programmertogo.imagename" value=""/>
        <property key="programoptions.donoteraseauxmem" value="false"/>
        <property key="programoptions.eraseb4program" value="true"/>
        <property key="programoptions.pgmspeed" value="2"/>
        <property key="programoptions.preservedataflash" value="false"/>
        <property key="programoptions.preserveeeprom" value="false"/>
        <property key="programoptions.preserveprogramrange" value="false"/>
        <property key="programoptions.preserveprogramrange.end" value="0x7fff"/>
        <property key="programoptions.preserveprogramrange.start" value="0x0"/>
        <property key="programoptions.preserveuserid" value="false"/>
        <property key="programoptions.programcalmem" value="false"/>
        <property key="programoptions.programuserotp" value="false"/>
        <property key="programoptions.testmodeentrymethod" value="VPPFirst"/>
        <property key="programoptions.usehighvoltageonmclr" value="false"/>
        <property key="programoptions.uselvpprogramming" value="false"/>
        <property key="voltagevalue" value="3.25"/>
      </PICkit3PlatformTool>
      <XC8-config-global>
        <property key="advanced-elf" value="true"/>
        <property key="output-file-format" value="-mcof,+elf"/>
        <property key="stack-size-high" value="auto"/>
        <property key="stack-size-low" value="auto"/>
        <property key="stack-size-main" value="auto"/>
        <property key="stack-type" value="compiled"/>
      </XC8-config-global>
    </conf>
  </confs>
</configurationDescriptor>


text:
namespace LiveSplit.View
{
    partial class AuthenticationDialog
    {
        /// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AuthenticationDialog));
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.tbxUsername = new System.Windows.Forms.TextBox();
            this.tbxPassword = new System.Windows.Forms.TextBox();
            this.btnCancel = new System.Windows.Forms.Button();
            this.btnOK = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.chkRememberPassword = new System.Windows.Forms.CheckBox();
            this.tableLayoutPanel1.SuspendLayout();
            this.SuspendLayout();
            //
            // tableLayoutPanel1
            //
            this.tableLayoutPanel1.ColumnCount = 3;
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 74F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 81F));
            this.tableLayoutPanel1.Controls.Add(this.tbxUsername, 1, 0);
            this.tableLayoutPanel1.Controls.Add(this.tbxPassword, 1, 1);
            this.tableLayoutPanel1.Controls.Add(this.btnCancel, 2, 3);
            this.tableLayoutPanel1.Controls.Add(this.btnOK, 1, 3);
            this.tableLayoutPanel1.Controls.Add(this.label2, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.label1, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.chkRememberPassword, 1, 2);
            this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel1.Location = new System.Drawing.Point(7, 7);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.tableLayoutPanel1.RowCount = 4;
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel1.Size = new System.Drawing.Size(237, 126);
            this.tableLayoutPanel1.TabIndex = 0;
            //
            // tbxUsername
            //
            this.tbxUsername.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.tableLayoutPanel1.SetColumnSpan(this.tbxUsername, 2);
            this.tbxUsername.Location = new System.Drawing.Point(77, 4);
            this.tbxUsername.Name = "tbxUsername";
            this.tbxUsername.Size = new System.Drawing.Size(157, 20);
            this.tbxUsername.TabIndex = 0;
            //
            // tbxPassword
            //
            this.tbxPassword.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
            this.tableLayoutPanel1.SetColumnSpan(this.tbxPassword, 2);
            this.tbxPassword.Location = new System.Drawing.Point(77, 33);
            this.tbxPassword.Name = "tbxPassword";
            this.tbxPassword.Size = new System.Drawing.Size(157, 20);
            this.tbxPassword.TabIndex = 1;
            this.tbxPassword.UseSystemPasswordChar = true;
            //
            // btnCancel
            //
            this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnCancel.Location = new System.Drawing.Point(159, 100);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 4;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            //
            // btnOK
            //
            this.btnOK.Anchor = System.Windows.Forms.AnchorStyles.Right;
            this.btnOK.Location = new System.Drawing.Point(78, 100);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new System.Drawing.Size(75, 23);
            this.btnOK.TabIndex = 3;
            this.btnOK.Text = "OK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
            //
            // label2
            //
            this.label2.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(3, 37);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(56, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "Password:";
            //
            // label1
            //
            this.label1.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(3, 8);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(58, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Username:";
            //
            // chkRememberPassword
            //
            this.chkRememberPassword.AutoSize = true;
            this.tableLayoutPanel1.SetColumnSpan(this.chkRememberPassword, 2);
            this.chkRememberPassword.Location = new System.Drawing.Point(77, 61);
            this.chkRememberPassword.Name = "chkRememberPassword";
            this.chkRememberPassword.Size = new System.Drawing.Size(126, 17);
            this.chkRememberPassword.TabIndex = 2;
            this.chkRememberPassword.Text = "Remember Password";
            this.chkRememberPassword.UseVisualStyleBackColor = true;
            //
            // AuthenticationDialog
            //
            this.AcceptButton = this.btnOK;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.CancelButton = this.btnCancel;
            this.ClientSize = new System.Drawing.Size(251, 140);
            this.Controls.Add(this.tableLayoutPanel1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "AuthenticationDialog";
            this.Padding = new System.Windows.Forms.Padding(7);
            this.Text = "Authentication";
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
        private System.Windows.Forms.TextBox tbxUsername;
        private System.Windows.Forms.TextBox tbxPassword;
        private System.Windows.Forms.Button btnCancel;
        private System.Windows.Forms.Button btnOK;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.CheckBox chkRememberPassword;
    }
}


text:
DevStack is a set of scripts and utilities to quickly deploy an OpenStack cloud.

# Goals

* To quickly build dev OpenStack environments in a clean Ubuntu or Fedora environment
* To describe working configurations of OpenStack (which code branches work together?  what do config files look like for those branches?)
* To make it easier for developers to dive into OpenStack so that they can productively contribute without having to understand every part of the system at once
* To make it easy to prototype cross-project features
* To sanity-check OpenStack builds (used in gating commits to the primary repos)

Read more at http://devstack.org (built from the gh-pages branch)

IMPORTANT: Be sure to carefully read `stack.sh` and any other scripts you execute before you run them, as they install software and may alter your networking configuration.  We strongly recommend that you run `stack.sh` in a clean and disposable vm when you are first getting started.

# Devstack on Xenserver

If you would like to use Xenserver as the hypervisor, please refer to the instructions in `./tools/xen/README.md`.

# Versions

The devstack master branch generally points to trunk versions of OpenStack components.  For older, stable versions, look for branches named stable/[release] in the DevStack repo.  For example, you can do the following to create a diablo OpenStack cloud:

    git checkout stable/diablo
    ./stack.sh

You can also pick specific OpenStack project releases by setting the appropriate `*_BRANCH` variables in `localrc` (look in `stackrc` for the default set).  Usually just before a release there will be milestone-proposed branches that need to be tested::

    GLANCE_REPO=https://github.com/openstack/glance.git
    GLANCE_BRANCH=milestone-proposed

# Start A Dev Cloud

Installing in a dedicated disposable vm is safer than installing on your dev machine!  To start a dev cloud:

    ./stack.sh

When the script finishes executing, you should be able to access OpenStack endpoints, like so:

* Horizon: http://myhost/
* Keystone: http://myhost:5000/v2.0/

We also provide an environment file that you can use to interact with your cloud via CLI:

    # source openrc file to load your environment with osapi and ec2 creds
    . openrc
    # list instances
    nova list

If the EC2 API is your cup-o-tea, you can create credentials and use euca2ools:

    # source eucarc to generate EC2 credentials and set up the environment
    . eucarc
    # list instances using ec2 api
    euca-describe-instances

# Customizing

You can override environment variables used in `stack.sh` by creating file name `localrc`.  It is likely that you will need to do this to tweak your networking configuration should you need to access your cloud from a different host.

# Database Backend

Multiple database backends are available. The available databases are defined in the lib/databases directory.
`mysql` is the default database, choose a different one by putting the following in `localrc`:

    disable_service mysql
    enable_service postgresql

`mysql` is the default database.

# RPC Backend

Multiple RPC backends are available. Currently, this
includes RabbitMQ (default), Qpid, and ZeroMQ. Your backend of
choice may be selected via the `localrc`.

Note that selecting more than one RPC backend will result in a failure.

Example (ZeroMQ):

    ENABLED_SERVICES="$ENABLED_SERVICES,-rabbit,-qpid,zeromq"

Example (Qpid):

    ENABLED_SERVICES="$ENABLED_SERVICES,-rabbit,-zeromq,qpid"

# Apache Frontend

Apache web server is enabled for wsgi services by setting `APACHE_ENABLED_SERVICES` in your localrc. But remember to enable these services at first as above.

Example:
    APACHE_ENABLED_SERVICES+=keystone,swift

# Swift

Swift is disabled by default.  When enabled, it is configured with
only one replica to avoid being IO/memory intensive on a small
vm. When running with only one replica the account, container and
object services will run directly in screen. The others services like
replicator, updaters or auditor runs in background.

If you would like to enable Swift you can add this to your `localrc` :

    enable_service s-proxy s-object s-container s-account

If you want a minimal Swift install with only Swift and Keystone you
can have this instead in your `localrc`:

    disable_all_services
    enable_service key mysql s-proxy s-object s-container s-account

If you only want to do some testing of a real normal swift cluster
with multiple replicas you can do so by customizing the variable
`SWIFT_REPLICAS` in your `localrc` (usually to 3).

# Swift S3

If you are enabling `swift3` in `ENABLED_SERVICES` devstack will
install the swift3 middleware emulation. Swift will be configured to
act as a S3 endpoint for Keystone so effectively replacing the
`nova-objectstore`.

Only Swift proxy server is launched in the screen session all other
services are started in background and managed by `swift-init` tool.

# Neutron

Basic Setup

In order to enable Neutron a single node setup, you'll need the
following settings in your `localrc` :

    disable_service n-net
    enable_service q-svc
    enable_service q-agt
    enable_service q-dhcp
    enable_service q-l3
    enable_service q-meta
    enable_service neutron
    # Optional, to enable tempest configuration as part of devstack
    enable_service tempest

Then run `stack.sh` as normal.

devstack supports adding specific Neutron configuration flags to the service, Open vSwitch plugin and LinuxBridge plugin configuration files. To make use of this feature, the following variables are defined and can be configured in your `localrc` file:

    Variable Name             Config File  Section Modified
    -------------------------------------------------------------------------------------
    Q_SRV_EXTRA_OPTS          Plugin       `OVS` (for Open Vswitch) or `LINUX_BRIDGE` (for LinuxBridge)
    Q_AGENT_EXTRA_AGENT_OPTS  Plugin       AGENT
    Q_AGENT_EXTRA_SRV_OPTS    Plugin       `OVS` (for Open Vswitch) or `LINUX_BRIDGE` (for LinuxBridge)
    Q_SRV_EXTRA_DEFAULT_OPTS  Service      DEFAULT

An example of using the variables in your `localrc` is below:

    Q_AGENT_EXTRA_AGENT_OPTS=(tunnel_type=vxlan vxlan_udp_port=8472)
    Q_SRV_EXTRA_OPTS=(tenant_network_type=vxlan)

devstack also supports configuring the Neutron ML2 plugin. The ML2 plugin can run with the OVS, LinuxBridge, or Hyper-V agents on compute hosts. A simple way to configure the ml2 plugin is shown below:

    # VLAN configuration
    Q_PLUGIN=ml2
    ENABLE_TENANT_VLANS=True

    # GRE tunnel configuration
    Q_PLUGIN=ml2
    ENABLE_TENANT_TUNNELS=True

    # VXLAN tunnel configuration
    Q_PLUGIN=ml2
    Q_ML2_TENANT_NETWORK_TYPE=vxlan

The above will default in devstack to using the OVS on each compute host. To change this, set the `Q_AGENT` variable to the agent you want to run (e.g. linuxbridge).

    Variable Name                    Notes
    -------------------------------------------------------------------------------------
    Q_AGENT                          This specifies which agent to run with the ML2 Plugin (either `openvswitch` or `linuxbridge`).
    Q_ML2_PLUGIN_MECHANISM_DRIVERS   The ML2 MechanismDrivers to load. The default is none. Note, ML2 will work with the OVS and LinuxBridge agents by default.
    Q_ML2_PLUGIN_TYPE_DRIVERS        The ML2 TypeDrivers to load. Defaults to all available TypeDrivers.
    Q_ML2_PLUGIN_GRE_TYPE_OPTIONS    GRE TypeDriver options. Defaults to none.
    Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS  VXLAN TypeDriver options. Defaults to none.
    Q_ML2_PLUGIN_VLAN_TYPE_OPTIONS   VLAN TypeDriver options. Defaults to none.
    Q_AGENT_EXTRA_AGENT_OPTS         Extra configuration options to pass to the OVS or LinuxBridge Agent.

# Heat

Heat is disabled by default. To enable it you'll need the following settings
in your `localrc` :

    enable_service heat h-api h-api-cfn h-api-cw h-eng

Heat can also run in standalone mode, and be configured to orchestrate
on an external OpenStack cloud. To launch only Heat in standalone mode
you'll need the following settings in your `localrc` :

    disable_all_services
    enable_service rabbit mysql heat h-api h-api-cfn h-api-cw h-eng
    HEAT_STANDALONE=True
    KEYSTONE_SERVICE_HOST=...
    KEYSTONE_AUTH_HOST=...

# Tempest

If tempest has been successfully configured, a basic set of smoke tests can be run as follows:

    $ cd /opt/stack/tempest
    $ nosetests tempest/scenario/test_network_basic_ops.py

# Multi-Node Setup

A more interesting setup involves running multiple compute nodes, with Neutron networks connecting VMs on different compute nodes.
You should run at least one "controller node", which should have a `stackrc` that includes at least:

    disable_service n-net
    enable_service q-svc
    enable_service q-agt
    enable_service q-dhcp
    enable_service q-l3
    enable_service q-meta
    enable_service neutron

You likely want to change your `localrc` to run a scheduler that will balance VMs across hosts:

    SCHEDULER=nova.scheduler.simple.SimpleScheduler

You can then run many compute nodes, each of which should have a `stackrc` which includes the following, with the IP address of the above controller node:

    ENABLED_SERVICES=n-cpu,rabbit,g-api,neutron,q-agt
    SERVICE_HOST=[IP of controller node]
    MYSQL_HOST=$SERVICE_HOST
    RABBIT_HOST=$SERVICE_HOST
    Q_HOST=$SERVICE_HOST
    MATCHMAKER_REDIS_HOST=$SERVICE_HOST

# Cells

Cells is a new scaling option with a full spec at http://wiki.openstack.org/blueprint-nova-compute-cells.

To setup a cells environment add the following to your `localrc`:

    enable_service n-cell

Be aware that there are some features currently missing in cells, one notable one being security groups.  The exercises have been patched to disable functionality not supported by cells.


text:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project xmlns="http://maven.apache.org/DECORATION/1.3.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/DECORATION/1.3.0
        http://maven.apache.org/xsd/decoration-1.3.0.xsd"
        name="Helianto" >

	<bannerLeft>
		<name>Helianto</name>
		<src>images/helianto-t.gif</src>
		<href>http://www.helianto.org/</href>
	</bannerLeft>
	<bannerRight>
		<name>Hosted by SourceForge</name>
		<src>http://sflogo.sourceforge.net/sflogo.php?group_id=161555&type=4</src>
		<href>http://www.sourceforge.net</href>
	</bannerRight>

  <poweredBy>
    <logo img="" name="spring" href="" />
  </poweredBy>

    <body>
		<links>
			<item name="Spring Framework"
				href="http://www.springframework.org/" />
			<item name="Hibernate" href="http://www.hibernate.org/" />
		</links>

		<menu name="The Helianto Project">
			<item name="Introduction" href="index.html" />
			<item name="Downloads" href="downloads.html" />
		</menu>

		<menu name="Documentation">
			<item name="Reference guide"
				href="reference/introduction" />
			<item name="Helianto core Javadocs"
				href="helianto-core/apidocs/index.html" />
			<!--item name="Helianto process Javadocs" href="helianto-process/apidocs/index.html"/-->
		</menu>

		<menu name="Development">
			<item name="Road map"
				href="http://jira.helianto.org/jira/browse/HEL?report=com.atlassian.jira.plugin.system.project:roadmap-panel"
				/>
		</menu>

		<menu ref="modules"/>

		<menu ref="reports"/>

	</body>
    <skin>
        <groupId>org.helianto</groupId>
        <artifactId>helianto-maven-skin</artifactId>
        <version>1.0-SNAPSHOT</version>
    </skin>

</project>


text:
<localize key="mediaPicker_pickedTrashedItem"></localize>

 1"><localize key="mediaPicker_pickedTrashedItems"></localize>

					{{image.name}}


text:
using System;
using System.Windows.Forms;
using System.Drawing;
using System.Collections.Generic;

namespace NuiEngine.NuiControl
{
    public class PaintTickEventArgs : IDisposable
    {
        private Graphics _graphics;
        private Rectangle _trackRect;
        private IList<float> _tickPosList;

        public PaintTickEventArgs(
            Graphics g, Rectangle trackRect, IList<float> tickPosList)
        {
            _graphics = g;
            _trackRect = trackRect;
            _tickPosList = tickPosList;
        }

        public Graphics Graphics
        {
            get { return _graphics; }
        }

        public Rectangle TrackRect
        {
            get { return _trackRect; }
        }

        public IList<float> TickPosList
        {
            get { return _tickPosList; }
        }

        #region IDisposable 成员

        public virtual void Dispose()
        {
            _graphics = null;
            _tickPosList = null;
        }

        #endregion
    }
}


text:
package ch.hsr.ifs.zebrastreifensafari.model.sort.crossing;

import ch.hsr.ifs.zebrastreifensafari.model.jpa.entities.Crossing;

import java.util.Comparator;
import java.util.List;

/**
 * @author : SeboCode
 * @version : 1.0
 * @since : 2.0
 */
public class CrossingSorter {

    private static boolean node = false;
    private static boolean numberOfRatings = false;
    private static boolean status = false;

    public static void sortByNode(List<Crossing> crossings) {
        Comparator<Crossing> comparator = (o1, o2) -> Long.compare(o1.getOsmNodeId(), o2.getOsmNodeId());
        crossings.sort(node ? comparator.reversed() : comparator);
        node = !node;
    }

    public static void sortByNumberOfRatings(List<Crossing> crossings) {
        Comparator<Crossing> comparator = (o1, o2) -> Long.compare(o1.getRatingAmount(), o2.getRatingAmount());
        crossings.sort(numberOfRatings ? comparator.reversed() : comparator);
        numberOfRatings = !numberOfRatings;
    }

    public static void sortByStatus(List<Crossing> crossings) {
        Comparator<Crossing> comparator = (o1, o2) -> Integer.compare(o1.getStatus(), o2.getStatus());
        crossings.sort(status ? comparator.reversed() : comparator);
        status = !status;
    }
}


text:
<?xml version="1.0" encoding="utf-8" ?>
<setting xmlns="urn:GameConfig-schema">
  <GameSetting>
    <ColorField>CornflowerBlue</ColorField>
    <ColorSetka>DarkOliveGreen</ColorSetka>
    <ColorFigure>
      <Color1>Orange</Color1>
      <Color2>Violet</Color2>
      <Color3>Blue</Color3>
      <Color4>Azure</Color4>
      <Color5>Red</Color5>
      <Color6>Tomato</Color6>
      <Color7>Firebrick</Color7>
      <Color8>FloralWhite</Color8>
      <Color9>BlueViolet</Color9>
      <Color10>Yellow</Color10>
    </ColorFigure>
  </GameSetting>
</setting>


text:
<!DOCTYPE html>

  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=10" />
  <title>Cross Domain Libraery Demo</title>
  <link href="Content/bootstrap.css" rel="stylesheet" />
  <link href="Content/App.css" rel="stylesheet" />

          Cross Domain Library Demo

Home

Add Customer

About

Back to Host Web


text:
"""Utilities for testing Beam pipelines."""

from __future__ import absolute_import

import collections
import glob
import io
import tempfile
from builtins import object

from apache_beam import pvalue
from apache_beam.transforms import window
from apache_beam.transforms.core import Create
from apache_beam.transforms.core import DoFn
from apache_beam.transforms.core import Map
from apache_beam.transforms.core import ParDo
from apache_beam.transforms.core import WindowInto
from apache_beam.transforms.ptransform import PTransform
from apache_beam.transforms.util import CoGroupByKey
from apache_beam.utils.annotations import experimental

__all__ = [
    'assert_that',
    'equal_to',
    'equal_to_per_window',
    'is_empty',
    'is_not_empty',
    'matches_all',
    # open_shards is internal and has no backwards compatibility guarantees.
    'open_shards',
    'TestWindowedValue',
    ]

class BeamAssertException(Exception):
  """Exception raised by matcher classes used by assert_that transform."""

  pass

# Used for reifying timestamps and windows for assert_that matchers.
TestWindowedValue = collections.namedtuple(
    'TestWindowedValue', 'value timestamp windows')

def contains_in_any_order(iterable):
  """Creates an object that matches another iterable if they both have the
  same count of items.

  Arguments:
    iterable: An iterable of hashable objects.
  """
  class InAnyOrder(object):
    def __init__(self, iterable):
      self._counter = collections.Counter(iterable)

    def __eq__(self, other):
      return self._counter == collections.Counter(other)

    def __ne__(self, other):
      # TODO(BEAM-5949): Needed for Python 2 compatibility.
      return not self == other

    def __hash__(self):
      return hash(self._counter)

    def __repr__(self):
      return "InAnyOrder(%s)" % self._counter

  return InAnyOrder(iterable)

class _EqualToPerWindowMatcher(object):
  def __init__(self, expected_window_to_elements):
    self._expected_window_to_elements = expected_window_to_elements

  def __call__(self, value):
    # Short-hand.
    _expected = self._expected_window_to_elements

    # Match the given windowed value to an expected window. Fails if the window
    # doesn't exist or the element wasn't found in the window.
    def match(windowed_value):
      actual = windowed_value.value
      window_key = windowed_value.windows[0]
      try:
        expected = _expected[window_key]
      except KeyError:
        raise BeamAssertException(
            'Failed assert: window {} not found in any expected ' \
            'windows {}'.format(window_key, list(_expected.keys())))

      # Remove any matched elements from the window. This is used later on to
      # assert that all elements in the window were matched with actual
      # elements.
      try:
        _expected[window_key].remove(actual)
      except ValueError:
        raise BeamAssertException(
            'Failed assert: element {} not found in window ' \
            '{}:{}'.format(actual, window_key, _expected[window_key]))

    # Run the matcher for each window and value pair. Fails if the
    # windowed_value is not a TestWindowedValue.
    for windowed_value in value:
      if not isinstance(windowed_value, TestWindowedValue):
        raise BeamAssertException(
            'Failed assert: Received element {} is not of type ' \
            'TestWindowedValue. Did you forget to set reify_windows=True ' \
            'on the assertion?'.format(windowed_value))
      match(windowed_value)

    # Finally, some elements may not have been matched. Assert that we removed
    # all the elements that we received from the expected list. If the list is
    # non-empty, then there are unmatched elements.
    for win in _expected:
      if _expected[win]:
        raise BeamAssertException(
            'Failed assert: unmatched elements {} in window {}'.format(
                _expected[win], win))

def equal_to_per_window(expected_window_to_elements):
  """Matcher used by assert_that to check to assert expected windows.

  The 'assert_that' statement must have reify_windows=True. This assertion works
  when elements are emitted and are finally checked at the end of the window.

  Arguments:
    expected_window_to_elements: A dictionary where the keys are the windows
      to check and the values are the elements associated with each window.
  """

  return _EqualToPerWindowMatcher(expected_window_to_elements)

# Note that equal_to checks if expected and actual are permutations of each
# other. However, only permutations of the top level are checked. Therefore
# [1,2] and [2,1] are considered equal and [[1,2]] and [[2,1]] are not.
def equal_to(expected):

  def _equal(actual):
    expected_list = list(expected)

    # Try to compare actual and expected by sorting. This fails with a
    # TypeError in Python 3 if different types are present in the same
    # collection. It can also raise false negatives for types that don't have
    # a deterministic sort order, like pyarrow Tables as of 0.14.1
    try:
      sorted_expected = sorted(expected)
      sorted_actual = sorted(actual)
      if sorted_expected != sorted_actual:
        raise BeamAssertException(
            'Failed assert: %r == %r' % (sorted_expected, sorted_actual))
    # Slower method, used in two cases:
    # 1) If sorted expected != actual, use this method to verify the inequality.
    #    This ensures we don't raise any false negatives for types that don't
    #    have a deterministic sort order.
    # 2) As a fallback if we encounter a TypeError in python 3. this method
    #    works on collections that have different types.
    except (BeamAssertException, TypeError):
      for element in actual:
        try:
          expected_list.remove(element)
        except ValueError:
          raise BeamAssertException(
              'Failed assert: %r == %r' % (expected, actual))
      if expected_list:
        raise BeamAssertException(
            'Failed assert: %r == %r' % (expected, actual))

  return _equal

def matches_all(expected):
  """Matcher used by assert_that to check a set of matchers.

  Args:
    expected: A list of elements or hamcrest matchers to be used to match
      the elements of a single PCollection.
  """
  def _matches(actual):
    from hamcrest.core import assert_that as hamcrest_assert
    from hamcrest.library.collection import contains_inanyorder
    expected_list = list(expected)

    hamcrest_assert(actual, contains_inanyorder(*expected_list))

  return _matches

def is_empty():
  def _empty(actual):
    actual = list(actual)
    if actual:
      raise BeamAssertException(
          'Failed assert: [] == %r' % actual)
  return _empty

def is_not_empty():
  """
  This is test method which makes sure that the pcol is not empty and it has
  some data in it.
  :return:
  """
  def _not_empty(actual):
    actual = list(actual)
    if not actual:
      raise BeamAssertException('Failed assert: pcol is empty')
  return _not_empty

def assert_that(actual, matcher, label='assert_that',
                reify_windows=False, use_global_window=True):
  """A PTransform that checks a PCollection has an expected value.

  Note that assert_that should be used only for testing pipelines since the
  check relies on materializing the entire PCollection being checked.

  Args:
    actual: A PCollection.
    matcher: A matcher function taking as argument the actual value of a
      materialized PCollection. The matcher validates this actual value against
      expectations and raises BeamAssertException if they are not met.
    label: Optional string label. This is needed in case several assert_that
      transforms are introduced in the same pipeline.
    reify_windows: If True, matcher is passed a list of TestWindowedValue.
    use_global_window: If False, matcher is passed a dictionary of
      (k, v) = (window, elements in the window).

  Returns:
    Ignored.
  """
  assert isinstance(
      actual,
      pvalue.PCollection), ('%s is not a supported type for Beam assert'
                            % type(actual))

  if isinstance(matcher, _EqualToPerWindowMatcher):
    reify_windows = True
    use_global_window = True

  class ReifyTimestampWindow(DoFn):
    def process(self, element, timestamp=DoFn.TimestampParam,
                window=DoFn.WindowParam):
      # This returns TestWindowedValue instead of
      # beam.utils.windowed_value.WindowedValue because ParDo will extract
      # the timestamp and window out of the latter.
      return [TestWindowedValue(element, timestamp, [window])]

  class AddWindow(DoFn):
    def process(self, element, window=DoFn.WindowParam):
      yield element, window

  class AssertThat(PTransform):

    def expand(self, pcoll):
      if reify_windows:
        pcoll = pcoll | ParDo(ReifyTimestampWindow())

      keyed_singleton = pcoll.pipeline | Create([(None, None)])

      if use_global_window:
        pcoll = pcoll | WindowInto(window.GlobalWindows())

      keyed_actual = pcoll | "ToVoidKey" >> Map(lambda v: (None, v))

      # This is a CoGroupByKey so that the matcher always runs, even if the
      # PCollection is empty.
      plain_actual = ((keyed_singleton, keyed_actual)
                      | "Group" >> CoGroupByKey()
                      | "Unkey" >> Map(lambda k_values: k_values[1][1]))

      if not use_global_window:
        plain_actual = plain_actual | "AddWindow" >> ParDo(AddWindow())

      plain_actual = plain_actual | "Match" >> Map(matcher)

    def default_label(self):
      return label

  actual | AssertThat()  # pylint: disable=expression-not-assigned

@experimental()
def open_shards(glob_pattern, mode='rt', encoding='utf-8'):
  """Returns a composite file of all shards matching the given glob pattern.

  Args:
    glob_pattern (str): Pattern used to match files which should be opened.
    mode (str): Specify the mode in which the file should be opened. For
                available modes, check io.open() documentation.
    encoding (str): Name of the encoding used to decode or encode the file.
                    This should only be used in text mode.

  Returns:
    A stream with the contents of the opened files.
  """
  if 'b' in mode:
    encoding = None

  with tempfile.NamedTemporaryFile(delete=False) as out_file:
    for shard in glob.glob(glob_pattern):
      with open(shard, 'rb') as in_file:
        out_file.write(in_file.read())
    concatenated_file_name = out_file.name
  return io.open(concatenated_file_name, mode, encoding=encoding)


text:
Dataset File Format
===================

Dataset file specifies a list of files (typically proteins) to be processed by the program.

##### Example 1: Basic dataset
~~~
2W83.pdb
1fbl.pdb
~~~
A basic single-column dataset that specifies a list of proteins.

## Multi-column dataset format

Optionally, dataset files can have a multi-column format that allows specifying complementary data. This is relevant only if you are interested in training and evaluating new models.

Multi-column datasets need to declare a header (see `test_data/fpocket-pairs.ds` for example of a dataset for evaluation of Fpocket predictions).

**Valid column names**:
* `"protein"` column is mandatory if the program is used for pocket prediction
* `"prediction"` column is mandatory if the program is used for pocket rescoring
* `"chains"` allows to explicitly specify which protein chains from the structure should be considered. Structures will be reduced to specified chains when loaded. Value `*` means all chains.
* `"ligands"` allows to explicitly specify which ligands should be considered (see test-ligand-codes.ds)
* `"ligand_codes"` same as "ligands" (for backward compatibility)
* `"conservation"` contains link to sequence conservation data

If the header is not specified, the default implicit header is `HEADER: protein` i.e. dataset contains just a list of protein files.

Additionally, it is possible to specify global dataset parameters.

**Generic dataset format**:
~~~sh
# comments (everything after character #) and blank lines are ignored

# dataset parameters (optional)
PARAM.<param_name>=<param_value>

# Header line defines columns in the dataset (separated by whitespace)
HEADER: <column_names>

# column data (separated by whitespace)
<column_data>
~~~

### Examples

Following examples are valid multi-column dataset files. See other examples in `test_data` folder.
Ligands can be specified by a group name (e.g. `PHI`) in which case all ligands with this name will be considered relevant.
To specify particular molecules you can optionally use `atom_id` and `group_id` specifiers.
No whitespace in the column value is allowed.

##### Example 2: Dataset with explicitly specified relevant ligands
~~~sh
HEADER:  protein  ligands

liganated/1a82a.pdb   DNN,ATP
liganated/1aaxa.pdb   BPM[atom_id:22344],BOG
liganated/1nlua.pdb   PHI[atom_id:1234]
liganated/1t7qa.pdb   COA[group_id:C_234A]
liganated/2ck3b.pdb   ANP
~~~
A dataset with explicitly specified ligands. Useful only for training and evaluation datasets.

##### Example 3: Dataset of protein/prediction pairs
~~~sh
PARAM.PREDICTION_METHOD=fpocket     # specifies the method that was used to create predictions
PARAM.LIGANDS_SEPARATED_BY_TER=true # specifies that ligands are separated by TER record (relevant only for legacy CHEN11 dataset)

HEADER: protein prediction

liganated/1a82a.pdb   predictions/fpocket/1a82a_out/1a82a_out.pdb
liganated/1aaxa.pdb   predictions/fpocket/1aaxa_out/1aaxa_out.pdb
~~~
A dataset that defines pairs of liganated protein and binding site pedictions for this protein made by some prediction method, in this case, Fpocket.
It is used for rescoring and evaluating predictions of other methods (using `prank rescore <dataset-whih-pairs.ds>`).


text:
package org.covito.coder.db;

import java.sql.Types;
import java.util.HashMap;
import java.util.Map;

public class JdbcTypeResolver {

    private static Map<Integer, String> typeToName;
    private static Map<String, Integer> nameToType;

    static {
        typeToName = new HashMap<Integer, String>();
        typeToName.put(Types.ARRAY, "ARRAY");
        typeToName.put(Types.BIGINT, "BIGINT");
        typeToName.put(Types.BINARY, "BINARY");
        typeToName.put(Types.BIT, "BIT");
        typeToName.put(Types.BLOB, "BLOB");
        typeToName.put(Types.BOOLEAN, "BOOLEAN");
        typeToName.put(Types.CHAR, "CHAR");
        typeToName.put(Types.CLOB, "CLOB");
        typeToName.put(Types.DATALINK, "DATALINK");
        typeToName.put(Types.DATE, "DATE");
        typeToName.put(Types.DECIMAL, "DECIMAL");
        typeToName.put(Types.DISTINCT, "DISTINCT");
        typeToName.put(Types.DOUBLE, "DOUBLE");
        typeToName.put(Types.FLOAT, "FLOAT");
        typeToName.put(Types.INTEGER, "INTEGER");
        typeToName.put(Types.JAVA_OBJECT, "JAVA_OBJECT");
        typeToName.put(Types.LONGVARBINARY, "LONGVARBINARY");
        typeToName.put(Types.LONGVARCHAR, "LONGVARCHAR");
        typeToName.put(Jdbc4Types.NCHAR, "NCHAR");
        typeToName.put(Jdbc4Types.NCLOB, "NCLOB");
        typeToName.put(Jdbc4Types.NVARCHAR, "NVARCHAR");
        typeToName.put(Jdbc4Types.LONGNVARCHAR, "LONGNVARCHAR");
        typeToName.put(Types.NULL, "NULL");
        typeToName.put(Types.NUMERIC, "NUMERIC");
        typeToName.put(Types.OTHER, "OTHER");
        typeToName.put(Types.REAL, "REAL");
        typeToName.put(Types.REF, "REF");
        typeToName.put(Types.SMALLINT, "SMALLINT");
        typeToName.put(Types.STRUCT, "STRUCT");
        typeToName.put(Types.TIME, "TIME");
        typeToName.put(Types.TIMESTAMP, "TIMESTAMP");
        typeToName.put(Types.TINYINT, "TINYINT");
        typeToName.put(Types.VARBINARY, "VARBINARY");
        typeToName.put(Types.VARCHAR, "VARCHAR");

        nameToType = new HashMap<String, Integer>();
        nameToType.put("ARRAY", Types.ARRAY);
        nameToType.put("BIGINT", Types.BIGINT);
        nameToType.put("BINARY", Types.BINARY);
        nameToType.put("BIT", Types.BIT);
        nameToType.put("BLOB", Types.BLOB);
        nameToType.put("BOOLEAN", Types.BOOLEAN);
        nameToType.put("CHAR", Types.CHAR);
        nameToType.put("CLOB", Types.CLOB);
        nameToType.put("DATALINK", Types.DATALINK);
        nameToType.put("DATE", Types.DATE);
        nameToType.put("DECIMAL", Types.DECIMAL);
        nameToType.put("DISTINCT", Types.DISTINCT);
        nameToType.put("DOUBLE", Types.DOUBLE);
        nameToType.put("FLOAT", Types.FLOAT);
        nameToType.put("INTEGER", Types.INTEGER);
        nameToType.put("JAVA_OBJECT", Types.JAVA_OBJECT);
        nameToType.put("LONGVARBINARY", Types.LONGVARBINARY);
        nameToType.put("LONGVARCHAR", Types.LONGVARCHAR);
        nameToType.put("NCHAR", Jdbc4Types.NCHAR);
        nameToType.put("NCLOB", Jdbc4Types.NCLOB);
        nameToType.put("NVARCHAR", Jdbc4Types.NVARCHAR);
        nameToType.put("LONGNVARCHAR", Jdbc4Types.LONGNVARCHAR);
        nameToType.put("NULL", Types.NULL);
        nameToType.put("NUMERIC", Types.NUMERIC);
        nameToType.put("OTHER", Types.OTHER);
        nameToType.put("REAL", Types.REAL);
        nameToType.put("REF", Types.REF);
        nameToType.put("SMALLINT", Types.SMALLINT);
        nameToType.put("STRUCT", Types.STRUCT);
        nameToType.put("TIME", Types.TIME);
        nameToType.put("TIMESTAMP", Types.TIMESTAMP);
        nameToType.put("TINYINT", Types.TINYINT);
        nameToType.put("VARBINARY", Types.VARBINARY);
        nameToType.put("VARCHAR", Types.VARCHAR);
    }

    private JdbcTypeResolver(){
        super();
    }

    public static String getJdbcTypeName(int jdbcType) {
        String answer = typeToName.get(jdbcType);
        if (answer == null) {
            answer = "OTHER";
        }

        return answer;
    }

    public static int getJdbcType(String jdbcTypeName) {
        Integer answer = nameToType.get(jdbcTypeName);
        if (answer == null) {
            answer = Types.OTHER;
        }

        return answer;
    }
}


text:
'use strict';

import React, { Component } from 'react';

export default class ImageFigure extends Component {
  constructor(props) {
    super(props);
    this.handleClick = this.handleClick.bind(this);
  }

  handleClick(e) {
    // 取消默认行为,阻止冒泡
    e.preventDefault();
    e.stopPropagation();

    const target = e.currentTarget;
    if (this.props.image.isCenter) {
      this.props.inverse();
    } else {
      this.props.center();
    }
  }

  render() {
    let styleObj = {};
    if (this.props.image.pos) {
      styleObj.left = this.props.image.pos.left;
      styleObj.top = this.props.image.pos.top;
    }
    if (this.props.image.rotate) {
      styleObj.transform = `rotate(${this.props.image.rotate}deg)`;
      styleObj.WebkitTransform = `rotate(${this.props.image.rotate}deg)`;
    }
    if (this.props.image.isCenter) {
      styleObj.zIndex = 11;
    }

    let imageFigureclassName = 'image-figure';
    imageFigureclassName += this.props.image.isInverse ? ' is-inverse' : '';
    imageFigureclassName += this.props.image.isCenter ? ' is-center' : '';

    return (

{this.props.image.desc}

{this.props.image.desc}

    );
  }
}


text:
<?php

define('CORE', 1);

$start_time = microtime();

ob_start();

require $core['includes_dir'] . '/database.php';
require $core['includes_dir'] . '/common.php';

$template = array();
$user = array();

clean_request();
db_initiate();
start_session();
load_user();
load_template();

$modules = array('about');
if ($user['logged'])
	$modules = array_merge($modules, array('logout', 'profile', 'evaluate'));
else
	$modules = array_merge($modules, array('login', 'register'));
if ($user['admin'])
	$modules = array_merge($modules, array('category', 'project', 'user', 'peek'));

$core['current_module'] = $user['logged'] ? 'evaluate' : 'login';
if (!empty($_REQUEST['module']) && in_array($_REQUEST['module'], $modules))
	$core['current_module'] = $_REQUEST['module'];

load_module($core['current_module']);

call_user_func($core['current_module'] . '_main');

ob_exit();


text:
sudo -E apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo -E tee /etc/apt/sources.list.d/mongodb.list
sudo -E apt-get update
sudo -E apt-get install mongodb-org


text:
<!doctype html>

  <title>Node Authentication</title>
  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">

  <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">

 Signup

      {% if message %}

        <$ message $>

      {% endif %}

      <form action="/signup" method="post">

          Email
          <input type="text" class="form-control" name="email">

          Password
          <input type="password" class="form-control" name="password">

        <input type="hidden" name="_csrf" value="<$ _csrf $>"/>
        <button type="submit" class="btn btn-warning btn-lg">Signup</button>
      </form>

Already have an account? Login

Or go home.


text:
CREATE TABLE `employeur` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `contact_id` int(11) NOT NULL,
 `paje_emploi_id` varchar(128) NOT NULL,
 PRIMARY KEY (`id`),
 KEY `contact_id` (`contact_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


text:
// Provides control sap.ui.commons.form.Form.
sap.ui.define(['jquery.sap.global', 'sap/ui/commons/library', 'sap/ui/layout/form/Form'],
	function(jQuery, library, Form1) {
	"use strict";

	/**
	 * Constructor for a new form/Form.
	 *
	 * @param {string} [sId] id for the new control, generated automatically if no id is given
	 * @param {object} [mSettings] initial settings for the new control
	 *
	 * @class
	 * Form control.
	 * Holder for form control to be rendered in a specific form layout.
	 * A Form supports VariantLayoutData for it's conent to allow a simple switching of Layouts.
	 * @extends sap.ui.layout.form.Form
	 *
	 * @author SAP SE
	 * @version 1.38.7
	 *
	 * @constructor
	 * @public
	 * @since 1.9.1
	 * @deprecated Since version 1.16.0.
	 * moved to sap.ui.layout library. Please use this one.
	 * @alias sap.ui.commons.form.Form
	 * @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
	 */
	var Form = Form1.extend("sap.ui.commons.form.Form", /** @lends sap.ui.commons.form.Form.prototype */ { metadata : {

		deprecated : true,
		library : "sap.ui.commons"
	}});

	/**
	 * This file defines behavior for the control,
	 */

	/* Overwrite to have right "since" in there */

	/**
	* Getter for property visible.
	* Invisible Forms are not rendered.
	*
	* Default value is true
	*
	* @return {boolean} the value of property visible
	* @public
	* @since 1.12.0
	* @name sap.ui.commons.form.Form#getVisible
	* @function
	*/

	/**
	* Setter for property visible.
	*
	* Default value is true
	*
	* @param {boolean} bVisible new value for property visible
	* @return {sap.ui.commons.form.Form} this to allow method chaining
	* @public
	* @since 1.12.0
	* @name sap.ui.commons.form.Form#setVisible
	* @function
	*/

	return Form;

}, /* bExport= */ true);