text:
<!DOCTYPE html>

		<meta charset="utf-8">

		<title> SmartAdmin </title>
		<meta name="description" content="">
		<meta name="author" content="">

		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/font-awesome.min.css">

		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-production.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-skins.css">

		<link rel="stylesheet" type="text/css" media="screen" href="css/demo.css">

		<link rel="shortcut icon" href="img/favicon/favicon.ico" type="image/x-icon">
		<link rel="icon" href="img/favicon/favicon.ico" type="image/x-icon">

		<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700">

				   21

							<input type="radio" name="activity" id="ajax/notify/mail.html">
							Msgs (14)

							<input type="radio" name="activity" id="ajax/notify/notifications.html">
							notify (3)

							<input type="radio" name="activity" id="ajax/notify/tasks.html">
							Tasks (4)

Click a button to show messages here

							This blank page message helps protect your privacy, or you can show the first message here automatically.

					 Last updated on: 12/12/2013 9:43AM
						<button type="button" data-loading-text=" Loading..." class="btn btn-xs btn-default pull-right">

						</button>

				Projects:
				Recent projects

						Online e-merchant management system - attaching integration with the iOS

						Notes on pipeline upgradee

						Assesment Report for merchant account

						 Clear

				<form action="#search.html" class="header-search pull-right">
					<input type="text" placeholder="Find reports and more" id="search-fld">
					<button type="submit">

					</button>

				</form>

						   US

								 US

								 Spanish

								 German

							john.doe

						 Dashboard

						 Inbox14

						 Graphs

								Flot Chart

								Morris Charts

								Inline Charts

						 Tables

								Normal Tables

								Data Tables

						 Forms

								Smart Form Elements

								Smart Form Layouts

								Smart Form Validation

								Bootstrap Form Elements

								Form Plugins

								Wizards

								Bootstrap Editors

								Dropzone new

						 UI Elements

								General Elements

								Buttons

								Icons

										 Font Awesome

										 Glyph Icons

								Grid

								Tree View

								Nestable Lists

								JQuery UI

						 6 Level Navigation

								 2nd Level

										 3ed Level

												 File

												 4th Level

														 File

														 5th Level

																 File

																 File

								 Folder

										 3ed Level

												 File

												 File

						3 Calendar

						 Widgets

						 Gallery

						 Google Map Skins9

						 Miscellaneous

								Typography

								Pricing Tables

								Invoice

								Login

								Register

								Locked Screen

								Error 404

								Error 500

								Blank Page

								Email Template

								Search Page

								CK Editor

						 Other Pages

								Forum Layout

								Profile

								Timeline

				 <span id="refresh" class="btn btn-ribbon" data-title="refresh"  rel="tooltip" data-placement="bottom" data-original-title=" Warning! This will reset all your widget settings." data-html="true">

						UI Elements

						General Elements

 UI Elements >
							General Elements

 My Income $47,171

									1300, 1877, 2500, 2577, 2000, 2100, 3000, 2700, 3631, 2471, 2700, 3631, 2471

 Site Traffic  45%

									110,150,300,130,400,240,220,310,220,300, 270, 210

 Site Orders  2447

									110,150,300,130,400,240,220,310,220,300, 270, 210

								<button class="close" data-dismiss="alert">
									×
								</button>

								Warning Your monthly traffic is reaching limit.

								<button class="close" data-dismiss="alert">
									×
								</button>

								Success The page has been added.

								<button class="close" data-dismiss="alert">
									×
								</button>

								Info! You have 198 unread messages.

								<button class="close" data-dismiss="alert">
									×
								</button>

								Error! The daily cronjob has failed.

Standard Progress Bars

											All progress bars contain a base class of

												.progress

											. Control the size of the progress bar with

												.progress-xs

											,

												.progress-sm

											,

												.progress-lg

											or leave as is for the default size.

Transitional Progress Bars

													JS required This nifty animated progress bars run on CSS combined with javascript

													You will simply need to add in the value

														aria-valuetransitiongoal="25"

													after the .progress-bar class

															For right alignment add class

																.progress .right

															The default is left aligned.

Transitional Progress Bars continued...

															Add an overlapping div to progress-bar with the base css of

																.progress .vertical

															Add an overlapping div to progress-bar with the base css of

																.progress .vertical .bottom

															Add an overlapping div to progress-bar with the base css of

																.progress .vertical .wide-bar

															Add an overlapping div to progress-bar with the base css of

																.bottom .wide-bar

Default Progress Bars

													Micro progress bar
														.progress-micro
													with

														.progress-bar-primary

													Extra small progress bar
														.progress-xs
													with

														.bg-color-blue

													Small progress bar
														.progress-sm
													with

														.bg-color-greenLight

													Default progress bar with

														.bg-color-redLight

													Large progress bars
														.progress-lg
													with

														.bg-color-blueLight

Stripped Progress Bars

													Sriped Progress bars made with CSS3 gradients, by adding the

														.progress-striped
													 class to the base class

													Info! Please be aware that this will not work in archaic browsers such as IE9  80% Complete

													Activate and animate a progress bar by adding the class

														.progress-striped .active

													Dark progress bar with class

														.bg-color-darken

Stacking Progress Bars

													Stack one progressbar on top of another by including all in one

														div.progress

													 35,20,10,35

 Customized Tabs

Default Tabs with border

											Tabs inside

												.jarviswidget .well

											(Bordered Tabs)

												Left Tab 12

												 Tab Item 2

												Dropdown

														@fat

														@mdo

													5,10,6,7,4,3

													I have six locks on my door all in a row. When I go out, I lock every other one. I figure no matter how long somebody stands there picking the locks, they are always locking three.

													Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee.

													Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony.

													Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

Tabs left

												<input type="checkbox" id="demo-switch-to-pills" name="checkbox-toggle">
												Switch Navs / Pills

													12 Item 1

													3 Item 2

													0 Item 3

														Dear Math, please grow up and solve your own problems, I'm tired of solving them for you.

														They say that love is more important than money, but have you ever tried to pay your bills with a hug?

														Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony.

														Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

											   Bottom Tabs

											   Top Tabs  label

																The broccoli says 'I look like a small tree', the mushroom says 'I look like an umbrella', the walnut says 'I look like a brain', and the banana says 'Can we please change the subject?'

																Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee.

																Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

															Tab 1

															Tab 2

															Tab 3

														Item 1

														Item 2

														Item 3

															Three monkeys escaped from the zoo, one was caught watching TV, the other playing hockey, and the third one was caught reading this quote!

															Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee.

															Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

My Data

											Tabs inside well and pulled right

												.tabs-pull-right

											(Bordered Tabs)

												Tab Item 1 99

												Tab Item 2

														@fat

														@mdo

													My therapist told me the way to achieve true inner peace is to finish what I start. So far I've finished two bags of M&Ms and a chocolate cake. I feel better already.

													Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee.

													Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony.

													Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

Tabs right

													Item 1 12

													Item 2 3

													Item 3 3

														TEAM WORK: Having somebody else you can blame it on.

														HARDWARE: The part of a computer you can kick when there are software problems.

														IMPATIENT: Somebody who is waiting in a hurry.

														Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.

														Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.

Header Tabs Right

											   Bottom Tabs right

											   Top Tabs right  label

																When I stare at the sky, I see you. When I stare out into the ocean, I see you. When I'm looking at the moon, I see you. Geez! Would you move aside, you're constantly getting in my way!

																Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee.

																Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

															Tab 1

															Tab 2

															Tab 3

														Item 1

														Item 2

														Item 3

															I love everyone! I love to be around some people, I love to stay away from others, and some I'd just love to punch right in the face!

															Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee.

															Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table.

 Accordions

Accordions

   Collapsible Group Item #1

																	Column name
																	Column name
																	Column name
																	Column name

																	Row 1
																	Row 2
																	Row 3
																	Row 4

																	Row 1
																	Row 2
																	Row 3
																	Row 4

																	Row 1
																	Row 2
																	Row 3
																	Row 4

   Collapsible Group Item #2

														Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

   Collapsible Group Item #3

														Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.

Inside a widget

												<input type="checkbox" name="checkbox">
												Add Padding

   Collapsible Group Item #1

														Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.

   Collapsible Group Item #2

														Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.

   Collapsible Group Item #3

														Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et.

 Default Nav Bars

										Link

										Link

										 Dropdown

												Action

												Another action

												Something else here

												Separated link

												One more separated link

								<form class="navbar-form navbar-left" role="search">

										<input class="form-control" placeholder="Search" type="text">

									<button class="btn btn-default" type="submit">
										Submit
									</button>
								</form>

										Link

										 Dropdown

												Action

												Another action

												Something else here

												Separated link

										Link

										Link

										Large Dropdown

														Glyphicons

														Available glyphs

														How to use

														Examples

														Dropdowns

														Example

														Aligninment options

														Headers

														Disabled menu items

														Button groups

														Basic example

														Button toolbar

														Sizing

														Nesting

														Vertical variation

														Button dropdowns

														Single button dropdowns

														Input groups

														Basic example

														Sizing

														Checkboxes and radio addons

														Navs

														Tabs

														Pills

														Justified

														Navbar

														Default navbar

														Buttons

														Text

														Non-nav links

														Component alignment

														Fixed to top

														Fixed to bottom

														Static top

														Inverted navbar

								<form class="navbar-form navbar-left pull-right" role="search">

										<input class="form-control" placeholder="Search" type="text">

									<button class="btn btn-primary" type="submit">
										Submit
									</button>
								</form>

 Labels and Badges

											 Did you know you can add more than just the basic colors to customize your badge? Learn more about color options modifiers on the Typography page!

													Add any of the below mentioned modifier classes to change the appearance of a label.

															Classes
															Labels

																.label-default

															Default

																.label-primary

															Primary

																.label-success

															Success

																.label-info

															Info

																.label-warning

															Warning

																.label-danger

															Danger

													Add any of the below mentioned modifier classes to change the appearance of a badge.

															Classes
															Badges

															No modifiers
															42

																.bg-color-darken

															1

																.bg-color-greenLight

															22

																.bg-color-blueLight

															30

																.bg-color-orange

															412

																.bg-color-red

															999

 Block Messages

								×

