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
type CognitiveServicesAudioOutputFormat =
| 'audio-16khz-128kbitrate-mono-mp3'
| 'audio-16khz-32kbitrate-mono-mp3'
| 'audio-16khz-64kbitrate-mono-mp3'
| 'audio-24khz-160kbitrate-mono-mp3'
| 'audio-24khz-48kbitrate-mono-mp3'
| 'audio-24khz-96kbitrate-mono-mp3'
| 'audio-48khz-192kbitrate-mono-mp3'
| 'audio-48khz-96kbitrate-mono-mp3'
| 'ogg-16khz-16bit-mono-opus'
| 'ogg-24khz-16bit-mono-opus'
| 'ogg-48khz-16bit-mono-opus'
| 'raw-16khz-16bit-mono-pcm'
| 'raw-16khz-16bit-mono-truesilk'
| 'raw-24khz-16bit-mono-pcm'
| 'raw-24khz-16bit-mono-truesilk'
| 'raw-48khz-16bit-mono-pcm'
| 'raw-8khz-8bit-mono-alaw'
| 'raw-8khz-8bit-mono-mulaw'
| 'riff-16khz-16bit-mono-pcm'
| 'riff-24khz-16bit-mono-pcm'
| 'riff-48khz-16bit-mono-pcm'
| 'riff-8khz-8bit-mono-alaw'
| 'riff-8khz-8bit-mono-mulaw'
| 'webm-16khz-16bit-mono-opus'
| 'webm-24khz-16bit-mono-opus';
export default CognitiveServicesAudioOutputFormat;
``` | /content/code_sandbox/packages/bundle/src/types/CognitiveServicesAudioOutputFormat.ts | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 451 |
```xml
// See LICENSE in the project root for license information.
import type { ISpecChange } from '../parsing/compareSpec';
export const displaySpecChanges = (specChanges: Map<string, ISpecChange>, dep: string): string => {
switch (specChanges.get(dep)?.type) {
case 'add':
return '[Added by .pnpmfile.cjs]';
case 'diff':
return `[Changed from ${specChanges.get(dep)?.from}]`;
case 'remove':
return '[Deleted by .pnpmfile.cjs]';
default:
return 'No Change';
}
};
``` | /content/code_sandbox/apps/lockfile-explorer-web/src/helpers/displaySpecChanges.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 127 |
```xml
import * as React from 'react';
import { CdsTag as Tag } from '@cds/core/tag';
import '@cds/core/tag/register';
import { createComponent } from '@lit-labs/react';
import { logReactVersion } from '../utils/index.js';
export const CdsTag = createComponent(React, 'cds-tag', Tag, {}, 'CdsTag');
logReactVersion(React);
``` | /content/code_sandbox/packages/react/src/tag/index.tsx | xml | 2016-09-29T17:24:17 | 2024-08-11T17:06:15 | clarity | vmware-archive/clarity | 6,431 | 86 |
```xml
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { CalendarDemo } from './calendardemo';
@NgModule({
imports: [RouterModule.forChild([{ path: '', component: CalendarDemo }])],
exports: [RouterModule]
})
export class CalendarDemoRoutingModule {}
``` | /content/code_sandbox/src/app/showcase/pages/calendar/calendardemo-routing.module.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 63 |
```xml
import { gql } from "@apollo/client"
const chatMessageInserted = gql`
subscription chatMessageInserted($chatId: String!) {
chatMessageInserted(chatId: $chatId) {
_id
content
createdUser {
_id
email
details {
avatar
fullName
}
}
createdAt
relatedMessage {
_id
content
createdUser {
_id
email
details {
avatar
fullName
}
}
}
seenList {
lastSeenMessageId
}
}
}
`
const chatInserted = `
subscription chatInserted($userId: String!) {
chatInserted(userId: $userId) {
_id
}
}
`
export default {
chatMessageInserted,
chatInserted,
}
``` | /content/code_sandbox/exm-web/modules/feed/graphql/subscriptions.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 175 |
```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 mapBy2 = require( './index' );
/**
* Accessor callback.
*
* @returns accessed values
*/
function accessor( values: [ number, number ] ): [ number, number ] {
return values;
}
/**
* Binary callback.
*
* @param x - input value
* @param y - input value
* @returns result
*/
function binary( x: number, y: number ): number {
return x + y;
}
// TESTS //
// The function returns a collection...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectType Collection<number>
mapBy2( x.length, x, 1, y, 1, z, 1, binary, accessor, {} ); // $ExpectType Collection<number>
}
// The compiler throws an error if the function is provided a first argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( '10', x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( true, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( false, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( null, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( undefined, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( [], x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( {}, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( ( x: number ): number => x, x, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a second argument which is not a collection...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, 10, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, true, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, false, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, null, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, undefined, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, {}, 1, y, 1, z, 1, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a third argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, '10', y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, true, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, false, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, null, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, undefined, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, [], y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, {}, y, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, ( x: number ): number => x, y, 1, z, 1, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a fourth argument which is not a collection...
{
const x = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, 1, 10, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, true, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, false, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, null, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, undefined, 1, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, {}, 1, z, 1, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a fifth argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, 1, y, '10', z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, true, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, false, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, null, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, undefined, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, [], z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, {}, z, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, ( x: number ): number => x, z, 1, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a sixth argument which is not a collection...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
mapBy2( x.length, x, 1, y, 1, 10, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, true, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, false, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, null, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, undefined, 1, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, {}, 1, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a seventh argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, 1, y, 1, z, '10', binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, true, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, false, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, null, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, undefined, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, [], binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, {}, binary, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, ( x: number ): number => x, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided an eighth argument which is not a binary function...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, 1, y, 1, z, 1, '10', accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, 0, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, true, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, false, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, null, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, undefined, accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, [], accessor ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, {}, accessor ); // $ExpectError
}
// The compiler throws an error if the function is provided a ninth argument which is not a function...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2( x.length, x, 1, y, 1, z, 1, binary, '10' ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, 0 ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, true ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, false ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, null ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, undefined ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, [] ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, {} ); // $ExpectError
}
// The compiler throws an error if the function is provided an unsupported number of arguments...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2(); // $ExpectError
mapBy2( x.length ); // $ExpectError
mapBy2( x.length, x ); // $ExpectError
mapBy2( x.length, x, 1 ); // $ExpectError
mapBy2( x.length, x, 1, y ); // $ExpectError
mapBy2( x.length, x, 1, y, 1 ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1 ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary ); // $ExpectError
mapBy2( x.length, x, 1, y, 1, z, 1, binary, accessor, 10, 10 ); // $ExpectError
}
// Attached to main export is an `ndarray` method which returns a collection...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectType Collection<number>
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor, {} ); // $ExpectType Collection<number>
}
// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( '10', x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( true, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( false, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( null, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( undefined, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( [], x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( {}, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( ( x: number ): number => x, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a second argument which is not a collection...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, 10, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, true, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, false, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, null, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, undefined, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, {}, 1, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a third argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, '10', 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, true, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, false, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, null, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, undefined, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, [], 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, {}, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, ( x: number ): number => x, 0, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a fourth argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, '10', y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, true, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, false, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, null, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, undefined, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, [], y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, {}, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, ( x: number ): number => x, y, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a fifth argument which is not a collection...
{
const x = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, 10, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, true, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, false, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, null, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, undefined, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, {}, 1, 0, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a sixth argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, '10', 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, true, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, false, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, null, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, undefined, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, [], 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, {}, 0, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, ( x: number ): number => x, 0, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a seventh argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, '10', z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, true, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, false, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, null, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, undefined, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, [], z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, {}, z, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, ( x: number ): number => x, z, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided an eighth argument which is not a collection...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, 10, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, true, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, false, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, null, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, undefined, 1, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, {}, 1, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a ninth argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, '10', 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, true, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, false, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, null, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, undefined, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, [], 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, {}, 0, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, ( x: number ): number => x, 0, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a tenth argument which is not a number...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, '10', binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, true, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, false, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, null, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, undefined, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, [], binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, {}, binary, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, ( x: number ): number => x, binary, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided an eleventh argument which is not a binary function...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, '10', accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, 0, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, true, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, false, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, null, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, undefined, accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, [], accessor ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, {}, accessor ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided a twelfth argument which is not a function...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, '10' ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, 0 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, true ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, false ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, null ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, undefined ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, [] ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, {} ); // $ExpectError
}
// The compiler throws an error if the `ndarray` method is provided an unsupported number of arguments...
{
const x = new Float64Array( 10 );
const y = new Float64Array( 10 );
const z = new Float64Array( 10 );
mapBy2.ndarray(); // $ExpectError
mapBy2.ndarray( x.length ); // $ExpectError
mapBy2.ndarray( x.length, x ); // $ExpectError
mapBy2.ndarray( x.length, x, 1 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0 ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary ); // $ExpectError
mapBy2.ndarray( x.length, x, 1, 0, y, 1, 0, z, 1, 0, binary, accessor, 10, 10 ); // $ExpectError
}
``` | /content/code_sandbox/lib/node_modules/@stdlib/strided/base/map-by2/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 7,941 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.hitomi.fungamerefreshdemo.ListViewActivity">
<!--
app:mask_top_text="111"
app:mask_bottom_text="222"
app:text_loading="333"
app:text_loading_finished="444"
app:text_game_over="666"
-->
<com.hitomi.refresh.view.FunGameRefreshView
android:id="@+id/refresh_fun_game"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:game_type="hit_block">
<ListView
android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"/>
</com.hitomi.refresh.view.FunGameRefreshView>
</RelativeLayout>
``` | /content/code_sandbox/fungamerefreshdemo/src/main/res/layout/activity_list_view.xml | xml | 2016-03-01T07:28:09 | 2024-08-16T02:11:49 | FunGameRefresh | Hitomis/FunGameRefresh | 1,326 | 230 |
```xml
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import {
IPropertyPaneConfiguration,
PropertyPaneTextField,
PropertyPaneToggle
} from '@microsoft/sp-property-pane';
import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base';
import * as strings from 'MyonedrivefilesWebPartStrings';
import Myonedrivefiles from './components/Myonedrivefiles';
import { IMyonedrivefilesProps } from './components/IMyonedrivefilesProps';
import { PropertyFieldMultiSelect } from '@pnp/spfx-property-controls/lib/PropertyFieldMultiSelect';
import { MSGraphClient } from '@microsoft/sp-http';
import { sp } from "@pnp/sp";
export interface IMyonedrivefilesWebPartProps {
title: string;
fields: string[];
titleLink: boolean;
}
export default class MyonedrivefilesWebPart extends BaseClientSideWebPart<IMyonedrivefilesWebPartProps> {
private graphClient: MSGraphClient;
public onInit(): Promise<void> {
sp.setup({
spfxContext: this.context
});
return new Promise<void>((resolve: () => void, reject: (error: any) => void): void => {
this.context.msGraphClientFactory
.getClient()
.then((client: MSGraphClient): void => {
this.graphClient = client;
resolve();
}, err => reject(err));
});
}
public render(): void {
const element: React.ReactElement<IMyonedrivefilesProps> = React.createElement(
Myonedrivefiles,
{
context: this.context,
graphClient: this.graphClient,
title: this.properties.title,
displayMode: this.displayMode,
fields: this.properties.fields,
titleLink: this.properties.titleLink,
updateProperty: (value: string): void => {
this.properties.title = value;
}
}
);
ReactDom.render(element, this.domElement);
}
protected onDispose(): void {
ReactDom.unmountComponentAtNode(this.domElement);
}
protected get dataVersion(): Version {
return Version.parse('1.0');
}
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
return {
pages: [
{
header: {
description: strings.PropertyPaneDescription
},
groups: [
{
groupName: strings.BasicGroupName,
groupFields: [
PropertyPaneTextField('title', {
label: strings.DescriptionFieldLabel
}),
PropertyFieldMultiSelect('fields', {
key: 'fields',
label: "Select fields",
options: [
{
key: 'name',
text: 'Name',
},
{
key: "lastModifiedDateTime",
text: "Modified"
},
{
key: "lastModifiedBy",
text: "Modified By"
},
{
key: 'folder',
text: 'File Size',
},
{
key: "shared",
text: "Sharing"
},
],
selectedKeys: this.properties.fields
}),
PropertyPaneToggle('titleLink', {
label: 'Show hyperlink on webpart title?'
}),
]
}
]
}
]
};
}
}
``` | /content/code_sandbox/samples/react-myonedrive/src/webparts/myonedrivefiles/MyonedrivefilesWebPart.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 711 |
```xml
import type Client from '../../util/client';
import { parseArguments } from '../../util/get-args';
import getProjectByCwdOrLink from '../../util/projects/get-project-by-cwd-or-link';
import handleError from '../../util/handle-error';
import { isErrnoException } from '@vercel/error-utils';
import ms from 'ms';
import requestRollback from './request-rollback';
import rollbackStatus from './status';
import { help } from '../help';
import { rollbackCommand } from './command';
import { getFlagsSpecification } from '../../util/get-flags-specification';
/**
* `vc rollback` command
* @param {Client} client
* @returns {Promise<number>} Resolves an exit code; 0 on success
*/
export default async (client: Client): Promise<number> => {
let parsedArgs = null;
const flagsSpecification = getFlagsSpecification(rollbackCommand.options);
// Parse CLI args
try {
parsedArgs = parseArguments(client.argv.slice(2), flagsSpecification);
} catch (error) {
handleError(error);
return 1;
}
const { output } = client;
if (parsedArgs.flags['--help']) {
output.print(help(rollbackCommand, { columns: client.stderr.columns }));
return 2;
}
// validate the timeout
let timeout = parsedArgs.flags['--timeout'];
if (timeout && ms(timeout) === undefined) {
client.output.error(`Invalid timeout "${timeout}"`);
return 1;
}
const actionOrDeployId = parsedArgs.args[1] || 'status';
try {
if (actionOrDeployId === 'status') {
const project = await getProjectByCwdOrLink({
autoConfirm: Boolean(parsedArgs.flags['--yes']),
client,
commandName: 'promote',
cwd: client.cwd,
projectNameOrId: parsedArgs.args[2],
});
return await rollbackStatus({
client,
project,
timeout,
});
}
return await requestRollback({
client,
deployId: actionOrDeployId,
timeout,
});
} catch (err) {
if (isErrnoException(err)) {
if (err.code === 'ERR_CANCELED') {
return 0;
}
if (err.code === 'ERR_INVALID_CWD' || err.code === 'ERR_LINK_PROJECT') {
// do not show the message
return 1;
}
}
client.output.prettyError(err);
return 1;
}
};
``` | /content/code_sandbox/packages/cli/src/commands/rollback/index.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 537 |
```xml
<?xml version="1.0" encoding="utf-8"?>
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<selector xmlns:android="path_to_url">
<item android:state_activated="true"
android:drawable="@color/bookmark_drawer_selected_background_color" />
<item android:drawable="@android:color/transparent"/>
</selector>
``` | /content/code_sandbox/libraries_res/chrome_res/src/main/res/drawable/bookmark_drawer_item_background.xml | xml | 2016-07-04T07:28:36 | 2024-08-15T05:20:42 | AndroidChromium | JackyAndroid/AndroidChromium | 3,090 | 91 |
```xml
import type { Configuration } from '@rspack/core';
const getAssetsRule = () => {
const assetsRule = [
[/\.woff2?$/], [/\.ttf$/], [/\.eot$/], [/\.svg$/],
[/\.(png|jpg|webp|jpeg|gif)$/i],
];
const queryRules = [{
resourceQuery: /raw/,
type: 'asset/source',
}, {
resourceQuery: /url/,
type: 'asset/resource',
}];
return (assetsRule.map(([test, ruleOption = {}, urlCondition = true]) => {
return {
test,
type: 'asset',
...(urlCondition ? {
parser: {
dataUrlCondition: {
maxSize: 8 * 1024, // 8kb
},
},
} : {}),
...(typeof ruleOption === 'object' ? ruleOption : {}),
};
}) as Configuration['module']['rules']).concat(queryRules);
};
export default getAssetsRule;
``` | /content/code_sandbox/packages/rspack-config/src/assetsRule.ts | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 216 |
```xml
/**
* Disposable interface.
*
* @public
* {@docCategory IDisposable}
*/
export interface IDisposable {
dispose: () => void;
}
``` | /content/code_sandbox/packages/utilities/src/IDisposable.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 30 |
```xml
import * as React from 'react';
import { Placeholder } from "@pnp/spfx-controls-react/lib/Placeholder";
import { MessageBar, MessageBarType, MessageBarButton } from 'office-ui-fabric-react';
import { IAdaptiveCardHostProps } from './IAdaptiveCardHostProps';
import { AppContext } from '../../services/AppContext';
import { AdaptiveCard } from '../AdaptiveCard/AdaptiveCard';
import { IAdaptiveCardActionResult } from '../AdaptiveCard/IAdaptiveCardActionResult';
import * as strings from 'AdaptiveCardViewerWebPartStrings';
export const AdaptiveCardHost: React.FunctionComponent<IAdaptiveCardHostProps> = (props) => {
const { spContext } = React.useContext(AppContext);
/**
* Demonstrates how we can respond to actions
*/
const _executeActionHandler = (action: IAdaptiveCardActionResult) => {
console.log("Action", action);
// Feel free to handle actions any way you want
switch (action.type) {
case "Action.OpenUrl":
window.open(action.url);
break;
case "Action.Submit":
alert(action.title);
break;
default:
break;
}
};
/** Opens the configuration pane */
const _configureHandler = () => {
spContext.propertyPane.open();
};
const { themeVariant, template, data, useTemplating } = props;
// if we didn't specify a template, we need a template!
const needsTemplate: boolean = !template;
// If we use Adaptive Card Templating and didn't specify data, we need data!
const needsData: boolean = useTemplating && !data;
// If we didn't use Adaptive Card Templating but the template contains $data nodes,
// if means it is a data-enabled template
const dataEnabledTemplate: boolean = template && template.indexOf('"$data"') > -1;
// If we didn't specify the template, show the placeholder
if (needsTemplate) {
return (
<Placeholder iconName='Code'
iconText={strings.PlaceholderIconText}
description={strings.PlaceholderDescription}
buttonLabel='Configure'
onConfigure={_configureHandler} />
);
} else if (needsData) {
// If we didn't specify data and we need it, display a different placeholder
return (
<Placeholder iconName='PageData'
iconText={strings.DataNeededIconText}
description={strings.DataNeededDescription}
buttonLabel={strings.DataNeededButtonLabel}
onConfigure={_configureHandler} />
);
}
else {
// Display the Adaptive Card
return (
<>
{dataEnabledTemplate && !useTemplating && <MessageBar
dismissButtonAriaLabel="Close"
messageBarType={MessageBarType.warning}
actions={
<div>
<MessageBarButton onClick={_configureHandler}>{strings.ConfigureButtonLabel}</MessageBarButton>
</div>
}
>
{strings.AdaptiveTemplatingWarningIntro}<a href={strings.AdaptiveCardTemplatingMoreInfoLinkUrl} target='_blank'>{strings.AdaptiveCardTemplating}</a>{strings.AdaptiveCardWarningPartTwo}<strong>{strings.UseAdaptiveTemplatingLabel}</strong>{strings.AdaptiveTemplatingEnd}
</MessageBar>
}
<AdaptiveCard
template={template}
data={data}
useTemplating={useTemplating}
themeVariant={themeVariant}
onExecuteAction={_executeActionHandler}
className="tbd"
/></>
);
}
};
``` | /content/code_sandbox/samples/react-adaptivecards-hooks/src/controls/AdaptiveCardHost/AdaptiveCardHost.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 772 |
```xml
import { ISchema } from '../../core/nodeSchema';
import { htmlEntitiesToUnicode } from '../../helpers/entities';
import { ASTNode, ASTType } from '../../interfaces/AST';
import { ITransformer } from '../../interfaces/ITransformer';
//const Factories: { [key: string]: () => ASTNode } = {};
function createJSXFactory(props: { first: string; second?: string }): (args: Array<ASTNode>) => ASTNode {
if (!props.second) {
return (args: Array<ASTNode>): ASTNode => {
return {
arguments: args,
callee: {
name: props.first,
type: 'Identifier',
},
type: 'CallExpression',
};
};
}
return (args: Array<ASTNode>): ASTNode => {
return {
arguments: args,
callee: {
computed: false,
object: {
name: props.first,
type: 'Identifier',
},
property: {
name: props.second,
type: 'Identifier',
},
type: 'MemberExpression',
},
type: 'CallExpression',
};
};
}
function createObjectAssignExpression(): ASTNode {
return {
arguments: [],
callee: {
computed: false,
object: {
name: 'Object',
type: 'Identifier',
},
property: {
name: 'assign',
type: 'Identifier',
},
type: 'MemberExpression',
},
type: 'CallExpression',
};
}
export interface IJSXTranformerOptions {
jsxFactory?: string;
}
function parseFactory(factory: string) {
const [first, second] = factory.split('.');
const JSXFragment: ASTNode = {
computed: false,
object: {
name: first,
type: 'Identifier',
},
property: {
name: 'Fragment',
type: 'Identifier',
},
type: 'MemberExpression',
};
const createElement = createJSXFactory({ first, second });
return { JSXFragment, createElement };
}
function convertJSXMemberExpression(expression: ASTNode) {
if (expression.type === ASTType.JSXMemberExpression) expression.type = 'MemberExpression';
if (expression.type === ASTType.JSXIdentifier) expression.type = 'Identifier';
if (expression.property && expression.property.type === ASTType.JSXIdentifier)
expression.property.type = 'Identifier';
if (expression.object) {
if (expression.object.type === ASTType.JSXMemberExpression) {
return convertJSXMemberExpression(expression.object);
}
if (expression.object.type === ASTType.JSXIdentifier) expression.object.type = 'Identifier';
}
}
export function JSXTransformer(): ITransformer {
return {
commonVisitors: props => {
const {
transformationContext: {
compilerOptions: { jsxFactory },
module: { extension },
},
} = props;
// we don't need this for normal TypeScript files
if (extension === '.ts') return;
// prepare for setting up the jsxFactory
let initJsxFactory = false;
let JSXFragment;
let createElement;
return {
onEach: (schema: ISchema) => {
const { context, node, replace } = schema;
const name = node.name as string;
// We only want to setup the jsxFacory once for this module
if (!initJsxFactory) {
const factory = context.jsxFactory;
({ JSXFragment, createElement } = parseFactory(factory || jsxFactory));
initJsxFactory = true;
}
switch (node.type) {
case 'JSXElement':
let props: ASTNode;
let propObjects: Array<ASTNode> = [];
let propObject: ASTNode;
let newObj = true;
let spreaded = false;
const { openingElement } = node;
for (const attr of openingElement.attributes) {
// less member access
let { type, value } = attr; // call 'attr' once
if (type === 'JSXAttribute') {
if (!value) {
value = { type: 'Literal', value: true };
}
let key: ASTNode;
if (attr.name.name.indexOf('-') > -1) {
key = { type: 'Literal', value: attr.name.name };
} else {
key = { name: attr.name.name, type: 'Identifier' };
}
const createdProp: ASTNode = {
computed: false,
key: key,
kind: 'init',
method: false,
shorthand: false,
type: 'Property',
value: value,
};
if (newObj) {
propObject = {
properties: [createdProp],
type: 'ObjectExpression',
};
newObj = false;
} else {
propObject.properties.push(createdProp);
}
}
if (type === 'JSXSpreadAttribute') {
spreaded = true;
if (propObject) {
propObjects.push(propObject);
// reset for attributes after spread operator
propObject = undefined;
} else {
propObjects.push({
properties: [],
type: 'ObjectExpression',
});
}
newObj = true;
propObjects.push(attr.argument);
}
}
if (spreaded) {
props = createObjectAssignExpression();
if (propObject) {
propObjects.push(propObject);
}
props.arguments = propObjects;
} else if (propObject) {
props = propObject;
} else props = { type: 'Literal', value: null };
return replace(createElement([openingElement.name, props].concat(node.children)));
case 'JSXExpressionContainer':
case 'JSXSpreadChild':
if (node.expression.type === 'JSXEmptyExpression') return schema.remove();
return replace(node.expression);
case 'JSXFragment':
return replace(
createElement([JSXFragment, { type: 'Literal', value: null } as ASTNode].concat(node.children)),
);
case 'JSXIdentifier':
if (name[0] === name[0].toLowerCase()) {
return replace({ type: 'Literal', value: name });
}
node.type = 'Identifier';
return replace(node);
case 'JSXMemberExpression':
convertJSXMemberExpression(node);
return replace(node);
case 'JSXText':
if (node.value.indexOf('\n') > -1 && !node.value.trim()) {
return schema.remove();
}
const jsonString = JSON.stringify(node.value);
return replace({ raw: htmlEntitiesToUnicode(jsonString), type: 'Literal', value: node.value });
}
},
};
},
};
}
``` | /content/code_sandbox/src/compiler/transformers/shared/JSXTransformer.ts | xml | 2016-10-28T10:37:16 | 2024-07-27T15:17:43 | fuse-box | fuse-box/fuse-box | 4,003 | 1,443 |
```xml
import * as React from 'react';
import { mount } from '@cypress/react';
import root from 'react-shadow';
import { useFocusVisible } from './useFocusVisible';
import { FOCUS_VISIBLE_ATTR } from '../focus/constants';
describe('useFocusVisible', () => {
it('should apply focus visible attribute elements in an open shadow root', () => {
const Example = () => {
const ref = useFocusVisible<HTMLDivElement>();
return (
<div ref={ref}>
<button id="start">Start</button>
<root.div id="shadow-host">
<button id="end">End</button>
</root.div>
</div>
);
};
mount(<Example />);
cy.get('#start').focus().realPress('Tab');
cy.get('#shadow-host').shadow().find('#end').should('have.attr', FOCUS_VISIBLE_ATTR);
});
it('should remove focus visible attribute when focus leaves shadow root', () => {
const Example = () => {
const ref = useFocusVisible<HTMLDivElement>();
return (
<div ref={ref}>
<button id="start">Start</button>
<root.div id="shadow-host">
<button id="end">End</button>
</root.div>
</div>
);
};
mount(<Example />);
cy.get('#start').focus().realPress('Tab').realPress(['Shift', 'Tab']);
cy.get('#start')
.should('have.focus')
.get('#shadow-host')
.shadow()
.find('#end')
.should('not.have.attr', FOCUS_VISIBLE_ATTR);
});
it('should not register activeElement if it is outside of scope', () => {
const FocusVisible = () => {
const ref = useFocusVisible<HTMLDivElement>();
return (
<div ref={ref}>
<button>Within scope</button>
</div>
);
};
const Example = () => {
const [mounted, setMounted] = React.useState(false);
const ref = useFocusVisible<HTMLDivElement>();
return (
<>
<div ref={ref}>
<button id="toggle" onClick={() => setMounted(s => !s)}>
Toggle mount
</button>
</div>
{mounted && (
<div id="portal">
<FocusVisible />
</div>
)}
</>
);
};
mount(<Example />);
cy.get('#toggle').focus().realPress('Tab');
cy.get('#toggle').focus().realPress('Enter');
cy.get('#toggle').should('have.attr', FOCUS_VISIBLE_ATTR).realPress('Enter');
cy.get('#portal').should('not.exist');
cy.get('#toggle').should('have.attr', FOCUS_VISIBLE_ATTR);
});
});
``` | /content/code_sandbox/packages/react-components/react-tabster/src/hooks/useFocusVisible.cy.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 595 |
```xml
import * as React from 'react'
import { ScaleDiverging, ScaleQuantize, ScaleSequential } from 'd3-scale'
import { CompleteTheme, ValueFormat } from '@nivo/core'
import { SymbolProps } from './svg/symbols/types'
/**
* This can be used to add effect on legends on interaction.
*/
type EffectProps = {
on: 'hover'
style: Partial<{
itemTextColor: string
itemBackground: string
itemOpacity: number
symbolSize: number
symbolBorderWidth: number
symbolBorderColor: string
}>
}
type SymbolShape = 'circle' | 'diamond' | 'square' | 'triangle'
type BoxLegendSymbolProps = Partial<{
symbolShape: SymbolShape | React.FC<SymbolProps>
symbolSize: number
symbolSpacing: number
symbolBorderWidth: number
symbolBorderColor: string
}>
type InteractivityProps = Partial<
Record<
'onClick' | 'onMouseEnter' | 'onMouseLeave',
(datum: Datum, event: React.MouseEvent<SVGRectElement>) => void
> & {
toggleSerie: (id: Datum['id']) => void
}
>
export type LegendAnchor =
| 'top'
| 'top-right'
| 'right'
| 'bottom-right'
| 'bottom'
| 'bottom-left'
| 'left'
| 'top-left'
| 'center'
export type LegendDirection = 'column' | 'row'
export type LegendItemDirection =
| 'left-to-right'
| 'right-to-left'
| 'top-to-bottom'
| 'bottom-to-top'
export type Datum = {
id: string | number
label: string | number
hidden?: boolean
color?: string
fill?: string
}
type CommonLegendProps = {
data?: Datum[]
direction: LegendDirection
padding?: number | Partial<Record<'top' | 'right' | 'bottom' | 'left', number>>
justify?: boolean
itemWidth: number
itemHeight: number
itemDirection?: LegendItemDirection
itemTextColor?: string
itemBackground?: string
itemOpacity?: number
itemsSpacing?: number
effects?: EffectProps[]
}
export type LegendProps = {
translateX?: number
translateY?: number
anchor: LegendAnchor
toggleSerie?: boolean
} & CommonLegendProps &
BoxLegendSymbolProps &
Omit<InteractivityProps, 'toggleSerie'>
export type BoxLegendSvgProps = {
containerWidth: number
containerHeight: number
} & Omit<LegendProps, 'toggleSerie'> &
Required<Pick<LegendProps, 'data'>> &
Omit<InteractivityProps, 'toggleSerie'> &
Partial<{
toggleSerie: boolean | InteractivityProps['toggleSerie']
}>
export type LegendSvgProps = {
x: number
y: number
} & CommonLegendProps &
Required<Pick<CommonLegendProps, 'data'>> &
BoxLegendSymbolProps &
InteractivityProps
export type LegendSvgItemProps = {
data: Datum
x: number
y: number
width: number
height: number
textColor?: string
background?: string
opacity?: number
direction?: LegendItemDirection
} & Pick<CommonLegendProps, 'justify' | 'effects'> &
BoxLegendSymbolProps &
InteractivityProps
export type LegendCanvasProps = {
containerWidth: number
containerHeight: number
translateX?: number
translateY?: number
anchor: LegendAnchor
symbolSize?: number
symbolSpacing?: number
theme: CompleteTheme
} & Required<Pick<CommonLegendProps, 'data'>> &
Pick<
CommonLegendProps,
| 'direction'
| 'padding'
| 'justify'
| 'itemsSpacing'
| 'itemWidth'
| 'itemHeight'
| 'itemDirection'
| 'itemTextColor'
>
export interface ContinuousColorsLegendProps {
scale: ScaleSequential<string> | ScaleDiverging<string> | ScaleQuantize<string>
ticks?: number | number[]
length?: number
thickness?: number
direction?: LegendDirection
borderWidth?: number
borderColor?: string
tickPosition?: 'before' | 'after'
tickSize?: number
tickSpacing?: number
tickOverlap?: boolean
tickFormat?: ValueFormat<number>
title?: string
titleAlign?: 'start' | 'middle' | 'end'
titleOffset?: number
}
export type AnchoredContinuousColorsLegendProps = ContinuousColorsLegendProps & {
anchor: LegendAnchor
translateX?: number
translateY?: number
containerWidth: number
containerHeight: number
}
``` | /content/code_sandbox/packages/legends/src/types.ts | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 1,052 |
```xml
export default defineNuxtPlugin(async () => {
await new Promise(resolve => setTimeout(resolve, 1))
useNuxtApp()
})
``` | /content/code_sandbox/test/fixtures/basic-types/modules/runtime/plugin.ts | xml | 2016-10-26T11:18:47 | 2024-08-16T19:32:46 | nuxt | nuxt/nuxt | 53,705 | 30 |
```xml
import React, { useState } from "react";
/**
* ActiveDescendant is the id of the current active selection, which needs to be passed to `aria-activedescendant` prop
*/
export type ActiveDescendant = string | undefined;
/** EventHandlers are the ones that should be passed to the TextField */
export interface EventHandlers {
onBlur: React.EventHandler<React.FocusEvent>;
onChange: React.EventHandler<React.FormEvent<HTMLInputElement>>;
onKeyDown: React.EventHandler<React.KeyboardEvent>;
}
export type ListBoxOptionElement = React.ReactElement<{
id: string;
"aria-selected": boolean;
onClick: React.EventHandler<React.MouseEvent>;
href?: string;
}>;
/**
* ListBoxOptionClickOrEnterHandler is called whenever a click or enter
* occurs on a list box option
*/
export type ListBoxOptionClickOrEnterHandler = (
evt: React.KeyboardEvent | React.MouseEvent,
element: ListBoxOptionElement
) => void;
/**
* ListBoxOption is the data for the options to pass to `useComboBox`.
*/
export interface ListBoxOption {
element: ListBoxOptionElement;
onClickOrEnter?: ListBoxOptionClickOrEnterHandler;
}
/**
* useComboBox accepts an `id` and a list of `ListBoxOption` and returns
* a managed list of `ListBoxOption`, the active descendant and event handlers
* for the textfield. You can find the managed props of the elements in
* the type `ListBoxOptionElements`.
* @param id unique identifier for accessibility purposes
* @param opts options to show in the listbox
*/
export default function useComboBox<T extends ListBoxOption>(
id: string,
opts: T[]
): [T[], ActiveDescendant, EventHandlers] {
const [activeIndex, setActiveIndex] = useState<number | null>(null);
return [
opts.map((item, i) => ({
...item,
element: React.cloneElement(item.element, {
id: `${id}-${i}`,
"aria-selected": activeIndex === i,
key: `${id}-${i}`,
onClick:
item.element.props.onClick ||
((evt: React.MouseEvent) => {
if (item.onClickOrEnter) {
item.onClickOrEnter(evt, item.element);
}
}),
}),
})),
activeIndex !== null ? `${id}-${activeIndex}` : undefined,
{
onBlur: () => {
/** Reset active selection when the textfield is blurred */
setActiveIndex(null);
},
onChange: () => {
/** Reset active selection when the text changes */
setActiveIndex(null);
},
onKeyDown: (evt: React.KeyboardEvent) => {
// On Arror Down
if (evt.keyCode === 40) {
if (activeIndex !== opts.length - 1) {
if (activeIndex === null) {
setActiveIndex(0);
} else {
setActiveIndex((activeIndex || 0) + 1);
}
}
evt.preventDefault();
}
// On Arrow Up
else if (evt.keyCode === 38) {
if (activeIndex !== 0) {
if (activeIndex === null) {
setActiveIndex(0);
} else {
setActiveIndex((activeIndex || 0) - 1);
}
}
evt.preventDefault();
}
// On ENTER
else if (evt.keyCode === 13) {
if (activeIndex !== null && opts[activeIndex].onClickOrEnter) {
opts[activeIndex].onClickOrEnter!(evt, opts[activeIndex].element);
}
} else {
// Any other key.
setActiveIndex(null);
}
},
},
];
}
``` | /content/code_sandbox/client/src/core/client/ui/hooks/useComboBox.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 770 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>True</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Squidex.Domain.Apps.Core.Model\Squidex.Domain.Apps.Core.Model.csproj" />
<ProjectReference Include="..\Squidex.Domain.Apps.Core.Operations\Squidex.Domain.Apps.Core.Operations.csproj" />
<ProjectReference Include="..\Squidex.Domain.Apps.Events\Squidex.Domain.Apps.Events.csproj" />
<ProjectReference Include="..\Squidex.Infrastructure\Squidex.Infrastructure.csproj" />
<ProjectReference Include="..\Squidex.Infrastructure.MongoDb\Squidex.Infrastructure.MongoDb.csproj" />
<ProjectReference Include="..\Squidex.Domain.Apps.Entities\Squidex.Domain.Apps.Entities.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Lucene.Net.QueryParser" Version="4.8.0-beta00016" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.159">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MongoDB.Driver" Version="2.27.0" />
<PackageReference Include="RefactoringEssentials" Version="5.6.0" PrivateAssets="all" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\stylecop.json" Link="stylecop.json" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/backend/src/Squidex.Domain.Apps.Entities.MongoDb/Squidex.Domain.Apps.Entities.MongoDb.csproj | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 491 |
```xml
import { useContext } from 'react';
import { RaRecord } from '../../types';
import { CreateContext } from './CreateContext';
import { CreateControllerResult } from './useCreateController';
/**
* Hook to read the create controller props from the CreateContext.
*
* Used within a <CreateContextProvider> (e.g. as a descendent of <Create>).
*
* @returns {CreateControllerResult} create controller props
*
* @see useCreateController for how it is filled
*/
export const useCreateContext = <
RecordType extends RaRecord = RaRecord,
>(): CreateControllerResult<RecordType> => {
const context = useContext(CreateContext);
if (!context) {
throw new Error(
'useCreateContext must be used inside a CreateContextProvider'
);
}
return context;
};
``` | /content/code_sandbox/packages/ra-core/src/controller/create/useCreateContext.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 174 |
```xml
import { defineComponent, h, ExtractPropTypes } from 'vue'
export const LoadingIndicatorProps = {
width: {
type: String,
default: '1.6rem'
},
height: {
type: String,
default: '1rem'
},
gap: {
type: String,
default: '1rem'
},
radius: {
type: String,
default: '1px'
}
}
export const LoadingIndicator = defineComponent({
name: 'LoadingIndicator',
props: LoadingIndicatorProps,
setup(props) {
return () => {
const style = {
'--indicator-width': props.width,
'--indicator-height': props.height,
'--indicator-gap': props.gap,
'--indicator-radius': props.radius
}
return h(
'div',
{ class: 'global-loading-indicator', style },
Array.from({ length: 4 }).map(() => h('div'))
)
}
}
})
export interface LoadingIndicatorOptions extends Partial<ExtractPropTypes<typeof LoadingIndicatorProps>> {
class?: string
}
export const getLoadingIndicatorHTML = (options: LoadingIndicatorOptions = {}) => {
const classNames = ['global-loading-indicator', options.class].filter(Boolean).join(' ')
const styles = {
'--indicator-width': options.width || LoadingIndicatorProps.width.default,
'--indicator-height': options.height || LoadingIndicatorProps.height.default,
'--indicator-gap': options.gap || LoadingIndicatorProps.gap.default,
'--indicator-radius': options.radius || LoadingIndicatorProps.radius.default
}
return `
<div class="${classNames}" style="${Object.entries(styles)
.map(([k, v]) => `${k}: ${v}`)
.join(';')}">
${Array.from({ length: 4 })
.map(() => '<div></div>')
.join('')}
</div>
`
}
``` | /content/code_sandbox/src/components/common/loading-indicator/index.ts | xml | 2016-09-23T02:02:33 | 2024-08-16T03:13:52 | surmon.me | surmon-china/surmon.me | 2,092 | 404 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="path_to_url">
<item android:state_pressed="false"
android:state_selected="false"
android:drawable="@color/cellback" />
<item android:state_pressed="true" >
<shape>
<gradient
android:startColor="#E77A26"
android:endColor="#E77A26"
android:angle="270" />
</shape>
</item>
<item android:state_selected="true"
android:state_pressed="false"
android:drawable="@color/cellback" />
</selector>
``` | /content/code_sandbox/Xamarin.Forms.ControlGallery.Android/Resources/drawable/CustomSelector.xml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 145 |
```xml
/**
* This file is part of OpenMediaVault.
*
* @license path_to_url GPL Version 3
* @author Volker Theile <volker.theile@openmediavault.org>
*
* OpenMediaVault is free software: you can redistribute it and/or modify
* any later version.
*
* OpenMediaVault 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
*/
import { DatatablePageConfig } from '~/app/core/components/intuition/models/datatable-page-config.type';
import { FormPageConfig } from '~/app/core/components/intuition/models/form-page-config.type';
import { SelectionListPageConfig } from '~/app/core/components/intuition/models/selection-list-page-config.type';
import { TextPageConfig } from '~/app/core/components/intuition/models/text-page-config.type';
export type TabsPageConfig = {
// The tab page switches between views within a single route. Set
// to `false` to navigate between multiple routes. Please refer to
// path_to_url#tabs-and-navigation
// for more information. Defaults to `true`.
singleRoute?: boolean;
tabs: Array<TabPageConfig>;
};
export type TabPageConfig = {
label: string;
// The following options have to be used when the tab page is used
// to switch between views within a single route.
type?: 'form' | 'datatable' | 'text' | 'selectionlist';
config?: DatatablePageConfig | FormPageConfig | TextPageConfig | SelectionListPageConfig;
// The following options have to be used when the tab page is used
// to navigate between multiple routes.
url?: string;
};
``` | /content/code_sandbox/deb/openmediavault/workbench/src/app/core/components/intuition/models/tabs-page-config.type.ts | xml | 2016-05-03T10:35:34 | 2024-08-16T08:03:04 | openmediavault | openmediavault/openmediavault | 4,954 | 375 |
```xml
import { TemplateRef } from '@angular/core';
import { MenuItem } from 'primeng/api';
import { Breadcrumb } from './breadcrumb';
/**
* Defines valid templates in Breadcumb.
* @group Templates
*/
export interface BreadcumbTemplates {
/**
* Custom template of item.
*/
item(context: {
/**
* Data of the item.
*/
$implicit: MenuItem;
}): TemplateRef<{ $implicit: MenuItem }>;
/**
* Custom template of separator.
*/
separator(): TemplateRef<any>;
}
/**
* Custom select event.
* @see {@link Breadcrumb.onItemClick}
* @group Events
*/
export interface BreadcrumbItemClickEvent {
/**
* Browser event.
*/
originalEvent: Event;
/**
* Selected menu item .
*/
item: MenuItem;
}
``` | /content/code_sandbox/src/app/components/breadcrumb/breadcrumb.interface.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 176 |
```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.
*/
/**
* @fileoverview Implements the CommonMmultiscripts wrapper mixin for the MmlMmultiscripts object
*
* @author dpvc@mathjax.org (Davide Cervone)
*/
import {AnyWrapper, Constructor} from '../Wrapper.js';
import {CommonMsubsup, MsubsupConstructor} from './msubsup.js';
import {BBox} from '../../../util/BBox.js';
/*****************************************************************/
/**
* The data about the scripts and base
*/
export type ScriptData = {
base: BBox;
sub: BBox; // combined bbox for all subscripts
sup: BBox; // combined bbox for all superscripts
psub: BBox; // combined bbox for all presubscripts
psup: BBox; // combined bbox for all presuperscripts
numPrescripts: number;
numScripts: number;
};
export type ScriptDataName = keyof ScriptData;
/**
* The lists of all the individual script bboxes
*/
export type ScriptLists = {
base: BBox[];
subList: BBox[];
supList: BBox[];
psubList: BBox[];
psupList: BBox[];
};
export type ScriptListName = keyof ScriptLists;
/**
* The type of script that follows the given type
*/
export const NextScript: {[key: string]: ScriptListName} = {
base: 'subList',
subList: 'supList',
supList: 'subList',
psubList: 'psupList',
psupList: 'psubList',
};
/**
* The names of the scripts (for looping)
*/
export const ScriptNames = ['sup', 'sup', 'psup', 'psub'] as ScriptDataName[];
/*****************************************************************/
/**
* The CommonMmultiscripts interface
*
* @template W The child-node Wrapper class
*/
export interface CommonMmultiscripts<W extends AnyWrapper> extends CommonMsubsup<W> {
/**
* The cached data for the various bounding boxes
*/
scriptData: ScriptData;
/**
* The index of the child following the <mprescripts/> tag
*/
firstPrescript: number;
/**
* @param {BBox} pre The prescript bounding box
* @param {BBox} post The postcript bounding box
* @return {BBox} The combined bounding box
*/
combinePrePost(pre: BBox, post: BBox): BBox;
/**
* Compute the bounding box information about all the scripts
*/
getScriptData(): void;
/**
* @return {ScriptLists} The bounding boxes for all the scripts divided into lists by position
*/
getScriptBBoxLists(): ScriptLists;
/**
* Pad the second list, if it is one short
*
* @param {BBox[]} list1 The first list
* @param {BBox[]} list2 The second list
*/
padLists(list1: BBox[], list2: BBox[]): void;
/**
* @param {BBox} bbox1 The bbox for the combined subscripts
* @param {BBox} bbox2 The bbox for the combined superscripts
* @param {BBox[]} list1 The list of subscripts to combine
* @param {BBox[]} list2 The list of superscripts to combine
*/
combineBBoxLists(bbox1: BBox, bbox2: BBox, list1: BBox[], list2: BBox[]): void;
/**
* @param {BBox} bbox The bounding box from which to get the (scaled) width, height, and depth
*/
getScaledWHD(bbox: BBox): void;
}
/**
* Shorthand for the CommonMmultiscripts constructor
*
* @template W The child-node Wrapper class
*/
export type MmultiscriptsConstructor<W extends AnyWrapper> = Constructor<CommonMmultiscripts<W>>;
/*****************************************************************/
/**
* The CommonMmultiscripts wrapper mixin for the MmlMmultiscripts object
*
* @template W The child-node Wrapper class
* @template T The Wrapper class constructor type
*/
export function CommonMmultiscriptsMixin<
W extends AnyWrapper,
T extends MsubsupConstructor<W>
>(Base: T): MmultiscriptsConstructor<W> & T {
return class extends Base {
/**
* The cached data for the various bounding boxes
*/
public scriptData: ScriptData = null;
/**
* The index of the child following the <mprescripts/> tag
*/
public firstPrescript = 0;
/**
* @override
*/
constructor(...args: any[]) {
super(...args);
this.getScriptData();
}
/*************************************************************/
/**
* @param {BBox} pre The prescript bounding box
* @param {BBox} post The postcript bounding box
* @return {BBox} The combined bounding box
*/
public combinePrePost(pre: BBox, post: BBox): BBox {
const bbox = new BBox(pre);
bbox.combine(post, 0, 0);
return bbox;
}
/*************************************************************/
/**
* @override
*/
public computeBBox(bbox: BBox, recompute: boolean = false) {
//
// Get the bounding boxes, and combine the pre- and post-scripts
// to get a common offset for both
//
const scriptspace = this.font.params.scriptspace;
const data = this.scriptData;
const sub = this.combinePrePost(data.sub, data.psub);
const sup = this.combinePrePost(data.sup, data.psup);
const [u, v] = this.getUVQ(sub, sup);
//
// Lay out the pre-scripts, then the base, then the post-scripts
//
bbox.empty();
if (data.numPrescripts) {
bbox.combine(data.psup, scriptspace, u);
bbox.combine(data.psub, scriptspace, v);
}
bbox.append(data.base);
if (data.numScripts) {
const w = bbox.w;
bbox.combine(data.sup, w, u);
bbox.combine(data.sub, w, v);
bbox.w += scriptspace;
}
bbox.clean();
this.setChildPWidths(recompute);
}
/**
* Compute the bounding box information about all the scripts
*/
public getScriptData() {
//
// Initialize the bounding box data
//
const data: ScriptData = this.scriptData = {
base: null, sub: BBox.empty(), sup: BBox.empty(), psub: BBox.empty(), psup: BBox.empty(),
numPrescripts: 0, numScripts: 0
};
//
// Get the bboxes for all the scripts and combine them into the scriptData
//
const lists = this.getScriptBBoxLists();
this.combineBBoxLists(data.sub, data.sup, lists.subList, lists.supList);
this.combineBBoxLists(data.psub, data.psup, lists.psubList, lists.psupList);
data.base = lists.base[0];
//
// Save the lengths and return the data
//
data.numPrescripts = lists.psubList.length;
data.numScripts = lists.subList.length;
}
/**
* @return {ScriptLists} The bounding boxes for all the scripts divided into lists by position
*/
public getScriptBBoxLists(): ScriptLists {
const lists: ScriptLists = {
base: [], subList: [], supList: [], psubList: [], psupList: []
};
//
// The first entry is the base, and then they altername sub- and superscripts.
// Once we find the <mprescripts/> element, switch to presub- and presuperscript lists.
//
let script: ScriptListName = 'base';
for (const child of this.childNodes) {
if (child.node.isKind('mprescripts')) {
script = 'psubList';
} else {
lists[script].push(child.getOuterBBox());
script = NextScript[script];
}
}
//
// The index of the first prescript (skip over base, sub- and superscripts, and mprescripts)
//
this.firstPrescript = lists.subList.length + lists.supList.length + 2;
//
// Make sure the lists are the same length
//
this.padLists(lists.subList, lists.supList);
this.padLists(lists.psubList, lists.psupList);
return lists;
}
/**
* Pad the second list, if it is one short
*
* @param {BBox[]} list1 The first list
* @param {BBox[]} list2 The second list
*/
public padLists(list1: BBox[], list2: BBox[]) {
if (list1.length > list2.length) {
list2.push(BBox.empty());
}
}
/**
* @param {BBox} bbox1 The bbox for the combined subscripts
* @param {BBox} bbox2 The bbox for the combined superscripts
* @param {BBox[]} list1 The list of subscripts to combine
* @param {BBox[]} list2 The list of superscripts to combine
*/
public combineBBoxLists(bbox1: BBox, bbox2: BBox, list1: BBox[], list2: BBox[]) {
for (let i = 0; i < list1.length; i++) {
const [w1, h1, d1] = this.getScaledWHD(list1[i]);
const [w2, h2, d2] = this.getScaledWHD(list2[i]);
const w = Math.max(w1, w2);
bbox1.w += w;
bbox2.w += w;
if (h1 > bbox1.h) bbox1.h = h1;
if (d1 > bbox1.d) bbox1.d = d1;
if (h2 > bbox2.h) bbox2.h = h2;
if (d2 > bbox2.d) bbox2.d = d2;
}
}
/**
* @param {BBox} bbox The bounding box from which to get the (scaled) width, height, and depth
*/
public getScaledWHD(bbox: BBox) {
const {w, h, d, rscale} = bbox;
return [w * rscale, h * rscale, d * rscale];
}
/*************************************************************/
/**
* @override
*/
public getUVQ(subbox: BBox, supbox: BBox) {
if (!this.UVQ) {
let [u, v, q] = [0, 0, 0];
if (subbox.h === 0 && subbox.d === 0) {
//
// Use placement for superscript only
//
u = this.getU();
} else if (supbox.h === 0 && supbox.d === 0) {
//
// Use placement for subsccript only
//
u = -this.getV();
} else {
//
// Use placement for both
//
[u, v, q] = super.getUVQ(subbox, supbox);
}
this.UVQ = [u, v, q];
}
return this.UVQ;
}
};
}
``` | /content/code_sandbox/ts/output/common/Wrappers/mmultiscripts.ts | xml | 2016-02-23T09:52:03 | 2024-08-16T04:46:50 | MathJax-src | mathjax/MathJax-src | 2,017 | 2,598 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<AssemblyName>Roslynator.Testing.Console</AssemblyName>
<RootNamespace>Roslynator.Testing</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(RoslynatorRoslynVersion)" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/src/Tests/TestConsole/TestConsole.csproj | xml | 2016-04-26T18:51:53 | 2024-08-16T05:58:36 | roslynator | dotnet/roslynator | 3,030 | 118 |
```xml
import { bind } from 'decko';
import React from 'react';
import ChartConfigDropdown, {
IOption,
} from 'shared/view/elements/ChartConfigDropdown/ChartConfigDropdown';
import {
listAverage,
listCount,
listMedian,
listStdev,
listSum,
listVariance,
} from 'shared/utils/statMethods/AggregationTypes';
import { isNumeric } from 'shared/utils/typeChecker/numFormatChecker';
import { IAggregationChartSelection } from '../shared/types/chartConfiguration';
import { IGenericChartData } from '../shared/types/chartDataTypes';
import styles from './AggregationChartManager.module.css';
import BarChart from './charts/BarChart';
import BoxPlot from './charts/BoxPlot';
interface ILocalProps {
aggregationChartConfig: IAggregationChartSelection;
metricKeys: Set<string>;
hyperparameterKeys: Set<string>;
genericChartData: IGenericChartData[];
updateAggregationChartConfig(
aggregationChartSelection: IAggregationChartSelection
): void;
}
interface ILocalState {
userSelectedMetricVal: string;
userSelectedHyperparameterVal: string;
userSelectedAggregationType: string;
userSelectedChartType: string;
aggregationTypes: string[];
chartTypes: string[];
}
class AggregationChartManager extends React.Component<
ILocalProps,
ILocalState
> {
public state: ILocalState = {
userSelectedMetricVal: this.props.aggregationChartConfig.selectedMetric,
userSelectedHyperparameterVal: this.props.aggregationChartConfig
.selectedHyperparameter,
userSelectedAggregationType: this.props.aggregationChartConfig
.selectedAggregationType,
userSelectedChartType: this.props.aggregationChartConfig.selectedChartType,
aggregationTypes: [
'average',
'sum',
'median',
'variance',
'stdev',
'count',
],
chartTypes: ['bar-chart', 'box-plot'],
};
public missingCount: number = 0;
public componentDidUpdate(prevProps: ILocalProps) {
if (prevProps !== this.props) {
this.setState({
userSelectedMetricVal: this.props.aggregationChartConfig.selectedMetric,
userSelectedHyperparameterVal: this.props.aggregationChartConfig
.selectedHyperparameter,
});
}
}
public render() {
const { genericChartData, metricKeys, hyperparameterKeys } = this.props;
return (
<div
className={styles.chart_section_wrapper}
data-test="aggregation-chart"
>
<div className={styles.chart_header}>
Aggregated Metrics/Hyperparameters Chart
</div>
<div className={styles.chart_config_selectors}>
<ChartConfigDropdown
label="Metric :"
value={this.state.userSelectedMetricVal}
options={metricKeys}
onChange={this.handleMetricChange}
/>
<ChartConfigDropdown
value={this.state.userSelectedHyperparameterVal}
label="Hyperparameter :"
options={hyperparameterKeys}
onChange={this.handleHyperparameterChange}
/>
<ChartConfigDropdown
isDisabled={
this.state.userSelectedChartType === 'box-plot' ? true : false
}
label="Aggregation Types :"
value={this.state.userSelectedAggregationType}
options={this.state.aggregationTypes}
onChange={this.handleAggregationTypeChange}
/>
<ChartConfigDropdown
label="Chart Type :"
value={this.state.userSelectedChartType}
options={this.state.chartTypes}
onChange={this.handleChartTypeChange}
/>
</div>
<div>
{this.state.userSelectedChartType === 'bar-chart' ? (
<BarChart
xLabel={this.state.userSelectedHyperparameterVal}
yLabel={this.state.userSelectedMetricVal}
data={this.returnAggResults(
this.state.userSelectedAggregationType,
this.groupBy(genericChartData, (field: IGenericChartData) => {
if (field[this.state.userSelectedHyperparameterVal]) {
return field[this.state.userSelectedHyperparameterVal];
}
})
)}
/>
) : (
''
)}
{this.state.userSelectedChartType === 'box-plot' ? (
<BoxPlot
xLabel={this.state.userSelectedHyperparameterVal}
yLabel={this.state.userSelectedMetricVal}
data={this.groupBy(
genericChartData,
(field: IGenericChartData) => {
if (field[this.state.userSelectedHyperparameterVal]) {
return field[this.state.userSelectedHyperparameterVal];
}
}
)}
/>
) : (
''
)}
{this.missingCount > 0 && (
<div className={styles.missing_count_block}>
missing data count {this.missingCount} - [
{this.state.userSelectedHyperparameterVal}]
</div>
)}
</div>
</div>
);
}
// Utilities
@bind
public groupBy(list: IGenericChartData[], keyGetter: any) {
const map = new Map();
let localMissingCount = 0;
list.forEach((item: IGenericChartData) => {
const key = keyGetter(item);
if (key) {
const collection = map.get(key);
if (!collection) {
if (item[this.state.userSelectedMetricVal]) {
map.set(key, [item[this.state.userSelectedMetricVal]]);
}
} else {
if (item[this.state.userSelectedMetricVal]) {
collection.push(item[this.state.userSelectedMetricVal]);
}
}
} else {
localMissingCount++;
}
});
const sortStringKeys = (a: string[], b: string[]) => {
if (isNumeric(a[0]) && isNumeric(b[0])) {
const a0 = parseFloat(a[0]);
const b0 = parseFloat(b[0]);
return a0 > b0 ? 1 : -1;
}
return a[0] > b[0] ? 1 : -1;
};
this.missingCount = localMissingCount;
return new Map([...map].sort(sortStringKeys));
}
@bind
public returnAggResults(selected: string, arrayGpBy: any) {
switch (selected) {
case 'average':
return this.averageReduceMetrics(arrayGpBy);
case 'sum':
return this.sumReduceMetrics(arrayGpBy);
case 'median':
return this.medianReduceMetrics(arrayGpBy);
case 'variance':
return this.varianceReduceMetrics(arrayGpBy);
case 'stdev':
return this.stdevReduceMetrics(arrayGpBy);
case 'count':
return this.countReduceMetrics(arrayGpBy);
}
}
@bind
public averageReduceMetrics(mapObj: any) {
return [...mapObj].map((obj) => {
return { key: obj[0], value: listAverage(obj[1]) };
});
}
@bind
public sumReduceMetrics(mapObj: any) {
return [...mapObj].map((obj) => {
return { key: obj[0], value: listSum(obj[1]) };
});
}
@bind
public medianReduceMetrics(mapObj: any) {
return [...mapObj].map((obj) => {
return { key: obj[0], value: listMedian(obj[1]) };
});
}
@bind
public varianceReduceMetrics(mapObj: any) {
return [...mapObj].map((obj) => {
return { key: obj[0], value: listVariance(obj[1]) };
});
}
@bind
public stdevReduceMetrics(mapObj: any) {
return [...mapObj].map((obj) => {
return { key: obj[0], value: listStdev(obj[1]) };
});
}
@bind
public countReduceMetrics(mapObj: any) {
return [...mapObj].map((obj) => {
return { key: obj[0], value: listCount(obj[1]) };
});
}
@bind
private handleMetricChange(option: IOption) {
this.setState({ userSelectedMetricVal: option.value });
this.props.updateAggregationChartConfig({
selectedHyperparameter: this.state.userSelectedHyperparameterVal,
selectedAggregationType: this.state.userSelectedAggregationType,
selectedChartType: this.state.userSelectedChartType,
selectedMetric: option.value,
});
}
@bind
private handleHyperparameterChange(option: IOption) {
this.setState({ userSelectedHyperparameterVal: option.value });
this.props.updateAggregationChartConfig({
selectedMetric: this.state.userSelectedMetricVal,
selectedAggregationType: this.state.userSelectedAggregationType,
selectedChartType: this.state.userSelectedChartType,
selectedHyperparameter: option.value,
});
}
@bind
private handleAggregationTypeChange(option: IOption) {
this.setState({ userSelectedAggregationType: option.value });
this.props.updateAggregationChartConfig({
selectedMetric: this.state.userSelectedMetricVal,
selectedHyperparameter: this.state.userSelectedHyperparameterVal,
selectedChartType: this.state.userSelectedChartType,
selectedAggregationType: option.value,
});
}
@bind
private handleChartTypeChange(option: IOption) {
this.setState({ userSelectedChartType: option.value });
this.props.updateAggregationChartConfig({
selectedMetric: this.state.userSelectedMetricVal,
selectedHyperparameter: this.state.userSelectedHyperparameterVal,
selectedAggregationType: this.state.userSelectedAggregationType,
selectedChartType: option.value,
});
}
}
export type IAggregationChartProps = ILocalProps;
export { AggregationChartManager };
export default AggregationChartManager;
``` | /content/code_sandbox/webapp/client/src/pages/authorized/ProjectsPages/ProjectDetailsPages/ChartsPage/Charts/AggregationChart/AggregationChartManager.tsx | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 2,133 |
```xml
import { PrimaryGeneratedColumn } from "../../../../src/decorator/columns/PrimaryGeneratedColumn"
import { Column } from "../../../../src/decorator/columns/Column"
import { TreeParent } from "../../../../src/decorator/tree/TreeParent"
import { TreeChildren } from "../../../../src/decorator/tree/TreeChildren"
import { Entity } from "../../../../src/decorator/entity/Entity"
import { Tree } from "../../../../src/decorator/tree/Tree"
import { JoinColumn } from "../../../../src/decorator/relations/JoinColumn"
@Entity({ name: "categories" })
@Tree("materialized-path")
export class Category {
@PrimaryGeneratedColumn()
id: number
@Column({
type: "varchar",
name: "uid",
unique: true,
})
uid: string
@Column()
name: string
@Column({
type: "varchar",
name: "parentUid",
nullable: true,
})
parentUid?: string | null
@TreeParent()
@JoinColumn({
name: "parentUid",
referencedColumnName: "uid",
})
parentCategory?: Category | null
@TreeChildren({ cascade: true })
childCategories: Category[]
}
``` | /content/code_sandbox/test/github-issues/9534/entity/Category.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 258 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>author</key>
<string>Ike Ku</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>name</key>
<string>ayu</string>
<key>semanticClass</key>
<string>ayu.dark</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#141821</string>
<key>caret</key>
<string>#e6b450</string>
<key>foreground</key>
<string>#bfbdb6</string>
<key>invisibles</key>
<string>#6c738099</string>
<key>lineHighlight</key>
<string>#161a24</string>
<key>inactiveSelection</key>
<string>#80b5ff26</string>
<key>selection</key>
<string>#3388ff40</string>
<key>selectionBorder</key>
<string>#3388ff40</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#acb6bf8c</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword, storage</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff8f40</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Constant</string>
<key>scope</key>
<string>constant</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#d2a6ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#aad94c</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Escape</string>
<key>scope</key>
<string>constant.character.escape</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#95e6cb</string>
</dict>
</dict>
</array>
</dict>
</plist>
``` | /content/code_sandbox/widgets/Widget - ayu-dark.stTheme | xml | 2016-09-15T12:39:36 | 2024-08-16T08:00:38 | ayu | dempfi/ayu | 4,258 | 717 |
```xml
import { Injectable } from '@angular/core';
import {
GetMonthViewArgs,
MonthView,
GetWeekViewHeaderArgs,
WeekDay,
GetWeekViewArgs,
WeekView,
getMonthView,
getWeekViewHeader,
getWeekView,
} from 'calendar-utils';
import { DateAdapter } from '../../../date-adapters/date-adapter';
@Injectable()
export class CalendarUtils {
constructor(protected dateAdapter: DateAdapter) {}
getMonthView(args: GetMonthViewArgs): MonthView {
return getMonthView(this.dateAdapter, args);
}
getWeekViewHeader(args: GetWeekViewHeaderArgs): WeekDay[] {
return getWeekViewHeader(this.dateAdapter, args);
}
getWeekView(args: GetWeekViewArgs): WeekView {
return getWeekView(this.dateAdapter, args);
}
}
``` | /content/code_sandbox/projects/angular-calendar/src/modules/common/calendar-utils/calendar-utils.provider.ts | xml | 2016-04-26T15:19:33 | 2024-08-08T14:23:40 | angular-calendar | mattlewis92/angular-calendar | 2,717 | 183 |
```xml
<vector android:height="24dp" android:tint="#000000"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="path_to_url">
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.5,2 2,6.5 2,12s4.5,10 10,10s10,-4.5 10,-10S17.5,2 12,2zM16.2,16.2L11,13V7h1.5v5.2l4.5,2.7L16.2,16.2z"/>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_hour.xml | xml | 2016-08-21T09:18:13 | 2024-08-16T02:55:58 | apkupdater | rumboalla/apkupdater | 2,835 | 158 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionAttributes</key>
<dict>
<key>NSExtensionActivationRule</key>
<dict>
<key>NSExtensionActivationSupportsFileWithMaxCount</key>
<integer>5</integer>
<key>NSExtensionActivationSupportsImageWithMaxCount</key>
<integer>5</integer>
<key>NSExtensionActivationSupportsMovieWithMaxCount</key>
<integer>5</integer>
<key>NSExtensionActivationSupportsText</key>
<true/>
<key>NSExtensionActivationSupportsWebPageWithMaxCount</key>
<integer>1</integer>
<key>NSExtensionActivationSupportsWebURLWithMaxCount</key>
<integer>1</integer>
<key>NSExtensionActivationUsesStrictMatching</key>
<false/>
</dict>
</dict>
<key>NSExtensionMainStoryboard</key>
<string>MainInterface</string>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.share-services</string>
</dict>
</dict>
</plist>
``` | /content/code_sandbox/ios/App/Floccus New Bookmark/Info.plist | xml | 2016-06-04T23:37:43 | 2024-08-16T18:50:46 | floccus | floccusaddon/floccus | 5,473 | 327 |
```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.
-->
<android.support.design.widget.AppBarLayout
xmlns:android="path_to_url"
xmlns:app="path_to_url"
style="@style/Album.WrapContent.WidthMatchParent">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
style="@style/Toolbar"
app:layout_scrollFlags="enterAlways|snap|enterAlwaysCollapsed"/>
</android.support.design.widget.AppBarLayout>
``` | /content/code_sandbox/sample/src/main/res/layout/toolbar_scroll.xml | xml | 2016-11-02T00:49:15 | 2024-08-02T07:46:16 | Album | yanzhenjie/Album | 2,504 | 140 |
```xml
import fs from 'fs';
import type { Server } from 'http';
import http from 'http';
import type { AddressInfo } from 'net';
import path from 'path';
import util from 'util';
import { BrowserLauncher, Configuration, launchPlaywright, PlaywrightLauncher } from '@crawlee/playwright';
// @ts-expect-error no types
import basicAuthParser from 'basic-auth-parser';
import type { Browser, BrowserType } from 'playwright';
// @ts-expect-error no types
import portastic from 'portastic';
// @ts-expect-error no types
import proxy from 'proxy';
import { runExampleComServer } from 'test/shared/_helper';
let prevEnvHeadless: boolean;
let proxyServer: Server;
let proxyPort: number;
const proxyAuth = { scheme: 'Basic', username: 'username', password: 'password' };
let wasProxyCalled = false;
let port: number;
let server: Server;
let serverAddress = 'path_to_url
// Setup local proxy server for the tests
beforeAll(async () => {
const config = Configuration.getGlobalConfig();
prevEnvHeadless = config.get('headless');
config.set('headless', true);
[server, port] = await runExampleComServer();
serverAddress += port;
// Find free port for the proxy
return portastic.find({ min: 50000, max: 50099 }).then(async (ports: number[]) => {
return new Promise<void>((resolve, reject) => {
const httpServer = http.createServer();
// Setup proxy authorization
// @ts-expect-error
httpServer.authenticate = function (req, fn) {
// parse the "Proxy-Authorization" header
const auth = req.headers['proxy-authorization'];
if (!auth) {
// optimization: don't invoke the child process if no
// "Proxy-Authorization" header was given
return fn(null, false);
}
const parsed = basicAuthParser(auth);
const isEqual = JSON.stringify(parsed) === JSON.stringify(proxyAuth);
if (isEqual) wasProxyCalled = true;
fn(null, isEqual);
};
httpServer.on('error', reject);
proxyServer = proxy(httpServer);
proxyServer.listen(ports[0], () => {
proxyPort = (proxyServer.address() as AddressInfo).port;
resolve();
});
});
});
});
afterAll(async () => {
Configuration.getGlobalConfig().set('headless', prevEnvHeadless);
server.close();
if (proxyServer) await util.promisify(proxyServer.close).bind(proxyServer)();
}, 5000);
describe('launchPlaywright()', () => {
test('throws on invalid args', async () => {
// @ts-expect-error Validating JS side
await expect(launchPlaywright('some non-object')).rejects.toThrow(Error);
// @ts-expect-error Validating JS side
await expect(launchPlaywright(1234)).rejects.toThrow(Error);
// @ts-expect-error Validating JS side
await expect(launchPlaywright({ proxyUrl: 234 })).rejects.toThrow(Error);
// @ts-expect-error Validating JS side
await expect(launchPlaywright({ proxyUrl: {} })).rejects.toThrow(Error);
await expect(launchPlaywright({ proxyUrl: 'invalidurl' })).rejects.toThrow(Error);
await expect(launchPlaywright({ proxyUrl: 'invalid://somehost:1234' })).rejects.toThrow(Error);
await expect(launchPlaywright({ proxyUrl: 'socks4://user:pass@example.com:1234' })).rejects.toThrow(Error);
await expect(launchPlaywright({ proxyUrl: 'socks5://user:pass@example.com:1234' })).rejects.toThrow(Error);
await expect(launchPlaywright({ proxyUrl: ' something really bad' })).rejects.toThrow(Error);
});
test('supports non-HTTP proxies without authentication', async () => {
const closePromises = [];
const browser1 = await launchPlaywright({ proxyUrl: 'socks4://example.com:1234' });
closePromises.push(browser1.close());
const browser2 = await launchPlaywright({ proxyUrl: 'socks5://example.com:1234' });
closePromises.push(browser2.close());
const browser3 = await launchPlaywright({ proxyUrl: 'path_to_url });
closePromises.push(browser3.close());
const browser4 = await launchPlaywright({ proxyUrl: 'HTTP://example.com:1234' });
closePromises.push(browser4.close());
await Promise.all(closePromises);
});
test('opens a webpage', async () => {
const browser = await launchPlaywright();
const page = await browser.newPage();
await page.goto(serverAddress);
const html = await page.content();
expect(html).toMatch('<h1>Example Domain</h1>');
await browser.close();
});
describe('headful mode', () => {
let browser: Browser;
beforeAll(() => {
// Test headless parameter
Configuration.getGlobalConfig().set('headless', false);
});
beforeEach(async () => {
browser = await launchPlaywright({
launchOptions: { headless: true, timeout: 60e3 },
proxyUrl: `path_to_url{proxyPort}`,
});
});
afterEach(async () => {
if (browser) await browser.close();
});
afterAll(() => {
Configuration.getGlobalConfig().set('headless', true);
});
test('opens a webpage via proxy with authentication', async () => {
const page = await browser.newPage();
await page.goto(serverAddress);
expect(wasProxyCalled).toBe(true);
const html = await page.content();
expect(html).toMatch('<h1>Example Domain</h1>');
});
});
test('supports useChrome option', async () => {
const spy = vitest.spyOn(BrowserLauncher.prototype as any, '_getTypicalChromeExecutablePath');
let browser;
const opts = {
useChrome: true,
launchOptions: { timeout: 60e3 },
};
try {
browser = await launchPlaywright(opts);
const page = await browser.newPage();
// Add a test to go to an actual domain because we've seen issues
// where pages would not load at all with Chrome.
await page.goto(serverAddress);
const title = await page.title();
const version = browser.version();
expect(title).toBe('Example Domain');
expect(version).not.toMatch('Chromium');
expect(spy).toBeCalledTimes(1);
} finally {
if (browser) await browser.close();
}
}, 60e3);
describe('Default browser path', () => {
const target = 'test';
beforeAll(() => {
process.env.CRAWLEE_DEFAULT_BROWSER_PATH = target;
});
afterAll(() => {
delete process.env.CRAWLEE_DEFAULT_BROWSER_PATH;
});
test('uses Apify default browser path', () => {
const launcher = new PlaywrightLauncher({
launcher: {} as BrowserType,
});
const plugin = launcher.createBrowserPlugin();
expect(plugin!.launchOptions.executablePath).toEqual(target);
});
test('does not use default when using chrome', () => {
const launcher = new PlaywrightLauncher({
useChrome: true,
launcher: {} as BrowserType,
});
const plugin = launcher.createBrowserPlugin();
// @ts-expect-error private method
expect(plugin.launchOptions.executablePath).toBe(launcher._getTypicalChromeExecutablePath());
}, 60e3);
test('allows to be overridden', () => {
const newPath = 'newPath';
const launcher = new PlaywrightLauncher({
launchOptions: {
executablePath: newPath,
},
launcher: {} as BrowserType,
});
const plugin = launcher.createBrowserPlugin();
expect(plugin.launchOptions.executablePath).toEqual(newPath);
});
test('works without default path', async () => {
delete process.env.CRAWLEE_DEFAULT_BROWSER_PATH;
let browser;
try {
browser = await launchPlaywright();
const page = await browser.newPage();
await page.goto(serverAddress);
const title = await page.title();
expect(title).toBe('Example Domain');
} finally {
if (browser) await browser.close();
}
});
});
test('supports useIncognitoPages: true', async () => {
let browser;
try {
browser = await launchPlaywright({
useIncognitoPages: true,
launchOptions: { headless: true },
});
const page1 = await browser.newPage();
const context1 = page1.context();
const page2 = await browser.newPage();
const context2 = page2.context();
expect(context1).not.toBe(context2);
} finally {
if (browser) await browser.close();
}
});
test('supports useIncognitoPages: false', async () => {
let browser;
try {
browser = await launchPlaywright({
useIncognitoPages: false,
launchOptions: { headless: true },
});
const page1 = await browser.newPage();
const context1 = page1.context();
const page2 = await browser.newPage();
const context2 = page2.context();
expect(context1).toBe(context2);
} finally {
if (browser) await browser.close();
}
});
test('supports userDataDir', async () => {
const userDataDir = path.join(__dirname, 'userDataPlaywright');
let browser;
try {
browser = await launchPlaywright({
useIncognitoPages: false,
userDataDir,
});
} finally {
if (browser) await browser.close();
}
fs.accessSync(path.join(userDataDir, 'Default'));
fs.rmSync(userDataDir, {
force: true,
recursive: true,
});
});
});
``` | /content/code_sandbox/test/core/browser_launchers/playwright_launcher.test.ts | xml | 2016-08-26T18:35:03 | 2024-08-16T16:40:08 | crawlee | apify/crawlee | 14,153 | 2,155 |
```xml
import { PlacementEnum, AbstractExpression } from "./AbstractExpression";
import { TextAlignmentEnum } from "../../../Common/Enums/TextAlignment";
import { FontStyles } from "../../../Common/Enums/FontStyles";
export class UnknownExpression extends AbstractExpression {
constructor(label: string, placement: PlacementEnum, textAlignment: TextAlignmentEnum, staffNumber: number) {
super(placement);
this.label = label;
this.staffNumber = staffNumber;
if (textAlignment === undefined) { // don't replace undefined check
textAlignment = TextAlignmentEnum.LeftBottom;
}
this.textAlignment = textAlignment;
}
private label: string;
private textAlignment: TextAlignmentEnum;
private staffNumber: number;
public fontStyle: FontStyles;
public defaultYXml: number;
public get Label(): string {
return this.label;
}
public get Placement(): PlacementEnum {
return this.placement;
}
public set Placement(value: PlacementEnum) {
this.placement = value;
}
public get StaffNumber(): number {
return this.staffNumber;
}
public set StaffNumber(value: number) {
this.staffNumber = value;
}
public get TextAlignment(): TextAlignmentEnum {
return this.textAlignment;
}
}
``` | /content/code_sandbox/src/MusicalScore/VoiceData/Expressions/UnknownExpression.ts | xml | 2016-02-08T15:47:01 | 2024-08-16T17:49:53 | opensheetmusicdisplay | opensheetmusicdisplay/opensheetmusicdisplay | 1,416 | 270 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<integer name="translation_completeness">58</integer>
</resources>
``` | /content/code_sandbox/app/src/main/res/values-cy/translation_info.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 35 |
```xml
import { PrimaryGeneratedColumn } from "../../../../src"
import { Entity } from "../../../../src"
@Entity()
export class Author {
@PrimaryGeneratedColumn("uuid")
id: string
}
``` | /content/code_sandbox/test/github-issues/3604/entity/Author.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 39 |
```xml
import React, { Fragment } from 'react';
import { EyeIcon } from '@storybook/icons';
import ListItem from './ListItem';
export default {
component: ListItem,
};
export const All = {
render: () => (
<div>
<ListItem loading />
<ListItem title="Default" />
<ListItem title="Default icon" right={<EyeIcon />} />
<ListItem title="title" center="center" right="right" />
<ListItem active title="active" center="center" right="right" />
<ListItem active title="active icon" center="center" right={<EyeIcon />} />
<ListItem disabled title="disabled" center="center" right="right" />
</div>
),
};
export const Default = {
args: {
title: 'Default',
},
};
export const Loading = {
args: {
loading: true,
},
};
export const DefaultIcon = {
args: {
title: 'Default icon',
right: <EyeIcon />,
},
};
export const ActiveIcon = {
args: {
title: 'Active icon',
active: true,
right: <EyeIcon />,
},
};
export const ActiveIconLeft = {
args: {
title: 'Active icon',
active: true,
icon: <EyeIcon />,
},
};
export const ActiveIconLeftColored = {
args: {
title: 'Active icon',
active: true,
icon: (
<Fragment>
<svg
width="16"
height="16"
viewBox="0 0 16 16"
fill="none"
xmlns="path_to_url"
aria-label="Chrome"
>
<path
d="M5.06982 9.68493L7.99484 4.63927L14.5786 4.62406C14.5252 4.52043 14.4696 4.41742 14.4109 4.31532C12.372 0.768556 7.84405 -0.453864 4.29726 1.58495C3.24614 2.1892 2.39921 3.01211 1.78076 3.96327L5.06982 9.68493Z"
fill="#DB4437"
/>
<path
d="M10.9276 9.68457L5.09539 9.6743L1.79036 3.98022C1.72727 4.07822 1.66591 4.17795 1.60682 4.27985C-0.445348 7.81892 0.759985 12.3515 4.29905 14.4037C5.34791 15.0118 6.48403 15.3338 7.617 15.3939L10.9276 9.68457Z"
fill="#0F9D58"
/>
<path
d="M7.98649 4.61194L10.9032 9.66241L7.63525 15.3778C7.75167 15.3833 7.86871 15.3863 7.98649 15.3863C12.0775 15.3863 15.3939 12.0699 15.3939 7.97893C15.3939 6.76648 15.1025 5.62211 14.5861 4.61194L7.98649 4.61194Z"
fill="#FFCD40"
/>
<path
d="M8.01367 4.6366V6.40005L14.613 4.6366H8.01367Z"
fill="url(#paint0_radial_466_21161)"
/>
<path
d="M1.78198 4.00098L6.60102 8.8192L5.09764 9.687L1.78198 4.00098Z"
fill="url(#paint1_radial_466_21161)"
/>
<path
d="M7.6626 15.4017L9.42689 8.81921L10.9303 9.68702L7.6626 15.4017Z"
fill="url(#paint2_radial_466_21161)"
/>
<ellipse cx="8.01347" cy="8.00358" rx="3.36699" ry="3.36699" fill="#F1F1F1" />
<ellipse cx="8.01367" cy="8.00354" rx="2.69361" ry="2.6936" fill="#4285F4" />
<defs>
<radialGradient
id="paint0_radial_466_21161"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(7.69229 4.63226) scale(7.07721 1.89116)"
>
<stop stopColor="#3E2723" stopOpacity="0.2" />
<stop offset="1" stopColor="#3E2723" stopOpacity="0.01" />
</radialGradient>
<radialGradient
id="paint1_radial_466_21161"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(1.77445 4.00677) scale(6.56938 7.75127)"
>
<stop stopColor="#3E2723" stopOpacity="0.2" />
<stop offset="1" stopColor="#3E2723" stopOpacity="0.01" />
</radialGradient>
<radialGradient
id="paint2_radial_466_21161"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(8.00025 8.01489) scale(7.39644 14.8995)"
>
<stop stopColor="#263238" stopOpacity="0.2" />
<stop offset="1" stopColor="#263238" stopOpacity="0.01" />
</radialGradient>
</defs>
</svg>
</Fragment>
),
},
};
export const WPositions = {
args: {
left: 'left',
title: 'title',
center: 'center',
right: 'right',
},
};
export const WPositionsActive = {
args: {
active: true,
left: 'left',
title: 'title',
center: 'center',
right: 'right',
},
};
export const WPositionsDisabled = {
args: {
disabled: true,
left: 'left',
title: 'title',
center: 'center',
right: 'right',
},
};
``` | /content/code_sandbox/code/core/src/components/components/tooltip/ListItem.stories.tsx | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 1,573 |
```xml
import { shuffle } from 'lodash';
import { Repository } from '../core/repository';
import Bluebird = require('bluebird');
export class SimulateService extends Repository {
private get preLoginFlowRequests(): Array<() => any> {
return [
() => this.client.account.readMsisdnHeader().catch(() => undefined),
() => this.client.account.msisdnHeaderBootstrap('ig_select_app').catch(() => undefined),
() => this.client.zr.tokenResult(),
() => this.client.account.contactPointPrefill('prefill').catch(() => undefined),
() => this.client.launcher.preLoginSync(),
// qe doesn't seem to get used
// () => this.client.qe.syncLoginExperiments(),
() => this.client.attribution.logAttribution(),
() => this.client.account.getPrefillCandidates().catch(() => undefined),
];
}
private get postLoginFlowRequests(): Array<() => any> {
return [
() => this.client.zr.tokenResult(),
() => this.client.launcher.postLoginSync(),
// qe doesn't seem to get used
// () => this.client.qe.syncExperiments(),
() => this.client.attribution.logAttribution(),
() => this.client.attribution.logResurrectAttribution(),
() => this.client.loom.fetchConfig(),
() => this.client.linkedAccount.getLinkageStatus(),
// () => this.client.creatives.writeSupportedCapabilities(),
// () => this.client.account.processContactPointSignals(),
() => this.client.feed.timeline().request({ recoveredFromCrash: '1', reason: 'cold_start_fetch' }),
() => this.client.fbsearch.suggestedSearches('users'),
() => this.client.fbsearch.suggestedSearches('blended'),
() => this.client.fbsearch.recentSearches(),
() => this.client.direct.rankedRecipients('reshare'),
() => this.client.direct.rankedRecipients('raven'),
() => this.client.direct.getPresence(),
() => this.client.feed.directInbox().request(),
() => this.client.media.blocked(),
() => this.client.qp.batchFetch(),
() => this.client.qp.getCooldowns(),
() => this.client.user.arlinkDownloadInfo(),
() => this.client.discover.topicalExplore(),
() => this.client.discover.markSuSeen(),
() => this.facebookOta(),
() => this.client.status.getViewableStatuses(),
];
}
private static async executeRequestsFlow({
requests,
concurrency = 1,
toShuffle = true,
}: {
requests: Array<() => any>;
concurrency?: number;
toShuffle?: boolean;
}) {
if (toShuffle) {
requests = shuffle(requests);
}
await Bluebird.map(requests, request => request(), { concurrency });
}
public async preLoginFlow(concurrency?: number, toShuffle?: boolean) {
return SimulateService.executeRequestsFlow({
requests: this.preLoginFlowRequests,
concurrency,
toShuffle,
});
}
public async postLoginFlow(concurrency?: number, toShuffle?: boolean) {
return SimulateService.executeRequestsFlow({
requests: this.postLoginFlowRequests,
concurrency,
toShuffle,
});
}
private async facebookOta() {
const uid = this.client.state.cookieUserId;
const { body } = await this.client.request.send({
url: '/api/v1/facebook_ota/',
qs: {
fields: this.client.state.fbOtaFields,
custom_user_id: uid,
signed_body: this.client.request.signature('') + '.',
ig_sig_key_version: this.client.state.signatureVersion,
version_code: this.client.state.appVersionCode,
version_name: this.client.state.appVersion,
custom_app_id: this.client.state.fbOrcaApplicationId,
custom_device_id: this.client.state.uuid,
},
});
return body;
}
}
``` | /content/code_sandbox/src/services/simulate.service.ts | xml | 2016-06-09T12:14:48 | 2024-08-16T10:07:22 | instagram-private-api | dilame/instagram-private-api | 5,877 | 847 |
```xml
import { fetchCount, fetchData } from '../fetch-data'
export default async function Home() {
const data = await fetchData()
return (
<h1>
Dashboard {data}
<div>
Fetch Count: <span id="count">{fetchCount}</span>
</div>
</h1>
)
}
``` | /content/code_sandbox/test/e2e/app-dir/app-prefetch/app/prefetch-auto-route-groups/(dashboard)/page.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 71 |
```xml
import { MessagingChannel } from '@botpress/messaging-client'
import { getAdminKey, getMessagingURL } from './messaging_helpers'
const messagingUrl = getMessagingURL()
const adminKey = getAdminKey()
async function main() {
const channel = new MessagingChannel({ url: messagingUrl, adminKey })
const client = await channel.createClient()
console.info(client)
}
void main()
``` | /content/code_sandbox/integrations/webchat/local/test_create_client.ts | xml | 2016-11-16T21:57:59 | 2024-08-16T18:45:35 | botpress | botpress/botpress | 12,401 | 85 |
```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 { ArrayLike } from '@stdlib/types/array';
/**
* Callback invoked for indexed strided input array elements.
*
* @param x - first strided array element
* @param y - second strided array element
* @returns result
*/
type Binary = ( x: any, y: any ) => any;
/**
* Interface describing `binary`.
*/
interface Routine {
/**
* Applies a binary callback to strided input array elements and assigns results to elements in a strided output array.
*
* @param arrays - array-like object containing two input arrays and one output array
* @param shape - array-like object containing a single element, the number of indexed elements
* @param strides - array-like object containing the stride lengths for the input and output arrays
* @param fcn - binary callback
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
*
* function add( x, y ) {
* return x + y;
* }
*
* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var z = new Float64Array( x.length );
*
* var shape = [ x.length ];
* var strides = [ 1, 1, 1 ];
*
* binary( [ x, y, z ], shape, strides, add );
*
* console.log( z );
* // => <Float64Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
*/
( arrays: ArrayLike<ArrayLike<any>>, shape: ArrayLike<number>, strides: ArrayLike<number>, fcn: Binary ): void;
/**
* Applies a binary callback to strided input array elements and assigns results to elements in a strided output array using alternative indexing semantics.
*
* @param arrays - array-like object containing two input arrays and one output array
* @param shape - array-like object containing a single element, the number of indexed elements
* @param strides - array-like object containing the stride lengths for the input and output arrays
* @param offsets - array-like object containing the starting indices (i.e., index offsets) for the input and output arrays
* @param fcn - binary callback
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
*
* function add( x, y ) {
* return x + y;
* }
*
* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var z = new Float64Array( x.length );
*
* var shape = [ x.length ];
* var strides = [ 1, 1, 1 ];
* var offsets = [ 0, 0, 0 ];
*
* binary.ndarray( [ x, y, z ], shape, strides, offsets, add );
*
* console.log( z );
* // => <Float64Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
*/
ndarray( arrays: ArrayLike<ArrayLike<any>>, shape: ArrayLike<number>, strides: ArrayLike<number>, offsets: ArrayLike<number>, fcn: Binary ): void;
}
/**
* Applies a binary callback to strided input array elements and assigns results to elements in a strided output array.
*
* @param arrays - array-like object containing two input arrays and one output array
* @param shape - array-like object containing a single element, the number of indexed elements
* @param strides - array-like object containing the stride lengths for the input and output arrays
* @param fcn - binary callback
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
*
* function add( x, y ) {
* return x + y;
* }
*
* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var z = new Float64Array( x.length );
*
* var shape = [ x.length ];
* var strides = [ 1, 1, 1 ];
*
* binary( [ x, y, z ], shape, strides, add );
*
* console.log( z );
* // => <Float64Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
*
* @example
* var Float64Array = require( '@stdlib/array/float64' );
*
* function add( x, y ) {
* return x + y;
* }
*
* var x = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var y = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
* var z = new Float64Array( x.length );
*
* var shape = [ x.length ];
* var strides = [ 1, 1, 1 ];
* var offsets = [ 0, 0, 0 ];
*
* binary.ndarray( [ x, y, z ], shape, strides, offsets, add );
*
* console.log( z );
* // => <Float64Array>[ 2.0, 4.0, 6.0, 8.0, 10.0 ]
*/
declare var binary: Routine;
// EXPORTS //
export = binary;
``` | /content/code_sandbox/lib/node_modules/@stdlib/strided/base/binary/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 1,436 |
```xml
import EmptyState from '@erxes/ui/src/components/EmptyState';
import Spinner from '@erxes/ui/src/components/Spinner';
import { __ } from '@erxes/ui/src/utils';
import React from 'react';
import { Link } from 'react-router-dom';
import { INotification } from '../types';
import NotificationRow from './NotificationRow';
import {
MarkAllRead,
NotificationList,
NotificationSeeAll,
NotificationWrapper,
PopoverContent,
} from './styles';
type Props = {
notifications: INotification[];
markAsRead: (notificationIds?: string[]) => void;
isLoading: boolean;
};
const NotificationsLatest = (props: Props) => {
const { notifications, markAsRead, isLoading } = props;
if (isLoading) {
return <Spinner objective={true} />;
}
const mainContent = (
<React.Fragment>
<NotificationList>
{(notifications || []).map((notif, key) => (
<NotificationRow
notification={notif}
key={key}
markAsRead={markAsRead}
/>
))}
</NotificationList>
<NotificationSeeAll>
<Link to="/notifications">{__('See all')}</Link>
</NotificationSeeAll>
<MarkAllRead>
<span onClick={markAsRead.bind(this, [])}>
{__('Mark all as read')}
</span>{' '}
</MarkAllRead>
</React.Fragment>
);
const emptyContent = (
<PopoverContent>
<EmptyState
text={__('Looks like you are all caught up')}
image="/images/actions/17.svg"
/>
</PopoverContent>
);
const content = () => {
if ((notifications || []).length === 0) {
return emptyContent;
}
return <NotificationWrapper>{mainContent}</NotificationWrapper>;
};
return content();
};
export default NotificationsLatest;
``` | /content/code_sandbox/packages/ui-notifications/src/components/NotificationsLatest.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 405 |
```xml
import { customElement } from 'lit';
import { ClarityIcons } from '@cds/core/icon/icon.service.js';
import { minusIcon } from '@cds/core/icon/shapes/minus.js';
import { plusIcon } from '@cds/core/icon/shapes/plus.js';
import { CdaCounter } from './counter.element.js';
import '@cds/core/button/register.js';
import '@cds/core/icon/register.js';
ClarityIcons.addIcons(plusIcon, minusIcon);
@customElement('cda-counter')
class CdaCounterRegistration extends CdaCounter {} // eslint-disable-line
declare global {
interface HTMLElementTagNameMap {
'cda-counter': CdaCounter;
}
}
``` | /content/code_sandbox/apps/core-simple-devapp/src/counter/register.ts | xml | 2016-09-29T17:24:17 | 2024-08-11T17:06:15 | clarity | vmware-archive/clarity | 6,431 | 147 |
```xml
import 'reflect-metadata';
import request from 'supertest';
import accountsExpress from '../../../src/express-middleware';
import express from 'express';
function getApp(accountsServer: any, path?: string) {
const router = accountsExpress(accountsServer as any, { path: path ?? '' });
const expressApp = express();
expressApp.use(express.json());
expressApp.use(express.urlencoded({ extended: true }));
expressApp.use(router);
return expressApp;
}
describe('addEmail', () => {
beforeEach(() => {
jest.clearAllMocks();
});
describe('addEmail', () => {
it('calls password.addEmail', async () => {
const passwordService = {
addEmail: jest.fn(() => null),
};
const accountsServer = {
getServices: () => ({
password: passwordService,
}),
resumeSession: jest.fn(() => ({ id: 'userId' })),
};
const body = {
accessToken: 'token',
newEmail: 'valid@newEmail.com',
};
const response = await request(getApp(accountsServer)).post('/password/addEmail').send(body);
expect(response.status).toEqual(200);
expect(response.body).toEqual(null);
expect(accountsServer.getServices().password.addEmail).toHaveBeenCalledWith(
'userId',
'valid@newEmail.com'
);
});
it('Sends error if no userId', async () => {
const passwordService = {
addEmail: jest.fn(() => null),
};
const accountsServer = {
getServices: () => ({
password: passwordService,
}),
resumeSession: jest.fn(() => undefined),
};
const response = await request(getApp(accountsServer)).post('/password/addEmail');
expect(response.status).toEqual(401);
expect(response.body).toEqual({ message: 'Unauthorized' });
});
it('Sends error if it was thrown on addEmail', async () => {
const error = { message: 'Error' };
const passwordService = {
addEmail: jest.fn(() => {
throw error;
}),
};
const accountsServer = {
getServices: () => ({
password: passwordService,
}),
resumeSession: jest.fn(() => ({ id: 'userId' })),
};
const body = {
accessToken: 'token',
newEmail: 'valid@newEmail.com',
};
const response = await request(getApp(accountsServer)).post('/password/addEmail').send(body);
expect(response.status).toEqual(400);
expect(response.body).toEqual(error);
expect(accountsServer.getServices().password.addEmail).toHaveBeenCalledWith(
'userId',
'valid@newEmail.com'
);
});
});
});
``` | /content/code_sandbox/packages/rest-express/__tests__/endpoints/password/add-email.ts | xml | 2016-10-07T01:43:23 | 2024-07-14T11:57:08 | accounts | accounts-js/accounts | 1,492 | 574 |
```xml
import * as compose from "lodash.flowright";
import { ISegment } from "@erxes/ui-segments/src/types";
import { QueryResponse } from "@erxes/ui/src/types";
import React from "react";
import { gql } from "@apollo/client";
import { graphql } from "@apollo/client/react/hoc";
import { queries as segmentQueries } from "@erxes/ui-segments/src/graphql";
import { withProps } from "@erxes/ui/src/utils";
type Props = {
segmentId: string;
children: any;
};
type FinalProps = {
segmentDetailQuery: { segmentDetail: ISegment } & QueryResponse;
} & Props;
class AttributesForm extends React.Component<FinalProps> {
constructor(props) {
super(props);
}
render() {
const { segmentDetailQuery, children } = this.props;
const { segmentDetail, loading, error } = segmentDetailQuery || {};
if (loading || error) {
return "";
}
let config = segmentDetail?.config || {};
if (
!(segmentDetail?.subSegmentConditions || [])?.some((subCondition) =>
(subCondition?.conditions || []).some((cond) =>
["forms:form_submission"].includes(cond.propertyType || "")
)
)
) {
config = undefined;
}
return children(segmentDetail?.config || {});
}
}
export default withProps<Props>(
compose(
graphql<Props>(gql(segmentQueries.segmentDetail), {
name: "segmentDetailQuery",
options: ({ segmentId }) => ({
variables: {
_id: segmentId,
},
}),
})
)(AttributesForm)
);
``` | /content/code_sandbox/packages/ui-automations/src/containers/forms/actions/AttriibutionForms.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 348 |
```xml
import * as React from 'react';
import descriptionMd from './Description.md';
import { Flex, FlexItem, Provider, teamsTheme } from '@fluentui/react-northstar';
import { makeStyles } from '@fluentui/react-components';
import { Flex as FlexShim, flexItem } from '@fluentui/react-migration-v0-v9';
const useStyles = makeStyles({
root: {
width: '100%',
display: 'grid',
gridTemplateColumns: '1fr 1fr',
gridTemplateRows: '1fr',
alignContent: 'center',
alignItems: 'center',
justifyItems: 'center',
columnGap: '10px',
rowGap: '10px',
'> *': {
width: '100%',
},
},
v0Align: {
// align: (value: "center" | "stretch" | "auto" | "end" | "start" | "baseline")
...flexItem.align('end'),
},
v0Push: {
...flexItem.pushRow(),
},
});
export const Default = () => {
const styles = useStyles();
return (
<Provider theme={teamsTheme} className={styles.root}>
<div>
<h3>v0</h3>
<Flex>Flex content</Flex>
</div>
<div>
<h3>Shim</h3>
<FlexShim>Flex Shim Content</FlexShim>
</div>
</Provider>
);
};
export const FlexItemAlign = () => {
const styles = useStyles();
return (
<Provider theme={teamsTheme} className={styles.root}>
<div>
<h3>v0</h3>
<Flex column>
<FlexItem align="end">
<div>Flex content</div>
</FlexItem>
</Flex>
</div>
<div>
<h3>Shim</h3>
<FlexShim column>
<div className={styles.v0Align}>Flex Shim Content</div>
</FlexShim>
</div>
</Provider>
);
};
export const FlexItemPush = () => {
const styles = useStyles();
return (
<Provider theme={teamsTheme} className={styles.root}>
<div>
<h3>v0</h3>
<Flex>
<button>Button 1</button>
<FlexItem push>
<div>Flex content</div>
</FlexItem>
</Flex>
</div>
<div>
<h3>Shim</h3>
<button>Button 1</button>
<FlexShim>
<div className={styles.v0Push}>Flex Shim Content</div>
</FlexShim>
</div>
</Provider>
);
};
export default {
title: 'Migration Shims/V0/FlexShim',
component: Flex,
parameters: {
docs: {
description: {
component: [descriptionMd].join('\n'),
},
},
},
};
``` | /content/code_sandbox/packages/react-components/react-migration-v0-v9/stories/src/Flex/index.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 664 |
```xml
export { default } from './ComponentBundleSizeExample';
``` | /content/code_sandbox/packages/fluentui/docs/src/components/ComponentDoc/ComponentBundleSizeExample/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 12 |
```xml
export enum NotificationType {
error = 1,
warning = 2,
info = 3,
}
export interface NotificationDTO {
type: NotificationType;
message: string;
details?: any;
request?: {
method: string;
url: string;
statusCode: number;
};
}
``` | /content/code_sandbox/src/common/entities/NotificationDTO.ts | xml | 2016-03-12T11:46:41 | 2024-08-16T19:56:44 | pigallery2 | bpatrik/pigallery2 | 1,727 | 68 |
```xml
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.move(editor, { edge: 'end', reverse: true, distance: 6 })
}
export const input = (
<editor>
<block>
one <anchor />
two
<focus /> three
</block>
</editor>
)
export const output = (
<editor>
<block>
o<focus />
ne <anchor />
two three
</block>
</editor>
)
``` | /content/code_sandbox/packages/slate/test/transforms/move/end/to-backward-reverse.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 125 |
```xml
import { type FC } from 'react';
import { DropdownDebug } from 'proton-pass-extension/lib/components/Settings/debug/DropdownDebug';
import { NotificationDebug } from 'proton-pass-extension/lib/components/Settings/debug/NotificationDebug';
import { Button } from '@proton/atoms/Button';
import Icon from '@proton/components/components/icon/Icon';
import { SettingsPanel } from '@proton/pass/components/Settings/SettingsPanel';
import { CACHE_KEY } from '@proton/pass/lib/api/cache';
import { pageMessage, sendMessage } from '@proton/pass/lib/extension/message';
import { WorkerMessageType } from '@proton/pass/types';
export const Developer: FC = () => (
<>
<SettingsPanel title="Extension triggers">
<Button
icon
shape="ghost"
className="w-full"
onClick={() =>
sendMessage(
pageMessage({
type: WorkerMessageType.DEBUG,
payload: { debug: 'update_trigger' },
})
)
}
>
<div className="flex items-center flex items-center">
<Icon name="brand-chrome" className="mr-2" />
<span className="flex-1 text-left">Trigger update</span>
<span className="text-xs color-weak">Triggers a fake update (keep popup opened)</span>
</div>
</Button>
<Button
icon
shape="ghost"
className="w-full"
onClick={() =>
sendMessage(
pageMessage({
type: WorkerMessageType.DEBUG,
payload: { debug: 'storage_full' },
})
)
}
>
<div className="flex items-center flex items-center">
<Icon name="drive" className="mr-2" />
<span className="flex-1 text-left">Trigger full disk</span>
<span className="text-xs color-weak">Triggers a fake disk full event (open popup after)</span>
</div>
</Button>
<Button icon shape="ghost" className="w-full" onClick={() => caches.delete(CACHE_KEY)}>
<div className="flex items-center flex items-center">
<Icon name="fire-slash" className="mr-2" />
<span className="flex-1 text-left">Clear network cache</span>
<span className="text-xs color-weak">Removes all API network cached entries</span>
</div>
</Button>
</SettingsPanel>
<DropdownDebug />
<NotificationDebug />
</>
);
``` | /content/code_sandbox/applications/pass-extension/src/app/pages/settings/Views/Developer.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 529 |
```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.
-->
<layout>
<data>
<variable
name="users"
type="android.databinding.ObservableList<com.example.android.databoundlist.User>"/>
<variable
name="handler"
type="com.example.android.databoundlist.ButtonHandler"/>
</data>
<LinearLayout
xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.android.databoundrecyclerview.MainActivity">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/addUser"
android:onClick="@{() -> handler.addToStart()}"/>
<Button
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/removeUser"
android:onClick="@{() -> handler.deleteFromStart()}"/>
<Button
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/useLarge"
android:onClick="@{() -> handler.useLarge()}"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:orientation="vertical"
app:entries="@{users}"
app:layout="@{handler.layout}"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/addUser"
android:onClick="@{() -> handler.addToEnd()}"/>
<Button
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/removeUser"
android:onClick="@{() -> handler.deleteFromEnd()}"/>
<Button
android:layout_width="0px"
android:layout_weight="1"
android:layout_height="wrap_content"
android:text="@string/useSmall"
android:onClick="@{() -> handler.useSmall()}"/>
</LinearLayout>
</LinearLayout>
</layout>
``` | /content/code_sandbox/DataBinding/DataBoundList/app/src/main/res/layout/activity_main.xml | xml | 2016-03-08T22:27:22 | 2024-08-02T07:38:15 | android-ui-toolkit-demos | googlearchive/android-ui-toolkit-demos | 1,109 | 678 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
import {Modal, DurationChart} from 'components';
import {t} from 'translation';
import {
AnalysisProcessDefinitionParameters,
OutlierNode,
shouldUseLogharitmicScale,
getOutlierSummary,
} from './service';
import VariablesTable from './VariablesTable';
import './OutlierDetailsModal.scss';
interface OutlierDetailsModalProps {
selectedOutlierNode: OutlierNode;
onClose: () => void;
config: AnalysisProcessDefinitionParameters;
}
const MIN_OUTLIER_TO_MAX_NONOUTLIER_RATIO = 100;
export default function OutlierDetailsModal({
selectedOutlierNode,
onClose,
config,
}: OutlierDetailsModalProps) {
const {name, higherOutlier, data, totalCount} = selectedOutlierNode;
const {count, relation} = higherOutlier;
return (
<Modal open onClose={onClose} className="OutlierDetailsModal" size="lg">
<Modal.Header title={t('analysis.task.detailsModal.title', {name})} />
<Modal.Content>
<p className="description">
{t('analysis.task.totalFlowNodeInstances', {count: totalCount})}
<span>{getOutlierSummary(count, relation)}</span>
</p>
<h2>{t('analysis.task.detailsModal.durationChart')}</h2>
<DurationChart
data={data}
colors={data.map(({outlier}) => (outlier ? '#1991c8' : '#eeeeee'))}
isLogharitmic={shouldUseLogharitmicScale(data, MIN_OUTLIER_TO_MAX_NONOUTLIER_RATIO)}
/>
<h2>{t('analysis.task.detailsModal.variablesTable')}</h2>
<VariablesTable config={config} selectedOutlierNode={selectedOutlierNode} />
</Modal.Content>
</Modal>
);
}
``` | /content/code_sandbox/optimize/client/src/components/Analysis/TaskAnalysis/OutlierDetailsModal.tsx | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 423 |
```xml
import React from 'react';
import { observer } from 'mobx-react';
import { omit, filter, escapeRegExp } from 'lodash';
import { discreetWalletAmount } from '../../../features/discreet-mode/replacers/discreetWalletAmount';
import WalletsDropdownLabel from './WalletsDropdownLabel';
import { useDiscreetModeFeature } from '../../../features/discreet-mode';
import Wallet from '../../../domains/Wallet';
import ItemsDropdown from './ItemsDropdown';
/**
*
* This component extends the ItemDropdownProps component
* which is based on React Polymorph's Select
* Any prop from it can be used
* Reference:
* path_to_url
*
*/
type Props = {
className?: string;
getStakePoolById: (...args: Array<any>) => any;
numberOfStakePools: number;
onSearch?: (...args: Array<any>) => any;
onChange?: (...args: Array<any>) => any;
selectionRenderer?: (...args: Array<any>) => any;
placeholder?: string;
value?: string;
errorPosition?: string;
disabled?: boolean;
wallets?: Array<Partial<Wallet>>;
};
export const onSearchWalletsDropdown = (
searchValue: string,
options: Array<any>
) => {
return filter(options, (option) => {
const { walletName, detail } = option;
const regex = new RegExp(escapeRegExp(searchValue), 'i');
return [walletName, detail].some((item) => regex.test(item));
});
};
function WalletsDropdown({
className,
getStakePoolById,
numberOfStakePools,
onSearch = onSearchWalletsDropdown,
wallets = [],
...props
}: Props) {
const discreetModeFeature = useDiscreetModeFeature();
const itemsDropdownProps = {
...omit(props, ['wallets', 'options']),
onSearch,
};
const formattedOptions = wallets.map((wallet) => {
const {
id: value,
amount,
isRestoring,
isSyncing,
restorationProgress: syncingProgress,
} = wallet;
const detail = !isRestoring
? discreetModeFeature.discreetValue({
replacer: discreetWalletAmount({
amount,
}),
})
: null;
return {
label: (
<WalletsDropdownLabel
wallet={wallet}
getStakePoolById={getStakePoolById}
numberOfStakePools={numberOfStakePools}
/>
),
detail,
value,
walletName: wallet.name,
isSyncing,
syncingProgress,
};
});
return (
<ItemsDropdown
className={className}
options={formattedOptions}
{...itemsDropdownProps}
/>
);
}
export default observer(WalletsDropdown);
``` | /content/code_sandbox/source/renderer/app/components/widgets/forms/WalletsDropdown.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 600 |
```xml
import { program } from 'commander';
import { execaCommand } from 'execa';
import { existsSync } from 'fs';
import { copy, emptyDir, remove, writeFile } from 'fs-extra';
import { glob } from 'glob';
import { dirname, join, relative } from 'path';
import { temporaryDirectory } from '../../code/core/src/common/utils/cli';
import { REPROS_DIRECTORY } from '../utils/constants';
import { commitAllToGit } from './utils/git';
import { getTemplatesData, renderTemplate } from './utils/template';
export const logger = console;
interface PublishOptions {
remote?: string;
push?: boolean;
branch?: string;
}
const publish = async (options: PublishOptions & { tmpFolder: string }) => {
const { branch: inputBranch, remote, push, tmpFolder } = options;
const scriptPath = __dirname;
const branch = inputBranch || 'next';
const templatesData = await getTemplatesData(branch === 'main' ? 'main' : 'next');
logger.log(` Cloning the repository ${remote} in branch ${branch}`);
await execaCommand(`git clone ${remote} .`, { cwd: tmpFolder, cleanup: true });
await execaCommand(`git checkout ${branch}`, { cwd: tmpFolder, cleanup: true });
// otherwise old files will stick around and result inconsistent states
logger.log(` Delete existing template dirs from clone`);
// empty all existing directories for sandboxes that have a successful after-storybook directory
await Promise.all(
// find all successfully generated after-storybook/README.md files
// eg. /home/repros/react-vite/default-ts/after-storybook/README.md
// README.md being the last file generated, thus representing a successful generation
(await glob(join(REPROS_DIRECTORY, '**', 'after-storybook/README.md'))).map((readmePath) => {
// get the after-storybook path relative to the source 'repros' directory
// eg. ./react-vite/default-ts/after-storybook
const pathRelativeToSource = relative(REPROS_DIRECTORY, dirname(readmePath));
// get the actual path to the corresponding sandbox directory in the clone
// eg. /home/sandboxes-clone/react-vite/default-ts
const sandboxDirectoryToEmpty = join(tmpFolder, pathRelativeToSource, '..');
return emptyDir(sandboxDirectoryToEmpty);
})
);
logger.log(` Moving template files into the repository`);
const templatePath = join(scriptPath, 'templates', 'root.ejs');
const templateData = { data: templatesData, version: branch === 'main' ? 'latest' : 'next' };
const output = await renderTemplate(templatePath, templateData);
await writeFile(join(tmpFolder, 'README.md'), output);
logger.log(` Moving all the repros into the repository`);
await copy(REPROS_DIRECTORY, tmpFolder);
await commitAllToGit({ cwd: tmpFolder, branch });
logger.info(`
All the examples were bootstrapped:
- in ${tmpFolder}
- using the '${branch}' version of Storybook CLI
- and committed on the '${branch}' branch of a local Git repository
Also all the files in the 'templates' folder were copied at the root of the Git repository.
`);
if (push) {
await execaCommand(`git push --set-upstream origin ${branch}`, {
cwd: tmpFolder,
});
const remoteRepoUrl = `${remote.replace('.git', '')}/tree/${branch}`;
logger.info(` Everything was pushed on ${remoteRepoUrl}`);
} else {
logger.info(`
To publish these examples you just need to:
- push the branch: 'git push --set-upstream origin ${branch}
`);
}
};
program
.description('Create a sandbox from a set of possible templates')
.option('--remote <remote>', 'Choose the remote to push the contents to')
.option('--branch <branch>', 'Choose which branch on the remote')
.option('--push', 'Whether to push the contents to the remote', false)
.option('--force-push', 'Whether to force push the changes into the repros repository', false);
program.parse(process.argv);
if (!existsSync(REPROS_DIRECTORY)) {
throw Error("Couldn't find sandbox directory. Did you forget to run generate-sandboxes?");
}
async function main() {
const tmpFolder = await temporaryDirectory();
logger.log(` Created tmp folder: ${tmpFolder}`);
const options = program.opts() as PublishOptions;
publish({ ...options, tmpFolder }).catch(async (e) => {
logger.error(e);
if (existsSync(tmpFolder)) {
logger.log(' Removing the temporary folder..');
await remove(tmpFolder);
}
process.exit(1);
});
}
main();
``` | /content/code_sandbox/scripts/sandbox/publish.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 1,039 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="path_to_url"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
``` | /content/code_sandbox/core-sample-app/src/main/res/layout/activity_fragment_example.xml | xml | 2016-08-29T12:04:03 | 2024-08-16T13:03:46 | android-youtube-player | PierfrancescoSoffritti/android-youtube-player | 3,391 | 98 |
```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 zeros = require( '@stdlib/ndarray/zeros' );
import strides = require( './index' );
// TESTS //
// The function returns ndarray strides...
{
strides( zeros( [ 3, 2, 1 ] ), false ); // $ExpectType Strides
strides( zeros( [ 3, 2, 1 ] ), true ); // $ExpectType Strides
}
// The compiler throws an error if the function is provided a first argument which is not an ndarray...
{
strides( '5', false ); // $ExpectError
strides( 5, false ); // $ExpectError
strides( true, false ); // $ExpectError
strides( false, false ); // $ExpectError
strides( null, false ); // $ExpectError
strides( undefined, false ); // $ExpectError
strides( [ '1', '2' ], false ); // $ExpectError
strides( {}, false ); // $ExpectError
strides( ( x: number ): number => x, false ); // $ExpectError
}
// The compiler throws an error if the function is provided a second argument which is not a boolean...
{
strides( zeros( [ 3, 2, 1 ] ), '5' ); // $ExpectError
strides( zeros( [ 3, 2, 1 ] ), 5 ); // $ExpectError
strides( zeros( [ 3, 2, 1 ] ), null ); // $ExpectError
strides( zeros( [ 3, 2, 1 ] ), undefined ); // $ExpectError
strides( zeros( [ 3, 2, 1 ] ), [ '1', '2' ] ); // $ExpectError
strides( zeros( [ 3, 2, 1 ] ), {} ); // $ExpectError
strides( zeros( [ 3, 2, 1 ] ), ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the function is provided an unsupported number of arguments...
{
strides(); // $ExpectError
strides( zeros( [ 2, 2 ] ) ); // $ExpectError
strides( zeros( [ 2, 2 ] ), false, {} ); // $ExpectError
}
``` | /content/code_sandbox/lib/node_modules/@stdlib/ndarray/base/strides/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 548 |
```xml
import { DialogModule } from "@angular/cdk/dialog";
import { CommonModule } from "@angular/common";
import { Component, NgZone, OnDestroy, OnInit } from "@angular/core";
import { ReactiveFormsModule, FormsModule } from "@angular/forms";
import { firstValueFrom } from "rxjs";
import { JslibModule } from "@bitwarden/angular/jslib.module";
import { I18nPipe } from "@bitwarden/angular/platform/pipes/i18n.pipe";
import { BroadcasterService } from "@bitwarden/common/platform/abstractions/broadcaster.service";
import { EnvironmentService } from "@bitwarden/common/platform/abstractions/environment.service";
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
import {
AsyncActionsModule,
ButtonModule,
FormFieldModule,
LinkModule,
ToastService,
TypographyModule,
} from "@bitwarden/components";
import { TwoFactorAuthDuoComponent as TwoFactorAuthDuoBaseComponent } from "../../../../libs/angular/src/auth/components/two-factor-auth/two-factor-auth-duo.component";
const BroadcasterSubscriptionId = "TwoFactorComponent";
@Component({
standalone: true,
selector: "app-two-factor-auth-duo",
templateUrl:
"../../../../libs/angular/src/auth/components/two-factor-auth/two-factor-auth-duo.component.html",
imports: [
CommonModule,
JslibModule,
DialogModule,
ButtonModule,
LinkModule,
TypographyModule,
ReactiveFormsModule,
FormFieldModule,
AsyncActionsModule,
FormsModule,
],
providers: [I18nPipe],
})
export class TwoFactorAuthDuoComponent
extends TwoFactorAuthDuoBaseComponent
implements OnInit, OnDestroy
{
constructor(
protected i18nService: I18nService,
protected platformUtilsService: PlatformUtilsService,
private broadcasterService: BroadcasterService,
private ngZone: NgZone,
private environmentService: EnvironmentService,
toastService: ToastService,
) {
super(i18nService, platformUtilsService, toastService);
}
async ngOnInit(): Promise<void> {
await super.ngOnInit();
}
duoCallbackSubscriptionEnabled: boolean = false;
protected override setupDuoResultListener() {
if (!this.duoCallbackSubscriptionEnabled) {
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
await this.ngZone.run(async () => {
if (message.command === "duoCallback") {
this.token.emit(message.code + "|" + message.state);
}
});
});
this.duoCallbackSubscriptionEnabled = true;
}
}
override async launchDuoFrameless() {
if (this.duoFramelessUrl === null) {
this.toastService.showToast({
variant: "error",
title: null,
message: this.i18nService.t("duoHealthCheckResultsInNullAuthUrlError"),
});
return;
}
const duoHandOffMessage = {
title: this.i18nService.t("youSuccessfullyLoggedIn"),
message: this.i18nService.t("youMayCloseThisWindow"),
isCountdown: false,
};
// we're using the connector here as a way to set a cookie with translations
// before continuing to the duo frameless url
const env = await firstValueFrom(this.environmentService.environment$);
const launchUrl =
env.getWebVaultUrl() +
"/duo-redirect-connector.html" +
"?duoFramelessUrl=" +
encodeURIComponent(this.duoFramelessUrl) +
"&handOffMessage=" +
encodeURIComponent(JSON.stringify(duoHandOffMessage));
this.platformUtilsService.launchUri(launchUrl);
}
async ngOnDestroy() {
if (this.duoCallbackSubscriptionEnabled) {
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
this.duoCallbackSubscriptionEnabled = false;
}
}
}
``` | /content/code_sandbox/apps/desktop/src/auth/two-factor-auth-duo.component.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 857 |
```xml
export * from './Tooltip';
export { default as Tooltip } from './Tooltip';
``` | /content/code_sandbox/packages/components/components/tooltip/index.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 17 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(NetToolMinimum);$(NetFrameworkToolCurrent)</TargetFrameworks>
<IsPackable>true</IsPackable>
<IsShippingPackage>true</IsShippingPackage>
<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<!-- This package doesn't contain any lib or ref assemblies because it's a tooling package.-->
<NoWarn>$(NoWarn);NU5128</NoWarn>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_AddBuildOutputToPackageCore;_AddBuildOutputToPackageDesktop</TargetsForTfmSpecificContentInPackage>
<PackageDescription>MSBuild tasks and targets to perform api compatibility checks on assemblies and packages.</PackageDescription>
</PropertyGroup>
<!-- SDK's task infrastructure -->
<ItemGroup>
<Compile Include="$(RepoRoot)src\Tasks\Common\TaskBase.cs" LinkBase="Common" />
<Compile Include="$(RepoRoot)src\Tasks\Common\Logger.cs" LinkBase="Common" />
<Compile Include="$(RepoRoot)src\Tasks\Common\LogAdapter.cs" LinkBase="Common" />
<Compile Include="$(RepoRoot)src\Tasks\Common\BuildErrorException.cs" LinkBase="Common" />
<Compile Include="$(RepoRoot)src\Tasks\Common\Message.cs" LinkBase="Common" />
<Compile Include="$(RepoRoot)src\Tasks\Common\MessageLevel.cs" LinkBase="Common" />
</ItemGroup>
<!-- Include MSBuild logger -->
<ItemGroup>
<Compile Include="..\..\Microsoft.DotNet.ApiSymbolExtensions\Logging\MSBuildLog.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Resources.resx" GenerateSource="true" SubType="Designer" Generator="MSBuild:_GenerateResxSource" ClassName="Microsoft.DotNet.ApiCompat.Resources" ManifestResourceName="Microsoft.DotNet.ApiCompat.Resources" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" ExcludeAssets="Runtime" />
<ProjectReference Include="..\Microsoft.DotNet.PackageValidation\Microsoft.DotNet.PackageValidation.csproj" />
<ProjectReference Include="..\Microsoft.DotNet.ApiCompatibility\Microsoft.DotNet.ApiCompatibility.csproj" />
<!-- We carry NuGet as part of the package in case the package is used with an older SDKs or with full framework MSBuild. -->
<PackageReference Include="NuGet.Packaging" PrivateAssets="All" Publish="true" />
<!-- The ApiCompatibility/PackageValidation stuff depends on CodeAnalysis.CSharp at the version that is
currently built into the SDK. That may in turn have transitive dependencies on System.Collections.Immutable
and System.Reflection.Metadata, which could bump the versions of those packages past the versions guaranteed
by the .NET Framework MSBuild in the minimum supported VS environment. Reference CA.C# here with PrivateAssets
to prevent flowing the higher dependencies to the main SDK tasks assembly. This would be unsafe in general,
but the only reason that Microsoft.NET.Build.Tasks.csproj references this project is for _deployment_, and
it should never share types with this assembly. Within this task, the RoslynResolver should provide a good
closure of references. -->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" ExcludeAssets="Runtime" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<None Include="**\*.props;**\*.targets" Pack="true" PackagePath="%(RecursiveDir)%(Filename)%(Extension)" />
<None Include="$(RepoRoot)src\Tasks\Microsoft.NET.Build.Tasks\targets\Microsoft.NET.ApiCompat.Common.targets" Pack="true" Link="build/Microsoft.NET.ApiCompat.Common.targets" PackagePath="build/%(Filename)%(Extension)" />
<None Include="$(RepoRoot)src\Tasks\Microsoft.NET.Build.Tasks\targets\Microsoft.NET.ApiCompat.ValidatePackage.targets" Pack="true" Link="build/Microsoft.NET.ApiCompat.ValidatePackage.targets" PackagePath="build/%(Filename)%(Extension)" />
</ItemGroup>
<Target Name="_AddBuildOutputToPackageCore" DependsOnTargets="Publish" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<ItemGroup>
<!-- Publish .NET assets and include them in the package under tools directory. -->
<TfmSpecificPackageFile Include="$(PublishDir)**" PackagePath="tools/net/%(RecursiveDir)%(FileName)%(Extension)" />
</ItemGroup>
</Target>
<Target Name="_AddBuildOutputToPackageDesktop" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'">
<ItemGroup>
<!-- Include .NET Framework build outputs in the package under tools directory. -->
<TfmSpecificPackageFile Include="$(OutputPath)**" PackagePath="tools/netframework/%(RecursiveDir)%(FileName)%(Extension)" />
</ItemGroup>
</Target>
<Import Project="..\Microsoft.DotNet.ApiCompat.Shared\Microsoft.DotNet.ApiCompat.Shared.projitems" Label="Shared" />
</Project>
``` | /content/code_sandbox/src/Compatibility/ApiCompat/Microsoft.DotNet.ApiCompat.Task/Microsoft.DotNet.ApiCompat.Task.csproj | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 1,122 |
```xml
import * as ngCore from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { AppComponent } from "./app-component";
declare const zoid: any;
declare const MyLoginZoidComponent: any;
const MyLoginZoidComponentModule = MyLoginZoidComponent.driver(
"angular2",
ngCore
);
@ngCore.NgModule({
imports: [BrowserModule, MyLoginZoidComponentModule],
declarations: [AppComponent],
bootstrap: [AppComponent],
})
export class AppModule {
constructor() {}
}
``` | /content/code_sandbox/demo/frameworks/angular2_TypeScript/app-module.ts | xml | 2016-05-27T17:05:58 | 2024-08-13T09:22:20 | zoid | krakenjs/zoid | 2,003 | 115 |
```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="match_parent"
android:paddingTop="@dimen/dialog_vertical_margin"
android:paddingBottom="@dimen/dialog_vertical_margin"
android:paddingLeft="@dimen/dialog_horizontal_margin"
android:paddingRight="@dimen/dialog_horizontal_margin"
android:weightSum="1">
<TextView
android:text="@string/quest_lanes_answer_lanes_description2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@android:style/TextAppearance.Theme.Dialog"
android:layout_marginBottom="8dp"/>
<NumberPicker
android:id="@+id/numberPicker"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"/>
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/quest_lanes_select_lanes.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 215 |
```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.
-->
<resources>
<dimen name="dp_1">1dp</dimen>
<dimen name="dp_10">10dp</dimen>
<dimen name="dp_20">20dp</dimen>
<dimen name="dp_100">100dp</dimen>
<dimen name="dp_120">120dp</dimen>
<dimen name="dp_150">150dp</dimen>
<dimen name="sp_14">14sp</dimen>
<dimen name="sp_16">16sp</dimen>
<dimen name="sp_18">18sp</dimen>
<dimen name="sp_20">20sp</dimen>
</resources>
``` | /content/code_sandbox/sample/src/main/res/values/dimens.xml | xml | 2016-09-11T05:17:34 | 2024-08-15T05:40:06 | AndPermission | yanzhenjie/AndPermission | 6,624 | 217 |
```xml
import { Moment } from 'moment-timezone';
import React, { CSSProperties, FC } from 'react';
import { useTheme } from '@fluentui/react';
import { EventOccurrence } from 'model';
import { IViewCommands } from '../IViewCommands';
import { WeekInfo } from './Builder';
import { ContentRow } from './ContentRow';
import { WeekBackground } from './WeekBackground';
import styles from './MonthView.module.scss';
interface IProps {
anchorDate: Moment;
week: WeekInfo;
onActivate: (cccurrence: EventOccurrence, target: HTMLElement) => void;
viewCommands: IViewCommands;
}
export const Week: FC<IProps> = ({ anchorDate, week, onActivate, viewCommands }) => {
const { palette: { neutralTertiary } } = useTheme();
const style: CSSProperties = {
borderBottom: '1px solid ' + neutralTertiary
};
return (
<div className={styles.week} style={style}>
<WeekBackground anchorDate={anchorDate} commands={viewCommands} range={week} />
{week.contentRows.map((row, idx) =>
<ContentRow key={idx} row={row} onActivate={onActivate} />
)}
</div>
);
}
``` | /content/code_sandbox/samples/react-rhythm-of-business-calendar/src/components/views/month/Week.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 276 |
```xml
type MessageProps = {
children?: React.ReactNode;
type: 'error' | 'loading' | 'no-data';
};
export default function Message({ children, type }: MessageProps): React.ReactElement {
return <div className={`react-pdf__message react-pdf__message--${type}`}>{children}</div>;
}
``` | /content/code_sandbox/packages/react-pdf/src/Message.tsx | xml | 2016-08-01T13:46:02 | 2024-08-16T16:54:44 | react-pdf | wojtekmaj/react-pdf | 9,159 | 68 |
```xml
import * as vscode from "vscode";
export enum SystemColorTheme {
Light = "Light",
Dark = "Dark",
}
export class EditorColorThemesHelper {
public static isAutoDetectColorSchemeEnabled(): boolean {
return !!vscode.workspace.getConfiguration("window").get("autoDetectColorScheme");
}
public static getCurrentSystemColorTheme(): SystemColorTheme {
if (EditorColorThemesHelper.isAutoDetectColorSchemeEnabled()) {
const workbenchConfiguration = vscode.workspace.getConfiguration("workbench");
const currentTheme = workbenchConfiguration.get("colorTheme");
const preferredDarkColorTheme = workbenchConfiguration.get("preferredDarkColorTheme");
return currentTheme === preferredDarkColorTheme
? SystemColorTheme.Dark
: SystemColorTheme.Light;
}
throw new Error(
"Couldn't detect the current system color theme: 'window.autoDetectColorScheme' parameter is disabled",
);
}
}
``` | /content/code_sandbox/src/common/editorColorThemesHelper.ts | xml | 2016-01-20T21:10:07 | 2024-08-16T15:29:52 | vscode-react-native | microsoft/vscode-react-native | 2,617 | 198 |
```xml
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { VulnerabilityFilterComponent } from './vulnerability-filter.component';
import { OptionType } from '../security-hub.interface';
import { SharedTestingModule } from '../../../../../shared/shared.module';
import { NO_ERRORS_SCHEMA } from '@angular/core';
describe('VulnerabilityFilterComponent', () => {
let component: VulnerabilityFilterComponent;
let fixture: ComponentFixture<VulnerabilityFilterComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [SharedTestingModule],
declarations: [VulnerabilityFilterComponent],
}).compileComponents();
fixture = TestBed.createComponent(VulnerabilityFilterComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('"All" is selected by default', () => {
fixture.detectChanges();
const select: HTMLSelectElement =
fixture.nativeElement.querySelector('select');
expect(select.value).toEqual(OptionType.ALL);
});
});
``` | /content/code_sandbox/src/portal/src/app/base/left-side-nav/interrogation-services/vulnerability-database/vulnerability-filter/vulnerability-filter.component.spec.ts | xml | 2016-01-28T21:10:28 | 2024-08-16T15:28:34 | harbor | goharbor/harbor | 23,335 | 219 |
```xml
<!--
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~
~ 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.
-->
<dataset update-count="4">
<metadata data-nodes="tbl.t_single_table">
<column name="single_id" type="numeric" />
<column name="id" type="numeric" />
<column name="status" type="varchar" />
</metadata>
<row data-node="tbl.t_single_table" values="1, 1000, finished" />
<row data-node="tbl.t_single_table" values="2, 1001, finished" />
<row data-node="tbl.t_single_table" values="3, 1002, finished" />
<row data-node="tbl.t_single_table" values="4, 1003, finished" />
</dataset>
``` | /content/code_sandbox/test/e2e/sql/src/test/resources/cases/dml/dataset/tbl/update_single_table.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 223 |
```xml
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { MenubarDemo } from './menubardemo';
@NgModule({
imports: [RouterModule.forChild([{ path: '', component: MenubarDemo }])],
exports: [RouterModule]
})
export class MenubarDemoRoutingModule {}
``` | /content/code_sandbox/src/app/showcase/pages/menubar/menubardemo-routing.module.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 66 |
```xml
export function defaultTo<T>(value: T): (v: T | undefined) => T {
return (v: T | undefined) => (v === undefined ? value : v);
}
type Obj = object;
export type Nested<T, K extends keyof T> = T extends object ? Exclude<T[K], undefined> : never;
export type NestedKey<T, K extends keyof T> = keyof Nested<T, K>;
export function extract<T extends Obj, K extends keyof T>(key: K): (t: T | undefined) => T[K] | undefined;
export function extract<T extends Obj, K extends keyof T, K2 extends NestedKey<T, K>>(
key: K,
k2: K2,
): (t: T | undefined) => Nested<T, K>[K2] | undefined;
export function extract<T extends Obj, K extends keyof T, K2 extends NestedKey<T, K>, K3 extends NestedKey<Nested<T, K>, K2>>(
key: K,
k2: K2,
k3: K3,
): (t: T | undefined) => Nested<Nested<T, K>, K2>[K3] | undefined;
export function extract<
T extends Obj,
K extends keyof T,
K2 extends NestedKey<T, K>,
K3 extends NestedKey<Nested<T, K>, K2>,
K4 extends NestedKey<Nested<Nested<T, K>, K2>, K3>,
>(key: K, k2: K2, k3: K3, k4: K4): (t: T | undefined) => Nested<Nested<Nested<T, K>, K2>, K3>[K4] | undefined;
export function extract<T extends Obj, K extends keyof T>(key: K): (t: T | undefined) => T[K] | undefined {
if (arguments.length > 1) {
// eslint-disable-next-line prefer-rest-params
const args: string[] = [...arguments];
return (t: T | undefined) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let v = t as any;
for (const k of args) {
v = v === undefined ? undefined : v[k];
}
return v;
};
}
return (t: T | undefined) => (t === undefined ? undefined : t[key]);
}
export function map<T, R>(fn: (t: T) => R): (t: T | undefined) => R | undefined {
return (t: T | undefined) => (t === undefined ? undefined : fn(t));
}
export function pipe<T>(t: T): T;
export function pipe<T, R>(t: T, fn: (t: T) => R): R;
export function pipe<T, R, S>(t: T, fn: (t: T) => R, fn2: (t: R) => S): S;
export function pipe<T, R, S, A>(t: T, fn: (t: T) => R, fn2: (t: R) => S, fn3: (t: S) => A): A;
export function pipe<T, R, S, A, B>(t: T, fn: (t: T) => R, fn2: (t: R) => S, fn3: (t: S) => A, fn4: (t: A) => B): B;
export function pipe<T, R, S, A, B, C>(t: T, fn: (t: T) => R, fn2: (t: R) => S, fn3: (t: S) => A, fn4: (t: A) => B, fn5: (t: B) => C): C;
export function pipe<T>(t: T): T {
if (arguments.length > 1) {
// eslint-disable-next-line prefer-rest-params, @typescript-eslint/no-explicit-any
const fns = [...arguments].slice(1) as ((v: any) => any)[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let v = t as any;
for (const fn of fns) {
v = fn(v);
}
return v;
}
return t;
}
``` | /content/code_sandbox/packages/client/src/util/pipe.ts | xml | 2016-05-16T10:42:22 | 2024-08-16T02:29:06 | vscode-spell-checker | streetsidesoftware/vscode-spell-checker | 1,377 | 927 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<paths>
<external-path name="images" path="Android/data/de.westnordost.streetcomplete.debug/files/Pictures" />
</paths>
``` | /content/code_sandbox/app/src/debug/res/xml/file_paths.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 47 |
```xml
export * from './constants';
export * from './types';
// loadSite is NOT exported (see comment in file)
``` | /content/code_sandbox/packages/public-docsite-setup/src/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 25 |
```xml
import {
getSnapshot,
unprotect,
recordPatches,
types,
IType,
IJsonPatch,
Instance,
cast,
IAnyModelType,
IMSTMap
} from "../../src"
import { expect, test } from "bun:test"
function testPatches<C, S, T extends object>(
type: IType<C, S, T>,
snapshot: C,
fn: any,
expectedPatches: IJsonPatch[],
expectedInversePatches: IJsonPatch[]
) {
const instance = type.create(snapshot)
const baseSnapshot = getSnapshot(instance)
const recorder = recordPatches(instance)
unprotect(instance)
fn(instance)
recorder.stop()
expect(recorder.patches).toEqual(expectedPatches)
expect(recorder.inversePatches).toEqual(expectedInversePatches)
const clone = type.create(snapshot)
recorder.replay(clone)
expect(getSnapshot(clone)).toEqual(getSnapshot(instance))
recorder.undo()
expect(getSnapshot(instance)).toEqual(baseSnapshot)
}
const Node = types.model("Node", {
id: types.identifierNumber,
text: "Hi",
children: types.optional(types.array(types.late((): IAnyModelType => Node)), [])
})
test("it should apply simple patch", () => {
testPatches(
Node,
{ id: 1 },
(n: Instance<typeof Node>) => {
n.text = "test"
},
[
{
op: "replace",
path: "/text",
value: "test"
}
],
[
{
op: "replace",
path: "/text",
value: "Hi"
}
]
)
})
test("it should apply deep patches to arrays", () => {
testPatches(
Node,
{ id: 1, children: [{ id: 2 }] },
(n: Instance<typeof Node>) => {
const children = n.children as unknown as Instance<typeof Node>[]
children[0].text = "test" // update
children[0] = cast({ id: 2, text: "world" }) // this reconciles; just an update
children[0] = cast({ id: 4, text: "coffee" }) // new object
children[1] = cast({ id: 3, text: "world" }) // addition
children.splice(0, 1) // removal
},
[
{
op: "replace",
path: "/children/0/text",
value: "test"
},
{
op: "replace",
path: "/children/0/text",
value: "world"
},
{
op: "replace",
path: "/children/0",
value: {
id: 4,
text: "coffee",
children: []
}
},
{
op: "add",
path: "/children/1",
value: {
id: 3,
text: "world",
children: []
}
},
{
op: "remove",
path: "/children/0"
}
],
[
{
op: "replace",
path: "/children/0/text",
value: "Hi"
},
{
op: "replace",
path: "/children/0/text",
value: "test"
},
{
op: "replace",
path: "/children/0",
value: {
children: [],
id: 2,
text: "world"
}
},
{
op: "remove",
path: "/children/1"
},
{
op: "add",
path: "/children/0",
value: {
children: [],
id: 4,
text: "coffee"
}
}
]
)
})
test("it should apply deep patches to maps", () => {
const NodeMap = types.model("NodeMap", {
id: types.identifierNumber,
text: "Hi",
children: types.optional(types.map(types.late((): IAnyModelType => NodeMap)), {})
})
testPatches(
NodeMap,
{ id: 1, children: { 2: { id: 2 } } },
(n: Instance<typeof NodeMap>) => {
const children = n.children as IMSTMap<typeof NodeMap>
children.get("2")!.text = "test" // update
children.put({ id: 2, text: "world" }) // this reconciles; just an update
children.set("4", NodeMap.create({ id: 4, text: "coffee", children: { 23: { id: 23 } } })) // new object
children.put({ id: 3, text: "world", children: { 7: { id: 7 } } }) // addition
children.delete("2") // removal
},
[
{
op: "replace",
path: "/children/2/text",
value: "test"
},
{
op: "replace",
path: "/children/2/text",
value: "world"
},
{
op: "add",
path: "/children/4",
value: {
children: {
23: {
children: {},
id: 23,
text: "Hi"
}
},
id: 4,
text: "coffee"
}
},
{
op: "add",
path: "/children/3",
value: {
children: {
7: {
children: {},
id: 7,
text: "Hi"
}
},
id: 3,
text: "world"
}
},
{
op: "remove",
path: "/children/2"
}
],
[
{
op: "replace",
path: "/children/2/text",
value: "Hi"
},
{
op: "replace",
path: "/children/2/text",
value: "test"
},
{
op: "remove",
path: "/children/4"
},
{
op: "remove",
path: "/children/3"
},
{
op: "add",
path: "/children/2",
value: {
children: {},
id: 2,
text: "world"
}
}
]
)
})
test("it should apply deep patches to objects", () => {
const NodeObject = types.model("NodeObject", {
id: types.identifierNumber,
text: "Hi",
child: types.maybe(types.late((): IAnyModelType => NodeObject))
})
testPatches(
NodeObject,
{ id: 1, child: { id: 2 } },
(n: Instance<typeof NodeObject>) => {
n.child!.text = "test" // update
n.child = cast({ id: 2, text: "world" }) // this reconciles; just an update
n.child = NodeObject.create({ id: 2, text: "coffee", child: { id: 23 } })
n.child = cast({ id: 3, text: "world", child: { id: 7 } }) // addition
n.child = undefined // removal
},
[
{
op: "replace",
path: "/child/text",
value: "test"
},
{
op: "replace",
path: "/child/text",
value: "world"
},
{
op: "replace",
path: "/child",
value: {
child: {
child: undefined,
id: 23,
text: "Hi"
},
id: 2,
text: "coffee"
}
},
{
op: "replace",
path: "/child",
value: {
child: {
child: undefined,
id: 7,
text: "Hi"
},
id: 3,
text: "world"
}
},
{
op: "replace",
path: "/child",
value: undefined
}
],
[
{
op: "replace",
path: "/child/text",
value: "Hi"
},
{
op: "replace",
path: "/child/text",
value: "test"
},
{
op: "replace",
path: "/child",
value: {
child: undefined,
id: 2,
text: "world"
}
},
{
op: "replace",
path: "/child",
value: {
child: {
child: undefined,
id: 23,
text: "Hi"
},
id: 2,
text: "coffee"
}
},
{
op: "replace",
path: "/child",
value: {
child: {
child: undefined,
id: 7,
text: "Hi"
},
id: 3,
text: "world"
}
}
]
)
})
``` | /content/code_sandbox/__tests__/core/recordPatches.test.ts | xml | 2016-09-04T18:28:25 | 2024-08-16T08:48:55 | mobx-state-tree | mobxjs/mobx-state-tree | 6,917 | 1,991 |
```xml
import type { Meta, StoryObj } from '@storybook/svelte';
import Button from './Button.svelte';
// More on how to set up stories at: path_to_url
const meta: Meta<Button> = {
title: 'Example/Button',
component: Button,
tags: ['autodocs'],
argTypes: {
backgroundColor: { control: 'color' },
size: {
control: { type: 'select' },
options: ['small', 'medium', 'large'],
},
},
};
export default meta;
type Story = StoryObj<Button>;
// More on writing stories with args: path_to_url
export const Primary: Story = {
args: {
primary: true,
label: 'Button',
},
};
export const Secondary: Story = {
args: {
label: 'Button',
},
};
export const Large: Story = {
args: {
size: 'large',
label: 'Button',
},
};
export const Small: Story = {
args: {
size: 'small',
label: 'Button',
},
};
``` | /content/code_sandbox/code/renderers/svelte/template/cli/ts-3-8/Button.stories.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 231 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M4.25,5.61C6.27,8.2 10,13 10,13v6c0,0.55 0.45,1 1,1h2c0.55,0 1,-0.45 1,-1v-6c0,0 3.72,-4.8 5.74,-7.39C20.25,4.95 19.78,4 18.95,4H5.04C4.21,4 3.74,4.95 4.25,5.61z"/>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_filter_alt_24dp.xml | xml | 2016-04-20T21:29:44 | 2024-08-16T16:14:46 | mpv-android | mpv-android/mpv-android | 1,964 | 204 |
```xml
import { useField } from 'formik';
import { string } from 'yup';
import { getEnvironments } from '@/react/portainer/environments/environment.service';
import { useDebounce } from '@/react/hooks/useDebounce';
import { FormControl } from '@@/form-components/FormControl';
import { Input } from '@@/form-components/Input';
import { useCachedValidation } from '@@/form-components/useCachedTest';
interface Props {
readonly?: boolean;
tooltip?: string;
placeholder?: string;
}
export function NameField({
readonly,
tooltip,
placeholder = 'e.g. docker-prod01 / kubernetes-cluster01',
}: Props) {
const [{ value }, meta, { setValue }] = useField('name');
const id = 'name-input';
const [debouncedValue, setDebouncedValue] = useDebounce(value, setValue);
return (
<FormControl
label="Name"
required
errors={meta.error}
inputId={id}
tooltip={tooltip}
>
<Input
id={id}
data-cy="environmentCreate-nameInput"
name="name"
onChange={(e) => setDebouncedValue(e.target.value)}
value={debouncedValue}
placeholder={placeholder}
readOnly={readonly}
/>
</FormControl>
);
}
export async function isNameUnique(name = '') {
if (!name) {
return true;
}
try {
const result = await getEnvironments({
limit: 1,
query: { name, excludeSnapshots: true },
});
return (
result.totalCount === 0 || result.value.every((e) => e.Name !== name)
);
} catch (e) {
// if backend fails to respond, assume name is unique, name validation happens also in the backend
return true;
}
}
export function useNameValidation() {
const uniquenessTest = useCachedValidation(isNameUnique);
return string()
.required('Name is required')
.test('unique-name', 'Name should be unique', uniquenessTest);
}
``` | /content/code_sandbox/app/react/portainer/environments/wizard/EnvironmentsCreationView/shared/NameField.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 447 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="path_to_url" tools:ignore="ImpliedQuantity, ExtraTranslation, MissingTranslation">
<!-- The name of the Device or Folder Sub State when its code is NO_SYNC_ERROR -->
<string name="general_sync_no_error">No h erros de sincronizao</string>
<!-- The name of the Device or Folder Sub State when its code is UNSUPPORTED_FILE_SYSTEM -->
<string name="general_sync_unsupported_file_system">O MEGA no pode sincronizar ou fazer backup desta pasta porque o sistema de arquivos do seu dispositivo no suportado</string>
<!-- The name of the Device or Folder Sub State when its code is INVALID_REMOTE_TYPE -->
<string name="general_sync_invalid_remote_type">No possvel sincronizar a pasta selecionada</string>
<!-- The name of the Device or Folder Sub State when its code is INVALID_LOCAL_TYPE -->
<string name="general_sync_invalid_local_type">Um arquivo no pode ser sincronizado individualmente. Voc precisa configurar a sincronizao a partir de uma pasta.</string>
<!-- The name of the Device or Folder Sub State when its code is INITIAL_SCAN_FAILED -->
<string name="general_sync_initial_scan_failed">Falha no escaneio inicial. Voc precisa reativar a sua sincronizao ou o seu backup no aplicativo para desktop.</string>
<!-- The name of the Device or Folder Sub State when its code is REMOTE_NODE_NOT_FOUND -->
<string name="general_sync_remote_node_not_found">No foi possvel localizar a pasta no MEGA porque ela foi movida ou deletada, ou pode ser que voc no tenha acesso a ela</string>
<!-- The name of the Device or Folder Sub State when its code is STORAGE_OVERQUOTA -->
<string name="general_sync_storage_overquota">No foi possvel sincronizar ou fazer backup dessa pasta porque a sua conta est cheia</string>
<!-- The name of the Device or Folder Sub State when its code is ACCOUNT_EXPIRED -->
<string name="general_sync_account_expired">No foi possvel sincronizar ou fazer backup dessa pasta porque o seu plano expirou</string>
<!-- The name of the Device or Folder Sub State when its code is FOREIGN_TARGET_OVERSTORAGE -->
<string name="general_sync_foreign_target_overshare">No possvel sincronizar esta pasta porque a conta do usurio que a compartilhou alcanou o limite de armazenamento.</string>
<!-- The name of the Device or Folder Sub State when its code is REMOTE_PATH_HAS_CHANGED -->
<string name="general_sync_remote_path_has_changed">No foi possvel localizar a pasta no MEGA porque ela foi movida ou deletada, ou pode ser que voc no tenha acesso a ela.</string>
<!-- The name of the Device or Folder Sub State when its code is SHARE_NON_FULL_ACCESS -->
<string name="general_sync_share_non_full_access">No possvel sincronizar esta pasta porque uma pasta compartilhada qual voc no tem acesso total</string>
<!-- The name of the Device or Folder Sub State when its code is PUT_NODES_ERROR -->
<string name="general_sync_put_nodes_error">No foi possvel sincronizar ou fazer backup dos arquivos nesta pasta. Voc precisa reativar a sua sincronizao ou o seu backup no aplicativo para desktop.</string>
<!-- The name of the Device or Folder Sub State when its code is ACTIVE_SYNC_BELOW_PATH -->
<string name="general_sync_active_sync_below_path">No possvel sincronizar esta pasta porque ela contm pastas sincronizadas</string>
<!-- The name of the Device or Folder Sub State when its code is VBOXSHAREDFOLDER_UNSUPPORTED -->
<string name="general_sync_vboxsharedfolder_unsupported">O MEGA no pode sincronizar ou fazer backup das pastas do VirtualBox</string>
<!-- The name of the Device or Folder Sub State when its code is ACCOUNT_BLOCKED -->
<string name="general_sync_account_blocked">No foi possvel sincronizar ou fazer backup dessa pasta porque a conta foi bloqueada</string>
<!-- The name of the Device or Folder Sub State when its code is UNKNOWN_TEMPORARY_ERROR -->
<string name="general_sync_unknown_temporary_error">No foi possvel sincronizar ou fazer o backup desta pasta. Tente novamente mais tarde. Se o problema persistir, entre em contato com a nossa equipe de Suporte.</string>
<!-- The name of the Device or Folder Sub State when its code is TOO_MANY_ACTION_PACKETS -->
<string name="general_sync_too_many_action_packets">A sua conta foi recarregada. Nenhuma atualizao pendente dos seus backups ou das suas sincronizaes no foi feita.</string>
<!-- The name of the Device or Folder Sub State when its code is LOGGED_OUT -->
<string name="general_sync_logged_out">A sincronizao ou o backup foram interrompidos porque voc parece ter se desconectado do aplicativo para desktop. Faa login novamente no aplicativo para desktop e para retomar a sincronizao ou o backup.</string>
<!-- The name of the Device or Folder Sub State when its code is MISSING_PARENT_NODE -->
<string name="general_sync_missing_parent_node">N/A</string>
<!-- The name of the Device or Folder Sub State when its code is BACKUP_SOURCE_NOT_BELOW_DRIVE -->
<string name="general_sync_backup_source_not_below_drive">No possvel localizar a pasta na unidade externa.</string>
<!-- The name of the Device or Folder Sub State when its code is ACTIVE_SYNC_SAME_PATH -->
<string name="general_sync_active_sync_same_path">J existe uma pasta sincronizada no mesmo local</string>
<!-- The name of the Device or Folder Sub State when its code is COULD_NOT_MOVE_CLOUD_NODES -->
<string name="general_sync_could_not_move_cloud_nodes">No foi possvel renomear</string>
<!-- The name of the Device or Folder Sub State when its code is COULD_NOT_CREATE_IGNORE_FILE -->
<string name="general_sync_could_not_create_ignore_file">No foi possvel criar um arquivo .megaignore para essa sincronizao</string>
<!-- The name of the Device or Folder Sub State when its code is SYNC_CONFIG_READ_FAILURE -->
<string name="general_sync_config_read_failure">No foi possvel ler a configurao da sincronizao. Tente novamente mais tarde ou verifique as permisses da pasta.</string>
<!-- The name of the Device or Folder Sub State when its code is UNKNOWN_DRIVE_PATH -->
<string name="general_sync_unknown_drive_path">A localizao da sincronizao desconhecida</string>
<!-- The name of the Device or Folder Sub State when its code is INVALID_SCAN_INTERVAL -->
<string name="general_sync_invalid_scan_interval">O intervalo de escaneado invlido. Verifique a configurao do intervalo de escaneado e tente novamente.</string>
<!-- The name of the Device or Folder Sub State when its code is NOTIFICATION_SYSTEM_UNAVAILABLE -->
<string name="general_sync_notification_system_unavailable">No foi possvel se comunicar com a localizao da pasta. Verifique se o local est acessvel e se as permisses para a localizao da pasta foram concedidas.</string>
<!-- The name of the Device or Folder Sub State when its code is UNABLE_TO_ADD_WATCH -->
<string name="general_sync_unable_to_add_watch">No possvel adicionar um monitor do sistema de arquivos. Verifique se h espao livre e memria suficientes e se voc tem permisses para a acessar a localizao da pasta.</string>
<!-- The name of the Device or Folder Sub State when its code is UNABLE_TO_RETRIEVE_ROOT_FSID -->
<string name="general_sync_unable_to_retrieve_root_fsid">No foi possvel ler a localizao da sincronizao. Verifique se o local est acessvel e se as permisses para a localizao da pasta foram concedidas.</string>
<!-- The name of the Device or Folder Sub State when its code is UNABLE_TO_OPEN_DATABASE -->
<string name="general_sync_unable_to_open_database">No possvel abrir o banco de dados de cache de estado</string>
<!-- The name of the Device or Folder Sub State when its code is INSUFFICIENT_DISK_SPACE -->
<string name="general_sync_insufficient_disk_space">No h espao de armazenamento suficiente no seu dispositivo</string>
<!-- The name of the Device or Folder Sub State when its code is FAILURE_ACCESSING_PERSISTENT_STORAGE -->
<string name="general_sync_failure_accessing_persistent_storage">No foi possvel ler a localizao da sincronizao. Verifique se o local est acessvel e se as permisses para a localizao da pasta foram concedidas.</string>
<!-- The name for specific Sub States to indicate that an unknown error occurred -->
<string name="general_sync_message_unknown_error">Ocorreu um erro desconhecido - entre em contato com support@mega.nz.</string>
<!-- The name for specific Sub States to indicate that something went wrong -->
<string name="general_sync_message_something_went_wrong">Algo deu errado.</string>
<!-- The name for specific Sub States to indicate that the Node is in the Rubbish Bin -->
<string name="general_sync_message_node_in_rubbish_bin">No possvel sincronizar ou fazer backup porque a pasta no MEGA est na Lixeira</string>
<!-- The name for specific Sub States to indicate that the local drive cannot be located at this time -->
<string name="general_sync_message_cannot_locate_local_drive_now">No foi possvel localizar a pasta no seu dispositivo - tente novamente mais tarde.</string>
<!-- The name for specific Sub States to indicate that the local drive cannot be located -->
<string name="general_sync_message_cannot_locate_local_drive">No foi possvel localizar a pasta no seu dispositivo</string>
<!-- The name for specific Sub States to indicate that a problem occurred when syncing or backing up the MEGA Folder due to some changes -->
<string name="general_sync_message_folder_backup_issue_due_to_recent_changes">No foi possvel sincronizar ou fazer o backup desta pasta devido a alteraes na pasta no MEGA. Cancele a sincronizao ou o backup e tente configur-lo novamente no aplicativo para desktop, ou entre em contato com a nossa equipe de Suporte.</string>
<!-- The name for specific Sub States to indicate that a problem occurred when syncing or backing up the MEGA Folder -->
<string name="general_sync_message_folder_backup_issue">No foi possvel sincronizar ou fazer o backup desta pasta. Cancele a sincronizao ou o backup e tente configur-lo novamente no aplicativo para desktop, ou entre em contato com a nossa equipe de Suporte.</string>
<!-- The name for specific Sub States to indicate that the MEGA Folder cannot be synced or backed up as it is inside another synced MEGA Folder -->
<string name=your_sha256_hashther_backed_up_folder">No possvel sincronizar esta pasta porque est dentro de uma pasta sincronizada</string>
<!-- The name of the Device or Folder Sub State when its code is LOCAL_FILESYSTEM_MISMATCH -->
<string name="general_sync_local_filesystem_mismatch">No foi possvel sincronizar ou fazer backup dos arquivos nesta pasta. Voc precisa reativar a sua sincronizao ou o seu backup no aplicativo para desktop.</string>
<!-- Warning message to display when sync has been paused due a low battery level -->
<string name="general_message_sync_paused_low_battery_level">A sincronizao foi pausada porque o nvel da bateria est muito baixo. Carregue a bateria para retomar a sincronizao.</string>
<!-- Title for File sharing feature on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_title_file_sharing">Compartilhamento de arquivos fcil e seguro</string>
<!-- Description about File sharing feature on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_description_file_sharing">Compartilhe arquivos grandes graas a uma ampla cota de transferncia e garanta a segurana com links protegidos por senha.</string>
<!-- Title for Backup and Rewind features on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_title_backup_rewind">Nunca mais perca dados</string>
<!-- Description about Backup and Rewind features on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_description_backup_rewind">Use a funo Retroceder para restaurar arquivos e pastas a qualquer data (at 180 dias), e assim proteger os seus dados contra acidentes e infraes.</string>
<!-- Title for MEGA VPN feature on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_title_vpn">MEGA VPN</string>
<!-- Description about MEGA VPN feature on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_description_vpn">Mantenha a sua navegao online privada usando a nossa VPN de alta velocidade.</string>
<!-- Title for chats and meetings feature on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_title_chat">Chamadas e reunies sem restries</string>
<!-- Description about chats and meetings feature on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_description_chat">Envie mensagens, faa chamadas de vdeo e reunies com privacidade total e um nmero ilimitado de participantes.</string>
<!-- Search drop down chips filter type file type -->
<string name="search_dropdown_chip_filter_type_file_type">Tipo</string>
<!-- Search drop down chips filter type file type images -->
<string name="search_dropdown_chip_filter_type_file_type_images">Imagens</string>
<!-- Search drop down chips filter type file type videos -->
<string name="search_dropdown_chip_filter_type_file_type_video">Vdeo</string>
<!-- Search drop down chips filter type file type audio -->
<string name="search_dropdown_chip_filter_type_file_type_audio">udio</string>
<!-- Search drop down chips filter type file type documents -->
<string name="search_dropdown_chip_filter_type_file_type_documents">Documentos</string>
<!-- Search drop down chips filter type file type pdf -->
<string name="search_dropdown_chip_filter_type_file_type_pdf">PDFs</string>
<!-- Search drop down chips filter type file type spreadsheets -->
<string name="search_dropdown_chip_filter_type_file_type_spreadsheets">Planilhas</string>
<!-- Search drop down chips filter type file type presentations -->
<string name="search_dropdown_chip_filter_type_file_type_presentations">Apresentaes</string>
<!-- Search drop down chips filter type file type folders -->
<string name="search_dropdown_chip_filter_type_file_type_folders">Pastas</string>
<!-- Search drop down chips filter type file type others -->
<string name="search_dropdown_chip_filter_type_file_type_others">Outros</string>
<!-- Search drop down chips filter type date added -->
<string name="search_dropdown_chip_filter_type_date_added">Data de incluso</string>
<!-- Search drop down chips filter type last modified -->
<string name="search_dropdown_chip_filter_type_last_modified">ltima alterao</string>
<!-- Search drop down chips filter type date modified today -->
<string name="search_dropdown_chip_filter_type_date_today">Hoje</string>
<!-- Search drop down chips filter type date modified last 7 days -->
<string name="search_dropdown_chip_filter_type_date_last_seven_days">ltimos 7 dias</string>
<!-- Search drop down chips filter type date modified last 30 days -->
<string name="search_dropdown_chip_filter_type_date_last_thirty_days">ltimos 30 dias</string>
<!-- Search drop down chips filter type date modified this year -->
<string name="search_dropdown_chip_filter_type_date_this_year">Este ano</string>
<!-- Search drop down chips filter type date modified last year -->
<string name="search_dropdown_chip_filter_type_date_last_year">ltimo ano</string>
<!-- Search drop down chips filter type date modified older -->
<string name="search_dropdown_chip_filter_type_date_older">Mais antigo</string>
<!-- All videos tab title of the video section -->
<string name="video_section_tab_title_all_videos">Vdeos</string>
<!-- Playlists tab title of the video section -->
<string name="video_section_tab_title_playlists">Listas de reproduo</string>
<!-- Location filter title of the video section -->
<string name="video_section_videos_location_filter_title">Localizao</string>
<!-- All locations option of the video section location filter -->
<string name="video_section_videos_location_option_all_locations">Todos os locais</string>
<!-- Cloud drive option of the video section location filter -->
<string name="video_section_videos_location_option_cloud_drive">Nuvem de arquivos</string>
<!-- Camera uploads option of the video section location filter -->
<string name="video_section_videos_location_option_camera_uploads">Uploads da cmera</string>
<!-- Shared items option of the video section location filter -->
<string name="video_section_videos_location_option_shared_items">Itens compartilhados</string>
<!-- Duration filter title of the video section -->
<string name="video_section_videos_duration_filter_title">Durao</string>
<!-- All Duration option of the video section duration filter -->
<string name="video_section_videos_duration_option_all_duration">Qualquer durao</string>
<!-- Less than 10 seconds option of the video section duration filter -->
<string name="video_section_videos_duration_option_less_than_10_seconds">Menos de 10 segundos</string>
<!-- Between 10 and 60 seconds option of the video section duration filter -->
<string name="video_section_videos_duration_option_between_10_and_60_seconds">Entre 10 e 60 segundos</string>
<!-- Between 1 and 4 minutes option of the video section duration filter -->
<string name="video_section_videos_duration_option_between_1_and_4_minutes">Entre 1 e 4 minutos</string>
<!-- Between 4 and 20 minutes option of the video section duration filter -->
<string name="video_section_videos_duration_option_between_4_and_20_minutes">Entre 4 e 20 minutos</string>
<!-- More than 20 minutes option of the video section duration filter -->
<string name="video_section_videos_duration_option_more_than_20_minutes">Mais de 20 minutos</string>
<!-- Create playlist dialog title of the video section playlists tab -->
<string name="video_section_playlists_create_playlist_dialog_title">Digite o nome da lista de reproduo</string>
<!-- Rename playlist dialog title of the video section playlists tab -->
<string name="video_section_playlists_rename_playlist_dialog_title">Renomear</string>
<!-- Error message when the playlist name already exists -->
<string name="video_section_playlists_error_message_playlist_name_exists">J existe uma lista de reproduo com este nome. Digite outro nome.</string>
<!-- Delete playlist dialog title of the video section playlists tab -->
<string name="video_section_playlists_delete_playlist_dialog_title">Deletar a lista de reproduo?</string>
<!-- Delete button title of the video section playlists tab delete playlist dialog -->
<string name="video_section_playlists_delete_playlist_dialog_delete_button">Deletar</string>
<!-- Text that indicates that theres no playlist to show. -->
<string name="video_section_playlists_empty_hint_playlist">No h listas de reproduo</string>
<!-- Delete option title of the video section playlist bottom sheet -->
<string name="video_section_playlist_bottom_sheet_option_title_delete">Deletar a lista de reproduo</string>
<!-- Remove videos dialog title of the video section playlist detail -->
<string name="video_section_playlist_detail_remove_videos_dialog_title">Voc quer eliminar da lista de reproduo?</string>
<!-- Remove button title of the video section playlist detail remove videos dialog -->
<string name=your_sha256_hash>Remover</string>
<!-- Play all button title of the video section playlist detail -->
<string name="video_section_playlist_detail_play_all_button">Reproduzir tudo</string>
<!-- Text that indicates that theres no videos in the video playlist detail to show. -->
<string name="video_section_playlist_detail_empty_hint_videos">No h vdeos</string>
<!-- Top bar title of the video section video selected page -->
<string name="video_section_video_selected_top_bar_title">Escolher arquivos</string>
<!-- Message when deleting the playlists of the video section playlists tab. %1$d will be replaced the number of deleted playlists -->
<plurals name="video_section_playlists_delete_playlists_message">
<item quantity="one">%1$d lista de reproduo foi deletada</item>
<item quantity="many">%1$d de listas de reproduo foram deletadas</item>
<item quantity="other">%1$d listas de reproduo foram deletadas</item>
</plurals>
<!-- Message when adding the videos to the video section playlist -->
<plurals name="video_section_playlist_detail_add_videos_message">
<item quantity="one">%1$d item foi adicionado a %2$s</item>
<item quantity="many">%1$d de itens foram adicionados a %2$s</item>
<item quantity="other">%1$d itens foram adicionados a %2$s</item>
</plurals>
<!-- Message when removing the videos to the video section playlist -->
<plurals name="video_section_playlist_detail_remove_videos_message">
<item quantity="one">%1$d item foi eliminado de %2$s</item>
<item quantity="many">%1$d de itens foram eliminados de %2$s</item>
<item quantity="other">%1$d itens foram eliminados de %2$s</item>
</plurals>
<!-- Text of the video section playlist detail video number -->
<plurals name="video_section_playlist_detail_video_number">
<item quantity="one">%1$d vdeo</item>
<item quantity="many">%1$d de vdeos</item>
<item quantity="other">%1$d vdeos</item>
</plurals>
<!-- Warning shown when the user clicks on a web link and there is no app available at the moment for opening it. -->
<string name="chat_click_link_in_message_intent_not_available">Parece que no h nenhum aplicativo que permita acessar este site</string>
<!-- Message when deleting a singular playlist of the video section playlists tab. %1$s will be replaced the name of deleted playlist -->
<string name="video_section_playlists_delete_playlists_message_singular">%1$s foi deletada</string>
<!-- The name of the Settings Camera Uploads Option, which decides whether or not the Device must be charged for Camera Uploads to start uploading content -->
<string name="settings_camera_uploads_upload_only_while_charging_option_name">Somente fazer upload quando estiver carregando</string>
<!-- Text for the header of the screen to add a new sync folder -->
<string name="sync_add_new_sync_folder_header_text">Adicionar pasta sincronizada:</string>
<!-- Size in gigabytes. It can be used for file/folder size or storage/transfer quota. The placeholder %1$s is for the size value, please adjust the position based on linguistics. -->
<string name="general_size_giga_byte">%1$s GB</string>
<!-- Name for Free account. DO NOT TRANSLATE! It'll only be used for Free account name. -->
<string name="general_free_plan_name">Grtis</string>
<!-- Description of Transfer quota for Free users. The string will be part of another string "[B]Transfer:[/B] [A]%1$s[/A]" (key: account_upgrade_account_pro_plan_info_transfer). Combined string will look like this "[B]Transfer:[/B] [A]Limited[/A]". -->
<string name="dialog_onboarding_transfer_quota_free_limited">Limitado</string>
<!-- Description of the price for Free account. The meaning: this type of account is for free. This string won't be used for name of Free account. -->
<string name="dialog_onboarding_free_account_price">Grtis</string>
<!-- Continue button on Onboarding dialog, the user will proceed with payment for chosen account. -->
<string name="dialog_onboarding_button_continue">Continuar</string>
<!-- Title of navigation bar on Onboarding dialog. -->
<string name="dialog_onboarding_app_bar_title">Escolha o seu plano do MEGA</string>
<!-- Header of the Info view field for what is the content of a device/folder -->
<string name="info_content">Contm</string>
<!-- Header of the Info view field for what is the total size of the content of a device/folder -->
<string name="info_total_size">Tamanho total</string>
<!-- Header of the Info view field for the date and time a folder was added -->
<string name="info_added">Upload</string>
<!-- String which indicates the number of files contained into a device/folder -->
<plurals name="info_num_files">
<item quantity="one">%1$d arquivo</item>
<item quantity="many">%1$d de arquivos</item>
<item quantity="other">%1$d arquivos</item>
</plurals>
<!-- String which indicates the number of folders contained into a device/folder -->
<plurals name="info_num_folders">
<item quantity="one">%1$d pasta</item>
<item quantity="many">%1$d de pastas</item>
<item quantity="other">%1$d pastas</item>
</plurals>
<!-- First part of string, which indicates the content of a device/folder is some folders and some files. The full string is '%1$d folders %2$d files'. The string was split in 2 for pluralization. Middle height point is to separate two fragments of text and it was not to be considered a punctuation mark. Please keep the spaces around middle height point. -->
<plurals name="info_num_folders_and_files">
<item quantity="one">%1$d pasta  </item>
<item quantity="many">%1$d de pastas  </item>
<item quantity="other">%1$d pastas  </item>
</plurals>
<!-- Text of button label or title of the screen to share only one or several links -->
<plurals name="label_share_links">
<item quantity="one">Compartilhar link</item>
<item quantity="many">Compartilhar links</item>
<item quantity="other">Compartilhar links</item>
</plurals>
<!-- Title of the dialog to ask the user to use the selected location as default location for next downloads-->
<string name="transfers_dialog_save_download_location_title">Fazer o download nesta localizao?</string>
<!-- Option to don't use the selected location as default location for next downloads-->
<string name="transfers_dialog_save_download_location_only_this_time_option">Somente esta vez</string>
<!-- Option to use the selected location as default location for next downloads-->
<string name="transfers_dialog_save_download_location_always_here_option">Sempre fazer o download aqui</string>
<!-- Option to don't use the selected location as default location for next downloads and don't ask again-->
<string name="transfers_dialog_save_download_location_always_ask_option">Sempre perguntar o destino</string>
<!-- Size unit in gigabytes. It can be used for file/folder size or storage/transfer quota as a standalone size unit to be added to the size number-->
<string name="general_giga_byte_standalone">GB</string>
<!-- Size unit in terabytes. It can be used for file/folder size or storage/transfer quota as a standalone size unit to be added to the size number-->
<string name="general_tera_byte_standalone">TB</string>
<!-- Description about Storage feature on Onboarding dialog (for user to choose account - Free or Pro). %1$s placeholder will be replaced with correct localised storage size (e.g. 400 or 2), and the %2$s placeholder will be replaced with correct localised storage unit (e.g. GB or TB), so combining both placeholders will show storage size+storage unit (e.g. 400 GB or 2 TB)-->
<string name="dialog_onboarding_feature_storage_description">Encontre a melhor opo para as suas necessidades de armazenamento a partir de %1$s %2$s .</string>
<!-- Title of the insufficient storage error dialog -->
<string name="sync_error_dialog_insufficient_storage_title">Espao de armazenamento insuficiente</string>
<!-- Body text of the insufficient storage error dialog -->
<string name="sync_error_dialog_insufficient_storage_body">O tamanho dessa pasta vai fazer que a sua conta no MEGA ultrapasse o limite de armazenamento. Para poder sincroniz-la, voc vai precisar liberar espao ou fazer o upgrade da sua conta.</string>
<!-- Confirm button text of the insufficient storage error dialog -->
<string name="sync_error_dialog_insufficient_storage_confirm_button">Veja os planos</string>
<!-- Cancel button text of the insufficient storage error dialog -->
<string name="sync_error_dialog_insufficient_storage_cancel_button">Agora no</string>
<!-- Hint text explaining that you can change the email and resend the create account link to the new email address. This appears on the confirmation email screen under the email address text input field. -->
<string name="account_confirm_email_misspelled_email_description">Se voc errou ao digitar o seu email, corrija e pressione [A]Reenviar[/A].</string>
<!-- Title of the insufficient storage error banner -->
<string name="sync_error_storage_over_quota_banner_title">A sincronizao foi pausada porque o seu plano do MEGA j no tem armazenamento disponvel</string>
<!-- Title of the insufficient storage error action -->
<string name="sync_error_storage_over_quota_banner_action">Upgrade</string>
<!-- The warning message shown when the User enables the Device Charging requirement in Settings Camera Uploads, enables Camera Uploads, begins uploading content and the Device is not charged -->
<string name="camera_uploads_phone_not_charging_message">O upload foi pausado porque o dispositivo no est carregando</string>
<!-- Label of the Device Status informing the user that Nothing is set up for the Current Device -->
<string name="device_center_list_view_item_status_nothing_setup">No h sincronizaes configuradas</string>
<!-- The title of the warning dialog shown to a suspended Pro Flexi Account User -->
<string name="account_pro_flexi_account_deactivated_dialog_title">Conta desativada</string>
<!-- The body of the warning dialog shown to a suspended Pro Flexi Account User -->
<string name="account_pro_flexi_account_deactivated_dialog_body">A sua conta Pro Flexi foi desativada porque o pagamento falhou ou porque voc cancelou a sua assinatura. J no ser possvel acessar os dados armazenados na sua conta. \nPara fazer o pagamento e assim reativar a sua assinatura, faa login no MEGA por meio de um navegador em um computador.</string>
<!-- Label for new low-tier plan Starter. Do not translate. Can be shown on My account screen to indicate current user's plan. -->
<string name="general_low_tier_plan_starter_label">Starter</string>
<!-- Label for new low-tier plan Basic. Do not translate. Can be shown on My account screen to indicate current user's plan. -->
<string name="general_low_tier_plan_basic_label">Basic</string>
<!-- Label for new low-tier plan Essential. Do not translate. Can be shown on My account screen to indicate current user's plan. -->
<string name="general_low_tier_plan_essential_label">Essential</string>
<!-- The Body Text of a Settings Camera Uploads Option that decides whether or not the Device must be charged for Camera Uploads to start uploading content -->
<string name="settings_camera_uploads_upload_only_while_charging_option_body">Os uploads permanecero pausados at voc comear a carregar o seu dispositivo, e vo continuar pausados se voc tiver menos de 20% de bateria.</string>
<!-- Title of the synced folder list empty state -->
<string name="device_center_sync_list_empty_state_title">No h sincronizaes configuradas</string>
<!-- Message of the synced folder list empty state -->
<string name="device_center_sync_list_empty_state_message">Sincronize uma pasta no seu dispositivo com uma pasta no MEGA.</string>
<!-- Label for the button or menu option to add a new sync -->
<string name="device_center_sync_add_new_syn_button_option">Adicionar uma nova sincronizao</string>
<!-- Text for the Sync solved issues chip -->
<string name="device_center_sync_solved_issues_chip_text">Problemas solucionados</string>
<!-- Warning message to indicate that cannot select a currently synced folder -->
<string name=your_sha256_hashed_message">No foi possvel sincronizar esta pasta. Para sincronizar, use os Uploads da cmera.</string>
<!-- Label for the file info information screen description field -->
<string name="file_info_information_description_label">Descrio</string>
<!-- Placeholder for the file info information screen description field -->
<string name="file_info_information_description_placeholder">Adicionar descrio</string>
<!-- Description added snack bar for the file info information screen-->
<string name="file_info_information_snackbar_description_added">Descrio adicionada</string>
<!-- Description updated snack bar for the file info information screen-->
<string name="file_info_information_snackbar_description_updated">Descrio atualizada</string>
<!-- Title to mention other features of Pro plans on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name="dialog_onboarding_feature_title_additional_features">Alm de acesso a estas fantsticas vantagens:</string>
<!-- Description to mention other features of Pro plans (e.g. Mega VPN, chats and meetings, Android Sync and no ads) on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name=your_sha256_hashds">• MEGA VPN \n•   Chamadas e reunies irrestritas \n•   Sincronizao automtica das pastas no seu dispositivo mvel \n•   Sem anncios</string>
<!-- Description to mention other features of Pro plans (e.g. Mega VPN, chats and meetings, Android Sync and no ads) on Onboarding dialog (for user to choose account - Free or Pro). -->
<string name=your_sha256_hasht_ads">• MEGA VPN \n•   Chamadas e reunies irrestritas \n•   Sincronizao automtica das pastas no seu dispositivo mvel</string>
<!-- Text for the Sync solved issues list empty state -->
<string name="device_center_sync_solved_issues_empty_state_text">No h problemas solucionados</string>
<!-- Title of first tour screen -->
<string name="cloud_drive_tour_first_title">Voc tem a chave</string>
<!-- Title of second tour screen -->
<string name="cloud_drive_tour_second_title">Chat criptografado</string>
<!-- Title of third tour screen -->
<string name="cloud_drive_tour_third_title">Crie a sua rede</string>
<!-- Title of fourth tour screen -->
<string name="cloud_drive_tour_fourth_title">As suas fotos na nuvem</string>
<!-- Title of fifth tour screen -->
<string name="cloud_drive_tour_fifth_title">Reunio MEGA</string>
<!-- First subtitle of the tour screen -->
<string name="cloud_drive_tour_first_subtitle">A segurana a razo da nossa existncia. Os seus arquivos esto protegidos por uma mquina de criptografia bem engrenada, na qual somente voc pode acess-los.</string>
<!-- Second subtitle of the tour screen -->
<string name="cloud_drive_tour_second_subtitle">Chat totalmente criptografado com chamadas de voz e vdeo, mensagens de grupo e compartilhamento de dados integrado com a sua Nuvem de arquivos.</string>
<!-- Third subtitle of the tour screen -->
<string name="cloud_drive_tour_third_subtitle">Adicione contatos, crie uma rede, colabore e faa chamadas de voz e vdeo sem sair do MEGA.</string>
<!-- Fourth subtitle of the tour screen -->
<string name="cloud_drive_tour_fourth_subtitle">Sabemos que os Uploads da cmera so um recurso essencial para qualquer dispositivo mvel. Crie a sua conta agora.</string>
<!-- Fifth subtitle of the tour screen -->
<string name="cloud_drive_tour_fifth_subtitle">Videoconferncia criptografada de conhecimento zero.</string>
<!-- Titles of the tour screen to onboard users with the MEGA application -->
<string-array name="cloud_drive_tour_titles">
<item>@string/cloud_drive_tour_first_title</item>
<item>@string/cloud_drive_tour_second_title</item>
<item>@string/cloud_drive_tour_third_title</item>
<item>@string/cloud_drive_tour_fourth_title</item>
<item>@string/cloud_drive_tour_fifth_title</item>
</string-array>
<!-- Subtitles of the tour screen to onboard users with the MEGA application -->
<string-array name="cloud_drive_tour_subtitles">
<item>@string/cloud_drive_tour_first_subtitle</item>
<item>@string/cloud_drive_tour_second_subtitle</item>
<item>@string/cloud_drive_tour_third_subtitle</item>
<item>@string/cloud_drive_tour_fourth_subtitle</item>
<item>@string/cloud_drive_tour_fifth_subtitle</item>
</string-array>
<!-- Title of the Raise to Hand Feature Introduction Tooltip -->
<string name="meetings_raised_hand_tooltip_title">[A]Novo recurso: Levantar a mo[/A]</string>
<!-- Message of the synced folder list empty state for free accounts -->
<string name="device_center_sync_list_empty_state_message_free_account">Mantenha a sua informao sincronizada e atualizada fazendo o upgrade a um dos nossos planos Pro.</string>
<!-- "Upgrade now" label for a button, menu entry, etc -->
<string name="general_upgrade_now_label">Fazer upgrade</string>
<!-- Title of the upgrade dialog displayed for free accounts when try to add a new sync -->
<string name="device_center_sync_upgrade_dialog_title">Fazer o upgrade a Pro</string>
<!-- Message of the upgrade dialog displayed for free accounts when try to add a new sync -->
<string name="device_center_sync_upgrade_dialog_message">Libere o poder de sincronizao do seu dispositivo mvel na nuvem com os nossos planos Pro.</string>
<!-- Confirm button text of the upgrade dialog displayed for free accounts when try to add a new sync -->
<string name="device_center_sync_upgrade_dialog_confirm_button">Upgrade</string>
<!-- Cancel button text of the upgrade dialog displayed for free accounts when try to add a new sync -->
<string name="device_center_sync_upgrade_dialog_cancel_button">Agora no</string>
<!-- Title of the Warning Dialog shown when the new Local Primary or Secondary Folder is same as, a parent folder or sub-folder of the opposite Local Folder -->
<string name=your_sha256_hashtitle">Conflito nas pastas de upload</string>
<!-- Body of the Warning Dialog shown when the new Local Primary or Secondary Folder is same as, a parent folder or sub-folder of the opposite Local Folder -->
<string name=your_sha256_hashbody">A pasta dos Uploads da cmera e a pasta de upload secundrio de mdia no podem estar relacionadas. Escolha uma pasta diferente.</string>
<!-- The confirmation Button text of the Warning Dialog shown when the new Local Primary or Secondary Folder is same as, a parent folder or sub-folder of the opposite Local Folder -->
<string name=your_sha256_hashconfirm_button">Entendi</string>
<!-- Warning message shown when trying to select a local folder but there isnt any app to do that. -->
<string name="general_no_picker_warning">Este dispositivo no tem um aplicativo para selecionar pastas</string>
<!-- Description of feature, which will be available for user, if they buy plan. This feature means user will be able to sync folders. Keep the bullet point, as this string is part of the bullet point list. -->
<string name="account_upgrade_account_description_feature_sync">• Sincronizao automtica das pastas no seu dispositivo mvel</string>
<!-- The error dialog text displayed when user opens Android Sync while having previously established syncs -->
<string name="sync_error_dialog_free_user">As suas sincronizaes foram pausadas: sincronizar um recurso dos planos Pro.</string>
<!-- The error dialog confirm action text -->
<string name="sync_error_dialog_free_user_confirm_action">OK</string>
<!-- The error banner text displayed when user opens Android Sync while having previously established syncs -->
<string name="sync_error_banner_free_user">A sincronizao foi pausada porque o seu plano Pro do MEGA foi cancelado. Faa upgrade para continuar sincronizando.</string>
<!-- Hidden items -->
<string name="hidden_items">Itens ocultos</string>
<!-- Label to indicate that is a Pro only feature -->
<string name="general_pro_only_label">Somente para usurios Pro</string>
<!-- Label for the file info information screen tags field -->
<string name="file_info_information_tags_label">Etiquetas</string>
<!-- label for tags page tag description -->
<string name="add_tags_label_tag_description">Use etiquetas para que seja mais fcil encontrar e organizar os seus dados. Voc pode etiquetar por ano, localizao, projeto ou assunto.</string>
<!-- label for tag text field in add tags page -->
<string name="add_tags_text_label_tag">Etiqueta</string>
<!-- label for add tags page add button -->
<string name="add_tags_button_label_add">Adicionar a etiqueta #%1$s</string>
<!-- label for add tags page existing tags label -->
<string name="add_tags_label_existing_tags">Etiquetas existentes</string>
<!-- error label for add tags page when special characters added -->
<string name="add_tags_error_special_characters">As etiquetas no podem conter espaos ou smbolos que no sejam alfanumricos. As etiquetas escritas com letras maisculas sero exibidas em minsculas.</string>
<!-- error label for add tags page when tag count is maximum -->
<string name="add_tags_error_max_tags">O limite de %1$d etiquetas</string>
<!-- error label for add tags page when tag character limit reached -->
<string name="add_tags_error_max_characters">As etiquetas devem ter um mximo de %1$d caracteres</string>
<!-- title label for tags page -->
<string name="add_tags_page_title_label">Etiquetas</string>
<!-- The placeholder for read only files/folders with no description in info screen-->
<string name="file_info_information_no_description_placeholder">Sem descrio</string>
<!-- Top bar title of the page that adds the video to the video playlist -->
<string name="video_to_playlist_top_bar_title">Adicionar lista de reproduo</string>
<!-- Text of the create new playlist in the page that adds the video to the video playlist -->
<string name="video_to_playlist_new_playlist_text">Nova lista de reproduo</string>
<!-- Text of the done button in the page that adds the video to the video playlist -->
<string name="video_to_playlist_done_button">OK</string>
<!-- Title shown when cancelling the current plan, informing the user of features they'll miss out on -->
<string name="account_cancel_account_screen_plan_miss_out_on_features">Voc perder estes recursos</string>
<!-- Message shown when cancelling the plan, indicating that access to features will continue until the plan expires -->
<string name="account_cancel_account_screen_plan_access_until_expiration">Voc vai continuar tendo acesso aos recursos at o seu plano do MEGA expirar, e ento a sua conta passar a ser gratuita.</string>
<!-- Warning message about current storage usage when cancelling the plan -->
<string name="account_cancel_account_screen_plan_current_storage_warning">No momento, voc est usando %1s de armazenamento, que voc corre o risco de perder.</string>
<!-- Column header in the feature comparison table -->
<string name="account_cancel_account_screen_plan_feature">Recurso</string>
<!-- Column header indicating features available with the free plan -->
<string name="account_cancel_account_screen_plan_free_plan">Grtis</string>
<!-- Row label for storage feature in the comparison table -->
<string name="account_cancel_account_screen_plan_storage">Armazenamento</string>
<!-- Storage amount available in the free plan. %1s represents the amount of storage in GB. -->
<string name="account_cancel_account_screen_plan_free_storage">%1s GB</string>
<!-- Row label for transfer feature in the comparison table -->
<string name="account_cancel_account_screen_plan_transfer">Transferncia</string>
<!-- Transfer limit in the free plan -->
<string name="account_cancel_account_screen_plan_free_limited_transfer">Limitada</string>
<!-- Feature indicating password protection for links, available in the pro plan -->
<string name="account_cancel_account_screen_plan_password_protected_links">Links protegidos por senha</string>
<!-- Feature indicating expiry dates for links, available in the pro plan -->
<string name="account_cancel_account_screen_plan_links_with_expiry_dates">Links com data de validade</string>
<!-- Feature indicating transfer sharing, available in the pro plan -->
<string name="account_cancel_account_screen_plan_transfer_sharing">Compartilhamento de transferncia</string>
<!-- Row label for rewind feature in the comparison table -->
<string name="account_cancel_account_screen_plan_rewind">Retroceder</string>
<!-- Rewind duration available in the free plan -->
<string name="account_cancel_account_screen_plan_rewind_free">At 30 dias (somente visualizao)</string>
<!-- Rewind duration available in the current plan. %1s represents the number of days. -->
<string name="account_cancel_account_screen_plan_rewind_current">At %1s dias</string>
<!-- Feature indicating MEGA VPN availability, available in the pro plan -->
<string name="account_cancel_account_screen_plan_mega_vpn">MEGA VPN</string>
<!-- Row label for call and meeting duration in the comparison table -->
<string name="account_cancel_account_screen_plan_call_meeting_duration">Durao de chamadas e reunies</string>
<!-- Call and meeting duration limit in the free plan -->
<string name="account_cancel_account_screen_plan_call_meeting_duration_free">At 1 hora</string>
<!-- Unlimited call and meeting duration available in the pro plan -->
<string name="cancel_account_plan_call_meeting_duration_pro">Ilimitada</string>
<!-- Row label for call and meeting participants in the comparison table -->
<string name="account_cancel_account_plan_call_meeting_participants">Participantes em reunies e chamadas</string>
<!-- Limit on call and meeting participants in the free plan -->
<string name="account_cancel_account_free_plan_call_meeting_participants">At 100</string>
<!-- Unlimited call and meeting participants available in the pro plan -->
<string name="account_cancel_account_pro_plan_call_meeting_participants">Ilimitado</string>
<!-- Button label to keep the current pro plan -->
<string name="account_cancel_account_plan_keep_pro_plan">Manter o plano %1s</string>
<!-- Button label to continue with the cancellation -->
<string name="account_cancel_account_plan_continue_cancellation">Continuar o cancelamento</string>
<!-- error label for add tags page when tag character limit reached -->
<string name="add_tags_error_maximum_characters">Mximo de 32 caracteres</string>
<!-- Hidden item -->
<string name="hidden_item">Item oculto</string>
<!-- Share hidden item link description -->
<string name="share_hidden_item_link_description">Este item est definido como oculto. Depois de compartilhar o item, qualquer pessoa com o link poder v-lo, mas ele ainda estar oculto na sua Nuvem de arquivos.</string>
<!-- Share hidden item links description -->
<string name="share_hidden_item_links_description">Um ou mais destes itens esto definidos como ocultos. Depois de compartilhar os itens ocultos, qualquer pessoa com o link poder v-los, mas os itens ainda estaro ocultos na sua Nuvem de arquivos.</string>
<!-- Title shown when cancelling the subscription -->
<string name="account_cancellation_instructions_cancel_subscription_title">Cancelar assinatura</string>
<!-- Title shown when reactivating the subscription -->
<string name="account_cancellation_instructions_reactivate_subscription_title">Reativar assinatura</string>
<!-- Title shown when cancelling the current plan in the instructions screen, informing the user about the account is not managed by google -->
<string name="account_cancellation_instructions_not_managed_by_google">A sua assinatura no gerenciada pelo Google</string>
<!-- Message shown when cancelling the current plan in the instructions screen, informing the user about how to cancel subscription -->
<string name="account_cancellation_instructions_message_apple_description">Voc assinou o MEGA por meio da Apple. Para cancelar a sua assinatura, voc precisa fazer o seguinte:</string>
<!-- Label for the subscription managed by App Store on Cancellation instructions screen-->
<string name="account_cancellation_instructions_ios_device">Em um dispositivo iOS</string>
<!-- Step 1: instruction step no.1 to Open the settings App to cancel the subscription from iOS device-->
<string name="account_cancellation_instructions_open_settings">1. Acesse o aplicativo das [A]Configuraes[/A].</string>
<!-- Step 2: instruction step no.2 to Tap on the name in the iOS device-->
<string name="account_cancellation_instructions_tap_on_name">2. Pressione o seu nome.</string>
<!-- Step 3: instruction step no.3 to Select subscriptions section in the iOS device-->
<string name="account_cancellation_instructions_select_subscriptions">3. Pressione [A]Assinaturas[/A].</string>
<!-- Step 4: instruction step no.4 to Select MEGA subscription in the iOS device -->
<string name="account_cancellation_instructions_select_mega_subscription">4. Selecione a sua assinatura do MEGA.</string>
<!-- Step 5: instruction step no.5 to Select Cancel subscription of the App inside subscription section in the iOS device-->
<string name=your_sha256_hashn">5. Pressione [A]Cancelar assinatura[/A].</string>
<!-- Message description to provide the user with more details on how to cancel your subscription on a computer or other device. -->
<string name="account_cancellation_instructions_detailed_instructions">[A]Veja aqui[/A] instrues detalhadas sobre como cancelar a sua assinatura em um computador ou outro dispositivo.</string>
<!-- Title shown when needing to cancel the subscription using a web browser -->
<string name=your_sha256_hashd">Voc precisa cancelar a sua assinatura usando um navegador</string>
<!-- Title shown when needing to reactivate the subscription using a web browser -->
<string name=your_sha256_hashd">Voc precisa reativar a sua assinatura usando um navegador</string>
<!-- Message shown when reactivating the current plan in the instructions screen, informing the user about how to reactivate the subscription -->
<string name=your_sha256_hashiption">Voc assinou o MEGA usando um navegador. Para reativar a sua assinatura, voc precisa fazer o seguinte:</string>
<!-- Description explaining why the subscription needs to be canceled using a web browser -->
<string name="account_cancellation_instructions_web_browser_description">Voc assinou o MEGA usando um navegador. Para cancelar a sua assinatura, voc precisa fazer o seguinte:</string>
<!-- Label for cancellation instructions on a computer -->
<string name="account_cancellation_instructions_on_computer">Usando um computador</string>
<!-- Step 1: instruction step no.1 to Visit the MEGA website -->
<string name="account_cancellation_instructions_visit_website">1. Acesse [A]www.mega.nz[/A] em um navegador.</string>
<!-- Step 2: instruction step no.2 to Log in to the MEGA account -->
<string name="account_cancellation_instructions_login_account">2. Faa login na sua conta do MEGA.</string>
<!-- Step 3: instruction step no.3 to Click the main menu of the MEGA account on MEGA website-->
<string name="account_cancellation_instructions_click_main_menu">3. Acesse o menu principal</string>
<!-- Step 4: instruction step no.4 to Click Settings of the MEGA account on MEGA website -->
<string name="account_cancellation_instructions_click_settings">4. Clique em [A]Configuraes.[/A]</string>
<!-- Step 5: instruction step no.5 to Click on Plan section of the MEGA account on MEGA website-->
<string name="account_cancellation_instructions_click_plan">5. Selecione [A]Plano[/A].</string>
<!-- Step 6: instruction step no.6 Click Cancel subscription of the MEGA account on MEGA website -->
<string name="account_cancellation_instructions_click_cancel_subscription">6. Clique em [A]Cancelar assinatura[/A].</string>
<!-- Alternative Step 6: instruction step no.5 Click Reactivate subscription when user's subscription has expired of the MEGA account on MEGA website-->
<string name="account_cancellation_instructions_click_reactivate_subscription">6. Clique em [A]Reativar assinatura[/A].</string>
<!-- Label for cancellation instructions on a mobile device -->
<string name="account_cancellation_instructions_on_mobile_device">Usando um dispositivo mvel</string>
<!-- Step 1: instruction step no.1 to visit the MEGA website on the mobile device-->
<string name="account_cancellation_instructions_mobile_visit_website">1. Acesse [A]www.mega.nz[/A] no navegador.</string>
<!-- Step 2: instruction step no.2 to Log in to MEGA account on the mobile device from the browser-->
<string name="account_cancellation_instructions_mobile_login_account">2. Faa login na sua conta do MEGA.</string>
<!-- Step 3: instruction step no.3 Tap on the user avatar on the MEGA website from the mobile device-->
<string name="account_cancellation_instructions_tap_avatar">3. Pressione o seu avatar.</string>
<!-- Step 4: instruction step no.4 Tap Cancel subscription on the account from the MEGA website from the mobile device-->
<string name="account_cancellation_instructions_tap_cancel_subscription">4. Pressione [A]Cancelar assinatura[/A].</string>
<!-- Text to show in the Android Sync feature for a No Network State when there is no network connectivity -->
<string name="sync_no_network_state">No h conexo internet</string>
<!-- Menu option to create a new folder in the file manager -->
<string name="general_menu_create_new_folder">Criar nova pasta</string>
<!-- Create new folder dialog title -->
<string name="create_new_folder_dialog_title">Nova pasta</string>
<!-- Create new folder dialog hint text (input field description) -->
<string name="create_new_folder_dialog_hint_text">Nome da pasta</string>
<!-- Create new folder dialog confirm button -->
<string name="create_new_folder_dialog_confirm_button">Criar</string>
<!-- Dialog cancel option -->
<string name="general_dialog_cancel_button">Cancelar</string>
<!-- Create new folder dialog error message shown when the user tries to an empty folder name -->
<string name="create_new_folder_dialog_error_message_empty_folder_name">Digite o nome da pasta</string>
<!-- Create new folder dialog error message shown when folder cannot be created because there is already one with the same name -->
<string name="create_new_folder_dialog_error_existing_folder">J existe uma pasta com o mesmo nome</string>
<!-- Error message when the user writes a character not allowed for naming a file or folder -->
<string name="general_invalid_characters_defined">Os seguintes caracteres no so permitidos: %1$s</string>
<!-- Sync settings section title-->
<string name="settings_section_sync">Sincronizar</string>
<!-- Transfers scanning folders dialog title when the app is creating the needed folders -->
<string name="transfers_scanning_folders_dialog_creating_folders_title">Criando pastas…</string>
<!-- Transfers scanning folders dialog title when the app is starting transfers but some files still needs to be added to the queue -->
<string name="transfers_scanning_folders_dialog_starting_transfers_title">Iniciando transferncias…</string>
<!-- Transfers scanning folders dialog info to explain why the app shouldn't be closed -->
<string name="transfers_scanning_folders_dialog_cancel_info_subtitle">No feche o aplicativo. Ao fechar, as transferncias que ainda no estiverem na lista sero perdidas.</string>
<!-- Transfers scanning folders dialog sub-title when the app is scanning a single folder-->
<plurals name="transfers_scanning_folders_dialog_scanning_folder_subtitle">
<item quantity="one">1 pasta e %1$d arquivo encontrados.</item>
<item quantity="many">1 pasta e %1$d de arquivos encontrados.</item>
<item quantity="other">1 pasta e %1$d arquivos encontrados.</item>
</plurals>
<!-- Transfers scanning folders dialog sub-title when the app is scanning multiple folders. This is the folders pluralization part to implement double pluralization in your_sha256_hashtitle. Example: "134 folders". Example with double pluralization in your_sha256_hashtitle: "Found 134 folders and 5689 files."-->
<plurals name="transfers_scanning_folders_dialog_scanning_folders_subtitle">
<item quantity="one">%1$d pasta</item>
<item quantity="many">%1$d de pastas</item>
<item quantity="other">%1$d pastas</item>
</plurals>
<!-- Transfers scanning folders dialog sub-title when the app is creating the folders. This message will inform how many folders are already created together with the total amount of folders that will be created. Example: "1/134 folder" or "48/134 folders" -->
<plurals name="transfers_scanning_folders_dialog_creating_folders_subtitle">
<item quantity="one">%1$d/%2$d pasta</item>
<item quantity="many">%1$d/%2$d de pastas</item>
<item quantity="other">%1$d/%2$d pastas</item>
</plurals>
<!-- Title of the clear debris item displayed in the sync settings menu -->
<string name="settings_sync_clear_debris_item_title">Deletar .debris (cache local)</string>
<!-- Title of the dialog shown when user clicks to clear debris from settings menu -->
<string name="settings_sync_clear_debris_dialog_title">Deletar debris?</string>
<!-- Body of the dialog shown when user clicks to clear debris from settings menu -->
<string name="settings_sync_clear_debris_dialog_body">Os backups das verses anteriores dos seus arquivos sincronizados sero permanentemente excludos do seu dispositivo. \n\nVerifique a pasta .debris no seu dispositivo local para ver se voc precisa restaurar alguma coisa.</string>
<!-- Cancel button of the dialog shown when user clicks to clear debris from settings menu -->
<string name="settings_sync_clear_debris_dialog_cancel">Cancelar</string>
<!-- Continue button of the dialog shown when user clicks to clear debris from settings menu -->
<string name="settings_sync_clear_debris_dialog_continue">Continuar</string>
<!-- Snackbar message shown when user clears debris from settings menu -->
<string name="settings_sync_debris_cleared_message">O contedo da pasta .debris foi deletado</string>
<!-- Transfers scanning folders dialog sub-title when the app is scanning multiple folders. This message will inform how many files and folders were found. Example: "Found 134 folders and 5689 files." As it has double pluralization, folders will be pluralized in another string resource: transfers_scanning_folders_dialog_scanning_folders_subtitle -->
<plurals name=your_sha256_hashtitle">
<item quantity="one">Found %1$s and %2$d file.</item>
<item quantity="other">Found %1$s and %2$d files.</item>
</plurals>
<!-- Label for the file info information screen no tags label -->
<string name="file_info_information_no_tags_label">No h etiquetas</string>
<!-- Transfers scanning folders dialog title to inform that the transfers are being cancelled -->
<string name="transfers_scanning_folders_dialog_cancel_cancelling_title">Cancelando transferncias…</string>
<!-- error warning message for report issue when not enough characters are typed and user tries to send report-->
<string name="report_issue_error_minimum_characters">As perguntas devem ter pelo menos 10 caracteres</string>
<!-- placeholder message for report issue-->
<string name="report_issue_description_placeholder_message">Descreva o problema usando um mnimo de 10 caracteres</string>
</resources>
``` | /content/code_sandbox/shared/resources/src/main/res/values-pt/strings_shared.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 13,739 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{EE61B7EF-EC45-4165-8B59-FD5B8D7A9FA3}</ProjectGuid>
<RootNamespace>cmp_clang_ttp_passing2</RootNamespace>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|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|Win32'" 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>
<_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../bin/debug/\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">../../../../bin/obj/$(ProjectName)/debug/\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../bin/release/\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">../../../../bin/obj/$(ProjectName)/release/\</IntDir>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>../../../../;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MinimalRebuild>true</MinimalRebuild>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
</ClCompile>
<Link>
<OutputFile>../../../../bin/debug/$(ProjectName).exe</OutputFile>
<AdditionalLibraryDirectories>../../../../lib; ../../../../stage/lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<AdditionalIncludeDirectories>../../../../;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level4</WarningLevel>
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
</ClCompile>
<Link>
<OutputFile>../../../../bin/release/$(ProjectName).exe</OutputFile>
<AdditionalLibraryDirectories>../../../../lib; ../../../../stage/lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<GenerateDebugInformation>true</GenerateDebugInformation>
<SubSystem>Console</SubSystem>
<OptimizeReferences>true</OptimizeReferences>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<RandomizedBaseAddress>false</RandomizedBaseAddress>
<DataExecutionPrevention>
</DataExecutionPrevention>
<TargetMachine>MachineX86</TargetMachine>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="cmp_clang_ttp_passing2.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\test_interval_map_shared.hpp" />
<ClInclude Include="..\test_type_lists.hpp" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
``` | /content/code_sandbox/deps/boost_1_66_0/libs/icl/test/cmp_clang_ttp_passing2_/vc10_cmp_clang_ttp_passing2.vcxproj | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 1,338 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M2,2h20v20h-20z"/>
<path
android:pathData="M12,22C17.523,22 22,17.523 22,12C22,6.477 17.523,2 12,2C6.477,2 2,6.477 2,12C2,17.523 6.477,22 12,22ZM18.538,12.863C18.667,12.894 18.779,12.973 18.852,13.085C18.924,13.197 18.951,13.332 18.927,13.462C18.581,14.908 17.796,16.21 16.68,17.192C15.564,18.174 14.173,18.788 12.696,18.949C12.446,18.974 12.196,18.985 11.946,18.985C10.616,18.973 9.316,18.583 8.198,17.859C7.081,17.136 6.193,16.109 5.637,14.9C5.624,14.885 5.608,14.873 5.589,14.866C5.57,14.858 5.55,14.856 5.53,14.858C5.51,14.86 5.491,14.868 5.474,14.879C5.458,14.89 5.444,14.905 5.434,14.922L5.121,15.57C5.061,15.694 4.954,15.789 4.823,15.835C4.693,15.881 4.55,15.873 4.426,15.813C4.301,15.752 4.206,15.646 4.161,15.515C4.116,15.384 4.123,15.242 4.183,15.118L5.158,13.106C5.216,12.987 5.318,12.894 5.443,12.848C5.567,12.802 5.704,12.804 5.827,12.856L7.902,13.731C7.965,13.757 8.022,13.796 8.07,13.844C8.118,13.892 8.156,13.95 8.182,14.014C8.208,14.077 8.222,14.144 8.221,14.213C8.221,14.282 8.208,14.349 8.181,14.412C8.155,14.475 8.116,14.532 8.068,14.58C8.02,14.628 7.963,14.666 7.899,14.693C7.836,14.718 7.768,14.732 7.699,14.731C7.631,14.731 7.564,14.717 7.501,14.691L6.687,14.35C6.584,14.339 6.543,14.413 6.562,14.464C7.077,15.604 7.939,16.553 9.025,17.176C10.111,17.798 11.366,18.061 12.611,17.929C13.873,17.804 15.063,17.286 16.016,16.449C16.968,15.613 17.634,14.498 17.921,13.262C17.935,13.196 17.962,13.132 18.001,13.076C18.039,13.02 18.089,12.972 18.146,12.935C18.204,12.898 18.267,12.873 18.335,12.86C18.403,12.847 18.471,12.849 18.538,12.863L18.538,12.863ZM19.121,8.132C19.251,8.086 19.394,8.094 19.519,8.154C19.582,8.183 19.639,8.224 19.686,8.276C19.733,8.328 19.769,8.388 19.792,8.454C19.815,8.519 19.824,8.589 19.82,8.659C19.816,8.728 19.798,8.796 19.766,8.859L18.792,10.87C18.734,10.989 18.632,11.081 18.508,11.128C18.384,11.175 18.246,11.172 18.124,11.12L16.048,10.245C15.984,10.219 15.927,10.18 15.879,10.131C15.831,10.083 15.793,10.025 15.767,9.962C15.742,9.899 15.729,9.831 15.729,9.762C15.729,9.694 15.743,9.626 15.769,9.564C15.796,9.501 15.834,9.444 15.883,9.396C15.932,9.347 15.989,9.309 16.052,9.284C16.116,9.258 16.184,9.245 16.252,9.245C16.32,9.245 16.388,9.259 16.451,9.286L17.264,9.626C17.366,9.637 17.408,9.563 17.389,9.512C16.873,8.373 16.011,7.425 14.925,6.804C13.839,6.182 12.585,5.92 11.341,6.053C10.079,6.178 8.888,6.696 7.936,7.532C6.983,8.369 6.317,9.484 6.031,10.719C6.002,10.854 5.921,10.972 5.806,11.048C5.69,11.124 5.549,11.15 5.414,11.121C5.279,11.092 5.161,11.012 5.085,10.896C5.009,10.781 4.983,10.639 5.012,10.504C5.36,9.06 6.146,7.759 7.262,6.778C8.379,5.796 9.77,5.184 11.248,5.024C11.498,4.999 11.748,4.988 11.998,4.988C13.328,4.999 14.627,5.389 15.744,6.111C16.861,6.832 17.75,7.858 18.306,9.067C18.319,9.083 18.336,9.094 18.355,9.102C18.374,9.109 18.394,9.112 18.414,9.11C18.434,9.108 18.454,9.101 18.471,9.089C18.487,9.078 18.501,9.063 18.511,9.045L18.824,8.398C18.885,8.274 18.992,8.179 19.122,8.133L19.121,8.132Z"
android:fillColor="#151B2C"/>
</group>
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_generator_filled.xml | xml | 2016-04-30T16:43:17 | 2024-08-16T19:45:08 | android | bitwarden/android | 6,085 | 1,896 |
```xml
export function platformMappingHandler(value) {
const formattedString = value
.substring(value?.lastIndexOf('{') + 1, value?.lastIndexOf('}') - 1)
.replace(/ /g, '')
.replace(/\r\n/g, '');
const platforms = formattedString.split(',');
const platformTypes = { ios: '', android: '', web: '' };
platforms.map((item) => {
if (item !== '') {
const [platform, type] = item.split(':');
if (platform !== 'default') {
platformTypes[platform] = type;
} else {
Object.keys(platformTypes).map((key) => {
if (!platformTypes[key]) {
platformTypes[key] = type;
}
});
}
}
});
const defaultValue = Object.keys(platformTypes)
.map((key) => {
return `${platformTypes[key]}(${key})`;
})
.join(',');
return defaultValue;
}
``` | /content/code_sandbox/scripts/docgen/src/utils/platformMappingHandler.ts | xml | 2016-09-08T14:21:41 | 2024-08-16T10:11:29 | react-native-elements | react-native-elements/react-native-elements | 24,875 | 208 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="action_cancel"></string>
<string name="action_start"></string>
<string name="action_stop"></string>
<string name="notification_pending_text"></string>
<string name="notification_started_text"></string>
<string name="notification_completed_text"></string>
<string name="notification_failed_text"></string>
<string name="notification_paused_text"></string>
</resources>
``` | /content/code_sandbox/rxdownload4-notification/src/main/res/values-zh/strings.xml | xml | 2016-10-28T04:13:42 | 2024-08-02T07:46:08 | RxDownload | ssseasonnn/RxDownload | 4,135 | 107 |
```xml
export * from "./Base64ConversionModule";
``` | /content/code_sandbox/src/main/Extensions/Base64Conversion/index.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 10 |
```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 erfc = require( './index' );
// TESTS //
// The function returns a number...
{
erfc( 8 ); // $ExpectType number
}
// The compiler throws an error if the function is provided a value other than a number...
{
erfc( true ); // $ExpectError
erfc( false ); // $ExpectError
erfc( null ); // $ExpectError
erfc( undefined ); // $ExpectError
erfc( '5' ); // $ExpectError
erfc( [] ); // $ExpectError
erfc( {} ); // $ExpectError
erfc( ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the function is provided insufficient arguments...
{
erfc(); // $ExpectError
}
``` | /content/code_sandbox/lib/node_modules/@stdlib/math/base/special/erfc/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 228 |
```xml
import * as React from 'react';
import { Shadow } from './ShadowHelper';
import { VerticalStackBasicExample } from '../Stack/Stack.Vertical.Basic.Example';
export const ShadowDOMStackExample: React.FunctionComponent = () => {
return (
<Shadow>
<VerticalStackBasicExample />
</Shadow>
);
};
``` | /content/code_sandbox/packages/react-examples/src/react/ShadowDOM/ShadowDOM.Stack.Example.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 70 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<ClInclude Include="..\..\test\plus_qq_test.cpp">
<Filter>qvm\test</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Filter Include="qvm">
<UniqueIdentifier>{4B7B1E03-2AB4-05B2-07B8-461405664131}</UniqueIdentifier>
</Filter>
<Filter Include="qvm\test">
<UniqueIdentifier>{25C160AD-24C3-2DDC-36B0-034B2DE96BB2}</UniqueIdentifier>
</Filter>
</ItemGroup>
</Project>
``` | /content/code_sandbox/deps/boost_1_66_0/libs/qvm/bld/test/plus_qq_test.vcxproj.filters | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 176 |
```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.
-->
<LinearLayout xmlns:android="path_to_url"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="?android:actionBarSize"
android:minHeight="?android:actionBarSize"
android:id="@+id/ab_header">
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/ab_header.xml | xml | 2016-07-08T03:18:40 | 2024-08-14T02:54:51 | talon-for-twitter-android | klinker24/talon-for-twitter-android | 1,189 | 114 |
```xml
<TS language="ru" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation> </translation>
</message>
<message>
<source>Create a new address</source>
<translation> </translation>
</message>
<message>
<source>&New</source>
<translation>&</translation>
</message>
<message>
<source>Copy the currently selected address to the system clipboard</source>
<translation> </translation>
</message>
<message>
<source>&Copy</source>
<translation>&</translation>
</message>
<message>
<source>C&lose</source>
<translation>&</translation>
</message>
<message>
<source>Delete the currently selected address from the list</source>
<translation> </translation>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation> </translation>
</message>
<message>
<source>&Export</source>
<translation>&</translation>
</message>
<message>
<source>&Delete</source>
<translation>&</translation>
</message>
<message>
<source>Choose the address to send coins to</source>
<translation> </translation>
</message>
<message>
<source>Choose the address to receive coins with</source>
<translation> </translation>
</message>
<message>
<source>C&hoose</source>
<translation>&</translation>
</message>
<message>
<source>Sending addresses</source>
<translation> </translation>
</message>
<message>
<source>Receiving addresses</source>
<translation> </translation>
</message>
<message>
<source>These are your VERGE addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation> VERGE . .</translation>
</message>
<message>
<source>These are your VERGE addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source>
<translation> VERGE . .</translation>
</message>
<message>
<source>&Copy Address</source>
<translation> &</translation>
</message>
<message>
<source>Copy &Label</source>
<translation> &</translation>
</message>
<message>
<source>&Edit</source>
<translation>&</translation>
</message>
<message>
<source>Export Address List</source>
<translation> </translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>, (*.csv)</translation>
</message>
<message>
<source>Exporting Failed</source>
<translation> </translation>
</message>
<message>
<source>There was an error trying to save the address list to %1. Please try again.</source>
<translation> %1. , .</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<source>Label</source>
<translation></translation>
</message>
<message>
<source>Address</source>
<translation></translation>
</message>
<message>
<source>(no label)</source>
<translation>( )</translation>
</message>
</context>
<context>
<name>AskPasswordDialog</name>
<message>
<source>Password Dialog</source>
<translation> </translation>
</message>
<message>
<source>Enter password</source>
<translation> </translation>
</message>
<message>
<source>New password</source>
<translation> </translation>
</message>
<message>
<source>Repeat new password</source>
<translation> </translation>
</message>
<message>
<source>Show password</source>
<translation> </translation>
</message>
<message>
<source>Enter the new password to the wallet.<br/>Please use a password of <b>ten or more random characters</b>, or <b>eight or more words</b>.</source>
<translation> .<br/> , <b> </b>, <b> </b>.</translation>
</message>
<message>
<source>Encrypt wallet</source>
<translation> </translation>
</message>
<message>
<source>This operation needs your wallet password to unlock the wallet.</source>
<translation> .</translation>
</message>
<message>
<source>Unlock wallet</source>
<translation> </translation>
</message>
<message>
<source>This operation needs your wallet password to decrypt the wallet.</source>
<translation> .</translation>
</message>
<message>
<source>Decrypt wallet</source>
<translation> </translation>
</message>
<message>
<source>Change password</source>
<translation> </translation>
</message>
<message>
<source>Enter the old password and new password to the wallet.</source>
<translation> .</translation>
</message>
<message>
<source>Confirm wallet encryption</source>
<translation> </translation>
</message>
<message>
<source>Warning: If you encrypt your wallet and lose your password, you will <b>LOSE ALL OF YOUR VERGE</b>!</source>
<translation>: , <b> </b>!</translation>
</message>
<message>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation> , ?</translation>
</message>
<message>
<source>Wallet encrypted</source>
<translation> </translation>
</message>
<message>
<source>%1 will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your VERGE from being stolen by malware infecting your computer.</source>
<translation> %1 . , .</translation>
</message>
<message>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>: . , .</translation>
</message>
<message>
<source>Wallet encryption failed</source>
<translation> </translation>
</message>
<message>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation> - . .</translation>
</message>
<message>
<source>The supplied passwords do not match.</source>
<translation> .</translation>
</message>
<message>
<source>Wallet unlock failed</source>
<translation> </translation>
</message>
<message>
<source>The password entered for the wallet decryption was incorrect.</source>
<translation> .</translation>
</message>
<message>
<source>Wallet decryption failed</source>
<translation> </translation>
</message>
<message>
<source>Wallet password was successfully changed.</source>
<translation> .</translation>
</message>
<message>
<source>Warning: The Caps Lock key is on!</source>
<translation>: Caps Lock !</translation>
</message>
</context>
<context>
<name>BanTableModel</name>
<message>
<source>IP/Netmask</source>
<translation>IP/</translation>
</message>
<message>
<source>Banned Until</source>
<translation> </translation>
</message>
</context>
<context>
<name>VERGEGUI</name>
<message>
<source>Sign &message...</source>
<translation>& ...</translation>
</message>
<message>
<source>Synchronizing with network...</source>
<translation> ...</translation>
</message>
<message>
<source>&Overview</source>
<translation>&</translation>
</message>
<message>
<source>Node</source>
<translation></translation>
</message>
<message>
<source>Show general overview of wallet</source>
<translation> </translation>
</message>
<message>
<source>&Transactions</source>
<translation>&</translation>
</message>
<message>
<source>Browse transaction history</source>
<translation> </translation>
</message>
<message>
<source>E&xit</source>
<translation>&</translation>
</message>
<message>
<source>Quit application</source>
<translation> </translation>
</message>
<message>
<source>&About %1</source>
<translation>& %1</translation>
</message>
<message>
<source>Show information about %1</source>
<translation> %1</translation>
</message>
<message>
<source>About &Qt</source>
<translation> &Qt</translation>
</message>
<message>
<source>Show information about Qt</source>
<translation> Qt</translation>
</message>
<message>
<source>&Options...</source>
<translation>&</translation>
</message>
<message>
<source>Modify configuration options for %1</source>
<translation> %1</translation>
</message>
<message>
<source>&Encrypt Wallet...</source>
<translation>& ...</translation>
</message>
<message>
<source>&Backup Wallet...</source>
<translation>& ...</translation>
</message>
<message>
<source>&Change Password...</source>
<translation>& ...</translation>
</message>
<message>
<source>&Sending addresses...</source>
<translation>& ...</translation>
</message>
<message>
<source>&Receiving addresses...</source>
<translation> &...</translation>
</message>
<message>
<source>Open &URI...</source>
<translation> &URI...</translation>
</message>
<message>
<source>Click to disable network activity.</source>
<translation>, .</translation>
</message>
<message>
<source>Network activity disabled.</source>
<translation> .</translation>
</message>
<message>
<source>Click to enable network activity again.</source>
<translation>, .</translation>
</message>
<message>
<source>Syncing Headers (%1%)...</source>
<translation> (%1%)...</translation>
</message>
<message>
<source>Reindexing blocks on disk...</source>
<translation> ...</translation>
</message>
<message>
<source>Send coins to a VERGE address</source>
<translation> VERGE</translation>
</message>
<message>
<source>Backup wallet to another location</source>
<translation> </translation>
</message>
<message>
<source>Change the password used for wallet encryption</source>
<translation> </translation>
</message>
<message>
<source>&Debug window</source>
<translation>& </translation>
</message>
<message>
<source>Open debugging and diagnostic console</source>
<translation> </translation>
</message>
<message>
<source>&Verify message...</source>
<translation>& ...</translation>
</message>
<message>
<source>VERGE</source>
<translation>VERGE</translation>
</message>
<message>
<source>Wallet</source>
<translation></translation>
</message>
<message>
<source>&Send</source>
<translation>&</translation>
</message>
<message>
<source>&Receive</source>
<translation>&</translation>
</message>
<message>
<source>&Show / Hide</source>
<translation>& / </translation>
</message>
<message>
<source>Show or hide the main Window</source>
<translation> </translation>
</message>
<message>
<source>Encrypt the private keys that belong to your wallet</source>
<translation> , </translation>
</message>
<message>
<source>Sign messages with your VERGE addresses to prove you own them</source>
<translation> VERGE, , </translation>
</message>
<message>
<source>Verify messages to ensure they were signed with specified VERGE addresses</source>
<translation> , , VERGE</translation>
</message>
<message>
<source>&File</source>
<translation>&</translation>
</message>
<message>
<source>&Settings</source>
<translation>&</translation>
</message>
<message>
<source>&Help</source>
<translation>&</translation>
</message>
<message>
<source>Tabs toolbar</source>
<translation> </translation>
</message>
<message>
<source>Request payments (generates QR codes and verge: URIs)</source>
<translation> ( QR- verge: )</translation>
</message>
<message>
<source>Show the list of used sending addresses and labels</source>
<translation> </translation>
</message>
<message>
<source>Show the list of used receiving addresses and labels</source>
<translation> </translation>
</message>
<message>
<source>Open a verge: URI or payment request</source>
<translation> verge: URI </translation>
</message>
<message>
<source>&Command-line options</source>
<translation>& </translation>
</message>
<message numerus="yes">
<source>%n active connection(s) to VERGE network</source>
<translation><numerusform>%n VERGE</numerusform><numerusform>%n VERGE</numerusform><numerusform>%n VERGE</numerusform><numerusform>%n VERGE</numerusform></translation>
</message>
<message>
<source>Indexing blocks on disk...</source>
<translation> ...</translation>
</message>
<message>
<source>Processing blocks on disk...</source>
<translation> ...</translation>
</message>
<message numerus="yes">
<source>Processed %n block(s) of transaction history.</source>
<translation><numerusform> %n .</numerusform><numerusform> %n .</numerusform><numerusform> %n .</numerusform><numerusform> %n .</numerusform></translation>
</message>
<message>
<source>%1 behind</source>
<translation>%1 </translation>
</message>
<message>
<source>Last received block was generated %1 ago.</source>
<translation> %1 .</translation>
</message>
<message>
<source>Transactions after this will not yet be visible.</source>
<translation> .</translation>
</message>
<message>
<source>Error</source>
<translation></translation>
</message>
<message>
<source>Warning</source>
<translation></translation>
</message>
<message>
<source>Information</source>
<translation></translation>
</message>
<message>
<source>Up to date</source>
<translation></translation>
</message>
<message>
<source>Show the %1 help message to get a list with possible VERGE command-line options</source>
<translation> %1, </translation>
</message>
<message>
<source>%1 client</source>
<translation>%1 </translation>
</message>
<message>
<source>Connecting to peers...</source>
<translation> ...</translation>
</message>
<message>
<source>Catching up...</source>
<translation>...</translation>
</message>
<message>
<source>Date: %1
</source>
<translation>: %1
</translation>
</message>
<message>
<source>Amount: %1
</source>
<translation>: %1
</translation>
</message>
<message>
<source>Type: %1
</source>
<translation>: %1
</translation>
</message>
<message>
<source>Label: %1
</source>
<translation>: %1
</translation>
</message>
<message>
<source>Address: %1
</source>
<translation>: %1
</translation>
</message>
<message>
<source>Sent transaction</source>
<translation> </translation>
</message>
<message>
<source>Incoming transaction</source>
<translation> </translation>
</message>
<message>
<source>HD key generation is <b>enabled</b></source>
<translation> HD- <b></b></translation>
</message>
<message>
<source>HD key generation is <b>disabled</b></source>
<translation> HD- <b></b></translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation> <b></b> <b></b></translation>
</message>
<message>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation> <b></b> <b></b></translation>
</message>
<message>
<source>A fatal error occurred. VERGE can no longer continue safely and will quit.</source>
<translation> . VERGE .</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<source>Coin Selection</source>
<translation> </translation>
</message>
<message>
<source>Quantity:</source>
<translation>:</translation>
</message>
<message>
<source>Bytes:</source>
<translation>:</translation>
</message>
<message>
<source>Amount:</source>
<translation>:</translation>
</message>
<message>
<source>Fee:</source>
<translation>:</translation>
</message>
<message>
<source>Dust:</source>
<translation>:</translation>
</message>
<message>
<source>After Fee:</source>
<translation> :</translation>
</message>
<message>
<source>Change:</source>
<translation>:</translation>
</message>
<message>
<source>(un)select all</source>
<translation> </translation>
</message>
<message>
<source>Tree mode</source>
<translation> </translation>
</message>
<message>
<source>List mode</source>
<translation> </translation>
</message>
<message>
<source>Amount</source>
<translation></translation>
</message>
<message>
<source>Received with label</source>
<translation> </translation>
</message>
<message>
<source>Received with address</source>
<translation> </translation>
</message>
<message>
<source>Date</source>
<translation></translation>
</message>
<message>
<source>Confirmations</source>
<translation></translation>
</message>
<message>
<source>Confirmed</source>
<translation></translation>
</message>
<message>
<source>Copy address</source>
<translation> </translation>
</message>
<message>
<source>Copy label</source>
<translation> </translation>
</message>
<message>
<source>Copy amount</source>
<translation> </translation>
</message>
<message>
<source>Copy transaction ID</source>
<translation> ID </translation>
</message>
<message>
<source>Lock unspent</source>
<translation> </translation>
</message>
<message>
<source>Unlock unspent</source>
<translation> </translation>
</message>
<message>
<source>Copy quantity</source>
<translation> </translation>
</message>
<message>
<source>Copy fee</source>
<translation> </translation>
</message>
<message>
<source>Copy after fee</source>
<translation> </translation>
</message>
<message>
<source>Copy bytes</source>
<translation> </translation>
</message>
<message>
<source>Copy dust</source>
<translation> </translation>
</message>
<message>
<source>Copy change</source>
<translation> </translation>
</message>
<message>
<source>(%1 locked)</source>
<translation>(%1 )</translation>
</message>
<message>
<source>yes</source>
<translation></translation>
</message>
<message>
<source>no</source>
<translation></translation>
</message>
<message>
<source>This label turns red if any recipient receives an amount smaller than the current dust threshold.</source>
<translation> , , .</translation>
</message>
<message>
<source>Can vary +/- %1 XVG per input.</source>
<translation> +/- %1 .</translation>
</message>
<message>
<source>(no label)</source>
<translation>( )</translation>
</message>
<message>
<source>change from %1 (%2)</source>
<translation> %1 (%2)</translation>
</message>
<message>
<source>(change)</source>
<translation>()</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<source>Edit Address</source>
<translation> </translation>
</message>
<message>
<source>&Label</source>
<translation>&</translation>
</message>
<message>
<source>The label associated with this address list entry</source>
<translation>, </translation>
</message>
<message>
<source>The address associated with this address list entry. This can only be modified for sending addresses.</source>
<translation>, . .</translation>
</message>
<message>
<source>&Address</source>
<translation>&</translation>
</message>
<message>
<source>New receiving address</source>
<translation> </translation>
</message>
<message>
<source>New sending address</source>
<translation> </translation>
</message>
<message>
<source>Edit receiving address</source>
<translation> </translation>
</message>
<message>
<source>Edit sending address</source>
<translation> </translation>
</message>
<message>
<source>The entered address "%1" is not a valid VERGE address.</source>
<translation> "%1" verge-.</translation>
</message>
<message>
<source>The entered address "%1" is already in the address book.</source>
<translation> "%1" .</translation>
</message>
<message>
<source>Could not unlock wallet.</source>
<translation> .</translation>
</message>
<message>
<source>New key generation failed.</source>
<translation> .</translation>
</message>
</context>
<context>
<name>FreespaceChecker</name>
<message>
<source>A new data directory will be created.</source>
<translation> .</translation>
</message>
<message>
<source>name</source>
<translation></translation>
</message>
<message>
<source>Directory already exists. Add %1 if you intend to create a new directory here.</source>
<translation> . %1, .</translation>
</message>
<message>
<source>Path already exists, and is not a directory.</source>
<translation> .</translation>
</message>
<message>
<source>Cannot create data directory here.</source>
<translation> .</translation>
</message>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
<source>version</source>
<translation></translation>
</message>
<message>
<source>(%1-bit)</source>
<translation>(%1-)</translation>
</message>
<message>
<source>About %1</source>
<translation> %1</translation>
</message>
<message>
<source>Command-line options</source>
<translation> </translation>
</message>
<message>
<source>Usage:</source>
<translation>:</translation>
</message>
<message>
<source>command-line options</source>
<translation> </translation>
</message>
<message>
<source>UI Options:</source>
<translation> :</translation>
</message>
<message>
<source>Choose data directory on startup (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation> , "de_DE" ( : )</translation>
</message>
<message>
<source>Start minimized</source>
<translation> </translation>
</message>
<message>
<source>Set SSL root certificates for payment request (default: -system-)</source>
<translation> SSL- ( : -system-)</translation>
</message>
<message>
<source>Show splash screen on startup (default: %u)</source>
<translation> - ( : %u)</translation>
</message>
<message>
<source>Reset all settings changed in the GUI</source>
<translation> , </translation>
</message>
</context>
<context>
<name>Intro</name>
<message>
<source>Welcome</source>
<translation> </translation>
</message>
<message>
<source>Welcome to %1.</source>
<translation> %1</translation>
</message>
<message>
<source>As this is the first time the program is launched, you can choose where %1 will store its data.</source>
<translation> %1 .</translation>
</message>
<message>
<source>When you click OK, %1 will begin to download and process the full %4 block chain (%2GB) starting with the earliest transactions in %3 when %4 initially launched.</source>
<translation> , %1 %4 (%2 ), %3, %4.</translation>
</message>
<message>
<source>If you have chosen to limit block chain storage (pruning), the historical data must still be downloaded and processed, but will be deleted afterward to keep your disk usage low.</source>
<translation> (), , , .</translation>
</message>
<message>
<source>Use the default data directory</source>
<translation> </translation>
</message>
<message>
<source>Use a custom data directory:</source>
<translation> :</translation>
</message>
<message>
<source>VERGE</source>
<translation>VERGE</translation>
</message>
<message>
<source>At least %1 GB of data will be stored in this directory, and it will grow over time.</source>
<translation> %1 , .</translation>
</message>
<message>
<source>Approximately %1 GB of data will be stored in this directory.</source>
<translation> %1 .</translation>
</message>
<message>
<source>%1 will download and store a copy of the VERGE block chain.</source>
<translation>%1 VERGE.</translation>
</message>
<message>
<source>The wallet will also be stored in this directory.</source>
<translation> .</translation>
</message>
<message>
<source>Error: Specified data directory "%1" cannot be created.</source>
<translation>: "%1".</translation>
</message>
<message>
<source>Error</source>
<translation></translation>
</message>
<message numerus="yes">
<source>%n GB of free space available</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message numerus="yes">
<source>(of %n GB needed)</source>
<translation><numerusform>( %n )</numerusform><numerusform>( %n )</numerusform><numerusform>( %n )</numerusform><numerusform>( %n )</numerusform></translation>
</message>
</context>
<context>
<name>ModalOverlay</name>
<message>
<source>Form</source>
<translation></translation>
</message>
<message>
<source>Recent transactions may not yet be visible, and therefore your wallet's balance might be incorrect. This information will be correct once your wallet has finished synchronizing with the VERGE network, as detailed below.</source>
<translation> , . , , . .</translation>
</message>
<message>
<source>Attempting to spend VERGE from transactions that are not confirmed yet, will not be accepted by the network.</source>
<translation> .</translation>
</message>
<message>
<source>Number of blocks left</source>
<translation> </translation>
</message>
<message>
<source>Unknown...</source>
<translation>...</translation>
</message>
<message>
<source>Last block time</source>
<translation> </translation>
</message>
<message>
<source>Progress</source>
<translation></translation>
</message>
<message>
<source>Progress increase per hour</source>
<translation> </translation>
</message>
<message>
<source>calculating...</source>
<translation>...</translation>
</message>
<message>
<source>Estimated time left until synced</source>
<translation> </translation>
</message>
<message>
<source>Hide</source>
<translation></translation>
</message>
<message>
<source>Unknown. Syncing Headers (%1)...</source>
<translation>. (%1)...</translation>
</message>
</context>
<context>
<name>OpenURIDialog</name>
<message>
<source>Open URI</source>
<translation> URI</translation>
</message>
<message>
<source>Open payment request from URI or file</source>
<translation> URI </translation>
</message>
<message>
<source>URI:</source>
<translation>URI:</translation>
</message>
<message>
<source>Select payment request file</source>
<translation> </translation>
</message>
<message>
<source>Select payment request file to open</source>
<translation> </translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<source>Options</source>
<translation></translation>
</message>
<message>
<source>&Main</source>
<translation>&</translation>
</message>
<message>
<source>Automatically start %1 after logging in to the system.</source>
<translation> %1 .</translation>
</message>
<message>
<source>&Start %1 on system login</source>
<translation>& %1 </translation>
</message>
<message>
<source>Size of &database cache</source>
<translation> &</translation>
</message>
<message>
<source>MB</source>
<translation></translation>
</message>
<message>
<source>Number of script &verification threads</source>
<translation> &</translation>
</message>
<message>
<source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source>
<translation>IP- ( IPv4: 127.0.0.1 / IPv6: ::1)</translation>
</message>
<message>
<source>Shows if the supplied default SOCKS5 proxy is used to reach peers via this network type.</source>
<translation>, SOCKS5 .</translation>
</message>
<message>
<source>Use separate SOCKS&5 proxy to reach peers via Tor hidden services:</source>
<translation> SOCKS&5 Tor:</translation>
</message>
<message>
<source>Hide the icon from the system tray.</source>
<translation> .</translation>
</message>
<message>
<source>&Hide tray icon</source>
<translation> </translation>
</message>
<message>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Exit in the menu.</source>
<translation> . .</translation>
</message>
<message>
<source>Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.</source>
<translation> URL (, block explorer), . %s URL . URL |.</translation>
</message>
<message>
<source>Active command-line options that override above options:</source>
<translation> , :</translation>
</message>
<message>
<source>Open the %1 configuration file from the working directory.</source>
<translation> %1 .</translation>
</message>
<message>
<source>Open Configuration File</source>
<translation> </translation>
</message>
<message>
<source>Reset all client options to default.</source>
<translation> .</translation>
</message>
<message>
<source>&Reset Options</source>
<translation>& </translation>
</message>
<message>
<source>&Network</source>
<translation>&</translation>
</message>
<message>
<source>(0 = auto, <0 = leave that many cores free)</source>
<translation>(0 = , <0 = )</translation>
</message>
<message>
<source>W&allet</source>
<translation>&</translation>
</message>
<message>
<source>Expert</source>
<translation></translation>
</message>
<message>
<source>Enable coin &control features</source>
<translation> </translation>
</message>
<message>
<source>If you disable the spending of unconfirmed change, the change from a transaction cannot be used until that transaction has at least one confirmation. This also affects how your balance is computed.</source>
<translation> , . .</translation>
</message>
<message>
<source>&Spend unconfirmed change</source>
<translation>& </translation>
</message>
<message>
<source>Automatically open the VERGE client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation> verge- . UPnP, .</translation>
</message>
<message>
<source>Map port using &UPnP</source>
<translation> &UPnP</translation>
</message>
<message>
<source>Accept connections from outside.</source>
<translation> </translation>
</message>
<message>
<source>Allow incomin&g connections</source>
<translation> </translation>
</message>
<message>
<source>Connect to the VERGE network through a SOCKS5 proxy.</source>
<translation> VERGE SOCKS5</translation>
</message>
<message>
<source>&Connect through SOCKS5 proxy (default proxy):</source>
<translation>& VERGE SOCKS5 ( ):</translation>
</message>
<message>
<source>Proxy &IP:</source>
<translation>&IP : </translation>
</message>
<message>
<source>&Port:</source>
<translation>&: </translation>
</message>
<message>
<source>Port of the proxy (e.g. 9050)</source>
<translation> - (, 9050)</translation>
</message>
<message>
<source>Used for reaching peers via:</source>
<translation> :</translation>
</message>
<message>
<source>IPv4</source>
<translation>IPv4</translation>
</message>
<message>
<source>IPv6</source>
<translation>IPv6</translation>
</message>
<message>
<source>Tor</source>
<translation>Tor</translation>
</message>
<message>
<source>Connect to the VERGE network through a separate SOCKS5 proxy for Tor hidden services.</source>
<translation> VERGE SOCKS5 Tor.</translation>
</message>
<message>
<source>&Window</source>
<translation>&</translation>
</message>
<message>
<source>Show only a tray icon after minimizing the window.</source>
<translation> .</translation>
</message>
<message>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&C </translation>
</message>
<message>
<source>M&inimize on close</source>
<translation>& </translation>
</message>
<message>
<source>&Display</source>
<translation>&</translation>
</message>
<message>
<source>User Interface &language:</source>
<translation>& :</translation>
</message>
<message>
<source>The user interface language can be set here. This setting will take effect after restarting %1.</source>
<translation> . %1</translation>
</message>
<message>
<source>&Unit to show amounts in:</source>
<translation>& : </translation>
</message>
<message>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation> .</translation>
</message>
<message>
<source>Whether to show coin control features or not.</source>
<translation> .</translation>
</message>
<message>
<source>&Third party transaction URLs</source>
<translation> URL .</translation>
</message>
<message>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<source>&Cancel</source>
<translation>&</translation>
</message>
<message>
<source>default</source>
<translation> </translation>
</message>
<message>
<source>none</source>
<translation></translation>
</message>
<message>
<source>Confirm options reset</source>
<translation> </translation>
</message>
<message>
<source>Client restart required to activate changes.</source>
<translation> .</translation>
</message>
<message>
<source>Client will be shut down. Do you want to proceed?</source>
<translation> . ?</translation>
</message>
<message>
<source>Configuration options</source>
<translation> </translation>
</message>
<message>
<source>The configuration file is used to specify advanced user options which override GUI settings. Additionally, any command-line options will override this configuration file.</source>
<translation> , GUI. , .</translation>
</message>
<message>
<source>Error</source>
<translation></translation>
</message>
<message>
<source>The configuration file could not be opened.</source>
<translation> .</translation>
</message>
<message>
<source>This change would require a client restart.</source>
<translation> .</translation>
</message>
<message>
<source>The supplied proxy address is invalid.</source>
<translation> .</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<source>Form</source>
<translation></translation>
</message>
<message>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the VERGE network after a connection is established, but this process has not completed yet.</source>
<translation> . VERGE , .</translation>
</message>
<message>
<source>Watch-only:</source>
<translation> :</translation>
</message>
<message>
<source>Available:</source>
<translation>:</translation>
</message>
<message>
<source>Your current spendable balance</source>
<translation> </translation>
</message>
<message>
<source>Pending:</source>
<translation> :</translation>
</message>
<message>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
<translation> , , </translation>
</message>
<message>
<source>Immature:</source>
<translation>:</translation>
</message>
<message>
<source>Mined balance that has not yet matured</source>
<translation> , </translation>
</message>
<message>
<source>Balances</source>
<translation></translation>
</message>
<message>
<source>Total:</source>
<translation>:</translation>
</message>
<message>
<source>Your current total balance</source>
<translation> </translation>
</message>
<message>
<source>Your current balance in watch-only addresses</source>
<translation> </translation>
</message>
<message>
<source>Spendable:</source>
<translation>:</translation>
</message>
<message>
<source>Recent transactions</source>
<translation> </translation>
</message>
<message>
<source>Unconfirmed transactions to watch-only addresses</source>
<translation> </translation>
</message>
<message>
<source>Mined balance in watch-only addresses that has not yet matured</source>
<translation> , </translation>
</message>
<message>
<source>Current total balance in watch-only addresses</source>
<translation> </translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<source>Payment request error</source>
<translation> </translation>
</message>
<message>
<source>Cannot start verge: click-to-pay handler</source>
<translation> verge: click-to-pay</translation>
</message>
<message>
<source>URI handling</source>
<translation> URI</translation>
</message>
<message>
<source>Payment request fetch URL is invalid: %1</source>
<translation> URL : %1</translation>
</message>
<message>
<source>Invalid payment address %1</source>
<translation> %1</translation>
</message>
<message>
<source>URI cannot be parsed! This can be caused by an invalid VERGE address or malformed URI parameters.</source>
<translation> URI! VERGE URI.</translation>
</message>
<message>
<source>Payment request file handling</source>
<translation> </translation>
</message>
<message>
<source>Payment request file cannot be read! This can be caused by an invalid payment request file.</source>
<translation> ! - .</translation>
</message>
<message>
<source>Payment request rejected</source>
<translation> </translation>
</message>
<message>
<source>Payment request network doesn't match client network.</source>
<translation> .</translation>
</message>
<message>
<source>Payment request expired.</source>
<translation> .</translation>
</message>
<message>
<source>Payment request is not initialized.</source>
<translation> .</translation>
</message>
<message>
<source>Unverified payment requests to custom payment scripts are unsupported.</source>
<translation> .</translation>
</message>
<message>
<source>Invalid payment request.</source>
<translation> .</translation>
</message>
<message>
<source>Requested payment amount of %1 is too small (considered dust).</source>
<translation> %1 ( ).</translation>
</message>
<message>
<source>Refund from %1</source>
<translation> %1</translation>
</message>
<message>
<source>Payment request %1 is too large (%2 bytes, allowed %3 bytes).</source>
<translation> %1 (%2 , %3 ).</translation>
</message>
<message>
<source>Error communicating with %1: %2</source>
<translation> %1: %2</translation>
</message>
<message>
<source>Payment request cannot be parsed!</source>
<translation> !</translation>
</message>
<message>
<source>Bad response from server %1</source>
<translation> %1</translation>
</message>
<message>
<source>Network request error</source>
<translation> </translation>
</message>
<message>
<source>Payment acknowledged</source>
<translation> </translation>
</message>
</context>
<context>
<name>PeerTableModel</name>
<message>
<source>User Agent</source>
<translation>-</translation>
</message>
<message>
<source>Node/Service</source>
<translation>/</translation>
</message>
<message>
<source>NodeId</source>
<translation>Id </translation>
</message>
<message>
<source>Ping</source>
<translation></translation>
</message>
<message>
<source>Sent</source>
<translation></translation>
</message>
<message>
<source>Received</source>
<translation></translation>
</message>
</context>
<context>
<name>QObject</name>
<message>
<source>Amount</source>
<translation></translation>
</message>
<message>
<source>Enter a VERGE address or Web3 Domain(e.g. %1 or sandy.nft)</source>
<translation> VERGE (, %1)</translation>
</message>
<message>
<source>Enter a VERGE address(e.g. %1)</source>
<translation> VERGE (, %1)</translation>
</message>
<message>
<source>%1 d</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 h</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 m</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 s</source>
<translation>%1 </translation>
</message>
<message>
<source>None</source>
<translation></translation>
</message>
<message>
<source>N/A</source>
<translation>/</translation>
</message>
<message>
<source>%1 ms</source>
<translation>%1 </translation>
</message>
<message numerus="yes">
<source>%n second(s)</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message numerus="yes">
<source>%n minute(s)</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message numerus="yes">
<source>%n hour(s)</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message numerus="yes">
<source>%n day(s)</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message numerus="yes">
<source>%n week(s)</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message>
<source>%1 and %2</source>
<translation>%1 %2</translation>
</message>
<message numerus="yes">
<source>%n year(s)</source>
<translation><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform><numerusform>%n </numerusform></translation>
</message>
<message>
<source>%1 B</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 KB</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 MB</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 GB</source>
<translation>%1 </translation>
</message>
<message>
<source>%1 didn't yet exit safely...</source>
<translation>%1 ...</translation>
</message>
<message>
<source>unknown</source>
<translation></translation>
</message>
</context>
<context>
<name>QObject::QObject</name>
<message>
<source>Error: Specified data directory "%1" does not exist.</source>
<translation>: "%1" .</translation>
</message>
<message>
<source>Error: Cannot parse configuration file: %1. Only use key=value syntax.</source>
<translation>: : %1. =.</translation>
</message>
<message>
<source>Error: %1</source>
<translation>: %1</translation>
</message>
</context>
<context>
<name>QRImageWidget</name>
<message>
<source>&Save Image...</source>
<translation>& ...</translation>
</message>
<message>
<source>&Copy Image</source>
<translation> &</translation>
</message>
<message>
<source>Save QR Code</source>
<translation> QR-</translation>
</message>
<message>
<source>PNG Image (*.png)</source>
<translation> PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<source>N/A</source>
<translation>/</translation>
</message>
<message>
<source>Client version</source>
<translation> </translation>
</message>
<message>
<source>&Information</source>
<translation>&</translation>
</message>
<message>
<source>Debug window</source>
<translation> </translation>
</message>
<message>
<source>General</source>
<translation></translation>
</message>
<message>
<source>Using BerkeleyDB version</source>
<translation> BerkeleyDB</translation>
</message>
<message>
<source>Datadir</source>
<translation> </translation>
</message>
<message>
<source>Startup time</source>
<translation> </translation>
</message>
<message>
<source>Network</source>
<translation></translation>
</message>
<message>
<source>Name</source>
<translation></translation>
</message>
<message>
<source>Number of connections</source>
<translation> </translation>
</message>
<message>
<source>Block chain</source>
<translation> </translation>
</message>
<message>
<source>Current number of blocks</source>
<translation> </translation>
</message>
<message>
<source>Memory Pool</source>
<translation> </translation>
</message>
<message>
<source>Current number of transactions</source>
<translation> </translation>
</message>
<message>
<source>Memory usage</source>
<translation> </translation>
</message>
<message>
<source>&Reset</source>
<translation>&</translation>
</message>
<message>
<source>Received</source>
<translation></translation>
</message>
<message>
<source>Sent</source>
<translation></translation>
</message>
<message>
<source>&Peers</source>
<translation>&</translation>
</message>
<message>
<source>Banned peers</source>
<translation> </translation>
</message>
<message>
<source>Select a peer to view detailed information.</source>
<translation> .</translation>
</message>
<message>
<source>Whitelisted</source>
<translation></translation>
</message>
<message>
<source>Direction</source>
<translation></translation>
</message>
<message>
<source>Version</source>
<translation></translation>
</message>
<message>
<source>Starting Block</source>
<translation> </translation>
</message>
<message>
<source>Synced Headers</source>
<translation> </translation>
</message>
<message>
<source>Synced Blocks</source>
<translation> </translation>
</message>
<message>
<source>User Agent</source>
<translation>-</translation>
</message>
<message>
<source>Open the %1 debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation> - %1 . -.</translation>
</message>
<message>
<source>Decrease font size</source>
<translation> </translation>
</message>
<message>
<source>Increase font size</source>
<translation> </translation>
</message>
<message>
<source>Services</source>
<translation></translation>
</message>
<message>
<source>Ban Score</source>
<translation> </translation>
</message>
<message>
<source>Connection Time</source>
<translation> </translation>
</message>
<message>
<source>Last Send</source>
<translation> </translation>
</message>
<message>
<source>Last Receive</source>
<translation> </translation>
</message>
<message>
<source>Ping Time</source>
<translation> </translation>
</message>
<message>
<source>The duration of a currently outstanding ping.</source>
<translation> .</translation>
</message>
<message>
<source>Ping Wait</source>
<translation> </translation>
</message>
<message>
<source>Min Ping</source>
<translation>. </translation>
</message>
<message>
<source>Time Offset</source>
<translation> </translation>
</message>
<message>
<source>Last block time</source>
<translation> </translation>
</message>
<message>
<source>&Open</source>
<translation>&</translation>
</message>
<message>
<source>&Console</source>
<translation></translation>
</message>
<message>
<source>&Network Traffic</source>
<translation> &</translation>
</message>
<message>
<source>Totals</source>
<translation></translation>
</message>
<message>
<source>In:</source>
<translation>:</translation>
</message>
<message>
<source>Out:</source>
<translation>:</translation>
</message>
<message>
<source>Debug log file</source>
<translation> -</translation>
</message>
<message>
<source>Clear console</source>
<translation> </translation>
</message>
<message>
<source>1 &hour</source>
<translation>1 &</translation>
</message>
<message>
<source>1 &day</source>
<translation>1 &</translation>
</message>
<message>
<source>1 &week</source>
<translation>1 &</translation>
</message>
<message>
<source>1 &year</source>
<translation>1 &</translation>
</message>
<message>
<source>&Disconnect</source>
<translation>&</translation>
</message>
<message>
<source>Ban for</source>
<translation> </translation>
</message>
<message>
<source>&Unban</source>
<translation>&</translation>
</message>
<message>
<source>Welcome to the %1 RPC console.</source>
<translation> RPC %1.</translation>
</message>
<message>
<source>Use up and down arrows to navigate history, and %1 to clear screen.</source>
<translation> %1 </translation>
</message>
<message>
<source>Type %1 for an overview of available commands.</source>
<translation> %1 help .</translation>
</message>
<message>
<source>For more information on using this console type %1.</source>
<translation> %1.</translation>
</message>
<message>
<source>WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramifications of a command.</source>
<translation>: , , . , .</translation>
</message>
<message>
<source>Network activity disabled</source>
<translation> </translation>
</message>
<message>
<source>(node id: %1)</source>
<translation>( : %1)</translation>
</message>
<message>
<source>via %1</source>
<translation> %1</translation>
</message>
<message>
<source>never</source>
<translation></translation>
</message>
<message>
<source>Inbound</source>
<translation></translation>
</message>
<message>
<source>Outbound</source>
<translation></translation>
</message>
<message>
<source>Yes</source>
<translation></translation>
</message>
<message>
<source>No</source>
<translation></translation>
</message>
<message>
<source>Unknown</source>
<translation></translation>
</message>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<source>&Amount:</source>
<translation>&:</translation>
</message>
<message>
<source>&Label:</source>
<translation>&:</translation>
</message>
<message>
<source>&Message:</source>
<translation>&</translation>
</message>
<message>
<source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the VERGE network.</source>
<translation> , . : VERGE.</translation>
</message>
<message>
<source>An optional label to associate with the new receiving address.</source>
<translation> .</translation>
</message>
<message>
<source>Use this form to request payments. All fields are <b>optional</b>.</source>
<translation> . <b></b>.</translation>
</message>
<message>
<source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source>
<translation> . , .</translation>
</message>
<message>
<source>Clear all fields of the form.</source>
<translation> .</translation>
</message>
<message>
<source>Clear</source>
<translation></translation>
</message>
<message>
<source>Requested payments history</source>
<translation> </translation>
</message>
<message>
<source>&Request payment</source>
<translation>& </translation>
</message>
<message>
<source>Bech32 addresses (BIP-173) are cheaper to spend from and offer better protection against typos. When unchecked a P2SH wrapped SegWit address will be created, compatible with older wallets.</source>
<translation>Bech32 (BIP-173) . P2SH , SegWit , .</translation>
</message>
<message>
<source>Generate Bech32 address</source>
<translation> Bech32 </translation>
</message>
<message>
<source>Show the selected request (does the same as double clicking an entry)</source>
<translation> ( , )</translation>
</message>
<message>
<source>Show</source>
<translation></translation>
</message>
<message>
<source>Remove the selected entries from the list</source>
<translation> </translation>
</message>
<message>
<source>Remove</source>
<translation></translation>
</message>
<message>
<source>Copy URI</source>
<translation> URI</translation>
</message>
<message>
<source>Copy label</source>
<translation> </translation>
</message>
<message>
<source>Copy message</source>
<translation> </translation>
</message>
<message>
<source>Copy amount</source>
<translation> </translation>
</message>
</context>
<context>
<name>ReceiveRequestDialog</name>
<message>
<source>QR Code</source>
<translation>QR </translation>
</message>
<message>
<source>Copy &URI</source>
<translation> &URI</translation>
</message>
<message>
<source>Copy &Address</source>
<translation> &</translation>
</message>
<message>
<source>&Save Image...</source>
<translation>& ...</translation>
</message>
<message>
<source>Request payment to %1</source>
<translation> %1</translation>
</message>
<message>
<source>Payment information</source>
<translation> </translation>
</message>
<message>
<source>URI</source>
<translation>URI</translation>
</message>
<message>
<source>Address</source>
<translation></translation>
</message>
<message>
<source>Amount</source>
<translation></translation>
</message>
<message>
<source>Label</source>
<translation></translation>
</message>
<message>
<source>Message</source>
<translation></translation>
</message>
<message>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation> URI , / .</translation>
</message>
<message>
<source>Error encoding URI into QR Code.</source>
<translation> URI QR-</translation>
</message>
</context>
<context>
<name>RecentRequestsTableModel</name>
<message>
<source>Date</source>
<translation></translation>
</message>
<message>
<source>Label</source>
<translation></translation>
</message>
<message>
<source>Message</source>
<translation></translation>
</message>
<message>
<source>(no label)</source>
<translation>( )</translation>
</message>
<message>
<source>(no message)</source>
<translation>( )</translation>
</message>
<message>
<source>(no amount requested)</source>
<translation>( )</translation>
</message>
<message>
<source>Requested</source>
<translation></translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<source>Send Coins</source>
<translation></translation>
</message>
<message>
<source>Coin Control Features</source>
<translation> </translation>
</message>
<message>
<source>Inputs...</source>
<translation>...</translation>
</message>
<message>
<source>automatically selected</source>
<translation> </translation>
</message>
<message>
<source>Insufficient funds!</source>
<translation> !</translation>
</message>
<message>
<source>Quantity:</source>
<translation>:</translation>
</message>
<message>
<source>Bytes:</source>
<translation>:</translation>
</message>
<message>
<source>Amount:</source>
<translation>:</translation>
</message>
<message>
<source>Fee:</source>
<translation>:</translation>
</message>
<message>
<source>After Fee:</source>
<translation> :</translation>
</message>
<message>
<source>Change:</source>
<translation>:</translation>
</message>
<message>
<source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source>
<translation> , , .</translation>
</message>
<message>
<source>Custom change address</source>
<translation> </translation>
</message>
<message>
<source>Transaction Fee:</source>
<translation></translation>
</message>
<message>
<source>Choose...</source>
<translation>...</translation>
</message>
<message>
<source>Using the fallbackfee can result in sending a transaction that will take several hours or days (or never) to confirm. Consider choosing your fee manually or wait until you have validated the complete chain.</source>
<translation> ( ). .</translation>
</message>
<message>
<source>Warning: Fee estimation is currently not possible.</source>
<translation>: .</translation>
</message>
<message>
<source>collapse fee-settings</source>
<translation> </translation>
</message>
<message>
<source>per kilobyte</source>
<translation> </translation>
</message>
<message>
<source>If the custom fee is set to .4 XVG and the transaction is only 250 bytes, then "per kilobyte" only pays .1 XVG in fee, while "total at least" pays .4 XVG. For transactions bigger than a kilobyte both pay by kilobyte.</source>
<translation> 1000 , 250 , " " 250 , " " 1000 . " ".</translation>
</message>
<message>
<source>Hide</source>
<translation></translation>
</message>
<message>
<source>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks. But be aware that this can end up in a never confirming transaction once there is more demand for VERGE transactions than the network can process.</source>
<translation> , , . , , , .</translation>
</message>
<message>
<source>(read the tooltip)</source>
<translation>( )</translation>
</message>
<message>
<source>Recommended:</source>
<translation>:</translation>
</message>
<message>
<source>Custom:</source>
<translation>:</translation>
</message>
<message>
<source>(Smart fee not initialized yet. This usually takes a few blocks...)</source>
<translation>( . ...)</translation>
</message>
<message>
<source>Send to multiple recipients at once</source>
<translation> </translation>
</message>
<message>
<source>Add &Recipient</source>
<translation>& </translation>
</message>
<message>
<source>Clear all fields of the form.</source>
<translation> </translation>
</message>
<message>
<source>Dust:</source>
<translation>:</translation>
</message>
<message>
<source>Confirmation time target:</source>
<translation> :</translation>
</message>
<message>
<source>Enable Replace-By-Fee</source>
<translation> Replace-By-Fee ( )</translation>
</message>
<message>
<source>With Replace-By-Fee (BIP-125) you can increase a transaction's fee after it is sent. Without this, a higher fee may be recommended to compensate for increased transaction delay risk.</source>
<translation> Replace-By-Fee (BIP-125) . , , .</translation>
</message>
<message>
<source>Clear &All</source>
<translation> &</translation>
</message>
<message>
<source>Balance:</source>
<translation>:</translation>
</message>
<message>
<source>Confirm the send action</source>
<translation> </translation>
</message>
<message>
<source>S&end</source>
<translation>&</translation>
</message>
<message>
<source>Copy quantity</source>
<translation> </translation>
</message>
<message>
<source>Copy amount</source>
<translation> </translation>
</message>
<message>
<source>Copy fee</source>
<translation> </translation>
</message>
<message>
<source>Copy after fee</source>
<translation> </translation>
</message>
<message>
<source>Copy bytes</source>
<translation> </translation>
</message>
<message>
<source>Copy dust</source>
<translation> </translation>
</message>
<message>
<source>Copy change</source>
<translation> </translation>
</message>
<message>
<source>%1 (%2 blocks)</source>
<translation>%1 (%2 )</translation>
</message>
<message>
<source>%1 to %2</source>
<translation> %1 %2</translation>
</message>
<message>
<source>Are you sure you want to send?</source>
<translation> , ?</translation>
</message>
<message>
<source>added as transaction fee</source>
<translation> </translation>
</message>
<message>
<source>Total Amount %1</source>
<translation> %1</translation>
</message>
<message>
<source>or</source>
<translation></translation>
</message>
<message>
<source>You can increase the fee later (signals Replace-By-Fee, BIP-125).</source>
<translation> ( Replace-By-Fee, BIP-125).</translation>
</message>
<message>
<source>Not signalling Replace-By-Fee, BIP-125.</source>
<translation> Replace-By-Fee, BIP-125.</translation>
</message>
<message>
<source>Confirm send coins</source>
<translation> </translation>
</message>
<message>
<source>The recipient address is not valid. Please recheck.</source>
<translation> . , .</translation>
</message>
<message>
<source>The amount to pay must be larger than 0.</source>
<translation> 0.</translation>
</message>
<message>
<source>The amount exceeds your balance.</source>
<translation> .</translation>
</message>
<message>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation> %1 .</translation>
</message>
<message>
<source>Duplicate address found: addresses should only be used once each.</source>
<translation> : .</translation>
</message>
<message>
<source>Transaction creation failed!</source>
<translation> !</translation>
</message>
<message>
<source>The transaction was rejected with the following reason: %1</source>
<translation> : %1</translation>
</message>
<message>
<source>A fee higher than %1 is considered an absurdly high fee.</source>
<translation> %1 .</translation>
</message>
<message>
<source>Payment request expired.</source>
<translation> .</translation>
</message>
<message>
<source>Pay only the required fee of %1</source>
<translation> %1</translation>
</message>
<message numerus="yes">
<source>Estimated to begin confirmation within %n block(s).</source>
<translation><numerusform> %n .</numerusform><numerusform> %n .</numerusform><numerusform> %n .</numerusform><numerusform> %n .</numerusform></translation>
</message>
<message>
<source>Warning: Invalid VERGE address</source>
<translation>: VERGE</translation>
</message>
<message>
<source>Warning: Unknown change address</source>
<translation>: </translation>
</message>
<message>
<source>Confirm custom change address</source>
<translation> </translation>
</message>
<message>
<source>The address you selected for change is not part of this wallet. Any or all funds in your wallet may be sent to this address. Are you sure?</source>
<translation> . . ?</translation>
</message>
<message>
<source>(no label)</source>
<translation>( )</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<source>A&mount:</source>
<translation>&:</translation>
</message>
<message>
<source>Pay &To:</source>
<translation>&:</translation>
</message>
<message>
<source>&Label:</source>
<translation>&:</translation>
</message>
<message>
<source>Choose previously used address</source>
<translation> </translation>
</message>
<message>
<source>This is a normal payment.</source>
<translation> .</translation>
</message>
<message>
<source>The VERGE address to send the payment to</source>
<translation> VERGE, </translation>
</message>
<message>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation> </translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<source>Remove this entry</source>
<translation> </translation>
</message>
<message>
<source>The fee will be deducted from the amount being sent. The recipient will receive less VERGE than you enter in the amount field. If multiple recipients are selected, the fee is split equally.</source>
<translation> . , . , .</translation>
</message>
<message>
<source>S&ubtract fee from amount</source>
<translation> </translation>
</message>
<message>
<source>Use available balance</source>
<translation> </translation>
</message>
<message>
<source>Message:</source>
<translation>:</translation>
</message>
<message>
<source>This is an unauthenticated payment request.</source>
<translation> .</translation>
</message>
<message>
<source>This is an authenticated payment request.</source>
<translation> .</translation>
</message>
<message>
<source>Enter a label for this address to add it to the list of used addresses</source>
<translation> , </translation>
</message>
<message>
<source>A message that was attached to the verge: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the VERGE network.</source>
<translation> verge: URI , . : VERGE.</translation>
</message>
<message>
<source>Pay To:</source>
<translation>:</translation>
</message>
<message>
<source>Memo:</source>
<translation>:</translation>
</message>
<message>
<source>Enter a label for this address to add it to your address book</source>
<translation> , </translation>
</message>
</context>
<context>
<name>SendConfirmationDialog</name>
<message>
<source>Yes</source>
<translation></translation>
</message>
</context>
<context>
<name>ShutdownWindow</name>
<message>
<source>%1 is shutting down...</source>
<translation>%1 ...</translation>
</message>
<message>
<source>Do not shut down the computer until this window disappears.</source>
<translation> , .</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<source>Signatures - Sign / Verify a Message</source>
<translation> - / </translation>
</message>
<message>
<source>&Sign Message</source>
<translation>& </translation>
</message>
<message>
<source>You can sign messages/agreements with your addresses to prove you can receive VERGE sent to them. Be careful not to sign anything vague or random, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation> / , . , - , . , .</translation>
</message>
<message>
<source>The VERGE address to sign the message with</source>
<translation> VERGE, </translation>
</message>
<message>
<source>Choose previously used address</source>
<translation> </translation>
</message>
<message>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<source>Paste address from clipboard</source>
<translation> </translation>
</message>
<message>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<source>Enter the message you want to sign here</source>
<translation> </translation>
</message>
<message>
<source>Signature</source>
<translation></translation>
</message>
<message>
<source>Copy the current signature to the system clipboard</source>
<translation> </translation>
</message>
<message>
<source>Sign the message to prove you own this VERGE address</source>
<translation> , VERGE</translation>
</message>
<message>
<source>Sign &Message</source>
<translation> &</translation>
</message>
<message>
<source>Reset all sign message fields</source>
<translation> </translation>
</message>
<message>
<source>Clear &All</source>
<translation> &</translation>
</message>
<message>
<source>&Verify Message</source>
<translation>& </translation>
</message>
<message>
<source>Enter the receiver's address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack. Note that this only proves the signing party receives with the address, it cannot prove sendership of any transaction!</source>
<translation> , (, , , .. ) , . , , , "man-in-the-middle". , , .</translation>
</message>
<message>
<source>The VERGE address the message was signed with</source>
<translation> VERGE, </translation>
</message>
<message>
<source>Verify the message to ensure it was signed with the specified VERGE address</source>
<translation> , , VERGE</translation>
</message>
<message>
<source>Verify &Message</source>
<translation> &</translation>
</message>
<message>
<source>Reset all verify message fields</source>
<translation> </translation>
</message>
<message>
<source>Click "Sign Message" to generate signature</source>
<translation> " " </translation>
</message>
<message>
<source>The entered address is invalid.</source>
<translation> .</translation>
</message>
<message>
<source>Please check the address and try again.</source>
<translation>, .</translation>
</message>
<message>
<source>The entered address does not refer to a key.</source>
<translation> .</translation>
</message>
<message>
<source>Wallet unlock was cancelled.</source>
<translation> .</translation>
</message>
<message>
<source>Private key for the entered address is not available.</source>
<translation> .</translation>
</message>
<message>
<source>Message signing failed.</source>
<translation> .</translation>
</message>
<message>
<source>Message signed.</source>
<translation> .</translation>
</message>
<message>
<source>The signature could not be decoded.</source>
<translation> .</translation>
</message>
<message>
<source>Please check the signature and try again.</source>
<translation>, .</translation>
</message>
<message>
<source>The signature did not match the message digest.</source>
<translation> .</translation>
</message>
<message>
<source>Message verification failed.</source>
<translation> .</translation>
</message>
<message>
<source>Message verified.</source>
<translation> .</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<source>[testnet]</source>
<translation>[ ]</translation>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
<message>
<source>KB/s</source>
<translation>/</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message numerus="yes">
<source>Open for %n more block(s)</source>
<translation><numerusform> %n </numerusform><numerusform> %n </numerusform><numerusform> %n </numerusform><numerusform> %n </numerusform></translation>
</message>
<message>
<source>Open until %1</source>
<translation> %1</translation>
</message>
<message>
<source>conflicted with a transaction with %1 confirmations</source>
<translation> %1 </translation>
</message>
<message>
<source>%1/offline</source>
<translation>%1/</translation>
</message>
<message>
<source>0/unconfirmed, %1</source>
<translation>0/ , %1</translation>
</message>
<message>
<source>in memory pool</source>
<translation> </translation>
</message>
<message>
<source>not in memory pool</source>
<translation> </translation>
</message>
<message>
<source>abandoned</source>
<translation></translation>
</message>
<message>
<source>%1/unconfirmed</source>
<translation>%1/ </translation>
</message>
<message>
<source>%1 confirmations</source>
<translation>%1 </translation>
</message>
<message>
<source>Status</source>
<translation></translation>
</message>
<message>
<source>, has not been successfully broadcast yet</source>
<translation>, </translation>
</message>
<message numerus="yes">
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, %n </numerusform><numerusform>, %n </numerusform><numerusform>, %n </numerusform><numerusform>, %n </numerusform></translation>
</message>
<message>
<source>Date</source>
<translation></translation>
</message>
<message>
<source>Source</source>
<translation></translation>
</message>
<message>
<source>Generated</source>
<translation></translation>
</message>
<message>
<source>From</source>
<translation></translation>
</message>
<message>
<source>unknown</source>
<translation></translation>
</message>
<message>
<source>To</source>
<translation></translation>
</message>
<message>
<source>own address</source>
<translation> </translation>
</message>
<message>
<source>watch-only</source>
<translation> </translation>
</message>
<message>
<source>label</source>
<translation></translation>
</message>
<message>
<source>Credit</source>
<translation></translation>
</message>
<message numerus="yes">
<source>matures in %n more block(s)</source>
<translation><numerusform> %n </numerusform><numerusform> %n </numerusform><numerusform> %n </numerusform><numerusform> %n </numerusform></translation>
</message>
<message>
<source>not accepted</source>
<translation> </translation>
</message>
<message>
<source>Debit</source>
<translation></translation>
</message>
<message>
<source>Total debit</source>
<translation> </translation>
</message>
<message>
<source>Total credit</source>
<translation> </translation>
</message>
<message>
<source>Transaction fee</source>
<translation></translation>
</message>
<message>
<source>Net amount</source>
<translation> </translation>
</message>
<message>
<source>Message</source>
<translation></translation>
</message>
<message>
<source>Comment</source>
<translation></translation>
</message>
<message>
<source>Transaction ID</source>
<translation>ID </translation>
</message>
<message>
<source>Transaction total size</source>
<translation> </translation>
</message>
<message>
<source>Output index</source>
<translation> </translation>
</message>
<message>
<source>Merchant</source>
<translation></translation>
</message>
<message>
<source>Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation> %1 , . , . , " ", . , .</translation>
</message>
<message>
<source>Debug information</source>
<translation> </translation>
</message>
<message>
<source>Transaction</source>
<translation></translation>
</message>
<message>
<source>Inputs</source>
<translation></translation>
</message>
<message>
<source>Amount</source>
<translation></translation>
</message>
<message>
<source>true</source>
<translation></translation>
</message>
<message>
<source>false</source>
<translation></translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<source>This pane shows a detailed description of the transaction</source>
<translation> .</translation>
</message>
<message>
<source>Details for %1</source>
<translation> %1</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<source>Date</source>
<translation></translation>
</message>
<message>
<source>Type</source>
<translation></translation>
</message>
<message>
<source>Label</source>
<translation></translation>
</message>
<message numerus="yes">
<source>Open for %n more block(s)</source>
<translation><numerusform> %n </numerusform><numerusform> %n </numerusform><numerusform> %n </numerusform><numerusform> %n </numerusform></translation>
</message>
<message>
<source>Open until %1</source>
<translation> %1</translation>
</message>
<message>
<source>Offline</source>
<translation></translation>
</message>
<message>
<source>Unconfirmed</source>
<translation> </translation>
</message>
<message>
<source>Abandoned</source>
<translation></translation>
</message>
<message>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation> (%1 %2 )</translation>
</message>
<message>
<source>Confirmed (%1 confirmations)</source>
<translation> (%1 )</translation>
</message>
<message>
<source>Conflicted</source>
<translation> </translation>
</message>
<message>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation> (%1 , %2)</translation>
</message>
<message>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation> , , !</translation>
</message>
<message>
<source>Generated but not accepted</source>
<translation>, </translation>
</message>
<message>
<source>Received with</source>
<translation> </translation>
</message>
<message>
<source>Received from</source>
<translation> </translation>
</message>
<message>
<source>Sent to</source>
<translation> </translation>
</message>
<message>
<source>Payment to yourself</source>
<translation> </translation>
</message>
<message>
<source>Mined</source>
<translation></translation>
</message>
<message>
<source>watch-only</source>
<translation> </translation>
</message>
<message>
<source>(n/a)</source>
<translation>()</translation>
</message>
<message>
<source>(no label)</source>
<translation>( )</translation>
</message>
<message>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation> . , .</translation>
</message>
<message>
<source>Date and time that the transaction was received.</source>
<translation> .</translation>
</message>
<message>
<source>Type of transaction.</source>
<translation> .</translation>
</message>
<message>
<source>Whether or not a watch-only address is involved in this transaction.</source>
<translation> .</translation>
</message>
<message>
<source>User-defined intent/purpose of the transaction.</source>
<translation> / .</translation>
</message>
<message>
<source>Amount removed from or added to balance.</source>
<translation> .</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<source>All</source>
<translation></translation>
</message>
<message>
<source>Today</source>
<translation></translation>
</message>
<message>
<source>This week</source>
<translation> </translation>
</message>
<message>
<source>This month</source>
<translation> </translation>
</message>
<message>
<source>Last month</source>
<translation> </translation>
</message>
<message>
<source>This year</source>
<translation> </translation>
</message>
<message>
<source>Range...</source>
<translation>...</translation>
</message>
<message>
<source>Received with</source>
<translation> </translation>
</message>
<message>
<source>Sent to</source>
<translation> </translation>
</message>
<message>
<source>To yourself</source>
<translation></translation>
</message>
<message>
<source>Mined</source>
<translation></translation>
</message>
<message>
<source>Other</source>
<translation></translation>
</message>
<message>
<source>Enter address, transaction id, or label to search</source>
<translation> , ID </translation>
</message>
<message>
<source>Min amount</source>
<translation>. </translation>
</message>
<message>
<source>Abandon transaction</source>
<translation> </translation>
</message>
<message>
<source>Increase transaction fee</source>
<translation> </translation>
</message>
<message>
<source>Copy address</source>
<translation> </translation>
</message>
<message>
<source>Copy label</source>
<translation> </translation>
</message>
<message>
<source>Copy amount</source>
<translation> </translation>
</message>
<message>
<source>Copy transaction ID</source>
<translation> ID </translation>
</message>
<message>
<source>Copy raw transaction</source>
<translation> </translation>
</message>
<message>
<source>Copy full transaction details</source>
<translation> </translation>
</message>
<message>
<source>Edit label</source>
<translation> </translation>
</message>
<message>
<source>Show transaction details</source>
<translation> </translation>
</message>
<message>
<source>Export Transaction History</source>
<translation> </translation>
</message>
<message>
<source>Comma separated file (*.csv)</source>
<translation>, (*.csv)</translation>
</message>
<message>
<source>Confirmed</source>
<translation></translation>
</message>
<message>
<source>Watch-only</source>
<translation> </translation>
</message>
<message>
<source>Date</source>
<translation></translation>
</message>
<message>
<source>Type</source>
<translation></translation>
</message>
<message>
<source>Label</source>
<translation></translation>
</message>
<message>
<source>Address</source>
<translation></translation>
</message>
<message>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<source>Exporting Failed</source>
<translation> </translation>
</message>
<message>
<source>There was an error trying to save the transaction history to %1.</source>
<translation> %1.</translation>
</message>
<message>
<source>Exporting Successful</source>
<translation> </translation>
</message>
<message>
<source>The transaction history was successfully saved to %1.</source>
<translation> %1.</translation>
</message>
<message>
<source>Range:</source>
<translation>:</translation>
</message>
<message>
<source>to</source>
<translation></translation>
</message>
</context>
<context>
<name>UnitDisplayStatusBarControl</name>
<message>
<source>Unit to show amounts in. Click to select another unit.</source>
<translation> . .</translation>
</message>
</context>
<context>
<name>WalletFrame</name>
<message>
<source>No wallet has been loaded.</source>
<translation> .</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<source>Send Coins</source>
<translation></translation>
</message>
<message>
<source>Fee bump error</source>
<translation> </translation>
</message>
<message>
<source>Increasing transaction fee failed</source>
<translation> </translation>
</message>
<message>
<source>Do you want to increase the fee?</source>
<translation> ?</translation>
</message>
<message>
<source>Current fee:</source>
<translation> </translation>
</message>
<message>
<source>Increase:</source>
<translation>:</translation>
</message>
<message>
<source>New fee:</source>
<translation> :</translation>
</message>
<message>
<source>Confirm fee bump</source>
<translation> </translation>
</message>
<message>
<source>Can't sign transaction.</source>
<translation> .</translation>
</message>
<message>
<source>Could not commit transaction</source>
<translation> </translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<source>&Export</source>
<translation>&</translation>
</message>
<message>
<source>Export the data in the current tab to a file</source>
<translation> </translation>
</message>
<message>
<source>Backup Wallet</source>
<translation> </translation>
</message>
<message>
<source>Wallet Data (*.dat)</source>
<translation> (*.dat)</translation>
</message>
<message>
<source>Backup Failed</source>
<translation> </translation>
</message>
<message>
<source>There was an error trying to save the wallet data to %1.</source>
<translation> %1.</translation>
</message>
<message>
<source>Backup Successful</source>
<translation> </translation>
</message>
<message>
<source>The wallet data was successfully saved to %1.</source>
<translation> %1.</translation>
</message>
</context>
<context>
<name>verge-core</name>
<message>
<source>Options:</source>
<translation>:</translation>
</message>
<message>
<source>Specify data directory</source>
<translation> </translation>
</message>
<message>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation> , </translation>
</message>
<message>
<source>Specify your own public address</source>
<translation> </translation>
</message>
<message>
<source>Accept command line and JSON-RPC commands</source>
<translation> JSON-RPC</translation>
</message>
<message>
<source>Distributed under the MIT software license, see the accompanying file %s or %s</source>
<translation> MIT, . %s %s</translation>
</message>
<message>
<source>If <category> is not supplied or if <category> = 1, output all debugging information.</source>
<translation> <category> 1, .</translation>
</message>
<message>
<source>Prune configured below the minimum of %d MiB. Please use a higher number.</source>
<translation> , %d . , .</translation>
</message>
<message>
<source>Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)</source>
<translation>: . -reindex ( )</translation>
</message>
<message>
<source>Rescans are not possible in pruned mode. You will need to use -reindex which will download the whole blockchain again.</source>
<translation> . -reindex, .</translation>
</message>
<message>
<source>Error: A fatal internal error occurred, see debug.log for details</source>
<translation>: , debug.log</translation>
</message>
<message>
<source>Fee (in %s/kB) to add to transactions you send (default: %s)</source>
<translation> ( %s/) ( : %s)</translation>
</message>
<message>
<source>Pruning blockstore...</source>
<translation> ...</translation>
</message>
<message>
<source>Run in the background as a daemon and accept commands</source>
<translation> </translation>
</message>
<message>
<source>Unable to start HTTP server. See debug log for details.</source>
<translation> HTTP . debug .</translation>
</message>
<message>
<source>VERGE Core</source>
<translation>VERGE Core</translation>
</message>
<message>
<source>The %s developers</source>
<translation> %s</translation>
</message>
<message>
<source>Accept relayed transactions received from whitelisted peers even when not relaying transactions (default: %d)</source>
<translation> ( : %d)</translation>
</message>
<message>
<source>Add a node to connect to and attempt to keep the connection open (see the `addnode` RPC command help for more info)</source>
<translation> (. RPC `addnode` )</translation>
</message>
<message>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation> . []: IPv6</translation>
</message>
<message>
<source>Cannot obtain a lock on data directory %s. %s is probably already running.</source>
<translation> %s. %s .</translation>
</message>
<message>
<source>Cannot provide specific connections and have addrman find outgoing connections at the same.</source>
<translation> , addrman.</translation>
</message>
<message>
<source>Connect only to the specified node(s); -connect=0 disables automatic connections (the rules for this peer are the same as for -addnode)</source>
<translation> (); -connect=0 ( , -addnode)</translation>
</message>
<message>
<source>Delete all wallet transactions and only recover those parts of the blockchain through -rescan on startup</source>
<translation> -rescan </translation>
</message>
<message>
<source>Error reading %s! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation> %s! , .</translation>
</message>
<message>
<source>Exclude debugging information for a category. Can be used in conjunction with -debug=1 to output debug logs for all categories except one or more specified categories.</source>
<translation> . -debug=1 , .</translation>
</message>
<message>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation> , (%s TxID)</translation>
</message>
<message>
<source>Extra transactions to keep in memory for compact block reconstructions (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>If this block is in the chain assume that it and its ancestors are valid and potentially skip their script verification (0 to verify all, default: %s, testnet: %s)</source>
<translation> , (0 , : %s, : %s)</translation>
</message>
<message>
<source>Maximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: %u seconds)</source>
<translation> . . ( : %u )</translation>
</message>
<message>
<source>Maximum total fees (in %s) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions (default: %s)</source>
<translation> (%s) ; ( : %s)</translation>
</message>
<message>
<source>Please check that your computer's date and time are correct! If your clock is wrong, %s will not work properly.</source>
<translation> ! , %s .</translation>
</message>
<message>
<source>Please contribute if you find %s useful. Visit %s for further information about the software.</source>
<translation>, , %s . %s .</translation>
</message>
<message>
<source>Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect used)</source>
<translation> DNS, ( : 1, -connect)</translation>
</message>
<message>
<source>Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. Warning: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >%u = automatically prune block files to stay under the specified target size in MiB)</source>
<translation> () . RPC pruneblockchain , . -txindex -rescan. : . ( : 0 = , 1 = RPC, >%u = , )</translation>
</message>
<message>
<source>Set lowest fee rate (in %s/kB) for transactions to be included in block creation. (default: %s)</source>
<translation> ( %s/) . ( : %s)</translation>
</message>
<message>
<source>Set the number of script verification threads (%u to %d, 0 = auto, <0 = leave that many cores free, default: %d)</source>
<translation> ( %u %d, 0=, <0 = , : %d)</translation>
</message>
<message>
<source>The block database contains a block which appears to be from the future. This may be due to your computer's date and time being set incorrectly. Only rebuild the block database if you are sure that your computer's date and time are correct</source>
<translation> , . - . , , .</translation>
</message>
<message>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation> - - - </translation>
</message>
<message>
<source>This is the transaction fee you may discard if change is smaller than dust at this level</source>
<translation> , , </translation>
</message>
<message>
<source>Unable to replay blocks. You will need to rebuild the database using -reindex-chainstate.</source>
<translation> . -reindex-chainstate.</translation>
</message>
<message>
<source>Unable to rewind the database to a pre-fork state. You will need to redownload the blockchain</source>
<translation> - . .</translation>
</message>
<message>
<source>Use UPnP to map the listening port (default: 1 when listening and no -proxy)</source>
<translation> UPnP ( : 1, -proxy)</translation>
</message>
<message>
<source>Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times</source>
<translation> JSON-RPC . <userpw> : <USERNAME>:<SALT>$<HASH>. share/rpcuser. </translation>
</message>
<message>
<source>Wallet will not create transactions that violate mempool chain limits (default: %u)</source>
<translation> , ( : %u)</translation>
</message>
<message>
<source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source>
<translation>: , ! , , .</translation>
</message>
<message>
<source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation>: ! , , .</translation>
</message>
<message>
<source>Whether to save the mempool on shutdown and load on restart (default: %u)</source>
<translation> mempool ( : %u)</translation>
</message>
<message>
<source>%d of last 100 blocks have unexpected version</source>
<translation>%d 100 </translation>
</message>
<message>
<source>%s corrupt, salvage failed</source>
<translation>%s , </translation>
</message>
<message>
<source>-maxmempool must be at least %d MB</source>
<translation>-maxmempool %d MB</translation>
</message>
<message>
<source><category> can be:</source>
<translation><category> :</translation>
</message>
<message>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation> ( : 1, -proxy -connect)</translation>
</message>
<message>
<source>Append comment to the user agent string</source>
<translation> </translation>
</message>
<message>
<source>Attempt to recover private keys from a corrupt wallet on startup</source>
<translation> </translation>
</message>
<message>
<source>Block creation options:</source>
<translation> :</translation>
</message>
<message>
<source>Cannot resolve -%s address: '%s'</source>
<translation> -%s: '%s'</translation>
</message>
<message>
<source>Chain selection options:</source>
<translation> :</translation>
</message>
<message>
<source>Change index out of range</source>
<translation> </translation>
</message>
<message>
<source>Connection options:</source>
<translation> :</translation>
</message>
<message>
</message>
<message>
<source>Corrupted block database detected</source>
<translation> </translation>
</message>
<message>
<source>Debugging/Testing options:</source>
<translation> /:</translation>
</message>
<message>
<source>Do not load the wallet and disable wallet RPC calls</source>
<translation> RPC</translation>
</message>
<message>
<source>Do you want to rebuild the block database now?</source>
<translation> ?</translation>
</message>
<message>
<source>Enable publish hash block in <address></source>
<translation> <address></translation>
</message>
<message>
<source>Enable publish hash transaction in <address></source>
<translation> <address></translation>
</message>
<message>
<source>Enable publish raw block in <address></source>
<translation> <address></translation>
</message>
<message>
<source>Enable publish raw transaction in <address></source>
<translation> <address></translation>
</message>
<message>
<source>Enable transaction replacement in the memory pool (default: %u)</source>
<translation> ( :%u)</translation>
</message>
<message>
<source>Error creating %s: You can't create non-HD wallets with this version.</source>
<translation> %s: -HD .</translation>
</message>
<message>
<source>Error initializing block database</source>
<translation> </translation>
</message>
<message>
<source>Error initializing wallet database environment %s!</source>
<translation> %s!</translation>
</message>
<message>
<source>Error loading %s</source>
<translation> %s</translation>
</message>
<message>
<source>Error loading %s: Wallet corrupted</source>
<translation> %s: </translation>
</message>
<message>
<source>Error loading %s: Wallet requires newer version of %s</source>
<translation> %s: %s</translation>
</message>
<message>
<source>Error loading block database</source>
<translation> </translation>
</message>
<message>
<source>Error opening block database</source>
<translation> </translation>
</message>
<message>
<source>Error: Disk space is low!</source>
<translation>: !</translation>
</message>
<message>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation> . -listen=0 .</translation>
</message>
<message>
<source>Failed to rescan the wallet during initialization</source>
<translation> </translation>
</message>
<message>
<source>Importing...</source>
<translation> ...</translation>
</message>
<message>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation> . ?</translation>
</message>
<message>
<source>Initialization sanity check failed. %s is shutting down.</source>
<translation> . %s .</translation>
</message>
<message>
<source>Invalid amount for -%s=<amount>: '%s'</source>
<translation> -%s=<amount>: '%s'</translation>
</message>
<message>
<source>Invalid amount for -discardfee=<amount>: '%s'</source>
<translation> -discardfee=<amount>: '%s'</translation>
</message>
<message>
<source>Invalid amount for -fallbackfee=<amount>: '%s'</source>
<translation> -fallbackfee=<amount>: '%s'</translation>
</message>
<message>
<source>Keep the transaction memory pool below <n> megabytes (default: %u)</source>
<translation> <n> ( : %u)</translation>
</message>
<message>
<source>Loading P2P addresses...</source>
<translation> P2P ...</translation>
</message>
<message>
<source>Loading banlist...</source>
<translation> ...</translation>
</message>
<message>
<source>Location of the auth cookie (default: data dir)</source>
<translation> ( : data dir)</translation>
</message>
<message>
<source>Not enough file descriptors available.</source>
<translation> .</translation>
</message>
<message>
<source>Only connect to nodes in network <net> (ipv4, ipv6 or onion)</source>
<translation> <net> (ipv4, ipv6 onion)</translation>
</message>
<message>
<source>Print this help message and exit</source>
<translation> </translation>
</message>
<message>
<source>Print version and exit</source>
<translation> </translation>
</message>
<message>
<source>Prune cannot be configured with a negative value.</source>
<translation> .</translation>
</message>
<message>
<source>Prune mode is incompatible with -txindex.</source>
<translation> -txindex.</translation>
</message>
<message>
<source>Rebuild chain state and block index from the blk*.dat files on disk</source>
<translation> blk*.dat </translation>
</message>
<message>
<source>Rebuild chain state from the currently indexed blocks</source>
<translation> </translation>
</message>
<message>
<source>Replaying blocks...</source>
<translation> ...</translation>
</message>
<message>
<source>Rewinding blocks...</source>
<translation> ...</translation>
</message>
<message>
<source>Send transactions with full-RBF opt-in enabled (RPC only, default: %u)</source>
<translation> full-RBF ( RPC, : %u)</translation>
</message>
<message>
<source>Set database cache size in megabytes (%d to %d, default: %d)</source>
<translation> ( %d %d, : %d)</translation>
</message>
<message>
<source>Specify wallet file (within data directory)</source>
<translation> ( )</translation>
</message>
<message>
<source>The source code is available from %s.</source>
<translation> %s.</translation>
</message>
<message>
<source>Transaction fee and change calculation failed</source>
<translation> </translation>
</message>
<message>
<source>Unable to bind to %s on this computer. %s is probably already running.</source>
<translation> %s . , %s .</translation>
</message>
<message>
<source>Unsupported argument -benchmark ignored, use -debug=bench.</source>
<translation> -benchmark , -debug=bench.</translation>
</message>
<message>
<source>Unsupported argument -debugnet ignored, use -debug=net.</source>
<translation> -debugnet , -debug=net.</translation>
</message>
<message>
<source>Unsupported argument -tor found, use -onion.</source>
<translation> -tor, -onion.</translation>
</message>
<message>
<source>Unsupported logging category %s=%s.</source>
<translation> %s=%s.</translation>
</message>
<message>
<source>Upgrading UTXO database</source>
<translation> UTXO</translation>
</message>
<message>
<source>Use UPnP to map the listening port (default: %u)</source>
<translation> UPnP ( : %u)</translation>
</message>
<message>
<source>Use the test chain</source>
<translation> </translation>
</message>
<message>
<source>User Agent comment (%s) contains unsafe characters.</source>
<translation> (%s) .</translation>
</message>
<message>
<source>Verifying blocks...</source>
<translation> ...</translation>
</message>
<message>
<source>Wallet debugging/testing options:</source>
<translation> / :</translation>
</message>
<message>
<source>Wallet needed to be rewritten: restart %s to complete</source>
<translation> , %s .</translation>
</message>
<message>
<source>Wallet options:</source>
<translation> :</translation>
</message>
<message>
<source>Allow JSON-RPC connections from specified source. Valid for <ip> are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times</source>
<translation> JSON-RPC . <ip> IP (, 1.2.3.4), / (, 1.2.3.4/255.255.255.0) /CIDR (, 1.2.3.4/24). </translation>
</message>
<message>
<source>Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6</source>
<translation> . []: IPv6</translation>
</message>
<message>
<source>Create new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)</source>
<translation> umask 077 ( )</translation>
</message>
<message>
<source>Discover own IP addresses (default: 1 when listening and no -externalip or -proxy)</source>
<translation> IP ( : 1 -externalip -proxy)</translation>
</message>
<message>
<source>Error: Listening for incoming connections failed (listen returned error %s)</source>
<translation>: ( %s)</translation>
</message>
<message>
<source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source>
<translation> , (%s )</translation>
</message>
<message>
<source>Fees (in %s/kB) smaller than this are considered zero fee for relaying, mining and transaction creation (default: %s)</source>
<translation> ( %s/) , , ( : %s)</translation>
</message>
<message>
<source>If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: %u)</source>
<translation> paytxfee , n ( : %u)</translation>
</message>
<message>
<source>Invalid amount for -maxtxfee=<amount>: '%s' (must be at least the minrelay fee of %s to prevent stuck transactions)</source>
<translation> -maxtxfee=<amount>: '%s' ( %s )</translation>
</message>
<message>
<source>Maximum size of data in data carrier transactions we relay and mine (default: %u)</source>
<translation> , ( : %u)</translation>
</message>
<message>
<source>Randomize credentials for every proxy connection. This enables Tor stream isolation (default: %u)</source>
<translation> -. Tor ( : %u)</translation>
</message>
<message>
<source>The transaction amount is too small to send after the fee has been deducted</source>
<translation> </translation>
</message>
<message>
<source>Whitelisted peers cannot be DoS banned and their transactions are always relayed, even if they are already in the mempool, useful e.g. for a gateway</source>
<translation> DoS, , . , , .</translation>
</message>
<message>
<source>You need to rebuild the database using -reindex to go back to unpruned mode. This will redownload the entire blockchain</source>
<translation> -reindex, . </translation>
</message>
<message>
<source>(default: %u)</source>
<translation>( : %u)</translation>
</message>
<message>
<source>Accept public REST requests (default: %u)</source>
<translation> REST- ( : %u)</translation>
</message>
<message>
<source>Automatically create Tor hidden service (default: %d)</source>
<translation> Tor ( : %d)</translation>
</message>
<message>
<source>Connect through SOCKS5 proxy</source>
<translation> SOCKS5 </translation>
</message>
<message>
<source>Error loading %s: You can't disable HD on an already existing HD wallet</source>
<translation> %s: HD HD </translation>
</message>
<message>
<source>Error reading from database, shutting down.</source>
<translation> , .</translation>
</message>
<message>
<source>Error upgrading chainstate database</source>
<translation> </translation>
</message>
<message>
<source>Imports blocks from external blk000??.dat file on startup</source>
<translation> blk000?.dat </translation>
</message>
<message>
<source>Information</source>
<translation></translation>
</message>
<message>
<source>Invalid -onion address or hostname: '%s'</source>
<translation> -onion: '%s'</translation>
</message>
<message>
<source>Invalid -proxy address or hostname: '%s'</source>
<translation> -proxy: '%s'</translation>
</message>
<message>
<source>Invalid amount for -paytxfee=<amount>: '%s' (must be at least %s)</source>
<translation> -paytxfee=<->: '%s' ( %s)</translation>
</message>
<message>
<source>Invalid netmask specified in -whitelist: '%s'</source>
<translation> -whitelist: '%s'</translation>
</message>
<message>
<source>Keep at most <n> unconnectable transactions in memory (default: %u)</source>
<translation> <n> ( : %u)</translation>
</message>
<message>
<source>Need to specify a port with -whitebind: '%s'</source>
<translation> -whitebind: '%s'</translation>
</message>
<message>
<source>Node relay options:</source>
<translation> :</translation>
</message>
<message>
<source>RPC server options:</source>
<translation> RPC:</translation>
</message>
<message>
<source>Reducing -maxconnections from %d to %d, because of system limitations.</source>
<translation> -maxconnections %d %d, - .</translation>
</message>
<message>
<source>Rescan the block chain for missing wallet transactions on startup</source>
<translation> </translation>
</message>
<message>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation> / debug.log</translation>
</message>
<message>
<source>Show all debugging options (usage: --help -help-debug)</source>
<translation> (: --help -help-debug)</translation>
</message>
<message>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation> debug.log ( : 1, -debug)</translation>
</message>
<message>
<source>Signing transaction failed</source>
<translation> </translation>
</message>
<message>
<source>Specified -walletdir "%s" does not exist</source>
<translation> -walletdir "%s" </translation>
</message>
<message>
<source>Specified -walletdir "%s" is a relative path</source>
<translation> -walletdir "%s" </translation>
</message>
<message>
<source>Specified -walletdir "%s" is not a directory</source>
<translation> -walletdir "%s" </translation>
</message>
<message>
<source>The transaction amount is too small to pay the fee</source>
<translation> </translation>
</message>
<message>
<source>This is experimental software.</source>
<translation> .</translation>
</message>
<message>
<source>Tor control port password (default: empty)</source>
<translation> Tor ( : )</translation>
</message>
<message>
<source>Tor control port to use if onion listening enabled (default: %s)</source>
<translation> Tor , onion ( : %s)</translation>
</message>
<message>
<source>Transaction amount too small</source>
<translation> </translation>
</message>
<message>
<source>Transaction too large for fee policy</source>
<translation> .</translation>
</message>
<message>
<source>Transaction too large</source>
<translation> </translation>
</message>
<message>
<source>Unable to bind to %s on this computer (bind returned error %s)</source>
<translation> %s (bind %s)</translation>
</message>
<message>
<source>Unable to generate initial keys</source>
<translation> </translation>
</message>
<message>
<source>Upgrade wallet to latest format on startup</source>
<translation> </translation>
</message>
<message>
<source>Username for JSON-RPC connections</source>
<translation> JSON-RPC</translation>
</message>
<message>
<source>Verifying wallet(s)...</source>
<translation> () ...</translation>
</message>
<message>
<source>Wallet %s resides outside wallet directory %s</source>
<translation> %s %s</translation>
</message>
<message>
<source>Warning</source>
<translation></translation>
</message>
<message>
<source>Warning: unknown new rules activated (versionbit %i)</source>
<translation>: (versionbit %i)</translation>
</message>
<message>
<source>Whether to operate in a blocks only mode (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>You need to rebuild the database using -reindex to change -txindex</source>
<translation> -reindex, -txindex</translation>
</message>
<message>
<source>Zapping all transactions from wallet...</source>
<translation> ...</translation>
</message>
<message>
<source>ZeroMQ notification options:</source>
<translation>ZeroMQ :</translation>
</message>
<message>
<source>Password for JSON-RPC connections</source>
<translation> JSON-RPC</translation>
</message>
<message>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation> , (%s )</translation>
</message>
<message>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation> DNS -addnode, -seednode -connect</translation>
</message>
<message>
<source>(1 = keep tx meta data e.g. account owner and payment request information, 2 = drop tx meta data)</source>
<translation>(1 = : , ; 2 = )</translation>
</message>
<message>
<source>-maxtxfee is set very high! Fees this large could be paid on a single transaction.</source>
<translation> -maxtxfee. .</translation>
</message>
<message>
<source>Bind to given address to listen for JSON-RPC connections. This option is ignored unless -rpcallowip is also passed. Port is optional and overrides -rpcport. Use [host]:port notation for IPv6. This option can be specified multiple times (default: 127.0.0.1 and ::1 i.e., localhost, or if -rpcallowip has been specified, 0.0.0.0 and :: i.e., all addresses)</source>
<translation> JSON-RPC . , -rpcallowip. -rpcport. []: IPv6. ( : 127.0.0.1 ::1, .. localhost, , -rpcallowip, 0.0.0.0 ::, .. )</translation>
</message>
<message>
<source>Do not keep transactions in the mempool longer than <n> hours (default: %u)</source>
<translation> , <n> ( %u)</translation>
</message>
<message>
<source>Equivalent bytes per sigop in transactions for relay and mining (default: %u)</source>
<translation> sigop ( : %u)</translation>
</message>
<message>
<source>Error loading %s: You can't enable HD on an already existing non-HD wallet</source>
<translation> %s: HD -HD </translation>
</message>
<message>
<source>Error loading wallet %s. -wallet parameter must only specify a filename (not a path).</source>
<translation> %s. -wallet , .</translation>
</message>
<message>
<source>Fees (in %s/kB) smaller than this are considered zero fee for transaction creation (default: %s)</source>
<translation> ( %s/) ( : %s)</translation>
</message>
<message>
<source>Force relay of transactions from whitelisted peers even if they violate local relay policy (default: %d)</source>
<translation> , , ( : %d)</translation>
</message>
<message>
<source>How thorough the block verification of -checkblocks is (0-4, default: %u)</source>
<translation> -checkblocks (0-4, : %u)</translation>
</message>
<message>
<source>Maintain a full transaction index, used by the getrawtransaction rpc call (default: %u)</source>
<translation> , RPC- getrawtransaction ( : %u)</translation>
</message>
<message>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>Output debugging information (default: %u, supplying <category> is optional)</source>
<translation> ( : %u, <category> )</translation>
</message>
<message>
<source>Set maximum BIP141 block weight to this * 4. Deprecated, use blockmaxweight</source>
<translation> BIP141 * 4. , blockmaxweight</translation>
</message>
<message>
<source>Sets the serialization of raw transaction or block hex returned in non-verbose mode, non-segwit(0) or segwit(1) (default: %d)</source>
<translation> , , non-segwit(0) segwit(1) ( : %d)</translation>
</message>
<message>
<source>Specify directory to hold wallets (default: <datadir>/wallets if it exists, otherwise <datadir>)</source>
<translation> ( : <datadir>/wallets , <datadir>)</translation>
</message>
<message>
<source>Specify location of debug log file: this can be an absolute path or a path relative to the data directory (default: %s)</source>
<translation> : ( : %s)</translation>
</message>
<message>
<source>Support filtering of blocks and transaction with bloom filters (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>The fee rate (in %s/kB) that indicates your tolerance for discarding change by adding it to the fee (default: %s). Note: An output is discarded if it is dust at this rate, but we will always discard up to the dust relay fee and a discard fee above that is limited by the fee estimate for the longest target</source>
<translation> ( %s/), ( : %s).</translation>
</message>
<message>
<source>This is the transaction fee you may pay when fee estimates are not available.</source>
<translation> , , .</translation>
</message>
<message>
<source>This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit %s and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard.</source>
<translation> , OpenSSL Project OpenSSL Toolkit %s , Eric Young UPnP, Thomas Bernard.</translation>
</message>
<message>
<source>Total length of network version string (%i) exceeds maximum length (%i). Reduce the number or size of uacomments.</source>
<translation> (%i) (%i). uacomments.</translation>
</message>
<message>
<source>Tries to keep outbound traffic under the given target (in MiB per 24h), 0 = no limit (default: %d)</source>
<translation> ( 24), 0 = ( : %d)</translation>
</message>
<message>
<source>Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported.</source>
<translation> -socks. SOCKS , SOCKS5.</translation>
</message>
<message>
<source>Unsupported argument -whitelistalwaysrelay ignored, use -whitelistrelay and/or -whitelistforcerelay.</source>
<translation> -whitelistalwaysrelay , -whitelistrelay / -whitelistforcerelay.</translation>
</message>
<message>
<source>Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: %s)</source>
<translation> SOCKS5 Tor ( : %s)</translation>
</message>
<message>
<source>Warning: Unknown block versions being mined! It's possible unknown rules are in effect</source>
<translation>: ! .</translation>
</message>
<message>
<source>Warning: Wallet file corrupt, data salvaged! Original %s saved as %s in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>: , ! %s %s %s; , .</translation>
</message>
<message>
<source>Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) or CIDR notated network (e.g. 1.2.3.0/24). Can be specified multiple times.</source>
<translation> , IP (. 1.2.3.4) CIDR- (. 1.2.3.0/24). .</translation>
</message>
<message>
<source>%s is set very high!</source>
<translation>%s !</translation>
</message>
<message>
<source>(default: %s)</source>
<translation>( : %s)</translation>
</message>
<message>
<source>Always query for peer addresses via DNS lookup (default: %u)</source>
<translation> DNS ( : %u)</translation>
</message>
<message>
<source>Error loading wallet %s. -wallet filename must be a regular file.</source>
<translation> %s. -wallet .</translation>
</message>
<message>
<source>Error loading wallet %s. Duplicate -wallet filename specified.</source>
<translation> %s. -wallet .</translation>
</message>
<message>
<source>Error loading wallet %s. Invalid characters in -wallet filename.</source>
<translation> %s. -wallet.</translation>
</message>
<message>
<source>How many blocks to check at startup (default: %u, 0 = all)</source>
<translation> ( : %u, 0 = )</translation>
</message>
<message>
<source>Include IP addresses in debug output (default: %u)</source>
<translation> IP- ( : %u)</translation>
</message>
<message>
<source>Keypool ran out, please call keypoolrefill first</source>
<translation> , , keypoolrefill</translation>
</message>
<message>
<source>Listen for JSON-RPC connections on <port> (default: %u or testnet: %u)</source>
<translation> JSON-RPC <> ( : %u %u )</translation>
</message>
<message>
<source>Listen for connections on <port> (default: %u or testnet: %u)</source>
<translation> <port> ( : %u %u )</translation>
</message>
<message>
<source>Maintain at most <n> connections to peers (default: %u)</source>
<translation> <n> ( : %u)</translation>
</message>
<message>
<source>Make the wallet broadcast transactions</source>
<translation> </translation>
</message>
<message>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)</source>
<translation> , <n>*1000 ( : %u)</translation>
</message>
<message>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: %u)</source>
<translation> , <n>*1000 ( : %u)</translation>
</message>
<message>
<source>Prepend debug output with timestamp (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>Relay and mine data carrier transactions (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>Relay non-P2SH multisig (default: %u)</source>
<translation> -P2SH ( : %u)</translation>
</message>
<message>
<source>Set key pool size to <n> (default: %u)</source>
<translation> <n> ( : %u)</translation>
</message>
<message>
<source>Set maximum BIP141 block weight (default: %d)</source>
<translation> BIP141 ( : %d)</translation>
</message>
<message>
<source>Set the number of threads to service RPC calls (default: %d)</source>
<translation> RPC ( : %d)</translation>
</message>
<message>
<source>Specify configuration file (default: %s)</source>
<translation> ( : %s)</translation>
</message>
<message>
<source>Specify connection timeout in milliseconds (minimum: 1, default: %d)</source>
<translation> - (: 1, : %d)</translation>
</message>
<message>
<source>Specify pid file (default: %s)</source>
<translation> pid- ( : %s)</translation>
</message>
<message>
<source>Spend unconfirmed change when sending transactions (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>Starting network threads...</source>
<translation> ...</translation>
</message>
<message>
<source>The wallet will avoid paying less than the minimum relay fee.</source>
<translation> , .</translation>
</message>
<message>
<source>This is the minimum transaction fee you pay on every transaction.</source>
<translation> , .</translation>
</message>
<message>
<source>This is the transaction fee you will pay if you send a transaction.</source>
<translation> , .</translation>
</message>
<message>
<source>Threshold for disconnecting misbehaving peers (default: %u)</source>
<translation> ( : %u)</translation>
</message>
<message>
<source>Transaction amounts must not be negative</source>
<translation> </translation>
</message>
<message>
<source>Transaction has too long of a mempool chain</source>
<translation> .</translation>
</message>
<message>
<source>Transaction must have at least one recipient</source>
<translation> </translation>
</message>
<message>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation> -onlynet : '%s'</translation>
</message>
<message>
<source>Insufficient funds</source>
<translation> </translation>
</message>
<message>
<source>Loading block index...</source>
<translation> ...</translation>
</message>
<message>
<source>Loading wallet...</source>
<translation> ...</translation>
</message>
<message>
<source>Cannot downgrade wallet</source>
<translation> </translation>
</message>
<message>
<source>Rescanning...</source>
<translation>...</translation>
</message>
<message>
<source>Done loading</source>
<translation> </translation>
</message>
<message>
<source>Error</source>
<translation></translation>
</message>
</context>
</TS>
``` | /content/code_sandbox/src/qt/locale/verge_ru.ts | xml | 2016-01-23T04:20:14 | 2024-08-13T18:07:31 | verge | vergecurrency/verge | 1,402 | 34,410 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="VisualBench" default="help">
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>
``` | /content/code_sandbox/third_party/skia/platform_tools/android/visualbench/build.xml | xml | 2016-09-27T03:41:10 | 2024-08-16T10:42:57 | miniblink49 | weolar/miniblink49 | 7,069 | 526 |
```xml
<!-- LibreSprite -->
<gui>
<window id="file_selector" text="">
<vbox id="main">
<box horizontal="true">
<box horizontal="true" noborders="true">
<button text="" id="go_back_button" bevel="2 0 2 0" tooltip="Go back one folder" />
<button text="" id="go_forward_button" bevel="0 2 0 2" tooltip="Go forward one folder" />
</box>
<button text="" id="go_up_button" tooltip="Up to parent folder (Backspace)" />
<button text="" id="new_folder_button" tooltip="New folder" />
<combobox id="location" expansive="true" />
</box>
<vbox id="file_view_placeholder" expansive="true" />
<grid columns="2">
<label text="File name:" />
<box id="file_name_placeholder" cell_align="horizontal" />
<label text="File type:" />
<hbox cell_align="horizontal">
<combobox id="file_type" minwidth="70" />
<hbox id="resize_options">
<label text="Resize:" />
<combobox id="resize">
<listitem text="25%" value="0.25" />
<listitem text="50%" value="0.5" />
<listitem text="100%" value="1" />
<listitem text="200%" value="2" />
<listitem text="300%" value="3" />
<listitem text="400%" value="4" />
<listitem text="500%" value="5" />
<listitem text="600%" value="6" />
<listitem text="700%" value="7" />
<listitem text="800%" value="8" />
<listitem text="900%" value="9" />
<listitem text="1000%" value="10" />
</combobox>
</hbox>
<boxfiller />
<box horizontal="true" homogeneous="true">
<button text="&OK" closewindow="true" id="ok" magnet="true" width="60" />
<button text="&Cancel" closewindow="true" id="cancel" />
</box>
</hbox>
</grid>
</vbox>
</window>
</gui>
``` | /content/code_sandbox/data/widgets/file_selector.xml | xml | 2016-08-31T17:26:42 | 2024-08-16T11:45:24 | LibreSprite | LibreSprite/LibreSprite | 4,717 | 532 |
```xml
export { List, listClassNames, renderList_unstable, useListStyles_unstable, useList_unstable } from './List';
export type { ListProps, ListSlots, ListState } from './List';
export {
ListItem,
listItemClassNames,
renderListItem_unstable,
useListItemStyles_unstable,
useListItem_unstable,
} from './ListItem';
export type { ListItemProps, ListItemSlots, ListItemState } from './ListItem';
export { useListSelection } from './hooks';
``` | /content/code_sandbox/packages/react-components/react-migration-v0-v9/library/src/components/List/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 105 |
```xml
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { AvatarModule } from 'primeng/avatar';
import { BadgeModule } from 'primeng/badge';
import { AvatarGroupModule } from 'primeng/avatargroup';
import { InputTextModule } from 'primeng/inputtext';
import { AppDocModule } from '@layout/doc/app.doc.module';
import { AppCodeModule } from '@layout/doc/app.code.component';
import { GroupDoc } from './avatargroupdoc';
import { IconDoc } from './icondoc';
import { ImageDoc } from './imagedoc';
import { ImportDoc } from './importdoc';
import { LabelDoc } from './labeldoc';
import { AvatarStyleDoc } from './avatarstyledoc';
import { ShapeDoc } from './shapedoc';
import { SizeDoc } from './sizedoc';
import { BadgeDoc } from './badgedoc';
import { TemplateDoc } from './templatedoc';
import { AvatarGroupStyleDoc } from './avatargroupstyledoc';
import { AccessibilityDoc } from './accessibilitydoc';
@NgModule({
imports: [CommonModule, RouterModule, AppCodeModule, InputTextModule, FormsModule, AppDocModule, AvatarModule, AvatarGroupModule, BadgeModule],
declarations: [ImportDoc, LabelDoc, IconDoc, GroupDoc, ImageDoc, AvatarStyleDoc, AvatarGroupStyleDoc, ShapeDoc, SizeDoc, BadgeDoc, TemplateDoc, AccessibilityDoc],
exports: [AppDocModule]
})
export class AvatarDocModule {}
``` | /content/code_sandbox/src/app/showcase/doc/avatar/avatardoc.module.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 347 |
```xml
<controls:ContentPopup x:Class="Telegram.Views.Settings.Password.SettingsPasswordEmailCodePopup"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="using:Telegram.Views.Popups"
xmlns:controls="using:Telegram.Controls"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
mc:Ignorable="d"
PrimaryButtonText="OK"
SecondaryButtonText="Cancel"
PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
SecondaryButtonClick="ContentDialog_SecondaryButtonClick"
Padding="24,12,24,24">
<StackPanel>
<controls:AnimatedImage Source="ms-appx:///Assets/Animations/TwoFactorSetupCode.tgs"
IsCachingEnabled="False"
AutoPlay="True"
FrameSize="140,140"
DecodeFrameType="Logical"
LoopCount="1"
Width="140"
Height="140"
Margin="0,0,0,12" />
<TextBlock x:Name="Title"
Text="{CustomResource VerificationCode}"
FontSize="20"
FontFamily="XamlAutoFontFamily"
FontWeight="SemiBold"
TextAlignment="Center"
VerticalAlignment="Top"
Margin="0,0,0,8" />
<TextBlock x:Name="Subtitle"
Text="{CustomResource EmailPasswordConfirmText2}"
Style="{StaticResource BodyTextBlockStyle}"
TextAlignment="Center" />
<TextBox x:Name="Field"
PlaceholderText="{CustomResource Code}"
TextChanged="Field_TextChanged"
KeyDown="Field_KeyDown"
InputScope="NumericPin"
Margin="0,12,0,0" />
<TextBlock Style="{StaticResource CaptionTextBlockStyle}"
Margin="0,8,0,0">
<Hyperlink Click="Help_Click">
<Run x:Name="Help"
Text="{CustomResource ForgotPassword}" />
</Hyperlink>
</TextBlock>
</StackPanel>
</controls:ContentPopup>
``` | /content/code_sandbox/Telegram/Views/Settings/Password/SettingsPasswordEmailCodePopup.xaml | xml | 2016-05-23T09:03:33 | 2024-08-16T16:17:48 | Unigram | UnigramDev/Unigram | 3,744 | 436 |
```xml
import { HeaderRuleActionType, QueryParamModificationType } from "types";
import { RewriteRuleActionType } from "./types";
export const rewriteRuleActionTypes: Record<
number,
RewriteRuleActionType | HeaderRuleActionType | QueryParamModificationType
> = {
1: HeaderRuleActionType.ADD,
2: HeaderRuleActionType.REMOVE,
3: HeaderRuleActionType.MODIFY,
4: RewriteRuleActionType.HOST,
5: RewriteRuleActionType.PATH,
6: RewriteRuleActionType.URL,
7: RewriteRuleActionType.BODY,
8: QueryParamModificationType.ADD,
9: QueryParamModificationType.ADD,
10: QueryParamModificationType.REMOVE,
11: RewriteRuleActionType.STATUS,
};
``` | /content/code_sandbox/app/src/modules/rule-adapters/charles-rule-adapters/rewrite/constants.ts | xml | 2016-12-01T04:36:06 | 2024-08-16T19:12:19 | requestly | requestly/requestly | 2,121 | 175 |
```xml
import { Component, NgZone } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { GeneratorComponent as BaseGeneratorComponent } from "@bitwarden/angular/tools/generator/components/generator.component";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.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 { DialogService, ToastService } from "@bitwarden/components";
import {
PasswordGenerationServiceAbstraction,
UsernameGenerationServiceAbstraction,
} from "@bitwarden/generator-legacy";
import { PasswordGeneratorHistoryComponent } from "./password-generator-history.component";
@Component({
selector: "app-generator",
templateUrl: "generator.component.html",
})
export class GeneratorComponent extends BaseGeneratorComponent {
constructor(
passwordGenerationService: PasswordGenerationServiceAbstraction,
usernameGenerationService: UsernameGenerationServiceAbstraction,
accountService: AccountService,
platformUtilsService: PlatformUtilsService,
i18nService: I18nService,
logService: LogService,
route: ActivatedRoute,
ngZone: NgZone,
private dialogService: DialogService,
toastService: ToastService,
) {
super(
passwordGenerationService,
usernameGenerationService,
platformUtilsService,
accountService,
i18nService,
logService,
route,
ngZone,
window,
toastService,
);
if (platformUtilsService.isSelfHost()) {
// Allow only valid email forwarders for self host
this.forwardOptions = this.forwardOptions.filter((forwarder) => forwarder.validForSelfHosted);
}
}
get isSelfHosted(): boolean {
return this.platformUtilsService.isSelfHost();
}
async history() {
this.dialogService.open(PasswordGeneratorHistoryComponent);
}
lengthChanged() {
document.getElementById("length").focus();
}
minNumberChanged() {
document.getElementById("min-number").focus();
}
minSpecialChanged() {
document.getElementById("min-special").focus();
}
}
``` | /content/code_sandbox/apps/web/src/app/tools/generator.component.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 481 |
```xml
<?xml version="1.0"?>
<robot name="turtlebot3_waffle_sim" xmlns:xacro="path_to_url">
<xacro:arg name="laser_visual" default="false"/>
<xacro:arg name="camera_visual" default="false"/>
<xacro:arg name="imu_visual" default="false"/>
<gazebo reference="base_link">
<material>Gazebo/DarkGrey</material>
</gazebo>
<gazebo reference="wheel_left_link">
<mu1>0.1</mu1>
<mu2>0.1</mu2>
<kp>500000.0</kp>
<kd>10.0</kd>
<minDepth>0.001</minDepth>
<maxVel>0.1</maxVel>
<fdir1>1 0 0</fdir1>
<material>Gazebo/FlatBlack</material>
</gazebo>
<gazebo reference="wheel_right_link">
<mu1>0.1</mu1>
<mu2>0.1</mu2>
<kp>500000.0</kp>
<kd>10.0</kd>
<minDepth>0.001</minDepth>
<maxVel>0.1</maxVel>
<fdir1>1 0 0</fdir1>
<material>Gazebo/FlatBlack</material>
</gazebo>
<gazebo reference="caster_back_right_link">
<mu1>0.1</mu1>
<mu2>0.1</mu2>
<kp>1000000.0</kp>
<kd>100.0</kd>
<minDepth>0.001</minDepth>
<maxVel>1.0</maxVel>
<material>Gazebo/FlatBlack</material>
</gazebo>
<gazebo reference="caster_back_left_link">
<mu1>0.1</mu1>
<mu2>0.1</mu2>
<kp>1000000.0</kp>
<kd>100.0</kd>
<minDepth>0.001</minDepth>
<maxVel>1.0</maxVel>
<material>Gazebo/FlatBlack</material>
</gazebo>
<gazebo reference="imu_link">
<sensor type="imu" name="imu">
<always_on>true</always_on>
<visualize>$(arg imu_visual)</visualize>
</sensor>
<material>Gazebo/Grey</material>
</gazebo>
<gazebo>
<plugin name="turtlebot3_waffle_controller" filename="libgazebo_ros_diff_drive.so">
<commandTopic>cmd_vel</commandTopic>
<odometryTopic>odom</odometryTopic>
<odometryFrame>odom</odometryFrame>
<odometrySource>world</odometrySource>
<publishOdomTF>true</publishOdomTF>
<robotBaseFrame>base_footprint</robotBaseFrame>
<publishWheelTF>false</publishWheelTF>
<publishTf>true</publishTf>
<publishWheelJointState>true</publishWheelJointState>
<legacyMode>false</legacyMode>
<updateRate>30</updateRate>
<leftJoint>wheel_left_joint</leftJoint>
<rightJoint>wheel_right_joint</rightJoint>
<wheelSeparation>0.287</wheelSeparation>
<wheelDiameter>0.066</wheelDiameter>
<wheelAcceleration>1</wheelAcceleration>
<wheelTorque>10</wheelTorque>
<rosDebugLevel>na</rosDebugLevel>
</plugin>
</gazebo>
<gazebo>
<plugin name="imu_plugin" filename="libgazebo_ros_imu.so">
<alwaysOn>true</alwaysOn>
<bodyName>imu_link</bodyName>
<frameName>imu_link</frameName>
<topicName>imu</topicName>
<serviceName>imu_service</serviceName>
<gaussianNoise>0.0</gaussianNoise>
<updateRate>0</updateRate>
<imu>
<noise>
<type>gaussian</type>
<rate>
<mean>0.0</mean>
<stddev>2e-4</stddev>
<bias_mean>0.0000075</bias_mean>
<bias_stddev>0.0000008</bias_stddev>
</rate>
<accel>
<mean>0.0</mean>
<stddev>1.7e-2</stddev>
<bias_mean>0.1</bias_mean>
<bias_stddev>0.001</bias_stddev>
</accel>
</noise>
</imu>
</plugin>
</gazebo>
<gazebo reference="base_scan">
<material>Gazebo/FlatBlack</material>
<sensor type="ray" name="lds_lfcd_sensor">
<pose>0 0 0 0 0 0</pose>
<visualize>$(arg laser_visual)</visualize>
<update_rate>5</update_rate>
<ray>
<scan>
<horizontal>
<samples>360</samples>
<resolution>1</resolution>
<min_angle>0.0</min_angle>
<max_angle>6.28319</max_angle>
</horizontal>
</scan>
<range>
<min>0.120</min>
<max>3.5</max>
<resolution>0.015</resolution>
</range>
<noise>
<type>gaussian</type>
<mean>0.0</mean>
<stddev>0.01</stddev>
</noise>
</ray>
<plugin name="gazebo_ros_lds_lfcd_controller" filename="libgazebo_ros_laser.so">
<topicName>scan</topicName>
<frameName>base_scan</frameName>
</plugin>
</sensor>
</gazebo>
<gazebo reference="camera_rgb_frame">
<sensor type="depth" name="realsense_R200">
<always_on>true</always_on>
<visualize>$(arg camera_visual)</visualize>
<camera>
<horizontal_fov>1.3439</horizontal_fov>
<image>
<width>1920</width>
<height>1080</height>
<format>R8G8B8</format>
</image>
<depth_camera></depth_camera>
<clip>
<near>0.03</near>
<far>100</far>
</clip>
</camera>
<plugin name="camera_controller" filename="libgazebo_ros_openni_kinect.so">
<baseline>0.2</baseline>
<alwaysOn>true</alwaysOn>
<updateRate>30.0</updateRate>
<cameraName>camera</cameraName>
<frameName>camera_rgb_optical_frame</frameName>
<imageTopicName>rgb/image_raw</imageTopicName>
<depthImageTopicName>depth/image_raw</depthImageTopicName>
<pointCloudTopicName>depth/points</pointCloudTopicName>
<cameraInfoTopicName>rgb/camera_info</cameraInfoTopicName>
<depthImageCameraInfoTopicName>depth/camera_info</depthImageCameraInfoTopicName>
<pointCloudCutoff>0.4</pointCloudCutoff>
<hackBaseline>0.07</hackBaseline>
<distortionK1>0.0</distortionK1>
<distortionK2>0.0</distortionK2>
<distortionK3>0.0</distortionK3>
<distortionT1>0.0</distortionT1>
<distortionT2>0.0</distortionT2>
<CxPrime>0.0</CxPrime>
<Cx>0.0</Cx>
<Cy>0.0</Cy>
<focalLength>0</focalLength>
<hackBaseline>0</hackBaseline>
</plugin>
</sensor>
</gazebo>
</robot>
``` | /content/code_sandbox/turtlebot3_description/urdf/turtlebot3_waffle.gazebo.xacro | xml | 2016-06-21T07:14:22 | 2024-08-16T09:12:21 | turtlebot3 | ROBOTIS-GIT/turtlebot3 | 1,457 | 1,868 |
```xml
import {cleanObject, getValue} from "@tsed/core";
import {OperationVerbs} from "../../constants/OperationVerbs.js";
import {JsonMethodStore} from "../../domain/JsonMethodStore.js";
import {JsonMethodPath} from "../../domain/JsonOperation.js";
import {SpecTypes} from "../../domain/SpecTypes.js";
import {JsonSchemaOptions} from "../../interfaces/JsonSchemaOptions.js";
import {execMapper, registerJsonSchemaMapper} from "../../registries/JsonSchemaMapperContainer.js";
import {makeOf} from "../../utils/somethingOf.js";
export function messageMapper(
jsonOperationStore: JsonMethodStore,
operationPath: JsonMethodPath,
{tags = [], defaultTags = [], ...options}: JsonSchemaOptions = {}
) {
const {path: event, method} = operationPath;
const messageKey = String(event);
let message: any = getValue(
options.components,
"messages." + event,
cleanObject({
description: jsonOperationStore.operation.get("description"),
summary: jsonOperationStore.operation.get("summary")
})
);
if (method.toUpperCase() === OperationVerbs.PUBLISH) {
const payload = execMapper("payload", [jsonOperationStore, operationPath], options);
if (payload) {
message.payload = payload;
}
const responses = jsonOperationStore.operation
.getAllowedOperationPath([OperationVerbs.SUBSCRIBE])
.map((operationPath) => {
return execMapper("message", [jsonOperationStore, operationPath], options);
})
.filter(Boolean);
const responsesSchema = makeOf("oneOf", responses);
if (responsesSchema) {
message["x-response"] = responsesSchema;
}
} else {
const response = execMapper("response", [jsonOperationStore, operationPath], options);
if (response) {
message["x-response"] = response;
}
}
options.components!.messages = options.components!.messages || {};
options.components!.messages[messageKey] = message;
return {$ref: `#/components/messages/${messageKey}`};
}
registerJsonSchemaMapper("message", messageMapper, SpecTypes.ASYNCAPI);
``` | /content/code_sandbox/packages/specs/schema/src/components/async-api/messageMapper.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 464 |
```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 incrmrmse = require( './index' );
// TESTS //
// The function returns an accumulator function...
{
incrmrmse( 3 ); // $ExpectType accumulator
}
// The compiler throws an error if the function is provided an argument which is not a number...
{
incrmrmse( '5' ); // $ExpectError
incrmrmse( true ); // $ExpectError
incrmrmse( false ); // $ExpectError
incrmrmse( null ); // $ExpectError
incrmrmse( undefined ); // $ExpectError
incrmrmse( [] ); // $ExpectError
incrmrmse( {} ); // $ExpectError
incrmrmse( ( x: number ): number => x ); // $ExpectError
}
// The compiler throws an error if the function is provided an invalid number of arguments...
{
incrmrmse(); // $ExpectError
incrmrmse( 2, 3 ); // $ExpectError
}
// The function returns an accumulator function which returns an accumulated result...
{
const acc = incrmrmse( 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 = incrmrmse( 3 );
acc( '5', 2.0 ); // $ExpectError
acc( true, 2.0 ); // $ExpectError
acc( false, 2.0 ); // $ExpectError
acc( null, 2.0 ); // $ExpectError
acc( [], 2.0 ); // $ExpectError
acc( {}, 2.0 ); // $ExpectError
acc( ( x: number ): number => x, 2.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/mrmse/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 584 |
```xml
<Documentation>
<Docs DocId="T:UIKit.UIActionSheet">
<summary>A <see cref="T:UIKit.UIView" /> that displays an action sheet with one or more buttons. (As of iOS 8, devs should use <see cref="T:UIKit.UIAlertController" /> rather than this class.)</summary>
<remarks>
<para>As of iOS 8, app devs should use <see cref="T:UIKit.UIAlertController" /> rather than this class. Extensions may not use this class at all.</para>
<para>
The <see cref="T:UIKit.UIActionSheet" /> control is a convenient way to allow the application user to choose among alternative actions. The following code and diagram are taken from the "Action Sheets" section of the "iOS Standard Controls" sample.
</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
protected void HandleBtnActionSheetWithOtherButtonsTouchUpInside (object sender, EventArgs e)
{
actionSheet = new UIActionSheet ("action sheet with other buttons");
actionSheet.AddButton ("delete");
actionSheet.AddButton ("cancel");
actionSheet.AddButton ("a different option!");
actionSheet.AddButton ("another option");
actionSheet.DestructiveButtonIndex = 0;
actionSheet.CancelButtonIndex = 1;
//actionSheet.FirstOtherButtonIndex = 2;
actionSheet.Clicked += delegate(object a, UIButtonEventArgs b) {
Console.WriteLine ("Button " + b.ButtonIndex.ToString () + " clicked");
};
actionSheet.ShowInView (View);
}
]]></code>
</example>
<para>
<img href="~/UIKit/_images/UIKit.UIActionSheet.png" alt="Screenshot showing the UIActionSheet" />
</para>
<para>
The Xamarin API supports two styles of event notification: the Objective-C style that uses a delegate class or the C# style using event notifications.
</para>
<para>
The C# style allows the user to add or remove event handlers at runtime by assigning to the events of properties of this class. Event handlers can be anyone of a method, an anonymous methods or a lambda expression. Using the C# style events or properties will override any manual settings to the Objective-C Delegate or WeakDelegate settings.
</para>
<para>The Objective-C style requires the user to create a new class derived from <see cref="T:UIKit.UIActionSheetDelegate" /> class and assign it to the <format type="text/html"><a href="path_to_url" title="P:UIKit.Delegate">P:UIKit.Delegate</a></format> property. Alternatively, for low-level control, by creating a class derived from <see cref="T:Foundation.NSObject" /> which has every entry point properly decorated with an [Export] attribute. The instance of this object can then be assigned to the <see cref="P:UIKit.UIActionSheet.WeakDelegate" /> property.
</para>
</remarks>
<related type="externalDocumentation" href="path_to_url">Apple documentation for <c>UIActionSheet</c></related>
</Docs>
</Documentation>
``` | /content/code_sandbox/docs/api/UIKit/UIActionSheet.xml | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 672 |
```xml
import * as nls from "vscode-nls";
import {
basicCheck,
createNotFoundMessage,
createVersionErrorMessage,
parseVersion,
} from "../util";
import { ValidationCategoryE, IValidation, ValidationResultT } from "./types";
nls.config({
messageFormat: nls.MessageFormat.bundle,
bundleFormat: nls.BundleFormat.standalone,
})();
const toLocale = nls.loadMessageBundle();
const label = "ADB";
async function test(): Promise<ValidationResultT> {
const result = await basicCheck({
command: "adb",
versionRange: "30.0.0",
getVersion: parseVersion.bind(null, "adb --version", /Version \d+\.\d+\.\d+/),
});
if (!result.exists) {
return {
status: "failure",
comment: createNotFoundMessage(label),
};
}
if (result.versionCompare === undefined) {
return {
status: "failure",
comment: createVersionErrorMessage(label),
};
}
if (result.versionCompare === -1) {
return {
status: "partial-success",
comment:
"Detected version is older than 30.0.0. " +
"Please update SDK tools in case of errors",
};
}
return { status: "success" };
}
const adbAndroid: IValidation = {
label,
description: toLocale(
"AdbCheckAndroidDescription",
"Required for app installation. Minimal version is 12",
),
category: ValidationCategoryE.Android,
exec: test,
};
const adbExpo: IValidation = {
label,
description: toLocale(
"AdbCheckExpoDescription",
"Required for correct extension integration with Expo",
),
category: ValidationCategoryE.Expo,
exec: test,
};
export { adbAndroid, adbExpo };
``` | /content/code_sandbox/src/extension/services/validationService/checks/adb.ts | xml | 2016-01-20T21:10:07 | 2024-08-16T15:29:52 | vscode-react-native | microsoft/vscode-react-native | 2,617 | 402 |
```xml
import * as React from 'react';
import { Fabric } from 'office-ui-fabric-react';
import { DisplayMode } from '@microsoft/sp-core-library';
import { Placeholder } from "@pnp/spfx-controls-react/lib/PlaceHolder";
import { IConfigProps } from './IConfigProps';
export class Config extends React.Component<IConfigProps, {}> {
public render(): JSX.Element {
return (
<Fabric>
{ this.props.displayMode === DisplayMode.Edit &&
<Placeholder
iconName="CheckboxComposite"
iconText="Custom Properties"
description="Set custom properties."
buttonLabel="Configure"
onConfigure={ this.props.configure } />
}
{ this.props.displayMode === DisplayMode.Read &&
<Placeholder
iconName="CheckboxComposite"
iconText="Custom Properties"
description="Set custom properties." />
}
</Fabric>
);
}
}
``` | /content/code_sandbox/samples/react-custompropertypanecontrols/src/webparts/dropdownWithRemoteData/components/Config/Config.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 189 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.