text:
/*------Template by css zilla--------------------*/

/*@import url("../css/reset.css");  */
@import url("../css/bootstrap.css");
@import url("../css/reset.css");
@import url("../css/bootstrap.icon-large.css");
/*@import url("../css/bootstrap.min.css"); */

@font-face {
    font-family: 'open_sansregular';
    src: url('../fonts/OpenSans-Regular-webfont.eot');
    src: url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/OpenSans-Regular-webfont.woff') format('woff'),
         url('../fonts/OpenSans-Regular-webfont.ttf') format('truetype'),
         url('../fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'open_sanssemibold';
    src: url('../fonts/OpenSans-Semibold-webfont.eot');
    src: url('../fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/OpenSans-Semibold-webfont.woff') format('woff'),
         url('../fonts/OpenSans-Semibold-webfont.ttf') format('truetype'),
         url('../fonts/OpenSans-Semibold-webfont.svg#open_sanssemibold') format('svg');
    font-weight: normal;
    font-style: normal;

}

/*--------------------main css start here------------------------------*/
/*=========Headings tage============*/
a:focus, a:hover { outline:none;}

h1 {
}
h2 {
	font-family: Helvetica;
	font-size: 32px;
	color: #fff;
	text-transform: uppercase;
	text-align: center;
	display: block;
	margin-top: 40px;
}
h3 {
	font-size: 29px;
	color: #FFFFFF;
font-family: 'open_sansregular';
	margin-top: 125px;
	text-align: center;
	text-transform: uppercase;
	z-index: 999;
}
h4 {
	color: #373737;
	font-size: 12px;
	font-family: 'open_sansregular';
	font-size: 12px;
	text-transform: uppercase;
	margin-bottom: 6px;
}
h5 {
	color: #414141;
	font-size: 24px;
font-family: 'open_sansregular';
	margin-bottom: 15px;
}
h6 {
	color: #544f4d;
font-family: 'open_sansregular';
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 16px;
}
/*===========main css part start here====
========================================*/
.container {
	width: 970px;
	margin: 0 auto;
}
p {
	color: 6b6b6b;
	font-size: 12px;
	font-family: 'open_sansregular';
}
/*=======================================
=========Top header part start here======*/
#top_header {
	background: #000; height:30px;
}
#top_header .links p {
	font-family: 'open_sansregular';
	font-size: 11px;
	color: #fff;
	min-height: 30px;
	line-height: 30px;
	margin-bottom: 0px;
}
.account_information { height:30px;}
.account_information ul.nav-tabs li a { padding:7px;}
.my_account { height:30px; line-height:30px;}
.share-search { height:30px; line-height:30px;}
/*=======Header part start here=======*/
#header {
	margin-bottom: 20px;
}
.nav-tabs {
	border-bottom: 0px;
}
.logo {
	padding-top:30px;
}
.logo a { font-family: 'open_sansregular'; font-size:30px; color:rgb(253, 146, 109);}

.menu_nav {
	padding-top: 30px;
}
.nav-tabs li a {
	color: #000;
	font-size: 14px;
	font-family: 'open_sansregular';
	border: 0px;
	padding: 10px 10px;
	text-transform:capitalize;
}

.your_cart .btn-group { float:right; width:100%;
}
.dropdown-menu li a {font-family:'open_sansregular'; padding:3px 10px;}

.your_cart .btn-group .btn {
	border-radius: 0px;
	width: 100%;
	text-align: left;
	position: relative;
	border: 1px solid #d6d6d6;
	color: #949393;
	font-size: 12px;
	font-family:'open_sansregular';
	font-style: normal;
}
.cart_values {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #949393;
}
.your_cart .btn-group .btn .caret {
	position: absolute;
	right: 5px;
	top: 15px;
}
.your_cart {
	padding-top: 21px;
}
.cart_information {
	border: 1px solid #d6d6d6;
	width:100%; float:right;
	border-top: 0px;
	min-height: 30px;
}
.cart_values {
	float: right;
	margin-right: 5px;
	margin-top: 8px;
}
.cart_image {
	margin-top: 5px;
	float: left;
	margin-left: 9px;
}
.nav-tabs li a:hover {
	border: #fff;
}
.nav li a:hover, .nav li a:focus {
	background: #fff;
}

/*========Slider part start here======
======================================*/

#slidersection #slider {
	float: left;
	width: 100%;
	min-height: 551px;
	position: relative;
}
#slidersection .bg {
	position: relative;
	top: 0;
	left: 0;
}
#slidersection .bgwidth {
	width: 100%;
}
#slidersection .bgheight {
	height: 100%;
}
#slidersection .bx-viewport {
	width: auto !important;
}
#slidersection .slider_caption {
	background: url(../images/slider_caption_hover.png) repeat;
	padding: 82px 46px 0;
	width: 280px;
	float: left;
	position: absolute;
	left: 19.7%;
	top: 0px;
	min-height: 551px;
}
#slidersection .slider_caption h1 {
	color: #cc0033;
	font-family: 'MerriweatherRegular';
	font-size: 39px;
	font-weight: lighter;
}
#slidersection .slider_caption h2 {
	color: #fff;
	font-family: 'MerriweatherBold';
	font-size: 24px;
}
.bx-controls {
	display: block;
}
.shop_now {
	background-color: #fd926d;
	border-bottom: 3px solid #dd6b44;
	height: 57px;
	width: 156px;
	line-height: 57px;
	float: left;
	position: absolute;
	bottom: 20%;
	left: 24%;
	z-index: 999;
	font-family: Helvetica;
	font-size: 16px;
	color: #fff;
	padding-left: 25px;
	background-image: url(../images/show_now_arrow.png);
	background-repeat: no-repeat;
	background-position: 115px 25px;
}
.shop_now:hover {
	background-color: #dd6b44;
	color: #fff;
	cursor: pointer;
}
/*--Products tabs css--*/

.products_tabs .nav-tabs li a {
	border-radius: 0px;
	color: #555555;
	font-size: 15px;
	font-family: 'open_sansregular';
	text-transform: uppercase;
	padding: 12px 15px;
}
.products_tabs .nav-tabs li.active a {
	background-color: #fd926d;
	outline: none;
	color: #fff;
}
/*==========================Middle part start here===============
===============================================================*/

#main_part {
	clear: both;
}
h2.clearance_image {
	text-align: center;
	margin-bottom: 25px;
}
.featured_brands {
	border: 1px solid #d8d8d8;
	float: left;
	width: 100%;
	padding: 20px 0px;
	position: relative;
}
.featured_brands ul {
	display: block;
	text-align: center;
}
.featured_brands ul li {
	display: inline-block;
	margin-right: 30px;
}
.featured_brands span {
	position: absolute;
	color: #414141;
	font-size: 15px;
	font-family: 'open_sanssemibold';
	font-weight: bold;
	background: #fff;
	min-height: 30px;
	left: 44%;
	top: -12%;
	text-transform: uppercase;
	padding: 0 15px;
}
#price_off {
	margin-bottom: 68px; text-align:center;
}

#price_off .product_image { height:150px;}

.product_show big {
	color: #373737;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	display: block;
	margin-bottom: 12px;
}
.product_show {
	text-align: center;
	background: #f7f7f7;
	min-height:370px;
	overflow: hidden;
	position: relative;
}
.product_show h4 { display:inline-block; margin-top:15px;}
#price_off .product_show { min-height:280px;}

.product_show img {
	margin-bottom: 12px;
}
a.add_to_cart {
	background: #fd926d;
	border-bottom: 3px solid #dd6b44;
	padding: 10px 25px;
	position: relative;
	min-width: 120px;
	font-size: 12px;
	color: #fff;
	text-transform: uppercase;
	font-family: 'open_sansregular';
	cursor: pointer;

}

.product_show a.add_to_cart:hover {
	background: #dd6b44;
}
.product_show a.add_to_cart span {
	position: absolute;
	right: 11px;
	top: 11px;
}
.product_show .on_sale {
	background: #fff;
	overflow: hidden;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 50px;
	height: 50px;
	display: block;
	z-index:999;
}
.product_show .on_sale .inner {
	background: none repeat scroll 0 0 #4c4c4c;
	display: block;
	height: 70px;
	left: -34px;
	position: absolute;
	top: -34px;
	transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	width: 70px;
	color: #fff;
}
.product_show .on_sale .inner p {
	margin-left: 35px;
	margin-top: 20px;
	transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	font-size: 10px;
	text-transform: uppercase;
	font-family: Arial, Helvetica, sans-serif;
}
.product_image {
	float: left; width:100%; height:200px; overflow:hidden;
}
.product_image img { transition:all 0.6s linear 0s;}