Warning!

								Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

								×

Success!

								Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

								×

Info!

								Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

								×

Error!

								Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

									Action Button

 Carousel Slide / Fade

Carousel
											.slide

											Default sliding carousel with base class of
												.carousel .slide

Title 1

															Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

														Read more

Title 2

															Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

														Read more

A very long thumbnail title here to fill the space

Carousel
											.fade

											To make the carasoul fade, you can use the class
												.carousel .fade

Title 1

															Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

														Read more

Title 2

															Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.

														Read more

A very long thumbnail title here to fill the space

 Alerts and Notifications

Bootstrap Modal

Static Example

											A rendered modal with header, body, and set of actions in the footer.

													<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
														×
													</button>

Modal title

														One fine body…

													<button type="button" class="btn btn-default" data-dismiss="modal">
														Close
													</button>
													<button type="button" class="btn btn-primary">
														Save changes
													</button>

Live Demo

											Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.

										<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
											Launch demo modal
										</button>

Options

														Name
														type
														default
														description

														backdrop
														boolean or the string

															'static'

														true
														Includes a modal-backdrop element. Alternatively, specify

															static
														 for a backdrop which doesn't close the modal on click.

														keyboard
														boolean
														true
														Closes the modal when escape key is pressed

														show
														boolean
														true
														Shows the modal when initialized.

														remote
														path
														false

															If a remote URL is provided, content will be loaded via jQuery's

																load

															method and injected into the root of the modal element. If you're using the data-api, you may alternatively use the

																href

															attribute to specify the remote source. An example of this is shown below:

						<a data-toggle="modal" href="remote.html" data-target="#modal">
						Click me</a>

Smart Notifications with sound

Big box (Static Example)

											Clutter free dynamic alert box, easy to configure and setup!

											 Sound Enabled

Live Demo

											INFO! Messages are tabbale and does not overpopulate the user screen. Sounds can also be disabled if not needed

												  Example 1

												  Example 2

												  Example 3

												  Example 4

Small box alert

												<button type="button" id="eg5" class="btn btn-default">
													With button
												</button>

												<button type="button" id="eg6" class="btn btn-default">
													With Icon
												</button>

											Easily customize the alerts to any colors of your choice, and add any icons from the theme library with animation!

Extra Small Box

												<button type="button" id="eg7" class="btn btn-default">
													 Extra Small Alert
												</button>

											Go even tinier with smaller attention messages!

Smart Alert with sound

With Callback and Buttons (Dynamic Example)

												 Callback ()

												 Many Buttons

With Input and Select

												 With Input

												 With Select

Log me in example

												 Login me in

 Tooltips and Popovers

Tooltips

											Tip your users with a small tooltip. Nifty helpful information can be disaplayed using this very simple and yet effictive component. Display pure HTML Content,  Images and Icons

												<a href="javascript:void(0);" class="btn btn-default btn-lg" rel="tooltip" data-placement="top" data-original-title="
One Really big tip!
" data-html="true">Big Tip

												<a href="javascript:void(0);" class="btn btn-default btn-lg" rel="tooltip" data-placement="top" data-original-title=" " data-html="true">has Icon

												<a href="javascript:void(0);" class="btn btn-default btn-lg" rel="tooltip" data-placement="top" data-original-title="" data-html="true">also Image

												 Tooltip Left

												 Tooltip Top

												 Tooltip Bottom

												<a href="javascript:void(0);" class="btn btn-default" rel="tooltip" data-placement="right" data-original-title=" Tooltip Right" data-html="true"> Tooltip Right

Popovers

											Popovers are a cool way to express compressed information to the user, neatly and quickly. You can generate all kinds of content within the popover component. Including Forms, Tabs, Images and even Google map!

												On Hover

												<a href="javascript:void(0);" class="btn btn-default btn-lg" rel="popover" data-placement="top" data-original-title="
Tabs inside popover
" data-content="

Active Tab

Tab 2

I have six locks on my door all in a row. When I go out, I lock every other one. I figure no matter how long somebody stands there picking the locks, they are always locking three.

Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. wes anderson artisan four loko farm-to-table craft beer twee.

" data-html="true">Active Content

												<a href="javascript:void(0);" class="btn btn-default btn-lg" rel="popover" data-placement="top" data-original-title=" Form inside popover" data-content="<form action='' style='min-width:170px'>
<input type='checkbox' class='checkbox style-0' checked='checked'>Read

<input type='checkbox' class='checkbox style-0'>Write

<input type='checkbox' class='checkbox style-0'>Execute

<button class='btn btn-primary btn-sm' type='submit'>SAVE</button>

</form>" data-html="true">File Access

												 Popover Left

												 Popover Up

												 Popover Down

												 Popover Right

 Containers, Media and Pagination

Jumbotron Gets your user attention!

Hello, world!

										This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.

										Learn more

Wells Notice the well sizes

									Large well

										.well .well-lg

									Default well

										.well

									Small well with light background

										.well .well-sm .well-light

Well with background

												.bg-color-darken

Well with background

												.bg-color-teal

Well with background

												.bg-color-pinkDark

									Learn more about other colors that you can use for .well by going to  typography page

Media

Media heading

												Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

Nested media heading

													Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

Nested media heading

															Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

Nested media heading

													Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

Media heading

											Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.

Pagination two different styles

											1

											2

											3

											4

											5

											1

											2

											3

											4

											5

											1

											2

											3

											4

											5

											1

											2

											3

											4

											5

											1

											2

											3

											4

											5

											«

											1

											2

											3

											4

											5

											»

											← Older

											Newer →

								<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
									×
								</button>

Article Post

											<input type="text" class="form-control" placeholder="Title" required />

											<textarea class="form-control" placeholder="Content" rows="5" required></textarea>

											 Category
											<select class="form-control" id="category">
												<option>Articles</option>
												<option>Tutorials</option>
												<option>Freebies</option>
											</select>

											 Tags
											<input type="text" class="form-control" id="tags" placeholder="Tags" />

											<form class="form form-inline " role="form">

													<input type="text" class="form-control" value="" placeholder="Date" required />

													<select class="form-control">
														<option>Draft</option>
														<option>Published</option>
													</select>

													<button type="submit" class="btn btn-success btn-sm">
														 Save
													</button>
													<button type="button" class="btn btn-default btn-sm">
														 Preview
													</button>

											</form>

								<button type="button" class="btn btn-default" data-dismiss="modal">
									Cancel
								</button>
								<button type="button" class="btn btn-primary">
									Post Article
								</button>

					   Mail 14

					   Calendar

					   Maps

					   Invoice 99

					   Gallery

					   My Profile


text:
/*
using RefactoringEssentials.CSharp.Diagnostics;
using Xunit;

namespace RefactoringEssentials.Tests.CSharp.Diagnostics
{
    public class UseMethodIsInstanceOfTypeTests : CSharpDiagnosticTestBase
    {
        [Fact(Skip="TODO: Issue not ported yet")]
        public void TestBasicUsage()
        {
            Test<UseMethodIsInstanceOfTypeAnalyzer>(@"using System;
class FooBar
{
	void Foo()
	{
		Type t;
		if (t.IsAssignableFrom (this.GetType ())) {
		}
	}
}
", @"using System;
class FooBar
{
	void Foo()
	{
		Type t;
		if (t.IsInstanceOfType (this)) {
		}
	}
}
");
        }

        [Fact(Skip="TODO: Issue not ported yet")]
        public void TestDisable()
        {
            Analyze<UseMethodIsInstanceOfTypeAnalyzer>(@"using System;
class FooBar
{
	void Foo()
	{
		Type t;
		// ReSharper disable once UseMethodIsInstanceOfType
		if (t.IsAssignableFrom (this.GetType ())) {
		}
	}
}
");
        }

    }
}

*/

redpajama_set_name: RedPajamaGithub


text:
package org.teatrove.trove.util.tq;

/**
 * Automatically tunes a TransactionQueue by dynamically adjusting the maximum
 * size of the queue. TransactionQueueSizeTuner only works for
 * TransactionQueues that have a transaction timeout, and a
 * TransactionQueueSizeTuner instance should only be added to one
 * TransactionQueue.
 *
 * @author Brian S O'Neill
 */
public class TransactionQueueSizeTuner extends TransactionQueueAdapter {
    public void transactionQueueFull(TransactionQueueEvent e) {
        TransactionQueue queue = e.getTransactionQueue();
        long timeout = queue.getTransactionTimeout();
        if (timeout >= 0) {
            queue.setMaximumSize(queue.getMaximumSize() + 1);
        }
    }

    public void transactionExpired(TransactionQueueEvent e) {
        TransactionQueue queue = e.getTransactionQueue();
        int currentSize = queue.getMaximumSize();
        if (currentSize > 1) {
            queue.setMaximumSize(currentSize - 1);
        }
    }
}


text:
if [ -z "${SERVER_NAME}" ]; then
  SERVER_NAME="localhost"
fi

export FACTER_SERVER_NAME="${SERVER_NAME}"

