text:
"""Generate the landing page for the Gluster Forge

Generates the content, leaving the look/feel to be controlled
by CSS (untouched by this).  This should mean other people can
generate CSS that looks good, without needing to touch this
code.  (in theory ;>)

Requires the SQLite3 Python module
"""

import os, os.path, sys, ConfigParser
import sqlite3
import requests
import json
from datetime import datetime

# Info to grab

## Incubating Projects

## Active Projects

# Open the ./db/project_stats.db SQLite3 database
base_path = os.path.dirname(os.path.realpath(__file__))
db_path = os.path.join(base_path, 'db/project_stats.db')
conn = sqlite3.connect(db_path)

# Connect to the database
c = conn.cursor()

# Retrieve all of the project stats for the last day
sql = ("select * from social_stats where time_stamp > strftime('%Y-%m-%dT%H:%M:%S', 'now', '-1 day')")
c.execute(sql)
sql_results = c.fetchall()

# Close the database connection
c.close()

redpajama_set_name: RedPajamaGithub


text:
class Facts(object):
    """This class represents all the facts we know about units, buildings, and research,
    including costs, supply, dependencies, etc.
    """

    def __init__(self, units, buildings, research, abilities):
        self.units = units
        self.buildings = buildings
        self.research = research
        self.abilities = abilities

    def unit_names(self):
        return self.units.keys()

    def is_building(self, item_name):
        return item_name in self.buildings.keys()

    def is_unit(self, item_name):
        return item_name in self.units.keys()

    def is_research(self, item_name):
        return item_name in self.research.keys()

    def building_names(self):
        return self.buildings.keys()

    def research_names(self):
        return self.research.keys()

    def all_item_names(self):
        return self.all().keys()

    def all(self):
        everything = {}
        everything.update(self.buildings)
        everything.update(self.units)
        everything.update(self.research)
        return everything

    def dependencies(self, item_name):
        everything = self.all()
        if item_name in everything:
            return everything[item_name]['dependencies']

    def cost(self, item_name):
        everything = self.all()
        if item_name in everything:
            return everything[item_name]

        raise Exception("Invalid item name: `%s`" % item_name)

    def __str__(self):
        return str(sorted(self.all().keys()))


text:
import scala.language.{ higherKinds, implicitConversions }

trait Foo { type Out }

trait SI {
  val inst: Foo
  type Out
}

object Test {
  def test: Unit = {
    def indirect(si: SI)(v: si.inst.Out) = v

    val foo: Foo { type Out = Int } = ???
    def conv(i: Foo): SI { type Out = i.Out; val inst: i.type } = ???

    val converted = conv(foo)

    val v1: Int = indirect(converted)(23)  // Okay (after refining the return type `inst` in the return type of `conv`)
    /*
    indirect(converted){(v: converted.inst.Out)converted.inst.Out}(
      23{Int(23)}
    ){converted.inst.Out};
    */

    val v2: Int = indirect(conv(foo))(23)  // Used to fail as follows:
    /*
    indirect(
        conv(foo){si.SI{type Out = foo.Out; val inst: si.Test.<refinement>.type}}
    ){(v: si.inst.Out)si.inst.Out}(
      23{<error>}
    ){<error>};
    */

  }
}


text:
var fs = require('fs'),
    path = require('path'),
    utils = require('./utils.js');
    babel = require('babel-core');

/*
 * callback(parmas)
 * args.cnt  当前处理文件的内容 string
 * args.fp   当前处理文件的绝对路径 string
 *
 *
 */
module.exports = function(cbBefore, cbAfter, buildPath, exportType, retract){
    // 清空 clear callback
    cbBefore.empty();
    cbAfter.empty();

    var exportTpl = utils.loadTpl(__dirname + '/tpl/' +
            (exportType === 'window' ? 'exp-func' : 'export') + '.tpl');

    var retractStr = '\n';
    for(var i = 0; i < retract; i++){
        retractStr += '\t';
    }
    //格式缩进 format require code tab
    cbAfter.add(function(args){
        args.cnt = args.cnt.replace(/\n/g, retractStr);
        return;
    });
    // 处理不同ext文件 template require like require('htmlcode.tpl') export a safe string;
    cbBefore.add(function(args){
        switch(path.extname(args.fp)){
            case '.tpl':
                args.cnt = utils.simpleTemplate(exportTpl, JSON.stringify(args.cnt));
                break;
            case '.json':
                args.cnt = utils.simpleTemplate(exportTpl, args.cnt); //解析出错直接暴露
                break;
            case '.es6':
                args.cnt = babel.transform(args.cnt, {
                    modules: "common"
                }).code;
                break;
            default:
                break;
        }
        return;
    })
}


text:
description: Scale your service, spawn new containers
keywords: spawn, container, service, deploy
redirect_from:
- /docker-cloud/feature-reference/service-scaling/
title: Scale your service
---

Docker Cloud makes it easy to spawn new containers of your service to handle
additional load. Two modes are available to allow you to scale services with
different configuration requirements.

## Deployment and scaling modes

Any service that handles additional load by increasing the number of containers
of the service is considered "horizontally scalable".

There are two deployment modes when scaling a service:

-   **Parallel mode** (default): all containers of a service are
    deployed at the same time without any links between them. This is
    the fastest way to deploy, and is the default.

-   **Sequential mode**: each new container is deployed in the service one at a
    time. Each container is linked to all previous containers using service
    links. This makes complex configuration possible within the containers
    startup logic. This mode is explained in detail in the following sections.

## When should I use Parallel scaling?

 When the containers in a service work independently of each other and do not
 need to coordinate between themselves, they can be scaled up in parallel mode.

Examples include:

-   Stateless web servers and proxies
-   "Worker" instances that process jobs from a queue
-   "Cron"-style instances that execute periodic tasks

The default scaling mode is parallel, so no additional configuration is
required to use this mode.

## When should I use Sequential scaling?

