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 <resources> <string name="app_name">AndroidCameraXOpenCV</string> </resources> ```
/content/code_sandbox/Android/AndroidCameraXOpenCV/app/src/main/res/values/strings.xml
xml
2016-05-02T05:43:21
2024-08-16T06:51:39
journaldev
WebJournal/journaldev
1,314
23
```xml import deepFreeze from 'deep-freeze-strict'; import { type BlankNode } from './BlankNode'; import getSafeOwnPropertyNames from './getSafeOwnPropertyNames'; import isBlankNode from './isBlankNode'; import isUnconnectedBlankNode from './isUnconnectedBlankNode'; import visitOnce from './visitOnce'; function dereferenceBlankNodesInline(objects: object[]): void { const blankNodeIdMap = new Map<string, BlankNode>(); const objectsToVisit1: any[] = [objects]; const shouldVisit1 = visitOnce<object>(); while (objectsToVisit1.length) { const object = objectsToVisit1.shift(); if (!object) { continue; } const indices = getSafeOwnPropertyNames(object); for (const index of indices) { // eslint-disable-next-line security/detect-object-injection const value = object[index]; if (isBlankNode(value) && !isUnconnectedBlankNode(value)) { blankNodeIdMap.set(value['@id'], value); } shouldVisit1(value) && objectsToVisit1.push(value); } } const objectsToVisit2: unknown[] = [objects]; const shouldVisit2 = visitOnce<object>(); while (objectsToVisit2.length) { const object = objectsToVisit2.shift(); if (!object) { continue; } const indices = getSafeOwnPropertyNames(object); for (const index of indices) { // eslint-disable-next-line security/detect-object-injection const value = object[index]; if (isBlankNode(value) && isUnconnectedBlankNode(value)) { const blankNode = blankNodeIdMap.get(value['@id']); if (blankNode) { // eslint-disable-next-line security/detect-object-injection object[index] = blankNode; } } else { shouldVisit2(value) && objectsToVisit2.push(value); } } } } /** * Dereferences all unconnected blank nodes to their corresponding blank node. This is done by replacing all unconnected blank nodes in a graph and purposefully introduce cyclic dependencies to help querying the graph. * * This function will always return a new instance of all objects in the graph. * * This function assumes the graph conforms to JSON-LD, notably: * * - For nodes that share the same blank node identifier, one of them should be connected and the other must be unconnected * - If none of them are connected node, these unconnected blank node will not be replaced * * @see path_to_url#data-model-overview * @param graph A list of nodes in the graph. * @returns A structured clone of graph with unconnected blank nodes replaced by their corresponding blank node. */ export default function dereferenceBlankNodes<T extends object>(graph: T[]): readonly T[] { const nextObjects = structuredClone(graph); dereferenceBlankNodesInline(nextObjects); return deepFreeze(nextObjects); } ```
/content/code_sandbox/packages/component/src/Utils/JSONLinkedData/dereferenceBlankNodes.ts
xml
2016-07-07T23:16:57
2024-08-16T00:12:37
BotFramework-WebChat
microsoft/BotFramework-WebChat
1,567
626
```xml import {SubModule} from "./submodule/SubModule.js"; import {Module} from "@tsed/di"; import {M1Ctrl1} from "./controllers/M1Ctrl1.js"; @Module({ mount: { "/m1": [M1Ctrl1] }, imports: [SubModule] }) export class Module1 {} ```
/content/code_sandbox/packages/platform/common/src/utils/__mock__/module1/Module1.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
73
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE language SYSTEM "language.dtd"> <language name="Pango" version="5" kateversion="2.4" section="Markup" extensions="" mimetype="" author="Jonathan Schmidt-Domnin &lt;devel@the-user.org&gt;" license="LGPL" priority="10"> <highlighting> <!-- NOTE: Currently, all keyword lists are already matched in the RegExp rules below. This could be heavily improved, any takers? <list name="tags"> <item>&lt;span</item> <item>&lt;b</item> <item>&lt;big</item> <item>&lt;i</item> <item>&lt;s</item> <item>&lt;sub</item> <item>&lt;sup</item> <item>&lt;small</item> <item>&lt;tt</item> <item>&lt;u</item> </list> <list name="endtags"> <item>&lt;/span&gt;</item> <item>&lt;/b&gt;</item> <item>&lt;/big&gt;</item> <item>&lt;/i&gt;</item> <item>&lt;/s&gt;</item> <item>&lt;/sub&gt;</item> <item>&lt;/sup&gt;</item> <item>&lt;/small&gt;</item> <item>&lt;/tt&gt;</item> <item>&lt;/u&gt;</item> </list> <list name="int_attributes"> <item>size=</item> <item>font_size=</item> <item>rise=</item> <item>letter_spacing=</item> </list> <list name="plain_attributes"> <item>font=</item> <item>font_desc=</item> <item>font_family=</item> <item>face=</item> <item>lang=</item> </list> <list name="color_attributes"> <item>strikethrough_color=</item> <item>foreground=</item> <item>fgcolor=</item> <item>color=</item> <item>background=</item> <item>bgcolor=</item> <item>underline_color=</item> </list> --> <contexts> <context name="Start" attribute="Normal Text" lineEndContext="#stay"> <IncludeRules context="FindPango" /> </context> <context name="FindPango" attribute="Normal Text" lineEndContext="#stay"> <DetectSpaces/> <RegExpr attribute="Element" context="#stay" String="&lt;/(span|b|big|i|s|sub|sup|small|tt|u)&gt;" endRegion="pango_node" /> <RegExpr attribute="Element" context="FindAttributes" String="&lt;(span|b|big|i|s|sub|sup|small|tt|u)" beginRegion="pango_node" /> <DetectIdentifier /> </context> <context name="FindAttributes" attribute="Normal Text" lineEndContext="#stay"> <DetectSpaces/> <RegExpr attribute="Key" context="InGravity" String="gravity=" /> <RegExpr attribute="Key" context="InGravityHint" String="gravity_hint=" /> <RegExpr attribute="Key" context="InStretch" String="(font_)?stretch=" /> <RegExpr attribute="Key" context="InBoolean" String="(strikethrough|fallback)=" /> <RegExpr attribute="Key" context="InStyle" String="(font_)?style=" /> <RegExpr attribute="Key" context="InUnderline" String="underline=" /> <RegExpr attribute="Key" context="InVariant" String="(font_)?variant=" /> <RegExpr attribute="Key" context="InWeight" String="(font_)?weight=" /> <RegExpr attribute="Key" context="InInt" String="(size|font_size|rise|letter_spacing)=" /> <RegExpr attribute="Key" context="InString" String="(font|font_desc|font_family|face|lang)=" /> <RegExpr attribute="Key" context="InColor" String="(strikethrough_color|foreground|fgcolor|color|background|bgcolor|underline_color)=" /> <DetectChar attribute="Element" context="#pop" char="&gt;" /> <RegExpr attribute="Error" context="#stay" String="\S" /> </context> <context name="InGravity" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(south|east|north|west|auto)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InGravityHint" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(natural|strong|line)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InStretch" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(ultracondensed|extracondensed|condensed|semicondensed|normal|semiexpanded|expanded|extraexpanded|ultraexpanded)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InBoolean" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(false|true)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InStyle" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(normal|oblique|italic)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InUnderline" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(none|single|double|low|error)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InVariant" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'(normal|smallcaps)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InWeight" attribute="String" lineEndContext="#stay"> <RegExpr attribute="Decimal" context="#pop" String="'[0-9]*'" /> <RegExpr attribute="String" context="#pop" String="'(ultralight|light|normal|bold|ultrabold|heavy)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InColor" attribute="Color" lineEndContext="#stay"> <RegExpr attribute="Color" context="#pop" String="'((#[0-9a-fA-F]{3}){1,4}|snow|ghost white|GhostWhite|white smoke|WhiteSmoke|gainsboro|floral white|FloralWhite|old lace|OldLace|linen|antique white|AntiqueWhite|papaya whip|PapayaWhip|blanched almond|BlanchedAlmond|bisque|peach puff|PeachPuff|navajo white|NavajoWhite|moccasin|cornsilk|ivory|lemon chiffon|LemonChiffon|seashell|honeydew|mint cream|MintCream|azure|alice blue|AliceBlue|lavender|lavender blush|LavenderBlush|misty rose|MistyRose|white|black|dark slate gray|DarkSlateGray|dark slate grey|DarkSlateGrey|dim gray|DimGray|dim grey|DimGrey|slate gray|SlateGray|slate grey|SlateGrey|light slate gray|LightSlateGray|light slate grey|LightSlateGrey|gray|grey|light grey|LightGrey|light gray|LightGray|midnight blue|MidnightBlue|navy|navy blue|NavyBlue|cornflower blue|CornflowerBlue|dark slate blue|DarkSlateBlue|slate blue|SlateBlue|medium slate blue|MediumSlateBlue|light slate blue|LightSlateBlue|medium blue|MediumBlue|royal blue|RoyalBlue|blue|dodger blue|DodgerBlue|deep sky blue|DeepSkyBlue|sky blue|SkyBlue|light sky blue|LightSkyBlue|steel blue|SteelBlue|light steel blue|LightSteelBlue|light blue|LightBlue|powder blue|PowderBlue|pale turquoise|PaleTurquoise|dark turquoise|DarkTurquoise|medium turquoise|MediumTurquoise|turquoise|cyan|light cyan|LightCyan|cadet blue|CadetBlue|medium aquamarine|MediumAquamarine|aquamarine|dark green|DarkGreen|dark olive green|DarkOliveGreen|dark sea green|DarkSeaGreen|sea green|SeaGreen|medium sea green|MediumSeaGreen|light sea green|LightSeaGreen|pale green|PaleGreen|spring green|SpringGreen|lawn green|LawnGreen|green|chartreuse|medium spring green|MediumSpringGreen|green yellow|GreenYellow|lime green|LimeGreen|yellow green|YellowGreen|forest green|ForestGreen|olive drab|OliveDrab|dark khaki|DarkKhaki|khaki|pale goldenrod|PaleGoldenrod|light goldenrod yellow|LightGoldenrodYellow|light yellow|LightYellow|yellow|gold|light goldenrod|LightGoldenrod|goldenrod|dark goldenrod|DarkGoldenrod|rosy brown|RosyBrown|indian red|IndianRed|saddle brown|SaddleBrown|sienna|peru|burlywood|beige|wheat|sandy brown|SandyBrown|tan|chocolate|firebrick|brown|dark salmon|DarkSalmon|salmon|light salmon|LightSalmon|orange|dark orange|DarkOrange|coral|light coral|LightCoral|tomato|orange red|OrangeRed|red|hot pink|HotPink|deep pink|DeepPink|pink|light pink|LightPink|pale violet red|PaleVioletRed|maroon|medium violet red|MediumVioletRed|violet red|VioletRed|magenta|violet|plum|orchid|medium orchid|MediumOrchid|dark orchid|DarkOrchid|dark violet|DarkViolet|blue violet|BlueViolet|purple|medium purple|MediumPurple|thistle|snow1|snow2|snow3|snow4|seashell1|seashell2|seashell3|seashell4|AntiqueWhite1|AntiqueWhite2|AntiqueWhite3|AntiqueWhite4|bisque1|bisque2|bisque3|bisque4|PeachPuff1|PeachPuff2|PeachPuff3|PeachPuff4|NavajoWhite1|NavajoWhite2|NavajoWhite3|NavajoWhite4|LemonChiffon1|LemonChiffon2|LemonChiffon3|LemonChiffon4|cornsilk1|cornsilk2|cornsilk3|cornsilk4|ivory1|ivory2|ivory3|ivory4|honeydew1|honeydew2|honeydew3|honeydew4|LavenderBlush1|LavenderBlush2|LavenderBlush3|LavenderBlush4|MistyRose1|MistyRose2|MistyRose3|MistyRose4|azure1|azure2|azure3|azure4|SlateBlue1|SlateBlue2|SlateBlue3|SlateBlue4|RoyalBlue1|RoyalBlue2|RoyalBlue3|RoyalBlue4|blue1|blue2|blue3|blue4|DodgerBlue1|DodgerBlue2|DodgerBlue3|DodgerBlue4|SteelBlue1|SteelBlue2|SteelBlue3|SteelBlue4|DeepSkyBlue1|DeepSkyBlue2|DeepSkyBlue3|DeepSkyBlue4|SkyBlue1|SkyBlue2|SkyBlue3|SkyBlue4|LightSkyBlue1|LightSkyBlue2|LightSkyBlue3|LightSkyBlue4|SlateGray1|SlateGray2|SlateGray3|SlateGray4|LightSteelBlue1|LightSteelBlue2|LightSteelBlue3|LightSteelBlue4|LightBlue1|LightBlue2|LightBlue3|LightBlue4|LightCyan1|LightCyan2|LightCyan3|LightCyan4|PaleTurquoise1|PaleTurquoise2|PaleTurquoise3|PaleTurquoise4|CadetBlue1|CadetBlue2|CadetBlue3|CadetBlue4|turquoise1|turquoise2|turquoise3|turquoise4|cyan1|cyan2|cyan3|cyan4|DarkSlateGray1|DarkSlateGray2|DarkSlateGray3|DarkSlateGray4|aquamarine1|aquamarine2|aquamarine3|aquamarine4|DarkSeaGreen1|DarkSeaGreen2|DarkSeaGreen3|DarkSeaGreen4|SeaGreen1|SeaGreen2|SeaGreen3|SeaGreen4|PaleGreen1|PaleGreen2|PaleGreen3|PaleGreen4|SpringGreen1|SpringGreen2|SpringGreen3|SpringGreen4|green1|green2|green3|green4|chartreuse1|chartreuse2|chartreuse3|chartreuse4|OliveDrab1|OliveDrab2|OliveDrab3|OliveDrab4|DarkOliveGreen1|DarkOliveGreen2|DarkOliveGreen3|DarkOliveGreen4|khaki1|khaki2|khaki3|khaki4|LightGoldenrod1|LightGoldenrod2|LightGoldenrod3|LightGoldenrod4|LightYellow1|LightYellow2|LightYellow3|LightYellow4|yellow1|yellow2|yellow3|yellow4|gold1|gold2|gold3|gold4|goldenrod1|goldenrod2|goldenrod3|goldenrod4|DarkGoldenrod1|DarkGoldenrod2|DarkGoldenrod3|DarkGoldenrod4|RosyBrown1|RosyBrown2|RosyBrown3|RosyBrown4|IndianRed1|IndianRed2|IndianRed3|IndianRed4|sienna1|sienna2|sienna3|sienna4|burlywood1|burlywood2|burlywood3|burlywood4|wheat1|wheat2|wheat3|wheat4|tan1|tan2|tan3|tan4|chocolate1|chocolate2|chocolate3|chocolate4|firebrick1|firebrick2|firebrick3|firebrick4|brown1|brown2|brown3|brown4|salmon1|salmon2|salmon3|salmon4|LightSalmon1|LightSalmon2|LightSalmon3|LightSalmon4|orange1|orange2|orange3|orange4|DarkOrange1|DarkOrange2|DarkOrange3|DarkOrange4|coral1|coral2|coral3|coral4|tomato1|tomato2|tomato3|tomato4|OrangeRed1|OrangeRed2|OrangeRed3|OrangeRed4|red1|red2|red3|red4|DeepPink1|DeepPink2|DeepPink3|DeepPink4|HotPink1|HotPink2|HotPink3|HotPink4|pink1|pink2|pink3|pink4|LightPink1|LightPink2|LightPink3|LightPink4|PaleVioletRed1|PaleVioletRed2|PaleVioletRed3|PaleVioletRed4|maroon1|maroon2|maroon3|maroon4|VioletRed1|VioletRed2|VioletRed3|VioletRed4|magenta1|magenta2|magenta3|magenta4|orchid1|orchid2|orchid3|orchid4|plum1|plum2|plum3|plum4|MediumOrchid1|MediumOrchid2|MediumOrchid3|MediumOrchid4|DarkOrchid1|DarkOrchid2|DarkOrchid3|DarkOrchid4|purple1|purple2|purple3|purple4|MediumPurple1|MediumPurple2|MediumPurple3|MediumPurple4|thistle1|thistle2|thistle3|thistle4|gray0|grey0|gray1|grey1|gray2|grey2|gray3|grey3|gray4|grey4|gray5|grey5|gray6|grey6|gray7|grey7|gray8|grey8|gray9|grey9|gray10|grey10|gray11|grey11|gray12|grey12|gray13|grey13|gray14|grey14|gray15|grey15|gray16|grey16|gray17|grey17|gray18|grey18|gray19|grey19|gray20|grey20|gray21|grey21|gray22|grey22|gray23|grey23|gray24|grey24|gray25|grey25|gray26|grey26|gray27|grey27|gray28|grey28|gray29|grey29|gray30|grey30|gray31|grey31|gray32|grey32|gray33|grey33|gray34|grey34|gray35|grey35|gray36|grey36|gray37|grey37|gray38|grey38|gray39|grey39|gray40|grey40|gray41|grey41|gray42|grey42|gray43|grey43|gray44|grey44|gray45|grey45|gray46|grey46|gray47|grey47|gray48|grey48|gray49|grey49|gray50|grey50|gray51|grey51|gray52|grey52|gray53|grey53|gray54|grey54|gray55|grey55|gray56|grey56|gray57|grey57|gray58|grey58|gray59|grey59|gray60|grey60|gray61|grey61|gray62|grey62|gray63|grey63|gray64|grey64|gray65|grey65|gray66|grey66|gray67|grey67|gray68|grey68|gray69|grey69|gray70|grey70|gray71|grey71|gray72|grey72|gray73|grey73|gray74|grey74|gray75|grey75|gray76|grey76|gray77|grey77|gray78|grey78|gray79|grey79|gray80|grey80|gray81|grey81|gray82|grey82|gray83|grey83|gray84|grey84|gray85|grey85|gray86|grey86|gray87|grey87|gray88|grey88|gray89|grey89|gray90|grey90|gray91|grey91|gray92|grey92|gray93|grey93|gray94|grey94|gray95|grey95|gray96|grey96|gray97|grey97|gray98|grey98|gray99|grey99|gray100|grey100|dark grey|DarkGrey|dark gray|DarkGray|dark blue|DarkBlue|dark cyan|DarkCyan|dark magenta|DarkMagenta|dark red|DarkRed|light green|LightGreen)'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InInt" attribute="Decimal" lineEndContext="#stay"> <RegExpr attribute="Decimal" context="#pop" String="'(-?)[0-9]*'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> <context name="InString" attribute="String" lineEndContext="#stay"> <RegExpr attribute="String" context="#pop" String="'[^']*'" /> <RegExpr attribute="Error" context="#pop#pop" String="\S" /> </context> </contexts> <itemDatas> <itemData name="Normal Text" defStyleNum="dsNormal" /> <itemData name="Element" defStyleNum="dsKeyword" /> <itemData name="Key" defStyleNum="dsOthers" /> <itemData name="Decimal" defStyleNum="dsDecVal" /> <itemData name="Color" defStyleNum="dsFloat" /> <itemData name="String" defStyleNum="dsString" /> <itemData name="Error" defStyleNum="dsError" /> </itemDatas> </highlighting> <general> </general> </language> ```
/content/code_sandbox/src/data/extra/syntax-highlighting/syntax/pango.xml
xml
2016-10-05T07:24:54
2024-08-16T05:03:40
vnote
vnotex/vnote
11,687
4,748
```xml import React, { FunctionComponent, useCallback, useState } from "react"; import { graphql } from "relay-runtime"; import { useFetch, useLocal } from "coral-framework/lib/relay"; import { Spinner } from "coral-ui/components/v2"; import { NotificationsListFetchQueryResponse } from "coral-stream/__generated__/NotificationsListFetchQuery.graphql"; import { NotificationsListQueryLocal } from "coral-stream/__generated__/NotificationsListQueryLocal.graphql"; import NotificationsListFetch from "./NotificationsListFetch"; import NotificationsPaginator from "./NotificationsPaginator"; interface Props { viewerID: string; } const NotificationsListQuery: FunctionComponent<Props> = ({ viewerID }) => { const query = useFetch(NotificationsListFetch); const [shouldLoad, setShouldLoad] = useState<boolean>(true); const [queryResult, setQueryResult] = useState<NotificationsListFetchQueryResponse | null>(); const [, setLocal] = useLocal<NotificationsListQueryLocal>(graphql` fragment NotificationsListQueryLocal on Local { hasNewNotifications } `); const load = useCallback(async () => { setShouldLoad(false); setQueryResult(null); const result = await query({ viewerID }); // eslint-disable-next-line @typescript-eslint/no-unsafe-argument setQueryResult(result); }, [query, viewerID]); const reload = useCallback(async () => { await load(); setLocal({ hasNewNotifications: false }); }, [load, setLocal]); if (shouldLoad) { void load(); } if (!queryResult) { return <Spinner />; } else { return ( <NotificationsPaginator query={queryResult} viewerID={viewerID} reload={reload} /> ); } }; export default NotificationsListQuery; ```
/content/code_sandbox/client/src/core/client/stream/tabs/Notifications/NotificationsListQuery.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
388
```xml import type { ReactNode } from 'react'; import { type FC, useMemo } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import type { Dispatch } from 'redux'; import { c } from 'ttag'; import { Checkbox } from '@proton/components/components'; import { SettingsPanel } from '@proton/pass/components/Settings/SettingsPanel'; import { useFeatureFlag } from '@proton/pass/hooks/useFeatureFlag'; import { settingsEditIntent } from '@proton/pass/store/actions'; import { settingsEditRequest } from '@proton/pass/store/actions/requests'; import type { ProxiedSettings } from '@proton/pass/store/reducers/settings'; import { selectProxiedSettings, selectRequestInFlight } from '@proton/pass/store/selectors'; import type { RecursivePartial } from '@proton/pass/types'; import { PassFeature } from '@proton/pass/types/api/features'; import { BRAND_NAME, PASS_APP_NAME } from '@proton/shared/lib/constants'; import clsx from '@proton/utils/clsx'; import { PauseList } from './PauseList'; import { VaultSetting } from './VaultSetting'; type SettingDefinition = { label: string; description: string; checked: boolean; disabled?: boolean; hidden?: boolean; onChange: (value: boolean) => void; }; type SettingsSection = { label: string; description?: string; settings: SettingDefinition[]; extra?: ReactNode; }; const getSettings = (settings: ProxiedSettings, identityEnabled: boolean) => (dispatch: Dispatch): SettingsSection[] => { const onSettingsUpdate = (update: RecursivePartial<ProxiedSettings>) => dispatch(settingsEditIntent('behaviors', update)); return [ { label: c('Label').t`Autofill`, settings: [ { label: c('Label').t`Display ${PASS_APP_NAME} icon on autofillable fields`, description: c('Info') .t`You can quickly autofill your credentials by clicking on the ${PASS_APP_NAME} icon.`, checked: settings.autofill.inject, onChange: (checked) => onSettingsUpdate({ autofill: { inject: checked } }), }, { label: c('Label').t`Automatically open autofill when a login field is focused`, description: c('Info') .t`The autofill dropdown will automatically open when you click or focus on the field.`, checked: settings.autofill.openOnFocus, onChange: (checked) => onSettingsUpdate({ autofill: { openOnFocus: checked } }), }, { label: c('Label').t`Identity autofill`, description: c('Info').t`Quickly autofill your identities.`, checked: settings.autofill.identity ?? false, /** identity autofill is disabled if no injection or "open on focus" */ disabled: !(settings.autofill.inject || settings.autofill.openOnFocus), hidden: !identityEnabled, onChange: (checked) => onSettingsUpdate({ autofill: { identity: checked } }), }, { label: c('Label').t`2FA autofill`, description: c('Info').t`Quickly autofill your 2FA tokens.`, checked: settings.autofill.twofa, onChange: (checked) => onSettingsUpdate({ autofill: { twofa: checked } }), }, ], }, { label: c('Label').t`Autosave`, settings: [ { label: c('Label').t`Prompt for auto-save`, description: c('Info').t`${PASS_APP_NAME} will prompt you to save or update credentials.`, checked: settings.autosave.prompt, onChange: (checked) => onSettingsUpdate({ autosave: { prompt: checked, passwordSuggest: checked, }, }), }, { label: c('Label').t`Prompt for auto-save when generating passwords`, description: c('Info') .t`${PASS_APP_NAME} will prompt you as soon as generated passwords are autofilled.`, checked: settings.autosave.prompt && settings.autosave.passwordSuggest, disabled: !settings.autosave.prompt, onChange: (checked) => onSettingsUpdate({ autosave: { passwordSuggest: checked } }), }, ], extra: <VaultSetting onSubmit={({ shareId }) => onSettingsUpdate({ autosave: { shareId } })} />, }, { label: c('Label').t`Autosuggest`, settings: [ { label: c('Label').t`Passwords`, description: c('Info') .t`${PASS_APP_NAME} will suggest creating strong passwords on sign-up forms.`, checked: settings.autosuggest.password, onChange: (checked) => onSettingsUpdate({ autosuggest: { password: checked } }), }, { label: c('Label').t`Copy password`, description: c('Info').t`Automatically copy the generated password to the clipboard`, checked: settings.autosuggest.passwordCopy, disabled: !settings.autosuggest.password, onChange: (checked) => onSettingsUpdate({ autosuggest: { passwordCopy: checked } }), }, { label: c('Label').t`Email aliases`, description: c('Info') .t`${PASS_APP_NAME} will suggest creating an email alias on sign-up forms.`, checked: settings.autosuggest.email, onChange: (checked) => onSettingsUpdate({ autosuggest: { email: checked } }), }, ], }, { label: c('Label').t`Passkeys`, settings: [ { label: c('Label').t`Save passkeys`, description: c('Info').t`${PASS_APP_NAME} will suggest saving passkeys.`, checked: settings.passkeys.create, onChange: (checked) => onSettingsUpdate({ passkeys: { create: checked } }), }, { label: c('Label').t`Authenticate with passkeys`, description: c('Info').t`${PASS_APP_NAME} will suggest authenticating using saved passkeys`, checked: settings.passkeys.get, onChange: (checked) => onSettingsUpdate({ passkeys: { get: checked } }), }, ], }, { label: c('Label').t`Display`, settings: [ { label: c('Label').t`Show website favicons`, description: c('Info') .t`${PASS_APP_NAME} will display the item favicon via ${BRAND_NAME} anonymized image proxy.`, checked: settings.loadDomainImages, onChange: (loadDomainImages) => onSettingsUpdate({ loadDomainImages }), }, ], }, ]; }; export const Behaviors: FC = () => { const dispatch = useDispatch(); const settings = useSelector(selectProxiedSettings); const loading = useSelector(selectRequestInFlight(settingsEditRequest('behaviors'))); const identityEnabled = useFeatureFlag(PassFeature.PassIdentityV1); return ( <> {useMemo( () => getSettings(settings, identityEnabled), [settings, identityEnabled] )(dispatch).map((section, i) => ( <SettingsPanel key={`settings-section-${i}`} title={section.label}> {section.settings .filter((setting) => !setting.hidden) .map((setting, j) => ( <Checkbox key={`setting-${i}-${j}`} className={clsx(j !== section.settings.length - 1 && 'mb-4')} checked={setting.checked} disabled={setting.disabled || loading} loading={loading} onChange={() => setting.onChange(!setting.checked)} > <span> {setting.label} <span className="block color-weak text-sm">{setting.description}</span> </span> </Checkbox> ))} {section.extra && <hr className="mt-2 mb-4 border-weak" />} {section.extra} </SettingsPanel> ))} <PauseList /> </> ); }; ```
/content/code_sandbox/applications/pass-extension/src/lib/components/Settings/Behaviors.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,743
```xml import { ISPFxAdaptiveCard, BaseAdaptiveCardQuickView, IActionArguments } from "@microsoft/sp-adaptive-card-extension-base"; import { IHolidayViewAdaptiveCardExtensionProps, IHolidayViewAdaptiveCardExtensionState } from "../HolidayViewAdaptiveCardExtension"; export interface IQuickViewData { holidayTitle: string; detail: string; } export class ItemSuccessQuickView extends BaseAdaptiveCardQuickView< IHolidayViewAdaptiveCardExtensionProps, IHolidayViewAdaptiveCardExtensionState, IQuickViewData > { public get data(): IQuickViewData { return { holidayTitle: this.state.holidayItems[this.state.currentIndex].holidayTitle.label, detail: this.state.holidayItems[this.state.currentIndex].holidayDay.label + " " + this.state.holidayItems[this.state.currentIndex].holidayDate.label, }; } public onAction(action: IActionArguments): void { if (action.type === "Submit") { const { id } = action.data; if (id === "back") { this.quickViewNavigator.pop(); } } } public get template(): ISPFxAdaptiveCard { return require("./template/ItemSuccessTemplate.json"); } } ```
/content/code_sandbox/samples/react-holidays-calendar/src/adaptiveCardExtensions/holidayView/quickView/ItemSuccessQuickView.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
267
```xml import {MemoryStream} from 'xstream'; import {div, span, input, VNode} from '@cycle/dom'; import {State} from './model'; import styles from './styles'; const zeroWidthSpace = '\u200B'; function renderLeftBracket(state: State): VNode { return div(`.leftBracket.${styles.leftBracket}`, { key: `leftBracket${state.id}`, }); } function renderRightBracket(state: State): VNode { return div(`.rightBracket.${styles.rightBracket}`, { key: `rightBracket${state.id}`, }); } function isNumberHuge(num: number) { return Number(num).toFixed(0).length > 5; } function isDecimalIrrelevant(decimals: number) { return Math.abs(decimals) < 0.0000001; } function isDecimalOneDigit(decimals: number) { return Number(decimals).toFixed(2) === (Number(decimals).toFixed(1) + '0') } function isNumberLengthy(num: number){ return Number(Math.abs(num)).toFixed(0).length > 3 && Number(num).toFixed(2).length > 7; } function formatNumber(num: number): string { const decimalPart = num < 0 ? num - Math.ceil(num) : num - Math.floor(num); if (isNumberHuge(num)) return Number(num).toPrecision(3); if (isDecimalIrrelevant(decimalPart)) return Number(num).toFixed(0); if (isDecimalOneDigit(decimalPart)) return Number(num).toFixed(1); if (isNumberLengthy(num)) return Number(num).toFixed(0); return Number(num).toFixed(2); } function fontSizeFor(num: number | null) { if (num === null) return styles.cellFontSize2; const str = formatNumber(num); const len = str.length; const hasDot = str.indexOf('.') > -1; const hasMinus = str.indexOf('-') > -1; if (/^\d\.\d\de\+\d$/.test(str)) return styles.cellFontSize6; if (hasDot || hasMinus) { if (len <= 3) return styles.cellFontSize2; if (len === 4) return styles.cellFontSize3; if (len === 5) return styles.cellFontSize4; if (len === 6) return styles.cellFontSize5; if (len === 7) return styles.cellFontSize6; if (len >= 8) return styles.cellFontSize7; } else { if (len <= 2) return styles.cellFontSize2; if (len === 3) return styles.cellFontSize3; if (len === 4) return styles.cellFontSize4; if (len === 5) return styles.cellFontSize5; if (len === 6) return styles.cellFontSize6; if (len >= 7) return styles.cellFontSize7; } } function fontSizeStyleFor(num: number | null) { if (fontSizeFor(num) === styles.cellFontSize2) return styles.cell2; if (fontSizeFor(num) === styles.cellFontSize3) return styles.cell3; if (fontSizeFor(num) === styles.cellFontSize4) return styles.cell4; if (fontSizeFor(num) === styles.cellFontSize5) return styles.cell5; if (fontSizeFor(num) === styles.cellFontSize6) return styles.cell6; if (fontSizeFor(num) === styles.cellFontSize7) return styles.cell7; else return styles.cell2; } function updateFontSizeHook(prev: VNode, next?: VNode) { const vnode = next ? next : prev; if (isNaN((vnode.data as any).attrs.value)) return; if (!vnode.elm) return; const cellValue = 0 + (vnode.data as any).attrs.value; (vnode.elm as HTMLElement).style.fontSize = fontSizeFor(cellValue) + 'px'; } function renderCellAsInput(cellValue: number | null, i: number, j: number): VNode { return input(`.cell.${styles.cell}`, { key: `cell${i}-${j}`, hook: {insert: updateFontSizeHook, update: updateFontSizeHook}, attrs: { type: 'text', 'data-row': i, 'data-col': j, value: typeof cellValue === 'number' ? cellValue : void 0, }, }); } function renderCellAsSpan(cellValue: number | null, i: number, j: number): VNode { return span(`.cell.${styles.cell}.${fontSizeStyleFor(cellValue)}`, { attrs: { 'data-row': i, 'data-col': j }, }, typeof cellValue === 'number' ? [formatNumber(cellValue)] : [zeroWidthSpace]) } function renderAllCells(state: State): Array<VNode> { return state.values.rows.map((row, i) => div(`.row.${styles.row}`, {key: `row${i}`}, row.map((cellValue, j) => div('.col', {key: `col${j}`}, [ state.editable ? renderCellAsInput(cellValue, i, j) : renderCellAsSpan(cellValue, i, j) ]) )) ); } /** * Creates a visual representation ("VNode") of the state. */ export default function view(state$: MemoryStream<State>): MemoryStream<VNode> { return state$.map(state => div(`.matrix.${styles.matrix}`, {key: state.id}, [ renderLeftBracket(state), ...renderAllCells(state), renderRightBracket(state), ]) ); } ```
/content/code_sandbox/src/Matrix/view.ts
xml
2016-09-13T13:33:31
2024-08-15T13:43:45
matrixmultiplication.xyz
staltz/matrixmultiplication.xyz
1,129
1,222
```xml <vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="15" android:viewportWidth="15" android:width="34.0dp"> <path android:fillColor="@android:color/white" android:pathData="M2.55 11.76L2 9L3 8.45L3 4C3 3.45 3.45 3 4 3L11 3C11.55 3 12 3.45 12 4L12 8.45L13 9L12.44 11.78C11.66 11.26 11 11 10.45 11C9.59 11 8.6 11.33 7.5 12C6.44 11.33 5.45 11 4.55 11C3.99 11 3.32 11.25 2.55 11.76L2.55 11.76ZM11 7.91L11 4.5C11 4.22 10.78 4 10.5 4L4.5 4C4.22 4 4 4.22 4 4.5L4 7.91L7.5 6L11 7.91ZM5.5 1L9.5 1C9.78 1 10 1.22 10 1.5L10 2.5L5 2.5L5 1.5C5 1.22 5.22 1 5.5 1ZM10.5 12C10.89 12 11.23 12.11 11.62 12.32C11.69 12.35 11.76 12.39 11.85 12.44C11.96 12.51 12.01 12.54 12.06 12.57C12.6 12.87 12.24 13.82 11.56 13.43C11.52 13.41 11.45 13.37 11.35 13.31C11.27 13.26 11.21 13.23 11.15 13.2C10.89 13.06 10.7 13 10.5 13C9.6 13 8.7 13.3 7.78 13.92L7.5 14.1L7.22 13.92C6.3 13.3 5.4 13 4.5 13C4.37 13 4.24 13.03 4.07 13.11C3.93 13.17 3.8 13.25 3.47 13.44C2.78 13.82 2.43 12.87 2.98 12.56C3.3 12.38 3.48 12.28 3.65 12.2C3.94 12.07 4.21 12 4.5 12C5.51 12 6.51 12.31 7.5 12.91C8.49 12.31 9.49 12 10.5 12Z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_preset_temaki_ferry.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
761
```xml // See LICENSE.txt for license information. import React from 'react'; import {View} from 'react-native'; import Markdown from '@components/markdown'; import {makeStyleSheetFromTheme} from '@utils/theme'; type Props = { channelId: string; location: string; theme: Theme; value: string; } const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => { return { container: { marginTop: 3, flex: 1, flexDirection: 'row', }, title: { color: theme.centerChannelColor, fontFamily: 'OpenSans-SemiBold', marginBottom: 5, fontSize: 14, lineHeight: 20, }, link: { color: theme.linkColor, }, }; }); const EmbedTitle = ({channelId, location, theme, value}: Props) => { const style = getStyleSheet(theme); return ( <View style={style.container}> <Markdown channelId={channelId} disableHashtags={true} disableAtMentions={true} disableChannelLink={true} disableGallery={true} location={location} autolinkedUrlSchemes={[]} mentionKeys={[]} theme={theme} value={value} baseTextStyle={style.title} textStyles={{link: style.link}} /> </View> ); }; export default EmbedTitle; ```
/content/code_sandbox/app/components/post_list/post/body/content/embedded_bindings/embed_title.tsx
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
306
```xml import { Route, Routes, useLocation } from "react-router-dom"; import React from "react"; import asyncComponent from "modules/common/components/AsyncComponent"; import queryString from "query-string"; const Profile = asyncComponent( () => import(/* webpackChunkName: "Settings - Profile" */ "./containers/Profile") ); const ProfileComponent = () => { const location = useLocation(); const queryParams = queryString.parse(location.search); return <Profile queryParams={queryParams} />; }; const routes = () => ( <Routes> <Route path="/profile" key="/profile" element={<ProfileComponent />} /> </Routes> ); export default routes; ```
/content/code_sandbox/packages/core-ui/src/modules/settings/profile/routes.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
138
```xml import * as React from 'react'; import gql from 'graphql-tag'; export default class extends React.Component<{}, {}> { public render() { return <div />; } } export const pageQuery = gql` query IndexQuery { site { siteMetadata { title } } } `; // export const pageQuery = gql` // query IndexQuery { // site { // siteMetadata { // title // } // } // } // `; ```
/content/code_sandbox/packages/load/tests/loaders/schema/test-files/12.tsx
xml
2016-03-22T00:14:38
2024-08-16T02:02:06
graphql-tools
ardatan/graphql-tools
5,331
107
```xml import * as React from "react"; import {styled, withWrapper} from "styletron-react"; const Foo = styled("div", {color: "red"}); const Bar = withWrapper(Foo, StyledComponent => props => ( <div> <StyledComponent {...props} /> </div> )); <Bar />; ```
/content/code_sandbox/packages/typescript-type-tests/src/with-wrapper.tsx
xml
2016-04-01T00:00:06
2024-08-14T21:28:45
styletron
styletron/styletron
3,317
69
```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 /* eslint-disable max-lines */ import fromBinaryStringUint8 = require( '@stdlib/number/uint8/base/from-binary-string' ); import toBinaryStringUint8 = require( '@stdlib/number/uint8/base/to-binary-string' ); /** * Interface describing the `base` namespace. */ interface Namespace { /** * Creates an unsigned 8-bit integer from a literal bit representation. * * @param bstr - string which is a literal bit representation * @throws must provide a string with a length equal to `8` * @returns unsigned 8-bit integer * * @example * var bstr = '01010101'; * var val = ns.fromBinaryStringUint8( bstr ); * // returns 85 * * @example * var bstr = '00000000'; * var val = ns.fromBinaryStringUint8( bstr ); * // returns 0 * * @example * var bstr = '00000010'; * var val = ns.fromBinaryStringUint8( bstr ); * // returns 2 * * @example * var bstr = '11111111'; * var val = ns.fromBinaryStringUint8( bstr ); * // returns 255 */ fromBinaryStringUint8: typeof fromBinaryStringUint8; /** * Returns a string giving the literal bit representation of an unsigned 8-bit integer. * * ## Notes * * - Except for typed arrays, JavaScript does not provide native user support for unsigned 8-bit integers. According to the ECMAScript standard, `number` values correspond to double-precision floating-point numbers. While this function is intended for unsigned 8-bit integers, the function will accept floating-point values and represent the values as if they are unsigned 8-bit integers. Accordingly, care should be taken to ensure that only nonnegative integer values less than `256` (`2^8`) are provided. * * @param x - input value * @returns bit representation * * @example * var a = new Uint8Array( [ 1 ] ); * var str = ns.toBinaryStringUint8( a[0] ); * // returns '00000001' * * @example * var a = new Uint8Array( [ 4 ] ); * var str = ns.toBinaryStringUint8( a[0] ); * // returns '00000100' * * @example * var a = new Uint8Array( [ 9 ] ); * var str = ns.toBinaryStringUint8( a[0] ); * // returns '00001001' */ toBinaryStringUint8: typeof toBinaryStringUint8; } /** * Base utilities for unsigned 8-bit integers. */ declare var ns: Namespace; // EXPORTS // export = ns; ```
/content/code_sandbox/lib/node_modules/@stdlib/number/uint8/base/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
695
```xml import { ChooseBox, FileUpload, FlexContainer } from '../../styles'; import React, { useState } from 'react'; import DynamicForm from './DynamicForm'; import { IFile } from '../../types'; import Icon from '@erxes/ui/src/components/Icon'; import ModalTrigger from '@erxes/ui/src/components/ModalTrigger'; import Spinner from '@erxes/ui/src/components/Spinner'; import { __ } from 'coreui/utils'; import { uploadHandler } from '@erxes/ui/src/utils'; type Props = { file?: IFile; queryParams: any; documents: any; saveFile: (attr: any) => void; closeModal: () => void; }; function FileForm(props: Props) { const [file, setFile] = useState({}); const [filePreview, setFilePreview] = useState({} as any); const handleFile = (e: React.FormEvent<HTMLInputElement>) => { const { queryParams, saveFile } = props; const imageFile = e.currentTarget.files; uploadHandler({ files: imageFile, beforeUpload: () => { setFilePreview({ opacity: '0.9' }); }, afterUpload: ({ response, fileInfo }) => { const url = response.url ? response.url : response; setFile(url); setFilePreview({ opacity: '1' }); saveFile({ name: fileInfo.name, url, folderId: queryParams && queryParams._id ? queryParams._id : '', type: 'simple', info: fileInfo }); } }); }; const boxContent = (icon: string, title: string) => ( <ChooseBox> <Icon icon={icon} /> <span>{__(title)}</span> </ChooseBox> ); const renderDynamicForm = (icon, title) => { const content = pros => ( <DynamicForm {...pros} queryParams={props.queryParams} documents={props.documents} saveFile={props.saveFile} /> ); return ( <ModalTrigger title="Add File" trigger={boxContent(icon, title)} content={content} centered={true} enforceFocus={false} /> ); }; const renderBox = (title: string, type: string, icon: string) => { if (type === 'simple') { const onChange = (e: React.FormEvent<HTMLInputElement>) => handleFile(e); if (filePreview && filePreview.opacity === '0.9') { return <Spinner />; } return ( <FileUpload> <label htmlFor="file-upload"> <input id="file-upload" type="file" onChange={onChange} /> {boxContent(icon, title)} </label> </FileUpload> ); } if (type === 'dynamic') { return renderDynamicForm(icon, title); } return null; }; if (Object.keys(props.file || {}).length !== 0) { return renderDynamicForm('file-check-alt', 'Dynamic file'); } return ( <FlexContainer> {renderBox('Upload File', 'simple', 'upload-6')} {renderBox('Dynamic file', 'dynamic', 'file-check-alt')} </FlexContainer> ); } export default FileForm; ```
/content/code_sandbox/packages/plugin-filemanager-ui/src/components/file/FileForm.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
711
```xml import React, { Component } from 'react'; import { StyleSheet, View, ActivityIndicator, Keyboard, TextInput, EmitterSubscription, } from 'react-native'; import { defaultTheme, renderNode } from '../helpers'; import { Input, InputProps } from '../Input'; import { Icon } from '../Icon'; import { SearchBarAndroidProps } from './types'; import { Theme } from '../helpers'; export type { SearchBarAndroidProps }; const defaultSearchIcon = (theme: Theme) => ({ type: 'material', size: 25, color: theme?.colors?.platform?.android?.grey, name: 'search', }); const defaultCancelIcon = (theme: Theme) => ({ type: 'material', size: 25, color: theme?.colors?.platform?.android?.grey, name: 'arrow-back', }); const defaultClearIcon = (theme: Theme) => ({ type: 'material', size: 25, color: theme?.colors?.platform?.android?.grey, name: 'clear', }); type NewType = 'android'; type SearchBarState = { hasFocus: boolean; isEmpty: boolean; }; export class SearchBarAndroid extends Component< SearchBarAndroidProps, SearchBarState > { input!: TextInput; static defaultProps = { onClear: () => null, onCancel: () => null, onFocus: () => null, onBlur: () => null, onChangeText: () => null, }; keyboardListener: EmitterSubscription; focus = () => { this.input.focus(); }; blur = () => { this.input.blur(); }; clear = () => { this.input.clear(); this.onChangeText(''); this.props.onClear(); }; cancel = () => { this.blur(); this.props.onCancel(); }; onFocus: InputProps['onFocus'] = (event) => { this.props.onFocus(event); this.setState({ hasFocus: true, isEmpty: this.props.value === '', }); }; onBlur: InputProps['onBlur'] = (event) => { this.props.onBlur(event); this.setState({ hasFocus: false }); }; onChangeText = (text: string) => { this.props.onChangeText(text); this.setState({ isEmpty: text === '' }); }; constructor(props: SearchBarAndroidProps) { super(props); const { value = '' } = props; this.state = { hasFocus: false, isEmpty: value ? value === '' : true, }; if (this.props.onKeyboardHide) { this.keyboardListener = Keyboard.addListener( 'keyboardDidHide', this._keyboardDidHide ); } } _keyboardDidHide = () => { this.blur(); this.props.onKeyboardHide?.(); }; componentWillUnmount() { if (this.keyboardListener) { this.keyboardListener.remove(); } } render() { const { theme = defaultTheme, clearIcon = { name: 'clear' }, containerStyle, leftIconContainerStyle, rightIconContainerStyle, inputContainerStyle, inputStyle, searchIcon = { name: 'search' }, cancelIcon = { name: 'arrow-back' }, showLoading = false, loadingProps = {}, ...attributes } = this.props; const { hasFocus, isEmpty } = this.state; const { style: loadingStyle, ...otherLoadingProps } = loadingProps; return ( <View testID="RNE__SearchBar-wrapper" style={StyleSheet.flatten([ { backgroundColor: theme?.colors?.background, paddingTop: 8, paddingBottom: 8, }, containerStyle, ])} > <Input testID="RNE__SearchBar" renderErrorMessage={false} {...attributes} onFocus={this.onFocus} onBlur={this.onBlur} onChangeText={this.onChangeText} // @ts-ignore ref={(input: TextInput) => { this.input = input; }} containerStyle={{ paddingHorizontal: 0 }} inputStyle={StyleSheet.flatten([styles.input, inputStyle])} inputContainerStyle={StyleSheet.flatten([ styles.inputContainer, inputContainerStyle, ])} leftIcon={ hasFocus ? renderNode(Icon, cancelIcon, { ...defaultCancelIcon(theme as Theme), onPress: this.cancel, }) : renderNode(Icon, searchIcon, defaultSearchIcon(theme as Theme)) } leftIconContainerStyle={StyleSheet.flatten([ styles.leftIconContainerStyle, leftIconContainerStyle, ])} rightIcon={ <View style={{ flexDirection: 'row' }}> {showLoading && ( <ActivityIndicator key="loading" style={StyleSheet.flatten([{ marginRight: 5 }, loadingStyle])} {...otherLoadingProps} /> )} {!isEmpty && renderNode(Icon, clearIcon, { ...defaultClearIcon(theme as Theme), key: 'cancel', onPress: this.clear, })} </View> } rightIconContainerStyle={StyleSheet.flatten([ styles.rightIconContainerStyle, rightIconContainerStyle, ])} /> </View> ); } } const styles = StyleSheet.create({ input: { marginLeft: 24, marginRight: 8, }, inputContainer: { borderBottomWidth: 0, width: '100%', }, rightIconContainerStyle: { marginRight: 8, }, leftIconContainerStyle: { marginLeft: 8, }, }); ```
/content/code_sandbox/packages/base/src/SearchBar/SearchBar-android.tsx
xml
2016-09-08T14:21:41
2024-08-16T10:11:29
react-native-elements
react-native-elements/react-native-elements
24,875
1,218
```xml import chalk from 'chalk'; export function time(label?: string): void { console.time(label); } export function timeEnd(label?: string): void { console.timeEnd(label); } export function error(...message: string[]): void { console.error(...message); } /** Print an error and provide additional info (the stack trace) in debug mode. */ export function exception(e: Error): void { error(chalk.red(e.toString()) + (process.env.EXPO_DEBUG ? '\n' + chalk.gray(e.stack) : '')); } export function warn(...message: string[]): void { console.warn(...message.map((value) => chalk.yellow(value))); } export function log(...message: string[]): void { console.log(...message); } /** Clear the terminal of all text. */ export function clear(): void { process.stdout.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'); } /** Log a message and exit the current process. If the `code` is non-zero then `console.error` will be used instead of `console.log`. */ export function exit(message: string | Error, code: number = 1): never { if (message instanceof Error) { exception(message); process.exit(code); } if (message) { if (code === 0) { log(message); } else { error(message); } } process.exit(code); } ```
/content/code_sandbox/packages/expo-updates/cli/src/utils/log.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
321
```xml import {Component, inject} from '@angular/core'; import {Overlay} from '@angular/cdk/overlay'; import {ScrollingModule} from '@angular/cdk/scrolling'; @Component({ selector: 'block-scroll-strategy-e2e', templateUrl: 'block-scroll-strategy-e2e.html', styleUrl: 'block-scroll-strategy-e2e.css', standalone: true, imports: [ScrollingModule], }) export class BlockScrollStrategyE2E { scrollStrategy = inject(Overlay).scrollStrategies.block(); } ```
/content/code_sandbox/src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
117
```xml <?xml version="1.0"?> <?xml-model href="path_to_url" schematypens="path_to_url"?> <package format="3"> <name>realsense2_description</name> <version>4.55.1</version> <description>RealSense description package for Intel 3D D400 cameras</description> <maintainer email="librs.ros@intel.com">LibRealSense ROS Team</maintainer> <url type="website">path_to_url <url type="bugtracker">path_to_url <author email="librs.ros@intel.com">LibRealSense ROS Team</author> <buildtool_depend>ament_cmake</buildtool_depend> <depend>rclcpp</depend> <depend>rclcpp_components</depend> <depend>realsense2_camera_msgs</depend> <exec_depend>launch_ros</exec_depend> <exec_depend>xacro</exec_depend> <test_depend>ament_lint_auto</test_depend> <test_depend>ament_lint_common</test_depend> <export> <build_type>ament_cmake</build_type> </export> </package> ```
/content/code_sandbox/realsense2_description/package.xml
xml
2016-02-23T23:52:58
2024-08-15T13:59:39
realsense-ros
IntelRealSense/realsense-ros
2,479
262
```xml import { differenceInMilliseconds } from "date-fns"; import { Op } from "sequelize"; import { IntegrationService, IntegrationType } from "@shared/types"; import { Minute } from "@shared/utils/time"; import { Document, Integration, Collection, Team } from "@server/models"; import BaseProcessor from "@server/queues/processors/BaseProcessor"; import { DocumentEvent, IntegrationEvent, RevisionEvent, Event, } from "@server/types"; import fetch from "@server/utils/fetch"; import { sleep } from "@server/utils/timers"; import env from "../env"; import { presentMessageAttachment } from "../presenters/messageAttachment"; export default class SlackProcessor extends BaseProcessor { static applicableEvents: Event["name"][] = [ "documents.publish", "revisions.create", "integrations.create", ]; async perform(event: Event) { switch (event.name) { case "documents.publish": case "revisions.create": // wait a few seconds to give the document summary chance to be generated await sleep(5000); return this.documentUpdated(event); case "integrations.create": return this.integrationCreated(event); default: } } async integrationCreated(event: IntegrationEvent) { const integration = (await Integration.findOne({ where: { id: event.modelId, service: IntegrationService.Slack, type: IntegrationType.Post, }, include: [ { model: Collection, required: true, as: "collection", }, ], })) as Integration<IntegrationType.Post>; if (!integration) { return; } const collection = integration.collection; if (!collection) { return; } await fetch(integration.settings.url, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ text: ` Hey there! When documents are published or updated in the *${collection.name}* collection on ${env.APP_NAME} they will be posted to this channel!`, attachments: [ { color: collection.color, title: collection.name, title_link: `${env.URL}${collection.url}`, text: collection.description, }, ], }), }); } async documentUpdated(event: DocumentEvent | RevisionEvent) { // never send notifications when batch importing documents // @ts-expect-error ts-migrate(2339) FIXME: Property 'data' does not exist on type 'DocumentEv... Remove this comment to see the full error message if (event.data && event.data.source === "import") { return; } const [document, team] = await Promise.all([ Document.findByPk(event.documentId), Team.findByPk(event.teamId), ]); if (!document || !team) { return; } // never send notifications for draft documents if (!document.publishedAt) { return; } // if the document was published less than a minute ago, don't send a // separate notification. if ( event.name === "revisions.create" && differenceInMilliseconds(document.updatedAt, document.publishedAt) < Minute ) { return; } const integration = (await Integration.findOne({ where: { teamId: document.teamId, collectionId: document.collectionId, service: IntegrationService.Slack, type: IntegrationType.Post, events: { [Op.contains]: [ event.name === "revisions.create" ? "documents.update" : event.name, ], }, }, })) as Integration<IntegrationType.Post>; if (!integration) { return; } let text = `${document.updatedBy.name} updated "${document.title}"`; if (event.name === "documents.publish") { text = `${document.createdBy.name} published "${document.title}"`; } await fetch(integration.settings.url, { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ text, attachments: [ presentMessageAttachment(document, team, document.collection), ], }), }); } } ```
/content/code_sandbox/plugins/slack/server/processors/SlackProcessor.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
893
```xml import chalk from 'chalk'; import { EOL } from 'os'; /** Console message colors used in the test. */ export const errorMessageColors = { // Colors for the defaultErrorMessage section. testErrorText: chalk.yellow, testErrorName: chalk.white, testErrorInfo: chalk.green, testErrorPath: chalk.green.italic, // Colors for the resolveErrorMessages section. resolveText: chalk.cyan, resolveInfo: chalk.hex('#e00000'), // Colors for the receivedErrorMessage section. receivedErrorHeader: chalk.white.bold.bgRed, // Other colors. failedError: chalk.red, // Color for section headers. sectionBackground: chalk.white.bold.italic.bgHex('#2e2e2e'), }; export function getErrorMessage(params: { /** Component display name */ displayName: string; /** Overall error description */ overview: string; /** More details about the error (single line spacing, so include empty strings for blank lines) */ details?: string[]; /** Suggestions for fixing the error */ suggestions?: string[]; /** Original error */ error?: Error; }) { const { testErrorText, testErrorName, resolveText, sectionBackground, receivedErrorHeader } = errorMessageColors; const { displayName, overview, details = [], error, suggestions } = params; const messageParts = [testErrorText(`It appears that ${testErrorName(displayName)} ${overview}`)]; if (details) { messageParts.push(details.join(EOL)); } if (suggestions) { messageParts.push( sectionBackground('Possible solutions:'), suggestions.map((msg, i) => resolveText(`${i + 1}. ${msg}`)).join(EOL), ); } if (error) { messageParts.push( `Also check the ${receivedErrorHeader('original error message')} in case there's some other issue:`, error.stack || error.message || String(error), ); } return messageParts.join(EOL + EOL); } /** * Formats an array of strings to be displayed in the console. */ export function formatArray(arr: string[] | undefined) { return arr ? arr.map(value => ` ${value}`).join(EOL) : 'received undefined'; } /** * Formats an object with props & errors strings to be displayed in the console. */ export function formatErrors(value: Record<string, Error> | undefined) { return value ? Object.entries(value) .map(([propName, error]) => ` ${propName}: ${error.message}`) .join(EOL) : 'received undefined'; } ```
/content/code_sandbox/packages/react-conformance/src/utils/errorMessages.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
561
```xml <?xml version="1.0" encoding="utf-8"?> <merge xmlns:android="path_to_url"> <include layout="@layout/bsp_date_picker_navigation_bar" /> <com.philliphsu.bottomsheetpickers.date.DayPickerViewAnimator android:id="@+id/bsp_month_animator" android:layout_width="match_parent" android:layout_height="match_parent"> <com.philliphsu.bottomsheetpickers.date.DayPickerViewPager android:id="@+id/bsp_viewpager" android:layout_width="match_parent" android:layout_height="match_parent" /> <com.philliphsu.bottomsheetpickers.date.MonthPickerView android:id="@+id/bsp_month_picker" android:layout_width="match_parent" android:layout_height="match_parent" /> </com.philliphsu.bottomsheetpickers.date.DayPickerViewAnimator> </merge> ```
/content/code_sandbox/bottomsheetpickers/src/main/res/layout/bsp_day_picker_content.xml
xml
2016-10-06T01:20:05
2024-08-05T10:12:07
BottomSheetPickers
philliphsu/BottomSheetPickers
1,101
202
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="debug|Win32"> <Configuration>debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="checked|Win32"> <Configuration>checked</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="profile|Win32"> <Configuration>profile</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="release|Win32"> <Configuration>release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{653CC2CD-99F5-48D8-0E9C-46FA10B26447}</ProjectGuid> <RootNamespace>PhysXCommon</RootNamespace> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'" Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|Win32'" Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|Win32'" Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'" Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='checked|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='profile|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> </ImportGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <OutDir>./../../../bin/vc14win32\</OutDir> <IntDir>./Win32/PhysXCommon/debug\</IntDir> <TargetExt>.dll</TargetExt> <TargetName>PhysX3CommonDEBUG_x86</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> <SkipCopyingSymbolsToOutputDirectory>true</SkipCopyingSymbolsToOutputDirectory> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='debug|Win32'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <BasicRuntimeChecks>UninitializedLocalUsageCheck</BasicRuntimeChecks> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>./../../../../Externals/nvToolsExt/1/include;./../../Common/include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../../../PxShared/src/pvd/include;./../../../Include/common;./../../../Include;./../../Common/src;./../../Common/src/windows;./../../PhysXProfile/include;./../../PhysXProfile/src;./../../PhysXGpu/include;./../../../Include/geometry;./../../GeomUtils/headers;./../../GeomUtils/src;./../../GeomUtils/src/contact;./../../GeomUtils/src/common;./../../GeomUtils/src/convex;./../../GeomUtils/src/distance;./../../GeomUtils/src/sweep;./../../GeomUtils/src/gjk;./../../GeomUtils/src/intersection;./../../GeomUtils/src/mesh;./../../GeomUtils/src/hf;./../../GeomUtils/src/pcm;./../../GeomUtils/src/ccd;./../../../Include/GeomUtils;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PX_FOUNDATION_DLL=1;PX_PHYSX_COMMON_EXPORTS;_DEBUG;PX_DEBUG=1;PX_CHECKED=1;PX_NVTX=1;PX_SUPPORT_PVD=1;PX_PHYSX_DLL_NAME_POSTFIX=DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/MAP /MACHINE:x86 /DEBUG /DELAYLOAD:PxFoundationDEBUG_x86.dll</AdditionalOptions> <AdditionalDependencies>./../../../../Externals/nvToolsExt/1/lib/Win32/nvToolsExt32_1.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)PhysX3CommonDEBUG_x86.dll</OutputFile> <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>./../../../Lib/vc14win32/$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|Win32'"> <OutDir>./../../../bin/vc14win32\</OutDir> <IntDir>./Win32/PhysXCommon/checked\</IntDir> <TargetExt>.dll</TargetExt> <TargetName>PhysX3CommonCHECKED_x86</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> <SkipCopyingSymbolsToOutputDirectory>true</SkipCopyingSymbolsToOutputDirectory> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='checked|Win32'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>./../../../../Externals/nvToolsExt/1/include;./../../Common/include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../../../PxShared/src/pvd/include;./../../../Include/common;./../../../Include;./../../Common/src;./../../Common/src/windows;./../../PhysXProfile/include;./../../PhysXProfile/src;./../../PhysXGpu/include;./../../../Include/geometry;./../../GeomUtils/headers;./../../GeomUtils/src;./../../GeomUtils/src/contact;./../../GeomUtils/src/common;./../../GeomUtils/src/convex;./../../GeomUtils/src/distance;./../../GeomUtils/src/sweep;./../../GeomUtils/src/gjk;./../../GeomUtils/src/intersection;./../../GeomUtils/src/mesh;./../../GeomUtils/src/hf;./../../GeomUtils/src/pcm;./../../GeomUtils/src/ccd;./../../../Include/GeomUtils;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PX_FOUNDATION_DLL=1;PX_PHYSX_COMMON_EXPORTS;NDEBUG;PX_CHECKED=1;PX_NVTX=1;PX_SUPPORT_PVD=1;PX_PHYSX_DLL_NAME_POSTFIX=CHECKED;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/MAP /MACHINE:x86 /DELAYLOAD:PxFoundationCHECKED_x86.dll</AdditionalOptions> <AdditionalDependencies>./../../../../Externals/nvToolsExt/1/lib/Win32/nvToolsExt32_1.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)PhysX3CommonCHECKED_x86.dll</OutputFile> <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>./../../../Lib/vc14win32/$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|Win32'"> <OutDir>./../../../bin/vc14win32\</OutDir> <IntDir>./Win32/PhysXCommon/profile\</IntDir> <TargetExt>.dll</TargetExt> <TargetName>PhysX3CommonPROFILE_x86</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> <SkipCopyingSymbolsToOutputDirectory>true</SkipCopyingSymbolsToOutputDirectory> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='profile|Win32'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>./../../../../Externals/nvToolsExt/1/include;./../../Common/include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../../../PxShared/src/pvd/include;./../../../Include/common;./../../../Include;./../../Common/src;./../../Common/src/windows;./../../PhysXProfile/include;./../../PhysXProfile/src;./../../PhysXGpu/include;./../../../Include/geometry;./../../GeomUtils/headers;./../../GeomUtils/src;./../../GeomUtils/src/contact;./../../GeomUtils/src/common;./../../GeomUtils/src/convex;./../../GeomUtils/src/distance;./../../GeomUtils/src/sweep;./../../GeomUtils/src/gjk;./../../GeomUtils/src/intersection;./../../GeomUtils/src/mesh;./../../GeomUtils/src/hf;./../../GeomUtils/src/pcm;./../../GeomUtils/src/ccd;./../../../Include/GeomUtils;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PX_FOUNDATION_DLL=1;PX_PHYSX_COMMON_EXPORTS;NDEBUG;PX_PROFILE=1;PX_NVTX=1;PX_SUPPORT_PVD=1;PX_PHYSX_DLL_NAME_POSTFIX=PROFILE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/MAP /MACHINE:x86 /INCREMENTAL:NO /DEBUG /DELAYLOAD:PxFoundationPROFILE_x86.dll</AdditionalOptions> <AdditionalDependencies>./../../../../Externals/nvToolsExt/1/lib/Win32/nvToolsExt32_1.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)PhysX3CommonPROFILE_x86.dll</OutputFile> <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>./../../../Lib/vc14win32/$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <OutDir>./../../../bin/vc14win32\</OutDir> <IntDir>./Win32/PhysXCommon/release\</IntDir> <TargetExt>.dll</TargetExt> <TargetName>PhysX3Common_x86</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> <SkipCopyingSymbolsToOutputDirectory>true</SkipCopyingSymbolsToOutputDirectory> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release|Win32'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <EnableEnhancedInstructionSet>StreamingSIMDExtensions2</EnableEnhancedInstructionSet> <RuntimeTypeInfo>false</RuntimeTypeInfo> <BufferSecurityCheck>false</BufferSecurityCheck> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/MP /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4435 /wd4577 /wd4464 /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>./../../../../Externals/nvToolsExt/1/include;./../../Common/include;./../../../../PxShared/include;./../../../../PxShared/src/foundation/include;./../../../../PxShared/src/fastxml/include;./../../../../PxShared/src/pvd/include;./../../../Include/common;./../../../Include;./../../Common/src;./../../Common/src/windows;./../../PhysXProfile/include;./../../PhysXProfile/src;./../../PhysXGpu/include;./../../../Include/geometry;./../../GeomUtils/headers;./../../GeomUtils/src;./../../GeomUtils/src/contact;./../../GeomUtils/src/common;./../../GeomUtils/src/convex;./../../GeomUtils/src/distance;./../../GeomUtils/src/sweep;./../../GeomUtils/src/gjk;./../../GeomUtils/src/intersection;./../../GeomUtils/src/mesh;./../../GeomUtils/src/hf;./../../GeomUtils/src/pcm;./../../GeomUtils/src/ccd;./../../../Include/GeomUtils;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_WINSOCK_DEPRECATED_NO_WARNINGS;PX_FOUNDATION_DLL=1;PX_PHYSX_COMMON_EXPORTS;NDEBUG;PX_SUPPORT_PVD=0;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <ProgramDataBaseFileName>$(TargetDir)\$(TargetName).pdb</ProgramDataBaseFileName> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Link> <AdditionalOptions>/MAP /MACHINE:x86 /INCREMENTAL:NO /DELAYLOAD:PxFoundation_x86.dll</AdditionalOptions> <AdditionalDependencies>./../../../../Externals/nvToolsExt/1/lib/Win32/nvToolsExt32_1.lib;%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)PhysX3Common_x86.dll</OutputFile> <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(TargetDir)\$(TargetName).pdb</ProgramDatabaseFile> <SubSystem>Console</SubSystem> <ImportLibrary>./../../../Lib/vc14win32/$(TargetName).lib</ImportLibrary> <GenerateDebugInformation>true</GenerateDebugInformation> <TargetMachine>MachineX86</TargetMachine> </Link> <ResourceCompile> </ResourceCompile> <ProjectReference> </ProjectReference> </ItemDefinitionGroup> <ItemGroup> <ResourceCompile Include="..\resource_x86\PhysX3Common.rc"> </ResourceCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\..\Include\common\PxBase.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxCollection.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxCoreUtilityTypes.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxMetaData.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxMetaDataFlags.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxPhysicsInsertionCallback.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxPhysXCommonConfig.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxRenderBuffer.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxSerialFramework.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxSerializer.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxStringTable.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxTolerancesScale.h"> </ClInclude> <ClInclude Include="..\..\..\Include\common\PxTypeInfo.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\..\Include\geometry\PxBoxGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxCapsuleGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxConvexMesh.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxConvexMeshGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxGeometryHelpers.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxGeometryQuery.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxHeightField.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxHeightFieldDesc.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxHeightFieldFlag.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxHeightFieldGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxHeightFieldSample.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxMeshQuery.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxMeshScale.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxPlaneGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxSimpleTriangleMesh.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxSphereGeometry.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxTriangle.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxTriangleMesh.h"> </ClInclude> <ClInclude Include="..\..\..\Include\geometry\PxTriangleMeshGeometry.h"> </ClInclude> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\Common\src\windows\CmWindowsDelayLoadHook.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\windows\CmWindowsModuleUpdateLoader.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\Common\src\CmBoxPruning.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmCollection.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmMathUtils.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmPtrTable.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmRadixSort.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmRadixSortBuffered.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmRenderOutput.cpp"> </ClCompile> <ClCompile Include="..\..\Common\src\CmVisualization.cpp"> </ClCompile> <ClInclude Include="..\..\Common\src\CmBitMap.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmBoxPruning.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmCollection.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmConeLimitHelper.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmFlushPool.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmIDPool.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmIO.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmMatrix34.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmPhysXCommon.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmPool.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmPreallocatingPool.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmPriorityQueue.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmPtrTable.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmQueue.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmRadixSort.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmRadixSortBuffered.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmRefCountable.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmRenderBuffer.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmRenderOutput.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmScaling.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmSpatialVector.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmTask.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmTaskPool.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmTmpMem.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmTransformUtils.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmUtils.h"> </ClInclude> <ClInclude Include="..\..\Common\src\CmVisualization.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\Common\include\windows\CmWindowsLoadLibrary.h"> </ClInclude> <ClInclude Include="..\..\Common\include\windows\CmWindowsModuleUpdateLoader.h"> </ClInclude> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\headers\GuAxes.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuDistanceSegmentBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuDistanceSegmentSegment.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuIntersectionBoxBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuIntersectionTriangleBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuRaycastTests.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuSegment.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\headers\GuSIMDHelpers.h"> </ClInclude> </ItemGroup> <ItemGroup> <None Include="..\..\..\Include\GeomUtils"> </None> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\contact\GuContactMethodImpl.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\contact\GuContactPolygonPolygon.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\contact\GuFeatureCode.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\contact\GuLegacyTraceLineCallback.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactBoxBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactCapsuleBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactCapsuleCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactCapsuleConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactCapsuleMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactConvexConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactConvexMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactPlaneBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactPlaneCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactPlaneConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactPolygonPolygon.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactSphereBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactSphereCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactSphereMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactSpherePlane.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuContactSphereSphere.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuFeatureCode.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuLegacyContactBoxHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuLegacyContactCapsuleHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuLegacyContactConvexHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\contact\GuLegacyContactSphereHeightField.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\common\GuBarycentricCoordinates.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\common\GuBoxConversion.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\common\GuEdgeCache.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\common\GuEdgeListData.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\common\GuSeparatingAxes.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\common\GuBarycentricCoordinates.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\common\GuSeparatingAxes.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\convex\GuBigConvexData.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuBigConvexData2.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuConvexEdgeFlags.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuConvexHelper.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuConvexMesh.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuConvexMeshData.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuConvexSupportTable.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuConvexUtilsInternal.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuCubeIndex.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuHillClimbing.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\convex\GuShapeConvex.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\convex\GuBigConvexData.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\convex\GuConvexHelper.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\convex\GuConvexMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\convex\GuConvexSupportTable.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\convex\GuConvexUtilsInternal.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\convex\GuHillClimbing.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\convex\GuShapeConvex.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistancePointBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistancePointSegment.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistancePointTriangle.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistancePointTriangleSIMD.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistanceSegmentSegmentSIMD.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistanceSegmentTriangle.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\distance\GuDistanceSegmentTriangleSIMD.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\distance\GuDistancePointBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\distance\GuDistancePointTriangle.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\distance\GuDistanceSegmentBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\distance\GuDistanceSegmentSegment.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\distance\GuDistanceSegmentTriangle.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepBoxBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepBoxSphere.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepBoxTriangle_FeatureBased.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepBoxTriangle_SAT.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepCapsuleBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepCapsuleCapsule.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepCapsuleTriangle.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepSphereCapsule.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepSphereSphere.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepSphereTriangle.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\sweep\GuSweepTriangleUtils.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepBoxBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepBoxSphere.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepBoxTriangle_FeatureBased.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepBoxTriangle_SAT.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepCapsuleBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepCapsuleCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepCapsuleTriangle.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepSphereCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepSphereSphere.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepSphereTriangle.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\sweep\GuSweepTriangleUtils.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\gjk\GuEPA.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuEPAFacet.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJK.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJKPenetration.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJKRaycast.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJKSimplex.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJKTest.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJKType.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuGJKUtil.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecCapsule.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecConvex.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecConvexHull.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecConvexHullNoScale.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecPlane.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecShrunkBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecShrunkConvexHull.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecShrunkConvexHullNoScale.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecSphere.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\gjk\GuVecTriangle.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\gjk\GuEPA.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\gjk\GuGJKSimplex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\gjk\GuGJKTest.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionCapsuleTriangle.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionEdgeEdge.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRay.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRayBox.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRayBoxSIMD.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRayCapsule.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRayPlane.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRaySphere.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionRayTriangle.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\intersection\GuIntersectionSphereBox.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionBoxBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionCapsuleTriangle.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionEdgeEdge.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionRayBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionRayCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionRaySphere.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionSphereBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\intersection\GuIntersectionTriangleBox.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV32.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV32Build.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4Build.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4Settings.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_AABBAABBSweepTest.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_BoxBoxOverlapTest.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_BoxOverlap_Internal.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_BoxSweep_Internal.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_BoxSweep_Params.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_CapsuleSweep_Internal.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Common.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Internal.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamNoOrder_OBBOBB.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamNoOrder_SegmentAABB.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamNoOrder_SegmentAABB_Inflated.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamNoOrder_SphereAABB.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamOrdered_OBBOBB.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamOrdered_SegmentAABB.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_ProcessStreamOrdered_SegmentAABB_Inflated.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Slabs.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Slabs_KajiyaNoOrder.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Slabs_KajiyaOrdered.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Slabs_SwizzledNoOrder.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBV4_Slabs_SwizzledOrdered.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuBVConstants.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuMeshData.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuMidphaseInterface.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuRTree.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuSweepConvexTri.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuSweepMesh.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuTriangle32.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuTriangleCache.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuTriangleMesh.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuTriangleMeshBV4.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuTriangleMeshRTree.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\mesh\GuTriangleVertexPointers.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV32.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV32Build.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4Build.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_AABBSweep.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_BoxOverlap.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_CapsuleSweep.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_CapsuleSweepAA.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_OBBSweep.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_Raycast.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_SphereOverlap.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuBV4_SphereSweep.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuMeshQuery.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuMidphaseBV4.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuMidphaseRTree.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuOverlapTestsMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuRTree.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuRTreeQueries.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuSweepsMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuTriangleMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuTriangleMeshBV4.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\mesh\GuTriangleMeshRTree.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\hf\GuEntityReport.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\hf\GuHeightField.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\hf\GuHeightFieldData.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\hf\GuHeightFieldUtil.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\hf\GuHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\hf\GuHeightFieldUtil.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\hf\GuOverlapTestsHF.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\hf\GuSweepsHF.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPCMContactConvexCommon.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPCMContactGen.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPCMContactGenUtil.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPCMContactMeshCallback.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPCMShapeConvex.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPCMTriangleContactGen.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\pcm\GuPersistentContactManifold.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactBoxBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactBoxConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactCapsuleBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactCapsuleCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactCapsuleConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactCapsuleHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactCapsuleMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactConvexCommon.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactConvexConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactConvexHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactConvexMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactGenBoxConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactGenSphereCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactPlaneBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactPlaneCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactPlaneConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSphereBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSphereCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSphereConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSphereHeightField.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSphereMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSpherePlane.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMContactSphereSphere.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMShapeConvex.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPCMTriangleContactGen.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\pcm\GuPersistentContactManifold.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\ccd\GuCCDSweepConvexMesh.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\ccd\GuCCDSweepConvexMesh.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\ccd\GuCCDSweepPrimitives.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\GeomUtils\src\GuBounds.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuCapsule.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuCenterExtents.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuGeometryUnion.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuInternal.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuMeshFactory.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuMTD.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuOverlapTests.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuSerialize.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuSphere.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuSweepMTD.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuSweepSharedTests.h"> </ClInclude> <ClInclude Include="..\..\GeomUtils\src\GuSweepTests.h"> </ClInclude> <ClCompile Include="..\..\GeomUtils\src\GuBounds.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuBox.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuCapsule.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuCCTSweepTests.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuGeometryQuery.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuGeometryUnion.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuInternal.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuMeshFactory.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuMetaData.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuMTD.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuOverlapTests.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuRaycastTests.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuSerialize.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuSweepMTD.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuSweepSharedTests.cpp"> </ClCompile> <ClCompile Include="..\..\GeomUtils\src\GuSweepTests.cpp"> </ClCompile> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ProjectReference Include="./../../../../PxShared/src/compiler/vc14win32/PxFoundation.vcxproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> </ProjectReference> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"></ImportGroup> </Project> ```
/content/code_sandbox/PhysX_3.4/Source/compiler/vc14win32/PhysXCommon.vcxproj
xml
2016-10-12T16:34:31
2024-08-16T09:40:38
PhysX-3.4
NVIDIAGameWorks/PhysX-3.4
2,343
14,390
```xml import { noop } from 'lodash'; import { c } from 'ttag'; import { type LockAdapter, LockMode } from '@proton/pass/lib/auth/lock/types'; import type { AuthService } from '@proton/pass/lib/auth/service'; import { getOfflineComponents, getOfflineKeyDerivation } from '@proton/pass/lib/cache/crypto'; import { decryptData, getSymmetricKey } from '@proton/pass/lib/crypto/utils/crypto-helpers'; import { PassCryptoError } from '@proton/pass/lib/crypto/utils/errors'; import { PassEncryptionTag } from '@proton/pass/types'; import { logger } from '@proton/pass/utils/logger'; import { getEpoch } from '@proton/pass/utils/time/epoch'; import { stringToUint8Array, uint8ArrayToString } from '@proton/shared/lib/helpers/encoding'; import { loadCryptoWorker } from '@proton/shared/lib/helpers/setupCryptoWorker'; /** Password locking involves the offline configuration. As such, * we can only password lock if we have a valid offline config in * order to be able to verify the user password locally without an * SRP flow. Booting offline should rely on this lock adapter */ export const passwordLockAdapterFactory = (auth: AuthService): LockAdapter => { const { authStore, api, getPersistedSession, onSessionPersist } = auth.config; /** Persist the `unlockRetryCount` without re-encrypting * the authentication session blob */ const setRetryCount = async (retryCount: number) => { authStore.setUnlockRetryCount(retryCount); const localID = authStore.getLocalID(); const encryptedSession = await getPersistedSession(localID); if (encryptedSession) { encryptedSession.unlockRetryCount = retryCount; await onSessionPersist?.(JSON.stringify(encryptedSession)); } }; const adapter: LockAdapter = { type: LockMode.PASSWORD, check: async () => { logger.info(`[PasswordLock] checking password lock`); const offlineConfig = authStore.getOfflineConfig(); const offlineVerifier = authStore.getOfflineVerifier(); if (!(offlineConfig && offlineVerifier)) return { mode: LockMode.NONE, locked: false }; authStore.setLockLastExtendTime(getEpoch()); return { mode: adapter.type, locked: false, ttl: authStore.getLockTTL() }; }, /** Creating a password lock should first verify the user password * with SRP. Only then should we compute the offline components. * Repersists the session with the `offlineKD` encrypted in the session * blob. As such creating a password lock is online-only. */ create: async ({ secret, ttl }, onBeforeCreate) => { logger.info(`[PasswordLock] creating password lock`); const verified = await auth.confirmPassword(secret); if (!verified) { const message = authStore.getExtraPassword() ? c('Error').t`Wrong extra password` : c('Error').t`Wrong password`; throw new Error(message); } await onBeforeCreate?.(); if (!authStore.hasOfflinePassword()) { const { offlineConfig, offlineKD, offlineVerifier } = await getOfflineComponents(secret); authStore.setOfflineConfig(offlineConfig); authStore.setOfflineKD(offlineKD); authStore.setOfflineVerifier(offlineVerifier); } authStore.setLockMode(adapter.type); authStore.setLockTTL(ttl); authStore.setLockLastExtendTime(getEpoch()); authStore.setUnlockRetryCount(0); await auth.persistSession().catch(noop); return { mode: adapter.type, locked: false, ttl }; }, /** Resets every auth store properties relative to offline * mode and re-persists the session accordingly */ delete: async () => { logger.info(`[PasswordLock] deleting password lock`); authStore.setLockLastExtendTime(undefined); authStore.setLockTTL(undefined); authStore.setLockMode(LockMode.NONE); authStore.setLocked(false); authStore.setUnlockRetryCount(0); await auth.persistSession().catch(noop); return { mode: LockMode.NONE, locked: false }; }, /** Password locking should reset the in-memory `OfflineKD`. * Remove the session lock token as well preeventively in case * a user ends up in a situation with both a password and an * API lock - this should not happen */ lock: async () => { logger.info(`[PasswordLock] locking session`); authStore.setOfflineKD(undefined); authStore.setLockToken(undefined); authStore.setLocked(true); return { mode: adapter.type, locked: true }; }, /** Password unlocking involves checking if we can decrypt the * `encryptedCacheKey` with the argon2 derivation of the provided * secret. The `offlineKD` is encrypted in the session blob, as * such, we cannot rely on it for comparison when booting offline. * Load the crypto workers early in case password unlocking * happens before we boot the application state (hydrate.saga) */ unlock: async (secret) => { const retryCount = authStore.getUnlockRetryCount() + 1; /** API may have been flagged as sessionLocked before * booting offline - as such reset the api state to * avoid failing subsequent requests. */ await api.reset(); try { await loadCryptoWorker().catch(() => { throw new PassCryptoError('Could not load worker'); }); const offlineConfig = authStore.getOfflineConfig(); const offlineVerifier = authStore.getOfflineVerifier(); if (!(offlineConfig && offlineVerifier)) throw new PassCryptoError('Invalid password lock'); const { salt, params } = offlineConfig; const offlineKD = await getOfflineKeyDerivation(secret, stringToUint8Array(salt), params); const offlineKey = await getSymmetricKey(offlineKD); /** this will throw if the derived offlineKD is incorrect */ await decryptData(offlineKey, stringToUint8Array(offlineVerifier), PassEncryptionTag.Offline); const hash = uint8ArrayToString(offlineKD); authStore.setOfflineKD(hash); await setRetryCount(0).catch(noop); return hash; } catch (err) { if (err instanceof PassCryptoError) throw err; if (retryCount >= 3) { await auth.logout({ soft: false, broadcast: true }); throw new Error(c('Warning').t`Too many attempts`); } await setRetryCount(retryCount).catch(noop); await auth.lock(adapter.type, { broadcast: true, soft: true, userInitiated: true }); const errMessage = authStore.getExtraPassword() ? c('Error').t`Wrong extra password` : c('Error').t`Wrong password`; throw Error(errMessage); } }, }; return adapter; }; ```
/content/code_sandbox/packages/pass/lib/auth/lock/password/adapter.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,489
```xml import SelectCompanies from '@erxes/ui-contacts/src/companies/containers/SelectCompanies'; import SelectCustomers from '@erxes/ui-contacts/src/customers/containers/SelectCustomers'; import { ControlLabel, EmptyState, FormGroup, __ } from '@erxes/ui/src'; import React from 'react'; type Props = { type: string; value: string | string[]; label: string; name: string; onSelect: (value: string | string[], name: string) => void; }; const Components = { lead: SelectCustomers, customer: SelectCustomers, company: SelectCompanies }; class SelectRecipients extends React.Component<Props> { constructor(props) { super(props); } render() { const { type, value, label, name, onSelect } = this.props; const Component = Components[type]; if (!Component) { return <EmptyState text="Empty" icon="info-circle" />; } return ( <FormGroup> <ControlLabel>{__(label)}</ControlLabel> <Component name={name} initialValue={value} label={label} onSelect={onSelect} filterParams={{ type, emailValidationStatus: 'valid' }} /> </FormGroup> ); } } export default SelectRecipients; ```
/content/code_sandbox/packages/core-ui/src/modules/contacts/automations/components/SelectRecipients.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
280
```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 isNegativeIntegerArray = require( './index' ); // TESTS // // The function returns a boolean... { isNegativeIntegerArray( [ 4 ] ); // $ExpectType boolean isNegativeIntegerArray( [ -2 ] ); // $ExpectType boolean } // The compiler throws an error if the function is provided an unsupported number of arguments... { isNegativeIntegerArray(); // $ExpectError isNegativeIntegerArray( [ -3 ], 123 ); // $ExpectError } // Attached to main export is a `primitives` method which returns a boolean... { // eslint-disable-next-line no-new-wrappers isNegativeIntegerArray.primitives( [ new Number( -3 ) ] ); // $ExpectType boolean isNegativeIntegerArray.primitives( [ -3 ] ); // $ExpectType boolean } // The compiler throws an error if the `primitives` method is provided an unsupported number of arguments... { isNegativeIntegerArray.primitives(); // $ExpectError isNegativeIntegerArray.primitives( [ -2 ], 123 ); // $ExpectError } // Attached to main export is an `objects` method which returns a boolean... { // eslint-disable-next-line no-new-wrappers isNegativeIntegerArray.objects( [ new Number( -2 ) ] ); // $ExpectType boolean isNegativeIntegerArray.objects( [ -2 ] ); // $ExpectType boolean } // The compiler throws an error if the `objects` method is provided an unsupported number of arguments... { isNegativeIntegerArray.objects(); // $ExpectError isNegativeIntegerArray.objects( [ -2 ], 123 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/assert/is-negative-integer-array/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
397
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>library</OutputType> <TargetFrameworks>net7.0;net6.0</TargetFrameworks> <RootNamespace>XOutput</RootNamespace> <PackageId>XOutput.Core</PackageId> </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" /> <PackageReference Include="NLog" Version="5.2.5" /> </ItemGroup> </Project> ```
/content/code_sandbox/XOutput.Core/XOutput.Core.csproj
xml
2016-11-22T21:13:16
2024-08-16T10:35:33
XOutput
csutorasa/XOutput
1,103
119
```xml // See LICENSE.txt for license information. import React from 'react'; import {Preferences} from '@constants'; import {renderWithEverything} from '@test/intl-test-helper'; import TestHelper from '@test/test_helper'; import OptionListRow from '.'; import type Database from '@nozbe/watermelondb/Database'; describe('components/integration_selector/option_list_row', () => { let database: Database; beforeAll(async () => { const server = await TestHelper.setupServerDatabase(); database = server.database; }); it('should match snapshot for option', () => { const myItem = { value: '1', text: 'my text', }; const wrapper = renderWithEverything( <OptionListRow enabled={true} selectable={false} selected={false} theme={Preferences.THEMES.denim} item={myItem} id='1' onPress={() => { // noop }} > <br/> </OptionListRow>, {database}, ); expect(wrapper.toJSON()).toMatchSnapshot(); }); }); ```
/content/code_sandbox/app/screens/integration_selector/option_list_row/index.test.tsx
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
236
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9531" systemVersion="14F1509" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct"> <dependencies> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9531"/> </dependencies> <objects> <customObject id="-2" userLabel="File's Owner" customClass="NSApplication"> <connections> <outlet property="delegate" destination="Voe-Tx-rLC" id="GzC-gU-4Uq"/> </connections> </customObject> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="Voe-Tx-rLC" customClass="AppDelegate"/> <menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6"> <items> <menuItem title="Itsycal" id="1Xt-HY-uBw"> <modifierMask key="keyEquivalentModifierMask"/> <menu key="submenu" title="Itsycal" systemMenu="apple" id="uQy-DD-JDr"> <items> <menuItem title="Quit Itsycal" keyEquivalent="q" id="4sb-4s-VLi"> <connections> <action selector="terminate:" target="-1" id="Te7-pn-YzF"/> </connections> </menuItem> </items> </menu> </menuItem> <menuItem title="File" id="dMs-cI-mzQ"> <modifierMask key="keyEquivalentModifierMask"/> <menu key="submenu" title="File" id="bib-Uj-vzu"> <items> <menuItem title="Close" keyEquivalent="w" id="7wR-SZ-Nqc"> <connections> <action selector="performClose:" target="-1" id="8Eg-rq-dWx"/> </connections> </menuItem> </items> </menu> </menuItem> <menuItem title="Edit" id="RD9-zb-l4F"> <modifierMask key="keyEquivalentModifierMask"/> <menu key="submenu" title="Edit" id="Xm0-od-eJc"> <items> <menuItem title="Undo" keyEquivalent="z" id="zvl-vr-OUg"> <connections> <action selector="undo:" target="-1" id="VIG-Qg-J1O"/> </connections> </menuItem> <menuItem title="Redo" keyEquivalent="Z" id="E90-5z-y6Z"> <connections> <action selector="redo:" target="-1" id="EKs-Tc-0DD"/> </connections> </menuItem> <menuItem isSeparatorItem="YES" id="PeM-iC-bOC"/> <menuItem title="Cut" keyEquivalent="x" id="vPX-F4-xWi"> <connections> <action selector="cut:" target="-1" id="lr8-LK-tj4"/> </connections> </menuItem> <menuItem title="Copy" keyEquivalent="c" id="KoB-Sc-Ag6"> <connections> <action selector="copy:" target="-1" id="VmY-gL-o46"/> </connections> </menuItem> <menuItem title="Paste" keyEquivalent="v" id="XV4-be-FKs"> <connections> <action selector="paste:" target="-1" id="6BR-RW-ALi"/> </connections> </menuItem> <menuItem title="Paste and Match Style" keyEquivalent="v" id="PMd-w8-qYH"> <connections> <action selector="pasteAsPlainText:" target="-1" id="DbN-Mo-lJW"/> </connections> </menuItem> <menuItem title="Delete" id="Ajc-jh-dSd"> <modifierMask key="keyEquivalentModifierMask"/> <connections> <action selector="delete:" target="-1" id="5pe-MR-83J"/> </connections> </menuItem> <menuItem title="Select All" keyEquivalent="a" id="vKD-cH-8sx"> <connections> <action selector="selectAll:" target="-1" id="4FT-yP-oaI"/> </connections> </menuItem> </items> </menu> </menuItem> </items> </menu> <customObject id="9Zs-J5-87v" customClass="SUUpdater"/> </objects> </document> ```
/content/code_sandbox/Itsycal/Base.lproj/MainMenu.xib
xml
2016-01-27T17:33:22
2024-08-15T14:10:35
Itsycal
sfsam/Itsycal
3,278
1,085
```xml import type { expect } from 'vitest'; interface AsymmetricMatchers { toEqualCaseInsensitive(expected: string): string; } export function extendExpect(e: typeof expect): AsymmetricMatchers { e.extend({ toEqualCaseInsensitive(actual, expected) { if (typeof actual !== 'string' || typeof expected !== 'string') { throw new Error('These must be of type number!'); } const pass = actual.toLowerCase() === expected.toLowerCase(); return { message: () => // `this` context will have correct typings `expected ${this.utils.printReceived(actual)} to equal ${this.utils.printExpected(expected)} case insensitive`, pass, }; }, }); return e as unknown as AsymmetricMatchers; } ```
/content/code_sandbox/packages/_server/src/test/test.matchers.ts
xml
2016-05-16T10:42:22
2024-08-16T02:29:06
vscode-spell-checker
streetsidesoftware/vscode-spell-checker
1,377
158
```xml export default { placeholder: '', cancelText: '', }; ```
/content/code_sandbox/packages/zarm/src/search-bar/locale/zh_CN.ts
xml
2016-07-13T11:45:37
2024-08-12T19:23:48
zarm
ZhongAnTech/zarm
1,707
14
```xml import * as React from 'react'; import { render } from '@testing-library/react'; import { DialogBody } from './DialogBody'; import { isConformant } from '../../testing/isConformant'; import type { DialogBodyProps } from './DialogBody.types'; describe('DialogBody', () => { isConformant<DialogBodyProps>({ Component: DialogBody, displayName: 'DialogBody', }); // TODO add more tests here, and create visual regression tests in /apps/vr-tests it('renders a default state', () => { const result = render(<DialogBody>Default DialogBody</DialogBody>); expect(result.container).toMatchSnapshot(); }); }); ```
/content/code_sandbox/packages/react-components/react-dialog/library/src/components/DialogBody/DialogBody.test.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
147
```xml <?xml version="1.0" encoding="UTF-8"?> <document filename='bm_us-002-reg.xml'> <table id='1'> <region id='1' page='1'> <instruction instr-id='184'/> <instruction instr-id='184' subinstr-id='2'/> <instruction instr-id='184' subinstr-id='4'/> <instruction instr-id='184' subinstr-id='6'/> <instruction instr-id='188'/> <instruction instr-id='188' subinstr-id='2'/> <instruction instr-id='188' subinstr-id='4'/> <instruction instr-id='188' subinstr-id='6'/> <instruction instr-id='188' subinstr-id='8'/> <instruction instr-id='188' subinstr-id='10'/> <instruction instr-id='188' subinstr-id='12'/> <instruction instr-id='188' subinstr-id='14'/> <instruction instr-id='188' subinstr-id='16'/> <instruction instr-id='188' subinstr-id='18'/> <instruction instr-id='188' subinstr-id='20'/> <instruction instr-id='188' subinstr-id='22'/> <instruction instr-id='188' subinstr-id='24'/> <instruction instr-id='188' subinstr-id='26'/> <instruction instr-id='188' subinstr-id='28'/> <instruction instr-id='188' subinstr-id='30'/> <instruction instr-id='188' subinstr-id='32'/> <instruction instr-id='188' subinstr-id='34'/> <instruction instr-id='188' subinstr-id='36'/> <instruction instr-id='192'/> <instruction instr-id='192' subinstr-id='2'/> <instruction instr-id='192' subinstr-id='4'/> <instruction instr-id='192' subinstr-id='6'/> <instruction instr-id='192' subinstr-id='8'/> <instruction instr-id='192' subinstr-id='10'/> <instruction instr-id='192' subinstr-id='12'/> <instruction instr-id='192' subinstr-id='14'/> <instruction instr-id='192' subinstr-id='16'/> <instruction instr-id='192' subinstr-id='18'/> <instruction instr-id='192' subinstr-id='20'/> <instruction instr-id='192' subinstr-id='22'/> <instruction instr-id='192' subinstr-id='24'/> <instruction instr-id='192' subinstr-id='26'/> <instruction instr-id='192' subinstr-id='28'/> <instruction instr-id='192' subinstr-id='30'/> <instruction instr-id='192' subinstr-id='32'/> <instruction instr-id='192' subinstr-id='34'/> <instruction instr-id='192' subinstr-id='36'/> <instruction instr-id='192' subinstr-id='38'/> <instruction instr-id='192' subinstr-id='40'/> <instruction instr-id='192' subinstr-id='42'/> <instruction instr-id='192' subinstr-id='44'/> <instruction instr-id='192' subinstr-id='46'/> <instruction instr-id='192' subinstr-id='48'/> <instruction instr-id='192' subinstr-id='50'/> <instruction instr-id='192' subinstr-id='52'/> <instruction instr-id='208'/> <instruction instr-id='219'/> <instruction instr-id='219' subinstr-id='2'/> <instruction instr-id='219' subinstr-id='4'/> <instruction instr-id='219' subinstr-id='6'/> <instruction instr-id='219' subinstr-id='8'/> <instruction instr-id='219' subinstr-id='10'/> <instruction instr-id='219' subinstr-id='12'/> <instruction instr-id='223'/> <instruction instr-id='223' subinstr-id='2'/> <instruction instr-id='223' subinstr-id='4'/> <instruction instr-id='223' subinstr-id='6'/> <instruction instr-id='223' subinstr-id='8'/> <instruction instr-id='223' subinstr-id='10'/> <instruction instr-id='223' subinstr-id='12'/> <instruction instr-id='223' subinstr-id='14'/> <instruction instr-id='223' subinstr-id='16'/> <instruction instr-id='223' subinstr-id='18'/> <instruction instr-id='223' subinstr-id='20'/> <instruction instr-id='223' subinstr-id='22'/> <instruction instr-id='229'/> <instruction instr-id='229' subinstr-id='2'/> <instruction instr-id='229' subinstr-id='4'/> <instruction instr-id='229' subinstr-id='6'/> <instruction instr-id='229' subinstr-id='8'/> <instruction instr-id='229' subinstr-id='10'/> <instruction instr-id='229' subinstr-id='12'/> <instruction instr-id='229' subinstr-id='14'/> <instruction instr-id='229' subinstr-id='16'/> <instruction instr-id='229' subinstr-id='18'/> <instruction instr-id='229' subinstr-id='20'/> <instruction instr-id='229' subinstr-id='22'/> <instruction instr-id='229' subinstr-id='24'/> <instruction instr-id='229' subinstr-id='26'/> <instruction instr-id='229' subinstr-id='28'/> <instruction instr-id='229' subinstr-id='30'/> <instruction instr-id='229' subinstr-id='32'/> <instruction instr-id='229' subinstr-id='34'/> <instruction instr-id='229' subinstr-id='36'/> <instruction instr-id='229' subinstr-id='38'/> <instruction instr-id='235'/> <instruction instr-id='235' subinstr-id='2'/> <instruction instr-id='235' subinstr-id='4'/> <instruction instr-id='235' subinstr-id='6'/> <instruction instr-id='235' subinstr-id='8'/> <instruction instr-id='235' subinstr-id='10'/> <instruction instr-id='235' subinstr-id='12'/> <instruction instr-id='235' subinstr-id='14'/> <instruction instr-id='235' subinstr-id='16'/> <instruction instr-id='235' subinstr-id='18'/> <instruction instr-id='235' subinstr-id='20'/> <instruction instr-id='235' subinstr-id='22'/> <instruction instr-id='235' subinstr-id='24'/> <instruction instr-id='235' subinstr-id='26'/> <instruction instr-id='240'/> <instruction instr-id='240' subinstr-id='2'/> <instruction instr-id='240' subinstr-id='4'/> <instruction instr-id='240' subinstr-id='6'/> <instruction instr-id='240' subinstr-id='8'/> <instruction instr-id='240' subinstr-id='10'/> <instruction instr-id='240' subinstr-id='12'/> <instruction instr-id='240' subinstr-id='14'/> <instruction instr-id='240' subinstr-id='16'/> <instruction instr-id='240' subinstr-id='18'/> <instruction instr-id='240' subinstr-id='20'/> <instruction instr-id='240' subinstr-id='22'/> <instruction instr-id='240' subinstr-id='24'/> <instruction instr-id='240' subinstr-id='26'/> <instruction instr-id='240' subinstr-id='28'/> <instruction instr-id='240' subinstr-id='30'/> <instruction instr-id='240' subinstr-id='32'/> <instruction instr-id='240' subinstr-id='34'/> <instruction instr-id='240' subinstr-id='36'/> <instruction instr-id='240' subinstr-id='38'/> <instruction instr-id='240' subinstr-id='40'/> <instruction instr-id='240' subinstr-id='42'/> <instruction instr-id='245'/> <instruction instr-id='245' subinstr-id='2'/> <instruction instr-id='245' subinstr-id='4'/> <instruction instr-id='245' subinstr-id='6'/> <instruction instr-id='245' subinstr-id='8'/> <instruction instr-id='245' subinstr-id='10'/> <instruction instr-id='245' subinstr-id='12'/> <instruction instr-id='245' subinstr-id='14'/> <instruction instr-id='245' subinstr-id='16'/> <instruction instr-id='245' subinstr-id='18'/> <instruction instr-id='245' subinstr-id='20'/> <instruction instr-id='245' subinstr-id='22'/> <instruction instr-id='245' subinstr-id='24'/> <instruction instr-id='245' subinstr-id='26'/> <instruction instr-id='245' subinstr-id='28'/> <instruction instr-id='245' subinstr-id='30'/> <instruction instr-id='245' subinstr-id='32'/> <instruction instr-id='245' subinstr-id='34'/> <instruction instr-id='245' subinstr-id='36'/> <instruction instr-id='245' subinstr-id='38'/> <instruction instr-id='250'/> <instruction instr-id='250' subinstr-id='2'/> <instruction instr-id='250' subinstr-id='4'/> <instruction instr-id='250' subinstr-id='6'/> <instruction instr-id='250' subinstr-id='8'/> <instruction instr-id='250' subinstr-id='10'/> <instruction instr-id='250' subinstr-id='12'/> <instruction instr-id='250' subinstr-id='14'/> <instruction instr-id='250' subinstr-id='16'/> <instruction instr-id='250' subinstr-id='18'/> <instruction instr-id='250' subinstr-id='20'/> <instruction instr-id='250' subinstr-id='22'/> <instruction instr-id='250' subinstr-id='24'/> <instruction instr-id='250' subinstr-id='26'/> <instruction instr-id='250' subinstr-id='28'/> <instruction instr-id='250' subinstr-id='30'/> <instruction instr-id='250' subinstr-id='32'/> <instruction instr-id='250' subinstr-id='34'/> <instruction instr-id='250' subinstr-id='36'/> <instruction instr-id='250' subinstr-id='38'/> <instruction instr-id='250' subinstr-id='40'/> <instruction instr-id='250' subinstr-id='42'/> <instruction instr-id='250' subinstr-id='44'/> <instruction instr-id='254'/> <instruction instr-id='254' subinstr-id='2'/> <instruction instr-id='254' subinstr-id='4'/> <instruction instr-id='254' subinstr-id='6'/> <instruction instr-id='254' subinstr-id='8'/> <instruction instr-id='254' subinstr-id='10'/> <instruction instr-id='254' subinstr-id='12'/> <instruction instr-id='254' subinstr-id='14'/> <instruction instr-id='254' subinstr-id='16'/> <instruction instr-id='254' subinstr-id='18'/> <instruction instr-id='254' subinstr-id='20'/> <instruction instr-id='254' subinstr-id='22'/> <instruction instr-id='254' subinstr-id='24'/> <instruction instr-id='254' subinstr-id='26'/> <instruction instr-id='254' subinstr-id='28'/> <instruction instr-id='254' subinstr-id='30'/> <instruction instr-id='254' subinstr-id='32'/> <instruction instr-id='254' subinstr-id='34'/> <instruction instr-id='254' subinstr-id='36'/> <instruction instr-id='254' subinstr-id='38'/> <instruction instr-id='254' subinstr-id='40'/> <instruction instr-id='254' subinstr-id='42'/> <instruction instr-id='254' subinstr-id='44'/> <instruction instr-id='259'/> <instruction instr-id='259' subinstr-id='2'/> <instruction instr-id='259' subinstr-id='4'/> <instruction instr-id='259' subinstr-id='6'/> <instruction instr-id='259' subinstr-id='8'/> <instruction instr-id='259' subinstr-id='10'/> <instruction instr-id='259' subinstr-id='12'/> <instruction instr-id='259' subinstr-id='14'/> <instruction instr-id='259' subinstr-id='16'/> <instruction instr-id='259' subinstr-id='18'/> <instruction instr-id='259' subinstr-id='20'/> <instruction instr-id='259' subinstr-id='22'/> <instruction instr-id='259' subinstr-id='24'/> <instruction instr-id='259' subinstr-id='26'/> <instruction instr-id='259' subinstr-id='28'/> <instruction instr-id='259' subinstr-id='30'/> <instruction instr-id='259' subinstr-id='32'/> <instruction instr-id='259' subinstr-id='34'/> <instruction instr-id='259' subinstr-id='36'/> <instruction instr-id='264'/> <instruction instr-id='264' subinstr-id='2'/> <instruction instr-id='264' subinstr-id='4'/> <instruction instr-id='264' subinstr-id='6'/> <instruction instr-id='264' subinstr-id='8'/> <instruction instr-id='264' subinstr-id='10'/> <instruction instr-id='264' subinstr-id='12'/> <instruction instr-id='264' subinstr-id='14'/> <instruction instr-id='264' subinstr-id='16'/> <instruction instr-id='264' subinstr-id='18'/> <instruction instr-id='264' subinstr-id='20'/> <instruction instr-id='264' subinstr-id='22'/> <instruction instr-id='270'/> <instruction instr-id='270' subinstr-id='2'/> <instruction instr-id='270' subinstr-id='4'/> <instruction instr-id='270' subinstr-id='6'/> <instruction instr-id='270' subinstr-id='8'/> <instruction instr-id='270' subinstr-id='10'/> <instruction instr-id='270' subinstr-id='12'/> <instruction instr-id='270' subinstr-id='14'/> <instruction instr-id='270' subinstr-id='16'/> <instruction instr-id='276'/> <instruction instr-id='276' subinstr-id='2'/> <instruction instr-id='276' subinstr-id='4'/> <instruction instr-id='276' subinstr-id='6'/> <instruction instr-id='276' subinstr-id='8'/> <instruction instr-id='276' subinstr-id='10'/> <instruction instr-id='276' subinstr-id='12'/> <instruction instr-id='276' subinstr-id='14'/> <instruction instr-id='276' subinstr-id='16'/> <instruction instr-id='276' subinstr-id='18'/> <instruction instr-id='276' subinstr-id='20'/> <instruction instr-id='276' subinstr-id='22'/> <instruction instr-id='276' subinstr-id='24'/> <instruction instr-id='276' subinstr-id='26'/> <instruction instr-id='292'/> <instruction instr-id='302'/> <instruction instr-id='302' subinstr-id='2'/> <instruction instr-id='302' subinstr-id='4'/> <instruction instr-id='302' subinstr-id='6'/> <instruction instr-id='302' subinstr-id='8'/> <instruction instr-id='302' subinstr-id='10'/> <instruction instr-id='302' subinstr-id='12'/> <instruction instr-id='302' subinstr-id='14'/> <instruction instr-id='306'/> <instruction instr-id='306' subinstr-id='2'/> <instruction instr-id='306' subinstr-id='4'/> <instruction instr-id='306' subinstr-id='6'/> <instruction instr-id='306' subinstr-id='8'/> <instruction instr-id='306' subinstr-id='10'/> <instruction instr-id='306' subinstr-id='12'/> <instruction instr-id='306' subinstr-id='14'/> <instruction instr-id='306' subinstr-id='16'/> <instruction instr-id='306' subinstr-id='18'/> <instruction instr-id='306' subinstr-id='20'/> <instruction instr-id='306' subinstr-id='22'/> <instruction instr-id='312'/> <instruction instr-id='312' subinstr-id='2'/> <instruction instr-id='312' subinstr-id='4'/> <instruction instr-id='312' subinstr-id='6'/> <instruction instr-id='312' subinstr-id='8'/> <instruction instr-id='312' subinstr-id='10'/> <instruction instr-id='312' subinstr-id='12'/> <instruction instr-id='312' subinstr-id='14'/> <instruction instr-id='312' subinstr-id='16'/> <instruction instr-id='312' subinstr-id='18'/> <instruction instr-id='312' subinstr-id='20'/> <instruction instr-id='312' subinstr-id='22'/> <instruction instr-id='312' subinstr-id='24'/> <instruction instr-id='312' subinstr-id='26'/> <instruction instr-id='312' subinstr-id='28'/> <instruction instr-id='312' subinstr-id='30'/> <instruction instr-id='312' subinstr-id='32'/> <instruction instr-id='312' subinstr-id='34'/> <instruction instr-id='312' subinstr-id='36'/> <instruction instr-id='312' subinstr-id='38'/> <instruction instr-id='312' subinstr-id='40'/> <instruction instr-id='312' subinstr-id='42'/> <instruction instr-id='312' subinstr-id='44'/> <instruction instr-id='312' subinstr-id='46'/> <instruction instr-id='312' subinstr-id='48'/> <instruction instr-id='312' subinstr-id='50'/> <instruction instr-id='312' subinstr-id='52'/> <instruction instr-id='312' subinstr-id='54'/> <instruction instr-id='312' subinstr-id='56'/> <instruction instr-id='312' subinstr-id='58'/> <instruction instr-id='312' subinstr-id='60'/> <instruction instr-id='312' subinstr-id='62'/> <instruction instr-id='312' subinstr-id='64'/> <instruction instr-id='317'/> <instruction instr-id='317' subinstr-id='2'/> <instruction instr-id='317' subinstr-id='4'/> <instruction instr-id='317' subinstr-id='6'/> <instruction instr-id='317' subinstr-id='8'/> <instruction instr-id='317' subinstr-id='10'/> <instruction instr-id='317' subinstr-id='12'/> <instruction instr-id='317' subinstr-id='14'/> <instruction instr-id='317' subinstr-id='16'/> <instruction instr-id='317' subinstr-id='18'/> <instruction instr-id='317' subinstr-id='20'/> <instruction instr-id='317' subinstr-id='22'/> <instruction instr-id='317' subinstr-id='24'/> <instruction instr-id='317' subinstr-id='26'/> <instruction instr-id='317' subinstr-id='28'/> <instruction instr-id='317' subinstr-id='30'/> <instruction instr-id='317' subinstr-id='32'/> <instruction instr-id='317' subinstr-id='34'/> <instruction instr-id='317' subinstr-id='36'/> <instruction instr-id='317' subinstr-id='38'/> <instruction instr-id='317' subinstr-id='40'/> <instruction instr-id='317' subinstr-id='42'/> <instruction instr-id='317' subinstr-id='44'/> <instruction instr-id='317' subinstr-id='46'/> <instruction instr-id='317' subinstr-id='48'/> <instruction instr-id='317' subinstr-id='50'/> <instruction instr-id='317' subinstr-id='52'/> <instruction instr-id='317' subinstr-id='54'/> <instruction instr-id='317' subinstr-id='56'/> <instruction instr-id='317' subinstr-id='58'/> <instruction instr-id='317' subinstr-id='60'/> <instruction instr-id='317' subinstr-id='62'/> <instruction instr-id='317' subinstr-id='64'/> <instruction instr-id='317' subinstr-id='66'/> <instruction instr-id='317' subinstr-id='68'/> <instruction instr-id='317' subinstr-id='70'/> <instruction instr-id='317' subinstr-id='72'/> <instruction instr-id='322'/> <instruction instr-id='322' subinstr-id='2'/> <instruction instr-id='322' subinstr-id='4'/> <instruction instr-id='322' subinstr-id='6'/> <instruction instr-id='322' subinstr-id='8'/> <instruction instr-id='322' subinstr-id='10'/> <instruction instr-id='322' subinstr-id='12'/> <instruction instr-id='322' subinstr-id='14'/> <instruction instr-id='322' subinstr-id='16'/> <instruction instr-id='322' subinstr-id='18'/> <instruction instr-id='322' subinstr-id='20'/> <instruction instr-id='322' subinstr-id='22'/> <instruction instr-id='328'/> <instruction instr-id='328' subinstr-id='2'/> <instruction instr-id='328' subinstr-id='4'/> <instruction instr-id='328' subinstr-id='6'/> <instruction instr-id='328' subinstr-id='8'/> <instruction instr-id='328' subinstr-id='10'/> <instruction instr-id='328' subinstr-id='12'/> <instruction instr-id='328' subinstr-id='14'/> <instruction instr-id='328' subinstr-id='16'/> <instruction instr-id='328' subinstr-id='18'/> <instruction instr-id='328' subinstr-id='20'/> <instruction instr-id='328' subinstr-id='22'/> <instruction instr-id='328' subinstr-id='24'/> <instruction instr-id='328' subinstr-id='26'/> <instruction instr-id='328' subinstr-id='28'/> <instruction instr-id='328' subinstr-id='30'/> <instruction instr-id='328' subinstr-id='32'/> <instruction instr-id='328' subinstr-id='34'/> <instruction instr-id='328' subinstr-id='36'/> <instruction instr-id='328' subinstr-id='38'/> <instruction instr-id='328' subinstr-id='40'/> <instruction instr-id='328' subinstr-id='42'/> <instruction instr-id='328' subinstr-id='44'/> <instruction instr-id='334'/> <instruction instr-id='334' subinstr-id='2'/> <instruction instr-id='334' subinstr-id='4'/> <instruction instr-id='334' subinstr-id='6'/> <instruction instr-id='334' subinstr-id='8'/> <instruction instr-id='334' subinstr-id='10'/> <instruction instr-id='334' subinstr-id='12'/> <instruction instr-id='334' subinstr-id='14'/> <instruction instr-id='334' subinstr-id='16'/> <instruction instr-id='334' subinstr-id='18'/> <instruction instr-id='334' subinstr-id='20'/> <instruction instr-id='334' subinstr-id='22'/> <instruction instr-id='334' subinstr-id='24'/> <instruction instr-id='334' subinstr-id='26'/> <instruction instr-id='339'/> <instruction instr-id='339' subinstr-id='2'/> <instruction instr-id='339' subinstr-id='4'/> <instruction instr-id='339' subinstr-id='6'/> <instruction instr-id='339' subinstr-id='8'/> <instruction instr-id='339' subinstr-id='10'/> <instruction instr-id='339' subinstr-id='12'/> <instruction instr-id='339' subinstr-id='14'/> <instruction instr-id='339' subinstr-id='16'/> <instruction instr-id='339' subinstr-id='18'/> <instruction instr-id='339' subinstr-id='20'/> <instruction instr-id='339' subinstr-id='22'/> <instruction instr-id='339' subinstr-id='24'/> <instruction instr-id='339' subinstr-id='26'/> <instruction instr-id='339' subinstr-id='28'/> <instruction instr-id='339' subinstr-id='30'/> <instruction instr-id='344'/> <instruction instr-id='344' subinstr-id='2'/> <instruction instr-id='344' subinstr-id='4'/> <instruction instr-id='344' subinstr-id='6'/> <instruction instr-id='344' subinstr-id='8'/> <instruction instr-id='344' subinstr-id='10'/> <instruction instr-id='344' subinstr-id='12'/> <instruction instr-id='344' subinstr-id='14'/> <instruction instr-id='348'/> <instruction instr-id='348' subinstr-id='2'/> <instruction instr-id='348' subinstr-id='4'/> <instruction instr-id='348' subinstr-id='6'/> <instruction instr-id='348' subinstr-id='8'/> <instruction instr-id='348' subinstr-id='10'/> <instruction instr-id='348' subinstr-id='12'/> <instruction instr-id='348' subinstr-id='14'/> <instruction instr-id='353'/> <instruction instr-id='353' subinstr-id='2'/> <instruction instr-id='353' subinstr-id='4'/> <instruction instr-id='353' subinstr-id='6'/> <instruction instr-id='353' subinstr-id='8'/> <instruction instr-id='353' subinstr-id='10'/> <instruction instr-id='353' subinstr-id='12'/> <instruction instr-id='353' subinstr-id='14'/> <instruction instr-id='353' subinstr-id='16'/> <instruction instr-id='353' subinstr-id='18'/> <instruction instr-id='353' subinstr-id='20'/> <instruction instr-id='359'/> <instruction instr-id='359' subinstr-id='2'/> <instruction instr-id='359' subinstr-id='4'/> <instruction instr-id='359' subinstr-id='6'/> <instruction instr-id='359' subinstr-id='8'/> <instruction instr-id='359' subinstr-id='10'/> <instruction instr-id='359' subinstr-id='12'/> <instruction instr-id='359' subinstr-id='14'/> <instruction instr-id='359' subinstr-id='16'/> <instruction instr-id='359' subinstr-id='18'/> <instruction instr-id='359' subinstr-id='20'/> <instruction instr-id='365'/> <instruction instr-id='365' subinstr-id='2'/> <instruction instr-id='365' subinstr-id='4'/> <instruction instr-id='365' subinstr-id='6'/> <instruction instr-id='370'/> <instruction instr-id='370' subinstr-id='2'/> <instruction instr-id='370' subinstr-id='4'/> <instruction instr-id='370' subinstr-id='6'/> <instruction instr-id='370' subinstr-id='8'/> <instruction instr-id='370' subinstr-id='10'/> <instruction instr-id='370' subinstr-id='12'/> <instruction instr-id='370' subinstr-id='14'/> <instruction instr-id='370' subinstr-id='16'/> <instruction instr-id='370' subinstr-id='18'/> <instruction instr-id='370' subinstr-id='20'/> <instruction instr-id='370' subinstr-id='22'/> <instruction instr-id='370' subinstr-id='24'/> <instruction instr-id='370' subinstr-id='26'/> <instruction instr-id='374'/> <instruction instr-id='374' subinstr-id='2'/> <instruction instr-id='374' subinstr-id='4'/> <instruction instr-id='374' subinstr-id='6'/> <instruction instr-id='374' subinstr-id='8'/> <instruction instr-id='374' subinstr-id='10'/> <instruction instr-id='374' subinstr-id='12'/> <instruction instr-id='374' subinstr-id='14'/> <instruction instr-id='374' subinstr-id='16'/> <instruction instr-id='374' subinstr-id='18'/> <instruction instr-id='374' subinstr-id='20'/> <instruction instr-id='374' subinstr-id='22'/> <instruction instr-id='374' subinstr-id='24'/> <instruction instr-id='374' subinstr-id='26'/> <instruction instr-id='374' subinstr-id='28'/> <instruction instr-id='378'/> <instruction instr-id='378' subinstr-id='2'/> <instruction instr-id='378' subinstr-id='4'/> <instruction instr-id='378' subinstr-id='6'/> <instruction instr-id='378' subinstr-id='8'/> <instruction instr-id='378' subinstr-id='10'/> <instruction instr-id='378' subinstr-id='12'/> <instruction instr-id='378' subinstr-id='14'/> <instruction instr-id='378' subinstr-id='16'/> <instruction instr-id='378' subinstr-id='18'/> <instruction instr-id='378' subinstr-id='20'/> <instruction instr-id='378' subinstr-id='22'/> <instruction instr-id='378' subinstr-id='24'/> <instruction instr-id='378' subinstr-id='26'/> <instruction instr-id='378' subinstr-id='28'/> <instruction instr-id='378' subinstr-id='30'/> <instruction instr-id='378' subinstr-id='32'/> <instruction instr-id='378' subinstr-id='34'/> <instruction instr-id='378' subinstr-id='36'/> <instruction instr-id='378' subinstr-id='38'/> <instruction instr-id='378' subinstr-id='40'/> <instruction instr-id='378' subinstr-id='42'/> <instruction instr-id='383'/> <instruction instr-id='383' subinstr-id='2'/> <instruction instr-id='383' subinstr-id='4'/> <instruction instr-id='383' subinstr-id='6'/> <instruction instr-id='383' subinstr-id='8'/> <instruction instr-id='383' subinstr-id='10'/> <instruction instr-id='383' subinstr-id='12'/> <instruction instr-id='383' subinstr-id='14'/> <instruction instr-id='383' subinstr-id='16'/> <instruction instr-id='383' subinstr-id='18'/> <instruction instr-id='383' subinstr-id='20'/> <instruction instr-id='383' subinstr-id='22'/> <instruction instr-id='383' subinstr-id='24'/> <instruction instr-id='388'/> <instruction instr-id='388' subinstr-id='2'/> <instruction instr-id='388' subinstr-id='4'/> <instruction instr-id='388' subinstr-id='6'/> <instruction instr-id='388' subinstr-id='8'/> <instruction instr-id='388' subinstr-id='10'/> <instruction instr-id='388' subinstr-id='12'/> <instruction instr-id='388' subinstr-id='14'/> <instruction instr-id='388' subinstr-id='16'/> <instruction instr-id='388' subinstr-id='18'/> <instruction instr-id='388' subinstr-id='20'/> <instruction instr-id='388' subinstr-id='22'/> <instruction instr-id='388' subinstr-id='24'/> <instruction instr-id='388' subinstr-id='26'/> <instruction instr-id='391'/> <instruction instr-id='391' subinstr-id='2'/> <instruction instr-id='391' subinstr-id='4'/> <instruction instr-id='391' subinstr-id='6'/> <instruction instr-id='391' subinstr-id='8'/> <instruction instr-id='391' subinstr-id='10'/> <instruction instr-id='391' subinstr-id='12'/> <instruction instr-id='391' subinstr-id='14'/> <instruction instr-id='391' subinstr-id='16'/> <instruction instr-id='391' subinstr-id='18'/> <instruction instr-id='391' subinstr-id='20'/> <instruction instr-id='391' subinstr-id='22'/> <instruction instr-id='391' subinstr-id='24'/> <instruction instr-id='391' subinstr-id='26'/> <instruction instr-id='395'/> <instruction instr-id='395' subinstr-id='2'/> <instruction instr-id='395' subinstr-id='4'/> <instruction instr-id='395' subinstr-id='6'/> <instruction instr-id='395' subinstr-id='8'/> <instruction instr-id='395' subinstr-id='10'/> <instruction instr-id='395' subinstr-id='12'/> <instruction instr-id='395' subinstr-id='14'/> <instruction instr-id='395' subinstr-id='16'/> <instruction instr-id='395' subinstr-id='18'/> <instruction instr-id='395' subinstr-id='20'/> <instruction instr-id='395' subinstr-id='22'/> <instruction instr-id='395' subinstr-id='24'/> <instruction instr-id='395' subinstr-id='26'/> <instruction instr-id='395' subinstr-id='28'/> <instruction instr-id='419'/> <instruction instr-id='429'/> <instruction instr-id='429' subinstr-id='2'/> <instruction instr-id='429' subinstr-id='4'/> <instruction instr-id='429' subinstr-id='6'/> <instruction instr-id='445'/> <instruction instr-id='455'/> <instruction instr-id='455' subinstr-id='2'/> <instruction instr-id='471'/> <instruction instr-id='481'/> <instruction instr-id='481' subinstr-id='2'/> <instruction instr-id='497'/> <instruction instr-id='522'/> <instruction instr-id='532'/> <instruction instr-id='532' subinstr-id='2'/> <instruction instr-id='549'/> <instruction instr-id='558'/> <instruction instr-id='574'/> <instruction instr-id='592'/> <instruction instr-id='601'/> <instruction instr-id='618'/> <instruction instr-id='635'/> <instruction instr-id='644'/> <instruction instr-id='660'/> <instruction instr-id='677'/> <instruction instr-id='686'/> <instruction instr-id='702'/> <instruction instr-id='719'/> <instruction instr-id='728'/> <instruction instr-id='744'/> <instruction instr-id='762'/> <instruction instr-id='771'/> <instruction instr-id='787'/> <instruction instr-id='805'/> <instruction instr-id='814'/> <instruction instr-id='830'/> <instruction instr-id='890'/> <instruction instr-id='890' subinstr-id='2'/> <instruction instr-id='890' subinstr-id='4'/> <instruction instr-id='890' subinstr-id='6'/> <instruction instr-id='890' subinstr-id='8'/> <instruction instr-id='890' subinstr-id='10'/> <instruction instr-id='890' subinstr-id='12'/> <instruction instr-id='890' subinstr-id='14'/> <instruction instr-id='890' subinstr-id='16'/> <instruction instr-id='890' subinstr-id='18'/> <instruction instr-id='890' subinstr-id='20'/> <instruction instr-id='890' subinstr-id='22'/> <bounding-box x1='74' y1='152' x2='537' y2='581'/> </region> </table> <table id='2'> <region id='1' page='3'> <instruction instr-id='129'/> <instruction instr-id='129' subinstr-id='2'/> <instruction instr-id='129' subinstr-id='4'/> <instruction instr-id='129' subinstr-id='6'/> <instruction instr-id='129' subinstr-id='8'/> <instruction instr-id='129' subinstr-id='10'/> <instruction instr-id='129' subinstr-id='12'/> <instruction instr-id='129' subinstr-id='14'/> <instruction instr-id='129' subinstr-id='16'/> <instruction instr-id='129' subinstr-id='18'/> <instruction instr-id='132'/> <instruction instr-id='132' subinstr-id='2'/> <instruction instr-id='132' subinstr-id='4'/> <instruction instr-id='132' subinstr-id='6'/> <instruction instr-id='132' subinstr-id='8'/> <instruction instr-id='132' subinstr-id='10'/> <instruction instr-id='132' subinstr-id='12'/> <instruction instr-id='132' subinstr-id='14'/> <instruction instr-id='135'/> <instruction instr-id='135' subinstr-id='2'/> <instruction instr-id='135' subinstr-id='4'/> <instruction instr-id='135' subinstr-id='6'/> <instruction instr-id='135' subinstr-id='8'/> <instruction instr-id='135' subinstr-id='10'/> <instruction instr-id='135' subinstr-id='12'/> <instruction instr-id='135' subinstr-id='14'/> <instruction instr-id='135' subinstr-id='16'/> <instruction instr-id='135' subinstr-id='18'/> <instruction instr-id='135' subinstr-id='20'/> <instruction instr-id='135' subinstr-id='22'/> <instruction instr-id='135' subinstr-id='24'/> <instruction instr-id='135' subinstr-id='26'/> <instruction instr-id='135' subinstr-id='28'/> <instruction instr-id='135' subinstr-id='30'/> <instruction instr-id='135' subinstr-id='32'/> <instruction instr-id='135' subinstr-id='34'/> <instruction instr-id='135' subinstr-id='36'/> <instruction instr-id='135' subinstr-id='38'/> <instruction instr-id='135' subinstr-id='40'/> <instruction instr-id='135' subinstr-id='42'/> <instruction instr-id='135' subinstr-id='44'/> <instruction instr-id='135' subinstr-id='46'/> <instruction instr-id='135' subinstr-id='48'/> <instruction instr-id='135' subinstr-id='50'/> <instruction instr-id='139'/> <instruction instr-id='139' subinstr-id='2'/> <instruction instr-id='139' subinstr-id='4'/> <instruction instr-id='139' subinstr-id='6'/> <instruction instr-id='139' subinstr-id='8'/> <instruction instr-id='139' subinstr-id='10'/> <instruction instr-id='139' subinstr-id='12'/> <instruction instr-id='139' subinstr-id='14'/> <instruction instr-id='139' subinstr-id='16'/> <instruction instr-id='139' subinstr-id='18'/> <instruction instr-id='139' subinstr-id='20'/> <instruction instr-id='139' subinstr-id='22'/> <instruction instr-id='139' subinstr-id='24'/> <instruction instr-id='139' subinstr-id='26'/> <instruction instr-id='139' subinstr-id='28'/> <instruction instr-id='139' subinstr-id='30'/> <instruction instr-id='139' subinstr-id='32'/> <instruction instr-id='139' subinstr-id='34'/> <instruction instr-id='139' subinstr-id='36'/> <instruction instr-id='139' subinstr-id='38'/> <instruction instr-id='139' subinstr-id='40'/> <instruction instr-id='139' subinstr-id='42'/> <instruction instr-id='139' subinstr-id='44'/> <instruction instr-id='139' subinstr-id='46'/> <instruction instr-id='139' subinstr-id='48'/> <instruction instr-id='139' subinstr-id='50'/> <instruction instr-id='139' subinstr-id='52'/> <instruction instr-id='139' subinstr-id='54'/> <instruction instr-id='139' subinstr-id='56'/> <instruction instr-id='139' subinstr-id='58'/> <instruction instr-id='139' subinstr-id='60'/> <instruction instr-id='139' subinstr-id='62'/> <instruction instr-id='139' subinstr-id='64'/> <instruction instr-id='139' subinstr-id='66'/> <instruction instr-id='139' subinstr-id='68'/> <instruction instr-id='145'/> <instruction instr-id='145' subinstr-id='2'/> <instruction instr-id='145' subinstr-id='4'/> <instruction instr-id='145' subinstr-id='6'/> <instruction instr-id='145' subinstr-id='8'/> <instruction instr-id='145' subinstr-id='10'/> <instruction instr-id='145' subinstr-id='12'/> <instruction instr-id='145' subinstr-id='14'/> <instruction instr-id='145' subinstr-id='16'/> <instruction instr-id='145' subinstr-id='18'/> <instruction instr-id='145' subinstr-id='20'/> <instruction instr-id='145' subinstr-id='22'/> <instruction instr-id='150'/> <instruction instr-id='150' subinstr-id='2'/> <instruction instr-id='150' subinstr-id='4'/> <instruction instr-id='150' subinstr-id='6'/> <instruction instr-id='150' subinstr-id='8'/> <instruction instr-id='150' subinstr-id='10'/> <instruction instr-id='150' subinstr-id='12'/> <instruction instr-id='150' subinstr-id='14'/> <instruction instr-id='150' subinstr-id='16'/> <instruction instr-id='150' subinstr-id='18'/> <instruction instr-id='150' subinstr-id='20'/> <instruction instr-id='150' subinstr-id='22'/> <instruction instr-id='150' subinstr-id='24'/> <instruction instr-id='150' subinstr-id='26'/> <instruction instr-id='150' subinstr-id='28'/> <instruction instr-id='150' subinstr-id='30'/> <instruction instr-id='150' subinstr-id='32'/> <instruction instr-id='150' subinstr-id='34'/> <instruction instr-id='150' subinstr-id='36'/> <instruction instr-id='150' subinstr-id='38'/> <instruction instr-id='156'/> <instruction instr-id='156' subinstr-id='2'/> <instruction instr-id='156' subinstr-id='4'/> <instruction instr-id='156' subinstr-id='6'/> <instruction instr-id='156' subinstr-id='8'/> <instruction instr-id='156' subinstr-id='10'/> <instruction instr-id='156' subinstr-id='12'/> <instruction instr-id='156' subinstr-id='14'/> <instruction instr-id='156' subinstr-id='16'/> <instruction instr-id='156' subinstr-id='18'/> <instruction instr-id='156' subinstr-id='20'/> <instruction instr-id='156' subinstr-id='22'/> <instruction instr-id='156' subinstr-id='24'/> <instruction instr-id='156' subinstr-id='26'/> <instruction instr-id='156' subinstr-id='28'/> <instruction instr-id='161'/> <instruction instr-id='161' subinstr-id='2'/> <instruction instr-id='161' subinstr-id='4'/> <instruction instr-id='161' subinstr-id='6'/> <instruction instr-id='161' subinstr-id='8'/> <instruction instr-id='161' subinstr-id='10'/> <instruction instr-id='161' subinstr-id='12'/> <instruction instr-id='161' subinstr-id='14'/> <instruction instr-id='161' subinstr-id='16'/> <instruction instr-id='161' subinstr-id='18'/> <instruction instr-id='161' subinstr-id='20'/> <instruction instr-id='161' subinstr-id='22'/> <instruction instr-id='161' subinstr-id='24'/> <instruction instr-id='161' subinstr-id='26'/> <instruction instr-id='161' subinstr-id='28'/> <instruction instr-id='161' subinstr-id='30'/> <instruction instr-id='164'/> <instruction instr-id='164' subinstr-id='2'/> <instruction instr-id='164' subinstr-id='4'/> <instruction instr-id='164' subinstr-id='6'/> <instruction instr-id='164' subinstr-id='8'/> <instruction instr-id='164' subinstr-id='10'/> <instruction instr-id='164' subinstr-id='12'/> <instruction instr-id='164' subinstr-id='14'/> <instruction instr-id='168'/> <instruction instr-id='168' subinstr-id='2'/> <instruction instr-id='168' subinstr-id='4'/> <instruction instr-id='168' subinstr-id='6'/> <instruction instr-id='168' subinstr-id='8'/> <instruction instr-id='168' subinstr-id='10'/> <instruction instr-id='168' subinstr-id='12'/> <instruction instr-id='168' subinstr-id='14'/> <instruction instr-id='168' subinstr-id='16'/> <instruction instr-id='168' subinstr-id='18'/> <instruction instr-id='168' subinstr-id='20'/> <instruction instr-id='168' subinstr-id='22'/> <instruction instr-id='168' subinstr-id='24'/> <instruction instr-id='168' subinstr-id='26'/> <instruction instr-id='168' subinstr-id='28'/> <instruction instr-id='168' subinstr-id='30'/> <instruction instr-id='168' subinstr-id='32'/> <instruction instr-id='168' subinstr-id='34'/> <instruction instr-id='168' subinstr-id='36'/> <instruction instr-id='168' subinstr-id='38'/> <instruction instr-id='173'/> <instruction instr-id='173' subinstr-id='2'/> <instruction instr-id='173' subinstr-id='4'/> <instruction instr-id='173' subinstr-id='6'/> <instruction instr-id='173' subinstr-id='8'/> <instruction instr-id='173' subinstr-id='10'/> <instruction instr-id='173' subinstr-id='12'/> <instruction instr-id='173' subinstr-id='14'/> <instruction instr-id='173' subinstr-id='16'/> <instruction instr-id='173' subinstr-id='18'/> <instruction instr-id='173' subinstr-id='20'/> <instruction instr-id='173' subinstr-id='22'/> <instruction instr-id='173' subinstr-id='24'/> <instruction instr-id='173' subinstr-id='26'/> <instruction instr-id='173' subinstr-id='28'/> <instruction instr-id='173' subinstr-id='30'/> <instruction instr-id='173' subinstr-id='32'/> <instruction instr-id='173' subinstr-id='34'/> <instruction instr-id='173' subinstr-id='36'/> <instruction instr-id='173' subinstr-id='38'/> <instruction instr-id='173' subinstr-id='40'/> <instruction instr-id='173' subinstr-id='42'/> <instruction instr-id='173' subinstr-id='44'/> <instruction instr-id='178'/> <instruction instr-id='178' subinstr-id='2'/> <instruction instr-id='178' subinstr-id='4'/> <instruction instr-id='178' subinstr-id='6'/> <instruction instr-id='178' subinstr-id='8'/> <instruction instr-id='178' subinstr-id='10'/> <instruction instr-id='178' subinstr-id='12'/> <instruction instr-id='178' subinstr-id='14'/> <instruction instr-id='178' subinstr-id='16'/> <instruction instr-id='178' subinstr-id='18'/> <instruction instr-id='178' subinstr-id='20'/> <instruction instr-id='178' subinstr-id='22'/> <instruction instr-id='178' subinstr-id='24'/> <instruction instr-id='178' subinstr-id='26'/> <instruction instr-id='178' subinstr-id='28'/> <instruction instr-id='178' subinstr-id='30'/> <instruction instr-id='181'/> <instruction instr-id='181' subinstr-id='2'/> <instruction instr-id='181' subinstr-id='4'/> <instruction instr-id='181' subinstr-id='6'/> <instruction instr-id='181' subinstr-id='8'/> <instruction instr-id='181' subinstr-id='10'/> <instruction instr-id='181' subinstr-id='12'/> <instruction instr-id='185'/> <instruction instr-id='185' subinstr-id='2'/> <instruction instr-id='185' subinstr-id='4'/> <instruction instr-id='185' subinstr-id='6'/> <instruction instr-id='185' subinstr-id='8'/> <instruction instr-id='185' subinstr-id='10'/> <instruction instr-id='185' subinstr-id='12'/> <instruction instr-id='185' subinstr-id='14'/> <instruction instr-id='185' subinstr-id='16'/> <instruction instr-id='185' subinstr-id='18'/> <instruction instr-id='185' subinstr-id='20'/> <instruction instr-id='185' subinstr-id='22'/> <instruction instr-id='185' subinstr-id='24'/> <instruction instr-id='185' subinstr-id='26'/> <instruction instr-id='185' subinstr-id='28'/> <instruction instr-id='185' subinstr-id='30'/> <instruction instr-id='185' subinstr-id='32'/> <instruction instr-id='185' subinstr-id='34'/> <instruction instr-id='185' subinstr-id='36'/> <instruction instr-id='190'/> <instruction instr-id='190' subinstr-id='2'/> <instruction instr-id='190' subinstr-id='4'/> <instruction instr-id='190' subinstr-id='6'/> <instruction instr-id='190' subinstr-id='8'/> <instruction instr-id='192'/> <instruction instr-id='192' subinstr-id='2'/> <instruction instr-id='192' subinstr-id='4'/> <instruction instr-id='192' subinstr-id='6'/> <instruction instr-id='192' subinstr-id='8'/> <instruction instr-id='192' subinstr-id='10'/> <instruction instr-id='192' subinstr-id='12'/> <instruction instr-id='192' subinstr-id='14'/> <instruction instr-id='196'/> <instruction instr-id='196' subinstr-id='2'/> <instruction instr-id='196' subinstr-id='4'/> <instruction instr-id='196' subinstr-id='6'/> <instruction instr-id='196' subinstr-id='8'/> <instruction instr-id='196' subinstr-id='10'/> <instruction instr-id='196' subinstr-id='12'/> <instruction instr-id='196' subinstr-id='14'/> <instruction instr-id='196' subinstr-id='16'/> <instruction instr-id='201'/> <instruction instr-id='201' subinstr-id='2'/> <instruction instr-id='201' subinstr-id='4'/> <instruction instr-id='201' subinstr-id='6'/> <instruction instr-id='201' subinstr-id='8'/> <instruction instr-id='201' subinstr-id='10'/> <instruction instr-id='201' subinstr-id='12'/> <instruction instr-id='201' subinstr-id='14'/> <instruction instr-id='201' subinstr-id='16'/> <instruction instr-id='201' subinstr-id='18'/> <instruction instr-id='201' subinstr-id='20'/> <instruction instr-id='201' subinstr-id='22'/> <instruction instr-id='201' subinstr-id='24'/> <instruction instr-id='201' subinstr-id='26'/> <instruction instr-id='217'/> <instruction instr-id='227'/> <instruction instr-id='227' subinstr-id='2'/> <instruction instr-id='227' subinstr-id='4'/> <instruction instr-id='227' subinstr-id='6'/> <instruction instr-id='227' subinstr-id='8'/> <instruction instr-id='227' subinstr-id='10'/> <instruction instr-id='227' subinstr-id='12'/> <instruction instr-id='227' subinstr-id='14'/> <instruction instr-id='231'/> <instruction instr-id='231' subinstr-id='2'/> <instruction instr-id='231' subinstr-id='4'/> <instruction instr-id='231' subinstr-id='6'/> <instruction instr-id='231' subinstr-id='8'/> <instruction instr-id='231' subinstr-id='10'/> <instruction instr-id='231' subinstr-id='12'/> <instruction instr-id='231' subinstr-id='14'/> <instruction instr-id='231' subinstr-id='16'/> <instruction instr-id='231' subinstr-id='18'/> <instruction instr-id='231' subinstr-id='20'/> <instruction instr-id='231' subinstr-id='22'/> <instruction instr-id='237'/> <instruction instr-id='237' subinstr-id='2'/> <instruction instr-id='237' subinstr-id='4'/> <instruction instr-id='237' subinstr-id='6'/> <instruction instr-id='237' subinstr-id='8'/> <instruction instr-id='237' subinstr-id='10'/> <instruction instr-id='237' subinstr-id='12'/> <instruction instr-id='237' subinstr-id='14'/> <instruction instr-id='237' subinstr-id='16'/> <instruction instr-id='237' subinstr-id='18'/> <instruction instr-id='237' subinstr-id='20'/> <instruction instr-id='237' subinstr-id='22'/> <instruction instr-id='237' subinstr-id='24'/> <instruction instr-id='237' subinstr-id='26'/> <instruction instr-id='237' subinstr-id='28'/> <instruction instr-id='237' subinstr-id='30'/> <instruction instr-id='237' subinstr-id='32'/> <instruction instr-id='237' subinstr-id='34'/> <instruction instr-id='237' subinstr-id='36'/> <instruction instr-id='237' subinstr-id='38'/> <instruction instr-id='237' subinstr-id='40'/> <instruction instr-id='237' subinstr-id='42'/> <instruction instr-id='237' subinstr-id='44'/> <instruction instr-id='237' subinstr-id='46'/> <instruction instr-id='237' subinstr-id='48'/> <instruction instr-id='237' subinstr-id='50'/> <instruction instr-id='237' subinstr-id='52'/> <instruction instr-id='237' subinstr-id='54'/> <instruction instr-id='237' subinstr-id='56'/> <instruction instr-id='237' subinstr-id='58'/> <instruction instr-id='237' subinstr-id='60'/> <instruction instr-id='237' subinstr-id='62'/> <instruction instr-id='242'/> <instruction instr-id='242' subinstr-id='2'/> <instruction instr-id='242' subinstr-id='4'/> <instruction instr-id='242' subinstr-id='6'/> <instruction instr-id='242' subinstr-id='8'/> <instruction instr-id='242' subinstr-id='10'/> <instruction instr-id='242' subinstr-id='12'/> <instruction instr-id='242' subinstr-id='14'/> <instruction instr-id='242' subinstr-id='16'/> <instruction instr-id='242' subinstr-id='18'/> <instruction instr-id='242' subinstr-id='20'/> <instruction instr-id='242' subinstr-id='22'/> <instruction instr-id='242' subinstr-id='24'/> <instruction instr-id='242' subinstr-id='26'/> <instruction instr-id='242' subinstr-id='28'/> <instruction instr-id='242' subinstr-id='30'/> <instruction instr-id='242' subinstr-id='32'/> <instruction instr-id='242' subinstr-id='34'/> <instruction instr-id='242' subinstr-id='36'/> <instruction instr-id='242' subinstr-id='38'/> <instruction instr-id='242' subinstr-id='40'/> <instruction instr-id='242' subinstr-id='42'/> <instruction instr-id='242' subinstr-id='44'/> <instruction instr-id='242' subinstr-id='46'/> <instruction instr-id='242' subinstr-id='48'/> <instruction instr-id='242' subinstr-id='50'/> <instruction instr-id='242' subinstr-id='52'/> <instruction instr-id='242' subinstr-id='54'/> <instruction instr-id='242' subinstr-id='56'/> <instruction instr-id='242' subinstr-id='58'/> <instruction instr-id='242' subinstr-id='60'/> <instruction instr-id='242' subinstr-id='62'/> <instruction instr-id='242' subinstr-id='64'/> <instruction instr-id='242' subinstr-id='66'/> <instruction instr-id='242' subinstr-id='68'/> <instruction instr-id='242' subinstr-id='70'/> <instruction instr-id='242' subinstr-id='72'/> <instruction instr-id='242' subinstr-id='74'/> <instruction instr-id='242' subinstr-id='76'/> <instruction instr-id='242' subinstr-id='78'/> <instruction instr-id='242' subinstr-id='80'/> <instruction instr-id='247'/> <instruction instr-id='247' subinstr-id='2'/> <instruction instr-id='247' subinstr-id='4'/> <instruction instr-id='247' subinstr-id='6'/> <instruction instr-id='247' subinstr-id='8'/> <instruction instr-id='249'/> <instruction instr-id='249' subinstr-id='2'/> <instruction instr-id='249' subinstr-id='4'/> <instruction instr-id='249' subinstr-id='6'/> <instruction instr-id='249' subinstr-id='8'/> <instruction instr-id='249' subinstr-id='10'/> <instruction instr-id='249' subinstr-id='12'/> <instruction instr-id='249' subinstr-id='14'/> <instruction instr-id='253'/> <instruction instr-id='253' subinstr-id='2'/> <instruction instr-id='253' subinstr-id='4'/> <instruction instr-id='253' subinstr-id='6'/> <instruction instr-id='253' subinstr-id='8'/> <instruction instr-id='253' subinstr-id='10'/> <instruction instr-id='253' subinstr-id='12'/> <instruction instr-id='253' subinstr-id='14'/> <instruction instr-id='253' subinstr-id='16'/> <instruction instr-id='253' subinstr-id='18'/> <instruction instr-id='253' subinstr-id='20'/> <instruction instr-id='253' subinstr-id='22'/> <instruction instr-id='253' subinstr-id='24'/> <instruction instr-id='253' subinstr-id='26'/> <instruction instr-id='253' subinstr-id='28'/> <instruction instr-id='253' subinstr-id='30'/> <instruction instr-id='253' subinstr-id='32'/> <instruction instr-id='253' subinstr-id='34'/> <instruction instr-id='253' subinstr-id='36'/> <instruction instr-id='253' subinstr-id='38'/> <instruction instr-id='253' subinstr-id='40'/> <instruction instr-id='253' subinstr-id='42'/> <instruction instr-id='253' subinstr-id='44'/> <instruction instr-id='258'/> <instruction instr-id='258' subinstr-id='2'/> <instruction instr-id='258' subinstr-id='4'/> <instruction instr-id='258' subinstr-id='6'/> <instruction instr-id='258' subinstr-id='8'/> <instruction instr-id='258' subinstr-id='10'/> <instruction instr-id='258' subinstr-id='12'/> <instruction instr-id='258' subinstr-id='14'/> <instruction instr-id='258' subinstr-id='16'/> <instruction instr-id='258' subinstr-id='18'/> <instruction instr-id='258' subinstr-id='20'/> <instruction instr-id='258' subinstr-id='22'/> <instruction instr-id='258' subinstr-id='24'/> <instruction instr-id='263'/> <instruction instr-id='263' subinstr-id='2'/> <instruction instr-id='263' subinstr-id='4'/> <instruction instr-id='263' subinstr-id='6'/> <instruction instr-id='263' subinstr-id='8'/> <instruction instr-id='263' subinstr-id='10'/> <instruction instr-id='263' subinstr-id='12'/> <instruction instr-id='263' subinstr-id='14'/> <instruction instr-id='263' subinstr-id='16'/> <instruction instr-id='263' subinstr-id='18'/> <instruction instr-id='263' subinstr-id='20'/> <instruction instr-id='263' subinstr-id='22'/> <instruction instr-id='263' subinstr-id='24'/> <instruction instr-id='263' subinstr-id='26'/> <instruction instr-id='263' subinstr-id='28'/> <instruction instr-id='263' subinstr-id='30'/> <instruction instr-id='268'/> <instruction instr-id='268' subinstr-id='2'/> <instruction instr-id='268' subinstr-id='4'/> <instruction instr-id='268' subinstr-id='6'/> <instruction instr-id='268' subinstr-id='8'/> <instruction instr-id='268' subinstr-id='10'/> <instruction instr-id='268' subinstr-id='12'/> <instruction instr-id='268' subinstr-id='14'/> <instruction instr-id='268' subinstr-id='16'/> <instruction instr-id='272'/> <instruction instr-id='272' subinstr-id='2'/> <instruction instr-id='272' subinstr-id='4'/> <instruction instr-id='272' subinstr-id='6'/> <instruction instr-id='272' subinstr-id='8'/> <instruction instr-id='272' subinstr-id='10'/> <instruction instr-id='272' subinstr-id='12'/> <instruction instr-id='272' subinstr-id='14'/> <instruction instr-id='276'/> <instruction instr-id='276' subinstr-id='2'/> <instruction instr-id='276' subinstr-id='4'/> <instruction instr-id='276' subinstr-id='6'/> <instruction instr-id='276' subinstr-id='8'/> <instruction instr-id='276' subinstr-id='10'/> <instruction instr-id='276' subinstr-id='12'/> <instruction instr-id='276' subinstr-id='14'/> <instruction instr-id='276' subinstr-id='16'/> <instruction instr-id='276' subinstr-id='18'/> <instruction instr-id='282'/> <instruction instr-id='282' subinstr-id='2'/> <instruction instr-id='282' subinstr-id='4'/> <instruction instr-id='282' subinstr-id='6'/> <instruction instr-id='282' subinstr-id='8'/> <instruction instr-id='282' subinstr-id='10'/> <instruction instr-id='282' subinstr-id='12'/> <instruction instr-id='282' subinstr-id='14'/> <instruction instr-id='282' subinstr-id='16'/> <instruction instr-id='282' subinstr-id='18'/> <instruction instr-id='282' subinstr-id='20'/> <instruction instr-id='282' subinstr-id='22'/> <instruction instr-id='282' subinstr-id='24'/> <instruction instr-id='282' subinstr-id='26'/> <instruction instr-id='282' subinstr-id='28'/> <instruction instr-id='282' subinstr-id='30'/> <instruction instr-id='282' subinstr-id='32'/> <instruction instr-id='282' subinstr-id='34'/> <instruction instr-id='282' subinstr-id='36'/> <instruction instr-id='282' subinstr-id='38'/> <instruction instr-id='282' subinstr-id='40'/> <instruction instr-id='282' subinstr-id='42'/> <instruction instr-id='282' subinstr-id='44'/> <instruction instr-id='282' subinstr-id='46'/> <instruction instr-id='288'/> <instruction instr-id='288' subinstr-id='2'/> <instruction instr-id='288' subinstr-id='4'/> <instruction instr-id='288' subinstr-id='6'/> <instruction instr-id='288' subinstr-id='8'/> <instruction instr-id='288' subinstr-id='10'/> <instruction instr-id='288' subinstr-id='12'/> <instruction instr-id='288' subinstr-id='14'/> <instruction instr-id='288' subinstr-id='16'/> <instruction instr-id='288' subinstr-id='18'/> <instruction instr-id='288' subinstr-id='20'/> <instruction instr-id='288' subinstr-id='22'/> <instruction instr-id='288' subinstr-id='24'/> <instruction instr-id='288' subinstr-id='26'/> <instruction instr-id='288' subinstr-id='28'/> <instruction instr-id='291'/> <instruction instr-id='291' subinstr-id='2'/> <instruction instr-id='291' subinstr-id='4'/> <instruction instr-id='291' subinstr-id='6'/> <instruction instr-id='291' subinstr-id='8'/> <instruction instr-id='291' subinstr-id='10'/> <instruction instr-id='291' subinstr-id='12'/> <instruction instr-id='291' subinstr-id='14'/> <instruction instr-id='291' subinstr-id='16'/> <instruction instr-id='291' subinstr-id='18'/> <instruction instr-id='291' subinstr-id='20'/> <instruction instr-id='291' subinstr-id='22'/> <instruction instr-id='291' subinstr-id='24'/> <instruction instr-id='291' subinstr-id='26'/> <instruction instr-id='295'/> <instruction instr-id='295' subinstr-id='2'/> <instruction instr-id='295' subinstr-id='4'/> <instruction instr-id='295' subinstr-id='6'/> <instruction instr-id='295' subinstr-id='8'/> <instruction instr-id='295' subinstr-id='10'/> <instruction instr-id='295' subinstr-id='12'/> <instruction instr-id='295' subinstr-id='14'/> <instruction instr-id='295' subinstr-id='16'/> <instruction instr-id='295' subinstr-id='18'/> <instruction instr-id='295' subinstr-id='20'/> <instruction instr-id='295' subinstr-id='22'/> <instruction instr-id='295' subinstr-id='24'/> <instruction instr-id='295' subinstr-id='26'/> <instruction instr-id='295' subinstr-id='28'/> <instruction instr-id='295' subinstr-id='30'/> <instruction instr-id='295' subinstr-id='32'/> <instruction instr-id='295' subinstr-id='34'/> <instruction instr-id='295' subinstr-id='36'/> <instruction instr-id='295' subinstr-id='38'/> <instruction instr-id='295' subinstr-id='40'/> <instruction instr-id='295' subinstr-id='42'/> <instruction instr-id='301'/> <instruction instr-id='301' subinstr-id='2'/> <instruction instr-id='301' subinstr-id='4'/> <instruction instr-id='301' subinstr-id='6'/> <instruction instr-id='301' subinstr-id='8'/> <instruction instr-id='301' subinstr-id='10'/> <instruction instr-id='301' subinstr-id='12'/> <instruction instr-id='301' subinstr-id='14'/> <instruction instr-id='301' subinstr-id='16'/> <instruction instr-id='301' subinstr-id='18'/> <instruction instr-id='301' subinstr-id='20'/> <instruction instr-id='301' subinstr-id='22'/> <instruction instr-id='301' subinstr-id='24'/> <instruction instr-id='307'/> <instruction instr-id='307' subinstr-id='2'/> <instruction instr-id='307' subinstr-id='4'/> <instruction instr-id='307' subinstr-id='6'/> <instruction instr-id='307' subinstr-id='8'/> <instruction instr-id='307' subinstr-id='10'/> <instruction instr-id='307' subinstr-id='12'/> <instruction instr-id='307' subinstr-id='14'/> <instruction instr-id='307' subinstr-id='16'/> <instruction instr-id='307' subinstr-id='18'/> <instruction instr-id='307' subinstr-id='20'/> <instruction instr-id='307' subinstr-id='22'/> <instruction instr-id='307' subinstr-id='24'/> <instruction instr-id='307' subinstr-id='26'/> <instruction instr-id='307' subinstr-id='28'/> <instruction instr-id='311'/> <instruction instr-id='311' subinstr-id='2'/> <instruction instr-id='311' subinstr-id='4'/> <instruction instr-id='311' subinstr-id='6'/> <instruction instr-id='311' subinstr-id='8'/> <instruction instr-id='311' subinstr-id='10'/> <instruction instr-id='311' subinstr-id='12'/> <instruction instr-id='311' subinstr-id='14'/> <instruction instr-id='311' subinstr-id='16'/> <instruction instr-id='311' subinstr-id='18'/> <instruction instr-id='311' subinstr-id='20'/> <instruction instr-id='311' subinstr-id='22'/> <instruction instr-id='311' subinstr-id='24'/> <instruction instr-id='311' subinstr-id='26'/> <instruction instr-id='311' subinstr-id='28'/> <instruction instr-id='316'/> <instruction instr-id='316' subinstr-id='2'/> <instruction instr-id='316' subinstr-id='4'/> <instruction instr-id='316' subinstr-id='6'/> <instruction instr-id='316' subinstr-id='8'/> <instruction instr-id='316' subinstr-id='10'/> <instruction instr-id='316' subinstr-id='12'/> <instruction instr-id='316' subinstr-id='14'/> <instruction instr-id='316' subinstr-id='16'/> <instruction instr-id='316' subinstr-id='18'/> <instruction instr-id='316' subinstr-id='20'/> <instruction instr-id='316' subinstr-id='22'/> <instruction instr-id='316' subinstr-id='24'/> <instruction instr-id='316' subinstr-id='26'/> <instruction instr-id='321'/> <instruction instr-id='321' subinstr-id='2'/> <instruction instr-id='321' subinstr-id='4'/> <instruction instr-id='321' subinstr-id='6'/> <instruction instr-id='321' subinstr-id='8'/> <instruction instr-id='321' subinstr-id='10'/> <instruction instr-id='321' subinstr-id='12'/> <instruction instr-id='321' subinstr-id='14'/> <instruction instr-id='321' subinstr-id='16'/> <instruction instr-id='321' subinstr-id='18'/> <instruction instr-id='321' subinstr-id='20'/> <instruction instr-id='321' subinstr-id='22'/> <instruction instr-id='321' subinstr-id='24'/> <instruction instr-id='321' subinstr-id='26'/> <instruction instr-id='321' subinstr-id='28'/> <instruction instr-id='321' subinstr-id='30'/> <instruction instr-id='321' subinstr-id='32'/> <instruction instr-id='321' subinstr-id='34'/> <instruction instr-id='321' subinstr-id='36'/> <instruction instr-id='321' subinstr-id='38'/> <instruction instr-id='321' subinstr-id='40'/> <instruction instr-id='321' subinstr-id='42'/> <instruction instr-id='379'/> <instruction instr-id='379' subinstr-id='2'/> <instruction instr-id='379' subinstr-id='4'/> <instruction instr-id='379' subinstr-id='6'/> <instruction instr-id='379' subinstr-id='8'/> <instruction instr-id='383'/> <instruction instr-id='383' subinstr-id='2'/> <instruction instr-id='383' subinstr-id='4'/> <instruction instr-id='383' subinstr-id='6'/> <instruction instr-id='383' subinstr-id='8'/> <instruction instr-id='383' subinstr-id='10'/> <instruction instr-id='383' subinstr-id='12'/> <bounding-box x1='74' y1='195' x2='536' y2='670'/> </region> </table> </document> ```
/content/code_sandbox/tests/files/tabula/icdar2013-dataset/competition-dataset-us/us-002-reg.xml
xml
2016-06-18T11:48:49
2024-08-15T18:32:02
camelot
atlanhq/camelot
3,628
16,577
```xml import { Alert } from "@erxes/ui/src/utils"; import { BoardItemWrapper } from "../styles"; import BoardSelect from "@erxes/ui-tickets/src/boards/containers/BoardSelect"; import Common from "@erxes/ui-automations/src/components/forms/actions/Common"; import { IAction } from "@erxes/ui-automations/src/types"; import { IPipelineLabel } from "@erxes/ui-tickets/src/boards/types"; import { IUser } from "@erxes/ui/src/auth/types"; import { PRIORITIES } from "@erxes/ui-tickets/src/boards/constants"; import PlaceHolderInput from "@erxes/ui-automations/src/components/forms/actions/placeHolder/PlaceHolderInput"; import React from "react"; import SelectFields from "@erxes/ui-automations/src/containers/forms/actions/SelectFields"; import client from "@erxes/ui/src/apolloClient"; import { gql } from "@apollo/client"; import { queries as pipelineQuery } from "@erxes/ui-tickets/src/boards/graphql"; type Props = { closeModal: () => void; activeAction: IAction; addAction: (action: IAction, actionId?: string, config?: any) => void; triggerType: string; triggerConfig: any; pipelineLabels?: IPipelineLabel[]; users: IUser[]; }; type State = { config: any; pipelineLabels: IPipelineLabel[]; }; class BoardItemForm extends React.Component<Props, State> { constructor(props) { super(props); const { activeAction, pipelineLabels = [] } = this.props; let { config } = activeAction; if (!config) { config = {}; } this.state = { config, pipelineLabels }; } componentWillReceiveProps(nextProps) { if (nextProps.activeAction !== this.props.activeAction) { this.setState({ config: nextProps.activeAction.config }); } } onChangeField = (name: string, value: string) => { const { config } = this.state; config[name] = value; this.setState({ config }); }; renderSelect() { const type = "ticket"; const { stageId, pipelineId, boardId } = this.state.config; const stgIdOnChange = stgId => this.onChangeField("stageId", stgId); const plIdOnChange = plId => { client .query({ query: gql(pipelineQuery.pipelineLabels), fetchPolicy: "network-only", variables: { pipelineId: plId } }) .then(data => { this.setState({ pipelineLabels: data.data.ticketsPipelineLabels }); }) .catch(e => { Alert.error(e.message); }); this.onChangeField("pipelineId", plId); }; const brIdOnChange = brId => this.onChangeField("boardId", brId); return ( <BoardSelect type={type} stageId={stageId || ""} pipelineId={pipelineId || ""} boardId={boardId || ""} onChangeStage={stgIdOnChange} onChangePipeline={plIdOnChange} onChangeBoard={brIdOnChange} /> ); } onChange = rConf => { const { config } = this.state; this.setState({ config: { ...config, ...rConf } }); }; render() { const { triggerType, users, activeAction, triggerConfig } = this.props; const { config, pipelineLabels } = this.state; const userOptions = (users || []).map(u => ({ label: (u.details && u.details.fullName) || u.email, value: u._id })); const labelOptions = (pipelineLabels || []).map(l => ({ label: l.name, value: l._id || "" })); const priorityOptions = PRIORITIES.map(p => ({ label: p, value: p })); return ( <Common config={this.state.config} {...this.props}> <BoardItemWrapper> {/* {this.renderSelect()} */} <PlaceHolderInput inputName="cardName" label="Name" config={config} onChange={this.onChange} triggerType={triggerType} triggerConfig={triggerConfig} attrWithSegmentConfig={true} /> <PlaceHolderInput inputName="description" label="Description" config={config} onChange={this.onChange} triggerConfig={triggerConfig} attrWithSegmentConfig={true} triggerType={triggerType} /> <PlaceHolderInput inputName="assignedTo" label="Assigned To" config={config} onChange={this.onChange} triggerType={triggerType} fieldType="select" attrType="user" options={userOptions} isMulti={true} /> <PlaceHolderInput inputName="closeDate" label="Close Date" config={config} onChange={this.onChange} triggerType={triggerType} fieldType="date" attrType="Date" customAttributions={[ { _id: String(Math.random()), label: "Now", name: "now", type: "Date" }, { _id: String(Math.random()), label: "Tomorrow", name: "tomorrow", type: "Date" }, { _id: String(Math.random()), label: "Next Week", name: "nextWeek", type: "Date" }, { _id: String(Math.random()), label: "Next Month", name: "nextMonth", type: "Date" } ]} /> <PlaceHolderInput inputName="labelIds" label="Labels" config={config} onChange={this.onChange} triggerType={triggerType} fieldType="select" excludeAttr={true} options={labelOptions} isMulti={true} /> <PlaceHolderInput inputName="priority" label="Priority" config={config} onChange={this.onChange} triggerType={triggerType} fieldType="select" excludeAttr={true} options={priorityOptions} /> <SelectFields config={config} onSelect={this.onChange} triggerConfig={triggerConfig} customAttributions={[ { _id: String(Math.random()), name: "attachments", label: "Attachments", type: "files", excludeAttr: true, callback: () => this.setState({ config: { ...config, attachments: "{{ attachments }}" } }) } ]} label="Add Fields" excludedNames={[ "name", "description", "assignedUserIds", "createdAt", "parentId", "closeDate", "labelIds", "priority", "stageId" ]} triggerType={triggerType} actionType={activeAction.type.replace(".create", "")} /> </BoardItemWrapper> </Common> ); } } export default BoardItemForm; ```
/content/code_sandbox/packages/plugin-tickets-ui/src/automations/components/BoardItemForm.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,510
```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. export const description = "Analyze property chain #27"; const defaultsForThing = { config: { x: "x", y: "y" } }; function getX() { return defaultsForThing.config.x } function getAll() { const x = getX(); return { y: defaultsForThing } } export const func = function () { console.log(getAll()); }; ```
/content/code_sandbox/sdk/nodejs/tests/runtime/testdata/closure-tests/cases/149-Analyze-property-chain-27/index.ts
xml
2016-10-31T21:02:47
2024-08-16T19:47:04
pulumi
pulumi/pulumi
20,743
113
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <ItemGroup> <Filter Include=".."> <UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier> </Filter> <Filter Include="..\.."> <UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier> </Filter> <Filter Include="..\..\scripts"> <UniqueIdentifier>{4FDF30BD-A895-58AC-A912-7C70A5371544}</UniqueIdentifier> </Filter> </ItemGroup> <ItemGroup> <None Include="generated.gyp"/> <None Include="..\..\scripts\aggregate_generated_bindings.py"> <Filter>..\..\scripts</Filter> </None> <None Include="modules_idl_files_list.tmp"/> </ItemGroup> </Project> ```
/content/code_sandbox/third_party/WebKit/Source/bindings/modules/v8/bindings_modules_v8_generated_aggregate.vcxproj.filters
xml
2016-09-27T03:41:10
2024-08-16T10:42:57
miniblink49
weolar/miniblink49
7,069
224
```xml import 'reflect-metadata'; import { SendVerificationEmailErrors } from '@accounts/password'; import { AccountsJsError } from '@accounts/server'; import request from 'supertest'; import accountsExpress from '../../../src/express-middleware'; import express from 'express'; function getApp(accountsServer: any, path?: string) { const router = accountsExpress(accountsServer as any, { path: path ?? '' }); const expressApp = express(); expressApp.use(express.json()); expressApp.use(express.urlencoded({ extended: true })); expressApp.use(router); return expressApp; } describe('verifyEmail', () => { beforeEach(() => { jest.clearAllMocks(); }); describe('verifyEmail', () => { it('calls password.verifyEmail and returns a message', async () => { const passwordService = { verifyEmail: jest.fn(() => null), }; const accountsServer = { getServices: () => ({ password: passwordService, }), }; const body = { token: 'token', }; const response = await request(getApp(accountsServer)) .post('/password/verifyEmail') .send(body); expect(response.status).toEqual(200); expect(response.body).toEqual(null); expect(accountsServer.getServices().password.verifyEmail).toHaveBeenCalledWith('token'); }); it('Sends error if it was thrown on verifyEmail', async () => { const error = { message: 'Could not verify email' }; const passwordService = { verifyEmail: jest.fn(() => { throw error; }), }; const accountsServer = { getServices: () => ({ password: passwordService, }), }; const body = { token: 'token', }; const response = await request(getApp(accountsServer)) .post('/password/verifyEmail') .send(body); expect(response.status).toEqual(400); expect(response.body).toEqual(error); expect(accountsServer.getServices().password.verifyEmail).toHaveBeenCalledWith('token'); }); }); describe('sendVerificationEmail', () => { it('calls password.sendVerificationEmail and returns a message', async () => { const passwordService = { sendVerificationEmail: jest.fn(() => null), }; const accountsServer = { getServices: () => ({ password: passwordService, }), }; const body = { email: 'valid@email.com', }; const response = await request(getApp(accountsServer)) .post('/password/sendVerificationEmail') .send(body); expect(response.status).toEqual(200); expect(response.body).toEqual(null); expect(accountsServer.getServices().password.sendVerificationEmail).toHaveBeenCalledWith( 'valid@email.com' ); }); it('Sends error if it was thrown on sendVerificationEmail', async () => { const error = { message: 'Could not send verification email' }; const passwordService = { sendVerificationEmail: jest.fn(() => { throw error; }), }; const accountsServer = { options: {}, getServices: () => ({ password: passwordService, }), }; const body = { email: 'valid@email.com', }; const response = await request(getApp(accountsServer)) .post('/password/sendVerificationEmail') .send(body); expect(response.status).toEqual(400); expect(response.body).toEqual(error); expect(accountsServer.getServices().password.sendVerificationEmail).toHaveBeenCalledWith( 'valid@email.com' ); }); it('hide UserNotFound error when ambiguousErrorMessages is true', async () => { const error = new AccountsJsError('User not found', SendVerificationEmailErrors.UserNotFound); const passwordService = { sendVerificationEmail: jest.fn(() => { throw error; }), }; const accountsServer = { options: { ambiguousErrorMessages: true, }, getServices: () => ({ password: passwordService, }), }; const body = { email: 'valid@email.com', }; const response = await request(getApp(accountsServer)) .post('/password/sendVerificationEmail') .send(body); expect(response.status).toEqual(200); expect(response.body).toEqual(null); expect(accountsServer.getServices().password.sendVerificationEmail).toHaveBeenCalledWith( 'valid@email.com' ); }); }); }); ```
/content/code_sandbox/packages/rest-express/__tests__/endpoints/password/verify-email.ts
xml
2016-10-07T01:43:23
2024-07-14T11:57:08
accounts
accounts-js/accounts
1,492
929
```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> <parent> <groupId>com.yahoo.vespa</groupId> <artifactId>parent</artifactId> <version>8-SNAPSHOT</version> <relativePath>../parent/pom.xml</relativePath> </parent> <artifactId>client</artifactId> <packaging>jar</packaging> <version>8-SNAPSHOT</version> <dependencies> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <release>${vespaClients.jdk.releaseVersion}</release> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <configuration> <finalName>${project.artifactId}-jar-with-dependencies</finalName> <createDependencyReducedPom>false</createDependencyReducedPom> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> ```
/content/code_sandbox/client/pom.xml
xml
2016-06-03T20:54:20
2024-08-16T15:32:01
vespa
vespa-engine/vespa
5,524
413
```xml import { addCustomerToCampaign } from './add-customer-to-campaign' import { addCustomerToList } from './add-customer-to-list' import { getAllCampaigns } from './get-all-campaigns' import { getAllLists } from './get-all-lists' import { sendMassEmailCampaign } from './send-mass-email-campaign' export default { addCustomerToCampaign, addCustomerToList, sendMassEmailCampaign, getAllLists, getAllCampaigns, } ```
/content/code_sandbox/integrations/mailchimp/src/actions/index.ts
xml
2016-11-16T21:57:59
2024-08-16T18:45:35
botpress
botpress/botpress
12,401
103
```xml <!-- *********************************************************************************************** Microsoft.NET.RuntimeIdentifierInference.targets WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have created a backup copy. Incorrect changes to this file will make it impossible to load or build your projects from the command-line or the IDE. *********************************************************************************************** --> <Project ToolsVersion="14.0" xmlns="path_to_url"> <!-- .NET Framework cannot load native package dependencies dynamically based on the current architecture. We must have a RID to resolve and copy native dependencies to the output directory. When building a .NET Framework exe on Windows and not given a RID, we'll pick either win7-x64 or win7-x86 (based on PlatformTarget) if we're not given an explicit RID. However, if after resolving NuGet assets we find no copy-local native dependencies, we will emit the binary as AnyCPU. Note that we must set the RID here early (to be seen during NuGet restore) in order for the project.assets.json to include the native dependencies that will let us make the final call on AnyCPU or platform-specific. This allows these common cases to work without requiring mention of RuntimeIdentifier in the user project PlatformTarget: 1. Building an AnyCPU .NET Framework application on any host OS with no native NuGet dependencies. 2. Building an x86 or x64 .NET Framework application on and for Windows with native NuGet dependencies that do not require greater than win7. However, any other combination of host operating system, CPU architecture, and minimum Windows version will require some manual intervention in the project file to set up the right RID. (**) (*) Building NET4x from non-Windows is still not fully supported: path_to_url The point above is that this code would not have to change to make the first scenario work on non-Windows hosts. (**) path_to_url tracks improving the default RID selection here to make more non-AnyCPU scenarios work without user intervention. The current static evaluation requirement limits us. --> <PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(HasRuntimeOutput)' == 'true' and $([MSBuild]::IsOSPlatform(`Windows`)) and '$(RuntimeIdentifier)' == ''"> <_UsingDefaultRuntimeIdentifier>true</_UsingDefaultRuntimeIdentifier> <RuntimeIdentifier Condition="'$(PlatformTarget)' == 'x64'">win7-x64</RuntimeIdentifier> <RuntimeIdentifier Condition="'$(PlatformTarget)' == 'x86' or '$(PlatformTarget)' == ''">win7-x86</RuntimeIdentifier> <RuntimeIdentifier Condition="'$(PlatformTarget)' == 'x64' and '$(UseRidGraph)' != 'true'">win-x64</RuntimeIdentifier> <RuntimeIdentifier Condition="('$(PlatformTarget)' == 'x86' or '$(PlatformTarget)' == '') and '$(UseRidGraph)' != 'true'">win-x86</RuntimeIdentifier> </PropertyGroup> <!-- Breaking change in .NET 8: Some publish properties used to imply SelfContained or require it at the time of this PR to work. We decided to infer SelfContained still in these situations. --> <PropertyGroup Condition="'$(SelfContained)' == '' and '$(PublishSelfContained)' == '' and '$(_TargetFrameworkVersionWithoutV)' != '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and $([MSBuild]::VersionGreaterThanOrEquals($(_TargetFrameworkVersionWithoutV), '8.0')) and ( '$(PublishTrimmed)' == 'true' or '$(PublishSingleFile)' == 'true' or '$(PublishAot)' == 'true' )"> <PublishSelfContained>true</PublishSelfContained> </PropertyGroup> <!-- Edit SelfContained to match the value of PublishSelfContained if we are publishing. This Won't affect t:/Publish (because of _IsPublishing), and also won't override a global SelfContained property.--> <PropertyGroup Condition="'$(_IsPublishing)' == 'true' and ('$(PublishSelfContained)' == 'true' or '$(PublishSelfContained)' == 'false')"> <SelfContained>$(PublishSelfContained)</SelfContained> </PropertyGroup> <!-- Automatically infer the RuntimeIdentifier for properties that require it. SelfContained without a RID is a no-op and semantically hints towards the fact that it can change the behavior of build, publish, and friends. ... So, we infer the RID for SelfContained regardless of the context. The other publish properties are specifically labelled Publish* and don't 'NEED' their RID unless we are doing a publish, so the RID inference ... for these properties is limited to publishing only scenarios. Finally, library projects and non-executable projects have awkward interactions here so they are excluded.--> <PropertyGroup Condition="'$(UseCurrentRuntimeIdentifier)' == ''"> <UseCurrentRuntimeIdentifier Condition=" '$(RuntimeIdentifier)' == '' and '$(_IsExecutable)' == 'true' and '$(IsTestProject)' != 'true' and '$(IsRidAgnostic)' != 'true' and ( '$(SelfContained)' == 'true' or ('$(_IsPublishing)' == 'true' and ( '$(PublishReadyToRun)' == 'true' or '$(PublishSingleFile)' == 'true' or '$(PublishAot)' == 'true' ) ) )">true</UseCurrentRuntimeIdentifier> </PropertyGroup> <PropertyGroup Condition="'$(UseCurrentRuntimeIdentifier)' == 'true'"> <RuntimeIdentifier>$(NETCoreSdkPortableRuntimeIdentifier)</RuntimeIdentifier> </PropertyGroup> <PropertyGroup Condition="'$(_IsPublishing)' == 'true' and '$(PublishRuntimeIdentifier)' != ''"> <RuntimeIdentifier>$(PublishRuntimeIdentifier)</RuntimeIdentifier> </PropertyGroup> <PropertyGroup Condition="'$(PlatformTarget)' == ''"> <_UsingDefaultPlatformTarget>true</_UsingDefaultPlatformTarget> </PropertyGroup> <!-- Determine PlatformTarget (if not already set) from runtime identifier. --> <Choose> <When Condition="'$(PlatformTarget)' != '' or '$(RuntimeIdentifier)' == ''" /> <When Condition="$(RuntimeIdentifier.EndsWith('-x86')) or $(RuntimeIdentifier.Contains('-x86-'))"> <PropertyGroup> <PlatformTarget>x86</PlatformTarget> </PropertyGroup> </When> <When Condition="$(RuntimeIdentifier.EndsWith('-x64')) or $(RuntimeIdentifier.Contains('-x64-'))"> <PropertyGroup> <PlatformTarget>x64</PlatformTarget> </PropertyGroup> </When> <When Condition="$(RuntimeIdentifier.EndsWith('-arm')) or $(RuntimeIdentifier.Contains('-arm-'))"> <PropertyGroup> <PlatformTarget>arm</PlatformTarget> </PropertyGroup> </When> <When Condition="$(RuntimeIdentifier.EndsWith('-arm64')) or $(RuntimeIdentifier.Contains('-arm64-'))"> <PropertyGroup> <PlatformTarget>arm64</PlatformTarget> </PropertyGroup> </When> <Otherwise> <PropertyGroup> <PlatformTarget>AnyCPU</PlatformTarget> </PropertyGroup> </Otherwise> </Choose> <!-- SelfContained was not an option in .NET Core SDK 1.0. Default SelfContained based on the RuntimeIdentifier, so projects don't have to explicitly set SelfContained. This avoids a breaking change from 1.0 behavior. --> <PropertyGroup> <!-- Detecting property presence is not harmful and can be done in an unconditioned way --> <_SelfContainedWasSpecified Condition="'$(SelfContained)' != ''">true</_SelfContainedWasSpecified> </PropertyGroup> <PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(HasRuntimeOutput)' == 'true'"> <!-- Breaking change in .NET 8: Projects with 8.0+ TFMS will no longer have RuntimeIdentifier imply SelfContained. Note that PublishReadyToRun will imply SelfContained in these versions. --> <SelfContained Condition="'$(SelfContained)' == '' and '$(RuntimeIdentifier)' != '' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(_TargetFrameworkVersionWithoutV)' != '' and $([MSBuild]::VersionLessThan($(_TargetFrameworkVersionWithoutV), '8.0'))">true</SelfContained> <SelfContained Condition="'$(SelfContained)' == ''">false</SelfContained> <_RuntimeIdentifierUsesAppHost Condition="$(RuntimeIdentifier.StartsWith('ios')) or $(RuntimeIdentifier.StartsWith('tvos')) or $(RuntimeIdentifier.StartsWith('maccatalyst')) or $(RuntimeIdentifier.StartsWith('android')) or $(RuntimeIdentifier.StartsWith('browser'))">false</_RuntimeIdentifierUsesAppHost> <_RuntimeIdentifierUsesAppHost Condition="'$(_IsPublishing)' == 'true' and '$(PublishAot)' == 'true'">false</_RuntimeIdentifierUsesAppHost> <_RuntimeIdentifierUsesAppHost Condition="'$(_RuntimeIdentifierUsesAppHost)' == ''">true</_RuntimeIdentifierUsesAppHost> <UseAppHost Condition="'$(UseAppHost)' == '' and '$(_RuntimeIdentifierUsesAppHost)' == 'true' and ('$(SelfContained)' == 'true' or ('$(RuntimeIdentifier)' != '' and '$(_TargetFrameworkVersionWithoutV)' >= '2.1') or '$(_TargetFrameworkVersionWithoutV)' >= '3.0')">true</UseAppHost> <UseAppHost Condition="'$(UseAppHost)' == ''">false</UseAppHost> </PropertyGroup> <!-- Only use the default apphost if building without a RID and without a deps file path (used by GenerateDeps.proj for CLI tools). --> <PropertyGroup Condition="'$(DefaultAppHostRuntimeIdentifier)' == '' and '$(RuntimeIdentifier)' == '' and (('$(UseAppHost)' == 'true' and '$(ProjectDepsFilePath)' == '') or ('$(EnableComHosting)' == 'true' and '$(_IsExecutable)' != 'true') or '$(UseIJWHost)' == 'true')"> <DefaultAppHostRuntimeIdentifier>$(NETCoreSdkRuntimeIdentifier)</DefaultAppHostRuntimeIdentifier> <DefaultAppHostRuntimeIdentifier Condition="$(DefaultAppHostRuntimeIdentifier.StartsWith('win')) and '$(PlatformTarget)' == 'x64'">win-x64</DefaultAppHostRuntimeIdentifier> <DefaultAppHostRuntimeIdentifier Condition="$(DefaultAppHostRuntimeIdentifier.StartsWith('win')) and '$(PlatformTarget)' == 'x86'">win-x86</DefaultAppHostRuntimeIdentifier> <DefaultAppHostRuntimeIdentifier Condition="$(DefaultAppHostRuntimeIdentifier.StartsWith('win')) and '$(PlatformTarget)' == 'ARM'">win-arm</DefaultAppHostRuntimeIdentifier> <DefaultAppHostRuntimeIdentifier Condition="$(DefaultAppHostRuntimeIdentifier.StartsWith('win')) and '$(PlatformTarget)' == 'ARM64'">win-arm64</DefaultAppHostRuntimeIdentifier> <!-- If we are running on an M1 with a native SDK and the TFM is < 6.0, we have to use a x64 apphost since there are no osx-arm64 apphosts previous to .NET 6.0. --> <DefaultAppHostRuntimeIdentifier Condition="$(DefaultAppHostRuntimeIdentifier.EndsWith('arm64')) and $(DefaultAppHostRuntimeIdentifier.StartsWith('osx')) and $([MSBuild]::VersionLessThan('$(_TargetFrameworkVersionWithoutV)', '6.0'))">$(DefaultAppHostRuntimeIdentifier.Replace("arm64", "x64"))</DefaultAppHostRuntimeIdentifier> <!-- If we are running on win-arm64 and the TFM is < 5.0, we have to use a x64 apphost since there are no win-arm64 apphosts previous to .NET 5.0. --> <DefaultAppHostRuntimeIdentifier Condition="$(DefaultAppHostRuntimeIdentifier.EndsWith('arm64')) and $(DefaultAppHostRuntimeIdentifier.StartsWith('win')) and $([MSBuild]::VersionLessThan('$(_TargetFrameworkVersionWithoutV)', '5.0'))">$(DefaultAppHostRuntimeIdentifier.Replace("arm64", "x64"))</DefaultAppHostRuntimeIdentifier> </PropertyGroup> <Target Name="_CheckForUnsupportedAppHostUsage" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(HasRuntimeOutput)' == 'true'"> <!-- The following RID errors are asserts, and we don't expect them to ever occur. The error message is added as a safeguard.--> <NETSdkError Condition="'$(SelfContained)' == 'true' and '$(RuntimeIdentifier)' == '' and '$(AllowSelfContainedWithoutRuntimeIdentifier)' != 'true'" ResourceName="ImplicitRuntimeIdentifierResolutionForPublishPropertyFailed" FormatArguments="SelfContained"/> <NETSdkError Condition="'$(PublishReadyToRun)' == 'true' and '$(RuntimeIdentifier)' == '' and '$(_IsPublishing)' == 'true'" ResourceName="ImplicitRuntimeIdentifierResolutionForPublishPropertyFailed" FormatArguments="PublishReadyToRun"/> <NETSdkError Condition="'$(PublishSingleFile)' == 'true' and '$(RuntimeIdentifier)' == '' and '$(_IsPublishing)' == 'true'" ResourceName="ImplicitRuntimeIdentifierResolutionForPublishPropertyFailed" FormatArguments="PublishSingleFile"/> <NETSdkError Condition="'$(PublishAot)' == 'true' and '$(RuntimeIdentifier)' == '' and '$(_IsPublishing)' == 'true' and '$(AllowPublishAotWithoutRuntimeIdentifier)' != 'true'" ResourceName="ImplicitRuntimeIdentifierResolutionForPublishPropertyFailed" FormatArguments="PublishAot"/> <!-- End of implicit RID resolver checks.--> <NETSdkError Condition="'$(PublishSelfContained)' != 'true' and '$(PublishSelfContained)' != 'false' and '$(PublishSelfContained)' != ''" ResourceName="PublishSelfContainedMustBeBool" FormatArguments="$(PublishSelfContained)"/> <NETSdkError Condition="'$(SelfContained)' == 'true' and '$(UseAppHost)' != 'true' and '$(_RuntimeIdentifierUsesAppHost)' == 'true'" ResourceName="CannotUseSelfContainedWithoutAppHost" /> <NETSdkError Condition="'$(SelfContained)' != 'true' and '$(UseAppHost)' == 'true' and '$(_TargetFrameworkVersionWithoutV)' &lt; '2.1'" ResourceName="FrameworkDependentAppHostRequiresVersion21" /> <NETSdkError Condition="'$(PublishSingleFile)' == 'true' and '$(_TargetFrameworkVersionWithoutV)' &lt; '3.0'" ResourceName="PublishSingleFileRequiresVersion30" /> <!-- The TFM version checks for PublishReadyToRun PublishTrimmed only generate warnings in .Net core 3.1 because we do not want the behavior to be a breaking change compared to version 3.0 --> <NETSdkWarning Condition="'$(PublishReadyToRun)' == 'true' and '$(_TargetFrameworkVersionWithoutV)' &lt; '3.0'" ResourceName="PublishReadyToRunRequiresVersion30" /> <!-- Previously, RuntimeIdentifier (RID) implied SelfContained (SC). A breaking change in 8.0 made it so RID did not activate SC by default. So we warn older TFM users before they upgrade to TFM 8.0 or above that they need to add <SelfContained>true</SelfContained> now to keep the same behavior.--> <NETSdkWarning Condition="'$(RuntimeIdentifier)' != '' and '$(_TargetFrameworkVersionWithoutV)' != '' and $([MSBuild]::VersionLessThan($(_TargetFrameworkVersionWithoutV), '8.0')) and '$(_SelfContainedWasSpecified)' != 'true'" ResourceName="RuntimeIdentifierWillNoLongerImplySelfContained" /> <!-- Generate Trimming warnings for WinForms and Wpf applications--> <NetSdkError Condition="('$(UseWindowsForms)' == 'true') and ('$(PublishTrimmed)' == 'true') and ('$(_SuppressWinFormsTrimError)' != 'true')" ResourceName="TrimmingWindowsFormsIsNotSupported" /> <NetSdkError Condition="('$(UseWpf)' == 'true') and ('$(PublishTrimmed)' == 'true') and ('$(_SuppressWpfTrimError)' != 'true')" ResourceName="TrimmingWpfIsNotSupported" /> </Target> <Target Name="_CheckForUnsupportedHostingUsage" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'"> <NETSdkWarning Condition="'$(SelfContained)' == 'true' and '$(EnableComHosting)' == 'true'" ResourceName="NoSupportComSelfContained" /> </Target> <Target Name="_CheckAndUnsetUnsupportedPrefer32Bit" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(_TargetFrameworkVersionWithoutV)' >= '7.0'"> <NETSdkWarning Condition="'$(Prefer32Bit)' == 'true'" ResourceName="Prefer32BitIgnoredForNetCoreApp" /> <PropertyGroup> <Prefer32Bit>false</Prefer32Bit> </PropertyGroup> </Target> <Target Name="_CheckAndUnsetUnsupportedPreferNativeArm64" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp' and '$(PreferNativeArm64)' == 'true'"> <NETSdkWarning ResourceName="PreferNativeArm64IgnoredForNetCoreApp" /> <PropertyGroup> <PreferNativeArm64>false</PreferNativeArm64> </PropertyGroup> </Target> <Target Name="_CheckForMismatchingPlatform" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition="'$(RuntimeIdentifier)' != '' and '$(PlatformTarget)' != ''"> <NETSdkError Condition="'$(PlatformTarget)' != 'AnyCPU' and !$(RuntimeIdentifier.ToUpperInvariant().Contains($(PlatformTarget.ToUpperInvariant())))" ResourceName="CannotHaveRuntimeIdentifierPlatformMismatchPlatformTarget" FormatArguments="$(RuntimeIdentifier);$(PlatformTarget)" /> </Target> <Target Name="_CheckForLanguageAndFeatureCombinationSupport" BeforeTargets="_CheckForInvalidConfigurationAndPlatform;ProcessFrameworkReferences"> <NETSdkError Condition="('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and $(OutputType) != 'library' and '$(TargetFrameworkIdentifier)' == '.NETCoreApp'" ResourceName="NoSupportCppNonDynamicLibraryDotnetCore" /> <NETSdkError Condition="('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and $(EnableComHosting) == 'true'" ResourceName="NoSupportCppEnableComHosting" /> <NETSdkError Condition="('$(Language)' == 'C++' and '$(_EnablePackageReferencesInVCProjects)' != 'true') and $(SelfContained) == 'true'" ResourceName="NoSupportCppSelfContained" /> </Target> <Target Name="_CheckForNETCoreSdkIsPreview" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition=" '$(_NETCoreSdkIsPreview)' == 'true' AND '$(SuppressNETCoreSdkPreviewMessage)' != 'true' "> <ShowPreviewMessage /> </Target> <!-- Projects which don't use Microsoft.NET.Sdk will typically define the OutputPath directly (usually in a Configuration-specific PropertyGroup), so in that case we won't append to it by default. --> <PropertyGroup Condition="'$(UsingNETSdkDefaults)' == 'true'"> <!-- Projects can opt out of having the RID appended to the output path by setting this to false. --> <AppendRuntimeIdentifierToOutputPath Condition="'$(AppendRuntimeIdentifierToOutputPath)' == ''">true</AppendRuntimeIdentifierToOutputPath> </PropertyGroup> <!-- Append $(RuntimeIdentifier) directory to output and intermediate paths to prevent bin clashes between targets. But do not append the implicit default runtime identifier for .NET Framework apps as that would append a RID the user never mentioned in the path and do so even in the AnyCPU case. --> <PropertyGroup Condition="'$(AppendRuntimeIdentifierToOutputPath)' == 'true' and '$(RuntimeIdentifier)' != '' and '$(_UsingDefaultRuntimeIdentifier)' != 'true'"> <IntermediateOutputPath Condition="'$(UseArtifactsIntermediateOutput)' != 'true'">$(IntermediateOutputPath)$(RuntimeIdentifier)\</IntermediateOutputPath> <OutputPath Condition="'$(UseArtifactsOutput)' != 'true'">$(OutputPath)$(RuntimeIdentifier)\</OutputPath> </PropertyGroup> <UsingTask TaskName="Microsoft.NET.Build.Tasks.GetDefaultPlatformTargetForNetFramework" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" /> <!-- Switch our default .NETFramework CPU architecture choice back to AnyCPU before compiling the exe if no copy-local native dependencies were resolved from NuGet --> <Target Name=your_sha256_hashalItems" AfterTargets="ResolvePackageAssets" BeforeTargets="CoreCompile" Condition="'$(_UsingDefaultPlatformTarget)' == 'true' and '$(_UsingDefaultRuntimeIdentifier)' == 'true'"> <GetDefaultPlatformTargetForNetFramework PackageDependencies="@(PackageDependencies)" NativeCopyLocalItems="@(NativeCopyLocalItems)"> <Output TaskParameter="DefaultPlatformTarget" PropertyName="PlatformTarget" /> </GetDefaultPlatformTargetForNetFramework> </Target> </Project> ```
/content/code_sandbox/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.RuntimeIdentifierInference.targets
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
4,768
```xml <?xml version="1.0" encoding="UTF-8"?> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</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.2.4</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleVersion</key> <string>$(CURRENT_PROJECT_VERSION)</string> <key>NSPrincipalClass</key> <string></string> </dict> </plist> ```
/content/code_sandbox/SwiftyMarkdown.xcodeproj/SwiftyMarkdownTests_Info.plist
xml
2016-03-05T09:09:08
2024-08-12T07:21:37
SwiftyMarkdown
SimonFairbairn/SwiftyMarkdown
1,621
236
```xml import React from 'react'; import { Text, Button, StyleSheet, ViewStyle, TextStyle } from 'react-native'; import { NavigationProps } from 'react-native-navigation'; import Root from '../components/Root'; import { GlobalContext, Context } from '../context'; export default class ContextScreen extends React.Component<NavigationProps> { static contextType = Context; static options() { return { topBar: { title: { text: 'React Context API', }, }, }; } render() { return ( <Root style={styles.root}> <Text style={styles.text}>Default value: {this.context}</Text> <GlobalContext.Consumer> {(ctx) => <Text style={styles.text}>Provider value: {ctx.title}</Text>} </GlobalContext.Consumer> <GlobalContext.Consumer> {(ctx) => <Button title={`clicked ${ctx.count}`} onPress={() => ctx.incrementCount()} />} </GlobalContext.Consumer> </Root> ); } } type Style = { root: ViewStyle; text: TextStyle; }; const styles = StyleSheet.create<Style>({ root: { justifyContent: 'center', alignItems: 'center', }, text: { fontSize: 14, textAlign: 'center', marginBottom: 8, }, }); ```
/content/code_sandbox/playground/src/screens/ContextScreen.tsx
xml
2016-03-11T11:22:54
2024-08-15T09:05:44
react-native-navigation
wix/react-native-navigation
13,021
283
```xml import React, { FunctionComponent } from "react"; import { PropTypesOf } from "coral-framework/types"; import DecisionHistoryItemContainer from "./DecisionHistoryItemContainer"; import DecisionList from "./DecisionList"; import Empty from "./Empty"; import Main from "./Main"; import ShowMoreButton from "./ShowMoreButton"; import Title from "./Title"; interface Props { actions: Array< { id: string } & PropTypesOf<typeof DecisionHistoryItemContainer>["action"] >; onLoadMore?: () => void; hasMore?: boolean; disableLoadMore?: boolean; onClosePopover: () => void; } const DecisionHistory: FunctionComponent<Props> = (props) => ( <div data-testid="decisionHistory-container"> <Title /> <Main> <DecisionList> {props.actions.length === 0 && <Empty />} {props.actions.map((action) => ( <DecisionHistoryItemContainer key={action.id} action={action} onClosePopover={props.onClosePopover} /> ))} </DecisionList> {props.hasMore && ( <ShowMoreButton onClick={props.onLoadMore} disabled={props.disableLoadMore} /> )} </Main> </div> ); export default DecisionHistory; ```
/content/code_sandbox/client/src/core/client/admin/App/DecisionHistory/DecisionHistory.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
272
```xml import { join } from 'path'; import { env } from '../../env'; import { FuseBoxLogAdapter } from '../../fuseLog/FuseBoxLogAdapter'; import { createTestContext, mockWriteFile } from '../../utils/test_utils'; import { getEssentialWebIndexParams, replaceWebIndexStrings } from '../webIndex'; const fileMock = mockWriteFile(); const WEBINDEX_DEFAULT_TEMPLATE = `<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="ie=edge" /> <title></title> $css </head> <body> $bundles </body> </html> `; describe('WebIndex test', () => { describe('replaceWebIndexStrings', () => { it('should replace in one line', () => { const result = replaceWebIndexStrings(`$name`, { name: 'foo' }); expect(result).toEqual('foo'); }); it('should replace in 2 lines', () => { const result = replaceWebIndexStrings( ` $name $bar `, { bar: 'bar', name: 'foo' }, ); expect(result).toEqual('\n foo\n bar\n '); }); it('should replace the same items', () => { const result = replaceWebIndexStrings(`$name $name`, { name: 'foo' }); expect(result).toEqual('foo foo'); }); it('should replace not found keys with empty string', () => { const result = replaceWebIndexStrings(`$name $bar`, { name: 'foo' }); expect(result).toEqual('foo '); }); it('should treat an object', () => { const result = replaceWebIndexStrings(`$name`, { name: { foo: 'bar' } }); expect(result).toEqual(`{"foo":"bar"}`); }); }); describe('webindex', () => { beforeEach(() => { fileMock.flush(); fileMock.addFile(join(env.FUSE_MODULES, 'web-index-default-template/template.html'), WEBINDEX_DEFAULT_TEMPLATE); }); afterAll(() => { fileMock.unmock(); }); it('should be disabled', () => { const ctx = createTestContext({ webIndex: false }); expect(ctx.webIndex.isDisabled).toBe(true); }); it('should throw NO error if file not found, but use default template', async () => { const opts = getEssentialWebIndexParams({ template: 'foo' }, new FuseBoxLogAdapter({})); expect(opts.templateContent).toEqual(WEBINDEX_DEFAULT_TEMPLATE); }); }); }); ```
/content/code_sandbox/src/webIndex/__tests__/webIndex.test.ts
xml
2016-10-28T10:37:16
2024-07-27T15:17:43
fuse-box
fuse-box/fuse-box
4,003
599
```xml import React, {useEffect, useRef, useState} from 'react'; import {Modal} from '../../Library/View/Modal'; import {Logger} from '../../Library/Infra/Logger'; import styled from 'styled-components'; import {ScrollView} from '../../Library/View/ScrollView'; import {LogView} from './LogView'; import {View} from '../../Library/View/View'; import {AppEvent} from '../../Event/AppEvent'; export const LoggerFragment: React.FC = () => { const ownerRef = useRef({}); const [isDisplay, setIsDisplay] = useState(false); const [logs, setLogs] = useState(Logger.getLogs()); const [isScrollBottom, setIsScrollBottom] = useState(true); useEffect(() => { AppEvent.onOpenLogView(ownerRef.current, () => { setIsScrollBottom(true); setIsDisplay(true); }); Logger.onNewLog(ownerRef.current, () => setLogs([...Logger.getLogs()])); return () => { AppEvent.offAll(ownerRef.current); Logger.offAll(ownerRef.current); }; }, []); return ( <Modal show={isDisplay} onClose={() => setIsDisplay(false)}> <Body> <ScrollView ref={ref => {isScrollBottom && ref?.scrollBottom(); setIsScrollBottom(false)}}> {logs.map(log => <LogView log={log} key={log.id}/>)} {logs.length === 0 && ( <div>No logs</div> )} </ScrollView> </Body> </Modal> ); } const Body = styled(View)` width: 60vw; height: 80vh; `; ```
/content/code_sandbox/src/Renderer/Fragment/Log/LoggerFragment.tsx
xml
2016-05-10T12:55:31
2024-08-11T04:32:50
jasper
jasperapp/jasper
1,318
351
```xml import { Button, Table } from '@erxes/ui/src'; import React from 'react'; import { TableContainer } from '../../../../styles'; import { ILottery } from '../../types'; interface IProps { lists: ILottery[]; } class WinnersAwardList extends React.Component<IProps> { constructor(props) { super(props); } render() { const { lists } = this.props; return ( <TableContainer> <Table> <thead> <tr> <th>ID</th> <th>Action</th> </tr> </thead> <tbody> {lists.map((list, i) => ( <tr> <td>{list?.owner.email}</td> <td> <Button btnStyle="white" icon="ellipsis-h" /> </td> </tr> ))} </tbody> </Table> </TableContainer> ); } } export default WinnersAwardList; ```
/content/code_sandbox/packages/plugin-loyalties-ui/src/loyalties/lotteries/components/award/winnerlist.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
210
```xml import { ChangeDetectionStrategy, Component } from '@angular/core'; import { TreeNode } from 'primeng/api'; import { Code } from '@domain/code'; import { NodeService } from '@service/nodeservice'; interface Column { field: string; header: string; } @Component({ selector: 'sort-single-column-doc', template: ` <app-docsectiontext> <p>Sorting on a column is enabled by adding the <i>ttSortableColumn</i> property.</p> </app-docsectiontext> <div class="card"> <p-deferred-demo (load)="loadDemoData()"> <p-treeTable [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }"> <ng-template pTemplate="header" let-columns> <tr> <th *ngFor="let col of columns" [ttSortableColumn]="col.field"> {{ col.header }} <p-treeTableSortIcon [field]="col.field" /> </th> </tr> </ng-template> <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns"> <tr [ttRow]="rowNode"> <td *ngFor="let col of columns; let i = index"> <p-treeTableToggler [rowNode]="rowNode" *ngIf="i === 0" /> {{ rowData[col.field] }} </td> </tr> </ng-template> </p-treeTable> </p-deferred-demo> </div> <app-code [code]="code" selector="tree-table-sort-single-column-demo"></app-code> `, changeDetection: ChangeDetectionStrategy.OnPush }) export class SortSingleColumnDoc { files!: TreeNode[]; cols!: Column[]; constructor(private nodeService: NodeService) {} loadDemoData() { this.nodeService.getFilesystem().then((files) => (this.files = files)); this.cols = [ { field: 'name', header: 'Name' }, { field: 'size', header: 'Size' }, { field: 'type', header: 'Type' } ]; } code: Code = { basic: `<p-treeTable [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{'min-width':'50rem'}"> <ng-template pTemplate="header" let-columns> <tr> <th *ngFor="let col of columns" [ttSortableColumn]="col.field"> {{ col.header }} <p-treeTableSortIcon [field]="col.field" /> </th> </tr> </ng-template> <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns"> <tr [ttRow]="rowNode"> <td *ngFor="let col of columns; let i = index"> <p-treeTableToggler [rowNode]="rowNode" *ngIf="i === 0" /> {{ rowData[col.field] }} </td> </tr> </ng-template> </p-treeTable>`, html: `<div class="card"> <p-treeTable [value]="files" [columns]="cols" [scrollable]="true" [tableStyle]="{'min-width':'50rem'}"> <ng-template pTemplate="header" let-columns> <tr> <th *ngFor="let col of columns" [ttSortableColumn]="col.field"> {{ col.header }} <p-treeTableSortIcon [field]="col.field" /> </th> </tr> </ng-template> <ng-template pTemplate="body" let-rowNode let-rowData="rowData" let-columns="columns"> <tr [ttRow]="rowNode"> <td *ngFor="let col of columns; let i = index"> <p-treeTableToggler [rowNode]="rowNode" *ngIf="i === 0" /> {{ rowData[col.field] }} </td> </tr> </ng-template> </p-treeTable> </div>`, typescript: `import { Component, OnInit } from '@angular/core'; import { TreeNode } from 'primeng/api'; import { NodeService } from '@service/nodeservice'; import { TreeTableModule } from 'primeng/treetable'; import { CommonModule } from '@angular/common'; interface Column { field: string; header: string; } @Component({ selector: 'tree-table-sort-single-column-demo', templateUrl: './tree-table-sort-single-column-demo.html', standalone: true, imports: [TreeTableModule, CommonModule], providers: [NodeService] }) export class TreeTableSortSingleColumnDemo implements OnInit { files!: TreeNode[]; cols!: Column[]; constructor(private nodeService: NodeService) {} ngOnInit() { this.nodeService.getFilesystem().then((files) => (this.files = files)); this.cols = [ { field: 'name', header: 'Name' }, { field: 'size', header: 'Size' }, { field: 'type', header: 'Type' } ]; } }`, service: ['NodeService'] }; } ```
/content/code_sandbox/src/app/showcase/doc/treetable/sortsinglecolumndoc.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
1,159
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /// <reference types="@stdlib/types"/> import * as random from '@stdlib/types/random'; import { Collection } from '@stdlib/types/array'; /** * Interface defining function options. */ interface Options { /** * Pseudorandom number generator which generates uniformly distributed pseudorandom numbers. */ prng?: random.PRNG; /** * Pseudorandom number generator seed. */ seed?: random.PRNGSeedMT19937; /** * Pseudorandom number generator state. */ state?: random.PRNGStateMT19937; /** * Specifies whether to copy a provided pseudorandom number generator state (default: `true`). */ copy?: boolean; } /** * Interface for PRNG properties and methods. */ interface PRNG { /** * Underlying pseudorandom number generator. */ readonly PRNG: random.PRNG; /** * PRNG seed. */ readonly seed: random.PRNGSeedMT19937 | null; /** * PRNG seed length. */ readonly seedLength: number | null; /** * PRNG state. */ state: random.PRNGStateMT19937 | null; /** * PRNG state length. */ readonly stateLength: number | null; /** * PRNG state size (in bytes). */ readonly byteLength: number | null; } /** * Interface for filling strided arrays with pseudorandom numbers drawn from a Rayleigh distribution. */ interface Random extends PRNG { /** * Fills a strided array with pseudorandom numbers drawn from a Rayleigh distribution. * * @param N - number of indexed elements * @param sigma - scale parameter * @param ss - `sigma` strided length * @param out - output array * @param so - `out` stride length * @returns output array * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * // Create an array: * var out = new Float64Array( 10 ); * * // Fill the array with pseudorandom numbers: * rayleigh( out.length, [ 2.0 ], 0, out, 1 ); */ <T = unknown>( N: number, sigma: Collection<number>, ss: number, out: Collection<T>, so: number ): Collection<T | number>; /** * Fills a strided array with pseudorandom numbers drawn from a Rayleigh distribution using alternative indexing semantics. * * @param N - number of indexed elements * @param sigma - scale parameter * @param ss - `sigma` strided length * @param os - starting index for `sigma` * @param out - output array * @param so - `out` stride length * @param oo - starting index for `out` * @returns output array * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * // Create an array: * var out = new Float64Array( 10 ); * * // Fill the array with pseudorandom numbers: * rayleigh.ndarray( out.length, [ 2.0 ], 0, 0, out, 1, 0 ); */ ndarray<T = unknown>( N: number, sigma: Collection<number>, ss: number, os: number, out: Collection<T>, so: number, oo: number ): Collection<T | number>; } /** * Interface describing the main export. */ interface Routine extends Random { /** * Returns a function for filling strided arrays with pseudorandom numbers drawn from a Rayleigh distribution. * * @param options - function options * @throws must provide a valid state * @returns function for filling strided arrays * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * // Create a new PRNG function: * var random = rayleigh.factory(); * * // Create an array: * var out = new Float64Array( 10 ); * * // Fill the array with pseudorandom numbers: * random( out.length, [ 2.0 ], 0, out, 1 ); * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * // Create a new PRNG function: * var random = rayleigh.factory({ * 'seed': 297 * }); * * // Create an array: * var out = new Float64Array( 10 ); * * // Fill the array with pseudorandom numbers: * random( out.length, [ 2.0 ], 0, out, 1 ); */ factory( options?: Options ): Random; } /** * Fills a strided array with pseudorandom numbers drawn from a Rayleigh distribution. * * @param N - number of indexed elements * @param sigma - scale parameter * @param ss - `sigma` stride length * @param out - output array * @param so - `out` stride length * @returns output array * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * // Create an array: * var out = new Float64Array( 10 ); * * // Fill the array with pseudorandom numbers: * rayleigh( out.length, [ 2.0 ], 0, out, 1 ); * * @example * var Float64Array = require( '@stdlib/array/float64' ); * * // Create an array: * var out = new Float64Array( 10 ); * * // Fill the array with pseudorandom numbers: * rayleigh.ndarray( out.length, [ 2.0 ], 0, 0, out, 1, 0 ); */ declare var rayleigh: Routine; // EXPORTS // export = rayleigh; ```
/content/code_sandbox/lib/node_modules/@stdlib/random/strided/rayleigh/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
1,371
```xml <UserControl x:Class="Telegram.Controls.Messages.MessageEffectMenuFlyout" xmlns="path_to_url" xmlns:x="path_to_url" xmlns:local="using:Telegram.Controls.Messages" xmlns:common="using:Telegram.Common" xmlns:controls="using:Telegram.Controls" xmlns:icons="using:Telegram.Assets.Icons" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" xmlns:d="path_to_url" xmlns:mc="path_to_url" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <UserControl.Resources> <Style x:Key="ReactionsMenuButtonStyle" TargetType="Button"> <Setter Property="Background" Value="{ThemeResource ToggleButtonBackgroundChecked}" /> <Setter Property="BackgroundSizing" Value="OuterBorderEdge" /> <Setter Property="Foreground" Value="{ThemeResource SystemColorControlAccentBrush}" /> <Setter Property="BorderBrush" Value="{ThemeResource ToggleButtonBorderBrushChecked}" /> <Setter Property="Padding" Value="8,0,0,0" /> <Setter Property="HorizontalAlignment" Value="Left" /> <Setter Property="VerticalAlignment" Value="Center" /> <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" /> <Setter Property="FontWeight" Value="Normal" /> <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" /> <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" /> <Setter Property="FocusVisualMargin" Value="-3" /> <Setter Property="CornerRadius" Value="16" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Grid Background="{ThemeResource MenuFlyoutItemBackgroundPointerOver}" CornerRadius="{TemplateBinding CornerRadius}" Margin="{TemplateBinding Padding}" AutomationProperties.AccessibilityView="Raw"> <VisualStateManager.VisualStateGroups> <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Normal" /> <VisualState x:Name="PointerOver"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background"> <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MenuFlyoutItemBackgroundPointerOver}" /> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Pressed"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background"> <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource MenuFlyoutItemBackgroundPressed}" /> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> <VisualState x:Name="Disabled"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Background"> <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleButtonBackgroundDisabled}" /> </ObjectAnimationUsingKeyFrames> </Storyboard> </VisualState> </VisualStateGroup> </VisualStateManager.VisualStateGroups> <Border x:Name="ContentPresenter" /> <TextBlock x:Name="Icon" Text="&#xE0E5;" FontFamily="{StaticResource SymbolThemeFontFamily}" HorizontalAlignment="Center" VerticalAlignment="Center" AutomationProperties.AccessibilityView="Raw" FontSize="16" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </UserControl.Resources> <Grid x:Name="LayoutRoot"> <Border x:Name="Shadow" IsHitTestVisible="False" Width="272" Height="36" /> <Path x:Name="Pill" Fill="{ThemeResource MenuFlyoutPresenterBackground}" Stroke="{ThemeResource MenuFlyoutPresenterBorderBrush}" Width="272" Height="36" StrokeThickness="1" /> <Grid x:Name="Presenter" Width="272" Height="36" CornerRadius="8"> <Grid.Transform3D> <PerspectiveTransform3D x:Name="Perspective" Depth="100" /> </Grid.Transform3D> </Grid> <Button x:Name="Expand" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Top" Foreground="{ThemeResource SystemColorControlAccentBrush}" Style="{StaticResource ReactionsMenuButtonStyle}" Width="32" Height="24" Margin="6" /> </Grid> </UserControl> ```
/content/code_sandbox/Telegram/Controls/Messages/MessageEffectMenuFlyout.xaml
xml
2016-05-23T09:03:33
2024-08-16T16:17:48
Unigram
UnigramDev/Unigram
3,744
1,042
```xml namespace pxt.storage { interface IStorage { removeItem(key: string): void; getItem(key: string): string; setItem(key: string, value: string): void; clear(): void; } class MemoryStorage implements IStorage { type: "memory"; items: pxt.Map<string> = {}; removeItem(key: string) { delete this.items[key]; } getItem(key: string): string { return this.items[key]; } setItem(key: string, value: string): void { this.items[key] = value; } clear() { this.items = {}; } } class LocalStorage implements IStorage { type = "localstorage"; constructor(private storageId: string) { } targetKey(key: string): string { return this.storageId + '/' + key; } removeItem(key: string) { window.localStorage.removeItem(this.targetKey(key)); } getItem(key: string): string { return window.localStorage[this.targetKey(key)]; } setItem(key: string, value: string): void { window.localStorage[this.targetKey(key)] = value; } clear() { let prefix = this.targetKey(''); let keys: string[] = []; for (let i = 0; i < window.localStorage.length; ++i) { let key = window.localStorage.key(i); if (key.indexOf(prefix) == 0) keys.push(key); } keys.forEach(key => window.localStorage.removeItem(key)); } } export function storageId(): string { if (pxt.appTarget) return pxt.appTarget.id; const cfg = (<any>window).pxtConfig; if (cfg) return cfg.targetId; const bndl = (<any>window).pxtTargetBundle; if (bndl) return bndl.id; return ''; } let impl: IStorage; function init() { if (impl) return; // test if local storage is supported const sid = storageId(); let supported = false; // no local storage in sandbox mode if (!pxt.shell.isSandboxMode()) { try { const rand = pxt.Util.guidGen(); window.localStorage[sid] = rand; const v = window.localStorage[sid]; supported = v === rand; } catch (e) { } } if (!supported) { impl = new MemoryStorage(); pxt.debug('storage: in memory'); } else { impl = new LocalStorage(sid); pxt.debug(`storage: local under ${sid}`) } } export function setLocal(key: string, value: string) { init() impl.setItem(key, value); } export function getLocal(key: string): string { init() return impl.getItem(key); } export function removeLocal(key: string) { init() impl.removeItem(key); } export function clearLocal() { init() impl.clear(); } } /** * Storage that will be shared across localhost frames when developing locally. Uses regular browser storage in production. * One side effect: Localhost storage will be shared between different browsers and incognito tabs as well. To disable this * behavior, set the `routingEnabled` switch below to `false`. */ namespace pxt.storage.shared { /** * Override switch. Setting this to `false` will stop routing calls to the pxt server, using browser storage instead. */ const routingEnabled = true; // Specify host and port explicitly so that localhost frames not served on the default port (e.g. skillmap) can access it. const localhostStoreUrl = "path_to_url"; function useSharedLocalStorage(): boolean { return routingEnabled && pxt.BrowserUtils.isLocalHostDev() && !pxt.BrowserUtils.noSharedLocalStorage(); } function sharedStorageNamespace(): string { if (pxt.BrowserUtils.isChromiumEdge()) { return "chromium-edge"; } return pxt.BrowserUtils.browser(); } export async function getAsync<T>(container: string, key: string): Promise<T> { if (useSharedLocalStorage()) { container += '-' + sharedStorageNamespace(); const resp = await pxt.Util.requestAsync({ url: `${localhostStoreUrl}${encodeURIComponent(container)}/${encodeURIComponent(key)}`, method: "GET", allowHttpErrors: true }); if (resp.statusCode === 204) { throw new Error(`Missing ${key} not available in ${container}`); } else if (resp.json) { return resp.json as T; } else if (resp.text) { return resp.text as any as T; } else { return undefined; } } else { const sval = pxt.storage.getLocal(`${container}:${key}`); const val = pxt.Util.jsonTryParse(sval); return val ? val : sval; } } export async function setAsync(container: string, key: string, val: any): Promise<void> { if (typeof val == "undefined") { await pxt.storage.shared.delAsync(container, key); return; } let sval = ""; if (typeof val === "object") sval = JSON.stringify(val); else sval = val.toString(); if (useSharedLocalStorage()) { container += '-' + sharedStorageNamespace(); const data = { type: (typeof val === "object") ? "json" : "text", val: sval }; const sdata = JSON.stringify(data); await pxt.Util.requestAsync({ url: `${localhostStoreUrl}${encodeURIComponent(container)}/${encodeURIComponent(key)}`, method: "POST", data: sdata }); } else { pxt.storage.setLocal(`${container}:${key}`, sval); } } export async function delAsync(container: string, key: string): Promise<void> { if (useSharedLocalStorage()) { container += '-' + sharedStorageNamespace(); await pxt.Util.requestAsync({ url: `${localhostStoreUrl}${encodeURIComponent(container)}/${encodeURIComponent(key)}`, method: "DELETE", allowHttpErrors: true }); } else { pxt.storage.removeLocal(`${container}:${key}`); } } } ```
/content/code_sandbox/pxtlib/localStorage.ts
xml
2016-01-24T19:35:52
2024-08-16T16:39:39
pxt
microsoft/pxt
2,069
1,357
```xml import React, { useCallback } from "react"; import { Button, Col, Row, Switch, Typography, Tooltip } from "antd"; import config from "../../../config"; import { EVENT, sendEvent } from "../../events"; interface PopupHeaderProps { isExtensionEnabled: boolean; handleToggleExtensionStatus: () => void; } const PopupHeader: React.FC<PopupHeaderProps> = ({ isExtensionEnabled, handleToggleExtensionStatus }) => { const onOpenAppButtonClick = useCallback(() => { window.open(`${config.WEB_URL}?source=popup`, "_blank"); sendEvent(EVENT.OPEN_APP_CLICKED); }, []); return ( <div className="popup-header"> <div className="popup-header-workspace-section"> <img className="product-logo" src="/resources/images/extended_logo.png" /> </div> <Row align="middle" gutter={16}> <Col> <Row align="middle"> <Tooltip open={!isExtensionEnabled} title="Please switch on the Requestly extension. When paused, rules won't be applied and sessions won't be recorded." overlayClassName="enable-extension-tooltip" color="var(--neutrals-black)" overlayInnerStyle={{ fontSize: "14px" }} > <Switch checked={isExtensionEnabled} onChange={handleToggleExtensionStatus} size="small" className="pause-switch" /> </Tooltip> <Typography.Text>{`Requestly ${isExtensionEnabled ? "running" : "paused"}`}</Typography.Text> </Row> </Col> <Col> <Button type="primary" className="open-app-btn" onClick={onOpenAppButtonClick}> Open app </Button> </Col> </Row> </div> ); }; export default PopupHeader; ```
/content/code_sandbox/browser-extension/common/src/popup/components/Popup/PopupHeader.tsx
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
387
```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> <groupId>io.debezium</groupId> <artifactId>debezium-build-parent</artifactId> <version>3.0.0-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>debezium-ide-configs</artifactId> <name>Debezium IDE Formatting Rules</name> <description>Contains the definitions for the Debezium commons code style and conventions applicable in formatter and IDEs</description> </project> ```
/content/code_sandbox/support/ide-configs/pom.xml
xml
2016-01-22T20:17:05
2024-08-16T13:42:33
debezium
debezium/debezium
10,320
180
```xml /* * Wire * * This program is free software: you can redistribute it and/or modify * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program. If not, see path_to_url * */ import {Runtime} from '@wireapp/commons'; import {Config} from '../Config'; export const isDetachedCallingFeatureEnabled = () => { return Runtime.isDesktopApp() ? Boolean(Config.getDesktopConfig()?.supportsCallingPopoutWindow) : true; }; ```
/content/code_sandbox/src/script/util/isDetachedCallingFeatureEnabled.ts
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
142
```xml /* */ import { expect, test } from '@jupyterlab/galata'; import { readFile } from 'fs/promises'; import { isBlank, isValidJSON } from './utils'; const licenseFormats = [ { name: 'Markdown', extension: 'md', validation: (value: string) => !isBlank(value) }, { name: 'CSV', extension: 'csv', validation: (value: string) => !isBlank(value) }, { name: 'JSON', extension: 'json', validation: isValidJSON } ]; test('Switch back and forth to reference page', async ({ page }) => { // The goal is to test switching back and forth with a tab containing an iframe const notebookFilename = 'test-switch-doc-notebook'; const cellContent = '# First cell'; await page.notebook.createNew(notebookFilename); await page.notebook.setCell(0, 'markdown', cellContent); await page.menu.clickMenuItem('Help>Jupyter Reference'); await expect( page .frameLocator('iframe[src="path_to_url"]') .locator('h1') .first() ).toHaveText('Project Jupyter Documentation#'); await page.activity.activateTab(notebookFilename); await page.locator('.jp-MarkdownCell .jp-InputArea-editor').waitFor(); await expect( page.locator('.jp-MarkdownCell .jp-InputArea-editor') ).toHaveText(cellContent); }); licenseFormats.forEach(licenseFormat => { test(`Exporting licenses as ${licenseFormat.name} must download a ${licenseFormat.name} file`, async ({ page }) => { const downloadPromise = page.waitForEvent('download'); await page .getByRole('button', { }) .click(); const download = await downloadPromise; const fileName = download.suggestedFilename(); const fileContent = await readFile(await download.path(), { encoding: 'utf8' }); expect(fileName).toBe(`jupyterlab-licenses.${licenseFormat.extension}`); expect(licenseFormat.validation(fileContent)).toBeTruthy(); }); }); }); ```
/content/code_sandbox/galata/test/jupyterlab/help.test.ts
xml
2016-06-03T20:09:17
2024-08-16T19:12:44
jupyterlab
jupyterlab/jupyterlab
14,019
457
```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 pdf = require( './index' ); // TESTS // // The function returns a number... { pdf( 20, 40 ); // $ExpectType number pdf( 10, 15 ); // $ExpectType number } // The compiler throws an error if the function is provided values other than two numbers... { pdf( true, 3 ); // $ExpectError pdf( false, 2 ); // $ExpectError pdf( '5', 1 ); // $ExpectError pdf( [], 1 ); // $ExpectError pdf( {}, 4 ); // $ExpectError pdf( ( x: number ): number => x, 2 ); // $ExpectError pdf( 9, true ); // $ExpectError pdf( 9, false ); // $ExpectError pdf( 5, '5' ); // $ExpectError pdf( 8, [] ); // $ExpectError pdf( 9, {} ); // $ExpectError pdf( 8, ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the function is provided an unsupported number of arguments... { pdf(); // $ExpectError pdf( 2 ); // $ExpectError pdf( 2, 0, 4 ); // $ExpectError } // Attached to main export is a `factory` method which returns a function... { pdf.factory( 4 ); // $ExpectType Unary } // The `factory` method returns a function which returns a number... { const fcn = pdf.factory( 4 ); fcn( 2 ); // $ExpectType number } // The compiler throws an error if the function returned by the `factory` method is provided an invalid argument... { const fcn = pdf.factory( 4 ); fcn( true ); // $ExpectError fcn( false ); // $ExpectError fcn( '5' ); // $ExpectError fcn( [] ); // $ExpectError fcn( {} ); // $ExpectError fcn( ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the function returned by the `factory` method is provided an unsupported number of arguments... { const fcn = pdf.factory( 4 ); fcn(); // $ExpectError fcn( 2, 0 ); // $ExpectError fcn( 2, 0, 1 ); // $ExpectError } // The compiler throws an error if the `factory` method is provided a value other than a number... { pdf.factory( true ); // $ExpectError pdf.factory( false ); // $ExpectError pdf.factory( '5' ); // $ExpectError pdf.factory( [] ); // $ExpectError pdf.factory( {} ); // $ExpectError pdf.factory( ( x: number ): number => x ); // $ExpectError } // The compiler throws an error if the `factory` method is provided an unsupported number of arguments... { pdf.factory( 8, 20 ); // $ExpectError pdf.factory( 8, 40, 8 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/signrank/pdf/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
747
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <dimen name="icon_top_margin">0dp</dimen> <dimen name="icon_bottom_margin">0dp</dimen> </resources> ```
/content/code_sandbox/auth/app/src/main/res/values-land/dimens.xml
xml
2016-04-26T17:13:27
2024-08-16T18:37:58
quickstart-android
firebase/quickstart-android
8,797
53
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, software WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the --> <jobTypes> <jobType> <name>Spark</name> <applicationtype>spark</applicationtype> <conf>spark.app.id</conf> <isDefault/> </jobType> <jobType> <name>Pig</name> <applicationtype>mapreduce</applicationtype> <conf>pig.script</conf> </jobType> <jobType> <name>Hive</name> <applicationtype>mapreduce</applicationtype> <conf>hive.mapred.mode</conf> </jobType> <jobType> <name>Cascading</name> <applicationtype>mapreduce</applicationtype> <conf>cascading.app.frameworks</conf> </jobType> <jobType> <name>HadoopJava</name> <applicationtype>mapreduce</applicationtype> <conf>mapred.child.java.opts</conf> <isDefault/> </jobType> </jobTypes> ```
/content/code_sandbox/test/resources/configurations/jobtype/JobTypeConfTest1.xml
xml
2016-03-02T17:51:13
2024-08-13T18:56:18
dr-elephant
linkedin/dr-elephant
1,350
271
```xml import { selectAll } from '@codemirror/commands'; import { findNext, gotoLine } from '@codemirror/search'; import { JupyterFrontEnd } from '@jupyterlab/application'; import { Clipboard, ICommandPalette, ISessionContextDialogs, MainAreaWidget, WidgetTracker } from '@jupyterlab/apputils'; import { CodeEditor, CodeViewerWidget, IEditorMimeTypeService, IEditorServices } from '@jupyterlab/codeeditor'; import { CodeMirrorEditor, IEditorExtensionRegistry, IEditorLanguageRegistry } from '@jupyterlab/codemirror'; import { ICompletionProviderManager } from '@jupyterlab/completer'; import { IConsoleTracker } from '@jupyterlab/console'; import { MarkdownCodeBlocks, PathExt } from '@jupyterlab/coreutils'; import { IDocumentWidget } from '@jupyterlab/docregistry'; import { IDefaultFileBrowser } from '@jupyterlab/filebrowser'; import { FileEditor, IEditorTracker } from '@jupyterlab/fileeditor'; import { ILauncher } from '@jupyterlab/launcher'; import { IMainMenu } from '@jupyterlab/mainmenu'; import { ISettingRegistry } from '@jupyterlab/settingregistry'; import { ITranslator, nullTranslator, TranslationBundle } from '@jupyterlab/translation'; import { consoleIcon, copyIcon, cutIcon, LabIcon, markdownIcon, pasteIcon, redoIcon, textEditorIcon, undoIcon } from '@jupyterlab/ui-components'; import { find } from '@lumino/algorithm'; import { CommandRegistry } from '@lumino/commands'; import { JSONObject, ReadonlyJSONObject, ReadonlyPartialJSONObject } from '@lumino/coreutils'; const autoClosingBracketsNotebook = 'notebook:toggle-autoclosing-brackets'; const autoClosingBracketsConsole = 'console:toggle-autoclosing-brackets'; /** * The command IDs used by the fileeditor plugin. */ export namespace CommandIDs { export const createNew = 'fileeditor:create-new'; export const createNewMarkdown = 'fileeditor:create-new-markdown-file'; export const changeFontSize = 'fileeditor:change-font-size'; export const lineNumbers = 'fileeditor:toggle-line-numbers'; export const currentLineNumbers = 'fileeditor:toggle-current-line-numbers'; export const lineWrap = 'fileeditor:toggle-line-wrap'; export const currentLineWrap = 'fileeditor:toggle-current-line-wrap'; export const changeTabs = 'fileeditor:change-tabs'; export const matchBrackets = 'fileeditor:toggle-match-brackets'; export const currentMatchBrackets = 'fileeditor:toggle-current-match-brackets'; export const autoClosingBrackets = 'fileeditor:toggle-autoclosing-brackets'; export const autoClosingBracketsUniversal = 'fileeditor:toggle-autoclosing-brackets-universal'; export const createConsole = 'fileeditor:create-console'; export const replaceSelection = 'fileeditor:replace-selection'; export const restartConsole = 'fileeditor:restart-console'; export const runCode = 'fileeditor:run-code'; export const runAllCode = 'fileeditor:run-all'; export const markdownPreview = 'fileeditor:markdown-preview'; export const undo = 'fileeditor:undo'; export const redo = 'fileeditor:redo'; export const cut = 'fileeditor:cut'; export const copy = 'fileeditor:copy'; export const paste = 'fileeditor:paste'; export const selectAll = 'fileeditor:select-all'; export const invokeCompleter = 'completer:invoke-file'; export const selectCompleter = 'completer:select-file'; export const openCodeViewer = 'code-viewer:open'; export const changeTheme = 'fileeditor:change-theme'; export const changeLanguage = 'fileeditor:change-language'; export const find = 'fileeditor:find'; export const goToLine = 'fileeditor:go-to-line'; } export interface IFileTypeData extends ReadonlyJSONObject { fileExt: string; iconName: string; launcherLabel: string; paletteLabel: string; caption: string; } /** * The name of the factory that creates editor widgets. */ export const FACTORY = 'Editor'; /** * A utility class for adding commands and menu items, * for use by the File Editor extension or other Editor extensions. */ export namespace Commands { let config: Record<string, any> = {}; let scrollPastEnd = true; /** * Accessor function that returns the createConsole function for use by Create Console commands */ function getCreateConsoleFunction( commands: CommandRegistry, languages: IEditorLanguageRegistry ): ( widget: IDocumentWidget<FileEditor>, args?: ReadonlyPartialJSONObject ) => Promise<void> { return async function createConsole( widget: IDocumentWidget<FileEditor>, args?: ReadonlyPartialJSONObject ): Promise<void> { const options = args || {}; const console = await commands.execute('console:create', { activate: options['activate'], name: widget.context.contentsModel?.name, path: widget.context.path, // Default value is an empty string -> using OR operator preferredLanguage: widget.context.model.defaultKernelLanguage || (languages.findByFileName(widget.context.path)?.name ?? ''), ref: widget.id, insertMode: 'split-bottom' }); widget.context.pathChanged.connect((sender, value) => { console.session.setPath(value); console.session.setName(widget.context.contentsModel?.name); }); }; } /** * Update the setting values. */ export function updateSettings( settings: ISettingRegistry.ISettings, commands: CommandRegistry ): void { config = (settings.get('editorConfig').composite as Record<string, any>) ?? {}; scrollPastEnd = settings.get('scrollPasteEnd').composite as boolean; // Trigger a refresh of the rendered commands commands.notifyCommandChanged(CommandIDs.lineNumbers); commands.notifyCommandChanged(CommandIDs.currentLineNumbers); commands.notifyCommandChanged(CommandIDs.lineWrap); commands.notifyCommandChanged(CommandIDs.currentLineWrap); commands.notifyCommandChanged(CommandIDs.changeTabs); commands.notifyCommandChanged(CommandIDs.matchBrackets); commands.notifyCommandChanged(CommandIDs.currentMatchBrackets); commands.notifyCommandChanged(CommandIDs.autoClosingBrackets); commands.notifyCommandChanged(CommandIDs.changeLanguage); } /** * Update the settings of the current tracker instances. */ export function updateTracker( tracker: WidgetTracker<IDocumentWidget<FileEditor>> ): void { tracker.forEach(widget => { updateWidget(widget.content); }); } /** * Update the settings of a widget. * Skip global settings for transient editor specific configs. */ export function updateWidget(widget: FileEditor): void { const editor = widget.editor; editor.setOptions({ ...config, scrollPastEnd }); } /** * Wrapper function for adding the default File Editor commands */ export function addCommands( commands: CommandRegistry, settingRegistry: ISettingRegistry, trans: TranslationBundle, id: string, isEnabled: () => boolean, tracker: WidgetTracker<IDocumentWidget<FileEditor>>, defaultBrowser: IDefaultFileBrowser, extensions: IEditorExtensionRegistry, languages: IEditorLanguageRegistry, consoleTracker: IConsoleTracker | null, sessionDialogs: ISessionContextDialogs, shell: JupyterFrontEnd.IShell ): void { /** * Add a command to change font size for File Editor */ commands.addCommand(CommandIDs.changeFontSize, { execute: args => { const delta = Number(args['delta']); if (Number.isNaN(delta)) { console.error( `${CommandIDs.changeFontSize}: delta arg must be a number` ); return; } const style = window.getComputedStyle(document.documentElement); const cssSize = parseInt( style.getPropertyValue('--jp-code-font-size'), 10 ); if (!config.customStyles) { config.customStyles = {}; } const currentSize = (config['customStyles']['fontSize'] ?? extensions.baseConfiguration['customStyles']['fontSize']) || cssSize; config.customStyles.fontSize = currentSize + delta; return settingRegistry .set(id, 'editorConfig', config) .catch((reason: Error) => { console.error(`Failed to set ${id}: ${reason.message}`); }); }, label: args => { const delta = Number(args['delta']); if (Number.isNaN(delta)) { console.error( `${CommandIDs.changeFontSize}: delta arg must be a number` ); } if (delta > 0) { return args.isMenu ? trans.__('Increase Text Editor Font Size') : trans.__('Increase Font Size'); } else { return args.isMenu ? trans.__('Decrease Text Editor Font Size') : trans.__('Decrease Font Size'); } } }); /** * Add the Line Numbers command */ commands.addCommand(CommandIDs.lineNumbers, { execute: async () => { config.lineNumbers = !( config.lineNumbers ?? extensions.baseConfiguration.lineNumbers ); try { return await settingRegistry.set(id, 'editorConfig', config); } catch (reason) { console.error(`Failed to set ${id}: ${reason.message}`); } }, isEnabled, isToggled: () => config.lineNumbers ?? extensions.baseConfiguration.lineNumbers, label: trans.__('Show Line Numbers') }); commands.addCommand(CommandIDs.currentLineNumbers, { label: trans.__('Show Line Numbers'), caption: trans.__('Show the line numbers for the current file.'), execute: () => { const widget = tracker.currentWidget; if (!widget) { return; } const lineNumbers = !widget.content.editor.getOption('lineNumbers'); widget.content.editor.setOption('lineNumbers', lineNumbers); }, isEnabled, isToggled: () => { const widget = tracker.currentWidget; return ( (widget?.content.editor.getOption('lineNumbers') as | boolean | undefined) ?? false ); } }); /** * Add the Word Wrap command */ commands.addCommand(CommandIDs.lineWrap, { execute: async args => { config.lineWrap = (args['mode'] as boolean) ?? false; try { return await settingRegistry.set(id, 'editorConfig', config); } catch (reason) { console.error(`Failed to set ${id}: ${reason.message}`); } }, isEnabled, isToggled: args => { const lineWrap = args['mode'] ?? false; return ( lineWrap === (config.lineWrap ?? extensions.baseConfiguration.lineWrap) ); }, label: trans.__('Word Wrap') }); commands.addCommand(CommandIDs.currentLineWrap, { label: trans.__('Wrap Words'), caption: trans.__('Wrap words for the current file.'), execute: () => { const widget = tracker.currentWidget; if (!widget) { return; } const oldValue = widget.content.editor.getOption('lineWrap'); widget.content.editor.setOption('lineWrap', !oldValue); }, isEnabled, isToggled: () => { const widget = tracker.currentWidget; return ( (widget?.content.editor.getOption('lineWrap') as boolean) ?? false ); } }); /** * Add command for changing tabs size or type in File Editor */ commands.addCommand(CommandIDs.changeTabs, { label: args => { if (args.size) { // Use a context to differentiate with string set as plural in 3.x return trans._p('v4', 'Spaces: %1', args.size ?? ''); } else { return trans.__('Indent with Tab'); } }, execute: async args => { config.indentUnit = args['size'] !== undefined ? ((args['size'] as string) ?? '4').toString() : 'Tab'; try { return await settingRegistry.set(id, 'editorConfig', config); } catch (reason) { console.error(`Failed to set ${id}: ${reason.message}`); } }, isToggled: args => { const currentIndentUnit = config.indentUnit ?? extensions.baseConfiguration.indentUnit; return args['size'] ? args['size'] === currentIndentUnit : 'Tab' == currentIndentUnit; } }); /** * Add the Match Brackets command */ commands.addCommand(CommandIDs.matchBrackets, { execute: async () => { config.matchBrackets = !( config.matchBrackets ?? extensions.baseConfiguration.matchBrackets ); try { return await settingRegistry.set(id, 'editorConfig', config); } catch (reason) { console.error(`Failed to set ${id}: ${reason.message}`); } }, label: trans.__('Match Brackets'), isEnabled, isToggled: () => config.matchBrackets ?? extensions.baseConfiguration.matchBrackets }); commands.addCommand(CommandIDs.currentMatchBrackets, { label: trans.__('Match Brackets'), caption: trans.__('Change match brackets for the current file.'), execute: () => { const widget = tracker.currentWidget; if (!widget) { return; } const matchBrackets = !widget.content.editor.getOption('matchBrackets'); widget.content.editor.setOption('matchBrackets', matchBrackets); }, isEnabled, isToggled: () => { const widget = tracker.currentWidget; return ( (widget?.content.editor.getOption('matchBrackets') as | boolean | undefined) ?? false ); } }); /** * Add the Auto Close Brackets for Text Editor command */ commands.addCommand(CommandIDs.autoClosingBrackets, { execute: async args => { config.autoClosingBrackets = !!( args['force'] ?? !( config.autoClosingBrackets ?? extensions.baseConfiguration.autoClosingBrackets ) ); try { return await settingRegistry.set(id, 'editorConfig', config); } catch (reason) { console.error(`Failed to set ${id}: ${reason.message}`); } }, label: trans.__('Auto Close Brackets in Text Editor'), isToggled: () => config.autoClosingBrackets ?? extensions.baseConfiguration.autoClosingBrackets }); commands.addCommand(CommandIDs.autoClosingBracketsUniversal, { execute: () => { const anyToggled = commands.isToggled(CommandIDs.autoClosingBrackets) || commands.isToggled(autoClosingBracketsNotebook) || commands.isToggled(autoClosingBracketsConsole); // if any auto closing brackets options is toggled, toggle both off if (anyToggled) { void commands.execute(CommandIDs.autoClosingBrackets, { force: false }); void commands.execute(autoClosingBracketsNotebook, { force: false }); void commands.execute(autoClosingBracketsConsole, { force: false }); } else { // both are off, turn them on void commands.execute(CommandIDs.autoClosingBrackets, { force: true }); void commands.execute(autoClosingBracketsNotebook, { force: true }); void commands.execute(autoClosingBracketsConsole, { force: true }); } }, label: trans.__('Auto Close Brackets'), isToggled: () => commands.isToggled(CommandIDs.autoClosingBrackets) || commands.isToggled(autoClosingBracketsNotebook) || commands.isToggled(autoClosingBracketsConsole) }); /** * Create a menu for the editor. */ commands.addCommand(CommandIDs.changeTheme, { label: args => ((args.displayName ?? args.theme) as string) ?? config.theme ?? extensions.baseConfiguration.theme ?? trans.__('Editor Theme'), execute: async args => { config.theme = (args['theme'] as string) ?? config.theme; try { return await settingRegistry.set(id, 'editorConfig', config); } catch (reason) { console.error(`Failed to set theme - ${reason.message}`); } }, isToggled: args => args['theme'] === (config.theme ?? extensions.baseConfiguration.theme) }); commands.addCommand(CommandIDs.find, { label: trans.__('Find'), execute: () => { const widget = tracker.currentWidget; if (!widget) { return; } const editor = widget.content.editor as CodeMirrorEditor; editor.execCommand(findNext); }, isEnabled }); commands.addCommand(CommandIDs.goToLine, { label: trans.__('Go to Line'), execute: args => { const widget = tracker.currentWidget; if (!widget) { return; } const editor = widget.content.editor as CodeMirrorEditor; const line = args['line'] as number | undefined; const column = args['column'] as number | undefined; if (line !== undefined || column !== undefined) { editor.setCursorPosition({ line: (line ?? 1) - 1, column: (column ?? 1) - 1 }); } else { editor.execCommand(gotoLine); } }, isEnabled }); commands.addCommand(CommandIDs.changeLanguage, { label: args => ((args['displayName'] ?? args['name']) as string) ?? trans.__('Change editor language.'), execute: args => { const name = args['name'] as string; const widget = tracker.currentWidget; if (name && widget) { const spec = languages.findByName(name); if (spec) { if (Array.isArray(spec.mime)) { widget.content.model.mimeType = (spec.mime[0] as string) ?? IEditorMimeTypeService.defaultMimeType; } else { widget.content.model.mimeType = spec.mime as string; } } } }, isEnabled, isToggled: args => { const widget = tracker.currentWidget; if (!widget) { return false; } const mime = widget.content.model.mimeType; const spec = languages.findByMIME(mime); const name = spec && spec.name; return args['name'] === name; } }); /** * Add the replace selection for text editor command */ commands.addCommand(CommandIDs.replaceSelection, { execute: args => { const text: string = (args['text'] as string) || ''; const widget = tracker.currentWidget; if (!widget) { return; } widget.content.editor.replaceSelection?.(text); }, isEnabled, label: trans.__('Replace Selection in Editor') }); /** * Add the Create Console for Editor command */ commands.addCommand(CommandIDs.createConsole, { execute: args => { const widget = tracker.currentWidget; if (!widget) { return; } return getCreateConsoleFunction(commands, languages)(widget, args); }, isEnabled, icon: consoleIcon, label: trans.__('Create Console for Editor') }); /** * Restart the Console Kernel linked to the current Editor */ commands.addCommand(CommandIDs.restartConsole, { execute: async () => { const current = tracker.currentWidget?.content; if (!current || consoleTracker === null) { return; } const widget = consoleTracker.find( widget => widget.sessionContext.session?.path === current.context.path ); if (widget) { return sessionDialogs.restart(widget.sessionContext); } }, label: trans.__('Restart Kernel'), isEnabled: () => consoleTracker !== null && isEnabled() }); /** * Add the Run Code command */ commands.addCommand(CommandIDs.runCode, { execute: () => { // Run the appropriate code, taking into account a ```fenced``` code block. const widget = tracker.currentWidget?.content; if (!widget) { return; } let code: string | undefined = ''; const editor = widget.editor; const path = widget.context.path; const extension = PathExt.extname(path); const selection = editor.getSelection(); const { start, end } = selection; let selected = start.column !== end.column || start.line !== end.line; if (selected) { // Get the selected code from the editor. const start = editor.getOffsetAt(selection.start); const end = editor.getOffsetAt(selection.end); code = editor.model.sharedModel.getSource().substring(start, end); } else if (MarkdownCodeBlocks.isMarkdown(extension)) { const text = editor.model.sharedModel.getSource(); const blocks = MarkdownCodeBlocks.findMarkdownCodeBlocks(text); for (const block of blocks) { if (block.startLine <= start.line && start.line <= block.endLine) { code = block.code; selected = true; break; } } } if (!selected) { // no selection, submit whole line and advance code = editor.getLine(selection.start.line); const cursor = editor.getCursorPosition(); if (cursor.line + 1 === editor.lineCount) { const text = editor.model.sharedModel.getSource(); editor.model.sharedModel.setSource(text + '\n'); } editor.setCursorPosition({ line: cursor.line + 1, column: cursor.column }); } const activate = false; if (code) { return commands.execute('console:inject', { activate, code, path }); } else { return Promise.resolve(void 0); } }, isEnabled, label: trans.__('Run Selected Code') }); /** * Add the Run All Code command */ commands.addCommand(CommandIDs.runAllCode, { execute: () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } let code = ''; const editor = widget.editor; const text = editor.model.sharedModel.getSource(); const path = widget.context.path; const extension = PathExt.extname(path); if (MarkdownCodeBlocks.isMarkdown(extension)) { // For Markdown files, run only code blocks. const blocks = MarkdownCodeBlocks.findMarkdownCodeBlocks(text); for (const block of blocks) { code += block.code; } } else { code = text; } const activate = false; if (code) { return commands.execute('console:inject', { activate, code, path }); } else { return Promise.resolve(void 0); } }, isEnabled, label: trans.__('Run All Code') }); /** * Add markdown preview command */ commands.addCommand(CommandIDs.markdownPreview, { execute: () => { const widget = tracker.currentWidget; if (!widget) { return; } const path = widget.context.path; return commands.execute('markdownviewer:open', { path, options: { mode: 'split-right' } }); }, isVisible: () => { const widget = tracker.currentWidget; return ( (widget && PathExt.extname(widget.context.path) === '.md') || false ); }, icon: markdownIcon, label: trans.__('Show Markdown Preview') }); /** * Add the New File command * * Defaults to Text/.txt if file type data is not specified */ commands.addCommand(CommandIDs.createNew, { label: args => { if (args.isPalette) { return (args.paletteLabel as string) ?? trans.__('New Text File'); } return (args.launcherLabel as string) ?? trans.__('Text File'); }, caption: args => (args.caption as string) ?? trans.__('Create a new text file'), icon: args => args.isPalette ? undefined : LabIcon.resolve({ icon: (args.iconName as string) ?? textEditorIcon }), execute: args => { const cwd = args.cwd || defaultBrowser.model.path; return createNew( commands, cwd as string, (args.fileExt as string) ?? 'txt' ); } }); /** * Add the New Markdown File command */ commands.addCommand(CommandIDs.createNewMarkdown, { label: args => args['isPalette'] ? trans.__('New Markdown File') : trans.__('Markdown File'), caption: trans.__('Create a new markdown file'), icon: args => (args['isPalette'] ? undefined : markdownIcon), execute: args => { const cwd = args['cwd'] || defaultBrowser.model.path; return createNew(commands, cwd as string, 'md'); } }); /** * Add undo command */ commands.addCommand(CommandIDs.undo, { execute: () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } widget.editor.undo(); }, isEnabled: () => { if (!isEnabled()) { return false; } const widget = tracker.currentWidget?.content; if (!widget) { return false; } return widget.editor.model.sharedModel.canUndo(); }, icon: undoIcon.bindprops({ stylesheet: 'menuItem' }), label: trans.__('Undo') }); /** * Add redo command */ commands.addCommand(CommandIDs.redo, { execute: () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } widget.editor.redo(); }, isEnabled: () => { if (!isEnabled()) { return false; } const widget = tracker.currentWidget?.content; if (!widget) { return false; } return widget.editor.model.sharedModel.canRedo(); }, icon: redoIcon.bindprops({ stylesheet: 'menuItem' }), label: trans.__('Redo') }); /** * Add cut command */ commands.addCommand(CommandIDs.cut, { execute: () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } const editor = widget.editor as CodeMirrorEditor; const text = getTextSelection(editor); Clipboard.copyToSystem(text); editor.replaceSelection && editor.replaceSelection(''); }, isEnabled: () => { if (!isEnabled()) { return false; } const widget = tracker.currentWidget?.content; if (!widget) { return false; } // Enable command if there is a text selection in the editor return isSelected(widget.editor as CodeMirrorEditor); }, icon: cutIcon.bindprops({ stylesheet: 'menuItem' }), label: trans.__('Cut') }); /** * Add copy command */ commands.addCommand(CommandIDs.copy, { execute: () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } const editor = widget.editor as CodeMirrorEditor; const text = getTextSelection(editor); Clipboard.copyToSystem(text); }, isEnabled: () => { if (!isEnabled()) { return false; } const widget = tracker.currentWidget?.content; if (!widget) { return false; } // Enable command if there is a text selection in the editor return isSelected(widget.editor as CodeMirrorEditor); }, icon: copyIcon.bindprops({ stylesheet: 'menuItem' }), label: trans.__('Copy') }); /** * Add paste command */ commands.addCommand(CommandIDs.paste, { execute: async () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } const editor: CodeEditor.IEditor = widget.editor; // Get data from clipboard const clipboard = window.navigator.clipboard; const clipboardData: string = await clipboard.readText(); if (clipboardData) { // Paste data to the editor editor.replaceSelection && editor.replaceSelection(clipboardData); } }, isEnabled: () => Boolean(isEnabled() && tracker.currentWidget?.content), icon: pasteIcon.bindprops({ stylesheet: 'menuItem' }), label: trans.__('Paste') }); /** * Add select all command */ commands.addCommand(CommandIDs.selectAll, { execute: () => { const widget = tracker.currentWidget?.content; if (!widget) { return; } const editor = widget.editor as CodeMirrorEditor; editor.execCommand(selectAll); }, isEnabled: () => Boolean(isEnabled() && tracker.currentWidget?.content), label: trans.__('Select All') }); // All commands with isEnabled defined directly or in a semantic commands const commandIds = [ CommandIDs.lineNumbers, CommandIDs.currentLineNumbers, CommandIDs.lineWrap, CommandIDs.currentLineWrap, CommandIDs.matchBrackets, CommandIDs.currentMatchBrackets, CommandIDs.find, CommandIDs.goToLine, CommandIDs.changeLanguage, CommandIDs.replaceSelection, CommandIDs.createConsole, CommandIDs.restartConsole, CommandIDs.runCode, CommandIDs.runAllCode, CommandIDs.undo, CommandIDs.redo, CommandIDs.cut, CommandIDs.copy, CommandIDs.paste, CommandIDs.selectAll, CommandIDs.createConsole ]; const notify = () => { commandIds.forEach(id => commands.notifyCommandChanged(id)); }; tracker.currentChanged.connect(notify); shell.currentChanged?.connect(notify); } export function addCompleterCommands( commands: CommandRegistry, editorTracker: IEditorTracker, manager: ICompletionProviderManager, translator: ITranslator | null ): void { const trans = (translator ?? nullTranslator).load('jupyterlab'); commands.addCommand(CommandIDs.invokeCompleter, { label: trans.__('Display the completion helper.'), execute: () => { const id = editorTracker.currentWidget && editorTracker.currentWidget.id; if (id) { return manager.invoke(id); } } }); commands.addCommand(CommandIDs.selectCompleter, { label: trans.__('Select the completion suggestion.'), execute: () => { const id = editorTracker.currentWidget && editorTracker.currentWidget.id; if (id) { return manager.select(id); } } }); commands.addKeyBinding({ command: CommandIDs.selectCompleter, keys: ['Enter'], selector: '.jp-FileEditor .jp-mod-completer-active' }); } /** * Helper function to check if there is a text selection in the editor */ function isSelected(editor: CodeMirrorEditor) { const selectionObj = editor.getSelection(); const { start, end } = selectionObj; const selected = start.column !== end.column || start.line !== end.line; return selected; } /** * Helper function to get text selection from the editor */ function getTextSelection(editor: CodeMirrorEditor) { const selectionObj = editor.getSelection(); const start = editor.getOffsetAt(selectionObj.start); const end = editor.getOffsetAt(selectionObj.end); const text = editor.model.sharedModel.getSource().substring(start, end); return text; } /** * Function to create a new untitled text file, given the current working directory. */ async function createNew( commands: CommandRegistry, cwd: string, ext: string = 'txt' ) { const model = await commands.execute('docmanager:new-untitled', { path: cwd, type: 'file', ext }); if (model != undefined) { const widget = (await commands.execute('docmanager:open', { path: model.path, factory: FACTORY })) as unknown as IDocumentWidget; widget.isUntitled = true; return widget; } } /** * Wrapper function for adding the default launcher items for File Editor */ export function addLauncherItems( launcher: ILauncher, trans: TranslationBundle ): void { addCreateNewToLauncher(launcher, trans); addCreateNewMarkdownToLauncher(launcher, trans); } /** * Add Create New Text File to the Launcher */ export function addCreateNewToLauncher( launcher: ILauncher, trans: TranslationBundle ): void { launcher.add({ command: CommandIDs.createNew, category: trans.__('Other'), rank: 1 }); } /** * Add Create New Markdown to the Launcher */ export function addCreateNewMarkdownToLauncher( launcher: ILauncher, trans: TranslationBundle ): void { launcher.add({ command: CommandIDs.createNewMarkdown, category: trans.__('Other'), rank: 2 }); } /** * Add ___ File items to the Launcher for common file types associated with available kernels */ export function addKernelLanguageLauncherItems( launcher: ILauncher, trans: TranslationBundle, availableKernelFileTypes: Iterable<IFileTypeData> ): void { for (let ext of availableKernelFileTypes) { launcher.add({ command: CommandIDs.createNew, category: trans.__('Other'), rank: 3, args: ext }); } } /** * Wrapper function for adding the default items to the File Editor palette */ export function addPaletteItems( palette: ICommandPalette, trans: TranslationBundle ): void { addChangeTabsCommandsToPalette(palette, trans); addCreateNewCommandToPalette(palette, trans); addCreateNewMarkdownCommandToPalette(palette, trans); addChangeFontSizeCommandsToPalette(palette, trans); } /** * Add commands to change the tab indentation to the File Editor palette */ export function addChangeTabsCommandsToPalette( palette: ICommandPalette, trans: TranslationBundle ): void { const paletteCategory = trans.__('Text Editor'); const args: JSONObject = { size: 4 }; const command = CommandIDs.changeTabs; palette.addItem({ command, args, category: paletteCategory }); for (const size of [1, 2, 4, 8]) { const args: JSONObject = { size }; palette.addItem({ command, args, category: paletteCategory }); } } /** * Add a Create New File command to the File Editor palette */ export function addCreateNewCommandToPalette( palette: ICommandPalette, trans: TranslationBundle ): void { const paletteCategory = trans.__('Text Editor'); palette.addItem({ command: CommandIDs.createNew, args: { isPalette: true }, category: paletteCategory }); } /** * Add a Create New Markdown command to the File Editor palette */ export function addCreateNewMarkdownCommandToPalette( palette: ICommandPalette, trans: TranslationBundle ): void { const paletteCategory = trans.__('Text Editor'); palette.addItem({ command: CommandIDs.createNewMarkdown, args: { isPalette: true }, category: paletteCategory }); } /** * Add commands to change the font size to the File Editor palette */ export function addChangeFontSizeCommandsToPalette( palette: ICommandPalette, trans: TranslationBundle ): void { const paletteCategory = trans.__('Text Editor'); const command = CommandIDs.changeFontSize; let args = { delta: 1 }; palette.addItem({ command, args, category: paletteCategory }); args = { delta: -1 }; palette.addItem({ command, args, category: paletteCategory }); } /** * Add New ___ File commands to the File Editor palette for common file types associated with available kernels */ export function addKernelLanguagePaletteItems( palette: ICommandPalette, trans: TranslationBundle, availableKernelFileTypes: Iterable<IFileTypeData> ): void { const paletteCategory = trans.__('Text Editor'); for (let ext of availableKernelFileTypes) { palette.addItem({ command: CommandIDs.createNew, args: { ...ext, isPalette: true }, category: paletteCategory }); } } /** * Wrapper function for adding the default menu items for File Editor */ export function addMenuItems( menu: IMainMenu, tracker: WidgetTracker<IDocumentWidget<FileEditor>>, consoleTracker: IConsoleTracker | null, isEnabled: () => boolean ): void { // Add undo/redo hooks to the edit menu. menu.editMenu.undoers.redo.add({ id: CommandIDs.redo, isEnabled }); menu.editMenu.undoers.undo.add({ id: CommandIDs.undo, isEnabled }); // Add editor view options. menu.viewMenu.editorViewers.toggleLineNumbers.add({ id: CommandIDs.currentLineNumbers, isEnabled }); menu.viewMenu.editorViewers.toggleMatchBrackets.add({ id: CommandIDs.currentMatchBrackets, isEnabled }); menu.viewMenu.editorViewers.toggleWordWrap.add({ id: CommandIDs.currentLineWrap, isEnabled }); // Add a console creator the the file menu. menu.fileMenu.consoleCreators.add({ id: CommandIDs.createConsole, isEnabled }); // Add a code runner to the run menu. if (consoleTracker) { addCodeRunnersToRunMenu(menu, consoleTracker, isEnabled); } } /** * Add Create New ___ File commands to the File menu for common file types associated with available kernels */ export function addKernelLanguageMenuItems( menu: IMainMenu, availableKernelFileTypes: Iterable<IFileTypeData> ): void { for (let ext of availableKernelFileTypes) { menu.fileMenu.newMenu.addItem({ command: CommandIDs.createNew, args: ext, rank: 31 }); } } /** * Add a File Editor code runner to the Run menu */ export function addCodeRunnersToRunMenu( menu: IMainMenu, consoleTracker: IConsoleTracker, isEnabled: () => boolean ): void { const isEnabled_ = (current: IDocumentWidget<FileEditor>) => isEnabled() && current.context && !!consoleTracker.find( widget => widget.sessionContext.session?.path === current.context.path ); menu.runMenu.codeRunners.restart.add({ id: CommandIDs.restartConsole, isEnabled: isEnabled_ }); menu.runMenu.codeRunners.run.add({ id: CommandIDs.runCode, isEnabled: isEnabled_ }); menu.runMenu.codeRunners.runAll.add({ id: CommandIDs.runAllCode, isEnabled: isEnabled_ }); } export function addOpenCodeViewerCommand( app: JupyterFrontEnd, editorServices: IEditorServices, tracker: WidgetTracker<MainAreaWidget<CodeViewerWidget>>, trans: TranslationBundle ): void { const openCodeViewer = async (args: { content: string; label?: string; mimeType?: string; extension?: string; widgetId?: string; }): Promise<CodeViewerWidget> => { const func = editorServices.factoryService.newDocumentEditor; const factory: CodeEditor.Factory = options => { return func(options); }; // Derive mimetype from extension let mimetype = args.mimeType; if (!mimetype && args.extension) { mimetype = editorServices.mimeTypeService.getMimeTypeByFilePath( `temp.${args.extension.replace(/\\.$/, '')}` ); } const widget = CodeViewerWidget.createCodeViewer({ factory, content: args.content, mimeType: mimetype }); widget.title.label = args.label || trans.__('Code Viewer'); widget.title.caption = widget.title.label; // Get the fileType based on the mimetype to determine the icon const fileType = find(app.docRegistry.fileTypes(), fileType => mimetype ? fileType.mimeTypes.includes(mimetype) : false ); widget.title.icon = fileType?.icon ?? textEditorIcon; if (args.widgetId) { widget.id = args.widgetId; } const main = new MainAreaWidget({ content: widget }); await tracker.add(main); app.shell.add(main, 'main'); return widget; }; app.commands.addCommand(CommandIDs.openCodeViewer, { label: trans.__('Open Code Viewer'), execute: (args: any) => { return openCodeViewer(args); } }); } } ```
/content/code_sandbox/packages/fileeditor-extension/src/commands.ts
xml
2016-06-03T20:09:17
2024-08-16T19:12:44
jupyterlab
jupyterlab/jupyterlab
14,019
8,871
```xml import { initialSetup, yarnModernUtils } from '@verdaccio/test-cli-commons'; import { getYarnCommand, yarn } from './utils'; describe('install a packages', () => { jest.setTimeout(20000); let registry; let projectFolder; beforeAll(async () => { const setup = await initialSetup(); registry = setup.registry; await registry.init(); const { tempFolder } = await yarnModernUtils.prepareYarnModernProject( 'yarn-2', registry.getRegistryUrl(), getYarnCommand(), { packageName: '@scope/name', version: '1.0.0', dependencies: { jquery: '3.6.0' }, devDependencies: {}, } ); projectFolder = tempFolder; }); test('should run yarn install', async () => { const resp = await yarn(projectFolder, 'install'); expect(resp.stdout).toMatch(/Completed/); }); afterAll(async () => { registry.stop(); }); }); ```
/content/code_sandbox/e2e/cli/e2e-yarn2/install.spec.ts
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
220
```xml import memoize from 'memoizerific'; import type { Background, Color, Typography } from './types'; type Value = string | number; interface Return { [key: string]: { [key: string]: Value; }; } export const createReset = memoize(1)( ({ typography }: { typography: Typography }): Return => ({ body: { fontFamily: typography.fonts.base, fontSize: typography.size.s3, margin: 0, WebkitFontSmoothing: 'antialiased', MozOsxFontSmoothing: 'grayscale', WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)', WebkitOverflowScrolling: 'touch', }, '*': { boxSizing: 'border-box', }, 'h1, h2, h3, h4, h5, h6': { fontWeight: typography.weight.regular, margin: 0, padding: 0, }, 'button, input, textarea, select': { fontFamily: 'inherit', fontSize: 'inherit', boxSizing: 'border-box', }, sub: { fontSize: '0.8em', bottom: '-0.2em', }, sup: { fontSize: '0.8em', top: '-0.2em', }, 'b, strong': { fontWeight: typography.weight.bold, }, hr: { border: 'none', borderTop: '1px solid silver', clear: 'both', marginBottom: '1.25rem', }, code: { fontFamily: typography.fonts.mono, WebkitFontSmoothing: 'antialiased', MozOsxFontSmoothing: 'grayscale', display: 'inline-block', paddingLeft: 2, paddingRight: 2, verticalAlign: 'baseline', color: 'inherit', }, pre: { fontFamily: typography.fonts.mono, WebkitFontSmoothing: 'antialiased', MozOsxFontSmoothing: 'grayscale', lineHeight: '18px', padding: '11px 1rem', whiteSpace: 'pre-wrap', color: 'inherit', borderRadius: 3, margin: '1rem 0', }, }) ); export const createGlobal = memoize(1)(({ color, background, typography, }: { color: Color; background: Background; typography: Typography; }): Return => { const resetStyles = createReset({ typography }); return { ...resetStyles, body: { ...resetStyles.body, color: color.defaultText, background: background.app, overflow: 'hidden', }, hr: { ...resetStyles.hr, borderTop: `1px solid ${color.border}`, }, }; }); ```
/content/code_sandbox/code/core/src/theming/global.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
623
```xml <vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="15" android:viewportWidth="15" android:width="34.0dp"> <path android:fillColor="@android:color/white" android:pathData="M7.74 0.73C7.05 0.73 6.49 1.29 6.49 1.98C6.49 1.98 6.53 2 6.53 2.03C6.02 1.59 5.25 1.65 4.81 2.16C4.66 2.33 4.56 2.54 4.53 2.77C4.37 2.72 4.2 2.7 4.04 2.7C3.21 2.69 2.53 3.36 2.52 4.19C2.52 4.39 2.56 4.58 2.64 4.77C1.84 4.99 1.38 5.81 1.6 6.61C1.74 7.11 2.14 7.5 2.64 7.64C2.89 8.42 3.73 8.85 4.51 8.6C5.05 8.42 5.44 7.96 5.53 7.41C5.71 7.57 5.94 7.67 6.18 7.7L6.2 10.4C6.21 10.73 6.24 11.04 6.29 11.31C6.38 11.36 6.45 11.41 6.53 11.47C6.69 11.6 6.84 11.75 7 11.88C7.25 12.11 7.6 12.12 7.88 11.96C7.88 11.87 7.9 11.81 7.9 11.7L7.93 10.7C8.66 9.81 9.62 9.12 10.7 8.7C11.5 8.89 12.3 8.39 12.49 7.59C12.52 7.47 12.53 7.34 12.53 7.22C12.53 7.17 12.53 7.11 12.53 7.06C13.15 6.76 13.54 6.14 13.53 5.45C13.54 4.76 13.15 4.13 12.53 3.84C12.47 3.19 11.93 2.69 11.28 2.7C11.18 2.71 11.08 2.73 10.99 2.76C10.93 2.1 10.34 1.61 9.68 1.67C9.42 1.7 9.18 1.8 8.99 1.98C8.99 1.29 8.43 0.73 7.74 0.73zM7.93 6.52C8.2 7 8.7 7.3 9.26 7.3L9.54 7.3C9.55 7.74 9.76 8.15 10.11 8.42C9.29 8.79 8.55 9.32 7.93 9.96L7.93 6.52zM9.68 11.99C9.24 11.99 8.8 12.14 8.45 12.44C8.29 12.57 8.14 12.72 7.98 12.85C7.7 13.1 7.27 13.1 6.98 12.85C6.82 12.72 6.67 12.57 6.51 12.44C5.8 11.85 4.78 11.85 4.07 12.44C3.92 12.57 3.78 12.71 3.63 12.83C3.54 12.9 3.44 12.96 3.33 12.99C3.04 13.06 2.73 12.96 2.53 12.74C2.28 12.53 2.02 12.33 1.74 12.16C1.53 12.04 1.3 11.99 1.06 12L1 12C0.72 12 0.5 12.22 0.5 12.5C0.5 12.78 0.72 13 1 13C1.25 13.01 1.48 13.13 1.64 13.31L2 13.57C2.67 14.12 3.63 14.15 4.33 13.63C4.52 13.49 4.69 13.31 4.88 13.16C5.17 12.91 5.6 12.91 5.88 13.16L6.27 13.51C6.96 14.13 8 14.16 8.73 13.58C8.88 13.47 9 13.33 9.15 13.21C9.45 12.91 9.93 12.9 10.24 13.2L10.25 13.21L10.64 13.56C11.13 13.97 11.79 14.11 12.4 13.93C12.78 13.83 13.13 13.62 13.4 13.33C13.56 13.15 13.77 13.04 14 13C14.28 13 14.5 12.78 14.5 12.5C14.5 12.22 14.28 12 14 12C13.57 11.99 13.14 12.14 12.81 12.42L12.34 12.83C12.06 13.08 11.62 13.08 11.34 12.83C11.19 12.71 11.05 12.57 10.9 12.44C10.55 12.14 10.11 11.99 9.68 11.99z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_preset_temaki_swamp.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
1,556
```xml import { buildUser, buildStar, buildDocument } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; const server = getTestServer(); describe("#stars.create", () => { it("should fail with status 400 bad request when both documentId and collectionId are missing", async () => { const user = await buildUser(); const res = await server.post("/api/stars.create", { body: { token: user.getJwtToken(), }, }); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual( "body: One of documentId or collectionId is required" ); }); it("should create a star", async () => { const user = await buildUser(); const document = await buildDocument({ userId: user.id, teamId: user.teamId, }); const res = await server.post("/api/stars.create", { body: { token: user.getJwtToken(), documentId: document.id, }, }); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.documentId).toEqual(document.id); }); it("should require authentication", async () => { const res = await server.post("/api/stars.create"); expect(res.status).toEqual(401); }); }); describe("#stars.list", () => { it("should list users stars", async () => { const user = await buildUser(); await buildStar(); const star = await buildStar({ userId: user.id, }); const res = await server.post("/api/stars.list", { body: { token: user.getJwtToken(), }, }); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data.stars.length).toEqual(1); expect(body.data.stars[0].id).toEqual(star.id); }); it("should require authentication", async () => { const res = await server.post("/api/stars.list"); expect(res.status).toEqual(401); }); }); describe("#stars.update", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); const res = await server.post("/api/stars.update", { body: { token: user.getJwtToken(), }, }); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Required"); }); it("should succeed with status 200 ok", async () => { const user = await buildUser(); const star = await buildStar({ userId: user.id, }); const res = await server.post("/api/stars.update", { body: { token: user.getJwtToken(), id: star.id, index: "i", }, }); const body = await res.json(); expect(res.status).toEqual(200); expect(body.data).toBeTruthy(); expect(body.data.id).toEqual(star.id); expect(body.data.index).toEqual("i"); }); }); describe("#stars.delete", () => { it("should fail with status 400 bad request when id is missing", async () => { const user = await buildUser(); const res = await server.post("/api/stars.delete", { body: { token: user.getJwtToken(), }, }); const body = await res.json(); expect(res.status).toEqual(400); expect(body.message).toEqual("id: Required"); }); it("should delete users star", async () => { const user = await buildUser(); const star = await buildStar({ userId: user.id, }); const res = await server.post("/api/stars.delete", { body: { id: star.id, token: user.getJwtToken(), }, }); expect(res.status).toEqual(200); }); it("should require authentication", async () => { const res = await server.post("/api/stars.delete"); expect(res.status).toEqual(401); }); }); ```
/content/code_sandbox/server/routes/api/stars/stars.test.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
900
```xml <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="cs" original="../Resources.resx"> <body> <trans-unit id="BUILDTASK_ColectFilesInFolder_RootIsNotValid"> <source>The root folder for cllecting files is not a valid directory.({0})</source> <target state="translated">Koenov sloka pro shromaovn soubor nen platnm adresem.({0})</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CopyFilesToFolders_CopyFailed"> <source>Copying file {0} to {1} failed. {2}</source> <target state="translated">Koprovn souboru {0} do {1} se nezdailo. {2}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CopyFilesToFolders_Copying"> <source>Copying {0} to {1}.</source> <target state="translated">Koprovn {0} do {1}.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CopyFilesToFolders_DeleteFailed"> <source>Deleting file {0} failed. {1}</source> <target state="translated">Odstraovn souboru {0} se nezdailo. {1}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CopyFilesToFolders_Deleting"> <source>Deleting {0}.</source> <target state="translated">Odstrauje se {0}.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CopyFilesToFolders_RetryDelayOutOfRange"> <source>RetryDelay should be greater than zero.</source> <target state="translated">Hodnota RetryDelay by mla bt vt ne nula.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CopyFilesToFolders_UpToDate"> <source>Skip copying {0} to {1}, File {1} is up to date</source> <target state="translated">Peskoit koprovn {0} do {1}, soubor {1} je aktuln</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_CreateFolder_Failed"> <source>Create Folder {0} failed. {1}</source> <target state="translated">Vytven sloky {0} se nezdailo. {1}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_DetectAntaresCLR45Error"> <source>Your hosting provider does not yet support ASP.NET 4.6, which your application is configured to use. To learn more about this please visit: path_to_url <target state="translated">V poskytovatel hostingu jet nepodporuje rozhran ASP.NET 4.6, na jeho pouvn je vae aplikace nakonfigurovan. Dal informace k tomu najdete tady: path_to_url <note /> </trans-unit> <trans-unit id="BUILDTASK_FailedToLoadThisVersionMsDeployTryingTheNext"> <source>Failed to load this version Microsoft.Web.Deployment ({0}) reason: {1}. Trying the next one specified in $(_MSDeployVersionsToTry)..</source> <target state="translated">Staen tto verze Microsoft.Web.Deployment ({0}) se nezdailo. Dvod: {1} Bude proveden pokus o pouit dal verze uveden v $(_MSDeployVersionsToTry).</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_IISSetting_RequireWebAdminDLL"> <source>To include IIS setting, it is required to have assembly Microsoft.Web.Administration installed on the machine.</source> <target state="translated">Chcete-li zahrnout nastaven sluby IIS, je teba, aby vpotai bylo nainstalovno sestaven Microsoft.Web.Administration.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hash> <source>Existing package/archiveDir is created by different version of Msdeploy. It is not compatible for incremental build. Mark as Clean needed({0}).</source> <target state="translated">Stvajc balek/archiveDir je vytvoen jinou verz Msdeploy. Nen kompatibiln pro prstkov sestaven. Je vyadovno oznaen vyitn ({0}).</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_ManifestFile_IISSettingNotInFirst"> <source>Validation failure.IIS Setting should be the first element in the Manifest file.({0})</source> <target state="translated">Chyba ovovn. Nastaven sluby IIS by mlo bt prvnm elementem vsouboru Manifest.({0})</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_MapProjectURLToIisWeb_InvalidProjectURL"> <source>The project URL is not well formed.({0})</source> <target state="translated">Adresa URL projektu nen sprvn utvoena.({0})</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_MapProjectURLToIisWeb_UnsupportedProjectURL"> <source>The project URL url host name type is not supported.({0})</source> <target state="translated">Typ nzvu hostitele adresy URL projektu nen podporovn.({0})</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_MapURIToIisWebServer_AdminRequired"> <source>Retrieving local IIS properties from the URI requires Administrator permission. Please elevate to Administrator before executing the program.</source> <target state="translated">Naten mstnch vlastnost sluby IIS vyaduje oprvnn sprvce. Ped sputnm tohoto programu zvyte oprvnn na sprvce.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_RemoveEmptyDirectories_Deleting"> <source>Deleting empty directory {0}.</source> <target state="translated">Odstraovn przdnho adrese {0}.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_SqlScriptPreprocessFile"> <source>Scanning sql command variable(s) from sql script ({0}).</source> <target state="translated">Prohledvn promnnch pkazu SQL ze skriptu SQL ({0}).</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_SqlScriptPreprocessFileDone"> <source>Found {0} sql command variable(s){1}.</source> <target state="translated">Poet nalezench promnnch pkazu SQL: {0} v {1}.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_SqlScriptPreprocessFileFailed"> <source>Failed to parse sql command variable sql script ({0}).</source> <target state="translated">Analzy promnnch pkazu SQL ze skriptu SQL ({0}) se nezdaila.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_SqlScriptPreprocessFoundMsDeployUnsupportedCommands"> <source>Found {0} unsupported sql command(s) in {1}. The unsupported sql command(s) are: {2}. Please note ':EXIT' without argument is treated as ':QUIT' command.</source> <target state="translated">Poet nalezench nepodporovanch pkaz SQL v {1}: {0}. Nepodporovan pkazy SQL: {2} Poznmka: Pkaz :EXIT bez argument je povaovn za pkaz :QUIT.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_SqlScriptPreprocessInvalidSqlScript"> <source>Failed to parse the sql script file {0}. Please make sure the SQL script syntax is correct. Detail: {1}.</source> <target state="translated">Soubor skriptu SQL {0} se nepovedlo parsovat. Ovte prosm sprvnost syntaxe skriptu SQL. Podrobn informace: {1}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_DestinationWriteFailed"> <source>Could not write Destination file: {0}</source> <target state="translated">Nelze zapsat clov soubor: {0}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_SourceLoadFailed"> <source>Could not open Source file: {0}</source> <target state="translated">Nelze otevt zdrojov soubor: {0}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformLoadFailed"> <source>Could not open Transform file: {0}</source> <target state="translated">Nelze otevt transforman soubor: {0}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformOutput"> <source>Output File: {0}</source> <target state="translated">Vstupn soubor: {0}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformationApply"> <source>Applying Transform File: {0}</source> <target state="translated">Pouit transformanho souboru: {0}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformationFailed"> <source>Transformation failed</source> <target state="translated">Transformace selhala.</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformationNoChange"> <source>No transformation occurred, not saving output file</source> <target state="translated">Nedolo k transformaci, neukld se vstupn soubor</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformationStart"> <source>Transforming Source File: {0}</source> <target state="translated">Transformace zdrojovho souboru: {0}</target> <note /> </trans-unit> <trans-unit id="BUILDTASK_TransformXml_TransformationSucceeded"> <source>Transformation succeeded</source> <target state="translated">Transformace probhla spn.</target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_FailToCopyFile"> <source>Failded to copy file from '{0}' to '{1}' for SQLExpress Data Publish</source> <target state="translated">Koprovn souboru z {0} do {1} pro funkci SQLExpress Data Publish se nezdailo.</target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_ImportPublishDatabaseSettingNotFound"> <source>Publish Database Setting Source Verification Error: The publish profile specified '{1} ({2})' for '{0}' does not have a corresponding connection string in '{3}'. Because of this publishing has been blocked. If this was intended you can disable this check by specifying the value of "True" for the MSBuild property "IgnoreDatabaseSettingOutOfSync." If this was not intended, open the Publish dialog in Visual Studio with this profile to correct the discrepancy. For more information visit path_to_url </source> <target state="translated">Chyba oven zdroje nastaven databze publikovn: Zadan profil publikovn, {1} ({2}), pro {0} nem odpovdajc pipojovac etzec v {3}. Z tohoto dvodu se publikovn zablokovalo. Pokud jste to tak chtli, mete tuto kontrolu zakzat, a to tak, e u vlastnosti MSBuildu IgnoreDatabaseSettingOutOfSync zadte hodnotu True. Pokud jste to tak nechtli, otevete v sad Visual Studio pro tento profil dialog Publikovat a nesoulad opravte. Dal informace najdete na webu path_to_url </target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_ImportValidationSourceNotFound"> <source>Publish Database Setting Source Verification Error: The source connection string for '{0}' no longer exists in the source '{1}'. Because of this publishing has been blocked. If this was intended you can disable this check by specifying the value of "True" for the MSBuild property "IgnoreDatabaseSettingOutOfSync." If this was not intended, open the Publish dialog in Visual Studio with this profile to correct the discrepancy. For more information visit path_to_url </source> <target state="translated">Chyba oven zdroje nastaven databze publikovn: Zdrojov pipojovac etzec pro {0} u ve zdroji {1} neexistuje. Z tohoto dvodu se publikovn zablokovalo. Pokud jste to tak chtli, mete tuto kontrolu zakzat, a to tak, e u vlastnosti MSBuildu IgnoreDatabaseSettingOutOfSync zadte hodnotu True. Pokud jste to tak nechtli, otevete v sad Visual Studio pro tento profil dialog Publikovat a nesoulad opravte. Dal informace najdete na webu path_to_url </target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_InvalidMSBuildFormat"> <source>Publish Database Setting Source Verification Error: The publish profile specified '{1}' for '{0}' is not valid and could not be loaded. Review the file for any errors and try again.</source> <target state="translated">Chyba oven zdroje nastaven databze publikovn: Profil publikovn uren {1} pro {0} nen platn a nelze jej nast. Zkontrolujte, zda soubor neobsahuje chyby, a pak akci opakujte.</target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_InvalidPublishDatabaseSetting"> <source>Publish Database Setting Source Verification Error:The publish profile specified '{1} ({2})' for '{0}' does not have valid $(PublishDatabaseSettings) value. Because of this publishing has been blocked. If this was intended you can disable this check by specifying the value of "True" for the MSBuild property "IgnoreDatabaseSettingOutOfSync." If this was not intended, open the Publish dialog in Visual Studio with this profile to correct the discrepancy. For more information visit path_to_url </source> <target state="translated">Chyba oven zdroje nastaven databze publikovn: Zadan profil publikovn, {1} ({2}), pro {0} nem platnou hodnotu $(PublishDatabaseSettings). Z tohoto dvodu se publikovn zablokovalo. Pokud jste to tak chtli, mete tuto kontrolu zakzat, a to tak, e u vlastnosti MSBuildu IgnoreDatabaseSettingOutOfSync zadte hodnotu True. Pokud jste to tak nechtli, otevete v sad Visual Studio pro tento profil dialog Publikovat a nesoulad opravte. Dal informace najdete na webu path_to_url </target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_MustProviderProvidersXMLorProvidersFile"> <source>CreateProviderList expected either ProvidersXml or ProvidersFile parameter</source> <target state="translated">Funkce CreateProviderList oelvala parametr ProvidersXml nebo ProvidersFile.</target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_NotExpectingAdditionalParameter"> <source>Publish Database Setting encountered an unexpected error. The provider '{0}' doesn't expect any addition arguments '{1}'.</source> <target state="translated">Vnastaven databze publikovn dolo kneoekvan chyb. Poskytovatel {0} neoekv sn dal argumenty {1}.</target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_NotSupportBothProvidersXMLAndProvidersFile"> <source>CreateProviderList does not support ProvidersXml and ProvidersFile parameters at the same time</source> <target state="translated">Funkce CreateProviderList nepodoporuje souasn pouit parametr ProvidersXml a ProvidersFile.</target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_OutofSyncWithSourcePublishDatabaseSetting"> <source>Publish Database Setting Source Verification Error: The connection '{0}' in the publish profile has changed from what is currently declared for '{1} ({2})'. Because of this publishing has been blocked. If this was intended you can disable this check by specifying the value of "True" for the MSBuild property "IgnoreDatabaseSettingOutOfSync." If this was not intended, open the Publish dialog in Visual Studio with this profile to correct the discrepancy. For more information visit path_to_url </source> <target state="translated">Chyba oven zdroje nastaven databze publikovn: Pipojen {0} v profilu publikovn se li od aktuln deklarovanho pipojen pro {1} ({2}). Z tohoto dvodu se publikovn zablokovalo. Pokud jste to tak chtli, mete tuto kontrolu zakzat, a to tak, e u vlastnosti MSBuildu IgnoreDatabaseSettingOutOfSync zadte hodnotu True. Pokud jste to tak nechtli, otevete v sad Visual Studio pro tento profil dialog Publikovat a nesoulad opravte. Dal informace najdete na webu path_to_url </target> <note /> </trans-unit> <trans-unit id="CREATEPROVIDERLIST_SqlExpressPublishRequireLocalDB"> <source>SQL Server Express LocalDB is required in order to publish one or more of your databases. To learn more and install it, follow this link path_to_url </source> <target state="translated">Pro publikovn minimln jedn databze je poteba SQL Server Express LocalDB. Pokud chcete zskat dal informace a databzi nainstalovat, pejdte na tento odkaz: path_to_url </target> <note /> </trans-unit> <trans-unit id="DeploymentError_MissingDbDacFx"> <source>The remote host does not have the dbDacFx Web Deploy provider installed, which is required for database publishing. To learn more about this visit this link. FWLink: path_to_url <target state="translated">Vzdlen hostitel nem nainstalovanho zprostedkovatele nasazen webu dbDacFx, kter se vyaduje pro publikovn databze. Dal informace k tomu najdete na tomto odkazu. FWLink: path_to_url <note /> </trans-unit> <trans-unit id="EFSCRIPT_Generating"> <source>Generating Entity Framework SQL Scripts...</source> <target state="translated">Generuj se skripty SQL Entity Framework...</target> <note /> </trans-unit> <trans-unit id="EFSCRIPT_GenerationCompleted"> <source>Generating Entity Framework SQL Scripts completed successfully</source> <target state="translated">Generovn skript SQL Entity Framework se spn dokonilo.</target> <note /> </trans-unit> <trans-unit id="EFSCRIPT_GenerationFailed"> <source>Entity Framework SQL Script generation failed</source> <target state="translated">Generovn skript SQL Entity Framework selhalo.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_AddingFile"> <source>Adding file ({0}).</source> <target state="translated">Pidv se soubor ({0}).</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_AddingFileFailed"> <source>Adding file ({0}) failed. Reason: {1}.</source> <target state="translated">Pidn souboru ({0}) se nepovedlo. Dvod: {1}.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_AzurePublishErrorReason"> <source>Unable to publish to Azure. Error Details : '{0}'.</source> <target state="translated">Nejde publikovat na platform Azure. Podrobnosti o chyb: {0}.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_ConnectionInfoMissing"> <source>Azure connection information cannot be empty.</source> <target state="translated">Informace o pipojen Azure nemou bt przdn.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_CopyingToTempLocation"> <source>Copying all files to temporary location for publish: '{0}'.</source> <target state="translated">Koprovn vech soubor do doasnho umstn pro publikovn: {0}.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_CopyingToTempLocationCompleted"> <source>Copying all files to temporary location completed.</source> <target state="translated">Koprovn vech soubor do doasnho umstn se dokonilo.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_DeployOutputPathEmpty"> <source>DeployOutputPath property cannot be empty.</source> <target state="translated">Vlastnost DeployOutputPath nesm bt przdn.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_OperationTimeout"> <source>Publish operation timed out.</source> <target state="translated">Vyprel asov limit operace publikovn.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_PublishAzure"> <source>Publishing to Azure.</source> <target state="translated">Publikovn do Azure</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_PublishFailed"> <source>Publish Failed.</source> <target state="translated">Publikovn selhalo.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_PublishSucceeded"> <source>Publish Succeeded.</source> <target state="translated">Publikovn bylo spn.</target> <note /> </trans-unit> <trans-unit id="KUDUDEPLOY_PublishZipFailedReason"> <source>Publishing to site '{0}' failed. Reason: '{1}'.</source> <target state="translated">Publikovn na webu {0} selhalo. Dvod: {1}.</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_EXE_Failed"> <source>Failed to execute msdeploy.exe.</source> <target state="translated">Sputn souboru msdeploy.exe se nezdailo.</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_EXE_PreviewOnly"> <source>Generate msdeploy.exe command line for preview only.</source> <target state="translated">Pkazov dek msdeploy.exe se vytvo pouze pro nhled.</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_EXE_Start"> <source>Running msdeploy.exe.</source> <target state="translated">Spout se soubor msdeploy.exe.</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_EXE_Succeeded"> <source>Successfully execute msdeploy.exe.</source> <target state="translated">Soubor msdeploy.exe byl spn sputn.</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_InvalidDestinationCount"> <source>Invalidate destination item count: {0}</source> <target state="translated">Poet znehodnocench clovch poloek: {0}</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_InvalidSourceCount"> <source>Invalidate source items count: {0}</source> <target state="translated">Poet znehodnocench zdrojovch poloek: {0}</target> <note /> </trans-unit> <trans-unit id="MSDEPLOY_InvalidVerbForTheInput"> <source>Invalid verb({0}) for supplied source ({1}) and destination ({2}).</source> <target state="translated">Neplatn pkaz ({0}) pro zadan zdroj ({1}) a cl ({2}).</target> <note /> </trans-unit> <trans-unit id="POWERSHELL_PublishProfileParsingError"> <source>Unable to parse the pubxml file {0}.</source> <target state="translated">Soubor pubxml {0} nejde analyzovat.</target> <note /> </trans-unit> <trans-unit id="Publich_InvalidPublishToolsVersion_Error"> <source>The publish profile used for publishing was created in a newer version of the Visual Studio Web Publish features. In order to publish using this profile you will need to update your web publish components. To learn more about this, please visit path_to_url <target state="translated">Profil publikovn pouit pro publikovn byl vytvoen v novj verzi funkc publikovn web sady Visual Studio. Aby bylo mon publikovat pomoc tohoto profilu, budete muset aktualizovat komponenty pro publikovn web. Dal informace najdete na webu path_to_url <note /> </trans-unit> <trans-unit id="PublishArgumentError_InvalidRemoteServiceUrl"> <source>Invalid Web Deploy service URL</source> <target state="translated">Neplatn adresa URL sluby nasazen webu</target> <note /> </trans-unit> <trans-unit id="PublishArgumentError_InvalidSiteAppName"> <source>Invalid site/application name</source> <target state="translated">Neplatn nzev webu/aplikace</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashsformOutputFile"> <source>Auto ConnectionString Transformed {0} into {1}.</source> <target state="translated">Automatick pipojovac etzec transformoval {0} na {1}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_CheckingForValidMsBuildPropertyValue"> <source>$({0}) is {1}. Validating...</source> <target state="translated">$({0}) je {1}. Ovovn...</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashion"> <source>Connection string for setting up this application database.</source> <target state="translated">Pipojovac etzec pro nastaven tto aplikan databze.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_DefaultExcludeFileExtentionOutMessage"> <source>Exclude *.out files under root folder.</source> <target state="translated">Vylou soubory *.out vkoenov sloce.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashsage"> <source>Exclude all files under obj folder.</source> <target state="translated">Vylou vechny soubory ve sloce obj.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_DefaultExcludeSourceControlItems"> <source>Set all .scc .vspscc file as _IgnorableFilesInProjectFolder. Set _CollectFiles_IncludeIgnorableFile to True to include in the packaging.</source> <target state="translated">Nastavte vechny soubory .scc .vspscc jako _IgnorableFilesInProjectFolder. Chcete-li je zahrnout vbalen, nastavte _CollectFiles_IncludeIgnorableFile na hodnotu True.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashiption"> <source>Connection String used by Entity Framework Code First Model to deploy the database.</source> <target state="translated">Pipojovac etzec pouvan modelem Entity Framework Code First pro nasazen databze.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ErrorCannotDeployFromIIS7AboveToLowerIIS"> <source>Deploy with IIS Setting from a IIS 7 or above to a lower verstion of IIS server is not supported. To fix the problem, please set the %24(IncludeIisSettings) to false. Your current setting are $(IncludeIisSettings) is {0}, $(DestinationIisVersion) is {1} and $(LocalIisVersion) is {2}.</source> <target state="translated">Nasazen snastavenm ze sluby IIS 7 nebo vy do ni verze serveru IIS nen podporovno. Chcete-li tyto pote vyeit, nastavte %24(IncludeIisSettings) na hodnotu false. Aktuln nastaven: $(IncludeIisSettings) = {0}, $(DestinationIisVersion) = {1} a $(LocalIisVersion) = {2}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ErrorInvalidMSBuildItemCollectionCount"> <source>@({0}) have {1} item(s) in the collection. It should only have {2} item(s).</source> <target state="translated">@({0}) m pli mnoho poloek vkolekci ({1}). Mlo by jich mt pouze {2}.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashTrue"> <source>Invalid $({0}): When $({1}) is set True. It is required to have a valid $({0}) to be use for creating parameters correctly.</source> <target state="translated">Neplatn nastaven $({0}): $({1}) je nastaveno na hodnotu True. Ke sprvnmu vytven parametr je vyadovno platn nastaven $({0}).</target> <note /> </trans-unit> <trans-unit id=your_sha256_hash> <source>'{0}' exists as a folder. You can't package as a single file to be the same path as an existing folder. Please delete the folder before packaging. Alternative,you can call msbuild with /t:CleanWebsitesPackage target to remove it.</source> <target state="translated">{0} existuje jako sloka. Nelze vytvoit balek jednoho souboru se stejnou cestou jako stvajc sloka. Ped vytvoenm balen odstrate tuto sloku. Dal monost je provst odebrn volnm funkce msbuild sparametrem /t:CleanWebsitesPackage.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hash> <source>'{0}' exists as a file. You can't package as an archive directory to be the same path as an existing file. Please delete the file before packaging. Alternative,you can call msbuild with /t:CleanWebsitesPackage target to remove it.</source> <target state="translated">{0} existuje jako soubor. Nelze vytvoit balek archivnho adrese se stejnou cestou jako stvajc soubor. Ped vytvoenm balen odstrate tento soubor. Dal monost je provst odebrn volnm funkce msbuild sparametrem /t:CleanWebsitesPackage.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ErrorUseIisIsTrueButIisUrlIsEmpty"> <source>IisUrl property is required when UseIis property is True</source> <target state="translated">Vlastnot IisUrl je vyadovna, m-li vlastnost UseIis hodnotu True.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashDependsOnBuildBothTrue"> <source>These two Properties are not compatable: $(UseWPP_CopyWebApplication) and $(PipelineDependsOnBuild) both are True. Please correct the problem by either set $(Disable_CopyWebApplication) to true or set $(PipelineDependsOnBuild) to false to break the circular build dependency. Detail: $(UseWPP_CopyWebApplication) make the publsih pipeline (WPP) to be Part of the build and $(PipelineDependsOnBuild) make the WPP depend on build thus cause the build circular build dependency.</source> <target state="translated">Tyto dv vlastnosti nejsou kompatibiln: $(UseWPP_CopyWebApplication) a $(PipelineDependsOnBuild) maj ob hodnotu True. Vyete prosm tento problm nastavenm vlastnosti $(Disable_CopyWebApplication) na hodnotu true nebo nastavenm vlastnosti $(PipelineDependsOnBuild) na hodnotu false. Perute tak cyklickou zvislost sestaven. Podrobn informace: $(UseWPP_CopyWebApplication) nastav kanl publikovn (WPP) jako soust sestaven a $(PipelineDependsOnBuild) nastav kanl WPP jako zvisl na sestaven, m vznikne cyklick zvislost sestaven.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ExcludeAllDebugSymbols"> <source>Exclude All Debug Symbols</source> <target state="translated">Vylouit vechny symboly ladn</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ExcludeAllFilesUnderFolder"> <source>Exclude All files under {0}</source> <target state="translated">Vylouit vechny soubory ve sloce {0}</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_FinishGenerateSampleMsDeployBatchScript"> <source>Sample script for deploying this package is generated at the following location: {0} For this sample script, you can change the deploy parameters by changing the following file: {1}</source> <target state="translated">Ukzkov skript pro nasazen tohoto balku je vygenerovn vnsledujcm umstn: {0} Parametry nasazen pro tento ukzkov skript mete zmnit zmnou nsledujcho souboru: {1}</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_FoundApplicationConfigForTransformation"> <source>Found The following for Config tranformation: {0}</source> <target state="translated">Pro transformaci konfigurace bylo nalezeno nsledujc: {0}</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashion"> <source>Gather all files from project folder except in the exclusion list.</source> <target state="translated">Shromd vechny soubory ze sloky projektu krom soubor vseznamu vjimek.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_GatherSpecificItemsFromProject"> <source>Gather all files from Project items @({0}). Adding:</source> <target state="translated">Shromd vechny soubory zpoloek projektu @({0}). Pidv se:</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_GatherSpecificItemsFromProjectNoDetail"> <source>Gather all files from Project items @({0}).</source> <target state="translated">Shromd vechny soubory zpoloek projektu @({0}).</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_GatherSpecificOutputsFromProject"> <source>Gather all files from Project output ({0}). Adding:</source> <target state="translated">Shromd vechny soubory zvstupu projektu @({0}). Pidv se:</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_GenerateMsdeploySourceManifestFile"> <source>Generate source manifest file for Web Deploy package/publish ...</source> <target state="translated">Vytvoit soubor zdrojovho manifestu pro publikovn/balek nasazen webu...</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_GenerateSampleMsdeployBatchScript"> <source>Generating a sample batch commandline script for deploying this package...</source> <target state="translated">Vytven ukzkovho dvkovho skriptu pkazovho dku pro nasazen tohoto balku...</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_IISAppParameterDescription"> <source>IIS Web Site/Application name</source> <target state="translated">Nzev aplikace/webu sluby IIS</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_IISAppPhysicalPathDescription"> <source>Physical path for this Web Application.</source> <target state="translated">Fyzick cesta pro tuto webovou aplikaci</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashConfigToTransformOutputFile"> <source>Insert additional ConnectionString Transformed {0} into {1}.</source> <target state="translated">Vloen dalho pipojovacho etzce transformovalo {0} na {1}.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashnfigToTransformOutputFile"> <source>Insert additional EFCodeFirst Database Deployment Transformed {0} into {1}.</source> <target state="translated">Vloen dalho nasazen databze EFCodeFirst transformovalo {0} na {1}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_InvalidArgument"> <source>GetPublishingLocalizedString Task encounter invalid argument ID;</source> <target state="translated">loha GetPublishingLocalizedString zjistila neplatn ID argumentu;</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_MSBuildTargetFailed"> <source>Target {0} failed.</source> <target state="translated">Cl {0} selhal.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_MsBuildPropertySettingValue"> <source>$({0}) is {1}</source> <target state="translated">$({0}) je {1}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_PackagingIntoLocation"> <source>Packaging into {0}.</source> <target state="translated">Balen do {0}</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpEnviroment"> <source> =========================== Environment-Specific Settings: -------------------------- </source> <target state="translated"> =========================== Nastaven pro konkrtn prosted: -------------------------- </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpEnviromentExplained"> <source> To customize application-specific settings for each deployment environment (for example, the IIS application name, the physical path, and any connection strings), edit the settings in the following file: "{0}"</source> <target state="translated"> Chcete-li pizpsobit nastaven pro konkrtn aplikace pro jednotliv prosted nasazen (napklad nzev aplikace IIS, fyzickou cestu a libovoln pipojovac etzce), upravte nastaven vnsledujcm souboru: "{0}"</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpMoreInfo"> <source> =========================== For more information on this deploy script visit: {0} </source> <target state="translated"> =========================== Dal informace o tomto skriptu nasazen naleznete na webu: {0} </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpOptional"> <source> =========================== Optional Flags: -------------------------- By Default, this script deploy on the current machine where this script is called with current user credential without agent service. Only pass the following value for advance scenario. </source> <target state="translated"> =========================== Voliteln pznaky: -------------------------- Ve vchozm nastaven je tento skript nasazen do aktulnho potae, kde je voln spovenmi aktulnho uivatele bez sluby agenta. Nsledujc hodnotu pedejte pouze vppad pokroilho scne. </target> <note /> </trans-unit> <trans-unit id=your_sha256_hashalFlags"> <source> [Additional msdeploy.exe flags] The msdeploy.exe command supports additional flags. You can include any of these additional flags in the "$(ProjectName).Deploy.cmd" file, and the flags are passed through to msdeploy.exe during execution. Alternatively, you can specify additional flags by setting the "_MsDeployAdditionalFlags" environment variable. These settings are used by this batch file. Note: Any flag value that includes an equal sign (=) must be enclosed in double quotation marks, as shown in the following example, which will skip deploying the databases that are included in the package: "-skip:objectName=dbFullSql" </source> <target state="translated"> [Dal pznaky pkazu msdeploy.exe] Pkaz msdeploy.exe podporuje dal pznaky. Libovoln ztchto dalch pznak mete zahrnout do souboru $(ProjectName).Deploy.cmd. Tyto pznaky jsou pedvny pkazu msdeploy.exe bhem zpracovn. Dal monost je zadat dal pznaky nastavenm promnn prosted _MsDeployAdditionalFlags. Toto nastaven je pouito tmto dvkovm souborem. Poznmka: Libovoln hodnota pznaku, kter zahrnuje symbol rovn se (=), mus bt uzavena vuvozovkch, jak je uvedeno vnsledujcm pkladu, kter pesko nasazen databz zahrnutch v balku: "-skip:objectName=dbFullSql" </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpOptionalExplainedFlagA"> <source> /A:&lt;Basic | NTLM&gt; Specifies the type of authentication to be used. The possible values are NTLM and Basic. If the wmsvc provider setting is specified, the default authentication type is Basic; otherwise, the default authentication type is NTLM. </source> <target state="translated"> /A:&lt;Basic | NTLM&gt; Uruje typ ovovn, kter m bt pouit. Mon hodnoty jsou NTLM a Basic. Je-li zadno nastaven poskytovatele wmsvc, je vchozm typem ovovn Basic, vopanm ppad je vchozm typem ovovn NTLM. </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpOptionalExplainedFlagG"> <source> /G:&lt;True | False&gt; Specifies that the package is deployed by creating a temporary listener on the destination server. This requires no special installation on the destination server, but it requires you to be an administrator on that server. The default value of this flag is False. </source> <target state="translated"> /G:&lt;True | False&gt; Uruje, e je balek nasazen vytvoenm doasnho naslouchacho procesu na clovm serveru. To nevyaduje naclovm serveru dnou speciln instalaci, ale je teba, abyste byli sprvci tohoto serveru. Vchoz hodnotou tohoto pznaku je False. </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpOptionalExplainedFlagL"> <source> /L Specifies that the package is deployed to local IISExpress user instance. </source> <target state="translated"> /L Uruje, e balek je nasazen do mstn uivatelsk instance IISExpress. </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpOptionalExplainedFlagM"> <source> /M:&lt;Destination server name or Service URL&gt; If this flag is not specified, the package is installed on the computer where the command is run. The Service URL can be in the following format: path_to_url This format requires that IIS 7 be installed on the destination server and that IIS 7 Web Management Service(WMSvc) and Web Deployment Handler be set up. The service URL can also be in the following format: path_to_url This format requires administrative rights on the destination server, and it requires that Web Deploy Remote Service (MsDepSvc) be installed on the destination server. IIS 7 does not have to be installed on the destination server. </source> <target state="translated"> /M:&lt;Nzev clovho serveru nebo adresa URL sluby&gt; Pokud tento pznak nen zadn, balek je instalovn v potai, v nm je sputn tento pkaz. Adresa URL sluby me mt nsledujc formt: path_to_urllov_server&gt;:8172/MSDeploy.axd Tento formt vyaduje, aby na clovm serveru byla nainstalovna sluba IIS 7 a aby byla nastavena sluba IIS 7 Web Management Service(WMSvc) a obslun rutina nasazen webu. Adresa URL sluby me rovn mt nsledujc formt: path_to_urllov_server&gt;/MSDeployAgentService Tento formt vyaduje prva pro sprvu na clovm serveru a dle vyaduje, aby bna clovm serveru byla nainstalovna sluba Web Deploy Remote Service (MsDepSvc). Sluba IIS 7 nemus bt na clovm serveru nainstalovna. </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpOptionalExplainedFlagUP"> <source> /U:&lt;UserName&gt; /P:&lt;Password&gt;</source> <target state="translated"> /U:&lt;uivatelsk_jmno&gt; /P:&lt;heslo&gt;</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpPrerequisites"> <source> =========================== Prerequisites : -------------------------- To deploy this Web package, Web Deploy (msdeploy.exe) must be installed on the computer that runs the .cmd file. For information about how to install Web Deploy, see the following URL: {0} This batch file requires that the package file "{1}" and optionally provided the parameters file "{2}" in the same folder or destination folder by environment variable. </source> <target state="translated"> =========================== Pedpoklady: -------------------------- Chcete-li nasadit tento webov balek, mus bt vpotai, vnm je sputn soubor CMD, nainstalovn nstroj Nasazen webu (msdeploy.exe). Informace o postupu pi instalaci nstroje Nasazen webu naleznete na nsledujc adrese URL: {0} Tento dvkov soubor vyaduje, aby soubor balku {1} a voliteln zadan soubor parametr {2} byly ve stejn sloce nebo clov sloce uren promnnou prosted. </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpRequired"> <source> =========================== Required Flags: --------------------------</source> <target state="translated"> =========================== Poadovan pznaky: --------------------------</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpRequiredExplainedFlagT"> <source> /T: Calls msdeploy.exe with the "-whatif" flag, which simulates deployment. This does not deploy the package. Instead, it creates a report of what will happen when you actually deploy the package.</source> <target state="translated"> /T: Vol pkaz msdeploy.exe spznakem -whatif, kter simuluje nasazen. Balek pitom nen nasazen. Msto toho je vytvoena sestava popisujc, co by se stalo pi skutenm nasazen balku.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpRequiredExplainedFlagY"> <source> /Y: Calls msdeploy.exe without the "-whatif" flag, which deploys the package to the current machine or a destination server. Use /Y after you have verified the output that was generated by using the /T flag. Note: Do not use /T and /Y in the same command. </source> <target state="translated"> /Y: Vol pkaz msdeploy.exe bezpznaku whatif. Balek je nasazen so aktulnho potae nabo na clov server. Pznak /Y pouijte po oven vstupu vygenerovanho svyuitm pznaku /T. Poznmka: Nepouvejte pznaky /T a /Y vrmci tho pkazu. </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SampleScriptHelpSection1"> <source> =========================== Usage: -------------------------- {0} [/T|/Y] [/M:ComputerName] [/U:UserName] [/P:Password] [/G:UseTempAgent] [Additional msdeploy.exe flags ...] </source> <target state="translated"> =========================== Vyuit: -------------------------- {0} [/T|/Y] [/M:nzev_potae] [/U:uivatelsk_jmno] [/P:heslo] [/G:UseTempAgent] [Dal pznaky pkazu msdeploy.exe...] </target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_SqlCommandVariableParameterDescription"> <source>Sql Command Variable for setting up this application database.</source> <target state="translated">Promnn pkazu SQL pro nastaven tto aplikan databze</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_StartMsDeployPublishToRemote"> <source>Start Web Deploy Publish the Application/package to {0} ...</source> <target state="translated">Spustit nstroj Nasazen webu kpublikovn aplikace/balku do {0} ...</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_TestDeployPackageOnCurrentMachine"> <source>Test deploy this Web Deploy package onto current machine.</source> <target state="translated">Testuje nasazen tohoto balku nstroje Nasazen webu do aktulnho potae.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashormOutputFile"> <source>Transformed {0} using {1} into {2}.</source> <target state="translated">{0} transformovno svyuitm {1} do {2}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ValidateErrorMsDeployPublishSetting"> <source>Web Deploy publish/package validating error: Missing or Invalid property value for $({0})</source> <target state="translated">Chyba ovovn balen/publikovn nasazen webu: Hodnota vlastnosti pro $({0})chyb nebo je neplatn</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_ValidatingMsDeployPublishSettings"> <source>Validating Web Deploy package/publish related properties...</source> <target state="translated">Ovovn souvisejcch vlastnost balen/publikovn nasazen webu...</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashublishAndDeployAsIisApp"> <source>Setting both property values of DeployAsIisApp and IncludeIisSettingsOnPublish to true is not recommended, as IncludeIisSettingsOnPublish is a superset of DeployAsIisApp</source> <target state="translated">Souasn nastaven hodnot vlastnost DeployAsIisApp a IncludeIisSettingsOnPublish na hodnotu true se nedoporuuje, protoe vlastnost IncludeIisSettingsOnPublish je nadmnoinou vlastnosti DeployAsIisApp.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashnIISSettingIsNotInclude"> <source>Setting value to $(RemoteSitePhysicalPath) might not work if IIS setting is not included</source> <target state="translated">Nastaven hodnoty na $(RemoteSitePhysicalPath) nemus fungovat, nen-li zahrnuto nastaven sluby IIS.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashtion"> <source>Connection String used in web.config by the application to access the database.</source> <target state="translated">Pipojovac etzec vsouboru web.config pouit aplikac pro pstup k databzi.</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashs"> <source>The value for PublishProfile is set to '{0}', expected to find the file at '{1}' but it could not be found.</source> <target state="translated">Hodnota PublishProfile je nastavena na {0}. Soubor byl oekvn v {1}, ale nebyl nalezen.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishMethodIsNotSupportedInCmdLine"> <source>This specific WebPublishMethod({0}) is not yet supported on msbuild command line. Please use Visual Studio to publish.</source> <target state="translated">Tato specifick metoda WebPublishMethod({0}) dosud nen pkazovm dku msbuild podporovna. Kpublikovn pouijte sadu Visual Studio.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelineCollectFilesPhase"> <source>Publish Pipeline Collect Files Phase</source> <target state="translated">Fze shromaovn soubor kanlu publikovn</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelineCopyWebApplication"> <source>Copying Web Application Project Files for {0} to {1}.</source> <target state="translated">Koprovn soubor projektu webov aplikace pro {0} do {1}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelineDeployPhase"> <source>Publish Pipeline Deploy Phase</source> <target state="translated">Fze nasazen kanlu publikovn</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelineDeployPhaseStage1"> <source>Publish Pipeline Deploy phase Stage {0}</source> <target state="translated">Fze nasazen kanlu publikovn dl fze {0}</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelineMSDeploySettings"> <source>Invoking Web Deploy to generate the package with the following settings:</source> <target state="translated">Vyvoln nstroje Nasazen webu pro vygenerovn balku snsledujcm nastavenm:</target> <note /> </trans-unit> <trans-unit id=your_sha256_hashmpDir"> <source>Copying all files to temporary location below for package/publish: {0}.</source> <target state="translated">Koprovn vech soubor do doasnho umstn ne pro balen/publikovn: {0}</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelinePhase"> <source>Publish Pipeline {0} Phase</source> <target state="translated">Fze {0} kanlu publikovn</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishPipelineTransformPhase"> <source>Publish Pipeline Transform Phase</source> <target state="translated">Fze transformace kanlu publikovn</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishProfileInvalidPropertyValue"> <source>PublishProfile({0}) is set. But the $({1}) does not have a valid value. Current Value is "{2}".</source> <target state="translated">Hodnota PublishProfile({0}) je nastavena. $({1}) vak nem platnou hodnotu. Aktuln hodnota je {2}.</target> <note /> </trans-unit> <trans-unit id="PublishLocalizedString_WebPublishValidatePublishProfileSettings"> <source>Validating PublishProfile({0}) settings.</source> <target state="translated">Ovuje se nastaven PublishProfile({0}).</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_AddParameterIntoObject"> <source>Adding Parameter ({0}) with value ({1}) into to object ({2}).</source> <target state="translated">Pidvn parametru ({0}) shodnotou ({1}) k objektu ({2}).</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_Canceled"> <source>User cancel Web deployment operation.</source> <target state="translated">Operace nasazen webu byla zruena uivatelem.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_DuplicateItemMetadata"> <source>The following two items have duplicate item metadata %({0}). The two items data are {1} and {2}.</source> <target state="translated">Nsledujc dv poloky maj duplicitn metadata poloky %({0}). Data tchto dvou poloek jsou {1} a {2}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_EncryptionExceptionMessage"> <source>An IIS secure setting was detected while packaging/publishing. An encryption password is required to proceed. In Visual Studio, the password can be entered in the project's Package/Publish property page. In team build or command line, password can be provided by setting MsBuild $(DeployEncryptKey) property. Error details:</source> <target state="translated">Vprbhu balen/publikovn bylo rozpoznno zabezpeen nastaven sluby IIS. Kdalmu pokraovn je vyadovno ifrovac heslo. V sad Visual Studio lze heslo zadat na strnce vlastnost balen/publikovn danho projektu. V tmovm sestaven nebo na pkazovm dku lze heslo zadat nastavenm vlastnosti MsBuild $(DeployEncryptKey). Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_FailedDeploy"> <source>Publish failed to deploy.</source> <target state="translated">Nasazen publikovn se nezdailo.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_FailedPackage"> <source>Package failed.</source> <target state="translated">Selhn balku</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_FailedWithException"> <source>Web deployment task failed. ({0})</source> <target state="translated">loha nasazen webu se nezdaila. ({0})</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_FailedWithExceptionWithDetail"> <source>Web deployment task failed. ({0}) {1}</source> <target state="translated">loha nasazen webu selhala. ({0}) {1}</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_InvalidOperation"> <source>Source ({0}) and destination ({1}) are not compatible for given operation.</source> <target state="translated">Zdroj ({0}) a cl ({1}) nejsou pro danou operaci kompatibiln.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_InvalidProviderName"> <source>Provider({0})is not a recognized provider.</source> <target state="translated">Poskytovatel ({0}) nebyl rozpoznn.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_InvalidProviderOption"> <source>Unknown ProviderOption:{0}. Known ProviderOptions are:{1}.</source> <target state="translated">Neznm hodnota ProviderOption: {0}. Znm hodnoty ProviderOptions jsou: {1}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_LoadVSCertUIFailed"> <source>Failed to load publish certificate dialog due to error of {0}</source> <target state="translated">Naten dialogovho okna certifiktu publikovn se nezdailo z dvod chyby {0}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MSDEPLOY32bit"> <source>For x86(32 bit): path_to_url <target state="translated">Pro x86 (32bitov verze): path_to_url <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MSDEPLOY64bit"> <source>For x64(64 bit): path_to_url <target state="translated">Pro x64 (64bitov verze): path_to_url <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MSDEPLOYASSEMBLYLOAD_FAIL"> <source>Package/Publish task {0} failed to load Web Deploy assemblies. Microsoft Web Deploy is not correctly installed on this machine. Microsoft Web Deploy v3 or higher is recommended.</source> <target state="translated">Vrmci lohy balen/publikovn {0} se nezdailo nastv sestaven nasazen webu. Nstroj Nasazen webu spolenosti Microsoft nen vtomto potai sprvn nainstalovn. Doporuuje se pout nstroj Nasazen webu spolenosti Microsoft verze 3 nebo novj.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MSDEPLOYLOADFAIL"> <source>Package/Publish depends on Microsoft Web Deploy technology. Microsoft Web Deploy is not correctly installed on this machine. Please install from following link: {0}{1}. ({2})</source> <target state="translated">Balen/publikovn zvis na technologii nstroje Nasazen webu spolenosti Microsoft. Nstroj Nasazen webu spolenosti nen vtomto potai sprvn nainstalovn. Nainstalujte jej pomoc nsledujcho odkazu: {0}{1}. ({2})</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MSDEPLOYMinVersion"> <source>Package/Publish depends on Microsoft Web Deployment technology. Microsoft Web Deployment is installed but doesn't meet the minimum version requirement. Please reinstall from following link: {0}{1}. (Current Version:{2}, Minimum Version needed:{3})</source> <target state="translated">Balen/publikovn zvis na technologii nstroje Nasazen webu spolenosti Microsoft. Nstroj Nasazen webu spolenosti Microsoft je nainstalovn, ale nespluje minimln poadavky na verzi. Znovu jej nainstalujte pomoc nsledujcho odkazu: {0}{1}. (aktuln verze:{2}, minimln vyadovan verze:{3})</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MSDEPLOYVERSIONLOAD"> <source>Package/Publish task {0} load assembly {1}</source> <target state="translated">loha Balen/publikovn {0} sestaven {1}</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MsDeployExceptionFwlink1Message"> <source>Failed to invoke or execute {0} provider on the web server. The Web Deployment Tool's {0} provider is either not enabled or failed to executed specific commands on the server. Please contact your server administrator for assistance. (Web Deploy Provider is "{0}"). Error details:</source> <target state="translated">Vyvoln nebo proveden zprostedkovatele {0} na webovm serveru selhalo. Zprostedkovatel nstroje pro nasazen webu {0} bu nen povolen, nebo se mu nepovedlo provst konkrtn pkazy na serveru. Se dost o pomoc se prosm obrate na sprvce serveru. (Zprostedkovatel nasazen webu je {0}). Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MsDeployExceptionFwlink1SQLMessage"> <source>Make sure the database connection string for the server is correct and that you have appropriate permission to access the database. (Web Deploy Provider is "{0}"). Error details:</source> <target state="translated">Ovte, zda je pipojovac etzec databze pro server sprvn a zda mte odpovdajc oprvnn k pstupu k databzi. (Zprostedkovatel nasazen webu je {0}). Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MsDeployExceptionFwlink1SiteMessage"> <source>Make sure you have appropriate permissions on the server to publish IIS settings. Alternatively, exclude settings that require administrative permissions on the server. (Web Deploy Provider is "{0}"). Error details:</source> <target state="translated">Ovte, zda mte na serveru odpovdajc oprvnn kpublikovn nastaven sluby IIS. Dal monost je vylouit nastaven vyadujc oprvnn sprvce na serveru. (Zprostedkovatel nasazen webu je {0}). Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MsDeployExceptionFwlink2Message"> <source>Make sure you have appropriate permissions on the server to publish IIS settings. Alternatively, exclude settings that require administrative permission on the server. Error details:</source> <target state="translated">Ovte, zda mte na serveru odpovdajc oprvnn kpublikovn nastaven sluby IIS. Dal monost je vylouit nastaven vyadujc oprvnn sprvce na serveru. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MsDeployExceptionFwlink3Message"> <source>This can occur if the publish process cannot connect to the database on the server. Make sure the database connection string is correct. Error details:</source> <target state="translated">Ktto situaci me dojt, pokud se proces publikovn neme pipojit kdatabzi na serveru. Ovte sprvnost pipojovacho etzce databze. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_MsDeployExceptionFwlink4Message"> <source>Failed to publish the database. This can happen if the remote database cannot run the script. Try modifying the database scripts, or disabling database publishing in the Package/Publish Web properties page. If the script failed due to database tables already exist, try dropping existing database objects before creating new ones. For more information on doing these options from Visual Studio, see path_to_url Error details:</source> <target state="translated">Databzi se nepodailo publikovat. K tomu me dojt, pokud se vzdlen databzi nepoda spustit skript. Zkuste zmnit databzov skripty nebo zakzat publikovn databze na strnce vlastnost balen/publikovn webu. Pokud skript sele, protoe databzov tabulky u existuj, zkuste odstranit stvajc databzov objekty a teprve pak vytvoit nov. Dal informace o pouit tchto monost ze sady Visual Studio najdete na webu path_to_url Podrobnosti o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_ObjectIdentity"> <source>{0}({1})</source> <target state="translated">{0}({1})</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_SQLCEMigrationNeedLatestMSDeploy"> <source>Generate schema/data sql scripts from SQLCE require Web Deploy 2.0 and up to function properly. Please install the latest Web Deploy from {0}.</source> <target state="translated">Skripty SQL pro generovn schmat/dat z SQLCE vyaduj ke sprvnmu fungovn nstroj Nasazen webu 2.0 nebo novj. Nainstalujte nejnovj verzi nstroje Nasazen webu z {0}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_SkipDirectiveSetEnable"> <source>Skip Directive {0} enable state is changed to {1}.</source> <target state="translated">Stav povolen direktivy Skip {0} je zmnn na {1}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_Start"> <source>Starting Web deployment task from source: {0} to Destination: {1}.</source> <target state="translated">Sputn lohy nasazen webu ze zdroje: {0} do cle: {1}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_SucceedArchiveDir"> <source>Package is successfully created as archive directory at the following location: {0}</source> <target state="translated">Balek je spn vytvoen jako archivn adres vnsledujcm umstn: {0}</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_SucceedDeploy"> <source>Publish Succeeded.</source> <target state="translated">Publikovn bylo spn.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_SucceedPackage"> <source>Package "{0}" is successfully created as single file at the following location: {1}</source> <target state="translated">Balek {0} je spn vytvoen jako samostatn soubor vnsledujcm umstn: {1}</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_Succeeded"> <source>Successfully executed Web deployment task.</source> <target state="translated">loha nasazen webu byla spn provedena.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_UnknownParameter"> <source>Unknown Parameter {0}. Source Known Parameters are: {1}.</source> <target state="translated">Neznm parametr {0}. Znm parametry zdroje jsou: {1}.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_UnknownSkipDirective"> <source>Skip Directive {0} can not be identified.</source> <target state="translated">Direktivu Skip {0} nelze identifikovat.</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebException401Message"> <source>Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator. Error details:</source> <target state="translated">Ovte sprvnost nzvu webu, uivatelskho jmna a hesla. Pokud se pote nevye, obrate se prosm na mstnho sprvce nebo na sprvce serveru. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebException404Message"> <source>The requested resource does not exist, or the requested URL is incorrect. Error details:</source> <target state="translated">Poadovan prostedek neexistuje nebo je poadovan adresa URL nesprvn. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebException502Message"> <source>Make sure firewall and network settings on your computer and on the server are configured to allow connections between them. If the issue is not resolved, please contact your local or server administrator. Error details:</source> <target state="translated">Ovte, zda jsou nastaven st a brny firewall vpotai a na serveru nakonfigurovna tak, aby umoovala pipojen mezi nimi. Pokud se pote nevye, obrate se prosm na mstnho sprvce nebo na sprvce serveru. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebException550Message"> <source>Make sure the site that you are deploying to is a valid site on the destination server. If the issue is not resolved, please contact your server administrator. Error details:</source> <target state="translated">Ovte, zda web, na kter provdte nasazen, je platnm webem na clovm serveru. Pokud se pote nevye, obrate se prosm na sprvce serveru. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebException551Message"> <source>Make sure the appliction that you are deploying to is a valide application on the destination server. If the issue is not resolved, please contact your server administrator. Error details:</source> <target state="translated">Ovte, zda aplikace, vn provdte nasazen, je platnou aplikac na clovm serveru. Pokud se pote nevye, obrate se na sprvce serveru. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebExceptionConnectFailureMessage"> <source>This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server. Error details:</source> <target state="translated">Tato chyba udv, e se nelze pipojit k serveru. Ovte, zda je adresa URL sluby sprvn, zda jsou sprvn nakonfigurovna nastaven st a brny firewall vtomto potai a vpotai serveru a zda byly na serveru sputny odpovdajc sluby. Podrobn informace o chyb:</target> <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebPackageHelpLink"> <source>path_to_url <target state="new">path_to_url <note /> </trans-unit> <trans-unit id="VSMSDEPLOY_WebPackageHelpLinkMessage"> <source>To get the instructions on how to deploy the web package please visit the following link:</source> <target state="translated">Pokyny tkajc se postupu pi nasazen webovho balku se zobraz po kliknut na nsledujc odkaz:</target> <note /> </trans-unit> <trans-unit id="ValidateParameter_ArgumentNullError"> <source>Property '{0}' must be non-empty.</source> <target state="translated">Vlastnost {0} mus bt neprzdn.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_AssemblyInfo_Attribute"> <source>Setting {0}</source> <target state="translated">Nastavuje se {0}.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_AssemblyInfo_Failed"> <source>Failed to Generate AssemblyInfo file.</source> <target state="translated">Vytvoen souboru AssemblyInfo se nezdailo.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_AssemblyInfo_Start"> <source>Generating AssemblyInfo.</source> <target state="translated">Generuj se informace o sestaven.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_AssemblyInfo_Succeeded"> <source>Successfully generated AssemblyInfo file.</source> <target state="translated">Soubor AssemblyInfo byl spn vytvoen.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_MERGE_ApplicationPath"> <source>Missing ApplicationPath parameter (the physical path of the precompiled application).</source> <target state="translated">Parametr ApplicationPath chyb (fyzick cesta pedkompilovan aplikace).</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_MERGE_ContentAssemblyName"> <source>ContentAssembly parameter cannot be combined with the Prefix or NameSingleAssemblyName parameter. If specified, the entire application will be merged to a single assembly with the given name.</source> <target state="translated">Parametr ContentAssembly nelze kombinovat sparametrem Prefix nebo NameSingleAssemblyName. Je-li zadn, bude cel aplikace slouena do jednoho sestaven sdanm nzvem.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_MERGE_Failed"> <source>Failed to merge '{0}'.</source> <target state="translated">Slouen {0} se nezdailo.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_MERGE_SingleAssemblyName"> <source>SingleAssemblyName parameter cannot be combined with the Prefix or ContentAssemblyName parameter. If specified, the entire application will be merged to a single assembly with the given name.</source> <target state="translated">Parametr SingleAssemblyName nelze kombinovat sparametrem Prefix nebo ContentAssemblyName. Je-li zadn, bude cel aplikace slouena do jednoho sestaven sdanm nzvem.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_MERGE_Start"> <source>Running aspnet_merge.exe.</source> <target state="translated">Spout se soubor aspnet_merge.exe.</target> <note /> </trans-unit> <trans-unit id="WEBDEPLOY_MERGE_Succeeded"> <source>Successfully merged '{0}'.</source> <target state="translated">spn slouen {0}</target> <note /> </trans-unit> <trans-unit id="WebConfigTransform_HostingModel_Error"> <source>The acceptable value for AspNetCoreHostingModel property is either "InProcess" or "OutOfProcess".</source> <target state="translated">Pijateln hodnota vlastnosti AspNetCoreHostingModel je bu InProcess, nebo OutOfProcess.</target> <note /> </trans-unit> <trans-unit id="WebConfigTransform_InvalidHostingOption"> <source>In process hosting is not supported for AspNetCoreModule. Change the AspNetCoreModule to at least AspNetCoreModuleV2.</source> <target state="translated">V procesu nen podporovno hostovn pro AspNetCoreModule. Zmte AspNetCoreModule aspo na AspNetCoreModuleV2.</target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_Check_DeploymentStatus"> <source>Checking the deployment status...</source> <target state="translated">Kontroluje se stav nasazen...</target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_DeploymentStatus"> <source>Deployment status is {0}.</source> <target state="translated">Stav nasazen je {0}.</target> <note>{0} - Success or failed</note> </trans-unit> <trans-unit id="ZIPDEPLOY_DeploymentStatusPolling"> <source>Polling for deployment status...</source> <target state="translated">Cyklick dotazovn na stav nasazen...</target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_Failed"> <source>Zip Deployment failed. </source> <target state="translated">Nepovedlo se nasadit soubor ZIP. </target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_FailedDeploy"> <source>The attempt to publish the ZIP file through '{0}' failed with HTTP status code '{1}'.</source> <target state="translated">Pokus o publikovn souboru ZIP prostednictvm {0} se nezdail se stavovm kdem HTTP{1}.%0</target> <note>{0} - URL to deploy zip, {1} - HTTP response code</note> </trans-unit> <trans-unit id="ZIPDEPLOY_FailedDeployWithLogs"> <source>The attempt to publish the ZIP file through '{0}' failed with HTTP status code '{1}'. See the logs at '{2}'.</source> <target state="translated">Pokus o publikovn souboru ZIP prostednictvm {0} se nezdail se stavovm kdem HTTP{1}. Projdte si protokoly na {2}.</target> <note>{0} - URL to deploy zip, {1} - HTTP response code, {2} - Logs URL</note> </trans-unit> <trans-unit id="ZIPDEPLOY_FailedToRetrieveCred"> <source>Failed to retrieve credentials.</source> <target state="translated">Nepovedlo se nast pihlaovac daje.</target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_InvalidSiteNamePublishUrl"> <source>Neither SiteName nor PublishUrl was given a value.</source> <target state="translated">Nebyla zadna hodnota pro SiteName ani pro PublishUrl.</target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_PublishingZip"> <source>Publishing {0} to {1}...</source> <target state="translated">{0} se publikuje do umstn {1}...</target> <note>{0} - Path of zip to publish, {1} - URL to deploy zip</note> </trans-unit> <trans-unit id="ZIPDEPLOY_Succeeded"> <source>Zip Deployment succeeded.</source> <target state="translated">Soubor ZIP se spn nasadil.</target> <note /> </trans-unit> <trans-unit id="ZIPDEPLOY_Uploaded"> <source>Uploaded the Zip file to the target.</source> <target state="translated">Soubor ZIP se nahrl do cle.</target> <note /> </trans-unit> </body> </file> </xliff> ```
/content/code_sandbox/src/WebSdk/Publish/Tasks/Properties/xlf/Resources.cs.xlf
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
19,153
```xml <dict> <key>CommonPeripheralDSP</key> <array> <dict> <key>DeviceID</key> <integer>0</integer> <key>DeviceType</key> <string>Headphone</string> </dict> <dict> <key>DeviceID</key> <integer>0</integer> <key>DeviceType</key> <string>Microphone</string> </dict> </array> <key>PathMaps</key> <array> <dict> <key>PathMap</key> <array> <array> <array> <array> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <true/> </dict> <key>NodeID</key> <integer>9</integer> </dict> <dict> <key>NodeID</key> <integer>34</integer> </dict> <dict> <key>Boost</key> <integer>1</integer> <key>NodeID</key> <integer>18</integer> </dict> </array> </array> <array> <array> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <true/> </dict> <key>NodeID</key> <integer>8</integer> </dict> <dict> <key>NodeID</key> <integer>35</integer> </dict> <dict> <key>Boost</key> <integer>3</integer> <key>NodeID</key> <integer>24</integer> </dict> </array> </array> </array> <array> <array> <array> <dict> <key>Amp</key> <dict> <key>MuteInputAmp</key> <false/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>20</integer> </dict> <dict> <key>Amp</key> <dict> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>13</integer> </dict> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>3</integer> </dict> </array> </array> <array> <array> <dict> <key>Amp</key> <dict> <key>MuteInputAmp</key> <false/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>21</integer> </dict> <dict> <key>Amp</key> <dict> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>12</integer> </dict> <dict> <key>Amp</key> <dict> <key>Channels</key> <array> <dict> <key>Bind</key> <integer>1</integer> <key>Channel</key> <integer>1</integer> </dict> <dict> <key>Bind</key> <integer>2</integer> <key>Channel</key> <integer>2</integer> </dict> </array> <key>MuteInputAmp</key> <true/> <key>PublishMute</key> <true/> <key>PublishVolume</key> <true/> <key>VolumeInputAmp</key> <false/> </dict> <key>NodeID</key> <integer>2</integer> </dict> </array> </array> </array> </array> <key>PathMapID</key> <integer>24</integer> </dict> </array> </dict> ```
/content/code_sandbox/Resources/ALC269/Platforms24.xml
xml
2016-03-07T20:45:58
2024-08-14T08:57:03
AppleALC
acidanthera/AppleALC
3,420
1,788
```xml import { bootstrapApplication } from '@angular/platform-browser'; import { AppComponent } from 'src/app/showcase/layout/app.component'; import { config } from 'src/app/showcase/layout/app.config.server'; const bootstrap = () => bootstrapApplication(AppComponent, config); export default bootstrap; ```
/content/code_sandbox/src/main.server.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
57
```xml import { fireEvent, screen, within } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { pureMerge } from "coral-common/common/lib/utils"; import { GQLResolver, GQLUSER_STATUS } from "coral-framework/schema"; import { createResolversStub, CreateTestRendererParams, replaceHistoryLocation, } from "coral-framework/testHelpers"; import { createContext } from "../create"; import customRenderAppWithContext from "../customRenderAppWithContext"; import { communityUsers, settings, settingsWithMultisite, siteConnection, sites, users, } from "../fixtures"; const adminViewer = users.admins[0]; beforeEach(async () => { replaceHistoryLocation("path_to_url"); }); const createTestRenderer = async ( params: CreateTestRendererParams<GQLResolver> = {} ) => { const { context } = createContext({ ...params, resolvers: pureMerge( createResolversStub<GQLResolver>({ Query: { settings: () => settings, users: ({ variables }) => { expectAndFail(variables.role).toBeFalsy(); return communityUsers; }, viewer: () => adminViewer, sites: () => siteConnection, }, }), params.resolvers ), initLocalState: (localRecord, source, environment) => { if (params.initLocalState) { params.initLocalState(localRecord, source, environment); } }, }); customRenderAppWithContext(context); const container = await screen.findByTestId("community-container"); return { container }; }; it("bans user from all sites", async () => { const user = users.commenters[0]; const resolvers = createResolversStub<GQLResolver>({ Mutation: { banUser: ({ variables }) => { expectAndFail(variables).toMatchObject({ userID: user.id, }); const userRecord = pureMerge<typeof user>(user, { status: { current: user.status.current.concat(GQLUSER_STATUS.BANNED), ban: { active: true }, }, }); return { user: userRecord, }; }, }, Query: { settings: () => settingsWithMultisite, sites: () => siteConnection, }, }); const { container } = await createTestRenderer({ resolvers, }); const userRow = within(container).getByRole("row", { name: "Isabelle isabelle@test.com 07/06/18, 06:24 PM Commenter Active", }); userEvent.click( within(userRow).getByRole("button", { name: "Change user status" }) ); const dropdown = within(userRow).getByLabelText( "A dropdown to change the user status" ); fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" })); const modal = screen.getByLabelText("Are you sure you want to ban Isabelle?"); userEvent.click(within(modal).getByLabelText("All sites")); userEvent.click(within(modal).getByRole("button", { name: "Save" })); expect(within(userRow).getByText("Banned (all)")).toBeVisible(); expect(resolvers.Mutation!.banUser!.called).toBe(true); }); it("ban user with custom message", async () => { const user = users.commenters[0]; const resolvers = createResolversStub<GQLResolver>({ Mutation: { banUser: ({ variables }) => { expectAndFail(variables).toMatchObject({ userID: user.id, message: "YOU WERE BANNED FOR BREAKING THE RULES", }); const userRecord = pureMerge<typeof user>(user, { status: { current: user.status.current.concat(GQLUSER_STATUS.BANNED), ban: { active: true }, }, }); return { user: userRecord, }; }, }, Query: { settings: () => settingsWithMultisite, sites: () => siteConnection, }, }); const { container } = await createTestRenderer({ resolvers, }); const userRow = within(container).getByRole("row", { name: "Isabelle isabelle@test.com 07/06/18, 06:24 PM Commenter Active", }); userEvent.click( within(userRow).getByRole("button", { name: "Change user status" }) ); const dropdown = within(userRow).getByLabelText( "A dropdown to change the user status" ); fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" })); const modal = screen.getByLabelText("Are you sure you want to ban Isabelle?"); const toggleMessage = within(modal).getByRole("button", { name: "Customize ban email message", }); userEvent.click(toggleMessage); // Add custom ban message and save const banModalMessage = within(modal).getByRole("textbox"); userEvent.clear(banModalMessage); userEvent.type(banModalMessage, "YOU WERE BANNED FOR BREAKING THE RULES"); userEvent.click(within(modal).getByRole("button", { name: "Save" })); expect(within(userRow).getByText("Banned (all)")).toBeVisible(); expect(resolvers.Mutation!.banUser!.called).toBe(true); }); it("remove user ban from all sites", async () => { const user = users.bannedCommenter; const resolvers = createResolversStub<GQLResolver>({ Mutation: { removeUserBan: ({ variables }) => { expectAndFail(variables).toMatchObject({ userID: user.id, }); const userRecord = pureMerge<typeof user>(user, { status: { current: user.status.current.filter( (s) => s !== GQLUSER_STATUS.BANNED ), ban: { active: false }, }, }); return { user: userRecord, }; }, }, Query: { settings: () => settingsWithMultisite, users: () => ({ edges: [ { node: user, cursor: user.createdAt, }, ], pageInfo: { endCursor: null, hasNextPage: false }, }), }, }); const { container } = await createTestRenderer({ resolvers, }); const userRow = within(container).getByRole("row", { name: "Ingrid ingrid@test.com 07/06/18, 06:24 PM Commenter Banned (all)", }); userEvent.click( within(userRow).getByRole("button", { name: "Change user status" }) ); const dropdown = within(userRow).getByLabelText( "A dropdown to change the user status" ); fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" })); const modal = screen.getByLabelText("Are you sure you want to unban Ingrid?"); userEvent.click(within(modal).getByLabelText("No sites")); userEvent.click(within(modal).getByRole("button", { name: "Save" })); expect(within(userRow).getByText("Active")).toBeVisible(); expect(resolvers.Mutation!.removeUserBan!.called).toBe(true); }); it("ban user across specific sites", async () => { const user = users.commenters[0]; const resolvers = createResolversStub<GQLResolver>({ Query: { settings: () => settingsWithMultisite, site: ({ variables, callCount }) => { switch (callCount) { case 0: expectAndFail(variables.id).toBe("site-1"); return sites[0]; case 1: expectAndFail(variables.id).toBe("site-2"); return sites[1]; default: return siteConnection; } }, }, Mutation: { updateUserBan: ({ variables }) => { expectAndFail(variables).toMatchObject({ userID: user.id, }); const userRecord = pureMerge<typeof user>(user, { status: { ban: { sites: [{ id: sites[1].id }] }, }, }); return { user: userRecord, }; }, }, }); const { container } = await createTestRenderer({ resolvers, }); const userRow = within(container).getByRole("row", { name: "Isabelle isabelle@test.com 07/06/18, 06:24 PM Commenter Active", }); userEvent.click( within(userRow).getByRole("button", { name: "Change user status" }) ); const dropdown = within(userRow).getByLabelText( "A dropdown to change the user status" ); fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" })); const modal = screen.getByLabelText("Are you sure you want to ban Isabelle?"); userEvent.click(within(modal).getByLabelText("Specific sites")); // Add site to ban on const siteSearchTextbox = within(modal).getByRole("textbox", { name: "Search by site name", }); userEvent.type(siteSearchTextbox, "Test"); const siteSearchButton = within(modal).getByRole("button", { name: "Search", }); userEvent.click(siteSearchButton); await within(modal).findByTestId("site-search-list"); userEvent.click(within(modal).getByText("Test Site")); const testSiteCheckbox = await within(modal).findAllByTestId( "user-status-selected-site" ); expect(testSiteCheckbox).toHaveLength(1); expect(testSiteCheckbox[0]).toBeChecked(); // Add another site to ban on userEvent.clear(siteSearchTextbox); userEvent.type(siteSearchTextbox, "Second"); userEvent.click(siteSearchButton); await within(modal).findByTestId("site-search-list"); userEvent.click(within(modal).getByText("Second Site")); // have to wait for the Second Site selection to load in await within(modal).findAllByText("Second Site"); expect( within(modal).getAllByTestId("user-status-selected-site") ).toHaveLength(2); // Remove a site to ban on userEvent.click(within(modal).getByRole("checkbox", { name: "Test Site" })); // Submit ban and see that user is correctly banned across selected site userEvent.click(within(modal).getByRole("button", { name: "Save" })); expect(await within(userRow).findByText("Banned (1)")).toBeVisible(); expect(resolvers.Mutation!.updateUserBan!.called).toBe(true); }); it("displays limited options for single site tenants", async () => { const resolvers = createResolversStub<GQLResolver>({ Query: { settings: () => settings, // base settings has multisite: false }, }); const { container } = await createTestRenderer({ resolvers, }); const userRow = within(container).getByRole("row", { name: "Isabelle isabelle@test.com 07/06/18, 06:24 PM Commenter Active", }); userEvent.click( within(userRow).getByRole("button", { name: "Change user status" }) ); const dropdown = within(userRow).getByLabelText( "A dropdown to change the user status" ); fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" })); const modal = screen.getByLabelText("Are you sure you want to ban Isabelle?"); expect(modal).toBeInTheDocument(); expect(screen.queryByText("All sites")).not.toBeInTheDocument(); expect(screen.queryByText("Specific sites")).not.toBeInTheDocument(); }); it("site moderators can unban users on their sites but not sites out of their scope", async () => { const user = users.siteBannedCommenter; const resolvers = createResolversStub<GQLResolver>({ Mutation: { updateUserBan: ({ variables }) => { expectAndFail(variables).toMatchObject({ userID: user.id, banSiteIDs: [], unbanSiteIDs: ["site-1"], }); const userRecord = pureMerge<typeof user>(user, { status: { ban: { active: false, sites: [sites[1]] }, }, }); return { user: userRecord, }; }, }, Query: { settings: () => settingsWithMultisite, users: () => ({ edges: [ { node: user, cursor: user.createdAt, }, ], pageInfo: { endCursor: null, hasNextPage: false }, }), viewer: () => users.moderators[1], site: ({ variables, callCount }) => { switch (callCount) { case 0: expectAndFail(variables.id).toBe("site-1"); return sites[0]; case 1: expectAndFail(variables.id).toBe("site-2"); return sites[1]; default: return siteConnection; } }, }, }); const { container } = await createTestRenderer({ resolvers, }); const userRow = within(container).getByRole("row", { name: "Lulu lulu@test.com 07/06/18, 06:24 PM Commenter Banned (2)", }); userEvent.click( within(userRow).getByRole("button", { name: "Change user status" }) ); const dropdown = within(userRow).getByLabelText( "A dropdown to change the user status" ); fireEvent.click(within(dropdown).getByRole("button", { name: "Manage Ban" })); const modal = screen.getByLabelText( "Are you sure you want to manage the ban status of Lulu?" ); const siteOneCheckbox = await within(modal).findByRole("checkbox", { name: "Test Site", }); const siteTwoCheckbox = await within(modal).findByRole("checkbox", { name: "Second Site", }); // Checkbox for site within moderator's scope is not disabled, but site out of scope is disabled expect(siteOneCheckbox).not.toBeDisabled(); expect(siteTwoCheckbox).toBeDisabled(); // When site mod unchecks site within their scope, the ban is removed for that site userEvent.click(siteOneCheckbox); userEvent.click(within(modal).getByRole("button", { name: "Save" })); expect(await within(userRow).findByText("Banned (1)")).toBeVisible(); expect(resolvers.Mutation!.updateUserBan!.called).toBe(true); }); ```
/content/code_sandbox/client/src/core/client/admin/test/community/banUser.spec.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
3,247
```xml <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent"> <View android:id="@id/exo_controller_placeholder" android:layout_width="match_parent" android:layout_height="match_parent" /> </FrameLayout> ```
/content/code_sandbox/app/src/main/res/layout/audio_player_view_controller_only.xml
xml
2016-05-04T11:46:20
2024-08-15T16:29:10
android
meganz/android
1,537
81
```xml import { useAnalytics } from '@/react/hooks/useAnalytics'; import { HubspotForm } from '@@/HubspotForm'; import { Modal } from '@@/modals/Modal'; onDismiss, }: { onDismiss: () => void; }) { // form is loaded from hubspot, so it won't have the same styling as the rest of the app // since it won't support darkmode, we enforce a white background and black text for the components we use // (Modal, CloseButton, loading text) const { trackEvent } = useAnalytics(); return ( <Modal onDismiss={onDismiss} aria-label="Upgrade Portainer to Business Edition" size="lg" className="!bg-white [&>.close-button]:!text-black" > <Modal.Body> <div className="max-h-[80vh] overflow-auto"> <HubspotForm region="na1" portalId="4731999" formId="1ef8ea88-3e03-46c5-8aef-c1d9f48fd06b" onSubmitted={() => { trackEvent('portainer-upgrade-license-key-requested', { category: 'portainer', metadata: { 'Upgrade-key-requested': true }, }); }} loading={<div className="text-black">Loading...</div>} /> </div> </Modal.Body> </Modal> ); } ```
/content/code_sandbox/app/react/sidebar/UpgradeBEBanner/GetLicenseDialog.tsx
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
316
```xml /** * A recreation of one of these demos: path_to_url */ import { Chart } from '@antv/g2'; const chart = new Chart({ container: 'container', height: 120, }); chart.coordinate({ transform: [{ type: 'transpose' }] }); chart .interval() .data({ type: 'fetch', value: 'path_to_url }) .transform({ type: 'groupColor', y: 'count' }) .transform({ type: 'stackY' }) .transform({ type: 'normalizeY' }) .axis('y', { labelFormatter: '.0%' }) .encode('color', 'sex') .label({ text: 'sex', position: 'inside' }) .tooltip({ channel: 'y', valueFormatter: '.0%' }); chart.render(); ```
/content/code_sandbox/site/examples/analysis/group/demo/bar-stacked-normalized-1d.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
180
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <sql-parser-test-cases> <drop-index sql-case-id="drop_index_with_algorithm"> <table name="t_order" start-index="23" stop-index="29" /> <index name="idx_name" start-index="11" stop-index="18" /> <algorithm-option type="INPLACE" start-index="31" stop-index="47" /> </drop-index> <drop-index sql-case-id="drop_index_with_lock"> <table name="t_order" start-index="23" stop-index="29" /> <index name="idx_name" start-index="11" stop-index="18" /> <lock-option type="EXCLUSIVE" start-index="31" stop-index="44" /> </drop-index> <drop-index sql-case-id="drop_index_with_algorithm_lock"> <table name="t_order" start-index="23" stop-index="29" /> <index name="idx_name" start-index="11" stop-index="18" /> <algorithm-option type="INPLACE" start-index="31" stop-index="47" /> <lock-option type="EXCLUSIVE" start-index="49" stop-index="62" /> </drop-index> <drop-index sql-case-id="drop_index_with_lock_algorithm"> <table name="t_order" start-index="23" stop-index="29" /> <index name="idx_name" start-index="11" stop-index="18" /> <lock-option type="EXCLUSIVE" start-index="31" stop-index="44" /> <algorithm-option type="INPLACE" start-index="46" stop-index="62" /> </drop-index> <drop-index sql-case-id="drop_index"> <table name="t_log" start-index="26" stop-index="30" /> </drop-index> <drop-index sql-case-id="drop_index_without_on"> <index name="order_index" start-index="11" stop-index="21" /> </drop-index> <drop-index sql-case-id="drop_index_if_exists" /> <drop-index sql-case-id="drop_index_with_space"> <table name="t_order" start-index="50" stop-index="56" /> </drop-index> <drop-index sql-case-id="drop_index_only_with_name"> <index name="order_index" start-index="11" stop-index="21" /> </drop-index> <drop-index sql-case-id="drop_index_with_back_quota"> <table name="t_order" start-delimiter="`" end-delimiter="`" start-index="28" stop-index="36" /> </drop-index> <drop-index sql-case-id="drop_index_with_quota"> <index name="order_index" start-delimiter="&quot;" end-delimiter="&quot;" start-index="11" stop-index="23" /> </drop-index> <drop-index sql-case-id="drop_index_with_double_quota" /> <drop-index sql-case-id="drop_index_concurrently" /> <drop-index sql-case-id="drop_index_with_schema" /> <drop-index sql-case-id="drop_index_with_bracket"> <table name="t_order" start-delimiter="[" end-delimiter="]" start-index="28" stop-index="36" /> </drop-index> <drop-index sql-case-id="drop_index_if_exists_on_table"> <table name="t_order" start-index="36" stop-index="42" /> </drop-index> <drop-index sql-case-id="drop_index_with_online_force_invalidation"> <index name="order_index" start-index="11" stop-index="21" /> </drop-index> </sql-parser-test-cases> ```
/content/code_sandbox/test/it/parser/src/main/resources/case/ddl/drop-index.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
888
```xml import * as React from "react"; import * as pkg from "../../package"; import * as simulator from "../../simulator"; import { connect } from 'react-redux'; import { Button } from "../../../../react-common/components/controls/Button"; import { List } from "../../../../react-common/components/controls/List"; import { Modal, ModalAction } from "../../../../react-common/components/controls/Modal"; import { AssetEditorState, GalleryView, isGalleryAsset } from './store/assetEditorReducerState'; import { dispatchChangeGalleryView, dispatchChangeSelectedAsset, dispatchUpdateUserAssets } from './actions/dispatch'; import { AssetPreview } from "./assetPreview"; import { AssetPalette } from "./assetPalette"; import { getBlocksEditor } from "../../app"; interface AssetDetail { name: string; value: string; } interface AssetSidebarProps { asset?: pxt.Asset; isGalleryAsset?: boolean; showAssetFieldView?: (asset: pxt.Asset, cb: (result: any) => void) => void; updateProject: () => void; dispatchChangeGalleryView: (view: GalleryView, assetType?: pxt.AssetType, assetId?: string) => void; dispatchChangeSelectedAsset: (assetType?: pxt.AssetType, assetId?: string) => void; dispatchUpdateUserAssets: () => void; } interface AssetSidebarState { showDeleteModal: boolean; showPaletteModal: boolean; canEdit: boolean; canCopy: boolean; canDelete: boolean; } class AssetSidebarImpl extends React.Component<AssetSidebarProps, AssetSidebarState> { protected copyTextAreaRef: HTMLTextAreaElement; constructor(props: AssetSidebarProps) { super(props); this.state = { showDeleteModal: false, showPaletteModal: false, canEdit: true, canCopy: true, canDelete: true }; } UNSAFE_componentWillReceiveProps(nextProps: AssetSidebarProps) { if (nextProps.asset && this.props.asset != nextProps.asset) { const { asset, isGalleryAsset } = nextProps; const project = pxt.react.getTilemapProject(); const canEdit = !isGalleryAsset; const canCopy = asset?.type != pxt.AssetType.Tilemap && asset?.type != pxt.AssetType.Animation; const canDelete = !isGalleryAsset && !project.isAssetUsed(asset, pkg.mainEditorPkg().files); this.setState({ canEdit, canCopy, canDelete }); } } protected getAssetDetails(): AssetDetail[] { const asset = this.props.asset; const details: AssetDetail[] = []; if (asset) { details.push({ name: lf("Type"), value: getDisplayTextForAsset(asset.type) }); switch (asset.type) { case pxt.AssetType.Image: case pxt.AssetType.Tile: details.push({ name: lf("Size"), value: `${asset.bitmap.width} x ${asset.bitmap.height}` }); break; case pxt.AssetType.Tilemap: details.push({ name: lf("Size"), value: `${asset.data.tilemap.width} x ${asset.data.tilemap.height}` }); break; case pxt.AssetType.Animation: details.push({ name: lf("Size"), value: `${asset.frames[0].width} x ${asset.frames[0].height}` }); break; } } return details; } protected updateAssets(): Promise<void> { return pkg.mainEditorPkg().buildAssetsAsync() .then(() => this.props.dispatchUpdateUserAssets()); } protected editAssetHandler = () => { this.props.showAssetFieldView(this.props.asset, this.editAssetDoneHandler); } protected editAssetDoneHandler = (result: pxt.Asset) => { pxt.tickEvent("assets.edit", { type: result.type.toString() }); const project = pxt.react.getTilemapProject(); project.pushUndo(); if (!this.props.asset.meta?.displayName && result.meta.temporaryInfo) { getBlocksEditor().updateTemporaryAsset(result); pkg.mainEditorPkg().lookupFile(`this/${pxt.MAIN_BLOCKS}`).setContentAsync(getBlocksEditor().getCurrentSource()); } if (result.meta.displayName) project.updateAsset(result); this.props.dispatchChangeGalleryView(GalleryView.User); this.updateAssets().then(() => simulator.setDirty()); } protected duplicateAssetHandler = () => { const { isGalleryAsset } = this.props; pxt.tickEvent("assets.duplicate", { type: this.props.asset.type.toString(), gallery: isGalleryAsset.toString() }); const asset = this.props.asset; const displayName = asset.meta?.displayName || getDisplayNameForAsset(asset, isGalleryAsset) || pxt.getDefaultAssetDisplayName(asset.type); const project = pxt.react.getTilemapProject(); project.pushUndo(); const { type, id } = project.duplicateAsset(asset, displayName); this.updateAssets().then(() => { if (isGalleryAsset) this.props.dispatchChangeGalleryView(GalleryView.User, type, id); }); } protected copyAssetHandler = () => { const { asset } = this.props; pxt.tickEvent("assets.clipboard", { type: asset.type.toString(), gallery: this.props.isGalleryAsset.toString() }); switch (asset.type) { case pxt.AssetType.Image: case pxt.AssetType.Tile: try { const data = pxt.sprite.bitmapToImageLiteral(pxt.sprite.getBitmapFromJResURL(asset.jresData), "typescript"); this.copyTextAreaRef.value = data; this.copyTextAreaRef.focus(); this.copyTextAreaRef.select(); document.execCommand("copy"); } catch { } break; default: break; } } protected copyTextAreaRefHandler = (el: HTMLTextAreaElement) => { this.copyTextAreaRef = el } protected showDeleteModal = () => { this.setState({ showDeleteModal: true }); } protected hideDeleteModal = () => { this.setState({ showDeleteModal: false }); } protected showPaletteModal = () => { this.setState({ showPaletteModal: true }); pxt.tickEvent("palette.open"); } protected hidePaletteModal = (paletteChanged: boolean) => { this.setState({ showPaletteModal: false }); if (paletteChanged) this.props.updateProject(); } protected deleteAssetHandler = () => { pxt.tickEvent("assets.delete", { type: this.props.asset.type.toString() }); this.setState({ showDeleteModal: false }); const project = pxt.react.getTilemapProject(); project.pushUndo(); project.removeAsset(this.props.asset); this.props.dispatchChangeSelectedAsset(); this.updateAssets(); } render() { const { asset, isGalleryAsset } = this.props; const { showDeleteModal, showPaletteModal, canEdit, canCopy, canDelete } = this.state; const details = this.getAssetDetails(); const isNamed = asset?.meta?.displayName || isGalleryAsset; const name = getDisplayNameForAsset(asset, isGalleryAsset); const actions: ModalAction[] = [ { label: lf("Delete"), onClick: this.deleteAssetHandler, icon: 'icon trash', className: 'red' } ]; return <div className="asset-editor-sidebar"> <List className="asset-editor-sidebar-info"> <div>{lf("Asset Preview")}</div> <div className="asset-editor-sidebar-preview"> {asset && <AssetPreview asset={asset} />} </div> {isNamed || !asset ? <div className="asset-editor-sidebar-name">{name}</div> : <div className="asset-editor-sidebar-temp"> <i className="icon exclamation triangle" /> <span>{lf("No asset name")}</span> </div> } {details.map(el => { return <div key={el.name} className="asset-editor-sidebar-detail">{`${el.name}: ${el.value}`}</div> })} </List> <List className="asset-editor-sidebar-controls"> {asset && canEdit && <Button label={lf("Edit")} title={lf("Edit the selected asset")} ariaLabel={lf("Edit the selected asset")} leftIcon="icon edit" className="asset-editor-button" onClick={this.editAssetHandler} />} {asset && <Button label={lf("Duplicate")} title={lf("Duplicate the selected asset")} ariaLabel={lf("Duplicate the selected asset")} leftIcon="icon copy" className="asset-editor-button" onClick={this.duplicateAssetHandler} />} {asset && canCopy && <Button label={lf("Copy")} title={lf("Copy the selected asset to the clipboard")} ariaLabel={lf("Copy the selected asset to the clipboard")} leftIcon="icon paste" className="asset-editor-button" onClick={this.copyAssetHandler} />} {asset && canDelete && <Button label={lf("Delete")} title={lf("Delete the selected asset")} ariaLabel={lf("Delete the selected asset")} className="asset-editor-button" leftIcon="icon trash" onClick={this.showDeleteModal} />} <Button className="teal asset-palette-button" label={lf("Colors")} title={lf("Open the color palette")} ariaLabel={lf("Open the color palette")} leftIcon="fas fa-palette" onClick={this.showPaletteModal} /> </List> <textarea className="asset-editor-sidebar-copy" ref={this.copyTextAreaRefHandler} ></textarea> {showDeleteModal && <Modal className="asset-editor-delete-dialog" onClose={this.hideDeleteModal} title={lf("Delete Asset")} actions={actions} parentElement={document.getElementById("root")}> <div>{lf("Are you sure you want to delete {0}? Deleted assets cannot be recovered.", name)}</div> </Modal>} {showPaletteModal && <AssetPalette onClose={this.hidePaletteModal} />} </div> } } function getDisplayTextForAsset(type: pxt.AssetType) { switch (type) { case pxt.AssetType.Image: return lf("Image"); case pxt.AssetType.Tile: return lf("Tile"); case pxt.AssetType.Animation: return lf("Animation"); case pxt.AssetType.Tilemap: return lf("Tilemap"); case pxt.AssetType.Song: return lf("Song"); } } function getDisplayNameForAsset(asset: pxt.Asset, isGalleryAsset?: boolean) { if (!asset) { return lf("No asset selected"); } else if (asset?.meta?.displayName) { return asset.meta.displayName; } else if (isGalleryAsset) { return asset.id.split('.').pop(); } return null; } function mapStateToProps(state: AssetEditorState, ownProps: any) { if (!state) return {}; return { asset: state.selectedAsset, isGalleryAsset: isGalleryAsset(state.selectedAsset) }; } const mapDispatchToProps = { dispatchChangeGalleryView, dispatchChangeSelectedAsset, dispatchUpdateUserAssets }; export const AssetSidebar = connect(mapStateToProps, mapDispatchToProps)(AssetSidebarImpl); ```
/content/code_sandbox/webapp/src/components/assetEditor/assetSidebar.tsx
xml
2016-01-24T19:35:52
2024-08-16T16:39:39
pxt
microsoft/pxt
2,069
2,415
```xml // Patch a document with patches import * as fs from "fs"; import { IPatch, patchDocument, PatchType, TextRun } from "docx"; export const font = "Trebuchet MS"; export const getPatches = (fields: { [key: string]: string }) => { const patches: { [key: string]: IPatch } = {}; for (const field in fields) { patches[field] = { type: PatchType.PARAGRAPH, children: [new TextRun({ text: fields[field], font })], }; } return patches; }; const patches = getPatches({ salutation: "Mr.", "first-name": "John", }); patchDocument({ outputType: "nodebuffer", data: fs.readFileSync("demo/assets/simple-template-3.docx"), patches, keepOriginalStyles: true, }).then((doc) => { fs.writeFileSync("My Document.docx", doc); }); ```
/content/code_sandbox/demo/89-template-document.ts
xml
2016-03-26T23:43:56
2024-08-16T13:02:47
docx
dolanmiu/docx
4,139
206
```xml // TODO: Add interface to aperture-node for getting recording duration instead of using this path_to_url let overallDuration = 0; let currentDurationStart = 0; export const getOverallDuration = (): number => overallDuration; export const getCurrentDurationStart = (): number => currentDurationStart; export const setOverallDuration = (duration: number): void => { overallDuration = duration; }; export const setCurrentDurationStart = (duration: number): void => { currentDurationStart = duration; }; ```
/content/code_sandbox/main/utils/track-duration.ts
xml
2016-08-10T19:37:08
2024-08-16T07:01:58
Kap
wulkano/Kap
17,864
104
```xml /* eslint-disable no-underscore-dangle */ import type { Args, ArgsStoryFn, Globals, Parameters, PreparedMeta, PreparedStory, Renderer, StoryContext, StoryContextForEnhancers, StoryContextForLoaders, StrictArgTypes, } from '@storybook/core/types'; import type { ModuleExport, NormalizedComponentAnnotations, NormalizedProjectAnnotations, NormalizedStoryAnnotations, } from '@storybook/core/types'; import { type CleanupCallback, combineTags, includeConditionalArg } from '@storybook/csf'; import { global } from '@storybook/global'; import { global as globalThis } from '@storybook/global'; import { NoRenderFunctionError } from '@storybook/core/preview-errors'; import { applyHooks } from '../../addons'; import { mountDestructured } from '../../preview-web/render/mount-utils'; import { UNTARGETED, groupArgsByTarget } from '../args'; import { defaultDecorateStory } from '../decorators'; import { combineParameters } from '../parameters'; import { normalizeArrays } from './normalizeArrays'; // Combine all the metadata about a story (both direct and inherited from the component/global scope) // into a "render-able" story function, with all decorators applied, parameters passed as context etc // // Note that this story function is *stateless* in the sense that it does not track args or globals // Instead, it is expected these are tracked separately (if necessary) and are passed into each invocation. export function prepareStory<TRenderer extends Renderer>( storyAnnotations: NormalizedStoryAnnotations<TRenderer>, componentAnnotations: NormalizedComponentAnnotations<TRenderer>, projectAnnotations: NormalizedProjectAnnotations<TRenderer> ): PreparedStory<TRenderer> { // NOTE: in the current implementation we are doing everything once, up front, rather than doing // anything at render time. The assumption is that as we don't load all the stories at once, this // will have a limited cost. If this proves misguided, we can refactor it. const { moduleExport, id, name } = storyAnnotations || {}; const partialAnnotations = preparePartialAnnotations( storyAnnotations, componentAnnotations, projectAnnotations ); const applyLoaders = async ( context: StoryContext<TRenderer> ): Promise<StoryContext<TRenderer>['loaded']> => { const loaded = {}; for (const loaders of [ ...('__STORYBOOK_TEST_LOADERS__' in global && Array.isArray(global.__STORYBOOK_TEST_LOADERS__) ? [global.__STORYBOOK_TEST_LOADERS__] : []), normalizeArrays(projectAnnotations.loaders), normalizeArrays(componentAnnotations.loaders), normalizeArrays(storyAnnotations.loaders), ]) { if (context.abortSignal.aborted) { return loaded; } const loadResults = await Promise.all(loaders.map((loader) => loader(context))); Object.assign(loaded, ...loadResults); } return loaded; }; const applyBeforeEach = async (context: StoryContext<TRenderer>): Promise<CleanupCallback[]> => { const cleanupCallbacks = new Array<() => unknown>(); for (const beforeEach of [ ...normalizeArrays(projectAnnotations.beforeEach), ...normalizeArrays(componentAnnotations.beforeEach), ...normalizeArrays(storyAnnotations.beforeEach), ]) { if (context.abortSignal.aborted) { return cleanupCallbacks; } const cleanup = await beforeEach(context); if (cleanup) { cleanupCallbacks.push(cleanup); } } return cleanupCallbacks; }; const undecoratedStoryFn = (context: StoryContext<TRenderer>) => (context.originalStoryFn as ArgsStoryFn<TRenderer>)(context.args, context); // Currently it is only possible to set these globally const { applyDecorators = defaultDecorateStory, runStep } = projectAnnotations; const decorators = [ ...normalizeArrays(storyAnnotations?.decorators), ...normalizeArrays(componentAnnotations?.decorators), ...normalizeArrays(projectAnnotations?.decorators), ]; // The render function on annotations *has* to be an `ArgsStoryFn`, so when we normalize // CSFv1/2, we use a new field called `userStoryFn` so we know that it can be a LegacyStoryFn const render = storyAnnotations?.userStoryFn || storyAnnotations?.render || componentAnnotations.render || projectAnnotations.render; const decoratedStoryFn = applyHooks<TRenderer>(applyDecorators)(undecoratedStoryFn, decorators); const unboundStoryFn = (context: StoryContext<TRenderer>) => decoratedStoryFn(context); const playFunction = storyAnnotations?.play ?? componentAnnotations?.play; const usesMount = mountDestructured(playFunction); if (!render && !usesMount) { throw new NoRenderFunctionError({ id }); } const defaultMount = (context: StoryContext<TRenderer>) => { return async () => { await context.renderToCanvas(); return context.canvas; }; }; const mount = storyAnnotations.mount ?? componentAnnotations.mount ?? projectAnnotations.mount ?? defaultMount; const testingLibraryRender = projectAnnotations.testingLibraryRender; return { storyGlobals: {}, ...partialAnnotations, moduleExport, id, name, story: name, originalStoryFn: render!, undecoratedStoryFn, unboundStoryFn, applyLoaders, applyBeforeEach, playFunction, runStep, mount, testingLibraryRender, renderToCanvas: projectAnnotations.renderToCanvas, usesMount, }; } export function prepareMeta<TRenderer extends Renderer>( componentAnnotations: NormalizedComponentAnnotations<TRenderer>, projectAnnotations: NormalizedProjectAnnotations<TRenderer>, moduleExport: ModuleExport ): PreparedMeta<TRenderer> { return { ...preparePartialAnnotations(undefined, componentAnnotations, projectAnnotations), moduleExport, }; } function preparePartialAnnotations<TRenderer extends Renderer>( storyAnnotations: NormalizedStoryAnnotations<TRenderer> | undefined, componentAnnotations: NormalizedComponentAnnotations<TRenderer>, projectAnnotations: NormalizedProjectAnnotations<TRenderer> ): Omit<StoryContextForEnhancers<TRenderer>, 'name' | 'story'> { // NOTE: in the current implementation we are doing everything once, up front, rather than doing // anything at render time. The assumption is that as we don't load all the stories at once, this // will have a limited cost. If this proves misguided, we can refactor it. const defaultTags = ['dev', 'test']; const extraTags = globalThis.DOCS_OPTIONS?.autodocs === true ? ['autodocs'] : []; const tags = combineTags( ...defaultTags, ...extraTags, ...(projectAnnotations.tags ?? []), ...(componentAnnotations.tags ?? []), ...(storyAnnotations?.tags ?? []) ); const parameters: Parameters = combineParameters( projectAnnotations.parameters, componentAnnotations.parameters, storyAnnotations?.parameters ); // Currently it is only possible to set these globally const { argTypesEnhancers = [], argsEnhancers = [] } = projectAnnotations; const passedArgTypes: StrictArgTypes = combineParameters( projectAnnotations.argTypes, componentAnnotations.argTypes, storyAnnotations?.argTypes ) as StrictArgTypes; if (storyAnnotations) { // The render function on annotations *has* to be an `ArgsStoryFn`, so when we normalize // CSFv1/2, we use a new field called `userStoryFn` so we know that it can be a LegacyStoryFn const render = storyAnnotations?.userStoryFn || storyAnnotations?.render || componentAnnotations.render || projectAnnotations.render; parameters.__isArgsStory = render && render.length > 0; } // Pull out args[X] into initialArgs for argTypes enhancers const passedArgs: Args = { ...projectAnnotations.args, ...componentAnnotations.args, ...storyAnnotations?.args, } as Args; const storyGlobals: Globals = { ...componentAnnotations.globals, ...storyAnnotations?.globals, }; const contextForEnhancers: StoryContextForEnhancers<TRenderer> & { storyGlobals: Globals } = { componentId: componentAnnotations.id, title: componentAnnotations.title, kind: componentAnnotations.title, // Back compat id: storyAnnotations?.id || componentAnnotations.id, // if there's no story name, we create a fake one since enhancers expect a name name: storyAnnotations?.name || '__meta', story: storyAnnotations?.name || '__meta', // Back compat component: componentAnnotations.component, subcomponents: componentAnnotations.subcomponents, tags, parameters, initialArgs: passedArgs, argTypes: passedArgTypes, storyGlobals, }; contextForEnhancers.argTypes = argTypesEnhancers.reduce( (accumulatedArgTypes, enhancer) => enhancer({ ...contextForEnhancers, argTypes: accumulatedArgTypes }), contextForEnhancers.argTypes ); const initialArgsBeforeEnhancers = { ...passedArgs }; contextForEnhancers.initialArgs = argsEnhancers.reduce( (accumulatedArgs: Args, enhancer) => ({ ...accumulatedArgs, ...enhancer({ ...contextForEnhancers, initialArgs: accumulatedArgs, }), }), initialArgsBeforeEnhancers ); const { name, story, ...withoutStoryIdentifiers } = contextForEnhancers; return withoutStoryIdentifiers; } // the context is prepared before invoking the render function, instead of here directly // to ensure args don't loose there special properties set by the renderer // eg. reactive proxies set by frameworks like SolidJS or Vue export function prepareContext< TRenderer extends Renderer, TContext extends Pick<StoryContextForLoaders<TRenderer>, 'args' | 'argTypes' | 'globals'>, >( context: TContext ): TContext & Pick<StoryContextForLoaders<TRenderer>, 'allArgs' | 'argsByTarget' | 'unmappedArgs'> { const { args: unmappedArgs } = context; let targetedContext: TContext & Pick<StoryContextForLoaders<TRenderer>, 'allArgs' | 'argsByTarget'> = { ...context, allArgs: undefined, argsByTarget: undefined, }; if (global.FEATURES?.argTypeTargetsV7) { const argsByTarget = groupArgsByTarget(context); targetedContext = { ...context, allArgs: context.args, argsByTarget, args: argsByTarget[UNTARGETED] || {}, }; } const mappedArgs = Object.entries(targetedContext.args).reduce((acc, [key, val]) => { if (!targetedContext.argTypes[key]?.mapping) { acc[key] = val; return acc; } const mappingFn = (originalValue: any) => { const mapping = targetedContext.argTypes[key].mapping; return mapping && originalValue in mapping ? mapping[originalValue] : originalValue; }; acc[key] = Array.isArray(val) ? val.map(mappingFn) : mappingFn(val); return acc; }, {} as Args); const includedArgs = Object.entries(mappedArgs).reduce((acc, [key, val]) => { const argType = targetedContext.argTypes[key] || {}; if (includeConditionalArg(argType, mappedArgs, targetedContext.globals)) { acc[key] = val; } return acc; }, {} as Args); return { ...targetedContext, unmappedArgs, args: includedArgs }; } ```
/content/code_sandbox/code/core/src/preview-api/modules/store/csf/prepareStory.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
2,562
```xml import { TurboModuleRegistry } from 'react-native'; const DEFAULT_SAFE_AREA = { top: 0, bottom: 0, left: 0, right: 0 }; /** * Get the best estimate safe area before native modules have fully loaded. * This is a hack to get the safe area insets without explicitly depending on react-native-safe-area-context. */ export function getInitialSafeArea(): { top: number; bottom: number; left: number; right: number } { const RNCSafeAreaContext = TurboModuleRegistry.get('RNCSafeAreaContext'); // @ts-ignore: we're not using the spec so the return type of getConstants() is {} const initialWindowMetrics = RNCSafeAreaContext?.getConstants()?.initialWindowMetrics; return initialWindowMetrics?.insets ?? DEFAULT_SAFE_AREA; } ```
/content/code_sandbox/packages/expo/src/environment/getInitialSafeArea.native.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
174
```xml import { actionTypes } from '../../../common/constants/actionTypes'; import { MemberEntity } from '../../../model'; import { memberAPI } from '../../../api/member'; import { trackPromise } from 'react-promise-tracker'; export const fetchMembersAction = () => (dispatch) => { trackPromise( memberAPI.fetchMembersAsync() .then((members) => { dispatch(fetchMembersCompleted(members)); }) ); }; const fetchMembersCompleted = (members: MemberEntity[]) => ({ type: actionTypes.FETCH_MEMBERS_COMPLETED, payload: members, }); ```
/content/code_sandbox/old_class_components_samples/10 LoaderSpinner/src/components/members/actions/fetchMembers.ts
xml
2016-02-28T11:58:58
2024-07-21T08:53:34
react-typescript-samples
Lemoncode/react-typescript-samples
1,846
116
```xml import { KeyActions, keyboardKey } from '@fluentui/accessibility'; import * as React from 'react'; import { shouldHandleOnKeys } from './shouldHandleOnKeys'; import { AccessibilityActionHandlers, AccessibilityKeyHandlers } from './types'; const rtlKeyMap: Record<number, number> = { [keyboardKey.ArrowRight]: keyboardKey.ArrowLeft, [keyboardKey.ArrowLeft]: keyboardKey.ArrowRight, }; /** * Assigns onKeyDown handler to the slot element, based on Component's actions * and keys mappings defined in Accessibility behavior * @param {AccessibilityActionHandlers} componentActionHandlers Actions handlers defined in a component. * @param {KeyActions} behaviorActions Mappings of actions and keys defined in Accessibility behavior. * @param {boolean} isRtlEnabled Indicates if Left and Right arrow keys should be swapped in RTL mode. */ export const getKeyDownHandlers = ( componentActionHandlers: AccessibilityActionHandlers, behaviorActions: KeyActions, isRtlEnabled?: boolean, ): AccessibilityKeyHandlers => { const slotKeyHandlers: AccessibilityKeyHandlers = {}; if (!componentActionHandlers || !behaviorActions) { return slotKeyHandlers; } const componentHandlerNames = Object.keys(componentActionHandlers); Object.keys(behaviorActions).forEach(slotName => { const behaviorSlotActions = behaviorActions[slotName]; const handledActions = Object.keys(behaviorSlotActions).filter(actionName => { const slotAction = behaviorSlotActions[actionName]; const actionHasKeyCombinations = Array.isArray(slotAction.keyCombinations) && slotAction.keyCombinations.length > 0; const actionHandledByComponent = componentHandlerNames.indexOf(actionName) !== -1; return actionHasKeyCombinations && actionHandledByComponent; }); if (handledActions.length > 0) { slotKeyHandlers[slotName] = { onKeyDown: (event: React.KeyboardEvent) => { handledActions.forEach(actionName => { let keyCombinations = behaviorSlotActions[actionName].keyCombinations; if (keyCombinations) { if (isRtlEnabled) { keyCombinations = keyCombinations.map(keyCombination => { const keyToRtlKey = rtlKeyMap[keyCombination.keyCode]; if (keyToRtlKey) { keyCombination.keyCode = keyToRtlKey; } return keyCombination; }); } if (shouldHandleOnKeys(event, keyCombinations)) { componentActionHandlers[actionName](event); } } }); }, }; } }); return slotKeyHandlers; }; ```
/content/code_sandbox/packages/fluentui/react-bindings/src/accessibility/getKeyDownHandlers.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
554
```xml /* Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at path_to_url */ import {RouteHandler} from 'workbox-core/types.js'; import {getOrCreateDefaultRouter} from './utils/getOrCreateDefaultRouter.js'; import './_version.js'; /** * Define a default `handler` that's called when no routes explicitly * match the incoming request. * * Without a default handler, unmatched requests will go against the * network as if there were no service worker present. * * @param {workbox-routing~handlerCallback} handler A callback * function that returns a Promise resulting in a Response. * * @memberof workbox-routing */ function setDefaultHandler(handler: RouteHandler): void { const defaultRouter = getOrCreateDefaultRouter(); defaultRouter.setDefaultHandler(handler); } export {setDefaultHandler}; ```
/content/code_sandbox/packages/workbox-routing/src/setDefaultHandler.ts
xml
2016-04-04T15:55:19
2024-08-16T08:33:26
workbox
GoogleChrome/workbox
12,245
186
```xml <assembly xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <id>redis-console</id> <formats> <format>zip</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <fileSets> <!--scripts --> <fileSet> <directory>src/main/scripts</directory> <outputDirectory>scripts</outputDirectory> <includes> <include>*.sh</include> </includes> <fileMode>0755</fileMode> <lineEnding>unix</lineEnding> </fileSet> <fileSet> <directory>src/main/config</directory> <outputDirectory>config</outputDirectory> <excludes> <exclude>redis-console.conf</exclude> </excludes> <lineEnding>unix</lineEnding> </fileSet> <fileSet> <directory>src/main/config</directory> <outputDirectory>/</outputDirectory> <includes> <include>redis-console.conf</include> </includes> <lineEnding>unix</lineEnding> </fileSet> <fileSet> <directory>../../redis-console/src/main/resources/sql/mysql</directory> <outputDirectory>sql</outputDirectory> <includes> <include>*.sql</include> </includes> <lineEnding>unix</lineEnding> </fileSet> <fileSet> <directory>../../../services/local-service/src/main/resources/</directory> <outputDirectory>sql</outputDirectory> <includes> <include>*.sql</include> </includes> <lineEnding>unix</lineEnding> </fileSet> <!--artifact --> <fileSet> <directory>target</directory> <outputDirectory>/</outputDirectory> <includes> <include>${project.artifactId}-${project.version}.jar</include> </includes> <fileMode>0755</fileMode> </fileSet> </fileSets> </assembly> ```
/content/code_sandbox/redis/package/redis-console-package/src/assembly/assembly-descriptor.xml
xml
2016-03-29T12:22:36
2024-08-12T11:25:42
x-pipe
ctripcorp/x-pipe
1,977
513
```xml import { Component } from '@angular/core'; @Component({ selector: 'app-templates', templateUrl: './templates.component.html', styleUrls: ['./templates.component.scss'] }) export class TemplatesComponent { template = ` <tree-root [nodes]="nodes"> <ng-template #treeNodeTemplate let-node let-index="index"> <span>{{ node.data.name }}</span> <button (click)="go($event)">Custom Action</button> </ng-template> </tree-root> `; treeNodeWrapper = ` <tree-root [nodes]="nodes"> <ng-template #treeNodeWrapperTemplate let-node let-index="index"> <div class="node-wrapper" [style.padding-left]="node.getNodePadding()"> <tree-node-expander [node]="node"></tree-node-expander> <div class="node-content-wrapper" [class.node-content-wrapper-active]="node.isActive" [class.node-content-wrapper-focused]="node.isFocused" (click)="node.mouseAction('click', $event)" (dblclick)="node.mouseAction('dblClick', $event)" (contextmenu)="node.mouseAction('contextMenu', $event)" (treeDrop)="node.onDrop($event)" [treeAllowDrop]="node.allowDrop" [treeDrag]="node" [treeDragEnabled]="node.allowDrag()"> <tree-node-content [node]="node" [index]="index"></tree-node-content> </div> </div> </ng-template> </tree-root> `; treeLoading = ` <tree-root [nodes]="nodes"> <template #loadingTemplate>Loading, please hold....</template> </tree-root> `; fullTemplate = ` <ng-template #treeNodeFullTemplate let-node let-index="index" let-templates="templates"> <div [class]="node.getClass()" [class.tree-node]="true" [class.tree-node-expanded]="node.isExpanded && node.hasChildren" [class.tree-node-collapsed]="node.isCollapsed && node.hasChildren" [class.tree-node-leaf]="node.isLeaf" [class.tree-node-active]="node.isActive" [class.tree-node-focused]="node.isFocused"> <tree-node-drop-slot *ngIf="index === 0" [dropIndex]="node.index" [node]="node.parent"> </tree-node-drop-slot> <tree-node-wrapper [node]="node" [index]="index" [templates]="templates"> </tree-node-wrapper> <tree-node-children [node]="node" [templates]="templates"> </tree-node-children> <tree-node-drop-slot [dropIndex]="node.index + 1" [node]="node.parent"> </tree-node-drop-slot> </div> </ng-template> `; } ```
/content/code_sandbox/projects/docs-app/src/app/fundamentals/templates/templates.component.ts
xml
2016-03-10T21:29:15
2024-08-15T07:07:30
angular-tree-component
CirclonGroup/angular-tree-component
1,093
590
```xml import { Injectable } from '@angular/core'; import { Subject } from 'rxjs'; import { Confirmation } from './confirmation'; /** * Methods used in confirmation service. * @group Service */ @Injectable() export class ConfirmationService { private requireConfirmationSource = new Subject<Confirmation | null>(); private acceptConfirmationSource = new Subject<Confirmation | null>(); requireConfirmation$ = this.requireConfirmationSource.asObservable(); accept = this.acceptConfirmationSource.asObservable(); /** * Callback to invoke on confirm. * @param {Confirmation} confirmation - Represents a confirmation dialog configuration. * @group Method */ confirm(confirmation: Confirmation) { this.requireConfirmationSource.next(confirmation); return this; } /** * Closes the dialog. * @group Method */ close() { this.requireConfirmationSource.next(null); return this; } /** * Accepts the dialog. * @group Method */ onAccept() { this.acceptConfirmationSource.next(null); } } ```
/content/code_sandbox/src/app/components/api/confirmationservice.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
219
```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 { BaseData, HasId } from '@shared/models/base-data'; import { EntityTypeTranslation } from '@shared/models/entity-type.models'; import { SafeHtml } from '@angular/platform-browser'; import { PageLink } from '@shared/models/page/page-link'; import { Timewindow } from '@shared/models/time/time.models'; import { EntitiesDataSource } from '@home/models/datasource/entity-datasource'; import { ElementRef, EventEmitter } from '@angular/core'; import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; import { MatPaginator } from '@angular/material/paginator'; import { MatSort } from '@angular/material/sort'; import { EntityAction } from '@home/models/entity/entity-component.models'; import { CellActionDescriptor, EntityActionTableColumn, EntityColumn, EntityTableColumn, EntityTableConfig, GroupActionDescriptor, HeaderActionDescriptor } from '@home/models/entity/entities-table-config.models'; import { ActivatedRoute } from '@angular/router'; export type EntitiesTableAction = 'add'; export interface IEntitiesTableComponent { entitiesTableConfig: EntityTableConfig<BaseData<HasId>>; translations: EntityTypeTranslation; headerActionDescriptors: Array<HeaderActionDescriptor>; groupActionDescriptors: Array<GroupActionDescriptor<BaseData<HasId>>>; cellActionDescriptors: Array<CellActionDescriptor<BaseData<HasId>>>; actionColumns: Array<EntityActionTableColumn<BaseData<HasId>>>; entityColumns: Array<EntityTableColumn<BaseData<HasId>>>; displayedColumns: string[]; headerCellStyleCache: Array<any>; cellContentCache: Array<SafeHtml>; cellTooltipCache: Array<string>; cellStyleCache: Array<any>; selectionEnabled: boolean; defaultPageSize: number; displayPagination: boolean; pageSizeOptions: number[]; pageLink: PageLink; pageMode: boolean; textSearchMode: boolean; timewindow: Timewindow; dataSource: EntitiesDataSource<BaseData<HasId>>; isDetailsOpen: boolean; detailsPanelOpened: EventEmitter<boolean>; entityTableHeaderAnchor: TbAnchorComponent; searchInputField: ElementRef; paginator: MatPaginator; sort: MatSort; route: ActivatedRoute; addEnabled(): boolean; clearSelection(): void; updateData(closeDetails?: boolean): void; onRowClick($event: Event, entity): void; toggleEntityDetails($event: Event, entity); addEntity($event: Event): void; onEntityUpdated(entity: BaseData<HasId>): void; onEntityAction(action: EntityAction<BaseData<HasId>>): void; deleteEntity($event: Event, entity: BaseData<HasId>): void; deleteEntities($event: Event, entities: BaseData<HasId>[]): void; onTimewindowChange(): void; enterFilterMode(): void; exitFilterMode(): void; resetSortAndFilter(update?: boolean, preserveTimewindow?: boolean): void; columnsUpdated(resetData?: boolean): void; cellActionDescriptorsUpdated(): void; headerCellStyle(column: EntityColumn<BaseData<HasId>>): any; clearCellCache(col: number, row: number): void; cellContent(entity: BaseData<HasId>, column: EntityColumn<BaseData<HasId>>, row: number): any; cellTooltip(entity: BaseData<HasId>, column: EntityColumn<BaseData<HasId>>, row: number): string; cellStyle(entity: BaseData<HasId>, column: EntityColumn<BaseData<HasId>>, row: number): any; trackByColumnKey(index, column: EntityTableColumn<BaseData<HasId>>): string; trackByEntityId(index: number, entity: BaseData<HasId>): string; detectChanges(): void; } ```
/content/code_sandbox/ui-ngx/src/app/modules/home/models/entity/entity-table-component.models.ts
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
846
```xml import { ts } from 'ts-morph'; const sinon = require('sinon'); import Logger from '../../infrastructure/logging/logger'; import DisplayEnvironmentVersions from './display-environment-versions'; describe('Use-cases - Display informations', () => { let consoleStubLog; beforeEach(() => { consoleStubLog = sinon.stub(console, 'log'); }); afterEach(() => { consoleStubLog.restore(); }); after(() => { process.chdir('../../../'); }); it('without --silent', async () => { DisplayEnvironmentVersions.display({ version: '3.4.0' }); sinon.assert.calledWith(console.log, '3.4.0'); sinon.assert.calledWith(console.log, sinon.match('Node.js version')); sinon.assert.calledWith( console.log, sinon.match(`TypeScript version used by Compodoc : ${ts.version}`) ); sinon.assert.calledWith(console.log, sinon.match('Operating system')); }); it('with --silent', async () => { Logger.silent = true; DisplayEnvironmentVersions.display({ version: '3.4.0' }); sinon.assert.calledWithExactly(console.log, 'Compodoc v3.4.0'); }); it('with real project', async () => { Logger.silent = false; process.chdir('./test/fixtures/todomvc-ng2'); DisplayEnvironmentVersions.display({ version: '3.4.0' }); sinon.assert.calledWithExactly( console.log, 'TypeScript version of current project : 3.1.1' ); }); }); ```
/content/code_sandbox/src-refactored/core/use-cases/display-environment-versions.spec.ts
xml
2016-10-17T07:09:28
2024-08-14T16:30:10
compodoc
compodoc/compodoc
3,980
344
```xml import { expect, use } from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as TypeMoq from 'typemoq'; import { IFileSystem } from '../../../client/common/platform/types'; import { createPythonEnv } from '../../../client/common/process/pythonEnvironment'; import { createPythonProcessService } from '../../../client/common/process/pythonProcess'; import { IProcessService, StdErrError } from '../../../client/common/process/types'; import { noop } from '../../core'; use(chaiAsPromised); suite('PythonProcessService', () => { let processService: TypeMoq.IMock<IProcessService>; let fileSystem: TypeMoq.IMock<IFileSystem>; const pythonPath = 'path/to/python'; setup(() => { processService = TypeMoq.Mock.ofType<IProcessService>(undefined, TypeMoq.MockBehavior.Strict); fileSystem = TypeMoq.Mock.ofType<IFileSystem>(undefined, TypeMoq.MockBehavior.Strict); }); test('execObservable should call processService.execObservable', () => { const args = ['-a', 'b', '-c']; const options = {}; const observable = { proc: undefined, out: {} as any, dispose: () => { noop(); }, }; processService.setup((p) => p.execObservable(pythonPath, args, options)).returns(() => observable); const env = createPythonEnv(pythonPath, processService.object, fileSystem.object); const procs = createPythonProcessService(processService.object, env); const result = procs.execObservable(args, options); processService.verify((p) => p.execObservable(pythonPath, args, options), TypeMoq.Times.once()); expect(result).to.be.equal(observable, 'execObservable should return an observable'); }); test('execModuleObservable should call processService.execObservable with the -m argument', () => { const args = ['-a', 'b', '-c']; const moduleName = 'foo'; const expectedArgs = ['-m', moduleName, ...args]; const options = {}; const observable = { proc: undefined, out: {} as any, dispose: () => { noop(); }, }; processService.setup((p) => p.execObservable(pythonPath, expectedArgs, options)).returns(() => observable); const env = createPythonEnv(pythonPath, processService.object, fileSystem.object); const procs = createPythonProcessService(processService.object, env); const result = procs.execModuleObservable(moduleName, args, options); processService.verify((p) => p.execObservable(pythonPath, expectedArgs, options), TypeMoq.Times.once()); expect(result).to.be.equal(observable, 'execModuleObservable should return an observable'); }); test('exec should call processService.exec', async () => { const args = ['-a', 'b', '-c']; const options = {}; const stdout = 'foo'; processService.setup((p) => p.exec(pythonPath, args, options)).returns(() => Promise.resolve({ stdout })); const env = createPythonEnv(pythonPath, processService.object, fileSystem.object); const procs = createPythonProcessService(processService.object, env); const result = await procs.exec(args, options); processService.verify((p) => p.exec(pythonPath, args, options), TypeMoq.Times.once()); expect(result.stdout).to.be.equal(stdout, 'exec should return the content of stdout'); }); test('execModule should call processService.exec with the -m argument', async () => { const args = ['-a', 'b', '-c']; const moduleName = 'foo'; const expectedArgs = ['-m', moduleName, ...args]; const options = {}; const stdout = 'bar'; processService .setup((p) => p.exec(pythonPath, expectedArgs, options)) .returns(() => Promise.resolve({ stdout })); const env = createPythonEnv(pythonPath, processService.object, fileSystem.object); const procs = createPythonProcessService(processService.object, env); const result = await procs.execModule(moduleName, args, options); processService.verify((p) => p.exec(pythonPath, expectedArgs, options), TypeMoq.Times.once()); expect(result.stdout).to.be.equal(stdout, 'exec should return the content of stdout'); }); test('execModule should throw an error if the module is not installed', async () => { const args = ['-a', 'b', '-c']; const moduleName = 'foo'; const expectedArgs = ['-m', moduleName, ...args]; const options = {}; processService .setup((p) => p.exec(pythonPath, expectedArgs, options)) .returns(() => Promise.resolve({ stdout: 'bar', stderr: `Error: No module named ${moduleName}` })); processService .setup((p) => p.exec(pythonPath, ['-c', `import ${moduleName}`], { throwOnStdErr: true })) .returns(() => Promise.reject(new StdErrError('not installed'))); const env = createPythonEnv(pythonPath, processService.object, fileSystem.object); const procs = createPythonProcessService(processService.object, env); const result = procs.execModule(moduleName, args, options); expect(result).to.eventually.be.rejectedWith(`Module '${moduleName}' not installed`); }); }); ```
/content/code_sandbox/src/test/common/process/pythonProcess.unit.test.ts
xml
2016-01-19T10:50:01
2024-08-12T21:05:24
pythonVSCode
DonJayamanne/pythonVSCode
2,078
1,176
```xml import { TypedArray } from '../../../types'; import vtkDataArray, { IDataArrayInitialValues } from '../../Core/DataArray'; /** * The inital values of a vtkCellArray. */ export interface ICellArrayInitialValues extends IDataArrayInitialValues { empty?: boolean; } /** * You are NOT allowed to modify the cell array via `getData()`. * Only via `setData` or `insertNextCell` */ export interface vtkCellArray extends vtkDataArray { /** * Get the number of cells in the array. * @param {Boolean} [recompute] Recompute the number of cells. */ getNumberOfCells(recompute?: boolean): number; /** * Get the sizes of the cells in this array. * @param {Boolean} [recompute] Recompute the cell sizes. */ getCellSizes(recompute?: boolean): any; /** * Set the data of this array. * @param {Number[]|TypedArray} typedArray The Array value. */ setData(typedArray: number[] | TypedArray): void; /** * Returns the point indices at the given location as a subarray. * @param loc */ getCell(loc: any): void; /** * Insert a cell to this array in the next available slot. * @param {Number[]} cellPointIds The list of point ids (NOT prefixed with the number of points) * @returns {Number} Idx of where the cell was inserted */ insertNextCell(cellPointIds: number[]): number; } /** * Method used to decorate a given object (publicAPI+model) with vtkCellArray characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {ICellArrayInitialValues} [initialValues] (default: {}) */ export function extend( publicAPI: object, model: object, initialValues?: ICellArrayInitialValues ): void; /** * Method used to create a new instance of vtkCellArray * @param {ICellArrayInitialValues} [initialValues] for pre-setting some of its content */ export function newInstance( initialValues?: ICellArrayInitialValues ): vtkCellArray; /** * @static * @param cellArray */ export function extractCellSizes(cellArray: any): any; /** * @static * @param cellArray */ export function getNumberOfCells(cellArray: any): any; /** * vtkCellArray stores dataset topologies as an explicit connectivity table * listing the point ids that make up each cell. * * @see [vtkDataArray](./Common_Core_DataArray.html) */ export declare const vtkCellArray: { newInstance: typeof newInstance; extend: typeof extend; extractCellSizes: typeof extractCellSizes; getNumberOfCells: typeof getNumberOfCells; }; export default vtkCellArray; ```
/content/code_sandbox/Sources/Common/Core/CellArray/index.d.ts
xml
2016-05-02T15:44:11
2024-08-15T19:53:44
vtk-js
Kitware/vtk-js
1,200
628
```xml export * from "./ClipboardModule"; ```
/content/code_sandbox/src/main/Core/Clipboard/index.ts
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
8
```xml import { StrictStyleOptions } from 'botframework-webchat-api'; export default function createAvatarStyle({ avatarBorderRadius, avatarSize }: StrictStyleOptions) { return { '&.webchat__defaultAvatar': { borderRadius: avatarBorderRadius, height: avatarSize, width: avatarSize } }; } ```
/content/code_sandbox/packages/component/src/Styles/StyleSet/Avatar.ts
xml
2016-07-07T23:16:57
2024-08-16T00:12:37
BotFramework-WebChat
microsoft/BotFramework-WebChat
1,567
71
```xml /*your_sha256_hash----------------------------- *your_sha256_hash----------------------------*/ import { ICachePlugin, TokenCacheContext } from '@azure/msal-node'; import { promises as fsPromises } from 'fs'; import * as lockFile from 'lockfile'; import * as path from 'path'; import VscodeWrapper from '../../controllers/vscodeWrapper'; import { ICredentialStore } from '../../credentialstore/icredentialstore'; import { Logger } from '../../models/logger'; import { FileEncryptionHelper } from '../fileEncryptionHelper'; export class MsalCachePluginProvider { constructor( private readonly _serviceName: string, private readonly _msalFilePath: string, private readonly _vscodeWrapper: VscodeWrapper, private readonly _logger: Logger, private readonly _credentialStore: ICredentialStore ) { this._msalFilePath = path.join(this._msalFilePath, this._serviceName); this._serviceName = this._serviceName.replace(/-/, '_'); this._fileEncryptionHelper = new FileEncryptionHelper(this._credentialStore, this._vscodeWrapper, this._logger, this._serviceName); this._logger.verbose(`MsalCachePluginProvider: Using cache path ${_msalFilePath} and serviceName ${_serviceName}`); } private _lockTaken: boolean = false; private _fileEncryptionHelper: FileEncryptionHelper; private getLockfilePath(): string { return this._msalFilePath + '.lockfile'; } /** * Deletes Msal access token cache file */ public async unlinkMsalCache(): Promise<void> { await fsPromises.unlink(this._msalFilePath); } public async clearCacheEncryptionKeys(): Promise<void> { await this._fileEncryptionHelper.clearEncryptionKeys(); } public getCachePlugin(): ICachePlugin { const lockFilePath = this.getLockfilePath(); const beforeCacheAccess = async (cacheContext: TokenCacheContext): Promise<void> => { await this.waitAndLock(lockFilePath); try { const cache = await fsPromises.readFile(this._msalFilePath, { encoding: 'utf8' }); const decryptedCache = await this._fileEncryptionHelper.fileOpener(cache); try { cacheContext.tokenCache.deserialize(decryptedCache); } catch (e) { // Handle deserialization error in cache file in case file gets corrupted. // Clearing cache here will ensure account is marked stale so re-authentication can be triggered. this._logger.verbose(`MsalCachePlugin: Error occurred when trying to read cache file, file contents will be cleared: ${e.message}`); await fsPromises.unlink(this._msalFilePath); } this._logger.verbose(`MsalCachePlugin: Token read from cache successfully.`); } catch (e) { if (e.code === 'ENOENT') { // File doesn't exist, log and continue this._logger.verbose(`MsalCachePlugin: Cache file not found on disk: ${e.code}`); } else { this._logger.error(`MsalCachePlugin: Failed to read from cache file, file contents will be cleared : ${e}`); await fsPromises.unlink(this._msalFilePath); } } finally { lockFile.unlockSync(lockFilePath); this._lockTaken = false; } }; const afterCacheAccess = async (cacheContext: TokenCacheContext): Promise<void> => { if (cacheContext.cacheHasChanged) { await this.waitAndLock(lockFilePath); try { const cache = cacheContext.tokenCache.serialize(); const encryptedCache = await this._fileEncryptionHelper.fileSaver(cache); await fsPromises.writeFile(this._msalFilePath, encryptedCache, { encoding: 'utf8' }); this._logger.verbose(`MsalCachePlugin: Token written to cache successfully.`); } catch (e) { this._logger.error(`MsalCachePlugin: Failed to write to cache file. ${e}`); throw e; } finally { lockFile.unlockSync(lockFilePath); this._lockTaken = false; } } }; // This is an implementation of ICachePlugin that uses the beforeCacheAccess and afterCacheAccess callbacks to read and write to a file // Ref path_to_url#enable-token-caching // In future we should use msal-node-extensions to provide a secure storage of tokens, instead of implementing our own // However - as of now this library does not come with pre-compiled native libraries that causes runtime issues // Ref path_to_url return { beforeCacheAccess, afterCacheAccess }; } private async waitAndLock(lockFilePath: string): Promise<void> { // Make 500 retry attempts with 100ms wait time between each attempt to allow enough time for the lock to be released. const retries = 500; const retryWait = 100; // We cannot rely on lockfile.lockSync() to clear stale lockfile, // so we check if the lockfile exists and if it does, calling unlockSync() will clear it. if (lockFile.checkSync(lockFilePath) && !this._lockTaken) { lockFile.unlockSync(lockFilePath); this._logger.verbose(`MsalCachePlugin: Stale lockfile found and has been removed.`); } let retryAttempt = 0; while (retryAttempt <= retries) { try { // Use lockfile.lockSync() to ensure only one process is accessing the cache at a time. // lockfile.lock() does not wait for async callback promise to resolve. lockFile.lockSync(lockFilePath); this._lockTaken = true; break; } catch (e) { if (retryAttempt === retries) { this._logger.error(`MsalCachePlugin: Failed to acquire lock on cache file after ${retries} attempts.`); throw new Error(`Failed to acquire lock on cache file after ${retries} attempts. Please try clearing Access token cache.`); } retryAttempt++; this._logger.verbose(`MsalCachePlugin: Failed to acquire lock on cache file. Retrying in ${retryWait} ms.`); await new Promise(resolve => setTimeout(() => resolve, retryWait)); } } } } ```
/content/code_sandbox/src/azure/msal/msalCachePlugin.ts
xml
2016-06-26T04:38:04
2024-08-16T20:04:12
vscode-mssql
microsoft/vscode-mssql
1,523
1,350
```xml declare interface IAzureApimWebPartStrings { PropertyPaneDescription: string; BasicGroupName: string; SubscriptionKeyFieldLabel: string; AppLocalEnvironmentSharePoint: string; AppLocalEnvironmentTeams: string; AppLocalEnvironmentOffice: string; AppLocalEnvironmentOutlook: string; AppSharePointEnvironment: string; AppTeamsTabEnvironment: string; AppOfficeEnvironment: string; AppOutlookEnvironment: string; PlaceholderIconText: string; PlaceholderDescription: string; PlaceholderButtonLabel: string; } declare module "AzureApimWebPartStrings" { const strings: IAzureApimWebPartStrings; export = strings; } ```
/content/code_sandbox/samples/react-apim-tablestorage/src/webparts/azureApim/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
147
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:focusableInTouchMode="true" android:orientation="vertical" tools:context=".fragment.ImageToPdfFragment" tools:ignore="Overdraw"> <androidx.core.widget.NestedScrollView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:layout_alignParentEnd="true" android:layout_alignParentBottom="true"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingTop="25dp"> <LinearLayout android:id="@+id/buttonLayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="@dimen/activity_horizontal_margin" android:orientation="vertical"> <com.dd.morphingbutton.MorphingButton android:id="@+id/addImages" style="@style/MorphingButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:gravity="center" android:padding="10dp" android:text="@string/select_images_text" /> <com.dd.morphingbutton.MorphingButton android:id="@+id/pdfOpen" style="@style/MorphingButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="10dp" android:gravity="center" android:padding="10dp" android:text="@string/open_pdf_text" android:visibility="gone" /> <com.dd.morphingbutton.MorphingButton android:id="@+id/pdfCreate" style="@style/MorphingButton" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="15dp" android:enabled="false" android:gravity="center" android:padding="10dp" android:text="@string/create_pdf_text" /> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="bottom" android:gravity="bottom|center" android:orientation="vertical" android:paddingHorizontal="10dp" tools:targetApi="lollipop"> <com.google.android.material.card.MaterialCardView android:layout_width="50dp" android:layout_height="5dp" android:layout_marginTop="10dp" app:cardCornerRadius="2.5dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginVertical="10dp" android:text="@string/more_options_text" android:textAllCaps="false" android:textSize="18sp" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/enhancement_options_recycle_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="5dp" android:layout_marginVertical="15dp" android:isScrollContainer="false" android:nestedScrollingEnabled="false" /> </LinearLayout> <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:padding="8dp" android:text="@string/app_name" android:visibility="invisible" /> </LinearLayout> </androidx.core.widget.NestedScrollView> <TextView android:id="@+id/tvNoOfImages" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="?attr/bottomSheetColor" android:gravity="center_horizontal" android:padding="8dp" android:textColor="?attr/bottomSheetTextColor" android:visibility="gone" /> </RelativeLayout> ```
/content/code_sandbox/app/src/main/res/layout/fragment_images_to_pdf.xml
xml
2016-02-22T10:00:46
2024-08-16T15:37:50
Images-to-PDF
Swati4star/Images-to-PDF
1,174
970
```xml import React from 'react' const template = `${JSON.stringify({ something: 'else' })}` const original = JSON.stringify({ something: 'else' }) const Component = () => ( <> <div>Something 1</div> <div>Something 2</div> </> ) export const Main = () => ( <div> <Component /> {template} <Component /> </div> ) const f = true const s = ['s', 's'] ```
/content/code_sandbox/test/TSX.tsx
xml
2016-09-15T12:39:36
2024-08-16T08:00:38
ayu
dempfi/ayu
4,258
106
```xml import type { FC } from 'react'; import { c } from 'ttag'; import noContentSvg from '@proton/styles/assets/img/illustrations/empty-trash.svg'; import { DriveEmptyView } from '../../layout/DriveEmptyView'; type Props = {}; const EmptyTrash: FC<Props> = () => { return ( <DriveEmptyView image={noContentSvg} title={ // translator: Shown on empty Trash page c('Info').t`Trash is empty` } subtitle={ // translator: Shown on empty Trash page c('Info').t`Items moved to the trash will stay here until deleted` } /> ); }; export default EmptyTrash; ```
/content/code_sandbox/applications/drive/src/app/components/sections/Trash/EmptyTrash.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
154
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <sql-parser-test-cases> <cluster sql-case-id="cluster_table_using_index"> <table name="abbrev_abort_uuids" start-index="8" stop-index="25" /> <index name="abbrev_abort_uuids__abort_decreasing_idx" start-index="33" stop-index="72" /> </cluster> <cluster sql-case-id="cluster_table"> <table name="clstr_1" start-index="8" stop-index="14" /> </cluster> <cluster sql-case-id="cluster" /> </sql-parser-test-cases> ```
/content/code_sandbox/test/it/parser/src/main/resources/case/ddl/cluster.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
208
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9060" systemVersion="14F1021" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM"> <dependencies> <deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9051"/> <capability name="Aspect ratio constraints" minToolsVersion="5.1"/> </dependencies> <scenes> <!--View Controller--> <scene sceneID="EHf-IW-A2E"> <objects> <viewController id="01J-lp-oVM" sceneMemberID="viewController"> <layoutGuides> <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/> <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/> </layoutGuides> <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <subviews> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="FBSDKCatalog" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mcK-Yp-80G"> <rect key="frame" x="186" y="220" width="228.5" height="36"/> <fontDescription key="fontDescription" type="boldSystem" pointSize="30"/> <color key="textColor" red="0.21176470589999999" green="0.40784313729999999" blue="0.98823529409999999" alpha="1" colorSpace="calibratedRGB"/> <nil key="highlightedColor"/> <variation key="widthClass=regular" misplaced="YES"> <rect key="frame" x="303" y="200" width="194.5" height="33.5"/> </variation> </label> </subviews> <color key="backgroundColor" red="0.83137255909999996" green="0.87843137979999997" blue="0.98823529480000005" alpha="1" colorSpace="calibratedRGB"/> <constraints> <constraint firstItem="mcK-Yp-80G" firstAttribute="top" secondItem="Llm-lL-Icb" secondAttribute="bottom" constant="200" id="1H7-Eq-LWR"/> <constraint firstItem="mcK-Yp-80G" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="EZO-l2-PGt"/> <constraint firstItem="mcK-Yp-80G" firstAttribute="width" secondItem="Ze5-6b-2t3" secondAttribute="height" multiplier="19:50" id="g6X-mn-5zq"/> </constraints> </view> </viewController> <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="53" y="375"/> </scene> </scenes> </document> ```
/content/code_sandbox/Samples/Catalog/Resources/Base.lproj/LaunchScreen.storyboard
xml
2016-07-14T14:56:05
2024-07-15T03:46:30
facebook-swift-sdk
facebookarchive/facebook-swift-sdk
1,514
849
```xml import type { Logger } from "pino"; import type { WebhookError, EmitterWebhookEvent as WebhookEvent, } from "@octokit/webhooks"; export function getErrorHandler(log: Logger) { return (error: Error & { event?: WebhookEvent }) => { const errors = ( error.name === "AggregateError" ? error : [error] ) as WebhookError[]; const event = error.event; for (const error of errors) { const errMessage = (error.message || "").toLowerCase(); if (errMessage.includes("x-hub-signature-256")) { log.error( error, "Go to path_to_url and verify that the Webhook secret matches the value of the WEBHOOK_SECRET environment variable.", ); continue; } if (errMessage.includes("pem") || errMessage.includes("json web token")) { log.error( error, "Your private key (a .pem file or PRIVATE_KEY environment variable) or APP_ID is incorrect. Go to path_to_url verify that APP_ID is set correctly, and generate a new PEM file if necessary.", ); continue; } log .child({ name: "event", id: event?.id, }) .error(error); } }; } ```
/content/code_sandbox/src/helpers/get-error-handler.ts
xml
2016-09-16T20:56:13
2024-08-16T13:00:34
probot
probot/probot
8,862
283
```xml import React, { ReactElement } from 'react'; import { IMGElementStateError } from './img-types'; import IMGElementContentAlt from './IMGElementContentAlt'; /** * Default error view for the {@link IMGElement} component. */ export default function IMGElementContentError( props: IMGElementStateError ): ReactElement { return <IMGElementContentAlt {...props} testID="image-error" />; } ```
/content/code_sandbox/packages/render-html/src/elements/IMGElementContentError.tsx
xml
2016-11-29T10:50:53
2024-08-08T06:53:22
react-native-render-html
meliorence/react-native-render-html
3,445
89
```xml export { default as ApiKey } from "./ApiKey"; export { default as Attachment } from "./Attachment"; export { default as AuthenticationProvider } from "./AuthenticationProvider"; export { default as Backlink } from "./Backlink"; export { default as Collection } from "./Collection"; export { default as GroupMembership } from "./GroupMembership"; export { default as UserMembership } from "./UserMembership"; export { default as Comment } from "./Comment"; export { default as Document } from "./Document"; export { default as Event } from "./Event"; export { default as FileOperation } from "./FileOperation"; export { default as Group } from "./Group"; export { default as GroupUser } from "./GroupUser"; export { default as Integration } from "./Integration"; export { default as IntegrationAuthentication } from "./IntegrationAuthentication"; export { default as Notification } from "./Notification"; export { default as Pin } from "./Pin"; export { default as Revision } from "./Revision"; export { default as SearchQuery } from "./SearchQuery"; export { default as Share } from "./Share"; export { default as Star } from "./Star"; export { default as Team } from "./Team"; export { default as TeamDomain } from "./TeamDomain"; export { default as User } from "./User"; export { default as UserAuthentication } from "./UserAuthentication"; export { default as View } from "./View"; export { default as WebhookSubscription } from "./WebhookSubscription"; export { default as WebhookDelivery } from "./WebhookDelivery"; export { default as Subscription } from "./Subscription"; ```
/content/code_sandbox/server/models/index.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
320
```xml import React, { useCallback } from 'react'; import AngleLeftIcon from '@rsuite/icons/legacy/AngleLeft'; import AngleRightIcon from '@rsuite/icons/legacy/AngleRight'; import IconButton from '../IconButton'; import Button, { ButtonProps } from '../Button'; import { useClassNames } from '@/internals/hooks'; import { FormattedDate } from '../CustomProvider'; import { RsRefForwardingComponent, WithAsProps } from '@/internals/types'; import { useCalendarContext } from './CalendarContext'; import { useDateRangePickerContext } from '../DateRangePicker/DateRangePickerContext'; export interface CalendarHeaderProps { disabledBackward?: boolean; disabledForward?: boolean; showMeridian?: boolean; onToggleMeridian?: (event: React.MouseEvent) => void; renderTitle?: (date: Date) => React.ReactNode; renderToolbar?: (date: Date) => React.ReactNode; } interface CalendarHeaderPrivateProps extends CalendarHeaderProps, WithAsProps { showDate?: boolean; showMonth?: boolean; showTime?: boolean; disabledTime?: (date: Date) => boolean; onMoveBackward?: () => void; onMoveForward?: () => void; onToggleMonthDropdown?: (event: React.MouseEvent) => void; onToggleTimeDropdown?: (event: React.MouseEvent) => void; } const CalendarHeader: RsRefForwardingComponent<'div', CalendarHeaderPrivateProps> = React.forwardRef((props, ref) => { const { as: Component = 'div', className, classPrefix = 'calendar-header', disabledBackward, disabledForward, showDate, showMeridian, showMonth, showTime, disabledTime, onMoveBackward, onMoveForward, onToggleMeridian, onToggleMonthDropdown, onToggleTimeDropdown, renderTitle: renderTitleProp, renderToolbar, ...rest } = props; const { locale, date = new Date(), format, inline, disabledDate, targetId } = useCalendarContext(); const { isSelectedIdle } = useDateRangePickerContext(); const { prefix, withClassPrefix, merge } = useClassNames(classPrefix); const btnProps: ButtonProps = { appearance: 'subtle', size: inline ? 'sm' : 'xs' }; const getTimeFormat = useCallback(() => { const timeFormat: string[] = []; if (!format) { return ''; } if (/([Hh])/.test(format)) { timeFormat.push(showMeridian ? 'hh' : 'HH'); } if (/m/.test(format)) { timeFormat.push('mm'); } if (/s/.test(format)) { timeFormat.push('ss'); } return timeFormat.join(':'); }, [format, showMeridian]); const getDateFormat = useCallback(() => { if (showMonth) { return locale?.formattedMonthPattern || 'yyyy-MM'; } return 'yyyy'; }, [locale, showMonth]); const renderTitle = useCallback( () => renderTitleProp?.(date) ?? (date && <FormattedDate date={date} formatStr={getDateFormat()} />), [date, getDateFormat, renderTitleProp] ); const dateTitleClasses = prefix('title', 'title-date', { error: disabledDate?.(date) }); const timeTitleClasses = prefix('title', 'title-time', { error: disabledTime?.(date) }); const backwardClass = prefix('backward', { 'btn-disabled': disabledBackward }); const forwardClass = prefix('forward', { 'btn-disabled': disabledForward }); const monthToolbar = ( <div className={prefix('month-toolbar')}> <IconButton {...btnProps} // TODO: aria-label should be translated by i18n aria-label="Previous month" className={backwardClass} onClick={disabledBackward ? undefined : onMoveBackward} icon={<AngleLeftIcon />} /> <Button {...btnProps} aria-label="Select month" id={targetId ? `${targetId}-grid-label` : undefined} className={dateTitleClasses} onClick={onToggleMonthDropdown} > {renderTitle()} </Button> <IconButton {...btnProps} aria-label="Next month" className={forwardClass} onClick={disabledForward ? undefined : onMoveForward} icon={<AngleRightIcon />} /> </div> ); const hasMonth = showDate || showMonth; const classes = merge( className, withClassPrefix({ 'has-month': hasMonth, 'has-time': showTime }) ); // If the date is not selected, the time cannot be selected (it only works in DateRangePicker). const disableSelectTime = typeof isSelectedIdle === 'undefined' ? false : !isSelectedIdle; return ( <Component {...rest} ref={ref} className={classes}> {hasMonth && monthToolbar} {showTime && ( <div className={prefix('time-toolbar')}> <Button {...btnProps} aria-label="Select time" className={timeTitleClasses} onClick={onToggleTimeDropdown} disabled={disableSelectTime} > {date && <FormattedDate date={date} formatStr={getTimeFormat()} />} </Button> {showMeridian && ( <Button {...btnProps} aria-label="Toggle meridian" className={prefix('meridian')} onClick={onToggleMeridian} disabled={disableSelectTime} > {date && <FormattedDate date={date} formatStr="a" />} </Button> )} </div> )} {renderToolbar?.(date)} </Component> ); }); CalendarHeader.displayName = 'CalendarHeader'; export default CalendarHeader; ```
/content/code_sandbox/src/Calendar/CalendarHeader.tsx
xml
2016-06-06T02:27:46
2024-08-16T16:41:54
rsuite
rsuite/rsuite
8,263
1,278
```xml import * as path from 'path'; import { createRequire } from 'module'; import type { Config } from '@ice/shared-config/types'; import { CACHE_DIR, RUNTIME_TMP_DIR } from '../constant.js'; const require = createRequire(import.meta.url); const getDefaultTaskConfig = ({ rootDir, command }): Config => { // basic task config of web task const defaultLogging = command === 'start' ? 'summary' : 'summary assets'; const envReplacement = path.join(rootDir, RUNTIME_TMP_DIR, 'env.ts'); const regeneratorRuntimePath = require.resolve('regenerator-runtime'); return { mode: command === 'start' ? 'development' : 'production', sourceMap: command === 'start' ? 'cheap-module-source-map' : false, cacheDir: path.join(rootDir, CACHE_DIR), alias: { ice: path.join(rootDir, RUNTIME_TMP_DIR, 'index.ts'), 'ice/types': path.join(rootDir, RUNTIME_TMP_DIR, 'type-defines.ts'), '@': path.join(rootDir, 'src'), // set alias for webpack/hot while webpack has been prepacked 'webpack/hot': '@ice/bundles/compiled/webpack/hot', // Get absolute path of `regenerator-runtime`, `@swc/helpers` // so it's unnecessary to add it to project dependencies. 'regenerator-runtime/runtime.js': regeneratorRuntimePath, 'regenerator-runtime': regeneratorRuntimePath, '@swc/helpers': path.dirname(require.resolve('@swc/helpers/package.json')), 'universal-env': envReplacement, '@uni/env': envReplacement, }, assetsManifest: true, fastRefresh: command === 'start', logging: process.env.WEBPACK_LOGGING || defaultLogging, minify: command === 'build', useDevServer: true, }; }; export default getDefaultTaskConfig; ```
/content/code_sandbox/packages/ice/src/plugins/task.ts
xml
2016-11-03T06:59:15
2024-08-16T10:11:29
ice
alibaba/ice
17,815
407
```xml import { Component } from '@angular/core'; @Component({ selector: 'markdown-demo', styleUrls: ['./markdown.component.scss'], templateUrl: './markdown.component.html', }) export class MarkdownDemoComponent { anchor!: string; markdown = ` # Heading (H1) ## Sub Heading (H2) ### Steps (H3) | Tables | Are | Cool | | ------------- |:-------------:| -----:| | **col 3 is** | right-aligned | $1600 | | col 2 is | *centered* | $12 | | zebra stripes | are neat | $1 | `; jumpToH1(): void { this.anchor = 'heading-1'; } jumpToH2(): void { this.anchor = 'heading-2'; } } ```
/content/code_sandbox/apps/docs-app/src/app/content/components/component-demos/markdown/markdown.component.ts
xml
2016-07-11T23:30:52
2024-08-15T15:20:45
covalent
Teradata/covalent
2,228
184