if [ -z "${TIMEZONE}" ]; then
  TIMEZONE="Etc/UTC"
fi

export FACTER_TIMEZONE="${TIMEZONE}"

if [ -z "${TIMEOUT}" ]; then
  TIMEOUT="300"
fi

export FACTER_TIMEOUT="${TIMEOUT}"

if [ -z "${PROTOCOLS}" ]; then
  PROTOCOLS="https,http"
fi

PROTOCOLS=$(echo "${PROTOCOLS}" | tr "," "\n")

for PROTOCOL in ${PROTOCOLS}; do
  if [ "${PROTOCOL}" == "http" ]; then
    export FACTER_HTTP="1"
  fi

  if [ "${PROTOCOL}" == "https" ]; then
    export FACTER_HTTPS="1"
  fi
done

if [ -z "${OPENVPN}" ]; then
  OPENVPN="Off"
fi

if [ "${OPENVPN}" == "True" ]; then
  OPENVPN="On"
fi

export FACTER_OPENVPN="${OPENVPN}"

if [ -z "${OPENVPN_DEVICE}" ]; then
  OPENVPN_DEVICE="TAP"
fi

export FACTER_OPENVPN_DEVICE="${OPENVPN_DEVICE}"

export FACTER_OPENVPN_HOST="${OPENVPN_HOST}"

if [ -z "${OPENVPN_PORT}" ]; then
  OPENVPN_PORT="1194"
fi

export FACTER_OPENVPN_PORT="${OPENVPN_PORT}"

if [ -z "${OPENVPN_PROTO}" ]; then
  OPENVPN_PROTO="udp"
fi

export FACTER_OPENVPN_PROTO="${OPENVPN_PROTO}"

export FACTER_OPENVPN_USERNAME="${OPENVPN_USERNAME}"
export FACTER_OPENVPN_PASSWORD="${OPENVPN_PASSWORD}"

export FACTER_OPENVPN_CA_CERTIFICATE="${OPENVPN_CA_CERTIFICATE}"


text: search_result['4819']=["topic_0000000000000BBD_events--.html","DapperConstructor Events",""];


text:
function olfactometerID = getID(debug, olfactometerH)

end


text:
<?php

namespace Symfony\Component\HttpFoundation\Session\Storage;

use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Proxy\AbstractProxy;
use Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy;

/**
 * This provides a base class for session attribute storage.
 *
 * @author Drak <drak@zikula.org>
 */
class NativeSessionStorage implements SessionStorageInterface
{
    /**
     * @var SessionBagInterface[]
     */
    protected $bags = array();

    /**
     * @var bool
     */
    protected $started = false;

    /**
     * @var bool
     */
    protected $closed = false;

    /**
     * @var AbstractProxy|\SessionHandlerInterface
     */
    protected $saveHandler;

    /**
     * @var MetadataBag
     */
    protected $metadataBag;

    /**
     * Depending on how you want the storage driver to behave you probably
     * want to override this constructor entirely.
     *
     * List of options for $options array with their defaults.
     *
     * @see http://php.net/session.configuration for options
     * but we omit 'session.' from the beginning of the keys for convenience.
     *
     * ("auto_start", is not supported as it tells PHP to start a session before
     * PHP starts to execute user-land code. Setting during runtime has no effect).
     *
     * cache_limiter, "" (use "0" to prevent headers from being sent entirely).
     * cache_expire, "0"
     * cookie_domain, ""
     * cookie_httponly, ""
     * cookie_lifetime, "0"
     * cookie_path, "/"
     * cookie_secure, ""
     * entropy_file, ""
     * entropy_length, "0"
     * gc_divisor, "100"
     * gc_maxlifetime, "1440"
     * gc_probability, "1"
     * hash_bits_per_character, "4"
     * hash_function, "0"
     * lazy_write, "1"
     * name, "PHPSESSID"
     * referer_check, ""
     * serialize_handler, "php"
     * use_strict_mode, "0"
     * use_cookies, "1"
     * use_only_cookies, "1"
     * use_trans_sid, "0"
     * upload_progress.enabled, "1"
     * upload_progress.cleanup, "1"
     * upload_progress.prefix, "upload_progress_"
     * upload_progress.name, "PHP_SESSION_UPLOAD_PROGRESS"
     * upload_progress.freq, "1%"
     * upload_progress.min-freq, "1"
     * url_rewriter.tags, "a=href,area=href,frame=src,form=,fieldset="
     * sid_length, "32"
     * sid_bits_per_character, "5"
     * trans_sid_hosts, $_SERVER['HTTP_HOST']
     * trans_sid_tags, "a=href,area=href,frame=src,form="
     *
     * @param array                         $options Session configuration options
     * @param \SessionHandlerInterface|null $handler
     * @param MetadataBag                   $metaBag MetadataBag
     */
    public function __construct(array $options = array(), $handler = null, MetadataBag $metaBag = null)
    {
        $options += array(
            'cache_limiter' => '',
            'cache_expire' => 0,
            'use_cookies' => 1,
            'lazy_write' => 1,
        );

        session_register_shutdown();

        $this->setMetadataBag($metaBag);
        $this->setOptions($options);
        $this->setSaveHandler($handler);
    }

    /**
     * Gets the save handler instance.
     *
     * @return AbstractProxy|\SessionHandlerInterface
     */
    public function getSaveHandler()
    {
        return $this->saveHandler;
    }

    /**
     * {@inheritdoc}
     */
    public function start()
    {
        if ($this->started) {
            return true;
        }

        if (\PHP_SESSION_ACTIVE === session_status()) {
            throw new \RuntimeException('Failed to start the session: already started by PHP.');
        }

        if (filter_var(ini_get('session.use_cookies'), FILTER_VALIDATE_BOOLEAN) && headers_sent($file, $line)) {
            throw new \RuntimeException(sprintf('Failed to start the session because headers have already been sent by "%s" at line %d.', $file, $line));
        }

        // ok to try and start the session
        if (!session_start()) {
            throw new \RuntimeException('Failed to start the session');
        }

        $this->loadSession();

        return true;
    }

    /**
     * {@inheritdoc}
     */
    public function getId()
    {
        return $this->saveHandler->getId();
    }

