text:
var playlist = [
    {
        url: "https://soundcloud.com/thewombats/thewombats-emoticons",
        element: null,
        widget: null,
    },
    {
        url: "https://soundcloud.com/dangervillage/walla-nature",
        element: null,
        widget: null,
    },
    {
        url: "https://soundcloud.com/deathcabforcutie/death-cab-for-cutie-black-sun",
        element: null,
        widget: null,
    },
]

var position = -1;
var currentPlayer = null;

var scWidget = null;

var socket = io();
socket.on("add track", function(msg) {
    playlist.push(msg);
});

window.onload = function() {
    playNextTrack();

    document.getElementById("addTrack").onsubmit = function(event) {
        event.preventDefault();

        var track_url = document.getElementById("trackUrl").value;

        socket.emit("add track", track_url);
        console.log("added " + track_url + " to playlist");
    }
}

function buildWidget(track, callback) {
    var div = document.createElement("div");
    var widget = null;

    document.getElementById("player").appendChild(div);
    track.element = div;

    var data = new FormData();
    data.append("format", "json");
    data.append("url", track.url);

    var xhr = new XMLHttpRequest();
    xhr.addEventListener("load", function() {
        response = JSON.parse(this.responseText);
        console.log(response);

        div.innerHTML = response.html;

        widget = SC.Widget(div.childNodes[0]);
        widget.bind(SC.Widget.Events.FINISH, function() {
            playNextTrack();
            track.element.style.display = "none";
        });

        track.widget = widget;

        if (callback !== undefined) {
            callback(track);
        }
    });
    xhr.open("POST", "https://soundcloud.com/oembed", true);
    xhr.send(data);
}

function playNextTrack() {
    console.log("next track");

    position = (position + 1) % playlist.length;
    var track = playlist[position];

    if (track.widget === null) {
        buildWidget(track, function(track) {
            track.widget.bind(SC.Widget.Events.READY, function() {
                track.widget.play();
            });
        });
    } else {
        playTrack(track);
    }
}

function playTrack(track) {
    track.element.style.display = "";
    track.widget.play();

    // preload next track
    next_track = playlist[(position + 1) % playlist.length];

    if (next_track.widget === null) {
        buildWidget(next_track);
    }
}


text:
<?php

/**
 * @package Omeka\Controller
 */
class TagsController extends Omeka_Controller_AbstractActionController
{
    public function init()
    {
        $this->_helper->db->setDefaultModelName('Tag');
    }

    public function addAction()
    {
        $this->_helper->redirector('');
    }

    public function editAction()
    {
        $this->_helper->redirector('');
    }

    /**
     *
     * @return void
     */
    public function browseAction()
    {
        $params = $this->_getAllParams();

        //Check to see whether it will be tags for exhibits or for items
        //Default is Item
        if (isset($params['tagType'])) {
            $for = $params['tagType'];
            unset($params['tagType']);
        } else {
            $for = 'Item';
        }
        //Since tagType must correspond to a valid classname, this will barf an error on Injection attempts
        if (!class_exists($for)) {
            throw new InvalidArgumentException(__('Invalid tagType given.'));
        }

        if($record = $this->_getParam('record')) {
            $filter['record'] = $record;
        }

        $findByParams = array_merge(array('sort_field' => 'name', 'include_zero' => true),
                                    $params,
                                    array('type' => $for));

        $total_tags = $this->_helper->db->count($findByParams);
        $limit = isset($params['limit']) ? $params['limit'] : null;
        $tags = $this->_helper->db->findBy($findByParams, $limit);

        $browse_for = $for;
        $sort = array_intersect_key($findByParams, array('sort_field' => '', 'sort_dir' => ''));

        //dig up the record types for filtering
        $db = get_db();
        $sql = "SELECT DISTINCT record_type FROM `$db->RecordsTag`";
        $record_types = array_keys($db->fetchAssoc($sql));
        foreach($record_types as $index => $record_type) {
            if(!class_exists($record_type)) {
                unset($record_types[$index]);
            }
        }

        $csrf = new Omeka_Form_Element_SessionCsrfToken('csrf_token');
        $this->view->csrfToken = $csrf->getToken();
        $this->view->record_types = $record_types;
        $this->view->assign(compact('tags', 'total_tags', 'browse_for', 'sort'));
    }

