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 import cn from "classnames"; import React, { FunctionComponent } from "react"; import { withForwardRef } from "../hocs"; import useShadowRootBreakpointClasses from "./useShadowRootBreakpointClasses"; type Props = React.HTMLAttributes<HTMLDivElement> & { forwardRef: React.Ref<HTMLDivElement>; }; /** * Div with applied breakpoint classNames according to the shadow root. */ const DivWithShadowBreakpointClasses: FunctionComponent<Props> = ({ forwardRef, className, ...rest }) => { const breakpointClasses = useShadowRootBreakpointClasses(); return ( <div {...rest} ref={forwardRef} className={cn(className, breakpointClasses)} /> ); }; const enhanced = withForwardRef(DivWithShadowBreakpointClasses); export default enhanced; ```
/content/code_sandbox/client/src/core/client/ui/encapsulation/DivWithShadowBreakpointClasses.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
169
```xml declare var ajv: { (options?: ajv.Options): ajv.Ajv; new(options?: ajv.Options): ajv.Ajv; ValidationError: typeof AjvErrors.ValidationError; MissingRefError: typeof AjvErrors.MissingRefError; $dataMetaSchema: object; } declare namespace AjvErrors { class ValidationError extends Error { constructor(errors: Array<ajv.ErrorObject>); message: string; errors: Array<ajv.ErrorObject>; ajv: true; validation: true; } class MissingRefError extends Error { constructor(baseId: string, ref: string, message?: string); static message: (baseId: string, ref: string) => string; message: string; missingRef: string; missingSchema: string; } } declare namespace ajv { type ValidationError = AjvErrors.ValidationError; type MissingRefError = AjvErrors.MissingRefError; interface Ajv { /** * Validate data using schema * Schema will be compiled and cached (using serialized JSON as key, [fast-json-stable-stringify](path_to_url is used to serialize by default). * @param {string|object|Boolean} schemaKeyRef key, ref or schema object * @param {Any} data to be validated * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`). */ validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike<any>; /** * Create validating function for passed schema. * @param {object|Boolean} schema schema object * @return {Function} validating function */ compile(schema: object | boolean): ValidateFunction; /** * Creates validating function for passed schema with asynchronous loading of missing schemas. * `loadSchema` option should be a function that accepts schema uri and node-style callback. * @this Ajv * @param {object|Boolean} schema schema object * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped * @param {Function} callback optional node-style callback, it is always called with 2 parameters: error (or null) and validating function. * @return {PromiseLike<ValidateFunction>} validating function */ compileAsync(schema: object | boolean, meta?: Boolean, callback?: (err: Error, validate: ValidateFunction) => any): PromiseLike<ValidateFunction>; /** * Adds schema to the instance. * @param {object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored. * @param {string} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`. * @return {Ajv} this for method chaining */ addSchema(schema: Array<object> | object, key?: string): Ajv; /** * Add schema that will be used to validate other schemas * options in META_IGNORE_OPTIONS are alway set to false * @param {object} schema schema object * @param {string} key optional schema key * @return {Ajv} this for method chaining */ addMetaSchema(schema: object, key?: string): Ajv; /** * Validate schema * @param {object|Boolean} schema schema to validate * @return {Boolean} true if schema is valid */ validateSchema(schema: object | boolean): boolean; /** * Get compiled schema from the instance by `key` or `ref`. * @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id). * @return {Function} schema validating function (with property `schema`). Returns undefined if keyRef can't be resolved to an existing schema. */ getSchema(keyRef: string): ValidateFunction | undefined; /** * Remove cached schema(s). * If no parameter is passed all schemas but meta-schemas are removed. * If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed. * Even if schema is referenced by other schemas it still can be removed as other schemas have local references. * @param {string|object|RegExp|Boolean} schemaKeyRef key, ref, pattern to match key/ref or schema object * @return {Ajv} this for method chaining */ removeSchema(schemaKeyRef?: object | string | RegExp | boolean): Ajv; /** * Add custom format * @param {string} name format name * @param {string|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid) * @return {Ajv} this for method chaining */ addFormat(name: string, format: FormatValidator | FormatDefinition): Ajv; /** * Define custom keyword * @this Ajv * @param {string} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords. * @param {object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`. * @return {Ajv} this for method chaining */ addKeyword(keyword: string, definition: KeywordDefinition): Ajv; /** * Get keyword definition * @this Ajv * @param {string} keyword pre-defined or custom keyword. * @return {object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise. */ getKeyword(keyword: string): object | boolean; /** * Remove keyword * @this Ajv * @param {string} keyword pre-defined or custom keyword. * @return {Ajv} this for method chaining */ removeKeyword(keyword: string): Ajv; /** * Validate keyword * @this Ajv * @param {object} definition keyword definition object * @param {boolean} throwError true to throw exception if definition is invalid * @return {boolean} validation result */ validateKeyword(definition: KeywordDefinition, throwError: boolean): boolean; /** * Convert array of error message objects to string * @param {Array<object>} errors optional array of validation errors, if not passed errors from the instance are used. * @param {object} options optional options with properties `separator` and `dataVar`. * @return {string} human readable string with all errors descriptions */ errorsText(errors?: Array<ErrorObject> | null, options?: ErrorsTextOptions): string; errors?: Array<ErrorObject> | null; _opts: Options; } interface CustomLogger { log(...args: any[]): any; warn(...args: any[]): any; error(...args: any[]): any; } interface ValidateFunction { ( data: any, dataPath?: string, parentData?: object | Array<any>, parentDataProperty?: string | number, rootData?: object | Array<any> ): boolean | PromiseLike<any>; schema?: object | boolean; errors?: null | Array<ErrorObject>; refs?: object; refVal?: Array<any>; root?: ValidateFunction | object; $async?: true; source?: object; } interface Options { $data?: boolean; allErrors?: boolean; verbose?: boolean; jsonPointers?: boolean; uniqueItems?: boolean; unicode?: boolean; format?: false | string; formats?: object; keywords?: object; unknownFormats?: true | string[] | 'ignore'; schemas?: Array<object> | object; schemaId?: '$id' | 'id' | 'auto'; missingRefs?: true | 'ignore' | 'fail'; extendRefs?: true | 'ignore' | 'fail'; loadSchema?: (uri: string, cb?: (err: Error, schema: object) => void) => PromiseLike<object | boolean>; removeAdditional?: boolean | 'all' | 'failing'; useDefaults?: boolean | 'empty' | 'shared'; coerceTypes?: boolean | 'array'; strictDefaults?: boolean | 'log'; strictKeywords?: boolean | 'log'; strictNumbers?: boolean; async?: boolean | string; transpile?: string | ((code: string) => string); meta?: boolean | object; validateSchema?: boolean | 'log'; addUsedSchema?: boolean; inlineRefs?: boolean | number; passContext?: boolean; loopRequired?: number; ownProperties?: boolean; multipleOfPrecision?: boolean | number; errorDataPath?: string, messages?: boolean; sourceCode?: boolean; processCode?: (code: string, schema: object) => string; cache?: object; logger?: CustomLogger | false; nullable?: boolean; serialize?: ((schema: object | boolean) => any) | false; } type FormatValidator = string | RegExp | ((data: string) => boolean | PromiseLike<any>); type NumberFormatValidator = ((data: number) => boolean | PromiseLike<any>); interface NumberFormatDefinition { type: "number", validate: NumberFormatValidator; compare?: (data1: number, data2: number) => number; async?: boolean; } interface StringFormatDefinition { type?: "string", validate: FormatValidator; compare?: (data1: string, data2: string) => number; async?: boolean; } type FormatDefinition = NumberFormatDefinition | StringFormatDefinition; interface KeywordDefinition { type?: string | Array<string>; async?: boolean; $data?: boolean; errors?: boolean | string; metaSchema?: object; // schema: false makes validate not to expect schema (ValidateFunction) schema?: boolean; statements?: boolean; dependencies?: Array<string>; modifying?: boolean; valid?: boolean; // one and only one of the following properties should be present validate?: SchemaValidateFunction | ValidateFunction; compile?: (schema: any, parentSchema: object, it: CompilationContext) => ValidateFunction; macro?: (schema: any, parentSchema: object, it: CompilationContext) => object | boolean; inline?: (it: CompilationContext, keyword: string, schema: any, parentSchema: object) => string; } interface CompilationContext { level: number; dataLevel: number; dataPathArr: string[]; schema: any; schemaPath: string; baseId: string; async: boolean; opts: Options; formats: { [index: string]: FormatDefinition | undefined; }; keywords: { [index: string]: KeywordDefinition | undefined; }; compositeRule: boolean; validate: (schema: object) => boolean; util: { copy(obj: any, target?: any): any; toHash(source: string[]): { [index: string]: true | undefined }; equal(obj: any, target: any): boolean; getProperty(str: string): string; schemaHasRules(schema: object, rules: any): string; escapeQuotes(str: string): string; toQuotedString(str: string): string; getData(jsonPointer: string, dataLevel: number, paths: string[]): string; escapeJsonPointer(str: string): string; unescapeJsonPointer(str: string): string; escapeFragment(str: string): string; unescapeFragment(str: string): string; }; self: Ajv; } interface SchemaValidateFunction { ( schema: any, data: any, parentSchema?: object, dataPath?: string, parentData?: object | Array<any>, parentDataProperty?: string | number, rootData?: object | Array<any> ): boolean | PromiseLike<any>; errors?: Array<ErrorObject>; } interface ErrorsTextOptions { separator?: string; dataVar?: string; } interface ErrorObject { keyword: string; dataPath: string; schemaPath: string; params: ErrorParameters; // Added to validation errors of propertyNames keyword schema propertyName?: string; // Excluded if messages set to false. message?: string; // These are added with the `verbose` option. schema?: any; parentSchema?: object; data?: any; } type ErrorParameters = RefParams | LimitParams | AdditionalPropertiesParams | DependenciesParams | FormatParams | ComparisonParams | MultipleOfParams | PatternParams | RequiredParams | TypeParams | UniqueItemsParams | CustomParams | PatternRequiredParams | PropertyNamesParams | IfParams | SwitchParams | NoParams | EnumParams; interface RefParams { ref: string; } interface LimitParams { limit: number; } interface AdditionalPropertiesParams { additionalProperty: string; } interface DependenciesParams { property: string; missingProperty: string; depsCount: number; deps: string; } interface FormatParams { format: string } interface ComparisonParams { comparison: string; limit: number | string; exclusive: boolean; } interface MultipleOfParams { multipleOf: number; } interface PatternParams { pattern: string; } interface RequiredParams { missingProperty: string; } interface TypeParams { type: string; } interface UniqueItemsParams { i: number; j: number; } interface CustomParams { keyword: string; } interface PatternRequiredParams { missingPattern: string; } interface PropertyNamesParams { propertyName: string; } interface IfParams { failingKeyword: string; } interface SwitchParams { caseIndex: number; } interface NoParams { } interface EnumParams { allowedValues: Array<any>; } } export = ajv; ```
/content/code_sandbox/node_modules/ajv/lib/ajv.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,106
```xml declare interface ITeamsNotificationSenderWebPartStrings { PropertyPaneDescription: string; BasicGroupName: string; DescriptionFieldLabel: string; } declare module 'TeamsNotificationSenderWebPartStrings' { const strings: ITeamsNotificationSenderWebPartStrings; export = strings; } ```
/content/code_sandbox/samples/react-teams-send-notification/src/webparts/teamsNotificationSender/loc/mystrings.d.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
61
```xml import { strFromU8, strToU8, zlibSync, unzlibSync } from "fflate"; import { NetworkEventData, RQSessionEvents, RQSessionEventType, RRWebEventData } from "@requestly/web-sdk"; import { ConsoleLog, DebugInfo, PageNavigationLog, RecordingOptions, SessionRecordingMetadata } from "./types"; import { EventType, IncrementalSource, LogData } from "rrweb"; import { EXPORTED_SESSION_FILE_EXTENSION, SESSION_EXPORT_TYPE } from "./constants"; import { CheckboxValueType } from "antd/lib/checkbox/Group"; import fileDownload from "js-file-download"; const MAX_ALLOWED_NETWORK_RESPONSE_SIZE = 20 * 1024; // 20KB export const compressEvents = (events: RQSessionEvents): string => { return strFromU8(zlibSync(strToU8(JSON.stringify(events))), true); }; export const decompressEvents = (compressedEvents: string): RQSessionEvents => { return JSON.parse(strFromU8(unzlibSync(strToU8(compressedEvents, true)))); }; export const filterOutLargeNetworkResponses = (events: RQSessionEvents): void => { const networkEvents = events[RQSessionEventType.NETWORK] as NetworkEventData[]; networkEvents?.forEach((networkEvent) => { if (JSON.stringify(networkEvent.response)?.length > MAX_ALLOWED_NETWORK_RESPONSE_SIZE) { networkEvent.response = "Response too large"; } }); }; const isConsoleLogEvent = (rrwebEvent: RRWebEventData): boolean => { if (rrwebEvent.type === EventType.IncrementalSnapshot) { //@ts-ignore return rrwebEvent.data.source === IncrementalSource.Log; } if (rrwebEvent.type === EventType.Plugin) { return rrwebEvent.data.plugin === "rrweb/console@1"; } return false; }; export const getPageNavigationLogs = (rrwebEvents: RRWebEventData[], startTime: number): PageNavigationLog[] => { return rrwebEvents .filter((event) => event.type === EventType.Meta && event.data.href) .map((metaEvent) => { return { // @ts-ignore ...metaEvent.data, timestamp: metaEvent.timestamp, timeOffset: Math.ceil((metaEvent.timestamp - startTime) / 1000), }; }); }; export const getConsoleLogs = (rrwebEvents: RRWebEventData[], startTime: number): ConsoleLog[] => { return rrwebEvents .map((event, index) => { let logData: LogData = null; if (isConsoleLogEvent(event)) { if (event.type === EventType.IncrementalSnapshot) { logData = (event.data as unknown) as LogData; } else if (event.type === EventType.Plugin) { logData = event.data.payload as LogData; } } return ( logData && { ...logData, id: `resource-${index}`, timeOffset: (event.timestamp - startTime) / 1000, } ); }) .filter((event) => !!event); }; export const filterOutConsoleLogs = (rrwebEvents: RRWebEventData[]): RRWebEventData[] => { return rrwebEvents.filter((event) => !isConsoleLogEvent(event)); }; export const getRecordingOptionsToSave = (includedDebugInfo: CheckboxValueType[]): RecordingOptions => { const recordingOptions: RecordingOptions = { includeConsoleLogs: true, includeNetworkLogs: true, }; let option: keyof RecordingOptions; for (option in recordingOptions) { recordingOptions[option] = includedDebugInfo.includes(option); } return recordingOptions; }; export const getSessionEventsToSave = (sessionEvents: RQSessionEvents, options: RecordingOptions): RQSessionEvents => { const filteredSessionEvents: RQSessionEvents = { [RQSessionEventType.RRWEB]: sessionEvents[RQSessionEventType.RRWEB], [RQSessionEventType.NETWORK]: sessionEvents[RQSessionEventType.NETWORK], }; if (options.includeNetworkLogs === false) { delete filteredSessionEvents[RQSessionEventType.NETWORK]; } if (options.includeConsoleLogs === false) { const filteredRRWebEvent = filterOutConsoleLogs(sessionEvents[RQSessionEventType.RRWEB] as RRWebEventData[]); filteredSessionEvents[RQSessionEventType.RRWEB] = filteredRRWebEvent; } return filteredSessionEvents; }; export const prepareSessionToExport = (events: string, metadata: SessionRecordingMetadata): Promise<string> => { const sessionToExport = { version: 1, type: SESSION_EXPORT_TYPE, data: { events, metadata }, }; return new Promise((resolve) => resolve(JSON.stringify(sessionToExport))); }; export const downloadSession = (fileContent: string, fileName: string): void => { fileDownload(fileContent, `${fileName}.${EXPORTED_SESSION_FILE_EXTENSION}`); }; export const getSessionRecordingOptions = (options: RecordingOptions): string[] => { return Object.keys(options ?? {}).filter((key: DebugInfo) => options?.[key]); }; export function isUserInteractionEvent(event: RRWebEventData): boolean { if (event.type !== EventType.IncrementalSnapshot) { return false; } return event.data.source > IncrementalSource.Mutation && event.data.source <= IncrementalSource.Input; } export const getInactiveSegments = (events: RRWebEventData[]): [number, number][] => { const SKIP_TIME_THRESHOLD = 10 * 1000; const inactiveSegments: [number, number][] = []; let lastActiveTime = events[0].timestamp; events.forEach((event) => { if (!isUserInteractionEvent(event)) { return; } if (event.timestamp - lastActiveTime > SKIP_TIME_THRESHOLD) { inactiveSegments.push([lastActiveTime, event.timestamp]); } lastActiveTime = event.timestamp; }); return inactiveSegments; }; ```
/content/code_sandbox/app/src/views/features/sessions/SessionViewer/sessionEventsUtils.ts
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
1,273
```xml // src/index.ts jQuery('#foo'); jQuery(function() { alert('Dom Ready!'); }); ```
/content/code_sandbox/examples/declaration-files/06-declare-function/src/index.ts
xml
2016-05-11T03:02:41
2024-08-16T12:59:57
typescript-tutorial
xcatliu/typescript-tutorial
10,361
21
```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 CHTMLmfrac wrapper for the MmlMfrac object * * @author dpvc@mathjax.org (Davide Cervone) */ import {CHTMLWrapper, CHTMLConstructor} from '../Wrapper.js'; import {CommonMfracMixin} from '../../common/Wrappers/mfrac.js'; import {MmlMfrac} from '../../../core/MmlTree/MmlNodes/mfrac.js'; import {CHTMLmo} from './mo.js'; import {StyleList} from '../../../util/StyleList.js'; import {OptionList} from '../../../util/Options.js'; /*****************************************************************/ /** * The CHTMLmfrac wrapper for the MmlMfrac object * * @template N The HTMLElement node class * @template T The Text node class * @template D The Document class */ export class CHTMLmfrac<N, T, D> extends CommonMfracMixin<CHTMLConstructor<any, any, any>>(CHTMLWrapper) { /** * The mfrac wrapper */ public static kind = MmlMfrac.prototype.kind; /** * @override */ public static styles: StyleList = { 'mjx-frac': { display: 'inline-block', 'vertical-align': '0.17em', // axis_height - 1.5 * rule_thickness padding: '0 .22em' // nulldelimiterspace + .1 (for line's -.1em margin) }, 'mjx-frac[type="d"]': { 'vertical-align': '.04em' // axis_height - 3.5 * rule_thickness }, 'mjx-frac[delims]': { padding: '0 .1em' // .1 (for line's -.1em margin) }, 'mjx-frac[atop]': { padding: '0 .12em' // nulldelimiterspace }, 'mjx-frac[atop][delims]': { padding: '0' }, 'mjx-dtable': { display: 'inline-table', width: '100%' }, 'mjx-dtable > *': { 'font-size': '2000%' }, 'mjx-dbox': { display: 'block', 'font-size': '5%' }, 'mjx-num': { display: 'block', 'text-align': 'center' }, 'mjx-den': { display: 'block', 'text-align': 'center' }, 'mjx-mfrac[bevelled] > mjx-num': { display: 'inline-block' }, 'mjx-mfrac[bevelled] > mjx-den': { display: 'inline-block' }, 'mjx-den[align="right"], mjx-num[align="right"]': { 'text-align': 'right' }, 'mjx-den[align="left"], mjx-num[align="left"]': { 'text-align': 'left' }, 'mjx-nstrut': { display: 'inline-block', height: '.054em', // num2 - a - 1.5t width: 0, 'vertical-align': '-.054em' // ditto }, 'mjx-nstrut[type="d"]': { height: '.217em', // num1 - a - 3.5t 'vertical-align': '-.217em', // ditto }, 'mjx-dstrut': { display: 'inline-block', height: '.505em', // denom2 + a - 1.5t width: 0 }, 'mjx-dstrut[type="d"]': { height: '.726em', // denom1 + a - 3.5t }, 'mjx-line': { display: 'block', 'box-sizing': 'border-box', 'min-height': '1px', height: '.06em', // t = rule_thickness 'border-top': '.06em solid', // t margin: '.06em -.1em', // t overflow: 'hidden' }, 'mjx-line[type="d"]': { margin: '.18em -.1em' // 3t } }; /** * An mop element to use for bevelled fractions */ public bevel: CHTMLmo<N, T, D>; /************************************************/ /** * @override */ public toCHTML(parent: N) { this.standardCHTMLnode(parent); const {linethickness, bevelled} = this.node.attributes.getList('linethickness', 'bevelled'); const display = this.isDisplay(); if (bevelled) { this.makeBevelled(display); } else { const thickness = this.length2em(String(linethickness), .06); if (thickness === 0) { this.makeAtop(display); } else { this.makeFraction(display, thickness); } } } /************************************************/ /** * @param {boolean} display True when fraction is in display mode * @param {number} t The rule line thickness */ protected makeFraction(display: boolean, t: number) { const {numalign, denomalign} = this.node.attributes.getList('numalign', 'denomalign'); const withDelims = this.node.getProperty('withDelims'); // // Attributes to set for the different elements making up the fraction // const attr = (display ? {type: 'd'} : {}) as OptionList; const fattr = (withDelims ? {...attr, delims: 'true'} : {...attr}) as OptionList; const nattr = (numalign !== 'center' ? {align: numalign} : {}) as OptionList; const dattr = (denomalign !== 'center' ? {align: denomalign} : {}) as OptionList; const dsattr = {...attr}, nsattr = {...attr}; // // Set the styles to handle the linethickness, if needed // const tex = this.font.params; if (t !== .06) { const a = tex.axis_height; const tEm = this.em(t); const {T, u, v} = this.getTUV(display, t); const m = (display ? this.em(3 * t) : tEm) + ' -.1em'; attr.style = {height: tEm, 'border-top': tEm + ' solid', margin: m}; const nh = this.em(Math.max(0, u)); nsattr.style = {height: nh, 'vertical-align': '-' + nh}; dsattr.style = {height: this.em(Math.max(0, v))}; fattr.style = {'vertical-align': this.em(a - T)}; } // // Create the DOM tree // let num, den; this.adaptor.append(this.chtml, this.html('mjx-frac', fattr, [ num = this.html('mjx-num', nattr, [this.html('mjx-nstrut', nsattr)]), this.html('mjx-dbox', {}, [ this.html('mjx-dtable', {}, [ this.html('mjx-line', attr), this.html('mjx-row', {}, [ den = this.html('mjx-den', dattr, [this.html('mjx-dstrut', dsattr)]) ]) ]) ]) ])); this.childNodes[0].toCHTML(num); this.childNodes[1].toCHTML(den); } /************************************************/ /** * @param {boolean} display True when fraction is in display mode */ protected makeAtop(display: boolean) { const {numalign, denomalign} = this.node.attributes.getList('numalign', 'denomalign'); const withDelims = this.node.getProperty('withDelims'); // // Attributes to set for the different elements making up the fraction // const attr = (display ? {type: 'd', atop: true} : {atop: true}) as OptionList; const fattr = (withDelims ? {...attr, delims: true} : {...attr}) as OptionList; const nattr = (numalign !== 'center' ? {align: numalign} : {}) as OptionList; const dattr = (denomalign !== 'center' ? {align: denomalign} : {}) as OptionList; // // Determine sparation and positioning // const {v, q} = this.getUVQ(display); nattr.style = {'padding-bottom': this.em(q)}; fattr.style = {'vertical-align': this.em(-v)}; // // Create the DOM tree // let num, den; this.adaptor.append(this.chtml, this.html('mjx-frac', fattr, [ num = this.html('mjx-num', nattr), den = this.html('mjx-den', dattr) ])); this.childNodes[0].toCHTML(num); this.childNodes[1].toCHTML(den); } /************************************************/ /** * @param {boolean} display True when fraction is in display mode */ protected makeBevelled(display: boolean) { const adaptor = this.adaptor; // // Create HTML tree // adaptor.setAttribute(this.chtml, 'bevelled', 'ture'); const num = adaptor.append(this.chtml, this.html('mjx-num')); this.childNodes[0].toCHTML(num); this.bevel.toCHTML(this.chtml); const den = adaptor.append(this.chtml, this.html('mjx-den')); this.childNodes[1].toCHTML(den); // // Place the parts // const {u, v, delta, nbox, dbox} = this.getBevelData(display); if (u) { adaptor.setStyle(num, 'verticalAlign', this.em(u / nbox.scale)); } if (v) { adaptor.setStyle(den, 'verticalAlign', this.em(v / dbox.scale)); } const dx = this.em(-delta / 2); adaptor.setStyle(this.bevel.chtml, 'marginLeft', dx); adaptor.setStyle(this.bevel.chtml, 'marginRight', dx); } } ```
/content/code_sandbox/ts/output/chtml/Wrappers/mfrac.ts
xml
2016-02-23T09:52:03
2024-08-16T04:46:50
MathJax-src
mathjax/MathJax-src
2,017
2,374
```xml <?xml version="1.0" encoding="UTF-8"?> <soap11:Envelope xmlns:soap11="path_to_url"> <soap11:Header> <ecp:Response xmlns:ecp="urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp" AssertionConsumerServiceURL="path_to_url" soap11:actor="path_to_url" soap11:mustUnderstand="1"/> </soap11:Header> <soap11:Body> <saml2p:Response xmlns:saml2p="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:xsd="path_to_url" Destination="path_to_url" ID="_97d546a4d62e9e15de832793371005c9" InResponseTo="bace9862-4d5d-4bde-b262-ab562a17932d" IssueInstant="2019-05-29T20:24:58.011Z" Version="2.0"> <saml2:Issuer xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">urn:mace:incommon:example.com</saml2:Issuer> <ds:Signature xmlns:ds="path_to_url#"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="path_to_url#"/> <ds:SignatureMethod Algorithm="path_to_url#rsa-sha256"/> <ds:Reference URI="#_97d546a4d62e9e15de832793371005c9"> <ds:Transforms> <ds:Transform Algorithm="path_to_url#enveloped-signature"/> <ds:Transform Algorithm="path_to_url#"> <ec:InclusiveNamespaces xmlns:ec="path_to_url#" PrefixList="xsd"/> </ds:Transform> </ds:Transforms> <ds:DigestMethod Algorithm="path_to_url#sha256"/> <ds:DigestValue></ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue></ds:SignatureValue> <ds:KeyInfo> <ds:X509Data> <ds:X509Certificate></ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </ds:Signature> <saml2p:Status> <saml2p:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/> </saml2p:Status> <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:xsd="path_to_url" ID="_78325721ca36923ae880ada8de570686" IssueInstant="2019-05-29T20:24:58.011Z" Version="2.0"> <saml2:Issuer>urn:mace:incommon:example.com</saml2:Issuer> <ds:Signature xmlns:ds="path_to_url#"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="path_to_url#"/> <ds:SignatureMethod Algorithm="path_to_url#rsa-sha256"/> <ds:Reference URI="#_78325721ca36923ae880ada8de570686"> <ds:Transforms> <ds:Transform Algorithm="path_to_url#enveloped-signature"/> <ds:Transform Algorithm="path_to_url#"> <ec:InclusiveNamespaces xmlns:ec="path_to_url#" PrefixList="xsd"/> </ds:Transform> </ds:Transforms> <ds:DigestMethod Algorithm="path_to_url#sha256"/> <ds:DigestValue></ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue></ds:SignatureValue> <ds:KeyInfo> <ds:X509Data> <ds:X509Certificate></ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </ds:Signature> <saml2:Subject> <saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient" NameQualifier="urn:mace:incommon:example.com" SPNameQualifier="urn:amazon:webservices"></saml2:NameID> <saml2:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"> <saml2:SubjectConfirmationData Address="104.39.182.31" InResponseTo="bace9862-4d5d-4bde-b262-ab562a17932d" NotOnOrAfter="2019-05-29T20:29:58.028Z" Recipient="path_to_url"/> </saml2:SubjectConfirmation> </saml2:Subject> <saml2:Conditions NotBefore="2019-05-29T20:24:58.011Z" NotOnOrAfter="2019-05-29T20:29:58.011Z"> <saml2:AudienceRestriction> <saml2:Audience>urn:amazon:webservices</saml2:Audience> </saml2:AudienceRestriction> </saml2:Conditions> <saml2:AuthnStatement AuthnInstant="2019-05-29T20:24:57.882Z" SessionIndex="_795b27bb3a9cb8ba16d41bbdb8070460"> <saml2:SubjectLocality Address="1.2.3.4"/> <saml2:AuthnContext> <saml2:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml2:AuthnContextClassRef> </saml2:AuthnContext> </saml2:AuthnStatement> <saml2:AttributeStatement> <saml2:Attribute FriendlyName="eduPersonPrincipalName" Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> <saml2:AttributeValue>user@example.com</saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute FriendlyName="RoleEntitlement" Name="path_to_url" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> <saml2:AttributeValue xmlns:xsi="path_to_url" xsi:type="xsd:string">arn:aws:iam::123456789003:saml-provider/idp.example.com,arn:aws:iam::123456789003:role/administrator</saml2:AttributeValue> </saml2:Attribute> <saml2:Attribute FriendlyName="RoleSessionName" Name="path_to_url" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"> <saml2:AttributeValue xmlns:xsi="path_to_url" xsi:type="xsd:string">user@example.com</saml2:AttributeValue> </saml2:Attribute> </saml2:AttributeStatement> </saml2:Assertion> </saml2p:Response> </soap11:Body> </soap11:Envelope> ```
/content/code_sandbox/pkg/provider/shibbolethecp/testdata/ecp_soap_response_success.xml
xml
2016-09-11T03:53:15
2024-08-15T09:52:49
saml2aws
Versent/saml2aws
2,054
1,673
```xml /** * Network module. * @module net * @private */ import * as net from 'net'; export const localAddresses = ['127.0.0.1', 'localhost', '0.0.0.0', '::1']; export const portCheck = (port: number, host: string): Promise<void> => new Promise((resolve, reject) => { const server = net .createServer() .listen({ port, host, exclusive: true }) .on('error', (e: NodeJS.ErrnoException) => { if (e.code === 'EADDRINUSE') { reject(new Error(`Port ${port} is unavailable on address ${host}`)); } else { reject(e); } }) .on('listening', () => { server.once('close', () => resolve()).close(); }); }); export const isPortAvailable = (port: number, host: string): Promise<void> => Promise.allSettled( localAddresses.map((localHost) => portCheck(port, localHost)) ).then((settledPortChecks) => { // if every port check failed, then fail the `isPortAvailable` check if (settledPortChecks.every((result) => result.status === 'rejected')) { throw new Error(`Cannot open port ${port} on ipv4 or ipv6 interfaces`); } // the local addresses passed - now check the host that the user has specified return portCheck(port, host); }); export const freePort = (): Promise<number> => new Promise((res) => { const s = net.createServer(); s.listen(0, () => { const addr = s.address(); if (addr !== null && typeof addr !== 'string') { const { port } = addr; s.close(() => res(port)); } else { throw Error('unable to find a free port'); } }); }); ```
/content/code_sandbox/src/common/net.ts
xml
2016-06-03T12:02:17
2024-08-15T05:47:24
pact-js
pact-foundation/pact-js
1,596
418
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="15dp" android:background="#8000"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginTop="15dp" android:text="" android:textColor="#fff" android:textSize="20sp"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="15dp"> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true"> <TextView android:id="@+id/aqi_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:textColor="#fff" android:textSize="40sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:text="AQI" android:textColor="#fff"/> </LinearLayout> </RelativeLayout> <RelativeLayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_weight="1"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_centerInParent="true"> <TextView android:id="@+id/pm25_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:textColor="#fff" android:textSize="40sp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:text="PM2.5" android:textColor="#fff" /> </LinearLayout> </RelativeLayout> </LinearLayout> </LinearLayout> ```
/content/code_sandbox/chapter14/CoolWeather/app/src/main/res/layout/aqi.xml
xml
2016-10-04T02:55:57
2024-08-16T11:00:26
booksource
guolindev/booksource
3,105
532
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd"> <language name="AHDL" version="3" kateversion="5.0" section="Hardware" extensions="*.ahdl;*.tdf" mimetype="text/x-ahdl" author="Dominik Haumann (dhaumann@kde.org)" license="MIT"> <highlighting> <list name="keywords"> <item>assert</item> <item>bidir</item> <item>bits</item> <item>buried</item> <item>case</item> <item>clique</item> <item>connected_pins</item> <item>constant</item> <item>defaults</item> <item>define</item> <item>design</item> <item>device</item> <item>else</item> <item>elsif</item> <item>for</item> <item>function</item> <item>generate</item> <item>gnd</item> <item>help_id</item> <item>in</item> <item>include</item> <item>input</item> <item>is</item> <item>machine</item> <item>node</item> <item>of</item> <item>options</item> <item>others</item> <item>output</item> <item>parameters</item> <item>returns</item> <item>states</item> <item>subdesign</item> <item>then</item> <item>title</item> <item>to</item> <item>tri_state_node</item> <item>variable</item> <item>vcc</item> <item>when</item> <item>with</item> </list> <list name="types"> <item>carry</item> <item>cascade</item> <item>dffe</item> <item>dff</item> <item>exp</item> <item>global</item> <item>jkffe</item> <item>jkff</item> <item>latch</item> <item>lcell</item> <item>mcell</item> <item>memory</item> <item>opendrn</item> <item>soft</item> <item>srffe</item> <item>srff</item> <item>tffe</item> <item>tff</item> <item>tri</item> <item>wire</item> <item>x</item> </list> <list name="operator"> <item>not</item> <item>and</item> <item>nand</item> <item>or</item> <item>nor</item> <item>xor</item> <item>xnor</item> <item>mod</item> <item>div</item> <item>log2</item> <item>used</item> <item>ceil</item> <item>floor</item> </list> <contexts> <context name="normal" attribute="Normal Text" lineEndContext="#stay"> <RegExpr attribute="Keyword" context="#stay" String="\bdefaults\b" insensitive="true" beginRegion="def"/> <RegExpr attribute="Keyword" context="#stay" String="\bend\s+defaults\b" insensitive="true" endRegion="def"/> <RegExpr attribute="Keyword" context="#stay" String="\bif\b" insensitive="true" beginRegion="if"/> <RegExpr attribute="Keyword" context="#stay" String="\bend\s+if\b" insensitive="true" endRegion="if"/> <RegExpr attribute="Keyword" context="#stay" String="\btable\b" insensitive="true" beginRegion="table"/> <RegExpr attribute="Keyword" context="#stay" String="\bend\s+table\b" insensitive="true" endRegion="table"/> <RegExpr attribute="Keyword" context="#stay" String="\bcase\b" insensitive="true" beginRegion="case"/> <RegExpr attribute="Keyword" context="#stay" String="\bend\s+case\b" insensitive="true" endRegion="case"/> <RegExpr attribute="Keyword" context="#stay" String="\bbegin\b" insensitive="true" beginRegion="block"/> <RegExpr attribute="Keyword" context="#stay" String="\bend\b" insensitive="true" endRegion="block"/> <DetectChar attribute="Normal Text" context="#stay" char="(" beginRegion="bracket"/> <DetectChar attribute="Normal Text" context="#stay" char=")" endRegion="bracket"/> <keyword attribute="Keyword" context="#stay" String="keywords"/> <keyword attribute="Data Type" context="#stay" String="types"/> <keyword attribute="Operator" context="#stay" String="operator"/> <RegExpr attribute="Decimal" context="#stay" String="\b(\d+)\b" /> <RegExpr attribute="Bit" context="#stay" String="\bb&quot;(0|1|x)+&quot;" insensitive="true"/> <RegExpr attribute="Octal" context="#stay" String="\b(o|q)&quot;[0-7*]&quot;" insensitive="true"/> <RegExpr attribute="Hex" context="#stay" String="\b(h|x)&quot;[0-9a-f]*&quot;" insensitive="true"/> <DetectChar attribute="String" context="string" char="&quot;" /> <RegExpr attribute="Region Marker" context="#stay" String="--\s*BEGIN.*$" beginRegion="region" firstNonSpace="true"/> <RegExpr attribute="Region Marker" context="#stay" String="--\s*END.*$" endRegion="region" firstNonSpace="true"/> <RegExpr attribute="Comment" context="#stay" String="--.*$" /> <DetectChar attribute="Comment" context="comment" char="%" /> <HlCChar attribute="Char" context="#stay"/> </context> <context name="string" attribute="String" lineEndContext="#stay" > <Detect2Chars attribute="Char" context="#stay" char="\" char1="&quot;" /> <DetectChar attribute="String" context="#pop" char="&quot;" /> </context> <context name="comment" attribute="Comment" lineEndContext="#stay" > <DetectChar attribute="Comment" context="#pop" char="%" /> </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="false" /> <itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" /> <itemData name="Data Type" defStyleNum="dsDataType" spellChecking="false" /> <itemData name="Comment" defStyleNum="dsComment" /> <itemData name="String" defStyleNum="dsString" /> <itemData name="Operator" defStyleNum="dsOperator" spellChecking="false" /> <itemData name="Char" defStyleNum="dsChar"/> <itemData name="Bit" defStyleNum="dsDecVal" spellChecking="false" /> <itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="false" /> <itemData name="Octal" defStyleNum="dsBaseN" spellChecking="false" /> <itemData name="Hex" defStyleNum="dsBaseN" spellChecking="false" /> <itemData name="Region Marker" defStyleNum="dsRegionMarker"/> </itemDatas> </highlighting> <general> <comments> <comment name="singleLine" start="--" /> <comment name="multiLine" start="%" end="%" /> </comments> <keywords casesensitive="0" /> </general> </language> <!-- kate: space-indent on; indent-width 2; replace-tabs on; --> ```
/content/code_sandbox/src/data/extra/syntax-highlighting/syntax/ahdl.xml
xml
2016-10-05T07:24:54
2024-08-16T05:03:40
vnote
vnotex/vnote
11,687
1,805
```xml import { convertIntegrationFnToClass } from '@sentry/core'; import type { Context, Event, EventHint, Integration, IntegrationClass, IntegrationFnResult } from '@sentry/types'; import { getExpoGoVersion, getExpoSdkVersion, getHermesVersion, getReactNativeVersion, isExpo, isFabricEnabled, isHermesEnabled, isTurboModuleEnabled, } from '../utils/environment'; import type { ReactNativeError } from './debugsymbolicator'; const INTEGRATION_NAME = 'ReactNativeInfo'; export interface ReactNativeContext extends Context { js_engine?: string; turbo_module: boolean; fabric: boolean; expo: boolean; hermes_version?: string; react_native_version?: string; component_stack?: string; hermes_debug_info?: boolean; expo_go_version?: string; expo_sdk_version?: string; } /** Loads React Native context at runtime */ export const reactNativeInfoIntegration = (): IntegrationFnResult => { return { name: INTEGRATION_NAME, setupOnce: () => { // noop }, processEvent, }; }; /** * Loads React Native context at runtime * * @deprecated Use `reactNativeInfoIntegration()` instead. */ // eslint-disable-next-line deprecation/deprecation export const ReactNativeInfo = convertIntegrationFnToClass( INTEGRATION_NAME, reactNativeInfoIntegration, ) as IntegrationClass<Integration>; function processEvent(event: Event, hint: EventHint): Event { const reactNativeError = hint?.originalException ? (hint?.originalException as ReactNativeError) : undefined; const reactNativeContext: ReactNativeContext = { turbo_module: isTurboModuleEnabled(), fabric: isFabricEnabled(), react_native_version: getReactNativeVersion(), expo: isExpo(), }; if (isHermesEnabled()) { reactNativeContext.js_engine = 'hermes'; const hermesVersion = getHermesVersion(); if (hermesVersion) { reactNativeContext.hermes_version = hermesVersion; } reactNativeContext.hermes_debug_info = !isEventWithHermesBytecodeFrames(event); } else if (reactNativeError?.jsEngine) { reactNativeContext.js_engine = reactNativeError.jsEngine; } if (reactNativeContext.js_engine === 'hermes') { event.tags = { hermes: 'true', ...event.tags, }; } if (reactNativeError?.componentStack) { reactNativeContext.component_stack = reactNativeError.componentStack; } const expoGoVersion = getExpoGoVersion(); if (expoGoVersion) { reactNativeContext.expo_go_version = expoGoVersion; } const expoSdkVersion = getExpoSdkVersion(); if (expoSdkVersion) { reactNativeContext.expo_sdk_version = expoSdkVersion; } event.contexts = { react_native_context: reactNativeContext, ...event.contexts, }; return event; } /** * Guess if the event contains frames with Hermes bytecode * (thus Hermes bundle doesn't contain debug info) * based on the event exception/threads frames. * * This function can be relied on only if Hermes is enabled! * * Hermes bytecode position is always line 1 and column 0-based number. * If Hermes bundle has debug info, the bytecode frames pos are calculated * back to the plain bundle source code positions and line will be > 1. * * Line 1 contains start time var, it's safe to assume it won't crash. * The above only applies when Hermes is enabled. * * Javascript/Hermes bytecode frames have platform === undefined. * Native (Java, ObjC, C++) frames have platform === 'android'/'ios'/'native'. */ function isEventWithHermesBytecodeFrames(event: Event): boolean { for (const value of event.exception?.values || event.threads?.values || []) { for (const frame of value.stacktrace?.frames || []) { // platform === undefined we assume it's javascript (only native frames use the platform attribute) if (frame.platform === undefined && frame.lineno === 1) { return true; } } } return false; } ```
/content/code_sandbox/src/js/integrations/reactnativeinfo.ts
xml
2016-11-30T14:45:57
2024-08-16T13:21:38
sentry-react-native
getsentry/sentry-react-native
1,558
924
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const FileLessIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M256 1920h128v128H128V0h1115l549 549v859h-128V640h-512V128H256v1792zM1280 512h293l-293-293v293zM512 384H384V256h128v128zM384 512h128v128H384V512zm128 384H384V768h128v128zm0 512h97v630h-97v-630zm430 128q56 0 95 19t65 52 38 77 12 96v42H819q2 71 43 106t109 35q77 0 143-46v89q-39 25-85 33t-91 9q-59 0-102-19t-72-52-43-80-14-103q0-52 16-98t46-82 74-57 99-21zm103 208q0-25-5-48t-18-40-33-27-48-11q-27 0-48 10t-36 28-25 41-13 47h226zm293-68q0 23 17 37t44 26 57 22 57 28 44 44 18 68q0 41-20 69t-50 46-68 24-71 8q-36 0-71-6t-68-21v-102q30 23 64 35t73 12q15 0 32-2t33-8 26-17 10-32q0-24-17-38t-44-26-57-21-57-28-44-43-18-70q0-39 18-66t48-45 65-26 68-8q31 0 62 4t60 16v98q-53-36-118-36-13 0-29 2t-30 10-24 18-10 28zm422 0q0 24 17 38t44 25 57 22 57 28 43 44 18 68q0 42-19 70t-50 45-68 24-71 8q-35 0-71-6t-68-21v-102q30 23 64 35t73 12q15 0 32-2t33-8 26-17 10-32q0-24-17-38t-44-26-57-21-57-28-44-43-18-70q0-39 18-66t48-45 65-26 68-8q31 0 62 4t60 16v98q-53-36-119-36-13 0-29 2t-30 10-23 18-10 28z" /> </svg> ), displayName: 'FileLessIcon', }); export default FileLessIcon; ```
/content/code_sandbox/packages/react-icons-mdl2/src/components/FileLessIcon.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
743
```xml import { useContextBridge } from "@Core/Hooks"; import { Setting } from "@Core/Settings/Setting"; import { Switch } from "@fluentui/react-components"; import { useState } from "react"; import { useTranslation } from "react-i18next"; export const WorkspaceVisibility = () => { const { contextBridge } = useContextBridge(); const { t } = useTranslation("settingsWindow"); const [visibleOnAllWorkspaces, setVisibleOnAllWorkspaces] = useState<boolean>( contextBridge.getSettingValue("window.visibleOnAllWorkspaces", false), ); const updateVisibleOnAllWorkspaces = async (value: boolean) => { await contextBridge.updateSettingValue("window.visibleOnAllWorkspaces", value); setVisibleOnAllWorkspaces(value); }; return ( <Setting label={t("visibleOnAllWorkspaces")} control={ <Switch checked={visibleOnAllWorkspaces} onChange={(_, { checked }) => updateVisibleOnAllWorkspaces(checked)} /> } /> ); }; ```
/content/code_sandbox/src/renderer/Core/Settings/Pages/Window/WorkspaceVisibility.tsx
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
227
```xml <?xml version="1.0" encoding="utf-8"?> <workspace name="tutorial_6_cpp" metafilename="." folder="behaviors" export="..\cpp\exported" language="cpp" promptmergingmeta="true" version="3"> <export> <cpp> <isexported>False</isexported> <exportfilecount>1</exportfilecount> <folder>../../cpp</folder> </cpp> </export> </workspace> ```
/content/code_sandbox/tutorials/tutorial_6/workspace/tutorial_6_cpp.workspace.xml
xml
2016-11-21T05:08:08
2024-08-16T07:18:30
behaviac
Tencent/behaviac
2,831
108
```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. --> <manifest xmlns:android="path_to_url" package="io.material.catalog.timepicker.tests"> <uses-sdk android:minSdkVersion="21" /> <application> <uses-library android:name="android.test.runner" /> </application> <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner" android:targetPackage="io.material.catalog" /> </manifest> ```
/content/code_sandbox/catalog/androidTest/javatests/io/material/catalog/timepicker/AndroidManifest.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
149
```xml import * as React from 'react'; import { withMap } from './context'; import { Map } from 'mapbox-gl'; interface ImageOptionsType { pixelRatio?: number; sdf?: boolean; } type ImageDataType = | HTMLImageElement | ArrayBufferView | { width: number; height: number; data: Uint8Array | Uint8ClampedArray } | ImageData; export interface Props { id: string; url?: string; data?: ImageDataType; options?: ImageOptionsType; onLoaded?: () => void; onError?: (error: Error) => void; map: Map; } class Image extends React.Component<Props> { public componentDidMount() { this.loadImage(this.props); } public componentWillUnmount() { Image.removeImage(this.props); } public componentDidUpdate(prevProps: Props) { const { id } = prevProps; if (prevProps.map !== this.props.map) { // Remove image from old map Image.removeImage(this.props); } if (this.props.map && !this.props.map.hasImage(id)) { // Add missing image to map this.loadImage(this.props); } } public render() { return null; } private loadImage(props: Props) { const { map, id, url, data, options, onError } = props; if (data) { map.addImage(id, data, options); this.loaded(); } else if (url) { map.loadImage(url, (error: Error | undefined, image: ImageDataType) => { if (error) { if (onError) { onError(error); } return; } map.addImage(id, image, options); this.loaded(); }); } } private static removeImage(props: Props) { const { id, map } = props; if (map && map.getStyle()) { map.removeImage(id); } } private loaded() { const { onLoaded } = this.props; if (onLoaded) { onLoaded(); } } } export default withMap(Image); ```
/content/code_sandbox/src/image.tsx
xml
2016-04-16T08:23:57
2024-08-08T07:47:19
react-mapbox-gl
alex3165/react-mapbox-gl
1,907
463
```xml import {deserialize, serialize} from "@tsed/json-mapper"; import {expect} from "chai"; import {Person} from "./Person"; describe("Person", () => { it("should deserialize a model", () => { const input = { firstName: "firstName", lastName: "lastName", age: 0, skills: ["skill1"], job: "Tech lead" }; const result = deserialize(input, { type: Person }); expect(result).to.be.instanceof(Person); expect(result).to.deep.eq({ firstName: "firstName", lastName: "lastName", age: 0, skills: ["skill1"], job: "Tech lead" }); }); }); ```
/content/code_sandbox/docs/docs/snippets/converters/model-additional-props.mocha.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
158
```xml import * as React from 'react'; import { getWeekNumbersInMonth } from '../../utils'; import { CalendarGridDayCell } from './CalendarGridDayCell'; import type { CalendarDayGridProps, CalendarDayGridStyles } from './CalendarDayGrid.types'; import type { DayInfo } from './CalendarDayGrid'; import type { WeekCorners } from './useWeekCornerStyles.styles'; /** * @internal */ export interface CalendarGridRowProps extends CalendarDayGridProps { classNames: CalendarDayGridStyles; weeks: DayInfo[][]; week: DayInfo[]; weekIndex: number; weekCorners?: WeekCorners; ariaHidden?: boolean; rowClassName?: string; ariaRole?: string; navigatedDayRef: React.MutableRefObject<HTMLTableCellElement>; activeDescendantId: string; calculateRoundedStyles(above: boolean, below: boolean, left: boolean, right: boolean): string; getDayInfosInRangeOfDay(dayToCompare: DayInfo): DayInfo[]; getRefsFromDayInfos(dayInfosInRange: DayInfo[]): (HTMLElement | null)[]; } /** * @internal */ export const CalendarGridRow: React.FunctionComponent<CalendarGridRowProps> = props => { const { ariaHidden, classNames, week, weeks, weekIndex, rowClassName, ariaRole, showWeekNumbers, firstDayOfWeek, firstWeekOfYear, navigatedDate, strings, } = props; const weekNumbers = showWeekNumbers ? getWeekNumbersInMonth(weeks!.length, firstDayOfWeek, firstWeekOfYear, navigatedDate) : null; const titleString = weekNumbers ? strings.weekNumberFormatString && strings.weekNumberFormatString.replace('{0}', `${weekNumbers[weekIndex]}`) : ''; return ( <tr role={ariaRole} aria-hidden={ariaHidden} className={rowClassName} key={weekIndex + '_' + week[0].key}> {showWeekNumbers && weekNumbers && ( <th className={classNames.weekNumberCell} key={weekIndex} title={titleString} aria-label={titleString} scope="row" > <span>{weekNumbers[weekIndex]}</span> </th> )} {week.map((day: DayInfo, dayIndex: number) => ( <CalendarGridDayCell {...props} key={day.key} day={day} dayIndex={dayIndex} /> ))} </tr> ); }; ```
/content/code_sandbox/packages/react-components/react-calendar-compat/library/src/components/CalendarDayGrid/CalendarGridRow.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
542
```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. --> <window xmlns="path_to_url" caption="mainMsg://loginWindow.caption"> <actions> <action id="submit" caption="mainMsg://loginWindow.okButton" icon="app/images/login-button.png" invoke="login" shortcut="ENTER"/> </actions> <layout stylename="c-login-main-layout" expand="loginWrapper"> <vbox id="loginWrapper"> <vbox id="loginMainBox" align="MIDDLE_CENTER" margin="true" stylename="c-login-panel" width="AUTO"> <hbox id="loginTitleBox" align="MIDDLE_CENTER" spacing="true" stylename="c-login-title"> <image id="logoImage" align="MIDDLE_LEFT" height="AUTO" scaleMode="SCALE_DOWN" stylename="c-login-icon" width="AUTO"/> <label id="welcomeLabel" align="MIDDLE_LEFT" stylename="c-login-caption" value="mainMsg://loginWindow.welcomeLabel"/> </hbox> <capsLockIndicator id="capsLockIndicator" align="MIDDLE_CENTER" stylename="c-login-capslockindicator"/> <vbox id="loginForm" spacing="true" stylename="c-login-form"> <cssLayout id="loginCredentials" stylename="c-login-credentials"> <textField id="loginField" htmlName="loginField" inputPrompt="mainMsg://loginWindow.loginPlaceholder" stylename="c-login-username"/> <passwordField id="passwordField" autocomplete="true" htmlName="passwordField" inputPrompt="mainMsg://loginWindow.passwordPlaceholder" capsLockIndicator="capsLockIndicator" stylename="c-login-password"/> </cssLayout> <hbox id="rememberLocalesBox" stylename="c-login-remember-locales"> <checkBox id="rememberMeCheckBox" caption="mainMsg://loginWindow.rememberMe" stylename="c-login-remember-me"/> <lookupField id="localesSelect" nullOptionVisible="false" stylename="c-login-locale" textInputAllowed="false"/> </hbox> <button id="loginButton" align="MIDDLE_CENTER" action="submit" stylename="c-login-submit-button"/> </vbox> </vbox> </vbox> <label id="poweredByLink" align="MIDDLE_CENTER" htmlEnabled="true" stylename="c-powered-by" value="mainMsg://cuba.poweredBy"/> </layout> </window> ```
/content/code_sandbox/modules/web/src/com/haulmont/cuba/web/app/login/login-screen.xml
xml
2016-03-24T07:55:56
2024-07-14T05:13:48
cuba
cuba-platform/cuba
1,342
624
```xml import * as React from 'react'; import { Text } from '@fluentui/react-northstar'; const TextExampleAtMention = () => ( <div> <Text atMention>@someone</Text> <br /> <Text atMention="me">@me</Text> </div> ); export default TextExampleAtMention; ```
/content/code_sandbox/packages/fluentui/docs/src/examples/components/Text/Variations/TextExampleAtMention.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
78
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { renderIcon } from '../icon.renderer.js'; import { IconShapeTuple } from '../interfaces/icon.interfaces.js'; const icon = { outline: '<path d="M32,6H4A2,2,0,0,0,2,8V28a2,2,0,0,0,2,2H32a2,2,0,0,0,2-2V8A2,2,0,0,0,32,6Zm0,2,0,12H4L4,8ZM4,28V24H32v4Z"/>', solid: '<rect x="7" y="3" width="22" height="30" rx="0.96" ry="0.96" transform="translate(36) rotate(90)" fill="none" stroke="#000" stroke-linejoin="round" stroke-width="2"/><path d="M32,6H4A2,2,0,0,0,2,8V28a2,2,0,0,0,2,2H32a2,2,0,0,0,2-2V8A2,2,0,0,0,32,6Zm0,18H4V20H32Z"/>', }; export const creditCardIconName = 'credit-card'; export const creditCardIcon: IconShapeTuple = [creditCardIconName, renderIcon(icon)]; ```
/content/code_sandbox/packages/core/src/icon/shapes/credit-card.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
343
```xml import { DEFAULT_KEY_GENERATION_OFFSET, DEFAULT_SIGNATURE_VERIFICATION_OFFSET, VERIFICATION_STATUS, } from 'pmcrypto-v6-canary/lib/constants'; import { captureMessage } from '@proton/shared/lib/helpers/sentry'; import { serverTime } from '../serverTime'; import type { ApiInterface } from '../worker/api'; import type { WorkerVerifyOptions } from '../worker/api.models'; export type CryptoApiInterface = ApiInterface; const assertNotNull = (value: CryptoApiInterface | null): CryptoApiInterface => { if (value === null) { throw new Error('CryptoProxy: endpoint not initialized'); } return value; }; let endpoint: CryptoApiInterface | null = null; let onEndpointRelease: (endpoint?: any) => Promise<void> = async () => {}; interface CryptoProxyInterface extends CryptoApiInterface { /** * Set proxy endpoint. * The provided instance must be already initialised and ready to resolve requests. * @param endpoint * @param onRelease - callback called after `this.releaseEndpoint()` is invoked and endpoint is released */ setEndpoint<T extends CryptoApiInterface>(endpoint: T, onRelease?: (endpoint: T) => Promise<void>): void; /** * Release endpoint. Afterwards, a different one may be set via `setEndpoint()`. * If a `onRelease` callback was passed to `setEndpoint()`, the callback is called before returning. * Note that this function does not have any other side effects, e.g. it does not clear the key store automatically. * Any endpoint-specific clean up logic should be done inside the `onRelease` callback. */ releaseEndpoint(): Promise<void>; } /** * Prior to OpenPGP.js v5.4.0, trailing spaces were not properly stripped with \r\n line endings (see path_to_url * In order to verify the signatures generated over the incorrectly normalised data, we fallback to not normalising the input. * Currently, this is done inside the CryptoProxy, to transparently track the number of signatures that are affected throughout the apps. * @param options - verification options, with `date` already set to server time */ async function verifyMessageWithFallback< DataType extends string | Uint8Array, FormatType extends WorkerVerifyOptions<DataType>['format'] = 'utf8', >(options: WorkerVerifyOptions<DataType> & { format?: FormatType }) { const verificationResult = await assertNotNull(endpoint).verifyMessage<DataType, FormatType>(options); const { textData, stripTrailingSpaces } = options; if ( verificationResult.verified === VERIFICATION_STATUS.SIGNED_AND_INVALID && stripTrailingSpaces && textData && verificationResult.data !== textData // detect whether some normalisation was applied ) { const fallbackverificationResult = await assertNotNull(endpoint).verifyMessage<string, FormatType>({ ...options, binaryData: undefined, stripTrailingSpaces: false, }); if (fallbackverificationResult.verified === VERIFICATION_STATUS.SIGNED_AND_VALID) { captureMessage('Fallback verification needed', { level: 'info', }); return fallbackverificationResult; } // detect whether the message has trailing spaces followed by a mix of \r\n and \n line endings const legacyRemoveTrailingSpaces = (text: string) => { return text .split('\n') .map((line) => { let i = line.length - 1; for (; i >= 0 && (line[i] === ' ' || line[i] === '\t'); i--) {} return line.substr(0, i + 1); }) .join('\n'); }; if (textData !== legacyRemoveTrailingSpaces(textData)) { captureMessage('Fallback verification insufficient', { level: 'info', }); } } return verificationResult; } /** * CryptoProxy relays crypto requests to the specified endpoint, which is typically a worker(s), except if * CryptoProxy is already called (also indirectly) from inside a worker. * In such a case, the endpoint can be set to a `new WorkerApi()` instance, or to tbe worker instance itself, * provided it implements/extends WorkerApi. */ export const CryptoProxy: CryptoProxyInterface = { setEndpoint(endpointInstance, onRelease = onEndpointRelease) { if (endpoint) { throw new Error('already initialised'); } endpoint = endpointInstance; onEndpointRelease = onRelease; }, releaseEndpoint() { const tmp = endpoint; endpoint = null; return onEndpointRelease(assertNotNull(tmp)); }, encryptMessage: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).encryptMessage({ ...opts, date }), decryptMessage: async ({ date = new Date(+serverTime() + DEFAULT_SIGNATURE_VERIFICATION_OFFSET), ...opts }) => assertNotNull(endpoint).decryptMessage({ ...opts, date }), signMessage: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).signMessage({ ...opts, date }), verifyMessage: async ({ date = new Date(+serverTime() + DEFAULT_SIGNATURE_VERIFICATION_OFFSET), ...opts }) => verifyMessageWithFallback({ ...opts, date }), verifyCleartextMessage: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).verifyCleartextMessage({ ...opts, date }), processMIME: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).processMIME({ ...opts, date }), generateSessionKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).generateSessionKey({ ...opts, date }), generateSessionKeyForAlgorithm: async (opts) => assertNotNull(endpoint).generateSessionKeyForAlgorithm(opts), encryptSessionKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).encryptSessionKey({ ...opts, date }), decryptSessionKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).decryptSessionKey({ ...opts, date }), importPrivateKey: async (opts) => assertNotNull(endpoint).importPrivateKey(opts), importPublicKey: async (opts) => assertNotNull(endpoint).importPublicKey(opts), generateKey: async ({ date = new Date(+serverTime() + DEFAULT_KEY_GENERATION_OFFSET), ...opts }) => assertNotNull(endpoint).generateKey({ ...opts, date }), reformatKey: async ({ privateKey, date = privateKey.getCreationTime(), ...opts }) => assertNotNull(endpoint).reformatKey({ ...opts, privateKey, date }), exportPublicKey: async (opts) => assertNotNull(endpoint).exportPublicKey(opts), exportPrivateKey: async (opts) => assertNotNull(endpoint).exportPrivateKey(opts), clearKeyStore: () => assertNotNull(endpoint).clearKeyStore(), clearKey: async (opts) => assertNotNull(endpoint).clearKey(opts), replaceUserIDs: async (opts) => assertNotNull(endpoint).replaceUserIDs(opts), cloneKeyAndChangeUserIDs: async (opts) => assertNotNull(endpoint).cloneKeyAndChangeUserIDs(opts), generateE2EEForwardingMaterial: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).generateE2EEForwardingMaterial({ ...opts, date }), doesKeySupportE2EEForwarding: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).doesKeySupportE2EEForwarding({ ...opts, date }), isE2EEForwardingKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).isE2EEForwardingKey({ ...opts, date }), isRevokedKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).isRevokedKey({ ...opts, date }), isExpiredKey: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).isExpiredKey({ ...opts, date }), canKeyEncrypt: async ({ date = serverTime(), ...opts }) => assertNotNull(endpoint).canKeyEncrypt({ ...opts, date }), getSHA256Fingerprints: async (opts) => assertNotNull(endpoint).getSHA256Fingerprints(opts), computeHash: async (opts) => assertNotNull(endpoint).computeHash(opts), computeHashStream: async (opts) => assertNotNull(endpoint).computeHashStream(opts), computeArgon2: (opts) => assertNotNull(endpoint).computeArgon2(opts), getArmoredMessage: async (opts) => assertNotNull(endpoint).getArmoredMessage(opts), getArmoredKeys: async (opts) => assertNotNull(endpoint).getArmoredKeys(opts), getArmoredSignature: async (opts) => assertNotNull(endpoint).getArmoredSignature(opts), getSignatureInfo: async (opts) => assertNotNull(endpoint).getSignatureInfo(opts), getMessageInfo: async (opts) => assertNotNull(endpoint).getMessageInfo(opts), getKeyInfo: async (opts) => assertNotNull(endpoint).getKeyInfo(opts), }; ```
/content/code_sandbox/packages/crypto/lib/proxy/proxy.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,875
```xml <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>LineBar</class> <widget class="QWidget" name="LineBar"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>474</width> <height>114</height> </rect> </property> <property name="windowTitle"> <string notr="true"/> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <property name="spacing"> <number>0</number> </property> <property name="leftMargin"> <number>0</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>0</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QWidget" name="lineChartWidget" native="true"> <layout class="QGridLayout" name="gridLayout_2"> <property name="leftMargin"> <number>25</number> </property> <property name="topMargin"> <number>15</number> </property> <property name="rightMargin"> <number>25</number> </property> <property name="bottomMargin"> <number>15</number> </property> <property name="horizontalSpacing"> <number>0</number> </property> <property name="verticalSpacing"> <number>15</number> </property> <item row="3" column="0" alignment="Qt::AlignLeft|Qt::AlignBottom"> <widget class="QLabel" name="lblLineChartTotal"> <property name="text"> <string notr="true">Total</string> </property> </widget> </item> <item row="2" column="0" colspan="2" alignment="Qt::AlignVCenter"> <widget class="QProgressBar" name="lineChartProgress"> <property name="minimumSize"> <size> <width>0</width> <height>20</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>20</height> </size> </property> <property name="styleSheet"> <string notr="true"/> </property> <property name="value"> <number>0</number> </property> <property name="textVisible"> <bool>false</bool> </property> </widget> </item> <item row="3" column="1" alignment="Qt::AlignRight|Qt::AlignBottom"> <widget class="QLabel" name="lblLineChartValue"> <property name="text"> <string notr="true">Value</string> </property> </widget> </item> <item row="1" column="0" colspan="2" alignment="Qt::AlignTop"> <widget class="QLabel" name="lblLineChartTitle"> <property name="text"> <string notr="true">Title</string> </property> </widget> </item> </layout> </widget> </item> </layout> </widget> <resources/> <connections/> </ui> ```
/content/code_sandbox/stacer/Pages/Dashboard/linebar.ui
xml
2016-11-06T09:48:44
2024-08-16T05:48:30
Stacer
oguzhaninan/Stacer
8,831
794
```xml <?xml version="1.0" encoding="utf-8"?> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> <LWM2M xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="path_to_url"> <Object ObjectType="MODefinition"> <Name>CCU</Name> <Description1><![CDATA[This LWM2M Object includes CCU(Central Control Unit) information and the link to CCU APPs.]]></Description1> <ObjectID>10320</ObjectID> <ObjectURN>urn:oma:lwm2m:x:10320</ObjectURN> <LWM2MVersion>1.0</LWM2MVersion> <ObjectVersion>1.0</ObjectVersion> <MultipleInstances>Multiple</MultipleInstances> <Mandatory>Optional</Mandatory> <Resources> <Item ID="1"> <Name>CCU ID</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>String</Type> <RangeEnumeration/> <Units/> <Description><![CDATA[The CCU identity.]]></Description> </Item> <Item ID="2"> <Name>CCU FM Version</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>String</Type> <RangeEnumeration/> <Units/> <Description><![CDATA[The firmware version of the CCU.]]></Description> </Item> <Item ID="3"> <Name>CCU SW Version</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>String</Type> <RangeEnumeration/> <Units/> <Description><![CDATA[The software version of the CCU.]]></Description> </Item> <Item ID="4"> <Name>CCU Memory Size</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>Integer</Type> <RangeEnumeration/> <Units>GB</Units> <Description><![CDATA[Total Memory Size of the CCU (expressed in gigabyte).]]></Description> </Item> <Item ID="5"> <Name>CCU Storage</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>Integer</Type> <RangeEnumeration/> <Units>GB</Units> <Description><![CDATA[Total storage of the CCU.]]></Description> </Item> <Item ID="6"> <Name>CCU Available Storage</Name> <Operations>R</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>Integer</Type> <RangeEnumeration/> <Units>GB</Units> <Description><![CDATA[Available storage of the CCU.]]></Description> </Item> <Item ID="5852"> <Name>On time</Name> <Operations>RW</Operations> <MultipleInstances>Single</MultipleInstances> <Mandatory>Mandatory</Mandatory> <Type>Integer</Type> <RangeEnumeration/> <Units>s</Units> <Description><![CDATA[The time in seconds that the device has been on. Writing a value of 0 resets the counter.]]></Description> </Item> <Item ID="100"> <Name>Downloaded APP Packages</Name> <Operations>R</Operations> <MultipleInstances>Multiple</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>String</Type> <RangeEnumeration/> <Units/> <Description><![CDATA[Each item contains APP Name, Version info, Package Name.]]></Description> </Item> <Item ID="101"> <Name>CCU APPs</Name> <Operations>R</Operations> <MultipleInstances>Multiple</MultipleInstances> <Mandatory>Optional</Mandatory> <Type>Objlnk</Type> <RangeEnumeration/> <Units/> <Description> <![CDATA[Contains the reference to the APPs belongs to this CCU.]]> </Description> </Item> </Resources> <Description2 /> </Object> </LWM2M> ```
/content/code_sandbox/application/src/main/data/lwm2m-registry/10320.xml
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
1,276
```xml export * from './SelectableOption'; export * from './SelectableOption.types'; export * from './SelectableDroppableText.types'; ```
/content/code_sandbox/packages/react/src/utilities/selectableOption/index.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
27
```xml import type { ISessionContext, ISessionContextDialogs, IWidgetTracker } from '@jupyterlab/apputils'; import type { Cell } from '@jupyterlab/cells'; import type { ITranslator } from '@jupyterlab/translation'; import { Token } from '@lumino/coreutils'; import type { ISignal } from '@lumino/signaling'; import type { Widget } from '@lumino/widgets'; import type { KernelError } from './actions'; import type { INotebookModel } from './model'; import type { NotebookTools } from './notebooktools'; import type { NotebookPanel } from './panel'; import type { StaticNotebook } from './widget'; import type { NotebookWidgetFactory } from './widgetfactory'; /** * The notebook widget factory token. */ export const INotebookWidgetFactory = new Token<NotebookWidgetFactory.IFactory>( '@jupyterlab/notebook:INotebookWidgetFactory', 'A service to create the notebook viewer.' ); /** * The notebook tools token. */ export const INotebookTools = new Token<INotebookTools>( '@jupyterlab/notebook:INotebookTools', `A service for the "Notebook Tools" panel in the right sidebar. Use this to add your own functionality to the panel.` ); /** * The interface for notebook metadata tools. */ export interface INotebookTools extends Widget { activeNotebookPanel: NotebookPanel | null; activeCell: Cell | null; selectedCells: Cell[]; addItem(options: NotebookTools.IAddOptions): void; addSection(options: NotebookTools.IAddSectionOptions): void; } /** * The namespace for NotebookTools class statics. */ export namespace INotebookTools { /** * The options used to add an item to the notebook tools. */ export interface IAddOptions { /** * The tool to add to the notebook tools area. */ tool: ITool; /** * The section to which the tool should be added. */ section: 'advanced' | string; /** * The rank order of the widget among its siblings. */ rank?: number; } /** * The options used to add a section to the notebook tools. */ export interface IAddSectionOptions { /** * The name of the new section. */ sectionName: string; /** * The tool to add to the notebook tools area. */ tool?: INotebookTools.ITool; /** * The label of the new section. */ label?: string; /** * The rank order of the section among its siblings. */ rank?: number; } export interface ITool extends Widget { /** * The notebook tools object. */ notebookTools: INotebookTools; } } /** * The notebook tracker token. */ export const INotebookTracker = new Token<INotebookTracker>( '@jupyterlab/notebook:INotebookTracker', `A widget tracker for notebooks. Use this if you want to be able to iterate over and interact with notebooks created by the application.` ); /** * An object that tracks notebook widgets. */ export interface INotebookTracker extends IWidgetTracker<NotebookPanel> { /** * The currently focused cell. * * #### Notes * If there is no cell with the focus, then this value is `null`. */ readonly activeCell: Cell | null; /** * A signal emitted when the current active cell changes. * * #### Notes * If there is no cell with the focus, then `null` will be emitted. */ readonly activeCellChanged: ISignal<this, Cell | null>; /** * A signal emitted when the selection state changes. */ readonly selectionChanged: ISignal<this, void>; } /** * Notebook cell executor namespace */ export namespace INotebookCellExecutor { /** * Execution options for notebook cell executor. */ export interface IRunCellOptions { /** * Cell to execute */ cell: Cell; /** * Notebook to which the cell belongs */ notebook: INotebookModel; /** * Notebook widget configuration */ notebookConfig: StaticNotebook.INotebookConfig; /** * A callback to notify a cell completed execution. */ onCellExecuted: (args: { cell: Cell; success: boolean; error?: KernelError | null; }) => void; /** * A callback to notify that a cell execution is scheduled. */ onCellExecutionScheduled: (args: { cell: Cell }) => void; /** * Document session context */ sessionContext?: ISessionContext; /** * Session dialogs */ sessionDialogs?: ISessionContextDialogs; /** * Application translator */ translator?: ITranslator; } } /** * Notebook cell executor interface */ export interface INotebookCellExecutor { /** * Execute a cell. * * @param options Cell execution options */ runCell(options: INotebookCellExecutor.IRunCellOptions): Promise<boolean>; } /** * The notebook cell executor token. */ export const INotebookCellExecutor = new Token<INotebookCellExecutor>( '@jupyterlab/notebook:INotebookCellExecutor', `The notebook cell executor` ); ```
/content/code_sandbox/packages/notebook/src/tokens.ts
xml
2016-06-03T20:09:17
2024-08-16T19:12:44
jupyterlab
jupyterlab/jupyterlab
14,019
1,173
```xml import { CryptoProxy } from '@proton/crypto/lib'; import { ADDRESS_TYPE } from '@proton/shared/lib/constants'; import { Address, AddressKey, DecryptedAddressKey, DecryptedKey } from '@proton/shared/lib/interfaces'; import { getDecryptedAddressKey } from '@proton/shared/lib/keys'; import { addressPgpPrvKey } from '../fixtures/keys'; // passphrase is `testtest` const addressKey = { ID: '0000000001', PrivateKey: addressPgpPrvKey, Primary: 1, Flags: 0 } as AddressKey; const address: Address = { ID: '0000001', CatchAll: true, DisplayName: 'My test address', DomainID: '0000000001', Email: 'test@proton.test', HasKeys: 1, Keys: [addressKey], SignedKeyList: { Data: '', Signature: '', MinEpochID: 0, MaxEpochID: 1 }, Order: 0, Priority: 0, Receive: 1, Send: 1, Signature: '', Status: 0, Type: ADDRESS_TYPE.TYPE_ORIGINAL, ProtonMX: false, ConfirmationState: 1, Permissions: 0, }; export const getAddressKey = async () => { const passphrase = 'testtest'; const keys: DecryptedAddressKey[] = [await getDecryptedAddressKey(addressKey, passphrase)]; return { address, keys }; }; export const getUserKeys = async () => { const key1 = await CryptoProxy.importPrivateKey({ armoredKey: addressPgpPrvKey, passphrase: 'testtest' }); const userKeys: DecryptedKey[] = [ { privateKey: key1, publicKey: key1, ID: 'WALLET_TEST', }, ]; return userKeys; }; ```
/content/code_sandbox/packages/wallet/tests/utils/keys.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
406
```xml import { execSync } from 'child_process'; import * as fs from 'fs'; import * as path from 'path'; import type { BeachballConfig } from 'beachball'; import { renderEntry, renderHeader } from './customRenderers'; const baseConfig: typeof import('../base.config.json') = JSON.parse( fs.readFileSync(path.resolve(__dirname, '../base.config.json'), { encoding: 'utf8' }), ); export const config: typeof baseConfig & Required<Pick<BeachballConfig, 'changelog' | 'hooks'>> = { ...baseConfig, changelog: { customRenderers: { renderHeader, renderEntry, }, }, hooks: { precommit: () => { try { const generators = [ // Fixes any dependency mismatches caused by beachball scoping 'dependency-mismatch', // Fixes unwanted pre-release dependency bumps caused by beachball 'normalize-package-dependencies', ]; generators.forEach(generator => { const cmd = `yarn nx g @fluentui/workspace-plugin:${generator}`; const out = execSync(cmd); console.log(out.toString()); }); } catch (err) { console.error(err); } }, }, }; ```
/content/code_sandbox/scripts/beachball/src/shared.config.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
267
```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 /** * Interface defining function options. */ interface Options { /** * String used to left pad. */ lpad?: string; /** * String used to right pad. */ rpad?: string; /** * Boolean indicating whether to center right in the event of a tie. */ centerRight?: boolean; } /** * Pads a string such that the padded string has a length of `len`. * * @param str - string to pad * @param len - string length * @param options - function options * @param options.lpad - string used to left pad (default: '') * @param options.rpad - string used to right pad (default: ' ') * @param options.centerRight - boolean indicating whether to center right in the event of a tie (default: false) * @throws second argument must be a nonnegative integer * @throws must provide valid options * @throws at least one padding must have a length greater than `0` * @returns padded string * * @example * var str = pad( 'a', 5 ); * // returns 'a ' * * @example * var str = pad( 'a', 10, { * 'lpad': 'b' * }); * // returns 'bbbbbbbbba' * * @example * var str = pad( 'a', 12, { * 'rpad': 'b' * }); * // returns 'abbbbbbbbbbb' * * @example * var opts = { * 'lpad': 'a', * 'rpad': 'c' * }; * var str = pad( 'b', 10, opts ); * // returns 'aaaabccccc' * * @example * var opts = { * 'lpad': 'a', * 'rpad': 'c', * 'centerRight': true * }; * var str = pad( 'b', 10, opts ); * // returns 'aaaaabcccc' */ declare function pad( str: string, len: number, options?: Options ): string; // EXPORTS // export = pad; ```
/content/code_sandbox/lib/node_modules/@stdlib/string/pad/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
511
```xml import { Subject, Observable } from 'rxjs'; import { now, ensureNotFalsy, defaultHashSha256, RXDB_UTILS_GLOBAL, PREMIUM_FLAG_HASH } from '../utils/index.ts'; import type { RxStorageInstance, RxStorageChangeEvent, RxDocumentData, BulkWriteRow, RxStorageBulkWriteResponse, RxStorageQueryResult, RxJsonSchema, RxStorageInstanceCreationParams, EventBulk, StringKeys, RxConflictResultionTask, RxConflictResultionTaskSolution, RxStorageDefaultCheckpoint, CategorizeBulkWriteRowsOutput, RxStorageCountResult, PreparedQuery } from '../../types/index.d.ts'; import type { DexieSettings, DexieStorageInternals } from '../../types/plugins/dexie.d.ts'; import { RxStorageDexie } from './rx-storage-dexie.ts'; import { attachmentObjectId, closeDexieDb, fromStorageToDexie, getDexieDbWithTables, getDocsInDb, RX_STORAGE_NAME_DEXIE } from './dexie-helper.ts'; import { dexieCount, dexieQuery } from './dexie-query.ts'; import { getPrimaryFieldOfPrimaryKey } from '../../rx-schema-helper.ts'; import { categorizeBulkWriteRows, flatCloneDocWithMeta } from '../../rx-storage-helper.ts'; import { addRxStorageMultiInstanceSupport } from '../../rx-storage-multiinstance.ts'; import { newRxError } from '../../rx-error.ts'; let instanceId = now(); let shownNonPremiumLog = false; export class RxStorageInstanceDexie<RxDocType> implements RxStorageInstance< RxDocType, DexieStorageInternals, DexieSettings, RxStorageDefaultCheckpoint > { public readonly primaryPath: StringKeys<RxDocumentData<RxDocType>>; private changes$: Subject<EventBulk<RxStorageChangeEvent<RxDocumentData<RxDocType>>, RxStorageDefaultCheckpoint>> = new Subject(); public readonly instanceId = instanceId++; public closed?: Promise<void>; constructor( public readonly storage: RxStorageDexie, public readonly databaseName: string, public readonly collectionName: string, public readonly schema: Readonly<RxJsonSchema<RxDocumentData<RxDocType>>>, public readonly internals: DexieStorageInternals, public readonly options: Readonly<DexieSettings>, public readonly settings: DexieSettings, public readonly devMode: boolean ) { this.primaryPath = getPrimaryFieldOfPrimaryKey(this.schema.primaryKey); } async bulkWrite( documentWrites: BulkWriteRow<RxDocType>[], context: string ): Promise<RxStorageBulkWriteResponse<RxDocType>> { ensureNotClosed(this); if ( !shownNonPremiumLog && ( !RXDB_UTILS_GLOBAL.premium || typeof RXDB_UTILS_GLOBAL.premium !== 'string' || (await defaultHashSha256(RXDB_UTILS_GLOBAL.premium) !== PREMIUM_FLAG_HASH) ) ) { console.warn( [ '-------------- RxDB Open Core RxStorage -------------------------------', 'You are using the free Dexie.js based RxStorage implementation from RxDB path_to_url ', 'While this is a great option, we want to let you know that there are faster storage solutions available in our premium plugins.', 'For professional users and production environments, we highly recommend considering these premium options to enhance performance and reliability.', ' path_to_url ', 'If you already purchased premium access you can disable this log by calling the setPremiumFlag() function from rxdb-premium/plugins/shared.', your_sha256_hash-----' ].join('\n') ); shownNonPremiumLog = true; } else { shownNonPremiumLog = true; } /** * Check some assumptions to ensure RxDB * does not call the storage with an invalid write. */ documentWrites.forEach(row => { // ensure revision is set if ( !row.document._rev || ( row.previous && !row.previous._rev ) ) { throw newRxError('SNH', { args: { row } }); } }); const state = await this.internals; const ret: RxStorageBulkWriteResponse<RxDocType> = { error: [] }; /** * Some storages might add any _meta fields * internally. To ensure RxDB can work with that in the * test suite, we add a random field here. * To ensure */ if (this.devMode) { documentWrites = documentWrites.map(row => { const doc = flatCloneDocWithMeta(row.document); return { previous: row.previous, document: doc } }) } const documentKeys: string[] = documentWrites.map(writeRow => writeRow.document[this.primaryPath] as any); let categorized: CategorizeBulkWriteRowsOutput<RxDocType> | undefined; await state.dexieDb.transaction( 'rw', state.dexieTable, state.dexieAttachmentsTable, async () => { const docsInDbMap = new Map<string, RxDocumentData<RxDocType>>(); const docsInDbWithInternals = await getDocsInDb<RxDocType>(this.internals, documentKeys); docsInDbWithInternals.forEach(docWithDexieInternals => { const doc = docWithDexieInternals; if (doc) { docsInDbMap.set((doc as any)[this.primaryPath], doc as any); } return doc; }); categorized = categorizeBulkWriteRows<RxDocType>( this, this.primaryPath as any, docsInDbMap, documentWrites, context ); ret.error = categorized.errors; /** * Batch up the database operations * so we can later run them in bulk. */ let bulkPutDocs: any[] = []; categorized.bulkInsertDocs.forEach(row => { bulkPutDocs.push(row.document); }); categorized.bulkUpdateDocs.forEach(row => { bulkPutDocs.push(row.document); }); bulkPutDocs = bulkPutDocs.map(d => fromStorageToDexie(state.booleanIndexes, d)); if (bulkPutDocs.length > 0) { await state.dexieTable.bulkPut(bulkPutDocs); } // handle attachments const putAttachments: { id: string, data: string }[] = []; categorized.attachmentsAdd.forEach(attachment => { putAttachments.push({ id: attachmentObjectId(attachment.documentId, attachment.attachmentId), data: attachment.attachmentData.data }); }); categorized.attachmentsUpdate.forEach(attachment => { putAttachments.push({ id: attachmentObjectId(attachment.documentId, attachment.attachmentId), data: attachment.attachmentData.data }); }); await state.dexieAttachmentsTable.bulkPut(putAttachments); await state.dexieAttachmentsTable.bulkDelete( categorized.attachmentsRemove.map(attachment => attachmentObjectId(attachment.documentId, attachment.attachmentId)) ); }); categorized = ensureNotFalsy(categorized); if (categorized.eventBulk.events.length > 0) { const lastState = ensureNotFalsy(categorized.newestRow).document; categorized.eventBulk.checkpoint = { id: lastState[this.primaryPath], lwt: lastState._meta.lwt }; categorized.eventBulk.endTime = now(); this.changes$.next(categorized.eventBulk); } return ret; } async findDocumentsById( ids: string[], deleted: boolean ): Promise<RxDocumentData<RxDocType>[]> { ensureNotClosed(this); const state = await this.internals; const ret: RxDocumentData<RxDocType>[] = []; await state.dexieDb.transaction( 'r', state.dexieTable, async () => { const docsInDb = await getDocsInDb<RxDocType>(this.internals, ids); docsInDb.forEach(documentInDb => { if ( documentInDb && (!documentInDb._deleted || deleted) ) { ret.push(documentInDb); } }); }); return ret; } query(preparedQuery: PreparedQuery<RxDocType>): Promise<RxStorageQueryResult<RxDocType>> { ensureNotClosed(this); return dexieQuery( this, preparedQuery ); } async count( preparedQuery: PreparedQuery<RxDocType> ): Promise<RxStorageCountResult> { if (preparedQuery.queryPlan.selectorSatisfiedByIndex) { const result = await dexieCount(this, preparedQuery); return { count: result, mode: 'fast' }; } else { const result = await dexieQuery(this, preparedQuery); return { count: result.documents.length, mode: 'slow' }; } } changeStream(): Observable<EventBulk<RxStorageChangeEvent<RxDocumentData<RxDocType>>, RxStorageDefaultCheckpoint>> { ensureNotClosed(this); return this.changes$.asObservable(); } async cleanup(minimumDeletedTime: number): Promise<boolean> { ensureNotClosed(this); const state = await this.internals; await state.dexieDb.transaction( 'rw', state.dexieTable, async () => { const maxDeletionTime = now() - minimumDeletedTime; /** * TODO only fetch _deleted=true */ const toRemove = await state.dexieTable .where('_meta.lwt') .below(maxDeletionTime) .toArray(); const removeIds: string[] = []; toRemove.forEach(doc => { if (doc._deleted === '1') { removeIds.push(doc[this.primaryPath]); } }); await state.dexieTable.bulkDelete(removeIds); } ); /** * TODO instead of deleting all deleted docs at once, * only clean up some of them and return false if there are more documents to clean up. * This ensures that when many documents have to be purged, * we do not block the more important tasks too long. */ return true; } async getAttachmentData(documentId: string, attachmentId: string, _digest: string): Promise<string> { ensureNotClosed(this); const state = await this.internals; const id = attachmentObjectId(documentId, attachmentId); return await state.dexieDb.transaction( 'r', state.dexieAttachmentsTable, async () => { const attachment = await state.dexieAttachmentsTable.get(id); if (attachment) { return attachment.data; } else { throw new Error('attachment missing documentId: ' + documentId + ' attachmentId: ' + attachmentId); } }); } async remove(): Promise<void> { ensureNotClosed(this); const state = await this.internals; await state.dexieTable.clear() return this.close(); } close(): Promise<void> { if (this.closed) { return this.closed; } this.closed = (async () => { this.changes$.complete(); await closeDexieDb(this.internals); })(); return this.closed; } conflictResultionTasks(): Observable<RxConflictResultionTask<RxDocType>> { return new Subject(); } async resolveConflictResultionTask(_taskSolution: RxConflictResultionTaskSolution<RxDocType>): Promise<void> { } } export async function createDexieStorageInstance<RxDocType>( storage: RxStorageDexie, params: RxStorageInstanceCreationParams<RxDocType, DexieSettings>, settings: DexieSettings ): Promise<RxStorageInstanceDexie<RxDocType>> { const internals = getDexieDbWithTables( params.databaseName, params.collectionName, settings, params.schema ); const instance = new RxStorageInstanceDexie( storage, params.databaseName, params.collectionName, params.schema, internals, params.options, settings, params.devMode ); await addRxStorageMultiInstanceSupport( RX_STORAGE_NAME_DEXIE, params, instance ); return Promise.resolve(instance); } function ensureNotClosed( instance: RxStorageInstanceDexie<any> ) { if (instance.closed) { throw new Error('RxStorageInstanceDexie is closed ' + instance.databaseName + '-' + instance.collectionName); } } ```
/content/code_sandbox/src/plugins/storage-dexie/rx-storage-instance-dexie.ts
xml
2016-12-02T19:34:42
2024-08-16T15:47:20
rxdb
pubkey/rxdb
21,054
2,727
```xml import Button from '@mui/material/Button'; import Dialog from '@mui/material/Dialog'; import DialogActions from '@mui/material/DialogActions'; import React from 'react'; import { useTranslation } from 'react-i18next'; import { Content, Title } from './styles'; import { Props } from './types'; const RegistryInfoDialog: React.FC<Props> = ({ open = false, children, onClose, title = '' }) => { const { t } = useTranslation(); return ( <Dialog data-testid={'registryInfo--dialog'} id="registryInfo--dialog-container" maxWidth="sm" onClose={onClose} open={open} > <Title>{title}</Title> <Content>{children}</Content> <DialogActions> <Button color="inherit" id="registryInfo--dialog-close" onClick={onClose}> {t('button.close')} </Button> </DialogActions> </Dialog> ); }; export default RegistryInfoDialog; ```
/content/code_sandbox/packages/ui-components/src/components/RegistryInfoDialog/RegistryInfoDialog.tsx
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
212
```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"/> /** * If provided input values, the accumulator function returns an updated mean percentage error. If not provided input values, the accumulator function returns the current mean percentage error. * * ## Notes * * - If provided `NaN` or a value which, when used in computations, results in `NaN`, the accumulated value is `NaN` for all future invocations. * * @param f - input value * @param a - input value * @returns mean percentage error or null */ type accumulator = ( f?: number, a?: number ) => number | null; /** * Returns an accumulator function which incrementally computes a moving mean percentage error. * * ## Notes * * - The `W` parameter defines the number of values over which to compute the moving mean percentage error. * - As `W` (f,a) pairs are needed to fill the window buffer, the first `W-1` returned values are calculated from smaller sample sizes. Until the window is full, each returned value is calculated from all provided values. * * @param W - window size * @throws must provide a positive integer * @returns accumulator function * * @example * var accumulator = incrmmpe( 3 ); * * var m = accumulator(); * // returns null * * m = accumulator( 2.0, 3.0 ); * // returns ~33.33 * * m = accumulator( 5.0, 2.0 ); * // returns ~-58.33 * * m = accumulator( 3.0, 2.0 ); * // returns ~-55.56 * * m = accumulator( 2.0, 5.0 ); * // returns ~-46.67 * * m = accumulator(); * // returns ~-46.67 */ declare function incrmmpe( W: number ): accumulator; // EXPORTS // export = incrmmpe; ```
/content/code_sandbox/lib/node_modules/@stdlib/stats/incr/mmpe/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
472
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>Label</key> <string>org.pqrs.service.agent.Karabiner-NotificationWindow</string> <key>KeepAlive</key> <true/> <key>ProgramArguments</key> <array> <string>/Library/Application Support/org.pqrs/Karabiner-Elements/Karabiner-NotificationWindow.app/Contents/MacOS/Karabiner-NotificationWindow</string> </array> </dict> </plist> ```
/content/code_sandbox/src/apps/ServiceManager-Non-Privileged-Agents/LaunchAgents/org.pqrs.service.agent.Karabiner-NotificationWindow.plist
xml
2016-07-11T04:57:55
2024-08-16T18:49:52
Karabiner-Elements
pqrs-org/Karabiner-Elements
18,433
155
```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <parent> <artifactId>module-product</artifactId> <groupId>io.jpress</groupId> <version>5.0</version> </parent> <modelVersion>4.0.0</modelVersion> <groupId>io.jpress</groupId> <artifactId>module-product-search-lucene</artifactId> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>io.jpress</groupId> <artifactId>module-product-search</artifactId> <version>5.0</version> </dependency> <dependency> <groupId>io.jpress</groupId> <artifactId>module-product-model</artifactId> <version>5.0</version> </dependency> <dependency> <groupId>io.jpress</groupId> <artifactId>module-product-service</artifactId> <version>5.0</version> </dependency> <dependency> <groupId>org.lionsoul</groupId> <artifactId>jcseg-core</artifactId> <version>${jcseg.version}</version> </dependency> <dependency> <groupId>org.lionsoul</groupId> <artifactId>jcseg-analyzer</artifactId> <version>${jcseg.version}</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-core</artifactId> <version>${lucene.version}</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-queryparser</artifactId> <version>${lucene.version}</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-highlighter</artifactId> <version>${lucene.version}</version> </dependency> <dependency> <groupId>org.apache.lucene</groupId> <artifactId>lucene-analyzers-common</artifactId> <version>${lucene.version}</version> </dependency> </dependencies> </project> ```
/content/code_sandbox/module-product/module-product-search-lucene/pom.xml
xml
2016-03-26T04:34:41
2024-08-16T03:23:49
jpress
JPressProjects/jpress
2,652
541
```xml /* eslint camelcase: ["off"] */ import type Bulb from './index'; import Schedule, { createScheduleRule, ScheduleRule } from '../shared/schedule'; import type { ScheduleRuleInputTime } from '../shared/schedule'; import type { LightState } from './lighting'; import type { SendOptions } from '../client'; export type BulbScheduleRule = Omit<ScheduleRule, 'emin'> & { s_light: LightState; sact: 2; emin: -1; etime_opt: -1; }; export interface BulbScheduleRuleInput { lightState: LightState; /** * Date or number of minutes */ start: ScheduleRuleInputTime; /** * [0,6] = weekend, [1,2,3,4,5] = weekdays */ daysOfWeek?: number[]; /** * @defaultValue '' */ name: string; /** * @defaultValue true */ enable: boolean; } export default class BulbSchedule extends Schedule { constructor( override readonly device: Bulb, override readonly apiModuleName: string, override readonly childId?: string, ) { super(device, apiModuleName, childId); } /** * Adds Schedule rule. * * Sends `schedule.add_rule` command and returns rule id. * @returns parsed JSON response * @throws {@link ResponseError} */ override async addRule( rule: BulbScheduleRuleInput, sendOptions?: SendOptions, ): Promise<{ id: string }> { const { lightState, start, daysOfWeek, name = '', enable = true } = rule; const scheduleRule: BulbScheduleRule = { s_light: lightState, name, enable: enable ? 1 : 0, sact: 2, emin: -1, etime_opt: -1, ...createScheduleRule({ start, daysOfWeek }), }; return super.addRule(scheduleRule, sendOptions); } /** * Edits Schedule rule. * * Sends `schedule.edit_rule`. * @returns parsed JSON response * @throws {@link ResponseError} */ override async editRule( rule: BulbScheduleRuleInput & { id: string }, sendOptions?: SendOptions, ): Promise<unknown> { const { id, lightState, start, daysOfWeek, name = '', enable = true, } = rule; const scheduleRule = { id, s_light: lightState, name, enable: enable ? 1 : 0, sact: 2, emin: -1, etime_opt: -1, ...createScheduleRule({ start, daysOfWeek }), }; return super.editRule(scheduleRule, sendOptions); } } ```
/content/code_sandbox/src/bulb/schedule.ts
xml
2016-07-12T22:34:02
2024-08-12T19:23:48
tplink-smarthome-api
plasticrake/tplink-smarthome-api
1,015
622
```xml import { orderedApply } from "./functionality.js"; import type { CallbackDescriptor, CallbackOrDescriptor, FunctionalityObject, PromiseOrDirect, UnwrapCallback, } from "./interfaces.js"; const isDev = process.env.GRAPHILE_ENV === "development"; export class AsyncHooks<THooks extends FunctionalityObject<THooks>> { callbacks: { [key in keyof THooks]?: Array< THooks[keyof THooks] extends CallbackOrDescriptor<infer U> ? U : never >; } = Object.create(null); hook<THookName extends keyof THooks>( event: THookName, fn: THooks[THookName] extends CallbackOrDescriptor<infer U> ? U : never, ): void { this.callbacks[event] = this.callbacks[event] || []; this.callbacks[event]!.push(fn); } /** * Hooks can _mutate_ the argument, they cannot return a replacement. This * allows us to completely side-step the problem of recursive calls. */ process<THookName extends keyof THooks>( hookName: THookName, ...args: Parameters< THooks[THookName] extends CallbackOrDescriptor<infer U> ? U : never > ): void | Promise<void> { const callbacks = this.callbacks[hookName]; if (!callbacks) { return; } const l = callbacks.length; let chain = undefined; for (let i = 0; i < l; i++) { const callback = callbacks[i]; if (chain !== undefined) { chain = chain.then(() => callback.apply(null, args)); } else { const result = callback.apply(null, args); if (result != null) { if (isDev && typeof result.then !== "function") { throw new Error( `Hook '${ hookName as string }' returned invalid value of type ${typeof result} - must be 'undefined' or a Promise/PromiseLike.`, ); } chain = result; } } } return chain; } } /* DEPRECATED */ /** @deprecated Use FunctionalityObject */ export type HookObject<T> = FunctionalityObject<T>; /** @deprecated Use `orderedApply` */ export const applyHooks = orderedApply; /** @deprecated Use CallbackDescriptor */ export type PluginHookObject<T extends (...args: any[]) => any> = CallbackDescriptor<T>; /** @deprecated Use CallbackOrDescriptor */ export type PluginHook< T extends (...args: any[]) => PromiseOrDirect<UnwrapCallback<any> | void>, > = CallbackOrDescriptor<T>; /** @deprecated Use UnwrapCallback */ export type PluginHookCallback< T extends CallbackOrDescriptor<(...args: any[]) => any>, > = UnwrapCallback<T>; ```
/content/code_sandbox/utils/graphile-config/src/hooks.ts
xml
2016-04-14T21:29:19
2024-08-16T17:12:51
crystal
graphile/crystal
12,539
602
```xml <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <groupId>aws.example.kms</groupId> <artifactId>aws-kms-examples</artifactId> <version>1.0.0</version> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.6.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> <dependencyManagement> <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-bom</artifactId> <version>1.11.354</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-kms</artifactId> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> ```
/content/code_sandbox/java/example_code/kms/pom.xml
xml
2016-08-18T19:06:57
2024-08-16T18:59:44
aws-doc-sdk-examples
awsdocs/aws-doc-sdk-examples
9,298
375
```xml <?xml version="1.0" encoding="UTF-8"?> <phpunit xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" cacheResult="false" colors="true" failOnRisky="true" failOnWarning="true" beStrictAboutChangesToGlobalState="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" beStrictAboutCoverageMetadata="true"> <testsuites> <testsuite name="PHPStan"> <directory suffix="Test.php">tests</directory> </testsuite> </testsuites> <logging/> </phpunit> ```
/content/code_sandbox/e2e/phpunit-10-test/phpunit.xml
xml
2016-01-04T18:22:16
2024-08-16T08:39:06
phpstan
phpstan/phpstan
12,770
144
```xml import { Text } from 'slate' export const input = true export const test = value => { return Text.isText(value) } export const output = false ```
/content/code_sandbox/packages/slate/test/interfaces/Text/isText/boolean.tsx
xml
2016-06-18T01:52:42
2024-08-16T18:43:42
slate
ianstormtaylor/slate
29,492
37
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ListView android:id="@android:id/list" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipToPadding="false" android:overScrollMode="never" android:padding="15dp" android:scrollbars="none"> </ListView> </LinearLayout> ```
/content/code_sandbox/newapp/src/main/res/layout/activity_device_detail.xml
xml
2016-08-05T12:50:22
2024-08-14T03:19:32
BLE
xiaoyaoyou1212/BLE
1,380
123
```xml <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="wrap_content" tools:parentTag="FrameLayout"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:paddingBottom="@dimen/sub_medium_spacing" android:paddingTop="@dimen/sub_medium_spacing" android:paddingRight="@dimen/medium_spacing"> <org.horaapps.leafpic.views.themeable.ThemedSettingsIcon android:id="@+id/icon" android:layout_width="@dimen/icon_size" android:layout_height="@dimen/icon_size" android:layout_gravity="center_horizontal|center_vertical" android:layout_marginRight="@dimen/big_spacing" android:layout_marginLeft="@dimen/big_spacing" app:iiv_icon="gmd-android"/> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:gravity="center_vertical" android:orientation="vertical"> <org.horaapps.leafpic.views.themeable.ThemedSettingsTitle android:id="@+id/title" style="@style/TextAppearance.AppCompat.Subhead" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/md_grey_200" tools:text="title text goes here"/> <org.horaapps.leafpic.views.themeable.ThemedSettingsCaption android:id="@+id/caption" style="@style/TextAppearance.AppCompat.Caption" android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/md_grey_400" tools:text="caption text goes here"/> </LinearLayout> </LinearLayout> </merge> ```
/content/code_sandbox/app/src/main/res/layout/view_setting_basic.xml
xml
2016-01-07T17:24:12
2024-08-16T06:55:33
LeafPic
UnevenSoftware/LeafPic
3,258
439
```xml <?xml version="1.0" encoding="UTF-8"?> <countries> <country id="4" alpha2="af" alpha3="afg" name="Afghanistan"/> <country id="8" alpha2="al" alpha3="alb" name="Albania"/> <country id="12" alpha2="dz" alpha3="dza" name="Algeria"/> <country id="20" alpha2="ad" alpha3="and" name="Andorra"/> <country id="24" alpha2="ao" alpha3="ago" name="Angola"/> <country id="660" alpha2="ai" alpha3="aia" name="Anguilla"/> <country id="10" alpha2="aq" alpha3="ata" name="Antartide"/> <country id="28" alpha2="ag" alpha3="atg" name="Antigua e Barbuda"/> <country id="682" alpha2="sa" alpha3="sau" name="Arabia Saudita"/> <country id="32" alpha2="ar" alpha3="arg" name="Argentina"/> <country id="51" alpha2="am" alpha3="arm" name="Armenia"/> <country id="533" alpha2="aw" alpha3="abw" name="Aruba"/> <country id="36" alpha2="au" alpha3="aus" name="Australia"/> <country id="40" alpha2="at" alpha3="aut" name="Austria"/> <country id="31" alpha2="az" alpha3="aze" name="Azerbaigian"/> <country id="44" alpha2="bs" alpha3="bhs" name="Bahamas"/> <country id="48" alpha2="bh" alpha3="bhr" name="Bahrein"/> <country id="50" alpha2="bd" alpha3="bgd" name="Bangladesh"/> <country id="52" alpha2="bb" alpha3="brb" name="Barbados"/> <country id="56" alpha2="be" alpha3="bel" name="Belgio"/> <country id="84" alpha2="bz" alpha3="blz" name="Belize"/> <country id="204" alpha2="bj" alpha3="ben" name="Benin"/> <country id="60" alpha2="bm" alpha3="bmu" name="Bermuda"/> <country id="64" alpha2="bt" alpha3="btn" name="Bhutan"/> <country id="112" alpha2="by" alpha3="blr" name="Bielorussia"/> <country id="104" alpha2="mm" alpha3="mmr" name="Birmania"/> <country id="68" alpha2="bo" alpha3="bol" name="Bolivia"/> <country id="70" alpha2="ba" alpha3="bih" name="Bosnia ed Erzegovina"/> <country id="72" alpha2="bw" alpha3="bwa" name="Botswana"/> <country id="76" alpha2="br" alpha3="bra" name="Brasile"/> <country id="96" alpha2="bn" alpha3="brn" name="Brunei"/> <country id="100" alpha2="bg" alpha3="bgr" name="Bulgaria"/> <country id="854" alpha2="bf" alpha3="bfa" name="Burkina Faso"/> <country id="108" alpha2="bi" alpha3="bdi" name="Burundi"/> <country id="116" alpha2="kh" alpha3="khm" name="Cambogia"/> <country id="120" alpha2="cm" alpha3="cmr" name="Camerun"/> <country id="124" alpha2="ca" alpha3="can" name="Canada"/> <country id="132" alpha2="cv" alpha3="cpv" name="Capo Verde"/> <country id="148" alpha2="td" alpha3="tcd" name="Ciad"/> <country id="152" alpha2="cl" alpha3="chl" name="Cile"/> <country id="156" alpha2="cn" alpha3="chn" name="Cina"/> <country id="196" alpha2="cy" alpha3="cyp" name="Cipro"/> <country id="336" alpha2="va" alpha3="vat" name="Citt del Vaticano"/> <country id="170" alpha2="co" alpha3="col" name="Colombia"/> <country id="174" alpha2="km" alpha3="com" name="Comore"/> <country id="408" alpha2="kp" alpha3="prk" name="Corea del Nord"/> <country id="410" alpha2="kr" alpha3="kor" name="Corea del Sud"/> <country id="384" alpha2="ci" alpha3="civ" name="Costa d'Avorio"/> <country id="188" alpha2="cr" alpha3="cri" name="Costa Rica"/> <country id="191" alpha2="hr" alpha3="hrv" name="Croazia"/> <country id="192" alpha2="cu" alpha3="cub" name="Cuba"/> <country id="531" alpha2="cw" alpha3="cuw" name="Curaao"/> <country id="208" alpha2="dk" alpha3="dnk" name="Danimarca"/> <country id="212" alpha2="dm" alpha3="dma" name="Dominica"/> <country id="218" alpha2="ec" alpha3="ecu" name="Ecuador"/> <country id="818" alpha2="eg" alpha3="egy" name="Egitto"/> <country id="222" alpha2="sv" alpha3="slv" name="El Salvador"/> <country id="784" alpha2="ae" alpha3="are" name="Emirati Arabi Uniti"/> <country id="232" alpha2="er" alpha3="eri" name="Eritrea"/> <country id="233" alpha2="ee" alpha3="est" name="Estonia"/> <country id="231" alpha2="et" alpha3="eth" name="Etiopia"/> <country id="242" alpha2="fj" alpha3="fji" name="Figi"/> <country id="608" alpha2="ph" alpha3="phl" name="Filippine"/> <country id="246" alpha2="fi" alpha3="fin" name="Finlandia"/> <country id="250" alpha2="fr" alpha3="fra" name="Francia"/> <country id="266" alpha2="ga" alpha3="gab" name="Gabon"/> <country id="270" alpha2="gm" alpha3="gmb" name="Gambia"/> <country id="268" alpha2="ge" alpha3="geo" name="Georgia"/> <country id="239" alpha2="gs" alpha3="sgs" name="Georgia del Sud e Isole Sandwich Australi"/> <country id="276" alpha2="de" alpha3="deu" name="Germania"/> <country id="288" alpha2="gh" alpha3="gha" name="Ghana"/> <country id="388" alpha2="jm" alpha3="jam" name="Giamaica"/> <country id="392" alpha2="jp" alpha3="jpn" name="Giappone"/> <country id="292" alpha2="gi" alpha3="gib" name="Gibilterra"/> <country id="262" alpha2="dj" alpha3="dji" name="Gibuti"/> <country id="400" alpha2="jo" alpha3="jor" name="Giordania"/> <country id="300" alpha2="gr" alpha3="grc" name="Grecia"/> <country id="308" alpha2="gd" alpha3="grd" name="Grenada"/> <country id="304" alpha2="gl" alpha3="grl" name="Groenlandia"/> <country id="312" alpha2="gp" alpha3="glp" name="Guadalupa"/> <country id="316" alpha2="gu" alpha3="gum" name="Guam"/> <country id="320" alpha2="gt" alpha3="gtm" name="Guatemala"/> <country id="831" alpha2="gg" alpha3="ggy" name="Guernsey"/> <country id="324" alpha2="gn" alpha3="gin" name="Guinea"/> <country id="624" alpha2="gw" alpha3="gnb" name="Guinea-Bissau"/> <country id="226" alpha2="gq" alpha3="gnq" name="Guinea Equatoriale"/> <country id="328" alpha2="gy" alpha3="guy" name="Guyana"/> <country id="254" alpha2="gf" alpha3="guf" name="Guyana francese"/> <country id="332" alpha2="ht" alpha3="hti" name="Haiti"/> <country id="340" alpha2="hn" alpha3="hnd" name="Honduras"/> <country id="344" alpha2="hk" alpha3="hkg" name="Hong Kong"/> <country id="356" alpha2="in" alpha3="ind" name="India"/> <country id="360" alpha2="id" alpha3="idn" name="Indonesia"/> <country id="364" alpha2="ir" alpha3="irn" name="Iran"/> <country id="368" alpha2="iq" alpha3="irq" name="Iraq"/> <country id="372" alpha2="ie" alpha3="irl" name="Irlanda"/> <country id="352" alpha2="is" alpha3="isl" name="Islanda"/> <country id="74" alpha2="bv" alpha3="bvt" name="Isola Bouvet"/> <country id="833" alpha2="im" alpha3="imn" name="Isola di Man"/> <country id="162" alpha2="cx" alpha3="cxr" name="Isola di Natale"/> <country id="574" alpha2="nf" alpha3="nfk" name="Isola Norfolk"/> <country id="248" alpha2="ax" alpha3="ala" name="Isole land"/> <country id="535" alpha2="bq" alpha3="bes" name="Isole BES"/> <country id="136" alpha2="ky" alpha3="cym" name="Isole Cayman"/> <country id="166" alpha2="cc" alpha3="cck" name="Isole Cocos (Keeling)"/> <country id="184" alpha2="ck" alpha3="cok" name="Isole Cook"/> <country id="234" alpha2="fo" alpha3="fro" name="Fr er"/> <country id="238" alpha2="fk" alpha3="flk" name="Isole Falkland"/> <country id="334" alpha2="hm" alpha3="hmd" name="Isole Heard e McDonald"/> <country id="580" alpha2="mp" alpha3="mnp" name="Isole Marianne Settentrionali"/> <country id="584" alpha2="mh" alpha3="mhl" name="Isole Marshall"/> <country id="581" alpha2="um" alpha3="umi" name="Isole minori esterne degli Stati Uniti"/> <country id="612" alpha2="pn" alpha3="pcn" name="Isole Pitcairn"/> <country id="90" alpha2="sb" alpha3="slb" name="Isole Salomone"/> <country id="92" alpha2="vg" alpha3="vgb" name="Isole Vergini Britanniche"/> <country id="850" alpha2="vi" alpha3="vir" name="Isole Vergini Americane"/> <country id="376" alpha2="il" alpha3="isr" name="Israele"/> <country id="380" alpha2="it" alpha3="ita" name="Italia"/> <country id="832" alpha2="je" alpha3="jey" name="Jersey"/> <country id="398" alpha2="kz" alpha3="kaz" name="Kazakistan"/> <country id="404" alpha2="ke" alpha3="ken" name="Kenya"/> <country id="417" alpha2="kg" alpha3="kgz" name="Kirghizistan"/> <country id="296" alpha2="ki" alpha3="kir" name="Kiribati"/> <country id="414" alpha2="kw" alpha3="kwt" name="Kuwait"/> <country id="418" alpha2="la" alpha3="lao" name="Laos"/> <country id="426" alpha2="ls" alpha3="lso" name="Lesotho"/> <country id="428" alpha2="lv" alpha3="lva" name="Lettonia"/> <country id="422" alpha2="lb" alpha3="lbn" name="Libano"/> <country id="430" alpha2="lr" alpha3="lbr" name="Liberia"/> <country id="434" alpha2="ly" alpha3="lby" name="Libia"/> <country id="438" alpha2="li" alpha3="lie" name="Liechtenstein"/> <country id="440" alpha2="lt" alpha3="ltu" name="Lituania"/> <country id="442" alpha2="lu" alpha3="lux" name="Lussemburgo"/> <country id="446" alpha2="mo" alpha3="mac" name="Macao"/> <country id="807" alpha2="mk" alpha3="mkd" name="Macedonia del Nord"/> <country id="450" alpha2="mg" alpha3="mdg" name="Madagascar"/> <country id="454" alpha2="mw" alpha3="mwi" name="Malawi"/> <country id="458" alpha2="my" alpha3="mys" name="Malaysia"/> <country id="462" alpha2="mv" alpha3="mdv" name="Maldive"/> <country id="466" alpha2="ml" alpha3="mli" name="Mali"/> <country id="470" alpha2="mt" alpha3="mlt" name="Malta"/> <country id="504" alpha2="ma" alpha3="mar" name="Marocco"/> <country id="474" alpha2="mq" alpha3="mtq" name="Martinica"/> <country id="478" alpha2="mr" alpha3="mrt" name="Mauritania"/> <country id="480" alpha2="mu" alpha3="mus" name="Mauritius"/> <country id="175" alpha2="yt" alpha3="myt" name="Mayotte"/> <country id="484" alpha2="mx" alpha3="mex" name="Messico"/> <country id="583" alpha2="fm" alpha3="fsm" name="Micronesia"/> <country id="498" alpha2="md" alpha3="mda" name="Moldavia"/> <country id="496" alpha2="mn" alpha3="mng" name="Mongolia"/> <country id="499" alpha2="me" alpha3="mne" name="Montenegro"/> <country id="500" alpha2="ms" alpha3="msr" name="Montserrat"/> <country id="508" alpha2="mz" alpha3="moz" name="Mozambico"/> <country id="516" alpha2="na" alpha3="nam" name="Namibia"/> <country id="520" alpha2="nr" alpha3="nru" name="Nauru"/> <country id="524" alpha2="np" alpha3="npl" name="Nepal"/> <country id="558" alpha2="ni" alpha3="nic" name="Nicaragua"/> <country id="562" alpha2="ne" alpha3="ner" name="Niger"/> <country id="566" alpha2="ng" alpha3="nga" name="Nigeria"/> <country id="570" alpha2="nu" alpha3="niu" name="Niue"/> <country id="578" alpha2="no" alpha3="nor" name="Norvegia"/> <country id="540" alpha2="nc" alpha3="ncl" name="Nuova Caledonia"/> <country id="554" alpha2="nz" alpha3="nzl" name="Nuova Zelanda"/> <country id="512" alpha2="om" alpha3="omn" name="Oman"/> <country id="528" alpha2="nl" alpha3="nld" name="Paesi Bassi"/> <country id="586" alpha2="pk" alpha3="pak" name="Pakistan"/> <country id="585" alpha2="pw" alpha3="plw" name="Palau"/> <country id="275" alpha2="ps" alpha3="pse" name="Palestina"/> <country id="591" alpha2="pa" alpha3="pan" name="Panama"/> <country id="598" alpha2="pg" alpha3="png" name="Papua Nuova Guinea"/> <country id="600" alpha2="py" alpha3="pry" name="Paraguay"/> <country id="604" alpha2="pe" alpha3="per" name="Per"/> <country id="258" alpha2="pf" alpha3="pyf" name="Polinesia francese"/> <country id="616" alpha2="pl" alpha3="pol" name="Polonia"/> <country id="630" alpha2="pr" alpha3="pri" name="Porto Rico"/> <country id="620" alpha2="pt" alpha3="prt" name="Portogallo"/> <country id="492" alpha2="mc" alpha3="mco" name="Monaco"/> <country id="634" alpha2="qa" alpha3="qat" name="Qatar"/> <country id="826" alpha2="gb" alpha3="gbr" name="Regno Unito"/> <country id="180" alpha2="cd" alpha3="cod" name="RD del Congo"/> <country id="203" alpha2="cz" alpha3="cze" name="Rep. Ceca"/> <country id="140" alpha2="cf" alpha3="caf" name="Rep. Centrafricana"/> <country id="178" alpha2="cg" alpha3="cog" name="Rep. del Congo"/> <country id="214" alpha2="do" alpha3="dom" name="Rep. Dominicana"/> <country id="638" alpha2="re" alpha3="reu" name="La Riunione"/> <country id="642" alpha2="ro" alpha3="rou" name="Romania"/> <country id="646" alpha2="rw" alpha3="rwa" name="Ruanda"/> <country id="643" alpha2="ru" alpha3="rus" name="Russia"/> <country id="732" alpha2="eh" alpha3="esh" name="Sahara Occidentale"/> <country id="659" alpha2="kn" alpha3="kna" name="Saint Kitts e Nevis"/> <country id="662" alpha2="lc" alpha3="lca" name="Saint Lucia"/> <country id="654" alpha2="sh" alpha3="shn" name="Sant'Elena, Ascensione e Tristan da Cunha"/> <country id="670" alpha2="vc" alpha3="vct" name="Saint Vincent e Grenadine"/> <country id="652" alpha2="bl" alpha3="blm" name="Saint-Barthlemy"/> <country id="663" alpha2="mf" alpha3="maf" name="Saint-Martin"/> <country id="666" alpha2="pm" alpha3="spm" name="Saint-Pierre e Miquelon"/> <country id="882" alpha2="ws" alpha3="wsm" name="Samoa"/> <country id="16" alpha2="as" alpha3="asm" name="Samoa Americane"/> <country id="674" alpha2="sm" alpha3="smr" name="San Marino"/> <country id="678" alpha2="st" alpha3="stp" name="So Tom e Prncipe"/> <country id="686" alpha2="sn" alpha3="sen" name="Senegal"/> <country id="688" alpha2="rs" alpha3="srb" name="Serbia"/> <country id="690" alpha2="sc" alpha3="syc" name="Seychelles"/> <country id="694" alpha2="sl" alpha3="sle" name="Sierra Leone"/> <country id="702" alpha2="sg" alpha3="sgp" name="Singapore"/> <country id="534" alpha2="sx" alpha3="sxm" name="Sint Maarten"/> <country id="760" alpha2="sy" alpha3="syr" name="Siria"/> <country id="703" alpha2="sk" alpha3="svk" name="Slovacchia"/> <country id="705" alpha2="si" alpha3="svn" name="Slovenia"/> <country id="706" alpha2="so" alpha3="som" name="Somalia"/> <country id="724" alpha2="es" alpha3="esp" name="Spagna"/> <country id="144" alpha2="lk" alpha3="lka" name="Sri Lanka"/> <country id="840" alpha2="us" alpha3="usa" name="Stati Uniti"/> <country id="710" alpha2="za" alpha3="zaf" name="Sudafrica"/> <country id="729" alpha2="sd" alpha3="sdn" name="Sudan"/> <country id="728" alpha2="ss" alpha3="ssd" name="Sudan del Sud"/> <country id="740" alpha2="sr" alpha3="sur" name="Suriname"/> <country id="744" alpha2="sj" alpha3="sjm" name="Svalbard e Jan Mayen"/> <country id="752" alpha2="se" alpha3="swe" name="Svezia"/> <country id="756" alpha2="ch" alpha3="che" name="Svizzera"/> <country id="748" alpha2="sz" alpha3="swz" name="eSwatini"/> <country id="158" alpha2="tw" alpha3="twn" name="Taiwan"/> <country id="762" alpha2="tj" alpha3="tjk" name="Tagikistan"/> <country id="834" alpha2="tz" alpha3="tza" name="Tanzania"/> <country id="260" alpha2="tf" alpha3="atf" name="Terre australi e antartiche francesi"/> <country id="86" alpha2="io" alpha3="iot" name="Territorio britannico dell'Oceano Indiano"/> <country id="764" alpha2="th" alpha3="tha" name="Thailandia"/> <country id="626" alpha2="tl" alpha3="tls" name="Timor Est"/> <country id="768" alpha2="tg" alpha3="tgo" name="Togo"/> <country id="772" alpha2="tk" alpha3="tkl" name="Tokelau"/> <country id="776" alpha2="to" alpha3="ton" name="Tonga"/> <country id="780" alpha2="tt" alpha3="tto" name="Trinidad e Tobago"/> <country id="788" alpha2="tn" alpha3="tun" name="Tunisia"/> <country id="792" alpha2="tr" alpha3="tur" name="Turchia"/> <country id="795" alpha2="tm" alpha3="tkm" name="Turkmenistan"/> <country id="796" alpha2="tc" alpha3="tca" name="Turks e Caicos"/> <country id="798" alpha2="tv" alpha3="tuv" name="Tuvalu"/> <country id="804" alpha2="ua" alpha3="ukr" name="Ucraina"/> <country id="800" alpha2="ug" alpha3="uga" name="Uganda"/> <country id="348" alpha2="hu" alpha3="hun" name="Ungheria"/> <country id="858" alpha2="uy" alpha3="ury" name="Uruguay"/> <country id="860" alpha2="uz" alpha3="uzb" name="Uzbekistan"/> <country id="548" alpha2="vu" alpha3="vut" name="Vanuatu"/> <country id="862" alpha2="ve" alpha3="ven" name="Venezuela"/> <country id="704" alpha2="vn" alpha3="vnm" name="Vietnam"/> <country id="876" alpha2="wf" alpha3="wlf" name="Wallis e Futuna"/> <country id="887" alpha2="ye" alpha3="yem" name="Yemen"/> <country id="894" alpha2="zm" alpha3="zmb" name="Zambia"/> <country id="716" alpha2="zw" alpha3="zwe" name="Zimbabwe"/> </countries> ```
/content/code_sandbox/data/countries/it/world.xml
xml
2016-01-27T21:41:04
2024-08-16T10:07:17
world_countries
stefangabos/world_countries
1,364
5,974
```xml import { v1 as uuid } from "uuid"; import { ConfirmToken, isConfirmToken } from "./confirm"; function createToken(partial: Partial<ConfirmToken> | any = {}): ConfirmToken { const now = Math.floor(Date.now() / 1000); const token: ConfirmToken = { sub: uuid(), jti: uuid(), iss: uuid(), exp: now + 60 * 60 * 24, nbf: now, iat: now, aud: "confirm", evid: uuid(), email: "email@address.com", }; return { ...token, ...partial, }; } describe("isConfirmToken", () => { it("validates a valid confirm token", () => { expect(isConfirmToken(createToken())).toBeTruthy(); }); it("rejects an invalid aud value in a token", () => { expect(isConfirmToken(createToken({ aud: "not-confirm" }))).toBeFalsy(); }); }); ```
/content/code_sandbox/server/src/core/server/services/users/auth/confirm.spec.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
215
```xml export * from './ExampleCard'; export * from './ExampleCard.types'; ```
/content/code_sandbox/packages/react-docsite-components/src/components/ExampleCard/index.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
16
```xml <Documentation> <Docs DocId="T:CoreImage.CISourceAtopCompositing"> <summary>The CISourceAtopCompositing CoreImage filter</summary> <remarks> <para>The following example shows this filter in use</para> <example> <code lang="csharp lang-csharp"><![CDATA[ // Create CIImages from Files. CIImage clouds = CIImage.FromCGImage (UIImage.FromFile ("clouds.jpg").CGImage); CIImage heron = CIImage.FromCGImage (UIImage.FromFile ("heron.jpg").CGImage); // Construct teh SourceAtopComposite filter var sourceAtopComposite = new CISourceAtopCompositing() { Image = heron, BackgroundImage = clouds, }; // Get the composite image from the filter var output = sourceAtopComposite.OutputImage; // To render the results, we need to create a context, and then // use one of the context rendering APIs, in this case, we render the // result into a CoreGraphics image, which is merely a useful representation // var context = CIContext.FromOptions (null); var cgimage = context.CreateCGImage (output, output.Extent); // The above cgimage can be added to a screen view, for example, this // would add it to a UIImageView on the screen: myImageView.Image = UIImage.FromImage (cgimage); ]]></code> </example> <para> With the following source: </para> <para> <img href="~/CoreImage/_images/heron.jpg" alt="Photograph of a heron." /> </para> <para> <img href="~/CoreImage/_images/clouds.jpg" alt="Photograph of clouds and sunbeams." /> </para> <para> Produces the following output: </para> <para> <img href="~/CoreImage/_images/SourceAtop.png" alt="Result of applying the filter." /> </para> <para> "Sunrise near Atkeison Plateau" 2012 Charles Atkeison, used under a Creative Commons Attribution-ShareAlike license: path_to_url "canon" 2012 cuatrok77 hernandez, used under a Creative Commons Attribution-ShareAlike license: path_to_url </para> </remarks> </Docs> </Documentation> ```
/content/code_sandbox/docs/api/CoreImage/CISourceAtopCompositing.xml
xml
2016-04-20T18:24:26
2024-08-16T13:29:19
xamarin-macios
xamarin/xamarin-macios
2,436
525
```xml import { PlatformTools } from "../platform/PlatformTools" import { AbstractLogger } from "./AbstractLogger" import { LogLevel, LogMessage } from "./Logger" import { QueryRunner } from "../query-runner/QueryRunner" /** * Performs logging of the events in TypeORM. * This version of logger uses console to log events and use syntax highlighting. */ export class AdvancedConsoleLogger extends AbstractLogger { /** * Write log to specific output. */ protected writeLog( level: LogLevel, logMessage: LogMessage | LogMessage[], queryRunner?: QueryRunner, ) { const messages = this.prepareLogMessages(logMessage) for (let message of messages) { switch (message.type ?? level) { case "log": case "schema-build": case "migration": PlatformTools.log(String(message.message)) break case "info": case "query": if (message.prefix) { PlatformTools.logInfo(message.prefix, message.message) } else { PlatformTools.log(String(message.message)) } break case "warn": case "query-slow": if (message.prefix) { PlatformTools.logWarn(message.prefix, message.message) } else { console.warn( PlatformTools.warn(String(message.message)), ) } break case "error": case "query-error": if (message.prefix) { PlatformTools.logError( message.prefix, String(message.message), ) } else { console.error( PlatformTools.error(String(message.message)), ) } break } } } } ```
/content/code_sandbox/src/logger/AdvancedConsoleLogger.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
344
```xml import { Vector3 } from '../../../types'; import vtkSpline1D, { ISpline1DInitialValues } from '../Spline1D'; export interface ICardinalSpline1DInitialValues extends ISpline1DInitialValues {} export interface vtkCardinalSpline1D extends vtkSpline1D { /** * * @param {Number} size * @param {Float32Array} work * @param {Vector3} x * @param {Vector3} y */ computeCloseCoefficients(size: number, work: Float32Array, x: Vector3, y: Vector3): void; /** * * @param {Number} size * @param {Float32Array} work * @param {Vector3} x * @param {Vector3} y */ computeOpenCoefficients(size: number, work: Float32Array, x: Vector3, y: Vector3): void; /** * * @param {Number} intervalIndex * @param {Number} t */ getValue(intervalIndex: number, t: number): number; } /** * Method used to decorate a given object (publicAPI+model) with vtkCardinalSpline1D characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {ICardinalSpline1DInitialValues} [initialValues] (default: {}) */ export function extend(publicAPI: object, model: object, initialValues?: ICardinalSpline1DInitialValues): void; /** * Method used to create a new instance of vtkCardinalSpline1D. * @param {ICardinalSpline1DInitialValues} [initialValues] for pre-setting some of its content */ export function newInstance(initialValues?: ICardinalSpline1DInitialValues): vtkCardinalSpline1D; /** * vtkCardinalSpline1D provides methods for creating a 1D cubic spline object * from given parameters, and allows for the calculation of the spline value and * derivative at any given point inside the spline intervals. */ export declare const vtkCardinalSpline1D: { newInstance: typeof newInstance, extend: typeof extend }; export default vtkCardinalSpline1D; ```
/content/code_sandbox/static/sim/Sources/Common/DataModel/CardinalSpline1D/index.d.ts
xml
2016-12-03T13:41:18
2024-08-15T12:50:03
engineercms
3xxx/engineercms
1,341
513
```xml import { XmlAttributeComponent, XmlComponent } from "@file/xml-components"; // <xsd:simpleType name="ST_HdrFtr"> // <xsd:restriction base="xsd:string"> // <xsd:enumeration value="even"/> // <xsd:enumeration value="default"/> // <xsd:enumeration value="first"/> // </xsd:restriction> // </xsd:simpleType> export const HeaderFooterReferenceType = { DEFAULT: "default", FIRST: "first", EVEN: "even", } as const; // </xsd:complexType> // <xsd:group name="EG_HdrFtrReferences"> // <xsd:choice> // <xsd:element name="headerReference" type="CT_HdrFtrRef" minOccurs="0"/> // <xsd:element name="footerReference" type="CT_HdrFtrRef" minOccurs="0"/> // </xsd:choice> // </xsd:group> // <xsd:complexType name="CT_HdrFtrRef"> // <xsd:complexContent> // <xsd:extension base="CT_Rel"> // <xsd:attribute name="type" type="ST_HdrFtr" use="required"/> // </xsd:extension> // </xsd:complexContent> // <xsd:complexType name="CT_Rel"> // <xsd:attribute ref="r:id" use="required"/> // </xsd:complexType> export interface IHeaderFooterOptions { readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType]; readonly id?: number; } class FooterReferenceAttributes extends XmlAttributeComponent<{ readonly type: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType]; readonly id: string; }> { protected readonly xmlKeys = { type: "w:type", id: "r:id", }; } export const HeaderFooterType = { HEADER: "w:headerReference", FOOTER: "w:footerReference", } as const; export class HeaderFooterReference extends XmlComponent { public constructor(type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) { super(type); this.root.push( new FooterReferenceAttributes({ type: options.type || HeaderFooterReferenceType.DEFAULT, id: `rId${options.id}`, }), ); } } ```
/content/code_sandbox/src/file/document/body/section-properties/properties/header-footer-reference.ts
xml
2016-03-26T23:43:56
2024-08-16T13:02:47
docx
dolanmiu/docx
4,139
501
```xml const commonVariables = ` $title: String! $description: String $contentType: ContentType! $images: [JSON] $attachments: [JSON] $recipientIds: [String] $customFieldsData: JSON $eventData: ExmEventDataInput $createdAt: Date $departmentIds : [String] $branchIds: [String] $unitId: String `; const commonParams = ` title: $title description: $description contentType: $contentType images: $images attachments: $attachments recipientIds: $recipientIds customFieldsData: $customFieldsData eventData: $eventData createdAt: $createdAt departmentIds : $departmentIds branchIds: $branchIds unitId: $unitId `; const addFeed = ` mutation addFeed(${commonVariables}) { exmFeedAdd(${commonParams}) { _id } } `; const editFeed = ` mutation editFeed($_id: String! ${commonVariables}) { exmFeedEdit(_id: $_id ${commonParams}) { _id } } `; const pinFeed = ` mutation pinFeed($_id: String) { exmFeedToggleIsPinned(_id: $_id) } `; const deleteFeed = ` mutation deleteFeed($_id: String!) { exmFeedRemove(_id: $_id) } `; const thankCommonVariables = ` $description: String! $recipientIds: [String]! `; const thankCommonParams = ` description: $description recipientIds: $recipientIds `; const addThank = ` mutation addThank(${thankCommonVariables}) { exmThankAdd(${thankCommonParams}) { _id } } `; const editThank = ` mutation editThank($_id: String!, ${thankCommonVariables}) { exmThankEdit(_id: $_id, ${thankCommonParams}) { _id } } `; const deleteThank = ` mutation deleteThank($_id: String!) { exmThankRemove(_id: $_id) } `; const chatAdd = ` mutation chatAdd($name: String, $type: ChatType!, $participantIds: [String]) { chatAdd(name: $name, type: $type, participantIds: $participantIds) { _id } } `; const chatEdit = ` mutation chatEdit($_id: String!, $name: String, $featuredImage: JSON) { chatEdit(_id: $_id, name: $name, featuredImage: $featuredImage) { _id } } `; const chatRemove = ` mutation chatRemove($id: String!) { chatRemove(_id: $id) } `; const chatMarkAsRead = ` mutation chatMarkAsRead($id: String!) { chatMarkAsRead(_id: $id) } `; const chatMessageAdd = ` mutation chatMessageAdd($chatId: String!, $content: String!, $relatedId: String, $attachments: [JSON]) { chatMessageAdd(chatId: $chatId, content: $content, relatedId: $relatedId, attachments: $attachments) { _id } } `; const chatAddOrRemoveMember = ` mutation chatAddOrRemoveMember($id: String!, $type: ChatMemberModifyType, $userIds: [String]) { chatAddOrRemoveMember(_id: $id, type: $type, userIds: $userIds) } `; const chatMakeOrRemoveAdmin = ` mutation chatMakeOrRemoveAdmin($id: String!, $userId: String!) { chatMakeOrRemoveAdmin(_id: $id, userId: $userId) } `; const chatToggleIsPinned = ` mutation chatToggleIsPinned($id: String!) { chatToggleIsPinned(_id: $id) } `; const emojiReact = ` mutation emojiReact( $contentId: String! $contentType: ReactionContentType! $type: String ) { emojiReact(contentId: $contentId, contentType: $contentType, type: $type) } `; const commentAdd = ` mutation commentAdd( $contentId: String! $contentType: ReactionContentType! $comment: String! $parentId: String ){ commentAdd(contentId: $contentId, contentType: $contentType, comment: $comment, parentId: $parentId) { _id } } `; const commentRemove = ` mutation commentRemove($_id: String!) { commentRemove(_id: $_id) } `; const chatForward = ` mutation chatForward($chatId: String, $userIds: [String], $content: String, $attachments: [JSON]) { chatForward(chatId: $chatId, userIds: $userIds, content: $content, attachments: $attachments) { _id } } `; export default { addFeed, editFeed, deleteFeed, addThank, editThank, deleteThank, pinFeed, chatAdd, chatEdit, chatRemove, chatMarkAsRead, chatMessageAdd, chatAddOrRemoveMember, chatMakeOrRemoveAdmin, chatToggleIsPinned, emojiReact, commentAdd, commentRemove, chatForward }; ```
/content/code_sandbox/exm/modules/exmFeed/graphql/mutations.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,187
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <android.support.v7.widget.RecyclerView android:id="@+id/recyclerview" android:layout_width="match_parent" android:layout_height="wrap_content" android:scrollbars="none" /> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/activity_recyclerview_content.xml
xml
2016-02-06T11:04:24
2024-08-16T17:39:44
JiaoZiVideoPlayer
lipangit/JiaoZiVideoPlayer
10,470
98
```xml <?xml version="1.0" encoding="UTF-8" ?> <!-- --> <!DOCTYPE ldml SYSTEM "../../dtd/cldr/common/dtd/ldml.dtd"> <ldml> <identity> <version number="$Revision$"/> <language type="ga"/> </identity> <rbnf> <rulesetGrouping type="DurationRules"> <ruleset type="with-words"> <rbnfrule value="0">=0= soicind;</rbnfrule> <rbnfrule value="60" radix="60">%%min[, ];</rbnfrule> <rbnfrule value="3600" radix="60">%%hr[, ];</rbnfrule> </ruleset> <ruleset type="min" access="private"> <rbnfrule value="0">=0= nimad;</rbnfrule> </ruleset> <ruleset type="hr" access="private"> <rbnfrule value="0">=0= uair;</rbnfrule> <rbnfrule value="3">=0= huaire;</rbnfrule> <rbnfrule value="5">=0= uaire;</rbnfrule> <rbnfrule value="6">=0= huaire;</rbnfrule> <rbnfrule value="7">=0= n-uaire;</rbnfrule> <rbnfrule value="10">=0= n-uair;</rbnfrule> <rbnfrule value="11">=0= %%uaire;</rbnfrule> <rbnfrule value="20">=0= uair; =0= %%uaire;</rbnfrule> </ruleset> <ruleset type="uaire" access="private"> <rbnfrule value="1">uair;</rbnfrule> <rbnfrule value="3">huaire;</rbnfrule> <rbnfrule value="5">uaire;</rbnfrule> <rbnfrule value="6">huaire;</rbnfrule> <rbnfrule value="7">n-uaire;</rbnfrule> </ruleset> <ruleset type="hms"> <rbnfrule value="0">:=00=;</rbnfrule> <rbnfrule value="60" radix="60">00</rbnfrule> <rbnfrule value="3600" radix="60">#,##0;</rbnfrule> </ruleset> <ruleset type="in-numerals"> <rbnfrule value="0">=0= sec.;</rbnfrule> <rbnfrule value="60">=%%min-sec=;</rbnfrule> <rbnfrule value="3600">=%%hr-min-sec=;</rbnfrule> </ruleset> <ruleset type="min-sec" access="private"> <rbnfrule value="0">:=00=;</rbnfrule> <rbnfrule value="60" radix="60">0;</rbnfrule> </ruleset> <ruleset type="hr-min-sec" access="private"> <rbnfrule value="0">:=00=;</rbnfrule> <rbnfrule value="60" radix="60">00;</rbnfrule> <rbnfrule value="3600" radix="60">#,##0:;</rbnfrule> </ruleset> <ruleset type="duration"> <rbnfrule value="0">=%in-numerals=;</rbnfrule> </ruleset> <ruleset type="lenient-parse" access="private"> <rbnfrule value="0">&amp; ':' = '.' = ' ' = '-';</rbnfrule> </ruleset> </rulesetGrouping> </rbnf> </ldml> ```
/content/code_sandbox/icu4c/source/data/xml/rbnf/ga.xml
xml
2016-01-08T02:42:32
2024-08-16T18:14:55
icu
unicode-org/icu
2,693
913
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="action_settings">"Ustawienia"</string> <string name="oauth_communication_error">"Nie mona poczy si z serwerem autoryzacji"</string> <string name="oauth_failed_permissions">"Autoryzacja nie powioda si: Wszystkie wymienione uprawnienia musz by przyznane"</string> <string name="pref_category_communication">"Komunikacja"</string> <string name="pref_category_display">"Wywietlanie"</string> <string name="pref_title_show_notes_not_phrased_as_questions">"Poka wszystkie notatki"</string> <string name="pref_summaryOn_show_notes_not_phrased_as_questions">"Poka rwnie notatki, ktre nie s pytaniami"</string> <string name="pref_summaryOff_show_notes_not_phrased_as_questions">"Ignoruj notatki, ktre nie s pytaniami"</string> <string name="map_btn_gps_tracking">"Podaj za mn"</string> <string name="map_attribution_osm">" Wspautorzy OpenStreetMap"</string> <string name="quest_generic_otherAnswers">"Inne odpowiedzi"</string> <string name="quest_generic_answer_notApplicable">"Trudno powiedzie"</string> <string name="quest_generic_confirmation_title">"Na pewno?"</string> <string name="quest_generic_confirmation_yes">"Tak, na pewno"</string> <string name="quest_generic_confirmation_no">"Sprawdz to"</string> <string name="quest_leave_new_note_title">"Zamiast tego zostawi notk?"</string> <string name="quest_leave_new_note_description">"Moesz zostawi publiczn notatk innym uytkownikom, aby rozwizali zadanie w tym miejscu, albo po prostu ukry je przed sob"</string> <string name="quest_leave_new_note_yes">"Dodaj notatk"</string> <string name="quest_leave_new_note_no">"Ukryj"</string> <string name="quest_streetName_title">"Jaka jest nazwa tej drogi?"</string> <string name="quest_streetName_description">"Tak jak napisane na znaku, skrty s rozwijane:"</string> <string name="quest_streetName_answer_noName_confirmation_description">"Czasami tablica z nazw ulicy znajduje si tylko na jednym jej kocu. Zdarza si take, e boczne uliczki odchodzce od ulicy glwnej nie s wyranie oznakowane. Zwykle kada ulica, przy ktrej stoj budynki, ma jak nazw, z wyjtkiem czci wiosek."</string> <string name="quest_streetName_nameWithAbbreviations_confirmation_description">"Jeli si da, nazwa powinna by podana w caoci, bez skrtw. Wiele powszechnych skrtw jest rozwijanych automatycznie podczas pisania, ale nie wszystkie."</string> <string name="quest_streetName_nameWithAbbreviations_confirmation_positive">"Nie uyto skrtw"</string> <string name="quest_openingHours_start_time">"otwarte od"</string> <string name="quest_openingHours_end_time">"do"</string> <string name="quest_openingHours_add_months">"Dodaj miesice"</string> <string name="quest_openingHours_add_hours">"Dodaj godziny"</string> <string name="quest_openingHours_add_weekdays">"Dodaj dni tygodnia"</string> <string name="quest_openingHours_chooseMonthsTitle">"Wybierz miesice"</string> <string name="quest_openingHours_chooseWeekdaysTitle">"Wybierz dni tygodnia"</string> <string name="quest_openingHours_24_7_confirmation">"Innymi sowy: czy to miejsce jest otwarte kadego dnia o kadej porze?"</string> <string name="quest_noteDiscussion_title">"Czy moesz doda co do tej notatki?"</string> <string name="quest_noteDiscussion_no">"Nie, ukryj"</string> <string name="quest_noteDiscussion_anonymous">"Anonim"</string> <string name="confirmation_discard_title">"Odrzuci dane?"</string> <string name="confirmation_discard_positive">"Odrzu"</string> <string name="action_download">"Szukaj zada w okolicy"</string> <string name="action_upload">"Przelij odpowiedzi"</string> <string name="no_changes">"Nie udzielono odpowiedzi"</string> <string name="download_error">"Bd podczas szukania zada"</string> <string name="upload_error">"Bd podczas przesyania odpowiedzi"</string> <string name="download_area_too_big">"Przybli bardziej"</string> <string name="confirmation_cancel_prev_download_title">"Chcesz zatrzyma trwajce wyszukiwanie i rozpocz w tej okolicy?"</string> <string name="turn_on_location_request">"Dostp do lokalizacji jest wyczony. Otworzy ustawienia by to zmieni?"</string> <string name="no_location_permission_warning">"Aby wywietli swoj pozycj na mapie i zadania dostpne w okolicy, potrzebna jest zgoda na lokalizacj."</string> <string name="about_title_authors">"Autorzy"</string> <string name="about_title_repository">"Strona projektu"</string> <string name="about_title_report_error">"Zgo bd"</string> <string name="about_title_feedback">"Przeka opini"</string> <string name="about_title_license">"Licencja"</string> <string name="offline">"Brak poczenia z sieci"</string> <string name="confirmation_authorize_now">"Aby opublikowa swoje odpowiedzi musisz dokona autoryzacji za pomoc konta uytkownika OSM. Chcesz si zalogowa teraz?"</string> <string name="not_authorized">"Brak autoryzacji"</string> <string name="version_banned_message">"Ta wersja StreetComplete jest przestarzaa! Zaktualizuj aplikacj."</string> <string name="no_gps_no_quests">"Aby automatycznie szuka zada wok ciebie, wcz lokalizacje."</string> <string name="later">"Pniej"</string> <string name="quest_streetName_answer_noProperStreet_link">"Po prostu czy dwie drogi"</string> <string name="quest_streetName_answer_noProperStreet_leaveNote">"Inne (zostaw notatk)"</string> <string name="about_title_privacy_statement">"Polityka prywatnoci"</string> <string name="quest_openingHours_public_holidays">"wita i dni wolne"</string> <string name="quest_openingHours_public_holidays_short">"wita"</string> <string name="quest_openingHours_open_end">"do ostatniego klienta"</string> <string name="quest_openingHours_answer_247">"Otwarte ca dob"</string> <string name="quest_openingHours_answer_seasonal_opening_hours">"Rnie, zalenie od miesica"</string> <string name="quest_openingHours_answer_no_regular_opening_hours">"Brak staych godzin otwarcia"</string> <string name="quest_openingHours_comment_title">"Opisz godziny otwarcia"</string> <string name="quest_openingHours_comment_description">"Krtko i zwile, najlepiej tak jak jest napisane na tabliczce, np. \"po uzgodnieniu terminu\". Brak tabliczki niekoniecznie oznacza braku staych godzin otwarcia."</string> <string name="quest_roofShape_title">"Jaki oglny ksztat dachu ma ten budynek?"</string> <string name="quest_roofShape_select_one">"Wybierz jeden:"</string> <string name="quest_roofShape_show_more">"Poka wicej"</string> <string name="quest_roofShape_answer_many">"Ma kilka rnych ksztatw"</string> <string name="map_btn_zoom_out">"Oddal"</string> <string name="map_btn_zoom_in">"Przybli"</string> <string name="privacy_html">"&lt;p&gt;O, dbasz o swoj prywatno, fajnie! Mam dla Ciebie tylko dobre wiadomoci:&lt;/p&gt; &lt;h2&gt;Bezporednie zmiany&lt;/h2&gt; &lt;p&gt; Po pierwsze, miej na uwadze, e uywajc tej aplikacji, wykonujesz rzeczywiste i bezporednie zmiany na OpenStreetMap.&lt;br/&gt; Kady Twj wkad jest bezporednio nanoszony na map, bez adnych porednikw midzy aplikacj a infrastruktur OSM. &lt;/p&gt; &lt;p&gt; Anonimowa edycja OpenStreetMap nie jest moliwa, zatem wszystkie Twoje zmiany musz by wykonane z uyciem Twojego konta OSM. To oznacza, e data, tre oraz miejsce Twoich zmian s publiczne dostpne na stronie OpenStreetMap i powizane z Twoim kontem. &lt;/p&gt; &lt;h2&gt;Pooenie&lt;/h2&gt; &lt;p&gt; Informacja o Twoim pooeniu jest uywana tylko do automatycznego szukania zada wok Ciebie. Bez obaw, aplikacja zatrzymuje t informacj tylko dla siebie. &lt;/p&gt; &lt;h2&gt;Uycie danych&lt;/h2&gt; &lt;p&gt; Jak wspomniano, aplikacja komunikuje si bezporednio z infrastruktur OSM. Niemniej przed kadym wysaniem zmian aplikacja sprawdza &lt;a href=\"path_to_url"&gt;prosty plik tekstowy&lt;/a&gt; na moim serwerze, czy nie zabroniono jej wysyania jakichkolwiek zmian. To zabezpieczenie pozwala wycza przestarzae wersje aplikacji, w ktrych znaleziono krytyczne bdy, mogce uszkodzi dane OSM.&lt;/p&gt; "</string> <string name="autosync_on">"Wcz"</string> <string name="autosync_only_on_wifi">"Tylko przez Wi-Fi"</string> <string name="autosync_off">"Wycz"</string> <string name="quest_streetSurface_title">"Jak nawierzchni ma ten fragment drogi?"</string> <string name="quest_surface_value_paved">"Utwardzona (oglnie)"</string> <string name="quest_surface_value_unpaved">"Nieutwardzona (oglnie)"</string> <string name="quest_surface_value_ground">"Gruntowa (oglnie)"</string> <string name="quest_surface_value_asphalt">"Asfalt"</string> <string name="quest_surface_value_compacted">"Tucze"</string> <string name="quest_surface_value_concrete">"Beton"</string> <string name="quest_surface_value_dirt">"Ziemia / Gleba / Py"</string> <string name="quest_surface_value_fine_gravel">"Drobny wir"</string> <string name="quest_surface_value_grass">"Trawa"</string> <string name="quest_surface_value_grass_paver">"Kratka trawnikowa"</string> <string name="quest_surface_value_gravel">"wir"</string> <string name="quest_surface_value_paving_stones">"Kostka brukowa / Pyta chodnikowa"</string> <string name="quest_surface_value_pebblestone">"Otoczaki / Kamyki"</string> <string name="quest_surface_value_sand">"Piasek"</string> <string name="quest_surface_value_sett">"nierwne kamienie"</string> <string name="quest_surface_value_wood">"Drewno"</string> <string name="quest_sidewalk_title">"Czy ta ulica ma chodnik?"</string> <string name="quest_maxspeed_answer_noSign_info_urbanOrRural">"Gdzie jest ta ulica?"</string> <string name="quest_address_title">"Jaki numer ma ten budynek?"</string> <string name="store_listing_short_description">"Ulepszaj OpenStreetMap"</string> <string name="store_listing_full_description">"Pom ulepsza OpenStreetMap z aplikacjStreetComplete! Ta aplikacja znajduje niekompletne lub brakujce dane w Twoim otoczeniu i wywietla je na mapie w postaci zada. Kade mona rozwiza, klikajc w nie i odpowiadajc na proste pytania. Udzielone odpowiedzi zostaj potem umieszczone na OpenStreetMap w Twoim imieniu, bez potrzeby bezporedniego edytowania map."</string> <string name="quest_name_answer_noName">"Nie ma nazwy"</string> <string name="quest_name_answer_noName_confirmation_title">"Na pewno nie ma nazwy?"</string> <string name="quest_name_noName_confirmation_positive">"Tak, nie ma nazwy"</string> <string name="quest_openingHours_add_times">"Dodaj godziny otwarcia"</string> <string name="crash_message">"Chcesz wysa raport o bdzie do producenta?"</string> <string name="crash_title">"O nie, aplikacja StreetComplete ulega ostatnio awarii!"</string> <string name="crash_compose_email">"Napisz email"</string> <string name="no_email_client">"Nie masz zainstalowanego adnego klienta poczty."</string> <string name="pref_title_keep_screen_on">"Pozostaw ekran wczony"</string> <string name="download_server_error">"Bd poczenia podczas szukania zada. Sprbuj pniej."</string> <string name="upload_server_error">"Bd poczenia podczas wysyania odpowiedzi. Sprbuj pniej."</string> <string name="quest_generic_hasFeature_yes">"Tak"</string> <string name="quest_generic_hasFeature_no">"Nie"</string> <string name="quest_bikeParkingCapacity_title">"Ile rowerw mona tu zaparkowa?"</string> <string name="quest_address_unusualHousenumber_confirmation_description">"Ten numer budynku wyglda bardzo dziwnie."</string> <string name="quest_sport_title">"Jaka dyscyplina sportu jest tu uprawiana?"</string> <string name="quest_sport_answer_multi">"aden konkretny sport"</string> <string name="quest_sport_soccer">"Pika nona"</string> <string name="quest_sport_tennis">"Tenis"</string> <string name="quest_sport_baseball">"Baseball"</string> <string name="quest_sport_basketball">"Koszykwka"</string> <string name="quest_sport_golf">"Golf"</string> <string name="quest_sport_equestrian">"Jedziectwo"</string> <string name="quest_sport_athletics">"Lekkoatletyka"</string> <string name="quest_sport_volleyball">"Siatkwka"</string> <string name="quest_sport_beachvolleyball">"Siatkwka plaowa"</string> <string name="quest_sport_american_football">"Futbol amerykaski"</string> <string name="quest_sport_skateboard">"Jazda na deskorolce"</string> <string name="quest_sport_bowls">"Krgle"</string> <string name="quest_sport_boules">"Bule - gra w kule"</string> <string name="quest_sport_shooting">"Strzelectwo"</string> <string name="quest_sport_cricket">"Krykiet"</string> <string name="quest_sport_table_tennis">"Tenis stoowy"</string> <string name="quest_sport_gymnastics">"Gimnastyka"</string> <string name="quest_sport_archery">"ucznictwo"</string> <string name="quest_sport_australian_football">"Futbol australijski"</string> <string name="quest_sport_badminton">"Badminton"</string> <string name="quest_sport_canadian_football">"Futbol kanadyjski"</string> <string name="quest_sport_field_hockey">"Hokej na trawie"</string> <string name="quest_sport_handball">"Pika rczna"</string> <string name="quest_sport_ice_hockey">"Hokej na lodzie"</string> <string name="quest_sport_netball">"Netball"</string> <string name="quest_sport_rugby">"Rugby"</string> <string name="quest_select_hint">"Wybierz:"</string> <string name="quest_sport_manySports_confirmation_description">"Czy to boisko jest przeznaczone konkretnie do tych sportw (s tu obecne linie i wyposaenie), czy raczej jest ono oglnego przeznaczenia dla wszystkich rodzajw dyscyplin sportowych?"</string> <string name="quest_manySports_confirmation_specific">"Konkretnie tych"</string> <string name="quest_manySports_confirmation_generic">"Oglnego przeznaczenia"</string> <string name="quest_sport_manySports_confirmation_title">"Wybrano wiele sportw"</string> <string name="quest_toiletsFee_title">"Czy te toalety s patne?"</string> <string name="quest_tactilePaving_title_crosswalk">"Czy to przejcie ma wypustki dotykowe dla niewidomych po obu stronach?"</string> <string name="quest_source_dialog_title">"Na pewno masz to sprawdzone w terenie?"</string> <string name="quest_source_dialog_note">"Naley wprowadza tylko informacje, ktre zostay sprawdzone w terenie."</string> <string name="quest_bicycleParkingCoveredStatus_title">"Czy ten parking dla rowerw jest zakryty (przed deszczem)?"</string> <string name="dialog_session_dont_show_again">"Nie pokazuj ponownie podczas tej sesji"</string> <string name="quest_maxspeed_unusualInput_confirmation_description">"To ograniczenie prdkoci wyglda podejrzanie."</string> <string name="quest_maxspeed_answer_noSign_confirmation_title">"Na pewno nie ma znaku ograniczenia prdkoci?"</string> <string name="quest_maxspeed_answer_noSign_confirmation">"Czy sprawdzie na kocach ulicy? Jeli na caej ulicy nie ma znakw dotyczcych podwietlonej sekcji, obowizuj domylne ograniczenia prdkoci."</string> <string name="quest_maxspeed_answer_noSign_confirmation_positive">"Tak, nie ma znakw"</string> <string name="quest_maxspeed_answer_noSign_urbanOrRural_description">"W terenie zabudowanym obowizuje bardziej restrykcyjne domylne ograniczenie prdkoci ni poza terenem zabudowanym."</string> <string name="quest_maxspeed_answer_noSign_urbanOk">"W terenie zabudowanym"</string> <string name="quest_maxspeed_answer_noSign_ruralOk">"W terenie niezabudowanym"</string> <string name="quest_maxspeed_answer_noSign_info_zone">"Jeli jest taki znak na gwnym skrzyowaniu, to nie znajdziesz osobnych znakw wewntrz strefy, poniewa ograniczenie prdkoci na znaku obowizuje w caej strefie."</string> <string name="quest_sport_softball">"Softball"</string> <string name="quest_sport_racquet">"Racquetball"</string> <string name="quest_sport_ice_skating">"ywiarstwo"</string> <string name="quest_sport_paddle_tennis">"Padel"</string> <string name="quest_sport_gaelic_games">"Sporty irlandzkie"</string> <string name="quest_sport_sepak_takraw">"Siatkwka kopana"</string> <string name="quest_wheelchairAccess_limited">"Ograniczony"</string> <string name="quest_bikeParkingCapacity_hint">"Zwr uwag, e na wielu stojakach mona zaparkowa po jednym rowerze z kadej strony."</string> <string name="quest_sport_roller_skating">"Wrotkarstwo"</string> <string name="quest_wheelchairAccess_limited_description_business">"Czciowo oznacza, e trzeba pokona co najwyej jeden stopie, aby wej i wikszo pomieszcze w rodku jest dostpna dla osb na wzku."</string> <string name="quest_wheelchairAccess_limited_description_public_transport">"Czciowo oznacza, e trzeba pokona co najwyej jeden stopie, aby wej."</string> <string name="quest_streetName_nameWithAbbreviations_confirmation_title_name">"Czy s skrty w nazwie %s?"</string> <string name="quest_recycling_type_title">"Jakiego typu jest ten obiekt zwizany z odpadami?"</string> <string name="recycling_centre">"Punkt zbirki"</string> <string name="overground_recycling_container">"Kontener"</string> <string name="underground_recycling_container">"Podziemny kontener"</string> <string name="quest_streetName_answer_cantType">"Nie mog wprowadzi liter ze znaku"</string> <string name="quest_streetName_cantType_title">"Brakuje ukadu klawiatury?"</string> <string name="quest_streetName_cantType_open_settings">"Otwrz ustawienia"</string> <string name="quest_streetName_cantType_open_store">"Odwied sklep aplikacji"</string> <string name="quest_streetName_cantType_description">"Jeli uywasz domylnego ukadu klawiatury, to by moe jeste w stanie wczy ukad dla wymaganego jzyka w ustawieniach klawiatury. W przeciwnym wypadku moesz cign dodatkowe aplikacje klawiatury ze sklepu z aplikacjami. Popularne klawiatury, ktre wspieraj wiele jzykw, to Google Gboard, SwiftKey Keyboard oraz Multiling O Keyboard."</string> <string name="quest_streetName_menuItem_nolanguage">"(nieokrelony)"</string> <string name="quest_fireHydrant_type_title">"Jaki to jest rodzaj hydrantu poarowego?"</string> <string name="quest_fireHydrant_type_pillar">"Nadziemny"</string> <string name="quest_fireHydrant_type_underground">"Podziemny"</string> <string name="quest_fireHydrant_type_wall">"Nacienny"</string> <string name="credits_contributors">"Zobacz &lt;a href=\"path_to_url"&gt;pen list na GitHub&lt;/a&gt;."</string> <string name="credits_translations_title">"Tumaczenia"</string> <string name="credits_contributors_title">"Wsptwrcy kodu"</string> <string name="credits_author_title">"Autor i opiekun projektu"</string> <string name="quest_maxspeed_answer_living_street">"Jest to droga w strefie zamieszkania"</string> <string name="quest_maxspeed_answer_living_street_confirmation_title">"Czyli jest tu taki znak?"</string> <string name="quest_orchard_produce_title">"Co si tutaj uprawia?"</string> <string name="produce_grapes">"Winogrona"</string> <string name="produce_agaves">"Agawy"</string> <string name="produce_almonds">"Migday"</string> <string name="produce_apples">"Jabka"</string> <string name="produce_apricots">"Morele"</string> <string name="produce_avocados">"Awokado"</string> <string name="produce_bananas">"Banany"</string> <string name="produce_blueberries">"Borwki"</string> <string name="produce_cacao">"Kakaowce"</string> <string name="produce_cashew_nuts">"Orzechy nerkowca"</string> <string name="produce_cherries">"Winie"</string> <string name="produce_chestnuts">"Kasztany"</string> <string name="produce_coconuts">"Kokosy"</string> <string name="produce_coffee">"Kaw"</string> <string name="produce_cranberries">"urawin"</string> <string name="produce_dates">"Daktyle"</string> <string name="produce_figs">"Figi"</string> <string name="produce_grapefruits">"Grejpfruty"</string> <string name="produce_guavas">"Gujaw"</string> <string name="produce_hazelnuts">"Orzechy laskowe"</string> <string name="produce_hops">"Chmiel"</string> <string name="produce_jojoba">"Jojoba"</string> <string name="produce_kiwis">"Kiwi"</string> <string name="produce_kola_nuts">"Orzechy koli"</string> <string name="produce_lemons">"Cytryny"</string> <string name="produce_limes">"Limonki"</string> <string name="produce_mangos">"Mango"</string> <string name="produce_mate">"Ostrokrzew"</string> <string name="produce_nutmeg">"Gak muszkatoow"</string> <string name="produce_oil_palms">"Palmy olejowe"</string> <string name="produce_olives">"Oliwki"</string> <string name="produce_oranges">"Pomaracze"</string> <string name="produce_papayas">"Papaje"</string> <string name="produce_peaches">"Brzoskwinie"</string> <string name="produce_pears">"Gruszki"</string> <string name="produce_chili">"Chilli"</string> <string name="produce_persimmons">"Hurmy / Kaki"</string> <string name="produce_pineapples">"Ananasy"</string> <string name="produce_pepper">"Papryki"</string> <string name="produce_pistachios">"Pistacje"</string> <string name="produce_plums">"liwki"</string> <string name="produce_raspberries">"Maliny"</string> <string name="produce_rubber">"Kauczukowce"</string> <string name="produce_strawberries">"Truskawki"</string> <string name="produce_tea">"Herbat"</string> <string name="produce_vanilla">"Wanili"</string> <string name="produce_walnuts">"Orzechy woskie"</string> <string name="produce_sisal">"Agawy sizalowe"</string> <string name="cannot_find_bbox_or_reduce_tilt">"Tutaj nie mona nic znale. Sprbuj przybliy lub zmniejszy pochylenie mapy."</string> <string name="action_undo">"Cofnij"</string> <string name="produce_mangosteen">"Mangostan"</string> <string name="produce_tomatoes">"Pomidory"</string> <string name="produce_areca_nuts">"Orzechy areki"</string> <string name="produce_sweet_peppers">"Papryka sodka"</string> <string name="produce_brazil_nuts">"Orzechy brazylijskie"</string> <string name="produce_tung_nuts">"Orzechy tungowe"</string> <string name="quest_parkingType_title">"Jaki jest to rodzaj parkingu?"</string> <string name="quest_parkingType_surface">"Plac parkingowy"</string> <string name="quest_parkingType_underground">"Parking podziemny"</string> <string name="quest_parkingType_multiStorage">"Parking wielopoziomowy"</string> <string name="quest_powerPolesMaterial_title">"Z jakiego materiau jest zrobiony ten sup energetyczny?"</string> <string name="quest_powerPolesMaterial_wood">"Drewno"</string> <string name="quest_powerPolesMaterial_metal">"Stal"</string> <string name="quest_powerPolesMaterial_concrete">"Beton"</string> <string name="quest_maxspeed_answer_advisory_speed_limit">"Tylko sugerowana prdko maksymalna"</string> <string name="quest_address_house_name_label">"Nazwa budynku:"</string> <string name="quest_buildingLevels_roofLevelsLabel2">"kondygnacje w poddaszu"</string> <string name="quest_buildingLevels_levelsLabel2">"zwyke kondygnacje (bez poddasza)"</string> <string name="quest_buildingLevels_answer_multipleLevels">"Inaczej w rnych czciach budynku"</string> <string name="quest_buildingLevels_answer_description">"W takim razie po prostu wpisz warto najwyszej czci budynku."</string> <string name=your_sha256_hash>"Czy pasy ruchu na tej ulicy s fizycznie odseparowane (np. barierkami lub pasem zieleni)? Od tego zaley domylne ograniczenie prdkoci."</string> <string name="about_category_feedback">"Opinia"</string> <string name="quest_leave_new_note_photo">"Zacz zdjcie"</string> <string name="quest_leave_new_note_photo_delete_title">"Czy chcesz usun ten obrazek?"</string> <string name="quest_cycleway_value_track">"droga dla rowerw lub fizycznie oddzielony pas rowerowey"</string> <string name="quest_cycleway_value_lane">"pas dla rowerw"</string> <string name="quest_cycleway_value_none">"brak"</string> <string name="quest_cycleway_value_shared">"pas dzielony z innymi uczestnikami ruchu"</string> <string name="quest_cycleway_value_bus_lane">"na pasie dla autobusw"</string> <string name="quest_leave_new_note_create_image_error">"Nie udao si utworzy pliku dla zdjcia"</string> <string name="quest_cycleway_value_lane_dual">"pas rowerowy w obu kierunkach"</string> <string name="quest_cycleway_value_track_dual">"droga dla rowerw w obu kierunkach"</string> <string name="pref_category_advanced">"Zaawansowane"</string> <string name="quest_enabled">"Wczone"</string> <string name="quest_type">"Rodzaj zada"</string> <string name="action_reset">"Reset"</string> <string name="undo_confirm_positive">"Cofnij"</string> <string name="undo_confirm_negative">"Anuluj"</string> <string name="quest_hasFeature_only">"Tylko"</string> <string name="quest_dietType_explanation_vegan">"Dania wegaskie nie zawieraj adnych produktw pochodzenia zwierzcego (bez misa, ryb, drobiu, przetworw mlecznych, jaj, miodu, owocw morza, itp.)"</string> <string name="quest_dietType_explanation_vegetarian">"Dania wegetariaskie nie zawieraj misa, w tym ryb i drobiu."</string> <string name="quest_dietType_explanation">"Zaznacz tylko jeli miejsce oferuje penoprawne danie dla tej diety, pomijajc przystawki itp."</string> <string name="quest_carWashType_title">"Jaki to rodzaj myjni samochodowej?"</string> <string name="quest_carWashType_automated">"Automatyczna"</string> <string name="quest_carWashType_selfService">"Samoobsugowa"</string> <string name="quest_carWashType_service">"Myje obsuga"</string> <string name="enable_quest_confirmation_title">"Aktywowa ten rodzaj zada?"</string> <string name="default_disabled_msg_go_inside">"To zadanie jest domylnie nieaktywne, poniewa odpowied na nie jest czsto niemoliwa bez wejcia do danego miejsca."</string> <string name="quest_housenumber_conscription_number">"Numer konskrypcyjny"</string> <string name="quest_housenumber_street_number_optional">"Numer orientacyjny (opcjonalny)"</string> <string name="quest_cycleway_answer_contraflow_cycleway">"Rwnie cieka rowerowa po drugiej stronie"</string> <string name="quest_openingHours_emptyAnswer">"Opisz co jest na znaku. Jeli nie ma znaku, zapytaj na miejscu o godziny otwarcia."</string> <string name="quest_cycleway_value_none_but_no_oneway">"brak, ale rowerzyci mog si porusza na jezdni w obu kierunkach"</string> <string name="quest_streetName_answer_noName_question">"Dlaczego ta droga nie ma nazwy?"</string> <string name="quest_streetName_answer_noProperStreet_service2">"To co w rodzaju podjazdu lub alejki parkingowej"</string> <string name="quest_streetName_answer_noProperStreet_track2">"Jest to droga polna lub lena"</string> <string name="quest_streetName_answer_noName_noname">"adne z powyszych, po prostu nie ma nazwy"</string> <string name="quest_wheelchairAccess_description_toilets">"Znak z wzkiem inwalidzkim jak ten moe by widoczny, jeli toalety s przystosowane. Oznacza to, e osoba na wzku jest w stanie z niej skorzysta, ale nie ma porczy lub umywalki na odpowiedniej wysokoci."</string> <string name="map_btn_create_note">"Utwrz nowe zgoszenie o problemie"</string> <string name="create_new_note_unprecise">"Przybli, aby mc stworzy notatk"</string> <string name="create_new_note_description">"Moesz zostawi tutaj notatk, aby poinformowa innych mapujcych o jakiej kwestii. Ustaw pozycj notatki przesuwajc map:"</string> <string name="quest_generic_looks_like_this">"Na og wyglda w ten sposb:"</string> <string name="quest_surface_value_metal">"Metalowa"</string> <string name="quest_cycleway_title2">"Czy znajduje si tutaj droga rowerowa? Jakiego typu?"</string> <string name="quest_bridge_structure_title">"Jaka jest konstrukcja tego mostu?"</string> <string name="quest_internet_access_wlan">"Wi-Fi"</string> <string name="quest_internet_access_wired">"Przewodowy (LAN)"</string> <string name="quest_internet_access_terminal">"Komputer z dostpem do internetu"</string> <string name="quest_internet_access_no">"Brak internetu"</string> <string name="quest_bench_backrest_title">"Czy ta awka ma oparcie?"</string> <string name="quest_bench_answer_picnic_table">"To st piknikowy"</string> <string name="quest_religion_for_place_of_worship_title">"Jaka religia jest praktykowana w tym miejscu?"</string> <string name="quest_religion_christian">"Chrzecijastwo"</string> <string name="quest_religion_muslim">"Islam"</string> <string name="quest_religion_hindu">"Hinduizm"</string> <string name="quest_religion_buddhist">"Buddyzm"</string> <string name="quest_religion_shinto">"Shinto"</string> <string name="quest_religion_jewish">"Judaizm"</string> <string name="quest_religion_taoist">"Taoizm"</string> <string name="quest_religion_for_place_of_worship_answer_multi">"dla kadej religii"</string> <string name="quest_religion_sikh">"Sikhizm"</string> <string name="quest_religion_jain">"Dinizm"</string> <string name="quest_religion_bahai">"Bahaizm"</string> <string name="quest_religion_caodaist">"Kaodaizm"</string> <string name="quest_religion_chinese_folk">"Chiska religia ludowa"</string> <string name="quest_religion_for_wayside_shrine_title">"Z jak religi zwizana jest ta kapliczka?"</string> <string name="quest_parking_fee_title">"Czy parkowanie jest tutaj patne?"</string> <string name="quest_surface_value_unhewn_cobblestone">"kocie by"</string> <string name="quest_streetSurface_square_title">"Jak nawierzchni ma ten plac?"</string> <string name="quest_fee_answer_hours">"Zaley od dnia i godziny"</string> <string name="quest_fee_add_times">"Dodaj godziny"</string> <string name="quest_housenumber_multiple_numbers">"Ma wiele numerw domu"</string> <string name="quest_housenumber_multiple_numbers_description">"Moesz wypisa wszystkie numery, oddzielajc je przecinkami, lub poda ich zakres. Na przykad 1,3 lub 26."</string> <string name="quest_bicycle_parking_type_stand">"Barierka / Stojak (przytrzymuje ram roweru)"</string> <string name="quest_bicycle_parking_type_wheelbender">"Wyrwikka (przytrzymuje tylko koo)"</string> <string name="quest_bicycle_parking_type_shed">"Wiata"</string> <string name="quest_bicycle_parking_type_locker">"Schowek"</string> <string name="quest_bicycle_parking_type_building">"Budynek"</string> <string name="quest_bicycle_parking_type_title">"Jaki to rodzaj parkingu rowerowego?"</string> <string name="quest_postboxCollectionTimes_title">"W jakich godzinach ta skrzynka pocztowa jest oprniania?"</string> <string name="quest_collectionTimes_add_times">"Dodaj godzin odbioru"</string> <string name="quest_collectionTimes_answer_no_times_specified">"Godziny nie s podane"</string> <string name="quest_construction_road_title">"Czy budowa tej drogi zostaa zakoczona?"</string> <string name="quest_construction_cycleway_title">"Czy budowa tej cieki rowerowej zostaa zakoczona?"</string> <string name="quest_construction_footway_title">"Czy budowa tej drogi dla pieszych zostaa zakoczona?"</string> <string name="quest_construction_generic_title">"Czy budowa zostaa tu zakoczona?"</string> <string name="quest_construction_building_title">"Czy budowa tego budynku zostaa zakoczona?"</string> <string name="questList_disabled_in_country">"Wyczone w %s"</string> <string name="quest_select_hint_most_specific">"Wybierz wariant, ktry najlepiej pasuje:"</string> <string name="quest_generic_item_confirmation">"Na pewno nie da si tego okreli bardziej konkretnie?"</string> <string name="privacy_html_third_party_quest_sources">"&lt;p&gt;Niektre zadania pobieraj dodatkowe dane z zewntrznych rde.&lt;/p&gt;"</string> <string name="quest_generic_hasFeature_no_leave_note">"Nie (zostaw notatk)"</string> <string name="pref_quests_reset">"Przywrci pocztkowy status i kolejno zada?"</string> <string name="quest_generic_item_invalid_value">"Wybierz bardziej konkretn warto."</string> <string name="quest_buildingType_answer_multiple_types">"Ma rne zastosowania"</string> <string name="quest_buildingType_answer_multiple_types_description">"Wybierz po prostu gwne przeznaczenie tego budynku. Np. jeli na parterze jest sklep, a nad nim mieszkania, to nadal jest to gwnie budynek mieszkalny."</string> <string name="quest_buildingType_answer_construction_site">"Nadal jest w budowie"</string> <string name="quest_buildingType_residential">"Mieszkalny"</string> <string name="quest_buildingType_residential_description">"budynek, w ktrym mieszkaj ludzie"</string> <string name="quest_buildingType_house">"Dom"</string> <string name="quest_buildingType_apartments_description">"dom dla wielu rodzin, moe mie punkty handlowo-usugowe na parterze"</string> <string name="quest_buildingType_apartments">"Budynek wielorodzinny"</string> <string name="quest_buildingType_detached">"Wolnostojcy dom jednorodzinny"</string> <string name="quest_buildingType_detached_description">"dom jednorodzinny niepoczony z innym domem"</string> <string name="quest_buildingType_semi_detached">"Dom-bliniak"</string> <string name="quest_buildingType_terrace_description">"rzd podobnych budynkw jednorodzinnych"</string> <string name="quest_buildingType_hotel">"Budynek hotelu"</string> <string name="quest_buildingType_dormitory">"Akademik / Bursa / Internat"</string> <string name="quest_buildingType_houseboat">"od mieszkalna"</string> <string name="quest_buildingType_bungalow">"Dom letniskowy / Dacza"</string> <string name="quest_buildingType_static_caravan">"Przyczepa kempingowa ustawiona na stae"</string> <string name="quest_buildingType_commercial">"Budynek dla celw komercyjnych"</string> <string name="quest_buildingType_commercial_generic_description">"budynek ktry powsta jako miejsce pracy, zakupw lub jakielkolwiek innej aktywnoci zarobkowej"</string> <string name="quest_buildingType_industrial">"Budynek przemysowy"</string> <string name="quest_buildingType_industrial_description">"np. fabryka lub warsztat samochodowy"</string> <string name="quest_buildingType_office">"Budynek biurowy"</string> <string name="quest_buildingType_retail">"Budynek sklepowy"</string> <string name="quest_buildingType_warehouse">"Budynek magazynu"</string> <string name="quest_buildingType_kiosk">"Kiosk"</string> <string name="quest_buildingType_storage_tank">"Zbiornik"</string> <string name="quest_buildingType_religious">"Budynek religijny"</string> <string name="quest_buildingType_church">"Koci"</string> <string name="quest_buildingType_chapel">"Kaplica"</string> <string name="quest_buildingType_cathedral">"Katedra"</string> <string name="quest_buildingType_mosque">"Meczet"</string> <string name="quest_buildingType_temple">"Budynek wityni"</string> <string name="quest_buildingType_pagoda">"Pagoda"</string> <string name="quest_buildingType_synagogue">"Budynek synagogi"</string> <string name="quest_buildingType_civic">"Budynek uytecznoci publicznej"</string> <string name="quest_buildingType_civic_description">"zbudowany w celu pomieszczenia obiektu o przeznaczeniu wsplnym"</string> <string name="quest_buildingType_kindergarten">"Przedszkole"</string> <string name="quest_buildingType_school">"Szkoa"</string> <string name="quest_buildingType_college">"Budynek Szkoy Wyszej"</string> <string name="quest_buildingType_hospital">"Budynek szpitala"</string> <string name="quest_buildingType_stadium">"Stadion"</string> <string name="quest_buildingType_train_station">"Stacja kolejowa"</string> <string name="quest_buildingType_transportation">"Budynek do celw transportu publicznego"</string> <string name="quest_buildingType_university">"Uniwersytet"</string> <string name="quest_buildingType_government">"Budynek rzdowy"</string> <string name="quest_buildingType_carport">"Zadaszenie dla samochodu"</string> <string name="quest_buildingType_carport_description">"zadaszenie dla samochodu"</string> <string name="quest_buildingType_garage">"Jeden gara"</string> <string name="quest_buildingType_garages">"Wiele garay"</string> <string name="quest_buildingType_parking">"Budynek parkingu"</string> <string name="quest_buildingType_farm">"Na gospodarstwie"</string> <string name="quest_buildingType_farmhouse">"Dom w gospodarstwie rolnym"</string> <string name="quest_buildingType_farmhouse_description">"budynek mieszkalny na gospodarstwie"</string> <string name="quest_buildingType_farm_auxiliary">"Budynek gospodarczy"</string> <string name="quest_buildingType_farm_auxiliary_description">"niemieszkalny budynek w gospodarstwie"</string> <string name="quest_buildingType_greenhouse">"Szklarnia"</string> <string name="quest_buildingType_other">"Inny"</string> <string name="quest_buildingType_shed">"Szopa/wiata/budka"</string> <string name="quest_buildingType_hut">"Chata"</string> <string name="quest_buildingType_hut_description">"Prosty budynek mieszkalny lub szaas"</string> <string name="quest_buildingType_roof">"Dach"</string> <string name="quest_buildingType_service">"Budynek techniczny"</string> <string name="quest_buildingType_service_description">"budynek na maszyny takie jak pompy albo transformatory"</string> <string name="quest_buildingType_hangar">"Hangar"</string> <string name="quest_buildingType_hangar_description">"przechowywalnia samolotw, helikopterw lub statkw kosmicznych"</string> <string name="quest_buildingType_bunker">"Bunkier"</string> <string name="quest_address_answer_no_housenumber">"Nie ma numeru"</string> <string name="quest_address_answer_no_housenumber_message1">"Budynek jest zaznaczony jako:"</string> <string name="quest_buildingType_shrine">"Kapliczka"</string> <string name="quest_maxspeed_title_short2">"Jakie jest ograniczenie prdkoci dla tej ulicy?"</string> <string name="quest_maxspeed_answer_sign">"Znak"</string> <string name="quest_maxspeed_answer_zone2">"To jest strefa (ograniczonej prdkoci)"</string> <string name="quest_maxspeed_answer_noSign2">"Brak znaku, stosowane s domylne ograniczenia prdkoci"</string> <string name="quest_openingHours_no_sign">"Brak tabliczki z godzinami otwarcia"</string> <string name="quest_buildingType_sports_centre">"Centrum sportowe"</string> <string name="quest_buildingType_toilets">"Toalety"</string> <string name="quest_maxspeed_sign_question">"Co wyznacza tutaj dozwolon prdko?"</string> <string name="quest_segregated_title">"Jaki jest tutaj ukad chodnika i drogi rowerowej?"</string> <string name="dialog_tutorial_upload">"Aby przesa zmiany rcznie, uyj przycisku na pasku narzdzi, ktry wyglda nastpujco."</string> <string name="quest_segregated_separated">"Ruch jest rozdzielony od siebie"</string> <string name="quest_segregated_mixed">"Rowerzyci i piesi korzystaj ze wsplnej przestrzeni"</string> <string name="quest_maxheight_title">"Jakie jest tutaj ograniczenie wysokoci?"</string> <string name="quest_maxheight_answer_noSign">"Nie ma znaku"</string> <string name="quest_maxheight_unusualInput_confirmation_description">"Ta wysoko wyglda podejrzanie. Jeste pewien, e jest poprawna?"</string> <string name="quest_noteDiscussion_comment2">" %1$s, %2$s"</string> <string name="quest_noteDiscussion_closed2">"zamknite przez %1$s, %2$s"</string> <string name="quest_noteDiscussion_reopen2">"ponownie otwarte przez %1$s, %2$s"</string> <string name="quest_noteDiscussion_hide2">"ukryte przez %1$s, %2$s"</string> <string name="privacy_html_image_upload2">"&lt;p&gt;Zaczone do notatki zdjcia s przesyane na mj serwer i usuwane kilka dni po zakoczeniu. Ich meta-dane s usuwane przed przesaniem.&lt;/p&gt;"</string> <string name="action_deselect_all">"Odznacz wszystko"</string> <string name="quest_buildingType_retail_description">"w tym budynki dla restauracji, kawiarni, sklepw"</string> <string name="quest_openingHours_timeSelect_next">"Dalej"</string> <string name="quest_tracktype_title">"Jaka jest twardo nawierzchni tej drogi?"</string> <string name="quest_tracktype_grade1">"Twarda nawierzchnia typu asfalt/beton"</string> <string name="quest_tracktype_grade4">"Sabo utwardzona"</string> <string name="quest_tracktype_grade5">"Nieutwardzona"</string> <string name="quest_building_underground_title">"Czy ten budynek znajduje si cakowicie pod ziemi?"</string> <string name="quest_wheelchairAccess_limited_description_outside">"Czciowo oznacza, e nie ma wicej ni jednego stopnia prowadzcego do obiektu."</string> <string name="quest_wheelchairAccess_outside_title">"Czy to miejsce jest dostpne dla osb na wzku inwalidzkich?"</string> <string name="quest_traffic_signals_button_title">"Czy te sygnalizatory maj przycisk dajcy zielonego wiata?"</string> <string name="quest_motorcycleParkingCapacity_title">"Ile motocykli mona tutaj zaparkowa?"</string> <string name="quest_motorcycleParkingCoveredStatus_title">"Czy ten parking dla motocykli jest osonity (chroniony przed deszczem)?"</string> <string name="default_disabled_msg_maxspeed">"To zadanie jest domylnie wyczone, poniewa zazwyczaj musisz sprawdzi na caej ulicy znaki ograniczenia prdkoci, a nie tylko podwietlon sekcj. Czasami moe to by wic do trudna sprawa, aby rozwiza pojedyncze zadanie."</string> <string name="pref_title_quests_restore_hidden">"Przywr ukryte zadania"</string> <string name="on_level">"na pitrze %s"</string> <string name="underground">"pod ziemi"</string> <string name="quest_sidewalk_value_yes">"chodnik"</string> <string name="quest_sidewalk_value_no">"brak chodnika"</string> <string name="quest_accessible_for_pedestrians_title_prohibited">"Czy piesi maj zakaz poruszania si na tej drodze?"</string> <string name="quest_buildingType_title">"Jaki to rodzaj budynku?"</string> <string name="pref_title_theme_select">"Wybierz motyw"</string> <string name="theme_light">"Jasny"</string> <string name="theme_dark">"Ciemny"</string> <string name="theme_system_default">"Domylny systemu"</string> <string name="action_open_location">"Otwrz to miejsce w innej aplikacji"</string> <string name="map_application_missing">"Nie zainstalowano innej aplikacji map"</string> <string name="label_housenumber">"Numer domu"</string> <string name="label_blocknumber">"Numer kwartau mieszkaniowy"</string> <string name="quest_busStopShelter_covered">"Przystanek jest w caoci przykryty"</string> <string name="quest_ferry_pedestrian_title">"Czy ten prom przewozi pieszych?"</string> <string name="quest_ferry_motor_vehicle_title">"Czy ten prom przewozi pojazdy silnikowe?"</string> <string name="quest_leave_new_note_photos_are_useful">"Dodanie zdjcia uczyni notatk bardziej przydatn."</string> <string name="create_new_note_hint">"Najlepiej bdzie, jeli notatk napiszesz w tutejszym jzyku, ewentualnie po angielsku."</string> <string name="quest_leafType_title">"Czy te drzewa s liciaste czy iglaste?"</string> <string name="quest_leaf_type_needles">"Iglaste"</string> <string name="quest_leaf_type_broadleaved">"Liciaste"</string> <string name="quest_leaf_type_mixed">"Wystpuj oba"</string> <string name="quest_cyclewayPartSurface_title">"Jaka jest nawierzchnia czci bdcej drog dla rowerw?"</string> <string name="quest_generic_answer_differs_along_the_way">"Rne odcinki maj rn odpowied"</string> <string name="quest_split_way_description">"Jeli sytuacja jest rna w poszczeglnych czciach to pierwszym krokiem jest podzielenie drogi na fragmenty. Gdy to si zrobi bdzie moliwe odpowiedzenie na to pytanie dla kadego fragmentu z osobna. Podzieli?"</string> <string name="quest_split_way_tutorial">"Dotknij lini w miejscach gdzie trzeba j podzieli poniewa odpowied si zmienia. Prbuj by jak najbardziej dokadny, moesz przybliy w taki sam sposb jak zazwyczaj."</string> <string name="quest_split_way_too_imprecise">"Prosz, zbli bardziej"</string> <string name="quest_split_way_many_splits_confirmation_description">"To jest sporo podziaw. Zawsze moesz podzieli lini bardziej przy odpowiadaniu na poszczeglne zadania."</string> <string name="quest_footwayPartSurface_title">"Jak jest nawierzchnia czci bdcej chodnikiem dla pieszych?"</string> <string name="quest_maxweight_title">"Czy jest tu ograniczenie wagi?"</string> <string name="quest_maxweight_unusualInput_confirmation_description">"Ta waga wyglda mao prawdopodobnie. Jeste pewien e jest ona poprawna?"</string> <string name="quest_maxweight_answer_other_sign">"Znak wyglda inaczej"</string> <string name="quest_maxweight_unsupported_sign_request_photo">"Czy chciaby zostawi notatk ze zdjciem? Umoliwi to innym mapujcym zaznaczy ten przypadek."</string> <string name="quest_handrail_title">"Czy te schody maj porcz?"</string> <string name="quest_ref_answer_noRef">"Nie ma widocznego numeru czy kodu"</string> <string name="quest_street_side_puzzle_tutorial">"Droga na ilustracji jest obrcona w ten sam sposb jak odcinek na mapie pod znaczkiem zadania."</string> <string name="quest_recycling_materials_title">"Co mona tu zostawi do recyklingu?"</string> <string name="quest_recycling_materials_note">"Jeli to miejsce przyjmuje te jakiekolwiek inne rzeczy do recyklingu - wybierz \"odpowied niemoliwa\" i pozostaw notatk"</string> <string name="quest_recycling_type_batteries">"Baterie"</string> <string name="quest_recycling_type_cans">"Puszki"</string> <string name="quest_recycling_type_clothes">"Ubrania"</string> <string name="quest_recycling_type_green_waste">"mieci ogrodowe"</string> <string name="quest_recycling_type_glass_bottles">"Szklane butelki i soiki"</string> <string name="quest_recycling_type_glass_bottles_short">"Butelki i soiki"</string> <string name="quest_recycling_type_paper">"Papier"</string> <string name="quest_recycling_type_plastic_generic">"Plastik"</string> <string name="quest_recycling_type_plastic">"Jakikolwiek plastik"</string> <string name="quest_recycling_type_shoes">"Buty"</string> <string name="quest_recycling_type_electric_appliances">"Urzdzenia elektryczne"</string> <string name="quest_recycling_type_plastic_bottles">"Tylko plastikowe butelki"</string> <string name="quest_recycling_type_plastic_packaging">"Tylko plastikowe opakowania"</string> <string name="quest_recycling_type_scrap_metal">"Zom metalowy"</string> <string name="quest_recycling_type_any_glass">"Kade szko"</string> <string name="quest_recycling_glass_title">"Czy mona tu zostawi do recyklingu szklane butelki i soiki czy te kady rodzaj szka?"</string> <string name="quest_determineRecyclingGlass_description_any_glass">"Szko aroodporne, szyby, szklana zastawa stoowa, arwki czy lustra to przykady szka ktre zazwyczaj nie jest akceptowane."</string> <string name="about_title_changelog">"Historia zmian"</string> <string name="title_whats_new">"Co nowego?"</string> <string name="about_title_rate">"Oce aplikacj"</string> <string name="about_title_donate">"Wesprzyj"</string> <string name="about_summary_donate">"Przeka wsparcie! "</string> <string name="about_description_donate">"Dzikujemy za zainteresowanie wsparciem naszej aplikacji! Aby sprawdzi aktualne darowizny i samemu wesprze aplikacj, wybierz jedn z platform:"</string> <string name="confirmation_cancel_prev_download_confirmed">"Szukaj tutaj"</string> <string name="confirmation_cancel_prev_download_cancel">"Kontynuuj trwajce wyszukiwanie"</string> <string name="quest_buildingType_garages_description">"Osobne miejsca dla rnych uytkownikw."</string> <string name="quest_tourism_information_title">"Jaki to rodzaj informacji turystycznej?"</string> <string name="quest_tourism_information_office">"Biuro informacji turystycznej"</string> <string name="quest_tourism_information_board">"Tablica informacyjna"</string> <string name="quest_tourism_information_terminal">"Terminal informacyjny"</string> <string name="quest_tourism_information_map">"Mapa"</string> <string name="quest_tourism_information_guidepost">"Drogowskaz"</string> <string name="quest_recycling_materials_answer_waste">"Jest to na odpady zmieszane"</string> <string name="quest_recycling_materials_answer_waste_description">"Czy jest to pojemnik na dowolne mieci, w tym mieci zmieszane?"</string> <string name="user_profile">"Mj profil"</string> <string name="user_login">"Zaloguj"</string> <string name="user_logout">"Wyloguj"</string> <string name="osm_profile">"Profil OSM"</string> <string name="next">"Dalej"</string> <string name="letsgo">"Ruszajmy!"</string> <string name="tutorial_welcome_to_osm">"Witaj w OpenStreetMap"</string> <string name="tutorial_welcome_to_osm_subtitle">"otwartym projekcie mapowania wiata"</string> <string name="tutorial_intro">"StreetComplete to prosty sposb na wsptworzenie OpenStreetMap. Automatycznie wyszukuje w Twojej okolicy brakujcych szczegw dotyczcych: cieek rowerowych, adresw, godzin otwarcia i wielu innych"</string> <string name="tutorial_solving_quests">"Miejsca w ktrych brakuje szczegw pojawi si na Twojej mapie jako zadania. Moesz od razu przej do ich rozwizywania i pniej zalogowa si, by opublikowa swoje odpowiedzi."</string> <string name="tutorial_stay_safe">"Gdy nie masz pewnoci, moesz zaznaczy Trudno powiedzie i zostawi notatk. Zawsze pamitaj, aby zachowa bezpieczestwo! Uwaaj na swoje otoczenie i nie wchod na tereny prywatne."</string> <string name="tutorial_happy_mapping">"Miego mapowania!"</string> <string name="achievements_empty">"Nie masz jeszcze osigni"</string> <string name="links_empty">"Nie masz jeszcze linkw"</string> <string name="quests_empty">"Nie masz jeszcze adnych opublikowanych edycji"</string> <string name="unsynced_quests_description">"oraz %d nieopublikowanych zmian."</string> <string name="unsynced_quests_not_logged_in_description">"Masz %d nieopublikowanych zmian. Musisz si zalogowa eby je wysa."</string> <string name="user_quests_title">"Edycje"</string> <string name="user_achievements_title">"Osignicia"</string> <string name="user_links_title">"Kolekcja linkw"</string> <string name="user_profile_title">"Profil"</string> <string name="user_statistics_quest_wiki_link">"Dokumentacja"</string> <string name="achievements_unlocked_link">"Odblokowany link:"</string> <string name="achievements_unlocked_links">"Odblokowane linki:"</string> <string name="link_category_intro_title">"Wprowadzenie"</string> <string name="link_category_intro_description">"Wicej o OSM i spoecznoci"</string> <string name="link_category_editors_title">"Wsptworzenie"</string> <string name="link_category_editors_description">"Edytory i inne metody wsparcia OpenStreetMap"</string> <string name="link_category_maps_title">"Mapy"</string> <string name="link_category_maps_description">"Mapy wykorzystujce OpenStreetMap"</string> <string name="link_category_showcase_title">"Wystawa"</string> <string name="link_category_showcase_description">"Usugi i aplikacje wykorzystujce OpenStreetMap"</string> <string name="link_category_goodies_title">"Smakoyki"</string> <string name="link_category_goodies_description">"Ciekawe rzeczy zwizane z mapami, ktre moesz wyprbowa"</string> <string name="link_cyclosm_description">"Mapa dla rowerzystw"</string> <string name="link_wheelmap_description">"Mapa miejsc przyjaznych dla niepenosprawnych"</string> <string name="link_osm_buildings_description">"Mapa ukazujca budynki w 3D"</string> <string name="link_openvegemap_description">"Odkryj wegetariaskie i wegaskie restauracje w okolicy"</string> <string name="link_touch_mapper_description">"Tworzenie map dotykowych dla dowolnego adresu"</string> <string name="link_mapy_tactile_description">"Dotykowe mapy dla niewidomych w rnych skalach"</string> <string name="link_josm_description">"W peni wyposaony edytor OSM. To potne narzdzie dla zaawansowanych maperw."</string> <string name="link_vespucci_description">"Zaawansowany edytor OSM dla Androida"</string> <string name="link_ideditor_description">"Prosty edytor OSM dla przegldarek. Zoptymalizowany pod komputery osobiste i due tablety."</string> <string name="link_umap_description">"Tworzy napy z wasnymi danymi do umieszczenia na swojej stronie www."</string> <string name="link_opnvkarte_description">"Mapa tras transportu publicznego i przystankw."</string> <string name="link_pic4review_description">"Wsptwrz OSM poprzez ogldanie zdj z Twojego miasta"</string> <string name="link_wiki_description">"Wiki jest Twoim punktem pocztkowym do wszystkiego co jest zwizane z OpenStreetMap"</string> <string name="link_learnosm_description">"Nowicjusz w OpenStreetMap? Tutaj jest podrcznik dla pocztkujcych"</string> <string name="link_neis_one_description">"Ogromna kolekcja statystyk dla autorw OpenStreetMap takich jak gdzie i jak edytujesz, kto jeszcze edytuje w okolicy oraz rankingi uytkownikw"</string> <string name="link_welcome_mat_description">"Oglne informacje o OpenStreetMap i jak pracowa z OSM jako organizacj"</string> <string name="link_mapillary_description">"Usuga i aplikacja do dzielenia si zdjciami z poziomu ulicy z moliwoci uycia ich do edycji OSM"</string> <string name="link_openstreetcam_description">"Usuga i aplikacja do dzielenia si zdjciami z poziomu ulicy z moliwoci uycia ich do edycji OSM"</string> <string name="link_openrouteservice_wheelchair_description">"Nawigacja dla uytkownikw wzkw dla niepenosprawnych"</string> <string name="link_nominatim_description">"Wyszukiwarka adresw w danych OSM wykorzystywana przez wiele serwisw"</string> <string name="link_city_roads_description">"Rysowanie wszystkich drg miasta do wydruku na koszulkach, kubkach, "</string> <string name="link_myosmatic_description">"Tworzenie w kilku prostych krokach map miejskich do drukowania z opcj katalogu ulic"</string> <string name="link_brouter_description">"Prawdopodobnie najlepsze narzdzie do wyznaczania tras dla rowerzystw"</string> <string name="link_show_me_the_way_description">"Obserwacja edycji OSM w czasie rzeczywistym"</string> <string name="link_osrm_description">"Najszybszy mechanizm wytyczajcy drog"</string> <string name="link_openrouteservice_description">"Wytyczanie drogi dla ruchu pojazdami i pieszego. Pokazuje take izochrony (punkty na mapie osigalne w zadanym czasie)."</string> <string name="link_osm_haiku_description">"Tworzenie haiku (rodzaj japoskiej poezji) z danych OSM"</string> <string name="link_openinframap_description">"Mapa pokazujca infrastruktur sieci energetycznej, gazowej itp."</string> <string name="link_openorienteeringmap_description">"Tworzy drukowane mapy do biegw na orientacj itp."</string> <string name="link_openstreetbrowser_description">"Mapa do przegldania danych wedug kategorii"</string> <string name="link_weeklyosm_description">"Cotygodniowy blog o wydarzeniach zwizanych z OpenStreetMap"</string> <string name="link_figuregrounder_description">"Tworzy mapy miast lub obszarw w stylu plakatu"</string> <string name="achievement_first_edit_title">"Pierwsze Zadanie Wykonane"</string> <string name="achievement_first_edit_description">"Witaj w spoecznoci OpenStreetMap! Na ekranie swojego profilu znajdziesz wicej informacji o wszystkich zadaniach, ktre udao ci si rozwiza."</string> <string name="achievement_surveyor_title">"Geodeta"</string> <string name="achievement_surveyor_solved_X">"Udao ci si rozwiza %d zada! Kontynuuj, aby odblokowa wicej osigni z odnonikami do OSM, a take innych aplikacji i projektw zwizanych z mapami!"</string> <string name="achievement_regular_title">"Stay Bywalec"</string> <string name="achievement_regular_description">"Twj wkad w rozwj OSM za pomoc tej aplikacji to %d dni! Regularni wsptwrcy s podstaw OSM. Dzikujemy za Wasze zaangaowanie! "</string> <string name="achievement_bicyclist_title">"Rowerzysta"</string> <string name="achievement_bicyclist_solved_X">"Udao ci si rozwiza %d zada, ktre pomog rowerzystom!"</string> <string name="achievement_wheelchair_title">"Bez Barier"</string> <string name="achievement_wheelchair_solved_X">"Udao ci si rozwiza %d zada, ktre pomog osobom na wzkach inwalidzkich porusza si po miecie!"</string> <string name="achievement_postman_title">"Listonosz"</string> <string name="achievement_postman_solved_X">"Udao ci si ustali %d adresw! Tego typu dane s niezwykle istotne zarwno dla kurierw, jak i wszelkich systemw nawigacyjnych."</string> <string name="achievement_building_title">"Wysokociowiec"</string> <string name="achievement_building_solved_X">"Udao ci si rozwiza %d zada dotyczcych budynkw. Zauwa, e aplikacja pyta o numer domu dopiero po okreleniu rodzaju budynku."</string> <string name="achievement_blind_title">"Szsty Zmys"</string> <string name="achievement_blind_solved_X">"Udao ci si rozwiza %d zada, ktre s wane dla osb niedowidzcych."</string> <string name="achievement_pedestrian_title">"Spacerowicz"</string> <string name="achievement_pedestrian_solved_X">"Udao ci si rozwiza %d zada, ktre s istotne dla osb poruszajcych si pieszo!"</string> <string name="achievement_veg_title">"Mionik Zwierzt"</string> <string name="achievement_veg_solved_X">"Udao ci si rozwiza %d zada wanych dla osb na diecie bezmisnej!"</string> <string name="achievement_car_title">"Na Drodze"</string> <string name="achievement_car_solved_X">"Udao ci si rozwiza %d zada, ktre poprawiy szczegowo infrastruktury drogowej dodajc ulic do OpenStreetMap!"</string> <string name="unread_messages_message">"Masz %d nieprzeczytanych wiadomoci w skrzynce odbiorczej"</string> <string name="unread_messages_button">"Otwrz skrzynk odbiorcz"</string> <string name="action_about2">"O aplikacji"</string> <string name="map_btn_menu">"Menu"</string> <string name="privacy_html_statistics">"&lt;p&gt;Dane pokazane w Twoim profilu s agregowane z publicznie dostpnej historii w OpenStreetMap, a nastpnie udostpniane na moim serwerze.&lt;/p&gt;"</string> <string name="confirmation_authorize_now_note2">"Moesz to zrobi pniej na ekranie profilu."</string> <string name="credits_art_contributors_title">"Autorzy grafiki"</string> <string name="credits_projects_contributors_title">"Projekty wykonane dla StreetComplete"</string> <string name="credits_main_contributors_title">"Gwni wsptwrcy"</string> <string name="stats_are_syncing">"Twoje statystyki s w trakcie synchronizacji. Sprawd ten ekran pniej."</string> <string name="user_statistics_country_rank">"%2$s - pozycja %1$d"</string> <string name="user_statistics_country_wiki_link">"Portal %s"</string> <string name="user_statistics_filter_by_country">"Wedug pastwa"</string> <string name="user_statistics_filter_by_quest_type">"Wedug typu zadania"</string> <string name="user_profile_global_rank">"Pozycja wiatowa"</string> <string name="user_profile_local_rank">"Pozycja: %s"</string> <string name="user_profile_days_active">"Aktywnych dni"</string> <string name="user_profile_achievement_levels">"Poziomw osigni"</string> <string name="quest_address_street_no_named_streets">"Nie naley do nazwanej ulicy"</string> <string name="quest_address_street_place_name_label">"Nazwa miejscowoci/miejsca:"</string> <string name="quest_recycling_type_cooking_oil">"Olej jadalny"</string> <string name="quest_recycling_type_engine_oil">"Olej silnikowy"</string> <string name="link_photon_description">"Wyszukiwarka bdca ulepszon wersj Nominatim z wsparciem dla podpowiedzi w czasie pisania i z autokorekt"</string> <string name="link_graphhopper_description">"Elastyczne wyszukiwanie tras"</string> <string name="privacy_html_tileserver2">"&lt;p&gt;By wywietli map przygotowane dane pobierane s z %1$s. Zobacz ich &lt;a href=\"%2$s\"&gt;polityk prywatnoci&lt;/a&gt; by uzyska pene informacje.&lt;/p&gt;"</string> <string name="about_title_sponsors">"Sponsorzy"</string> <string name="quest_board_type_history">"Historia"</string> <string name="quest_board_type_geology">"Geologia"</string> <string name="quest_board_type_plants">"Roliny"</string> <string name="quest_board_type_wildlife">"Dzikie zwierzta i roliny"</string> <string name="quest_board_type_nature">"Natura (wiele tematw)"</string> <string name="quest_board_type_notice_board">"To jest tablica z ogoszeniami"</string> <string name="quest_board_type_public_transport">"Transport publiczny"</string> <string name="quest_board_type_title">"Jaki jest temat tej tablicy informacyjnej"</string> <string name="quest_board_type_map">"To jest mapa"</string> <string name="quest_board_type_map_title">"Czy to jest mapa i tylko mapa?"</string> <string name="quest_board_type_map_description">"Jeli tablica jest o konkretnym temacie, wybierz go - niezalenie od tego czy pojawia si te mapa. Na przykad tablica o transporcie publicznym moe zawiera te map tras autobusowych. Jeli temat nie jest na licie moliwych odpowiedzi, wybierz raczej \"odpowied niemoliwa\" i zostaw notatk."</string> <string name="quest_surface_detailed_answer_impossible">"Rne nawierzchnie"</string> <string name="quest_surface_detailed_answer_impossible_confirmation">"Czy jeste pewien e nie jest moliwe podanie nawierzchni? Zauwa e jest opcja \"Zmienia si\" ktra pozwala na podzielenie na odcinki z rn nawierzchni. Wybierz \"Odpowied niemozliwa\" jeli jest jedna nawierzchnia ktra nie jest moliwa do wybrania jako odpowied."</string> <string name="quest_surface_detailed_answer_impossible_description">"Prosz krtko opisz nawierzchni, na przykad \"piaszczysta z fragmentami kocich bw\" (jeli moesz, moesz uy angielskiego, np \"sandy with patches of cobblestone\"). Dugo tekstu ograniczona jest do 255 znakw."</string> <string name="quest_streetName_menuItem_international">"midzynarodowa"</string> <string name="quest_buildingType_terrace2">"wiele domw szeregowych"</string> <string name="at_housename">"Nazwa budynku %s"</string> <string name="at_housenumber">"Numer domu %s"</string> <string name="quest_openingHours_add_off_days">"Dodaj dni gdy jest zamknite"</string> <string name="quest_openingHours_off_day">"Zamknite"</string> <string name="quest_openingHours_unspecified_range">"Nie podano"</string> <string name="quest_cycleway_resurvey_title">"Czy to jest stan cieki rowerowej na tym odcinku?"</string> <string name="pref_title_resurvey_intervals">"Jak czsto weryfikowa dane?"</string> <string name="resurvey_intervals_less_often">"Pytaj rzadziej"</string> <string name="resurvey_intervals_default">"Domylny"</string> <string name="resurvey_intervals_more_often">"Pytaj czciej"</string> <string name="about_title_translate">"Pom w tumaczeniu"</string> <string name="about_description_translate">"%1$s przetumaczono w %2$d%%"</string> <string name="quest_oneway2_title">"Czy ta droga jest jednokierunkowa? W ktr stron?"</string> <string name="quest_oneway2_dir">"Jednokierunkowa w t stron"</string> <string name="quest_oneway2_no_oneway">"Jest dwukierunkowa"</string> <string name="quest_maxweight_select_sign">"Wybierz znak"</string> <string name="quest_steps_incline_title">"W ktr stron wznosz si te schody?"</string> <string name="quest_steps_incline_up">"W t stron"</string> <string name="quest_step_count_title">"Ile tu jest schodkw?"</string> <string name="quest_traffic_signals_sound_title">"Czy s tutaj sygnay dwikowe dla niewidomych?"</string> <string name="quest_traffic_signals_vibrate_title">"Czy te wiata dla pieszych w namacalny sposb sygnalizuj kiedy mona przej?"</string> <string name="quest_traffic_signals_vibrate_description">"Wskazwka: guzik moe wibrowalub mieruchomy element aktywowany wraz z zielonym wiatem"</string> <string name="quest_buildingType_bungalow_description2">"may, osobny dom (domek letniskowy, chatka wczasowa )"</string> <string name="quest_railway_crossing_barrier_title2">"Jakie zapory uywane s na tym przejedzie kolejowym?"</string> <string name="quest_railway_crossing_barrier_none2">"Brak barier"</string> <string name="quest_steps_ramp_title">"Czy te schody maj podjazd? Jaki rodzaj?"</string> <string name="quest_steps_ramp_none">"Brak (uywalnej) rampy"</string> <string name="quest_steps_ramp_bicycle">"Do wprowadzania rowerw"</string> <string name="quest_steps_ramp_stroller">"Podjazd dla wzkw dziecicych"</string> <string name="quest_steps_ramp_wheelchair">"Podjazd dla wzkw inwalidzkich"</string> <string name="quest_atm_operator_title">"Jak si nazywa bank tego bankomatu?"</string> <string name="quest_clothes_container_operator_title">"Kto przyjmuje dary w tym koszu na ubrania?"</string> <string name="quest_charging_station_operator_title">"Kto jest zarzdc tej stacji adowania pojazdw?"</string> <string name="link_indoorequal_description">"Odkrywaj mapy wntrz centrw handlowych, stacji kolejowych itp."</string> <string name="achievement_rare_title">"owca Skarbw"</string> <string name="achievement_rare_solved_X">"Udao ci si odnale i rozwiza %d rzadkich zada. Gratulacje!"</string> <string name="achievement_citizen_title">"Obywatel"</string> <string name="achievement_citizen_solved_X">"Udao ci si rozwiza %d zada pomocnych w codziennym yciu mieszkacw miasta!"</string> <string name="achievement_outdoors_title">"W Plenerze"</string> <string name="achievement_outdoors_solved_X">"Udao ci si rozwiza %d zada, ktre s przydatne dla mionikw ruchu na wieym powietrzu!"</string> <string name="quest_pedestrian_crossing_island">"Czy to przejcie dla pieszych ma wysepk?"</string> <string name="quest_generic_answer_noSign">"Nie ma znaku"</string> <string name="quest_steps_ramp_separate_wheelchair">"Czy rampa dla wkw inwalidzkich jest wywietlana jako osobna linia na mapie?"</string> <string name="quest_steps_ramp_separate_wheelchair_confirm">"osobno"</string> <string name="quest_steps_ramp_separate_wheelchair_decline">"nie jest pokazana osobno"</string> <string name="pref_title_sync2">"Automatycznie wysyaj zmiany"</string> <string name="quest_surface_detailed_answer_impossible_title">"Opisz nawierzchni"</string> <string name="open_url">"Otwrz link"</string> <string name="quest_buildingType_silo">"Silos"</string> <string name="quest_buildingType_historic">"Historyczny"</string> <string name="quest_buildingType_historic_description">"budynek historyczny zbudowany z nieznanego lub niepewnego powodu"</string> <string name="quest_buildingType_abandoned">"Opuszczony"</string> <string name="quest_buildingType_abandoned_description">"Opuszczony budynek, niejasne jest w jakim celu powsta"</string> <string name="quest_buildingType_ruins">"Ruiny"</string> <string name="quest_buildingType_ruins_description">"Ruiny budynku ktrego stan nie pozwala na ustalenie jego przeznaczenia"</string> <string name="quest_charging_station_capacity_title">"Ile samochodw elektrycznych moe si tu rwnoczenie adowa?"</string> <string name="link_disaster_ninja_description">"Mapa pokazujca niedawne klski ywioowe, interesujce dla osb wspomagajcych pomoc humanitarn przez tworzenie map. Pokazuje te statystyki jak wiele jest zmapowane w danym miejscu i jak bardzo aktualne s dane OSM. "</string> <string name="quest_lanes_title">"Ile pasw drogowych ma ta droga?"</string> <string name="quest_lanes_answer_lanes">"Wyznaczone pasy"</string> <string name="quest_lanes_answer_noLanes">"Brak wyznaczonych pasw"</string> <string name="quest_lanes_answer_lanes_center_left_turn_lane">"Ma pas dwukierunkowy do skrtu w lewo"</string> <string name="quest_address_answer_no_housenumber_message2b">"Czy jest to poprawne?"</string> <string name="quest_maxheight_below_bridge_title">"Jakie jest ograniczenie wysokoci pod mostem?"</string> <string name="quest_maxheight_split_way_hint">"Jeli nie dotyczy to tego caego odcinka, rozwa uycie \"%s\". "</string> <string name="quest_tactile_paving_kerb_title">"Czy w tym miejscu s oznaczenia dla niewidomych na krawniku?"</string> <string name="quest_kerb_height_title">"Jaka jest wysoko krawnika?"</string> <string name="quest_kerb_height_flush">"Ten sam poziom co nawierzchnia drogi"</string> <string name="quest_kerb_height_lowered">"Troch wyej ni nawierzchnia drogi"</string> <string name="quest_kerb_height_raised">"Wysoki krawnik"</string> <string name="quest_kerb_height_lowered_ramp">"Krawnik-podjazd"</string> <string name="quest_lanes_answer_lanes_description2">"Podaj cakowit liczb oznaczonych pasw (w obu kierunkach), ktre mog by wykorzystywane przez ruch samochodowy. Pasy dla rowerw i wydzielone pasy parkingowe si nie licz. Jeli jakie pasy s zarezerwowane dla autobusw, utwrz notatk."</string> <string name="quest_lanes_answer_lanes_description_one_side2">"Okrel liczb oznaczonych pasw, na ktrych mog porusza si samochody. Pasy dla rowerw i wydzielone pasy parkingowe si nie licz. Jeli jakie pasy s zarezerwowane dla autobusw, utwrz notatk."</string> <string name="quest_surface_value_rock">"Kamie"</string> <string name="quest_parkingType_street_side">"Miejsca parkingowe przylegajce do jezdni"</string> <string name="quest_parkingType_lane">"Parkowanie na jezdni"</string> <string name="quest_tracktype_grade2a">"Gruntowa, dobrze utwardzona"</string> <string name="quest_tracktype_grade3a">"Gruntowa utwardzona"</string> <string name="quest_generic_answer_does_not_exist">"Nie istnieje"</string> <string name="osm_element_gone_description">"Czy jeste pewien e to nie istnieje, nawet w odrobin innej lokalizacji? Jeli nie jeste pewien, lepiej zostawi notatk."</string> <string name="osm_element_gone_confirmation">"Nie istnieje"</string> <string name="leave_note">"Zostaw notatk"</string> <string name="quest_shop_gone_title">"Co teraz tutaj jest?"</string> <string name="quest_shop_gone_vacant_answer">"Stoi pusty"</string> <string name="quest_shop_gone_replaced_answer">"To"</string> <string name="quest_shop_gone_replaced_answer_hint">"Wpisz jaki rodzaj obiektu jest teraz tutaj"</string> <string name="quest_shop_vacant_type_title">"Ten sklep zosta zlikwidowany. Co tu teraz jest?"</string> <string name="quest_lanes_answer_lanes_odd2">"Liczba pasw nie jest ta sama po obu stronach"</string> <string name="default_disabled_msg_go_inside_regional_warning">"To zadanie jest domylnie nieaktywne, poniewa nie w kadym miejscu jest to przydatna informacja a odpowied jest czsto niemoliwa bez wejcia do danego miejsca."</string> <string name="quest_dietType_explanation_kosher">"Produkty koszerne s przygotowane wedug specjalnych zasad, z specjalnym proces certyfikacji potwierdzajcego ich zachowanie."</string> <string name="quest_cycleway_answer_no_bicycle_infrastructure">"Brak drogi rowerowej"</string> <string name="quest_cycleway_answer_no_bicycle_infrastructure_explanation">"Jak zazwyczaj, dotknij jednej z stron drogi, wybierz odpowiedni odpowied i zrb to samo z drug stron. Zwr uwag na wszystkie opcje: nie wszystkie przypadki s oczywiste, na przykad droga jednokierunkowa ktra dopuszcza jazd rowerem w obie strony."</string> <string name="quest_cycleway_answer_no_bicycle_infrastructure_title">"Zaznaczanie braku drogi dla rowerw"</string> <string name="quest_construction_completed_at_known_date">"Bdzie zakoczone dnia"</string> <string name="quest_construction_completion_date_title">"Kiedy bdzie oddane do uytku?"</string> <string name="quest_surface_value_clay">"Glina"</string> <string name="quest_surface_value_artificial_turf">"Sztuczna trawa"</string> <string name="quest_surface_value_tartan">"Tartan"</string> <string name="quest_bicycle_parking_fee_title">"Czy parkujc tutaj rower, musisz uici opat?"</string> <string name="quest_buildingType_house_description2">"inny dom jednorodzinny (niebdcy wolnostojcym)"</string> <string name="quest_drinking_water_potable_signed">"Zdatne do picia (oznaczone)"</string> <string name="quest_drinking_water_potable_unsigned">"Zdatne do picia (brak oznaczenia)"</string> <string name="quest_drinking_water_not_potable_signed">"Niezdatne do picia (oznaczone)"</string> <string name="quest_drinking_water_not_potable_unsigned">"Niezdatne do picia (brak oznaczenia)"</string> <string name="quest_postboxRoyalCypher_title">"Jaki monogram krlewski jest na tej skrzynce pocztowej?"</string> <string name="quest_postboxRoyalCypher_type_none">"Brak monogramu krlewskiego"</string> <string name="quest_postboxRoyalCypher_type_scottish_crown">"Korona Szkocji"</string> <string name="quest_buildingType_fire_station">"Stra poarna"</string> <string name="quest_recycling_type_beverage_cartons">"Tylko kartony po napojach"</string> <string name="quest_recycling_type_plastic_bottles_and_cartons">"Tylko plastikowe butelki i kartony"</string> <string name="team_mode">"Tryb druynowy"</string> <string name="team_mode_exit">"Wyjd z trybu druynowego"</string> <string name="team_mode_description">"W trybie druynowym moesz podzieli sizadaniami z grup osb i wsplnie pracowana jednym obszarze."</string> <string name="team_mode_team_size_hint">"Mona wybraod 2 do 12 osb."</string> <string name="team_mode_active">"Tryb zespoowy aktywny"</string> <string name="team_mode_deactivated">"Tryb zespoowy nieaktywny"</string> <string name="undo_confirm_title2">"Cofn nastpujc edycj?"</string> <string name="toast_undo_unavailable">"Ta edycja jest ju zsynchronizowana i nie mona jej wycofa"</string> <string name="quest_cycleway_value_separate">"Wywietlone osobno na mapie"</string> <string name="created_note_action_title">"Utworzono notatk"</string> <string name="commented_note_action_title">"Dodano komentarz do notatki"</string> <string name="hid_action_description">"Ukryto"</string> <string name="split_way_action_description">"Podzielono lini"</string> <string name="deleted_poi_action_description">"Usunito"</string> <string name="added_tag_action_title">"Dodano tag %s"</string> <string name="removed_tag_action_title">"Usunito %s"</string> <string name="changed_tag_action_title">"Zaktualizowano do %s"</string> <string name="pref_title_delete_cache">"Skasuj pami podrczn"</string> <string name="pref_title_delete_cache_summary">"Jeli uwaasz e dane s nieaktualne"</string> <string name="delete_confirmation">"Usu"</string> <string name="delete_cache_dialog_message">"Skasowa wszystkie pobrane informacje, w tym zadania? Dane s odwieane automatycznie po %1$s dniach a nieuyte kasowane automatycznie po %2$s."</string> <string name="pref_background_type_select">"Wybierz typ ta"</string> <string name="background_type_map">"Mapa"</string> <string name="background_type_aerial_esri">"Zdjcia lotnicze/satelitarne (Esri)"</string> <string name="quest_barrier_type_title">"Jaki rodzaj bariery jest w tym punkcie?"</string> <string name="quest_barrier_type_lift_gate">"Szlaban podnoszony"</string> <string name="quest_barrier_type_bollard">"Supek/supki"</string> <string name="quest_barrier_type_chain">"acuch"</string> <string name="quest_barrier_type_rope">"Lina"</string> <string name="quest_barrier_type_wire_gate">"Demontowalna cz drutw"</string> <string name="quest_barrier_type_cattle_grid">"Krata blokujca przechodzenie zwierzt gospodarskich"</string> <string name="quest_barrier_type_block">"Duy nieprzesuwalny obiekt"</string> <string name="quest_barrier_jersey_barrier">"Prefabrykowanych bloki"</string> <string name="quest_barrier_type_log">"Koda"</string> <string name="quest_barrier_type_kerb">"Krawnik"</string> <string name="quest_barrier_type_height_restrictor">"Ogranicznik wysokoci"</string> <string name="quest_barrier_full_height_turnstile">"Bramka obrotowa penej wysokoci"</string> <string name="quest_barrier_type_turnstile">"Bramka obrotowa"</string> <string name="quest_barrier_type_passage">"Przejcie przez mur/pot/"</string> <string name="quest_barrier_type_debris_pile">"Pryzma ziemna"</string> <string name="quest_barrier_type_stile_squeezer">"Przeaz - wska szpara"</string> <string name="quest_barrier_type_stile_ladder">"Przeaz - drabina"</string> <string name="quest_barrier_type_bicycle_barrier">"Blokowanie rowerw"</string> <string name="quest_barrier_type_kissing_gate">"Brama ze luz"</string> <string name="quest_barrier_type_swing_gate">"Szlaban rozchylany"</string> <string name="quest_policeType_title">"Jaki rodzaj posterunku policji si tu znajduje?"</string> <string name="quest_barrier_type_kissing_gate_conversion">"Przerobione na bramk ze luz"</string> <string name="quest_stile_type_title">"Jaki jest to rodzaj przeazu?"</string> <string name="quest_buildingType_semi_detached_description2">"Dom-bliniak / domy-bliniaki"</string> <string name="pref_title_quests2">"Wybr zada i priorytet ich wywietlania na mapie"</string> <string name="pref_subtitle_quests">"%1$d z %2$d jest wczonych"</string> <string name="no_location_permission_warning_title">"Dostp do pooenia"</string> <string name="quest_surface_value_woodchips">"Zrbki (cinki drewniane)"</string> <string name="no_camera_app">"Aplikacja do robienia zdj jest niedostpna"</string> <string name="quest_bollard_type_title">"Jaki rodzaj supka jest tutaj?"</string> <string name="quest_bollard_type_rising">"Podnoszcy si"</string> <string name="quest_bollard_type_flexible">"Elastyczny"</string> <string name="quest_bollard_type_fixed">"Stay"</string> <string name="quest_camera_type_title">"Jaki rodzaj kamery jest tutaj?"</string> <string name="quest_camera_type_dome">"Kopukowa"</string> <string name="quest_camera_type_fixed">"Staa"</string> <string name="quest_camera_type_panning">"Panoramowa"</string> <string name="about_title_faq">"FAQ"</string> <string name="quest_buildingLevels_title2">"Ile poziomw powyej piwnicy ma budynek?"</string> <string name="quest_buildingLevels_title_buildingPart2">"Ile poziomw powyej piwnicy ma ta cz budynku? "</string> <string name="pref_subtitle_quests_preset_name">"Zestaw: %s"</string> <string name="default_disabled_msg_roofShape">"Ten typ zadania jest domylnie wyczony, poniewa ksztaty dachu czsto nie s dobrze widoczne z ulicy. Ten typ zadania jest rwnie do czasochonny. W wikszoci przypadkw atwiej i wydajniej jest zmapowa to na podstawie zdj lotniczych w domu."</string> <string name="quest_religion_animist">"Animista"</string> <string name="quest_construction_steps_title">"Czy te schody s skoczone?"</string> <string name="pref_quests_deselect_all">"Odznaczy wszystkie zadania?"</string> <string name="quest_buildingType_boathouse">"Przysta"</string> <string name="quest_buildingType_allotment_house">"Budynek gospodarczy dziaki ogrodowej"</string> <string name="quest_buildingType_grandstand">"Trybuna gwna"</string> <string name="action_search">"Szukaj"</string> <string name="action_manage_presets">"Zarzdzaj zestawami"</string> <string name="team_mode_team_size_label2">"Ile osb mapuje? Wprowad ten sam numer na wszystkich telefonach."</string> <string name="team_mode_choose_color2">"Nastpnie kada osoba musi wybra inny kolor. Wybierz swj:"</string> <string name="link_organic_maps_description">"Aplikacje typu mapa dla podrnikw, turystw pieszych i rowerzystw, ktre dziaaj w trybie offline"</string> <string name="quest_kerb_height_no">"Brak krawnika"</string> <string name="quest_barrier_type_stepover_wooden">"Drewniany przeaz nad barier"</string> <string name="quest_barrier_type_stepover_stone">"Kamienny przeaz nad barier"</string> <string name="quest_bollard_type_removable">"Usuwalny (z kluczem lub bez)"</string> <string name="quest_bollard_type_foldable2">"Skadany (z kluczem lub bez)"</string> <string name="no_search_results">"Brak wynikw"</string> <string name="quest_selection_hint_title">"Zbyt duo do zrobienia?"</string> <string name="quest_selection_hint_message">"Wkad powinien by przede wszystkim zabaw! Jeli jeste przytoczony liczb zada, zawsze moesz wybra w ustawieniach ktre zadania s pokazane i w jakiej kolejnoci."</string> <string name="quest_presets_preset_add">"Dodaj zestaw"</string> <string name="quest_presets_preset_name">"Nazwa zestawu"</string> <string name="quest_presets_default_name">"Domylny"</string> <string name="quest_presets_selected">"Wybrany"</string> <string name="quest_presets_delete_message">"Usun zestaw %s? Wybr zada i ich kolejno zostan bezpowrotnie utracone."</string> <string name="notification_syncing">"Synchronizuj dane"</string> <string name="notification_channel_sync">"Zsynchronizuj dane"</string> <string name="quest_board_type_sport">"Sport, wiczenia"</string> <string name="quest_generic_hasFeature_optional">"Opcjonalnie"</string> <string name="quest_buildingType_bridge">"Most midzy budynkami (przeczka)"</string> <string name="quest_laundrySelfService_title2">"Czy w tej pralni obsuguje si pralki samodzielnie?"</string> <string name="quest_dietType_explanation_halal">"Produkty halal przygotowane s wedug specjalnych zasad z organizacjami ktre zajmuj si kontrol i nadzorem produktem oznaczonych jako zgodnymi z tymi zasadami."</string> <string name="quest_generic_answer_is_actually_steps">"To s schody"</string> <string name="quest_barrier_type_passage_conversion">"Zamienione w przejcie przez mur/pot/itp."</string> <string name="quest_barrier_type_gate_conversion">"Zamienione w bram"</string> <string name="quest_traffic_calming_type_title">"Jaki rodzaj uspokojenia ruchu si tu znajduje?"</string> <string name="quest_traffic_calming_type_bump">"Prg zwalniajcy (wski)"</string> <string name="quest_traffic_calming_type_hump">"Prg zwalniajcy (szeroki)"</string> <string name="quest_traffic_calming_type_table">"Podest (ma pask cz)"</string> <string name="quest_traffic_calming_type_cushion">"Poduszka (nie przeszkadza szerokim pojazdom)"</string> <string name="quest_traffic_calming_type_choker">"Zwona droga"</string> <string name="quest_traffic_calming_type_island">"Wysepka"</string> <string name="quest_traffic_calming_type_chicane">"Wymuszony slalom"</string> <string name="quest_traffic_calming_type_rumble_strip">"Dudnice paski/pasek"</string> <string name="quest_surface_value_concrete_plates">"Betonowe pyty"</string> <string name="quest_surface_value_concrete_lanes">"Betonowe pasy"</string> <string name="quest_fireHydrant_diameter_title">"Jaka rednica jest na znaku tego hydrantu?"</string> <string name="quest_diet_answer_no_food">"Nie ma jedzenia"</string> <string name="short_no_answer_on_button">"Nie"</string> <string name="restore_confirmation">"Przywr"</string> <string name="restore_dialog_message">"Pokaza ponownie wszystkie ukryte zadania?"</string> <string name="quest_parking_access_title2">"Kto moe tu parkowa? Parking moe by patny lub darmowy."</string> <string name="quest_access_yes">"Kady"</string> <string name="quest_access_customers">"Kady odwiedzajcy konkretne miejsce (np. tylko dla klientw)"</string> <string name="quest_access_private">"Tylko osoby z pozwoleniem"</string> <string name="quest_postboxCollectionTimes_resurvey_title">"Czy czasy odbioru tej skrzynki pocztowej s nadal poprawne?"</string> <string name="quest_bicycle_barrier_type_title">"Jaki to rodzaj barierki rowerowej?"</string> <string name="quest_barrier_bicycle_type_diagonal">"Ukonie do cieki"</string> <string name="quest_barrier_bicycle_type_tilted">"Wskie przejcie, wsze ku grze"</string> <string name="quest_barrier_bicycle_type_single">"Przejcie midzy dwoma barierami"</string> <string name="quest_barrier_bicycle_type_double">"Szykana - barierka z kadej strony"</string> <string name="quest_barrier_bicycle_type_multiple">"Szykana - wicej ni dwie barierki"</string> <string name="language_default">"Domylny urzdzenia"</string> <string name="on_floor">"na %s pitrze:"</string> <string name="select_street_parking_orientation">"Wybierz orientacj na jezdni:"</string> <string name="select_street_parking_position">"Wybierz pozycj:"</string> <string name="select_street_parking_no">"Czy jest tu jaki znak lub oznaczenie drogowe?"</string> <string name="street_parking_parallel">"Rwnolegle"</string> <string name="street_parking_diagonal">"Ukonie"</string> <string name="street_parking_perpendicular">"Prostopadle"</string> <string name="street_parking_on_street">"Na jezdni"</string> <string name="street_parking_half_on_kerb">"Czciowo na jezdni"</string> <string name="street_parking_on_kerb">"Przylega do jezdni"</string> <string name="street_parking_street_side">"Przylega do jezdni tylko w wyznaczonych miejscach"</string> <string name="street_parking_painted_area_only">"Na jezdni tylko w wyznaczonych miejscach"</string> <string name="street_parking_separate">"Parking pokazany osobno na mapie"</string> <string name="street_parking_no">"Nie ma tu parkingu / parkowanie nie jest dozwolone"</string> <string name="street_parking_prohibited">"Zakaz parkowania"</string> <string name="street_stopping_prohibited">"Zakaz zatrzymania"</string> <string name="street_standing_prohibited">"Kierowca musi zosta w samochodzie"</string> <string name="street_parking_conditional_restrictions">"Parkowanie / zatrzymywanie ograniczone warunkowo"</string> <string name="street_parking_no_other_reasons">"Brak wyranego znaku / brak moliwoci parkowania"</string> <string name="street_parking_conditional_restrictions_hint">"Jeli w ogle mona tu zaparkowa lub zatrzyma si, najpierw odpowiedz, jak ci, ktrym wolno, parkuj tutaj. Jakie dokadnie obowizuj ograniczenia, mona okreli pniej. Alternatywnie moesz zostawi notatk (ze zdjciem)."</string> <string name="quest_address_house_number_label">"Numer domu:"</string> <string name="quest_fireHydrant_position_title">"Gdzie znajduje si ten hydrant?"</string> <string name="quest_fireHydrant_position_green">"W trawie lub ziemi"</string> <string name="quest_fireHydrant_position_lane">"Na jezdni"</string> <string name="quest_fireHydrant_position_sidewalk">"Na chodniku"</string> <string name="quest_fireHydrant_position_parking_lot">"Na miejscu parkingowym"</string> <string name="quest_generic_hasFeature_yes_leave_note">"Tak (zostaw notatk)"</string> <string name="quest_smoothness_square_title">"Jaka jest jako nawierzchni tego placu?"</string> <string name="quest_smoothness_road_title">"Jaka jest jako nawierzchni drogi w tym miejscu?"</string> <string name="quest_smoothness_title_excellent">"Gadka i rwna"</string> <string name="quest_smoothness_title_good">"W wikszoci rwna"</string> <string name="quest_smoothness_title_intermediate">"Lekko wyboista"</string> <string name="quest_smoothness_title_bad">"Wyboista"</string> <string name="quest_smoothness_title_very_bad">"Bardzo wyboista"</string> <string name="quest_smoothness_title_horrible">"Bardzo wyboista i nierwna"</string> <string name="quest_smoothness_title_very_horrible">"Prawie nieprzejezdna"</string> <string name="quest_smoothness_title_impassable">"Nieprzejezdna"</string> <string name="quest_smoothness_description_excellent_paved">"Brak wybojw i szczelin"</string> <string name="quest_smoothness_description_excellent_paving_stones">"Prawie jednolite"</string> <string name="quest_smoothness_description_good_paved">"Mae pknicia, szczeliny, lady napraw lub lekko nierwna nawierzchnia"</string> <string name="quest_smoothness_description_good_paving_stones">"Pytkie lub wskie szczeliny"</string> <string name="quest_smoothness_description_good_sett">"Niezwykle paskie kamienie, regularnie uoone, bardzo pytkie lub wskie szczeliny"</string> <string name="quest_smoothness_description_intermediate_paved">"Niezwykle nierwna nawierzchnia, wiksze szczeliny, pknicia, pytkie koleiny, dziury lub inne uszkodzenia"</string> <string name="quest_smoothness_description_intermediate_paving_stones">"Szersze szczeliny, moliwe przemieszczone kamienie lub inne uszkodzenia"</string> <string name="quest_smoothness_description_intermediate_sett">"Paskie kamienie lub z kanciastymi rogami z pytkimi lub wskimi szczelinami."</string> <string name="quest_smoothness_description_intermediate_compacted_gravel">"Dobry wir, pytkie wyboje lub szczeliny"</string> <string name="quest_smoothness_description_bad_paved">"Due odstpy, dziury, koleiny, pokruszona nawierzchnia albo inne uszkodzenia"</string> <string name="quest_smoothness_description_bad_paving_stones">"Rozrzucone kamienie, due odstpy czy inne uszkodzenia"</string> <string name="quest_smoothness_description_bad_sett">"Zwietrzay kamie czy nierwne ksztaty, due odstpy czy uszkodzenia"</string> <string name="quest_smoothness_description_bad_compacted_gravel">"Wiksze wirki, wyboje, koleiny czy dziury"</string> <string name="quest_smoothness_description_very_bad_paved">"Gbokie dziury, koleiny czy inne niebezpieczne uszkodzenia"</string> <string name="quest_smoothness_description_very_bad_sett">"Due odstpy, porozrzucane, brakujce lub nieregularnie uksztatowanie kamienie czy niebezpieczne uszkodzenia"</string> <string name="quest_smoothness_description_very_bad_paving_stones">"Brakujce i zniszczone kamienie, odstpy czy inne niebezpieczne uszkodzenia"</string> <string name="quest_smoothness_description_very_bad_compacted_gravel">"Niektre due kamienie, gbokie dziury, wyboje, erozja czy inne niebezpieczne uszkodzenia"</string> <string name="quest_smoothness_description_horrible">"Poprawnie uytkowane tylko przez pojazdy terenowe lub na pieszo"</string> <string name="quest_smoothness_description_very_horrible">"Poprawnie uytkowane tylko przez specjalistyczne pojazdy terenowe lub na pieszo"</string> <string name="quest_smoothness_description_impassable">"Nie przejezdne przez aden pojazd, dostpne tylko na pieszo"</string> <string name="quest_smoothness_wrong_surface">"Nawierzchnia jest inna"</string> <string name="quest_smoothness_surface_value">"Nawierzchnia zostaa oznaczona jako:"</string> <string name="quest_smoothness_obstacle">"Jest tu przeszkoda"</string> <string name="quest_smoothness_obstacle_hint">"Prosz poda ogln odpowied dotyczc pynnoci. Pojedyncze przeszkody, takie jak krawniki, progi zwalniajce lub kraty dla byda, mona zignorowa. Powtarzajce si lub nieoczekiwane przeszkody powinny liczy si do odpowiedzi."</string> <string name="quest_smoothness_hint">", , , wskazuj, dla jakich pojazdw nawierzchnia powinna by zdatna do uytku. Liczy si raczej caociowy obraz, a nie pojedyncze uszkodzenia."</string> <string name="link_osmhydrant_description">"Wyszukuj, dodawaj i edytuj remizy straackie i hydranty straackie"</string> <string name="achievement_lifesaver_title">"Ratownik"</string> <string name="achievement_lifesaver_solved_X">"Udao ci si rozwiza %d zada, ktre pomog subom alarmowym i ratownikom!"</string> <string name="quest_fuelSelfService_title">"Czy moesz samodzielnie tankowa na tej stacji benzynowej?"</string> <string name="default_disabled_msg_difficult_and_time_consuming">"Ten typ zadania jest domylnie wyczony, poniewa jest do czasochonny i czsto trudno dokona waciwego wyboru. Powiniene wczy ten typ zadania tylko wtedy, gdy naprawd zaley Ci na dodaniu tego typu danych."</string> <string name="quest_smoothness_description_good_compacted_gravel">"Ubita, bardzo mao lunego wiru lub piasku"</string> <string name="quest_barrier_path_intersection">"W jaki sposb ta cieka przekracza barier tutaj?"</string> <string name="quest_barrier_road_intersection">"W jaki sposb droga przekracza barier tutaj?"</string> <string name="quest_sidewalk_value_separate">"pokazane osobno na mapie"</string> <string name="no_camera_permission_warning_title">"Dostp do aparatu"</string> <string name="no_camera_permission_warning">"To uprawnienie jest niezbdne do mierzenia odlegoci aparatem."</string> <string name="ar_core_error_sdk_too_old">"Aplikacja jest nieaktualna. Sprbuj j zaktualizowa."</string> <string name="ar_core_tracking_error_bad_state">"Co poszo nie tak. Sprbuj ponowi pomiar."</string> <string name="ar_core_tracking_error_insufficient_light">"Jest tu za ciemno"</string> <string name="ar_core_tracking_error_excessive_motion">"Zbyt szybkie ruchy"</string> <string name="ar_core_tracking_error_insufficient_features">"To jest zbyt jednolite"</string> <string name="ar_core_tracking_error_camera_unavailable">"Inny program uywa teraz aparatu"</string> <string name="quest_bicycle_parking_type_handlebarholder">"Uchwyt na kierownic"</string> <string name="quest_bicycle_parking_access_title2">"Kto moe zaparkowa tu rower? Parkowanie moe byodpatne."</string> <string name="quest_playground_access_title2">"Kto moe uywatego placu zabaw?"</string> <string name="quest_sidewalk_answer_none_title">"Zaznacz, e brakuje chodnikw"</string> <string name="quest_side_select_interface_explanation">"Dotknij kadej strony i wybierz sytuacj dla tej strony. Zrb to samo dla drugiej strony, jeli jest obecna."</string> <string name="ar_measure">"Zmierz"</string> <string name="ar_core_tracking_error_too_steep_angle">"Zbyt ostry kt, odsu sinieco"</string> <string name="default_disabled_msg_no_ar">"To urzdzenie nie wspiera pomiaru przy uyciu aparatu. Musisz wykorzysta metrwk."</string> <string name="quest_cycleway_width_title">"Jaka jest szerokotej cieki rowerowej?"</string> <string name="quest_road_width_title">"Jaka jest szeroko tej drogi?"</string> <string name="quest_road_width_explanation">"Szeroko jezdni midzy krawdziami np. krawnikami, liczona wcznie z pasami do parkowania i rowerowymi, za to bez oddzielonych cieek rowerowych, zatoczek parkingowych i chodnikw."</string> <string name="quest_sidewalk_answer_none">"Nie ma chodnika"</string> <string name="link_osmand_description">"Mobilna aplikacja do przegldania map i navigacji online albo offline"</string> <string name="link_sunders_description">"Mapa kamer i sprztu inwigilacyjnego"</string> <string name="ar_core_tracking_error_no_plane_hit">"Trzymaj si bliej strzaki, ale uwaaj na pojazdy!"</string> <string name="quest_sidewalk_surface_title">"Jaka jest tutaj nawierzchnia chodnika ?"</string> <string name="quest_tactilePaving_incorrect">"Po jednej stronie"</string> <string name="quest_fee_answer_yes_but">"Tak, "</string> <string name="quest_fee_answer_no_but_maxstay">"Nie, ale jest maksymalny czas"</string> <string name="unit_days">"dni"</string> <string name="unit_hours">"godziny"</string> <string name="unit_minutes">"minuty"</string> <string name="at_any_time">"w dowolnym momencie"</string> <string name="only_at_hours">"tylko w godzinach:"</string> <string name="except_at_hours">"oprcz w tych godzinach:"</string> <string name="quest_bollard_type_not_bollard">"Nie jest supkiem, ale to jest inny rodzaj barriery"</string> <string name="quest_barrier_bicycle_type_not_cycle_barrier">"Nie jest to bariera rowerowa, ale jest to inny rodzaj bariery"</string> <string name="quest_smoking_no">"Nie, zabronione"</string> <string name="quest_smoking_outside">"Tylko na zewntrz"</string> <string name="quest_smoking_separated">"Tylko w oddzielnych miejscach"</string> <string name="quest_smoking_yes">"Tak, wszdzie"</string> <string name="quest_seating_name_title">"Jaki rodzaj siedzenia ma to miejsce?"</string> <string name="quest_seating_takeaway">"Na wynos tylko"</string> <string name="quest_seating_indoor_only">"Tylko siedzenia wewntrz"</string> <string name="quest_seating_outdoor_only">"Tylko zewntrz siedzenia"</string> <string name="quest_seating_indoor_and_outdoor">"Siedzenia zarwno wewntrz, jak i na zewntrz"</string> <string name="no_camera_permission_toast">"Brak pozwolenia na dostp do aparatu"</string> <string name="quest_accepts_cash_title2">"Czy w tym miejscu jest akceptowana patno gotwkowa?"</string> <string name="quest_address_street_title2">"Na ktrej ulicy jest to?"</string> <string name="quest_airConditioning_title">"Czy to miejsce jest klimatyzowane?"</string> <string name="quest_baby_changing_table_title2">"Czy jest tutaj dostpny przewijak dla niemowlt?"</string> <string name="quest_busStopBench_title2">"Czy jest awka na tym przystanku?"</string> <string name="quest_busStopBin_title2">"Czy jest na tym przystanku mietnik?"</string> <string name="quest_busStopLit_title2">"Czy jest ten przystanek owietlony?"</string> <string name="quest_busStopName_title2">"Jaka jest nazwa tego przystanku?"</string> <string name="quest_busStopRef_title2">"Jaki jest numer referencyjny tego przystanku?"</string> <string name="quest_busStopShelter_title2">"Czy ten przystanek ma schronienie?"</string> <string name="quest_busStopTactilePaving_title">"Czy ten przystanek ma wypustki dla niewidomych?"</string> <string name="quest_dietType_halal_name_title2">"Czy s tutaj oferowane produkty halal?"</string> <string name="quest_dietType_kosher_name_title2">"Czy s tutaj oferowane produkty koszerne?"</string> <string name="quest_dietType_vegan_title2">"Czy s tutaj veganskie produkty na menu?"</string> <string name="quest_dietType_vegetarian_title2">"S tutaj w menu jakie wegetariaskie dania?"</string> <string name="quest_drinking_water_title2">"Czy jest tu woda zdatna do pitna?"</string> <string name="quest_existence_title2">"Czy to miejsce wci istnieje?"</string> <string name="quest_generalFee_title2">"Czy trzeba tutaj zapaci aby wej?"</string> <string name="quest_internet_access_title">"Jaki rodzaj poczenia internetowego oferuje to miejsce?"</string> <string name="quest_level_title2">"Na ktrym poziomie jest to miejce pomieszczone?"</string> <string name="quest_lit_title">"Czy to miejsce jest owietlone?"</string> <string name="quest_openingHours_title">"Jakie s tutaj godziny otwarcia?"</string> <string name="quest_openingHours_signed_title">"Czy jest tutaj informacja o godzinach otwarcia?"</string> <string name="quest_openingHours_resurvey_title">"Czy te godziny otwarcia s dalej poprawne?"</string> <string name="quest_placeName_title">"Jaka jest nazwa tego miejsca?"</string> <string name="quest_shop_type_title2">"Jaki jest to rodzaj sklepu?"</string> <string name="quest_smoking_title2">"Czy palenie jest tutaj dozwolone?"</string> <string name="quest_smoothness_title">"Jaka jest tutaj jako nawierzchni?"</string> <string name="quest_summit_register_title2">"Czy tutaj na szczycie jest rejestr/dziennik/pamitnik?"</string> <string name="quest_surface_title">"Jaka jest tutaj nawierzchnia?"</string> <string name="quest_toiletAvailability_title">"Czy jest tutaj jaka toaleta?"</string> <string name="quest_wheelchairAccess_toiletsPart_title2">"Czy toaleta w tym miejscu jest dostpna dla inwalidw?"</string> <string name="quest_cycleway_confirmation_oneway_for_cyclists_too">"Czy na pewno rowerzyci nie mog korzysta z tej drogi jednokierunkowej w obu kierunkach? W razie wtpliwoci sprawd znak na kocu ulicy."</string> <string name="link_valhalla_description">"Silnik routingu o bardzo maej iloci pamici, routing multimodalny, izochrony i nie tylko."</string> <string name="link_backofyourhand_description">"Jak dobrze znasz swoj okolic? Sprawd swoj wiedz, lokalizujc ulice."</string> <string name="link_notesreview_description">"Wygodnie przegldaj, filtruj i komentuj notatki stworzone przez Ciebie i innych. Wiele notatek mona rozwiza umieszczajc informacje w nich zawarte na mapie za pomoc iD lub JOSM"</string> <string name="quest_accepts_cards">"Czy akceptowane s tutaj karty kredytowe lub debetowe?"</string> <string name="quest_accepts_cards_debit_and_credit">"Obie"</string> <string name="quest_accepts_cards_credit_only">"Tylko karty kredytowe"</string> <string name="quest_accepts_cards_dedit_only">"Tylko karty debetowe"</string> <string name="quest_accepts_cards_unavailable">"Ani karty debetowe, ani kredytowe"</string> <string name="quest_barrier_type_gate_any_size">"Brama, dowolny rozmiar"</string> <string name="quest_air_pump_compressor_title">"Czy jest tutaj dostpny kompresor?"</string> <string name="quest_step_count_stile_hint">"Tylko liczba krokw, aby dotrze na szczyt. Jeli liczba krokw rni si z kadej strony, podaj wysz liczb."</string> <string name="quest_cycleway_value_none_and_oneway">"brak, zakaz jazdy na rowerze w tym kierunku"</string> <string name="map_btn_create_track">"Stwrz nowe nagranie"</string> <string name="map_btn_stop_track">"Przesta nagrywa"</string> <string name="quest_bicycle_rental_capacity_title">"Ile jest tu rowerw do wypoyczenia?"</string> <string name="quest_bicycle_rental_type_title">"Co to za wypoyczalnia rowerw?"</string> <string name="quest_bicycle_rental_type_docking_station">"Stacja do blokowania rowerw"</string> <string name="quest_bicycle_rental_type_dropoff_point">"Wyznaczone miejsce (rowery blokowane pojedynczo)"</string> <string name="quest_bicycle_rental_type_human">"Wypoyczalnia rowerw z obsug"</string> <string name="quest_bicycle_rental_type_shop_with_rental">"Sklep rowerowy, ktry rwnie je wypoycza"</string> <string name="quest_bicycle_shop_repair_title">"Czy mona tu naprawi rower?"</string> <string name="quest_bicycle_shop_second_hand_title">"Czy s tu sprzedawane rowery uywane?"</string> <string name="quest_bicycle_shop_second_hand_only_new">"Nie, tylko nowe"</string> <string name="quest_bicycle_shop_second_hand_new_and_used">"Tak, oprcz nowych"</string> <string name="quest_bicycle_shop_second_hand_only_used">"Tak, tylko uywane"</string> <string name="quest_bicycle_shop_second_hand_no_bicycles">"W ogle nie sprzedaje si tu rowerw"</string> <string name="quest_building_entrance_title">"Co to za wejcie do budynku?"</string> <string name="quest_building_entrance_main">"Gwne wejcie"</string> <string name="quest_building_entrance_staircase">"Wejcie na klatk schodow (np. w bloku)"</string> <string name="quest_building_entrance_service">"Wejcie dla personelu"</string> <string name="quest_building_entrance_exit">"Wycznie wyjcie"</string> <string name="quest_building_entrance_emergency_exit">"Wyjcie ewakuacyjne"</string> <string name="quest_building_entrance_shop">"Wejcie do sklepu"</string> <string name="quest_building_entrance_yes">"Inny rodzaj wejcia"</string> <string name="quest_building_entrance_dead_end">"lepa cieka, brak wejcia"</string> <string name="ar_core_tracking_hint_tap_to_measure">"Dotknij ekranu, aby rozpocz pomiar"</string> <string name="quest_air_pump_bicycle_shop_title">"Czy jest tu publiczna pompka rowerowa?"</string> <string name="quest_air_pump_bicycle_repair_station_title">"Czy jest tu dziaajca pompka rowerowa?"</string> <string name="action_overlays">"Nakadki"</string> <string name="split_way">"Podziel lini"</string> <string name="quest_memorialType_title">"Co to za pomnik?"</string> <string name="quest_memorialType_statue">"Statua"</string> <string name="quest_memorialType_bust">"Popiersie"</string> <string name="quest_memorialType_plaque">"Plakieta"</string> <string name="quest_memorialType_war_memorial">"Pomnik wojenny"</string> <string name="quest_memorialType_stone">"Kamie"</string> <string name="quest_memorialType_obelisk">"Obelisk"</string> <string name="quest_memorialType_stele_wooden">"Stela drewniana (pyta pamitkowa)"</string> <string name="quest_memorialType_stele_stone">"Stela kamienna (pyta pamitkowa)"</string> <string name="quest_memorialType_sculpture">"Inna rzeba"</string> <string name="overlay_none">"adna"</string> <string name="overlay_lit">"Owietlenie"</string> <string name="lit_value_yes">"Owietlony"</string> <string name="lit_value_no">"Niewietlony"</string> <string name="lit_value_24_7">"Owietlony w dzie i w nocy"</string> <string name="lit_value_automatic">"Owietlony po wykryciu ruchu"</string> <string name="overlay_sidewalk">"Chodniki"</string> <string name="quest_generic_answer_is_indoors">"To jest wewntrz"</string> <string name="quest_summit_cross_title">"Czy na szczycie jest krzy?"</string> <string name="quest_entrance_reference">"Co jest napisane przy tym wejciu?"</string> <string name="quest_entrance_reference_select_flat_range_and_code">"Kod klatki schodowej i numery mieszka"</string> <string name="quest_entrance_reference_select_flat_range_only">"Numery mieszka"</string> <string name="quest_entrance_reference_select_code_only">"Kod klatki schodowej"</string> <string name="quest_entrance_reference_nothing_signed">"Brak kodu z numerem klatki schodowej czy numerami mieszka"</string> <string name="quest_entrance_reference_reference_label">"Kod klatki schodowej:"</string> <string name="quest_entrance_reference_flat_range_label">"Numery mieszka:"</string> <string name="quest_entrance_reference_flat_range_to">"do"</string> <string name="default_disabled_msg_overlay">"Ten typ jest domylnie wyczony, poniewa istnieje ju nakadka, dziki ktrej wprowadzanie i aktualizowanie tych danych jest bardziej efektywne."</string> <string name="quest_camp_drinking_water_title">"Czy woda pitna jest tu dostpna za darmo dla obozowiczw?"</string> <string name="quest_camp_shower_title">"Czy s tutaj prysznice?"</string> <string name="quest_camp_power_supply_title">"Czy obozowicze mog tu naadowa telefon, laptop itp.?"</string> <string name="quest_camp_type_title">"Kto moe tu obozowa?"</string> <string name="quest_camp_type_tents_and_caravans">"Zarwno namioty, jak i kampery, przyczepy podrne, "</string> <string name="quest_camp_type_caravans_only">"Tylko kampery, przyczepy podrne, ..."</string> <string name="quest_camp_type_tents_only">"Tylko namioty"</string> <string name="quest_camp_type_backcountry">"Kemping bez udogodnie"</string> <string name=your_sha256_hash2">"Ta rednica wyglda nieprawdopodobnie, zwykle wynosi od %1$d do %2$d."</string> <string name="quest_surface_tractypeMismatchInput_confirmation_description">"Ta odpowied nie pasuje do tego, jak droga zostaa zmapowana. Czy na pewno odpowiadasz na temat waciwej drogi? Czy jeste pewien, e osobicie sprawdzie na caej dugoci?"</string> <string name="quest_recycling_type_pet">"Tylko PET"</string> <string name="street_parking_street_width">"Szeroko ulicy: %s"</string> <string name="overlay_street_parking">"Parkowanie na ulicy"</string> <string name="link_ohsomehex_description">"Przegldaj dane OSM w rnych skalach, od duego obrazu po pojedyncze obiekty w przestrzeni i czasie"</string> <string name="link_opencampingmap_description">"Mapa kempingw i pl namiotowych"</string> <string name="quest_atm_cashin_title">"Czy moesz wpaci gotwk w tym bankomacie?"</string> <string name="create_node_action_description">"Utworzono wze z "</string> <string name="quest_accessPointRef_answer_assembly_point">"To miejsce zbirki"</string> <string name="quest_accessPointRef_detailed_answer_impossible_confirmation">"Miejsce zbirki do ewakuacji - tam ludzie gromadz si w nagych wypadkach. Zwykle wyglda to tak:"</string> <string name="quest_address_answer_house_name2">"Adres zawiera nazwbudynku"</string> <string name="quest_address_street_street_name_label">"Nazwa ulicy:"</string> <string name="quest_address_street_hint2">"Dotknij ulicy na mapie, aby j wybra"</string> <string name="quest_bicycle_incline_title">"W ktrstronwznosi sicieka?"</string> <string name="quest_bicycle_incline_up_and_down">"Wznosi sii opada"</string> <string name="quest_drinking_water_type_generic_water_fountain">"Inne poideko"</string> <string name="quest_drinking_water_type_jet_water_fountain">"Fontanna emitujca may strumie wody"</string> <string name="quest_drinking_water_type_bottle_refill_only_fountain">"Tylko do napeniania butelek"</string> <string name="quest_drinking_water_type_tap">"Kranik"</string> <string name="quest_drinking_water_type_hand_pump">"Pompa (rczna)"</string> <string name="quest_drinking_water_type_water_well_no_pump">"Studnia bez pompy"</string> <string name="quest_drinking_water_type_spring">"rdo"</string> <string name="quest_drinking_water_type_disused">"Nieuywany obiekt wody pitnej"</string> <string name="overlay_addresses">"Adresy"</string> <string name="name_label">"Nazwa:"</string> <string name="unknown_shop_title">"Inny rodzaj miejsca"</string> <string name="quest_address_answer_no_address">"Brak adresu"</string> <string name="quest_bicycle_barrier_installation_title">"Czy t barier rowerow mona otworzy (z kluczem/bez)?"</string> <string name="quest_barrier_bicycle_installation_fixed">"Staa"</string> <string name="quest_barrier_bicycle_installation_openable">"Otwieralna"</string> <string name="quest_barrier_bicycle_installation_removable">"Usuwalna"</string> <string name="quest_buildingType_guardhouse">"Wartownia / Budka parkingowa / Portiernia"</string> <string name="quest_genericRef_title">"Jaki jest tutaj numer identyfikacyjny?"</string> <string name="quest_sidewalk_answer_different">"Sytuacja na chodniku jest inna"</string> <string name="about_title_get_involved">"Zaangauj si"</string> <string name="quest_presets_rename">"Zmie nazw"</string> <string name="quest_presets_share">"Udostpnij"</string> <string name="quest_presets_delete">"Usu"</string> <string name="urlconfig_qr_code_description">"Pozwl innym zeskanowa ten kod QR, aby udostpni Twoje ustawienie."</string> <string name="urlconfig_as_url">"Lub jako URL:"</string> <string name="urlconfig_url_copied">"URL skopiowany do schowka"</string> <string name="urlconfig_apply_title">"Zastosuj"</string> <string name="urlconfig_apply_message">"Zastosowa i wybra ustawienie %1$s?"</string> <string name="urlconfig_apply_message_overwrite">"Uwaga: Twoje ustawienia o tej samej nazwie zostanie nadpisany!"</string> <string name="urlconfig_switch_hint">"Moesz zmieni ustawienia w dowolnym momencie."</string> <string name="quest_bicycle_parking_type_two_tier">"Dwupoziomowy stojak na rowery"</string> <string name="user_profile_current_week_title">"Ostatnie 7 dni"</string> <string name="user_profile_dates_mapped">"Niedawne dni mapowania"</string> <string name="quest_cycleway_value_advisory_lane">"segerowana cieka rowerowa"</string> <string name="urlconfig_scan_qr_code_again2">"Po zainstalowaniu aplikacji, zeskanuj kod QR ponownie albo kliknij &lt;a href=\"%s\"&gt;ten link&lt;/a&gt; aby zastosowa zmiany."</string> <string name="confirmation_replace_shop_title">"Czy jest to nadal ten sam obiekt?"</string> <string name="confirmation_replace_shop_message">"W takim razie musiay zmienisitegodziny otwarcia, dane do kontaktu itp."</string> <string name="confirmation_replace_shop_yes">"Teraz jest tu co innego"</string> <string name="confirmation_replace_shop_no">"Nadal to samo miejsce"</string> <string name="move_node">"Jest w nieco innym miejscu..."</string> <string name="quest_move_node_message">"Pozycj mona poprawi, przesuwajc obiekt. Przesun go teraz?"</string> <string name="node_moved_not_far_enough">"Prosz przenie to dalej"</string> <string name="node_moved_too_far">"Przeniesione za daleko. Rozwa pozostawienie uwagi"</string> <string name="node_moved">"Przeniesione przez %s"</string> <string name="move_node_description">"Przecignij map, aby umieci obiekt we waciwym miejscu. Uyj funkcji powikszania i staraj si by jak najbardziej precyzyjny. Naley pamita, e wywietlana przez Ciebie lokalizacja moe by mniej dokadna ni wywietlana."</string> <string name="move_node_action_description">"Przeniose wze"</string> <string name="quest_cycleway_value_shoulder">"brak, ale pobocze jest uyteczne dla rowerzystw"</string> <string name="quest_placeName_no_name_answer">"Nie ma oznaczenia nazwy"</string> <string name="quest_road_width_unusualInput_confirmation_description">"Ta szeroko wyglda nieprawdopodobnie. Pamitaj, e powinna to by szeroko od krawnika do krawnika, wliczajc w to parking na ulicy, cieki rowerowe itp."</string> <string name="overlay_cycleway">"cieki rowerowe"</string> <string name="bicycle_boulevard_is_a">"Jest to %1$s"</string> <string name="bicycle_boulevard_is_not_a">"To nie jest %1$s"</string> <string name="bicycle_boulevard">"Bulwar rowerowy"</string> <string name="separate_cycleway_no_or_allowed">"Nieprzeznaczony dla rowerzystw (jazda na rowerze moe by nadal dozwolona)"</string> <string name="separate_cycleway_non_segregated">"cieka do wsplnego uytku"</string> <string name="separate_cycleway_segregated">"Rozdzielona cieka dla rowerw i pieszych"</string> <string name="separate_cycleway_exclusive">"cieka tylko dla rowerw"</string> <string name="separate_cycleway_with_sidewalk">"cieka tylko dla rowerw z przylegajcym chodnikiem (oddzielone krawnikiem)"</string> <string name="cycleway_reverse_direction">"Odwr kierunek cieki rowerowej"</string> <string name="cycleway_reverse_direction_warning">"Bardzo rzadko zdarza si, e cieka rowerowa biegnie w drug stron."</string> <string name="cycleway_reverse_direction_toast">"Wybierz stron, ktr chcesz odwrci"</string> <string name="separate_cycleway_path">"cieka lub szlak"</string> <string name="quest_fireHydrant_type_pipe">"Rura"</string> <string name="measure_info_title">"Uzyskiwanie optymalnej precyzji"</string> <string name="measure_info_html_description">"&lt;p&gt;ARCore niekiedy (na pocztku) uznaje, e ziemia znajduje si troch niej lub wyej ni w rzeczywistoci. Prowadzi to do bdu pomiaru, ktry staje si tym wikszy, im bardziej pochylasz telefon w stron horyzontu.&lt;/p&gt; &lt;p&gt;Aby zapobiec problemowi przy pomiarze poziomym, ustawiaj kady punkt pocztkowy i kocowy, kierujc telefon prosto w d (tak, aby widzie bia strzak od gry).&lt;/p&gt; &lt;p&gt;W przypadku pomiarw pionowych, naley zamiast tego sprawdzi, czy punkt pocztkowy nie przesuwa si wzgldem ziemi, patrzc na niego z rnych kierunkw.&lt;/p&gt;"</string> <string name="privacy_html_arcore">"Ta aplikacja wykorzystuje usug &lt;a href=\"path_to_url"&gt;Google Play Services for AR&lt;/a&gt; (ARCore), dostarczan przez firm Google, ktra objta jest &lt;a href=\"path_to_url"&gt;Polityk Prywatnoci Google&lt;/a&gt;."</string> <string name="default_disabled_msg_seasonal">"Ten typ zadania jest domylnie wyczony, poniewa moe wymaga ponownego sprawdzenia sytuacji w okrelonej czci roku."</string> <string name="quest_gritBinSeasonal_title">"Czy jest to rwnie tutaj poza zim?"</string> <string name="street_parking_staggered_on_street">"Na ulicy po naprzemiennych stronach"</string> <string name="street_parking_staggered_half_on_kerb">"Czciowo na ulicy po naprzemiennych stronach"</string> <string name="quest_traffic_signals_sound_description">"Wskazwka: uwaaj na goniki. Nie wszystkie sygnay dwikowe mona aktywowa przyciskiem."</string> <string name="quest_presets_duplicate">"Duplikuj"</string> <string name="label_block">"Blok"</string> <string name="quest_address_answer_block">"Jest w bloku budowlanym"</string> <string name="quest_address_answer_no_block">"Nie jest w bloku budowlanym"</string> <string name="quest_surface_value_mud">"Cige boto"</string> <string name="quest_wheelchairAccessPat_noToilet">"Tutaj nie ma toalety"</string> <string name="unknown_surface_title">"Inna nawierzchnia"</string> <string name="overlay_surface">"Nawierzchnie"</string> <string name="overlay_path_surface_segregated">"Podziel na cz rowerow i piesz"</string> <string name="quest_crossing_title2">"Czy jest tutaj przejcie?"</string> <string name="quest_crossing_yes">"Tak (np. krawnik jest tu obniony lub oznaczony)"</string> <string name="quest_crossing_no">"Nie, ale przechodzenie jest moliwe"</string> <string name="quest_crossing_prohibited">"Nie, przechodzenie jest zakazane lub niemoliwe"</string> <string name="quest_hairdresser_title">"Ktrzy klienci mog skorzysta z usug?"</string> <string name="quest_hairdresser_male_and_female">"Kady"</string> <string name="quest_hairdresser_female_only">"Kobiety"</string> <string name="quest_hairdresser_male_only">"Mczyni"</string> <string name="quest_hairdresser_not_signed">"Nie oznaczono"</string> <string name="quest_amenityCover_title">"Czy to jest kryte (chronione przed deszczem)?"</string> <string name="lane_narrowing_traffic_calming_choker">"Zwenie jezdni"</string> <string name="lane_narrowing_traffic_calming_island">"Wysepka drogowa"</string> <string name="lane_narrowing_traffic_calming_chicane">"Szykana"</string> <string name="lane_narrowing_traffic_calming_choked_island">"Zwenie jezdni + wysepka drogowa"</string> <string name="lane_narrowing_traffic_calming_none">"Brak zwenia"</string> <string name="quest_tactilePaving_title_steps">"Czy gra i d tych schodw maj wypustki dotykowe dla niewidomych?"</string> <string name="quest_tactilePaving_steps_top">"Tylko u gry"</string> <string name="quest_tactilePaving_steps_bottom">"Tylko na dole"</string> <string name="overlay_addresses_no_entrance">"To nie jest wejcie..."</string> <string name="quest_cycleway_value_sidewalk2">"Droga wspdzielona"</string> <string name="quest_cycleway_value_sidewalk_dual2">"Droga wspdzielona, oba kierunki"</string> <string name="overlays_tutorial_title">"Nakadki"</string> <string name="overlays_tutorial_intro">"Znalaze nowy sposb edycji danych!"</string> <string name="overlays_tutorial_display">"Kada nakadka wywietla jeden rodzaj danych, na przykad sklepy lub nawierzchni ulic. Dane s wyrnione rnymi kolorami, aby zapewni dobry podgld tego, co zostao oznaczone do tej pory. Brakujce dane s zawsze wywietlane na czerwono."</string> <string name="overlays_tutorial_edit">"Dotknij na wyrnionych danych by zobaczy dane i edytowa je. Moesz te dzieli linie i zgasza uwagi, podobnie jak z zadaniami. Dodatkowo, niektre nakadki pozwalaj na dodanie nowych danych na zaznaczonym punkcie, na przykad warstwa sklepw."</string> <string name="quest_crossing_kerb_height_title">"Jaka jest wysoko krawnikw na tym przejciu?"</string> <string name="quest_maxheight_sign_title">"Jakie jest ograniczenie wysokoci tutaj?"</string> <string name="quest_maxheight_sign_below_bridge_title">"Jakie jest ograniczenie wysokoci pod mostem?"</string> <string name="quest_leave_new_note_as_answer">"W takim przypadku musisz zostawi notatk, w ktrej wyjanisz sytuacj."</string> <string name="quest_drinking_water_type_title2">"Czy woda pitna jest tu dostpna? Jeli tak jakie jest jej rdo?"</string> <string name="quest_is_amenity_inside_title">"Czy jest to w rodku budynku?"</string> <string name="quest_bbq_fuel_title">"Czym jest zasilany ten grill?"</string> <string name="quest_bbq_fuel_wood">"Drewno"</string> <string name="quest_bbq_fuel_electric">"Elektryczny"</string> <string name="quest_bbq_fuel_charcoal">"Wgiel drzewny"</string> <string name="inside">"W rodku"</string> <string name="outside">"Na zewntrz"</string> <string name="quest_recycling_type_food_waste">"Odpady spoywcze"</string> <string name="quest_defibrillator_location">"Gdzie znajduje si ten defibrylator?"</string> <string name="quest_defibrillator_location_description">"Prosimy o zwizy opis jego pooenia (np. \"w poczekalni portierskiej\")."</string> <string name="quest_sanitary_dump_station_title">"Czy istnieje stacja zrzutu odpadw sanitarnych?"</string> <string name="quest_sanitary_dump_station_description">"Obiekt sucy do usuwania ludzkich nieczystoci ze zbiornika toaletowego kampera, ciarwki dalekobienej itp. Zazwyczaj oznaczone takim znakiem:"</string> <string name="quest_generalFee_title">"Czy musisz zapaci aby tego uywa?"</string> <string name="quest_bbq_fuel_not_a_bbq">"To jest obudowa przeciwpoarowa"</string> <string name="quest_bbq_fuel_not_a_bbq_confirmation">"Obudowy przeciwpoarowe nie maj powierzchni do gotowania (np. rusztu/pyty), w przeciwiestwie do grilli."</string> <string name="about_title_logs">"Logi (%1$d)"</string> <string name="about_summary_logs">"do uycia w raportach o bdach"</string> <string name="action_filter">"Filtruj"</string> <string name="action_share">"Udostpnij logi"</string> <string name="about_title_show_logs">"Poka logi"</string> <string name="label_log_level">"Poziom logowania"</string> <string name="label_log_newer_than">"Od"</string> <string name="label_log_older_than">"Do"</string> <string name="label_log_message_contains">"Wiadomo zawiera"</string> <string name="title_logs_filters">"Filtruj wiadomoci"</string> <string name="pref_title_quests_restore_hidden_summary">"Liczba ukrytych zada: %d"</string> <string name="link_every_door_description">"Potny edytor POI dla systemw Android i iOS"</string> <string name="link_mapcomplete_description">"Kolekcja tematycznych map OSM, z ktrych kada pokazuje i pozwala edytowa jeden rodzaj funkcji"</string> <string name="link_forum_description">"Potrzebujesz pomocy? Chcesz przeczyta, co si dzieje? Przyjd i spotkaj si, ttni yciem spoecznoci z caego wiata!"</string> <string name="link_calendar_description">"Czy w Twojej okolicy odbywaj si wydarzenia lub spotkania spoecznoci OpenStreetMap? (Jeli nie, moesz doda wasne!)"</string> <string name="link_prettymapp_description">"Tworzenie adnych, wielokolorowych plakatw z mapami dzielnic"</string> <string name="quest_disable_action">"Wycz"</string> <string name="quest_disable_title">"Wyczy ten typ zadania?"</string> <string name="quest_disable_message_not_installed">"StreetMeasure nie jest (jeszcze) zainstalowany."</string> <string name="quest_disable_message_not_working">"StreetMeasure nie zwrci pomiaru."</string> <string name="quest_disable_message_tape_measure">"Zamiast tego mona uy tamy mierniczej, ale moe to by troch niewygodne."</string> <string name="quest_buildingType_outbuilding">"Budynek gospodarczy"</string> <string name="quest_buildingType_outbuilding_description">"mniej wany budynek na nieruchomoci"</string> <string name="quest_buildingType_other_description">"okrelony budynek, ktrego nie mona wybra w tej aplikacji"</string> <string name="quest_buildingType_container">"Kontener"</string> <string name="quest_buildingType_tent">"Namiot"</string> <string name="quest_buildingType_tomb">"Grb"</string> <string name="quest_buildingType_tower">"Wiea"</string> <string name="quest_buildingType_tower_description">"dowolny rodzaj wiey"</string> <string name="quest_buildingType_under_construction">"W trakcie budowy"</string> <string name="overlay_buildings">"Budynki"</string> <string name="quest_pedestrian_crossing_markings">"Czy to skrzyowanie ma oznaczenia na ziemi?"</string> <string name="overlay_places">"Miejsca"</string> <string name="overlay_things">"Obiekty"</string> <string name="disused">"ju nieuywane"</string> <string name="unknown_object">"Inny obiekt"</string> <string name="quest_leafType_tree_title">"Czy to drzewo iglaste czy liciaste?"</string> <string name="quest_bbq_fuel_gas">"Gaz"</string> <string name="about_description_donate_google_play3">"Dzikujemy za rozwaenie wsparcia tej aplikacji! Informacje o darowiznach mona znale na naszej stronie internetowej lub na stronie gwnej projektu, poniewa Google Play nie pozwala nam na udostpnienie linku w aplikacji."</string> <string name="quest_isAmenityIndoor_outside_covered">"Nie w rodku, ale osonite"</string> <string name="lit_value_unsupported">"Stanu nie da si opisa w aplikacji"</string> <string name="quest_generic_otherAnswers2">"Uh..."</string> <string name="quest_pedestrian_crossing_signals2">"Czy s tu wiata pokazujce kiedy tu przej?"</string> <string name="quest_moped_access_title">"Czy tu jest znak wskazujcy dostp motorowerw na tej ciece rowerowej?"</string> <string name="quest_moped_access_allowed">"Tu nie ma znaku"</string> <string name="quest_moped_access_designated">"Tu jest znak wyznaczajcy t ciek rowerow dla motorowerw"</string> <string name="quest_moped_access_forbidden">"Tu jest znak zakazujcy motorowerw"</string> <string name="default_disabled_msg_visible_sign_moped">"Ten "</string> <string name="quest_arrow_tutorial">"Strzaki na ilustracji wskazuj kierunki, w ktrych przebiega droga na mapie w rodkowym pooeniu pinezki. Sprbuj obrci map, a ci si uda."</string> <string name="info">"Wicej informacji"</string> <string name="quest_accessible_for_pedestrians_prohibited">"To jest zabronione."</string> <string name="quest_accessible_for_pedestrians_allowed">"To jest dozwolone."</string> <string name="quest_accessible_for_pedestrians_separate_sidewalk">"Tu jest chodnik, ale pokazany osobno na mapie."</string> <string name="quest_buildingLevels_hint">"W przypadku budynkw na zboczu licznik poziomw zaczyna si od poziomu gruntu najniszej strony. Poziom liczy si jako poziom dachu, gdy jego okna znajduj si w dachu, w zwizku z tym dachy o zerowych poziomach dachu niekoniecznie s paskie, po prostu nie s wystarczajco wysokie dla caego poziomu."</string> <string name="quest_parcel_locker_brand">"Jaka jest marka tego paczkomatu?"</string> <string name="quest_powerPolesMaterial_is_terminal">"Linia energetyczna jest przyczepiona do budynku"</string> <string name="quest_cycleway_value_sidewalk_ok">"Nie ma, ale znak zezwala na jazd rowerem na chodniku"</string> <string name="separate_cycleway_no_signed">"Znak wyranie zakazuje jazdy na rowerze"</string> <string name="separate_cycleway_footway_allowed_sign">"Chodnik, ale znak zezwala na jazd rowerem"</string> <string name="quest_bicycle_parking_type_floor">"Wyznaczony obszar"</string> <string name="link_osmapp_description">"Mapa z rnymi warstwami takimi jak wspinaczka czy jazda na nartach"</string> </resources> ```
/content/code_sandbox/app/src/main/res/values-pl/strings.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
38,185
```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>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>com.facebook.wda.unitTests</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>BNDL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>1</string> </dict> </plist> ```
/content/code_sandbox/apm-wda/WebDriverAgentTests/UnitTests/Info.plist
xml
2016-12-02T07:23:24
2024-08-09T12:00:01
GAutomator
Tencent/GAutomator
1,333
229
```xml import type { PrivateKeyReference, PublicKeyReference, SessionKey } from '@proton/crypto'; import type { SimpleMap } from '../interfaces'; import type { VcalVeventComponent } from '../interfaces/calendar'; import { CALENDAR_CARD_TYPE } from './constants'; import { createSessionKey, encryptPart, getEncryptedSessionKey, getEncryptedSessionKeysMap, signPart, } from './crypto/encrypt'; import { formatData } from './formatData'; import { getVeventParts } from './veventHelper'; const { ENCRYPTED_AND_SIGNED, SIGNED, CLEAR_TEXT } = CALENDAR_CARD_TYPE; /** * Split the properties of the component into parts. */ const getParts = (eventComponent: VcalVeventComponent) => { return getVeventParts(eventComponent); }; /** * Create a calendar event by encrypting and serializing an internal vcal component. */ interface CreateCalendarEventArguments { eventComponent: VcalVeventComponent; cancelledOccurrenceVevent?: VcalVeventComponent; publicKey: PublicKeyReference; privateKey: PrivateKeyReference; sharedSessionKey?: SessionKey; calendarSessionKey?: SessionKey; isCreateEvent: boolean; isSwitchCalendar: boolean; hasDefaultNotifications: boolean; isAttendee?: boolean; removedAttendeesEmails?: string[]; addedAttendeesPublicKeysMap?: SimpleMap<PublicKeyReference>; } export const createCalendarEvent = async ({ eventComponent, cancelledOccurrenceVevent, publicKey, privateKey, sharedSessionKey: oldSharedSessionKey, calendarSessionKey: oldCalendarSessionKey, isCreateEvent, isSwitchCalendar, hasDefaultNotifications, isAttendee, removedAttendeesEmails = [], addedAttendeesPublicKeysMap, }: CreateCalendarEventArguments) => { const { sharedPart, calendarPart, notificationsPart, attendeesPart } = getParts(eventComponent); const cancelledOccurrenceSharedPart = cancelledOccurrenceVevent ? getParts(cancelledOccurrenceVevent).sharedPart : undefined; const isCreateOrSwitchCalendar = isCreateEvent || isSwitchCalendar; const isAttendeeSwitchingCalendar = isSwitchCalendar && isAttendee; // If there is no encrypted calendar part, a calendar session key is not needed. const shouldHaveCalendarKey = !!calendarPart[ENCRYPTED_AND_SIGNED]; const [calendarSessionKey, sharedSessionKey] = await Promise.all([ shouldHaveCalendarKey ? oldCalendarSessionKey || createSessionKey(publicKey) : undefined, oldSharedSessionKey || createSessionKey(publicKey), ]); const [ encryptedCalendarSessionKey, encryptedSharedSessionKey, sharedSignedPart, sharedEncryptedPart, calendarSignedPart, calendarEncryptedPart, attendeesEncryptedPart, attendeesEncryptedSessionKeysMap, cancelledOccurrenceSignedPart, ] = await Promise.all([ // If we're updating an event (but not switching calendar), no need to encrypt again the session keys isCreateOrSwitchCalendar && calendarSessionKey ? getEncryptedSessionKey(calendarSessionKey, publicKey) : undefined, isCreateOrSwitchCalendar ? getEncryptedSessionKey(sharedSessionKey, publicKey) : undefined, // attendees are not allowed to change the SharedEventContent, so they shouldn't send it (API will complain otherwise) isAttendeeSwitchingCalendar ? undefined : signPart(sharedPart[SIGNED], privateKey), isAttendeeSwitchingCalendar ? undefined : encryptPart(sharedPart[ENCRYPTED_AND_SIGNED], privateKey, sharedSessionKey), signPart(calendarPart[SIGNED], privateKey), calendarSessionKey ? encryptPart(calendarPart[ENCRYPTED_AND_SIGNED], privateKey, calendarSessionKey) : undefined, // attendees are not allowed to change the SharedEventContent, so they shouldn't send it (API will complain otherwise) isAttendeeSwitchingCalendar ? undefined : encryptPart(attendeesPart[ENCRYPTED_AND_SIGNED], privateKey, sharedSessionKey), getEncryptedSessionKeysMap(sharedSessionKey, addedAttendeesPublicKeysMap), cancelledOccurrenceSharedPart ? signPart(cancelledOccurrenceSharedPart[SIGNED], privateKey) : undefined, ]); return formatData({ sharedSignedPart, sharedEncryptedPart, cancelledOccurrenceSignedPart, sharedSessionKey: encryptedSharedSessionKey, calendarSignedPart, calendarEncryptedPart, calendarSessionKey: encryptedCalendarSessionKey, notificationsPart: hasDefaultNotifications ? undefined : notificationsPart, colorPart: eventComponent.color?.value, attendeesEncryptedPart, attendeesClearPart: isAttendeeSwitchingCalendar ? undefined : attendeesPart[CLEAR_TEXT], removedAttendeesEmails, attendeesEncryptedSessionKeysMap, }); }; ```
/content/code_sandbox/packages/shared/lib/calendar/serialize.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,041
```xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <bean id="dataSource" class="org.flowable.common.engine.impl.test.ClosingDataSource"> <constructor-arg> <bean class="com.zaxxer.hikari.HikariDataSource" destroy-method="close"> <constructor-arg> <bean class="com.zaxxer.hikari.HikariConfig"> <property name="minimumIdle" value="0" /> <property name="jdbcUrl" value="${jdbc.url:jdbc:h2:mem:flowable;DB_CLOSE_DELAY=1000}"/> <property name="driverClassName" value="${jdbc.driver:org.h2.Driver}"/> <property name="username" value="${jdbc.username:sa}"/> <property name="password" value="${jdbc.password:}"/> </bean> </constructor-arg> </bean> </constructor-arg> </bean> <bean id="processEngineConfiguration" class="org.flowable.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"> <property name="dataSource" ref="dataSource" /> <property name="engineLifecycleListeners"> <list> <ref bean="dataSource"/> </list> </property> <!-- Database configurations --> <property name="databaseSchemaUpdate" value="true" /> <!-- job executor configurations --> <property name="asyncExecutorActivate" value="false" /> <!-- mail server configurations --> <property name="mailServerPort" value="5025" /> </bean> <bean id="myBean" class="java.lang.String"> <constructor-arg value="myValue" /> </bean> </beans> ```
/content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/standalone/scripting/flowable.cfg.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
400
```xml import { Paragraph as TiptapParagraph } from "@tiptap/extension-paragraph" export const Paragraph = TiptapParagraph.extend({ addOptions() { return { ...this.parent?.(), HTMLAttributes: { class: "text-node" } } } }) export default Paragraph ```
/content/code_sandbox/web/components/la-editor/extensions/paragraph/paragraph.ts
xml
2016-08-08T16:09:17
2024-08-16T16:23:04
learn-anything.xyz
learn-anything/learn-anything.xyz
15,943
70
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { LitElement, html } from 'lit'; import { createTestElement, removeTestElement } from '@cds/core/test'; import { registerElementSafely, updateElementStyles } from '@cds/core/internal'; import { addAttributeValue, assignSlotNames, createFragment, getElementWidth, getElementWidthUnless, getShadowRootOrElse, getWindowDimensions, hasAttributeAndIsNotEmpty, HTMLAttributeTuple, windowIsAboveMobileBreakpoint, isHTMLElement, makeFocusable, // <- LEFTOFF removeAttributes, removeAttributeValue, setAttributes, isVisible, setOrRemoveAttribute, spanWrapper, isFocusable, queryChildFromLightOrShadowDom, queryAllFocusable, isScrollable, coerceBooleanProperty, } from './dom.js'; /** @element test-dom-spec-element */ export class TestElement extends LitElement { render() { return html`<div class="shadow-dom-el" id="shady"><slot></slot></div>`; } } registerElementSafely('test-dom-spec-element', TestElement); describe('Functional Helper: ', () => { describe('getElementWidth() ', () => { let testElement: HTMLElement; const elementWidth = '100px'; beforeEach(async () => { testElement = await createTestElement(); testElement.style.width = elementWidth; }); afterEach(() => { removeTestElement(testElement); }); it('returns the width of an element', () => { expect(getElementWidth(testElement)).toEqual(elementWidth); }); it('returns an empty string if passed junk', () => { expect(getElementWidth(null)).toEqual(''); }); }); describe('getElementWidthUnless() ', () => { let testElement: HTMLElement; const elementWidth = '100px'; beforeEach(async () => { testElement = await createTestElement(); testElement.style.width = elementWidth; }); afterEach(() => { removeTestElement(testElement); }); it('returns the width of an element when unless is false', () => { expect(getElementWidthUnless(testElement, false)).toEqual(elementWidth); }); it('returns empty string when unless is true', () => { expect(getElementWidthUnless(testElement, true)).toEqual(''); }); }); describe('isHTMLElement() ', () => { let testElement: any; it('returns true if it is an HTMLElement', async () => { testElement = await createTestElement(); expect(isHTMLElement(testElement)).toEqual(true); }); it('returns false if undefined or null', () => { testElement = undefined; expect(isHTMLElement(testElement)).toEqual(false); testElement = null; expect(isHTMLElement(testElement)).toEqual(false); }); it('returns false if it is not an HTMLElement', () => { testElement = 2; expect(isHTMLElement(testElement)).toEqual(false); }); }); describe('addAttributeValue() ', () => { let testElement: HTMLElement; const attrName = 'myAttr'; beforeEach(async () => { testElement = await createTestElement(); }); afterEach(() => { removeTestElement(testElement); }); it('sets the attribute value', () => { addAttributeValue(testElement, attrName, 'bar'); expect(testElement.getAttribute(attrName)).toEqual('bar'); }); it('adds to current attribute value', () => { testElement.setAttribute(attrName, 'foo'); addAttributeValue(testElement, attrName, 'bar'); expect(testElement.getAttribute(attrName)).toEqual('foo bar'); }); it('does not add if the value is already present', () => { testElement.setAttribute(attrName, 'foo'); addAttributeValue(testElement, attrName, 'foo'); expect(testElement.getAttribute(attrName)).toEqual('foo'); }); }); describe('setAttributes() ', () => { let testElement: HTMLElement; const attrsToTest: HTMLAttributeTuple[] = [ ['title', 'test element'], ['aria-hidden', 'true'], ['data-attr', 'stringified data goes here'], ]; beforeEach(async () => { testElement = await createTestElement(); }); afterEach(() => { removeTestElement(testElement); }); it('sets attributes', () => { setAttributes(testElement, ...attrsToTest); attrsToTest.forEach(tup => { const [attr, val] = tup; expect(testElement.hasAttribute(attr)).toBe(true); expect(testElement.getAttribute(attr)).toBe(val.toString()); }); }); it('overrides an attribute value if it already exists', () => { const valueWeDontWant = 'ohai'; testElement.setAttribute('title', valueWeDontWant); setAttributes(testElement, ...attrsToTest); attrsToTest.forEach(tup => { const [attr, val] = tup; expect(testElement.hasAttribute(attr)).toBe(true); if (attr === 'title') { expect(testElement.getAttribute(attr)).not.toBe(valueWeDontWant); } expect(testElement.getAttribute(attr)).toBe(val.toString()); }); }); it('removes attribute value if value is false', () => { const attrToRemove = 'data-bool'; const theseAttrsToTest = [].concat(attrsToTest, [[attrToRemove, false]]); testElement.setAttribute(attrToRemove, 'true'); setAttributes(testElement, ...theseAttrsToTest); expect(testElement.hasAttribute(attrToRemove)).toBe(false); }); it('removes attribute value if value is null', () => { const attrToRemove = 'data-bool'; const theseAttrsToTest = [].concat(attrsToTest, [[attrToRemove, null]]); testElement.setAttribute(attrToRemove, 'true'); setAttributes(testElement, ...theseAttrsToTest); expect(testElement.hasAttribute(attrToRemove)).toBe(false); }); it('gracefully handles empty strings', () => { const emptyAttr = 'data-emptystring'; const theseAttrsToTest = [].concat(attrsToTest, [[emptyAttr, '']]); testElement.setAttribute(emptyAttr, 'jabberwocky'); setAttributes(testElement, ...theseAttrsToTest); expect(testElement.hasAttribute(emptyAttr)).toBe(true); expect(testElement.getAttribute(emptyAttr)).toBe(''); }); it('gracefully handles undefined', () => { const undefAttr = 'data-undefined'; const theseAttrsToTest = [].concat(attrsToTest, [[undefAttr, undefined]]); testElement.setAttribute(undefAttr, 'jabberwocky'); setAttributes(testElement, ...theseAttrsToTest); expect(testElement.hasAttribute(undefAttr)).toBe(true); expect(testElement.getAttribute(undefAttr)).toBe('undefined'); }); }); describe('removeAttributes() ', () => { let testElement: HTMLElement; const testAttrs: HTMLAttributeTuple[] = [ ['title', 'test element'], ['aria-hidden', 'true'], ['data-attr', 'stringified data goes here'], ]; beforeEach(async () => { testElement = await createTestElement(); setAttributes(testElement, ...testAttrs); }); afterEach(() => { removeTestElement(testElement); }); it('removes attributes', () => { const attrsToRemove = ['aria-hidden', 'data-attr']; removeAttributes(testElement, ...attrsToRemove); attrsToRemove.forEach(attr => { expect(testElement.hasAttribute(attr)).toBe(false); }); expect(testElement.hasAttribute('title')).toBe(true); }); it('gracefully handles attributes that are not there', () => { const attrsToRemove = ['aria-hidden', 'data-bullywug']; removeAttributes(testElement, ...attrsToRemove); attrsToRemove.forEach(attr => { expect(testElement.hasAttribute(attr)).toBe(false); }); }); }); describe('setOrRemoveAttribute() ', () => { let testElement: HTMLElement; const attrToTest: HTMLAttributeTuple = ['data-attr', 'stringified data goes here']; const [attrToTestName, attrToTestValue] = attrToTest; beforeEach(async () => { testElement = await createTestElement(); }); afterEach(() => { removeTestElement(testElement); }); it('sets attribute if test function returns true', () => { setOrRemoveAttribute(testElement, attrToTest, () => { return true; }); expect(testElement.hasAttribute(attrToTestName)).toBe(true); expect(testElement.getAttribute(attrToTestName)).toBe(attrToTestValue as string); }); it('removes attribute value if function returns false', () => { setAttributes(testElement, attrToTest); expect(testElement.hasAttribute(attrToTestName)).toBe(true); expect(testElement.getAttribute(attrToTestName)).toBe(attrToTestValue as string); setOrRemoveAttribute(testElement, attrToTest, () => { return false; }); expect(testElement.hasAttribute(attrToTestName)).toBe(false); expect(testElement.getAttribute(attrToTestName)).toBe(null); }); }); describe('assignSlotNames() ', () => { let testElement: HTMLElement; let testDiv1: HTMLElement; let testDiv2: HTMLElement; let testDiv3: null; let testDiv4: HTMLElement; beforeEach(async () => { testElement = await createTestElement( html`<div id="testDiv1">ohai</div> <div id="testDiv2">kthxbye</div> <div id="testDiv4">omye</div>` ); testDiv1 = testElement.querySelector('#testDiv1'); testDiv2 = testElement.querySelector('#testDiv2'); testDiv3 = testElement.querySelector('#testDiv3'); testDiv4 = testElement.querySelector('#testDiv4'); }); afterEach(() => { removeTestElement(testElement); }); it('spec sets up as expected', () => { expect(testDiv1 instanceof HTMLElement).toBe(true, 'retrieves testDiv1 as expected'); expect(testDiv2 instanceof HTMLElement).toBe(true, 'retrieves testDiv2 as expected'); expect(testDiv3).toBeNull('testDiv3 does not exist'); expect(testDiv4 instanceof HTMLElement).toBe(true, 'retrieves testDiv4 as expected'); }); it('assigns slot names as expected', () => { assignSlotNames([testDiv1, 'test1'], [testDiv2, 'test2']); expect(testDiv1.getAttribute('slot')).toBe('test1', 'assigns testDiv1 slot'); expect(testDiv2.getAttribute('slot')).toBe('test2', 'assigns testDiv2 slot'); expect(testDiv4.getAttribute('slot')).toBeNull('does not assign testDiv4 slot'); }); it('removes slot names as expected', () => { assignSlotNames([testDiv1, 'test1'], [testDiv2, 'test2']); expect(testDiv1.getAttribute('slot')).toBe('test1', 'assigns testDiv1 slot'); assignSlotNames([testDiv1, false]); expect(testDiv1.getAttribute('slot')).toBeNull('removes testDiv1 slot'); expect(testDiv2.getAttribute('slot')).toBe('test2', 'leaves testDiv2 slot alone'); }); it('does not die on divs that do not exist', () => { assignSlotNames([testDiv1, 'test1'], [testDiv2, 'test2'], [testDiv3, 'test3']); expect(testDiv1.getAttribute('slot')).toBe('test1', 'assigns testDiv1 slot'); expect(testDiv2.getAttribute('slot')).toBe('test2', 'leaves testDiv2 slot alone'); }); }); describe('removeAttributeValue() ', () => { let testElement: HTMLElement; const attrName = 'myAttr'; const testAttrs: HTMLAttributeTuple[] = [ ['title', 'test element'], ['aria-hidden', 'true'], ['data-attr', 'stringified data goes here'], ]; beforeEach(async () => { testElement = await createTestElement(); setAttributes(testElement, ...testAttrs); }); afterEach(() => { removeTestElement(testElement); }); it('does not do anything if attribute value is not present', () => { testElement.setAttribute(attrName, 'foo'); removeAttributeValue(testElement, attrName, 'bar'); expect(testElement.getAttribute(attrName)).toEqual('foo'); }); it('removes only the value specified', () => { testElement.setAttribute(attrName, 'foo bar'); removeAttributeValue(testElement, attrName, 'bar'); expect(testElement.getAttribute(attrName)).toEqual('foo'); }); it('removes the attribute if the value was the only value for that attribute', () => { testElement.setAttribute(attrName, 'foo'); removeAttributeValue(testElement, attrName, 'foo'); expect(testElement.getAttribute(attrName)).toBeNull(); }); }); describe('isVisible', () => { it('determines if element is visible', async () => { const element = await createTestElement(); element.style.width = '100px'; element.style.height = '100px'; expect(isVisible(element)).toBe(true); element.setAttribute('hidden', ''); expect(isVisible(element)).toBe(false); removeAttributes(element, 'hidden'); expect(isVisible(element)).toBe(true); removeTestElement(element); expect(isVisible(element)).toBe(false); }); }); describe('spanWrapper', () => { it('wraps text nodes in an element', async () => { const element = await createTestElement(html`Hello spanWrapper`); spanWrapper(element.childNodes); expect(element.children[0].tagName).toBe('SPAN'); expect(element.children[0].textContent).toBe('Hello spanWrapper'); }); }); describe('hasAttributeAndIsNotEmpty', () => { it('should return false if element does not exist', () => { const nope = document.getElementById('ohai'); expect(hasAttributeAndIsNotEmpty(nope, 'id')).toBe(false); }); it('should return true if element has attribute', async () => { const element = await createTestElement(html`<div id="ohai" data-test-value="false">howdy</div>`); expect(hasAttributeAndIsNotEmpty(document.getElementById('ohai'), 'data-test-value')).toBe(true); removeTestElement(element); }); it('should return false if element has attribute but it is an empty string', async () => { const element = await createTestElement(html`<div id="ohai" data-test-value="">howdy</div>`); expect(hasAttributeAndIsNotEmpty(document.getElementById('ohai'), 'data-test-value')).toBe(false); removeTestElement(element); }); it('should return false if element has attribute but there is no value in the attribute', async () => { const element = await createTestElement(html`<div id="ohai" data-test-value>howdy</div>`); expect(hasAttributeAndIsNotEmpty(document.getElementById('ohai'), 'data-test-value')).toBe(false); removeTestElement(element); }); }); describe('isScrollable() ', () => { it('should verify the element is scrollable', async () => { const element = await createTestElement(html` Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. `); // `createTestElement` wraps the text in a `<div>` and we have to add the styles to it updateElementStyles(element, ['width', '20px'], ['height', '20px'], ['overflow', 'scroll']); expect(isScrollable(element)).toBe(true); }); it('should verify the element is not scrollable', async () => { const element = await createTestElement(html` Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. `); expect(isScrollable(element)).toBe(false); }); }); describe('isFocusable() ', () => { let testElement: HTMLElement; const testId = 'testme'; afterEach(() => { removeTestElement(testElement); }); describe('- form elements:', () => { it('checkboxes return true', async () => { testElement = await createTestElement(html`<input type="checkbox" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('radios return true', async () => { testElement = await createTestElement(html`<input type="radio" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('text inputs return true', async () => { testElement = await createTestElement(html`<input type="text" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('time inputs return true', async () => { testElement = await createTestElement(html`<input type="time" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('date inputs return true', async () => { testElement = await createTestElement(html`<input type="date" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('color inputs return true', async () => { testElement = await createTestElement(html`<input type="color" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('range inputs return true', async () => { testElement = await createTestElement(html`<input type="range" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('password inputs return true', async () => { testElement = await createTestElement(html`<input type="password" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('search inputs return true', async () => { testElement = await createTestElement(html`<input type="search" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('buttons return true', async () => { testElement = await createTestElement(html`<button type="button" id="${testId}">ohai</button>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('selects return true', async () => { testElement = await createTestElement( html`<select id="${testId}" ><option selected>ohai</option ><option>kthxbye</option></select >` ); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('textareas return true', async () => { testElement = await createTestElement(html`<textarea id="${testId}"></textarea>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); }); describe('- iframe and embedded: ', () => { it('iframe return true', async () => { testElement = await createTestElement(html`<iframe title="example" id="${testId}"></iframe>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('embedded return true', async () => { testElement = await createTestElement(html` <embed type="image/jpg" id="${testId}" src="#" width="300" height="200" /> `); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); }); describe('- anchor elements:', () => { it('a[href] returns true', async () => { testElement = await createTestElement(html`<a href="path_to_url" id="${testId}">ohai</a>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('a:not([href]) returns false', async () => { testElement = await createTestElement(html`<a id="${testId}">ohai</a>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(false); }); }); describe('- area elements:', () => { it('area[href] returns true', async () => { testElement = await createTestElement(html`<area href="path_to_url" id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('area:not([href]) returns false', async () => { testElement = await createTestElement(html`<area id="${testId}" />`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(false); }); }); describe('- audio and video elements:', () => { it('audio[controls] returns true', async () => { testElement = await createTestElement(html`<audio controls id="${testId}"></audio>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('audio:not([controls]) returns false', async () => { testElement = await createTestElement(html`<audio id="${testId}"></audio>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(false); }); it('video[controls] returns true', async () => { testElement = await createTestElement(html`<video controls id="${testId}"></video>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('video:not([controls]) returns false', async () => { testElement = await createTestElement(html`<video id="${testId}"></video>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(false); }); }); describe('- tabindex:', () => { it('*[tabindex] returns true', async () => { testElement = await createTestElement(html`<div tabindex="-1" id="${testId}"></div>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(true); }); it('*:not([tabindex]) returns false', async () => { testElement = await createTestElement(html`<div id="${testId}"></div>`); expect(isFocusable(testElement.querySelector('#' + testId))).toBe(false); }); }); }); describe('queryAllFocusable() ', () => { let testElement: HTMLElement; it('should get focusable elements', async () => { testElement = await createTestElement(html` <button>Hello</button> <a href="#">Hello</a> <audio controls> <source src="#" type="audio/ogg" /> <source src="#" type="audio/mpeg" /> Your browser does not support the audio tag. </audio> <select name="cars" id="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="mercedes">Mercedes</option> <option value="audi">Audi</option> </select> <textarea id="w3review" name="w3review" rows="4" cols="50"> Hello </textarea > <video width="320" height="240" controls> <source src="#" type="video/mp4" /> <source src="#" type="video/ogg" /> Your browser does not support the video tag. </video> <div role="button">Clickable</div> <div contenteditable="true">Clickable</div> <map name="workmap"> <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm" /> </map> <!-- <iframe title="hello" src="#"></iframe> --> <!-- <embed type="image/jpg" src="#" width="300" height="200" /> --> <div tabindex="-5"></div> <!-- <object data="#" width="300" height="200"></object> --> `); // iframe, embed and object were causing web-test-runner to blow up const expectedListOfInstances = [ HTMLButtonElement, HTMLAnchorElement, HTMLAudioElement, HTMLSelectElement, HTMLTextAreaElement, HTMLVideoElement, HTMLDivElement, HTMLDivElement, HTMLAreaElement, // HTMLIFrameElement, // HTMLEmbedElement, HTMLDivElement, // HTMLObjectElement, ]; const elements = queryAllFocusable(testElement); elements.forEach((element, order) => { expect(element instanceof expectedListOfInstances[order]).toBeTruthy(); }); removeTestElement(testElement); }); it('should not get an not selectable element', async () => { testElement = await createTestElement(html`<div> <div>I AM DIV</div> <span>I AM SPAN</span> <section>I AM SECTION</section> <input type="hidden" /> <input disabled /> <input readonly /> <button>Hello</button> </div>`); const elements = queryAllFocusable(testElement); expect(elements.length).toBe(1); expect(elements[0] instanceof HTMLButtonElement).toBeTruthy(); removeTestElement(testElement); }); }); describe('queryChildFromLightOrShadowDom', () => { let testElement: HTMLElement; let component: TestElement; beforeEach(async () => { testElement = await createTestElement( html`<test-dom-spec-element><div class="light-dom-el" id="light">ohai</div></test-dom-spec-element>` ); component = testElement.querySelector<TestElement>('test-dom-spec-element'); }); afterEach(() => { removeTestElement(testElement); }); it('retrieves element from light dom as expected', () => { const el = queryChildFromLightOrShadowDom(component, '.light-dom-el'); expect(el).not.toBeNull(); expect(el.id).toBe('light'); }); it('retrieves element from shadow dom as expected', () => { const el = queryChildFromLightOrShadowDom(component, '.shadow-dom-el'); expect(el).not.toBeNull(); expect(el.id).toBe('shady'); }); it('returns null if element not found in light dom or shadow dom', () => { const el = queryChildFromLightOrShadowDom(component, '.jabberwocky'); expect(el).toBeNull(); }); it('does not die if host el does not have a shadow dom', async () => { const nonShadyHost = await createTestElement(html`<div><span class="find-me" id="found">ohai</span></div>`); const el = queryChildFromLightOrShadowDom(nonShadyHost, '.find-me'); expect(el).not.toBeNull(); expect(el.id).toBe('found'); removeTestElement(nonShadyHost); }); }); describe('getWindowDimensions(): ', () => { it('returns a dimension object with window height and width as expected', () => { const bodyEl = window.document.body; bodyEl.style.height = '100vh'; bodyEl.style.width = '100vw'; const bodyElRect = bodyEl.getBoundingClientRect(); const { height, width } = getWindowDimensions(); // defaults to base window object if no arguments sent expect(height).toBe(bodyElRect.height, 'height is as expected'); expect(width).toBe(bodyElRect.width, 'width is as expected'); }); it('handles bad input', () => { const testWindowWithoutDocument = {} as Window; expect(getWindowDimensions(null)).toEqual({ width: 0, height: 0 }, 'handles null'); expect(() => { getWindowDimensions(null); }).not.toThrowError('does not die on null'); expect(getWindowDimensions(testWindowWithoutDocument)).toEqual( { width: 0, height: 0 }, 'handles a bad window object' ); expect(() => { getWindowDimensions(testWindowWithoutDocument); }).not.toThrowError('does not die with a bad window object'); }); }); describe('windowIsAboveMobileBreakpoint(): ', () => { it('should break if test suite changes default dimensions', () => { // default window width in tests is 800 expect(window.innerWidth).toBe(800, 'width checks out'); }); it('returns as expected', () => { expect(windowIsAboveMobileBreakpoint()).toBe(false, 'defaults to mobile breakpoint (576px)'); expect(windowIsAboveMobileBreakpoint('802px')).toBe(true, 'handles px values'); }); }); describe('getShadowRootOrElse(): ', () => { let testElement: HTMLElement; let component: TestElement; let div: HTMLElement; let fallback: HTMLElement; beforeEach(async () => { testElement = await createTestElement( html` <test-dom-spec-element id="has-shadow">ohai</test-dom-spec-element> <div id="no-shadow">howdy</div> <div id="intended-fallback"></div> ` ); component = testElement.querySelector<TestElement>('test-dom-spec-element'); div = testElement.querySelector('#no-shadow'); fallback = testElement.querySelector('#intended-fallback'); }); afterEach(() => { removeTestElement(testElement); }); it('should return as expected', () => { const returnsShade = getShadowRootOrElse(component, fallback); const returnsHostEl = getShadowRootOrElse(div); const returnsFallbackInstead = getShadowRootOrElse(div, fallback); expect(returnsShade).toBe((component.shadowRoot as unknown) as HTMLElement, 'returns shadow root if exists'); expect(returnsHostEl).toBe(div, 'returns host if no shadow root or fallback'); expect(returnsFallbackInstead).toBe(fallback, 'returns fallback'); }); }); describe('makeFocusable(): ', () => { let testElement: HTMLElement; let alreadyFocusable: HTMLElement; let alreadyTabindexed: HTMLElement; let notFocusable: HTMLElement; beforeEach(async () => { testElement = await createTestElement( html` <button id="focusable">ohai</button> <div id="not-focusable">howdy</div> <div id="tab-indexed" tabindex="0">wassup</div> ` ); alreadyFocusable = testElement.querySelector('#focusable'); notFocusable = testElement.querySelector('#not-focusable'); alreadyTabindexed = testElement.querySelector('#tab-indexed'); }); afterEach(() => { removeTestElement(testElement); }); it('should makeFocusable as expected', () => { const returnFocusable = makeFocusable(alreadyFocusable); const returnNotFocusable = makeFocusable(notFocusable); const returnTabIndexed = makeFocusable(alreadyTabindexed); expect(returnFocusable.getAttribute('tabindex')).toBe(null, 'does not tab index focusable items'); expect(returnNotFocusable.getAttribute('tabindex')).toBe('-1', 'adds tab index but does not add to tab flow'); expect(returnTabIndexed.getAttribute('tabindex')).toBe('0', 'preserves tab index if already set'); }); it('should add to tabflow as expected', () => { const tabFlowed = makeFocusable(notFocusable, true); expect(tabFlowed.getAttribute('tabindex')).toBe('0', 'adds to tab flow'); }); }); describe('createFragment(): ', () => { it('returns as expected', () => { const test = createFragment('ohai'); expect(test instanceof DocumentFragment).toBe(true, 'we made a fragment'); expect(test.textContent).toBe('ohai', 'fragment has our text'); }); }); describe('coerceBooleanProperty():', () => { it('should coerse a value to a boolean', () => { expect(coerceBooleanProperty(null)).toBe(false); expect(coerceBooleanProperty(undefined)).toBe(false); expect(coerceBooleanProperty(false)).toBe(false); expect(coerceBooleanProperty(true)).toBe(true); expect(coerceBooleanProperty('false')).toBe(false); expect(coerceBooleanProperty('true')).toBe(true); }); }); }); ```
/content/code_sandbox/packages/core/src/internal/utils/dom.spec.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
7,339
```xml import { Box, Button, InputAdornment, MenuItem, Paper, SxProps, TextField, Theme, } from "@mui/material"; import React, { useContext, useEffect, useState } from "react"; import { BiRefresh, BiTime } from "react-icons/bi"; import { RiExternalLinkLine } from "react-icons/ri"; import { GlobalContext } from "../../App"; import { CollapsibleSection } from "../../common/CollapsibleSection"; import { ClassNameProps } from "../../common/props"; import { HelpInfo } from "../../components/Tooltip"; import { MetricConfig, REFRESH_VALUE, RefreshOptions, TIME_RANGE_TO_FROM_VALUE, TimeRangeOptions, } from "../metrics"; // NOTE: please keep the titles here in sync with dashboard/modules/metrics/dashboards/serve_dashboard_panels.py export const APPS_METRICS_CONFIG: MetricConfig[] = [ { title: "QPS per application", pathParams: "orgId=1&theme=light&panelId=7", }, { title: "Error QPS per application", pathParams: "orgId=1&theme=light&panelId=8", }, { title: "P90 latency per application", pathParams: "orgId=1&theme=light&panelId=15", }, ]; // NOTE: please keep the titles here in sync with dashboard/modules/metrics/dashboards/serve_dashboard_panels.py export const SERVE_SYSTEM_METRICS_CONFIG: MetricConfig[] = [ { title: "Ongoing HTTP Requests", pathParams: "orgId=1&theme=light&panelId=20", }, { title: "Ongoing gRPC Requests", pathParams: "orgId=1&theme=light&panelId=21", }, { title: "Scheduling Tasks", pathParams: "orgId=1&theme=light&panelId=22", }, { title: "Scheduling Tasks in Backoff", pathParams: "orgId=1&theme=light&panelId=23", }, { title: "Controller Control Loop Duration", pathParams: "orgId=1&theme=light&panelId=24", }, { title: "Number of Control Loops", pathParams: "orgId=1&theme=light&panelId=25", }, ]; type ServeMetricsSectionProps = ClassNameProps & { metricsConfig: MetricConfig[]; sx?: SxProps<Theme>; }; export const ServeMetricsSection = ({ className, metricsConfig, sx, }: ServeMetricsSectionProps) => { const { grafanaHost, prometheusHealth, dashboardUids, dashboardDatasource } = useContext(GlobalContext); const grafanaServeDashboardUid = dashboardUids?.serve ?? "rayServeDashboard"; const [refreshOption, setRefreshOption] = useState<RefreshOptions>( RefreshOptions.FIVE_SECONDS, ); const [timeRangeOption, setTimeRangeOption] = useState<TimeRangeOptions>( TimeRangeOptions.FIVE_MINS, ); const [refresh, setRefresh] = useState<string | null>(null); const [[from, to], setTimeRange] = useState<[string | null, string | null]>([ null, null, ]); useEffect(() => { setRefresh(REFRESH_VALUE[refreshOption]); }, [refreshOption]); useEffect(() => { const from = TIME_RANGE_TO_FROM_VALUE[timeRangeOption]; setTimeRange([from, "now"]); }, [timeRangeOption]); const fromParam = from !== null ? `&from=${from}` : ""; const toParam = to !== null ? `&to=${to}` : ""; const timeRangeParams = `${fromParam}${toParam}`; const refreshParams = refresh ? `&refresh=${refresh}` : ""; return grafanaHost === undefined || !prometheusHealth ? null : ( <CollapsibleSection className={className} sx={sx} title="Metrics" startExpanded > <div> <Box sx={{ width: "100%", display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "flex-end", padding: 1, zIndex: 1, height: 36, }} > <Button href={`${grafanaHost}/d/${grafanaServeDashboardUid}?var-datasource=${dashboardDatasource}`} target="_blank" rel="noopener noreferrer" endIcon={<RiExternalLinkLine />} > View in Grafana </Button> <TextField sx={{ marginLeft: 2, width: 80 }} select size="small" value={refreshOption} onChange={({ target: { value } }) => { setRefreshOption(value as RefreshOptions); }} variant="standard" InputProps={{ startAdornment: ( <InputAdornment position="start"> <BiRefresh style={{ fontSize: 25, paddingBottom: 5 }} /> </InputAdornment> ), }} > {Object.entries(RefreshOptions).map(([key, value]) => ( <MenuItem key={key} value={value}> {value} </MenuItem> ))} </TextField> <HelpInfo>Auto-refresh interval</HelpInfo> <TextField sx={{ marginLeft: 2, width: 140, }} select size="small" value={timeRangeOption} onChange={({ target: { value } }) => { setTimeRangeOption(value as TimeRangeOptions); }} variant="standard" InputProps={{ startAdornment: ( <InputAdornment position="start"> <BiTime style={{ fontSize: 22, paddingBottom: 5 }} /> </InputAdornment> ), }} > {Object.entries(TimeRangeOptions).map(([key, value]) => ( <MenuItem key={key} value={value}> {value} </MenuItem> ))} </TextField> <HelpInfo>Time range picker</HelpInfo> </Box> <Box sx={{ display: "flex", flexDirection: "row", flexWrap: "wrap", gap: 3, marginTop: 2, }} > {metricsConfig.map(({ title, pathParams }) => { const path = `/d-solo/${grafanaServeDashboardUid}?${pathParams}` + `${refreshParams}${timeRangeParams}&var-datasource=${dashboardDatasource}`; return ( <Paper key={pathParams} sx={(theme) => ({ width: "100%", height: 400, overflow: "hidden", [theme.breakpoints.up("md")]: { // Calculate max width based on 1/3 of the total width minus padding between cards width: `calc((100% - ${theme.spacing(3)} * 2) / 3)`, }, })} variant="outlined" elevation={0} > <Box component="iframe" key={title} title={title} sx={{ width: "100%", height: "100%" }} src={`${grafanaHost}${path}`} frameBorder="0" /> </Paper> ); })} </Box> </div> </CollapsibleSection> ); }; ```
/content/code_sandbox/python/ray/dashboard/client/src/pages/serve/ServeMetricsSection.tsx
xml
2016-10-25T19:38:30
2024-08-16T19:46:34
ray
ray-project/ray
32,670
1,618
```xml <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#FFFFFFFF" android:pathData="M16 9v5h2V8c0-1.1-0.9-2-2-2h-6v2h5c0.55 0 1 0.45 1 1zm3 7H9c-0.55 0-1-0.45-1-1V5c0-0.55-0.45-1-1-1S6 4.45 6 5v1H5C4.45 6 4 6.45 4 7s0.45 1 1 1h1v8c0 1.1 0.9 2 2 2h8v1c0 0.55 0.45 1 1 1s1-0.45 1-1v-1h1c0.55 0 1-0.45 1-1s-0.45-1-1-1zM17.66 1.4c-1.67-0.89-3.83-1.51-6.27-1.36l3.81 3.81 1.33-1.33c3.09 1.46 5.34 4.37 5.89 7.86 0.06 0.41 0.44 0.69 0.86 0.62 0.41-0.06 0.69-0.45 0.62-0.86-0.6-3.8-2.96-7-6.24-8.74zM7.47 21.49c-3.09-1.46-5.34-4.37-5.89-7.86-0.06-0.41-0.44-0.69-0.86-0.62-0.41 0.06-0.69 0.45-0.62 0.86 0.6 3.81 2.96 7.01 6.24 8.75 1.67 0.89 3.83 1.51 6.27 1.36L8.8 20.16l-1.33 1.33z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_crop_rotate_vector.xml
xml
2016-02-16T21:17:13
2024-08-16T15:29:22
Simple-Gallery
SimpleMobileTools/Simple-Gallery
3,580
558
```xml <!-- --> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportHeight="24.0" android:viewportWidth="24.0"> <path android:fillColor="#FFFFFFFF" android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/> </vector> ```
/content/code_sandbox/samples/android-app/src/main/res/drawable/ic_favorite_white_24dp.xml
xml
2016-08-12T14:22:12
2024-08-13T16:15:24
Splitties
LouisCAD/Splitties
2,498
212
```xml export * from 'rxjs-compat/operators/repeatWhen'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/operators/repeatWhen.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
13
```xml import fs from 'fs-extra'; import path from 'path'; import { ClientBuilder, ClientBuildFlavor, Platform, S3Client } from './types'; import { EXPO_GO_ANDROID_DIR } from '../Constants'; import logger from '../Logger'; import { androidAppVersionAsync } from '../ProjectVersions'; import { spawnAsync } from '../Utils'; export default class AndroidClientBuilder implements ClientBuilder { platform: Platform = 'android'; getAppPath(): string { return path.join( EXPO_GO_ANDROID_DIR, 'app', 'build', 'outputs', 'apk', 'versioned', 'release', 'app-versioned-release.apk' ); } getClientUrl(appVersion: string): string { return `path_to_url{appVersion}.apk`; } async getAppVersionAsync(): Promise<string> { return androidAppVersionAsync(); } async buildAsync(flavor: ClientBuildFlavor = ClientBuildFlavor.VERSIONED) { await spawnAsync('fastlane', ['android', 'build', 'build_type:Release', `flavor:${flavor}`], { stdio: 'inherit', }); if (flavor === ClientBuildFlavor.VERSIONED) { logger.info('Uploading Crashlytics symbols'); await spawnAsync('fastlane', ['android', 'upload_crashlytics_symbols', `flavor:${flavor}`], { stdio: 'inherit', }); } } async uploadBuildAsync(s3Client: S3Client, appVersion: string) { const file = fs.createReadStream(this.getAppPath()); await s3Client.putObject({ Bucket: 'exp-android-apks', Key: `Exponent-${appVersion}.apk`, Body: file, ACL: 'public-read', }); } } ```
/content/code_sandbox/tools/src/client-build/AndroidClientBuilder.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
390
```xml <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="path_to_url" android:interpolator="@android:anim/decelerate_interpolator"> <scale android:duration="150" android:fromXScale="1.0" android:fromYScale="1.0" android:toXScale="0.85" android:toYScale="0.85" android:pivotX="50%" android:pivotY="50%" /> <alpha android:duration="150" android:fromAlpha="1.0" android:toAlpha="0.6" /> </set> ```
/content/code_sandbox/src/main/res/anim/fade_scale_out.xml
xml
2016-07-03T07:32:36
2024-08-16T16:51:15
deltachat-android
deltachat/deltachat-android
1,082
148
```xml <doxygenlayout version="1.0"> <!-- Generated by doxygen 1.8.4 --> <!-- Navigation index tabs for HTML output --> <navindex> <tab type="mainpage" visible="yes" title=""/> <tab type="pages" visible="yes" title="" intro=""/> <tab type="modules" visible="yes" title="" intro=""/> <tab type="namespaces" visible="yes" title=""> <tab type="namespacelist" visible="yes" title="" intro=""/> <tab type="namespacemembers" visible="yes" title="" intro=""/> </tab> <tab type="classes" visible="yes" title=""> <tab type="classlist" visible="yes" title="" intro=""/> <tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/> <tab type="hierarchy" visible="yes" title="" intro=""/> <tab type="classmembers" visible="yes" title="" intro=""/> </tab> <tab type="files" visible="yes" title=""> <tab type="filelist" visible="yes" title="" intro=""/> <tab type="globals" visible="yes" title="" intro=""/> </tab> <tab type="examples" visible="yes" title="" intro=""/> </navindex> <!-- Layout definition for a class page --> <class> <briefdescription visible="yes"/> <includes visible="$SHOW_INCLUDE_FILES"/> <memberdecl> <nestedclasses visible="yes" title=""/> <publictypes title=""/> <services title=""/> <interfaces title=""/> <publicslots title=""/> <signals title=""/> <publicmethods title=""/> <publicstaticmethods title=""/> <publicattributes title=""/> <publicstaticattributes title=""/> <protectedtypes title=""/> <protectedslots title=""/> <protectedmethods title=""/> <protectedstaticmethods title=""/> <protectedattributes title=""/> <protectedstaticattributes title=""/> <packagetypes title=""/> <packagemethods title=""/> <packagestaticmethods title=""/> <packageattributes title=""/> <packagestaticattributes title=""/> <properties title=""/> <events title=""/> <privatetypes title=""/> <privateslots title=""/> <privatemethods title=""/> <privatestaticmethods title=""/> <privateattributes title=""/> <privatestaticattributes title=""/> <friends title=""/> <related title="" subtitle=""/> <membergroups visible="yes"/> </memberdecl> <detaileddescription title=""/> <inheritancegraph visible="$CLASS_GRAPH"/> <collaborationgraph visible="$COLLABORATION_GRAPH"/> <memberdef> <inlineclasses title=""/> <typedefs title=""/> <enums title=""/> <services title=""/> <interfaces title=""/> <constructors title=""/> <functions title=""/> <related title=""/> <variables title=""/> <properties title=""/> <events title=""/> </memberdef> <allmemberslink visible="yes"/> <usedfiles visible="$SHOW_USED_FILES"/> <authorsection visible="yes"/> </class> <!-- Layout definition for a namespace page --> <namespace> <briefdescription visible="yes"/> <memberdecl> <nestednamespaces visible="yes" title=""/> <constantgroups visible="yes" title=""/> <classes visible="yes" title=""/> <typedefs title=""/> <enums title=""/> <functions title=""/> <variables title=""/> <membergroups visible="yes"/> </memberdecl> <detaileddescription title=""/> <memberdef> <inlineclasses title=""/> <typedefs title=""/> <enums title=""/> <functions title=""/> <variables title=""/> </memberdef> <authorsection visible="yes"/> </namespace> <!-- Layout definition for a file page --> <file> <briefdescription visible="yes"/> <includes visible="$SHOW_INCLUDE_FILES"/> <includegraph visible="$INCLUDE_GRAPH"/> <includedbygraph visible="$INCLUDED_BY_GRAPH"/> <sourcelink visible="yes"/> <memberdecl> <classes visible="yes" title=""/> <namespaces visible="yes" title=""/> <constantgroups visible="yes" title=""/> <defines title=""/> <typedefs title=""/> <enums title=""/> <functions title=""/> <variables title=""/> <membergroups visible="yes"/> </memberdecl> <detaileddescription title=""/> <memberdef> <inlineclasses title=""/> <defines title=""/> <typedefs title=""/> <enums title=""/> <functions title=""/> <variables title=""/> </memberdef> <authorsection/> </file> <!-- Layout definition for a group page --> <group> <briefdescription visible="yes"/> <groupgraph visible="$GROUP_GRAPHS"/> <memberdecl> <nestedgroups visible="yes" title=""/> <dirs visible="yes" title=""/> <files visible="yes" title=""/> <namespaces visible="yes" title=""/> <classes visible="yes" title=""/> <defines title=""/> <typedefs title=""/> <enums title=""/> <enumvalues title=""/> <functions title=""/> <variables title=""/> <signals title=""/> <publicslots title=""/> <protectedslots title=""/> <privateslots title=""/> <events title=""/> <properties title=""/> <friends title=""/> <membergroups visible="yes"/> </memberdecl> <detaileddescription title=""/> <memberdef> <pagedocs/> <inlineclasses title=""/> <defines title=""/> <typedefs title=""/> <enums title=""/> <enumvalues title=""/> <functions title=""/> <variables title=""/> <signals title=""/> <publicslots title=""/> <protectedslots title=""/> <privateslots title=""/> <events title=""/> <properties title=""/> <friends title=""/> </memberdef> <authorsection visible="yes"/> </group> <!-- Layout definition for a directory page --> <directory> <briefdescription visible="yes"/> <directorygraph visible="yes"/> <memberdecl> <dirs visible="yes"/> <files visible="yes"/> </memberdecl> <detaileddescription title=""/> </directory> </doxygenlayout> ```
/content/code_sandbox/doc/custom_doxy_layout.xml
xml
2016-11-21T12:16:22
2024-08-15T12:09:47
depth_clustering
PRBonn/depth_clustering
1,188
1,364
```xml import * as React from 'react'; import ComponentExample from '../../../../components/ComponentDoc/ComponentExample'; import ExampleSection from '../../../../components/ComponentDoc/ExampleSection'; const States = () => ( <ExampleSection title="States"> <ComponentExample title="Disabled" description="The datepicker can be disabled." examplePath="components/Datepicker/States/DatepickerExampleDisabled" /> <ComponentExample title="Required" description="The user needs to fill out the date." examplePath="components/Datepicker/States/DatepickerExampleRequired" /> <ComponentExample title="Today's date" description="The user can fill out the today's date." examplePath="components/Datepicker/States/DatepickerExampleToday" /> <ComponentExample title="Selected Date" description="The user can pre-fill the selected date." examplePath="components/Datepicker/States/DatepickerExampleSelectedDate" /> </ExampleSection> ); export default States; ```
/content/code_sandbox/packages/fluentui/docs/src/examples/components/Datepicker/States/index.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
222
```xml import * as React from 'react'; import { TooltipHost, ITooltipHostStyles } from '@fluentui/react/lib/Tooltip'; import { getTheme } from '@fluentui/react/lib/Styling'; import { useId } from '@fluentui/react-hooks'; const theme = getTheme(); const buttonStyle = { fontSize: theme.fonts.medium.fontSize, padding: 10, // Background and border set to override some global website styles background: '#f0f0f0', border: '2px solid black', }; const calloutProps = { gapSpace: 0 }; // Important for correct positioning--see below const inlineBlockStyle: Partial<ITooltipHostStyles> = { root: { display: 'inline-block' }, }; export const TooltipDisplayExample: React.FunctionComponent = () => { // Use useId() to ensure that the ID is unique on the page. // (It's also okay to use a plain string and manually ensure uniqueness.) const tooltip1Id = useId('tooltip1'); const tooltip2Id = useId('tooltip2'); return ( <div> In some cases when a TooltipHost is wrapping <code>inline-block</code> or <code>inline</code> elements, the positioning of the Tooltip may be off. In these cases, it's recommended to set the TooltipHost's{' '} <code>display</code> property to <code>inline-block</code>, as in the following example. <br /> <br /> <TooltipHost content="Incorrect positioning" id={tooltip1Id} calloutProps={calloutProps}> <button style={buttonStyle} aria-describedby={tooltip1Id}> Hover for incorrect positioning </button> </TooltipHost>{' '} <TooltipHost content="Correct positioning" // This is the important part! styles={inlineBlockStyle} id={tooltip2Id} calloutProps={calloutProps} > <button style={buttonStyle} aria-describedby={tooltip2Id}> Hover for correct positioning </button> </TooltipHost> </div> ); }; ```
/content/code_sandbox/packages/react-examples/src/react/Tooltip/Tooltip.Display.Example.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
465
```xml process.on('unhandledRejection', (rej) => { console.log('unhandledRejection', rej) process.exit(1) }) export const revalidate = 0 export default function Layout({ children }) { return ( <> <p>Layout</p> {children} </> ) } export async function generateMetadata() { await new Promise((resolve) => { setTimeout(() => { process.nextTick(resolve) }, 2_000) }) return {} } ```
/content/code_sandbox/test/e2e/app-dir/metadata-thrown/app/layout.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
110
```xml // package: pulumirpc // file: pulumi/language.proto /* tslint:disable */ /* eslint-disable */ import * as grpc from "@grpc/grpc-js"; import * as pulumi_language_pb from "./language_pb"; import * as pulumi_codegen_hcl_pb from "./codegen/hcl_pb"; import * as pulumi_plugin_pb from "./plugin_pb"; import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb"; import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; interface ILanguageRuntimeService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> { getRequiredPlugins: ILanguageRuntimeService_IGetRequiredPlugins; run: ILanguageRuntimeService_IRun; getPluginInfo: ILanguageRuntimeService_IGetPluginInfo; installDependencies: ILanguageRuntimeService_IInstallDependencies; runtimeOptionsPrompts: ILanguageRuntimeService_IRuntimeOptionsPrompts; about: ILanguageRuntimeService_IAbout; getProgramDependencies: ILanguageRuntimeService_IGetProgramDependencies; runPlugin: ILanguageRuntimeService_IRunPlugin; generateProgram: ILanguageRuntimeService_IGenerateProgram; generateProject: ILanguageRuntimeService_IGenerateProject; generatePackage: ILanguageRuntimeService_IGeneratePackage; pack: ILanguageRuntimeService_IPack; } interface ILanguageRuntimeService_IGetRequiredPlugins extends grpc.MethodDefinition<pulumi_language_pb.GetRequiredPluginsRequest, pulumi_language_pb.GetRequiredPluginsResponse> { path: "/pulumirpc.LanguageRuntime/GetRequiredPlugins"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.GetRequiredPluginsRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.GetRequiredPluginsRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.GetRequiredPluginsResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.GetRequiredPluginsResponse>; } interface ILanguageRuntimeService_IRun extends grpc.MethodDefinition<pulumi_language_pb.RunRequest, pulumi_language_pb.RunResponse> { path: "/pulumirpc.LanguageRuntime/Run"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.RunRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.RunRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.RunResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.RunResponse>; } interface ILanguageRuntimeService_IGetPluginInfo extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, pulumi_plugin_pb.PluginInfo> { path: "/pulumirpc.LanguageRuntime/GetPluginInfo"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>; requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>; responseSerialize: grpc.serialize<pulumi_plugin_pb.PluginInfo>; responseDeserialize: grpc.deserialize<pulumi_plugin_pb.PluginInfo>; } interface ILanguageRuntimeService_IInstallDependencies extends grpc.MethodDefinition<pulumi_language_pb.InstallDependenciesRequest, pulumi_language_pb.InstallDependenciesResponse> { path: "/pulumirpc.LanguageRuntime/InstallDependencies"; requestStream: false; responseStream: true; requestSerialize: grpc.serialize<pulumi_language_pb.InstallDependenciesRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.InstallDependenciesRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.InstallDependenciesResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.InstallDependenciesResponse>; } interface ILanguageRuntimeService_IRuntimeOptionsPrompts extends grpc.MethodDefinition<pulumi_language_pb.RuntimeOptionsRequest, pulumi_language_pb.RuntimeOptionsResponse> { path: "/pulumirpc.LanguageRuntime/RuntimeOptionsPrompts"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.RuntimeOptionsRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.RuntimeOptionsRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.RuntimeOptionsResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.RuntimeOptionsResponse>; } interface ILanguageRuntimeService_IAbout extends grpc.MethodDefinition<pulumi_language_pb.AboutRequest, pulumi_language_pb.AboutResponse> { path: "/pulumirpc.LanguageRuntime/About"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.AboutRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.AboutRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.AboutResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.AboutResponse>; } interface ILanguageRuntimeService_IGetProgramDependencies extends grpc.MethodDefinition<pulumi_language_pb.GetProgramDependenciesRequest, pulumi_language_pb.GetProgramDependenciesResponse> { path: "/pulumirpc.LanguageRuntime/GetProgramDependencies"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.GetProgramDependenciesRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.GetProgramDependenciesRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.GetProgramDependenciesResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.GetProgramDependenciesResponse>; } interface ILanguageRuntimeService_IRunPlugin extends grpc.MethodDefinition<pulumi_language_pb.RunPluginRequest, pulumi_language_pb.RunPluginResponse> { path: "/pulumirpc.LanguageRuntime/RunPlugin"; requestStream: false; responseStream: true; requestSerialize: grpc.serialize<pulumi_language_pb.RunPluginRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.RunPluginRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.RunPluginResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.RunPluginResponse>; } interface ILanguageRuntimeService_IGenerateProgram extends grpc.MethodDefinition<pulumi_language_pb.GenerateProgramRequest, pulumi_language_pb.GenerateProgramResponse> { path: "/pulumirpc.LanguageRuntime/GenerateProgram"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.GenerateProgramRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.GenerateProgramRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.GenerateProgramResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.GenerateProgramResponse>; } interface ILanguageRuntimeService_IGenerateProject extends grpc.MethodDefinition<pulumi_language_pb.GenerateProjectRequest, pulumi_language_pb.GenerateProjectResponse> { path: "/pulumirpc.LanguageRuntime/GenerateProject"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.GenerateProjectRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.GenerateProjectRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.GenerateProjectResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.GenerateProjectResponse>; } interface ILanguageRuntimeService_IGeneratePackage extends grpc.MethodDefinition<pulumi_language_pb.GeneratePackageRequest, pulumi_language_pb.GeneratePackageResponse> { path: "/pulumirpc.LanguageRuntime/GeneratePackage"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.GeneratePackageRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.GeneratePackageRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.GeneratePackageResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.GeneratePackageResponse>; } interface ILanguageRuntimeService_IPack extends grpc.MethodDefinition<pulumi_language_pb.PackRequest, pulumi_language_pb.PackResponse> { path: "/pulumirpc.LanguageRuntime/Pack"; requestStream: false; responseStream: false; requestSerialize: grpc.serialize<pulumi_language_pb.PackRequest>; requestDeserialize: grpc.deserialize<pulumi_language_pb.PackRequest>; responseSerialize: grpc.serialize<pulumi_language_pb.PackResponse>; responseDeserialize: grpc.deserialize<pulumi_language_pb.PackResponse>; } export const LanguageRuntimeService: ILanguageRuntimeService; export interface ILanguageRuntimeServer extends grpc.UntypedServiceImplementation { getRequiredPlugins: grpc.handleUnaryCall<pulumi_language_pb.GetRequiredPluginsRequest, pulumi_language_pb.GetRequiredPluginsResponse>; run: grpc.handleUnaryCall<pulumi_language_pb.RunRequest, pulumi_language_pb.RunResponse>; getPluginInfo: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, pulumi_plugin_pb.PluginInfo>; installDependencies: grpc.handleServerStreamingCall<pulumi_language_pb.InstallDependenciesRequest, pulumi_language_pb.InstallDependenciesResponse>; runtimeOptionsPrompts: grpc.handleUnaryCall<pulumi_language_pb.RuntimeOptionsRequest, pulumi_language_pb.RuntimeOptionsResponse>; about: grpc.handleUnaryCall<pulumi_language_pb.AboutRequest, pulumi_language_pb.AboutResponse>; getProgramDependencies: grpc.handleUnaryCall<pulumi_language_pb.GetProgramDependenciesRequest, pulumi_language_pb.GetProgramDependenciesResponse>; runPlugin: grpc.handleServerStreamingCall<pulumi_language_pb.RunPluginRequest, pulumi_language_pb.RunPluginResponse>; generateProgram: grpc.handleUnaryCall<pulumi_language_pb.GenerateProgramRequest, pulumi_language_pb.GenerateProgramResponse>; generateProject: grpc.handleUnaryCall<pulumi_language_pb.GenerateProjectRequest, pulumi_language_pb.GenerateProjectResponse>; generatePackage: grpc.handleUnaryCall<pulumi_language_pb.GeneratePackageRequest, pulumi_language_pb.GeneratePackageResponse>; pack: grpc.handleUnaryCall<pulumi_language_pb.PackRequest, pulumi_language_pb.PackResponse>; } export interface ILanguageRuntimeClient { getRequiredPlugins(request: pulumi_language_pb.GetRequiredPluginsRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetRequiredPluginsResponse) => void): grpc.ClientUnaryCall; getRequiredPlugins(request: pulumi_language_pb.GetRequiredPluginsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetRequiredPluginsResponse) => void): grpc.ClientUnaryCall; getRequiredPlugins(request: pulumi_language_pb.GetRequiredPluginsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetRequiredPluginsResponse) => void): grpc.ClientUnaryCall; run(request: pulumi_language_pb.RunRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RunResponse) => void): grpc.ClientUnaryCall; run(request: pulumi_language_pb.RunRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RunResponse) => void): grpc.ClientUnaryCall; run(request: pulumi_language_pb.RunRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RunResponse) => void): grpc.ClientUnaryCall; getPluginInfo(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: pulumi_plugin_pb.PluginInfo) => void): grpc.ClientUnaryCall; getPluginInfo(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_plugin_pb.PluginInfo) => void): grpc.ClientUnaryCall; getPluginInfo(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_plugin_pb.PluginInfo) => void): grpc.ClientUnaryCall; installDependencies(request: pulumi_language_pb.InstallDependenciesRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.InstallDependenciesResponse>; installDependencies(request: pulumi_language_pb.InstallDependenciesRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.InstallDependenciesResponse>; runtimeOptionsPrompts(request: pulumi_language_pb.RuntimeOptionsRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RuntimeOptionsResponse) => void): grpc.ClientUnaryCall; runtimeOptionsPrompts(request: pulumi_language_pb.RuntimeOptionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RuntimeOptionsResponse) => void): grpc.ClientUnaryCall; runtimeOptionsPrompts(request: pulumi_language_pb.RuntimeOptionsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RuntimeOptionsResponse) => void): grpc.ClientUnaryCall; about(request: pulumi_language_pb.AboutRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.AboutResponse) => void): grpc.ClientUnaryCall; about(request: pulumi_language_pb.AboutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.AboutResponse) => void): grpc.ClientUnaryCall; about(request: pulumi_language_pb.AboutRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.AboutResponse) => void): grpc.ClientUnaryCall; getProgramDependencies(request: pulumi_language_pb.GetProgramDependenciesRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetProgramDependenciesResponse) => void): grpc.ClientUnaryCall; getProgramDependencies(request: pulumi_language_pb.GetProgramDependenciesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetProgramDependenciesResponse) => void): grpc.ClientUnaryCall; getProgramDependencies(request: pulumi_language_pb.GetProgramDependenciesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetProgramDependenciesResponse) => void): grpc.ClientUnaryCall; runPlugin(request: pulumi_language_pb.RunPluginRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.RunPluginResponse>; runPlugin(request: pulumi_language_pb.RunPluginRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.RunPluginResponse>; generateProgram(request: pulumi_language_pb.GenerateProgramRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProgramResponse) => void): grpc.ClientUnaryCall; generateProgram(request: pulumi_language_pb.GenerateProgramRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProgramResponse) => void): grpc.ClientUnaryCall; generateProgram(request: pulumi_language_pb.GenerateProgramRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProgramResponse) => void): grpc.ClientUnaryCall; generateProject(request: pulumi_language_pb.GenerateProjectRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProjectResponse) => void): grpc.ClientUnaryCall; generateProject(request: pulumi_language_pb.GenerateProjectRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProjectResponse) => void): grpc.ClientUnaryCall; generateProject(request: pulumi_language_pb.GenerateProjectRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProjectResponse) => void): grpc.ClientUnaryCall; generatePackage(request: pulumi_language_pb.GeneratePackageRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GeneratePackageResponse) => void): grpc.ClientUnaryCall; generatePackage(request: pulumi_language_pb.GeneratePackageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GeneratePackageResponse) => void): grpc.ClientUnaryCall; generatePackage(request: pulumi_language_pb.GeneratePackageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GeneratePackageResponse) => void): grpc.ClientUnaryCall; pack(request: pulumi_language_pb.PackRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.PackResponse) => void): grpc.ClientUnaryCall; pack(request: pulumi_language_pb.PackRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.PackResponse) => void): grpc.ClientUnaryCall; pack(request: pulumi_language_pb.PackRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.PackResponse) => void): grpc.ClientUnaryCall; } export class LanguageRuntimeClient extends grpc.Client implements ILanguageRuntimeClient { constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>); public getRequiredPlugins(request: pulumi_language_pb.GetRequiredPluginsRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetRequiredPluginsResponse) => void): grpc.ClientUnaryCall; public getRequiredPlugins(request: pulumi_language_pb.GetRequiredPluginsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetRequiredPluginsResponse) => void): grpc.ClientUnaryCall; public getRequiredPlugins(request: pulumi_language_pb.GetRequiredPluginsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetRequiredPluginsResponse) => void): grpc.ClientUnaryCall; public run(request: pulumi_language_pb.RunRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RunResponse) => void): grpc.ClientUnaryCall; public run(request: pulumi_language_pb.RunRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RunResponse) => void): grpc.ClientUnaryCall; public run(request: pulumi_language_pb.RunRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RunResponse) => void): grpc.ClientUnaryCall; public getPluginInfo(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: pulumi_plugin_pb.PluginInfo) => void): grpc.ClientUnaryCall; public getPluginInfo(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_plugin_pb.PluginInfo) => void): grpc.ClientUnaryCall; public getPluginInfo(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_plugin_pb.PluginInfo) => void): grpc.ClientUnaryCall; public installDependencies(request: pulumi_language_pb.InstallDependenciesRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.InstallDependenciesResponse>; public installDependencies(request: pulumi_language_pb.InstallDependenciesRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.InstallDependenciesResponse>; public runtimeOptionsPrompts(request: pulumi_language_pb.RuntimeOptionsRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RuntimeOptionsResponse) => void): grpc.ClientUnaryCall; public runtimeOptionsPrompts(request: pulumi_language_pb.RuntimeOptionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RuntimeOptionsResponse) => void): grpc.ClientUnaryCall; public runtimeOptionsPrompts(request: pulumi_language_pb.RuntimeOptionsRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.RuntimeOptionsResponse) => void): grpc.ClientUnaryCall; public about(request: pulumi_language_pb.AboutRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.AboutResponse) => void): grpc.ClientUnaryCall; public about(request: pulumi_language_pb.AboutRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.AboutResponse) => void): grpc.ClientUnaryCall; public about(request: pulumi_language_pb.AboutRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.AboutResponse) => void): grpc.ClientUnaryCall; public getProgramDependencies(request: pulumi_language_pb.GetProgramDependenciesRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetProgramDependenciesResponse) => void): grpc.ClientUnaryCall; public getProgramDependencies(request: pulumi_language_pb.GetProgramDependenciesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetProgramDependenciesResponse) => void): grpc.ClientUnaryCall; public getProgramDependencies(request: pulumi_language_pb.GetProgramDependenciesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GetProgramDependenciesResponse) => void): grpc.ClientUnaryCall; public runPlugin(request: pulumi_language_pb.RunPluginRequest, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.RunPluginResponse>; public runPlugin(request: pulumi_language_pb.RunPluginRequest, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>): grpc.ClientReadableStream<pulumi_language_pb.RunPluginResponse>; public generateProgram(request: pulumi_language_pb.GenerateProgramRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProgramResponse) => void): grpc.ClientUnaryCall; public generateProgram(request: pulumi_language_pb.GenerateProgramRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProgramResponse) => void): grpc.ClientUnaryCall; public generateProgram(request: pulumi_language_pb.GenerateProgramRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProgramResponse) => void): grpc.ClientUnaryCall; public generateProject(request: pulumi_language_pb.GenerateProjectRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProjectResponse) => void): grpc.ClientUnaryCall; public generateProject(request: pulumi_language_pb.GenerateProjectRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProjectResponse) => void): grpc.ClientUnaryCall; public generateProject(request: pulumi_language_pb.GenerateProjectRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GenerateProjectResponse) => void): grpc.ClientUnaryCall; public generatePackage(request: pulumi_language_pb.GeneratePackageRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GeneratePackageResponse) => void): grpc.ClientUnaryCall; public generatePackage(request: pulumi_language_pb.GeneratePackageRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GeneratePackageResponse) => void): grpc.ClientUnaryCall; public generatePackage(request: pulumi_language_pb.GeneratePackageRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.GeneratePackageResponse) => void): grpc.ClientUnaryCall; public pack(request: pulumi_language_pb.PackRequest, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.PackResponse) => void): grpc.ClientUnaryCall; public pack(request: pulumi_language_pb.PackRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.PackResponse) => void): grpc.ClientUnaryCall; public pack(request: pulumi_language_pb.PackRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: pulumi_language_pb.PackResponse) => void): grpc.ClientUnaryCall; } ```
/content/code_sandbox/sdk/nodejs/proto/language_grpc_pb.d.ts
xml
2016-10-31T21:02:47
2024-08-16T19:47:04
pulumi
pulumi/pulumi
20,743
5,082
```xml import Vex from "vexflow"; import VF = Vex.Flow; import { Staff } from "../../VoiceData/Staff"; import { SourceMeasure } from "../../VoiceData/SourceMeasure"; import { VexFlowMeasure } from "./VexFlowMeasure"; import { VexFlowStaffEntry } from "./VexFlowStaffEntry"; import { VexFlowConverter } from "./VexFlowConverter"; import { StaffLine } from "../StaffLine"; import { GraphicalVoiceEntry } from "../GraphicalVoiceEntry"; import { VexFlowVoiceEntry } from "./VexFlowVoiceEntry"; import { Arpeggio } from "../../VoiceData/Arpeggio"; import { Voice } from "../../VoiceData/Voice"; import log from "loglevel"; export class VexFlowTabMeasure extends VexFlowMeasure { constructor(staff: Staff, sourceMeasure: SourceMeasure = undefined, staffLine: StaffLine = undefined) { super(staff, sourceMeasure, staffLine); this.isTabMeasure = true; } /** * Reset all the geometric values and parameters of this measure and put it in an initialized state. * This is needed to evaluate a measure a second time by system builder. */ public resetLayout(): void { // Take into account some space for the begin and end lines of the stave // Will be changed when repetitions will be implemented //this.beginInstructionsWidth = 20 / UnitInPixels; //this.endInstructionsWidth = 20 / UnitInPixels; const stafflineCount: number = this.ParentStaff.StafflineCount ?? 6; // if undefined, 6 by default (same as Vexflow default) this.stave = new VF.TabStave(0, 0, 0, { space_above_staff_ln: 0, space_below_staff_ln: 0, num_lines: stafflineCount }); // also see VexFlowMusicSheetDrawer.drawSheet() for some other vexflow default value settings (like default font scale) this.updateInstructionWidth(); } public graphicalMeasureCreatedCalculations(): void { for (let idx: number = 0, len: number = this.staffEntries.length; idx < len; ++idx) { const graphicalStaffEntry: VexFlowStaffEntry = (this.staffEntries[idx] as VexFlowStaffEntry); // create vex flow Notes: for (const gve of graphicalStaffEntry.graphicalVoiceEntries) { if (gve.notes[0].sourceNote.isRest()) { const ghostNotes: VF.GhostNote[] = VexFlowConverter.GhostNotes(gve.notes[0].sourceNote.Length); (gve as VexFlowVoiceEntry).vfStaveNote = ghostNotes[0]; (gve as VexFlowVoiceEntry).vfGhostNotes = ghostNotes; // we actually need multiple ghost notes sometimes, see #1062 Sep. 23 2021 comment } else { (gve as VexFlowVoiceEntry).vfStaveNote = VexFlowConverter.CreateTabNote(gve); } } } this.finalizeTuplets(); // this is necessary for x-alignment even when we don't want to show tuplet brackets or numbers const voices: Voice[] = this.getVoicesWithinMeasure(); for (const voice of voices) { if (!voice) { continue; } // add a vexFlow voice for this voice: this.vfVoices[voice.VoiceId] = new VF.Voice({ beat_value: this.parentSourceMeasure.Duration.Denominator, num_beats: this.parentSourceMeasure.Duration.Numerator, resolution: VF.RESOLUTION, }).setMode(VF.Voice.Mode.SOFT); const restFilledEntries: GraphicalVoiceEntry[] = this.getRestFilledVexFlowStaveNotesPerVoice(voice); // create vex flow voices and add tickables to it: for (const voiceEntry of restFilledEntries) { if (voiceEntry.parentVoiceEntry) { if (voiceEntry.parentVoiceEntry.IsGrace && !voiceEntry.parentVoiceEntry.GraceAfterMainNote) { continue; } } const vexFlowVoiceEntry: VexFlowVoiceEntry = voiceEntry as VexFlowVoiceEntry; if (voiceEntry.notes.length === 0 || !voiceEntry.notes[0] || !voiceEntry.notes[0].sourceNote.PrintObject) { // GhostNote, don't add modifiers like in-measure clefs if (vexFlowVoiceEntry.vfGhostNotes) { for (const ghostNote of vexFlowVoiceEntry.vfGhostNotes) { this.vfVoices[voice.VoiceId].addTickable(ghostNote); } } else { this.vfVoices[voice.VoiceId].addTickable(vexFlowVoiceEntry.vfStaveNote); } continue; } // don't add non-tab fingerings for tab measures (doesn't work yet for tabnotes in vexflow, see VexFlowMeasure.createFingerings()) // if (voiceEntry.parentVoiceEntry && this.rules.RenderFingerings) { // this.createFingerings(voiceEntry); // } // add Arpeggio if (voiceEntry.parentVoiceEntry && voiceEntry.parentVoiceEntry.Arpeggio) { const arpeggio: Arpeggio = voiceEntry.parentVoiceEntry.Arpeggio; // TODO right now our arpeggio object has all arpeggio notes from arpeggios across all voices. // see VoiceGenerator. Doesn't matter for Vexflow for now though if (voiceEntry.notes && voiceEntry.notes.length > 1) { const type: VF.Stroke.Type = VexFlowConverter.StrokeTypeFromArpeggioType(arpeggio.type); const stroke: VF.Stroke = new VF.Stroke(type, { all_voices: this.rules.ArpeggiosGoAcrossVoices // default: false. This causes arpeggios to always go across all voices, which is often unwanted. // also, this can cause infinite height of stroke, see #546 }); //if (arpeggio.notes.length === vexFlowVoiceEntry.notes.length) { // different workaround for endless y bug if (this.rules.RenderArpeggios) { vexFlowVoiceEntry.vfStaveNote.addStroke(0, stroke); } } else { log.debug(`[OSMD] arpeggio in measure ${this.MeasureNumber} could not be drawn. voice entry had less than two notes, arpeggio is likely between voice entries, not currently supported in Vexflow.`); // TODO: create new arpeggio with all the arpeggio's notes (arpeggio.notes), perhaps with GhostNotes in a new vfStaveNote. not easy. } } if (vexFlowVoiceEntry.vfGhostNotes) { for (const ghostNote of vexFlowVoiceEntry.vfGhostNotes) { this.vfVoices[voice.VoiceId].addTickable(ghostNote); } } else { this.vfVoices[voice.VoiceId].addTickable(vexFlowVoiceEntry.vfStaveNote); } } } //this.createArticulations(); //this.createOrnaments(); } } ```
/content/code_sandbox/src/MusicalScore/Graphical/VexFlow/VexFlowTabMeasure.ts
xml
2016-02-08T15:47:01
2024-08-16T17:49:53
opensheetmusicdisplay
opensheetmusicdisplay/opensheetmusicdisplay
1,416
1,583
```xml export * from './components/DrawerFooter/index'; ```
/content/code_sandbox/packages/react-components/react-drawer/library/src/DrawerFooter.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
11
```xml /* This file is a part of @mdn/browser-compat-data * See LICENSE file for more information. */ import fs from 'node:fs/promises'; import { formatStats, Stats } from './stats.js'; import { formatChanges, Changes } from './changes.js'; const dirname = new URL('.', import.meta.url); /** * Get the release notes to add * @param thisVersion The current version number * @param changes The changes to format * @param stats The statistics from the changes * @param versionBump Which part of the semver has been bumped * @returns The Markdown-formatted release notes */ export const getNotes = ( thisVersion: string, changes: Changes, stats: Stats, versionBump: string, ): string => [ `## [${thisVersion}](path_to_url{thisVersion})`, '', `${new Date().toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric', })}`, '', ...(versionBump !== 'patch' ? [ '### Notable changes', '', '<!-- TODO: Fill me out with the appropriate information about breaking changes or new backwards-compatible additions! -->', '', ] : []), formatChanges(changes), formatStats(stats), ].join('\n'); /** * Add new release notes to the file * @param notesToAdd The notes to add to the release notes * @param versionBump Which part of the semver has been bumped * @param lastVersion The previous version number */ export const addNotes = async ( notesToAdd: string, versionBump: string, lastVersion: string, ): Promise<void> => { const notesFilepath = new URL('../../RELEASE_NOTES.md', dirname); const currentNotes = (await fs.readFile(notesFilepath)) .toString() .split('\n'); let newNotes = ''; // If we are doing a major version bump, move old changelog results to another file if (versionBump === 'major') { const lastMajorVersion = lastVersion.split('.')[0]; const olderVersionsHeader = '## Older Versions'; const oldChangelog = `# @mdn/browser-compat-data release notes (v${lastMajorVersion}.x)\n\n` + currentNotes .slice( 2, currentNotes.findIndex((l) => l === olderVersionsHeader), ) .join('\n'); await fs.writeFile( new URL(`../../release_notes/v${lastMajorVersion}.md`, dirname), oldChangelog, 'utf8', ); newNotes = [ currentNotes[0], currentNotes[1], notesToAdd, olderVersionsHeader, '', `- [v${lastMajorVersion}.x](./release_notes/v${lastMajorVersion}.md)`, ...currentNotes.slice( currentNotes.findIndex((l) => l === olderVersionsHeader) + 2, ), ].join('\n'); } else { newNotes = [ currentNotes[0], currentNotes[1], notesToAdd, ...currentNotes.slice(2), ].join('\n'); } await fs.writeFile(notesFilepath, newNotes); }; ```
/content/code_sandbox/scripts/release/notes.ts
xml
2016-03-29T18:50:07
2024-08-16T11:36:33
browser-compat-data
mdn/browser-compat-data
4,876
708
```xml <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command> <login> <clID>NewRegistrar</clID> <PW>foo-BAR2</PW> <options> <version>1.0</version> <lang>en</lang> </options> <svcs> <objURI>urn:ietf:params:xml:ns:host-1.0</objURI> <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI> <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI> <svcExtension> <extURI>urn:ietf:params:xml:ns:launch-1.0</extURI> <extURI>urn:ietf:params:xml:ns:rgp-1.0</extURI> </svcExtension> </svcs> </login> <clTRID>ABC-12345</clTRID> </command> </epp> ```
/content/code_sandbox/core/src/test/resources/google/registry/model/eppinput/login_wrong_case.xml
xml
2016-02-29T20:16:48
2024-08-15T19:49:29
nomulus
google/nomulus
1,685
238
```xml import {fastMap} from 'src/utils/fast' import {manager} from 'src/worker/JobManager' import { TimeSeriesServerResponse, TimeSeriesToTableGraphReturnType, } from 'src/types/series' import {DygraphSeries, DygraphValue} from 'src/types' export interface TimeSeriesToDyGraphReturnType { labels: string[] timeSeries: DygraphValue[][] dygraphSeries: DygraphSeries unsupportedValue?: any } export const timeSeriesToDygraph = async ( raw: TimeSeriesServerResponse[], pathname: string = '' ): Promise<TimeSeriesToDyGraphReturnType> => { const result = await manager.timeSeriesToDygraph(raw, pathname) const {timeSeries} = result let unsupportedValue: any const newTimeSeries = fastMap<DygraphValue[], DygraphValue[]>( timeSeries, ([time, ...values]) => { if (unsupportedValue === undefined) { unsupportedValue = values.find(x => x !== null && typeof x !== 'number') } return [new Date(time), ...values] } ) return {...result, timeSeries: newTimeSeries, unsupportedValue} } export const timeSeriesToTableGraph = async ( raw: TimeSeriesServerResponse[] ): Promise<TimeSeriesToTableGraphReturnType> => { return await manager.timeSeriesToTableGraph(raw) } ```
/content/code_sandbox/ui/src/utils/timeSeriesTransformers.ts
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
307
```xml import { G2Spec, ELEMENT_CLASS_NAME } from '../../../src'; import { step, disableDelay } from './utils'; export function penguinsPointHighlight(): G2Spec { return { type: 'point', data: { type: 'fetch', value: 'data/penguins.csv', }, encode: { color: 'species', x: 'culmen_length_mm', y: 'culmen_depth_mm', }, state: { active: { backgroundTransform: 'scale(3, 3)', backgroundFill: 'red' }, }, interaction: { elementHighlight: { background: true, }, }, }; } penguinsPointHighlight.preprocess = disableDelay; penguinsPointHighlight.steps = ({ canvas }) => { const { document } = canvas; const elements = document.getElementsByClassName(ELEMENT_CLASS_NAME); const [e] = elements; return [step(e, 'pointerover')]; }; ```
/content/code_sandbox/__tests__/plots/interaction/penguins-point-highlight.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
206
```xml import { jsx } from '../../../src'; import { Canvas, Chart, Interval, Axis } from '../../../src'; import { createContext, delay } from '../../util'; const context = createContext(); const data = [ { genre: 'Sports', sold: 275 }, { genre: 'Strategy', sold: 115 }, { genre: 'Action', sold: 120 }, { genre: 'Shooter', sold: 350 }, { genre: 'Other', sold: -110 }, ]; describe('Interval', () => { it('render', async () => { const ref = {}; const { type, props } = ( <Canvas context={context} pixelRatio={1}> <Chart data={data}> <Axis field="genre" /> <Axis field="sold" min={0} /> <Interval // ref={ ref } x="genre" y="sold" color="genre" // onPress={ (ev) => { // const { points, geometry } = ev || {}; // const point = points[0]; // const records = geometry.getSnapRecords(point); // console.log(records); // } } /> {/* <Tooltip geometryRef={ ref } records={ [{ x: 179.5, y: 280 }] } /> */} </Chart> </Canvas> ); const canvas = new Canvas(props); await canvas.render(); await delay(1000); expect(context).toMatchImageSnapshot(); }); it('startOnZero', async () => { const { props } = ( <Canvas context={context} pixelRatio={1}> <Chart data={data}> <Axis field="genre" /> <Axis field="sold" min={0} /> <Interval startOnZero={false} x="genre" y="sold" color="genre" /> </Chart> </Canvas> ); const canvas = new Canvas(props); await canvas.render(); await delay(1000); expect(context).toMatchImageSnapshot(); }); it('x scale timeCat', async () => { const data = [ { time: '2016-08-08 00:00:00', tem: 10, }, { time: '2016-08-08 00:10:00', tem: 22, }, { time: '2016-08-08 00:30:00', tem: 20, }, { time: '2016-08-09 00:35:00', tem: 26, }, { time: '2016-08-09 01:00:00', tem: 20, }, ]; const context = createContext('x scale timeCat'); const chartRef = { current: null }; const { offsetWidth } = document.body; const height = offsetWidth * 0.75; const { props } = ( <Canvas context={context} pixelRatio={1} width={offsetWidth} height={height}> <Chart ref={chartRef} data={data} scale={{ time: { type: 'timeCat', tickCount: 3, }, tem: { tickCount: 5, }, }} > <Axis field="time" /> <Axis field="tem" /> <Interval x="time" y="tem" /> </Chart> </Canvas> ); const canvas = new Canvas(props); await canvas.render(); await delay(0); const timeScale = chartRef.current.scale.getScale('time'); const { range } = timeScale; expect(range[0]).toBeGreaterThan(0); expect(range[1]).toBeLessThan(1); }); }); ```
/content/code_sandbox/packages/f2/test/components/interval/interval.test.tsx
xml
2016-08-29T06:26:23
2024-08-16T15:50:14
F2
antvis/F2
7,877
829
```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 isUppercase = require( './index' ); // TESTS // // The function returns a boolean... { isUppercase( 'salt and light' ); // $ExpectType boolean isUppercase( 'World' ); // $ExpectType boolean } // The compiler throws an error if the function is provided an unsupported number of arguments... { isUppercase(); // $ExpectError isUppercase( 'salt and light', 123 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/assert/is-uppercase/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
159
```xml import type {AndroidPermissionMap} from './permissions.android'; import type {WindowsPermissionMap} from './permissions.windows'; const IOS = Object.freeze({ APP_TRACKING_TRANSPARENCY: 'ios.permission.APP_TRACKING_TRANSPARENCY', BLUETOOTH: 'ios.permission.BLUETOOTH', CALENDARS: 'ios.permission.CALENDARS', CALENDARS_WRITE_ONLY: 'ios.permission.CALENDARS_WRITE_ONLY', CAMERA: 'ios.permission.CAMERA', CONTACTS: 'ios.permission.CONTACTS', FACE_ID: 'ios.permission.FACE_ID', LOCATION_ALWAYS: 'ios.permission.LOCATION_ALWAYS', LOCATION_WHEN_IN_USE: 'ios.permission.LOCATION_WHEN_IN_USE', MEDIA_LIBRARY: 'ios.permission.MEDIA_LIBRARY', MICROPHONE: 'ios.permission.MICROPHONE', MOTION: 'ios.permission.MOTION', PHOTO_LIBRARY: 'ios.permission.PHOTO_LIBRARY', PHOTO_LIBRARY_ADD_ONLY: 'ios.permission.PHOTO_LIBRARY_ADD_ONLY', REMINDERS: 'ios.permission.REMINDERS', SIRI: 'ios.permission.SIRI', SPEECH_RECOGNITION: 'ios.permission.SPEECH_RECOGNITION', STOREKIT: 'ios.permission.STOREKIT', } as const); export type IOSPermissionMap = typeof IOS; export const PERMISSIONS = Object.freeze({ ANDROID: {} as AndroidPermissionMap, IOS, WINDOWS: {} as WindowsPermissionMap, } as const); ```
/content/code_sandbox/src/permissions.ios.ts
xml
2016-03-24T16:33:42
2024-08-15T16:56:05
react-native-permissions
zoontek/react-native-permissions
4,008
318
```xml export * from 'rxjs-compat/operator/let'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/operator/let.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
12
```xml /** * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ const VERTICAL_GAP = 10 const HORIZONTAL_OFFSET = 5 export function setFloatingElemPosition( targetRect: ClientRect | null, floatingElem: HTMLElement, anchorElem: HTMLElement, verticalGap: number = VERTICAL_GAP, horizontalOffset: number = HORIZONTAL_OFFSET, ): void { const scrollerElem = anchorElem.parentElement if (targetRect === null || !scrollerElem) { floatingElem.style.opacity = '0' floatingElem.style.transform = 'translate(-10000px, -10000px)' return } const floatingElemRect = floatingElem.getBoundingClientRect() const anchorElementRect = anchorElem.getBoundingClientRect() const editorScrollerRect = scrollerElem.getBoundingClientRect() let top = targetRect.top - floatingElemRect.height - verticalGap let left = targetRect.left - horizontalOffset if (top < editorScrollerRect.top) { top += floatingElemRect.height + targetRect.height + verticalGap * 2 } if (left + floatingElemRect.width > editorScrollerRect.right) { left = editorScrollerRect.right - floatingElemRect.width - horizontalOffset } top -= anchorElementRect.top left -= anchorElementRect.left floatingElem.style.opacity = '1' floatingElem.style.transform = `translate(${left}px, ${top}px)` } ```
/content/code_sandbox/packages/web/src/javascripts/Components/SuperEditor/Lexical/Utils/setFloatingElemPosition.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
323
```xml /// /// /// /// path_to_url /// /// Unless required by applicable law or agreed to in writing, software /// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. /// import { BackgroundSettings, BackgroundType, cssUnit, Font } from '@shared/models/widget-settings.models'; export interface LabelCardWidgetSettings { autoScale: boolean; label: string; labelFont: Font; labelColor: string; showIcon: boolean; icon: string; iconSize: number; iconSizeUnit: cssUnit; iconColor: string; background: BackgroundSettings; padding: string; } export const labelCardWidgetDefaultSettings: LabelCardWidgetSettings = { autoScale: true, label: 'Thermostat', labelFont: { family: 'Roboto', size: 20, sizeUnit: 'px', style: 'normal', weight: '400', lineHeight: '24px' }, labelColor: 'rgba(0, 0, 0, 0.87)', showIcon: true, icon: 'thermostat', iconSize: 24, iconSizeUnit: 'px', iconColor: '#5469FF', background: { type: BackgroundType.color, color: '#fff', overlay: { enabled: false, color: 'rgba(255,255,255,0.72)', blur: 3 } }, padding: '12px' }; ```
/content/code_sandbox/ui-ngx/src/app/modules/home/components/widget/lib/cards/label-card-widget.models.ts
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
324
```xml // Types import {TimeRange} from 'src/types' import {CEOInitialState} from 'src/dashboards/reducers/cellEditorOverlay' export interface State { cellEditorOverlay: CEOInitialState } export enum ActionType { ClearCEO = 'CLEAR_CEO', UpdateEditorTimeRange = 'UPDATE_EDITOR_TIME_RANGE', } export type Action = ClearCEOAction | UpdateEditorTimeRangeAction export interface ClearCEOAction { type: ActionType.ClearCEO } export interface UpdateEditorTimeRangeAction { type: ActionType.UpdateEditorTimeRange payload: { timeRange: TimeRange } } export const clearCEO = (): ClearCEOAction => ({ type: ActionType.ClearCEO, }) ```
/content/code_sandbox/ui/src/dashboards/actions/cellEditorOverlay.ts
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
149
```xml /** @internal */ declare class A { } export { A as B } export { A as C } /** @public */ declare class X { } export { X } export { X as Y } export { } ```
/content/code_sandbox/build-tests/api-extractor-scenarios/etc/exportDuplicate/rollup.d.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
44
```xml /// <reference types="@remix-run/dev" /> /// <reference types="@remix-run/node/globals" /> ```
/content/code_sandbox/packages/remix/test/fixtures-legacy/14-node-linker-hoisted/apps/remix/remix.env.d.ts
xml
2016-09-09T01:12:08
2024-08-16T17:39:45
vercel
vercel/vercel
12,545
25
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:background="@drawable/shadow_1" android:backgroundTint="@color/black" android:gravity="center_horizontal" tools:targetApi="lollipop"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:orientation="horizontal"> <ImageView android:id="@+id/VideoThumbnail" android:layout_width="0dp" android:layout_height="fill_parent" android:layout_weight="1" android:contentDescription="@string/empty_description" /> <GridLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_margin="12dp" android:layout_weight="1" android:padding="0dp"> <TextView android:id="@+id/VideoTitle" android:layout_width="182dp" android:layout_height="wrap_content" android:layout_column="0" android:layout_gravity="top" android:layout_margin="0dp" android:layout_marginStart="5dp" android:layout_marginTop="0dp" android:layout_row="0" android:gravity="start" android:text="@string/text_title" android:textColor="#ff4a4a4a" android:textSize="15sp" android:textStyle="bold" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_column="0" android:layout_columnSpan="2" android:layout_row="1" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="2dp" android:layout_marginTop="10dp" android:background="#c7cfcecf" android:orientation="horizontal" /> <TextView android:id="@+id/VideoDescription" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:layout_marginStart="5dp" android:layout_marginTop="10dp" android:maxLines="10" android:text="@string/empty_description" android:textAppearance="?android:attr/textAppearanceSmall" android:textSize="15sp" /> </LinearLayout> </GridLayout> </LinearLayout> </LinearLayout> ```
/content/code_sandbox/Android/app/src/main/res/layout/shop_listitem.xml
xml
2016-01-30T13:42:30
2024-08-12T19:21:10
Travel-Mate
project-travel-mate/Travel-Mate
1,292
589
```xml import { inject, injectable } from 'inversify'; import { ServiceIdentifiers } from '../../container/ServiceIdentifiers'; import { TNodeWithLexicalScope } from '../../types/node/TNodeWithLexicalScope'; import { IOptions } from '../../interfaces/options/IOptions'; import { IRandomGenerator } from '../../interfaces/utils/IRandomGenerator'; import { ISetUtils } from '../../interfaces/utils/ISetUtils'; import { alphabetString } from '../../constants/AlphabetString'; import { alphabetStringUppercase } from '../../constants/AlphabetStringUppercase'; import { numbersString } from '../../constants/NumbersString'; import { reservedIdentifierNames } from '../../constants/ReservedIdentifierNames'; import { AbstractIdentifierNamesGenerator } from './AbstractIdentifierNamesGenerator'; import { NodeLexicalScopeUtils } from '../../node/NodeLexicalScopeUtils'; @injectable() export class MangledIdentifierNamesGenerator extends AbstractIdentifierNamesGenerator { /** * @type {number} */ private static readonly maxRegenerationAttempts: number = 20; /** * @type {string} */ private static readonly initMangledNameCharacter: string = '9'; /** * @type {string[]} */ private static readonly nameSequence: string[] = [ ...`${numbersString}${alphabetString}${alphabetStringUppercase}` ]; /** * Reserved JS words with length of 2-4 symbols that can be possible generated with this replacer * + reserved DOM names like `Set`, `Map`, `Date`, etc * * @type {Set<string>} */ private static readonly reservedNamesSet: Set<string> = new Set(reservedIdentifierNames); /** * @type {string} */ private lastMangledName: string = MangledIdentifierNamesGenerator.initMangledNameCharacter; /** * @type {WeakMap<TNodeWithLexicalScope, string>} */ private readonly lastMangledNameForScopeMap: WeakMap <TNodeWithLexicalScope, string> = new WeakMap(); /** * @type {WeakMap<string, string>} */ private readonly lastMangledNameForLabelMap: Map <string, string> = new Map(); /** * @type {ISetUtils} */ private readonly setUtils: ISetUtils; /** * @param {IRandomGenerator} randomGenerator * @param {IOptions} options * @param {ISetUtils} setUtils */ public constructor ( @inject(ServiceIdentifiers.IRandomGenerator) randomGenerator: IRandomGenerator, @inject(ServiceIdentifiers.IOptions) options: IOptions, @inject(ServiceIdentifiers.ISetUtils) setUtils: ISetUtils, ) { super(randomGenerator, options); this.setUtils = setUtils; } /** * Generates next name based on a global previous mangled name * We can ignore nameLength parameter here, it hasn't sense with this generator * * @param {number} nameLength * @returns {string} */ public generateNext (nameLength?: number): string { const identifierName: string = this.generateNewMangledName(this.lastMangledName); this.updatePreviousMangledName(identifierName); this.preserveName(identifierName); return identifierName; } /** * @param {number} nameLength * @returns {string} */ public generateForGlobalScope (nameLength?: number): string { const prefix: string = this.options.identifiersPrefix ? `${this.options.identifiersPrefix}` : ''; const identifierName: string = this.generateNewMangledName( this.lastMangledName, (newIdentifierName: string) => { const identifierNameWithPrefix: string = `${prefix}${newIdentifierName}`; return this.isValidIdentifierName(identifierNameWithPrefix); } ); const identifierNameWithPrefix: string = `${prefix}${identifierName}`; this.updatePreviousMangledName(identifierName); this.preserveName(identifierNameWithPrefix); return identifierNameWithPrefix; } /** * @param {TNodeWithLexicalScope} lexicalScopeNode * @param {number} nameLength * @returns {string} */ public generateForLexicalScope (lexicalScopeNode: TNodeWithLexicalScope, nameLength?: number): string { const lexicalScopes: TNodeWithLexicalScope[] = [ lexicalScopeNode, ...NodeLexicalScopeUtils.getLexicalScopes(lexicalScopeNode) ]; const lastMangledNameForScope: string = this.getLastMangledNameForScopes(lexicalScopes); const identifierName: string = this.generateNewMangledName( lastMangledNameForScope, (newIdentifierName: string) => this.isValidIdentifierNameInLexicalScopes(newIdentifierName, lexicalScopes) ); this.lastMangledNameForScopeMap.set(lexicalScopeNode, identifierName); this.updatePreviousMangledName(identifierName); this.preserveNameForLexicalScope(identifierName, lexicalScopeNode); return identifierName; } /** * @param {string} label * @param {number} nameLength * @returns {string} */ public generateForLabel (label: string, nameLength?: number): string { const lastMangledNameForLabel: string = this.getLastMangledNameForLabel(label); const identifierName: string = this.generateNewMangledName(lastMangledNameForLabel); this.updatePreviousMangledNameForLabel(identifierName, label, lastMangledNameForLabel); return identifierName; } /** * @param {string} nextName * @param {string} prevName * @returns {boolean} */ // eslint-disable-next-line complexity public isIncrementedMangledName (nextName: string, prevName: string): boolean { if (nextName === prevName) { return false; } const nextNameLength: number = nextName.length; const prevNameLength: number = prevName.length; if (nextNameLength !== prevNameLength) { return nextNameLength > prevNameLength; } const nameSequence: string[] = this.getNameSequence(); for (let i: number = 0; i < nextNameLength; i++) { const nextNameCharacter: string = nextName[i]; const prevNameCharacter: string = prevName[i]; if (nextNameCharacter === prevNameCharacter) { continue; } const indexOfNextNameCharacter: number = nameSequence.indexOf(nextNameCharacter); const indexOfPrevNameCharacter: number = nameSequence.indexOf(prevNameCharacter); return indexOfNextNameCharacter > indexOfPrevNameCharacter; } throw new Error('Something goes wrong during comparison of mangled names'); } /** * @param {string} mangledName * @returns {boolean} */ public override isValidIdentifierName (mangledName: string): boolean { return super.isValidIdentifierName(mangledName) && !MangledIdentifierNamesGenerator.reservedNamesSet.has(mangledName); } /** * @returns {string[]} */ protected getNameSequence (): string[] { return MangledIdentifierNamesGenerator.nameSequence; } /** * @param {string} name */ protected updatePreviousMangledName (name: string): void { if (!this.isIncrementedMangledName(name, this.lastMangledName)) { return; } this.lastMangledName = name; } /** * @param {string} name * @param {string} label * @param {string} lastMangledNameForLabel */ protected updatePreviousMangledNameForLabel (name: string, label: string, lastMangledNameForLabel: string): void { if (!this.isIncrementedMangledName(name, lastMangledNameForLabel)) { return; } this.lastMangledNameForLabelMap.set(label, name); } /** * @param {string} previousMangledName * @param {(newIdentifierName: string) => boolean} validationFunction * @returns {string} */ protected generateNewMangledName ( previousMangledName: string, validationFunction?: (newIdentifierName: string) => boolean ): string { const generateNewMangledName = (name: string, regenerationAttempt: number = 0): string => { /** * Attempt to decrease amount of regeneration tries because of large preserved names set * When we reached the limit, we're trying to generate next mangled name based on the latest * preserved name */ if (regenerationAttempt > MangledIdentifierNamesGenerator.maxRegenerationAttempts) { const lastPreservedName = this.setUtils.getLastElement(this.preservedNamesSet); if (lastPreservedName) { return this.generateNewMangledName(lastPreservedName); } } const nameSequence: string[] = this.getNameSequence(); const nameSequenceLength: number = nameSequence.length; const nameLength: number = name.length; const zeroSequence: (num: number) => string = (num: number): string => { return '0'.repeat(num); }; let index: number = nameLength - 1; do { const character: string = name[index]; const indexInSequence: number = nameSequence.indexOf(character); const lastNameSequenceIndex: number = nameSequenceLength - 1; if (indexInSequence !== lastNameSequenceIndex) { const previousNamePart: string = name.slice(0, index); const nextCharacter: string = nameSequence[indexInSequence + 1]; const zeroSequenceLength: number = nameLength - (index + 1); const zeroSequenceCharacters: string = zeroSequence(zeroSequenceLength); return previousNamePart + nextCharacter + zeroSequenceCharacters; } --index; } while (index >= 0); const firstLetterCharacter: string = nameSequence[numbersString.length]; return `${firstLetterCharacter}${zeroSequence(nameLength)}`; }; let identifierName: string = previousMangledName; let isValidIdentifierName: boolean; do { identifierName = generateNewMangledName(identifierName); isValidIdentifierName = validationFunction?.(identifierName) ?? this.isValidIdentifierName(identifierName); } while (!isValidIdentifierName); return identifierName; } /** * @param {TNodeWithLexicalScope[]} lexicalScopeNodes * @returns {string} */ private getLastMangledNameForScopes (lexicalScopeNodes: TNodeWithLexicalScope[]): string { for (const lexicalScope of lexicalScopeNodes) { const lastMangledName: string | null = this.lastMangledNameForScopeMap.get(lexicalScope) ?? null; if (!lastMangledName) { continue; } return lastMangledName; } return MangledIdentifierNamesGenerator.initMangledNameCharacter; } /** * @param {string} label * @returns {string} */ private getLastMangledNameForLabel (label: string): string { const lastMangledName: string | null = this.lastMangledNameForLabelMap.get(label) ?? null; return lastMangledName ?? MangledIdentifierNamesGenerator.initMangledNameCharacter; } } ```
/content/code_sandbox/src/generators/identifier-names-generators/MangledIdentifierNamesGenerator.ts
xml
2016-05-09T08:16:53
2024-08-16T19:43:07
javascript-obfuscator
javascript-obfuscator/javascript-obfuscator
13,358
2,493
```xml import step2SVG from '@assets/images/icn-receive.svg'; import step1SVG from '@assets/images/icn-send.svg'; import { REPV1UUID, REPV2UUID } from '@config'; import { translateRaw } from '@translations'; import { ITokenMigrationConfig, ITxType, TAddress } from '@types'; import { createApproveTx, createRepMigrationTx } from './helpers'; export const repTokenMigrationConfig: ITokenMigrationConfig = { title: translateRaw('REP Token Migration'), toContractAddress: '0x221657776846890989a759BA2973e427DfF5C9bB' as TAddress, fromContractAddress: '0x1985365e9f78359a9B6AD760e32412f4a445E862' as TAddress, fromAssetUuid: REPV1UUID, toAssetUuid: REPV2UUID, formActionBtn: translateRaw('REP_TOKEN_MIGRATION'), formAmountTooltip: translateRaw('REP_TOKEN_MIGRATION_AMOUNT_DISABLED_TOOLTIP'), receiptTitle: translateRaw('REP_TOKEN_MIGRATION_RECEIPT'), txConstructionConfigs: [ { txType: ITxType.APPROVAL, stepTitle: translateRaw('APPROVE_REP_TOKEN_MIGRATION'), stepContent: translateRaw('REP_TOKEN_MIGRATION_STEP1_TEXT'), actionBtnText: translateRaw('APPROVE_REP_TOKEN_MIGRATION'), stepSvg: step1SVG, constructTxFn: createApproveTx }, { txType: ITxType.REP_TOKEN_MIGRATION, stepTitle: translateRaw('COMPLETE_REP_TOKEN_MIGRATION'), stepContent: translateRaw('REP_TOKEN_MIGRATION_STEP2_TEXT'), actionBtnText: translateRaw('CONFIRM_TRANSACTION'), stepSvg: step2SVG, constructTxFn: createRepMigrationTx } ] }; export const TOKEN_MIGRATION_GAS_LIMIT = 500000; ```
/content/code_sandbox/src/features/TokenMigration/RepTokenMigration/config.ts
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
435
```xml train_net: "models/pascal_voc/VGG_CNN_M_1024/faster_rcnn_alt_opt/stage2_rpn_train.pt" base_lr: 0.001 lr_policy: "step" gamma: 0.1 stepsize: 60000 display: 20 average_loss: 100 momentum: 0.9 weight_decay: 0.0005 # We disable standard caffe solver snapshotting and implement our own snapshot # function snapshot: 0 # We still use the snapshot prefix, though snapshot_prefix: "vgg_cnn_m_1024_rpn" ```
/content/code_sandbox/models/pascal_voc/VGG_CNN_M_1024/faster_rcnn_alt_opt/stage2_rpn_solver60k80k.pt
xml
2016-09-12T12:24:20
2024-06-30T13:31:45
py-R-FCN
YuwenXiong/py-R-FCN
1,044
135
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { html } from 'lit'; import '@cds/core/button-inline/register.js'; import { spreadProps, getElementStorybookArgs } from '@cds/core/internal'; export default { title: 'Stories/Button Inline', component: 'cds-button-inline', parameters: { options: { showPanel: true }, }, }; export function API(args: any) { return html` <cds-demo inline-block> <cds-button-inline ...="${spreadProps(getElementStorybookArgs(args))}" @click=${() => console.log('click')}> ${args.default} </cds-button-inline> </cds-demo> `; } /** @website */ export function actions() { return html` <p cds-text="body"> Birth Rig Veda great turbulent clouds corpus callosum preserve and cherish that pale blue dot prime number. Finite but unbounded a still more glorious dawn awaits intelligent beings colonies vastness is bearable only through love concept of the number one. Rich in heavy atoms bits of moving fluff intelligent beings hearts of the stars stirred by starlight hundreds of thousands? Vanquish the impossible brain is the seed of intelligence star stuff harvesting star light the only home we've ever known citizens of distant epochs the only home we've ever known and billions upon billions upon billions upon billions upon billions upon billions upon billions. <cds-button-inline>Ohai</cds-button-inline> </p> `; } /** @website */ export function disabledInlineButton() { return html` <p cds-text="body"> A still more glorious dawn awaits intelligent beings colonies vastness is bearable only through love. <cds-button-inline disabled>Ohai<cds-icon shape="angle" direction="right"></cds-icon></cds-button-inline> </p> `; } /** @website */ export function various() { return html` <div cds-layout="vertical gap:md"> <p cds-text="body"> Hearts of the stars stirred by starlight hundreds of thousands? <cds-button-inline>Ohai</cds-button-inline> <cds-button-inline>Kthxbye</cds-button-inline> </p> <p cds-text="body"> Birth Rig Veda great turbulent clouds corpus callosum preserve and cherish that pale blue dot prime number. Finite but unbounded a still more glorious dawn awaits intelligent beings colonies vastness is bearable only through love concept of the number one. Rich in heavy atoms bits of moving fluff intelligent beings hearts of the stars stirred by starlight hundreds of thousands? Vanquish the impossible brain is the seed of intelligence star stuff harvesting star light the only home we've ever known citizens of distant epochs the only home we've ever known and billions upon billions upon billions upon billions upon billions upon billions upon billions. <cds-button-inline>Ohai</cds-button-inline> <cds-button-inline>Kthxbye</cds-button-inline> </p> </div> `; } /** @website */ export function withIcons() { return html` <div cds-layout="vertical gap:md"> <p cds-text="body"> Finite but unbounded a still more glorious dawn awaits. <cds-button-inline><cds-icon shape="user"></cds-icon>Ohai</cds-button-inline> <cds-button-inline><cds-icon shape="user"></cds-icon>Kthxbye</cds-button-inline> </p> <p cds-text="body"> Finite but unbounded a still more glorious dawn awaits. <cds-button-inline>Ohai<cds-icon shape="angle" direction="right"></cds-icon></cds-button-inline> <cds-button-inline>Kthxbye<cds-icon shape="angle" direction="right"></cds-icon></cds-button-inline> </p> <p cds-text="body"> Finite but unbounded a still more glorious dawn awaits. <cds-button-inline ><cds-icon shape="user"></cds-icon>Ohai<cds-icon shape="angle" direction="right"></cds-icon ></cds-button-inline> <cds-button-inline ><cds-icon shape="user"></cds-icon>Kthxbye<cds-icon shape="angle" direction="right"></cds-icon ></cds-button-inline> </p> </div> `; } /** @website */ export function inlineButtonLinks() { return html` <div cds-layout="vertical gap:lg"> <p cds-text="body"> To create links you can use the <a href="javascript:void(0)" cds-text="link">cds-text="link"</a> attribute. </p> <p cds-text="body"> Optionally you can wrap the <a href="javascript:void(0)" ><cds-button-inline><cds-icon shape="user"></cds-icon>inline button</cds-button-inline></a > with an <a href="javascript:void(0)" ><cds-button-inline disabled>anchor<cds-icon direction="down" shape="angle"></cds-icon></cds-button-inline ></a> for improved icon alignment. </p> </div> `; } export function customStyles() { return html` <style> .btn-branding { --color: #74178b; --font-size: 0.9rem; --text-decoration: underline; } .btn-branding:hover { --color: red; --text-decoration: underline; } .btn-branding:active { --color: black; --text-decoration: underline; } </style> <cds-button-inline class="btn-branding"><cds-icon shape="user"></cds-icon>Helloworld</cds-button-inline> `; } ```
/content/code_sandbox/packages/core/src/button-inline/button-inline.stories.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
1,312
```xml export const enum eSettingManagementRouteNames { Settings = 'AbpSettingManagement::Settings', } ```
/content/code_sandbox/npm/ng-packs/packages/setting-management/config/src/lib/enums/route-names.ts
xml
2016-12-03T22:56:24
2024-08-16T16:24:05
abp
abpframework/abp
12,657
22
```xml import mutations from './mutations'; import queries from './queries'; import subscriptions from './subscriptions'; export { queries, mutations, subscriptions }; ```
/content/code_sandbox/packages/ui-tasks/src/boards/graphql/index.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
27
```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</modelVersion> <groupId>com.fuzzer</groupId> <artifactId>project-parent</artifactId> <version>0.1.0</version> <packaging>pom</packaging> <modules> <module>google-http-java-client</module> <module>fuzz-targets</module> </modules> </project> ```
/content/code_sandbox/projects/g-http-java-client/project-parent/pom.xml
xml
2016-07-20T19:39:50
2024-08-16T10:54:09
oss-fuzz
google/oss-fuzz
10,251
133
```xml import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { first } from '../../asynciterable/first.js'; import { OptionalFindOptions } from '../../asynciterable/findoptions.js'; /** * @ignore */ export async function firstProto<T>( this: AsyncIterable<T>, options?: OptionalFindOptions<T> ): Promise<T | undefined> { return first(this, options as any); } AsyncIterableX.prototype.first = firstProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX<T> { first: typeof firstProto; } } ```
/content/code_sandbox/src/add/asynciterable-operators/first.ts
xml
2016-02-22T20:04:19
2024-08-09T18:46:41
IxJS
ReactiveX/IxJS
1,319
132
```xml import "./msflowsdk-1.1.js"; import { SPHttpClient, SPHttpClientResponse, ISPHttpClientOptions } from "@microsoft/sp-http"; import { WebPartContext } from "@microsoft/sp-webpart-base"; /** * Services */ export default class services { private _context: WebPartContext; constructor(private context: WebPartContext) { this._context = this.context; } /** * Gets access token * @returns access token */ public async getAccessToken():Promise<string> { const body: ISPHttpClientOptions = { body: JSON.stringify({ resource: "path_to_url" }) }; let token: SPHttpClientResponse = await this._context.spHttpClient.post( `${this._context.pageContext.web.absoluteUrl}/_api/SP.OAuth.Token/Acquire`, SPHttpClient.configurations.v1, body ); let tokenJson = await token.json(); return tokenJson.access_token; } } ```
/content/code_sandbox/samples/js-myflows/src/services/services.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
214
```xml import { Observable, Subscriber } from "../Observable"; describe("Observable", () => { describe("subclassing by non-class constructor functions", () => { function check(constructor: new <T>(sub: Subscriber<T>) => Observable<T>) { constructor.prototype = Object.create(Observable.prototype, { constructor: { value: constructor, }, }); const subscriber: Subscriber<number> = (observer) => { observer.next(123); observer.complete(); }; const obs = new constructor(subscriber) as Observable<number>; expect(typeof (obs as any).sub).toBe("function"); expect((obs as any).sub).toBe(subscriber); expect(obs).toBeInstanceOf(Observable); expect(obs).toBeInstanceOf(constructor); expect(obs.constructor).toBe(constructor); return new Promise((resolve, reject) => { obs.subscribe({ next: resolve, error: reject, }); }).then((value) => { expect(value).toBe(123); }); } function newify( constructor: <T>(sub: Subscriber<T>) => void ): new <T>(sub: Subscriber<T>) => Observable<T> { return constructor as any; } type ObservableWithSub<T> = Observable<T> & { sub?: Subscriber<T> }; it("simulating super(sub) with Observable.call(this, sub)", () => { function SubclassWithSuperCall<T>( this: ObservableWithSub<T>, sub: Subscriber<T> ) { const self = Observable.call(this, sub) || this; self.sub = sub; return self; } return check(newify(SubclassWithSuperCall)); }); it("simulating super(sub) with Observable.apply(this, arguments)", () => { function SubclassWithSuperApplyArgs<T>( this: ObservableWithSub<T>, _sub: Subscriber<T> ) { const self = Observable.apply(this, arguments) || this; self.sub = _sub; return self; } return check(newify(SubclassWithSuperApplyArgs)); }); it("simulating super(sub) with Observable.apply(this, [sub])", () => { function SubclassWithSuperApplyArray<T>( this: ObservableWithSub<T>, ...args: [Subscriber<T>] ) { const self = Observable.apply(this, args) || this; self.sub = args[0]; return self; } return check(newify(SubclassWithSuperApplyArray)); }); }); }); ```
/content/code_sandbox/src/utilities/observables/__tests__/Observable.ts
xml
2016-02-26T20:25:00
2024-08-16T10:56:57
apollo-client
apollographql/apollo-client
19,304
539
```xml import React from 'react'; type IconProps = React.SVGProps<SVGSVGElement>; export declare const IcArrowOutSquare: (props: IconProps) => React.JSX.Element; export {}; ```
/content/code_sandbox/packages/icons/lib/icArrowOutSquare.d.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
44
```xml import { Button } from "@/components/ui/button" import Link from "next/link" export default function HomePage() { return ( <div className="flex min-h-full items-center justify-center"> <Link href="/links"> <Button>Go to main page</Button> </Link> </div> ) } ```
/content/code_sandbox/web/app/page.tsx
xml
2016-08-08T16:09:17
2024-08-16T16:23:04
learn-anything.xyz
learn-anything/learn-anything.xyz
15,943
71
```xml <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#FFF" android:pathData="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" /> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_web.xml
xml
2016-02-22T10:00:46
2024-08-16T15:37:50
Images-to-PDF
Swati4star/Images-to-PDF
1,174
741
```xml import { IRuleMetadata, RuleFailure } from 'tslint'; import { AbstractRule } from 'tslint/lib/rules'; import { SourceFile } from 'typescript'; import { InjectableMetadata } from './angular'; import { NgWalker } from './angular/ngWalker'; export class Rule extends AbstractRule { static readonly metadata: IRuleMetadata = { description: "Enforces classes decorated with @Injectable to use the 'providedIn' property.", options: null, optionsDescription: 'Not configurable.', rationale: "Using the 'providedIn' property makes classes decorated with @Injectable tree shakeable.", ruleName: 'use-injectable-provided-in', type: 'functionality', typescriptOnly: true, }; static readonly FAILURE_STRING = "Classes decorated with @Injectable should use the 'providedIn' property"; apply(sourceFile: SourceFile): RuleFailure[] { const walker = new Walker(sourceFile, this.getOptions()); return this.applyWithWalker(walker); } } class Walker extends NgWalker { protected visitNgInjectable(metadata: InjectableMetadata): void { this.validateInjectable(metadata); super.visitNgInjectable(metadata); } private validateInjectable(metadata: InjectableMetadata): void { if (metadata.providedIn) return; this.addFailureAtNode(metadata.decorator, Rule.FAILURE_STRING); } } ```
/content/code_sandbox/src/useInjectableProvidedInRule.ts
xml
2016-02-10T17:22:40
2024-08-14T16:41:28
codelyzer
mgechev/codelyzer
2,446
293
```xml /* eslint-disable @typescript-eslint/ban-ts-comment */ //@ts-ignore import gql from 'gql'; //@ts-ignore const A1 = gql` query a { a } `; //@ts-ignore const A2 = gql` query a { a } `; ```
/content/code_sandbox/packages/presets/client/tests/fixtures/duplicate-operation.ts
xml
2016-12-05T19:15:11
2024-08-15T14:56:08
graphql-code-generator
dotansimha/graphql-code-generator
10,759
63
```xml #! /usr/bin/env node import program from "commander" import setSharedArgs, { SharedCLI } from "./utils/sharedDangerfileArgs" import { runRunner } from "./ci/resetStatus" program.usage("[options]").description("Reset the status of a GitHub PR to pending.") setSharedArgs(program).parse(process.argv) const app = program as any as SharedCLI runRunner(app) ```
/content/code_sandbox/source/commands/danger-reset-status.ts
xml
2016-08-20T12:57:06
2024-08-13T14:00:02
danger-js
danger/danger-js
5,229
83