    /**
     * {@inheritdoc}
     */
    public function setId($id)
    {
        $this->saveHandler->setId($id);
    }

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return $this->saveHandler->getName();
    }

    /**
     * {@inheritdoc}
     */
    public function setName($name)
    {
        $this->saveHandler->setName($name);
    }

    /**
     * {@inheritdoc}
     */
    public function regenerate($destroy = false, $lifetime = null)
    {
        // Cannot regenerate the session ID for non-active sessions.
        if (\PHP_SESSION_ACTIVE !== session_status()) {
            return false;
        }

        if (headers_sent()) {
            return false;
        }

        if (null !== $lifetime) {
            ini_set('session.cookie_lifetime', $lifetime);
        }

        if ($destroy) {
            $this->metadataBag->stampNew();
        }

        $isRegenerated = session_regenerate_id($destroy);

        // The reference to $_SESSION in session bags is lost in PHP7 and we need to re-create it.
        // @see https://bugs.php.net/bug.php?id=70013
        $this->loadSession();

        return $isRegenerated;
    }

    /**
     * {@inheritdoc}
     */
    public function save()
    {
        $session = $_SESSION;

        foreach ($this->bags as $bag) {
            if (empty($_SESSION[$key = $bag->getStorageKey()])) {
                unset($_SESSION[$key]);
            }
        }
        if (array($key = $this->metadataBag->getStorageKey()) === array_keys($_SESSION)) {
            unset($_SESSION[$key]);
        }

        // Register error handler to add information about the current save handler
        $previousHandler = set_error_handler(function ($type, $msg, $file, $line) use (&$previousHandler) {
            if (E_WARNING === $type && 0 === strpos($msg, 'session_write_close():')) {
                $handler = $this->saveHandler instanceof SessionHandlerProxy ? $this->saveHandler->getHandler() : $this->saveHandler;
                $msg = sprintf('session_write_close(): Failed to write session data with "%s" handler', \get_class($handler));
            }

            return $previousHandler ? $previousHandler($type, $msg, $file, $line) : false;
        });

        try {
            session_write_close();
        } finally {
            restore_error_handler();
            $_SESSION = $session;
        }

        $this->closed = true;
        $this->started = false;
    }

    /**
     * {@inheritdoc}
     */
    public function clear()
    {
        // clear out the bags
        foreach ($this->bags as $bag) {
            $bag->clear();
        }

        // clear out the session
        $_SESSION = array();

        // reconnect the bags to the session
        $this->loadSession();
    }

    /**
     * {@inheritdoc}
     */
    public function registerBag(SessionBagInterface $bag)
    {
        if ($this->started) {
            throw new \LogicException('Cannot register a bag when the session is already started.');
        }

        $this->bags[$bag->getName()] = $bag;
    }

    /**
     * {@inheritdoc}
     */
    public function getBag($name)
    {
        if (!isset($this->bags[$name])) {
            throw new \InvalidArgumentException(sprintf('The SessionBagInterface %s is not registered.', $name));
        }

        if (!$this->started && $this->saveHandler->isActive()) {
            $this->loadSession();
        } elseif (!$this->started) {
            $this->start();
        }

        return $this->bags[$name];
    }

    public function setMetadataBag(MetadataBag $metaBag = null)
    {
        if (null === $metaBag) {
            $metaBag = new MetadataBag();
        }

        $this->metadataBag = $metaBag;
    }

    /**
     * Gets the MetadataBag.
     *
     * @return MetadataBag
     */
    public function getMetadataBag()
    {
        return $this->metadataBag;
    }

    /**
     * {@inheritdoc}
     */
    public function isStarted()
    {
        return $this->started;
    }

    /**
     * Sets session.* ini variables.
     *
     * For convenience we omit 'session.' from the beginning of the keys.
     * Explicitly ignores other ini keys.
     *
     * @param array $options Session ini directives array(key => value)
     *
     * @see http://php.net/session.configuration
     */
    public function setOptions(array $options)
    {
        if (headers_sent() || \PHP_SESSION_ACTIVE === session_status()) {
            return;
        }

        $validOptions = array_flip(array(
            'cache_expire', 'cache_limiter', 'cookie_domain', 'cookie_httponly',
            'cookie_lifetime', 'cookie_path', 'cookie_secure',
            'entropy_file', 'entropy_length', 'gc_divisor',
            'gc_maxlifetime', 'gc_probability', 'hash_bits_per_character',
            'hash_function', 'lazy_write', 'name', 'referer_check',
            'serialize_handler', 'use_strict_mode', 'use_cookies',
            'use_only_cookies', 'use_trans_sid', 'upload_progress.enabled',
            'upload_progress.cleanup', 'upload_progress.prefix', 'upload_progress.name',
            'upload_progress.freq', 'upload_progress.min_freq', 'url_rewriter.tags',
            'sid_length', 'sid_bits_per_character', 'trans_sid_hosts', 'trans_sid_tags',
        ));

        foreach ($options as $key => $value) {
            if (isset($validOptions[$key])) {
                ini_set('url_rewriter.tags' !== $key ? 'session.'.$key : $key, $value);
            }
        }
    }

    /**
     * Registers session save handler as a PHP session handler.
     *
     * To use internal PHP session save handlers, override this method using ini_set with
     * session.save_handler and session.save_path e.g.
     *
     *     ini_set('session.save_handler', 'files');
     *     ini_set('session.save_path', '/tmp');
     *
     * or pass in a \SessionHandler instance which configures session.save_handler in the
     * constructor, for a template see NativeFileSessionHandler or use handlers in
     * composer package drak/native-session
     *
     * @see http://php.net/session-set-save-handler
     * @see http://php.net/sessionhandlerinterface
     * @see http://php.net/sessionhandler
     * @see http://github.com/drak/NativeSession
     *
     * @param \SessionHandlerInterface|null $saveHandler
     *
     * @throws \InvalidArgumentException
     */
    public function setSaveHandler($saveHandler = null)
    {
        if (!$saveHandler instanceof AbstractProxy &&
            !$saveHandler instanceof \SessionHandlerInterface &&
            null !== $saveHandler) {
            throw new \InvalidArgumentException('Must be instance of AbstractProxy; implement \SessionHandlerInterface; or be null.');
        }

        // Wrap $saveHandler in proxy and prevent double wrapping of proxy
        if (!$saveHandler instanceof AbstractProxy && $saveHandler instanceof \SessionHandlerInterface) {
            $saveHandler = new SessionHandlerProxy($saveHandler);
        } elseif (!$saveHandler instanceof AbstractProxy) {
            $saveHandler = new SessionHandlerProxy(new StrictSessionHandler(new \SessionHandler()));
        }
        $this->saveHandler = $saveHandler;

        if (headers_sent() || \PHP_SESSION_ACTIVE === session_status()) {
            return;
        }

        if ($this->saveHandler instanceof SessionHandlerProxy) {
            session_set_save_handler($this->saveHandler, false);
        }
    }

    /**
     * Load the session with attributes.
     *
     * After starting the session, PHP retrieves the session from whatever handlers
     * are set to (either PHP's internal, or a custom save handler set with session_set_save_handler()).
     * PHP takes the return value from the read() handler, unserializes it
     * and populates $_SESSION with the result automatically.
     */
    protected function loadSession(array &$session = null)
    {
        if (null === $session) {
            $session = &$_SESSION;
        }

        $bags = array_merge($this->bags, array($this->metadataBag));

        foreach ($bags as $bag) {
            $key = $bag->getStorageKey();
            $session[$key] = isset($session[$key]) ? $session[$key] : array();
            $bag->initialize($session[$key]);
        }

        $this->started = true;
        $this->closed = false;
    }
}


text:
A repository for our android application.
Feel free to modify this repository or create a new one!


text:
""" Used for applying an algorithm to a single percept """

import abc
import time
import rigor.logger
from rigor.perceptops import ImageOps

class Algorithm(object):
	"""
	Abstract base class for running an algorithm against a test percept
	"""
	__metaclass__ = abc.ABCMeta

	def __init__(self):
		self.logger = rigor.logger.get_logger('.'.join((__name__, self.__class__.__name__)))
		self.parameters = None

	def set_parameters(self, parameters):
		""" Makes parameters, possibly from command-line arguments, available to the algorithm """
		self.parameters = parameters

	def prefetch(self, percept):
		"""
		This method can be overridden to alter or use percept metadata before the
		percept has been fetched from the data store.

		:param dict percept: percept metadata
		:return: percept metadata
		:rtype: dict

		.. NOTE::

			Be sure to return the metadata when you're done.
		"""
		return percept

	def postfetch(self, percept, percept_data):
		"""
		This method can be overridden to alter or use the percept's data or metadata
		once it has been fetched from the data store, but before the algorithm
		begins running.

		:param dict percept: percept metadata
		:param file percept_data: percept data
		:return: percept data
		:rtype: file

		.. NOTE::

			Be sure to return the data when you're done.
		"""
		return percept_data

	@abc.abstractmethod
	def run(self, percept_data):
		"""
		All :py:class:`Algorithm`-based objects must implement this method.  This is where the actual algorithm runs on the supplied data.

		:param file percept_data: percept data
		:return: results of the algorithm
		"""
		pass

	def parse_annotations(self, annotations):
		"""
		This method can be used to change the format of annotations returned from the database to something easier to analyze in later steps.

		:param dict annotations: annotations in their stored format
		:return: new annotations object

		.. NOTE::

			Be sure to return the new annotations object when you're done.
		"""
		return annotations

	def apply(self, percept, percept_data):
		"""
		Sets up all of the operations performed for each percept, starts a timer,
		runs the algorithm, and formats the results, annotations, etc. into a tuple
		for later evaluation.

		:param dict percept: percept metadata
		:param file percept_data: percept data
		"""
		percept_data = self.postfetch(percept, percept_data)
		start_time = time.time()
		result = self.run(percept_data)
		elapsed = time.time() - start_time
		annotations = self.parse_annotations(percept.annotations)
		return (percept.serialize(force_load=False), result, [annotation.serialize(force_load=False) for annotation in annotations], elapsed)

class ImageAlgorithm(Algorithm):
	"""
	Abstract base class for running an algorithm against a test percept, specialized for images
	"""
	def postfetch(self, percept, percept_data):
		"""
		This method can be overridden to alter or use the percept's data or metadata once it has been fetched from the data store, but before the algorithm begins running. If you override this method, be sure to call it before your implementation, as this is where OpenCV parses the image.

		:param dict percept: percept metadata
		:param file percept_data: percept data
		:return: percept data
		:rtype: :py:class:`numpy.ndarray`

		.. NOTE::

			Be sure to return the data when you're done.
		"""
		return ImageOps.decode(percept_data)


text:
namespace PolymeliaDeploy.Agent
{
    public enum AgentStatus
    {
        NotConfirmed,
        InProgress,
        Ready,
        NotActive
    }
}


text:
import React from 'react';
import transitions from '../styles/transitions';
import Paper from '../Paper';
import EnhancedSwitch from '../internal/EnhancedSwitch';

function getStyles(props, context, state) {
  const {disabled} = props;

  const {
    baseTheme,
    toggle,
  } = context.muiTheme;

  const toggleSize = 20;
  const toggleTrackWidth = 36;
  const styles = {
    icon: {
      width: 36,
      padding: '4px 0px 6px 2px',
    },
    ripple: {
      top: -10,
      left: -10,
      color: state.switched ? toggle.thumbOnColor : baseTheme.palette.textColor,
    },
    toggleElement: {
      width: toggleTrackWidth,
    },
    track: {
      transition: transitions.easeOut(),
      width: '100%',
      height: 14,
      borderRadius: 30,
      backgroundColor: toggle.trackOffColor,
    },
    thumb: {
      transition: transitions.easeOut(),
      position: 'absolute',
      top: 1,
      left: 0,
      width: toggleSize,
      height: toggleSize,
      lineHeight: '24px',
      borderRadius: '50%',
      backgroundColor: toggle.thumbOffColor,
    },
    trackWhenSwitched: {
      backgroundColor: toggle.trackOnColor,
    },
    thumbWhenSwitched: {
      backgroundColor: toggle.thumbOnColor,
      left: '100%',
    },
    trackWhenDisabled: {
      backgroundColor: toggle.trackDisabledColor,
    },
    thumbWhenDisabled: {
      backgroundColor: toggle.thumbDisabledColor,
    },
    label: {
      color: disabled ? toggle.labelDisabledColor : toggle.labelColor,
      width: `calc(100% - ${(toggleTrackWidth + 10)}px)`,
    },
  };

  return styles;
}

