text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```xml
<?xml version="1.0" encoding="utf-8"?>
<Behavior Version="5" NoError="true">
<Node Class="Behaviac.Design.Nodes.Behavior" AgentType="FirstAgent" Domains="" Enable="true" HasOwnPrefabData="false" Id="-1" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<Parameters>
<Parameter Name="_$local_task_param_$_0" Type="System.Int32" DefaultValue="0" DisplayName="param0" Desc="_$local_task_param_$_0" Display="false" />
</Parameters>
<DescriptorRefs value="0:" />
<Connector Identifier="GenericChildren">
<Node Class="PluginBehaviac.Nodes.Task" Enable="true" HasOwnPrefabData="false" Id="3" PrefabName="" PrefabNodeId="-1" Prototype="Self.FirstAgent::t1(0)">
<Comment Background="NoColor" Text="" />
<Connector Identifier="GenericChildren">
<Node Class="PluginBehaviac.Nodes.Sequence" Enable="true" HasOwnPrefabData="false" Id="0" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<Connector Identifier="GenericChildren">
<Node Class="PluginBehaviac.Nodes.Condition" Enable="true" HasOwnPrefabData="false" Id="1" Operator="Equal" Opl="int Self.FirstAgent::_$local_task_param_$_0" Opr="const int 2" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
</Node>
<Node Class="PluginBehaviac.Nodes.Action" Enable="true" HasOwnPrefabData="false" Id="2" Method="Self.FirstAgent::Say("Hello subtree_task!")" PrefabName="" PrefabNodeId="-1" ResultFunctor="""" ResultOption="BT_SUCCESS">
<Comment Background="NoColor" Text="" />
</Node>
</Connector>
</Node>
</Connector>
</Node>
</Connector>
</Node>
</Behavior>
``` | /content/code_sandbox/tutorials/tutorial_5/workspace/behaviors/subtree_task.xml | xml | 2016-11-21T05:08:08 | 2024-08-16T07:18:30 | behaviac | Tencent/behaviac | 2,831 | 464 |
```xml
import queryString from 'querystring';
import { MANDATORY_TRANSACTION_QUERY_PARAMS } from '@config';
import { IFullTxParam } from '@features/SendAssets';
import { IQueryResults, ISimpleTxForm, ITxConfig, TxQueryTypes } from '@types';
import { inputGasLimitToHex, inputGasPriceToHex } from '@utils';
import { mapObjIndexed } from '@vendor';
export function getParam(query: { [key: string]: string }, key: string) {
const keys = Object.keys(query);
const index = keys.findIndex((k) => k.toLowerCase() === key.toLowerCase());
if (index === -1) {
return null;
}
return query[keys[index]];
}
export const createQueryParamsDefaultObject = (txConfig: ITxConfig, queryType: TxQueryTypes) => {
const { to, from, gasLimit, nonce, chainId, value, data } = txConfig.rawTransaction;
const senderAddress = txConfig.senderAccount?.address;
return {
queryType,
from: from ?? senderAddress,
to,
gasLimit,
nonce,
chainId,
value,
data
};
};
export const constructCancelTxQuery = (
txConfig: ITxConfig,
newGasPrice:
| Pick<ISimpleTxForm, 'maxFeePerGas' | 'maxPriorityFeePerGas'>
| Pick<ISimpleTxForm, 'gasPrice'>
): string => {
const cancelTxQueryParams = createQueryParamsDefaultObject(txConfig, TxQueryTypes.CANCEL);
const gas = mapObjIndexed((v) => v && inputGasPriceToHex(v), newGasPrice);
return queryString.stringify({
...cancelTxQueryParams,
to: cancelTxQueryParams.from,
data: '0x',
value: '0x0',
gasLimit: inputGasLimitToHex('21000'),
...gas
});
};
export const constructSpeedUpTxQuery = (
txConfig: ITxConfig,
newGasPrice:
| Pick<ISimpleTxForm, 'maxFeePerGas' | 'maxPriorityFeePerGas'>
| Pick<ISimpleTxForm, 'gasPrice'>
): string => {
const unfinishedSpeedUpTxQueryParams = createQueryParamsDefaultObject(
txConfig,
TxQueryTypes.SPEEDUP
);
const gas = mapObjIndexed((v) => v && inputGasPriceToHex(v), newGasPrice);
return queryString.stringify({
...unfinishedSpeedUpTxQueryParams,
...gas
});
};
export const isQueryValid = (query: IQueryResults | IFullTxParam) => {
const containsGas =
'gasPrice' in query || ('maxFeePerGas' in query && 'maxPriorityFeePerGas' in query);
return MANDATORY_TRANSACTION_QUERY_PARAMS.every((key) => query[key] !== undefined) && containsGas;
};
``` | /content/code_sandbox/src/utils/queries.ts | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 626 |
```xml
import { allToolkitSettings } from 'toolkit/core/settings';
import type { FeatureSettingConfig } from 'toolkit/types/toolkit/features';
interface SettingsSection {
settings: FeatureSettingConfig[];
name: string;
}
const generalSettings: FeatureSettingConfig[] = [];
const accountSettings: FeatureSettingConfig[] = [];
const budgetSettings: FeatureSettingConfig[] = [];
const reportsSettings: FeatureSettingConfig[] = [];
const toolkitReportSettings: FeatureSettingConfig[] = [];
const advancedSettings: FeatureSettingConfig[] = [];
for (const setting of allToolkitSettings) {
switch (setting.section) {
case 'general':
generalSettings.push(setting);
break;
case 'accounts':
accountSettings.push(setting);
break;
case 'budget':
budgetSettings.push(setting);
break;
case 'reports':
reportsSettings.push(setting);
break;
case 'toolkitReports':
toolkitReportSettings.push(setting);
break;
case 'advanced':
advancedSettings.push(setting);
break;
}
}
export const settingsBySection = [
{ name: 'General', settings: generalSettings.sort((a, b) => a.title.localeCompare(b.title)) },
{ name: 'Account', settings: accountSettings.sort((a, b) => a.title.localeCompare(b.title)) },
{ name: 'Budget', settings: budgetSettings.sort((a, b) => a.title.localeCompare(b.title)) },
{ name: 'Reports', settings: reportsSettings.sort((a, b) => a.title.localeCompare(b.title)) },
{
name: 'Toolkit Reports',
settings: toolkitReportSettings.sort((a, b) => a.title.localeCompare(b.title)),
},
{ name: 'Advanced', settings: advancedSettings.sort((a, b) => a.title.localeCompare(b.title)) },
];
``` | /content/code_sandbox/src/core/options/toolkit-options/utils.ts | xml | 2016-01-03T05:38:10 | 2024-08-13T16:08:09 | toolkit-for-ynab | toolkit-for-ynab/toolkit-for-ynab | 1,418 | 384 |
```xml
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/native/GridSamplerUtils.h>
#include <ATen/native/mps/MPSGraphVenturaOps.h>
#include <ATen/native/mps/OperationUtils.h>
#ifndef AT_PER_OPERATOR_HEADERS
#include <ATen/Functions.h>
#include <ATen/NativeFunctions.h>
#else
#include <ATen/ops/grid_sampler_2d.h>
#include <ATen/ops/grid_sampler_2d_native.h>
#endif
namespace at::native {
namespace mps {
static void grid_sampler_2d_mps_impl(Tensor& output,
const Tensor& input,
const Tensor& grid,
int64_t interpolation_mode,
int64_t padding_mode,
bool align_corners) {
// Grid Sampler support has been added in macOS 13.2
using namespace mps;
check_grid_sampler_common(input, grid);
check_grid_sampler_2d(input, grid);
MPSGraphResizeMode samplingMode;
MPSGraphPaddingMode paddingMode;
auto memory_format = input.suggest_memory_format();
MPSGraphTensorNamedDataLayout inputTensorLayout = (memory_format == at::MemoryFormat::Contiguous)
? MPSGraphTensorNamedDataLayoutNCHW
: MPSGraphTensorNamedDataLayoutNHWC;
switch (static_cast<GridSamplerPadding>(padding_mode)) {
case GridSamplerPadding::Zeros:
paddingMode = MPSGraphPaddingModeZero;
break;
case GridSamplerPadding::Border:
TORCH_CHECK(false, "MPS: Unsupported Border padding mode");
break;
case GridSamplerPadding::Reflection:
paddingMode = align_corners == true ? MPSGraphPaddingModeReflect : MPSGraphPaddingModeSymmetric;
break;
default:
TORCH_CHECK(false, "MPS: Unrecognised Padding Mode: ", padding_mode);
}
switch (static_cast<GridSamplerInterpolation>(interpolation_mode)) {
case GridSamplerInterpolation::Bilinear:
samplingMode = MPSGraphResizeBilinear;
break;
case GridSamplerInterpolation::Nearest:
samplingMode = MPSGraphResizeNearest;
break;
case GridSamplerInterpolation::Bicubic:
TORCH_CHECK(false, "MPS: Unsupported Bicubic interpolation");
break;
default:
TORCH_CHECK(false, "MPS: Unrecognised interpolation mode: ", interpolation_mode);
break;
}
MPSStream* stream = getCurrentMPSStream();
struct CachedGraph : public MPSCachedGraph {
CachedGraph(MPSGraph* graph) : MPSCachedGraph(graph) {}
MPSGraphTensor* inputTensor_ = nil;
MPSGraphTensor* gridTensor_ = nil;
MPSGraphTensor* outputTensor_ = nil;
};
@autoreleasepool {
string key = "grid_sampler_2d_mps" + getTensorsStringKey({input, grid}) + ":" + std::to_string(interpolation_mode) +
":" + std::to_string(padding_mode) + ":" + std::to_string(align_corners);
auto cachedGraph = LookUpOrCreateCachedGraph<CachedGraph>(key, [&](auto mpsGraph, auto newCachedGraph) {
MPSGraphTensor* inputTensor = mpsGraphRankedPlaceHolder(mpsGraph, input);
MPSGraphTensor* gridTensor = mpsGraphRankedPlaceHolder(mpsGraph, grid);
MPSGraphTensor* outputTensor = nil;
if (static_cast<GridSamplerInterpolation>(interpolation_mode) == GridSamplerInterpolation::Nearest) {
outputTensor = [mpsGraph sampleGridWithSourceTensor:inputTensor
coordinateTensor:gridTensor
layout:inputTensorLayout
normalizeCoordinates:TRUE
relativeCoordinates:FALSE
alignCorners:align_corners
paddingMode:paddingMode
#if defined(__MAC_13_2)
nearestRoundingMode:MPSGraphResizeNearestRoundingModeRoundToEven
#else
nearestRoundingMode:(MPSGraphResizeNearestRoundingMode)4L
#endif
constantValue:0.0f
name:nil];
} else {
outputTensor = [mpsGraph sampleGridWithSourceTensor:inputTensor
coordinateTensor:gridTensor
layout:inputTensorLayout
normalizeCoordinates:TRUE
relativeCoordinates:FALSE
alignCorners:align_corners
paddingMode:paddingMode
samplingMode:samplingMode
constantValue:0.0f
name:nil];
}
newCachedGraph->inputTensor_ = inputTensor;
newCachedGraph->gridTensor_ = gridTensor;
newCachedGraph->outputTensor_ = outputTensor;
});
Placeholder inputPlaceholder = Placeholder(cachedGraph->inputTensor_, input);
Placeholder gridPlaceholder = Placeholder(cachedGraph->gridTensor_, grid);
Placeholder outputPlaceholder = Placeholder(cachedGraph->outputTensor_, output);
auto feeds = dictionaryFromPlaceholders(inputPlaceholder, gridPlaceholder);
runMPSGraph(stream, cachedGraph->graph(), feeds, outputPlaceholder);
}
}
} // namespace mps
Tensor grid_sampler_2d_mps(const Tensor& input,
const Tensor& grid,
int64_t interpolation_mode,
int64_t padding_mode,
bool align_corners) {
if (!is_macos_13_or_newer(MacOSVersion::MACOS_VER_13_2_PLUS)) {
TORCH_WARN_ONCE("MPS: grid_sampler_2d op is supported natively starting from macOS 13.2. ",
"Falling back on CPU. This may have performance implications.");
return at::grid_sampler_2d(input.to("cpu"), grid.to("cpu"), interpolation_mode, padding_mode, align_corners)
.clone()
.to("mps");
}
auto in_size = input.sizes();
auto grid_size = grid.sizes();
auto output = at::empty({in_size[0], in_size[1], grid_size[1], grid_size[2]}, input.options());
mps::grid_sampler_2d_mps_impl(output, input, grid, interpolation_mode, padding_mode, align_corners);
return output;
}
} // namespace at::native
``` | /content/code_sandbox/aten/src/ATen/native/mps/operations/GridSampler.mm | xml | 2016-08-13T05:26:41 | 2024-08-16T19:59:14 | pytorch | pytorch/pytorch | 81,372 | 1,310 |
```xml
export * from './searchminus';
``` | /content/code_sandbox/src/app/components/icons/searchminus/public_api.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 8 |
```xml
<fxlayout>
<page name="Curves">
<control>curve</control>
</page>
</fxlayout>
``` | /content/code_sandbox/stuff/profiles/layouts/fxs/STD_toneCurveFx.xml | xml | 2016-03-18T17:55:48 | 2024-08-15T18:11:38 | opentoonz | opentoonz/opentoonz | 4,445 | 29 |
```xml
/**
* this plugin validates documents before they can be inserted into the RxCollection.
* It's using z-schema as jsonschema-validator
* @link path_to_url
*/
import ZSchema from 'z-schema';
import type { RxJsonSchema } from '../../types/index.d.ts';
import { wrappedValidateStorageFactory } from '../../plugin-helpers.ts';
export function getValidator(
schema: RxJsonSchema<any>
) {
const validatorInstance = new (ZSchema as any)();
const validator = (obj: any) => {
validatorInstance.validate(obj, schema);
return validatorInstance;
};
return (docData: any) => {
const useValidator = validator(docData);
if (useValidator === true) {
return;
}
const errors: ZSchema.SchemaErrorDetail[] = (useValidator as any).getLastErrors();
if (errors) {
const formattedZSchemaErrors = (errors as any).map(({
title,
description,
message,
path
}: any) => ({
title,
description,
message,
path
}));
return formattedZSchemaErrors;
} else {
return [];
}
};
}
export const wrappedValidateZSchemaStorage = wrappedValidateStorageFactory(
getValidator,
'z-schema'
);
``` | /content/code_sandbox/src/plugins/validate-z-schema/index.ts | xml | 2016-12-02T19:34:42 | 2024-08-16T15:47:20 | rxdb | pubkey/rxdb | 21,054 | 273 |
```xml
import { Component, OnDestroy, OnInit } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { Subject, takeUntil } from "rxjs";
import { FileDownloadService } from "@bitwarden/common/platform/abstractions/file-download/file-download.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import { BaseEventsComponent } from "@bitwarden/web-vault/app/admin-console/common/base.events.component";
import { EventService } from "@bitwarden/web-vault/app/core";
import { EventExportService } from "@bitwarden/web-vault/app/tools/event-export";
import { ServiceAccountEventLogApiService } from "./service-account-event-log-api.service";
@Component({
selector: "sm-service-accounts-events",
templateUrl: "./service-accounts-events.component.html",
})
export class ServiceAccountEventsComponent
extends BaseEventsComponent
implements OnInit, OnDestroy
{
exportFileName = "machine-account-events";
private destroy$ = new Subject<void>();
private serviceAccountId: string;
constructor(
eventService: EventService,
private serviceAccountEventsApiService: ServiceAccountEventLogApiService,
private route: ActivatedRoute,
i18nService: I18nService,
exportService: EventExportService,
platformUtilsService: PlatformUtilsService,
logService: LogService,
fileDownloadService: FileDownloadService,
) {
super(
eventService,
i18nService,
exportService,
platformUtilsService,
logService,
fileDownloadService,
);
}
async ngOnInit() {
// eslint-disable-next-line rxjs/no-async-subscribe
this.route.params.pipe(takeUntil(this.destroy$)).subscribe(async (params) => {
this.serviceAccountId = params.serviceAccountId;
await this.load();
});
}
async load() {
await this.refreshEvents();
this.loaded = true;
}
protected requestEvents(startDate: string, endDate: string, continuationToken: string) {
return this.serviceAccountEventsApiService.getEvents(
this.serviceAccountId,
startDate,
endDate,
continuationToken,
);
}
protected getUserName() {
return {
name: this.i18nService.t("machineAccount") + " " + this.serviceAccountId,
email: "",
};
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
}
``` | /content/code_sandbox/bitwarden_license/bit-web/src/app/secrets-manager/service-accounts/event-logs/service-accounts-events.component.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 553 |
```xml
import { css, html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { when } from 'lit/directives/when.js';
import type { State } from '../../../commitDetails/protocol';
import { commitActionStyles } from './commit-action.css';
@customElement('gl-inspect-nav')
export class GlInspectNav extends LitElement {
static override styles = [
commitActionStyles,
css`
*,
*::before,
*::after {
box-sizing: border-box;
}
:host {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.2rem;
}
:host([pinned]) {
background-color: var(--color-alert-warningBackground);
box-shadow: 0 0 0 0.1rem var(--color-alert-warningBorder);
border-radius: 0.3rem;
}
:host([pinned]) .commit-action:hover,
:host([pinned]) .commit-action.is-active {
background-color: var(--color-alert-warningHoverBackground);
}
.group {
display: flex;
flex: none;
flex-direction: row;
max-width: 100%;
}
.sha {
margin: 0 0.5rem 0 0.25rem;
}
`,
];
@property({ type: Boolean, reflect: true })
pinned = false;
@property({ type: Boolean })
uncommitted = false;
@property({ type: Object })
navigation?: State['navigationStack'];
@property()
shortSha = '';
@property()
stashNumber?: string;
get navigationState() {
if (this.navigation == null) {
return {
back: false,
forward: false,
};
}
const actions = {
back: true,
forward: true,
};
if (this.navigation.count <= 1) {
actions.back = false;
actions.forward = false;
} else if (this.navigation.position === 0) {
actions.back = true;
actions.forward = false;
} else if (this.navigation.position === this.navigation.count - 1) {
actions.back = false;
actions.forward = true;
}
return actions;
}
handleAction(e: Event) {
const targetEl = e.target as HTMLElement;
const action = targetEl.dataset.action;
if (action == null) return;
if (action === 'commit-actions') {
const altKey = e instanceof MouseEvent ? e.altKey : false;
this.fireEvent('commit-actions', { action: targetEl.dataset.actionType, alt: altKey });
} else {
this.fireEvent(action);
}
}
fireEvent(type: string, detail?: Record<string, unknown>) {
this.dispatchEvent(new CustomEvent(`gl-${type}`, { detail: detail }));
}
override render() {
const pinLabel = this.pinned
? html`Unpin this Commit<br />Restores Automatic Following`
: html`Pin this Commit<br />Suspends Automatic Following`;
let forwardLabel = 'Forward';
let backLabel = 'Back';
if (this.navigation?.hint) {
if (!this.pinned) {
forwardLabel += ` - ${this.navigation.hint}`;
} else {
backLabel += ` - ${this.navigation.hint}`;
}
}
return html`
<div class="group">
${when(
!this.uncommitted,
() => html`
<gl-tooltip hoist>
<a
class="commit-action"
href="#"
data-action="commit-actions"
data-action-type="sha"
@click=${this.handleAction}
>
<code-icon
icon="${this.stashNumber != null ? 'gl-stashes-view' : 'git-commit'}"
></code-icon>
<span class="sha" data-region="shortsha"
>${this.stashNumber != null ? `#${this.stashNumber}` : this.shortSha}</span
>
</a>
<span slot="content"
>Copy ${this.stashNumber != null ? 'Stash Name' : 'SHA'}<br />[] Copy Message</span
>
</gl-tooltip>
`,
)}
</div>
<div class="group">
<gl-tooltip hoist
><a
class="commit-action${this.pinned ? ' is-active' : ''}"
href="#"
data-action="pin"
@click=${this.handleAction}
><code-icon
icon="${this.pinned ? 'gl-pinned-filled' : 'pin'}"
data-region="commit-pin"
></code-icon></a
><span slot="content">${pinLabel}</span></gl-tooltip
>
<gl-tooltip hoist content="${backLabel}"
><a
class="commit-action${this.navigationState.back ? '' : ' is-disabled'}"
aria-disabled="${this.navigationState.back ? 'false' : 'true'}"
href="#"
data-action="back"
@click=${this.handleAction}
><code-icon icon="arrow-left" data-region="commit-back"></code-icon></a
></gl-tooltip>
${when(
this.navigationState.forward,
() => html`
<gl-tooltip hoist content="${forwardLabel}"
><a class="commit-action" href="#" data-action="forward" @click=${this.handleAction}
><code-icon icon="arrow-right" data-region="commit-forward"></code-icon></a
></gl-tooltip>
`,
)}
<!-- TODO: add a spacer -->
${when(
this.uncommitted,
() => html`
<gl-tooltip hoist content="Open SCM view"
><a
class="commit-action"
href="#"
data-action="commit-actions"
data-action-type="scm"
@click=${this.handleAction}
><code-icon icon="source-control"></code-icon></a
></gl-tooltip>
`,
)}
<gl-tooltip hoist content="Open in Commit Graph"
><a
class="commit-action"
href="#"
data-action="commit-actions"
data-action-type="graph"
@click=${this.handleAction}
><code-icon icon="gl-graph"></code-icon></a
></gl-tooltip>
${when(
!this.uncommitted,
() => html`
<gl-tooltip hoist content="Show Commit Actions"
><a
class="commit-action"
href="#"
data-action="commit-actions"
data-action-type="more"
@click=${this.handleAction}
><code-icon icon="kebab-vertical"></code-icon></a
></gl-tooltip>
`,
)}
</div>
`;
}
}
declare global {
interface HTMLElementTagNameMap {
'gl-inspect-nav': GlInspectNav;
}
}
``` | /content/code_sandbox/src/webviews/apps/commitDetails/components/gl-inspect-nav.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 1,597 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="112dp"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:layoutDirection="ltr"
android:paddingRight="0dp"
android:paddingLeft="0dp"
style="@style/Widget.AppCompat.Button.Small"
tools:ignore="RtlHardcoded">
<ImageView
android:id="@+id/leftSideImageView"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
tools:src="@drawable/ic_cycleway_track_dual"
android:rotation="180"/>
<ImageView
android:id="@+id/rightSideImageView"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:layout_marginLeft="-24dp"
tools:src="@drawable/ic_cycleway_sidewalk"
tools:ignore="RtlHardcoded" />
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/view_street_side_last_answer_button.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 262 |
```xml
import type { ReactElement } from 'react';
import React, { Fragment } from 'react';
import { styled } from '@storybook/core/theming';
import { ScrollArea } from './ScrollArea';
const Block = styled.span({
display: 'inline-block',
height: 40,
width: 40,
border: '1px solid silver',
lineHeight: '40px',
textAlign: 'center',
fontSize: 9,
});
const Wrapper = styled.div({
whiteSpace: 'nowrap',
lineHeight: '0px',
width: 500,
height: 500,
overflow: 'hidden',
});
const list = (filler: (data: number) => ReactElement) => {
const data = [];
for (let i = 0; i < 20; i++) {
data.push(filler(i));
}
return data;
};
export default {
component: ScrollArea,
decorators: [(storyFn: () => any) => <Wrapper>{storyFn()}</Wrapper>],
};
export const Vertical = () => (
<ScrollArea vertical>
{list((i) => (
<Fragment key={i}>
<Block>{i}</Block>
<br />
</Fragment>
))}
</ScrollArea>
);
export const Horizontal = () => (
<ScrollArea horizontal>
<div style={{ padding: 5 }}>
{list((i) => (
<Block key={i}>{i}</Block>
))}
</div>
</ScrollArea>
);
export const Both = () => (
<ScrollArea horizontal vertical>
{list((i) => (
<Fragment key={i}>
{list((ii) => (
<Block key={ii}>{ii * i}</Block>
))}
<br />
</Fragment>
))}
</ScrollArea>
);
export const Neither = () => (
<ScrollArea>
{list((i) => (
<Fragment key={i}>
{list((ii) => (
<Block key={ii}>{ii * i}</Block>
))}
<br />
</Fragment>
))}
</ScrollArea>
);
export const WithOuterBorder = () => (
<ScrollArea horizontal vertical>
<div
style={{
width: 2000,
height: 2000,
border: '10px solid orangered',
background: `url('data:image/png;base64,your_sha256_hashtxGGayTN6LTrOO//PMmlAfvOgIEkFwEcZ71a7ep8muBjd2k4re4eVpHsaS1CeKH1is1u1s86slhcrP/261r62oGInB6LLBbNb8+PRQ75x/+3bArcPYh8vu4dZjEMyELk7Hjz0JwBYdGEddMuHmnXWPixDv/NqrkAOVw0HKJtDoAcHTZcerAQOTgQ4Rv5+ysQHbKvWyReAGUt8vIi8vQi8vzS/H1fQD08iny6MnLIG0BOGgJM2SD68lAEIPhZuj09i9w/ijw+lx55fDze+8dXKyDokJP9cAjEP142QEzR4B645v5J5PGp/hsfnkQ+your_sha256_hashyour_sha256_hashh4ZDetowh6wORVbLuoBgVq+OSk61zliIr6u7cmPf3olc3OYCctyYmqUaIqqG5VTq+7rjILoApUfum195+your_sha256_hashNJNJQk2xVgoZKywnOZS6hDtqBVR+IMfTgcd4uRvQ0Qhqt57Q+TkKHoA+your_sha256_hashOmwna4a7/t7aTmWF4DcPYkQY+uAMgLIauOo4bABiLdhncEd31v7etMQ1doUEJ57Xovgl7TjLNZ/Zz8EMcLAiw0L4SOESKo0yv0sQxF/b9yhAHi5hHgZDqc2wHh+DuGaxfrnf62bMHS7b6Ay7fRI5PCwCVPz83TZYBb+tOHsGMCxVfLDWR0v37oya/T3cEkXkOi7GkD6Wrz/sTwQOYusoz4AlXVBOuw9wHjtvgUGQQCxBbMGYfY1psfigrMGTOd+QJBUHyOZj7ka7x5aJo//gg7aArEdIGwcsVHUAsg/62ZSzI2W903dl2+/7HfyBj+FTbKb+95f9wNyzH5EpDOIa8W7h6mThkN+PEvtvekXxGar1/grYpOx4p0/5Uj9vQJI38CdMr6baP+q4Se+3dqiwiZAmPj5ajtuRRjF413jWMacVpII8Vh3jyJs+your_sha256_hashyour_sha256_hashiH1g1P7QYjUuJKGfzQclPqOGMBYjMYJFIB3cbUxXLb0YI/NNArIr/9eBz8jpNIMhDVYWR4v+8PxdsTYSoRd/QlfWHb0mCdGRo2GYo+dxC09GIlISKwLCYMmFqOLhSzW//your_sha256_hashyour_sha256_hashEPw6oMAyAVQyZeDkH05gRKh4BkcaSmDu0NkL+c1dv/your_sha256_hashzlImRR+4JOzcpT4gzffUEFnvApBak4/your_sha256_hashkueF2KNqb4ofA4h4Hj3AMltYUeQ0WUPq4KRwziQ7+6P/TN96UsxByour_sha512_hash/UjNR/L+your_sha512_hash/your_sha256_hashIIXOhkzpl+yiI75AibMeu97T9/sss7ckIHxcreCehzBYY+your_sha256_hashB0PPRJCItzZK3WS9pxs8LvOWmku+ZVazt113t3cQsJCDV9lyxAanGIEgVzOJSByqFihWdTE/your_sha256_hashg3jdQyae2L2JrjaSu8fNJ8SkWQs/yQKQEBGEBRU9uyk+dZAJZnNNxRApSs0Ik3r9cy2b6+gKEprHNR+your_sha256_hashgJk3xwSAzMnS8yTpKdzyQJkDhyyxS0ofdJBMytL5HIxpqu3hlZW+your_sha256_hashUOVfo1zH7veb8l617GyHMP3AIhONMTdOke6dxE09/ceXZIFiFeHIELIoSVw+Jqi2aZrdokQl90go51TqvrTupOnSRk1j0HE34/nTr0Ti1+SFcvy6JCSm0+your_sha256_hashyour_sha256_hasheEyCs4tq5xXDsl/your_sha256_hashMWyXndEIulcIA7lqUVdCxhidqAeKOstZW7xfTVLeEeLho/sONJtK6dv+sN6NVO9DYB8jJYFmQcEK3Xa9nbhqt+your_sha256_hashW/your_sha256_hashQgHkSm+tiqBAyCo/HFNCkr2NrH6qm7OcSbaE1pVio4TNEABkUfqoi2Pke4kJI/lEvPOD2c+your_sha256_hashVdxIkZ8vvG1fnATUlisf9Fi/O1VFaGAyour_sha512_hash+your_sha512_hashmc7+3bJMHFFn5wnCvNzSXH3pmgmEk8+vuGg4b62Xlak3LfYM2W2M+8Trp24t9e3xzIkaTu+c7ctZT585VHQA8tNoS9vWbz3emfhzrXQXgymAdid/aMOamUBCPrkkcsEmhvb0gChp/cuXHQJossSD7NMbl999bibxzVQQIh/8SfKERgHJL5ckhdbZaUS671fJtkFHbGukQJPeElTh7hTvVNadhyQ+LaE3Kvz3stFxCkcF1/ggvNpLYIAIJ8uRS7fFs5MByT36rxwOSWXVRpryKcQaLI+XMRyv72qPUf+sJ9+vxC54jz89m2fO0RWdP1q7tV5anl93GPdrCzg1o1V1C2W7Dny97QW+c/FtpXVfpsBkAwdEhMCqyScOXkH96jH3z1UlxdxZZ0LoP73a2MydypGTKPU+1ZmUPRcQbSvwx2J7KKFaYJ/1tM8qbbc7PnpqrfgTboOIZQS32WYOJ/RbsFQcNaVL/H+XWNQFpBI7lgYxJomxTsZ989cQAhne67O2zVpfk9SNMpxLgo/3MS5uZ92dAqelCcFpOOD7HYMY7N3dSByknFBcQow4VAnltgEexjd7yGsE8r/your_sha256_hashsec0WEnEFq7wNBI6+hpcgPJG3MH9hKE0WvEKyNtt6B2ARKeRpgSkO8Fw+your_sha512_hash+h7C9vrS9vq7ENzCGxul0vHBP+your_sha512_hash/your_sha512_hash==')`,
}}
/>
</ScrollArea>
);
export const CustomOffset = () => (
<ScrollArea horizontal vertical offset={20}>
{list((i) => (
<Fragment key={i}>
{list((ii) => (
<Block key={ii}>{ii * i}</Block>
))}
<br />
</Fragment>
))}
</ScrollArea>
);
export const CustomSize = () => (
<ScrollArea horizontal vertical scrollbarSize={20}>
{list((i) => (
<Fragment key={i}>
{list((ii) => (
<Block key={ii}>{ii * i}</Block>
))}
<br />
</Fragment>
))}
</ScrollArea>
);
``` | /content/code_sandbox/code/core/src/components/components/ScrollArea/ScrollArea.stories.tsx | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 2,504 |
```xml
import { useMemo } from 'react';
import classNames from 'classnames';
import { HotKeys } from 'react-hotkeys';
import { replyComposeById } from 'mastodon/actions/compose';
import { toggleReblog, toggleFavourite } from 'mastodon/actions/interactions';
import {
navigateToStatus,
toggleStatusSpoilers,
} from 'mastodon/actions/statuses';
import type { IconProp } from 'mastodon/components/icon';
import { Icon } from 'mastodon/components/icon';
import Status from 'mastodon/containers/status_container';
import { useAppSelector, useAppDispatch } from 'mastodon/store';
import { NamesList } from './names_list';
import type { LabelRenderer } from './notification_group_with_status';
export const NotificationWithStatus: React.FC<{
type: string;
icon: IconProp;
iconId: string;
accountIds: string[];
statusId: string | undefined;
count: number;
labelRenderer: LabelRenderer;
unread: boolean;
}> = ({
icon,
iconId,
accountIds,
statusId,
count,
labelRenderer,
type,
unread,
}) => {
const dispatch = useAppDispatch();
const label = useMemo(
() =>
labelRenderer({
name: <NamesList accountIds={accountIds} total={count} />,
}),
[labelRenderer, accountIds, count],
);
const isPrivateMention = useAppSelector(
(state) => state.statuses.getIn([statusId, 'visibility']) === 'direct',
);
const handlers = useMemo(
() => ({
open: () => {
dispatch(navigateToStatus(statusId));
},
reply: () => {
dispatch(replyComposeById(statusId));
},
boost: () => {
dispatch(toggleReblog(statusId));
},
favourite: () => {
dispatch(toggleFavourite(statusId));
},
toggleHidden: () => {
dispatch(toggleStatusSpoilers(statusId));
},
}),
[dispatch, statusId],
);
if (!statusId) return null;
return (
<HotKeys handlers={handlers}>
<div
role='button'
className={classNames(
`notification-ungrouped focusable notification-ungrouped--${type}`,
{
'notification-ungrouped--unread': unread,
'notification-ungrouped--direct': isPrivateMention,
},
)}
tabIndex={0}
>
<div className='notification-ungrouped__header'>
<div className='notification-ungrouped__header__icon'>
<Icon icon={icon} id={iconId} />
</div>
{label}
</div>
<Status
// @ts-expect-error -- <Status> is not yet typed
id={statusId}
contextType='notifications'
withDismiss
skipPrepend
avatarSize={40}
unfocusable
/>
</div>
</HotKeys>
);
};
``` | /content/code_sandbox/app/javascript/mastodon/features/notifications_v2/components/notification_with_status.tsx | xml | 2016-02-22T15:01:25 | 2024-08-16T19:27:35 | mastodon | mastodon/mastodon | 46,560 | 649 |
```xml
<table><row><A0 value="1" /><A1 value="2" /></row><row><A0 value="3" /><A1 value="4" /></row><row><A0 value="5" /><A1 value="6" /></row></table>
``` | /content/code_sandbox/pyomo/dataportal/tests/set2.baseline.xml | xml | 2016-05-27T19:33:45 | 2024-08-16T08:09:25 | pyomo | Pyomo/pyomo | 1,945 | 59 |
```xml
import {Injectable, ProviderScope, Scope} from "@tsed/di";
import {IncomingHttpHeaders, IncomingMessage} from "http";
import type {PlatformContext} from "../domain/PlatformContext.js";
import type {PlatformResponse} from "./PlatformResponse.js";
declare global {
namespace TsED {
// @ts-ignore
export interface Request {
id: string;
}
}
}
/**
* Platform Request abstraction layer.
* @platform
*/
@Injectable()
@Scope(ProviderScope.INSTANCE)
export class PlatformRequest<Req extends {[key: string]: any} = any> {
constructor(readonly $ctx: PlatformContext) {}
/**
* The current @@PlatformResponse@@.
*/
get response(): PlatformResponse {
return this.$ctx.response;
}
get raw(): Req {
return this.$ctx.event.request as any;
}
get secure(): boolean {
return this.raw.secure;
}
get host(): string {
return this.get("host");
}
get protocol(): string {
return this.raw.protocol;
}
/**
* Get the url of the request.
*
* Is equivalent of `express.response.originalUrl || express.response.url`.
*/
get url(): string {
return this.raw.originalUrl || this.raw.url;
}
get headers(): IncomingHttpHeaders {
return this.raw.headers;
}
get method(): string {
return this.raw.method;
}
/**
* Contains key-value pairs of data submitted in the request body. By default, it is `undefined`, and is populated when you use
* `body-parsing` middleware such as `express.json()` or `express.urlencoded()`.
*/
get body(): any {
return this.raw.body;
}
get rawBody(): any {
return this.raw.rawBody || this.raw.body;
}
/**
* When using `cookie-parser` middleware, this property is an object that contains cookies sent by the request.
* If the request contains no cookies, it defaults to `{}`.
*/
get cookies(): {[key: string]: any} {
return this.raw.cookies;
}
/**
* This property is an object containing properties mapped to the named route `parameters`.
* For example, if you have the route `/user/:name`, then the `name` property is available as `req.params.name`.
* This object defaults to `{}`.
*/
get params(): {[key: string]: any} {
return this.raw.params;
}
/**
* This property is an object containing a property for each query string parameter in the route.
* When query parser is set to disabled, it is an empty object `{}`, otherwise it is the result of the configured query parser.
*/
get query(): {[key: string]: any} {
return this.raw.query;
}
/**
* This property is an object containing a property for each session attributes set by any code.
* It requires to install a middleware like express-session to work.
*/
get session(): {[key: string]: any} {
return this.raw.session as any;
}
get files() {
return this.raw.files;
}
get route() {
return this.$ctx.handlerMetadata?.path;
}
/**
* Return the original request framework instance
*/
get request() {
return this.getRequest();
}
/**
* Return the original request node.js instance
*/
get req() {
return this.getReq();
}
/**
* Returns the HTTP request header specified by field. The match is case-insensitive.
*
* ```typescript
* request.get('Content-Type') // => "text/plain"
* ```
*
* @param name
*/
get(name: string) {
return this.raw.get(name);
}
getHeader(name: string) {
return this.get(name);
}
/**
* Checks if the specified content types are acceptable, based on the requests Accept HTTP header field. The method returns the best match, or if none of the specified content types is acceptable, returns false (in which case, the application should respond with 406 "Not Acceptable").
*
* The type value may be a single MIME type string (such as application/json), an extension name such as json, a comma-delimited list, or an array. For a list or array, the method returns the best match (if any).
*
* @param mime
*/
accepts(mime: string): string | false;
accepts(mime: string[]): string[] | false;
accepts(mime?: string | string[]): string | string[] | false {
// @ts-ignore
return this.raw.accepts(mime);
}
isAborted() {
return this.raw.aborted;
}
/**
* Return the Framework response object (express, koa, etc...)
*/
getRequest<R = Req>(): R {
return this.raw as any;
}
/**
* Return the Node.js response object
*/
getReq(): IncomingMessage {
return this.$ctx.event.request;
}
}
``` | /content/code_sandbox/packages/platform/common/src/services/PlatformRequest.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 1,093 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="..">
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
</Filter>
<Filter Include="..\..">
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..">
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..\..">
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..\..\third_party">
<UniqueIdentifier>{D6C6CEA7-AAD0-03AD-2394-AC6FCBF8A498}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..\..\third_party\WebKit">
<UniqueIdentifier>{1919EB75-19A6-2BAD-ABB0-47BF57C87A0F}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..\..\third_party\WebKit\Source">
<UniqueIdentifier>{26D65320-41C3-1A61-26C0-583D658C7F16}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..\..\third_party\WebKit\Source\build">
<UniqueIdentifier>{D5519164-BF26-36DA-740B-76CEFC1827F4}</UniqueIdentifier>
</Filter>
<Filter Include="..\..\..\..\third_party\WebKit\Source\build\win">
<UniqueIdentifier>{47FC5EC4-15EB-E92F-89D7-AFE51CF838A9}</UniqueIdentifier>
</Filter>
<Filter Include="testing">
<UniqueIdentifier>{681E52FB-4BB5-C8E2-1D1A-B7C4F2495A5E}</UniqueIdentifier>
</Filter>
<Filter Include="testing">
<UniqueIdentifier>{681E52FB-4BB5-C8E2-1D1A-B7C4F2495A5E}</UniqueIdentifier>
</Filter>
<Filter Include="testing">
<UniqueIdentifier>{681E52FB-4BB5-C8E2-1D1A-B7C4F2495A5E}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\..\third_party\WebKit\Source\build\win\Precompile.cpp">
<Filter>..\..\..\..\third_party\WebKit\Source\build\win</Filter>
</ClCompile>
<ClCompile Include="testing\WTFTestHelpers.cpp">
<Filter>testing</Filter>
</ClCompile>
<ClInclude Include="testing\WTFTestHelpers.h">
<Filter>testing</Filter>
</ClInclude>
<ClInclude Include="testing\WTFUnitTestHelpersExport.h">
<Filter>testing</Filter>
</ClInclude>
<None Include="wtf_tests.gyp"/>
</ItemGroup>
</Project>
``` | /content/code_sandbox/third_party/WebKit/Source/wtf/wtf_unittest_helpers.vcxproj.filters | xml | 2016-09-27T03:41:10 | 2024-08-16T10:42:57 | miniblink49 | weolar/miniblink49 | 7,069 | 762 |
```xml
import { SerializedDocWithSupplemental } from '../../../interfaces/db/doc'
import { SerializedFolderWithBookmark } from '../../../interfaces/db/folder'
import { SerializedUserTeamPermissions } from '../../../interfaces/db/userTeamPermissions'
import { SerializedWorkspace } from '../../../interfaces/db/workspace'
import { MockDoc } from './mockEntities/docs'
import { getMockFolderById, MockFolder } from './mockEntities/folders'
import { MockPermission } from './mockEntities/permissions'
import { getMockTeamById } from './mockEntities/teams'
import { getMockUserById } from './mockEntities/users'
import { MockWorkspace } from './mockEntities/workspaces'
export function populateFolder(
mockFolder: MockFolder
): SerializedFolderWithBookmark {
return {
...mockFolder,
pathname: '',
positions: { id: 'mock', orderedIds: [], updatedAt: '' },
childDocs: [],
childFolders: [],
childDocsIds: [],
childFoldersIds: [],
bookmarked: false,
}
}
export function populatePermissions(
mockPermissions: MockPermission
): SerializedUserTeamPermissions {
const { teamId, userId } = mockPermissions
const user = getMockUserById(userId)!
const team = getMockTeamById(teamId)!
return {
...mockPermissions,
user,
team,
}
}
export function populateDoc(mockDoc: MockDoc): SerializedDocWithSupplemental {
const team = getMockTeamById(mockDoc.teamId)!
return {
...mockDoc,
folderPathname: getFolderPathname(mockDoc.parentFolderId),
tags: [],
bookmarked: false,
team,
props: {},
}
}
export function getFolderPathname(folderId?: string) {
if (folderId == null) {
return '/'
}
const folderNames = []
let parentFolder = getMockFolderById(folderId)
while (parentFolder != null) {
folderNames.push(parentFolder.name)
parentFolder =
parentFolder.parentFolderId != null
? getMockFolderById(parentFolder.parentFolderId)
: undefined
}
return '/' + folderNames.reverse().join('/')
}
export function populateWorkspace(
mockWorkspace: MockWorkspace
): SerializedWorkspace {
return {
...mockWorkspace,
}
}
``` | /content/code_sandbox/src/cloud/api/mock/db/populate.ts | xml | 2016-11-19T14:30:34 | 2024-08-16T03:13:45 | BoostNote-App | BoostIO/BoostNote-App | 3,745 | 482 |
```xml
export * from './ITilesProps';
export * from './ITileInfo';
export * from './Tiles';
``` | /content/code_sandbox/samples/react-tiles-v2/src/webparts/Tiles/components/index.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 23 |
```xml
///
///
///
/// path_to_url
///
/// Unless required by applicable law or agreed to in writing, software
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
///
import { ComponentFactory, ComponentFactoryResolver, Injectable, Type } from '@angular/core';
import { deepClone } from '@core/utils';
import { IStateControllerComponent } from '@home/components/dashboard-page/states/state-controller.models';
export interface StateControllerData {
factory: ComponentFactory<IStateControllerComponent>;
}
@Injectable()
export class StatesControllerService {
statesControllers: {[stateControllerId: string]: StateControllerData} = {};
statesControllerStates: {[stateControllerInstanceId: string]: any} = {};
constructor(private componentFactoryResolver: ComponentFactoryResolver) {
}
public registerStatesController(stateControllerId: string, stateControllerComponent: Type<IStateControllerComponent>): void {
const componentFactory = this.componentFactoryResolver.resolveComponentFactory(stateControllerComponent);
this.statesControllers[stateControllerId] = {
factory: componentFactory
};
}
public getStateControllers(): {[stateControllerId: string]: StateControllerData} {
return this.statesControllers;
}
public getStateController(stateControllerId: string): StateControllerData {
return this.statesControllers[stateControllerId];
}
public preserveStateControllerState(stateControllerInstanceId: string, state: any) {
this.statesControllerStates[stateControllerInstanceId] = deepClone(state);
}
public withdrawStateControllerState(stateControllerInstanceId: string): any {
const state = this.statesControllerStates[stateControllerInstanceId];
delete this.statesControllerStates[stateControllerInstanceId];
return state;
}
public cleanupPreservedStates() {
this.statesControllerStates = {};
}
}
``` | /content/code_sandbox/ui-ngx/src/app/modules/home/components/dashboard-page/states/states-controller.service.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 361 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<attr name="materialOutlinedButtonStyle" format="reference" />
<attr name="materialSliderStyle" format="reference" />
<attr name="materialProgressBarHorizontalStyle" format="reference" />
<attr name="materialProgressBarCircularStyle" format="reference" />
<attr name="materialCheckBoxStyle" format="reference" />
<!-- Material Base Theme -->
<style name="XamarinFormsMaterialTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<item name="materialButtonStyle">@style/XamarinFormsMaterialButton</item>
<item name="materialOutlinedButtonStyle">@style/XamarinFormsMaterialButtonOutlined</item>
<item name="materialSliderStyle">@style/XamarinFormsMaterialSlider</item>
<item name="materialProgressBarHorizontalStyle">@style/XamarinFormsMaterialProgressBarHorizontal</item>
<item name="materialProgressBarCircularStyle">@style/XamarinFormsMaterialProgressBarCircular</item>
<item name="materialCheckBoxStyle">@style/XamarinFormsMaterialCheckBox</item>
</style>
<!-- Material Sliders -->
<style name="XamarinFormsMaterialSlider" parent="Widget.AppCompat.SeekBar">
</style>
<!-- Material Progress Bars -->
<style name="XamarinFormsMaterialProgressBarHorizontal" parent="Widget.AppCompat.ProgressBar.Horizontal">
<item name="android:indeterminateOnly">false</item>
<item name="android:progressDrawable">@drawable/MaterialProgressBar</item>
</style>
<style name="XamarinFormsMaterialProgressBarCircular" parent="Widget.AppCompat.ProgressBar">
</style>
<!-- Material Buttons (All Styles) -->
<style name="XamarinFormsMaterialButton" parent="Widget.MaterialComponents.Button">
<item name="android:insetTop">0dp</item>
<item name="android:insetBottom">0dp</item>
<item name="android:minHeight">36dp</item>
<item name="android:paddingTop">8dp</item>
<item name="android:paddingBottom">8dp</item>
</style>
<style name="XamarinFormsMaterialButtonOutlined" parent="Widget.MaterialComponents.Button.OutlinedButton">
<item name="android:insetTop">0dp</item>
<item name="android:insetBottom">0dp</item>
<item name="android:minHeight">36dp</item>
<item name="android:paddingTop">8dp</item>
<item name="android:paddingBottom">8dp</item>
</style>
<style name="XamarinFormsMaterialEntryFilled" parent="Widget.MaterialComponents.TextInputLayout.FilledBox">
</style>
<!-- Material Checkbox -->
<style name="Widget.MaterialComponents.CompoundButton.CheckBox" parent="Widget.AppCompat.CompoundButton.CheckBox">
<!-- path_to_url#L18
this will become an attribute that's part of the material style once upgraded to android x
-->
<item name="android:minWidth">48dp</item>
<item name="android:minHeight">48dp</item>
</style>
<style name="XamarinFormsMaterialCheckBox" parent="Widget.MaterialComponents.CompoundButton.CheckBox">
</style>
</resources>
``` | /content/code_sandbox/Xamarin.Forms.Material.Android/Resources/values/styles.xml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 704 |
```xml
import { IChartProps, ISankeyChartProps, SankeyChart } from '@fluentui/react-charting';
import * as React from 'react';
interface ISankeyChartBasicState {
width: number;
height: number;
}
export class SankeyChartBasicExample extends React.Component<{}, ISankeyChartBasicState> {
constructor(props: ISankeyChartProps) {
super(props);
this.state = {
width: 820,
height: 412,
};
}
public render(): JSX.Element {
return <div>{this._basicExample()}</div>;
}
private _onWidthChange = (e: React.ChangeEvent<HTMLInputElement>) => {
this.setState({ width: parseInt(e.target.value, 10) });
};
private _onHeightChange = (e: React.ChangeEvent<HTMLInputElement>) => {
this.setState({ height: parseInt(e.target.value, 10) });
};
private _basicExample(): JSX.Element {
const data: IChartProps = {
chartTitle: 'Sankey Chart',
SankeyChartData: {
nodes: [
{
nodeId: 0,
name: 'node0',
color: '#00758F',
borderColor: '#002E39',
},
{
nodeId: 1,
name: 'node1',
color: '#77004D',
borderColor: '#43002C',
},
{
nodeId: 2,
name: 'node2',
color: '#4F6BED',
borderColor: '#3B52B4',
},
{
nodeId: 3,
name: 'node3',
color: '#937600',
borderColor: '#6D5700',
},
{
nodeId: 4,
name: 'node4',
color: '#286EA8',
borderColor: '#00457E',
},
{
nodeId: 5,
name: 'node5',
color: '#A43FB1',
borderColor: '#7C158A',
},
],
links: [
{
source: 0,
target: 2,
value: 2,
},
{
source: 1,
target: 2,
value: 2,
},
{
source: 1,
target: 3,
value: 2,
},
{
source: 0,
target: 4,
value: 2,
},
{
source: 2,
target: 3,
value: 2,
},
{
source: 2,
target: 4,
value: 2,
},
{
source: 3,
target: 4,
value: 4,
},
{
source: 3,
target: 5,
value: 4,
},
],
},
};
const rootStyle = { width: `${this.state.width}px`, height: `${this.state.height}px` };
return (
<>
<label htmlFor="changeWidth_Basic">Change Width:</label>
<input
type="range"
value={this.state.width}
min={400}
max={1000}
id="changeWidth_Basic"
onChange={this._onWidthChange}
aria-valuetext={`ChangeWidthSlider${this.state.width}`}
/>
<label htmlFor="changeHeight_Basic">Change Height:</label>
<input
type="range"
value={this.state.height}
min={312}
max={400}
id="changeHeight_Basic"
onChange={this._onHeightChange}
aria-valuetext={`ChangeHeightslider${this.state.height}`}
/>
<div style={rootStyle}>
<SankeyChart
data={data}
height={this.state.height}
width={this.state.width}
shouldResize={this.state.width + this.state.height}
/>
</div>
</>
);
}
}
``` | /content/code_sandbox/packages/react-examples/src/react-charting/SankeyChart/SankeyChart.Basic.Example.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 862 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="Intents" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle">
<configuration>
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
<option name="BUILDABLE" value="false" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
``` | /content/code_sandbox/Android/Intents/Intents.iml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 234 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<PublishReadyToRun>true</PublishReadyToRun>
<SelfContained>true</SelfContained>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.PowerShell.Commands.Diagnostics" Version="7.4.4"/>
<PackageReference Include="Microsoft.PowerShell.Commands.Management" Version="7.4.4"/>
<PackageReference Include="Microsoft.PowerShell.Commands.Utility" Version="7.4.4"/>
<PackageReference Include="Microsoft.PowerShell.ConsoleHost" Version="7.4.4"/>
<PackageReference Include="Microsoft.WSMan.Management" Version="7.4.4"/>
<PackageReference Include="System.Management.Automation" Version="7.4.4"/>
</ItemGroup>
</Project>
``` | /content/code_sandbox/langs/powershell/powershell.csproj | xml | 2016-10-02T12:09:24 | 2024-08-16T19:53:45 | code-golf | code-golf/code-golf | 1,116 | 221 |
```xml
// Type definitions for json-stable-stringify-without-jsonify 1.0.1
declare module 'json-stable-stringify-without-jsonify' {
function stringify(value: Record<string, any>, options?: Partial<Options>): string;
interface Options {
cmp: (a: any, b: any) => any;
space: number;
replacer: (key: string, value: any) => any;
}
export = stringify;
}
``` | /content/code_sandbox/typings/json-stable-stringify-without-jsonify/index.d.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 101 |
```xml
<UserControl
x:Class="IntelligentKioskSample.Controls.LifecycleControl"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="using:IntelligentKioskSample.Controls"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400"
x:Name="userControl">
<UserControl.Resources>
<local:EnumMatchToVisibilityConverter x:Key="enumMatchToVisibilityConverter"/>
<local:ReverseEnumMatchToVisibilityConverter x:Key="reverseEnumMatchToVisibilityConverter"/>
<local:ReverseBooleanToVisibilityConverter x:Key="reverseBooleanToVisibilityConverter"/>
<Style x:Key="ListViewStyle" TargetType="ListView">
<Setter Property="ItemContainerStyle">
<Setter.Value>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0" />
<Setter Property="Padding" Value="0" />
</Style>
</Setter.Value>
</Setter>
</Style>
</UserControl.Resources>
<Grid>
<ListView ItemsSource="{Binding StepCollection, ElementName=userControl}" SelectionMode="None" IsItemClickEnabled="False" Style="{StaticResource ListViewStyle}">
<ListView.ItemTemplate>
<DataTemplate>
<Grid ColumnSpacing="20">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<!-- Mute icon -->
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" Visibility="{Binding State, Converter={StaticResource enumMatchToVisibilityConverter}, ConverterParameter='Mute'}"/>
<!-- Active icon -->
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" Foreground="#A6D8FF" Visibility="{Binding State, Converter={StaticResource enumMatchToVisibilityConverter}, ConverterParameter='Active'}"/>
<!-- Completed icon -->
<FontIcon FontFamily="Segoe MDL2 Assets" Glyph="" Foreground="#0078D7" Visibility="{Binding State, Converter={StaticResource enumMatchToVisibilityConverter}, ConverterParameter='Completed'}"/>
<StackPanel Visibility="{Binding IsLast, Converter={StaticResource reverseBooleanToVisibilityConverter}}" HorizontalAlignment="Center" Margin="0,8">
<Line X1="0" X2="0" Y1="0" Y2="50" StrokeThickness="2" Stroke="DarkGray" Visibility="{Binding State, Converter={StaticResource reverseEnumMatchToVisibilityConverter}, ConverterParameter='Completed'}"/>
<Line X1="0" X2="0" Y1="0" Y2="50" StrokeThickness="2" Stroke="#0078D7" Visibility="{Binding State, Converter={StaticResource enumMatchToVisibilityConverter}, ConverterParameter='Completed'}"/>
</StackPanel>
</StackPanel>
<StackPanel Grid.Column="1" Spacing="8">
<TextBlock Text="{Binding Title}" />
<TextBlock Text="{Binding Subtitle}" Style="{StaticResource CaptionTextBlockStyle}" Foreground="DarkGray"/>
</StackPanel>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</UserControl>
``` | /content/code_sandbox/Kiosk/Controls/LifecycleControl.xaml | xml | 2016-06-09T17:19:24 | 2024-07-17T02:43:08 | Cognitive-Samples-IntelligentKiosk | microsoft/Cognitive-Samples-IntelligentKiosk | 1,049 | 738 |
```xml
import { Accessibility } from '@fluentui/accessibility';
import {
ForwardRefWithAs,
getElementType,
useUnhandledProps,
useAccessibility,
useStyles,
useTelemetry,
useFluentContext,
} from '@fluentui/react-bindings';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import { FluentComponentStaticProps } from '../../types';
import { ChildrenComponentProps, commonPropTypes, createShorthandFactory, UIComponentProps } from '../../utils';
export interface CardPreviewProps extends UIComponentProps, ChildrenComponentProps {
/**
* Accessibility behavior if overridden by the user.
*/
accessibility?: Accessibility<never>;
/** If preview is in horizontal card. */
horizontal?: boolean;
/** A preview can be fitted, without any space above or below it. */
fitted?: boolean;
}
export type CardPreviewStylesProps = Pick<CardPreviewProps, 'horizontal' | 'fitted'>;
export const cardPreviewClassName = 'ui-card__preview';
/**
* A CardPreview is used to display data Card preview.
*/
export const CardPreview = React.forwardRef<HTMLDivElement, CardPreviewProps>((props, ref) => {
const context = useFluentContext();
const { setStart, setEnd } = useTelemetry(CardPreview.displayName, context.telemetry);
setStart();
const { className, design, styles, variables, children, horizontal, fitted } = props;
const ElementType = getElementType(props);
const unhandledProps = useUnhandledProps(CardPreview.handledProps, props);
const getA11yProps = useAccessibility(props.accessibility, {
debugName: CardPreview.displayName,
rtl: context.rtl,
});
const { classes } = useStyles<CardPreviewStylesProps>(CardPreview.displayName, {
className: cardPreviewClassName,
mapPropsToStyles: () => ({ horizontal, fitted }),
mapPropsToInlineStyles: () => ({
className,
design,
styles,
variables,
}),
rtl: context.rtl,
});
const element = (
<ElementType
{...getA11yProps('root', {
className: classes.root,
ref,
...unhandledProps,
})}
>
{children}
</ElementType>
);
setEnd();
return element;
}) as unknown as ForwardRefWithAs<'div', HTMLDivElement, CardPreviewProps> &
FluentComponentStaticProps<CardPreviewProps>;
CardPreview.displayName = 'CardPreview';
CardPreview.propTypes = {
...commonPropTypes.createCommon(),
horizontal: PropTypes.bool,
fitted: PropTypes.bool,
};
CardPreview.handledProps = Object.keys(CardPreview.propTypes) as any;
CardPreview.create = createShorthandFactory({ Component: CardPreview });
``` | /content/code_sandbox/packages/fluentui/react-northstar/src/components/Card/CardPreview.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 577 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<selector xmlns:android="path_to_url">
<item android:alpha="0.12" android:color="?attr/colorOnSurface" />
</selector>
``` | /content/code_sandbox/lib/java/com/google/android/material/color/res/color/material_on_surface_stroke.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 85 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="Configuration">
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
<ConfigurationType>Driver</ConfigurationType>
<DriverType>WDM</DriverType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
</Project>
``` | /content/code_sandbox/nt/nt.default.props | xml | 2016-03-16T16:32:00 | 2024-08-16T06:12:25 | SimpleVisor | ionescu007/SimpleVisor | 1,700 | 121 |
```xml
export {};
declare const globalThis: {
IS_REACT_ACT_ENVIRONMENT?: boolean;
};
// TODO(9.0): We should actually wrap all those lines in `act`, but that might be a breaking change.
// We should make that breaking change for SB 9.0
export function preventActChecks(callback: () => void): void {
const originalActEnvironment = globalThis.IS_REACT_ACT_ENVIRONMENT;
globalThis.IS_REACT_ACT_ENVIRONMENT = false;
try {
callback();
} finally {
globalThis.IS_REACT_ACT_ENVIRONMENT = originalActEnvironment;
}
}
``` | /content/code_sandbox/code/lib/react-dom-shim/src/preventActChecks.tsx | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 127 |
```xml
import { c } from 'ttag';
import { CircleLoader } from '@proton/atoms/CircleLoader';
import type {
Address,
CachedOrganizationKey,
Member,
PartialMemberAddress,
UserModel,
} from '@proton/shared/lib/interfaces';
import { Table, TableBody, TableHeader, TableRow } from '../../components';
import AddressActions from './AddressActions';
import AddressStatus from './AddressStatus';
import { getPermissions, getStatus } from './helper';
interface AddressesTableProps {
loading: boolean;
hasUsername: boolean;
user: UserModel;
members: Member[];
memberAddressesMap?: { [key: string]: (Address | PartialMemberAddress)[] | undefined };
organizationKey?: CachedOrganizationKey;
allowAddressDeletion: boolean;
}
const AddressesTable = ({
loading,
hasUsername,
user,
members,
memberAddressesMap,
organizationKey,
allowAddressDeletion,
}: AddressesTableProps) => {
return (
<Table responsive="cards" hasActions>
<TableHeader
cells={[
c('Header for addresses table').t`Address`,
hasUsername ? c('Header for addresses table').t`Username` : null,
c('Header for addresses table').t`Status`,
c('Header for addresses table').t`Actions`,
].filter(Boolean)}
/>
<TableBody colSpan={hasUsername ? 4 : 3} loading={loading}>
{members.flatMap((member) => {
const memberAddresses = memberAddressesMap?.[member.ID] || [];
return memberAddresses.map((address, i) => {
const emailCell = (
<div className="text-ellipsis" title={address.Email}>
{address.Email}
</div>
);
const nameCell = hasUsername && member.Name;
// Partial address getting loaded
if (!('Keys' in address)) {
return (
<TableRow
key={address.ID}
cells={[
emailCell,
nameCell,
<div className="visibility-hidden">
<AddressStatus isActive />
</div>,
<CircleLoader />,
].filter(Boolean)}
/>
);
}
return (
<TableRow
key={address.ID}
cells={[
emailCell,
nameCell,
<AddressStatus {...getStatus(address, i)} />,
<AddressActions
member={member}
address={address}
user={user}
permissions={getPermissions({
addressIndex: i,
member,
address,
addresses: memberAddresses,
user,
organizationKey,
})}
allowAddressDeletion={allowAddressDeletion}
/>,
].filter(Boolean)}
/>
);
});
})}
</TableBody>
</Table>
);
};
export default AddressesTable;
``` | /content/code_sandbox/packages/components/containers/addresses/AddressesTable.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 590 |
```xml
import { Recording } from './Recording';
import { AndroidAudioEncoder, AndroidOutputFormat, IOSAudioQuality, IOSOutputFormat } from './RecordingConstants';
export type RecordingStatus = {
/**
* A boolean describing if the `Recording` can initiate the recording.
* @platform android
* @platform ios
*/
canRecord: boolean;
/**
* A boolean describing if the `Recording` is currently recording.
* @platform android
* @platform ios
*/
isRecording: boolean;
/**
* A boolean describing if the `Recording` has been stopped.
* @platform android
* @platform ios
*/
isDoneRecording: boolean;
/**
* The current duration of the recorded audio or the final duration is the recording has been stopped.
* @platform android
* @platform ios
*/
durationMillis: number;
/**
* A number that's the most recent reading of the loudness in dB. The value ranges from `160` dBFS, indicating minimum power,
* to `0` dBFS, indicating maximum power. Present or not based on Recording options. See `RecordingOptions` for more information.
* @platform android
* @platform ios
*/
metering?: number;
uri?: string | null;
/**
* A boolean indicating whether media services were reset during recording. This may occur if the active input ceases to be available
* during recording.
*
* For example: airpods are the active input and they run out of batteries during recording.
*
* @platform ios
*/
mediaServicesDidReset?: boolean;
};
/**
* @platform android
*/
export type RecordingOptionsAndroid = {
/**
* The desired file extension. Example valid values are `.3gp` and `.m4a`.
* For more information, see the [Android docs](path_to_url
* for supported output formats.
*/
extension: string;
/**
* The desired file format. See the [`AndroidOutputFormat`](#androidoutputformat) enum for all valid values.
*/
outputFormat: AndroidOutputFormat | number;
/**
* The desired audio encoder. See the [`AndroidAudioEncoder`](#androidaudioencoder) enum for all valid values.
*/
audioEncoder: AndroidAudioEncoder | number;
/**
* The desired sample rate.
*
* Note that the sampling rate depends on the format for the audio recording, as well as the capabilities of the platform.
* For instance, the sampling rate supported by AAC audio coding standard ranges from 8 to 96 kHz,
* the sampling rate supported by AMRNB is 8kHz, and the sampling rate supported by AMRWB is 16kHz.
* Please consult with the related audio coding standard for the supported audio sampling rate.
*
* @example
* 44100
*/
sampleRate?: number;
/**
* The desired number of channels.
*
* Note that `prepareToRecordAsync()` may perform additional checks on the parameter to make sure whether the specified
* number of audio channels are applicable.
*
* @example
* `1`, `2`
*/
numberOfChannels?: number;
/**
* The desired bit rate.
*
* Note that `prepareToRecordAsync()` may perform additional checks on the parameter to make sure whether the specified
* bit rate is applicable, and sometimes the passed bitRate will be clipped internally to ensure the audio recording
* can proceed smoothly based on the capabilities of the platform.
*
* @example
* `128000`
*/
bitRate?: number;
/**
* The desired maximum file size in bytes, after which the recording will stop (but `stopAndUnloadAsync()` must still
* be called after this point).
*
* @example
* `65536`
*/
maxFileSize?: number;
};
/**
* @platform ios
*/
export type RecordingOptionsIOS = {
/**
* The desired file extension.
*
* @example
* `'.caf'`
*/
extension: string;
/**
* The desired file format. See the [`IOSOutputFormat`](#iosoutputformat) enum for all valid values.
*/
outputFormat?: string | IOSOutputFormat | number;
/**
* The desired audio quality. See the [`IOSAudioQuality`](#iosaudioquality) enum for all valid values.
*/
audioQuality: IOSAudioQuality | number;
/**
* The desired sample rate.
*
* @example
* `44100`
*/
sampleRate: number;
/**
* The desired number of channels.
*
* @example
* `1`, `2`
*/
numberOfChannels: number;
/**
* The desired bit rate.
*
* @example
* `128000`
*/
bitRate: number;
/**
* The desired bit rate strategy. See the next section for an enumeration of all valid values of `bitRateStrategy`.
*/
bitRateStrategy?: number;
/**
* The desired bit depth hint.
*
* @example
* `16`
*/
bitDepthHint?: number;
/**
* The desired PCM bit depth.
*
* @example
* `16`
*/
linearPCMBitDepth?: number;
/**
* A boolean describing if the PCM data should be formatted in big endian.
*/
linearPCMIsBigEndian?: boolean;
/**
* A boolean describing if the PCM data should be encoded in floating point or integral values.
*/
linearPCMIsFloat?: boolean;
};
export type RecordingOptionsWeb = {
mimeType?: string;
bitsPerSecond?: number;
};
/**
* The recording extension, sample rate, bitrate, channels, format, encoder, etc. which can be customized by passing options to `prepareToRecordAsync()`.
*
* We provide the following preset options for convenience, as used in the example above. See below for the definitions of these presets.
* - `Audio.RecordingOptionsPresets.HIGH_QUALITY`
* - `Audio.RecordingOptionsPresets.LOW_QUALITY`
*
* We also provide the ability to define your own custom recording options, but **we recommend you use the presets,
* as not all combinations of options will allow you to successfully `prepareToRecordAsync()`.**
* You will have to test your custom options on iOS and Android to make sure it's working. In the future,
* we will enumerate all possible valid combinations, but at this time, our goal is to make the basic use-case easy (with presets)
* and the advanced use-case possible (by exposing all the functionality available on all supported platforms).
*/
export type RecordingOptions = {
/**
* A boolean that determines whether audio level information will be part of the status object under the "metering" key.
*/
isMeteringEnabled?: boolean;
/**
* A boolean that hints to keep the audio active after `prepareToRecordAsync` completes.
* Setting this value can improve the speed at which the recording starts. Only set this value to `true` when you call `startAsync`
* immediately after `prepareToRecordAsync`. This value is automatically set when using `Audio.recording.createAsync()`.
*/
keepAudioActiveHint?: boolean;
/**
* Recording options for the Android platform.
*/
android: RecordingOptionsAndroid;
/**
* Recording options for the iOS platform.
*/
ios: RecordingOptionsIOS;
/**
* Recording options for the Web platform.
*/
web: RecordingOptionsWeb;
};
/**
* @platform android
* @platform ios
*/
export type RecordingInput = {
name: string;
type: string;
uid: string;
};
/**
* @platform android
* @platform ios
*/
export type RecordingObject = {
/**
* The newly created and started `Recording` object.
*/
recording: Recording;
/**
* The `RecordingStatus` of the `Recording` object. See the [AV documentation](/versions/latest/sdk/av) for further information.
*/
status: RecordingStatus;
};
//# sourceMappingURL=Recording.types.d.ts.map
``` | /content/code_sandbox/packages/expo-av/build/Audio/Recording.types.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,761 |
```xml
import { Accessibility, GridBehaviorProps } from '@fluentui/accessibility';
import {
getElementType,
useAccessibility,
useStyles,
useFluentContext,
useTelemetry,
useUnhandledProps,
ForwardRefWithAs,
} from '@fluentui/react-bindings';
import * as customPropTypes from '@fluentui/react-proptypes';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import {
childrenExist,
UIComponentProps,
ChildrenComponentProps,
commonPropTypes,
ContentComponentProps,
rtlTextContainer,
} from '../../utils';
import { FluentComponentStaticProps } from '../../types';
export interface GridProps extends UIComponentProps, ChildrenComponentProps, ContentComponentProps {
/**
* Accessibility behavior if overridden by the user.
* @available gridBehavior, gridHorizontalBehavior
* */
accessibility?: Accessibility<GridBehaviorProps>;
/** The columns of the grid with a space-separated list of values. The values represent the track size, and the space between them represents the grid line. */
columns?: string | number;
/** The rows of the grid with a space-separated list of values. The values represent the track size, and the space between them represents the grid line. */
rows?: string | number;
}
export const gridClassName = 'ui-grid';
export type GridStylesProps = Pick<GridProps, 'columns' | 'rows'>;
/**
* A Grid is a layout component that harmonizes negative space, by controlling both the row and column alignment.
*/
export const Grid = React.forwardRef<HTMLDivElement, GridProps>((props, ref) => {
const context = useFluentContext();
const { setStart, setEnd } = useTelemetry(Grid.displayName, context.telemetry);
setStart();
const { accessibility, children, className, columns, content, design, rows, styles, variables } = props;
const getA11yProps = useAccessibility(accessibility, {
debugName: Grid.displayName,
rtl: context.rtl,
});
const { classes } = useStyles<GridStylesProps>(Grid.displayName, {
className: gridClassName,
mapPropsToStyles: () => ({ columns, rows }),
mapPropsToInlineStyles: () => ({
className,
design,
styles,
variables,
}),
rtl: context.rtl,
});
const ElementType = getElementType(props);
const unhandledProps = useUnhandledProps(Grid.handledProps, props);
const element = getA11yProps.unstable_wrapWithFocusZone(
<ElementType
{...getA11yProps('root', {
className: classes.root,
ref,
...rtlTextContainer.getAttributes({ forElements: [children, content] }),
...unhandledProps,
})}
>
{childrenExist(children) ? children : content}
</ElementType>,
);
setEnd();
return element;
}) as unknown as ForwardRefWithAs<'div', HTMLDivElement, GridProps> & FluentComponentStaticProps<GridProps>;
Grid.displayName = 'Grid';
Grid.propTypes = {
...commonPropTypes.createCommon({
content: false,
}),
columns: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
content: customPropTypes.every([
customPropTypes.disallow(['children']),
PropTypes.oneOfType([PropTypes.arrayOf(customPropTypes.nodeContent), customPropTypes.nodeContent]),
]),
rows: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
};
Grid.handledProps = Object.keys(Grid.propTypes) as any;
``` | /content/code_sandbox/packages/fluentui/react-northstar/src/components/Grid/Grid.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 740 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
targetNamespace="Examples">
<signal id="mySignal" name="eventSignal"/>
<process id="nonInterruptingSignalEventSubProcess">
<startEvent id="theStart"/>
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="processTask"/>
<userTask id="processTask"/>
<sequenceFlow id="flow2" sourceRef="processTask" targetRef="theEnd"/>
<endEvent id="theEnd"/>
<subProcess id="eventSubProcess" triggeredByEvent="true">
<startEvent id="eventSubProcessStart" isInterrupting="false">
<signalEventDefinition signalRef="mySignal" />
</startEvent>
<sequenceFlow id="subProcessFlow1" sourceRef="eventSubProcessStart" targetRef="eventSubProcessTask" />
<userTask id="eventSubProcessTask"/>
<sequenceFlow id="subProcessFlow2" sourceRef="eventSubProcessTask" targetRef="eventSubProcessEnd" />
<endEvent id="eventSubProcessEnd" />
</subProcess>
</process>
</definitions>
``` | /content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/api/runtime/migration/non-interrupting-signal-event-subprocess.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 270 |
```xml
// Use it in favour of require.resolve() to be able to mock it in tests.
export function requirer(resolver: (path: string) => string, path: string) {
return resolver(path);
}
``` | /content/code_sandbox/code/presets/react-webpack/src/requirer.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 46 |
```xml
import {
JestFileResults,
JestTotalResults,
CodeLocation as Location,
TestReconciliationState,
} from 'jest-editor-support';
import { CoverageMapData, FileCoverageData } from 'istanbul-lib-coverage';
import * as path from 'path';
import { cleanAnsi, toLowerCaseDriveLetter } from '../helpers';
import { MatchEvent } from './match-node';
export interface LocationRange {
start: Location;
end: Location;
}
export interface TestIdentifier {
title: string;
ancestorTitles: string[];
}
export interface TestResult extends LocationRange {
name: string;
identifier: TestIdentifier;
status: TestReconciliationState;
shortMessage?: string;
terseMessage?: string;
/** Zero-based line number */
lineNumberOfError?: number;
// multiple results for the given range, common for parameterized (.each) tests
multiResults?: TestResult[];
// matching process history
sourceHistory?: MatchEvent[];
assertionHistory?: MatchEvent[];
}
function testResultWithLowerCaseWindowsDriveLetter(testResult: JestFileResults): JestFileResults {
const newFilePath = toLowerCaseDriveLetter(testResult.name);
if (newFilePath) {
return {
...testResult,
name: newFilePath,
};
}
return testResult;
}
export const testResultsWithLowerCaseWindowsDriveLetters = (
testResults: JestFileResults[]
): JestFileResults[] => {
if (!testResults) {
return testResults;
}
return testResults.map(testResultWithLowerCaseWindowsDriveLetter);
};
function fileCoverageWithLowerCaseWindowsDriveLetter(
fileCoverage: FileCoverageData
): FileCoverageData {
const newFilePath = toLowerCaseDriveLetter(fileCoverage.path);
if (newFilePath) {
return {
...fileCoverage,
path: newFilePath,
};
}
return fileCoverage;
}
export const coverageMapWithLowerCaseWindowsDriveLetters = (
data: JestTotalResults
): CoverageMapData | undefined => {
if (!data.coverageMap) {
return;
}
const result: CoverageMapData = {};
const filePaths = Object.keys(data.coverageMap);
for (const filePath of filePaths) {
const newFileCoverage = fileCoverageWithLowerCaseWindowsDriveLetter(data.coverageMap[filePath]);
result[newFileCoverage.path] = newFileCoverage;
}
return result;
};
/**
* Normalize file paths on Windows systems to use lowercase drive letters.
* This follows the standard used by Visual Studio Code for URIs which includes
* the document fileName property.
*
* @param data Parsed JSON results
*/
export const resultsWithLowerCaseWindowsDriveLetters = (
data: JestTotalResults
): JestTotalResults => {
if (path.sep === '\\') {
return {
...data,
coverageMap: coverageMapWithLowerCaseWindowsDriveLetters(data),
testResults: testResultsWithLowerCaseWindowsDriveLetters(data.testResults),
};
}
return data;
};
/**
* Removes ANSI escape sequence characters from test results in order to get clean messages
*/
export const resultsWithoutAnsiEscapeSequence = (data: JestTotalResults): JestTotalResults => {
if (!data || !data.testResults) {
return data;
}
return {
...data,
testResults: data.testResults.map((result) => ({
...result,
message: cleanAnsi(result.message),
assertionResults: result.assertionResults.map((assertion) => ({
...assertion,
failureMessages: (assertion.failureMessages ?? []).map((message) => cleanAnsi(message)),
})),
})),
};
};
// enum based on TestReconciliationState
export const TestStatus: {
[key in TestReconciliationState]: TestReconciliationState;
} = {
Unknown: 'Unknown',
KnownSuccess: 'KnownSuccess',
KnownFail: 'KnownFail',
KnownSkip: 'KnownSkip',
KnownTodo: 'KnownTodo',
};
// export type StatusInfo<T> = {[key in TestReconciliationState]: T};
export interface StatusInfo {
precedence: number;
desc: string;
}
export const TestResultStatusInfo: { [key in TestReconciliationState]: StatusInfo } = {
KnownFail: { precedence: 1, desc: 'Failed' },
Unknown: {
precedence: 2,
desc: 'Test has not run yet, due to Jest only running tests related to changes.',
},
KnownSkip: { precedence: 3, desc: 'Skipped' },
KnownSuccess: { precedence: 4, desc: 'Passed' },
KnownTodo: { precedence: 5, desc: 'Todo' },
};
``` | /content/code_sandbox/src/TestResults/TestResult.ts | xml | 2016-10-09T13:06:02 | 2024-08-13T18:32:04 | vscode-jest | jest-community/vscode-jest | 2,819 | 992 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:activiti="path_to_url" xmlns="path_to_url" xmlns:bpmndi="path_to_url" xmlns:omgdc="path_to_url" xmlns:omgdi="path_to_url" xmlns:signavio="path_to_url" xmlns:xsi="path_to_url" exporter="Signavio Process Editor, path_to_url" exporterVersion="" id="sid-2852a21b-8c85-49e4-b859-2d7aaaf2e7fc" targetNamespace="path_to_url" xsi:schemaLocation="path_to_url path_to_url">
<process name="testJoin" id="testJoin">
<startEvent id="StartNoneEvent" name="StartNoneEvent" />
<sequenceFlow id="SequenceFlow_3" name="SequenceFlow" sourceRef="StartNoneEvent" targetRef="Main_Task" />
<userTask id="Main_Task" name="Main Task" />
<sequenceFlow id="SequenceFlow_4" name="SequenceFlow" sourceRef="Main_Task" targetRef="ParallelGateway" />
<boundaryEvent attachedToRef="Main_Task" cancelActivity="false" id="IntermediateTimerEvent" name="IntermediateTimerEvent">
<timerEventDefinition>
<timeDuration>PT1H</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<sequenceFlow id="SequenceFlow" name="SequenceFlow" sourceRef="IntermediateTimerEvent" targetRef="Escalation_Task" />
<userTask id="Escalation_Task" name="Escalation Task" />
<sequenceFlow id="SequenceFlow_2" name="SequenceFlow" sourceRef="Escalation_Task" targetRef="ParallelGateway" />
<parallelGateway gatewayDirection="Converging" id="ParallelGateway" name="ParallelGateway" />
<sequenceFlow id="SequenceFlow_5" name="SequenceFlow" sourceRef="ParallelGateway" targetRef="EndNoneEvent" />
<endEvent id="EndNoneEvent" name="EndNoneEvent" />
</process>
<bpmndi:BPMNDiagram id="sid-48d6e871-e3e2-4875-b12a-e97fe63571ea">
<bpmndi:BPMNPlane bpmnElement="testJoin" id="sid-8d449e0f-122f-42c3-9b56-23b77df13364">
<bpmndi:BPMNShape bpmnElement="StartNoneEvent" id="StartNoneEvent_gui">
<omgdc:Bounds height="30.0" width="30.0" x="111.5" y="120.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="Main_Task" id="Main_Task_gui">
<omgdc:Bounds height="80.0" width="100.0" x="200.5" y="95.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="ParallelGateway" id="ParallelGateway_gui">
<omgdc:Bounds height="40.0" width="40.0" x="410.75" y="115.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="Escalation_Task" id="Escalation_Task_gui">
<omgdc:Bounds height="80.0" width="100.0" x="283.0" y="224.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="IntermediateTimerEvent" id="IntermediateTimerEvent_gui">
<omgdc:Bounds height="30.0" width="30.0" x="238.85770368297875" y="160.29244419574488"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="EndNoneEvent" id="EndNoneEvent_gui">
<omgdc:Bounds height="28.0" width="28.0" x="530.5" y="121.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="SequenceFlow" id="SequenceFlow_gui">
<omgdi:waypoint x="253.0" y="190.0"/>
<omgdi:waypoint x="253.85770368297875" y="264.0"/>
<omgdi:waypoint x="283.0" y="264.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_4" id="SequenceFlow_4_gui">
<omgdi:waypoint x="300.0" y="135.0"/>
<omgdi:waypoint x="410.0" y="135.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_5" id="SequenceFlow_5_gui">
<omgdi:waypoint x="450.0" y="135.0"/>
<omgdi:waypoint x="530.0" y="135.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_2" id="SequenceFlow_2_gui">
<omgdi:waypoint x="383.0" y="264.0"/>
<omgdi:waypoint x="430.75" y="264.0"/>
<omgdi:waypoint x="430.0" y="155.0"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="SequenceFlow_3" id="SequenceFlow_3_gui">
<omgdi:waypoint x="141.0" y="135.0"/>
<omgdi:waypoint x="200.0" y="135.0"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
``` | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/event/timer/BoundaryTimerNonInterruptingEventTest.testJoin.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 1,414 |
```xml
import "source-map-support/register";
import serverlessExpress from "@codegenie/serverless-express";
import { app } from "./app";
export const handler = serverlessExpress({ app });
``` | /content/code_sandbox/examples/basic-starter-api-gateway-v2-typescript/src/lambda.ts | xml | 2016-09-13T23:29:07 | 2024-08-15T09:52:47 | serverless-express | CodeGenieApp/serverless-express | 5,117 | 39 |
```xml
import type { DocStateInterface } from './DocStateInterface'
import { Observable } from 'lib0/observable'
import type { Provider, ProviderAwareness } from '@lexical/yjs'
export class LexicalDocProvider extends Observable<string> implements Provider {
constructor(private docState: DocStateInterface) {
super()
}
connect(): void | Promise<void> {
// no-op to satisfy Lexical Provider interface
}
disconnect(): void {
// no-op to satisfy Lexical Provider interface
}
get awareness(): ProviderAwareness {
return this.docState.awareness
}
}
``` | /content/code_sandbox/packages/docs-shared/lib/Doc/LexicalDocProvider.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 129 |
```xml
import * as React from 'react';
import cx from 'classnames';
import { createSvgIcon } from '../utils/createSvgIcon';
import { iconClassNames } from '../utils/iconClassNames';
export const ZoomOutIcon = createSvgIcon({
svg: ({ classes }) => (
<svg role="presentation" focusable="false" viewBox="2 2 16 16" className={classes.svg}>
<g className={cx(iconClassNames.outline, classes.outlinePart)}>
<path d="M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z" />
<path
fillRule="evenodd"
clipRule="evenodd"
d="M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z"
/>
</g>
<path
className={cx(iconClassNames.filled, classes.filledPart)}
fillRule="evenodd"
clipRule="evenodd"
d="M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.74832 14 10.8995 13.5841 11.8226 12.8834L15.9697 17.0303L16.0538 17.1029C16.3474 17.3208 16.7641 17.2966 17.0303 17.0303C17.3232 16.7374 17.3232 16.2626 17.0303 15.9697L12.8834 11.8226C13.5841 10.8995 14 9.74832 14 8.5ZM11 7.75C11.4142 7.75 11.75 8.08579 11.75 8.5C11.75 8.91421 11.4142 9.25 11 9.25H6C5.58579 9.25 5.25 8.91421 5.25 8.5C5.25 8.08579 5.58579 7.75 6 7.75H11Z"
/>
</svg>
),
displayName: 'ZoomOutIcon',
});
``` | /content/code_sandbox/packages/fluentui/react-icons-northstar/src/components/ZoomOutIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 896 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="path_to_url"
xmlns:context="path_to_url" xmlns:p="path_to_url"
xmlns:aop="path_to_url" xmlns:tx="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url
path_to_url path_to_url
path_to_url path_to_url path_to_url path_to_url
path_to_url path_to_url">
<!-- -->
<context:property-placeholder ignore-resource-not-found="true"
location="classpath:common.properties,classpath:resource/*.properties,
file:/usr/jar_home/users/resource/*.properties" />
<!-- Service -->
<context:component-scan base-package="org.goshop.*.service" />
<import resource="classpath:spring/applicationContext-dao.xml" />
<import resource="classpath:spring/applicationContext-jedis.xml" />
<import resource="classpath:spring/applicationContext-dubbo-provider.xml" />
<import resource="classpath:spring/applicationContext-shiro.xml" />
</beans>
``` | /content/code_sandbox/goshop-service-cms/src/main/resources/spring/spring-context.xml | xml | 2016-06-18T10:16:23 | 2024-08-01T09:11:36 | goshop2 | pzhgugu/goshop2 | 1,106 | 235 |
```xml
import * as React from 'react'
type ErrorBoundaryProps = {
children?: React.ReactNode
onError: (error: Error, componentStack: string | null) => void
globalOverlay?: boolean
isMounted?: boolean
}
type ErrorBoundaryState = { error: Error | null }
export class ErrorBoundary extends React.PureComponent<
ErrorBoundaryProps,
ErrorBoundaryState
> {
state = { error: null }
static getDerivedStateFromError(error: Error) {
return { error }
}
componentDidCatch(
error: Error,
// Loosely typed because it depends on the React version and was
// accidentally excluded in some versions.
errorInfo?: { componentStack?: string | null }
) {
this.props.onError(error, errorInfo?.componentStack || null)
if (!this.props.globalOverlay) {
this.setState({ error })
}
}
// Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific the the `@types/react` version.
render(): React.ReactNode {
// The component has to be unmounted or else it would continue to error
return this.state.error ||
(this.props.globalOverlay && this.props.isMounted) ? (
// When the overlay is global for the application and it wraps a component rendering `<html>`
// we have to render the html shell otherwise the shadow root will not be able to attach
this.props.globalOverlay ? (
<html>
<head></head>
<body></body>
</html>
) : null
) : (
this.props.children
)
}
}
``` | /content/code_sandbox/packages/next/src/client/components/react-dev-overlay/pages/ErrorBoundary.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 354 |
```xml
import { useMemo } from 'react';
import { ImageStyle } from 'react-native';
import { ImageDimensions } from '../shared-types';
import {
IncompleteImageDimensions,
UseIMGElementStateProps
} from './img-types';
export type ConcreteDimensionsProps = {
flatStyle: ImageStyle;
naturalDimensions: ImageDimensions | null;
specifiedDimensions: IncompleteImageDimensions;
} & Pick<UseIMGElementStateProps, 'computeMaxWidth' | 'contentWidth'>;
function extractHorizontalSpace({
marginHorizontal,
leftMargin,
rightMargin,
margin
}: any) {
const realLeftMargin = leftMargin || marginHorizontal || margin || 0;
const realRightMargin = rightMargin || marginHorizontal || margin || 0;
return realLeftMargin + realRightMargin;
}
function scaleUp(
minDimensions: ImageDimensions,
desiredDimensions: ImageDimensions
): ImageDimensions {
const aspectRatio = desiredDimensions.width / desiredDimensions.height;
if (desiredDimensions.width < minDimensions.width) {
return scaleUp(minDimensions, {
width: minDimensions.width,
height: minDimensions.width / aspectRatio
});
}
if (desiredDimensions.height < minDimensions.height) {
return scaleUp(minDimensions, {
height: minDimensions.height,
width: minDimensions.height * aspectRatio
});
}
return desiredDimensions;
}
function scaleDown(
maxDimensions: ImageDimensions,
desiredDimensions: ImageDimensions
): ImageDimensions {
const aspectRatio = desiredDimensions.width / desiredDimensions.height;
if (desiredDimensions.width > maxDimensions.width) {
return scaleDown(maxDimensions, {
width: maxDimensions.width,
height: maxDimensions.width / aspectRatio
});
}
if (desiredDimensions.height > maxDimensions.height) {
return scaleDown(maxDimensions, {
height: maxDimensions.height,
width: maxDimensions.height * aspectRatio
});
}
return desiredDimensions;
}
function scale(
{ minBox, maxBox }: { maxBox: ImageDimensions; minBox: ImageDimensions },
originalBox: ImageDimensions
) {
return scaleDown(maxBox, scaleUp(minBox, originalBox));
}
function computeConcreteDimensions(params: any) {
const {
computeMaxWidth,
contentWidth,
flattenStyles,
naturalWidth,
naturalHeight,
specifiedWidth,
specifiedHeight
} = params;
const horizontalSpace = extractHorizontalSpace(flattenStyles);
const {
maxWidth = Infinity,
maxHeight = Infinity,
minWidth = 0,
minHeight = 0
} = flattenStyles;
const imagesMaxWidth =
typeof contentWidth === 'number' ? computeMaxWidth(contentWidth) : Infinity;
const minBox = {
width: minWidth,
height: minHeight
};
const maxBox = {
width:
Math.min(
imagesMaxWidth,
maxWidth,
typeof specifiedWidth === 'number' ? specifiedWidth : Infinity
) - horizontalSpace,
height: Math.min(
typeof specifiedHeight === 'number' ? specifiedHeight : Infinity,
maxHeight
)
};
if (
typeof specifiedWidth === 'number' &&
typeof specifiedHeight === 'number'
) {
return scale(
{ minBox, maxBox },
{
width: specifiedWidth,
height: specifiedHeight
}
);
}
if (naturalWidth != null && naturalHeight != null) {
return scale(
{ minBox, maxBox },
{
width: naturalWidth,
height: naturalHeight
}
);
}
return null;
}
export default function useImageConcreteDimensions<
P extends ConcreteDimensionsProps
>({
flatStyle,
naturalDimensions,
specifiedDimensions,
computeMaxWidth,
contentWidth
}: P): P['naturalDimensions'] extends ImageDimensions
? ImageDimensions
: ImageDimensions | null {
return useMemo(() => {
return computeConcreteDimensions({
flattenStyles: flatStyle,
computeMaxWidth,
contentWidth,
naturalWidth: naturalDimensions?.width,
naturalHeight: naturalDimensions?.height,
specifiedWidth: specifiedDimensions.width,
specifiedHeight: specifiedDimensions.height
}) as any;
}, [
computeMaxWidth,
contentWidth,
flatStyle,
naturalDimensions,
specifiedDimensions.height,
specifiedDimensions.width
]);
}
``` | /content/code_sandbox/packages/render-html/src/elements/useImageConcreteDimensions.ts | xml | 2016-11-29T10:50:53 | 2024-08-08T06:53:22 | react-native-render-html | meliorence/react-native-render-html | 3,445 | 933 |
```xml
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
export function Root({ children, delayDuration = 0, ...rest }: TooltipPrimitive.TooltipProps) {
return (
<TooltipPrimitive.Root delayDuration={delayDuration} {...rest}>
{children}
</TooltipPrimitive.Root>
);
}
``` | /content/code_sandbox/docs/ui/components/Tooltip/Root.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 66 |
```xml
import * as React from 'react';
import { renderButton_unstable } from './renderButton';
import { useButton_unstable } from './useButton';
import { useButtonStyles_unstable } from './useButtonStyles.styles';
import type { ButtonProps } from './Button.types';
import type { ForwardRefComponent } from '@fluentui/react-utilities';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Buttons give people a way to trigger an action.
*/
export const Button: ForwardRefComponent<ButtonProps> = React.forwardRef((props, ref) => {
const state = useButton_unstable(props, ref);
useButtonStyles_unstable(state);
useCustomStyleHook_unstable('useButtonStyles_unstable')(state);
return renderButton_unstable(state);
// Casting is required due to lack of distributive union to support unions on @types/react
}) as ForwardRefComponent<ButtonProps>;
Button.displayName = 'Button';
``` | /content/code_sandbox/packages/react-components/react-button/library/src/components/Button/Button.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 206 |
```xml
export * from "./pin/pin.service.implementation";
export * from "./login-email/login-email.service";
export * from "./login-strategies/login-strategy.service";
export * from "./user-decryption-options/user-decryption-options.service";
export * from "./auth-request/auth-request.service";
export * from "./register-route.service";
``` | /content/code_sandbox/libs/auth/src/common/services/index.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 68 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="wrap_content">
<View
android:layout_width="wrap_content"
android:layout_height="4dp"
android:background="@drawable/dropshadow"/>
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/shadow.xml | xml | 2016-06-02T11:11:55 | 2024-08-02T07:34:23 | AlgorithmVisualizer-Android | naman14/AlgorithmVisualizer-Android | 1,129 | 84 |
```xml
import { Component } from '@angular/core';
import { NbCalendarRange, NbDateService } from '@nebular/theme';
import { DayCellComponent } from './day-cell/day-cell.component';
@Component({
selector: 'ngx-calendar',
templateUrl: 'calendar.component.html',
styleUrls: ['calendar.component.scss'],
})
export class CalendarComponent {
date = new Date();
date2 = new Date();
range: NbCalendarRange<Date>;
dayCellComponent = DayCellComponent;
constructor(protected dateService: NbDateService<Date>) {
this.range = {
start: this.dateService.addDay(this.monthStart, 3),
end: this.dateService.addDay(this.monthEnd, -3),
};
}
get monthStart(): Date {
return this.dateService.getMonthStart(new Date());
}
get monthEnd(): Date {
return this.dateService.getMonthEnd(new Date());
}
}
``` | /content/code_sandbox/src/app/pages/extra-components/calendar/calendar.component.ts | xml | 2016-05-25T10:09:03 | 2024-08-16T16:34:03 | ngx-admin | akveo/ngx-admin | 25,169 | 193 |
```xml
import { Entity } from "../../../../../src/decorator/entity/Entity"
import { PrimaryGeneratedColumn } from "../../../../../src/decorator/columns/PrimaryGeneratedColumn"
import { Column } from "../../../../../src/decorator/columns/Column"
import { Counters } from "./Counters"
@Entity()
export class Photo {
@PrimaryGeneratedColumn()
id: number
@Column()
url: string
@Column((type) => Counters)
counters: Counters
}
``` | /content/code_sandbox/test/functional/query-builder/insert/entity/Photo.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 105 |
```xml
import { PackagerAsset } from '@react-native/assets-registry/registry';
export type ResolvedAssetSource = {
__packager_asset: boolean;
width?: number;
height?: number;
uri: string;
scale: number;
};
export default class AssetSourceResolver {
serverUrl: string;
jsbundleUrl?: string | null;
asset: PackagerAsset;
constructor(serverUrl: string | undefined | null, jsbundleUrl: string | undefined | null, asset: PackagerAsset);
isLoadedFromServer(): boolean;
isLoadedFromFileSystem(): boolean;
defaultAsset(): ResolvedAssetSource;
/**
* @returns absolute remote URL for the hosted asset.
*/
assetServerURL(): ResolvedAssetSource;
fromSource(source: string): ResolvedAssetSource;
static pickScale(scales: number[], deviceScale: number): number;
}
//# sourceMappingURL=AssetSourceResolver.web.d.ts.map
``` | /content/code_sandbox/packages/expo-image/build/utils/AssetSourceResolver.web.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 200 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\..\configureawait.props" />
<Import Project="..\..\..\..\common.props" />
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<GenerateEmbeddedFilesManifest>true</GenerateEmbeddedFilesManifest>
<RootNamespace />
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\framework\src\Volo.Abp.VirtualFileSystem\Volo.Abp.VirtualFileSystem.csproj" />
</ItemGroup>
<ItemGroup>
<None Remove="..\..\Volo.Abp.Account.abpmdl" />
<Content Include="..\..\Volo.Abp.Account.abpmdl">
<Pack>true</Pack>
<PackagePath>content\</PackagePath>
</Content>
<None Remove="..\..\**\*.abppkg*" />
<Content Include="..\..\**\*.abppkg*">
<Pack>true</Pack>
<PackagePath>content\</PackagePath>
</Content>
</ItemGroup>
</Project>
``` | /content/code_sandbox/modules/account/src/Volo.Abp.Account.Installer/Volo.Abp.Account.Installer.csproj | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 237 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SysInfoApplications</class>
<widget class="QWidget" name="SysInfoApplications">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>715</width>
<height>495</height>
</rect>
</property>
<property name="windowTitle">
<string/>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QTreeWidget" name="tree">
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="iconSize">
<size>
<width>16</width>
<height>16</height>
</size>
</property>
<property name="indentation">
<number>0</number>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
<attribute name="headerShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>Name</string>
</property>
</column>
<column>
<property name="text">
<string>Version</string>
</property>
</column>
<column>
<property name="text">
<string>Publisher</string>
</property>
</column>
<column>
<property name="text">
<string>Install Date</string>
</property>
</column>
<column>
<property name="text">
<string>Install Location</string>
</property>
</column>
</widget>
</item>
</layout>
<action name="action_copy_row">
<property name="text">
<string>Copy Row</string>
</property>
</action>
<action name="action_copy_value">
<property name="text">
<string>Copy Value</string>
</property>
</action>
<action name="action_search_in_google">
<property name="text">
<string>Search in Google</string>
</property>
</action>
</widget>
<resources/>
<connections/>
</ui>
``` | /content/code_sandbox/source/client/ui/sys_info/sys_info_widget_applications.ui | xml | 2016-10-26T16:17:31 | 2024-08-16T13:37:42 | aspia | dchapyshev/aspia | 1,579 | 632 |
```xml
export { KubeconfigButton } from './KubeconfigButton';
``` | /content/code_sandbox/app/react/portainer/HomeView/EnvironmentList/KubeconfigButton/index.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 15 |
```xml
import Container from "../components/container";
import MoreStories from "../components/more-stories";
import HeroPost from "../components/hero-post";
import Intro from "../components/intro";
import Layout from "../components/layout";
import { getAllPostsFromCms } from "../lib/api";
import Head from "next/head";
import { CMS_NAME } from "../lib/constants";
import Post from "../interfaces/post";
type Props = {
allPosts: Post[];
};
export default function Index({ allPosts }: Props) {
const heroPost = allPosts[0];
const morePosts = allPosts.slice(1);
return (
<>
<Layout>
<Head>
<title>{`Next.js Blog Example with ${CMS_NAME}`}</title>
</Head>
<Container>
<Intro />
{heroPost && (
<HeroPost
title={heroPost.title}
coverImage={heroPost.coverImage}
date={heroPost.date}
author={heroPost.author}
slug={heroPost.slug}
excerpt={heroPost.excerpt}
/>
)}
{morePosts.length > 0 && <MoreStories posts={morePosts} />}
</Container>
</Layout>
</>
);
}
export const getStaticProps = async () => {
const allPosts = await getAllPostsFromCms();
return {
props: { allPosts },
};
};
``` | /content/code_sandbox/examples/cms-sitefinity/pages/index.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 292 |
```xml
import type { RequestConfig } from '../../common/types';
import type { GetUnknownAssetRequest } from '../types';
import { request } from '../../utils/request';
import { getRawWalletId, isLegacyWalletId } from '../../utils';
import Asset from '../../../domains/Asset';
export const getUnknownAsset = (
config: RequestConfig,
{ walletId, policyId }: GetUnknownAssetRequest
): Promise<Asset> =>
request({
method: 'GET',
path: `/v2/${
isLegacyWalletId(walletId) ? 'byron-wallets' : 'wallets'
}/${getRawWalletId(walletId)}/assets/${policyId}`,
...config,
});
``` | /content/code_sandbox/source/renderer/app/api/assets/requests/getUnknownAsset.ts | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 149 |
```xml
import { NotificationChannel, NotificationChannelInput } from './NotificationChannelManager.types';
/**
* Assigns the channel configuration to a channel of a specified name (creating it if need be).
* This method lets you assign given notification channel to a notification channel group.
*
* > **Note:** For some settings to be applied on all Android versions, it may be necessary to duplicate the configuration across both
* > a single notification and its respective notification channel.
*
* For example, for a notification to play a custom sound on Android versions **below** 8.0,
* the custom notification sound has to be set on the notification (through the [`NotificationContentInput`](#notificationcontentinput)),
* and for the custom sound to play on Android versions **above** 8.0, the relevant notification channel must have the custom sound configured
* (through the [`NotificationChannelInput`](#notificationchannelinput)). For more information,
* see [Set custom notification sounds on Android](#set-custom-notification-sounds).
* @param channelId The channel identifier.
* @param channel Object representing the channel's configuration.
* @return A Promise which resolving to the object (of type [`NotificationChannel`](#notificationchannel)) describing the modified channel
* or to `null` if the platform does not support notification channels.
* @platform android
* @header channels
*/
export default function setNotificationChannelAsync(channelId: string, channel: NotificationChannelInput): Promise<NotificationChannel | null>;
//# sourceMappingURL=setNotificationChannelAsync.d.ts.map
``` | /content/code_sandbox/packages/expo-notifications/build/setNotificationChannelAsync.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 311 |
```xml
/* This file is a part of @mdn/browser-compat-data
* See LICENSE file for more information. */
import assert from 'node:assert/strict';
import pluralize from './pluralize.js';
describe('Pluralize', () => {
it('should return singular form when quantifier is 1', () => {
const result = pluralize('apple', 1);
assert.equal(result, '1 apple');
});
it('should return plural form when quantifier is not 1', () => {
const result = pluralize('apple', 2);
assert.equal(result, '2 apples');
});
it('should return formatted string with chalk when useChalk is true', () => {
const result = pluralize('apple', 2, true);
assert.equal(result, '\u001b[1m2\u001b[22m apples');
});
});
``` | /content/code_sandbox/scripts/lib/pluralize.test.ts | xml | 2016-03-29T18:50:07 | 2024-08-16T11:36:33 | browser-compat-data | mdn/browser-compat-data | 4,876 | 191 |
```xml
export const OPERATORS = {
string: [
{ name: 'equals to', value: 'e' },
{ name: 'is not equal to', value: 'dne' },
{ name: 'contains with', value: 'c' },
{ name: 'does not contain with', value: 'dnc' },
{ name: 'is set', value: 'is', noInput: true },
{ name: 'is not set', value: 'ins', noInput: true }
],
boolean: [
{ name: 'is true', value: 'it', noInput: true },
{ name: 'is false', value: 'if', noInput: true },
{ name: 'is set', value: 'is', noInput: true },
{ name: 'is not set', value: 'ins', noInput: true }
],
number: [
{ name: 'number: equals to', value: 'numbere' },
{ name: 'number: is not equal to', value: 'numberdne' },
{ name: 'number: is greater than', value: 'numberigt' },
{ name: 'number: is less than', value: 'numberilt' },
{ name: 'is set', value: 'is', noInput: true },
{ name: 'is not set', value: 'ins', noInput: true }
],
date: [
{ name: 'date: is greater than', value: 'dateigt' },
{ name: 'date: is less than', value: 'dateilt' },
{ name: 'minute(s) before', value: 'wobm' },
{ name: 'minute(s) later', value: 'woam' },
{ name: 'day(s) before', value: 'wobd' },
{ name: 'day(s) later', value: 'woad' },
{ name: 'date relative less than', value: 'drlt' },
{ name: 'date relative greater than', value: 'drgt' },
{ name: 'date is set', value: 'dateis', noInput: true },
{ name: 'date is not set', value: 'dateins', noInput: true }
]
};
export const DEFAULT_OPERATORS = [
{ name: 'equals to', value: 'e' },
{ name: 'is not equal to', value: 'dne' },
{ name: 'contains with', value: 'c' },
{ name: 'does not contain with', value: 'dnc' },
{ name: 'is set', value: 'is', noInput: true },
{ name: 'is not set', value: 'ins', noInput: true },
{ name: 'is true', value: 'it', noInput: true },
{ name: 'is false', value: 'if', noInput: true },
{ name: 'number: equals to', value: 'numbere' },
{ name: 'number: is not equal to', value: 'numberdne' },
{ name: 'number: is greater than', value: 'numberigt' },
{ name: 'number: is less than', value: 'numberilt' },
{ name: 'date: is greater than', value: 'dateigt' },
{ name: 'date: is less than', value: 'dateilt' },
{ name: 'minute(s) before', value: 'wobm' },
{ name: 'minute(s) later', value: 'woam' },
{ name: 'day(s) before', value: 'wobd' },
{ name: 'day(s) later', value: 'woad' },
{ name: 'date relative less than', value: 'drlt' },
{ name: 'date relative greater than', value: 'drgt' },
{ name: 'date is set', value: 'dateis', noInput: true },
{ name: 'date is not set', value: 'dateins', noInput: true }
];
export const EVENT_OCCURENCES = [
{ name: 'exactly', value: 'exactly' },
{ name: 'atleast', value: 'atleast' },
{ name: 'atmost', value: 'atmost' }
];
``` | /content/code_sandbox/packages/ui-segments/src/components/constants.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 951 |
```xml
import "#src/async_computation/obj_mesh.js";
``` | /content/code_sandbox/src/datasource/obj/async_computation.ts | xml | 2016-05-27T02:37:25 | 2024-08-16T07:24:25 | neuroglancer | google/neuroglancer | 1,045 | 13 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="path_to_url">
<external-path name="external_files" path="."/>
<root-path name="external_files" path="/storage/" />
</paths>
``` | /content/code_sandbox/app/src/main/res/xml/provider_paths.xml | xml | 2016-05-11T20:50:11 | 2024-08-16T11:41:39 | TUI-ConsoleLauncher | fandreuz/TUI-ConsoleLauncher | 1,233 | 55 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (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
*
* along with this program. If not, see path_to_url
*
*/
import {CSSObject} from '@emotion/react';
export const cellControlsWrapper: CSSObject = {
alignItems: 'center',
display: 'flex',
justifyContent: 'space-between',
width: '100%',
};
export const cellControlsList: CSSObject = {
display: 'flex',
gap: '8px',
listStyleType: 'none',
margin: 0,
padding: 0,
};
``` | /content/code_sandbox/src/script/components/calling/CallingCell/CallingControls/CallingControls.styles.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 178 |
```xml
<Project>
<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Label="Package information">
<Version>11.1.0</Version>
<Authors>Piranha CMS</Authors>
<Company>Piranha CMS</Company>
<PackageTags>cms mvc razorpages aspnetcore netstandard</PackageTags>
<PackageIcon>piranha.png</PackageIcon>
<PackageProjectUrl>path_to_url
<RepositoryUrl>path_to_url
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
</Project>
``` | /content/code_sandbox/Directory.Build.props | xml | 2016-03-21T09:53:44 | 2024-08-16T17:06:43 | piranha.core | PiranhaCMS/piranha.core | 1,944 | 194 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:id="@+id/select_time_zone_coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/select_time_zone_app_bar_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/select_time_zone_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
app:menu="@menu/menu_select_time_zone"
app:title=""
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
</com.google.android.material.appbar.AppBarLayout>
<com.simplemobiletools.commons.views.MyRecyclerView
android:id="@+id/select_time_zone_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
app:layoutManager="com.simplemobiletools.commons.views.MyLinearLayoutManager"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
``` | /content/code_sandbox/app/src/main/res/layout/activity_select_time_zone.xml | xml | 2016-01-26T21:02:54 | 2024-08-15T00:35:32 | Simple-Calendar | SimpleMobileTools/Simple-Calendar | 3,512 | 298 |
```xml
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms';
import { DetailsListBasicPageProps as ExternalProps } from '@fluentui/react-examples/lib/react/DetailsList/DetailsList.doc';
export const DetailsListBasicPageProps: TFabricPlatformPageProps = {
web: {
...(ExternalProps as any),
title: 'DetailsList - Basic',
},
};
``` | /content/code_sandbox/apps/public-docsite/src/pages/Controls/DetailsListPage/DetailsListBasicPage.doc.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 82 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<set android:duration="300"
android:shareInterpolator="true"
android:interpolator="@android:anim/accelerate_decelerate_interpolator"
xmlns:android="path_to_url">
<translate
android:fromYDelta="0"
android:toYDelta="10%"
android:fillBefore="true"
android:fillAfter="true"/>
<alpha
android:fromAlpha="1"
android:toAlpha="0"
android:fillBefore="true"
android:fillAfter="true"/>
</set>
``` | /content/code_sandbox/app/src/main/res/anim/fade_out_to_bottom.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 135 |
```xml
const defaultProps = {
_statLabel: {
fontSize: 'xl',
},
_statNumber: {
fontSize: '4xl',
fontWeight: 'bold',
my: 2,
},
_statHelpText: {
_text: {
color: 'gray.500',
fontSize: 'xl',
},
flexDirection: 'row',
alignItems: 'center',
},
_statGroup: {
flexWrap: 'wrap',
space: 4,
justifyContent: 'space-between',
},
};
export default {
defaultProps,
};
``` | /content/code_sandbox/src/theme/components/stat.ts | xml | 2016-04-15T11:37:23 | 2024-08-14T16:16:44 | NativeBase | GeekyAnts/NativeBase | 20,132 | 124 |
```xml
import {
Component,
ElementRef,
EventEmitter,
HostBinding,
Inject,
Input,
NgZone,
OnChanges,
OnDestroy,
OnInit,
Output,
Renderer2,
SimpleChanges,
ViewEncapsulation
} from '@angular/core';
import { GridsterComponent } from './gridster.component';
import { GridsterDraggable } from './gridsterDraggable.service';
import {
GridsterItem,
GridsterItemComponentInterface
} from './gridsterItem.interface';
import { GridsterResizable } from './gridsterResizable.service';
import { GridsterUtils } from './gridsterUtils.service';
@Component({
selector: 'gridster-item',
templateUrl: './gridsterItem.html',
styleUrls: ['./gridsterItem.css'],
encapsulation: ViewEncapsulation.None,
standalone: true
})
export class GridsterItemComponent
implements OnInit, OnDestroy, OnChanges, GridsterItemComponentInterface
{
@Input() item: GridsterItem;
@Output() itemInit = new EventEmitter<{
item: GridsterItem;
itemComponent: GridsterItemComponentInterface;
}>();
@Output() itemChange = new EventEmitter<{
item: GridsterItem;
itemComponent: GridsterItemComponentInterface;
}>();
@Output() itemResize = new EventEmitter<{
item: GridsterItem;
itemComponent: GridsterItemComponentInterface;
}>();
$item: GridsterItem;
el: HTMLElement;
gridster: GridsterComponent;
top: number;
left: number;
width: number;
height: number;
drag: GridsterDraggable;
resize: GridsterResizable;
notPlaced: boolean;
init: boolean;
@HostBinding('style.z-index')
get zIndex(): number {
return this.getLayerIndex() + this.gridster.$options.baseLayerIndex;
}
constructor(
@Inject(ElementRef) el: ElementRef,
gridster: GridsterComponent,
@Inject(Renderer2) public renderer: Renderer2,
@Inject(NgZone) private zone: NgZone
) {
this.el = el.nativeElement;
this.$item = {
cols: -1,
rows: -1,
x: -1,
y: -1
};
this.gridster = gridster;
this.drag = new GridsterDraggable(this, gridster, this.zone);
this.resize = new GridsterResizable(this, gridster, this.zone);
}
ngOnInit(): void {
this.gridster.addItem(this);
}
ngOnChanges(changes: SimpleChanges): void {
if (changes.item) {
this.updateOptions();
if (!this.init) {
this.gridster.calculateLayout$.next();
}
}
if (changes.item && changes.item.previousValue) {
this.setSize();
}
}
updateOptions(): void {
this.$item = GridsterUtils.merge(this.$item, this.item, {
cols: undefined,
rows: undefined,
x: undefined,
y: undefined,
layerIndex: undefined,
dragEnabled: undefined,
resizeEnabled: undefined,
compactEnabled: undefined,
maxItemRows: undefined,
minItemRows: undefined,
maxItemCols: undefined,
minItemCols: undefined,
maxItemArea: undefined,
minItemArea: undefined,
resizableHandles: {
s: undefined,
e: undefined,
n: undefined,
w: undefined,
se: undefined,
ne: undefined,
sw: undefined,
nw: undefined
}
});
}
ngOnDestroy(): void {
this.gridster.removeItem(this);
this.drag.destroy();
this.resize.destroy();
this.gridster = this.drag = this.resize = null!;
}
setSize(): void {
this.renderer.setStyle(this.el, 'display', this.notPlaced ? '' : 'block');
this.gridster.gridRenderer.updateItem(this.el, this.$item, this.renderer);
this.updateItemSize();
}
updateItemSize(): void {
const top = this.$item.y * this.gridster.curRowHeight;
const left = this.$item.x * this.gridster.curColWidth;
const width =
this.$item.cols * this.gridster.curColWidth -
this.gridster.$options.margin;
const height =
this.$item.rows * this.gridster.curRowHeight -
this.gridster.$options.margin;
this.top = top;
this.left = left;
if (!this.init && width > 0 && height > 0) {
this.init = true;
if (this.item.initCallback) {
this.item.initCallback(this.item, this);
}
if (this.gridster.options.itemInitCallback) {
this.gridster.options.itemInitCallback(this.item, this);
}
this.itemInit.next({ item: this.item, itemComponent: this });
if (this.gridster.$options.scrollToNewItems) {
this.el.scrollIntoView(false);
}
}
if (width !== this.width || height !== this.height) {
this.width = width;
this.height = height;
if (this.gridster.options.itemResizeCallback) {
this.gridster.options.itemResizeCallback(this.item, this);
}
this.itemResize.next({ item: this.item, itemComponent: this });
}
}
itemChanged(): void {
if (this.gridster.options.itemChangeCallback) {
this.gridster.options.itemChangeCallback(this.item, this);
}
this.itemChange.next({ item: this.item, itemComponent: this });
}
checkItemChanges(newValue: GridsterItem, oldValue: GridsterItem): void {
if (
newValue.rows === oldValue.rows &&
newValue.cols === oldValue.cols &&
newValue.x === oldValue.x &&
newValue.y === oldValue.y
) {
return;
}
if (this.gridster.checkCollision(this.$item)) {
this.$item.x = oldValue.x || 0;
this.$item.y = oldValue.y || 0;
this.$item.cols = oldValue.cols || 1;
this.$item.rows = oldValue.rows || 1;
this.setSize();
} else {
this.item.cols = this.$item.cols;
this.item.rows = this.$item.rows;
this.item.x = this.$item.x;
this.item.y = this.$item.y;
this.gridster.calculateLayout$.next();
this.itemChanged();
}
}
canBeDragged(): boolean {
const gridDragEnabled = this.gridster.$options.draggable.enabled;
const itemDragEnabled =
this.$item.dragEnabled === undefined
? gridDragEnabled
: this.$item.dragEnabled;
return !this.gridster.mobile && gridDragEnabled && itemDragEnabled;
}
canBeResized(): boolean {
const gridResizable = this.gridster.$options.resizable.enabled;
const itemResizable =
this.$item.resizeEnabled === undefined
? gridResizable
: this.$item.resizeEnabled;
return !this.gridster.mobile && gridResizable && itemResizable;
}
getResizableHandles() {
const gridResizableHandles = this.gridster.$options.resizable.handles;
const itemResizableHandles = this.$item.resizableHandles;
// use grid settings if no settings are provided for the item.
if (itemResizableHandles === undefined) {
return gridResizableHandles;
}
// else merge the settings
return {
...gridResizableHandles,
...itemResizableHandles
};
}
bringToFront(offset: number): void {
if (offset && offset <= 0) {
return;
}
const layerIndex = this.getLayerIndex();
const topIndex = this.gridster.$options.maxLayerIndex;
if (layerIndex < topIndex) {
const targetIndex = offset ? layerIndex + offset : topIndex;
this.item.layerIndex = this.$item.layerIndex =
targetIndex > topIndex ? topIndex : targetIndex;
}
}
sendToBack(offset: number): void {
if (offset && offset <= 0) {
return;
}
const layerIndex = this.getLayerIndex();
if (layerIndex > 0) {
const targetIndex = offset ? layerIndex - offset : 0;
this.item.layerIndex = this.$item.layerIndex =
targetIndex < 0 ? 0 : targetIndex;
}
}
private getLayerIndex(): number {
if (this.item.layerIndex !== undefined) {
return this.item.layerIndex;
}
if (this.gridster.$options.defaultLayerIndex !== undefined) {
return this.gridster.$options.defaultLayerIndex;
}
return 0;
}
}
``` | /content/code_sandbox/projects/angular-gridster2/src/lib/gridsterItem.component.ts | xml | 2016-01-13T10:43:19 | 2024-08-14T12:20:18 | angular-gridster2 | tiberiuzuld/angular-gridster2 | 1,267 | 1,863 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug-c++17|Win32">
<Configuration>Debug-c++17</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug-c++17|x64">
<Configuration>Debug-c++17</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug-static|Win32">
<Configuration>Debug-static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug-static|x64">
<Configuration>Debug-static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DebugVLD|Win32">
<Configuration>DebugVLD</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="DebugVLD|x64">
<Configuration>DebugVLD</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-c++17|Win32">
<Configuration>Release-c++17</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-c++17|x64">
<Configuration>Release-c++17</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-static|Win32">
<Configuration>Release-static</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release-static|x64">
<Configuration>Release-static</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Debug|Win32">
<Configuration>vc14-Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Debug|x64">
<Configuration>vc14-Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Release|Win32">
<Configuration>vc14-Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="vc14-Release|x64">
<Configuration>vc14-Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\unit\main.cpp" />
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_dhp.cpp" />
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_hp.cpp" />
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_nogc.cpp" />
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_rcu_gpb.cpp" />
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_rcu_gpi.cpp" />
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_rcu_gpt.cpp">
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'">4503</DisableSpecificWarnings>
<DisableSpecificWarnings Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'">4503</DisableSpecificWarnings>
</ClCompile>
<ClCompile Include="..\..\..\test\unit\map\michael_lazy_rcu_shb.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\test\unit\map\test_map.h" />
<ClInclude Include="..\..\..\test\unit\map\test_map_data.h" />
<ClInclude Include="..\..\..\test\unit\map\test_map_hp.h" />
<ClInclude Include="..\..\..\test\unit\map\test_map_nogc.h" />
<ClInclude Include="..\..\..\test\unit\map\test_map_rcu.h" />
<ClInclude Include="..\..\..\test\unit\map\test_michael_lazy_rcu.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{9C029822-F10B-4906-94B0-EB2E261B196C}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>map_michael_lazy</RootNamespace>
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'">
<LinkIncremental>true</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
<TargetName>$(ProjectName)_d</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'">
<LinkIncremental>false</LinkIncremental>
<OutDir>$(SolutionDir)..\..\..\bin\vc.$(PlatformToolset)\$(Platform)-$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)..\..\..\obj\vc.$(PlatformToolset)\$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget)-dbg.lib;gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>CDS_BUILD_STATIC_LIB;_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget)-dbg.lib;gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget)-dbg.lib;gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|Win32'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget)-dbg.lib;gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-static|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>CDS_BUILD_STATIC_LIB;_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget)-dbg.lib;gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-c++17|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget)-dbg.lib;gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Debug|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='DebugVLD|x64'">
<ClCompile>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>DebugFastLink</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtestd.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;CDS_BUILD_STATIC_LIB;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB32);$(GTEST_ROOT)/lib/x86;$(BOOST_PATH)/stage32/lib;$(BOOST_PATH)/stage/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-static|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;CDS_BUILD_STATIC_LIB;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-c++17|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>libcds-$(PlatformTarget).lib;gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='vc14-Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>_ENABLE_ATOMIC_ALIGNMENT_FIX;_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>$(SolutionDir)..\..\..;$(GTEST_ROOT)/include;$(SolutionDir)..\..\..\test\include;$(BOOST_PATH);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalOptions>/bigobj /Zc:inline /permissive- %(AdditionalOptions)</AdditionalOptions>
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(GTEST_LIB64);$(GTEST_ROOT)/lib/x64;$(BOOST_PATH)/stage64/lib;$(BOOST_PATH)/bin;%(AdditionalLibraryDirectories);$(OutDir)</AdditionalLibraryDirectories>
<AdditionalDependencies>gtest.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
``` | /content/code_sandbox/extern/libcds/projects/Win/vc141/gtest-map-michael-lazy.vcxproj | xml | 2016-03-16T06:10:37 | 2024-08-16T14:13:51 | firebird | FirebirdSQL/firebird | 1,223 | 12,314 |
```xml
import { _RefType } from "react-relay";
export type FragmentKeys<T> = Exclude<
{
[P in keyof T]: T[P] extends _RefType<any> | null ? P : never;
}[keyof T],
undefined
>;
export type FragmentKeysNoLocal<T> = Exclude<FragmentKeys<T>, "local">;
``` | /content/code_sandbox/client/src/core/client/framework/lib/relay/types.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 77 |
```xml
<query-profile id="multiprofile1" inherits="multiprofileDimensions"> <!-- A regular profile may define "virtual" children within itself -->
<!-- Values may be set in the profile itself as usual, this becomes the default values given no matching
virtual variant provides a value for the property -->
<field name="a">general-a</field>
<!-- The "for" attribute in a child profile supplies values in order for each of the dimensions -->
<query-profile for="us,nok ia,test1">
<field name="a">us-nokia-test1-a</field>
</query-profile>
<!-- Same as [us,*,*] - trailing "*"'s may be omitted -->
<query-profile for="us">
<field name="a">us-a</field>
<field name="b">us-b</field>
</query-profile>
<!-- Given a request which matches both the below, the one which specifies concrete values to the left
gets precedence over those specifying concrete values to the right (i.e the first one gets precedence here) -->
<query-profile for="us,nok ia,*" inherits="parent1 parent2">
<field name="a">us-nokia-a</field>
<field name="b">us-nokia-b</field>
</query-profile>
<query-profile for="us,*,test1">
<field name="a">us-test1-a</field>
<field name="b">us-test1-b</field>
</query-profile>
</query-profile>
``` | /content/code_sandbox/container-search/src/test/java/com/yahoo/search/query/profile/config/test/multiprofile/multiprofile1.xml | xml | 2016-06-03T20:54:20 | 2024-08-16T15:32:01 | vespa | vespa-engine/vespa | 5,524 | 331 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
XLIFF Version 2.0
OASIS Standard
05 August 2014
Source: path_to_url
-->
<xs:schema xmlns:xs="path_to_url"
elementFormDefault="qualified"
xmlns:xlf="urn:oasis:names:tc:xliff:document:2.0"
targetNamespace="urn:oasis:names:tc:xliff:document:2.0">
<!-- Import -->
<xs:import namespace="path_to_url"
schemaLocation="informativeCopiesOf3rdPartySchemas/w3c/xml.xsd"/>
<!-- Element Group -->
<xs:group name="inline">
<xs:choice>
<xs:element ref="xlf:cp"/>
<xs:element ref="xlf:ph"/>
<xs:element ref="xlf:pc"/>
<xs:element ref="xlf:sc"/>
<xs:element ref="xlf:ec"/>
<xs:element ref="xlf:mrk"/>
<xs:element ref="xlf:sm"/>
<xs:element ref="xlf:em"/>
</xs:choice>
</xs:group>
<!-- Attribute Types -->
<xs:simpleType name="yesNo">
<xs:restriction base="xs:string">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="yesNoFirstNo">
<xs:restriction base="xs:string">
<xs:enumeration value="yes"/>
<xs:enumeration value="firstNo"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="dirValue">
<xs:restriction base="xs:string">
<xs:enumeration value="ltr"/>
<xs:enumeration value="rtl"/>
<xs:enumeration value="auto"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="appliesTo">
<xs:restriction base="xs:string">
<xs:enumeration value="source"/>
<xs:enumeration value="target"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="userDefinedValue">
<xs:restriction base="xs:string">
<xs:pattern value="[^\s:]+:[^\s:]+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="attrType_type">
<xs:restriction base="xs:string">
<xs:enumeration value="fmt"/>
<xs:enumeration value="ui"/>
<xs:enumeration value="quote"/>
<xs:enumeration value="link"/>
<xs:enumeration value="image"/>
<xs:enumeration value="other"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="typeForMrkValues">
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="generic"/>
<xs:enumeration value="comment"/>
<xs:enumeration value="term"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="attrType_typeForMrk">
<xs:union memberTypes="xlf:typeForMrkValues xlf:userDefinedValue"/>
</xs:simpleType>
<xs:simpleType name="priorityValue">
<xs:restriction base="xs:positiveInteger">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="10"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="stateType">
<xs:restriction base="xs:string">
<xs:enumeration value="initial"/>
<xs:enumeration value="translated"/>
<xs:enumeration value="reviewed"/>
<xs:enumeration value="final"/>
</xs:restriction>
</xs:simpleType>
<!-- Structural Elements -->
<xs:element name="xliff">
<xs:complexType mixed="false">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="xlf:file"/>
</xs:sequence>
<xs:attribute name="version" use="required"/>
<xs:attribute name="srcLang" use="required"/>
<xs:attribute name="trgLang" use="optional"/>
<xs:attribute ref="xml:space" use="optional" default="default"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="file">
<xs:complexType mixed="false">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:skeleton"/>
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"
processContents="lax"/>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:notes"/>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element ref="xlf:unit"/>
<xs:element ref="xlf:group"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="canResegment" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="original" use="optional"/>
<xs:attribute name="translate" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="srcDir" use="optional" type="xlf:dirValue" default="auto"/>
<xs:attribute name="trgDir" use="optional" type="xlf:dirValue" default="auto"/>
<xs:attribute ref="xml:space" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="skeleton">
<xs:complexType mixed="true">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"
processContents="lax"/>
</xs:sequence>
<xs:attribute name="href" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="group">
<xs:complexType mixed="false">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"
processContents="lax"/>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:notes"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="xlf:unit"/>
<xs:element ref="xlf:group"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="name" use="optional"/>
<xs:attribute name="canResegment" use="optional" type="xlf:yesNo"/>
<xs:attribute name="translate" use="optional" type="xlf:yesNo"/>
<xs:attribute name="srcDir" use="optional" type="xlf:dirValue"/>
<xs:attribute name="trgDir" use="optional" type="xlf:dirValue"/>
<xs:attribute name="type" use="optional" type="xlf:userDefinedValue"/>
<xs:attribute ref="xml:space" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="unit">
<xs:complexType mixed="false">
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" namespace="##other"
processContents="lax"/>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:notes"/>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:originalData"/>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element ref="xlf:segment"/>
<xs:element ref="xlf:ignorable"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="name" use="optional"/>
<xs:attribute name="canResegment" use="optional" type="xlf:yesNo"/>
<xs:attribute name="translate" use="optional" type="xlf:yesNo"/>
<xs:attribute name="srcDir" use="optional" type="xlf:dirValue"/>
<xs:attribute name="trgDir" use="optional" type="xlf:dirValue"/>
<xs:attribute ref="xml:space" use="optional"/>
<xs:attribute name="type" use="optional" type="xlf:userDefinedValue"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="segment">
<xs:complexType mixed="false">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" ref="xlf:source"/>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:target"/>
</xs:sequence>
<xs:attribute name="id" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="canResegment" use="optional" type="xlf:yesNo"/>
<xs:attribute name="state" use="optional" type="xlf:stateType" default="initial"/>
<xs:attribute name="subState" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="ignorable">
<xs:complexType mixed="false">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" ref="xlf:source"/>
<xs:element minOccurs="0" maxOccurs="1" ref="xlf:target"/>
</xs:sequence>
<xs:attribute name="id" use="optional" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
<xs:element name="notes">
<xs:complexType mixed="false">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="xlf:note"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="note">
<xs:complexType mixed="true">
<xs:attribute name="id" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="appliesTo" use="optional" type="xlf:appliesTo"/>
<xs:attribute name="category" use="optional"/>
<xs:attribute name="priority" use="optional" type="xlf:priorityValue" default="1"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="originalData">
<xs:complexType mixed="false">
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="xlf:data"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="data">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="xlf:cp"/>
</xs:sequence>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="dir" use="optional" type="xlf:dirValue" default="auto"/>
<xs:attribute ref="xml:space" use="optional" fixed="preserve"/>
</xs:complexType>
</xs:element>
<xs:element name="source">
<xs:complexType mixed="true">
<xs:group ref="xlf:inline" minOccurs="0" maxOccurs="unbounded"/>
<xs:attribute ref="xml:lang" use="optional"/>
<xs:attribute ref="xml:space" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="target">
<xs:complexType mixed="true">
<xs:group ref="xlf:inline" minOccurs="0" maxOccurs="unbounded"/>
<xs:attribute ref="xml:lang" use="optional"/>
<xs:attribute ref="xml:space" use="optional"/>
<xs:attribute name="order" use="optional" type="xs:positiveInteger"/>
</xs:complexType>
</xs:element>
<!-- Inline Elements -->
<xs:element name="cp">
<!-- Code Point -->
<xs:complexType mixed="false">
<xs:attribute name="hex" use="required" type="xs:hexBinary"/>
</xs:complexType>
</xs:element>
<xs:element name="ph">
<!-- Placeholder -->
<xs:complexType mixed="false">
<xs:attribute name="canCopy" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canDelete" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canReorder" use="optional" type="xlf:yesNoFirstNo" default="yes"/>
<xs:attribute name="copyOf" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="disp" use="optional"/>
<xs:attribute name="equiv" use="optional"/>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="dataRef" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="subFlows" use="optional" type="xs:NMTOKENS"/>
<xs:attribute name="subType" use="optional" type="xlf:userDefinedValue"/>
<xs:attribute name="type" use="optional" type="xlf:attrType_type"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="pc">
<!-- Paired Code -->
<xs:complexType mixed="true">
<xs:group ref="xlf:inline" minOccurs="0" maxOccurs="unbounded"/>
<xs:attribute name="canCopy" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canDelete" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canOverlap" use="optional" type="xlf:yesNo"/>
<xs:attribute name="canReorder" use="optional" type="xlf:yesNoFirstNo" default="yes"/>
<xs:attribute name="copyOf" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="dispEnd" use="optional"/>
<xs:attribute name="dispStart" use="optional"/>
<xs:attribute name="equivEnd" use="optional"/>
<xs:attribute name="equivStart" use="optional"/>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="dataRefEnd" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="dataRefStart" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="subFlowsEnd" use="optional" type="xs:NMTOKENS"/>
<xs:attribute name="subFlowsStart" use="optional" type="xs:NMTOKENS"/>
<xs:attribute name="subType" use="optional" type="xlf:userDefinedValue"/>
<xs:attribute name="type" use="optional" type="xlf:attrType_type"/>
<xs:attribute name="dir" use="optional" type="xlf:dirValue"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="sc">
<!-- Start Code -->
<xs:complexType mixed="false">
<xs:attribute name="canCopy" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canDelete" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canOverlap" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canReorder" use="optional" type="xlf:yesNoFirstNo" default="yes"/>
<xs:attribute name="copyOf" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="dataRef" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="dir" use="optional" type="xlf:dirValue"/>
<xs:attribute name="disp" use="optional"/>
<xs:attribute name="equiv" use="optional"/>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="isolated" use="optional" type="xlf:yesNo" default="no"/>
<xs:attribute name="subFlows" use="optional" type="xs:NMTOKENS"/>
<xs:attribute name="subType" use="optional" type="xlf:userDefinedValue"/>
<xs:attribute name="type" use="optional" type="xlf:attrType_type"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="ec">
<!-- End Code -->
<xs:complexType mixed="false">
<xs:attribute name="canCopy" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canDelete" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canOverlap" use="optional" type="xlf:yesNo" default="yes"/>
<xs:attribute name="canReorder" use="optional" type="xlf:yesNoFirstNo" default="yes"/>
<xs:attribute name="copyOf" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="dataRef" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="dir" use="optional" type="xlf:dirValue"/>
<xs:attribute name="disp" use="optional"/>
<xs:attribute name="equiv" use="optional"/>
<xs:attribute name="id" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="isolated" use="optional" type="xlf:yesNo" default="no"/>
<xs:attribute name="startRef" use="optional" type="xs:NMTOKEN"/>
<xs:attribute name="subFlows" use="optional" type="xs:NMTOKENS"/>
<xs:attribute name="subType" use="optional" type="xlf:userDefinedValue"/>
<xs:attribute name="type" use="optional" type="xlf:attrType_type"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="mrk">
<!-- Annotation Marker -->
<xs:complexType mixed="true">
<xs:group ref="xlf:inline" minOccurs="0" maxOccurs="unbounded"/>
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="translate" use="optional" type="xlf:yesNo"/>
<xs:attribute name="type" use="optional" type="xlf:attrType_typeForMrk"/>
<xs:attribute name="ref" use="optional" type="xs:anyURI"/>
<xs:attribute name="value" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="sm">
<!-- Start Annotation Marker -->
<xs:complexType mixed="false">
<xs:attribute name="id" use="required" type="xs:NMTOKEN"/>
<xs:attribute name="translate" use="optional" type="xlf:yesNo"/>
<xs:attribute name="type" use="optional" type="xlf:attrType_typeForMrk"/>
<xs:attribute name="ref" use="optional" type="xs:anyURI"/>
<xs:attribute name="value" use="optional"/>
<xs:anyAttribute namespace="##other" processContents="lax"/>
</xs:complexType>
</xs:element>
<xs:element name="em">
<!-- End Annotation Marker -->
<xs:complexType mixed="false">
<xs:attribute name="startRef" use="required" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
</xs:schema>
``` | /content/code_sandbox/vendor/symfony/translation/Resources/schemas/xliff-core-2.0.xsd | xml | 2016-05-21T10:55:38 | 2024-08-14T10:25:30 | OpenSID | OpenSID/OpenSID | 1,023 | 4,841 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (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
*
* along with this program. If not, see path_to_url
*
*/
import {CSSObject} from '@emotion/react';
export const wrapper: CSSObject = {
height: 'calc(100% - 50px)',
display: 'grid',
placeContent: 'center',
paddingInline: '24px',
textAlign: 'center',
};
export const button: CSSObject = {
margin: '0 auto',
};
export const paragraph: CSSObject = {
marginBottom: '16px',
lineHeight: 'var(--line-height-md)',
letterSpacing: '0.05px',
};
export const paragraphBold: CSSObject = {
...paragraph,
fontWeight: 'var(--font-weight-semibold)',
};
export const paragraphGray: CSSObject = {
...paragraph,
fontWeight: 'var(--font-weight-regular)',
color: 'var(--text-input-label)',
};
export const seperator: CSSObject = {
display: 'block',
margin: '4px 0',
lineHeight: 'var(--line-height-md)',
};
``` | /content/code_sandbox/src/script/page/LeftSidebar/panels/Conversations/EmptyConversationList/EmptyConversationList.styles.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 292 |
```xml
import {
CONTENT_SECURITY_STRATEGY,
LooseContentSecurityStrategy,
NoContentSecurityStrategy,
} from '../strategies';
import { uuid } from '../utils';
describe('LooseContentSecurityStrategy', () => {
describe('#applyCSP', () => {
it('should set nonce attribute', () => {
const nonce = uuid();
const strategy = new LooseContentSecurityStrategy(nonce);
const element = document.createElement('link');
strategy.applyCSP(element);
expect(element.getAttribute('nonce')).toBe(nonce);
});
});
});
describe('NoContentSecurityStrategy', () => {
describe('#applyCSP', () => {
it('should not set nonce attribute', () => {
const strategy = new NoContentSecurityStrategy();
const element = document.createElement('link');
strategy.applyCSP(element);
expect(element.getAttribute('nonce')).toBeNull();
});
});
});
describe('CONTENT_SECURITY_STRATEGY', () => {
test.each`
name | Strategy | nonce
${'Loose'} | ${LooseContentSecurityStrategy} | ${uuid()}
${'None'} | ${NoContentSecurityStrategy} | ${undefined}
`('should successfully map $name to $Strategy.name', ({ name, Strategy, nonce }) => {
expect(CONTENT_SECURITY_STRATEGY[name](nonce)).toEqual(new Strategy(nonce));
});
});
``` | /content/code_sandbox/npm/ng-packs/packages/core/src/lib/tests/content-security.strategy.spec.ts | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 291 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/**
* Returns an array of an object's own and inherited non-enumerable property names and symbols.
*
* ## Notes
*
* - If provided `null` or `undefined`, the function returns an empty array.
*
* @param value - input object
* @returns a list of own and inherited non-enumerable property names and symbols
*
* @example
* var props = nonEnumerablePropertiesIn( [] );
* // returns [...]
*/
declare function nonEnumerablePropertiesIn( value: any ): Array<string|symbol>;
// EXPORTS //
export = nonEnumerablePropertiesIn;
``` | /content/code_sandbox/lib/node_modules/@stdlib/utils/nonenumerable-properties-in/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 182 |
```xml
import * as React from 'react';
import { StoryWright, Steps } from 'storywright';
import { Meta } from '@storybook/react';
import { Datepicker, inputClassName } from '@fluentui/react-northstar';
import { datepickerCalendarCellSelector } from './utils';
import { getThemeStoryVariant } from '../utilities';
import DatepickerCellExample from '../../examples/components/Datepicker/Slots/DatepickerCellExample.shorthand';
export default {
component: Datepicker,
title: 'Datepicker',
decorators: [
story => (
<StoryWright
steps={new Steps()
.click(`.${inputClassName}`)
.snapshot('Shows datepicker popup.')
.hover(datepickerCalendarCellSelector(19))
.snapshot("Does not show tooltip on not today's date.")
.hover(datepickerCalendarCellSelector(20))
.snapshot("Shows tooltip on today's date.")
.end()}
>
{story()}
</StoryWright>
),
],
} as Meta<typeof Datepicker>;
const DatepickerCellExampleTeams = getThemeStoryVariant(DatepickerCellExample, 'teamsV2');
const DatepickerCellExampleTeamsDark = getThemeStoryVariant(DatepickerCellExample, 'teamsDarkV2');
const DatepickerCellExampleTeamsHighContrast = getThemeStoryVariant(DatepickerCellExample, 'teamsHighContrast');
export {
DatepickerCellExample,
DatepickerCellExampleTeams,
DatepickerCellExampleTeamsDark,
DatepickerCellExampleTeamsHighContrast,
};
``` | /content/code_sandbox/packages/fluentui/docs/src/vr-tests/Datepicker/DatepickerCellExample.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 324 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<ripple
xmlns:android="path_to_url"
android:color="@color/mid_grey" />
``` | /content/code_sandbox/app/src/main/res/drawable/mid_grey_ripple.xml | xml | 2016-08-20T00:57:24 | 2024-08-09T02:01:01 | LookLook | xinghongfei/LookLook | 2,211 | 76 |
```xml
type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T;
export class VConsoleModel {
public static singleton: { [ctorName: string] : VConsoleModel } = {};
protected _onDataUpdateCallbacks: Function[] = [];
/**
* Get a singleton of a model.
*/
public static getSingleton<T extends VConsoleModel>(ctor: AConstructorTypeOf<T>, ctorName: string): T {
if (!ctorName) {
// WARN: the constructor name will be rewritten after minimize,
// so the `ctor.prototype.constructor.name` will likely conflict,
// so the ctor string as a guarantee when ctorName is empty.
ctorName = ctor.toString();
}
// console.log(ctorName, ctor);
if (VConsoleModel.singleton[ctorName]) {
return <T>VConsoleModel.singleton[ctorName];
}
VConsoleModel.singleton[ctorName] = new ctor();
return <T>VConsoleModel.singleton[ctorName];
}
}
export default VConsoleModel;
``` | /content/code_sandbox/src/lib/model.ts | xml | 2016-04-27T03:33:45 | 2024-08-16T15:29:33 | vConsole | Tencent/vConsole | 16,699 | 231 |
```xml
'use client'
import { redirectAction } from '../_action'
export default function Page() {
return (
<form action={redirectAction}>
<button type="submit">Submit</button>
</form>
)
}
export const runtime = 'edge'
``` | /content/code_sandbox/test/e2e/app-dir/server-actions-redirect-middleware-rewrite/app/server-action/edge/page.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 56 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.iota</groupId>
<artifactId>iri</artifactId>
<version>1.8.6</version>
<name>IRI</name>
<description>IOTA Reference Implementation</description>
<scm>
<url>path_to_url
<connection>scm:git:git://github.com/iotaledger/iri.git</connection>
<developerConnection>scm:git:git@github.com/iotaledger/iri.git</developerConnection>
</scm>
<properties>
<java-version>1.8</java-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<javadoc-version>3.1.0</javadoc-version>
<checkstyle-version>3.0.0</checkstyle-version>
<undertow.version>2.0.23.Final</undertow.version>
<jackson-databind.version>2.9.10.3</jackson-databind.version>
<zero-allocation-hashing.version>0.8</zero-allocation-hashing.version>
<system-rules.version>1.19.0</system-rules.version>
<jacoco.version>0.7.9</jacoco.version>
<!-- Setting the checkstyle.config.location here will make checkstyle use this file in every maven target.
This variable will be load by checkstyle plugin automatically. It is more global than setting the
configLocation attribute on every maven goal. -->
<checkstyle.config.location>checkstyle.xml</checkstyle.config.location>
<md-doclet-group>com.github.iotaledger</md-doclet-group>
<md-doclet-artifact>java-md-doclet</md-doclet-artifact>
<md-doclet-version>master-SNAPSHOT</md-doclet-version>
<guice-version>4.2.2</guice-version>
</properties>
<repositories>
<repository>
<id>jitpack.io</id>
<url>path_to_url
</repository>
<repository>
<id>sonatype-oss-public</id>
<url>path_to_url
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<!-- path_to_url -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.58</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.5</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.1</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.5</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>org.rocksdb</groupId>
<artifactId>rocksdbjni</artifactId>
<version>6.3.6</version>
</dependency>
<!-- json support -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.1</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-databind.version}</version>
</dependency>
<!-- undertow server -->
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-core</artifactId>
<version>${undertow.version}</version>
</dependency>
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-servlet</artifactId>
<version>${undertow.version}</version>
</dependency>
<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-websockets-jsr</artifactId>
<version>${undertow.version}</version>
</dependency>
<!-- RESTEasy Undertow Integration -->
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-undertow</artifactId>
<version>3.6.3.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jackson-provider</artifactId>
<version>3.6.3.Final</version>
</dependency>
<!-- guice for dependency injection -->
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice-version}</version>
</dependency>
<!-- test dependencies -->
<!-- path_to_url -->
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>2.9.0</version>
<scope>test</scope>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.2.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>2.27.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>uk.co.froot.maven.enforcer</groupId>
<artifactId>digest-enforcer-rules</artifactId>
<version>0.0.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.openhft</groupId>
<artifactId>zero-allocation-hashing</artifactId>
<version>${zero-allocation-hashing.version}</version>
</dependency>
<dependency>
<groupId>org.ini4j</groupId>
<artifactId>ini4j</artifactId>
<version>0.5.4</version>
</dependency>
<dependency>
<groupId>org.zeromq</groupId>
<artifactId>jeromq</artifactId>
<version>0.4.3</version>
</dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.72</version>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.21</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.21</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${md-doclet-group}</groupId>
<artifactId>${md-doclet-artifact}</artifactId>
<version>${md-doclet-version}</version>
</dependency>
<dependency>
<groupId>pl.touk</groupId>
<artifactId>throwing-function</artifactId>
<version>1.3</version>
</dependency>
<!-- path_to_url -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.0</version>
</dependency>
<dependency>
<groupId>net.openhft</groupId>
<artifactId>zero-allocation-hashing</artifactId>
<version>0.8</version>
</dependency>
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<version>${system-rules.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${java-version}</source>
<target>${java-version}</target>
<testSource>${java-version}</testSource>
<testTarget>${java-version}</testTarget>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
<!-- The javadoc plugin can be called by running "mvn javadoc:javadoc" and will generate the classic javadoc
files in folder "target/site/apidocs" -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-version}</version>
<configuration>
<!-- These tags are not defined by the default javadoc configuration. They must be defined here
or maven will break with unknown parameter @implNote for example. -->
<tags>
<tag>
<name>apiNote</name>
<placement>a</placement>
<head>API Note:</head>
</tag>
<tag>
<name>implSpec</name>
<placement>a</placement>
<head>Implementation Requirements:</head>
</tag>
<tag>
<name>implNote</name>
<placement>a</placement>
<head>Implementation Note:</head>
</tag>
</tags>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<finalName>iri-${project.version}</finalName>
<outputDirectory>${project.basedir}/target</outputDirectory>
<archive>
<manifest>
<mainClass>com.iota.iri.IRI</mainClass>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- This checkstyle goal will only be invoked during the validate goal or by running "mvn validate"
manually. It indirectly calls "mvn checkstyle:check" -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle-version}</version>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<configLocation>${checkstyle.config.location}</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Use the Enforcer to verify build integrity -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>enforce</id>
<phase>package</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<digestRule implementation="uk.co.froot.maven.enforcer.DigestRule">
<!-- Create a snapshot to build the list of URNs below -->
<buildSnapshot>true</buildSnapshot>
<!-- List of required hashes -->
<!-- Format is URN of groupId:artifactId:version:type:classifier:scope:hash -->
<!-- classifier is "null" if not present -->
<urns>
<urn>
org.apache.commons:commons-lang3:3.5:jar:null:compile:6c6c702c89bfff3cd9e80b04d668c5e190d588c6
</urn>
<!-- path_to_url -->
<urn>
org.slf4j:slf4j-api:1.7.25:jar:null:compile:da76ca59f6a57ee3102f8f9bd9cee742973efa8a
</urn>
<urn>
ch.qos.logback:logback-classic:1.2.3:jar:null:compile:7c4f3c474fb2c041d8028740440937705ebb473a
</urn>
<urn>
commons-io:commons-io:2.5:jar:null:compile:2852e6e05fbb95076fc091f6d1780f1f8fe35e0f
</urn>
<urn>
org.rocksdb:rocksdbjni:6.3.6:jar:null:compile:2941662625cc8151e7ed5d22120fada1f76026a9
</urn>
<urn>
com.google.code.gson:gson:2.8.1:jar:null:compile:02a8e0aa38a2e21cb39e2f5a7d6704cbdc941da0
</urn>
<urn>
io.undertow:undertow-core:${undertow.version}:jar:null:compile:0ffc9206dd984c29741cab34742c2939f73f735d
</urn>
<urn>
io.undertow:undertow-servlet:${undertow.version}:jar:null:compile:038479670a2493219939182d47b49061a3251015
</urn>
<urn>
io.undertow:undertow-websockets-jsr:${undertow.version}:jar:null:compile:ca55c266f11a3569be1d93a81427a7b541fd1a65
</urn>
<!--
not used anymore
<urn>org.reflections:reflections:0.9.10:jar:null:compile:3812159b1b4b7c296fa80f53eed6362961eb85da</urn>
-->
<urn>
net.openhft:zero-allocation-hashing:${zero-allocation-hashing.version}:jar:null:compile:9e32cfe154dca19e6024d2faa6027d6cad8cea3c
</urn>
<urn>
com.jayway.restassured:rest-assured:2.9.0:jar:null:test:d0d5b6720a58472ab99287c931a8205373d6e7b2
</urn>
<urn>
com.jayway.jsonpath:json-path:2.2.0:jar:null:test:22290d17944bd239fabf5ac69005a60a7ecbbbcb
</urn>
<urn>junit:junit:4.12:jar:null:test:2973d150c0dc1fefe998f834810d68f278ea58ec
</urn>
<urn>
org.ini4j:ini4j:0.5.4:jar:null:compile:4a3ee4146a90c619b20977d65951825f5675b560
</urn>
<urn>
org.bouncycastle:bcprov-jdk15on:1.58:jar:null:compile:2c9aa1c4e3372b447ba5daabade4adf2a2264b12
</urn>
<urn>
com.fasterxml.jackson.core:jackson-databind:${jackson-databind.version}:jar:null:compile:cc6976cdd5bacfaa005bbec6ed97f6949c3ea817
</urn>
<urn>
com.beust:jcommander:1.72:jar:null:compile:6375e521c1e11d6563d4f25a07ce124ccf8cd171
</urn>
<urn>
pl.touk:throwing-function:1.3:jar:null:compile:32947866b8754295efde73ee7d39ea29a247a2b5
</urn>
<urn>
org.jboss.resteasy:resteasy-undertow:3.6.3.Final:jar:null:compile:b5d9d0e709de777b87d72927b405a2e88d39d1fa
</urn>
<urn>
org.jboss.resteasy:resteasy-jackson-provider:3.6.3.Final:jar:null:compile:5e999c6a9d18b6f0492ea44765403de164fb4abf
</urn>
<!-- A check for the rules themselves -->
<urn>
uk.co.froot.maven.enforcer:digest-enforcer-rules:0.0.1:jar:null:runtime:16a9e04f3fe4bb143c42782d07d5faf65b32106f
</urn>
<urn>
com.github.stefanbirkner:system-rules:${system-rules.version}:jar:null:test:d541c9a1cff0dda32e2436c74562e2e4aa6c88cd
</urn>
</urns>
</digestRule>
</rules>
</configuration>
</execution>
</executions>
<!-- Ensure we download the enforcer rules -->
<dependencies>
<dependency>
<groupId>uk.co.froot.maven.enforcer</groupId>
<artifactId>digest-enforcer-rules</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<configuration>
<excludes>
<exclude>integration/*.java</exclude>
<exclude>benchmarks/**/*</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>test</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>integration/*.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>integration-test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.zlika</groupId>
<artifactId>reproducible-build-maven-plugin</artifactId>
<version>0.7</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>strip-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>build-extras</id>
<activation>
<property>
<name>build</name>
<value>full</value>
</property>
</activation>
<properties>
<gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-version}</version>
<configuration>
<show>private</show>
<nohelp>true</nohelp>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>package</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>jdeb</artifactId>
<groupId>org.vafer</groupId>
<version>1.8</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>jdeb</goal>
</goals>
<configuration>
<!--
<signPackage>true</signPackage>
<keyring>${project.basedir}/codesigning.gpg</keyring>
-->
<verbose>true</verbose>
<snapshotExpand>true</snapshotExpand>
<!-- expand "SNAPSHOT" to what is in the "USER" env variable -->
<snapshotEnv>USER</snapshotEnv>
<verbose>true</verbose>
<controlDir>${basedir}/src/deb/control</controlDir>
<dataSet>
<data>
<src>${project.build.directory}/${project.build.finalName}.jar</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/usr/share/iota/lib</prefix>
<user>loader</user>
<group>loader</group>
</mapper>
</data>
<data>
<type>link</type>
<symlink>true</symlink>
<linkName>/usr/share/iota/iri.jar</linkName>
<linkTarget>/usr/share/iota/lib/${project.build.finalName}.jar</linkTarget>
</data>
<data>
<src>${basedir}/src/deb/init.d</src>
<type>directory</type>
<mapper>
<type>perm</type>
<prefix>/etc/init.d</prefix>
<user>loader</user>
<group>loader</group>
</mapper>
</data>
<data>
<type>template</type>
<paths>
<path>etc/${project.artifactId}</path>
<path>var/lib/${project.artifactId}</path>
<path>var/log/${project.artifactId}</path>
<path>var/run/${project.artifactId}</path>
</paths>
<mapper>
<type>perm</type>
<user>loader</user>
<group>loader</group>
</mapper>
</data>
</dataSet>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!-- The reporting section is called during the maven site goal.
It can be called manually by running mvn clean site -->
<reporting>
<plugins>
<!-- The site plugin can be called by "mvn site". This is the classic configuration and recommended
configuration format. for more details visit:
path_to_url and
path_to_url
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<!-- This checkstyle goal is indirectly called during report generation or by
running "mvn checkstyle:checkstyle" manually-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle-version}</version>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<!-- The javadoc for the report can be called by running "mvn site" and will generate the the iota
documentation in Markdown format.
Note: If you need the classic api documentation run "mvn javadoc:javadoc" instead.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc-version}</version>
<reportSets>
<reportSet>
<id>javadoc</id>
<configuration>
<!-- This dependency can be found at: path_to_url -->
<doclet>org.iota.mddoclet.MDDoclet</doclet>
<sourcepath>src/main/java</sourcepath>
<useStandardDocletOptions>false</useStandardDocletOptions>
<additionalOptions>
<additionalOption>-version "${project.version}"</additionalOption>
<additionalOption>-classeslist "API"</additionalOption>
<additionalOption>-template "iri"</additionalOption>
<additionalOption>
-repolink "${project.scm.url}blob/master/src/main/java/"
</additionalOption>
</additionalOptions>
<quiet>true</quiet>
<docletArtifact>
<groupId>${md-doclet-group}</groupId>
<artifactId>${md-doclet-artifact}</artifactId>
<version>${md-doclet-version}</version>
</docletArtifact>
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>
``` | /content/code_sandbox/pom.xml | xml | 2016-10-24T22:06:06 | 2024-07-18T14:01:49 | iri | iotaledger/iri | 1,152 | 6,304 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@android:color/black"
android:textSize="16sp"
android:textStyle="bold"
android:id="@+id/title"
android:layout_marginLeft="15dp"/>
<thereisnospon.codeview.CodeView
android:id="@+id/code_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:layout_marginTop="10dp"
android:clickable="true" />
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/item_code_view.xml | xml | 2016-06-02T11:11:55 | 2024-08-02T07:34:23 | AlgorithmVisualizer-Android | naman14/AlgorithmVisualizer-Android | 1,129 | 184 |
```xml
import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router";
import {
EnvironmentService,
RegionConfig,
} from "@bitwarden/common/platform/abstractions/environment.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import { Utils } from "@bitwarden/common/platform/misc/utils";
@Component({
selector: "environment-selector",
templateUrl: "environment-selector.component.html",
})
export class EnvironmentSelectorComponent implements OnInit {
constructor(
private platformUtilsService: PlatformUtilsService,
private environmentService: EnvironmentService,
private router: Router,
) {}
protected availableRegions = this.environmentService.availableRegions();
protected currentRegion?: RegionConfig;
protected showRegionSelector = false;
protected routeAndParams: string;
async ngOnInit() {
this.showRegionSelector = !this.platformUtilsService.isSelfHost();
this.routeAndParams = `/#${this.router.url}`;
const host = Utils.getHost(window.location.href);
this.currentRegion = this.availableRegions.find((r) => Utils.getHost(r.urls.webVault) === host);
}
}
``` | /content/code_sandbox/apps/web/src/app/components/environment-selector/environment-selector.component.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 240 |
```xml
import fs from 'fs-extra';
import { CantParseJSONFile } from './errors-ts';
import JSONparse from 'json-parse-better-errors';
import { errorToString } from '@vercel/error-utils';
export default async function readJSONFile<T>(
file: string
): Promise<T | null | CantParseJSONFile> {
const content = await readFileSafe(file);
if (content === null) {
return content;
}
try {
const json = JSONparse(content);
return json;
} catch (error) {
return new CantParseJSONFile(file, errorToString(error));
}
}
async function readFileSafe(file: string) {
try {
return await fs.readFile(file, 'utf8');
} catch (_) {
return null;
}
}
``` | /content/code_sandbox/packages/cli/src/util/read-json-file.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 165 |
```xml
import { FC } from 'react';
import styled from 'styled-components';
import { LinkApp } from '@components';
import { socialMediaLinks, SUPPORT_EMAIL } from '@config';
import { COLORS, FONT_SIZE } from '@theme';
import { Trans } from '@translations';
import { ProtectTxError } from '../types';
const ProtectedTransactionErrorWrapper = styled.div`
text-align: left;
margin-top: 15px;
width: 100%;
font-size: ${FONT_SIZE.SM};
line-height: 21px;
color: ${COLORS.PASTEL_RED};
`;
interface Props {
shown: boolean;
protectTxError: ProtectTxError;
}
export const ProtectTxShowError: FC<Props> = ({ shown, protectTxError }) => {
if (!shown) return <></>;
const twitter = socialMediaLinks.find((s) => s.text.toLowerCase() === 'twitter');
if (protectTxError === ProtectTxError.ETH_ONLY) {
return (
<ProtectedTransactionErrorWrapper>
<Trans
id="PROTECTED_TX_ERROR_ETH_ONLY"
variables={{
$supportEmail: () => (
<LinkApp
color={'PASTEL_RED'}
$underline={true}
isExternal={true}
href={`mailto:${SUPPORT_EMAIL}?subject=Protected transaction ETH only`}
>
{SUPPORT_EMAIL}
</LinkApp>
),
$twitter: () => (
<LinkApp
color={'PASTEL_RED'}
$underline={true}
isExternal={true}
href={twitter!.link}
>
{'Twitter'}
</LinkApp>
)
}}
/>
</ProtectedTransactionErrorWrapper>
);
} else if (protectTxError === ProtectTxError.LESS_THAN_MIN_AMOUNT) {
return (
<ProtectedTransactionErrorWrapper>
<Trans
id="PROTECTED_TX_ERROR_LESS_THAN_MIN_AMOUNT"
variables={{
$supportEmail: () => (
<LinkApp
color={'PASTEL_RED'}
$underline={true}
isExternal={true}
href={`mailto:${SUPPORT_EMAIL}?subject=Protected transaction $5.00 limit`}
>
{SUPPORT_EMAIL}
</LinkApp>
),
$twitter: () => (
<LinkApp
color={'PASTEL_RED'}
$underline={true}
isExternal={true}
href={twitter!.link}
>
{'Twitter'}
</LinkApp>
)
}}
/>
</ProtectedTransactionErrorWrapper>
);
}
return <></>;
};
``` | /content/code_sandbox/src/features/ProtectTransaction/components/ProtectTxShowError.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 551 |
```xml
<Page x:Class="Microsoft.Toolkit.Uwp.SampleApp.SamplePages.IconExtensionsPage"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
mc:Ignorable="d">
<Grid>
<StackPanel>
<CommandBar>
<AppBarButton Icon="{ui:FontIcon Glyph=}"/>
<AppBarButton Icon="{ui:SymbolIcon Symbol=Play}"/>
</CommandBar>
<SwipeControl>
<SwipeControl.LeftItems>
<SwipeItems Mode="Reveal">
<SwipeItem Text="Accept" IconSource="{ui:FontIconSource Glyph=}"/>
<SwipeItem Text="Play" IconSource="{ui:SymbolIconSource Symbol=Play}"/>
<SwipeItem IconSource="{ui:BitmapIconSource Source=/Assets/ToolkitLogo.png}"/>
</SwipeItems>
</SwipeControl.LeftItems>
</SwipeControl>
<Button>
<Button.Flyout>
<MenuFlyout>
<MenuFlyoutItem Icon="{ui:BitmapIcon Source=/Assets/ToolkitLogo.png}" />
</MenuFlyout>
</Button.Flyout>
</Button>
</StackPanel>
</Grid>
</Page>
``` | /content/code_sandbox/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/IconExtensions/IconExtensionsPage.xaml | xml | 2016-06-17T21:29:46 | 2024-08-16T09:32:00 | WindowsCommunityToolkit | CommunityToolkit/WindowsCommunityToolkit | 5,842 | 294 |
```xml
import * as React from 'react';
import { Field, makeStyles, tokens, Switch } from '@fluentui/react-components';
import { FadeExaggerated } from '@fluentui/react-motion-components-preview';
import description from './FadeExaggerated.stories.md';
const useClasses = makeStyles({
container: {
display: 'grid',
gridTemplate: `"controls ." "card card" / 1fr 1fr`,
gap: '20px 10px',
},
card: {
gridArea: 'card',
padding: '10px',
},
controls: {
display: 'flex',
flexDirection: 'column',
gridArea: 'controls',
border: `${tokens.strokeWidthThicker} solid ${tokens.colorNeutralForeground3}`,
borderRadius: tokens.borderRadiusMedium,
boxShadow: tokens.shadow16,
padding: '10px',
},
field: {
flex: 1,
},
});
const LoremIpsum = () => (
<>
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. '.repeat(
10,
)}
</>
);
export const Exaggerated = () => {
const classes = useClasses();
const [visible, setVisible] = React.useState<boolean>(false);
return (
<div className={classes.container}>
<div className={classes.controls}>
<Field className={classes.field}>
<Switch label="Visible" checked={visible} onChange={() => setVisible(v => !v)} />
</Field>
</div>
<FadeExaggerated visible={visible}>
<div className={classes.card}>
<LoremIpsum />
</div>
</FadeExaggerated>
</div>
);
};
Exaggerated.parameters = {
docs: {
description: {
story: description,
},
},
};
``` | /content/code_sandbox/packages/react-components/react-motion-components-preview/stories/src/Fade/FadeExaggerated.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 399 |
```xml
export { VSheet } from './VSheet'
``` | /content/code_sandbox/packages/vuetify/src/components/VSheet/index.ts | xml | 2016-09-12T00:39:35 | 2024-08-16T20:06:39 | vuetify | vuetifyjs/vuetify | 39,539 | 11 |
```xml
import * as React from "react";
import BaseEmail, { EmailProps } from "./BaseEmail";
import Body from "./components/Body";
import Button from "./components/Button";
import EmailTemplate from "./components/EmailLayout";
import EmptySpace from "./components/EmptySpace";
import Footer from "./components/Footer";
import Header from "./components/Header";
import Heading from "./components/Heading";
type Props = EmailProps & {
teamUrl: string;
webhookName: string;
};
/**
* Email sent to the creator of a webhook when the webhook has become disabled
* due to repeated failure.
*/
export default class WebhookDisabledEmail extends BaseEmail<Props> {
protected subject() {
return `Warning: Webhook disabled`;
}
protected preview({ webhookName }: Props) {
return `Your webhook (${webhookName}) has been disabled`;
}
protected renderAsText({ webhookName, teamUrl }: Props): string {
return `
Your webhook (${webhookName}) has been automatically disabled as the last 25
delivery attempts have failed. You can re-enable by editing the webhook.
Webhook settings: ${teamUrl}/settings/webhooks
`;
}
protected render(props: Props) {
const { webhookName, teamUrl } = props;
const webhookSettingsLink = `${teamUrl}/settings/webhooks`;
return (
<EmailTemplate previewText={this.preview(props)}>
<Header />
<Body>
<Heading>Webhook disabled</Heading>
<p>
Your webhook ({webhookName}) has been automatically disabled as the
last 25 delivery attempts have failed. You can re-enable by editing
the webhook.
</p>
<EmptySpace height={10} />
<p>
<Button href={webhookSettingsLink}>Webhook settings</Button>
</p>
</Body>
<Footer />
</EmailTemplate>
);
}
}
``` | /content/code_sandbox/server/emails/templates/WebhookDisabledEmail.tsx | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 403 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="path_to_url"
xmlns:x="path_to_url"
x:Class="Xamarin.Forms.Xaml.UnitTests.Bz46921">
<ContentPage.Resources>
<ResourceDictionary>
<Thickness x:Key="thickness0">4,20,4,20</Thickness>
<Thickness
x:Key="thickness1"
Left="4"
Top="20"
Bottom="20"
Right="4"/>
<Thickness x:Key="thickness2">
<Thickness.Left>
4
</Thickness.Left>
<Thickness.Top>
20
</Thickness.Top>
<Thickness.Bottom>
20
</Thickness.Bottom>
<Thickness.Right>
4
</Thickness.Right>
</Thickness>
<Thickness x:Key="thickness3">
<Thickness.Left>
<x:Double>4</x:Double>
</Thickness.Left>
<Thickness.Top>
<x:Double>20</x:Double>
</Thickness.Top>
<Thickness.Bottom>
<x:Double>20</x:Double>
</Thickness.Bottom>
<Thickness.Right>
<x:Double>4</x:Double>
</Thickness.Right>
</Thickness>
</ResourceDictionary>
</ContentPage.Resources>
</ContentPage>
``` | /content/code_sandbox/Xamarin.Forms.Xaml.UnitTests/Issues/Bz46921.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 329 |
```xml
import * as React from 'react';
import { clamp, useControllableState, useEventCallback } from '@fluentui/react-utilities';
import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';
import { sliderCSSVars } from './useSliderStyles.styles';
import type { SliderState, SliderProps } from './Slider.types';
const { sliderStepsPercentVar, sliderProgressVar, sliderDirectionVar } = sliderCSSVars;
const getPercent = (value: number, min: number, max: number) => {
return max === min ? 0 : ((value - min) / (max - min)) * 100;
};
export const useSliderState_unstable = (state: SliderState, props: SliderProps) => {
'use no memo';
const { min = 0, max = 100, step } = props;
const { dir } = useFluent();
const [currentValue, setCurrentValue] = useControllableState({
state: props.value,
defaultState: props.defaultValue,
initialState: 0,
});
const clampedValue = clamp(currentValue, min, max);
const valuePercent = getPercent(clampedValue, min, max);
const inputOnChange = state.input.onChange;
const propsOnChange = props.onChange;
const onChange: React.ChangeEventHandler<HTMLInputElement> = useEventCallback(ev => {
const newValue = Number(ev.target.value);
setCurrentValue(clamp(newValue, min, max));
if (inputOnChange && inputOnChange !== propsOnChange) {
inputOnChange(ev);
} else if (propsOnChange) {
propsOnChange(ev, { value: newValue });
}
});
const rootVariables = {
[sliderDirectionVar]: state.vertical ? '0deg' : dir === 'ltr' ? '90deg' : '270deg',
[sliderStepsPercentVar]: step && step > 0 ? `${(step * 100) / (max - min)}%` : '',
[sliderProgressVar]: `${valuePercent}%`,
};
// Root props
state.root.style = {
...rootVariables,
...state.root.style,
};
// Input Props
state.input.value = clampedValue;
state.input.onChange = onChange;
return state;
};
``` | /content/code_sandbox/packages/react-components/react-slider/library/src/components/Slider/useSliderState.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 487 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<androidx.cardview.widget.CardView
xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:id="@+id/demoItemCard"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
app:cardCornerRadius="0dp"
>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/itemName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="8dp"
/>
<com.google.android.exoplayer2.ui.PlayerView
android:id="@+id/itemVideo"
android:layout_width="match_parent"
android:layout_height="200dp"
android:minHeight="200dp"
app:resize_mode="zoom"
app:surface_type="texture_view"
app:use_controller="false"
tools:layout_height="180dp"
>
<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/playerStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="8dp"
android:background="#80fefefe"
android:paddingBottom="4dp"
android:paddingEnd="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:paddingStart="8dp"
android:paddingTop="4dp"
android:textColor="@color/cardview_dark_background"
/>
</com.google.android.exoplayer2.ui.PlayerView>
<androidx.appcompat.widget.LinearLayoutCompat
android:id="@+id/itemVideos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#80e0e0e0"
android:minHeight="80dp"
>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.cardview.widget.CardView>
``` | /content/code_sandbox/demo-exoplayer/src/main/res/layout/view_holder_demo_item.xml | xml | 2016-01-31T15:45:41 | 2024-08-14T02:52:55 | toro | eneim/toro | 1,414 | 541 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Iterator as Iter, IterableIterator } from '@stdlib/types/iter';
// Define a union type representing both iterable and non-iterable iterators:
type Iterator = Iter | IterableIterator;
/**
* Returns an iterator which iteratively computes the normalized cardinal sine.
*
* ## Notes
*
* - If an environment supports `Symbol.iterator` **and** a provided iterator is iterable, the returned iterator is iterable.
*
* @param iterator - input iterator
* @returns iterator
*
* @example
* var uniform = require( '@stdlib/random/iter/uniform' );
*
* var iter = iterSinc( uniform( -5.0, 5.0 ) );
*
* var v = iter.next().value;
* // returns <number>
*
* v = iter.next().value;
* // returns <number>
*
* v = iter.next().value;
* // returns <number>
*
* // ...
*/
declare function iterSinc( iterator: Iterator ): Iterator;
// EXPORTS //
export = iterSinc;
``` | /content/code_sandbox/lib/node_modules/@stdlib/math/iter/special/sinc/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 281 |
```xml
import WojtekmajRangePicker from '@wojtekmaj/react-daterange-picker';
import { Calendar, X } from 'lucide-react';
import { date, object, SchemaOf } from 'yup';
import { FormikErrors } from 'formik';
import '@wojtekmaj/react-daterange-picker/dist/DateRangePicker.css';
import 'react-calendar/dist/Calendar.css';
import { FormControl } from '@@/form-components/FormControl';
import 'react-datetime-picker/dist/DateTimePicker.css';
type Value = { start: Date; end: Date | null };
export function DateRangePicker({
value,
onChange,
name,
error,
}: {
value: Value | undefined;
onChange: (value?: Value) => void;
name?: string;
error?: FormikErrors<Value>;
}) {
return (
<FormControl label="Date range" errors={error}>
<div className="w-1/2">
<WojtekmajRangePicker
format="y-MM-dd"
className="form-control [&>div]:border-0"
value={value ? [value.start, value.end] : null}
onChange={(date) => {
if (!date) {
onChange(undefined);
return;
}
if (Array.isArray(date)) {
if (date.length === 2 && date[0] && date[1]) {
onChange({
start: date[0],
end: date[1],
});
return;
}
onChange(undefined);
return;
}
onChange({ start: date, end: null });
}}
name={name}
calendarIcon={<Calendar />}
clearIcon={<X />}
/>
</div>
</FormControl>
);
}
export function dateRangePickerValidation(): SchemaOf<Value> {
return object({
start: date().required(),
end: date().nullable().default(null).required(),
});
}
``` | /content/code_sandbox/app/react/portainer/logs/components/DateRangePicker.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 410 |
```xml
export * from './array';
export * from './eventLoop';
export * from './crypto';
export * from './localStorage';
export * from './wallet';
export * from './account';
export * from './wasm';
``` | /content/code_sandbox/packages/wallet/utils/index.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 45 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="path_to_url">
<item
android:gravity="fill"
android:drawable="@drawable/menu_icon_circle" />
<item
android:gravity="center"
android:drawable="@drawable/ic_lego_face_24dp"
android:top="5dp"
android:bottom="5dp"
android:left="5dp"
android:right="5dp" />
</layer-list>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_lego_face_menu.xml | xml | 2016-02-01T23:48:36 | 2024-08-15T03:35:42 | TagMo | HiddenRamblings/TagMo | 2,976 | 108 |
```xml
import { MinusCircle } from 'lucide-react';
import { CellContext } from '@tanstack/react-table';
import { User, UserId } from '@/portainer/users/types';
import { notifySuccess } from '@/portainer/services/notifications';
import {
useRemoveMemberMutation,
useTeamMemberships,
} from '@/react/portainer/users/teams/queries';
import { Button } from '@@/buttons';
import { useRowContext } from '../RowContext';
import { columnHelper } from './helper';
export const name = columnHelper.accessor('Username', {
header: 'Name',
id: 'name',
cell: NameCell,
});
export function NameCell({
getValue,
row: { original: user },
}: CellContext<User, string>) {
const name = getValue();
const { disabled, teamId } = useRowContext();
const membershipsQuery = useTeamMemberships(teamId);
const removeMemberMutation = useRemoveMemberMutation(
teamId,
membershipsQuery.data
);
return (
<>
{name}
<Button
color="link"
data-cy={`remove-member-${user.Username}`}
className="space-left !p-0"
onClick={() => handleRemoveMember(user.Id)}
disabled={disabled}
icon={MinusCircle}
>
Remove
</Button>
</>
);
function handleRemoveMember(userId: UserId) {
removeMemberMutation.mutate([userId], {
onSuccess() {
notifySuccess('User removed from team', name);
},
});
}
}
``` | /content/code_sandbox/app/react/portainer/users/teams/ItemView/TeamAssociationSelector/TeamMembersList/columns/name-column.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 332 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import incrcovariance = require( './index' );
// TESTS //
// The function returns an accumulator function...
{
incrcovariance(); // $ExpectType accumulator
incrcovariance( 2, 4 ); // $ExpectType accumulator
}
// The compiler throws an error if the function is provided non-numeric arguments...
{
incrcovariance( 2, '5' ); // $ExpectError
incrcovariance( 2, true ); // $ExpectError
incrcovariance( 2, false ); // $ExpectError
incrcovariance( 2, null ); // $ExpectError
incrcovariance( 2, undefined ); // $ExpectError
incrcovariance( 2, [] ); // $ExpectError
incrcovariance( 2, {} ); // $ExpectError
incrcovariance( 2, ( x: number ): number => x ); // $ExpectError
incrcovariance( '5', 4 ); // $ExpectError
incrcovariance( true, 4 ); // $ExpectError
incrcovariance( false, 4 ); // $ExpectError
incrcovariance( null, 4 ); // $ExpectError
incrcovariance( undefined, 4 ); // $ExpectError
incrcovariance( [], 4 ); // $ExpectError
incrcovariance( {}, 4 ); // $ExpectError
incrcovariance( ( x: number ): number => x, 4 ); // $ExpectError
}
// The compiler throws an error if the function is provided an invalid number of arguments...
{
incrcovariance( 1 ); // $ExpectError
incrcovariance( 2, 2, 3 ); // $ExpectError
}
// The function returns an accumulator function which returns an accumulated result...
{
const acc = incrcovariance();
acc(); // $ExpectType number | null
acc( 3.14, 2.0 ); // $ExpectType number | null
}
// The function returns an accumulator function which returns an accumulated result (known means)...
{
const acc = incrcovariance( 2, -3 );
acc(); // $ExpectType number | null
acc( 3.14, 2.0 ); // $ExpectType number | null
}
// The compiler throws an error if the returned accumulator function is provided invalid arguments...
{
const acc = incrcovariance();
acc( '5', 1.0 ); // $ExpectError
acc( true, 1.0 ); // $ExpectError
acc( false, 1.0 ); // $ExpectError
acc( null, 1.0 ); // $ExpectError
acc( [], 1.0 ); // $ExpectError
acc( {}, 1.0 ); // $ExpectError
acc( ( x: number ): number => x, 1.0 ); // $ExpectError
acc( 3.14, '5' ); // $ExpectError
acc( 3.14, true ); // $ExpectError
acc( 3.14, false ); // $ExpectError
acc( 3.14, null ); // $ExpectError
acc( 3.14, [] ); // $ExpectError
acc( 3.14, {} ); // $ExpectError
acc( 3.14, ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the returned accumulator function is provided invalid arguments (known means)...
{
const acc = incrcovariance( 2, -3 );
acc( '5', 1.0 ); // $ExpectError
acc( true, 1.0 ); // $ExpectError
acc( false, 1.0 ); // $ExpectError
acc( null, 1.0 ); // $ExpectError
acc( [], 1.0 ); // $ExpectError
acc( {}, 1.0 ); // $ExpectError
acc( ( x: number ): number => x, 1.0 ); // $ExpectError
acc( 3.14, '5' ); // $ExpectError
acc( 3.14, true ); // $ExpectError
acc( 3.14, false ); // $ExpectError
acc( 3.14, null ); // $ExpectError
acc( 3.14, [] ); // $ExpectError
acc( 3.14, {} ); // $ExpectError
acc( 3.14, ( x: number ): number => x ); // $ExpectError
}
``` | /content/code_sandbox/lib/node_modules/@stdlib/stats/incr/covariance/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 1,080 |
```xml
/*
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
path_to_url
*/
import './_version.js';
export interface InstallResult {
updatedURLs: string[];
notUpdatedURLs: string[];
}
export interface CleanupResult {
deletedCacheRequests: string[];
}
export declare interface PrecacheEntry {
integrity?: string;
url: string;
revision?: string | null;
}
export interface PrecacheRouteOptions {
directoryIndex?: string;
ignoreURLParametersMatching?: RegExp[];
cleanURLs?: boolean;
urlManipulation?: urlManipulation;
}
export type urlManipulation = ({url}: {url: URL}) => URL[];
// * * * IMPORTANT! * * *
// your_sha256_hash--------- //
// jdsoc type definitions cannot be declared above TypeScript definitions or
// they'll be stripped from the built `.js` files, and they'll only be in the
// `d.ts` files, which aren't read by the jsdoc generator. As a result we
// have to put declare them below.
/**
* @typedef {Object} InstallResult
* @property {Array<string>} updatedURLs List of URLs that were updated during
* installation.
* @property {Array<string>} notUpdatedURLs List of URLs that were already up to
* date.
*
* @memberof workbox-precaching
*/
/**
* @typedef {Object} CleanupResult
* @property {Array<string>} deletedCacheRequests List of URLs that were deleted
* while cleaning up the cache.
*
* @memberof workbox-precaching
*/
/**
* @typedef {Object} PrecacheEntry
* @property {string} url URL to precache.
* @property {string} [revision] Revision information for the URL.
* @property {string} [integrity] Integrity metadata that will be used when
* making the network request for the URL.
*
* @memberof workbox-precaching
*/
/**
* The "urlManipulation" callback can be used to determine if there are any
* additional permutations of a URL that should be used to check against
* the available precached files.
*
* For example, Workbox supports checking for '/index.html' when the URL
* '/' is provided. This callback allows additional, custom checks.
*
* @callback ~urlManipulation
* @param {Object} context
* @param {URL} context.url The request's URL.
* @return {Array<URL>} To add additional urls to test, return an Array of
* URLs. Please note that these **should not be strings**, but URL objects.
*
* @memberof workbox-precaching
*/
``` | /content/code_sandbox/packages/workbox-precaching/src/_types.ts | xml | 2016-04-04T15:55:19 | 2024-08-16T08:33:26 | workbox | GoogleChrome/workbox | 12,245 | 570 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="path_to_url">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3E1EF5A8-7CD6-45BC-91B1-46B7A2FA213C}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>InstallFiles</RootNamespace>
<AssemblyName>Simplified_Bootstrapper_CRT</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>4.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Simplified Bootstrapper - CRT\</OutputPath>
<IntermediateOutputPath>bin\Simplified Bootstrapper - CRT\obj\</IntermediateOutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Simplified Bootstrapper - CRT\</OutputPath>
<IntermediateOutputPath>bin\Simplified Bootstrapper - CRT\obj\</IntermediateOutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL">
<HintPath>..\Wix_bin\SDK\Microsoft.Deployment.WindowsInstaller.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\WixSharp\WixSharp.csproj">
<Project>{8860B29B-749F-4925-86C8-F9C4B93C9DA5}</Project>
<Name>WixSharp</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\Wix# Samples\Bootstrapper\Simplified Bootstrapper\CRTsetup.cs">
<Link>setup.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
``` | /content/code_sandbox/Source/src/WixSharp.Samples/VSProjects/Simplified Bootstrapper - CRT.csproj | xml | 2016-01-16T05:51:01 | 2024-08-16T12:26:25 | wixsharp | oleg-shilo/wixsharp | 1,077 | 1,325 |
```xml
import memberAPI from '../api/memberAPI';
import assignMembers from './assignMembers';
function loadMembers() {
// Invert control!
// Return a function that accepts `dispatch` so we can dispatch later.
// Thunk middleware knows how to turn thunk async actions into actions.
return function (dispatch) {
return memberAPI.getAllMembersAsync().then(
data => dispatch(assignMembers(data))
);
};
}
export default loadMembers;
``` | /content/code_sandbox/old_class_components_samples/16 Custom Middleware/src/actions/loadMembers.ts | xml | 2016-02-28T11:58:58 | 2024-07-21T08:53:34 | react-typescript-samples | Lemoncode/react-typescript-samples | 1,846 | 95 |
```xml
<?xml version="1.0" encoding="UTF-8"?><xdp:xdp xmlns:xdp="path_to_url" timeStamp="2014-02-04T12:20:19Z" uuid="0ba43cb6-1573-43ce-99b5-150c0c170b33"> <config xmlns="path_to_url"> <agent name="designer"> <!-- [0..n] --> <destination>pdf</destination> <pdf> <!-- [0..n] --> <fontInfo/> </pdf> </agent> <present> <!-- [0..n] --> <pdf> <!-- [0..n] --> <version>1.7</version> <adobeExtensionLevel>8</adobeExtensionLevel> <renderPolicy>client</renderPolicy> <creator>Adobe LiveCycle Designer 11.0</creator> <producer>Adobe LiveCycle Designer 11.0</producer> <scriptModel>XFA</scriptModel> <interactive>1</interactive> <tagged>1</tagged> <fontInfo> <embed>1</embed> </fontInfo> <compression> <level>6</level> <compressLogicalStructure>1</compressLogicalStructure> <compressObjectStream>1</compressObjectStream> </compression> <linearized>1</linearized> <silentPrint> <addSilentPrint>0</addSilentPrint> <printerName/> </silentPrint> <viewerPreferences> <duplexOption>simplex</duplexOption> <numberOfCopies>0</numberOfCopies> <printScaling>appDefault</printScaling> <pickTrayByPDFSize>0</pickTrayByPDFSize> <enforce/> <ADBE_JSDebugger>delegate</ADBE_JSDebugger> <ADBE_JSConsole>delegate</ADBE_JSConsole> <addViewerPreferences>0</addViewerPreferences> </viewerPreferences> </pdf> <common> <log> <to>memory</to> <mode>overwrite</mode> </log> <template> <base>D:\Depot\itext\java\xtra\trunk\xfaworker\src\test\resources\xfa\flatten\simple-calc-sum\</base> </template> </common> <script> <runScripts>server</runScripts> </script> <xdp> <packets>*</packets> </xdp> <destination>pdf</destination> <output> <to>uri</to> <uri>D:\Depot\itext\java\xtra\trunk\xfaworker\src\test\resources\xfa\flatten\simple-calc-sum\simple-calc-sum.pdf</uri> </output> </present> <acrobat> <acrobat7> <dynamicRender>required</dynamicRender> </acrobat7> <common> <versionControl sourceBelow="maintain"/> <data> <xsl> <uri/> </xsl> <outputXSL> <uri/> </outputXSL> </data> <template> <base>D:\Depot\itext\java\xtra\trunk\xfaworker\src\test\resources\xfa\flatten\simple-calc-sum\</base> <relevant/> <uri/> </template> </common> <autoSave/> <validate>preSubmit</validate> </acrobat> </config> <template xmlns="path_to_url"><?formServer defaultPDFRenderFormat acrobat10.0dynamic?> <subform layout="tb" locale="en_US" name="form1"> <pageSet> <pageArea id="Page1" name="Page1"> <contentArea h="756pt" w="576pt" x="0.25in" y="0.25in"/> <medium long="792pt" short="612pt" stock="default"/><?templateDesigner expand 1?> </pageArea><?templateDesigner expand 1?> </pageSet> <subform h="756pt" w="576pt"> <field h="9mm" name="Number1" w="62mm" x="3.175mm" y="9.525mm"> <ui> <numericEdit> <border> <edge stroke="lowered"/> </border> <margin/> </numericEdit> </ui> <font typeface="Myriad Pro"/> <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/> <para vAlign="middle"/> <caption reserve="25mm"> <para vAlign="middle"/> <value> <text>Number1</text> </value> </caption> </field><?templateDesigner expand 1?> <field h="9mm" name="Number2" w="62mm" x="3.175mm" y="22.225mm"> <ui> <numericEdit> <border> <edge stroke="lowered"/> </border> <margin/> </numericEdit> </ui> <font typeface="Myriad Pro"/> <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/> <para vAlign="middle"/> <caption reserve="25mm"> <para vAlign="middle"/> <value> <text>Number2</text> </value> </caption> </field> <field access="readOnly" h="9mm" name="Sum" w="62mm" x="3.175mm" y="34.925mm"> <ui> <numericEdit> <border> <edge stroke="lowered"/> </border> <margin/> </numericEdit> </ui> <calculate> <script> Number1 + Number2</script> </calculate> <font typeface="Myriad Pro"/> <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/> <para vAlign="middle"/> <caption reserve="25mm"> <para vAlign="middle"/> <value> <text>Sum</text> </value> </caption> </field> </subform> <proto/> <desc> <text name="version">11.0.1.20130826.2.901444.899636</text> </desc><?templateDesigner expand 1?><?renderCache.subset "Myriad Pro" 0 0 ISO-8859-1 4 36 9 00120013002F003400430046004E0053005612NSbemru?> </subform><?templateDesigner DefaultPreviewDynamic 1?><?templateDesigner DefaultRunAt client?><?templateDesigner Grid show:1, snap:1, units:0, color:ff8080, origin:(0,0), interval:(125000,125000)?><?templateDesigner DefaultCaptionFontSettings face:Myriad Pro;size:10;weight:normal;style:normal?><?templateDesigner DefaultValueFontSettings face:Myriad Pro;size:10;weight:normal;style:normal?><?templateDesigner DefaultLanguage JavaScript?><?acrobat JavaScript strictScoping?><?templateDesigner WidowOrphanControl 0?><?templateDesigner Zoom 119?><?templateDesigner FormTargetVersion 33?><?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?> </template> <localeSet xmlns="path_to_url"> <locale name="en_US" desc="English (United States)"> <calendarSymbols name="gregorian"> <monthNames> <month>January</month> <month>February</month> <month>March</month> <month>April</month> <month>May</month> <month>June</month> <month>July</month> <month>August</month> <month>September</month> <month>October</month> <month>November</month> <month>December</month> </monthNames> <monthNames abbr="1"> <month>Jan</month> <month>Feb</month> <month>Mar</month> <month>Apr</month> <month>May</month> <month>Jun</month> <month>Jul</month> <month>Aug</month> <month>Sep</month> <month>Oct</month> <month>Nov</month> <month>Dec</month> </monthNames> <dayNames> <day>Sunday</day> <day>Monday</day> <day>Tuesday</day> <day>Wednesday</day> <day>Thursday</day> <day>Friday</day> <day>Saturday</day> </dayNames> <dayNames abbr="1"> <day>Sun</day> <day>Mon</day> <day>Tue</day> <day>Wed</day> <day>Thu</day> <day>Fri</day> <day>Sat</day> </dayNames> <meridiemNames> <meridiem>AM</meridiem> <meridiem>PM</meridiem> </meridiemNames> <eraNames> <era>BC</era> <era>AD</era> </eraNames> </calendarSymbols> <datePatterns> <datePattern name="full">EEEE, MMMM D, YYYY</datePattern> <datePattern name="long">MMMM D, YYYY</datePattern> <datePattern name="med">MMM D, YYYY</datePattern> <datePattern name="short">M/D/YY</datePattern> </datePatterns> <timePatterns> <timePattern name="full">h:MM:SS A Z</timePattern> <timePattern name="long">h:MM:SS A Z</timePattern> <timePattern name="med">h:MM:SS A</timePattern> <timePattern name="short">h:MM A</timePattern> </timePatterns> <dateTimeSymbols>GyMdkHmsSEDFwWahKzZ</dateTimeSymbols> <numberPatterns> <numberPattern name="numeric">z,zz9.zzz</numberPattern> <numberPattern name="currency">$z,zz9.99|($z,zz9.99)</numberPattern> <numberPattern name="percent">z,zz9%</numberPattern> </numberPatterns> <numberSymbols> <numberSymbol name="decimal">.</numberSymbol> <numberSymbol name="grouping">,</numberSymbol> <numberSymbol name="percent">%</numberSymbol> <numberSymbol name="minus">-</numberSymbol> <numberSymbol name="zero">0</numberSymbol> </numberSymbols> <currencySymbols> <currencySymbol name="symbol">$</currencySymbol> <currencySymbol name="isoname">USD</currencySymbol> <currencySymbol name="decimal">.</currencySymbol> </currencySymbols> <typefaces> <typeface name="Myriad Pro"/> <typeface name="Minion Pro"/> <typeface name="Courier Std"/> <typeface name="Adobe Pi Std"/> <typeface name="Adobe Hebrew"/> <typeface name="Adobe Arabic"/> <typeface name="Adobe Thai"/> <typeface name="Kozuka Gothic Pro-VI M"/> <typeface name="Kozuka Mincho Pro-VI R"/> <typeface name="Adobe Ming Std L"/> <typeface name="Adobe Song Std L"/> <typeface name="Adobe Myungjo Std M"/> </typefaces> </locale> </localeSet> <xfa:datasets xmlns:xfa="path_to_url"> <xfa:data> <form1> <Number1>1.00000000</Number1> <Number2>2.00000000</Number2> </form1> </xfa:data> </xfa:datasets> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.2-c001 63.139439, 2011/06/07-10:39:26 "> <rdf:RDF xmlns:rdf="path_to_url#"> <rdf:Description xmlns:xmp="path_to_url" rdf:about=""> <xmp:MetadataDate>2014-02-04T12:20:19Z</xmp:MetadataDate> <xmp:CreatorTool>Adobe LiveCycle Designer 11.0</xmp:CreatorTool> <xmp:ModifyDate>2014-02-04T15:19:50+03:00</xmp:ModifyDate> <xmp:CreateDate>2014-01-28T17:41:30+03:00</xmp:CreateDate> </rdf:Description> <rdf:Description xmlns:pdf="path_to_url" rdf:about=""> <pdf:Producer>Adobe LiveCycle Designer 11.0</pdf:Producer> </rdf:Description> <rdf:Description xmlns:xmpMM="path_to_url" rdf:about=""> <xmpMM:DocumentID>uuid:0ba43cb6-1573-43ce-99b5-150c0c170b33</xmpMM:DocumentID> <xmpMM:InstanceID>uuid:5e56667b-55e9-4f8e-8320-8cdfa8d3e052</xmpMM:InstanceID> </rdf:Description> <rdf:Description xmlns:dc="path_to_url" rdf:about=""> <dc:format>application/pdf</dc:format> </rdf:Description> <rdf:Description xmlns:desc="path_to_url" rdf:about=""> <desc:version rdf:parseType="Resource"> <rdf:value>11.0.1.20130826.2.901444.899636</rdf:value> <desc:ref>/template/subform[1]</desc:ref> </desc:version> </rdf:Description> </rdf:RDF> </x:xmpmeta> <xfdf xmlns="path_to_url" xml:space="preserve"> <annots/> </xfdf> <form xmlns="path_to_url" checksum="YM4h7gP9ngch5rOh0XrscOBofQE="> <subform name="form1"> <instanceManager name="_"/> <subform> <field name="Number1"> <value override="1"/> </field> <field name="Number2"> <value override="1"/> </field> <field name="Sum"/> </subform> <pageSet> <pageArea name="Page1"/> </pageSet> </subform> </form></xdp:xdp>
``` | /content/code_sandbox/itext.tests/itext.forms.tests/resources/itext/forms/xfa/XFAFormTest/xfa.xml | xml | 2016-06-16T14:34:03 | 2024-08-14T11:37:28 | itext-dotnet | itext/itext-dotnet | 1,630 | 3,417 |
```xml
import React, { Component } from "react";
import { graphql } from "react-relay";
import { QueryRenderer } from "coral-framework/lib/relay";
import { QueryError } from "coral-ui/components/v3";
import { DecisionHistoryQuery as QueryTypes } from "coral-admin/__generated__/DecisionHistoryQuery.graphql";
import DecisionHistoryContainer from "./DecisionHistoryContainer";
import DecisionHistoryLoading from "./DecisionHistoryLoading";
interface Props {
onClosePopover: () => void;
}
class DecisionHistoryQuery extends Component<Props> {
public render() {
return (
<QueryRenderer<QueryTypes>
query={graphql`
query DecisionHistoryQuery {
viewer {
...DecisionHistoryContainer_viewer
}
}
`}
variables={{}}
render={({ error, props }) => {
if (error) {
return <QueryError error={error} />;
}
if (!props || !props.viewer) {
return <DecisionHistoryLoading />;
}
return (
<DecisionHistoryContainer
viewer={props.viewer}
onClosePopover={this.props.onClosePopover}
/>
);
}}
/>
);
}
}
export default DecisionHistoryQuery;
``` | /content/code_sandbox/client/src/core/client/admin/App/DecisionHistory/DecisionHistoryQuery.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 251 |
```xml
import React, { useEffect } from 'react';
import { MiniPlayer } from '@nuclear/ui';
import {
usePlayerControlsProps,
useSeekbarProps,
useTrackInfoProps,
useVolumeControlsProps
} from '../PlayerBarContainer/hooks';
import { useMiniPlayerSettings } from './hooks';
import { ipcRenderer } from 'electron';
import { IpcEvents } from '@nuclear/core';
const MiniPlayerContainer: React.FC = () => {
const seekbarProps = useSeekbarProps();
const playerControlsProps = usePlayerControlsProps();
const trackInfoProps = useTrackInfoProps();
const volumeControlsProps = useVolumeControlsProps();
const {
isMiniPlayerEnabled,
toggleMiniPlayer
} = useMiniPlayerSettings();
useEffect(() => {
if (isMiniPlayerEnabled) {
ipcRenderer.send(IpcEvents.WINDOW_MINIFY);
} else {
ipcRenderer.send(IpcEvents.WINDOW_RESTORE);
}
}, [isMiniPlayerEnabled]);
return isMiniPlayerEnabled
? (
<MiniPlayer
{...seekbarProps}
{...playerControlsProps}
{...trackInfoProps}
{...volumeControlsProps}
onDisableMiniPlayer={toggleMiniPlayer}
style={{
zIndex: isMiniPlayerEnabled && 1000
}}
/>
)
: null;
};
export default MiniPlayerContainer;
``` | /content/code_sandbox/packages/app/app/containers/MiniPlayerContainer/index.tsx | xml | 2016-09-22T22:58:21 | 2024-08-16T15:47:39 | nuclear | nukeop/nuclear | 11,862 | 298 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.