    public function autocompleteAction()
    {
        $tagText = $this->_getParam('term');
        if (empty($tagText)) {
            $this->_helper->json(array());
        }
        $tagNames = $this->_helper->db->getTable()->findTagNamesLike($tagText);
        $this->_helper->json($tagNames);
    }

    public function renameAjaxAction()
    {
        $csrf = new Omeka_Form_SessionCsrf;
        $oldTagId = $_POST['id'];
        $oldTag = $this->_helper->db->findById($oldTagId);
        $oldName = $oldTag->name;
        $newName = trim($_POST['value']);

        $oldTag->name = $newName;
        $this->_helper->viewRenderer->setNoRender();
        if ($csrf->isValid($_POST) && $oldTag->save(false)) {
            $this->getResponse()->setBody($newName);
        } else {
            $this->getResponse()->setHttpResponseCode(500);
            $this->getResponse()->setBody($oldName);
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Form edit view
 *
 * @package PhpMyAdmin-Setup
 */

if (!defined('PHPMYADMIN')) {
    exit;
}

/**
 * Core libraries.
 */
require_once './libraries/config/Form.class.php';
require_once './libraries/config/FormDisplay.class.php';
require_once './setup/lib/form_processing.lib.php';

require './libraries/config/setup.forms.php';

$formset_id = filter_input(INPUT_GET, 'formset');
$mode = filter_input(INPUT_GET, 'mode');
if (! isset($forms[$formset_id])) {
    PMA_fatalError(__('Incorrect formset, check $formsets array in setup/frames/form.inc.php'));
}

if (isset($GLOBALS['strConfigFormset_' . $formset_id])) {
    echo '<h2>' . $GLOBALS['strConfigFormset_' . $formset_id] . '</h2>';
}
$form_display = new FormDisplay();
foreach ($forms[$formset_id] as $form_name => $form) {
    $form_display->registerForm($form_name, $form);
}
process_formset($form_display);
?>


text:
/*
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
*/

#include <stdio.h>
#include <stdlib.h>

#include "lib_hello.h"

void print_hello(void)
{
	printf("Hello\n");
}

int print_world(int num)
{
	int i;
	for(i=0;i<num;i++)
	{
		printf("World\n");
	}
	return 69;
}


text:
+++
City = "Amsterdam"
Year = "2016"
date = "2016-03-06T21:28:07-06:00"
title = "Monitoring with Icinga 2"
type = "talk"
aliases = ["/events/2016-amsterdam/program/michael-friedrich/"]

+++

Title: Monitoring with Icinga 2

With this Icinga 2 workshop you will get an overview of our new monitoring framework. You will gain in-depth inside in the Open Source Monitoring software Icinga, its add-ons as well as the monitoring of modern IT infrastructure. Real life examples and the brand new Icinga Web 2 are also a big part of that workshop.

About the speaker

Michael has been an Icinga core developer for more than 7 years. He is currently leading the Icinga 2 development together with Gunnar. In addition to the exciting core architecture work he likes to play with Vagrant. Docker and Dashing. You'll also find him active over at monitoring-portal.org, most recently as administrator too. In his spare time Michael loves to build LEGO models and enjoys Nuremberg with his Austrian dialect.


text:
{-|
Module      : Main
Description : Entry point for parsebnf
Copyright   : (c) Chop-lang, 2015
License     : MIT
Maintainer  : carterhinsley@gmail.com
-}
module Main where

main :: IO ()
main = do
    putStrLn "Hello world!"


text:
using System.Collections;
using System.Collections.Generic;
using Encog.ML.Data;
using Encog.ML.Data.Basic;
using Encog.ML.KMeans;
using Encog.Util.KMeans;

namespace Encog.ML.Kmeans
{
    /// <summary>
    /// This class performs a basic K-Means clustering. This class can be used on
    /// either supervised or unsupervised data. For supervised data, the ideal values
    /// will be ignored.
    /// http://en.wikipedia.org/wiki/Kmeans
    /// </summary>
    ///
    public class KMeansClustering : IMLClustering
    {
        /// <summary>
        /// Number of clusters.
        /// </summary>
        private readonly int _k;

        /// <summary>
        /// The kmeans utility.
        /// </summary>
        private readonly KMeansUtil<BasicMLDataPair> _kmeans;

        /// <summary>
        /// The clusters
        /// </summary>
        private IMLCluster[] _clusters;

        /// <summary>
        /// Construct the K-Means object.
        /// </summary>
        /// <param name="theK">The number of clusters to use.</param>
        /// <param name="theSet">The dataset to cluster.</param>
        public KMeansClustering(int theK, IMLDataSet theSet)
        {
            IList<BasicMLDataPair> list = new List<BasicMLDataPair>();
            foreach (IMLDataPair pair in theSet)
            {
                list.Add((BasicMLDataPair) pair);
            }
            _k = theK;
            _kmeans = new KMeansUtil<BasicMLDataPair>(_k, list as IList);
        }

        #region IMLClustering Members

        /// <summary>
        /// Perform a single training iteration.
        /// </summary>
        public void Iteration()
        {
            _kmeans.Process();
            _clusters = new IMLCluster[_k];
            for (int i = 0; i < _k; i++)
            {
                _clusters[i] = new BasicCluster(_kmeans.GetCluster(i));
            }
        }

        /// <summary>
        /// The number of iterations to perform.
        /// </summary>
        /// <param name="count">The count of iterations.</param>
        public void Iteration(int count)
        {
            for (int i = 0; i < count; i++)
            {
                Iteration();
            }
        }

        /// <summary>
        /// The clusters.
        /// </summary>
        public IMLCluster[] Clusters
        {
            get { return _clusters; }
        }

        /// <summary>
        /// The number of clusters.
        /// </summary>
        public int Count
        {
            get { return _k; }
        }

        #endregion
    }
}


text:
package application;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;

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

 * <complexType name="ApplicationType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <all minOccurs="0">
 *         <element name="Rep_Identifier" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <minLength value="0"/>
 *               <maxLength value="100"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Source_Identifier" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <minLength value="0"/>
 *               <maxLength value="100"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Other_Income_Included" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="Other_Liabilities_Included" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="Agency_Case_Number" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <minLength value="0"/>
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Lender_Case_Number" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <minLength value="0"/>
 *               <maxLength value="50"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Type" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <enumeration value="Conventional"/>
 *               <enumeration value="FHA"/>
 *               <enumeration value="VA"/>
 *               <enumeration value="FmHA"/>
 *               <enumeration value="Other"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Type_Description" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <minLength value="0"/>
 *               <maxLength value="1000"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Amount" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
 *               <fractionDigits value="2"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Interest_Rate" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
 *               <fractionDigits value="4"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Number_Of_Months" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
 *               <minInclusive value="0"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Amortization_Type" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <enumeration value="Fixed_Rate"/>
 *               <enumeration value="GPM"/>
 *               <enumeration value="Other"/>
 *               <enumeration value="ARM"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Amortization_Type_Description" minOccurs="0">
 *           <simpleType>
 *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *               <minLength value="0"/>
 *               <maxLength value="1000"/>
 *             </restriction>
 *           </simpleType>
 *         </element>
 *         <element name="Property" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}PropertyType" minOccurs="0"/>
 *         <element name="Purpose" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}PurposeType" minOccurs="0"/>
 *         <element name="Borrowers" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="Borrower" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}BorrowerType" maxOccurs="2" minOccurs="0"/>
 *                   <element name="Housing_Expense" minOccurs="0">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="Expense" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}ExpenseType" maxOccurs="2" minOccurs="0"/>
 *                           </sequence>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                   <element name="Assets_Liabilities" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}AssetsLiabilitiesType" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="Transaction" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}TransactionType" minOccurs="0"/>
 *       </all>
 *       <attribute name="Application_ID" use="required">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *             <minLength value="1"/>
 *             <maxLength value="32"/>
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="Date_Created">
 *         <simpleType>
 *           <restriction base="{http://www.w3.org/2001/XMLSchema}dateTime">
 *           </restriction>
 *         </simpleType>
 *       </attribute>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ApplicationType", propOrder = {

})
public class ApplicationType {