class Toggle extends React.Component {
  static propTypes = {
    /**
     * Determines whether the Toggle is initially turned on.
     * **Warning:** This cannot be used in conjunction with `toggled`.
     * Decide between using a controlled or uncontrolled input element and remove one of these props.
     * More info: https://fb.me/react-controlled-components
     */
    defaultToggled: React.PropTypes.bool,

    /**
     * Will disable the toggle if true.
     */
    disabled: React.PropTypes.bool,

    /**
     * Overrides the inline-styles of the Toggle element.
     */
    elementStyle: React.PropTypes.object,

    /**
     * Overrides the inline-styles of the Icon element.
     */
    iconStyle: React.PropTypes.object,

    /**
     * Overrides the inline-styles of the input element.
     */
    inputStyle: React.PropTypes.object,

    /**
     * Label for toggle.
     */
    label: React.PropTypes.string,

    /**
     * Where the label will be placed next to the toggle.
     */
    labelPosition: React.PropTypes.oneOf(['left', 'right']),

    /**
     * Overrides the inline-styles of the Toggle element label.
     */
    labelStyle: React.PropTypes.object,

    /**
     * Callback function that is fired when the toggle switch is toggled.
     */
    onToggle: React.PropTypes.func,

    /**
     * Override style of ripple.
     */
    rippleStyle: React.PropTypes.object,

    /**
     * Override the inline-styles of the root element.
     */
    style: React.PropTypes.object,

    /**
     * Override style for thumb.
     */
    thumbStyle: React.PropTypes.object,

    /**
     * Toggled if set to true.
     */
    toggled: React.PropTypes.bool,

    /**
     * Override style for track.
     */
    trackStyle: React.PropTypes.object,

    /**
     * ValueLink prop for when using controlled toggle.
     */
    valueLink: React.PropTypes.object,
  };

  static defaultProps = {
    defaultToggled: false,
    disabled: false,
    labelPosition: 'left',
  };

  static contextTypes = {
    muiTheme: React.PropTypes.object.isRequired,
  };

  state = {switched: false};

  componentWillMount() {
    const {toggled, defaultToggled, valueLink} = this.props;

    if (toggled || defaultToggled || (valueLink && valueLink.value)) {
      this.setState({switched: true});
    }
  }

  isToggled() {
    return this.refs.enhancedSwitch.isSwitched();
  }

  setToggled(newToggledValue) {
    this.refs.enhancedSwitch.setSwitched(newToggledValue);
  }

  handleToggle = (event, isInputChecked) => {
    if (this.props.onToggle) this.props.onToggle(event, isInputChecked);
  };

  handleStateChange = (newSwitched) => {
    this.setState({switched: newSwitched});
  };

  render() {
    const {
      defaultToggled,
      onToggle, // eslint-disable-line no-unused-vars
      toggled,
      ...other,
    } = this.props;

    const {prepareStyles} = this.context.muiTheme;
    const styles = getStyles(this.props, this.context, this.state);

    const trackStyles = Object.assign({},
      styles.track,
      this.props.trackStyle,
      this.state.switched && styles.trackWhenSwitched,
      this.props.disabled && styles.trackWhenDisabled
    );

    const thumbStyles = Object.assign({},
      styles.thumb,
      this.props.thumbStyle,
      this.state.switched && styles.thumbWhenSwitched,
      this.props.disabled && styles.thumbWhenDisabled
    );

    if (this.state.switched) {
      thumbStyles.marginLeft = 0 - thumbStyles.width;
    }

    const toggleElementStyles = Object.assign({},
      styles.toggleElement,
      this.props.elementStyle
    );

    const toggleElement = (

        <Paper style={thumbStyles} circle={true} zDepth={1} />

    );

    const rippleStyle = Object.assign({},
      styles.ripple,
      this.props.rippleStyle
    );

    const iconStyle = Object.assign({},
      styles.icon,
      this.props.iconStyle
    );

    const labelStyle = Object.assign({},
      styles.label,
      this.props.labelStyle
    );

    const enhancedSwitchProps = {
      ref: 'enhancedSwitch',
      inputType: 'checkbox',
      switchElement: toggleElement,
      rippleStyle: rippleStyle,
      rippleColor: rippleStyle.color,
      iconStyle: iconStyle,
      trackStyle: trackStyles,
      thumbStyle: thumbStyles,
      labelStyle: labelStyle,
      switched: this.state.switched,
      onSwitch: this.handleToggle,
      onParentShouldUpdate: this.handleStateChange,
      labelPosition: this.props.labelPosition,
    };

    if (this.props.hasOwnProperty('toggled')) {
      enhancedSwitchProps.checked = toggled;
    } else if (this.props.hasOwnProperty('defaultToggled')) {
      enhancedSwitchProps.defaultChecked = defaultToggled;
    }

    return (
      <EnhancedSwitch
        {...other}
        {...enhancedSwitchProps}
      />
    );
  }
}

export default Toggle;


text:
package org.apache.spark.scheduler.cluster.k8s

import java.io.File
import java.util.concurrent.TimeUnit

import com.google.common.cache.CacheBuilder
import io.fabric8.kubernetes.client.Config

import org.apache.spark.{SparkContext, SparkException}
import org.apache.spark.deploy.k8s.{KubernetesUtils, SparkKubernetesClientFactory}
import org.apache.spark.deploy.k8s.Config._
import org.apache.spark.deploy.k8s.Constants._
import org.apache.spark.internal.Logging
import org.apache.spark.scheduler.{ExternalClusterManager, SchedulerBackend, TaskScheduler, TaskSchedulerImpl}
import org.apache.spark.util.{SystemClock, ThreadUtils}

private[spark] class KubernetesClusterManager extends ExternalClusterManager with Logging {

  override def canCreate(masterURL: String): Boolean = masterURL.startsWith("k8s")

  override def createTaskScheduler(sc: SparkContext, masterURL: String): TaskScheduler = {
    if (masterURL.startsWith("k8s") &&
      sc.deployMode == "client" &&
      !sc.conf.get(KUBERNETES_DRIVER_SUBMIT_CHECK).getOrElse(false)) {
      throw new SparkException("Client mode is currently not supported for Kubernetes.")
    }

    new TaskSchedulerImpl(sc)
  }

  override def createSchedulerBackend(
      sc: SparkContext,
      masterURL: String,
      scheduler: TaskScheduler): SchedulerBackend = {
    val kubernetesClient = SparkKubernetesClientFactory.createKubernetesClient(
      KUBERNETES_MASTER_INTERNAL_URL,
      Some(sc.conf.get(KUBERNETES_NAMESPACE)),
      KUBERNETES_AUTH_DRIVER_MOUNTED_CONF_PREFIX,
      sc.conf,
      Some(new File(Config.KUBERNETES_SERVICE_ACCOUNT_TOKEN_PATH)),
      Some(new File(Config.KUBERNETES_SERVICE_ACCOUNT_CA_CRT_PATH)))

    val requestExecutorsService = ThreadUtils.newDaemonCachedThreadPool(
      "kubernetes-executor-requests")

    val subscribersExecutor = ThreadUtils
      .newDaemonThreadPoolScheduledExecutor(
        "kubernetes-executor-snapshots-subscribers", 2)
    val snapshotsStore = new ExecutorPodsSnapshotsStoreImpl(subscribersExecutor)
    val removedExecutorsCache = CacheBuilder.newBuilder()
      .expireAfterWrite(3, TimeUnit.MINUTES)
      .build[java.lang.Long, java.lang.Long]()
    val executorPodsLifecycleEventHandler = new ExecutorPodsLifecycleManager(
      sc.conf,
      new KubernetesExecutorBuilder(),
      kubernetesClient,
      snapshotsStore,
      removedExecutorsCache)

    val executorPodsAllocator = new ExecutorPodsAllocator(
      sc.conf, new KubernetesExecutorBuilder(), kubernetesClient, snapshotsStore, new SystemClock())

    val podsWatchEventSource = new ExecutorPodsWatchSnapshotSource(
      snapshotsStore,
      kubernetesClient)

    val eventsPollingExecutor = ThreadUtils.newDaemonSingleThreadScheduledExecutor(
      "kubernetes-executor-pod-polling-sync")
    val podsPollingEventSource = new ExecutorPodsPollingSnapshotSource(
      sc.conf, kubernetesClient, snapshotsStore, eventsPollingExecutor)

    new KubernetesClusterSchedulerBackend(
      scheduler.asInstanceOf[TaskSchedulerImpl],
      sc.env.rpcEnv,
      kubernetesClient,
      requestExecutorsService,
      snapshotsStore,
      executorPodsAllocator,
      executorPodsLifecycleEventHandler,
      podsWatchEventSource,
      podsPollingEventSource)
  }

  override def initialize(scheduler: TaskScheduler, backend: SchedulerBackend): Unit = {
    scheduler.asInstanceOf[TaskSchedulerImpl].initialize(backend)
  }
}


text:
@interface STPCheckoutInternalUIWebViewController ()
@property (nonatomic) BOOL statusBarHidden;
@property (weak, nonatomic, nullable) UIView *webView;
@property (nonatomic, nullable) STPIOSCheckoutWebViewAdapter *adapter;
@property (nonatomic, nonnull) NSURL *url;
@property (weak, nonatomic, nullable) UIActivityIndicatorView *activityIndicator;
@property (nonatomic) BOOL backendChargeSuccessful;
@property (nonatomic, nullable) NSError *backendChargeError;
@end

@implementation STPCheckoutInternalUIWebViewController

