text:
.clearfix {
	*zoom: 1;
}

.clearfix:before, .clearfix:after {
	display: table;
	line-height: 0;
	content: "";
}

.clearfix:after {
	clear: both;
}
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section {
	display: block;
}

audio, canvas, video {
	display: inline-block;
	*display: inline;
	*zoom: 1;
}

audio:not([controls]) {
	display: none;
}

html {
font-size: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

a:focus {
	outline: thin dotted #333;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}

a:hover, a:active {
	outline: 0;
}/**img {
	width: auto\9;
	height: auto;
	max-width: 100%;
	vertical-align: middle;
	border: 0;
	-ms-interpolation-mode: bicubic;
}**/
button, input, select, textarea {
	margin: 0;
	font-size: 100%;
	vertical-align: middle;
}

button, input {
	*overflow: visible;
	line-height: normal;
}

button::-moz-focus-inner, input::-moz-focus-inner {
	padding: 0;
	border: 0;
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
	cursor: pointer;
	-webkit-appearance: button;
}

label, select, button, input[type="button"], input[type="reset"], input[type="submit"], input[type="radio"], input[type="checkbox"] {
	cursor: pointer;
}

input[type="search"] {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	-webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

textarea {
	overflow: auto;
	vertical-align: top;
}
/**
@media print {
	* {
		color: #000 !important;
		text-shadow: none !important;
		background: transparent !important;
		box-shadow: none !important;
	}
	a, a:visited {
		text-decoration: underline;
	}
	a[href]:after {
		content: " (" attr(href) ")";
	}
	abbr[title]:after {
		content: " (" attr(title) ")";
	}
	.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
		content: "";
	}
	pre, blockquote {
		border: 1px solid #999;
		page-break-inside: avoid;
	}
	thead {
		display: table-header-group;
	}
	tr, img {
		page-break-inside: avoid;
	}
	img {
		max-width: 100% !important;
	}
	@page {
		margin: 0.5cm;
	}
	p, h2, h3 {
		orphans: 3;
		widows: 3;
	}
	h2, h3 {
		page-break-after: avoid;
	}
}

body {
	margin: 0;
	font-family: "Ubuntu", Helvetica Neue, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #333333;
	background-color: #ffffff;
}

a {
	color: #0088cc;
	text-decoration: none;
}**/
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
	display: inline-block;
	height:28px;
	padding: 4px 6px;
	margin: 5px;
	font-size: 14px;
	color: #555555;
	vertical-align: middle;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

input, textarea, .uneditable-input {
	width:auto;
}

textarea {
	height: auto;
}

textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
	background-color: #ffffff;
	border: 1px solid #dfdfdf;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	-o-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
	box-shadow: 0 0 3px #f5f5f5,0 8px 12px #f9f9f9 inset;
	-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
	-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
	-o-transition: border linear 0.2s, box-shadow linear 0.2s;
	transition: border linear 0.2s, box-shadow linear 0.2s;
}

textarea:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="date"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="color"]:focus, .uneditable-input:focus {
	border-color: rgba(82, 168, 236, 0.8);
	outline: 0;
	outline: thin dotted \9;
	/* IE6-9 */

	-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
	-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}
textarea:focus:invalid, input[type="text"]:focus:invalid, input[type="password"]:focus:invalid, input[type="datetime"]:focus:invalid, input[type="datetime-local"]:focus:invalid, input[type="date"]:focus:invalid, input[type="month"]:focus:invalid, input[type="time"]:focus:invalid, input[type="week"]:focus:invalid, input[type="number"]:focus:invalid, input[type="email"]:focus:invalid, input[type="url"]:focus:invalid, input[type="search"]:focus:invalid, input[type="tel"]:focus:invalid, input[type="color"]:focus:invalid, .uneditable-input:focus{
	box-shadow:0 0 5px rgba(255,0,42,0.6);
	border:1px solid rgba(255,51,0,1);
}
input[type="radio"], input[type="checkbox"] {
	margin: 4px 0 0;
	margin-top: 1px \9;
	*margin-top: 0;
	line-height: normal;
}

input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"], input[type="radio"], input[type="checkbox"] {
	width: auto;
}

select, input[type="file"] {
	height: 30px;
	/* In IE7, the height of the select element cannot be changed by height, only font-size */

	*margin-top: 4px;
	/* For IE7, add top margin to align select with labels */

	line-height: 30px;
}

select {
	width: 220px;
	background-color: #ffffff;
	border: 1px solid #cccccc;
}

select[multiple], select[size] {
	height: auto;
}