    @XmlElement(name = "Rep_Identifier")
    protected String repIdentifier;
    @XmlElement(name = "Source_Identifier")
    protected String sourceIdentifier;
    @XmlElement(name = "Other_Income_Included")
    protected Boolean otherIncomeIncluded;
    @XmlElement(name = "Other_Liabilities_Included")
    protected Boolean otherLiabilitiesIncluded;
    @XmlElement(name = "Agency_Case_Number")
    protected String agencyCaseNumber;
    @XmlElement(name = "Lender_Case_Number")
    protected String lenderCaseNumber;
    @XmlElement(name = "Type")
    protected String type;
    @XmlElement(name = "Type_Description")
    protected String typeDescription;
    @XmlElement(name = "Amount")
    protected BigDecimal amount;
    @XmlElement(name = "Interest_Rate")
    protected BigDecimal interestRate;
    @XmlElement(name = "Number_Of_Months")
    protected BigInteger numberOfMonths;
    @XmlElement(name = "Amortization_Type")
    protected String amortizationType;
    @XmlElement(name = "Amortization_Type_Description")
    protected String amortizationTypeDescription;
    @XmlElement(name = "Property")
    protected PropertyType property;
    @XmlElement(name = "Purpose")
    protected PurposeType purpose;
    @XmlElement(name = "Borrowers")
    protected ApplicationType.Borrowers borrowers;
    @XmlElement(name = "Transaction")
    protected TransactionType transaction;
    @XmlAttribute(name = "Application_ID", required = true)
    protected String applicationID;
    @XmlAttribute(name = "Date_Created")
    protected XMLGregorianCalendar dateCreated;

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

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

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

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