- (instancetype)initWithCheckoutViewController:(STPCheckoutViewController *)checkoutViewController {
    self = [super initWithNibName:nil bundle:nil];
    if (self) {
        if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
            self.edgesForExtendedLayout = UIRectEdgeNone;
        }
        _options = checkoutViewController.options;
        _url = [NSURL URLWithString:checkoutURLString];
        UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(cancel:)];
        self.navigationItem.leftBarButtonItem = cancelItem;
        _checkoutController = checkoutViewController;
        static dispatch_once_t onceToken;
        dispatch_once(&onceToken, ^{
            NSString *userAgent = [[[UIWebView alloc] init] stringByEvaluatingJavaScriptFromString:@"window.navigator.userAgent"];
            if ([userAgent rangeOfString:checkoutUserAgent].location == NSNotFound) {
                userAgent = [NSString stringWithFormat:@"%@ %@/%@", userAgent, checkoutUserAgent, STPSDKVersion];
                NSDictionary *defaults = @{ @"UserAgent": userAgent };
                [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
            }
        });
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.adapter = [[STPIOSCheckoutWebViewAdapter alloc] init];
    self.adapter.delegate = self;
    UIWebView *webView = self.adapter.webView;
    webView.scrollView.delegate = self;
    [self.view addSubview:webView];

    if (self.options.logoColor && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
        self.view.backgroundColor = self.options.logoColor;
        webView.backgroundColor = self.options.logoColor;
        webView.opaque = NO;
    }

    webView.translatesAutoresizingMaskIntoConstraints = NO;
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[webView]-0-|"
                                                                      options:NSLayoutFormatDirectionLeadingToTrailing
                                                                      metrics:nil
                                                                        views:NSDictionaryOfVariableBindings(webView)]];
    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[webView]-0-|"
                                                                      options:NSLayoutFormatDirectionLeadingToTrailing
                                                                      metrics:nil
                                                                        views:NSDictionaryOfVariableBindings(webView)]];

    [self.adapter loadRequest:[NSURLRequest requestWithURL:self.url]];
    self.webView = webView;

    UIActivityIndicatorViewStyle style = UIActivityIndicatorViewStyleGray;
    if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad && self.options.logoColor &&
        ![STPColorUtils colorIsLight:self.options.logoColor]) {
        style = UIActivityIndicatorViewStyleWhiteLarge;
    }
    UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:style];
    activityIndicator.hidesWhenStopped = YES;
    activityIndicator.translatesAutoresizingMaskIntoConstraints = NO;
    [self.view addSubview:activityIndicator];
    self.activityIndicator = activityIndicator;
    [self.view addConstraint:[NSLayoutConstraint constraintWithItem:activityIndicator
                                                          attribute:NSLayoutAttributeCenterX
                                                          relatedBy:NSLayoutRelationEqual
                                                             toItem:self.view
                                                          attribute:NSLayoutAttributeCenterX
                                                         multiplier:1
                                                           constant:0.0]];
    [self.view addConstraint:[NSLayoutConstraint constraintWithItem:activityIndicator
                                                          attribute:NSLayoutAttributeCenterY
                                                          relatedBy:NSLayoutRelationEqual
                                                             toItem:self.view
                                                          attribute:NSLayoutAttributeCenterY
                                                         multiplier:1
                                                           constant:0]];
}

- (void)cancel:(__unused id)sender {
    [self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusUserCancelled error:nil];
    [self cleanup];
}

- (void)cleanup {
    [self.adapter cleanup];
}

- (UIStatusBarStyle)preferredStatusBarStyle {
    if (self.options.logoColor && self.checkoutController.navigationBarHidden) {
        FAUXPAS_IGNORED_IN_METHOD(APIAvailability);
        return [STPColorUtils colorIsLight:self.options.logoColor] ? UIStatusBarStyleDefault : UIStatusBarStyleLightContent;
    }
    return UIStatusBarStyleDefault;
}

- (void)setLogoColor:(STP_COLOR_CLASS *)color {
    self.options.logoColor = color;
    if ([self.checkoutController respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
        FAUXPAS_IGNORED_IN_METHOD(APIAvailability);
        [[UIApplication sharedApplication] setStatusBarStyle:[self preferredStatusBarStyle] animated:YES];
        [self.checkoutController setNeedsStatusBarAppearanceUpdate];
    }
}

#pragma mark STPCheckoutAdapterDelegate

- (void)checkoutAdapterDidStartLoad:(id<STPCheckoutWebViewAdapter>)adapter {
    NSString *optionsJavaScript = [NSString stringWithFormat:@"window.%@ = %@;", checkoutOptionsGlobal, [self.options stringifiedJSONRepresentation]];
    [adapter evaluateJavaScript:optionsJavaScript];
    [self.activityIndicator startAnimating];
}

- (void)checkoutAdapter:(id<STPCheckoutWebViewAdapter>)adapter didTriggerEvent:(NSString *)event withPayload:(NSDictionary *)payload {
    if ([event isEqualToString:STPCheckoutEventOpen]) {
        if (payload != nil && payload[@"logoColor"]) {
            [self setLogoColor:[STPColorUtils colorForHexCode:payload[@"logoColor"]]];
        }
    } else if ([event isEqualToString:STPCheckoutEventTokenize]) {
        STPToken *token = nil;
        if (payload != nil && payload[@"token"] != nil) {
            token = [[STPToken alloc] initWithAttributeDictionary:payload[@"token"]];
        }
        [self.delegate checkoutController:self.checkoutController
                           didCreateToken:token
                               completion:^(STPBackendChargeResult status, NSError *error) {
                                   self.backendChargeSuccessful = (status == STPBackendChargeResultSuccess);
                                   self.backendChargeError = error;
                                   if (status == STPBackendChargeResultSuccess) {
                                       [adapter evaluateJavaScript:payload[@"success"]];
                                   } else {
                                       NSString *failure = payload[@"failure"];
                                       NSString *encodedError = @"";
                                       if (error.localizedDescription) {
                                           encodedError = [[NSString alloc]
                                               initWithData:[NSJSONSerialization dataWithJSONObject:@[error.localizedDescription] options:0 error:nil]
                                                   encoding:NSUTF8StringEncoding];
                                           encodedError = [encodedError substringWithRange:NSMakeRange(2, encodedError.length - 4)];
                                       }
                                       NSString *script = [NSString stringWithFormat:failure, encodedError];
                                       [adapter evaluateJavaScript:script];
                                   }
                               }];
    } else if ([event isEqualToString:STPCheckoutEventFinish]) {
        if (self.backendChargeSuccessful) {
            [self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusSuccess error:nil];
        } else {
            [self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusError error:self.backendChargeError];
        }
        [self cleanup];
    } else if ([event isEqualToString:STPCheckoutEventCancel]) {
        [self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusUserCancelled error:nil];
        [self cleanup];
    } else if ([event isEqualToString:STPCheckoutEventError]) {
        NSError *error = [[NSError alloc] initWithDomain:StripeDomain code:STPCheckoutError userInfo:payload];
        [self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusError error:error];
        [self cleanup];
    }
}

- (void)checkoutAdapterDidFinishLoad:(__unused id<STPCheckoutWebViewAdapter>)adapter {
    [UIView animateWithDuration:0.1
        animations:^{
            self.activityIndicator.alpha = 0;
            [self.navigationController setNavigationBarHidden:YES animated:YES];
        }
        completion:^(__unused BOOL finished) { [self.activityIndicator stopAnimating]; }];
}

- (void)checkoutAdapter:(__unused id<STPCheckoutWebViewAdapter>)adapter didError:(NSError *)error {
    [self.activityIndicator stopAnimating];
    [self.delegate checkoutController:self.checkoutController didFinishWithStatus:STPPaymentStatusError error:error];
    [self cleanup];
}

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
    NSDictionary *options = [self checkoutDisplayOptionsForScrollViewOffset:scrollView.contentOffset];
    BOOL statusBarHidden = [options[@"statusBarHidden"] boolValue];
    NSString *backgroundColorHex = options[@"backgroundColor"];
    UIColor *color = backgroundColorHex ? [STPColorUtils colorForHexCode:backgroundColorHex] : [UIColor whiteColor];
    if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
        self.statusBarHidden = statusBarHidden;
        [UIView animateWithDuration:0.1 animations:^{ [self setNeedsStatusBarAppearanceUpdate]; }];
        [[UIApplication sharedApplication] setStatusBarHidden:[self prefersStatusBarHidden] withAnimation:UIStatusBarAnimationSlide];
    }
    self.webView.backgroundColor = color;
}

- (BOOL)prefersStatusBarHidden {
    return self.statusBarHidden;
}