select:focus, input[type="file"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus {
	outline: thin dotted #333;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}
input:-moz-placeholder, textarea:-moz-placeholder {
	color: #999999;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
	color: #999999;
}

input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
	color: #999999;
}
/**h1, h2, h3, h4, h5, h6 {
	margin: 10px 0;
	font-family: inherit;
	font-weight: bold;
	line-height: 20px;
	color: inherit;
	text-rendering: optimizelegibility;
}
h1, h2, h3 {
	line-height: 40px;
}

h1 {
	font-size: 38.5px;
}

h2 {
	font-size: 31.5px;
}

h3 {
	font-size: 24.5px;
}

h4 {
	font-size: 17.5px;
}

h5 {
	font-size: 14px;
}

h6 {
	font-size: 11.9px;
}
**/
table {
	max-width: 100%;
	background-color: transparent;
	border-collapse: collapse;
	border-spacing: 0;
}

table {
	width: 100%;
	margin-bottom: 20px;
}

table th, table td {
	padding: 8px;
	line-height: 20px;
	text-align: left;
	vertical-align: top;
	border-top: 1px solid #dddddd;
}

table th {
	font-weight: bold;
}

table thead th {
	vertical-align: bottom;
}

table caption + thead tr:first-child th, table caption + thead tr:first-child td, table colgroup + thead tr:first-child th, table colgroup + thead tr:first-child td, table thead:first-child tr:first-child th, table thead:first-child tr:first-child td {
	border-top: 0;
}

table tbody + tbody {
	border-top: 2px solid #dddddd;
}

table .table {
	background-color: #ffffff;
}

.table-condensed th, .table-condensed td {
	padding: 4px 5px;
}

.table-bordered {
	border: 1px solid #dddddd;
	border-collapse: separate;
	*border-collapse: collapse;
	border-left: 0;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.table-bordered th, .table-bordered td {
	border-left: 1px solid #dddddd;
}

.table-bordered caption + thead tr:first-child th, .table-bordered caption + tbody tr:first-child th, .table-bordered caption + tbody tr:first-child td, .table-bordered colgroup + thead tr:first-child th, .table-bordered colgroup + tbody tr:first-child th, .table-bordered colgroup + tbody tr:first-child td, .table-bordered thead:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child th, .table-bordered tbody:first-child tr:first-child td {
	border-top: 0;
}

.table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr:first-child > th:first-child {
	-webkit-border-top-left-radius: 4px;
	border-top-left-radius: 4px;
	-moz-border-radius-topleft: 4px;
}

.table-bordered thead:first-child tr:first-child > th:last-child, .table-bordered tbody:first-child tr:first-child > td:last-child, .table-bordered tbody:first-child tr:first-child > th:last-child {
	-webkit-border-top-right-radius: 4px;
	border-top-right-radius: 4px;
	-moz-border-radius-topright: 4px;
}

.table-bordered thead:last-child tr:last-child > th:first-child, .table-bordered tbody:last-child tr:last-child > td:first-child, .table-bordered tbody:last-child tr:last-child > th:first-child, .table-bordered tfoot:last-child tr:last-child > td:first-child, .table-bordered tfoot:last-child tr:last-child > th:first-child {
	-webkit-border-bottom-left-radius: 4px;
	border-bottom-left-radius: 4px;
	-moz-border-radius-bottomleft: 4px;
}

.table-bordered thead:last-child tr:last-child > th:last-child, .table-bordered tbody:last-child tr:last-child > td:last-child, .table-bordered tbody:last-child tr:last-child > th:last-child, .table-bordered tfoot:last-child tr:last-child > td:last-child, .table-bordered tfoot:last-child tr:last-child > th:last-child {
	-webkit-border-bottom-right-radius: 4px;
	border-bottom-right-radius: 4px;
	-moz-border-radius-bottomright: 4px;
}

.table-bordered tfoot + tbody:last-child tr:last-child td:first-child {
	-webkit-border-bottom-left-radius: 0;
	border-bottom-left-radius: 0;
	-moz-border-radius-bottomleft: 0;
}

.table-bordered tfoot + tbody:last-child tr:last-child td:last-child {
	-webkit-border-bottom-right-radius: 0;
	border-bottom-right-radius: 0;
	-moz-border-radius-bottomright: 0;
}

.table-bordered caption + thead tr:first-child th:first-child, .table-bordered caption + tbody tr:first-child td:first-child, .table-bordered colgroup + thead tr:first-child th:first-child, .table-bordered colgroup + tbody tr:first-child td:first-child {
	-webkit-border-top-left-radius: 4px;
	border-top-left-radius: 4px;
	-moz-border-radius-topleft: 4px;
}

.table-bordered caption + thead tr:first-child th:last-child, .table-bordered caption + tbody tr:first-child td:last-child, .table-bordered colgroup + thead tr:first-child th:last-child, .table-bordered colgroup + tbody tr:first-child td:last-child {
	-webkit-border-top-right-radius: 4px;
	border-top-right-radius: 4px;
	-moz-border-radius-topright: 4px;
}

.table-striped tbody > tr:nth-child(odd) > td, .table-striped tbody > tr:nth-child(odd) > th {
	background-color: #f9f9f9;
}

.table-hover tbody tr:hover > td, .table-hover tbody tr:hover > th {
	background-color: #f5f5f5;
}

table td[class*="span"], table th[class*="span"], .row-fluid table td[class*="span"], .row-fluid table th[class*="span"] {
	display: table-cell;
	float: none;
	margin-left: 0;
}

.table td.span1, .table th.span1 {
	float: none;
	width: 44px;
	margin-left: 0;
}

.table td.span2, .table th.span2 {
	float: none;
	width: 124px;
	margin-left: 0;
}

.table td.span3, .table th.span3 {
	float: none;
	width: 204px;
	margin-left: 0;
}

.table td.span4, .table th.span4 {
	float: none;
	width: 284px;
	margin-left: 0;
}

.table td.span5, .table th.span5 {
	float: none;
	width: 364px;
	margin-left: 0;
}

.table td.span6, .table th.span6 {
	float: none;
	width: 444px;
	margin-left: 0;
}

.table td.span7, .table th.span7 {
	float: none;
	width: 524px;
	margin-left: 0;
}

.table td.span8, .table th.span8 {
	float: none;
	width: 604px;
	margin-left: 0;
}

.table td.span9, .table th.span9 {
	float: none;
	width: 684px;
	margin-left: 0;
}

.table td.span10, .table th.span10 {
	float: none;
	width: 764px;
	margin-left: 0;
}

.table td.span11, .table th.span11 {
	float: none;
	width: 844px;
	margin-left: 0;
}

.table td.span12, .table th.span12 {
	float: none;
	width: 924px;
	margin-left: 0;
}

.table tbody tr.success > td {
	background-color: #dff0d8;
}

.table tbody tr.error > td {
	background-color: #f2dede;
}

.table tbody tr.warning > td {
	background-color: #fcf8e3;
}

.table tbody tr.info > td {
	background-color: #d9edf7;
}

.table-hover tbody tr.success:hover > td {
	background-color: #d0e9c6;
}

.table-hover tbody tr.error:hover > td {
	background-color: #ebcccc;
}

.table-hover tbody tr.warning:hover > td {
	background-color: #faf2cc;
}

.table-hover tbody tr.info:hover > td {
	background-color: #c4e3f3;
}
.btn {
	display: inline-block;
	*display: inline;
	padding: 4px 12px;
	margin-bottom: 0;
	*margin-left: .3em;
	font-size: 14px;
	line-height: 20px;
	color: #333333;
	text-align: center;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
	vertical-align: middle;
	cursor: pointer;
	background-color: #f5f5f5;
	*background-color: #e6e6e6;
	background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
	background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
	background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
	background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
	background-repeat: repeat-x;
	border: 1px solid #cccccc;
	*border: 0;
	border-color: #e6e6e6 #e6e6e6 #bfbfbf;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	border-bottom-color: #b3b3b3;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
	*zoom: 1;
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] {
	color: #333333;
	background-color: #e6e6e6;
	*background-color: #d9d9d9;
}

.btn:active, .btn.active {
	background-color: #cccccc \9;
}

.btn:first-child {
	*margin-left: 0;
}

.btn:hover, .btn:focus {
	color: #333333;
	text-decoration: none;
	background-position: 0 -15px;
	-webkit-transition: background-position 0.1s linear;
	-moz-transition: background-position 0.1s linear;
	-o-transition: background-position 0.1s linear;
	transition: background-position 0.1s linear;
}

.btn:focus {
	outline: thin dotted #333;
	outline: 5px auto -webkit-focus-ring-color;
	outline-offset: -2px;
}

.btn.active, .btn:active {
	background-image: none;
	outline: 0;
	-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn.disabled, .btn[disabled] {
	cursor: default;
	background-image: none;
	opacity: 0.65;
	filter: alpha(opacity=65);
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.btn-large {
	padding: 11px 19px;
	font-size: 17.5px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
}

.btn-large [class^="icon-"], .btn-large [class*=" icon-"] {
	margin-top: 4px;
}

.btn-small {
	padding: 2px 10px;
	font-size: 11.9px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

.btn-small [class^="icon-"], .btn-small [class*=" icon-"] {
	margin-top: 0;
}

.btn-mini [class^="icon-"], .btn-mini [class*=" icon-"] {
	margin-top: -1px;
}

.btn-mini {
	padding: 0 6px;
	font-size: 10.5px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

.btn-block {
	display: block;
	width: 100%;
	padding-right: 0;
	padding-left: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.btn-block + .btn-block {
	margin-top: 5px;
}

input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="button"].btn-block {
	width: 100%;
}

.btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active {
	color: rgba(255, 255, 255, 0.75);
}

.btn-primary {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #006dcc;
	*background-color: #0044cc;
	background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
	background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
	background-image: -o-linear-gradient(top, #0088cc, #0044cc);
	background-image: linear-gradient(to bottom, #0088cc, #0044cc);
	background-repeat: repeat-x;
	border-color: #0044cc #0044cc #002a80;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
	color: #ffffff;
	background-color: #0044cc;
	*background-color: #003bb3;
}

.btn-primary:active, .btn-primary.active {
	background-color: #003399 \9;
}

.btn-warning {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #faa732;
	*background-color: #f89406;
	background-image: -moz-linear-gradient(top, #fbb450, #f89406);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
	background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
	background-image: -o-linear-gradient(top, #fbb450, #f89406);
	background-image: linear-gradient(to bottom, #fbb450, #f89406);
	background-repeat: repeat-x;
	border-color: #f89406 #f89406 #ad6704;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] {
	color: #ffffff;
	background-color: #f89406;
	*background-color: #df8505;
}

.btn-warning:active, .btn-warning.active {
	background-color: #c67605 \9;
}

.btn-danger {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #da4f49;
	*background-color: #bd362f;
	background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
	background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
	background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
	background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
	background-repeat: repeat-x;
	border-color: #bd362f #bd362f #802420;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] {
	color: #ffffff;
	background-color: #bd362f;
	*background-color: #a9302a;
}

.btn-danger:active, .btn-danger.active {
	background-color: #942a25 \9;
}

.btn-success {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #5bb75b;
	*background-color: #51a351;
	background-image: -moz-linear-gradient(top, #62c462, #51a351);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
	background-image: -webkit-linear-gradient(top, #62c462, #51a351);
	background-image: -o-linear-gradient(top, #62c462, #51a351);
	background-image: linear-gradient(to bottom, #62c462, #51a351);
	background-repeat: repeat-x;
	border-color: #51a351 #51a351 #387038;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] {
	color: #ffffff;
	background-color: #51a351;
	*background-color: #499249;
}

.btn-success:active, .btn-success.active {
	background-color: #408140 \9;
}

.btn-info {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #49afcd;
	*background-color: #2f96b4;
	background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
	background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
	background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
	background-image: linear-gradient(to bottom, #5bc0de, #2f96b4);
	background-repeat: repeat-x;
	border-color: #2f96b4 #2f96b4 #1f6377;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] {
	color: #ffffff;
	background-color: #2f96b4;
	*background-color: #2a85a0;
}

.btn-info:active, .btn-info.active {
	background-color: #24748c \9;
}

.btn-inverse {
	color: #ffffff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #363636;
	*background-color: #222222;
	background-image: -moz-linear-gradient(top, #444444, #222222);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
	background-image: -webkit-linear-gradient(top, #444444, #222222);
	background-image: -o-linear-gradient(top, #444444, #222222);
	background-image: linear-gradient(to bottom, #444444, #222222);
	background-repeat: repeat-x;
	border-color: #222222 #222222 #000000;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] {
	color: #ffffff;
	background-color: #222222;
	*background-color: #151515;
}

.btn-inverse:active, .btn-inverse.active {
	background-color: #080808 \9;
}

button.btn, input[type="submit"].btn {
	*padding-top: 3px;
	*padding-bottom: 3px;
}

button.btn::-moz-focus-inner, input[type="submit"].btn::-moz-focus-inner {
	padding: 0;
	border: 0;
}

button.btn.btn-large, input[type="submit"].btn.btn-large {
	*padding-top: 7px;
	*padding-bottom: 7px;
}

button.btn.btn-small, input[type="submit"].btn.btn-small {
	*padding-top: 3px;
	*padding-bottom: 3px;
}

button.btn.btn-mini, input[type="submit"].btn.btn-mini {
	*padding-top: 1px;
	*padding-bottom: 1px;
}

.btn-link, .btn-link:active, .btn-link[disabled] {
	background-color: transparent;
	background-image: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.btn-link {
	color: #0088cc;
	cursor: pointer;
	border-color: transparent;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}

.btn-link:hover, .btn-link:focus {
	color: #005580;
	text-decoration: underline;
	background-color: transparent;
}

.btn-link[disabled]:hover, .btn-link[disabled]:focus {
	color: #333333;
	text-decoration: none;
}

.btn-group {
	position: relative;
	display: inline-block;
	*display: inline;
	*margin-left: .3em;
	font-size: 0;
	white-space: nowrap;
	vertical-align: middle;
	*zoom: 1;
}

.btn-group:first-child {
	*margin-left: 0;
}

.btn-group + .btn-group {
	margin-left: 5px;
}

.btn-toolbar {
	margin-top: 10px;
	margin-bottom: 10px;
	font-size: 0;
}

.btn-toolbar > .btn + .btn, .btn-toolbar > .btn-group + .btn, .btn-toolbar > .btn + .btn-group {
	margin-left: 5px;
}

.btn-group > .btn {
	position: relative;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}

.btn-group > .btn + .btn {
	margin-left: -1px;
}

.btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover {
	font-size: 14px;
}

.btn-group > .btn-mini {
	font-size: 10.5px;
}

.btn-group > .btn-small {
	font-size: 11.9px;
}

.btn-group > .btn-large {
	font-size: 17.5px;
}

.btn-group > .btn:first-child {
	margin-left: 0;
	-webkit-border-bottom-left-radius: 4px;
	border-bottom-left-radius: 4px;
	-webkit-border-top-left-radius: 4px;
	border-top-left-radius: 4px;
	-moz-border-radius-bottomleft: 4px;
	-moz-border-radius-topleft: 4px;
}

.btn-group > .btn:last-child, .btn-group > .dropdown-toggle {
	-webkit-border-top-right-radius: 4px;
	border-top-right-radius: 4px;
	-webkit-border-bottom-right-radius: 4px;
	border-bottom-right-radius: 4px;
	-moz-border-radius-topright: 4px;
	-moz-border-radius-bottomright: 4px;
}

.btn-group > .btn.large:first-child {
	margin-left: 0;
	-webkit-border-bottom-left-radius: 6px;
	border-bottom-left-radius: 6px;
	-webkit-border-top-left-radius: 6px;
	border-top-left-radius: 6px;
	-moz-border-radius-bottomleft: 6px;
	-moz-border-radius-topleft: 6px;
}

.btn-group > .btn.large:last-child, .btn-group > .large.dropdown-toggle {
	-webkit-border-top-right-radius: 6px;
	border-top-right-radius: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-right-radius: 6px;
	-moz-border-radius-topright: 6px;
	-moz-border-radius-bottomright: 6px;
}

.btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active {
	z-index: 2;
}

.btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle {
	outline: 0;
}

.btn-group > .btn + .dropdown-toggle {
	*padding-top: 5px;
	padding-right: 8px;
	*padding-bottom: 5px;
	padding-left: 8px;
	-webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
	box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-group > .btn-mini + .dropdown-toggle {
	*padding-top: 2px;
	padding-right: 5px;
	*padding-bottom: 2px;
	padding-left: 5px;
}

.btn-group > .btn-small + .dropdown-toggle {
	*padding-top: 5px;
	*padding-bottom: 4px;
}

.btn-group > .btn-large + .dropdown-toggle {
	*padding-top: 7px;
	padding-right: 12px;
	*padding-bottom: 7px;
	padding-left: 12px;
}

.btn-group.open .dropdown-toggle {
	background-image: none;
	-webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
	-moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-group.open .btn.dropdown-toggle {
	background-color: #e6e6e6;
}

.btn-group.open .btn-primary.dropdown-toggle {
	background-color: #0044cc;
}

.btn-group.open .btn-warning.dropdown-toggle {
	background-color: #f89406;
}

.btn-group.open .btn-danger.dropdown-toggle {
	background-color: #bd362f;
}

.btn-group.open .btn-success.dropdown-toggle {
	background-color: #51a351;
}

.btn-group.open .btn-info.dropdown-toggle {
	background-color: #2f96b4;
}

.btn-group.open .btn-inverse.dropdown-toggle {
	background-color: #222222;
}

.btn .caret {
	margin-top: 8px;
	margin-left: 0;
}

.btn-large .caret {
	margin-top: 6px;
}

.btn-large .caret {
	border-top-width: 5px;
	border-right-width: 5px;
	border-left-width: 5px;
}

.btn-mini .caret, .btn-small .caret {
	margin-top: 8px;
}

.dropup .btn-large .caret {
	border-bottom-width: 5px;
}

.btn-primary .caret, .btn-warning .caret, .btn-danger .caret, .btn-info .caret, .btn-success .caret, .btn-inverse .caret {
	border-top-color: #ffffff;
	border-bottom-color: #ffffff;
}

.btn-group-vertical {
	display: inline-block;
	*display: inline;
	/* IE7 inline-block hack */

	*zoom: 1;
}

.btn-group-vertical > .btn {
	display: block;
	float: none;
	max-width: 100%;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border-radius: 0;
}

.btn-group-vertical > .btn + .btn {
	margin-top: -1px;
	margin-left: 0;
}

.btn-group-vertical > .btn:first-child {
	-webkit-border-radius: 4px 4px 0 0;
	-moz-border-radius: 4px 4px 0 0;
	border-radius: 4px 4px 0 0;
}

.btn-group-vertical > .btn:last-child {
	-webkit-border-radius: 0 0 4px 4px;
	-moz-border-radius: 0 0 4px 4px;
	border-radius: 0 0 4px 4px;
}

.btn-group-vertical > .btn-large:first-child {
	-webkit-border-radius: 6px 6px 0 0;
	-moz-border-radius: 6px 6px 0 0;
	border-radius: 6px 6px 0 0;
}

.btn-group-vertical > .btn-large:last-child {
	-webkit-border-radius: 0 0 6px 6px;
	-moz-border-radius: 0 0 6px 6px;
	border-radius: 0 0 6px 6px;
}

.alert {
	padding: 8px 35px 8px 14px;
	margin-bottom: 20px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	background-color: #fcf8e3;
	border: 1px solid #fbeed5;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
}

.alert, .alert h4 {
	color: #c09853;
}

.alert h4 {
	margin: 0;
}

.alert .close {
	position: relative;
	top: -2px;
	right: -21px;
	line-height: 20px;
}

.alert-success {
	color: #468847;
	background-color: #dff0d8;
	border-color: #d6e9c6;
}

.alert-success h4 {
	color: #468847;
}

.alert-danger, .alert-error {
	color: #b94a48;
	background-color: #f2dede;
	border-color: #eed3d7;
}

.alert-danger h4, .alert-error h4 {
	color: #b94a48;
}

.alert-info {
	color: #3a87ad;
	background-color: #d9edf7;
	border-color: #bce8f1;
}

.alert-info h4 {
	color: #3a87ad;
}

.alert-block {
	padding-top: 14px;
	padding-bottom: 14px;
}

.alert-block > p, .alert-block > ul {
	margin-bottom: 0;
}

.alert-block p + p {
	margin-top: 5px;
}
.clear {
	clear: both;
}


text:
@interface themeViewController : UIViewController

@end

redpajama_set_name: RedPajamaGithub


text:
Personal Website Milestone 1
My PWP Milestone 1 is not really here yet.
I was confused and just added to my About Me page.
Working on it now.

### Milestone 1 Feedback

✔ Correctly set up the git/GitHub/PhpStorm toolchain.

✔ Create the directory structure for the project as outlined.

✔ Define a purpose, audience, and goal for your project.

✔ Create one Persona for your proposed project.

✔ Create one Use Case for your proposed project, based on the Persona.

Your purpose/audience/goal and Persona and Use Case all pass, however the only concern I have is if your direction for this project is accurately defined well enough specific to your professional goals. Based on the persona and use case it looks like your direction is squarely aimed at marketing yourself as a freelance mobile app developer looking to work with entrepreneurs and startups, perhaps with a focus on healthcare.

Just be certain that your direction is laser-focused on designing a site that will serve your specific goals, and attract the specific people and projects you want to work with and be a part of. Your HTML looks great, and nice work with CSS! Go ahead and get started on Milestone 2a. Your Milestone 1 passes at [Tier II](https://bootcamp-coders.cnm.edu/projects/personal/rubric/).

### Milestone 2α Feedback
✔ Create a sitemap outlining the pages you plan to include in your PWP.

✘ Document a brief plan or strategy for your content that will support the overall purpose and goal of the site.

✘ Map out a simple interaction flow that details the steps a user must take to successfully use your site to acheive the goal.

✔ Create a mobile and desktop/laptop wireframe for each page layout.

Really, really nice work on these wireframes! These will give you a very good outline upon which you can base your development. Your content strategy and interaction flow are missing, and I would have really liked to see some sort of content plan to go along with the wireframes. It looks like you have a lot of content planned in your layouts, and I'm curious as to what exactly you plan to feature. Especially on the Home page.

My initial thought is to clarify and 80/20 all of the navigation links (header,  footer, and within the content sections). I see redundancy in the nav, and featuring so many links becomes a bit cluttered. Also, based upon your 3-page sitemap, I'm a little unclear on where all of these links will go. Some redundancy and bold "calls to action" can be very appropriate depending on how you want your users to navigate your site, but I admit I'm a little confused. And I don't want your users to be confused by too many options on a 3-page website.

Are you planning on featuring a separate "services" page, or will that direct to your "work" page? I see links to a "services" page featured many times.

Instead of a list of buttons on your mobile "work" page, we can use a mobile-friendly gallery to feature your projects like [Swipebox](http://brutaldesign.github.io/swipebox/).

Again, awesome wireframes. Such a well planned layout really necessitates an equally clear content strategy to go along with it. ;) This site will be fun to build with Bootstrap. Your HTML and CSS all look great, and I'm looking forward to seeing this project take shape.

Your Milestone passes at [Tier I](https://bootcamp-coders.cnm.edu/projects/personal/rubric/). You're clear to begin development. Talk with me a bit more about your navigation links and content plan.

### Milestone 2b Feedback
- Let's get your directory structure set up. Create an index.php file inside /public_html. This will be your home page.
- Create a /php directory. This will, at the very least, house a file called mailer.php
- Don't forget to add a contact form to your site
- I think you can knock out the new layout in a couple of days. Just get the Bootstrap HTML scaffolding in place, then worry about the CSS and content

Take a look at what we went over, and check in with me and/or Skyler this week. After your new layout is up, you should be ready to deploy to ASO next week. :-)

Your Milestone 2b passes at [Tier IV](https://bootcamp-coders.cnm.edu/projects/personal/rubric/)

Set up ASO Host:
- Go over https://bootcamp-coders.cnm.edu/class-materials/php/email/, add composer.json (outside /public_html), and mailer.php (somewhere inside /public_html)
- enable shell access - chat live support and request them to enable this if it's not on already
- Add your public SSH key (CPanel, SSH Access)
- Add an email account, and add an email forwarder if you like :)
- Create a new deployment in PhpStorm that uploads to ASO, and upload your site there.
- After you've rolled out to ASO, we'll need to make a few quick updates to your .htaccess file


text:
croc.ns('croc.ui.bricks');

croc.ui.bricks.Switcher = croc.extend(croc.Object, {
    renderTo: undefined,
    count: 2,
    activeItem: 0,
    activeCls: 'state_active',
    suspended: false,
    tpl: '

',
    tplItem: '

',
    mod: undefined,
    init: function() {
        var self = this;
        if (!this.renderTo || this.count < 2) {
            return;
        }
        //render switcher to markup
        this.render();

        //assign click listener
        this.el.on('mousedown', function() {
            return false; // cancel Bubble event
        });
        this.el.on('mouseup', function() {
            return false; // cancel Bubble event
        });
        this.el.on('click', '.' + $(this.tplItem).attr('class'), function() {
            if (!self.suspended) {
                var idx = parseInt($(this).data('idx'));
                if (self.activeItem !== idx) {
                    //fire event 'change': push new and old indexes
                    self.fireEvent('change', this, idx, self.activeItem);
                    //set active
                    self.setActive(idx);
                }
            }
            return false; // cancel Bubble event
        });
    },
    getCount: function() {
        return this.count;
    },
    render: function() {
        this.el = $(this.tpl);

        if (this.mod) {
            this.el.addClass(this.mod);
        }

        this.__renderItems();

        this.el
            .appendTo(this.renderTo)
            .fadeIn(200);
    },
    setActive: function(idx) {
        this.items
            .eq(this.activeItem).removeClass(this.activeCls).end()
            .eq(idx).addClass(this.activeCls);
        //remember current active item
        this.activeItem = idx;
    },
    setCount: function(count) {
        if (this.count === count) {
            return;
        }

        this.count = count;
        this.activeItem = this.activeItem >= count ? count - 1 : this.activeItem;

        if (count < 2) {
            if (this.el) {
                this.el.hide();
            }
        }
        else {
            if (this.el) {
                this.el.empty().show();
                this.__renderItems();
            }
            else {
                this.render();
            }
        }
    },
    suspend: function() {
        this.suspended = true;
    },
    unsuspend: function() {
        this.suspended = false;
    },
    __renderItems: function() {
        var item;
        for (var i = 0; i < this.count; i++) {
            item = $(this.tplItem).data('idx', i);

            if (i === this.activeItem) {
                item.addClass(this.activeCls);
            }

            this.el.append(item);
        }

        this.items = this.el.find('.' + $(this.tplItem).attr('class'));
    }
});


text:
function hello(i){
    return Promise.resolve(i)
}

hello(1).then(function(value){
    console.log('Promise.resolve 1 ' + value);
});


text:
package com.google.errorprone.bugpatterns;

import com.google.errorprone.CompilationTestHelper;

import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**
 * @author sgoldfeder@google.com (Steven Goldfeder)
 */
@RunWith(JUnit4.class)
public class InjectMoreThanOneInjectableConstructorTest {

  private CompilationTestHelper compilationHelper;

  @Before
  public void setUp() {
    compilationHelper =
        CompilationTestHelper.newInstance(InjectMoreThanOneInjectableConstructor.class, getClass());
  }

  @Test
  public void testPositiveCase() throws Exception {
    compilationHelper.addSourceFile("InjectMoreThanOneInjectableConstructorPositiveCases.java")
        .doTest();
  }

  @Test
  public void testNegativeCase() throws Exception {
    compilationHelper.addSourceFile("InjectMoreThanOneInjectableConstructorNegativeCases.java")
        .doTest();
  }
}


text:
<!doctype html>

<link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
<meta charset="utf-8">
<base href="/">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Digital Archive of Queensland Architecture</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

<link rel="stylesheet" href="styles/main.css">

<link rel="stylesheet" href="bower_components/ngprogress/ngProgress.css">
<link rel="stylesheet" href="bower_components/select2/select2.css">

<link rel="stylesheet" href="bower_components/select2-bootstrap-css/select2-bootstrap.css">
<link rel="stylesheet" href="bower_components/AngularJS-Toaster/toaster.css">

<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700" type="text/css">

<link rel="stylesheet" href="bower_components/leaflet/dist/leaflet.css">
<link rel="stylesheet" href="bower_components/Leaflet.awesome-markers/dist/leaflet.awesome-markers.css">
<link rel="stylesheet" href="bower_components/leaflet.markercluster/dist/MarkerCluster.css">
<link rel="stylesheet" href="bower_components/leaflet.markercluster/dist/MarkerCluster.Default.css">

  <ng-progress></ng-progress>

  <toaster-container toaster-options="{}"> </toaster-container>


text:
require 'chefspec'
require 'chefspec/berkshelf'

###
# StackstormCookbook module
module SaltCookbook
  ###
  # StackstormCookbook Spec helpers
  module SpecHelper
    def global_stubs_include_recipe
      # Don't worry about external cookbook dependencies
      allow_any_instance_of(Chef::Cookbook::Metadata).to receive(:depends)

      # Test each recipe in isolation, regardless of includes
      @included_recipes = []

      allow_any_instance_of(Chef::RunContext).to receive(:loaded_recipe?).and_return(false)
      allow_any_instance_of(Chef::Recipe).to receive(:include_recipe) do |i|
        allow_any_instance_of(Chef::RunContext).to receive(:loaded_recipe?).and_return(true)
        @included_recipes << i
      end
      allow_any_instance_of(Chef::RunContext).to receive(:loaded_recipe).and_return(@included_recipes)
    end
  end
end

RSpec.configure do |config|
  config.platform = 'redhat'
  config.version = '7.2'
  config.include SaltCookbook::SpecHelper
end

at_exit { ChefSpec::Coverage.report! }


text:
package core;

import util.Candidate;
import java.util.ArrayList;
import core.MapTranslator;
import util.Path;

public class Factory {
    private MapTranslator Map;
    public Candidate Jadwal;
    private int PenunjukJadwal=0;
    public int CurrMachine = 0;
    private int LastMachine = 0;
    private int CurrLifeTimeMachine = 0;
    private boolean[] AvailableMachine;
    private int[] UseMachine; // penggunaan total jam tiap mesin
    private int[] UseMachineInPeriode; // penggunaan total jam tiap mesin
    private int[] RestMachine; // I
    private int[] MinutesRestMachine; // menit istirahat mesin
    private int[] Product; // total keuntungan
    public Factory(int[][] jarak, Path[][] listJarak, MapTranslator map, Candidate jadwal){
        Map = map;
        Jadwal = jadwal;
        AvailableMachine = new boolean[Map.getListMachine().size()];
        UseMachine = new int[Map.getListMachine().size()];
        UseMachineInPeriode = new int[Map.getListMachine().size()];
        RestMachine = new int[Map.getListMachine().size()];
        MinutesRestMachine = new int[Map.getListMachine().size()];
        for(int i=0;i<Map.getListMachine().size();i++){
            UseMachine[i]=0;
            UseMachineInPeriode[i]=0;
            AvailableMachine[i]=false;
            RestMachine[i]=0;
            MinutesRestMachine[i]=0;
        }
        Product = new int[Map.getListMachine().size()];
        for (int i=0;i<Map.getListMachine().size();i++){
            Product[i] = 0; // Jumlah product
        }
    }

    public void update(ArrayList<String> log, int jam, int menit){
        boolean MachineOneHour = false;
        // mengoperasikan mesin yang sedang bekerja //
        if(CurrMachine!=0) {// ada mesin yang harus dikerjakan
            if(CurrLifeTimeMachine>0){
                CurrLifeTimeMachine-=1;
            }else{ // waktu mesin bekerja sudah satu jam
                UseMachine[CurrMachine-1]+=1;
                if(UseMachineInPeriode[CurrMachine-1]>=Map.getListMachine().get(CurrMachine-1).getBebanKerjaPerPeriode()){
                    int jumlahProduk=(Map.getListMachine().get(CurrMachine-1).getProduktivitas()*Map.getListMachine().get(CurrMachine-1).getCostOverload()/100);
                    Product[CurrMachine-1] += jumlahProduk;
                    log.add("\nWaktu "+jam+":"+menit+":\nDidapatkan produk "+CurrMachine+" sebanyak "+jumlahProduk+" setelah mesin overload");
                }else{
                    Product[CurrMachine-1] += Map.getListMachine().get(CurrMachine-1).getProduktivitas();
                    log.add("\nWaktu "+jam+":"+menit+":\nDidapatkan produk "+CurrMachine+" sebanyak "+Map.getListMachine().get(CurrMachine-1).getProduktivitas());
                }
                log.add("\nWaktu "+jam+":"+menit+":\nTotal produk "+CurrMachine+" sekarang "+Product[CurrMachine-1]);
                LastMachine = CurrMachine;
                RestMachine[CurrMachine-1] = Map.getListMachine().get(CurrMachine-1).getIstirahat();
                CurrMachine = 0;
                MachineOneHour = true;
                PenunjukJadwal+=1;
            }
        }
        if(CurrMachine==0){ // tidak ada mesin yang harus dikerjakan
            boolean adaMesinYangBekerja = false;
            if(PenunjukJadwal<Jadwal.SIZE){
                    int noMachine = Jadwal.getGenotype(PenunjukJadwal+1);
                    if(UseMachine[noMachine]<Map.getListMachine().get(noMachine).getBebanKerjaPerHari()){
                            if(AvailableMachine[noMachine]){
                                // hidupkan mesin
                                boolean valid = false;
                                if(Map.getListMachine().get(noMachine).getDependency()==-1){
                                    valid = true;
                                }else{
                                    int produkYgDibutuhkan=Map.getListMachine().get(noMachine).getDependency();
                                    if(Product[produkYgDibutuhkan-1]>=Map.getListMachine().get(noMachine).getAmountDependency()){
                                        Product[produkYgDibutuhkan-1]-=Map.getListMachine().get(noMachine).getAmountDependency();
                                        valid = true;
                                    }else{ // produk tidak cukup

                                    }
                                }

                                if(valid){
                                    int temp = noMachine+1;
                                    if(MachineOneHour){
                                        if(LastMachine==temp){ // mesin digunakan lagi
                                            CurrMachine = noMachine+1;
                                            CurrLifeTimeMachine = 60;
                                            adaMesinYangBekerja = true;
                                            RestMachine[CurrMachine-1] = 0;
                                            UseMachineInPeriode[CurrMachine-1]+=1;
                                            log.add("\nWaktu "+jam+":"+menit+":\nMesin "+CurrMachine+" akan dihidupkan lagi");
                                        }else{ // mesin diganti
                                            if(RestMachine[noMachine]<=0){ // mesin siap kerja
                                                CurrMachine = noMachine+1;
                                                log.add("\nWaktu "+jam+":"+menit+":\nMesin "+CurrMachine+" akan dihidupkan");
                                                CurrLifeTimeMachine = 60;
                                                adaMesinYangBekerja = true;
                                                UseMachineInPeriode[CurrMachine-1]=0;
                                            }else { // mesin harus istirahat
                                            }
                                        }
                                    }else{// mesin diganti
                                        if(RestMachine[noMachine]<=0){ // mesin siap kerja
                                            CurrMachine = noMachine+1;
                                            log.add("\nWaktu "+jam+":"+menit+":\nMesin "+CurrMachine+" akan dihidupkan");
                                            CurrLifeTimeMachine = 60;
                                            adaMesinYangBekerja = true;
                                        }else { // mesin harus istirahat
                                            PenunjukJadwal+=1;
                                        }
                                    }
                                }else{
                                    PenunjukJadwal+=1;
                                }
                            }else {
                                int SewaMachine =0;
                                for(int i=0;i<Map.getListMachine().size();i++){
                                    if((AvailableMachine[i])){
                                        SewaMachine +=1;
                                    }
                                }
                            }

                    }else{
                        PenunjukJadwal+=1;
                    }
            }
            if(PenunjukJadwal<Jadwal.SIZE){
            }else{
            }
        }

        // mengistirahatkan mesin yang tidak bekerja //
        for(int i=0;i<Map.getListMachine().size();i++){
            if(AvailableMachine[i]){
                if((i+1)!=CurrMachine){
                    MinutesRestMachine[i]+=1;
                    if(MinutesRestMachine[i]>60){
                        MinutesRestMachine[i] = 0;
                        if(RestMachine[i]>0){
                            RestMachine[i]-=1;
                        }
                    }
                }
            }
        }
    }
    public void machineIntoPabrik(int noMachine){
        if(!AvailableMachine[noMachine-1]){
            int SewaMachine =0;
            for(int i=0;i<Map.getListMachine().size();i++){
                if(((i+1)!=noMachine)&&(AvailableMachine[i])){
                    SewaMachine +=1;
                }
            }
            if(SewaMachine<Map.getMaxSewaMesin()){ // masih bisa sewa
                AvailableMachine[noMachine-1]=true;
            }else{
            }
        }
    }
    public int[] getOrderNeedMachine(){
        int counter=0;
        int kebutuhan=0;
        int sewa =0;
        for(int i=0;i<Map.getListMachine().size();i++){
            if((AvailableMachine[i])){
                sewa +=1;
            }
        }
        int[] result = new int[Map.getMaxSewaMesin()-sewa];
        for(int i=0;i<result.length;i++){
            result[i]=-1;
        }
        while((sewa<Map.getMaxSewaMesin())&&(counter<Jadwal.SIZE)){
            if(!AvailableMachine[Jadwal.getGenotype(counter+1)]){
                boolean SudahAda = false;
                for(int i=0;i<result.length;i++){
                    if(result[i]==Jadwal.getGenotype(counter+1)){
                        SudahAda = true;
                    }
                }
                if(!SudahAda){
                    sewa+=1;
                    result[kebutuhan] = Jadwal.getGenotype(counter+1);
                    kebutuhan+=1;
                }
            }
            counter+=1;
        }
        int[] result_fix = new int[kebutuhan];
        for(int i=0;i<kebutuhan;i++){
            result_fix[i]=result[i]+1;
        }
        return result_fix;

    }
    public int nextHoursMachine(int noMachine){
        boolean found = false;
        int result=PenunjukJadwal;
        while((result<Jadwal.SIZE)&&(!found)){
            if(Jadwal.getGenotype(result+1)==(noMachine-1)){
                found = true;
            }else result+=1;
        }
        if(found) return result;else return -1;
    }
    public int[] getProduct(){
        return Product;
    }
}


text:
<?php

namespace Spatie\SchemaOrg;

/**
 * UserInteraction and its subtypes is an old way of talking about users
 * interacting with pages. It is generally better to use [[Action]]-based
 * vocabulary, alongside types such as [[Comment]].
 *
 * @see http://schema.org/UserCheckins
 *
 * @mixin \Spatie\SchemaOrg\UserInteraction
 */
class UserCheckins extends BaseType
{
}


text:
// Copyright (c) DotSpatial Team. All rights reserved.
// Licensed under the MIT license. See License.txt file in the project root for full license information.

using System.IO;

namespace DotSpatial.Data
{
    /// <summary>
    /// A container for shapefile components.
    /// </summary>
    public class ShapefilePackage
    {
        /// <summary>
        /// Gets or sets the shapefile.
        /// </summary>
        public Stream ShpFile { get; set; }

        /// <summary>
        /// Gets or sets the shapefile index.
        /// </summary>
        public Stream ShxFile { get; set; }

        /// <summary>
        /// Gets or sets the shapefile database.
        /// </summary>
        public Stream DbfFile { get; set; }

        /// <summary>
        /// Gets or sets the shapefile projection.
        /// </summary>
        public Stream PrjFile { get; set; }
    }
}


text:
using System.Reflection;
using System.Runtime.CompilerServices;

namespace NDepend {

   //
   // This code is based on the fact that:
   //   - The class System.Linq.Enumerable appeared with .NET v3.5
   //   - This class is declared in the assembly System.Core.dll that also appeared with .NET v3.5
   //   - The exception FileNotFoundException is thrown when an assembly is no found.
   //
   static class DotNetFx35Checker {
      [MethodImpl(MethodImplOptions.NoInlining)]
      internal static bool IsDotNetFx35Available(out string failureReason, out string productName) {
         productName = "NDepend";
         try {
            TestLinqAvailable();
            failureReason = null;
            return true;
         } catch (System.IO.FileNotFoundException) {
            var productVersion = Assembly.GetExecutingAssembly().GetName().Version;
            var productNameAndVersion = productName + " v" + productVersion.Major + "." + productVersion.Minor;
            failureReason = "To run " + productNameAndVersion + ", please download and install .NET Fx v3.5 or upper version.";
            return false;
         }
      }
      [MethodImpl(MethodImplOptions.NoInlining)]
      private static void TestLinqAvailable() {
         var i = System.Linq.Enumerable.Count(new int[] { 1 });
      }
   }
}


text:
<?php

namespace Composer\Filter\PlatformRequirementFilter;

use Composer\Repository\PlatformRepository;

final class IgnoreAllPlatformRequirementFilter implements PlatformRequirementFilterInterface
{
    /**
     * @param string $req
     * @return bool
     */
    public function isIgnored($req)
    {
        return PlatformRepository::isPlatformPackage($req);
    }
}


text:
package exceptions;
//: exceptions/OnOffException1.java
public class OnOffException1 extends Exception {} ///:~


text:
namespace extensions {

TestManagementPolicyProvider::TestManagementPolicyProvider()
    : may_load_(true),
      may_modify_status_(true),
      must_remain_enabled_(false),
      must_remain_disabled_(false),
      must_remain_installed_(false),
      disable_reason_(disable_reason::DISABLE_NONE) {
  error_message_ = base::UTF8ToUTF16(expected_error());
}

TestManagementPolicyProvider::TestManagementPolicyProvider(
    int prohibited_actions) {
  SetProhibitedActions(prohibited_actions);
  error_message_ = base::UTF8ToUTF16(expected_error());
}

void TestManagementPolicyProvider::SetProhibitedActions(
    int prohibited_actions) {
  may_load_ = (prohibited_actions & PROHIBIT_LOAD) == 0;
  may_modify_status_ = (prohibited_actions & PROHIBIT_MODIFY_STATUS) == 0;
  must_remain_enabled_ = (prohibited_actions & MUST_REMAIN_ENABLED) != 0;
  must_remain_disabled_ = (prohibited_actions & MUST_REMAIN_DISABLED) != 0;
  must_remain_installed_ = (prohibited_actions & MUST_REMAIN_INSTALLED) != 0;
}

void TestManagementPolicyProvider::SetDisableReason(
    disable_reason::DisableReason reason) {
  disable_reason_ = reason;
}

std::string TestManagementPolicyProvider::GetDebugPolicyProviderName() const {
  return "the test management policy provider";
}

bool TestManagementPolicyProvider::UserMayLoad(const Extension* extension,
                                               std::u16string* error) const {
  if (error && !may_load_)
    *error = error_message_;
  return may_load_;
}

bool TestManagementPolicyProvider::UserMayModifySettings(
    const Extension* extension,
    std::u16string* error) const {
  if (error && !may_modify_status_)
    *error = error_message_;
  return may_modify_status_;
}

bool TestManagementPolicyProvider::ExtensionMayModifySettings(
    const Extension* source_extension,
    const Extension* extension,
    std::u16string* error) const {
  if (error && !may_modify_status_)
    *error = error_message_;
  return may_modify_status_;
}

bool TestManagementPolicyProvider::MustRemainEnabled(
    const Extension* extension,
    std::u16string* error) const {
  if (error && must_remain_enabled_)
    *error = error_message_;
  return must_remain_enabled_;
}

bool TestManagementPolicyProvider::MustRemainDisabled(
    const Extension* extension,
    disable_reason::DisableReason* reason,
    std::u16string* error) const {
  if (must_remain_disabled_) {
    if (error)
      *error = error_message_;
    if (reason)
      *reason = disable_reason_;
  }
  return must_remain_disabled_;
}

bool TestManagementPolicyProvider::MustRemainInstalled(
    const Extension* extension,
    std::u16string* error) const {
  if (error && must_remain_installed_)
    *error = error_message_;
  return must_remain_installed_;
}

}  // namespace extensions


text:
package com.tle.web.sections.generic;

import com.tle.common.Check;
import com.tle.web.sections.SectionId;
import java.util.ArrayList;
import java.util.Collections;
import java.util.EventListener;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

public class ListenerRegistry {
  private final Map<ListenerKey, List<Object>> eventListeners =
      new HashMap<ListenerKey, List<Object>>();

  private static class ListenerKey {
    private final String target;
    private final Class<? extends EventListener> listenerClass;

    public ListenerKey(String target, Class<? extends EventListener> listenerClass) {
      this.target = target;
      this.listenerClass = listenerClass;
    }

    protected String getTarget() {
      return target;
    }

    @Override
    public boolean equals(Object obj) {
      if (this == obj) {
        return true;
      }

      if (!(obj instanceof ListenerKey)) {
        return false;
      }

      ListenerKey key2 = (ListenerKey) obj;
      return Check.bothNullOrEqual(target, key2.target) && listenerClass.equals(key2.listenerClass);
    }

    @Override
    public int hashCode() {
      return Check.getHashCode(target, listenerClass);
    }

    @Override
    public String toString() {
      return (target != null ? target : "[All Targets]")
          + ':' //$NON-NLS-1$
          + (listenerClass != null
              ? listenerClass.getSimpleName()
              : "[All Classes]"); //$NON-NLS-1$
    }
  }

  public <T extends EventListener> void addListener(
      String target, Class<T> clazz, Object eventListener) {
    ListenerKey key = new ListenerKey(target, clazz);
    List<Object> listeners = eventListeners.get(key);
    if (listeners == null) {
      listeners = new ArrayList<Object>();
      eventListeners.put(key, listeners);
    }
    listeners.add(eventListener);
  }

  public <T extends EventListener> List<Object> getListeners(
      String target, Class<? extends T> clazz) {
    ListenerKey key = new ListenerKey(target, clazz);
    List<Object> listeners = eventListeners.get(key);
    if (listeners == null) {
      return Collections.emptyList();
    }
    return listeners;
  }

  public void removeListeners(String target) {
    List<ListenerKey> removal = new ArrayList<ListenerKey>();
    for (Entry<ListenerKey, List<Object>> entry : eventListeners.entrySet()) {
      final ListenerKey key = entry.getKey();

      String etarget = key.getTarget();
      if (etarget != null && etarget.equals(target)) {
        removal.add(key);
        continue;
      }

      final Iterator<Object> listenersIt = entry.getValue().iterator();

      while (listenersIt.hasNext()) {
        Object listener = listenersIt.next();
        if (listener instanceof String) {
          if (listener.equals(target)) {
            listenersIt.remove();
          }
        } else if (listener instanceof SectionId) {
          String sectionId = ((SectionId) listener).getSectionId();
          if (sectionId != null && sectionId.equals(target)) {
            listenersIt.remove();
          }
        }
      }
    }
    for (ListenerKey rem : removal) {
      eventListeners.remove(rem);
    }
  }
}


text:
/**
* The shell for the orders section of the application.  Will contain either
* the order-list or order page.
*/
export class OrdersSection {
  configureRouter(config, router) {
    config.map([
      { route: '',    moduleId: './order-list', nav: false, title: '' },
      { route: ':id', moduleId: './order',      nav: false, title: '' },
    ]);
  }
}


text:
#include "wiredtiger_engine.hpp"
#include "codec.hpp"
#include "util/file_helper.hpp"
#include <string.h>
#include <stdlib.h>

#define LEVELDB_SLICE(slice) leveldb::Slice(slice.data(), slice.size())
#define ARDB_SLICE(slice) Slice(slice.data(), slice.size())

#define CHECK_WT_RETURN(ret)         do{\
                                       if (0 != ret) \
                                        {             \
                                           ERROR_LOG("WiredTiger Error: %s at %s:%d", wiredtiger_strerror(ret), __FILE__, __LINE__);\
                                            ret = -1;  \
                                         }\
                                       }while(0)

#define ARDB_TABLE "table:ardb"

namespace ardb
{
    static WT_CURSOR* create_wiredtiger_cursor(WT_SESSION* session)
    {
        WT_CURSOR* cursor = NULL;
        int ret = session->open_cursor(session,
        ARDB_TABLE, NULL, "raw", &cursor);
        if (0 != ret)
        {
            ERROR_LOG("Error create cursor for reason: %s", wiredtiger_strerror(ret));
            return NULL;
        }
        return cursor;
    }

    WiredTigerEngineFactory::WiredTigerEngineFactory(const Properties& props)
    {
        ParseConfig(props, m_cfg);
    }

    void WiredTigerEngineFactory::ParseConfig(const Properties& props, WiredTigerConfig& cfg)
    {
        cfg.path = ".";
        conf_get_string(props, "data-dir", cfg.path);
        conf_get_int64(props, "wiredtiger.batch_commit_watermark", cfg.batch_commit_watermark);
        conf_get_string(props, "wiredtiger.init_options", cfg.init_options);
        conf_get_string(props, "wiredtiger.init_table_options", cfg.init_table_options);
        //conf_get_bool(props, "leveldb.logenable", cfg.logenable);
    }

    KeyValueEngine* WiredTigerEngineFactory::CreateDB(const std::string& name)
    {
        WiredTigerEngine* engine = new WiredTigerEngine();
        WiredTigerConfig cfg = m_cfg;
        char tmp[cfg.path.size() + name.size() + 10];
        sprintf(tmp, "%s/%s", cfg.path.c_str(), name.c_str());
        cfg.path = tmp;
        if (engine->Init(cfg) != 0)
        {
            DELETE(engine);
            ERROR_LOG("Failed to create DB:%s", name.c_str());
            return NULL;
        }
        return engine;
    }
    void WiredTigerEngineFactory::DestroyDB(KeyValueEngine* engine)
    {
        DELETE(engine);
    }
    void WiredTigerEngineFactory::CloseDB(KeyValueEngine* engine)
    {
        DELETE(engine);
    }
    void WiredTigerIterator::SeekToFirst()
    {
        m_iter_ret = m_iter->reset(m_iter);
    }
    void WiredTigerIterator::SeekToLast()
    {
        m_iter->reset(m_iter);
        m_iter_ret = m_iter->prev(m_iter);
    }
    void WiredTigerIterator::Seek(const Slice& target)
    {
        WT_ITEM key_item;
        key_item.data = target.data();
        key_item.size = target.size();
        m_iter->set_key(m_iter, &key_item);
        int exact;
        if ((m_iter_ret = m_iter->search_near(m_iter, &exact)) == 0)
        {
            if (exact < 0)
            {
                Next();
            }
        }
    }
    void WiredTigerIterator::Next()
    {
        m_iter_ret = m_iter->next(m_iter);
    }
    void WiredTigerIterator::Prev()
    {
        m_iter_ret = m_iter->prev(m_iter);
    }
    Slice WiredTigerIterator::Key() const
    {
        return Slice((const char*) m_key_item.data, m_key_item.size);
    }
    Slice WiredTigerIterator::Value() const
    {
        if (0 == m_iter->get_value(m_iter, &m_value_item))
        {
            return Slice((const char*) m_value_item.data, m_value_item.size);
        }
        return Slice();
    }
    bool WiredTigerIterator::Valid()
    {
        if (0 == m_iter_ret)
        {
            m_iter_ret = m_iter->get_key(m_iter, &m_key_item);
        }
        return 0 == m_iter_ret;
    }
    WiredTigerIterator::~WiredTigerIterator()
    {
        if (NULL != m_iter)
        {
            m_iter->close(m_iter);
            m_engine->GetContextHolder().ReleaseTranscRef();
        }
    }

    WiredTigerEngine::WiredTigerEngine() :
            m_db(NULL)
    {

    }
    WiredTigerEngine::~WiredTigerEngine()
    {
        Close();
    }

    void WiredTigerEngine::Close()
    {
//        m_running = false;
//        DELETE(m_background);
        if (NULL != m_db)
        {
            m_db->close(m_db, NULL);
            DELETE(m_db);
        }
    }

//    void WiredTigerEngine::Run()
//    {
//        while (m_running)
//        {
//            ContextHolder& holder = GetContextHolder();
//            WT_SESSION* session = holder.session;
//            WT_CURSOR *cursor = session != NULL ? create_wiredtiger_cursor(session) : NULL;
//            if (NULL == cursor)
//            {
//                Thread::Sleep(10, MILLIS);
//                continue;
//            }
//            int rc = session->begin_transaction(session, "isolation=snapshot");
//            CHECK_WT_RETURN(rc);
//            bool trasnc_active = rc == 0;
//            WriteOperation* op = NULL;
//            int count = 0;
//            while (m_write_queue.Pop(op))
//            {
//                switch (op->type)
//                {
//                    case PUT_OP:
//                    {
//                        PutOperation* pop = (PutOperation*) op;
//                        WT_ITEM k, v;
//                        k.data = const_cast<char*>(pop->key.data());
//                        k.size = pop->key.size();
//                        v.data = const_cast<char*>(pop->value.data());
//                        v.size = pop->value.size();
//                        cursor->set_key(cursor, &k);
//                        cursor->set_value(cursor, &v);
//                        int rc = cursor->insert(cursor);
//                        CHECK_WT_RETURN(rc);
//                        DELETE(op);
//                        break;
//                    }
//                    case DEL_OP:
//                    {
//                        DelOperation* pop = (DelOperation*) op;
//                        WT_ITEM k;
//                        k.data = const_cast<char*>(pop->key.data());
//                        k.size = pop->key.size();
//                        cursor->set_key(cursor, &k);
//                        int rc = cursor->remove(cursor);
//                        CHECK_WT_RETURN(rc);
//                        DELETE(op);
//                        break;
//                    }
//                    case CKP_OP:
//                    {
//                        if (trasnc_active)
//                        {
//                            session->commit_transaction(session, NULL);
//                            trasnc_active = false;
//                        }
//                        //mdb_txn_commit (txn);
//                        //txn = NULL;
//                        CheckPointOperation* cop = (CheckPointOperation*) op;
//                        cop->Notify();
//                        break;
//                    }
//                    default:
//                    {
//                        break;
//                    }
//                }
//                count++;
//                if (count == m_cfg.batch_commit_watermark || !trasnc_active)
//                {
//                    break;
//                }
//            }
//            if (trasnc_active)
//            {
//                rc = session->commit_transaction(session, NULL);
//                CHECK_WT_RETURN(rc);
//            }
//            if (count == 0)
//            {
//                m_queue_cond.Lock();
//                m_queue_cond.Wait(5);
//                m_queue_cond.Unlock();
//            }
//        }
//    }

    static int __ardb_compare_keys(WT_COLLATOR *collator, WT_SESSION *session, const WT_ITEM *v1, const WT_ITEM *v2,
            int *cmp)
    {
        const char *s1 = (const char *) v1->data;
        const char *s2 = (const char *) v2->data;

        (void) session; /* unused */
        (void) collator; /* unused */

        *cmp = CommonComparator::Compare(s1, v1->size, s2, v2->size);
        return (0);
    }
    static WT_COLLATOR ardb_comparator =
        { __ardb_compare_keys, NULL, NULL };
    int WiredTigerEngine::Init(const WiredTigerConfig& cfg)
    {
        m_cfg = cfg;
        make_dir(cfg.path);
        int ret = 0;
        if (m_cfg.init_options.empty())
        {
            m_cfg.init_options = "create,cache_size=500M,statistics=(fast)";
        }
        if ((ret = wiredtiger_open(m_cfg.path.c_str(), NULL, m_cfg.init_options.c_str(), &m_db)) != 0)
        {
            ERROR_LOG("Error connecting to %s: %s", m_cfg.path.c_str(), wiredtiger_strerror(ret));
            return -1;
        }
        ret = m_db->add_collator(m_db, "ardb_comparator", &ardb_comparator, NULL);
        CHECK_WT_RETURN(ret);
//        m_running = true;
//        m_background = new Thread(this);
//        m_background->Start();
        return 0;
    }

    WiredTigerEngine::ContextHolder& WiredTigerEngine::GetContextHolder()
    {
        ContextHolder& holder = m_context.GetValue();
        if (NULL == holder.session)
        {
            int ret = 0;
            if ((ret = m_db->open_session(m_db, NULL, NULL, &holder.session)) != 0)
            {
                ERROR_LOG("Error opening a session on %s: %s", m_cfg.path.c_str(), wiredtiger_strerror(ret));
            }
            else
            {
                if (m_cfg.init_table_options.empty())
                {
                    m_cfg.init_table_options =
                            "key_format=u,value_format=u,prefix_compression=true,collator=ardb_comparator";
                }
                else
                {
                    if (m_cfg.init_table_options.find("collator=ardb_comparator") == std::string::npos)
                    {
                        m_cfg.init_table_options.append(",collator=ardb_comparator");
                    }
                }
                ret = holder.session->create(holder.session, ARDB_TABLE, m_cfg.init_table_options.c_str());
                CHECK_WT_RETURN(ret);
            }
            holder.engine = this;
        }
        return holder;
    }

    int WiredTigerEngine::BeginBatchWrite()
    {
        ContextHolder& holder = GetContextHolder();
        WT_SESSION* session = holder.session;
        if (NULL == session)
        {
            return -1;
        }
        holder.AddBatchRef();
        return 0;
    }
    int WiredTigerEngine::CommitBatchWrite()
    {
        ContextHolder& holder = GetContextHolder();
        holder.ReleaseBatchRef();
//        if (holder.batch_ref == 0)
//        {
//            CheckPointOperation* ck = new CheckPointOperation(holder.cond);
//            m_write_queue.Push(ck);
//            NotifyBackgroundThread();
//            ck->Wait();
//            DELETE(ck);
//        }
        return 0;
    }
    int WiredTigerEngine::DiscardBatchWrite()
    {
        ContextHolder& holder = GetContextHolder();
        holder.ReleaseBatchRef();
//        if (holder.batch_ref == 0)
//        {
//            CheckPointOperation* ck = new CheckPointOperation(holder.cond);
//            m_write_queue.Push(ck);
//            NotifyBackgroundThread();
//            ck->Wait();
//            DELETE(ck);
//        }
        return 0;
    }
//    void WiredTigerEngine::NotifyBackgroundThread()
//    {
//        m_queue_cond.Lock();
//        m_queue_cond.Notify();
//        m_queue_cond.Unlock();
//    }
//
//    void WiredTigerEngine::WaitWriteComplete(ContextHolder& holder)
//    {
//        CheckPointOperation* ck = new CheckPointOperation(holder.cond);
//        m_write_queue.Push(ck);
//        NotifyBackgroundThread();
//        ck->Wait();
//        DELETE(ck);
//    }

    void WiredTigerEngine::CompactRange(const Slice& begin, const Slice& end)
    {
        ContextHolder& holder = GetContextHolder();
        WT_SESSION* session = holder.session;
        if (NULL == session)
        {
            return;
        }
        session->compact(session, ARDB_TABLE, NULL);
    }

    void WiredTigerEngine::ContextHolder::AddTranscRef()
    {
        trasc_ref++;
        if (trasc_ref == 1)
        {
            int ret = session->begin_transaction(session, "isolation=snapshot");
            CHECK_WT_RETURN(ret);
            readonly_transc = true;
        }
    }
    void WiredTigerEngine::ContextHolder::ReleaseTranscRef()
    {
        if (trasc_ref > 0)
        {
            trasc_ref--;
            if (0 == trasc_ref)
            {
                int ret = session->commit_transaction(session, NULL);
                CHECK_WT_RETURN(ret);
                if (!readonly_transc)
                {
                    //engine->WaitWriteComplete(*this);
                }
            }
        }
    }

    void WiredTigerEngine::ContextHolder::AddBatchRef()
    {
        batch_ref++;
        if (batch_ref == 1 && NULL == batch)
        {
            batch = create_wiredtiger_cursor(session);
        }
    }
    void WiredTigerEngine::ContextHolder::ReleaseBatchRef()
    {
        batch_ref--;
        if (0 == batch_ref && NULL != batch)
        {
            batch->close(batch);
            batch = NULL;
        }
    }
    void WiredTigerEngine::ContextHolder::IncBatchWriteCount()
    {
        batch_write_count++;
    }
    void WiredTigerEngine::ContextHolder::RestartBatchWrite()
    {
        batch_write_count = 0;
        if (NULL != batch)
        {
            batch->close(batch);
        }
        batch = create_wiredtiger_cursor(session);
    }

    int WiredTigerEngine::Put(const Slice& key, const Slice& value, const Options& options)
    {
        ContextHolder& holder = GetContextHolder();
        WT_SESSION* session = holder.session;
        if (NULL == session)
        {
            return -1;
        }
//        if (holder.trasc_ref > 0)
//        {
//            PutOperation* op = new PutOperation;
//            op->key.assign((const char*) key.data(), key.size());
//            op->value.assign((const char*) value.data(), value.size());
//            m_write_queue.Push(op);
//            holder.readonly_transc = false;
//            return 0;
//        }
        int ret = 0;
        WT_CURSOR *cursor = holder.batch == NULL ? create_wiredtiger_cursor(session) : holder.batch;
        if (NULL == cursor)
        {
            return -1;
        }
        WT_ITEM key_item, value_item;
        key_item.data = key.data();
        key_item.size = key.size();
        value_item.data = value.data();
        value_item.size = value.size();
        cursor->set_key(cursor, &key_item);
        cursor->set_value(cursor, &value_item);
        ret = cursor->insert(cursor);
        if (0 != ret)
        {
            ERROR_LOG("Error write data for reason: %s", wiredtiger_strerror(ret));
            ret = -1;
        }
        if (holder.batch == NULL)
        {
            ret = cursor->close(cursor);
            CHECK_WT_RETURN(ret);
        }
        else
        {
            holder.IncBatchWriteCount();
            if (holder.batch_write_count >= m_cfg.batch_commit_watermark)
            {
                holder.RestartBatchWrite();
            }
        }
        return ret;
    }
    int WiredTigerEngine::Get(const Slice& key, std::string* value, const Options& options)
    {
        WT_SESSION* session = GetContextHolder().session;
        if (NULL == session)
        {
            return -1;
        }
        WT_CURSOR *cursor = create_wiredtiger_cursor(session);
        if (NULL == cursor)
        {
            return -1;
        }
        WT_ITEM key_item, value_item;
        key_item.data = key.data();
        key_item.size = key.size();
        cursor->set_key(cursor, &key_item);
        int ret = 0;
        if ((ret = cursor->search(cursor)) == 0)
        {
            ret = cursor->get_value(cursor, &value_item);
            if (0 == ret)
            {
                if (NULL != value)
                {
                    value->assign((const char*) value_item.data, value_item.size);
                }
            }
            else
            {
                CHECK_WT_RETURN(ret);
            }
        }
        cursor->close(cursor);
        return ret;
    }
    int WiredTigerEngine::Del(const Slice& key, const Options& options)
    {
        ContextHolder& holder = GetContextHolder();
        WT_SESSION* session = holder.session;
        if (NULL == session)
        {
            return -1;
        }
//        if (holder.trasc_ref > 0)
//        {
//            DelOperation* op = new DelOperation;
//            op->key.assign((const char*) key.data(), key.size());
//            m_write_queue.Push(op);
//            holder.readonly_transc = false;
//            return 0;
//        }
        int ret = 0;
        WT_CURSOR *cursor = holder.batch == NULL ? create_wiredtiger_cursor(session) : holder.batch;
        if (NULL == cursor)
        {
            return -1;
        }
        WT_ITEM key_item;
        key_item.data = key.data();
        key_item.size = key.size();
        cursor->set_key(cursor, &key_item);
        ret = cursor->remove(cursor);
        CHECK_WT_RETURN(ret);
        if (holder.batch == NULL)
        {
            cursor->close(cursor);
            CHECK_WT_RETURN(ret);
        }
        else
        {
            holder.IncBatchWriteCount();
            if (holder.batch_write_count >= m_cfg.batch_commit_watermark)
            {
                holder.RestartBatchWrite();
            }
        }
        return 0;
    }

    Iterator* WiredTigerEngine::Find(const Slice& findkey, const Options& options)
    {
        ContextHolder& holder = GetContextHolder();
        WT_SESSION* session = holder.session;
        if (NULL == session)
        {
            return NULL;
        }
        int ret, exact;
        holder.AddTranscRef();
        WT_CURSOR *cursor = create_wiredtiger_cursor(session);
        if (NULL == cursor)
        {
            holder.ReleaseTranscRef();
            return NULL;
        }
        WT_ITEM key_item;
        key_item.data = findkey.data();
        key_item.size = findkey.size();
        cursor->set_key(cursor, &key_item);

        if ((ret = cursor->search_near(cursor, &exact)) == 0)
        {
            if (exact < 0)
            {
                ret = cursor->next(cursor);
            }
            if (0 == ret)
            {
                return new WiredTigerIterator(this, cursor);
            }
        }
        DEBUG_LOG("Error find data for reason: %s", wiredtiger_strerror(ret));
        cursor->close(cursor);
        holder.ReleaseTranscRef();
        return NULL;
    }

    static int print_cursor(WT_CURSOR *cursor, std::string& str)
    {
        WT_ITEM desc, pvalue;
        uint64_t value;
        int ret;

        while ((ret = cursor->next(cursor)) == 0 && (ret = cursor->get_value(cursor, &desc, &pvalue, &value)) == 0)
        {
            if (value != 0)
            {
                str.append((const char*) desc.data, desc.size).append(": ").append((const char*) pvalue.data,
                        pvalue.size).append("\r\n");
            }
        }
        return (ret == WT_NOTFOUND ? 0 : ret);
    }

    const std::string WiredTigerEngine::Stats()
    {
        std::string info;
        int major_v, minor_v, patch;
        (void) wiredtiger_version(&major_v, &minor_v, &patch);
        info.append("WiredTiger version:").append(stringfromll(major_v)).append(".").append(stringfromll(minor_v)).append(
                ".").append(stringfromll(patch)).append("\r\n");
        info.append("WiredTiger Init Options:").append(m_cfg.init_options).append("\r\n");
        info.append("WiredTiger Table Init Options:").append(m_cfg.init_table_options).append("\r\n");

        ContextHolder& holder = m_context.GetValue();
        WT_SESSION* session = holder.session;
        if (NULL == session)
        {
            return info;
        }
        WT_CURSOR *cursor;
        int ret;

        /*! [statistics database function] */
        if ((ret = session->open_cursor(session, "statistics:", NULL, NULL, &cursor)) == 0)
        {
            print_cursor(cursor, info);
            cursor->close(cursor);
        }
        if ((ret = session->open_cursor(session, "statistics:table:ardb", NULL, NULL, &cursor)) == 0)
        {
            print_cursor(cursor, info);
            cursor->close(cursor);
        }
        return info;

    }

    int WiredTigerEngine::MaxOpenFiles()
    {
        //return m_options.max_open_files;
        return 100;
    }

}


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Lichenologist 11(2): 177 (1979)

#### Original name
Sarcosagium campestre var. macrosporum Coppins & P. James

### Remarks
null


text:
package org.gedcomx.conclusion;

import org.gedcomx.common.URI;
import org.gedcomx.types.IdentifierType;
import org.junit.Test;

import static org.gedcomx.rt.SerializationUtil.processThroughJson;
import static org.gedcomx.rt.SerializationUtil.processThroughXml;
import static org.junit.Assert.assertEquals;

/**
 * @author Ryan Heaton
 */
public class IdentifierTest {

  /**
   * tests identifier xml
   */
  @Test
  public void testIdXml() throws Exception {
    Identifier id = new Identifier();
    id.setKnownType(IdentifierType.Deprecated);
    id.setValue(URI.create("value"));
    id = processThroughXml(id);
    assertEquals(IdentifierType.Deprecated, id.getKnownType());
    assertEquals("value", id.getValue().toString());
  }

  /**
   * tests identifier json
   */
  @Test
  public void testIdJson() throws Exception {
    Identifier id = new Identifier();
    id.setKnownType(IdentifierType.Deprecated);
    id.setValue(URI.create("value"));
    id = processThroughJson(id);
//    assertEquals(IdentifierType.Deprecated, id.getKnownType());
    assertEquals("value", id.getValue().toString());
  }

}


text:
var fs = require('fs');
var path = require('path');
var join = path.join;
var fixturePath = join(__dirname, 'fixtures');
var _ = require('highland');
var expect = require('chai').expect;
var getFilteredFiles = require('../lib/getFilteredFiles.js');

describe('getFilteredFiles', function() {

  var JS_FILE_COUNT = 4;

  it('returns a Highland stream', function(done) {
    var actual = getFilteredFiles(testOptions({}));
    expect(_.isStream(actual)).to.be.true;
    actual.done(done);
  });

  describe('the `include` option', function() {

    it('includes files that match', function(done) {
      var actual = getFilteredFiles(testOptions({
        include: ['**/*.js']
      }));
      actual.filter(function(file) {
        return endsWith(file, '.js');
      }).toArray(function(files) {
        expect(files.length).to.equal(JS_FILE_COUNT);
        done();
      });
    });

    it('excludes files that do not match', function(done) {
      var actual = getFilteredFiles(testOptions({
        include: ['**/*.js']
      }));
      actual.filter(function(file) {
        return endsWith(file, '.junk');
      }).toArray(function(files) {
        expect(files.length).to.equal(0);
        done();
      });
    });

    it('accepts a single string', function(done) {
      var actual = getFilteredFiles(testOptions({
        include: '**/*.js'
      }));
      actual.filter(function(file) {
        return endsWith(file, '.js');
      }).toArray(function(files) {
        expect(files.length).to.equal(JS_FILE_COUNT);
        done();
      });
    });

  });

  describe('the `exclude` option', function() {

    it('excludes files listed', function(done) {
      var actual = getFilteredFiles(testOptions({
        include: ['**/*.js'],
        exclude: ['**/*Spec.js']
      }));
      actual.filter(function(file) {
        return endsWith(file, 'Spec.js');
      }).toArray(function(files) {
        expect(files.length).to.equal(0);
        done();
      });
    });

    it('accepts a single string', function(done) {
      var actual = getFilteredFiles(testOptions({
        include: ['**/*.js'],
        exclude: '**/*Spec.js'
      }));
      actual.filter(function(file) {
        return endsWith(file, 'Spec.js');
      }).toArray(function(files) {
        expect(files.length).to.equal(0);
        done();
      });
    });
  });

  it('uses the options.path as the root for inclusions and rejections', function(done) {
    var actual = getFilteredFiles(testOptions({
      include: ['dir1/innerA.js']
    }));
    actual.filter(function(file) {
      return endsWith(file, 'dir1/innerA.js');
    }).toArray(function(files) {
      expect(files.length).to.equal(1);
      done();
    });
  });

  it('all files are absolute', function(done) {
    var actual = getFilteredFiles(testOptions({
      include: ['**/*.js']
    }));
    actual.each(function(file) {
      expect(path.isAbsolute(file)).to.be.true;
    }).done(done);
  });

  it('all files are really files', function(done) {
    var actual = getFilteredFiles(testOptions({
      include: ['**/*.js']
    }));
    actual.each(function(file) {
      expect(fs.lstatSync(file).isFile()).to.be.true;
    }).done(done);
  });

  function testOptions(options) {
    // provide sensible default options that make sense for these tests
    options.path = options.path || fixturePath;
    return options;
  }

  function endsWith(str, text) {
    if (text.length > str.length) {
      return false;
    }
    return str.indexOf(text) === (str.length - text.length);
  }
});


text:
<?php

namespace Zedwoo\OnlineMarketingApiToolkit\Omdata\Tests\Client;

use Zedwoo\OnlineMarketingApiToolkit\OmData\OmDataClient;

/**
 * @group OmData
 */

class SerpsWeeklyTest extends \PHPUnit_Framework_TestCase
{
    private $client;

    public function setUp(){
        $config = array(
            'api_key' => $_SERVER['API_KEY']
        );
        $this->client = OmDataClient::factory($config);
    }

   public function testGetKeywords(){

       $command = $this->client->getCommand('serps_weekly/get_keywords'
       );
       $result = $command->execute();
       $this->assertGreaterThanOrEqual(1,count($result['keywordItems']));
   }
    public function testAddKeyword(){
        $command = $this->client->getCommand('serps_weekly/add_keyword',
            array(
                'keyword' => $_SERVER['SERPS_WEEKLY_KEYWORD']
            )
        );
        $result = $command->execute();
        $this->assertEquals($_SERVER['SERPS_WEEKLY_KEYWORD'],$result['keyword']);
    }

    public function testGetRankings(){
        $command = $this->client->getCommand('serps_weekly/get_rankings',
            array(
                'keyword' => $_SERVER['SERPS_WEEKLY_KEYWORD']
            )
        );
        $result = $command->execute();
        $this->assertGreaterThanOrEqual(100,count($result['serps']));
    }

    public function testDeleteKeyword(){
        $command = $this->client->getCommand('serps_weekly/delete_keyword',
            array(
                'keyword' => $_SERVER['SERPS_WEEKLY_KEYWORD']
            )
        );
        $result = $command->execute();
        $this->assertEquals($_SERVER['SERPS_WEEKLY_KEYWORD'],$result['keyword']);
    }
}


text:
// Package ephemeral implements the controller part of
// https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes
//
// It was derived from the expand controller.
package ephemeral


text:
__all__ = (
        "PangoAttrList",
    )

import pango
import ibus

class PangoAttrList(pango.AttrList):
    def __init__(self, attrs, unistr):
        super(PangoAttrList, self).__init__()
        if attrs == None:
            return
        offsets = []
        offset = 0
        for c in unistr:
            offsets.append(offset)
            offset += len(c.encode("utf8"))
        offsets.append(offset)
        for attr in attrs:
            pango_attr = None
            start_index = attr.start_index if attr.start_index >= 0 else 0
            end_index = attr.end_index if attr.end_index >= 0 else 0
            start_index = offsets[start_index] if start_index < len(offsets) else offsets[-1]
            end_index = offsets[end_index] if end_index < len(offsets) else offsets[-1]
            if attr.type == ibus.ATTR_TYPE_FOREGROUND:
                r = (attr.value & 0x00ff0000) >> 8
                g = (attr.value & 0x0000ff00)
                b = (attr.value & 0x000000ff) << 8
                pango_attr = pango.AttrForeground(r, g, b,
                    start_index, end_index)
            elif attr.type == ibus.ATTR_TYPE_BACKGROUND:
                r = (attr.value & 0x00ff0000) >> 8
                g = (attr.value & 0x0000ff00)
                b = (attr.value & 0x000000ff) << 8
                pango_attr = pango.AttrBackground(r, g, b,
                    start_index, end_index)
            elif attr.type == ibus.ATTR_TYPE_UNDERLINE:
                pango_attr = pango.AttrUnderline(int(attr.value),
                    start_index, end_index)
            if pango_attr != None:
                self.insert(pango_attr)


text:
var parser = require('./polylove-sql-parser.js');

function flatten(toFlatten) {
  if (Array.isArray(toFlatten) && toFlatten.length > 0) {
    var head = toFlatten[0];
    var tail = toFlatten.slice(1);

    return flatten(head).concat(flatten(tail));
  } else {
    return [].concat(toFlatten);
  }
};

module.exports = function (input) {
	var data = parser.parse(input);

//	console.log(flatten(data.orderBy));

  var constants = {};
  var propertyByNames = {};
  var propertyByIndexes = [];

  var propIndex = 0;

  flatten(data.where).forEach(function (part) {
    if (typeof part == 'object'){
      switch(part.type) {
        case 'property':
          if (!propertyByNames.hasOwnProperty(part.name)) {
            propertyByIndexes.push(part.name);
          }
        break;
        case 'constant': constants[part.name] = 1; break;
      }
    }
  });

  flatten(data.orderBy).forEach(function (part) {
    if (typeof part == 'object'){
      switch(part.type) {
        case 'property':
          if (!propertyByNames.hasOwnProperty(part.name)) {
            propertyByIndexes.push(part.name);
          }
        break;
        case 'constant': constants[part.name] = 1; break;
      }
    }
  });

  data.properties = propertyByIndexes;
  data.constants = Object.keys(constants);

	return data;
}