    /**
     * Gets the value of the otherIncomeIncluded property.
     *
     * @return
     *     possible object is
     *     {@link Boolean }
     *
     */
    public Boolean isOtherIncomeIncluded() {
        return otherIncomeIncluded;
    }

    /**
     * Sets the value of the otherIncomeIncluded property.
     *
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *
     */
    public void setOtherIncomeIncluded(Boolean value) {
        this.otherIncomeIncluded = value;
    }

    /**
     * Gets the value of the otherLiabilitiesIncluded property.
     *
     * @return
     *     possible object is
     *     {@link Boolean }
     *
     */
    public Boolean isOtherLiabilitiesIncluded() {
        return otherLiabilitiesIncluded;
    }

    /**
     * Sets the value of the otherLiabilitiesIncluded property.
     *
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *
     */
    public void setOtherLiabilitiesIncluded(Boolean value) {
        this.otherLiabilitiesIncluded = value;
    }

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

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

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

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

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

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

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

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

    /**
     * Gets the value of the amount property.
     *
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * Sets the value of the amount property.
     *
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *
     */
    public void setAmount(BigDecimal value) {
        this.amount = value;
    }

    /**
     * Gets the value of the interestRate property.
     *
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *
     */
    public BigDecimal getInterestRate() {
        return interestRate;
    }

    /**
     * Sets the value of the interestRate property.
     *
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *
     */
    public void setInterestRate(BigDecimal value) {
        this.interestRate = value;
    }

    /**
     * Gets the value of the numberOfMonths property.
     *
     * @return
     *     possible object is
     *     {@link BigInteger }
     *
     */
    public BigInteger getNumberOfMonths() {
        return numberOfMonths;
    }

    /**
     * Sets the value of the numberOfMonths property.
     *
     * @param value
     *     allowed object is
     *     {@link BigInteger }
     *
     */
    public void setNumberOfMonths(BigInteger value) {
        this.numberOfMonths = value;
    }

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

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

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

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

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

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

    /**
     * Gets the value of the purpose property.
     *
     * @return
     *     possible object is
     *     {@link PurposeType }
     *
     */
    public PurposeType getPurpose() {
        return purpose;
    }

    /**
     * Sets the value of the purpose property.
     *
     * @param value
     *     allowed object is
     *     {@link PurposeType }
     *
     */
    public void setPurpose(PurposeType value) {
        this.purpose = value;
    }

    /**
     * Gets the value of the borrowers property.
     *
     * @return
     *     possible object is
     *     {@link ApplicationType.Borrowers }
     *
     */
    public ApplicationType.Borrowers getBorrowers() {
        return borrowers;
    }

    /**
     * Sets the value of the borrowers property.
     *
     * @param value
     *     allowed object is
     *     {@link ApplicationType.Borrowers }
     *
     */
    public void setBorrowers(ApplicationType.Borrowers value) {
        this.borrowers = value;
    }