- (NSDictionary *)checkoutDisplayOptionsForScrollViewOffset:(CGPoint)offset {
    NSString *javascript = [NSString stringWithFormat:@"try { window.StripeCheckoutDidScroll(%@, %@) } catch(e){ null };", @(offset.x), @(offset.y)];
    NSString *output = [self.adapter evaluateJavaScript:javascript];
    return [NSJSONSerialization JSONObjectWithData:[output dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil] ?: @{};
}

@end

#pragma clang diagnostic pop

#endif


text:
'use strict';

var waitingState = function ()
{
var self = this;
var waitingText;
var baseWText = 'Waiting for players';
var pText;
var playersWaitingText = 'Number of currently connected players: ';
var countDownText;
var cdText = 'Game starting in: ';
var playerCount = Object.keys(game.playerList).length;
var countDown;
var lastDroppedCD = 0;
var qr;
var qrText;

var demoVideo;
var demoVideoSprite;

self.preload = function ()
	{
	qr = game.add.sprite(game.camera.x + game.camera.width, game.camera.y + game.camera.height, 'qr_niko_wlan_niko'); //or: 'qr_janika'

	// Load and start video

	demoVideo = game.add.video('demo');
	demoVideo.mute = true;
	demoVideoSprite = demoVideo.addToWorld();
	demoVideoSprite.scale.x = ( 1920 / demoVideoSprite.width)  * scalingFactors.x;
	demoVideoSprite.scale.y = ( 1080 / demoVideoSprite.height) * scalingFactors.y;

	demoVideo.play(true);

	qr.scale.x = 1.5*scalingFactors.x;
	qr.scale.y = 1.5*scalingFactors.y;
	qr.anchor.setTo(1,1);

	qrText = game.add.text(0, 0, 'Join JuNaPe WLAN and scan here ---> ', {font: '25px Courier', fill: '#ffffff'});
	qrText.anchor.setTo(1,1);
	qrText.position.setTo(qr.position.x - qr.width, qr.position.y);
	qrText.stroke = '#000000';
	qrText.strokeThickness = 6;

	waitingText = game.add.text(80, 150, baseWText, {font: '30px Courier', fill: '#ffffff'});
	waitingText.stroke = '#000000';
	waitingText.strokeThickness = 6;

	pText = game.add.text(80, 200, playersWaitingText + playerCount, {font: '30px Courier', fill: '#ffffff'});
	pText.stroke = '#000000';
	pText.strokeThickness = 6;

	countDownText = game.add.text(80, 250, '', {font: '30px Courier', fill: '#ffffff'});
	countDownText.stroke = '#000000';
	countDownText.strokeThickness = 6;
	countDown = 10;
	game.waitingRoomIds = [];
	game.time.advancedTiming = true;
	game.stage.disableVisibilityChange = true;

	};

self.update = function ()
	{
	qr.bringToTop();
	qr.position.setTo(game.camera.x + game.camera.width, game.camera.y + game.camera.height);
	playerCount = Object.keys(game.playerList).length;
	if (playerCount < 1)
		{
		if (waitingText.text.length < baseWText.length + 5)
			{
			waitingText.text = waitingText.text + '.';
			} else
			{
			waitingText.text = baseWText;
			}
		pText.text = playersWaitingText + playerCount;
		countDownText.text = '';
		} else
		{
		pText.text = playersWaitingText + playerCount;
		if (countDown < 1)
			{
			demoVideoSprite.destroy();
			game.state.start('play');
			}
		if (lastDroppedCD + 1000 < game.time.now)
			{
			countDown--;
			lastDroppedCD = game.time.now;
			}

		countDownText.text = cdText + countDown;
		}
	};

self.onControllerConnected = function (id)
	{
	game.playerList[id] = {};
	};

self.onControllerDisconnected = function (id)
	{
	delete game.playerList[id];
	};

}


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package erp.mfin.form;

import erp.data.SDataConstants;
import erp.data.SDataConstantsSys;
import erp.data.SDataUtilities;
import erp.lib.SLibConstants;
import erp.lib.SLibTimeUtilities;
import erp.lib.SLibUtilities;
import erp.lib.form.SFormField;
import erp.lib.form.SFormUtilities;
import erp.mfin.data.SDataRecord;
import erp.server.SServerConstants;
import erp.server.SServerRequest;
import erp.server.SServerResponse;
import java.awt.Cursor;
import java.awt.event.KeyEvent;
import sa.lib.srv.SSrvConsts;

/**
 *
 * @author Juan Barajas
 */
public class SDialogUtilFiscalYearClosingDelete extends javax.swing.JDialog {

    private int mnFormResult;
    private boolean mbFirstTime;
    protected int mnPkYearId;
    protected int mnPkPeriodId;
    protected int mnPkBookkeepingCenterId;
    protected java.lang.String msPkRecordTypeId;
    protected int mnPkNumberId;
    private Object pk[];

    private erp.client.SClientInterface miClient;
    private erp.lib.form.SFormField moFieldYear;

    /** Creates new form SDialogUtilFiscalYearClosing */
    public SDialogUtilFiscalYearClosingDelete(erp.client.SClientInterface client) {
        super(client.getFrame(), true);
        miClient = client;
        initComponents();
        initComponentsExtra();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel3 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jlYear = new javax.swing.JLabel();
        jtfYear = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jbOk = new javax.swing.JButton();
        jbCancel = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Eliminación de cierre del ejercicio");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Parámetros de eliminación de cierre del ejercicio:"));
        jPanel3.setLayout(new java.awt.BorderLayout());

        jPanel4.setLayout(new java.awt.GridLayout(7, 1, 0, 1));

        jPanel1.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT, 5, 0));

        jlYear.setText("Ejercicio para el que se eliminará el cierre del ejercicio: *");
        jlYear.setPreferredSize(new java.awt.Dimension(275, 23));
        jPanel1.add(jlYear);

        jtfYear.setHorizontalAlignment(javax.swing.JTextField.TRAILING);
        jtfYear.setText("0000");
        jtfYear.setPreferredSize(new java.awt.Dimension(50, 23));
        jPanel1.add(jtfYear);

        jPanel4.add(jPanel1);

        jLabel1.setFont(new java.awt.Font("Tahoma", 2, 11)); // NOI18N
        jPanel4.add(jLabel1);

        jPanel3.add(jPanel4, java.awt.BorderLayout.NORTH);

        getContentPane().add(jPanel3, java.awt.BorderLayout.CENTER);

        jPanel2.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT));

        jbOk.setText("Aceptar");
        jbOk.setToolTipText("[Ctrl + Enter]");
        jbOk.setPreferredSize(new java.awt.Dimension(75, 23));
        jbOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbOkActionPerformed(evt);
            }
        });
        jPanel2.add(jbOk);

        jbCancel.setText("Cancelar");
        jbCancel.setToolTipText("[Escape]");
        jbCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbCancelActionPerformed(evt);
            }
        });
        jPanel2.add(jbCancel);

        getContentPane().add(jPanel2, java.awt.BorderLayout.PAGE_END);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-368)/2, (screenSize.height-238)/2, 368, 238);
    }// </editor-fold>//GEN-END:initComponents

    private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
        windowActivated();
    }//GEN-LAST:event_formWindowActivated

    private void jbOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbOkActionPerformed
        actionOk();
    }//GEN-LAST:event_jbOkActionPerformed

    private void jbCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbCancelActionPerformed
        actionCancel();
    }//GEN-LAST:event_jbCancelActionPerformed

    private void initComponentsExtra() {
        moFieldYear = new SFormField(miClient, SLibConstants.DATA_TYPE_INTEGER, true, jtfYear, jlYear);
        moFieldYear.setIntegerMin(2000);
        moFieldYear.setIntegerMax(2100);
        moFieldYear.setMinInclusive(true);
        moFieldYear.setMaxInclusive(true);
        moFieldYear.setDecimalFormat(miClient.getSessionXXX().getFormatters().getYearFormat());
        pk = new Object[5];

        SFormUtilities.createActionMap(rootPane, this, "actionOk", "ok", KeyEvent.VK_ENTER, KeyEvent.CTRL_DOWN_MASK);
        SFormUtilities.createActionMap(rootPane, this, "actionCancel", "cancel", KeyEvent.VK_ESCAPE, 0);
    }

    private void windowActivated() {
        if (mbFirstTime) {
            mbFirstTime = false;
            if (miClient.getSessionXXX().getCurrentCompanyBranchId() == 0) {
                miClient.showMsgBoxWarning(SLibConstants.MSG_ERR_GUI_SESSION_BRANCH);
                actionCancel();
            }
            else {
                jtfYear.requestFocus();
            }
        }
    }

    @SuppressWarnings("empty-statement")
    public void actionOk() {
        Cursor cursor = null;
        SDataRecord oSDataRecord = null;

        if (moFieldYear.validateField()) {
            if (!SDataUtilities.isPeriodOpen(miClient, new int[] { moFieldYear.getInteger(), 12 })) {
                miClient.showMsgBoxWarning(SLibConstants.MSG_ERR_GUI_PER_CLOSE + "\nPeríodo cerrado: " + moFieldYear.getInteger() + "-12.");
            }
            else {
                try {
                    cursor = getCursor();
                    setCursor(new Cursor(Cursor.WAIT_CURSOR));

                    mnPkYearId = moFieldYear.getInteger();
                    mnPkPeriodId = 12;
                    mnPkBookkeepingCenterId = miClient.getSessionXXX().getCurrentCompanyBranch().getDbmsDataCompanyBranchBkc().getPkBookkepingCenterId();
                    msPkRecordTypeId = SDataConstantsSys.FINU_TP_REC_FY_END;
                    mnPkNumberId = 1;

                    pk[0] = mnPkYearId;
                    pk[1] = mnPkPeriodId;
                    pk[2] = mnPkBookkeepingCenterId;
                    pk[3] = msPkRecordTypeId;
                    pk[4] = mnPkNumberId;

                    oSDataRecord = (SDataRecord) SDataUtilities.readRegistry(miClient, SDataConstants.FIN_REC, pk , SLibConstants.EXEC_MODE_SILENT);

                    oSDataRecord.setIsDeleted(true);
                    oSDataRecord.setFkUserEditId(miClient.getSession().getUser().getPkUserId());

                    SServerRequest request = new SServerRequest(SServerConstants.REQ_DB_ACTION_SAVE);
                    request.setPacket(oSDataRecord);
                    SServerResponse response = miClient.getSessionXXX().request(request);

                    if (response.getResponseType() != SSrvConsts.RESP_TYPE_OK) {
                        throw new Exception(response.getMessage());
                    }
                    miClient.getGuiModule(SDataConstants.MOD_FIN).refreshCatalogues(SDataConstants.FIN_REC);
                    miClient.showMsgBoxInformation(SLibConstants.MSG_INF_PROC_FINISH);
                    actionCancel();
                }
                catch (Exception e) {
                    SLibUtilities.renderException(this, e);
                }
                finally {
                    setCursor(cursor);
                }
            }
        }
    }

    public void actionCancel() {
        mnFormResult = SLibConstants.FORM_RESULT_CANCEL;
        setVisible(false);
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JButton jbCancel;
    private javax.swing.JButton jbOk;
    private javax.swing.JLabel jlYear;
    private javax.swing.JTextField jtfYear;
    // End of variables declaration//GEN-END:variables

    public void resetForm() {
        int[] date = SLibTimeUtilities.digestDate(miClient.getSessionXXX().getWorkingDate());

        mnPkYearId = 0;
        mnPkPeriodId = 0;
        mnPkBookkeepingCenterId = 0;
        msPkRecordTypeId = "";
        mnPkNumberId = 0;

        mnFormResult = SLibConstants.UNDEFINED;
        mbFirstTime = true;

        moFieldYear.setFieldValue(date[0]);
    }

    public int getFormResult() {
        return mnFormResult;
    }
}