.product_image:hover img { max-width:120%; transform:scale(1.1, 1.1);}

.inactive {
	display: none !important;
}
.inner {
	background: none;
}
.product_show_block {
	margin: 40px 0 50px 0;
}
.right_product_block {
	border-left: 2px solid #fff;
	height: 169px;
}
.right_product_block_first {
	border-bottom: 2px solid #fff;
	position: relative;
	overflow: hidden;
	float: left;
	cursor: pointer;
	width:100%;

}
.right_product_block_first a {
	display: block;
}
.right_product_block_second {
	border-right: 2px solid #fff; float:left; width:50%;
}
.right_product_block_second a {
	float: left;
	width: 100%;
	position: relative;
}
.right_product_block_second a:hover span.hover_text, .right_product_block_first a:hover .hover_text {
	display: block !important;
	top: 0px;
	background-color: rgba(153, 153, 153, 0.7);
	width: 100%;
	height: 100%;
	z-index: 999;
}
.hover_text {
	display: none;
	position: absolute;
	z-index: 999;
	transition: all 0.9s ease-in-out 0s;
	-moz-transition: all 0.9s ease-in-out 0s;
}
.info {
	background: url("../images/link.png") no-repeat scroll center center rgba(0, 0, 0, 0);
	height: 20px;
	padding: 0;
	text-decoration: none;
	text-indent: -9999px;
	width: 20px;
}
.right_product_block_second:last-child {
	border-right: 0px solid #fff;
}
.social_media_bar {
	background: #ededed;
	height: 55px;
	line-height: 28px;
}
.email_text {
	border: 0px;
	background: #fff;
	min-width: 135px;
	height: 28px;
	color: #9f9f9f;
	font-size: 12px;
	font-family: 'open_sansregular';
	font-style: italic;
	float: left;
	padding-left: 5px;
}
.button {
	background: #fd926d;
	border-bottom: 3px solid #dd6b44;
	width: 28px;
	height: 28px;
	border-left: 0px;
	border-top: 0px;
	border-right: 0px;
	color: #fff;
	font-weight: bold;
}
.actions {
	float: left;
	width: auto;
}
.button:hover {
	background-color: #DD6B44;
}
.email_box {
	margin-left: 7px;
}
.social_icons {
	height: 55px;
}
.social_icons li {
	display: inline-block;
	height: 55px;
}
.social_icons li a {
	width: 55px;
	background: f7f7f7;
	float: left;
	text-align: center;
	padding-top: 18px;
}
.social_icons li a img {
	vertical-align: middle;
}
.social_media_icons p {
	margin-right: 12px;
}
.light {
	background: #f7f7f7;
}
.products_tabs .tab-pane {
	 background:#FD926D;
    float: left;
    margin: 0 auto 25px;
    padding: 30px 0;
    text-align: center;
    width: 100%;
}
.products_tabs {
	margin-bottom: 25px;
	/*float: left;*/
}
.products_tabs .controls {
	position: absolute;
	right: 0px;
}
.products_tabs .nav-tabs {
	position: relative;
}
.prev_control {
	width: 47px;
	height: 47px;
	background: #f2f2f2;
	float: left;
	cursor: pointer;
	line-height: 47px;
	text-align: center;
	background: url("../images/prev.png") no-repeat scroll center center;
}
.next_control {
	width: 47px;
	height: 47px;
	background: #f2f2f2;
	float: left;
	cursor: pointer;
	line-height: 47px;
	text-align: center;
	background: url("../images/next.png") no-repeat scroll center center;
}
.prev_active {
	background-color: #fd926d !important;
	background-image: url(../images/prev_active.png);
	background-repeat: no-repeat;
}
.next_active {
	background-color: #fd926d !important;
	background-image: url(../images/next_active.png);
	background-repeat: no-repeat;
}
.light_green {
	background: #4fafa0 !important;
}
.small_shop_cart {
	height: 29px;
	line-height: 29px;
	background: url("../images/show_now_arrow.png");
	color: #FFFFFF;
	font-family:'open_sansregular';
	font-size: 16px;
	width: 98px;
	border-bottom: 3px solid #238c7c;
	margin: 14px auto 0px;
	display: block;
	border-left: 0px;
	border-right: 0px;
	border-top: 0px;
}
.account_information .nav-tabs li a {  color: #FFFFFF;
    font-family: 'open_sansregular';
    font-size: 11px;}
.account_information .nav li a:hover, .account_information .nav li a:focus { background:none;}
.account_information .dropdown-menu li a { color:#000 !important;}

.share-search { float:right; position:relative; z-index:999;}
.share-search li { color:#fff !important; display:inline;       }

.load_more { background-color:#000; padding:10px 25px; color:#fff; font-size:14px; font-family: 'open_sansregular'; cursor:pointer; margin:20px auto 0px; width:140px; clear:both; margin:20px auto 0px; display:inline-block; text-transform:uppercase; text-align:center; border:1px solid #000;}
.load_more:hover { color:#000; background:#fff; border:1px solid #000;}
.icon-search { background:url(../images/link.png) no-repeat center 5px; display:block;}
.mobile_menu { display:none;}
/*================before Footer part start here==========
========================================================*/
#footerbefore {
	display: block;
	text-align: center;
	padding: 30px 0px;
	clear: both;
}
#footerbefore p {
	color: #999999;
	font-size: 14PX;
	font-family:'open_sansregular';
	margin-bottom: 46px;
}
/*================Footer part start here==========
================================================*/
#footer {
	display: block;
	background: #ededed;
	clear: both;
	padding: 33px 0px;
}
#footer ul {
	display: block;
	padding: 0px;
}
#footer ul li {
	display: block;
	list-style: none;
}
#footer ul li a {
	color: #544f4d;
	font-size: 12px;
	font-family: 'open_sansregular';
}
#footer ul li a:hover {
	color: #DD6B44;
}
#footer ul.social_media li {
	display: inline-block;
	margin-right: 5px;
	margin-bottom: 5px;
}
#footer ul.social_media li a:hover {
	opacity: 0.5;
}
#footer .secured {
	padding-top: 16px;
	text-align: right;
}
/*===============Footyer after part start here======
==================================================*/
#footer_after {
	display: block;
	background: #000;
	min-height: 74px;
}
#footer_after .footer_links {
	float: left;
	padding-top: 24px;
}
#footer_after .footer_links ul li {
	list-style: none;
	display: inline;
	margin: 0px;
}
#footer_after .footer_links ul li a {
	color: #8d8d8d;
	font-size: 11px;
	font-family:'open_sansregular';
	border-right: 1px solid #8d8d8d;
	padding: 0px 5px;
}
#footer_after .footer_links ul li:last-child a {
	border: 0px;
}
#footer_after .footer_links ul li a:hover {
	color: #dd6b44;
	text-decoration: none;
}
#footer_after .right_reserved {
	float: right;
	text-align: right;
	padding-top: 24px;
}
#footer_after .right_reserved p a {
	color: #8d8d8d;
	font-size: 11px;
	font-family:'open_sansregular';
}
#footer_after .right_reserved p {
	font-size: 11px;
	font-family:'open_sansregular';
	color: #8d8d8d;
}

.mobile_header { display:none;}
.products_tabs_mobile { display:none;}
.footer_mobile_menu { display:none;}

/*=====================================================
======================media query css start here=======*/

/*--------Ipad portrait mode media query start here-------*/
@media screen and (min-width: 768px) and (max-width: 979px) {
h2 { font-size:25px; margin-top:26px;}
h3 { margin-top:85px; font-size:20px;}
h4 { font-size:10px;}
h6 { font-size:14px;}
.container { width:750px !important;}
.nav-tabs li a { padding:5px;}
.shop_now { bottom:15%; height:45px; line-height:45px; left:20%; background-position:115px 20px;}
#slider .bx-wrapper .bx-viewport { height:280px !important;}
#slidersection #slider { min-height:310px;}
.product_show_block { margin:30px 0px;}
.small_shop_cart { margin:6px auto 0;}
.product_show .on_sale {
    height: 60px;
    left: 0;
    top: 0;
    width: 60px;}

.product_show .on_sale .inner {height: 120px;
    left: -78px;
    top: -68px;
    width: 120px;}
.product_show .on_sale .inner p {  font-size: 12px;
    margin-left: 85px;
    margin-top: 42px;}
.product_show { min-height:420px; margin-bottom:20px;}
.product_show a.add_to_cart { padding:10px 30px 10px 15px; font-size:12px;}

.product_show big { font-size:18px;}
.ipad_product_height { min-height:430px !important;}
.ipad_align { clear:both;}

.product_image img { width:100%;}
.featured_brands ul li { margin-right:10px;}
#footerbefore p { font-size:12px;}
#footer div { margin-bottom:15px;}

.mobile_menu { display:none;}
.mobile_header { display:none;}
.desktop_header { display:block;}
.products_tabs_mobile { display:none;}
.footer_mobile_menu { display:none;}

}