    /**
     * Gets the value of the transaction property.
     *
     * @return
     *     possible object is
     *     {@link TransactionType }
     *
     */
    public TransactionType getTransaction() {
        return transaction;
    }

    /**
     * Sets the value of the transaction property.
     *
     * @param value
     *     allowed object is
     *     {@link TransactionType }
     *
     */
    public void setTransaction(TransactionType value) {
        this.transaction = value;
    }

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

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

    /**
     * Gets the value of the dateCreated property.
     *
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public XMLGregorianCalendar getDateCreated() {
        return dateCreated;
    }

    /**
     * Sets the value of the dateCreated property.
     *
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *
     */
    public void setDateCreated(XMLGregorianCalendar value) {
        this.dateCreated = value;
    }

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

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element name="Borrower" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}BorrowerType" maxOccurs="2" minOccurs="0"/>
     *         <element name="Housing_Expense" minOccurs="0">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <sequence>
     *                   <element name="Expense" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}ExpenseType" maxOccurs="2" minOccurs="0"/>
     *                 </sequence>
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *         <element name="Assets_Liabilities" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}AssetsLiabilitiesType" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     *

     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "borrower",
        "housingExpense",
        "assetsLiabilities"
    })
    public static class Borrowers {

        @XmlElement(name = "Borrower")
        protected List<BorrowerType> borrower;
        @XmlElement(name = "Housing_Expense")
        protected ApplicationType.Borrowers.HousingExpense housingExpense;
        @XmlElement(name = "Assets_Liabilities")
        protected AssetsLiabilitiesType assetsLiabilities;

        /**
         * Gets the value of the borrower property.
         *
         *

         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a set method for the borrower property.
         *
         *

         * For example, to add a new item, do as follows:
         *

         *    getBorrower().add(newItem);
         *

         *
         *
         *

         * Objects of the following type(s) are allowed in the list
         * {@link BorrowerType }
         *
         *
         */
        public List<BorrowerType> getBorrower() {
            if (borrower == null) {
                borrower = new ArrayList<BorrowerType>();
            }
            return this.borrower;
        }

        /**
         * Gets the value of the housingExpense property.
         *
         * @return
         *     possible object is
         *     {@link ApplicationType.Borrowers.HousingExpense }
         *
         */
        public ApplicationType.Borrowers.HousingExpense getHousingExpense() {
            return housingExpense;
        }

        /**
         * Sets the value of the housingExpense property.
         *
         * @param value
         *     allowed object is
         *     {@link ApplicationType.Borrowers.HousingExpense }
         *
         */
        public void setHousingExpense(ApplicationType.Borrowers.HousingExpense value) {
            this.housingExpense = value;
        }

        /**
         * Gets the value of the assetsLiabilities property.
         *
         * @return
         *     possible object is
         *     {@link AssetsLiabilitiesType }
         *
         */
        public AssetsLiabilitiesType getAssetsLiabilities() {
            return assetsLiabilities;
        }

        /**
         * Sets the value of the assetsLiabilities property.
         *
         * @param value
         *     allowed object is
         *     {@link AssetsLiabilitiesType }
         *
         */
        public void setAssetsLiabilities(AssetsLiabilitiesType value) {
            this.assetsLiabilities = value;
        }

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

         * <complexType>
         *   <complexContent>
         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         *       <sequence>
         *         <element name="Expense" type="{http://jboss.com/demo/products/soa-p/5.2/Application.xsd}ExpenseType" maxOccurs="2" minOccurs="0"/>
         *       </sequence>
         *     </restriction>
         *   </complexContent>
         * </complexType>
         *

         *
         *
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "expense"
        })
        public static class HousingExpense {

            @XmlElement(name = "Expense")
            protected List<ExpenseType> expense;

            /**
             * Gets the value of the expense property.
             *
             *

             * This accessor method returns a reference to the live list,
             * not a snapshot. Therefore any modification you make to the
             * returned list will be present inside the JAXB object.
             * This is why there is not a set method for the expense property.
             *
             *

             * For example, to add a new item, do as follows:
             *

             *    getExpense().add(newItem);
             *

             *
             *
             *

             * Objects of the following type(s) are allowed in the list
             * {@link ExpenseType }
             *
             *
             */
            public List<ExpenseType> getExpense() {
                if (expense == null) {
                    expense = new ArrayList<ExpenseType>();
                }
                return this.expense;
            }

        }

    }

}