text:
package cc.factorie.variable

import org.junit.Test
import org.scalatest.junit._

class TestDiff extends JUnitSuite with cc.factorie.util.FastLogging {

  @Test
  def testCreateDiff() {
    //this test just shows how variables create diff objects that point to them
    val b = new BooleanVariable(true)
    val diff = new DiffList
    b.set(false)(diff)
    assert(diff(0).variable === b)
  }

  @Test
  def testDiffUndoAndRedo() {
    val i = new IntegerVariable(2)

    val d = new DiffList
    i.set(3)(d) // This method will create a Diff object and append it to the DiffList d.
    assert(3 == i.value)

    d.undo()
    assert(2 == i.value)

    d.redo()
    assert(3 == i.value)
  }
}


text:
import { moduleForComponent, test } from 'ember-qunit'

moduleForComponent('uni-form-checkbox', {
  unit: true,
})

//
// Content
//

test('it should have class="uni-form-checkbox"', function (assert) {
  assert.equal(this.$().hasClass('uni-form-checkbox'), true)
})

test('it renders as a label with a child input (so any click triggers input click)', function (assert) {
  assert.equal(this.$().prop('tagName'), 'LABEL')
  assert.ok(this.$().has('input'))
})

test('it should render attrs.label inside .label', function (assert) {
  this.subject({ label: 'test label text' })
  assert.equal(this.$('.label').html(), 'test label text')
})

test('it should not render .label if attrs.label is empty', function (assert) {
  assert.equal(this.$('.label').length, 0)
})

test('it sets input[name] to attrs.payloadKey (for autocomplete)', function (assert) {
  this.subject({ payloadKey: 'foo.bar' })
  assert.equal(this.$('input').attr('name'), 'foo.bar')
})

test('it should render .message.<tone>', function (assert) {
  this.subject({ message: { body: 'message content', tone: 'snarky' } })
  assert.equal(this.$('.snarky.message').html(), 'message content')
})

//
// Property binding
//

// Moved to integration tests because this fails for unknown reasons
// test('it should have class="checked" when checked', function (assert) {
//   this.subject({ checked: true });
//   assert.equal(this.$().hasClass('checked'), true);
// });

test('it should have class="disabled" when disabled', function (assert) {
  this.subject({ disabled: true })
  assert.equal(this.$().hasClass('disabled'), true)
})

test('its input should be disabled when attrs.disabled is truthy', function (assert) {
  this.subject({ disabled: true })
  assert.equal(this.$('input').is(':disabled'), true)
})

test('it should have class="error" when attrs.tone=error and showStatus=true', function (assert) {
  this.subject({ tone: 'error', showStatus: true })
  assert.equal(this.$().hasClass('error'), true)
})

test('it should have class="required" when required', function (assert) {
  this.subject({ required: true })
  assert.equal(this.$().hasClass('required'), true)
})


text:
// For conditions of distribution and use, see copyright notice in LICENSE

#pragma once

#include "CoreTypes.h"
#include "TundraProtocolModuleApi.h"
#include "TundraProtocolModuleFwd.h"

#include <kNet/SharedPtr.h>
#include <kNet/MessageConnection.h>

#include <QObject>

class Entity;
class SceneSyncState;

/// Protocol versioning for client connections.
enum NetworkProtocolVersion
{
    ProtocolOriginal = 0x1,         // Original
    ProtocolCustomComponents = 0x2, // Adds support for transmitting new static-structured component types without actual C++ implementation, using EC_PlaceholderComponent
    ProtocolHierarchicScene = 0x3   // Adds support for hierarchic scene, ie. entities having child entities,
};

/// Highest supported protocol version in the build. Update this when a new protocol version is added
const NetworkProtocolVersion cHighestSupportedProtocolVersion = ProtocolHierarchicScene;

/// Represents a client connection on the server side. Subclassed by networking implementations.
class TUNDRAPROTOCOL_MODULE_API UserConnection : public QObject, public enable_shared_from_this<UserConnection>
{
    Q_OBJECT
    Q_PROPERTY(int id READ ConnectionId)
    Q_PROPERTY(int protocolVersion READ ProtocolVersion)
    Q_PROPERTY(QString connectionType READ ConnectionType)
    Q_PROPERTY(SceneSyncState *syncState READ SyncState)
    // Q_PROPERTY machinery
    SceneSyncState *SyncState() const { return syncState.get(); }

public:
    UserConnection() :
        userID(0),
        protocolVersion(ProtocolOriginal)
    {}

    /// Returns the connection ID.
    u32 ConnectionId() const { return userID; }
    /// Returns the protocol version.
    NetworkProtocolVersion ProtocolVersion() const { return protocolVersion; }
    /// Returns connection type.
    virtual QString ConnectionType() const = 0;

    /// Connection ID
    u32 userID;
    /// Raw xml login data
    QString loginData;
    /// Property map
    LoginPropertyMap properties;
    /// Scene sync state, created and used by the SyncManager
    shared_ptr<SceneSyncState> syncState;
    /// Network protocol version in use
    NetworkProtocolVersion protocolVersion;
    /// Map of the unacked entity IDs a user has sent, and the real entity IDs they have been assigned
    std::map<u32, u32> unackedIdsToRealIds;

    /// Queue a network message to be sent to the client. All implementations may not use the reliable, inOrder, priority and contentID parameters.
    virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0) = 0;

    /// Queue a network message to be sent to the client, with the data to be sent in a DataSerializer. All implementations may not use the reliable, inOrder, priority and contentID parameters.
    void Send(kNet::message_id_t id, bool reliable, bool inOrder, kNet::DataSerializer& ds, unsigned long priority = 100, unsigned long contentID = 0);

    /// Queue a typed network message to be sent to the client.
    template<typename SerializableMessage> void Send(const SerializableMessage &data)
    {
        kNet::DataSerializer ds(data.Size());
        data.SerializeTo(ds);
        Send(SerializableMessage::messageID, data.reliable, data.inOrder, ds);
    }

    /// Trigger a network message signal. Called by the networking implementation.
    void EmitNetworkMessageReceived(kNet::packet_id_t packetId, kNet::message_id_t messageId, const char* data, size_t numBytes);

public slots:
    /// Execute an action on an entity, sent only to the specific user
    void Exec(Entity *entity, const QString &action, const QStringList &params);
    void Exec(Entity *entity, const QString &action, const QString &p1 = "", const QString &p2 = "", const QString &p3 = "");  ///< @overload

    /// Returns raw login data
    QString LoginData() const { return loginData; }

    /// Sets a property
    void SetProperty(const QString& key, const QString& value);

    /// Returns a property
    QVariant Property(const QString& key) const;

    /// Check whether has a property
    bool HasProperty(const QString& key) const;

    /// Returns all the login properties that were used to login to the server.
    LoginPropertyMap LoginProperties() const { return properties; }

    /// Deny connection. Call as a response to server.UserAboutToConnect() if necessary
    void DenyConnection(const QString& reason);

    /// Starts a benign disconnect procedure (one which waits for the peer acknowledge procedure).
    virtual void Disconnect() = 0;

    /// Forcibly kills this connection without notifying the peer.
    virtual void Close() = 0;

    u32 GetConnectionID() const { return ConnectionId(); }  /**< @deprecated Use ConnectionId or 'id' @todo Add warning print */
    QString GetLoginData() const { return LoginData(); }  /**< @deprecated Use LoginData @todo Add warning print */
    QString GetProperty(const QString& key) const { return Property(key).toString(); } /**< @deprecated Use Property @todo Add warning print */

signals:
    /// Emitted when action has been triggered for this specific user connection.
    void ActionTriggered(UserConnection* connection, Entity* entity, const QString& action, const QStringList& params);
    /// Emitted when the client has sent a network message. PacketId will be 0 if not supported by the networking implementation.
    void NetworkMessageReceived(UserConnection* connection, kNet::packet_id_t packetId, kNet::message_id_t messageId, const char* data, size_t numBytes);
};

/// A kNet user connection.
class TUNDRAPROTOCOL_MODULE_API KNetUserConnection : public UserConnection
{
    Q_OBJECT

public:
    virtual QString ConnectionType() const { return "knet"; }

    /// Message connection.
    Ptr(kNet::MessageConnection) connection;

    /// Queue a network message to be sent to the client.
    virtual void Send(kNet::message_id_t id, const char* data, size_t numBytes, bool reliable, bool inOrder, unsigned long priority = 100, unsigned long contentID = 0);

public slots:
    /// Starts a benign disconnect procedure (one which waits for the peer acknowledge procedure).
    virtual void Disconnect();

    /// Forcibly kills this connection without notifying the peer.
    virtual void Close();
};