Some services require coordination between different containers to ensure that
the service functions correctly. Many databases, such as MySQL for example,
require that the containers know about each other at startup time so that
traffic can be routed to them appropriately. When this is the case, you should
use [sequential scaling](service-scaling.md#sequential-deployment-and-scaling).

To allow peer-aware container startup, you can enable sequential scaling mode. See [Sequential Scaling](service-scaling.md#sequential-deployment-and-scaling) for more information.

## Setting the initial number of containers

When you configure a service in Docker Cloud, you can specify an initial number of containers for the service before you launch.

![](images/service-wizard-scale.png)

Docker Cloud immediately launches as many containers as you specified.

### Setting the initial containers using the API

You can specify the initial number of containers for a service when deploying it through the API:

```
POST /api/app/v1/service/ HTTP/1.1
{
	 "target_num_containers": 2,
	 [...]
}
```

If you don't specify the number of containers to deploy, this command defaults to `1`. See the [API documentation](/apidocs/docker-cloud.md) for more information.

### Setting the initial containers using the CLI

You can also specify the initial number of containers for a service when deploying it using the CLI:

```bash
$ docker-cloud service run -t 2 [...]
```

If you don't specify the number of containers to deploy, the CLI uses the default value of `1`. See the [CLI documentation](/apidocs/docker-cloud.md) for more information.

## Scaling an already running service

If you need to scale a service up or down while it is running, you can change the number of containers from the service detail page:

![](images/service-before-scaling.png)

1. Click the slider at the top of the service detail page.
2. Drag the slider to the number of containers you want.
3. Click **Scale**.

    The application starts scaling immediately, whether this means starting new containers, or gracefully shutting down existing ones.

![](images/service-during-scaling.png)

### Scaling a running service using the API

You can scale an already running service through the API:

```
PATCH /api/app/v1/service/(uuid)/ HTTP/1.1
{
	 "target_num_containers": 2
}
```
See the [scale a service API documentation](/apidocs/docker-cloud.md#scale-a-service)

### Scaling a running service using the CLI

You can also scale an already running service using the CLI:

```bash
$ docker-cloud service scale (uuid or name) 2
```

See the [scale a service CLI documentation](/apidocs/docker-cloud.md#scale-a-service)

## Sequential deployment and scaling

When a service with more than one container is deployed using **sequential deployment** mode, the second and subsequent containers are linked to all the
previous ones using [service links](service-links.md). These links are useful if
your service needs to know about other instances, for example to allow automatic
configuration on startup.

See the [Service links](service-links.md) topic for a list of environment variables that the links create in your containers.

You can set the **Sequential deployment** setting on the **Service configuration** step of the **Launch new service** wizard:

![](images/service-wizard-sequential-deployment.png)

### Set the scaling mode using the API

You can also set the `sequential_deployment` option when deploying an
application through the API:

```
POST /api/app/v1/service/ HTTP/1.1
{
	"sequential_deployment": true,
	[...]
}
```

See [create a new service](/apidocs/docker-cloud.md#create-a-new-service) for
more information.

### Set the scaling mode using the CLI

You can also set the `sequential_deployment` option when deploying an
application through the CLI:

```bash
$ docker-cloud service run --sequential [...]
```


text:
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.IO;

using Duality;
using Duality.Resources;
using Duality.Components;
using Duality.Serialization;

using Duality.Tests.Components;
using Duality.Tests.Components.ExecutionOrderTest;

using NUnit.Framework;

namespace Duality.Tests.Components.ExecutionOrderTest
{
	public class EventOrderLog
	{
		private EventType eventFilter = EventType.All;
		private List<TestComponent> eventOrder = new List<TestComponent>();

		public EventType EventFilter
		{
			get { return this.eventFilter; }
			set { this.eventFilter = value; }
		}
		public IEnumerable<TestComponent> EventOrder
		{
			get { return this.eventOrder; }
		}

		public void Clear()
		{
			this.eventOrder.Clear();
		}
		public void Notify(EventType eventType, TestComponent receiver)
		{
			if ((this.eventFilter & eventType) == EventType.None) return;
			this.eventOrder.Add(receiver);
		}
	}
}


text:
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
 *
 *   Copyright (C) 1997 University of Chicago.
 *   See COPYRIGHT notice in top-level directory.
 */

#include "mpioimpl.h"

#ifdef HAVE_WEAK_SYMBOLS

#if defined(HAVE_PRAGMA_WEAK)
#pragma weak MPI_Info_c2f = PMPI_Info_c2f
#elif defined(HAVE_PRAGMA_HP_SEC_DEF)
#pragma _HP_SECONDARY_DEF PMPI_Info_c2f MPI_Info_c2f
#elif defined(HAVE_PRAGMA_CRI_DUP)
#pragma _CRI duplicate MPI_Info_c2f as PMPI_Info_c2f
/* end of weak pragmas */
#endif

/* Include mapping from MPI->PMPI */
#define MPIO_BUILD_PROFILING
#include "mpioprof.h"
#endif
#include "adio_extern.h"

/*@
    MPI_Info_c2f - Translates a C info handle to a Fortran info handle

Input Parameters:
. info - C info handle (integer)

Return Value:
  Fortran info handle (handle)
@*/
MPI_Fint MPI_Info_c2f(MPI_Info info)
{
#ifndef INT_LT_POINTER
    return (MPI_Fint) info;
#else
    int i;

    if ((info <= (MPI_Info) 0) || (info->cookie != MPIR_INFO_COOKIE))
	return (MPI_Fint) 0;
    if (!MPIR_Infotable) {
	MPIR_Infotable_max = 1024;
	MPIR_Infotable = (MPI_Info *)
	    ADIOI_Malloc(MPIR_Infotable_max*sizeof(MPI_Info));
        MPIR_Infotable_ptr = 0;  /* 0 can't be used though, because
                                  MPI_INFO_NULL=0 */
	for (i=0; i<MPIR_Infotable_max; i++) MPIR_Infotable[i] = MPI_INFO_NULL;
    }
    if (MPIR_Infotable_ptr == MPIR_Infotable_max-1) {
	MPIR_Infotable = (MPI_Info *) ADIOI_Realloc(MPIR_Infotable,
                           (MPIR_Infotable_max+1024)*sizeof(MPI_Info));
	for (i=MPIR_Infotable_max; i<MPIR_Infotable_max+1024; i++)
	    MPIR_Infotable[i] = MPI_INFO_NULL;
	MPIR_Infotable_max += 1024;
    }
    MPIR_Infotable_ptr++;
    MPIR_Infotable[MPIR_Infotable_ptr] = info;
    return (MPI_Fint) MPIR_Infotable_ptr;
#endif
}


text:
project_path: /web/_project.yaml
book_path: /web/shows/_book.yaml

{# wf_updated_on: 2016-03-10 #}
{# wf_published_on: 2016-03-10 #}
{# wf_youtube_id: p4U9rfJkgdU #}

# BlinkOn 5: Paint and Compositing Deep Dive {: .page-title }

<div class="video-wrapper">
  <iframe class="devsite-embedded-youtube-video" data-video-id="p4U9rfJkgdU"
          data-autohide="1" data-showinfo="0" frameborder="0" allowfullscreen>
  </iframe>
</div>

Chris Harrelson talking about Paint and Compositing in Chromium.

Slides: https://docs.google.com/presentation/d/1pbuEJPwbzlYKDEBqJU0D48IJnsN6-gtesvoJ016-rvo/edit#slide=id.p

This talk was given at BlinkOn 5, a low-key conference for Blink contributors, held on November 10 and November 11, 2015 in Google's San Francisco office. More details can be found at http://bit.ly/blinkon5


text:
/*
 * client.cpp
 *
 *  Created on: 4. 5. 2016
 *      Author: ondra
 */

#include "client.h"

#include "lightspeed/base/exceptions/httpStatusException.h"
#include "lightspeed/base/actions/promise.tcc"

namespace jsonrpc {

Client::Client(const ClientConfig& cfg)
	:http(cfg),jsonFactory(cfg.jsonFactory),batchCounter(0),url(cfg.url)
{
	serialized.setStaticObj();

}

Future<Client::Result> Client::callAsync(ConstStrA method, JSON::ConstValue params, JSON::ConstValue context) {
	//lock batches, to avoid conflicts during access
	Synchronized<FastLock> _(batchAccess);
	//acquire json factory and create builder
	JSON::Builder json(jsonFactory);

	//build request
	JSON::Builder::CObject obj = json("id", preparedList.length())
			.container()
			("method",method)
			("params",params);
	//if context is set, add to request
	if (context != nil) {
		obj("context",context);
	}

	//add request to prepare list, create promise
	Future<Client::Result> res;
	preparedList.add(PreparedItem(obj,res.getPromise()));

	//if no batch active...
	if (batchCounter == 0) {
		//open single request batch
		batchCounter = 1;
		//unlock batch access
		SyncReleased<FastLock> _(batchAccess);
		//run this batch now
		runBatch();
	}

	//in all cases, return future
	return res;
}

Client::Result Client::call(ConstStrA method, JSON::ConstValue params, JSON::ConstValue context) {
	return callAsync(method,params,context).getValue();
}

void Client::beginBatch() {
	Synchronized<FastLock> _(batchAccess);
	//just increase batch counter
	batchCounter++;

}

void Client::closeBatch() {
	Synchronized<FastLock> _(batchAccess);
	//if any batch active
	if (batchCounter > 0) {
		//this is last closeBatch?
		if (batchCounter == 1) {
			//yes, close batch now (there should not be other closeBatch, so we can release the lock)
			SyncReleased<FastLock> _(batchAccess);
			//now run batch
			//the batch is still seen opened, so we can collect other requests
			runBatch();
		} else {
			//just decrease batch counter
			batchCounter --;
		}
	}
}

void Client::runBatch() {
	using namespace BredyHttpClient;
	//lock processing (wait until other request processes)
	//we are still in opened batch - other requests can be collected
	Synchronized<FastLock> _(processingAccess);
	//there will be list of processing requests
	PreparedList processing;
	//clear serialized request from previous run
	serialized.clear();
	try {
		{
			//lock batch access - now closing collector
			Synchronized<FastLock> __(batchAccess);
			//release final count of batches
			//there can be different number than 1. Someone other could have opened batch.
			batchCounter--;
			//if prepared list is empty (how?) quit now
			if (preparedList.empty()) return;
			//move prepared list to processing
			processing.swap(preparedList);

		}
		http.open(HttpClient::mPOST,url);
		http.setHeader(HttpClient::fldContentType,"application/json");
		http.setHeader(HttpClient::fldAccept,"application/json");
		SeqFileOutput body = http.beginBody();

		//build request to memory
		for (PreparedList::Iterator iter = processing.getFwIter(); iter.hasItems();) {
			jsonFactory->toStream(*iter.getNext().request, body);
		}

		SeqFileInput response = http.send();

		//check status (should be 200)
		if (http.getStatus() == 200) {

			//process all requests
			for (natural i = 0; i < processing.length(); i++) {
				JSON::Value r;
				//parse response
				{
					Synchronized<FastLock> _(batchAccess);
					r = jsonFactory->fromStream(response);
				}
				//pick "id"
				JSON::ConstValue vid = r["id"];
				//id is equal to index
				//if id is not defined, this is strange situation, ignore response
				if (vid!= nil) {
					//pick id
					natural id = vid->getUInt();
					//check whether id in range
					if (id < processing.length()) {
						//pick request
						const PreparedItem &itm = processing[id];
						//it should not be done
						if (!itm.done) {
							//mark it done
							itm.done = true;
							//pick result
							JSON::Value result = r["result"];
							//pick error
							JSON::Value error = r["error"];
							//pick context
							JSON::Value context = r["context"];
							//if error
							if (error != nil && !error->isNull()) {
								//reject promise
								itm.result.reject(RpcError(THISLOCATION,static_cast<JSON::Value &>(error)));
							} else {
								//otherwise resolve promise
								itm.result.resolve(Result(result,context));
							}
						}
					}
				}
			}

			//process all requests that aren't done
			for (natural i = 0; i < processing.length(); i++) {
				if (!processing[i].done) {
					//reject them
					processing[i].result.reject(HttpStatusException(THISLOCATION,url,500,"No response from the server"));
				}
			}

		} else {
			//if other status then 200 reject all promises with HttpStatusException
			PException exp = new HttpStatusException(THISLOCATION,url,http.getStatus(),http.getStatusMessage());
			for (PreparedList::Iterator iter = processing.getFwIter(); iter.hasItems();) {
				iter.getNext().result.reject(exp);
			}
		}
		//also skip remain body
		http.close();
	} catch (const Exception &e) {
		http.close();
		//in case of exception, reject all promises with exception
		for (PreparedList::Iterator iter = processing.getFwIter(); iter.hasItems();) {
			const PreparedItem &itm = iter.getNext();
			if (!itm.done) itm.result.reject(e);
		}
	}
}

Future<Client::Result> Client::Batch::call(ConstStrA method, JSON::ConstValue params, JSON::ConstValue context) {
	return client.callAsync(method,params,context);
}

Client::PreparedItem::PreparedItem(const JSON::ConstValue &request,Promise<Result> result):request(request),result(result),done(false) {}
Client::PreparedItem::~PreparedItem() {}

} /* namespace jsonrpc */

template class LightSpeed::Promise<jsonrpc::Client::Result>;


text:
[jQuery](http://jquery.com/) extern for [Haxe](http://haxe.org/).

Currently supports jQuery version up to *1.10.2* / *2.0.3*. Requires Haxe 3.0+.

You may check my [blog](http://blog.onthewings.net/) for updates.

## Download and Install

Install via [haxelib](http://haxe.org/doc/haxelib/using_haxelib):
`haxelib install jQueryExtern`

Then put `-lib jQueryExtern` into your hxml.

##Usage

Typically:
```haxe
import jQuery.*;

class Main {
	static public function main():Void {
		new JQuery(function():Void { //when document is ready
			//your magic
		});
	}
}
```
It is same as how you use jQuery in JS. But instead of `$`, you refer jQuery as `JQuery`.

eg. Hiding all *li* object:
```
new JQuery("li").hide(); //same as $("li").hide() in JS
```

Static methods of jQuery can be accessed from `JQuery._static`.

eg. A ajax example:
```
JQuery._static.get("ajax/test.html", function(data) {
	js.Lib.alert(data);
});
```
Remember **jQueryExtern** is simply an extern, you have to link jQuery in your html file.

eg. In your `<head>`:
```html
<!-- jQuery from Google CDN -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<!-- Your haxe compiled script: -->
<script type="text/javascript" src="Main.js"></script>
```

## *js.JQuery* in haxe std lib VS *jQueryExtern*

		js.JQuery
		jQueryExtern

		import statement
		"import js.JQuery;"
		"import jQuery.*;"

		jQuery API version
		partial 1.6.4
		complete 1.10.2 / 2.0.3

		refer jQuery in output as
		"js.JQuery"
		"$" (or "jQuery" if --macro jQuery.haxe.Config.setNative('jQuery'))

		include jQuery in output
		no (can be opt-in by -D embed-js)
		no, use CDN instead

## License

jQueryExtern is released in the public domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.

jQuery's license can be found at http://jquery.org/license.


text:
alter table DYEXTN_OBJECT_TYPE_INFO drop foreign key FK74819FB0BC7298A9;
alter table DYEXTN_COLUMN_PROPERTIES drop foreign key FK8FCE2B3FBC7298A9;
alter table DYEXTN_COLUMN_PROPERTIES drop foreign key FK8FCE2B3FB4C15A36;
alter table DYEXTN_USERDEFINED_DE drop foreign key FK630761FFBC7298A9;
alter table DYEXTN_CONSTRAINT_PROPERTIES drop foreign key FK82886CD8BC7298A9;
alter table DYEXTN_CONSTRAINT_PROPERTIES drop foreign key FK82886CD8927B15B9;
alter table DYEXTN_PERMISSIBLE_VALUE drop foreign key FK136264E08C8D972A;
alter table DYEXTN_PERMISSIBLE_VALUE drop foreign key FK136264E03D51114B;
alter table DYEXTN_CHECK_BOX drop foreign key FK4EFF9257BC7298A9;
alter table DYEXTN_TABLE_PROPERTIES drop foreign key FKE608E08179F466F7;
alter table DYEXTN_TABLE_PROPERTIES drop foreign key FKE608E081BC7298A9;
alter table DYEXTN_INTEGER_CONCEPT_VALUE drop foreign key FKFBA33B3CBC7298A9;
alter table DYEXTN_STRING_CONCEPT_VALUE drop foreign key FKADE7D889BC7298A9;
alter table DYEXTN_BOOLEAN_TYPE_INFO drop foreign key FK28F1809FBC7298A9;
alter table DYEXTN_BOOLEAN_CONCEPT_VALUE drop foreign key FK57B6C4A6BC7298A9;
alter table DE_FILE_ATTR_RECORD_VALUES drop foreign key FKE68334E7E150DFC9;
alter table DYEXTN_STRING_TYPE_INFO drop foreign key FKDA35FE02BC7298A9;
alter table DYEXTN_SHORT_CONCEPT_VALUE drop foreign key FKC1945ABABC7298A9;
alter table DYEXTN_FLOAT_TYPE_INFO drop foreign key FK7E1C0693BC7298A9;
alter table DYEXTN_FILE_UPLOAD drop foreign key FK2FAD41E7BC7298A9;
alter table DYEXTN_BARR_CONCEPT_VALUE drop foreign key FK89D27DF7BC7298A9;
alter table DYEXTN_ENTITY drop foreign key FK8B243640450711A2;
alter table DYEXTN_ENTITY drop foreign key FK8B243640BC7298A9;
alter table DYEXTN_INTEGER_TYPE_INFO drop foreign key FK5F9CB235BC7298A9;
alter table DYEXTN_TAGGED_VALUE drop foreign key FKF79D055B7D7A9B8E;
alter table DE_OBJECT_ATTR_RECORD_VALUES drop foreign key FK504EADC4E150DFC9;
alter table DYEXTN_COMBOBOX drop foreign key FKABBC649ABC7298A9;
alter table DYEXTN_CADSR_VALUE_DOMAIN_INFO drop foreign key FK1C9AA364B4C15A36;
alter table DYEXTN_PRIMITIVE_ATTRIBUTE drop foreign key FKA9F765C7BC7298A9;
alter table DYEXTN_ASSOCIATION drop foreign key FK104684243AC5160;
alter table DYEXTN_ASSOCIATION drop foreign key FK10468424F60C84D6;
alter table DYEXTN_ASSOCIATION drop foreign key FK104684246315C5C9;
alter table DYEXTN_ASSOCIATION drop foreign key FK10468424BC7298A9;
alter table DYEXTN_CADSRDE drop foreign key FK588A2509BC7298A9;
alter table DYEXTN_DOUBLE_TYPE_INFO drop foreign key FKC83869C2BC7298A9;
alter table DYEXTN_SELECT_CONTROL drop foreign key FKDFEBB657BC7298A9;
alter table DYEXTN_ENTITY_GROUP_REL drop foreign key FK5A0D835A992A67D7;
alter table DYEXTN_ENTITY_GROUP_REL drop foreign key FK5A0D835A79F466F7;
alter table DYEXTN_FILE_TYPE_INFO drop foreign key FKA00F0EDBC7298A9;
alter table DYEXTN_FILE_EXTENSIONS drop foreign key FKD49834FA4D87D1BE;
alter table DYEXTN_LONG_TYPE_INFO drop foreign key FK257281EDBC7298A9;
alter table DYEXTN_FLOAT_CONCEPT_VALUE drop foreign key FK6785309ABC7298A9;
alter table DYEXTN_TEXTFIELD drop foreign key FKF9AFC850BC7298A9;
alter table DYEXTN_RULE drop foreign key FKC27E0994D87D1BE;
alter table DYEXTN_DATE_TYPE_INFO drop foreign key FKFBA549FBC7298A9;
alter table DYEXTN_ATTRIBUTE_TYPE_INFO drop foreign key FK62596D53B4C15A36;
alter table DYEXTN_ASSO_DISPLAY_ATTR drop foreign key FKD12FD3823B3AAE3B;
alter table DYEXTN_ASSO_DISPLAY_ATTR drop foreign key FKD12FD382F7AA8E80;
alter table DYEXTN_TEXTAREA drop foreign key FK946EE257BC7298A9;
alter table DYEXTN_ENTITY_GROUP drop foreign key FK105DE7A0BC7298A9;
alter table DYEXTN_DATA_ELEMENT drop foreign key FKB1153E48C8D972A;
alter table DYEXTN_DOUBLE_CONCEPT_VALUE drop foreign key FKB94E6449BC7298A9;
alter table DYEXTN_LIST_BOX drop foreign key FK208395A7BC7298A9;
alter table DYEXTN_CONTAINMENT_CONTROL drop foreign key FK3F9D4AD3F7798636;
alter table DYEXTN_CONTAINMENT_CONTROL drop foreign key FK3F9D4AD3BC7298A9;
alter table DYEXTN_LONG_CONCEPT_VALUE drop foreign key FK3E1A6EF4BC7298A9;
alter table DYEXTN_CONTROL drop foreign key FK70FB5E80A67822BB;
alter table DYEXTN_CONTROL drop foreign key FK70FB5E809C6A9B9;
alter table DYEXTN_ATTRIBUTE drop foreign key FK37F1E2FFB15CD09F;
alter table DYEXTN_ATTRIBUTE drop foreign key FK37F1E2FFBC7298A9;
alter table DYEXTN_RULE_PARAMETER drop foreign key FK22567363871AAD3E;
alter table DYEXTN_DATE_CONCEPT_VALUE drop foreign key FK45F598A6BC7298A9;
alter table DYEXTN_BYTE_ARRAY_TYPE_INFO drop foreign key FK18BDA73BC7298A9;
alter table DYEXTN_SEMANTIC_PROPERTY drop foreign key FKD2A0B5B13BAB5E46;
alter table DYEXTN_SEMANTIC_PROPERTY drop foreign key FKD2A0B5B17D7A9B8E;
alter table DYEXTN_ATTRIBUTE_RECORD drop foreign key FK9B20ED9179F466F7;
alter table DYEXTN_ATTRIBUTE_RECORD drop foreign key FK9B20ED914D87D1BE;
alter table DYEXTN_DATA_GRID drop foreign key FK233EB73EBC7298A9;
alter table DE_COLL_ATTR_RECORD_VALUES drop foreign key FK847DA577355836BC;
alter table DYEXTN_NUMERIC_TYPE_INFO drop foreign key FK4DEC9544BC7298A9;
alter table DYEXTN_SHORT_TYPE_INFO drop foreign key FK99540B3BC7298A9;
alter table DYEXTN_CONTAINER drop foreign key FK1EAB84E4A1257067;
alter table DYEXTN_CONTAINER drop foreign key FK1EAB84E479F466F7;
alter table DYEXTN_CONTAINER drop foreign key FK1EAB84E4992A67D7;
alter table DYEXTN_CONTAINER drop foreign key FK1EAB84E445DEFCF5;
alter table DYEXTN_RADIOBUTTON drop foreign key FK16F5BA90BC7298A9;
alter table DYEXTN_DATEPICKER drop foreign key FKFEADD199BC7298A9;
drop table if exists DYEXTN_OBJECT_TYPE_INFO;
drop table if exists DYEXTN_COLUMN_PROPERTIES;
drop table if exists DYEXTN_USERDEFINED_DE;
drop table if exists DYEXTN_CONSTRAINT_PROPERTIES;
drop table if exists DYEXTN_PERMISSIBLE_VALUE;
drop table if exists DYEXTN_CHECK_BOX;
drop table if exists DYEXTN_TABLE_PROPERTIES;
drop table if exists DYEXTN_INTEGER_CONCEPT_VALUE;
drop table if exists DYEXTN_STRING_CONCEPT_VALUE;
drop table if exists DYEXTN_BOOLEAN_TYPE_INFO;
drop table if exists DYEXTN_BOOLEAN_CONCEPT_VALUE;
drop table if exists DE_FILE_ATTR_RECORD_VALUES;
drop table if exists DYEXTN_ABSTRACT_METADATA;
drop table if exists DYEXTN_STRING_TYPE_INFO;
drop table if exists DYEXTN_SHORT_CONCEPT_VALUE;
drop table if exists DYEXTN_FLOAT_TYPE_INFO;
drop table if exists DYEXTN_FILE_UPLOAD;
drop table if exists DYEXTN_BARR_CONCEPT_VALUE;
drop table if exists DYEXTN_ENTITY;
drop table if exists DYEXTN_INTEGER_TYPE_INFO;
drop table if exists DYEXTN_TAGGED_VALUE;
drop table if exists DE_OBJECT_ATTR_RECORD_VALUES;
drop table if exists DYEXTN_COMBOBOX;
drop table if exists DYEXTN_CADSR_VALUE_DOMAIN_INFO;
drop table if exists DYEXTN_PRIMITIVE_ATTRIBUTE;
drop table if exists DYEXTN_ASSOCIATION;
drop table if exists DYEXTN_CADSRDE;
drop table if exists DYEXTN_DOUBLE_TYPE_INFO;
drop table if exists DYEXTN_SELECT_CONTROL;
drop table if exists DYEXTN_ENTITY_GROUP_REL;
drop table if exists DYEXTN_DATABASE_PROPERTIES;
drop table if exists DYEXTN_FILE_TYPE_INFO;
drop table if exists DYEXTN_FILE_EXTENSIONS;
drop table if exists DYEXTN_LONG_TYPE_INFO;
drop table if exists DYEXTN_FLOAT_CONCEPT_VALUE;
drop table if exists DYEXTN_TEXTFIELD;
drop table if exists DYEXTN_ROLE;
drop table if exists DYEXTN_RULE;
drop table if exists DYEXTN_DATE_TYPE_INFO;
drop table if exists DYEXTN_ATTRIBUTE_TYPE_INFO;
drop table if exists DYEXTN_ASSO_DISPLAY_ATTR;
drop table if exists DYEXTN_TEXTAREA;
drop table if exists DYEXTN_ENTITY_GROUP;
drop table if exists DYEXTN_DATA_ELEMENT;
drop table if exists DYEXTN_DOUBLE_CONCEPT_VALUE;
drop table if exists DYEXTN_LIST_BOX;
drop table if exists DYEXTN_CONTAINMENT_CONTROL;
drop table if exists DYEXTN_LONG_CONCEPT_VALUE;
drop table if exists DYEXTN_CONTROL;
drop table if exists DYEXTN_ATTRIBUTE;
drop table if exists DYEXTN_RULE_PARAMETER;
drop table if exists DYEXTN_DATE_CONCEPT_VALUE;
drop table if exists DYEXTN_VIEW;
drop table if exists DYEXTN_BYTE_ARRAY_TYPE_INFO;
drop table if exists DYEXTN_SEMANTIC_PROPERTY;
drop table if exists DYEXTN_ATTRIBUTE_RECORD;
drop table if exists DYEXTN_DATA_GRID;
drop table if exists DE_COLL_ATTR_RECORD_VALUES;
drop table if exists DYEXTN_NUMERIC_TYPE_INFO;
drop table if exists DYEXTN_SHORT_TYPE_INFO;
drop table if exists DYEXTN_CONTAINER;
drop table if exists DYEXTN_RADIOBUTTON;
drop table if exists DYEXTN_DATEPICKER;
create table DYEXTN_OBJECT_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_COLUMN_PROPERTIES (
   IDENTIFIER bigint not null,
   PRIMITIVE_ATTRIBUTE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_USERDEFINED_DE (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_CONSTRAINT_PROPERTIES (
   IDENTIFIER bigint not null,
   SOURCE_ENTITY_KEY varchar(255),
   TARGET_ENTITY_KEY varchar(255),
   ASSOCIATION_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_PERMISSIBLE_VALUE (
   IDENTIFIER bigint not null auto_increment,
   DESCRIPTION varchar(255),
   ATTRIBUTE_TYPE_INFO_ID bigint,
   USER_DEF_DE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_CHECK_BOX (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_TABLE_PROPERTIES (
   IDENTIFIER bigint not null,
   ENTITY_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_INTEGER_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE integer,
   primary key (IDENTIFIER)
);
create table DYEXTN_STRING_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_BOOLEAN_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_BOOLEAN_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE bit,
   primary key (IDENTIFIER)
);
create table DE_FILE_ATTR_RECORD_VALUES (
   IDENTIFIER bigint not null auto_increment,
   CONTENT_TYPE varchar(255),
   FILE_CONTENT blob,
   FILE_NAME varchar(255),
   RECORD_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_ABSTRACT_METADATA (
   IDENTIFIER bigint not null auto_increment,
   CREATED_DATE date,
   DESCRIPTION text,
   LAST_UPDATED date,
   NAME text,
   PUBLIC_ID varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_STRING_TYPE_INFO (
   IDENTIFIER bigint not null,
   MAX_SIZE integer,
   primary key (IDENTIFIER)
);
create table DYEXTN_SHORT_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE smallint,
   primary key (IDENTIFIER)
);
create table DYEXTN_FLOAT_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_FILE_UPLOAD (
   IDENTIFIER bigint not null,
   NO_OF_COLUMNS integer,
   primary key (IDENTIFIER)
);
create table DYEXTN_BARR_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_ENTITY (
   IDENTIFIER bigint not null,
   DATA_TABLE_STATE integer,
   IS_ABSTRACT bit,
   PARENT_ENTITY_ID bigint,
   INHERITANCE_STRATEGY integer,
   DISCRIMINATOR_COLUMN_NAME varchar(255),
   DISCRIMINATOR_VALUE varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_INTEGER_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_TAGGED_VALUE (
   IDENTIFIER bigint not null auto_increment,
   T_KEY varchar(255),
   T_VALUE varchar(255),
   ABSTRACT_METADATA_ID bigint,
   primary key (IDENTIFIER)
);
create table DE_OBJECT_ATTR_RECORD_VALUES (
   IDENTIFIER bigint not null auto_increment,
   CLASS_NAME varchar(255),
   OBJECT_CONTENT blob,
   RECORD_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_COMBOBOX (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_CADSR_VALUE_DOMAIN_INFO (
   IDENTIFIER bigint not null auto_increment,
   DATATYPE varchar(255),
   NAME varchar(255),
   TYPE varchar(255),
   PRIMITIVE_ATTRIBUTE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_PRIMITIVE_ATTRIBUTE (
   IDENTIFIER bigint not null,
   IS_COLLECTION bit,
   IS_IDENTIFIED bit,
   IS_PRIMARY_KEY bit,
   IS_NULLABLE bit,
   primary key (IDENTIFIER)
);
create table DYEXTN_ASSOCIATION (
   IDENTIFIER bigint not null,
   DIRECTION varchar(255),
   TARGET_ENTITY_ID bigint,
   SOURCE_ROLE_ID bigint,
   TARGET_ROLE_ID bigint,
   IS_SYSTEM_GENERATED bit,
   primary key (IDENTIFIER)
);
create table DYEXTN_CADSRDE (
   IDENTIFIER bigint not null,
   PUBLIC_ID varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_DOUBLE_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_SELECT_CONTROL (
   IDENTIFIER bigint not null,
   SEPARATOR_STRING varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_ENTITY_GROUP_REL (
   ENTITY_GROUP_ID bigint not null,
   ENTITY_ID bigint not null,
   primary key (ENTITY_ID, ENTITY_GROUP_ID)
);
create table DYEXTN_DATABASE_PROPERTIES (
   IDENTIFIER bigint not null auto_increment,
   NAME varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_FILE_TYPE_INFO (
   IDENTIFIER bigint not null,
   MAX_FILE_SIZE float,
   primary key (IDENTIFIER)
);
create table DYEXTN_FILE_EXTENSIONS (
   IDENTIFIER bigint not null auto_increment,
   FILE_EXTENSION varchar(255),
   ATTRIBUTE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_LONG_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_FLOAT_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE float,
   primary key (IDENTIFIER)
);
create table DYEXTN_TEXTFIELD (
   IDENTIFIER bigint not null,
   NO_OF_COLUMNS integer,
   IS_PASSWORD bit,
   IS_URL bit,
   primary key (IDENTIFIER)
);
create table DYEXTN_ROLE (
   IDENTIFIER bigint not null auto_increment,
   ASSOCIATION_TYPE varchar(255),
   MAX_CARDINALITY integer,
   MIN_CARDINALITY integer,
   NAME varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_RULE (
   IDENTIFIER bigint not null auto_increment,
   NAME varchar(255),
   ATTRIBUTE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_DATE_TYPE_INFO (
   IDENTIFIER bigint not null,
   FORMAT varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_ATTRIBUTE_TYPE_INFO (
   IDENTIFIER bigint not null auto_increment,
   PRIMITIVE_ATTRIBUTE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_ASSO_DISPLAY_ATTR (
   IDENTIFIER bigint not null auto_increment,
   SEQUENCE_NUMBER integer,
   DISPLAY_ATTRIBUTE_ID bigint,
   SELECT_CONTROL_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_TEXTAREA (
   IDENTIFIER bigint not null,
   TEXTAREA_COLUMNS integer,
   TEXTAREA_ROWS integer,
   primary key (IDENTIFIER)
);
create table DYEXTN_ENTITY_GROUP (
   IDENTIFIER bigint not null,
   LONG_NAME varchar(255),
   SHORT_NAME varchar(255),
   VERSION varchar(255),
   IS_SYSTEM_GENERATED bit,
   primary key (IDENTIFIER)
);
create table DYEXTN_DATA_ELEMENT (
   IDENTIFIER bigint not null auto_increment,
   ATTRIBUTE_TYPE_INFO_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_DOUBLE_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE double precision,
   primary key (IDENTIFIER)
);
create table DYEXTN_LIST_BOX (
   IDENTIFIER bigint not null,
   MULTISELECT bit,
   primary key (IDENTIFIER)
);
create table DYEXTN_CONTAINMENT_CONTROL (
   IDENTIFIER bigint not null,
   DISPLAY_CONTAINER_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_LONG_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_CONTROL (
   IDENTIFIER bigint not null auto_increment,
   CAPTION varchar(255),
   CSS_CLASS varchar(255),
   HIDDEN bit,
   NAME varchar(255),
   SEQUENCE_NUMBER integer,
   TOOLTIP varchar(255),
   ABSTRACT_ATTRIBUTE_ID bigint,
   CONTAINER_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_ATTRIBUTE (
   IDENTIFIER bigint not null,
   ENTIY_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_RULE_PARAMETER (
   IDENTIFIER bigint not null auto_increment,
   NAME varchar(255),
   VALUE varchar(255),
   RULE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_DATE_CONCEPT_VALUE (
   IDENTIFIER bigint not null,
   VALUE date,
   primary key (IDENTIFIER)
);
create table DYEXTN_VIEW (
   IDENTIFIER bigint not null auto_increment,
   NAME varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_BYTE_ARRAY_TYPE_INFO (
   IDENTIFIER bigint not null,
   CONTENT_TYPE varchar(255),
   primary key (IDENTIFIER)
);
create table DYEXTN_SEMANTIC_PROPERTY (
   IDENTIFIER bigint not null auto_increment,
   CONCEPT_CODE varchar(255),
   TERM varchar(255),
   THESAURAS_NAME varchar(255),
   SEQUENCE_NUMBER integer,
   CONCEPT_DEFINITION varchar(255),
   ABSTRACT_METADATA_ID bigint,
   ABSTRACT_VALUE_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_ATTRIBUTE_RECORD (
   IDENTIFIER bigint not null auto_increment,
   ENTITY_ID bigint,
   ATTRIBUTE_ID bigint,
   RECORD_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_DATA_GRID (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DE_COLL_ATTR_RECORD_VALUES (
   IDENTIFIER bigint not null auto_increment,
   RECORD_VALUE text,
   COLLECTION_ATTR_RECORD_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_NUMERIC_TYPE_INFO (
   IDENTIFIER bigint not null,
   MEASUREMENT_UNITS varchar(255),
   DECIMAL_PLACES integer,
   NO_DIGITS integer,
   primary key (IDENTIFIER)
);
create table DYEXTN_SHORT_TYPE_INFO (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_CONTAINER (
   IDENTIFIER bigint not null auto_increment,
   BUTTON_CSS varchar(255),
   CAPTION varchar(255),
   ENTITY_ID bigint,
   MAIN_TABLE_CSS varchar(255),
   REQUIRED_FIELD_INDICATOR varchar(255),
   REQUIRED_FIELD_WARNING_MESSAGE varchar(255),
   TITLE_CSS varchar(255),
   BASE_CONTAINER_ID bigint,
   ENTITY_GROUP_ID bigint,
   VIEW_ID bigint,
   primary key (IDENTIFIER)
);
create table DYEXTN_RADIOBUTTON (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
create table DYEXTN_DATEPICKER (
   IDENTIFIER bigint not null,
   primary key (IDENTIFIER)
);
alter table DYEXTN_OBJECT_TYPE_INFO add index FK74819FB0BC7298A9 (IDENTIFIER), add constraint FK74819FB0BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_COLUMN_PROPERTIES add index FK8FCE2B3FBC7298A9 (IDENTIFIER), add constraint FK8FCE2B3FBC7298A9 foreign key (IDENTIFIER) references DYEXTN_DATABASE_PROPERTIES (IDENTIFIER);
alter table DYEXTN_COLUMN_PROPERTIES add index FK8FCE2B3FB4C15A36 (PRIMITIVE_ATTRIBUTE_ID), add constraint FK8FCE2B3FB4C15A36 foreign key (PRIMITIVE_ATTRIBUTE_ID) references DYEXTN_PRIMITIVE_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_USERDEFINED_DE add index FK630761FFBC7298A9 (IDENTIFIER), add constraint FK630761FFBC7298A9 foreign key (IDENTIFIER) references DYEXTN_DATA_ELEMENT (IDENTIFIER);
alter table DYEXTN_CONSTRAINT_PROPERTIES add index FK82886CD8BC7298A9 (IDENTIFIER), add constraint FK82886CD8BC7298A9 foreign key (IDENTIFIER) references DYEXTN_DATABASE_PROPERTIES (IDENTIFIER);
alter table DYEXTN_CONSTRAINT_PROPERTIES add index FK82886CD8927B15B9 (ASSOCIATION_ID), add constraint FK82886CD8927B15B9 foreign key (ASSOCIATION_ID) references DYEXTN_ASSOCIATION (IDENTIFIER);
alter table DYEXTN_PERMISSIBLE_VALUE add index FK136264E08C8D972A (ATTRIBUTE_TYPE_INFO_ID), add constraint FK136264E08C8D972A foreign key (ATTRIBUTE_TYPE_INFO_ID) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_PERMISSIBLE_VALUE add index FK136264E03D51114B (USER_DEF_DE_ID), add constraint FK136264E03D51114B foreign key (USER_DEF_DE_ID) references DYEXTN_USERDEFINED_DE (IDENTIFIER);
alter table DYEXTN_CHECK_BOX add index FK4EFF9257BC7298A9 (IDENTIFIER), add constraint FK4EFF9257BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_TABLE_PROPERTIES add index FKE608E08179F466F7 (ENTITY_ID), add constraint FKE608E08179F466F7 foreign key (ENTITY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_TABLE_PROPERTIES add index FKE608E081BC7298A9 (IDENTIFIER), add constraint FKE608E081BC7298A9 foreign key (IDENTIFIER) references DYEXTN_DATABASE_PROPERTIES (IDENTIFIER);
alter table DYEXTN_INTEGER_CONCEPT_VALUE add index FKFBA33B3CBC7298A9 (IDENTIFIER), add constraint FKFBA33B3CBC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_STRING_CONCEPT_VALUE add index FKADE7D889BC7298A9 (IDENTIFIER), add constraint FKADE7D889BC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_BOOLEAN_TYPE_INFO add index FK28F1809FBC7298A9 (IDENTIFIER), add constraint FK28F1809FBC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_BOOLEAN_CONCEPT_VALUE add index FK57B6C4A6BC7298A9 (IDENTIFIER), add constraint FK57B6C4A6BC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DE_FILE_ATTR_RECORD_VALUES add index FKE68334E7E150DFC9 (RECORD_ID), add constraint FKE68334E7E150DFC9 foreign key (RECORD_ID) references DYEXTN_ATTRIBUTE_RECORD (IDENTIFIER);
alter table DYEXTN_STRING_TYPE_INFO add index FKDA35FE02BC7298A9 (IDENTIFIER), add constraint FKDA35FE02BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_SHORT_CONCEPT_VALUE add index FKC1945ABABC7298A9 (IDENTIFIER), add constraint FKC1945ABABC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_FLOAT_TYPE_INFO add index FK7E1C0693BC7298A9 (IDENTIFIER), add constraint FK7E1C0693BC7298A9 foreign key (IDENTIFIER) references DYEXTN_NUMERIC_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_FILE_UPLOAD add index FK2FAD41E7BC7298A9 (IDENTIFIER), add constraint FK2FAD41E7BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_BARR_CONCEPT_VALUE add index FK89D27DF7BC7298A9 (IDENTIFIER), add constraint FK89D27DF7BC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_ENTITY add index FK8B243640450711A2 (PARENT_ENTITY_ID), add constraint FK8B243640450711A2 foreign key (PARENT_ENTITY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_ENTITY add index FK8B243640BC7298A9 (IDENTIFIER), add constraint FK8B243640BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ABSTRACT_METADATA (IDENTIFIER);
alter table DYEXTN_INTEGER_TYPE_INFO add index FK5F9CB235BC7298A9 (IDENTIFIER), add constraint FK5F9CB235BC7298A9 foreign key (IDENTIFIER) references DYEXTN_NUMERIC_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_TAGGED_VALUE add index FKF79D055B7D7A9B8E (ABSTRACT_METADATA_ID), add constraint FKF79D055B7D7A9B8E foreign key (ABSTRACT_METADATA_ID) references DYEXTN_ABSTRACT_METADATA (IDENTIFIER);
alter table DE_OBJECT_ATTR_RECORD_VALUES add index FK504EADC4E150DFC9 (RECORD_ID), add constraint FK504EADC4E150DFC9 foreign key (RECORD_ID) references DYEXTN_ATTRIBUTE_RECORD (IDENTIFIER);
alter table DYEXTN_COMBOBOX add index FKABBC649ABC7298A9 (IDENTIFIER), add constraint FKABBC649ABC7298A9 foreign key (IDENTIFIER) references DYEXTN_SELECT_CONTROL (IDENTIFIER);
alter table DYEXTN_CADSR_VALUE_DOMAIN_INFO add index FK1C9AA364B4C15A36 (PRIMITIVE_ATTRIBUTE_ID), add constraint FK1C9AA364B4C15A36 foreign key (PRIMITIVE_ATTRIBUTE_ID) references DYEXTN_PRIMITIVE_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_PRIMITIVE_ATTRIBUTE add index FKA9F765C7BC7298A9 (IDENTIFIER), add constraint FKA9F765C7BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_ASSOCIATION add index FK104684243AC5160 (SOURCE_ROLE_ID), add constraint FK104684243AC5160 foreign key (SOURCE_ROLE_ID) references DYEXTN_ROLE (IDENTIFIER);
alter table DYEXTN_ASSOCIATION add index FK10468424F60C84D6 (TARGET_ROLE_ID), add constraint FK10468424F60C84D6 foreign key (TARGET_ROLE_ID) references DYEXTN_ROLE (IDENTIFIER);
alter table DYEXTN_ASSOCIATION add index FK104684246315C5C9 (TARGET_ENTITY_ID), add constraint FK104684246315C5C9 foreign key (TARGET_ENTITY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_ASSOCIATION add index FK10468424BC7298A9 (IDENTIFIER), add constraint FK10468424BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_CADSRDE add index FK588A2509BC7298A9 (IDENTIFIER), add constraint FK588A2509BC7298A9 foreign key (IDENTIFIER) references DYEXTN_DATA_ELEMENT (IDENTIFIER);
alter table DYEXTN_DOUBLE_TYPE_INFO add index FKC83869C2BC7298A9 (IDENTIFIER), add constraint FKC83869C2BC7298A9 foreign key (IDENTIFIER) references DYEXTN_NUMERIC_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_SELECT_CONTROL add index FKDFEBB657BC7298A9 (IDENTIFIER), add constraint FKDFEBB657BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_ENTITY_GROUP_REL add index FK5A0D835A992A67D7 (ENTITY_GROUP_ID), add constraint FK5A0D835A992A67D7 foreign key (ENTITY_GROUP_ID) references DYEXTN_ENTITY_GROUP (IDENTIFIER);
alter table DYEXTN_ENTITY_GROUP_REL add index FK5A0D835A79F466F7 (ENTITY_ID), add constraint FK5A0D835A79F466F7 foreign key (ENTITY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_FILE_TYPE_INFO add index FKA00F0EDBC7298A9 (IDENTIFIER), add constraint FKA00F0EDBC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_FILE_EXTENSIONS add index FKD49834FA4D87D1BE (ATTRIBUTE_ID), add constraint FKD49834FA4D87D1BE foreign key (ATTRIBUTE_ID) references DYEXTN_FILE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_LONG_TYPE_INFO add index FK257281EDBC7298A9 (IDENTIFIER), add constraint FK257281EDBC7298A9 foreign key (IDENTIFIER) references DYEXTN_NUMERIC_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_FLOAT_CONCEPT_VALUE add index FK6785309ABC7298A9 (IDENTIFIER), add constraint FK6785309ABC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_TEXTFIELD add index FKF9AFC850BC7298A9 (IDENTIFIER), add constraint FKF9AFC850BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_RULE add index FKC27E0994D87D1BE (ATTRIBUTE_ID), add constraint FKC27E0994D87D1BE foreign key (ATTRIBUTE_ID) references DYEXTN_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_DATE_TYPE_INFO add index FKFBA549FBC7298A9 (IDENTIFIER), add constraint FKFBA549FBC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_ATTRIBUTE_TYPE_INFO add index FK62596D53B4C15A36 (PRIMITIVE_ATTRIBUTE_ID), add constraint FK62596D53B4C15A36 foreign key (PRIMITIVE_ATTRIBUTE_ID) references DYEXTN_PRIMITIVE_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_ASSO_DISPLAY_ATTR add index FKD12FD3823B3AAE3B (DISPLAY_ATTRIBUTE_ID), add constraint FKD12FD3823B3AAE3B foreign key (DISPLAY_ATTRIBUTE_ID) references DYEXTN_PRIMITIVE_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_ASSO_DISPLAY_ATTR add index FKD12FD382F7AA8E80 (SELECT_CONTROL_ID), add constraint FKD12FD382F7AA8E80 foreign key (SELECT_CONTROL_ID) references DYEXTN_SELECT_CONTROL (IDENTIFIER);
alter table DYEXTN_TEXTAREA add index FK946EE257BC7298A9 (IDENTIFIER), add constraint FK946EE257BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_ENTITY_GROUP add index FK105DE7A0BC7298A9 (IDENTIFIER), add constraint FK105DE7A0BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ABSTRACT_METADATA (IDENTIFIER);
alter table DYEXTN_DATA_ELEMENT add index FKB1153E48C8D972A (ATTRIBUTE_TYPE_INFO_ID), add constraint FKB1153E48C8D972A foreign key (ATTRIBUTE_TYPE_INFO_ID) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_DOUBLE_CONCEPT_VALUE add index FKB94E6449BC7298A9 (IDENTIFIER), add constraint FKB94E6449BC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_LIST_BOX add index FK208395A7BC7298A9 (IDENTIFIER), add constraint FK208395A7BC7298A9 foreign key (IDENTIFIER) references DYEXTN_SELECT_CONTROL (IDENTIFIER);
alter table DYEXTN_CONTAINMENT_CONTROL add index FK3F9D4AD3F7798636 (DISPLAY_CONTAINER_ID), add constraint FK3F9D4AD3F7798636 foreign key (DISPLAY_CONTAINER_ID) references DYEXTN_CONTAINER (IDENTIFIER);
alter table DYEXTN_CONTAINMENT_CONTROL add index FK3F9D4AD3BC7298A9 (IDENTIFIER), add constraint FK3F9D4AD3BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_LONG_CONCEPT_VALUE add index FK3E1A6EF4BC7298A9 (IDENTIFIER), add constraint FK3E1A6EF4BC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_CONTROL add index FK70FB5E80A67822BB (ABSTRACT_ATTRIBUTE_ID), add constraint FK70FB5E80A67822BB foreign key (ABSTRACT_ATTRIBUTE_ID) references DYEXTN_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_CONTROL add index FK70FB5E809C6A9B9 (CONTAINER_ID), add constraint FK70FB5E809C6A9B9 foreign key (CONTAINER_ID) references DYEXTN_CONTAINER (IDENTIFIER);
alter table DYEXTN_ATTRIBUTE add index FK37F1E2FFB15CD09F (ENTIY_ID), add constraint FK37F1E2FFB15CD09F foreign key (ENTIY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_ATTRIBUTE add index FK37F1E2FFBC7298A9 (IDENTIFIER), add constraint FK37F1E2FFBC7298A9 foreign key (IDENTIFIER) references DYEXTN_ABSTRACT_METADATA (IDENTIFIER);
alter table DYEXTN_RULE_PARAMETER add index FK22567363871AAD3E (RULE_ID), add constraint FK22567363871AAD3E foreign key (RULE_ID) references DYEXTN_RULE (IDENTIFIER);
alter table DYEXTN_DATE_CONCEPT_VALUE add index FK45F598A6BC7298A9 (IDENTIFIER), add constraint FK45F598A6BC7298A9 foreign key (IDENTIFIER) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_BYTE_ARRAY_TYPE_INFO add index FK18BDA73BC7298A9 (IDENTIFIER), add constraint FK18BDA73BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_SEMANTIC_PROPERTY add index FKD2A0B5B13BAB5E46 (ABSTRACT_VALUE_ID), add constraint FKD2A0B5B13BAB5E46 foreign key (ABSTRACT_VALUE_ID) references DYEXTN_PERMISSIBLE_VALUE (IDENTIFIER);
alter table DYEXTN_SEMANTIC_PROPERTY add index FKD2A0B5B17D7A9B8E (ABSTRACT_METADATA_ID), add constraint FKD2A0B5B17D7A9B8E foreign key (ABSTRACT_METADATA_ID) references DYEXTN_ABSTRACT_METADATA (IDENTIFIER);
alter table DYEXTN_ATTRIBUTE_RECORD add index FK9B20ED9179F466F7 (ENTITY_ID), add constraint FK9B20ED9179F466F7 foreign key (ENTITY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_ATTRIBUTE_RECORD add index FK9B20ED914D87D1BE (ATTRIBUTE_ID), add constraint FK9B20ED914D87D1BE foreign key (ATTRIBUTE_ID) references DYEXTN_PRIMITIVE_ATTRIBUTE (IDENTIFIER);
alter table DYEXTN_DATA_GRID add index FK233EB73EBC7298A9 (IDENTIFIER), add constraint FK233EB73EBC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DE_COLL_ATTR_RECORD_VALUES add index FK847DA577355836BC (COLLECTION_ATTR_RECORD_ID), add constraint FK847DA577355836BC foreign key (COLLECTION_ATTR_RECORD_ID) references DYEXTN_ATTRIBUTE_RECORD (IDENTIFIER);
alter table DYEXTN_NUMERIC_TYPE_INFO add index FK4DEC9544BC7298A9 (IDENTIFIER), add constraint FK4DEC9544BC7298A9 foreign key (IDENTIFIER) references DYEXTN_ATTRIBUTE_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_SHORT_TYPE_INFO add index FK99540B3BC7298A9 (IDENTIFIER), add constraint FK99540B3BC7298A9 foreign key (IDENTIFIER) references DYEXTN_NUMERIC_TYPE_INFO (IDENTIFIER);
alter table DYEXTN_CONTAINER add index FK1EAB84E4A1257067 (BASE_CONTAINER_ID), add constraint FK1EAB84E4A1257067 foreign key (BASE_CONTAINER_ID) references DYEXTN_CONTAINER (IDENTIFIER);
alter table DYEXTN_CONTAINER add index FK1EAB84E479F466F7 (ENTITY_ID), add constraint FK1EAB84E479F466F7 foreign key (ENTITY_ID) references DYEXTN_ENTITY (IDENTIFIER);
alter table DYEXTN_CONTAINER add index FK1EAB84E4992A67D7 (ENTITY_GROUP_ID), add constraint FK1EAB84E4992A67D7 foreign key (ENTITY_GROUP_ID) references DYEXTN_ENTITY_GROUP (IDENTIFIER);
alter table DYEXTN_CONTAINER add index FK1EAB84E445DEFCF5 (VIEW_ID), add constraint FK1EAB84E445DEFCF5 foreign key (VIEW_ID) references DYEXTN_VIEW (IDENTIFIER);
alter table DYEXTN_RADIOBUTTON add index FK16F5BA90BC7298A9 (IDENTIFIER), add constraint FK16F5BA90BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);
alter table DYEXTN_DATEPICKER add index FKFEADD199BC7298A9 (IDENTIFIER), add constraint FKFEADD199BC7298A9 foreign key (IDENTIFIER) references DYEXTN_CONTROL (IDENTIFIER);


text:
package com.joeldholmes.userprofile.configuration;

import javax.servlet.Filter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.web.authentication.Http403ForbiddenEntryPoint;
import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider;
import org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter;

import com.joeldholmes.userprofile.security.JwtAuthenticationProvider;

@Configuration
@EnableWebSecurity()
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {

	public SecurityConfiguration(){
		super(true);
	}

	@Override
	protected void configure(HttpSecurity http) throws Exception{
		http.authorizeRequests()
		.anyRequest().authenticated()
		.and()
		.exceptionHandling().authenticationEntryPoint(entryPoint())
		.and()
		.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and()
		.securityContext().and()
		.anonymous().and()
		.servletApi().and().addFilter(preAuthFilter()).authenticationProvider(preauthAuthProvider());
	}

	@Autowired
	 public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
	  auth.authenticationProvider(preauthAuthProvider());
	 }

	@Bean
	public Filter preAuthFilter() throws Exception {
		RequestHeaderAuthenticationFilter filter = new RequestHeaderAuthenticationFilter();
		filter.setPrincipalRequestHeader("Authorization");
		filter.setExceptionIfHeaderMissing(false);
		filter.setAuthenticationManager(preAuthManager());
		return filter;
	}

	@Bean
	protected AuthenticationManager preAuthManager() throws Exception
	{
		return authenticationManager();
	}

	@Bean
	 public PreAuthenticatedAuthenticationProvider preauthAuthProvider() {
	  JwtAuthenticationProvider provider = new JwtAuthenticationProvider();
	  provider.setConfig(this);
	  return provider;
	 }

	@Bean
	public Http403ForbiddenEntryPoint entryPoint()
	{
		return new Http403ForbiddenEntryPoint();
	}
}


text:
<?php

namespace MusicBrainz\Relation\Type\Event\Url\OtherDatabases;

use MusicBrainz\Relation\Type\Event\Url\OtherDatabases;
use MusicBrainz\Value\Name;

/**
 * This relationship type links an event to its corresponding page at VGMdb.
 * VGMdb is a community project dedicated to cataloguing the music of video games and anime.
 *
 * @see  http://vgmdb.net
 * @link https://musicbrainz.org/relationship/05d3e0348-71a8-3dc1-b847-3a8f1d5de688
 */
class Vgmdb extends OtherDatabases
{
    /**
     * Returns the name of the relation.
     *
     * @return Name
     */
    public static function getRelationName(): Name
    {
        return new Name('vgmdb');
    }
}


text:
var gulp = require('gulp');
var gutil = require('gutil');
var webpack = require('webpack');
var eslint = require('gulp-eslint');

var runSequence = require('run-sequence');
var clean = require('gulp-clean');
var replace = require('gulp-replace');
var exec = require('child_process').exec;
var mkdirp = require('mkdirp');
var bump = require('gulp-bump');

var getManifest = function () {
  var fs = require('fs');

  return JSON.parse(fs.readFileSync('./build/manifest.json', 'utf8'));
};

/**
 * Clean
 * Cleans the build directory before a build.
 * Used for the build task.
 */
gulp.task('clean', function() {
  return gulp.src(['./build', './dist']).pipe(clean());
});

/**
 * ESLint
 * Checks the sourcecode for errors with ESLint. Used for the build and dev tasks.
 */
gulp.task('lint', function () {
  return gulp.src(['app/js/*.js'])
    .pipe(eslint({ useEslintrc: true }))
    .pipe(eslint.format());
});

gulp.task('pre-build', function (callback) {
  runSequence(
    'clean',
    'bump',
    'lint',
    'static',
    callback
  );
});

gulp.task('bump', function (){
  return gulp.src(['./manifest.json', './package.json'])
  .pipe(bump())
  .pipe(gulp.dest('./'));
});

gulp.task('build', ['pre-build'], function (callback) {
  var config = require('./config/webpack.config.js');
  var compiler = webpack(config);

  compiler.run(function(err, stats) {
    if (err) {
      throw new gutil.PluginError('webpack-build', err);
    }

    gutil.log("[webpack:build-dev]", stats.toString({
      colors: true
    }));

    var manifest = getManifest();
    var name = manifest.name + '.' + manifest.version;
    mkdirp('./dist', function(err) {
      if (err) {
        throw new gutil.PluginError('build', err);
      }

      var command = './node_modules/.bin/crx pack ./build -p ./config/extension.pem -o ./dist/';
      command += name + '.crx';

      exec(command, function (err, stdout, stderr) {
        callback();
      });
    });
  });
});

gulp.task('static', function () {
  gulp.src(['manifest.json', 'src/**/*.css', 'src/**/*.png'])
    .pipe(gulp.dest('./build'));
});

gulp.task('build-dev', [], function (callback) {
  var config = require('./config/webpack.config.js');
  var compiler = webpack(config);

  compiler.run(function(err, stats) {
    if (err) {
      throw new gutil.PluginError('webpack-build', err);
    }

    gutil.log("[webpack:build-dev]", stats.toString({
      colors: true
    }));

    callback();
  });

});

gulp.task('reload', function () {
  gulp.src('src/assets/reload.html')
    .pipe(replace('__TIMESTAMP__', new Date().getTime().toString()))
    .pipe(gulp.dest('./build'));
});

gulp.task('watch-static', [], function (callback) {
  runSequence(
    'static',
    'reload',
    callback
  );
});

gulp.task('watch-webpack', [], function (callback) {
  runSequence(
    'build-dev',
    'reload',
    callback
  );
});

gulp.task('dev', ['static', 'build-dev', 'reload'], function () {
  gulp.watch(['src/*.json'], ['watch-static']);
  gulp.watch(['src/css/*.css'], ['watch-static']);
  gulp.watch(['src/assets/*.png'], ['watch-static']);

  gulp.watch(['src/js/*.js', 'src/views/*.html'], ['watch-webpack']);
});

gulp.task('default', ['dev'])


text:
//$Id$

package org.hibernate.validator.constraints;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.OverridesAttribute;
import javax.validation.Payload;
import javax.validation.ReportAsSingleViolation;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * The annotated element has to be in the appropriate range. Apply on numeric values or string
 * representation of the numeric value.
 *
 * @author Hardy Ferentschik
 */
@Documented
@Constraint(validatedBy = { })
@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
@Retention(RUNTIME)
@Min(0)
@Max(Long.MAX_VALUE)
@ReportAsSingleViolation
public @interface Range {
	@OverridesAttribute(constraint = Min.class, name = "value") long min() default 0;

	@OverridesAttribute(constraint = Max.class, name = "value") long max() default Long.MAX_VALUE;

	String message() default "{org.hibernate.validator.constraints.Range.message}";

	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };

	/**
	 * Defines several {@code @Range} annotations on the same element.
	 */
	@Target({ METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER })
	@Retention(RUNTIME)
	@Documented
	public @interface List {
		Range[] value();
	}
}


text:
[Tag]: android

工厂根目录的`build.gralde`中添加如下代码:

```
ext {
    compileSdkVersion = 23
    buildToolsVersion = "23.0.1"
    supportLibVersion = "23.3.0"
    minSdkVersion = 15
    targetSdkVersion = 23
}
```

(以上是我的配置,可以根据实际情况调整)

这里设置了几个关键的配置

+ compileSdkVersion
+ buildToolsVersion
+ supportLibVersion - 支持库的版本名
+ minSdkVersion
+ targetSdkVersion

各子module中可以引用上述各个值,如下:

```
apply plugin: 'com.android.library'

android {
    compileSdkVersion rootProject.compileSdkVersion
    buildToolsVersion rootProject.buildToolsVersion

    defaultConfig {
        minSdkVersion rootProject.minSdkVersion
        targetSdkVersion rootProject.targetSdkVersion
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:' + rootProject.supportLibVersion
}
```

这样可以很方便地统一调整项目的构建配置。参考自[这里][ref]

[ref]: https://github.com/googlesamples/android-testing/tree/master/ui/uiautomator/BasicSample


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/item_song_list"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <View
    android:layout_width="match_parent"
    android:layout_height="1dp"
    android:background="@color/song_list_divider"/>
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="60dp">
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:id="@+id/text_view_song_list"
            android:gravity="center_vertical"
            android:layout_gravity="center_vertical" />
        <CheckBox
            android:layout_alignParentRight="true"
            android:id="@+id/checkbox"
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginRight="5dp"
            android:layout_gravity="center_vertical"
            android:visibility="gone"/>
    </RelativeLayout>

</LinearLayout>


text:
package edu.usfca.ds.views;

import edu.usfca.xj.appkit.gview.base.Vector2D;
import edu.usfca.xj.appkit.gview.object.GElement;
import edu.usfca.xj.appkit.gview.object.GLink;

import java.awt.*;

public class DSViewBST extends DSView {

    public final int INSERT = 1;
    public final int FIND = 2;
    public final int DELETE = 3;

    protected BSTNode root;
    protected int widthdelta = 50;
    protected int heightdelta = 50;
    protected final int MOVESTEPS = 40;
    GElement elementLabel;

    public DSViewBST() {
        createLabel("", 0, 0, false);
        root = null;

    }

    protected void CallFunction(int function, Object param1) {
         switch (function) {
             case INSERT:
                 insert(padString((String) param1,4));
                 break;

             case FIND:
               find(padString((String) param1,4));
                 break;
                 case DELETE:
                 delete(padString ((String) param1,4));
         }
     }

    private void insert(String insertElem) {
        if (root == null) {
            root = new BSTNode(insertElem, createCircle(String.valueOf(insertElem), 500, 50));
        } else {
            BSTNode newelem = new BSTNode(insertElem, createCircle(String.valueOf(insertElem),
                    100, 40));
            insert(newelem, root);

        }

    }

    private void insert(BSTNode insertElem, BSTNode treeroot) {
        int i;
        insertElem.display.setLabelColor(Color.RED);
        treeroot.display.setLabelColor(Color.RED);
        repaintwait();
        insertElem.display.setLabelColor(Color.BLACK);
        treeroot.display.setLabelColor(Color.BLACK);
        if (insertElem.data.compareTo(treeroot.data) <0) {
            if (treeroot.left == null) {
                Vector2D endPosition = new Vector2D(treeroot.display.getPositionX() - widthdelta / 2,
                        treeroot.display.getPositionY() + heightdelta);
                Vector2D[] path = createPath(insertElem.display.getPosition(),
                        endPosition, MOVESTEPS);
                for (i = 0; i < MOVESTEPS; i++) {
                    insertElem.display.setPosition(path[i]);
                    repaintwaitmin();
                }
                treeroot.left = insertElem;
                insertElem.parent = treeroot;
                createLink(treeroot.display, insertElem.display, GLink.SHAPE_ARC, GElement.ANCHOR_CENTER, GElement.ANCHOR_CENTER, "", -1);
                resizetree();

            } else {
                insert(insertElem, treeroot.left);
            }

        } else {
            if (treeroot.right == null) {
                Vector2D endPosition = new Vector2D(treeroot.display.getPositionX() + widthdelta / 2,
                        treeroot.display.getPositionY() + heightdelta);
                Vector2D[] path = createPath(insertElem.display.getPosition(),
                        endPosition, MOVESTEPS);
                for (i = 0; i < MOVESTEPS; i++) {
                    insertElem.display.setPosition(path[i]);
                    repaintwaitmin();
                }
                treeroot.right = insertElem;
                insertElem.parent = treeroot;
                createLink(treeroot.display, insertElem.display, GLink.SHAPE_ARC, GElement.ANCHOR_CENTER, GElement.ANCHOR_CENTER, "", 1);
                resizetree();
            } else {
                insert(insertElem, treeroot.right);
            }

        }

    }

    public String padString(String s, int numchars) {

     try {
         int x = Integer.parseInt(s);
         if (x >= 0) {
             return toString(x,4);
         } else {
             return s;

         }
     }   catch (Exception e) {
         return s;
     }

    }

    public String toString(int num,int digits) {
        if (digits == 0)
            return "";
        return toString(num/10,digits-1) + String.valueOf(num % 10);

    }

    private void resizetree() {
        int i;
        int startingpoint = 500;
        ResetWidths(root);
        if (root != null) {
            if (root.leftwidth > 500 && root.rightwidth < 500) {
                startingpoint = startingpoint + root.leftwidth - 500;
            } else if (root.rightwidth > 500 && root.leftwidth < 500) {
                startingpoint = startingpoint - root.rightwidth + 500;
            } else if (root.leftwidth > 500 && root.rightwidth > 500) {
                startingpoint = startingpoint - root.rightwidth + root.leftwidth;
            }
        }
        SetNewPositions(root, startingpoint, 0);
        SetPaths(root, MOVESTEPS / 2);
        for (i = 0; i < MOVESTEPS / 2; i++) {
            MoveAlongPath(root, i);
            repaintwaitmin();
        }
        repaint();
    }

    void MoveAlongPath(BSTNode root, int step) {
        if (root != null) {
            root.display.setPosition(root.path[step]);
            MoveAlongPath(root.left, step);
            MoveAlongPath(root.right, step);

        }
    }

    void SetPaths(BSTNode root, int pathlength) {
        if (root != null) {
            root.path = createPath(root.display.getPosition(), new Vector2D(root.newX, root.newY), pathlength);
            SetPaths(root.left, pathlength);
            SetPaths(root.right, pathlength);
        }
    }

    private void SetNewPositions(BSTNode tree, int Xposition, int position) {
        if (tree != null) {
            if (position == -1) {
                Xposition = Xposition - tree.rightwidth;
            } else if (position == 1) {
                Xposition = Xposition + tree.leftwidth;
            }
            tree.newX = Xposition;
            if (tree.newY < 0)
                tree.newY = (int) tree.display.getPositionY();
            SetNewPositions(tree.left, Xposition, -1);
            SetNewPositions(tree.right, Xposition, 1);
        }
    }

    private int ResetWidths(BSTNode root) {
        if (root == null)
            return 0;
        root.leftwidth = Math.max(ResetWidths(root.left) , widthdelta / 2);
        root.rightwidth = Math.max(ResetWidths(root.right) , widthdelta / 2);
        //      return Math.max(root.leftwidth, widthdelta/2) +
        //              Math.max(root.rightwidth, widthdelta/2);
        return root.leftwidth + root.rightwidth;
    }

    public void delete(String removeitem) {
        GElement Deletelabel = createLabel("Deleting:", 100, 40, false);
        elementLabel = createLabel(String.valueOf(removeitem), 170, 40, false);
        elementLabel.setLabelColor(Color.RED);
        delete(removeitem, root);
        removeAny(Deletelabel);
        removeAny(elementLabel);
    }

    private void delete(String removeitem, BSTNode tree) {
        boolean leftchild = false;
        if (tree != null) {
            if (tree.parent != null)
                leftchild = tree.parent.left == tree;
            tree.display.setLabelColor(Color.RED);
            repaintwait();
            tree.display.setLabelColor(Color.BLACK);
            if (removeitem.compareTo(tree.data) == 0) {
                elementLabel.setLabelColor(Color.BLACK);
                if ((tree.left == null) && (tree.right == null)) {
                    if (tree.parent != null) {
                        removeLink(tree.parent.display, tree.display);
                        if (leftchild) {
                            tree.parent.left = null;
                        } else {
                            tree.parent.right = null;
                        }

                    } else {
                        root = null;

                    }
                    removeAny(tree.display);
                    resizetree();
                } else if (tree.left == null) {
                    if (tree.parent != null) {
                        removeLink(tree.parent.display, tree.display);
                        if (leftchild) {
                            createLink(tree.parent.display, tree.right.display, GLink.SHAPE_ARC, GElement.ANCHOR_CENTER, GElement.ANCHOR_CENTER, "", -1);
                        } else {
                            createLink(tree.parent.display, tree.right.display, GLink.SHAPE_ARC, GElement.ANCHOR_CENTER, GElement.ANCHOR_CENTER, "", 1);
                        }
                        repaintwait();
                        if (leftchild) {
                            tree.parent.left = tree.right;
                            tree.right.parent = tree.parent;
                        } else {
                            tree.parent.right = tree.right;
                            tree.right.parent = tree.parent;
                        }
                    } else {
                        root = tree.right;
                        tree.right.parent = null;

                    }
                    removeLink(tree.display, tree.right.display);
                    removeAny(tree.display);
                    ChangeHeights(tree.right);
                    resizetree();

                } else if (tree.right == null) {
                    if (tree.parent != null) {
                        removeLink(tree.parent.display, tree.display);
                        if (leftchild) {
                            createLink(tree.parent.display, tree.left.display, GLink.SHAPE_ARC, GElement.ANCHOR_CENTER, GElement.ANCHOR_CENTER, "", -1);
                        } else {
                            createLink(tree.parent.display, tree.left.display, GLink.SHAPE_ARC, GElement.ANCHOR_CENTER, GElement.ANCHOR_CENTER, "", 1);
                        }
                        repaintwait();
                        if (leftchild) {
                            tree.parent.left = tree.left;
                            tree.left.parent = tree.parent;
                        } else {
                            tree.parent.right = tree.left;
                            tree.left.parent = tree.parent;
                        }
                    } else {
                        root = tree.left;
                        tree.left.parent = null;

                    }
                    removeLink(tree.display, tree.left.display);
                    removeAny(tree.display);
                    ChangeHeights(tree.left);
                    resizetree();

                } else {
                    BSTNode tmp = tree;
                    tmp = tree.left;
                    tmp.display.setColor(Color.BLUE);
                    repaintwait();
                    while (tmp.right != null) {
                        tmp.display.setColor(Color.BLACK);
                        tmp = tmp.right;
                        tmp.display.setColor(Color.BLUE);
                        repaintwait();
                    }
                    tree.display.setLabel("");
                    elementLabel.setLabelColor(Color.BLACK);
                    GElement label = createLabel(tmp.display.getLabel(),tmp.display.getPositionX(),tmp.display.getPositionY(),false);
                    Vector2D path[] = createPath(label.getPosition(),tree.display.getPosition(),MOVESTEPS);
                    for (int i=0; i<MOVESTEPS; i++) {
                        label.setPosition(path[i]);
                        repaintwaitmin();
                    }
                    tree.data = tmp.data;
                    tree.display.setLabel(tmp.display.getLabel());
                    removeAny(label);
                    elementLabel.setLabel(String.valueOf(tmp.data));
                    elementLabel.setLabelColor(Color.RED);
                    delete(tmp.data,tmp);

                }
            } else if (removeitem.compareTo(tree.data) < 0) {
                delete(removeitem, tree.left);

            } else {
                delete(removeitem, tree.right);
            }

        }
    }

    private void ChangeHeights(BSTNode tree) {
        if (tree != null) {
            tree.newY = (int) tree.display.getPositionY() - heightdelta;
            ChangeHeights(tree.left);
            ChangeHeights(tree.right);
        }
    }

    public void find(String finditem) {
        GElement findlabel = createLabel("Finding:", 100, 40, false);
        elementLabel = createLabel(String.valueOf(finditem), 170, 40, false);
        elementLabel.setLabelColor(Color.RED);
        GElement found = find(finditem, root);
        if (found != null) {
            findlabel.setLabel("Found:");
            repaintwait();
            found.setLabelColor(Color.BLACK);
            elementLabel.setLabelColor(Color.BLACK);
        } else {
            findlabel.setLabel("Not Found:");
            findlabel.setColor(Color.BLACK);
            elementLabel.setLabelColor(Color.BLACK);
        }
        HoldoverGraphics.addElement(findlabel);
        HoldoverGraphics.addElement(elementLabel);

    }

    public GElement find(String finditem, BSTNode tree) {
        if (tree == null)
            return null;
        tree.display.setLabelColor(Color.RED);
        repaintwait();
        if (tree.data.compareTo(finditem) == 0)
            return tree.display;
        else {
            tree.display.setLabelColor(Color.BLACK);
            if (finditem.compareTo(tree.data) < 0) {
                return find(finditem, tree.left);

            } else {
                return find(finditem, tree.right);
            }

        }

    }

    protected class BSTNode {
        String data;
        BSTNode left;
        BSTNode right;
        BSTNode parent;
        GElement display;
        int leftwidth;
        int rightwidth;
        int newX;
        int newY;
        Vector2D path[];

        public BSTNode(String elem) {
            data = elem;
            left = null;
            right = null;
            parent = null;
            newY = -1;
        }

        public BSTNode(String elem, GElement disp) {
            data = elem;
            left = null;
            right = null;
            display = disp;
            parent = null;
            newY = -1;
        }

    }

}


text:
import logging

from django.db import models

logger = logging.getLogger(__name__)


text:
/* eslint-disable no-undef, import/no-extraneous-dependencies, import/no-unresolved, import/extensions, max-len */
import Receptacle from 'receptacle';
/* eslint-enable */
import { logger } from '..';

class Cache {
  constructor() {
    this.receptacle = new Receptacle({ max: Cache.MAX_ITEMS });
  }
  getKey(platform, url) { return `${platform}-${url}`; }
  setPage(platform, url, html, hash) {
    const key = this.getKey(platform, url);
    logger.debug('cache page:', key);
    this.receptacle.set(key, { type: 200, html, hash }, Cache.DEFAULT_TTL);
  }
  setRedirect(url, location) {
    logger.debug('cache redirect:', url);
    this.receptacle.set(url, { type: 301, location }, Cache.DEFAULT_TTL);
  }
  setNotFound(url) {
    logger.debug('cache notfound:', url);
    this.receptacle.set(url, { type: 404 }, Cache.DEFAULT_TTL);
  }
  has(platform, url) {
    if (this.receptacle.has(this.getKey(platform, url))) return true;
    return this.receptacle.has(url);
  }
  get(platform, url) {
    const res = this.receptacle.get(this.getKey(platform, url));
    if (res) return res;
    return this.receptacle.get(url);
  }
  setLanguage(lng) {
    this.receptacle.set(lng);
  }
  getLanguage(lng) {
    return this.receptacle.has(lng);
  }
  reset() {
    logger.debug('cache reset');
    this.receptacle.clear();
  }
}
// 1k pages are cached
// eslint-disable-next-line no-restricted-properties
Cache.MAX_ITEMS = Math.pow(2, 10);
// TTL set to 1day
Cache.DEFAULT_TTL = { ttl: 1000 * 60 * 60 * 24 };
const cache = new Cache();
export default cache;


text:
<title>lighttpd</title>
<meta name="keywords" content="avocadodb,phpnosql,freeidea,composer,ssdb,arangodb,orientdb,redis"/>
<meta name="description" content="个人小站 分享linux mysql  php 前端记录">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta charset="UTF-8">

     主页     日常     关于我     nosql     corecms     留言

<x-markdown>

# lighttpd  配置文件

```bash
#检测配置文件错误
lighttpd -t -f /etc/lighttpd/lighttpd.conf

```

###  fastcgi

```bash
# Make sure to install php and php-cgi. See:
# https://wiki.archlinux.org/index.php/Fastcgi_and_lighttpd#PHP

server.modules += ("mod_fastcgi")

# FCGI server
# ===========
#
# Configure a FastCGI server which handles PHP requests.
#
index-file.names += ("index.php")
fastcgi.server = (
    # Load-balance requests for this path...
    ".php" => (
        # ... among the following FastCGI servers. The string naming each
        # server is just a label used in the logs to identify the server.
        "localhost" => (
            "bin-path" => "/usr/bin/php-cgi",
            "socket" => "/tmp/php-fastcgi.sock",
            # breaks SCRIPT_FILENAME in a way that PHP can extract PATH_INFO
            # from it
            "broken-scriptfilename" => "enable",
            # Launch (max-procs + (max-procs * PHP_FCGI_CHILDREN)) procs, where
            # max-procs are "watchers" and the rest are "workers". See:
            # https://redmine.lighttpd.net/projects/1/wiki/frequentlyaskedquestions#How-many-php-CGI-processes-will-lighttpd-spawn
            "max-procs" => 4, # default value
            "bin-environment" => (
                "PHP_FCGI_CHILDREN" => "1" # default value
            )
        )
    )
)
```

在lighttpd.conf中可以

```bash
include "conf.d/fastcgi.conf"
```

未完。。。还有代理和网络模式还有乱七八糟配置优化
</x-markdown>
<link rel="stylesheet" href="/hight/styles/default.css">

<link rel="stylesheet" href="/css/default.css">


text:
<?php

declare(strict_types=1);

namespace Sylius\Component\User\Model;

use Doctrine\Common\Collections\Collection;
use Sylius\Component\Resource\Model\ResourceInterface;
use Sylius\Component\Resource\Model\TimestampableInterface;
use Sylius\Component\Resource\Model\ToggleableInterface;
use SyliusLabs\Polyfill\Symfony\Security\Core\User\AdvancedUserInterface;
use SyliusLabs\Polyfill\Symfony\Security\Core\Encoder\EncoderAwareInterface;

interface UserInterface extends
    AdvancedUserInterface,
    CredentialsHolderInterface,
    ResourceInterface,
    \Serializable,
    TimestampableInterface,
    ToggleableInterface,
    EncoderAwareInterface
{
    public const DEFAULT_ROLE = 'ROLE_USER';

    public function getEmail(): ?string;

    public function setEmail(?string $email): void;

    /**
     * Gets normalized email (should be used in search and sort queries).
     */
    public function getEmailCanonical(): ?string;

    public function setEmailCanonical(?string $emailCanonical): void;

    public function setUsername(?string $username): void;

    /**
     * Gets normalized username (should be used in search and sort queries).
     */
    public function getUsernameCanonical(): ?string;

    public function setUsernameCanonical(?string $usernameCanonical): void;

    public function setLocked(bool $locked): void;

    public function getEmailVerificationToken(): ?string;

    public function setEmailVerificationToken(?string $verificationToken): void;

    public function getPasswordResetToken(): ?string;

    public function setPasswordResetToken(?string $passwordResetToken): void;

    public function getPasswordRequestedAt(): ?\DateTimeInterface;

    public function setPasswordRequestedAt(?\DateTimeInterface $date): void;

    public function isPasswordRequestNonExpired(\DateInterval $ttl): bool;

    public function isVerified(): bool;

    public function getVerifiedAt(): ?\DateTimeInterface;

    public function setVerifiedAt(?\DateTimeInterface $verifiedAt): void;

    public function getExpiresAt(): ?\DateTimeInterface;

    public function setExpiresAt(?\DateTimeInterface $date): void;

    public function getCredentialsExpireAt(): ?\DateTimeInterface;

    public function setCredentialsExpireAt(?\DateTimeInterface $date): void;

    public function getLastLogin(): ?\DateTimeInterface;

    public function setLastLogin(?\DateTimeInterface $time): void;

    /**
     * Never use this to check if this user has access to anything!
     *
     * Use the SecurityContext, or an implementation of AccessDecisionManager
     * instead, e.g.
     *
     *         $securityContext->isGranted('ROLE_USER');
     */
    public function hasRole(string $role): bool;

    public function addRole(string $role): void;

    public function removeRole(string $role): void;

    /**
     * @return Collection|UserOAuthInterface[]
     *
     * @psalm-return Collection<array-key, UserOAuthInterface>
     */
    public function getOAuthAccounts(): Collection;

    public function getOAuthAccount(string $provider): ?UserOAuthInterface;

    public function addOAuthAccount(UserOAuthInterface $oauth): void;

    public function setEncoderName(?string $encoderName): void;

    public function __serialize(): array;

    public function __unserialize(array $data): void;
}


text:
package org.elasticsearch.action.admin.indices.mapping.get;

import org.elasticsearch.action.admin.indices.IndicesAction;
import org.elasticsearch.client.IndicesAdminClient;

/**
 */
public class GetMappingsAction extends IndicesAction<GetMappingsRequest, GetMappingsResponse, GetMappingsRequestBuilder> {

    public static final GetMappingsAction INSTANCE = new GetMappingsAction();
    public static final String NAME = "mappings/get";

    private GetMappingsAction() {
        super(NAME);
    }

    @Override
    public GetMappingsRequestBuilder newRequestBuilder(IndicesAdminClient client) {
        return new GetMappingsRequestBuilder(client);
    }

    @Override
    public GetMappingsResponse newResponse() {
        return new GetMappingsResponse();
    }
}


text:
typedef struct
{
	std::string m_address;	//µØÖ·
	uint16_t m_port;		//¼àÌý¶Ë¿Ú
}Struct_info;

class Server_Info
{
public:
	Server_Info()
	{
		//login server
		m_loginServer.m_address = "127.0.0.1";
		m_loginServer.m_port = 8080;
		//message server
		auto ptr_server = std::make_shared<Struct_info>();
		ptr_server->m_address = "127.0.0.1";
		ptr_server->m_port = 8081;
		m_list_msgServer.push_back(ptr_server);

		ptr_server = std::make_shared<Struct_info>();
		ptr_server->m_address = "127.0.0.1";
		ptr_server->m_port = 8082;
		m_list_msgServer.push_back(ptr_server);
		//index
		m_itMsgServer = m_list_msgServer.begin();
	};
	~Server_Info(){};

	const std::list<std::shared_ptr<Struct_info>>& get_list_msgServer(){ return m_list_msgServer; }
	const Struct_info& get_loginServer(){ return m_loginServer; }
	Struct_info get_freeMsgServer()
	{
		if (m_list_msgServer.end() != m_itMsgServer)
		{
			const Struct_info& server = **m_itMsgServer;
			++m_itMsgServer;
			return server;
		}
		else
		{
			m_itMsgServer = m_list_msgServer.begin();
			const Struct_info& server = **m_itMsgServer;
			++m_itMsgServer;
			return server;
		}
	}
private:
	std::list<std::shared_ptr<Struct_info>> m_list_msgServer;

	Struct_info m_loginServer;

	std::list<std::shared_ptr<Struct_info>>::iterator m_itMsgServer;
};

#endif	//SERVER_INFO_HPP


text:
//
//  MapQuestLayer.hpp
//  G3MiOSSDK
//
//  Created by Diego Gomez Deck on 3/8/13.
//
//

#ifndef __G3MiOSSDK__MapQuestLayer__
#define __G3MiOSSDK__MapQuestLayer__

#include "MercatorTiledLayer.hpp"

/*
 http://developer.mapquest.com/web/products/open/map
 */

class MapQuestLayer : public MercatorTiledLayer {
private:

  static const std::vector<std::string> getSubdomains() {
    std::vector<std::string> result;
    result.push_back("otile1.");
    result.push_back("otile2.");
    result.push_back("otile3.");
    result.push_back("otile4.");
    return result;
  }

  MapQuestLayer(const std::string&              domain,
                const std::vector<std::string>& subdomains,
                const int                       initialLevel,
                const int                       maxLevel,
                const TimeInterval&             timeToCache,
                const bool                      readExpired,
                const float                     transparency,
                const LayerCondition*           condition,
                std::vector<const Info*>*  layerInfo = new std::vector<const Info*>()) :
  MercatorTiledLayer("http://",
                     domain,
                     subdomains,
                     "jpg",
                     timeToCache,
                     readExpired,
                     initialLevel,
                     maxLevel,
                     false, // isTransparent
                     transparency,
                     condition,
                     layerInfo)
  {
  }

protected:
  std::string getLayerType() const {
    return "MapQuest";
  }

  bool rawIsEquals(const Layer* that) const;

public:

  static MapQuestLayer* newOSM(const TimeInterval&   timeToCache,
                               const bool            readExpired  = true,
                               const int             initialLevel = 2,
                               const float           transparency = 1,
                               const LayerCondition* condition    = NULL) {
    return new MapQuestLayer("mqcdn.com/tiles/1.0.0/map",
                             getSubdomains(),
                             initialLevel,
                             19,
                             timeToCache,
                             readExpired,
                             transparency,
                             condition);
  }

  static MapQuestLayer* newOpenAerial(const TimeInterval&   timeToCache,
                                      const bool            readExpired  = true,
                                      const int             initialLevel = 2,
                                      const float           transparency = 1,
                                      const LayerCondition* condition    = NULL) {
    return new MapQuestLayer("mqcdn.com/tiles/1.0.0/sat",
                             getSubdomains(),
                             initialLevel,
                             11,
                             timeToCache,
                             readExpired,
                             transparency,
                             condition);
  }

  const std::string description() const;

  MapQuestLayer* copy() const;

  RenderState getRenderState();
};

#endif


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<wicket:panel>

	<form wicket:id="form" class="user-form">

			*

				<wicket:message key="header.user.eid">[header.user.eid]</wicket:message>

			<input type="text" wicket:id="eid"/>

				<wicket:message key="header.user.firstname">[header.user.firstname]</wicket:message>

			<input type="text" wicket:id="fname"/>

				<wicket:message key="header.user.lastname">[header.user.lastname]</wicket:message>

			<input type="text" wicket:id="lname"/>

				<wicket:message key="header.user.email">[header.user.email]</wicket:message>

			<input type="text" wicket:id="email"/>

			[*]

				<wicket:message key="header.user.password.create">[header.user.password.create]</wicket:message>

			<input type="password" wicket:id="password1"/>

			[*]

				<wicket:message key="header.user.password.verify">[header.user.password.verify]</wicket:message>

			<input type="password" wicket:id="password2"/>

				<wicket:message key="header.user.type">[header.user.type]</wicket:message>

			<input type="text" wicket:id="type"/>

panel for listing attributes

			<input type="submit" />

	</form>

</wicket:panel>


text:
namespace _11.OddEvenPosition
{
    using System;

    public class OddEvenPosition
    {
        static void Main()
        {
            int N = int.Parse(Console.ReadLine());
            double evenSum = 0.0;
            double evenMin = double.MaxValue;
            double evenMax = double.MinValue;
            double oddSum = 0.0;
            double oddMin = double.MaxValue;
            double oddMax = double.MinValue;

            for (int i = 1; i <= N; i++)
            {
                int input = int.Parse(Console.ReadLine());
                if (i % 2 == 0)
                {
                    evenSum += input;
                    if (evenMin > input)
                    {
                        evenMin = input;
                    }
                    if (evenMax < input)
                    {
                        evenMax = input;
                    }
                }
                else
                {
                    oddSum += input;

                    if (oddMin > input)
                    {
                        oddMin = input;
                    }
                    if (oddMax < input)
                    {
                        oddMax = input;
                    }
                }
            }

            if (N == 0)
            {
                Console.WriteLine("OddSum=" + oddSum);
                Console.WriteLine("OddMin=No,");
                Console.WriteLine("OddMax=No,");

                Console.WriteLine("EvenSum=" + evenSum);
                Console.WriteLine("EvenMin=No,");
                Console.WriteLine("EvenMax=No");
            }
            else if (N < 2)
            {
                Console.WriteLine("OddSum=" + oddSum);
                Console.WriteLine("OddMin=" + oddMin + ",");
                Console.WriteLine("OddMax=" + oddMax + ",");

                Console.WriteLine("EvenSum=" + evenSum);
                Console.WriteLine("EvenMin=No,");
                Console.WriteLine("EvenMax=No");
            }
            else
            {
                Console.WriteLine("OddSum=" + oddSum);
                Console.WriteLine("OddMin=" + oddMin + ",");
                Console.WriteLine("OddMax=" + oddMax + ",");

                Console.WriteLine("EvenSum=" + evenSum);
                Console.WriteLine("EvenMin=" + evenMin + ",");
                Console.WriteLine("EvenMax=" + evenMax + ",");
            }
        }
    }
}