text:
package se.litsec.eidas.opensaml.metadata;

import java.util.List;

import javax.xml.namespace.QName;

import org.opensaml.saml.common.SAMLObject;

import se.litsec.eidas.opensaml.common.EidasConstants;

/**
 * The {@code <ser:DistributionPoints>} element.
 *
 * <pre>{@code
 * <xs:complexType name="DistributionPointsType">
 *   <xs:annotation>
 *     <xs:documentation>
 *       A list of distribution points. URLs from where the metadata service list can be downloaded.
 *     </xs:documentation>
 *   </xs:annotation>
 *   <xs:sequence>
 *     <xs:element name="DistributionPoint" type="xs:anyURI" minOccurs="1" maxOccurs="unbounded" />
 *   </xs:sequence>
 * </xs:complexType>}
 * </pre>
 *
 * @author Martin Lindström (martin.lindstrom@litsec.se)
 */
public interface DistributionPoints extends SAMLObject {

  /** Name of the element. */
  public static final String DEFAULT_ELEMENT_LOCAL_NAME = "DistributionPoints";

  /** Default element name. */
  public static final QName DEFAULT_ELEMENT_NAME = new QName(EidasConstants.EIDAS_SERVICELIST_NS, DEFAULT_ELEMENT_LOCAL_NAME,
    EidasConstants.EIDAS_SERVICELIST_PREFIX);

  /** Local name of the XSI type. */
  public static final String TYPE_LOCAL_NAME = "DistributionPointsType";

  /** QName of the XSI type. */
  public static final QName TYPE_NAME = new QName(EidasConstants.EIDAS_SERVICELIST_NS, TYPE_LOCAL_NAME,
    EidasConstants.EIDAS_SERVICELIST_PREFIX);

  /** Name of the DistributionPoint elements. */
  public static final String DISTRIBUTION_POINT_LOCAL_NAME = "DistributionPoint";

  /**
   * Returns a reference to the list of distribution points.
   *
   * @return an distrubution point list
   */
  List<DistributionPoint> getDistributionPoints();

}


text:
jive = this.jive || {};
jive.oo = jive.oo || {};

/**
 * Given two or more classes `compose()` creates a new class that inherits from
 * all of the composed classes.  The composed classes may have declare their
 * own superclasses; but they and their superclasses must form a linear
 * hierarchy.
 *
 * This implementation is similar to Traits as mixins in Scala, except that in
 * this implementation there is no distinction between classes and traits.
 *
 * @function
 * @param   {...jive.oo.Class}  classes     two or more classes to compose
 * @returns {jive.oo.Class} returns a new class that inherits from all of the composed classes
 * @requires jive.oo.Class
 */
jive.oo.compose = (function(){
    // Returns true if the given array contains the given element and false
    // otherwise.
    function contains(array, e) {
        for (var i = 0; i < array.length; i += 1) {
            if (array[i] === e) {
                return true;
            }
        }
        return false;
    }

    return function compose(/* classes */) {
        var classes = Array.prototype.slice.call(arguments)
          , original = jive.oo.Class
          , chain = []
          , ultimate = []
          , parent;

        for (var i = 0; i < classes.length; i += 1) {
            chain.push(classes[i]);  // add each class to the inheritance chain.

            // Record each class's parent class if it has one.
            parent = classes[i].superclass;
            if (parent !== original && !contains(ultimate, parent) && !contains(chain, parent)) {
                ultimate.push(parent);
            }
        }

        // Only one ultimate class is allowed.
        if (ultimate.length > 1) {
            throw "Cannot create linear inheritance chain. Make sure classes that you are mixing in do not inherit from different parent classes.";
        } else if (ultimate.length == 1 && chain[0].superclass !== ultimate[0]) {
            chain.unshift(ultimate[0]);
        }

        var comp = chain[0];
        for (i = 1; i < chain.length; i += 1) {
            comp = comp.extend(chain[i].definition);
        }

        return comp;
    };
})();