/*-----Mobile landsacpe view---------*/
@media screen and (min-width: 480px) and (max-width: 767px) {
H6 { font-size:15PX; margin-bottom:5px;}
.mobile_menu { display:block;}
.desktop_menu { display:none;}
.container { width:100%;}
.menu_nav { background-color:#FD926D; padding-top:0px; margin-top:15px;}
.navbar-header { font-family:Arial, Helvetica, sans-serif; color:#000; font-size:12px;}
.navbar-brand { font-family:Arial, Helvetica, sans-serif; font-size:20px; color:#fff; text-transform:uppercase;}
.navbar-brand:hover { color:#fff;}
.navbar-toggle { background-image:url(../images/mobile_toggle.png); background-repeat:no-repeat; width:35px; height:33px; padding:0px; border-radius:0px;}
.background_white { background-color:#fff !important;}
.account_information { background:#000; line-height:35px; height:35px;}
#top_header .links p { color:#838383; font-size:15px; text-align:center; line-height:35px; height:35px; font-family:Arial;}
.logo { text-align:center; padding-top:60px;}
.mobile_header { display:block;}
.desktop_header { display:none;}
.your_cart { display:none;}
.cart_information { border:1px solid #d6d6d6; margin-top:20px;}
.navbar-nav li a { color:#fff; font-size:13px; font-family:arial; padding-top:5px; padding-bottom:5px;}
.nav li a:hover, .nav li a:focus { color:#838383;}
#slider .shop_now { display:none;}
.bx-viewport { height:120px !important;}
#slidersection #slider { min-height:135px;}
.email_text_box { padding-top:0px;}
.email_text_box p { display:none;}
.email_box { margin-left:0px; width:100%;}
.email_text { width:92%; height:35px; line-height:35px; background-color:#ededed;}
.actions .button { width:35px; height:35px;}
.social_media_bar { background-color:#fff;}
.social_media_icons { margin:10px 0px;}
.social_icons { background:#ededed;}
.social_media_icons p { color:#6c6c6c; font-size:14px; font-family:arial; margin-right:0px;}
.product_show_block { display:none;}
.products_tabs .nav-tabs { background-color:#f4845d;}

.products_tabs_desktop { display:none;}
.products_tabs_mobile { display:block;}
.products_tabs .nav-tabs li a { border:0px; background:#f4845d !important; cursor:pointer;}
.products_tabs .nav-tabs li a:hover { cursor:pointer;}
.nav-tabs li { float:none; display:block;}
.products_tabs_mobile .caret { float:right; margin-top:9px; cursor:pointer;}
.products_tabs_mobile .dropdown-menu { right:0px;}
.products_tabs_mobile .dropdown a:hover { border-width:0px !important;}
.products_tabs_mobile .product_image img { width:100%; height:auto;}
.on_sale { width:35px !important; height:35px !important;}
.on_sale .inner { left:-43px !important; top:-43px !important;}
.on_sale .inner p { margin-left:48px !important; margin-top:26px !important; font-size:8px !important;}
a.add_to_cart { padding:10px 20px !important;}
a.add_to_cart span { display:none;}
.product_show { min-height:405px !important; margin-bottom:15px;}
.products_tabs .tab-pane { padding:20px 0px;}
.product_image img { width:100%; height:auto;}
.featured_brands { display:none;}
#footerbefore { display:none;}
#price_off { margin-bottom:20px;}
.share-search { line-height:35px; height:35px;}
.my_account { line-height:35px; height:35px;}
.mobile_dollar { line-height:35px; height:35px; float:left !important; z-index:9999;}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background:#000; border:0px;}
.account_information ul.nav-tabs li a { padding:9px;}

#footer { display:none;}
#footer_after { display:none;}
.footer_mobile_menu { display:block; background-color:#000000;}
.footer_reserved { position:absolute; right:15px; top:5px;}
.footer_reserved a, .footer_reserved p { color:#8d8d8d; font-size:12px; font-family:arial;}
.navbar-header { position:relative;}
.footer_mobile_menu .navbar-toggle { margin-left:10px;}
.social_media { clear:both;}
.social_media ul li { display:inline-block;}
.footer_mobile_menu .nav li a:hover, .footer_mobile_menu .nav li a:focus { background:none;}

}

/*---Mobile portrait view----*/
@media screen and (min-width: 240px) and (max-width: 479px) {
H6 { font-size:15PX; margin-bottom:5px;}
.mobile_menu { display:block;}
.desktop_menu { display:none;}
.container { width:100%;}
.menu_nav { background-color:#FD926D; padding-top:0px; margin-top:15px;}
.navbar-header { font-family:Arial, Helvetica, sans-serif; color:#000; font-size:12px;}
.navbar-brand { font-family:Arial, Helvetica, sans-serif; font-size:20px; color:#fff; text-transform:uppercase;}
.navbar-brand:hover { color:#fff;}
.navbar-toggle { background-image:url(../images/mobile_toggle.png); background-repeat:no-repeat; width:35px; height:33px; padding:0px; border-radius:0px;}
.background_white { background-color:#fff !important;}
.account_information { background:#000; line-height:35px; height:35px;}
#top_header .links p { color:#838383; font-size:15px; text-align:center; line-height:35px; height:35px; font-family:Arial;}
.logo { text-align:center; padding-top:60px;}
.mobile_header { display:block;}
.desktop_header { display:none;}
.your_cart { display:none;}
.cart_information { border:1px solid #d6d6d6; margin-top:20px;}
.navbar-nav li a { color:#fff; font-size:13px; font-family:arial; padding-top:5px; padding-bottom:5px;}
.nav li a:hover, .nav li a:focus { color:#838383;}
#slider .shop_now { display:none;}
.bx-viewport { height:120px !important;}
#slidersection #slider { min-height:135px;}
.email_text_box { padding-top:0px;}
.email_text_box p { display:none;}
.email_box { margin-left:0px; width:100%;}
.email_text { width:87%; height:35px; line-height:35px; background-color:#ededed;}
.actions .button { width:35px; height:35px;}
.social_media_bar { background-color:#fff;}
.social_media_icons { margin:10px 0px;}
.social_icons { background:#ededed;}
.social_media_icons p { color:#6c6c6c; font-size:14px; font-family:arial; margin-right:0px;}
.product_show_block { display:none;}
.products_tabs .nav-tabs { background-color:#f4845d;}

.products_tabs_desktop { display:none;}
.products_tabs_mobile { display:block;}
.products_tabs .nav-tabs li a { border:0px; background:#f4845d !important; cursor:pointer;}
.products_tabs .nav-tabs li a:hover { cursor:pointer;}
.nav-tabs li { float:none; display:block;}
.products_tabs_mobile .caret { float:right; margin-top:9px; cursor:pointer;}
.products_tabs_mobile .dropdown-menu { right:0px;}
.products_tabs_mobile .dropdown a:hover { border-width:0px !important;}
.products_tabs_mobile .product_image img { width:100%; height:auto;}
.on_sale { width:35px !important; height:35px !important;}
.on_sale .inner { left:-43px !important; top:-43px !important;}
.on_sale .inner p { margin-left:48px !important; margin-top:26px !important; font-size:8px !important;}
a.add_to_cart { padding:10px 20px !important;}
a.add_to_cart span { display:none;}
.product_show { min-height:310px !important; margin-bottom:15px;}
.products_tabs .tab-pane { padding:20px 0px;}
.product_image img { width:100%; height:auto;}
.featured_brands { display:none;}
#footerbefore { display:none;}
#price_off { margin-bottom:20px;}

#footer { display:none;}
#footer_after { display:none;}
.footer_mobile_menu { display:block; background-color:#000000;}
.footer_reserved { position:absolute; right:15px; top:5px;}
.footer_reserved a, .footer_reserved p { color:#8d8d8d; font-size:12px; font-family:arial;}
.navbar-header { position:relative;}
.footer_mobile_menu .navbar-toggle { margin-left:10px;}
.social_media { clear:both;}
.social_media ul li { display:inline-block;}
.footer_mobile_menu .nav li a:hover, .footer_mobile_menu .nav li a:focus { background:none;}

.mobile_dollar { float:left !important; z-index:9999;}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background:#000; border:0px;}
.account_information ul.nav-tabs li a { padding:8px;}

}


text:
namespace aria2 {

class DHTRoutingTableDeserializerTest:public CppUnit::TestFixture {

  CPPUNIT_TEST_SUITE(DHTRoutingTableDeserializerTest);
  CPPUNIT_TEST(testDeserialize);
  CPPUNIT_TEST(testDeserialize6);
  CPPUNIT_TEST_SUITE_END();
public:
  void setUp() {}

  void tearDown() {}

  void testDeserialize();

  void testDeserialize6();
};

CPPUNIT_TEST_SUITE_REGISTRATION(DHTRoutingTableDeserializerTest);

void DHTRoutingTableDeserializerTest::testDeserialize()
{
  std::shared_ptr<DHTNode> localNode(new DHTNode());

  std::vector<std::shared_ptr<DHTNode> > nodes(3);
  for(size_t i = 0; i < nodes.size(); ++i) {
    nodes[i].reset(new DHTNode());
    nodes[i]->setIPAddress("192.168.0."+util::uitos(i+1));
    nodes[i]->setPort(6881+i);
  }
  nodes[1]->setIPAddress("non-numerical-name");

  DHTRoutingTableSerializer s(AF_INET);
  s.setLocalNode(localNode);
  s.setNodes(nodes);

  std::string filename = A2_TEST_OUT_DIR"/aria2_DHTRoutingTableDeserializerTest_testDeserialize";
  s.serialize(filename);

  DHTRoutingTableDeserializer d(AF_INET);
  d.deserialize(filename);

  CPPUNIT_ASSERT(memcmp(localNode->getID(), d.getLocalNode()->getID(),
                        DHT_ID_LENGTH) == 0);

  std::cout << d.getSerializedTime().getTime() << std::endl;

  CPPUNIT_ASSERT_EQUAL((size_t)2, d.getNodes().size());
  const std::vector<std::shared_ptr<DHTNode> >& dsnodes = d.getNodes();
  CPPUNIT_ASSERT_EQUAL(std::string("192.168.0.1"), dsnodes[0]->getIPAddress());
  CPPUNIT_ASSERT_EQUAL((uint16_t)6881, dsnodes[0]->getPort());
  CPPUNIT_ASSERT(memcmp(nodes[0]->getID(), dsnodes[0]->getID(), DHT_ID_LENGTH) == 0);
  CPPUNIT_ASSERT_EQUAL(std::string("192.168.0.3"), dsnodes[1]->getIPAddress());
  CPPUNIT_ASSERT_EQUAL((uint16_t)6883, dsnodes[1]->getPort());
  CPPUNIT_ASSERT(memcmp(nodes[2]->getID(), dsnodes[1]->getID(), DHT_ID_LENGTH) == 0);
}

void DHTRoutingTableDeserializerTest::testDeserialize6()
{
  std::shared_ptr<DHTNode> localNode(new DHTNode());

  std::vector<std::shared_ptr<DHTNode>> nodes(3);
  for(size_t i = 0; i < nodes.size(); ++i) {
    nodes[i].reset(new DHTNode());
    nodes[i]->setIPAddress("2001::100"+util::uitos(i+1));
    nodes[i]->setPort(6881+i);
  }
  nodes[1]->setIPAddress("non-numerical-name");

  DHTRoutingTableSerializer s(AF_INET6);
  s.setLocalNode(localNode);
  s.setNodes(nodes);

  std::string filename = A2_TEST_OUT_DIR"/aria2_DHTRoutingTableDeserializerTest_testDeserialize6";
  s.serialize(filename);

  DHTRoutingTableDeserializer d(AF_INET6);
  d.deserialize(filename);

  CPPUNIT_ASSERT(memcmp(localNode->getID(), d.getLocalNode()->getID(),
                        DHT_ID_LENGTH) == 0);

  std::cout << d.getSerializedTime().getTime() << std::endl;

  CPPUNIT_ASSERT_EQUAL((size_t)2, d.getNodes().size());
  const std::vector<std::shared_ptr<DHTNode> >& dsnodes = d.getNodes();
  CPPUNIT_ASSERT_EQUAL(std::string("2001::1001"), dsnodes[0]->getIPAddress());
  CPPUNIT_ASSERT_EQUAL((uint16_t)6881, dsnodes[0]->getPort());
  CPPUNIT_ASSERT(memcmp(nodes[0]->getID(), dsnodes[0]->getID(),
                        DHT_ID_LENGTH) == 0);
  CPPUNIT_ASSERT_EQUAL(std::string("2001::1003"), dsnodes[1]->getIPAddress());
  CPPUNIT_ASSERT_EQUAL((uint16_t)6883, dsnodes[1]->getPort());
  CPPUNIT_ASSERT(memcmp(nodes[2]->getID(), dsnodes[1]->getID(),
                        DHT_ID_LENGTH) == 0);
}

} // namespace aria2

redpajama_set_name: RedPajamaGithub


text:
package cmd

import (
	"os"

	"github.com/composit/slowmo/cli/pkg/auth"
	"github.com/spf13/cobra"
)

var username, password string

// loginCmd represents the login command
var loginCmd = &cobra.Command{
	Use:   "login",
	Short: "Log in to slowmonster",
	Long: `Log in to slowmonster using the username and password of an existing user.
Your session token is saved in ~/.slowmo-token.
Currently, logged in sessions persist indefinitely.`,
	Run: func(cmd *cobra.Command, args []string) {
		if err := auth.Login(apiClient, u, username, password); err != nil {
			u.Displayln(err)
			os.Exit(1)
		}
	},
}

func init() {
	RootCmd.AddCommand(loginCmd)

	// Here you will define your flags and configuration settings.

	// Cobra supports Persistent Flags which will work for this command
	// and all subcommands, e.g.:
	// loginCmd.PersistentFlags().String("foo", "", "A help for foo")

	// Cobra supports local flags which will only run when this command
	// is called directly, e.g.:
	// loginCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")

	loginCmd.Flags().StringVar(&username, "username", "", "the username of the slowmonster user to log in as")
}


text:
def extractBearBearTranslations(item):
	"""

	"""
	vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
	if not (chp or vol or frag) or 'preview' in item['title'].lower():
		return None
	return False


text:
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.hive;

import com.facebook.presto.spi.ConnectorOutputTableHandle;
import com.facebook.presto.spi.ConnectorSession;
import com.facebook.presto.spi.type.Type;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;

import java.util.List;

import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;

public class HiveOutputTableHandle
        implements ConnectorOutputTableHandle
{
    private final String clientId;
    private final String schemaName;
    private final String tableName;
    private final List<String> columnNames;
    private final List<Type> columnTypes;
    private final String tableOwner;
    private final String targetPath;
    private final String temporaryPath;
    private final ConnectorSession connectorSession;
    private final HiveStorageFormat hiveStorageFormat;

    @JsonCreator
    public HiveOutputTableHandle(
            @JsonProperty("clientId") String clientId,
            @JsonProperty("schemaName") String schemaName,
            @JsonProperty("tableName") String tableName,
            @JsonProperty("columnNames") List<String> columnNames,
            @JsonProperty("columnTypes") List<Type> columnTypes,
            @JsonProperty("tableOwner") String tableOwner,
            @JsonProperty("targetPath") String targetPath,
            @JsonProperty("temporaryPath") String temporaryPath,
            @JsonProperty("connectorSession") ConnectorSession connectorSession,
            @JsonProperty("hiveStorageFormat") HiveStorageFormat hiveStorageFormat)
    {
        this.clientId = checkNotNull(clientId, "clientId is null");
        this.schemaName = checkNotNull(schemaName, "schemaName is null");
        this.tableName = checkNotNull(tableName, "tableName is null");
        this.tableOwner = checkNotNull(tableOwner, "tableOwner is null");
        this.targetPath = checkNotNull(targetPath, "targetPath is null");
        this.temporaryPath = checkNotNull(temporaryPath, "temporaryPath is null");
        this.connectorSession = checkNotNull(connectorSession, "session is null");
        this.hiveStorageFormat = checkNotNull(hiveStorageFormat, "hiveStorageFormat is null");

        checkNotNull(columnNames, "columnNames is null");
        checkNotNull(columnTypes, "columnTypes is null");
        checkArgument(columnNames.size() == columnTypes.size(), "columnNames and columnTypes sizes don't match");
        this.columnNames = ImmutableList.copyOf(columnNames);
        this.columnTypes = ImmutableList.copyOf(columnTypes);

    }

    @JsonProperty
    public String getClientId()
    {
        return clientId;
    }

    @JsonProperty
    public String getSchemaName()
    {
        return schemaName;
    }

    @JsonProperty
    public String getTableName()
    {
        return tableName;
    }

    @JsonProperty
    public List<String> getColumnNames()
    {
        return columnNames;
    }

    @JsonProperty
    public List<Type> getColumnTypes()
    {
        return columnTypes;
    }

    @JsonProperty
    public String getTableOwner()
    {
        return tableOwner;
    }

    @JsonProperty
    public String getTargetPath()
    {
        return targetPath;
    }

    @JsonProperty
    public String getTemporaryPath()
    {
        return temporaryPath;
    }

    @JsonProperty
    public ConnectorSession getConnectorSession()
    {
        return connectorSession;
    }

    @JsonProperty
    public HiveStorageFormat getHiveStorageFormat()
    {
        return hiveStorageFormat;
    }

    @Override
    public String toString()
    {
        return "hive:" + schemaName + "." + tableName;
    }

    public boolean hasTemporaryPath()
    {
        return !temporaryPath.equals(targetPath);
    }
}


text:
layout: default
title: deliteful/Switch
---

# deliteful/Switch

The `deliteful/Switch` widget represents a toggle switch with a sliding knob. Its state can be changed either by a
direct tap/click or by sliding the knob to toggle the switch.

*Example of Switch widgets with and without labels*

![Switch (Bootstrap)](images/Switch1.png)

##### Table of Contents
[Element Instantiation](#instantiation)
[Element Configuration](#configuration)
[Element Styling](#styling)
[Element Events](#events)
[Enterprise Use](#enterprise)
[See also](#seealso)

## Element Instantiation

See [`delite/Widget`](/delite/docs/master/Widget.md) for full details on how instantiation lifecycle is working.

### Declarative Instantiation

```html
<html>
  <body>
    <d-switch checked="true"></d-switch>
    <d-switch checkedLabel="ON" uncheckedLabel="OFF" name="bluetooth"></d-switch>
  </body>
</html>
```

### Programmatic Instantiation

```js
  require([
    "delite/register",
    "deliteful/Switch"
  ], function (register, Switch) {
     register.parse();

     var sw = new Switch({checked:true});
     sw.placeAt(document.body);
     sw.startup();
     sw = new Switch({checkedLabel: "ON", uncheckedLabel: "OFF", name: "bluetooth"});
     sw.placeAt(document.body);
     sw.startup();
});
```

## Element Configuration

The state of a Switch widget (checked or unchecked) is defined by the `checked` property, inherited from the
`deliteful/Toggle` class.

The Switch widget can display optional labels corresponding to the checked and unchecked states via the `checkedLabel`
 and `uncheckedLabel` properties.

In addition, the Switch widget supports the following form-related properties of an HTML5 input element of
type "checkbox": `name`, `value`, `disabled` and `alt`, inherited from `delite/FormWidget`.

## Element Styling

### Supported themes

This widget provides default styling for the following delite themes:

* bootstrap
* ios
* holodark

### CSS Classes

CSS classes are bound to the structure of the widget declared in its template `deliteful/Switch/Switch.html`.
The following table lists all the CSS classes that can be used to style the widget.

|class name/selector|applies to|
|----------|----------|
|d-switch|Switch widget node
|d-switch-width|Switch widget node
|d-switch-rounded|Switch widget and knob nodes
|d-switch-leading|Switch leading node (aka the node displayed in checked state).
|d-switch-trailing|Switch trailing node (aka the node displayed in unchecked state).

In addition, the following classes are used in combination with the classes above:

|class name/selector|applies to|
|----------|----------|
|d-checked|Switch widget node in checked state
|d-focused|Switch widget node in focus state
|d-rtl|Switch node in right-to-left configuration

### Customizing the appearance of the Switch

The rendering style used to display the checked and unchecked sides of a switch are defined by the `d-switch-leading` and
 `d-switch-trailing` css classes.

The rounded border used to display both the switch main shape and the knob shape is defined by the `d-switch-rounded`
class.

The width of a switch is defined by the `d-switch-width` class and is equal to `70px` by default.
Note that due to the way the switch was designed, you can't express its width in '%'. Any other unit will work.

A Switch widget does not define any specific height by default but strech according to the current `line-height`.

The following example shows how to override these classes to change the appearance of the switch:

checkout the sample on JSFiddle

## Element Events
The widget `deliteful/Switch` emits a `change` event when its checked state is changed following a user interaction.

|event name|dispatched|cancelable|bubbles|properties|
|----------|----------|----------|-------|----------|
|change|on state change|No |Yes|standard HTML5 Event properties|

## Enterprise Use

### Accessibility
|type|status|comment|
|----|------|-------|
|Keyboard|N/A|No user interaction|
|Visual Formatting|ok|Support high contrast on Firefox and Internet Explorer desktop browsers.|
|Screen Reader|yes|Supports ARIA role checkbox. Tested with JAWS and VoiceOver|

### Globalization

`deliteful/Switch` does not provide any internationalizable bundle. The only strings displayed
by the widget are coming from the `checkedLabel` and `uncheckedLabel` properties that are empty by default.

### Browser Support
This widget supports all supported browsers without any degraded behavior.

### Security

This class has no specific security concern.

## See also
### Samples
- deliteful/samples/Buttons.html


text:
""" Download and install WordPress
"""
import os
import subprocess
import shutil
from distutils.dir_util import copy_tree
import tarfile
import urllib.request
import config_loader
import template
from teminal_colors import echo

# Public (html) directory
WWW_DIR = '/srv/www'

def install_wordpress():
    """Download and install WordPress"""
    data = config_loader.parse_config('wordpress.json')

    if not os.path.isdir(WWW_DIR):
        os.mkdir(WWW_DIR)

    _download_latest(data)
    _configure(data)
    _additional_dirs(data)
    fix_permissions(data)

def _download_latest(data):
    """Download the latest WordPress release from the official site"""
    _wp_url = 'https://wordpress.org/latest.tar.gz'
    echo('downloading and extracting latest WordPress to %s'
         % data['domain_name'], 'i')
    if not os.path.isdir(os.path.join(WWW_DIR, data['domain_name'])):
        os.makedirs(os.path.join(WWW_DIR, data['domain_name']), exist_ok=True)
    with urllib.request.urlopen(_wp_url) as wp:
        with open(os.path.join('/tmp', 'latest.tar.gz'), 'wb') as f:
            f.write(wp.read())
            tar = tarfile.open('/tmp/latest.tar.gz')
            tar.extractall(WWW_DIR)
            tar.close()
            copy_tree(os.path.join(WWW_DIR, 'wordpress'),
                      os.path.join(WWW_DIR, data['domain_name']))

            os.remove(os.path.join(WWW_DIR, 'wordpress'))
            os.remove('/tmp/latest.tar.gz')

def _configure(data):
    """Generate a wp-config.php configuration file"""
    # fetch secret salts
    echo('generating wp-config.php file', 'i')
    _url = 'https://api.wordpress.org/secret-key/1.1/salt/'
    with urllib.request.urlopen(_url) as request:
        _data = {}
        _data['secrets'] = request.read().decode('utf8')
        for key, value in data.items():
            _data[key] = value
        _tpl = template.generate_template('templates/wp-config.php', _data)
        with open(os.path.join(
                WWW_DIR, data['domain_name'], 'wp-config.php'), 'w') as config:
            config.write(_tpl)

def _additional_dirs(data):
    """Create additional child dirs"""
    echo('creating additional directories', 'i')
    os.makedirs(os.path.join(WWW_DIR,
                             data['domain_name'], 'wp-content', 'upgrade'),
                exist_ok=True)

def fix_permissions(data):
    """Setup directory ownership and file permissions"""
    echo('fixing directory ownership and file permissions', 'i')
    subprocess.call(['chown',
                     '-R', 'www-data:www-data',
                     WWW_DIR + '/%s' % data['domain_name']])


text:
import argparse
import time
import os
import logging
from baselines import logger, bench
from baselines.common.misc_util import (
    set_global_seeds,
    boolean_flag,
)
import baselines.ddpg.training as training
from baselines.ddpg.models import Actor, Critic
from baselines.ddpg.memory import Memory
from baselines.ddpg.noise import *

import gym
import tensorflow as tf
from mpi4py import MPI

def run(env_id, seed, noise_type, layer_norm, evaluation, **kwargs):
    # Configure things.
    rank = MPI.COMM_WORLD.Get_rank()
    if rank != 0: logger.set_level(logger.DISABLED)

    # Create envs.
    env = gym.make(env_id)
    env = bench.Monitor(env, logger.get_dir() and os.path.join(logger.get_dir(), "%i.monitor.json"%rank))
    gym.logger.setLevel(logging.WARN)

    if evaluation and rank==0:
        eval_env = gym.make(env_id)
        eval_env = bench.Monitor(eval_env, os.path.join(logger.get_dir(), 'gym_eval'))
        env = bench.Monitor(env, None)
    else:
        eval_env = None

    # Parse noise_type
    action_noise = None
    param_noise = None
    nb_actions = env.action_space.shape[-1]
    for current_noise_type in noise_type.split(','):
        current_noise_type = current_noise_type.strip()
        if current_noise_type == 'none':
            pass
        elif 'adaptive-param' in current_noise_type:
            _, stddev = current_noise_type.split('_')
            param_noise = AdaptiveParamNoiseSpec(initial_stddev=float(stddev), desired_action_stddev=float(stddev))
        elif 'normal' in current_noise_type:
            _, stddev = current_noise_type.split('_')
            action_noise = NormalActionNoise(mu=np.zeros(nb_actions), sigma=float(stddev) * np.ones(nb_actions))
        elif 'ou' in current_noise_type:
            _, stddev = current_noise_type.split('_')
            action_noise = OrnsteinUhlenbeckActionNoise(mu=np.zeros(nb_actions), sigma=float(stddev) * np.ones(nb_actions))
        else:
            raise RuntimeError('unknown noise type "{}"'.format(current_noise_type))

    # Configure components.
    memory = Memory(limit=int(1e6), action_shape=env.action_space.shape, observation_shape=env.observation_space.shape)
    critic = Critic(layer_norm=layer_norm)
    actor = Actor(nb_actions, layer_norm=layer_norm)

    # Seed everything to make things reproducible.
    seed = seed + 1000000 * rank
    logger.info('rank {}: seed={}, logdir={}'.format(rank, seed, logger.get_dir()))
    tf.reset_default_graph()
    set_global_seeds(seed)
    env.seed(seed)
    if eval_env is not None:
        eval_env.seed(seed)

    # Disable logging for rank != 0 to avoid noise.
    if rank == 0:
        start_time = time.time()
    training.train(env=env, eval_env=eval_env, param_noise=param_noise,
        action_noise=action_noise, actor=actor, critic=critic, memory=memory, **kwargs)
    env.close()
    if eval_env is not None:
        eval_env.close()
    if rank == 0:
        logger.info('total runtime: {}s'.format(time.time() - start_time))

def parse_args():
    parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)

    parser.add_argument('--env-id', type=str, default='HalfCheetah-v1')
    boolean_flag(parser, 'render-eval', default=False)
    boolean_flag(parser, 'layer-norm', default=True)
    boolean_flag(parser, 'render', default=False)
    boolean_flag(parser, 'normalize-returns', default=False)
    boolean_flag(parser, 'normalize-observations', default=True)
    parser.add_argument('--seed', help='RNG seed', type=int, default=0)
    parser.add_argument('--critic-l2-reg', type=float, default=1e-2)
    parser.add_argument('--batch-size', type=int, default=64)  # per MPI worker
    parser.add_argument('--actor-lr', type=float, default=1e-4)
    parser.add_argument('--critic-lr', type=float, default=1e-3)
    boolean_flag(parser, 'popart', default=False)
    parser.add_argument('--gamma', type=float, default=0.99)
    parser.add_argument('--reward-scale', type=float, default=1.)
    parser.add_argument('--clip-norm', type=float, default=None)
    parser.add_argument('--nb-epochs', type=int, default=500)  # with default settings, perform 1M steps total
    parser.add_argument('--nb-epoch-cycles', type=int, default=20)
    parser.add_argument('--nb-train-steps', type=int, default=50)  # per epoch cycle and MPI worker
    parser.add_argument('--nb-eval-steps', type=int, default=100)  # per epoch cycle and MPI worker
    parser.add_argument('--nb-rollout-steps', type=int, default=100)  # per epoch cycle and MPI worker
    parser.add_argument('--noise-type', type=str, default='adaptive-param_0.2')  # choices are adaptive-param_xx, ou_xx, normal_xx, none
    boolean_flag(parser, 'evaluation', default=False)
    return vars(parser.parse_args())

if __name__ == '__main__':
    args = parse_args()
    # Run actual script.
    run(**args)


text:
.class Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;
.super Landroid/os/UEventObserver;
.source "WiredAccessoryManager.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/server/WiredAccessoryManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "WiredAccessoryObserver"
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    }
.end annotation

# instance fields
.field private final mUEventInfo:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/android/server/WiredAccessoryManager;

# direct methods
.method public constructor <init>(Lcom/android/server/WiredAccessoryManager;)V
    .locals 1

    .prologue
    .line 364
    iput-object p1, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->this$0:Lcom/android/server/WiredAccessoryManager;

    invoke-direct {p0}, Landroid/os/UEventObserver;-><init>()V

    .line 365
    invoke-direct {p0}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->makeObservedUEventList()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    .line 366
    return-void
.end method

.method private makeObservedUEventList()Ljava/util/List;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;",
            ">;"
        }
    .end annotation

    .prologue
    const/16 v6, 0x10

    const/4 v5, 0x0

    .line 404
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 408
    .local v0, "retVal":Ljava/util/List;, "Ljava/util/List<Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;>;"
    iget-object v2, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->this$0:Lcom/android/server/WiredAccessoryManager;

    # getter for: Lcom/android/server/WiredAccessoryManager;->mUseDevInputEventForAudioJack:Z
    invoke-static {v2}, Lcom/android/server/WiredAccessoryManager;->access$900(Lcom/android/server/WiredAccessoryManager;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 409
    new-instance v1, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;

    const-string v2, "h2w"

    const/4 v3, 0x1

    const/4 v4, 0x2

    invoke-direct {v1, p0, v2, v3, v4}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;-><init>(Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;Ljava/lang/String;II)V

    .line 410
    .local v1, "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    invoke-virtual {v1}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->checkSwitchExists()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 411
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 418
    .end local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :cond_0
    :goto_0
    new-instance v1, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;

    const-string v2, "usb_audio"

    const/4 v3, 0x4

    const/16 v4, 0x8

    invoke-direct {v1, p0, v2, v3, v4}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;-><init>(Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;Ljava/lang/String;II)V

    .line 419
    .restart local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    invoke-virtual {v1}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->checkSwitchExists()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 420
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 433
    :goto_1
    new-instance v1, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;

    .end local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    const-string v2, "hdmi_audio"

    invoke-direct {v1, p0, v2, v6, v5}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;-><init>(Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;Ljava/lang/String;II)V

    .line 434
    .restart local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    invoke-virtual {v1}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->checkSwitchExists()Z

    move-result v2

    if-eqz v2, :cond_3

    .line 435
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 445
    :goto_2
    return-object v0

    .line 413
    :cond_1
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v2

    const-string v3, "This kernel does not have wired headset support"

    invoke-static {v2, v3}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 422
    :cond_2
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v2

    const-string v3, "This kernel does not have usb audio support"

    invoke-static {v2, v3}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1

    .line 437
    :cond_3
    new-instance v1, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;

    .end local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    const-string v2, "hdmi"

    invoke-direct {v1, p0, v2, v6, v5}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;-><init>(Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;Ljava/lang/String;II)V

    .line 438
    .restart local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    invoke-virtual {v1}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->checkSwitchExists()Z

    move-result v2

    if-eqz v2, :cond_4

    .line 439
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 441
    :cond_4
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v2

    const-string v3, "This kernel does not have HDMI audio support"

    invoke-static {v2, v3}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2
.end method

.method private updateStateLocked(Ljava/lang/String;Ljava/lang/String;I)V
    .locals 4
    .param p1, "devPath"    # Ljava/lang/String;
    .param p2, "name"    # Ljava/lang/String;
    .param p3, "state"    # I

    .prologue
    .line 465
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v2, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    .line 466
    iget-object v2, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;

    .line 467
    .local v1, "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    invoke-virtual {v1}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->getDevPath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 468
    iget-object v2, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->this$0:Lcom/android/server/WiredAccessoryManager;

    iget-object v3, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->this$0:Lcom/android/server/WiredAccessoryManager;

    # getter for: Lcom/android/server/WiredAccessoryManager;->mHeadsetState:I
    invoke-static {v3}, Lcom/android/server/WiredAccessoryManager;->access$1000(Lcom/android/server/WiredAccessoryManager;)I

    move-result v3

    invoke-virtual {v1, v3, p3}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->computeNewHeadsetState(II)I

    move-result v3

    # invokes: Lcom/android/server/WiredAccessoryManager;->updateLocked(Ljava/lang/String;I)V
    invoke-static {v2, p2, v3}, Lcom/android/server/WiredAccessoryManager;->access$1100(Lcom/android/server/WiredAccessoryManager;Ljava/lang/String;I)V

    .line 472
    .end local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :cond_0
    return-void

    .line 465
    .restart local v1    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

# virtual methods
.method init()V
    .locals 11

    .prologue
    .line 369
    iget-object v7, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->this$0:Lcom/android/server/WiredAccessoryManager;

    # getter for: Lcom/android/server/WiredAccessoryManager;->mLock:Ljava/lang/Object;
    invoke-static {v7}, Lcom/android/server/WiredAccessoryManager;->access$800(Lcom/android/server/WiredAccessoryManager;)Ljava/lang/Object;

    move-result-object v8

    monitor-enter v8

    .line 370
    :try_start_0
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v7

    const-string v9, "init()"

    invoke-static {v7, v9}, Landroid/util/Slog;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 371
    const/16 v7, 0x400

    new-array v0, v7, [C

    .line 373
    .local v0, "buffer":[C
    const/4 v4, 0x0

    .local v4, "i":I
    :goto_0
    iget-object v7, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-ge v4, v7, :cond_1

    .line 374
    iget-object v7, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    invoke-interface {v7, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 377
    .local v6, "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :try_start_1
    new-instance v3, Ljava/io/FileReader;

    invoke-virtual {v6}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->getSwitchStatePath()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v3, v7}, Ljava/io/FileReader;-><init>(Ljava/lang/String;)V

    .line 378
    .local v3, "file":Ljava/io/FileReader;
    const/4 v7, 0x0

    const/16 v9, 0x400

    invoke-virtual {v3, v0, v7, v9}, Ljava/io/FileReader;->read([CII)I

    move-result v5

    .line 379
    .local v5, "len":I
    invoke-virtual {v3}, Ljava/io/FileReader;->close()V

    .line 380
    new-instance v7, Ljava/lang/String;

    const/4 v9, 0x0

    invoke-direct {v7, v0, v9, v5}, Ljava/lang/String;-><init>([CII)V

    invoke-virtual {v7}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I

    move-result v1

    .line 382
    .local v1, "curState":I
    if-lez v1, :cond_0

    .line 383
    invoke-virtual {v6}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->getDevPath()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->getDevName()Ljava/lang/String;

    move-result-object v9

    invoke-direct {p0, v7, v9, v1}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->updateStateLocked(Ljava/lang/String;Ljava/lang/String;I)V
    :try_end_1
    .catch Ljava/io/FileNotFoundException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 373
    .end local v1    # "curState":I
    .end local v3    # "file":Ljava/io/FileReader;
    .end local v5    # "len":I
    :cond_0
    :goto_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 385
    :catch_0
    move-exception v2

    .line 386
    .local v2, "e":Ljava/io/FileNotFoundException;
    :try_start_2
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v7

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->getSwitchStatePath()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, " not found while attempting to determine initial switch state"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-static {v7, v9}, Landroid/util/Slog;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1

    .line 392
    .end local v0    # "buffer":[C
    .end local v2    # "e":Ljava/io/FileNotFoundException;
    .end local v4    # "i":I
    .end local v6    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :catchall_0
    move-exception v7

    monitor-exit v8
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw v7

    .line 388
    .restart local v0    # "buffer":[C
    .restart local v4    # "i":I
    .restart local v6    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :catch_1
    move-exception v2

    .line 389
    .local v2, "e":Ljava/lang/Exception;
    :try_start_3
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v7

    const-string v9, ""

    invoke-static {v7, v9, v2}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_1

    .line 392
    .end local v2    # "e":Ljava/lang/Exception;
    .end local v6    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :cond_1
    monitor-exit v8
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 397
    const/4 v4, 0x0

    :goto_2
    iget-object v7, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-ge v4, v7, :cond_2

    .line 398
    iget-object v7, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->mUEventInfo:Ljava/util/List;

    invoke-interface {v7, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;

    .line 399
    .restart local v6    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "DEVPATH="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v6}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;->getDevPath()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {p0, v7}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->startObserving(Ljava/lang/String;)V

    .line 397
    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    .line 401
    .end local v6    # "uei":Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver$UEventInfo;
    :cond_2
    return-void
.end method

.method public onUEvent(Landroid/os/UEventObserver$UEvent;)V
    .locals 7
    .param p1, "event"    # Landroid/os/UEventObserver$UEvent;

    .prologue
    .line 450
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Headset UEVENT: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {p1}, Landroid/os/UEventObserver$UEvent;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Slog;->v(Ljava/lang/String;Ljava/lang/String;)I

    .line 453
    :try_start_0
    const-string v4, "DEVPATH"

    invoke-virtual {p1, v4}, Landroid/os/UEventObserver$UEvent;->get(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 454
    .local v0, "devPath":Ljava/lang/String;
    const-string v4, "SWITCH_NAME"

    invoke-virtual {p1, v4}, Landroid/os/UEventObserver$UEvent;->get(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 455
    .local v2, "name":Ljava/lang/String;
    const-string v4, "SWITCH_STATE"

    invoke-virtual {p1, v4}, Landroid/os/UEventObserver$UEvent;->get(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    .line 456
    .local v3, "state":I
    iget-object v4, p0, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->this$0:Lcom/android/server/WiredAccessoryManager;

    # getter for: Lcom/android/server/WiredAccessoryManager;->mLock:Ljava/lang/Object;
    invoke-static {v4}, Lcom/android/server/WiredAccessoryManager;->access$800(Lcom/android/server/WiredAccessoryManager;)Ljava/lang/Object;

    move-result-object v5

    monitor-enter v5
    :try_end_0
    .catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0

    .line 457
    :try_start_1
    invoke-direct {p0, v0, v2, v3}, Lcom/android/server/WiredAccessoryManager$WiredAccessoryObserver;->updateStateLocked(Ljava/lang/String;Ljava/lang/String;I)V

    .line 458
    monitor-exit v5

    .line 462
    .end local v0    # "devPath":Ljava/lang/String;
    .end local v2    # "name":Ljava/lang/String;
    .end local v3    # "state":I
    :goto_0
    return-void

    .line 458
    .restart local v0    # "devPath":Ljava/lang/String;
    .restart local v2    # "name":Ljava/lang/String;
    .restart local v3    # "state":I
    :catchall_0
    move-exception v4

    monitor-exit v5
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw v4
    :try_end_2
    .catch Ljava/lang/NumberFormatException; {:try_start_2 .. :try_end_2} :catch_0

    .line 459
    .end local v0    # "devPath":Ljava/lang/String;
    .end local v2    # "name":Ljava/lang/String;
    .end local v3    # "state":I
    :catch_0
    move-exception v1

    .line 460
    .local v1, "e":Ljava/lang/NumberFormatException;
    # getter for: Lcom/android/server/WiredAccessoryManager;->TAG:Ljava/lang/String;
    invoke-static {}, Lcom/android/server/WiredAccessoryManager;->access$600()Ljava/lang/String;

    move-result-object v4

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "Could not parse switch state from event "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Landroid/util/Slog;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method


text:
package in.zaidi.auctions.repo;

import java.util.Collections;
import java.util.List;

import org.springframework.stereotype.Component;

import in.zaidi.engineering.auctions.api.Bid;
@Component
public class BidResourceFallback implements BidResource{

	@Override
	public Bid placeBid(Bid bid) {
		return null;
	}

	@Override
	public List<Bid> getBids(String saleId, boolean winning) {
		return Collections.emptyList();
	}

}


text:
using System;
using System.Collections.Generic;

namespace Rotterdam.Database.Model.Models
{
    public partial class ProviderDataspacePropertyMapping
    {
        public System.Guid ProviderDataspacePropertyMappingId { get; set; }
        public System.Guid ProviderDataspaceMappingId { get; set; }
        public System.Guid ProviderDataspacePropertyId { get; set; }
        public System.Guid ManagedTypePropertyId { get; set; }
    }
}


text:
#include "ctkHighPrecisionTimer.h"

double ctkHighPrecisionTimer::timeConvert = 0.0;


text:
package com.erz.timepicker;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

/**
 * Created by edgarramirez on 2/27/15.
 */
public class MyPagerAdapter extends FragmentStatePagerAdapter {

    int[] layoutIDs = {R.layout.normal_clock, R.layout.color_clocks, R.layout.many_clocks};

    public MyPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return MyFragment.newInstance(layoutIDs[position]);
    }

    @Override
    public int getCount() {
        return layoutIDs.length;
    }
}


text:
package pl.themolka.arcade.filter.matcher;

import pl.themolka.arcade.config.Ref;
import pl.themolka.arcade.dom.Node;
import pl.themolka.arcade.game.Game;
import pl.themolka.arcade.parser.Context;
import pl.themolka.arcade.parser.InstallableParser;
import pl.themolka.arcade.parser.NestedParserName;
import pl.themolka.arcade.parser.Parser;
import pl.themolka.arcade.parser.ParserLibrary;
import pl.themolka.arcade.parser.ParserException;
import pl.themolka.arcade.parser.ParserNotSupportedException;
import pl.themolka.arcade.parser.Produces;
import pl.themolka.arcade.parser.Result;
import pl.themolka.arcade.util.Percentage;

public class ChanceMatcher extends ConfigurableMatcher<Percentage> {
    protected ChanceMatcher(Config config) {
        super(config.value().get().trim());
    }

    @Override
    public boolean find(Object object) {
        if (object instanceof Percentage) {
            return this.matches((Percentage) object);
        } else if (object instanceof Double) {
            return this.matches((Double) object);
        }

        return this.matches(Percentage.random());
    }

    @Override
    public boolean matches(Percentage percentage) {
        return percentage != null && this.getValue().getValue() >= percentage.getValue();
    }

    public boolean matches(Double number) {
        return number != null && this.matches(Percentage.finite(number.doubleValue()));
    }

    @NestedParserName({"chance", "random"})
    @Produces(Config.class)
    public static class MatcherParser extends BaseMatcherParser<Config>
                                      implements InstallableParser {
        private Parser<Percentage> chanceParser;

        @Override
        public void install(ParserLibrary library) throws ParserNotSupportedException {
            super.install(library);
            this.chanceParser = library.type(Percentage.class);
        }

        @Override
        protected Result<Config> parseNode(Context context, Node node, String name, String value) throws ParserException {
            Percentage chance = this.chanceParser.parseWithDefinition(context, node, name, value).orFail();
            if (!chance.isNormalized()) {
                throw this.fail(node, name, value, "Chance must be normalized");
            }

            return Result.fine(node, name, value, new Config() {
                public Ref<Percentage> value() { return Ref.ofProvided(chance); }
            });
        }
    }

    public interface Config extends ConfigurableMatcher.Config<ChanceMatcher, Percentage> {
        @Override
        default ChanceMatcher create(Game game, Library library) {
            return new ChanceMatcher(this);
        }
    }
}


text:
using System.Windows;

namespace ruibarbo.sampleapp
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            DataContext = new MainViewModel();
        }
    }
}


text:
require 'rubygems'
require 'fileutils'
require '/opt/engines/lib/ruby/api/system/errors_api.rb'
require '/opt/engines/lib/ruby/exceptions/engine_builder_exception.rb'

class EngineBuilder < ErrorsApi
#  class << self
#    def instance
#      @@instance ||= self.new
#    end
#  end

  require '/opt/engines/lib/ruby/api/system/container_state_files.rb'

  require_relative 'builder/setup_build_dir.rb'
 #include BuildDirSetup

  require_relative 'builder/builders.rb'
  #include Builders

  require_relative 'builder/save_engine_configuration.rb'
  #include SaveEngineConfiguration

  require_relative 'builder/build_report.rb'
  #include BuildReport

  require_relative 'builder/build_output.rb'
  #include BuildOutput

  require_relative 'builder/check_build_params.rb'
  #include CheckBuildParams

  require_relative 'builder/container_creation.rb'
  #include ContainerCreation

  require_relative 'builder/container_guids.rb'
  #include ContainerGuids

  require_relative '../templater/templater.rb'

  attr_reader     :repoName,
  :build_name,
  :set_environments,
  :environments,
  :runtime,
  :web_port,
  :blueprint,
  :first_build,
  :memory,
  :result_mesg,
  :build_params,
  :data_uid,
  :data_gid,
  :build_error,
  :container,
  :cont_user_id

  attr_accessor :app_is_persistent

  class BuildError < StandardError
    attr_reader :parent_exception, :method_name
    def initialize(parent)
      @container = nil
      @parent_exception = parent
    end
  end

  def error_hash(msg, params = nil)
    {
      level: :error,
      system: 'Engines Builder',
      error_mesg: msg,
      source: caller[1..6],
      error_log: tail_of_build_error_log,
      build_log: tail_of_build_log,
      params: params
    }
  end

  def warning_hash(msg, params = nil)
    {
      level: :warning,
      system: 'Engines Builder',
      error_mesg: msg,
      params: params
    }
  end

  def initialize(params, core_api)
    @core_api = core_api
    @container = nil
    @build_params = params
    @blueprint = nil
    STDERR.puts('Build Params ' + params.to_s)
  end

  def service_resource(service_name, what)
    service_builder.service_resource(service_name, what)
  end

  def volumes
    service_builder.volumes
  end

  def setup_engine_dirs
    SystemUtils.run_system("/opt/engines/system/scripts/system/create_container_dir.sh #{@build_params[:engine_name]}")
  end

  def set_locale
    prefs = SystemPreferences.new
    lang =  @build_params[:lang_code]
    lang = prefs.langauge_code if lang.nil?
    country = @build_params[:country_code]
    country = prefs.country_code if country.nil?

    @blueprint_reader.environments.push(EnvironmentVariable.new({name: 'LANGUAGE',
                                                                value: lang.to_s + '_' + country.to_s + ':' + lang.to_s,
                                                                own_type: 'application'}))
    @blueprint_reader.environments.push(EnvironmentVariable.new({name: 'LANG',
                                                                value: lang.to_s + '_' + country.to_s + '.UTF8',
                                                                own_type: 'application'}))
    @blueprint_reader.environments.push(EnvironmentVariable.new({name: 'LC_ALL',
                                                                value: lang.to_s + '_' + country.to_s + '.UTF8',
                                                                own_type: 'application'}))
  end

  def engine_environment
    @blueprint_reader.environments
  end

  def flag_restart_required(mc)
    restart_reason='Restart to run post install script, as required in blueprint'
    # FixME this should be elsewhere has to occur past fs configurator as not rights to runtime prior
    return
   restart_flag_file = ContainerStateFiles.restart_flag_file(mc)
    FileUtils.mkdir_p(ContainerStateFiles.container_flag_dir(mc)) unless Dir.exist?(ContainerStateFiles.container_flag_dir(mc))
    f = File.new(restart_flag_file, 'w+')

    begin
      f.puts(restart_reason)
    ensure
      f.close
    end
    File.chmod(0660, restart_flag_file)
    FileUtils.chown(nil, 'containers', restart_flag_file)
  end

  def log_error_mesg(m, o = nil)
    log_build_errors(m.to_s + o.to_s)
    super
  end

  def basedir
    @basedir ||= "#{SystemConfig.DeploymentDir}/#{@build_name}"
  end

  def log_exception(e)
    STDERR.puts('Build Exception  ' + e.to_s)
    STDERR.puts('Build Exception  ' + e.backtrace.to_s)
    log_build_errors('Engine Build Aborted Due to:' + e.to_s)
    @result_mesg = 'Error.' + e.to_s
    super
  end

  protected

  def core
    @core ||= EnginesCore.instance
  end

  def process_supplied_envs(custom_env)
   # SystemDebug.debug(SystemDebug.builder, custom_env, custom_env)
    if custom_env.nil?
      @set_environments = {}
      @environments = []
    elsif custom_env.instance_of?(Array)
      @environments = custom_env # happens on rebuild as custom env is saved in env on disk
      # FIXME: need to vet all environment variables
      @set_environments = {}
    else
      custom_env_hash = custom_env
    #  SystemDebug.debug(SystemDebug.builder, :Merged_custom_env, custom_env_hash)
      @set_environments = custom_env_hash
      @environments = []
    end
    true
  end

end


text:
<?php

/*
 * This file is part of the overtrue/wechat.
 *
 * (c) overtrue <i@overtrue.me>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace EasyWeChat\Kernel\Messages;

/**
 * Class Image.
 *
 * @property string $media_id
 */
class File extends Media
{
    /**
     * @var string
     */
    protected $type = 'file';
}