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 <test> <settings> <max_memory_usage>35G</max_memory_usage> </settings> <create_query>CREATE TABLE t (x UInt64, d32 Decimal32(3), d64 Decimal64(4), d128 Decimal128(5)) ENGINE = Memory</create_query> <!-- use less threads and several queries to save memory --> <fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(100000000) SETTINGS max_threads = 2</fill_query> <fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(100000000, 100000000) SETTINGS max_threads = 2</fill_query> <fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(200000000, 100000000) SETTINGS max_threads = 2</fill_query> <fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(300000000, 100000000) SETTINGS max_threads = 2</fill_query> <fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(400000000, 100000000) SETTINGS max_threads = 2</fill_query> <drop_query>DROP TABLE IF EXISTS t</drop_query> <query>SELECT min(d32), max(d32), argMin(x, d32), argMax(x, d32) FROM t</query> <query>SELECT min(d64), max(d64), argMin(x, d64), argMax(x, d64) FROM t</query> <query>SELECT min(d128), max(d128), argMin(x, d128), argMax(x, d128) FROM t</query> <query>SELECT avg(d32), sum(d32), sumWithOverflow(d32) FROM t</query> <query>SELECT avg(d64), sum(d64), sumWithOverflow(d64) FROM t</query> <query>SELECT avg(d128), sum(d128), sumWithOverflow(d128) FROM t</query> <query>SELECT uniq(d32), uniqCombined(d32), uniqExact(d32), uniqHLL12(d32) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT uniq(d64), uniqCombined(d64), uniqExact(d64), uniqHLL12(d64) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT uniq(d128), uniqCombined(d128), uniqExact(d128), uniqHLL12(d128) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT median(d32), medianExact(d32), medianExactWeighted(d32, 2) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT median(d64), medianExact(d64), medianExactWeighted(d64, 2) FROM (SELECT * FROM t LIMIT 1000000)</query> <query>SELECT median(d128), medianExact(d128), medianExactWeighted(d128, 2) FROM (SELECT * FROM t LIMIT 1000000)</query> <query>SELECT quantile(d32), quantileExact(d32), quantileExactWeighted(d32, 2) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT quantile(d64), quantileExact(d64), quantileExactWeighted(d64, 2) FROM (SELECT * FROM t LIMIT 1000000)</query> <query>SELECT quantile(d128), quantileExact(d128), quantileExactWeighted(d128, 2) FROM (SELECT * FROM t LIMIT 1000000)</query> <query>SELECT quantilesExactLow(0.5)(d32) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT quantilesExactHigh(0.5)(d32) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT quantilesExactLow(0.1, 0.5, 0.9)(d32) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT quantilesExactHigh(0.1, 0.5, 0.9)(d32) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT quantilesExact(0.1, 0.9)(d32), quantilesExactWeighted(0.1, 0.9)(d32, 2) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT quantilesExact(0.1, 0.9)(d64), quantilesExactWeighted(0.1, 0.9)(d64, 2) FROM (SELECT * FROM t LIMIT 1000000)</query> <query>SELECT quantilesExact(0.1, 0.9)(d128), quantilesExactWeighted(0.1, 0.9)(d128, 2) FROM (SELECT * FROM t LIMIT 1000000)</query> <query>SELECT varPop(d32), varSamp(d32), stddevPop(d32) FROM t</query> <query>SELECT varPop(d64), varSamp(d64), stddevPop(d64) FROM (SELECT * FROM t LIMIT 10000000)</query> <query>SELECT varPop(d128), varSamp(d128), stddevPop(d128) FROM (SELECT * FROM t LIMIT 10000000)</query> </test> ```
/content/code_sandbox/tests/performance/decimal_aggregates.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
1,306
```xml const foo1: your_sha256_hashoooooo<never> = a; const foo2: your_sha256_hashoooooo<object> = a; const foo3: your_sha256_hashoooooo<undefined> = a; const foo4: your_sha256_hashoooooo<unknown> = a; ```
/content/code_sandbox/tests/format/typescript/typeparams/consistent/typescript-only.ts
xml
2016-11-29T17:13:37
2024-08-16T17:29:57
prettier
prettier/prettier
48,913
64
```xml <?xml version="1.0" encoding="UTF-8"?> <project xsi:schemaLocation="path_to_url path_to_url" xmlns="path_to_url" xmlns:xsi="path_to_url"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>parent</artifactId> <groupId>tlatoolbox</groupId> <version>0.0.1-SNAPSHOT</version> <relativePath>../../pom.xml</relativePath> </parent> <groupId>tlatoolbox</groupId> <artifactId>org.lamport.tla.toolbox.product.product</artifactId> <!-- Release version goes here. --> <version>1.4.0-SNAPSHOT</version> <packaging>eclipse-repository</packaging> <properties> <product.version>${toolbox.version}</product.version> <!-- Format build timestamp to adhere to the Debian package guidelines --> <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format> <product.build>${maven.build.timestamp}</product.build> <!-- Do not include non-code project in Sonar reporting. --> <sonar.skip>true</sonar.skip> </properties> <build> <plugins> <!-- attach the .target file definition to is artifact so it can be referred to below in the target-platform-configuration --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>attach-artifacts</id> <phase>package</phase> <goals> <goal>attach-artifact</goal> </goals> <configuration> <artifacts> <artifact> <file>TLAToolbox.target</file> <type>target</type> <classifier>TLAToolbox</classifier> </artifact> </artifacts> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>tycho-p2-director-plugin</artifactId> <version>${tycho-version}</version> <executions> <execution> <!-- install the product for all configured os/ws/arch environments using p2 director --> <id>materialize-products</id> <phase>package</phase> <goals> <goal>materialize-products</goal> </goals> </execution> <!-- (optional) create product zips (one per os/ws/arch) --> <execution> <id>archive-products</id> <phase>verify</phase> <goals> <goal>archive-products</goal> </goals> </execution> </executions> <!-- (optional) customize the root folder name of the product zip --> <configuration> <products> <product> <id>org.lamport.tla.toolbox.product.product</id> <!-- archiveFileName sets the prefix of the resulting toolbox zip files. It also has to contain the version because the Tycho developers choose adherence to administrative processes over features. The version segment has to be manually increment upon a release. see path_to_url#c22 --> <archiveFileName>TLAToolbox-${product.version}</archiveFileName> <rootFolder>toolbox</rootFolder> <!-- This causes the Toolbox to be packaged as a single Application Bundle on Mac. Applciation Bundles are the default packaging for Mac where the single file can simply be dropped into "Applications". --> <rootFolders><macosx>TLA+ Toolbox.app</macosx></rootFolders> </product> </products> </configuration> </plugin> <!-- Package Toolbox's Linux zip for Debian/Ubuntu --> <plugin> <artifactId>jdeb</artifactId> <groupId>org.vafer</groupId> <version>1.5</version> <executions> <execution> <phase>package</phase> <goals> <goal>jdeb</goal> </goals> <configuration> <deb>${project.build.directory}/TLAToolbox-${product.version}-linux.gtk.amd64.deb</deb> <snapshotExpand>true</snapshotExpand> <verbose>false</verbose> <dataSet> <data> <src>src/deb/usr/share/applications/tla+toolbox.desktop</src> <type>file</type> <mapper> <type>perm</type> <prefix>/usr/share/applications/</prefix> <user>root</user> <group>root</group> </mapper> </data> <data> <src>src/deb/usr/share/mime/packages/tla+toolbox.xml</src> <type>file</type> <mapper> <type>perm</type> <prefix>/usr/share/mime/packages/</prefix> <user>root</user> <group>root</group> </mapper> </data> <data> <src>src/deb/usr/share/icons/hicolor/32x32/apps/tla+toolbox.png</src> <type>file</type> <mapper> <type>perm</type> <prefix>/usr/share/icons/hicolor/32x32/apps/</prefix> <user>root</user> <group>root</group> </mapper> </data> <data> <src>src/deb/usr/share/icons/hicolor/48x48/apps/tla+toolbox.png</src> <type>file</type> <mapper> <type>perm</type> <prefix>/usr/share/icons/hicolor/48x48/apps/</prefix> <user>root</user> <group>root</group> </mapper> </data> <data> <src>${project.build.directory}/products/org.lamport.tla.toolbox.product.product/linux/gtk/x86_64/toolbox</src> <type>directory</type> <!-- Disable Toolbox's built-in update manager. Using the .deb archives is mutually exclusive with the built-in updater. Technically, simply remove p2's complete metadata from final installation. --> <excludes>p2/</excludes> <mapper> <type>perm</type> <prefix>/opt/TLA+Toolbox</prefix> <user>root</user> <group>root</group> </mapper> </data> </dataSet> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> ```
/content/code_sandbox/toolbox/org.lamport.tla.toolbox.product.product/pom.xml
xml
2016-02-02T08:48:27
2024-08-16T16:50:00
tlaplus
tlaplus/tlaplus
2,271
1,595
```xml <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command> <transfer op="reject"> <domain:transfer xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> <domain:name>example.tld</domain:name> <domain:authInfo> <domain:pw roid="JD1234-REP">2fooBAR</domain:pw> </domain:authInfo> </domain:transfer> </transfer> <clTRID>ABC-12345</clTRID> </command> </epp> ```
/content/code_sandbox/core/src/test/resources/google/registry/flows/domain/domain_transfer_reject_contact_authinfo.xml
xml
2016-02-29T20:16:48
2024-08-15T19:49:29
nomulus
google/nomulus
1,685
139
```xml import { $getRoot, CLEAR_EDITOR_COMMAND, ParagraphNode, TextNode } from 'lexical' import { LinkNode } from '@lexical/link' import { getDocxChildrenFromElementNode } from './getDocxChildrenFromElementNode' import { ExternalHyperlink, TextRun } from 'docx' import { createHeadlessEditor } from '@lexical/headless' import { AllNodes } from '../../../../AllNodes' import type { DocxExportContext } from './Context' describe('getDocxChildrenFromElementNode', () => { const editor = createHeadlessEditor({ editable: false, editorState: undefined, namespace: 'export-editor', nodes: AllNodes, onError: console.error, }) it('should get text runs and external hyperlinks', async () => { editor.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined) editor.update( () => { const paragraphNode = new ParagraphNode() const textNode = new TextNode('Hello') const linkNode = new LinkNode('path_to_url const textNode2 = new TextNode('World') paragraphNode.append(textNode) linkNode.append(textNode2) paragraphNode.append(linkNode) $getRoot().append(paragraphNode) }, { discrete: true }, ) const state = editor.getEditorState() const context: DocxExportContext = { state, fetchExternalImageAsBase64: jest.fn() } const paragraphNode = state.read(() => $getRoot().getFirstChildOrThrow<ParagraphNode>()) const children = await getDocxChildrenFromElementNode(paragraphNode, context) expect(children).toHaveLength(2) expect(children[0]).toBeInstanceOf(TextRun) expect(children[1]).toBeInstanceOf(ExternalHyperlink) }) }) ```
/content/code_sandbox/applications/docs-editor/src/app/Conversion/Exporter/DocxExport/LexicalToDocx/getDocxChildrenFromElementNode.spec.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
380
```xml export {}; //# sourceMappingURL=list.test.d.ts.map ```
/content/code_sandbox/public/types/src/scripts/components/list.test.d.ts
xml
2016-03-15T14:02:08
2024-08-15T07:08:50
Choices
Choices-js/Choices
6,092
10
```xml import * as Sentry from "@sentry/node"; import env from "@server/env"; import { AppContext } from "@server/types"; if (env.SENTRY_DSN) { Sentry.init({ dsn: env.SENTRY_DSN, environment: env.ENVIRONMENT, release: env.RELEASE, maxBreadcrumbs: 0, ignoreErrors: [ // These errors are expected in normal running of the application and // don't need to be reported. // Validation "BadRequestError", "SequelizeValidationError", "SequelizeEmptyResultError", "ValidationError", "ForbiddenError", // Authentication "UnauthorizedError", "TeamDomainRequiredError", "GmailAccountCreationError", "AuthRedirectError", "UserSuspendedError", "TooManyRequestsError", ], }); } export function requestErrorHandler(error: any, ctx: AppContext) { // we don't need to report every time a request stops to the bug tracker if (error.code === "EPIPE" || error.code === "ECONNRESET") { return; } if (env.SENTRY_DSN) { Sentry.withScope(function (scope) { const requestId = ctx.headers["x-request-id"]; if (requestId) { scope.setTag("request_id", requestId as string); } const authType = ctx.state?.auth?.type ?? undefined; if (authType) { scope.setTag("auth_type", authType); } const teamId = ctx.state?.auth?.user?.teamId ?? undefined; if (teamId) { scope.setTag("team_id", teamId); } const userId = ctx.state?.auth?.user?.id ?? undefined; if (userId) { scope.setUser({ id: userId, }); } scope.addEventProcessor(function (event) { return Sentry.Handlers.parseRequest(event, ctx.request); }); Sentry.captureException(error); }); } else if (env.ENVIRONMENT !== "test") { // eslint-disable-next-line no-console console.error(error); } } export default Sentry; ```
/content/code_sandbox/server/logging/sentry.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
462
```xml export function applyScaleDefaults(defaults: any): void; ```
/content/code_sandbox/cachecloud-web/src/main/resources/assets/vendor/chart.js/core/core.scale.defaults.d.ts
xml
2016-01-26T05:46:01
2024-08-16T09:41:37
cachecloud
sohutv/cachecloud
8,737
13
```xml import { Component, ChangeDetectionStrategy } from '@angular/core'; import { CalendarEvent, CalendarView, DAYS_OF_WEEK } from 'angular-calendar'; import dayjs from 'dayjs'; import en from 'dayjs/locale/en'; dayjs.locale({ ...en, weekStart: DAYS_OF_WEEK.MONDAY, }); @Component({ selector: 'mwl-demo-component', changeDetection: ChangeDetectionStrategy.OnPush, templateUrl: 'template.html', }) export class DemoComponent { view: CalendarView = CalendarView.Month; viewDate: Date = new Date(); events: CalendarEvent[] = []; } ```
/content/code_sandbox/projects/demos/app/demo-modules/dayjs/component.ts
xml
2016-04-26T15:19:33
2024-08-08T14:23:40
angular-calendar
mattlewis92/angular-calendar
2,717
129
```xml /** * @license * * 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 type { TypedArray } from "#src/util/array.js"; import type { Uint64 } from "#src/util/uint64.js"; export function getOctreeChildIndex(x: number, y: number, z: number) { return (x & 1) | ((y << 1) & 2) | ((z << 2) & 4); } /** * Decodes a "compressed" 3-d morton index. * * Decoded bit `i` of `x`, `y`, and `z` is at bit `i + min(i, yBits) + min(i, zBits)`, `i + min(i + * 1, xBits) + min(i, zBits)`, and `i + min(i + 1, xBits) + min(i + 1, zBits)` of `zindex`, * respectively, for `i` in `[0, xBits)`, `[0, yBits)`, `[0, zBits)`, respectively. */ export function decodeZIndexCompressed( zindex: Uint64, xBits: number, yBits: number, zBits: number, ): Uint32Array { const maxCoordBits = Math.max(xBits, yBits, zBits); let inputBit = 0; let inputValue = zindex.low; let x = 0; let y = 0; let z = 0; for (let coordBit = 0; coordBit < maxCoordBits; ++coordBit) { if (coordBit < xBits) { const bit = (inputValue >>> inputBit) & 1; x |= bit << coordBit; if (inputBit === 31) { inputBit = 0; inputValue = zindex.high; } else { ++inputBit; } } if (coordBit < yBits) { const bit = (inputValue >>> inputBit) & 1; y |= bit << coordBit; if (inputBit === 31) { inputBit = 0; inputValue = zindex.high; } else { ++inputBit; } } if (coordBit < zBits) { const bit = (inputValue >>> inputBit) & 1; z |= bit << coordBit; if (inputBit === 31) { inputBit = 0; inputValue = zindex.high; } else { ++inputBit; } } } return Uint32Array.of(x, y, z); } export function encodeZIndexCompressed3d( zindex: Uint64, xBits: number, yBits: number, zBits: number, x: number, y: number, z: number, ): Uint64 { const maxBits = Math.max(xBits, yBits, zBits); let outputBit = 0; let outputNum = 0; let isHigh = false; function writeBit(b: number): void { outputNum |= (b & 1) << outputBit; if (++outputBit === 32) { zindex.low = outputNum >>> 0; outputNum = 0; outputBit = 0; isHigh = true; } } for (let bit = 0; bit < maxBits; ++bit) { if (bit < xBits) { writeBit((x >> bit) & 1); } if (bit < yBits) { writeBit((y >> bit) & 1); } if (bit < zBits) { writeBit((z >> bit) & 1); } } if (isHigh) { zindex.high = outputNum >>> 0; } else { zindex.high = 0; zindex.low = outputNum >>> 0; } return zindex; } export function encodeZIndexCompressed( zindex: Uint64, position: TypedArray, shape: TypedArray, ): Uint64 { let outputBit = 0; const rank = position.length; let outputNum = 0; let isHigh = false; function writeBit(b: number): void { outputNum |= (b & 1) << outputBit; if (++outputBit === 32) { zindex.low = outputNum >>> 0; outputNum = 0; outputBit = 0; isHigh = true; } } for (let bit = 0; bit < 32; ++bit) { for (let dim = 0; dim < rank; ++dim) { if ((shape[dim] - 1) >>> bit) { writeBit(position[dim] >>> bit); } } } if (isHigh) { zindex.high = outputNum >>> 0; } else { zindex.high = 0; zindex.low = outputNum >>> 0; } return zindex; } function lessMsb(a: number, b: number) { return a < b && a < (a ^ b); } /** * Returns `true` if `(x0, y0, z0)` occurs before `(x1, y1, z1)` in Z-curve order. */ export function zorder3LessThan( x0: number, y0: number, z0: number, x1: number, y1: number, z1: number, ): boolean { let mostSignificant0 = z0; let mostSignificant1 = z1; if (lessMsb(mostSignificant0 ^ mostSignificant1, y0 ^ y1)) { mostSignificant0 = y0; mostSignificant1 = y1; } if (lessMsb(mostSignificant0 ^ mostSignificant1, x0 ^ x1)) { mostSignificant0 = x0; mostSignificant1 = x1; } return mostSignificant0 < mostSignificant1; } ```
/content/code_sandbox/src/util/zorder.ts
xml
2016-05-27T02:37:25
2024-08-16T07:24:25
neuroglancer
google/neuroglancer
1,045
1,369
```xml import { useQuery } from '@tanstack/react-query'; import { withError } from '@/react-tools/react-query'; import { getPublicSettings } from '../settings.service'; import { PublicSettingsResponse } from '../types'; import { queryKeys } from './queryKeys'; export function usePublicSettings<T = PublicSettingsResponse>({ enabled, select, onSuccess, }: { select?: (settings: PublicSettingsResponse) => T; enabled?: boolean; onSuccess?: (data: T) => void; } = {}) { return useQuery(queryKeys.public(), getPublicSettings, { select, ...withError('Unable to retrieve public settings'), enabled, onSuccess, }); } ```
/content/code_sandbox/app/react/portainer/settings/queries/usePublicSettings.ts
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
147
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>17B25c</string> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>ACPIBatteryManager</string> <key>CFBundleGetInfoString</key> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.AppleSmartBatteryManager</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>ACPIBatteryManager</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.81.4</string> <key>CFBundleSignature</key> <string>????</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.81.4</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9A235</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>17A360</string> <key>DTSDKName</key> <string>macosx10.13</string> <key>DTXcode</key> <string>0900</string> <key>DTXcodeBuild</key> <string>9A235</string> <key>IOKitPersonalities</key> <dict> <key>ACPI AC Adapter</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.AppleSmartBatteryManager</string> <key>IOClass</key> <string>rehab_ACPIACAdapter</string> <key>IONameMatch</key> <string>ACPI0003</string> <key>IOProbeScore</key> <integer>1000</integer> <key>IOProviderClass</key> <string>IOACPIPlatformDevice</string> </dict> <key>ACPI Battery Manager</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.AppleSmartBatteryManager</string> <key>Configuration</key> <dict> <key>Correct16bitSignedCurrentRate</key> <true/> <key>CorrectCorruptCapacities</key> <true/> <key>CurrentDischargeRateMax</key> <integer>20000</integer> <key>EstimateCycleCountDivisor</key> <integer>6</integer> <key>FirstPollDelay</key> <integer>12000</integer> <key>StartupDelay</key> <integer>0</integer> <key>UseDesignVoltageForCurrentCapacity</key> <false/> <key>UseDesignVoltageForDesignCapacity</key> <false/> <key>UseDesignVoltageForMaxCapacity</key> <false/> <key>UseExtendedBatteryInformationMethod</key> <false/> <key>UseExtraBatteryInformationMethod</key> <false/> </dict> <key>IOClass</key> <string>AppleSmartBatteryManager</string> <key>IONameMatch</key> <string>PNP0C0A</string> <key>IOProbeScore</key> <integer>1000</integer> <key>IOProviderClass</key> <string>IOACPIPlatformDevice</string> </dict> <key>ACPI Battery Tracker</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.AppleSmartBatteryManager</string> <key>IOClass</key> <string>rehab_BatteryTracker</string> <key>IOMatchCategory</key> <string>rehab_BatteryTracker</string> <key>IOProviderClass</key> <string>IOResources</string> <key>IOResourceMatch</key> <string>IOKit</string> </dict> </dict> <key>OSBundleLibraries</key> <dict> <key>com.apple.iokit.IOACPIFamily</key> <string>1.0d1</string> <key>com.apple.kpi.iokit</key> <string>9.0</string> <key>com.apple.kpi.libkern</key> <string>9.0</string> </dict> <key>OSBundleRequired</key> <string>Root</string> <key>Source Code</key> <string>path_to_url </dict> </plist> ```
/content/code_sandbox/Clover-Configs/Lenovo/ThinkPad X270 /CLOVER/kexts/Other/ACPIBatteryManager.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
1,241
```xml import { setContext } from '@apollo/client/link/context'; import { ApolloLink } from '@apollo/client/link/core'; import { createPersistedQueryLink as _createPersistedQueryLink } from '@apollo/client/link/persisted-queries'; export type Options = Parameters<typeof _createPersistedQueryLink>[0]; const transformLink = setContext((_, context) => { const ctx: any = {}; if (context.http) { ctx.includeQuery = context.http.includeQuery; ctx.includeExtensions = context.http.includeExtensions; } if (context.fetchOptions && context.fetchOptions.method) { ctx.method = context.fetchOptions.method; } return ctx; }); export const createPersistedQueryLink = (options: Options) => ApolloLink.from([_createPersistedQueryLink(options), transformLink as any]); ```
/content/code_sandbox/packages/apollo-angular/persisted-queries/src/index.ts
xml
2016-04-16T00:10:50
2024-08-15T11:41:24
apollo-angular
kamilkisiela/apollo-angular
1,497
175
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>$(CurrentTargetFramework)</TargetFramework> <ProjectGuid>{C91F7F4C-47ED-4D1C-8990-B2E886B0FAD9}</ProjectGuid> <EnableDefaultItems>false</EnableDefaultItems> </PropertyGroup> <!-- Host configuration properties Keep this list in the same order as the configProperties in GivenThatWeWantToPublishAProjectWithAllFeatures. --> <PropertyGroup> <VerifyDependencyInjectionOpenGenericServiceTrimmability>true</VerifyDependencyInjectionOpenGenericServiceTrimmability> <_AggressiveAttributeTrimming>true</_AggressiveAttributeTrimming> <_DefaultValueAttributeSupport>true</_DefaultValueAttributeSupport> <_DesignerHostSupport>true</_DesignerHostSupport> <_ComObjectDescriptorSupport>false</_ComObjectDescriptorSupport> <DebuggerSupport>true</DebuggerSupport> <MetricsSupport>false</MetricsSupport> <StackTraceSupport>false</StackTraceSupport> <EventSourceSupport>false</EventSourceSupport> <_WinFormsUITypeEditorSupport>true</_WinFormsUITypeEditorSupport> <InvariantGlobalization>true</InvariantGlobalization> <PredefinedCulturesOnly>true</PredefinedCulturesOnly> <ConcurrentGarbageCollection>false</ConcurrentGarbageCollection> <ServerGarbageCollection>true</ServerGarbageCollection> <RetainVMGarbageCollection>false</RetainVMGarbageCollection> <HttpActivityPropagationSupport>false</HttpActivityPropagationSupport> <UseNativeHttpHandler>true</UseNativeHttpHandler> <_UseManagedNtlm>true</_UseManagedNtlm> <MetadataUpdaterSupport>false</MetadataUpdaterSupport> <NullabilityInfoContextSupport>false</NullabilityInfoContextSupport> <CustomResourceTypesSupport>false</CustomResourceTypesSupport> <UseSystemResourceKeys>true</UseSystemResourceKeys> <DynamicCodeSupport>true</DynamicCodeSupport> <BuiltInComInteropSupport>false</BuiltInComInteropSupport> <_EnableConsumingManagedCodeFromNativeHosting>false</_EnableConsumingManagedCodeFromNativeHosting> <EnableCppCLIHostActivation>false</EnableCppCLIHostActivation> <EnableUnsafeBinaryFormatterSerialization>false</EnableUnsafeBinaryFormatterSerialization> <TieredCompilation>true</TieredCompilation> <TieredCompilationQuickJit>true</TieredCompilationQuickJit> <TieredCompilationQuickJitForLoops>true</TieredCompilationQuickJitForLoops> <TieredPGO>true</TieredPGO> <StartupHookSupport>false</StartupHookSupport> <EnableUnsafeUTF7Encoding>false</EnableUnsafeUTF7Encoding> <JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault> <AutoreleasePoolSupport>false</AutoreleasePoolSupport> <ThreadPoolMinThreads>2</ThreadPoolMinThreads> <ThreadPoolMaxThreads>9</ThreadPoolMaxThreads> <UseWindowsThreadPool>true</UseWindowsThreadPool> <_ActiveXImplSupport>true</_ActiveXImplSupport> <_WinFormsBindingSupport>true</_WinFormsBindingSupport> <_WinFormsDesignTimeFeaturesSupport>true</_WinFormsDesignTimeFeaturesSupport> <_UseComponentModelRegisteredTypes>false</_UseComponentModelRegisteredTypes> <_WinFormsImageIndexConverterSupport>true</_WinFormsImageIndexConverterSupport> <_MdiWindowDialogSupport>true</_MdiWindowDialogSupport> <XmlResolverIsNetworkingEnabledByDefault>false</XmlResolverIsNetworkingEnabledByDefault> </PropertyGroup> <ItemGroup> <Compile Include="Program.cs" /> <Compile Include="CompileCopyToOutput.cs"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Compile> <EmbeddedResource Include="Resource1.resx"> <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resource1.Designer.cs</LastGenOutput> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> <EmbeddedResource Include="**\*.resx" Exclude="Resource1.resx"/> <Content Include="ContentAlways.txt"> <CopyToPublishDirectory>Always</CopyToPublishDirectory> </Content> <Content Include="ContentPreserveNewest.txt"> <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory> </Content> <Content Include="CopyOutputNotPublish.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToPublishDirectory>Never</CopyToPublishDirectory> </Content> <None Include="NoneCopyOutputAlways.txt"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> <None Include="NoneCopyOutputNever.txt"> <CopyToOutputDirectory>Never</CopyToOutputDirectory> </None> <None Include="NoneCopyOutputPreserveNewest.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup> <ItemGroup> <ProjectReference Include="../TestLibrary/TestLibrary.csproj" /> </ItemGroup> <ItemGroup> <!-- The TestLibrary has a hard dependency on Newtonsoft.Json. The TestApp has a PrivateAssets=All dependency on Microsoft.Extensions.DependencyModel. Microsoft.Extensions.DependencyModel depends on Newtonsoft.Json. Testing that Newtonsoft.Json doesn't get excluded since a P2P reference has a hard dependency on it. --> <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="1.0.0" PrivateAssets="All" /> <!-- Has satellite assembly --> <PackageReference Include="Humanizer" Version="2.8.26" /> </ItemGroup> </Project> ```
/content/code_sandbox/test/TestAssets/TestProjects/KitchenSink/TestApp/TestApp.csproj
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
1,273
```xml import { MockProxy, any } from "jest-mock-extended"; import { MigrationHelper } from "../migration-helper"; import { mockMigrationHelper } from "../migration-helper.spec"; import { ANONYMOUS_APP_ID_KEY, APP_ID_KEY, AppIdMigrator, } from "./33-move-app-id-to-state-providers"; function exampleJSON() { return { appId: "appId", anonymousAppId: "anonymousAppId", otherStuff: "otherStuff1", }; } function missingAppIdJSON() { return { anonymousAppId: "anonymousAppId", otherStuff: "otherStuff1", }; } function missingAnonymousAppIdJSON() { return { appId: "appId", otherStuff: "otherStuff1", }; } function missingBothJSON() { return { otherStuff: "otherStuff1", }; } function rollbackJSON() { return { global_applicationId_appId: "appId", global_applicationId_anonymousAppId: "anonymousAppId", otherStuff: "otherStuff1", }; } describe("AppIdMigrator", () => { let helper: MockProxy<MigrationHelper>; let sut: AppIdMigrator; describe("migrate with both ids", () => { beforeEach(() => { helper = mockMigrationHelper(exampleJSON(), 32); sut = new AppIdMigrator(32, 33); }); it("removes appId", async () => { await sut.migrate(helper); expect(helper.set).toHaveBeenCalledWith("appId", null); }); it("removes anonymousAppId", async () => { await sut.migrate(helper); expect(helper.set).toHaveBeenCalledWith("anonymousAppId", null); }); it("sets appId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).toHaveBeenCalledWith(APP_ID_KEY, "appId"); }); it("sets anonymousAppId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).toHaveBeenCalledWith(ANONYMOUS_APP_ID_KEY, "anonymousAppId"); }); }); describe("migrate with missing appId", () => { beforeEach(() => { helper = mockMigrationHelper(missingAppIdJSON(), 32); sut = new AppIdMigrator(32, 33); }); it("does not set appId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(APP_ID_KEY, any()); }); it("removes anonymousAppId", async () => { await sut.migrate(helper); expect(helper.set).toHaveBeenCalledWith("anonymousAppId", null); }); it("does not set appId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(APP_ID_KEY, any()); }); it("sets anonymousAppId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).toHaveBeenCalledWith(ANONYMOUS_APP_ID_KEY, "anonymousAppId"); }); }); describe("migrate with missing anonymousAppId", () => { beforeEach(() => { helper = mockMigrationHelper(missingAnonymousAppIdJSON(), 32); sut = new AppIdMigrator(32, 33); }); it("sets appId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).toHaveBeenCalledWith(APP_ID_KEY, "appId"); }); it("does not set anonymousAppId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(ANONYMOUS_APP_ID_KEY, any()); }); it("removes appId", async () => { await sut.migrate(helper); expect(helper.set).toHaveBeenCalledWith("appId", null); }); it("does not remove anonymousAppId", async () => { await sut.migrate(helper); expect(helper.set).not.toHaveBeenCalledWith("anonymousAppId", any()); }); }); describe("migrate with missing appId and anonymousAppId", () => { beforeEach(() => { helper = mockMigrationHelper(missingBothJSON(), 32); sut = new AppIdMigrator(32, 33); }); it("does not set appId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(APP_ID_KEY, any()); }); it("does not set anonymousAppId", async () => { await sut.migrate(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(ANONYMOUS_APP_ID_KEY, any()); }); it("does not remove appId", async () => { await sut.migrate(helper); expect(helper.set).not.toHaveBeenCalledWith("appId", any()); }); it("does not remove anonymousAppId", async () => { await sut.migrate(helper); expect(helper.set).not.toHaveBeenCalledWith("anonymousAppId", any()); }); }); describe("rollback with both Ids", () => { beforeEach(() => { helper = mockMigrationHelper(rollbackJSON(), 33); sut = new AppIdMigrator(32, 33); }); it("removes appId", async () => { await sut.rollback(helper); expect(helper.setToGlobal).toHaveBeenCalledWith(APP_ID_KEY, null); }); it("sets appId", async () => { await sut.rollback(helper); expect(helper.set).toHaveBeenCalledWith("appId", "appId"); }); it("removes anonymousAppId", async () => { await sut.rollback(helper); expect(helper.setToGlobal).toHaveBeenCalledWith(ANONYMOUS_APP_ID_KEY, null); }); it("sets anonymousAppId", async () => { await sut.rollback(helper); expect(helper.set).toHaveBeenCalledWith("anonymousAppId", "anonymousAppId"); }); }); describe("rollback missing both Ids", () => { beforeEach(() => { helper = mockMigrationHelper(missingBothJSON(), 33); sut = new AppIdMigrator(32, 33); }); it("does not set appId for providers", async () => { await sut.rollback(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(APP_ID_KEY, any()); }); it("does not set anonymousAppId for providers", async () => { await sut.rollback(helper); expect(helper.setToGlobal).not.toHaveBeenCalledWith(ANONYMOUS_APP_ID_KEY, any()); }); it("does not revert appId", async () => { await sut.rollback(helper); expect(helper.set).not.toHaveBeenCalledWith("appId", any()); }); it("does not revert anonymousAppId", async () => { await sut.rollback(helper); expect(helper.set).not.toHaveBeenCalledWith("anonymousAppId", any()); }); }); }); ```
/content/code_sandbox/libs/common/src/state-migrations/migrations/33-move-app-id-to-state-providers.spec.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
1,471
```xml import type { TreeViewVisibilityChangeEvent } from 'vscode'; import { Disposable } from 'vscode'; import type { TreeViewSubscribableNodeTypes } from '../../../constants'; import type { GitUri } from '../../../git/gitUri'; import { gate } from '../../../system/decorators/gate'; import { debug } from '../../../system/decorators/log'; import { weakEvent } from '../../../system/event'; import type { View } from '../../viewBase'; import { CacheableChildrenViewNode } from './cacheableChildrenViewNode'; import type { ViewNode } from './viewNode'; import { canAutoRefreshView } from './viewNode'; export abstract class SubscribeableViewNode< Type extends TreeViewSubscribableNodeTypes = TreeViewSubscribableNodeTypes, TView extends View = View, TChild extends ViewNode = ViewNode, State extends object = any, > extends CacheableChildrenViewNode<Type, TView, TChild, State> { protected disposable: Disposable; protected subscription: Promise<Disposable | undefined> | undefined; protected loaded: boolean = false; constructor(type: Type, uri: GitUri, view: TView, parent?: ViewNode) { super(type, uri, view, parent); const disposables = [ weakEvent(this.view.onDidChangeVisibility, this.onVisibilityChanged, this), // weak(this.view.onDidChangeNodeCollapsibleState, this.onNodeCollapsibleStateChanged, this), ]; if (canAutoRefreshView(this.view)) { disposables.push(weakEvent(this.view.onDidChangeAutoRefresh, this.onAutoRefreshChanged, this)); } const getTreeItem = this.getTreeItem; this.getTreeItem = function (this: SubscribeableViewNode<Type, TView>) { this.loaded = true; void this.ensureSubscription(); return getTreeItem.apply(this); }; const getChildren = this.getChildren; this.getChildren = function (this: SubscribeableViewNode<Type, TView>) { this.loaded = true; void this.ensureSubscription(); return getChildren.apply(this); }; this.disposable = Disposable.from(...disposables); } override dispose() { super.dispose(); void this.unsubscribe(); this.disposable?.dispose(); } @debug() override async triggerChange(reset: boolean = false, force: boolean = false): Promise<void> { if (!this.loaded || this._disposed) return; if (reset && !this.view.visible) { this._pendingReset = reset; } await super.triggerChange(reset, force); } private _canSubscribe: boolean = true; protected get canSubscribe(): boolean { return this._canSubscribe && !this._disposed; } protected set canSubscribe(value: boolean) { if (this._canSubscribe === value) return; this._canSubscribe = value; void this.ensureSubscription(); if (value) { void this.triggerChange(); } } private _etag: number | undefined; protected abstract etag(): number; private _pendingReset: boolean = false; private get requiresResetOnVisible(): boolean { let reset = this._pendingReset; this._pendingReset = false; const etag = this.etag(); if (etag !== this._etag) { this._etag = etag; reset = true; } return reset; } protected abstract subscribe(): Disposable | undefined | Promise<Disposable | undefined>; @debug() protected async unsubscribe(): Promise<void> { this._etag = this.etag(); if (this.subscription != null) { const subscriptionPromise = this.subscription; this.subscription = undefined; (await subscriptionPromise)?.dispose(); } } @debug() protected onAutoRefreshChanged() { this.onVisibilityChanged({ visible: this.view.visible }); } // protected onParentCollapsibleStateChanged?(state: TreeItemCollapsibleState): void; // protected onCollapsibleStateChanged?(state: TreeItemCollapsibleState): void; // protected collapsibleState: TreeItemCollapsibleState | undefined; // protected onNodeCollapsibleStateChanged(e: TreeViewNodeCollapsibleStateChangeEvent<ViewNode>) { // if (e.element === this) { // this.collapsibleState = e.state; // if (this.onCollapsibleStateChanged !== undefined) { // this.onCollapsibleStateChanged(e.state); // } // } else if (e.element === this.parent) { // if (this.onParentCollapsibleStateChanged !== undefined) { // this.onParentCollapsibleStateChanged(e.state); // } // } // } @debug() protected onVisibilityChanged(e: TreeViewVisibilityChangeEvent) { void this.ensureSubscription(); if (e.visible) { void this.triggerChange(this.requiresResetOnVisible); } } @gate() @debug() async ensureSubscription() { // We only need to subscribe if we are visible and if auto-refresh enabled (when supported) if (!this.canSubscribe || !this.view.visible || (canAutoRefreshView(this.view) && !this.view.autoRefresh)) { await this.unsubscribe(); return; } // If we already have a subscription, just kick out if (this.subscription != null) return; this.subscription = Promise.resolve(this.subscribe()); void (await this.subscription); } @gate() @debug() async resetSubscription() { await this.unsubscribe(); await this.ensureSubscription(); } } ```
/content/code_sandbox/src/views/nodes/abstract/subscribeableViewNode.ts
xml
2016-08-08T14:50:30
2024-08-15T21:25:09
vscode-gitlens
gitkraken/vscode-gitlens
8,889
1,180
```xml import isWildcardAlias from './is-wildcard-alias'; export default function extractDomain(alias: string) { return isWildcardAlias(alias) ? alias.slice(2) : alias; } ```
/content/code_sandbox/packages/cli/src/util/alias/extract-domain.ts
xml
2016-09-09T01:12:08
2024-08-16T17:39:45
vercel
vercel/vercel
12,545
41
```xml <?xml version="1.0" encoding="utf-8"?> <!-- ~ ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <resources> <string name="icon_content_description">Icne de bote de dialogue</string> </resources> ```
/content/code_sandbox/lib/java/com/google/android/material/dialog/res/values-fr-rCA/strings.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
89
```xml <?xml version="1.0" encoding="utf-8"?> <Project> <PropertyGroup> <OutputType>Exe</OutputType> <DefineConstants>$(DefineConstants);NET</DefineConstants> <RootNamespace>xcframeworktest</RootNamespace> <RootTestsDirectory>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)\..\..'))</RootTestsDirectory> <TestLibrariesDirectory>$(RootTestsDirectory)\test-libraries</TestLibrariesDirectory> <FrameworkTestDirectory>$(RootTestsDirectory)\xcframework-test</FrameworkTestDirectory> <!-- Don't remove native symbols, because it makes debugging native crashes harder --> <MtouchNoSymbolStrip>true</MtouchNoSymbolStrip> <DefineConstants Condition="'$(Configuration)' == 'Debug'">$(DefineConstants);DEBUG</DefineConstants> <LangVersion>latest</LangVersion> </PropertyGroup> <Import Project="$(RootTestsDirectory)/common/shared-dotnet.csproj" /> <ItemGroup> <ProjectReference Include="$(RootTestsDirectory)\bindings-xcframework-test\dotnet\$(_PlatformName)\bindings-xcframework-test.csproj" /> </ItemGroup> <ItemGroup> <BundleResource Include="$(FrameworkTestDirectory)\iOS\Resources\Default-568h%402x.png"> <Link>Resources\Default-568h%402x.png</Link> </BundleResource> </ItemGroup> <ItemGroup> <Compile Include="$(RootTestsDirectory)\common\AppDelegate.cs" Condition="!$(TargetFramework.EndsWith('-macos'))" /> <Compile Include="$(FrameworkTestDirectory)\iOS\XCFrameworkTests.cs" /> <Compile Include="$(RootTestsDirectory)\common\mac\MacMain.cs" Condition="$(TargetFramework.EndsWith('-macos'))" Link="MacMain.cs" /> <Compile Include="$(RootTestsDirectory)\common\TestAssemblyLoader.cs" /> <Compile Include="$(RootTestsDirectory)\common\TestRuntime.cs"> <Link>TestRuntime.cs</Link> </Compile> <Compile Include="$(RootTestsDirectory)\..\tools\common\ApplePlatform.cs"> <Link>ApplePlatform.cs</Link> </Compile> <Compile Include="$(RootTestsDirectory)\..\tools\common\SdkVersions.cs"> <Link>SdkVersions.cs</Link> </Compile> </ItemGroup> </Project> ```
/content/code_sandbox/tests/xcframework-test/dotnet/shared.csproj
xml
2016-04-20T18:24:26
2024-08-16T13:29:19
xamarin-macios
xamarin/xamarin-macios
2,436
509
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file path_to_url Unless required by applicable law or agreed to in writing, "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY specific language governing permissions and limitations --> <!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "map.dtd"> <map id="impala"> <title>Apache Impala Guide</title> <topicmeta> <prodinfo audience="PDF" conref="shared/ImpalaVariables.xml#impala_vars/prodinfo_for_html"> <prodname/> <vrmlist> <vrm version="version_dlq_gry_sm"/> </vrmlist> </prodinfo> <prodinfo audience="HTML" conref="shared/ImpalaVariables.xml#impala_vars/prodinfo_for_pdf"> <prodname/> <vrmlist> <vrm version="version_dlq_gry_sm"/> </vrmlist> </prodinfo> </topicmeta> <!-- Here is the former site of the Release Notes. Experimenting with moving those to the end for better PDF experience. --> <!-- See if there's a way to move include the Release Notes here in HTML, but after Installing/Using for PDF. --> <!-- This is the former contents of Installing-and-Using-Impala_xi42979.ditamap. --> <topicref href="topics/impala_intro.xml" audience="standalone"/> <!-- Look at how this section works in the 5.2 library, esp. 'components' which AIUI is reused elsewhere. --> <topicref href="topics/impala_concepts.xml"> <topicref href="topics/impala_components.xml"/> <topicref href="topics/impala_development.xml"/> <topicref href="topics/impala_hadoop.xml"/> </topicref> <topicref href="topics/impala_planning.xml"> <topicref href="topics/impala_prereqs.xml"/> <!-- Removed per Alan Choi's request on 4/18/2018 <topicref href="topics/impala_cluster_sizing.xml"/> --> <topicref href="topics/impala_schema_design.xml"/> </topicref> <topicref audience="standalone" href="topics/impala_install.xml"> <!-- Removed when Hue docs were removed from main library. Might be worth resurrecting someday as general Impala+Hue topic. --> <!-- <topicref href="impala_hue_xi20559.xml"/> --> </topicref> <topicref audience="standalone" href="topics/impala_config.xml"> <topicref href="topics/impala_config_performance.xml"/> </topicref> <topicref audience="standalone" href="topics/impala_upgrading.xml"/> <topicref audience="standalone" href="topics/impala_processes.xml"> <topicref href="topics/impala_config_options.xml"/> </topicref> <topicref href="topics/impala_tutorial.xml"/> <topicref href="topics/impala_admin.xml"> <topicref href="topics/impala_timeouts.xml"/> <topicref href="topics/impala_ha.xml"> <topicref href="topics/impala_ha_statestore.xml"/> <topicref href="topics/impala_ha_catalog.xml"/> </topicref> <topicref href="topics/impala_proxy.xml"/> <topicref href="topics/impala_disk_space.xml"/> <topicref audience="integrated" href="topics/impala_auditing.xml"/> <topicref audience="integrated" href="topics/impala_lineage.xml"/> </topicref> <topicref audience="standalone" href="topics/impala_security.xml"> <topicref href="topics/impala_security_guidelines.xml"/> <topicref href="topics/impala_security_files.xml"/> <topicref href="topics/impala_security_install.xml"/> <topicref href="topics/impala_security_metastore.xml"/> <topicref href="topics/impala_security_webui.xml"/> <topicref href="topics/impala_ssl.xml"/> <topicref href="topics/impala_authorization.xml"/> <topicref href="topics/impala_authentication.xml"> <topicref href="topics/impala_kerberos.xml"/> <topicref href="topics/impala_ldap.xml"/> <topicref href="topics/impala_mixed_security.xml"/> <topicref href="topics/impala_delegation.xml"/> </topicref> <topicref href="topics/impala_auditing.xml"/> <topicref href="topics/impala_lineage.xml"/> </topicref> <topicref href="topics/impala_langref.xml"> <topicref href="topics/impala_comments.xml"/> <topicref href="topics/impala_datatypes.xml"> <topicref href="topics/impala_array.xml"/> <topicref href="topics/impala_bigint.xml"/> <topicref href="topics/impala_boolean.xml"/> <topicref href="topics/impala_char.xml"/> <topicref href="topics/impala_date.xml"/> <topicref href="topics/impala_decimal.xml"/> <topicref href="topics/impala_double.xml"/> <topicref href="topics/impala_float.xml"/> <topicref href="topics/impala_int.xml"/> <topicref href="topics/impala_map.xml"/> <topicref href="topics/impala_real.xml"/> <topicref href="topics/impala_smallint.xml"/> <topicref href="topics/impala_string.xml"/> <topicref href="topics/impala_struct.xml"/> <topicref href="topics/impala_timestamp.xml"> <topicref href="topics/impala_custom_timezones.xml"/> </topicref> <topicref href="topics/impala_tinyint.xml"/> <topicref href="topics/impala_varchar.xml"/> <topicref href="topics/impala_complex_types.xml"> <topicref href="topics/impala_queryingarrays.xml"/> <topicref href="topics/impala_unnest_views.xml"/> </topicref> </topicref> <topicref href="topics/impala_literals.xml"/> <topicref href="topics/impala_operators.xml"/> <topicref href="topics/impala_schema_objects.xml"> <topicref href="topics/impala_aliases.xml"/> <topicref href="topics/impala_databases.xml"/> <topicref audience="hidden" href="topics/impala_data_sources.xml"/> <topicref href="topics/impala_functions_overview.xml"/> <topicref href="topics/impala_identifiers.xml"/> <topicref href="topics/impala_tables.xml"/> <topicref href="topics/impala_views.xml"/> </topicref> <topicref href="topics/impala_transactions.xml"/> <topicref href="topics/impala_langref_sql.xml"> <topicref href="topics/impala_ddl.xml"/> <topicref href="topics/impala_dml.xml"/> <topicref href="topics/impala_alter_database.xml"/> <topicref href="topics/impala_alter_table.xml"/> <topicref href="topics/impala_alter_view.xml"/> <topicref href="topics/impala_comment.xml"/> <topicref href="topics/impala_compute_stats.xml"/> <topicref audience="hidden" href="topics/impala_create_data_source.xml"/> <topicref href="topics/impala_create_database.xml"/> <topicref href="topics/impala_create_function.xml"/> <topicref href="topics/impala_create_role.xml"/> <topicref href="topics/impala_create_table.xml"/> <topicref href="topics/impala_create_view.xml"/> <topicref href="topics/impala_delete.xml"/> <topicref href="topics/impala_describe.xml"/> <topicref audience="hidden" href="topics/impala_drop_data_source.xml"/> <topicref href="topics/impala_drop_database.xml"/> <topicref href="topics/impala_drop_function.xml"/> <topicref href="topics/impala_drop_role.xml"/> <topicref href="topics/impala_drop_stats.xml"/> <topicref href="topics/impala_drop_table.xml"/> <topicref href="topics/impala_drop_view.xml"/> <topicref href="topics/impala_explain.xml"/> <topicref href="topics/impala_grant.xml"/> <topicref href="topics/impala_insert.xml"/> <topicref href="topics/impala_invalidate_metadata.xml"/> <topicref href="topics/impala_load_data.xml"/> <topicref href="topics/impala_refresh.xml"/> <topicref href="topics/impala_refresh_authorization.xml"/> <topicref href="topics/impala_refresh_functions.xml"/> <topicref href="topics/impala_revoke.xml"/> <topicref href="topics/impala_select.xml"> <topicref href="topics/impala_joins.xml"/> <topicref href="topics/impala_order_by.xml"/> <topicref href="topics/impala_group_by.xml"/> <topicref href="topics/impala_having.xml"/> <topicref href="topics/impala_limit.xml"/> <topicref href="topics/impala_offset.xml"/> <topicref href="topics/impala_union.xml"/> <topicref href="topics/impala_subqueries.xml"/> <topicref rev="IMPALA-5309" href="topics/impala_tablesample.xml"/> <topicref href="topics/impala_with.xml"/> <topicref href="topics/impala_distinct.xml"/> </topicref> <topicref href="topics/impala_set.xml"> <topicref href="topics/impala_abort_on_error.xml"/> <topicref href="topics/impala_allow_erasure_coded_files.xml"/> <topicref href="topics/impala_allow_unsupported_formats.xml"/> <topicref href="topics/impala_appx_count_distinct.xml"/> <topicref href="topics/impala_batch_size.xml"/> <topicref href="topics/impala_broadcast_bytes_limit.xml"/> <topicref rev="2.10.0 IMPALA-3200" href="topics/impala_buffer_pool_limit.xml"/> <topicref href="topics/impala_compression_codec.xml"/> <topicref href="topics/impala_compute_stats_min_sample_size.xml"/> <topicref href="topics/impala_debug_action.xml"/> <topicref rev="2.9.0" href="topics/impala_decimal_v2.xml"/> <topicref rev="3.2.0" href="topics/impala_default_file_format.xml"/> <topicref rev="3.3.0" href="topics/impala_default_hints_insert_statement.xml"/> <topicref rev="2.9.0 IMPALA-5381" href="topics/impala_default_join_distribution_mode.xml"/> <topicref rev="2.10.0 IMPALA-3200" href="topics/impala_default_spillable_buffer_size.xml"/> <topicref rev="3.3.0" href="topics/impala_default_transactional_type.xml"/> <topicref href="topics/impala_delete_stats_in_truncate.xml"/> <topicref href="topics/impala_disable_codegen.xml"/> <topicref rev="2.10.0 IMPALA-5483" href="topics/impala_disable_codegen_rows_threshold.xml"/> <topicref href="topics/impala_disable_hbase_num_rows_estimate.xml"/> <topicref rev="2.5.0" href="topics/impala_disable_row_runtime_filtering.xml"/> <topicref rev="2.5.0" href="topics/impala_disable_streaming_preaggregations.xml"/> <topicref href="topics/impala_disable_unsafe_spills.xml"/> <topicref href="topics/impala_enable_expr_rewrites.xml"/> <topicref href="topics/impala_exec_single_node_rows_threshold.xml"/> <topicref href="topics/impala_exec_time_limit_s.xml"/> <topicref rev="4.2.0" href="topics/impala_expand_complex_types.xml"/> <topicref href="topics/impala_explain_level.xml"> <topicref rev="2.5.0" href="topics/impala_max_num_runtime_filters.xml"/> </topicref> <topicref href="topics/impala_fetch_rows_timeout_ms.xml"/> <topicref href="topics/impala_join_rows_produced_limit.xml"/> <topicref href="topics/impala_hbase_cache_blocks.xml"/> <topicref href="topics/impala_hbase_caching.xml"/> <topicref href="topics/impala_idle_session_timeout.xml"/> <topicref href="topics/impala_kudu_read_mode.xml"/> <topicref href="topics/impala_live_progress.xml"/> <topicref href="topics/impala_live_summary.xml"/> <topicref href="topics/impala_max_errors.xml"/> <topicref rev="3.1 IMPALA-6847" href="topics/impala_max_mem_estimate_for_admission.xml"/> <topicref href="topics/impala_max_result_spooling_mem.xml"/> <topicref rev="2.10.0 IMPALA-3200" href="topics/impala_max_row_size.xml"/> <topicref href="topics/impala_max_scan_range_length.xml"/> <topicref href="topics/impala_max_spilled_result_spooling_mem.xml"/> <topicref href="topics/impala_mem_limit.xml"/> <topicref rev="2.10.0 IMPALA-3200" href="topics/impala_min_spillable_buffer_size.xml"/> <topicref rev="2.8.0" href="topics/impala_mt_dop.xml"/> <topicref href="topics/impala_num_nodes.xml"/> <topicref rev="3.2" href="topics/impala_num_rows_produced_limit.xml"/> <topicref href="topics/impala_num_scanner_threads.xml"/> <topicref rev="2.5.0" href="topics/impala_optimize_partition_key_scans.xml"/> <topicref href="topics/impala_parquet_compression_codec.xml"/> <topicref rev="2.6.0 IMPALA-2069" href="topics/impala_parquet_annotate_strings_utf8.xml"/> <topicref rev="2.9.0 IMPALA-4725" href="topics/impala_parquet_array_resolution.xml"/> <topicref href="topics/impala_parquet_dictionary_filtering.xml"/> <topicref rev="2.6.0 IMPALA-2835" href="topics/impala_parquet_fallback_schema_resolution.xml"/> <topicref href="topics/impala_parquet_file_size.xml"/> <topicref href="topics/impala_parquet_object_store_split_size.xml"/> <topicref href="topics/impala_parquet_page_row_count_limit.xml"/> <topicref href="topics/impala_parquet_read_statistics.xml"/> <topicref href="topics/impala_parquet_read_page_index.xml"/> <topicref href="topics/impala_parquet_write_page_index.xml"/> <topicref rev="2.6.0 IMPALA-3286" href="topics/impala_prefetch_mode.xml"/> <topicref href="topics/impala_query_timeout_s.xml"/> <topicref href="topics/impala_refresh_updated_hms.xml"/> <topicref rev="2.7.0" href="topics/impala_replica_preference.xml"/> <topicref href="topics/impala_request_pool.xml"/> <topicref href="topics/impala_resource_trace_ratio.xml"/> <topicref rev="4.0.0" href="topics/impala_retry_failed_queries.xml"/> <topicref rev="4.0.0" href="topics/impala_enabled_runtime_filter_types.xml"/> <topicref rev="2.5.0" href="topics/impala_runtime_bloom_filter_size.xml"/> <topicref rev="2.6.0" href="topics/impala_runtime_filter_max_size.xml"/> <topicref rev="2.6.0" href="topics/impala_runtime_filter_min_size.xml"/> <topicref rev="2.5.0" href="topics/impala_runtime_filter_mode.xml"/> <topicref rev="2.5.0" href="topics/impala_runtime_filter_wait_time_ms.xml"/> <topicref rev="2.6.0" href="topics/impala_s3_skip_insert_staging.xml"/> <topicref rev="3.1" href="topics/impala_scan_bytes_limit.xml"/> <topicref rev="2.5.0" href="topics/impala_schedule_random_replica.xml"/> <topicref rev="2.8.0 IMPALA-3671" href="topics/impala_scratch_limit.xml"/> <!-- This option is for internal use only and might go away without ever being documented. --> <!-- <topicref href="topics/impala_seq_compression_mode.xml"/> --> <topicref href="topics/impala_shuffle_distinct_exprs.xml"/> <topicref href="topics/impala_spool_query_results.xml"/> <topicref href="topics/impala_support_start_over.xml"/> <topicref href="topics/impala_sync_ddl.xml"/> <topicref href="topics/impala_thread_reservation_aggregate_limit.xml"/> <topicref href="topics/impala_thread_reservation_limit.xml"/> <topicref href="topics/impala_timezone.xml"/> <topicref href="topics/impala_topn_bytes_limit.xml"/> <topicref rev="4.5.0" href="topics/impala_use_null_slots_cache.xml"/> <topicref href="topics/impala_utf8_mode.xml"/> </topicref> <topicref href="topics/impala_show.xml"/> <topicref href="topics/impala_shutdown.xml"/> <topicref href="topics/impala_truncate_table.xml"/> <topicref href="topics/impala_update.xml"/> <topicref href="topics/impala_upsert.xml"/> <topicref href="topics/impala_use.xml"/> <topicref href="topics/impala_values.xml"/> <topicref href="topics/impala_hints.xml"/> </topicref> <topicref href="topics/impala_functions.xml"> <topicref href="topics/impala_math_functions.xml"/> <topicref href="topics/impala_bit_functions.xml"/> <topicref href="topics/impala_conversion_functions.xml"/> <topicref href="topics/impala_datetime_functions.xml"/> <topicref href="topics/impala_conditional_functions.xml"/> <topicref href="topics/impala_string_functions.xml"/> <topicref href="topics/impala_misc_functions.xml"/> <topicref href="topics/impala_aggregate_functions.xml"> <topicref href="topics/impala_appx_median.xml"/> <topicref href="topics/impala_avg.xml"/> <topicref href="topics/impala_count.xml"/> <topicref href="topics/impala_group_concat.xml"/> <topicref href="topics/impala_max.xml"/> <topicref href="topics/impala_min.xml"/> <topicref href="topics/impala_ndv.xml"/> <topicref href="topics/impala_stddev.xml"/> <topicref href="topics/impala_sum.xml"/> <topicref href="topics/impala_variance.xml"/> </topicref> <topicref href="topics/impala_analytic_functions.xml"/> </topicref> <topicref href="topics/impala_udf.xml"/> <topicref href="topics/impala_langref_unsupported.xml"/> <topicref href="topics/impala_porting.xml"/> <topicref href="topics/impala_utf_8.xml"/> </topicref> <topicref href="topics/impala_performance.xml"> <topicref href="topics/impala_perf_cookbook.xml"/> <topicref href="topics/impala_perf_joins.xml"/> <topicref href="topics/impala_perf_stats.xml"/> <topicref href="topics/impala_perf_benchmarking.xml"/> <topicref href="topics/impala_perf_resources.xml"/> <topicref rev="2.5.0" href="topics/impala_runtime_filtering.xml"/> <topicref href="topics/impala_perf_hdfs_caching.xml"/> <topicref href="topics/impala_perf_skew.xml"/> <topicref href="topics/impala_data_cache.xml"/> <topicref href="topics/impala_perf_testing.xml"/> <topicref href="topics/impala_explain_plan.xml"/> </topicref> <topicref href="topics/impala_scalability.xml"> <topicref href="topics/impala_scaling_limits.xml"/> <topicref href="topics/impala_dedicated_coordinator.xml"/> <topicref href="topics/impala_metadata.xml"/> </topicref> <topicref href="topics/impala_resource_management.xml"> <topicref href="topics/impala_admission.xml"/> <topicref href="topics/impala_admission_config.xml"/> </topicref> <topicref href="topics/impala_partitioning.xml"/> <topicref href="topics/impala_file_formats.xml"> <topicref href="topics/impala_txtfile.xml"/> <topicref href="topics/impala_parquet.xml"/> <topicref href="topics/impala_orc.xml"/> <topicref href="topics/impala_avro.xml"/> <topicref href="topics/impala_hudi.xml"/> <topicref href="topics/impala_rcfile.xml"/> <topicref href="topics/impala_seqfile.xml"/> </topicref> <topicref href="topics/impala_jdbc_external_table.xml"/> <topicref href="topics/impala_kudu.xml"/> <topicref href="topics/impala_hbase.xml"/> <topicref rev="4.1.0" href="topics/impala_iceberg.xml"/> <topicref href="topics/impala_s3.xml"/> <topicref rev="2.9.0" href="topics/impala_adls.xml"/> <topicref href="topics/impala_isilon.xml"/> <topicref rev="4.2.0" href="topics/impala_ozone.xml"/> <topicref href="topics/impala_logging.xml"/> <topicref href="topics/impala_client.xml"> <topicref href="topics/impala_impala_shell.xml"> <topicref href="topics/impala_shell_options.xml"/> <topicref href="topics/impala_connecting.xml"/> <topicref href="topics/impala_shell_running_commands.xml"/> <topicref href="topics/impala_shell_commands.xml"/> </topicref> <topicref href="topics/impala_odbc.xml"/> <topicref href="topics/impala_jdbc.xml"/> <topicref href="topics/impala_query_results_spooling.xml"/> </topicref> <topicref href="topics/impala_fault_tolerance.xml"> <topicref href="topics/impala_transparent_query_retries.xml"/> <topicref href="topics/impala_node_blacklisting.xml"/> </topicref> <topicref href="topics/impala_troubleshooting.xml"> <topicref href="topics/impala_webui.xml"/> <topicref href="topics/impala_breakpad.xml"/> </topicref> <topicref href="topics/impala_ports.xml"/> <topicref href="topics/impala_reserved_words.xml"/> <!-- End of former contents of Installing-and-Using-Impala_xi42979.ditamap. --> <topicref audience="standalone" href="topics/impala_faq.xml"/> <topicref audience="standalone" href="topics/impala_release_notes.xml"> <mapref href="impala_release_notes.ditamap" format="ditamap" audience="standalone"/> </topicref> <!-- Substitution variables and link destinations abstracted into a .h-like side file. --> <mapref href="impala_keydefs.ditamap" format="ditamap"/> </map> ```
/content/code_sandbox/docs/impala.ditamap
xml
2016-04-13T07:00:08
2024-08-16T10:10:44
impala
apache/impala
1,115
5,466
```xml import * as React from 'react' import { IBaseInputDescriptionProps, InputDescription, InputDescriptionType, } from './input-description' /** * An caption element with app-standard styles for captions to be used with inputs. * * Provide `children` elements to render as the content for the error element. */ export class Caption extends React.Component<IBaseInputDescriptionProps> { public render() { return ( <InputDescription inputDescriptionType={InputDescriptionType.Caption} {...this.props} > {this.props.children} </InputDescription> ) } } ```
/content/code_sandbox/app/src/ui/lib/input-description/input-caption.tsx
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
128
```xml <?xml version="1.0" encoding="utf-8"?> <manifest package="com.robinhood.ticker.sample" xmlns:android="path_to_url"> <application android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <activity android:name=".PerfActivity" /> <activity android:name=".SlideActivity" /> </application> </manifest> ```
/content/code_sandbox/ticker-sample/src/main/AndroidManifest.xml
xml
2016-07-15T21:37:52
2024-08-15T03:39:40
ticker
robinhood/ticker
4,386
142
```xml <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="?colorOnSurface" android:pathData="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z" /> </vector> ```
/content/code_sandbox/app/apk/src/main/res/drawable/ic_settings_outlined_md2.xml
xml
2016-09-08T12:42:53
2024-08-16T19:41:25
Magisk
topjohnwu/Magisk
46,424
1,009
```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 tabulate = require( './index' ); // TESTS // // The function returns an array of arrays... { tabulate( [ 'beep', 'boop', 'foo', 'beep' ] ); // $ExpectType TableEntry<string>[] tabulate( [ false, true ] ); // $ExpectType TableEntry<boolean>[] tabulate( [ 0, 1, 1, 2, 5 ] ); // $ExpectType TableEntry<number>[] tabulate( [ true, true ] ); // $ExpectType TableEntry<boolean>[] tabulate( [] ); // $ExpectType TableEntry<never>[] } // The compiler throws an error if the function is provided a value other than a collection... { tabulate( true ); // $ExpectError tabulate( false ); // $ExpectError tabulate( 5 ); // $ExpectError } // The compiler throws an error if the function is not provided one argument... { tabulate(); // $ExpectError tabulate( [ true, true ], 1 ); // $ExpectError } ```
/content/code_sandbox/lib/node_modules/@stdlib/utils/tabulate/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
277
```xml /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ import {useMutation, UseMutationOptions} from '@tanstack/react-query'; import {api} from 'modules/api'; import {request, RequestError} from 'modules/request'; import {Process, ProcessInstance, Task, Variable} from 'modules/types'; function useStartProcess( options: Pick< UseMutationOptions< ProcessInstance, RequestError | Error, { bpmnProcessId: Process['bpmnProcessId']; variables?: Variable[]; tenantId?: Task['tenantId']; } >, 'onSuccess' > = {}, ) { return useMutation< ProcessInstance, RequestError | Error, Pick<Process, 'bpmnProcessId'> & {variables?: Variable[]} & { tenantId?: Task['tenantId']; } >({ ...options, mutationFn: async ({bpmnProcessId, variables = [], tenantId}) => { const {response, error} = await request( api.startProcess({ bpmnProcessId, variables, tenantId, }), ); if (response !== null) { return response.json(); } throw error ?? new Error('Could not start process'); }, }); } export {useStartProcess}; ```
/content/code_sandbox/tasklist/client/src/modules/mutations/useStartProcess.tsx
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
296
```xml import Container from "../components/container"; import Image from "next/image"; function HomePage() { return ( <> <Container> <div className="space-y-6"> <h1 className="text-2xl font-bold"> Hey, I'm a Senior Software Engineer at Company. I enjoy working with Next.js and crafting beautiful front-end experiences. </h1> <p> This portfolio is built with Next.js and a library called next-mdx. It allows you to write Markdown and focus on the content of your portfolio. </p> <p>Deploy your own in a few minutes.</p> </div> </Container> <div className="container max-w-4xl m-auto px-4 mt-20"> <Image src="/desk.jpg" alt="my desk" width={1920 / 2} height={1280 / 2} /> </div> </> ); } export default HomePage; ```
/content/code_sandbox/examples/blog-with-comment/pages/index.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
216
```xml import * as ts from 'typescript'; import { getInitializerValue, isNonUndefinedInitializerValue } from './initializer-value'; import { MetadataGenerator } from './metadataGenerator'; import { Tsoa } from '@tsoa/runtime'; import { safeFromJson } from '../utils/jsonUtils'; export function getExtensions(decorators: ts.Identifier[], metadataGenerator: MetadataGenerator): Tsoa.Extension[] { const extensions: Tsoa.Extension[] = decorators.map(extensionDecorator => { if (!ts.isCallExpression(extensionDecorator.parent)) { throw new Error('The parent of the @Extension is not a CallExpression. Are you using it in the right place?'); } const [decoratorKeyArg, decoratorValueArg] = extensionDecorator.parent.arguments; if (!ts.isStringLiteral(decoratorKeyArg)) { throw new Error('The first argument of @Extension must be a string'); } const attributeKey = decoratorKeyArg.text; if (!decoratorValueArg) { throw new Error(`Extension '${attributeKey}' must contain a value`); } assertValidExtensionKey(attributeKey); const attributeValue = getInitializerValue(decoratorValueArg, metadataGenerator.typeChecker); if (!isNonUndefinedInitializerValue(attributeValue)) { throw new Error(`Extension '${attributeKey}' cannot have an undefined initializer value`); } return { key: attributeKey, value: attributeValue }; }); return extensions; } export function getExtensionsFromJSDocComments(comments: string[]): Tsoa.Extension[] { const extensions: Tsoa.Extension[] = []; comments.forEach(comment => { const extensionData = safeFromJson(comment); if (extensionData) { const keys = Object.keys(extensionData); keys.forEach(key => { assertValidExtensionKey(key); extensions.push({ key: key, value: extensionData[key] }); }); } }); return extensions; } function assertValidExtensionKey(key: string): asserts key is `x-${string}` { if (!key.startsWith('x-')) { throw new Error('Extensions must begin with "x-" to be valid. Please see the following link for more information: path_to_url } } ```
/content/code_sandbox/packages/cli/src/metadataGeneration/extension.ts
xml
2016-06-17T10:42:50
2024-08-16T05:57:17
tsoa
lukeautry/tsoa
3,408
467
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { getElementLanguageDirection } from './utils.js'; import { createTestElement } from '@cds/core/test'; describe('getElementLanguageDirection', () => { it('should return the current element level language direction', async () => { const element = await createTestElement(); expect(getElementLanguageDirection(element)).toBe('ltr'); element.style.direction = 'rtl'; expect(getElementLanguageDirection(element)).toBe('rtl'); }); }); ```
/content/code_sandbox/packages/core/src/internal/i18n/utils.spec.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
123
```xml /* global window */ /// <reference path="../types.d.ts" /> describe('tests', () => { beforeEach(() => { cy.visit('cypress/fixtures/test.html') }) it('test custom command', () => { cy.clickLink('click me') }) it('test extending AUTWindow', () => { // Test Runner window object doesn't have add() function. // So, it should fail the type check. // @ts-expect-error window.add = (a, b) => a + b cy.window().then((win) => { // AUT add() is defined in the fixture, test.html. // So, it should pass the type check. return win.add(2, 3) }) }) }) ```
/content/code_sandbox/examples/fundamentals__typescript/cypress/e2e/tests.spec.cy.ts
xml
2016-11-29T17:36:56
2024-08-14T16:32:21
cypress-example-recipes
cypress-io/cypress-example-recipes
3,418
166
```xml /* eslint-disable max-len */ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { CoreModule } from '~/app/core/core.module'; import { MaterialModule } from '~/app/material.module'; import { DiskDatatablePageComponent } from '~/app/pages/storage/disks/disk-datatable-page.component'; import { DiskFormPageComponent } from '~/app/pages/storage/disks/disk-form-page.component'; import { FilesystemDatatablePageComponent } from '~/app/pages/storage/filesystems/filesystem-datatable-page.component'; import { FilesystemDetailsTextPageComponent } from '~/app/pages/storage/filesystems/filesystem-details-text-page.component'; import { FilesystemEditFormPageComponent } from '~/app/pages/storage/filesystems/filesystem-edit-form-page.component'; import { FilesystemMountFormPageComponent } from '~/app/pages/storage/filesystems/filesystem-mount-form-page.component'; import { FilesystemQuotaDatatablePageComponent } from '~/app/pages/storage/filesystems/filesystem-quota-datatable-page.component'; import { FilesystemQuotaFormPageComponent } from '~/app/pages/storage/filesystems/filesystem-quota-form-page.component'; import { SharedFolderAclFormPageComponent } from '~/app/pages/storage/shared-folders/shared-folder-acl-form-page.component'; import { SharedFolderAllSnapshotsTabsPageComponent } from '~/app/pages/storage/shared-folders/shared-folder-all-snapshots-tabs-page.component'; import { SharedFolderDatatablePageComponent } from '~/app/pages/storage/shared-folders/shared-folder-datatable-page.component'; import { SharedFolderFormPageComponent } from '~/app/pages/storage/shared-folders/shared-folder-form-page.component'; import { SharedFolderPermissionsDatatablePageComponent } from '~/app/pages/storage/shared-folders/shared-folder-permissions-datatable-page.component'; import { SharedFolderSnapshotsTabsPageComponent } from '~/app/pages/storage/shared-folders/shared-folder-snapshots-tabs-page.component'; import { SmartDeviceDatatablePageComponent } from '~/app/pages/storage/smart/smart-device-datatable-page.component'; import { SmartDeviceDetailsTabsPageComponent } from '~/app/pages/storage/smart/smart-device-details-tabs-page.component'; import { SmartDeviceFormPageComponent } from '~/app/pages/storage/smart/smart-device-form-page.component'; import { SmartSettingsFormPageComponent } from '~/app/pages/storage/smart/smart-settings-form-page.component'; import { SmartTaskDatatablePageComponent } from '~/app/pages/storage/smart/smart-task-datatable-page.component'; import { SmartTaskFormPageComponent } from '~/app/pages/storage/smart/smart-task-form-page.component'; import { StorageRoutingModule } from '~/app/pages/storage/storage-routing.module'; import { SharedModule } from '~/app/shared/shared.module'; @NgModule({ declarations: [ DiskDatatablePageComponent, DiskFormPageComponent, SharedFolderDatatablePageComponent, FilesystemDatatablePageComponent, SmartDeviceDatatablePageComponent, SmartSettingsFormPageComponent, SmartTaskDatatablePageComponent, SmartTaskFormPageComponent, SmartDeviceFormPageComponent, SmartDeviceDetailsTabsPageComponent, SharedFolderFormPageComponent, SharedFolderPermissionsDatatablePageComponent, SharedFolderSnapshotsTabsPageComponent, SharedFolderAllSnapshotsTabsPageComponent, FilesystemDetailsTextPageComponent, FilesystemEditFormPageComponent, FilesystemMountFormPageComponent, FilesystemQuotaDatatablePageComponent, FilesystemQuotaFormPageComponent, SharedFolderAclFormPageComponent ], imports: [CommonModule, CoreModule, MaterialModule, SharedModule, StorageRoutingModule] }) export class StorageModule {} ```
/content/code_sandbox/deb/openmediavault/workbench/src/app/pages/storage/storage.module.ts
xml
2016-05-03T10:35:34
2024-08-16T08:03:04
openmediavault
openmediavault/openmediavault
4,954
745
```xml import { shell as electronShell } from 'electron' import * as Path from 'path' import { Repository } from '../models/repository' import { showItemInFolder, showFolderContents, openExternal, moveItemToTrash, } from '../ui/main-process-proxy' export interface IAppShell { readonly moveItemToTrash: (path: string) => Promise<void> readonly beep: () => void readonly openExternal: (path: string) => Promise<boolean> /** * Reveals the specified file using the operating * system default application. * Do not use this method with non-validated paths. * * @param path - The path of the file to open */ readonly openPath: (path: string) => Promise<string> /** * Reveals the specified file on the operating system * default file explorer. If a folder is passed, it will * open its parent folder and preselect the passed folder. * * @param path - The path of the file to show */ readonly showItemInFolder: (path: string) => void /** * Reveals the specified folder on the operating * system default file explorer. * Do not use this method with non-validated paths. * * @param path - The path of the folder to open */ readonly showFolderContents: (path: string) => void } export const shell: IAppShell = { // Since Electron 13, shell.trashItem doesn't work from the renderer process // on Windows. Therefore, we must invoke it from the main process. See // path_to_url moveItemToTrash, beep: electronShell.beep, openExternal, showItemInFolder, showFolderContents, openPath: electronShell.openPath, } /** * Reveals a file from a repository in the native file manager. * * @param repository The currently active repository instance * @param path The path of the file relative to the root of the repository */ export function revealInFileManager(repository: Repository, path: string) { const fullyQualifiedFilePath = Path.join(repository.path, path) return shell.showItemInFolder(fullyQualifiedFilePath) } ```
/content/code_sandbox/app/src/lib/app-shell.ts
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
484
```xml <UserControl x:Class="Dopamine.Views.Common.CompactPlaybackControls" xmlns="path_to_url" xmlns:d="path_to_url" xmlns:x="path_to_url" xmlns:mc="path_to_url" xmlns:dc="clr-namespace:Digimezzo.Foundation.WPF.Controls;assembly=Digimezzo.Foundation.WPF" xmlns:prismMvvm="clr-namespace:Prism.Mvvm;assembly=Prism.Wpf" mc:Ignorable="d" prismMvvm:ViewModelLocator.AutoWireViewModel="True"> <StackPanel Orientation="Horizontal"> <!-- Loop --> <Button x:Name="LoopButton" Style="{StaticResource TransparentButton}" Width="20" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0,0,10,0" ToolTip="{DynamicResource Language_Loop}" Command="{Binding LoopCommand}"> <Grid> <TextBlock Text="&#xE8EE;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_PrimaryText}" FontSize="14" Visibility="{Binding ShowLoopNone,Converter={StaticResource BooleanToVisibilityConverter}}"/> <TextBlock Text="&#xE8ED;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_Accent}" FontSize="14" Visibility="{Binding ShowLoopOne,Converter={StaticResource BooleanToVisibilityConverter}}"/> <TextBlock Text="&#xE8EE;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_Accent}" FontSize="14" Visibility="{Binding ShowLoopAll,Converter={StaticResource BooleanToVisibilityConverter}}"/> </Grid> </Button> <!-- Previous --> <Button x:Name="PreviousButton" Style="{StaticResource TransparentButton}" Width="20" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="0,0,10,0" ToolTip="{DynamicResource Language_Previous}" Command="{Binding PreviousCommand}"> <TextBlock Text="&#xE892;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_PrimaryText}" FontSize="16"/> </Button> <!-- Play and pause --> <Grid> <!-- Ring --> <dc:ProgressRing Width="20" Height="20" Foreground="{DynamicResource Brush_PrimaryText}" IsActive="True" Visibility="{Binding IsLoadingTrack,Converter={StaticResource BooleanToVisibilityConverter}}"/> <Grid Visibility="{Binding IsLoadingTrack,Converter={StaticResource InvertingBooleanToVisibilityConverter}}"> <!-- Play --> <Button x:Name="PlayButton" Style="{StaticResource TransparentButton}" Width="20" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" ToolTip="{DynamicResource Language_Play}" Visibility="{Binding ShowPause,Converter={StaticResource InvertingBooleanToVisibilityConverter}}" Command="{Binding PlayCommand}"> <TextBlock Text="&#xE768;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_PrimaryText}" FontSize="16"/> </Button> <!-- Pause --> <Button x:Name="PauseButton" Style="{StaticResource TransparentButton}" Width="20" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" ToolTip="{DynamicResource Language_Pause}" Visibility="{Binding ShowPause,Converter={StaticResource BooleanToVisibilityConverter}}" Command="{Binding PauseCommand}"> <TextBlock Text="&#xE769;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_PrimaryText}" FontSize="16"/> </Button> </Grid> </Grid> <!-- Next --> <Button x:Name="NextButton" Style="{StaticResource TransparentButton}" Width="20" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,0,0" ToolTip="{DynamicResource Language_Next}" Command="{Binding NextCommand}"> <TextBlock Text="&#xE893;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_PrimaryText}" FontSize="16"/> </Button> <!-- Shuffle --> <Button x:Name="ShuffleButton" Style="{StaticResource TransparentButton}" Width="20" Height="20" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,0,0" ToolTip="{DynamicResource Language_Shuffle}" Command="{Binding ShuffleCommand}"> <Grid> <TextBlock Text="&#xE8B1;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_PrimaryText}" FontSize="16" Visibility="{Binding Shuffle,Converter={StaticResource InvertingBooleanToVisibilityConverter}}"/> <TextBlock Text="&#xE8B1;" Style="{StaticResource SegoeAssets}" Foreground="{DynamicResource Brush_Accent}" FontSize="16" Visibility="{Binding Shuffle,Converter={StaticResource BooleanToVisibilityConverter}}"/> </Grid> </Button> </StackPanel> </UserControl> ```
/content/code_sandbox/Dopamine/Views/Common/CompactPlaybackControls.xaml
xml
2016-07-13T21:34:42
2024-08-15T03:30:43
dopamine-windows
digimezzo/dopamine-windows
1,786
1,049
```xml export * from "./BackgroundMaterial"; export * from "./BrowserWindowConstructorOptionsProvider"; export * from "./DefaultBrowserWindowConstructorOptionsProvider"; export * from "./defaultWindowSize"; export * from "./LinuxBrowserWindowConstructorOptionsProvider"; export * from "./MacOsBrowserWindowConstructorOptionsProvider"; export * from "./Vibrancy"; export * from "./WindowsBrowserWindowConstructorOptionsProvider"; ```
/content/code_sandbox/src/main/Core/BrowserWindow/BrowserWindowConstructorOptionsProvider/index.ts
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
78
```xml import _ from 'lodash' import { useCallback } from 'react' import { EnhancedLoadState } from '@devhub/core' import * as selectors from '../redux/selectors' import { useColumn } from './use-column' import { useReduxState } from './use-redux-state' export function useColumnLoadingState(columnId: string): EnhancedLoadState { const { hasCrossedColumnsLimit } = useColumn(columnId) const mainSubscription = useReduxState( useCallback( (state) => selectors.createColumnSubscriptionSelector()(state, columnId), [columnId], ), ) const installationsLoadState = useReduxState( selectors.installationsLoadStateSelector, ) const loadState: EnhancedLoadState = hasCrossedColumnsLimit ? 'not_loaded' : installationsLoadState === 'loading' ? mainSubscription && mainSubscription.data && mainSubscription.data.itemNodeIdOrIds && mainSubscription.data.itemNodeIdOrIds.length ? 'loading' : 'loading_first' : (mainSubscription && mainSubscription.data && mainSubscription.data.loadState) || 'not_loaded' return loadState } ```
/content/code_sandbox/packages/components/src/hooks/use-column-loading-state.ts
xml
2016-11-30T23:24:21
2024-08-16T00:24:59
devhub
devhubapp/devhub
9,652
246
```xml import { defineRule } from '../utils/define-rule' import NodeAttributes from '../utils/node-attributes' const SUPPORTED_SRCS = [ 'www.google-analytics.com/analytics.js', 'www.googletagmanager.com/gtag/js', ] const SUPPORTED_HTML_CONTENT_URLS = [ 'www.google-analytics.com/analytics.js', 'www.googletagmanager.com/gtm.js', ] const description = 'Prefer `next/script` component when using the inline script for Google Analytics.' const url = 'path_to_url const ERROR_MSG = `${description} See: ${url}` // Check if one of the items in the list is a substring of the passed string const containsStr = (str, strList) => { return strList.some((s) => str.includes(s)) } export = defineRule({ meta: { docs: { description, recommended: true, url, }, type: 'problem', schema: [], }, create(context) { return { JSXOpeningElement(node) { if (node.name.name !== 'script') { return } if (node.attributes.length === 0) { return } const attributes = new NodeAttributes(node) // Check if the Alternative async tag is being used to add GA. // path_to_url#alternative_async_tag // path_to_url if ( typeof attributes.value('src') === 'string' && containsStr(attributes.value('src'), SUPPORTED_SRCS) ) { return context.report({ node, message: ERROR_MSG, }) } // Check if inline script is being used to add GA. // path_to_url#the_google_analytics_tag // path_to_url if ( attributes.value('dangerouslySetInnerHTML') && attributes.value('dangerouslySetInnerHTML').length > 0 ) { const htmlContent = attributes.value('dangerouslySetInnerHTML')[0].value.quasis && attributes.value('dangerouslySetInnerHTML')[0].value.quasis[0].value .raw if ( htmlContent && containsStr(htmlContent, SUPPORTED_HTML_CONTENT_URLS) ) { context.report({ node, message: ERROR_MSG, }) } } }, } }, }) ```
/content/code_sandbox/packages/eslint-plugin-next/src/rules/next-script-for-ga.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
500
```xml import { StoryContext } from './types'; import { prepareData } from './sandbox-utils'; // eslint-disable-next-line @typescript-eslint/no-empty-function const noop = () => {}; describe(`sabdbox-utils`, () => { const context = { story: 'Showcase', componentId: '', name: 'Showcase', title: 'DefaultTitle', kind: '', id: '', originalStoryFn: { name: 'DefaultTitle', }, parameters: { fullSource: ` import * as React from 'react'; import { Text } from '@proj/react-components'; export const Default = () => <Text>This is an example of the Text component's usage.</Text>; `, exportToSandbox: { bundler: 'vite', provider: 'sandbox', requiredDependencies: {}, }, }, } as unknown as StoryContext; describe(`#prepareData`, () => { it(`should throw error when parameters.exportToSandbox is missing`, () => { const actual = () => prepareData({ ...context, parameters: {} }); expect(actual).toThrowErrorMatchingInlineSnapshot(`"exportToSandbox config parameter cannot be empty"`); }); it(`should throw error when parameters.fullsource is missing`, () => { const consoleErrorSpy = jest.spyOn(console, 'error').mockImplementation(noop); const actual = prepareData({ ...context, parameters: { exportToSandbox: context.parameters.exportToSandbox } }); expect(actual).toBe(null); expect(consoleErrorSpy.mock.calls.flat()).toMatchInlineSnapshot(` Array [ "Export to Sandbox Addon: Couldn't find source for story DefaultTitle. Did you install the babel plugin?", ] `); }); it(`should prepare data from SB context`, () => { const actual = prepareData(context); expect(actual).toEqual({ bundler: 'vite', dependencies: { '@proj/react-components': 'latest', react: 'latest', }, description: 'Story demo: DefaultTitle - Showcase', provider: 'sandbox', storyExportToken: 'DefaultTitle', storyFile: context.parameters.fullSource, title: 'FluentUI React v9', }); }); }); }); ```
/content/code_sandbox/packages/react-components/react-storybook-addon-export-to-sandbox/src/sandbox-utils.spec.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
486
```xml // @vitest-environment jsdom import * as fs from 'node:fs'; import { assert } from 'vitest'; import { compile_directory, should_update_expected } from '../helpers.js'; import { assert_html_equal } from '../html_equal.js'; import { suite, assert_ok, type BaseTest } from '../suite.js'; import { createClassComponent } from 'svelte/legacy'; import { render } from 'svelte/server'; import type { CompileOptions } from '#compiler'; import { flushSync } from 'svelte'; interface HydrationTest extends BaseTest { load_compiled?: boolean; server_props?: Record<string, any>; props?: Record<string, any>; compileOptions?: Partial<CompileOptions>; /** * By default, whitespace between ssr comments is removed so the output looks a bit more readable. * Some tests rely on the whitespace being there, so set this to false to disable the removal. */ trim_whitespace?: false; expect_hydration_error?: true; snapshot?: (target: HTMLElement) => any; test?: ( assert: typeof import('vitest').assert & { htmlEqual(a: string, b: string, description?: string): void; }, target: HTMLElement, snapshot: any, component: any, window: any ) => void | Promise<void>; before_test?: () => void; after_test?: () => void; errors?: any[]; } function read(path: string): string | void { return fs.existsSync(path) ? fs.readFileSync(path, 'utf-8') : undefined; } const { test, run } = suite<HydrationTest>(async (config, cwd) => { if (!config.load_compiled) { await compile_directory(cwd, 'client', { accessors: true, ...config.compileOptions }); await compile_directory(cwd, 'server', config.compileOptions); } const target = window.document.body; const head = window.document.head; const rendered = render((await import(`${cwd}/_output/server/main.svelte.js`)).default, { props: config.server_props ?? config.props ?? {} }); const override = read(`${cwd}/_override.html`); const override_head = read(`${cwd}/_override_head.html`); fs.writeFileSync(`${cwd}/_output/body.html`, rendered.html + '\n'); target.innerHTML = override ?? rendered.html; if (rendered.head) { fs.writeFileSync(`${cwd}/_output/head.html`, rendered.head + '\n'); head.innerHTML = override_head ?? rendered.head; } config.before_test?.(); try { const snapshot = config.snapshot ? config.snapshot(target) : {}; const warn = console.warn; const errors: any[] = []; let got_hydration_error = false; console.warn = (...args: any[]) => { if (args[0].startsWith('%c[svelte]')) { // TODO convert this to structured data, for more robust comparison? const text = args[0]; const code = text.slice(11, text.indexOf('\n%c', 11)); const message = text.slice(text.indexOf('%c', 2) + 2); if (typeof message === 'string' && code === 'hydration_mismatch') { got_hydration_error = true; if (!config.expect_hydration_error) { warn(message); } } else { errors.push(message); } } else { errors.push(...args); } }; const component = createClassComponent({ component: (await import(`${cwd}/_output/client/main.svelte.js`)).default, target, hydrate: true, props: config.props }); console.warn = warn; if (config.expect_hydration_error) { assert.ok(got_hydration_error, 'Expected hydration error'); } else { assert.ok(!got_hydration_error, 'Unexpected hydration error'); } if (config.errors) { assert.deepEqual(errors, config.errors); } else if (errors.length) { throw new Error(`Unexpected errors: ${errors.join('\n')}`); } flushSync(); const normalize = (string: string) => string.trim().replace(/\r\n/g, '\n'); const expected = read(`${cwd}/_expected.html`) ?? rendered.html; assert.equal(normalize(target.innerHTML), normalize(expected)); if (rendered.head) { const expected = read(`${cwd}/_expected_head.html`) ?? rendered.head; assert.equal(normalize(head.innerHTML), normalize(expected)); } if (config.snapshot) { const snapshot_after = config.snapshot(target); for (const s in snapshot_after) { assert.ok( // Error logger borks because of circular references so use this instead snapshot_after[s] === snapshot[s], `Expected snapshot key "${s}" to have same value/reference` ); } } if (config.test) { await config.test( // @ts-expect-error TS doesn't get it { ...assert, htmlEqual: assert_html_equal }, target, snapshot, component, window ); } component.$destroy(); // use the assert_html_equal function because there will be <!--ssr:X--> comments left assert_html_equal(target.innerHTML, ''); } finally { config.after_test?.(); } }); export { test, assert_ok }; await run(__dirname); ```
/content/code_sandbox/packages/svelte/tests/hydration/test.ts
xml
2016-11-20T18:13:05
2024-08-16T19:51:56
svelte
sveltejs/svelte
77,924
1,182
```xml import { MouseEvent, MouseEventHandler, RefObject, useState } from "react" type TwoCoordinates = [number, number] export interface UseAttachedMenuReturn { open: boolean x: TwoCoordinates y: TwoCoordinates handleClick: () => void handleMousedown: MouseEventHandler handleClose: () => void } export function useAttachedMenu( anchor: RefObject<HTMLElement> | HTMLElement, ): UseAttachedMenuReturn { const [open, setOpen] = useState(false) const [position, setPosition] = useState<TwoCoordinates[]>([ [-1, -1], [-1, -1], ]) function openMenu() { const anchorEl = "current" in anchor ? anchor?.current : anchor if (anchorEl) { const { left, top, right, bottom } = anchorEl.getBoundingClientRect() setPosition([ [left, right], [top, bottom], ]) } setOpen(true) } function closeMenu() { setOpen(false) } function handleClick() { if (open) { closeMenu() } else { openMenu() } } function handleMousedown(e: MouseEvent) { e.preventDefault() } return { open, x: position[0], y: position[1], handleClick, handleMousedown, handleClose: closeMenu, } } ```
/content/code_sandbox/optimize/c4/src/hooks/useAttachedMenu.tsx
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
300
```xml /* * LiskHQ/lisk-commander * * See the LICENSE file at the top-level directory of this distribution * for licensing information. * * Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation, * no part of this software, including this file, may be copied, modified, * propagated, or distributed except according to the terms contained in the * LICENSE file. * * Removal or modification of this copyright notice is prohibited. * */ export { ConsoleCommand } from '../bootstrapping/commands/console'; ```
/content/code_sandbox/commander/src/commands/console.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
110
```xml export { Auth, AuthInstances, authInstance$ } from './auth'; export { provideAuth, AuthModule } from './auth.module'; export * from './rxfire'; export * from './firebase'; ```
/content/code_sandbox/src/auth/public_api.ts
xml
2016-01-11T20:47:23
2024-08-14T12:09:31
angularfire
angular/angularfire
7,648
43
```xml // See LICENSE.txt for license information. import {Alert, type AlertButton} from 'react-native'; import {getUsersCountFromMentions} from '@actions/local/post'; import {General, Post} from '@constants'; import {SPECIAL_MENTIONS_REGEX} from '@constants/autocomplete'; import {POST_TIME_TO_FAIL} from '@constants/post'; import DatabaseManager from '@database/manager'; import {DEFAULT_LOCALE} from '@i18n'; import {getUserById} from '@queries/servers/user'; import {toMilliseconds} from '@utils/datetime'; import {displayUsername, getUserIdFromChannelName} from '@utils/user'; import type PostModel from '@typings/database/models/servers/post'; import type UserModel from '@typings/database/models/servers/user'; import type {IntlShape} from 'react-intl'; export function areConsecutivePosts(post: PostModel, previousPost: PostModel) { let consecutive = false; if (post && previousPost) { const postFromWebhook = Boolean(post?.props?.from_webhook); // eslint-disable-line camelcase const prevPostFromWebhook = Boolean(previousPost?.props?.from_webhook); // eslint-disable-line camelcase const isFromSameUser = previousPost.userId === post.userId; const isNotSystemMessage = !isSystemMessage(post) && !isSystemMessage(previousPost); const isInTimeframe = (post.createAt - previousPost.createAt) <= Post.POST_COLLAPSE_TIMEOUT; // Were the last post and this post made by the same user within some time? consecutive = previousPost && isFromSameUser && isInTimeframe && !postFromWebhook && !prevPostFromWebhook && isNotSystemMessage; } return consecutive; } export function isFromWebhook(post: PostModel | Post): boolean { return post.props && post.props.from_webhook === 'true'; } export function isEdited(post: PostModel): boolean { return post.editAt > 0; } export function isPostEphemeral(post: PostModel): boolean { return post.type === Post.POST_TYPES.EPHEMERAL || post.type === Post.POST_TYPES.EPHEMERAL_ADD_TO_CHANNEL || post.deleteAt > 0; } export function isPostFailed(post: PostModel): boolean { return post.props?.failed || ((post.pendingPostId === post.id) && (Date.now() > post.updateAt + POST_TIME_TO_FAIL)); } export function isPostPendingOrFailed(post: PostModel): boolean { return post.pendingPostId === post.id || isPostFailed(post); } export function isSystemMessage(post: PostModel | Post): boolean { return Boolean(post.type && post.type?.startsWith(Post.POST_TYPES.SYSTEM_MESSAGE_PREFIX)); } export function fromAutoResponder(post: PostModel): boolean { return Boolean(post.type && (post.type === Post.POST_TYPES.SYSTEM_AUTO_RESPONDER)); } export function postUserDisplayName(post: PostModel, author?: UserModel, teammateNameDisplay?: string, enablePostUsernameOverride = false) { if (isFromWebhook(post) && post.props?.override_username && enablePostUsernameOverride) { return post.props.override_username; } return displayUsername(author, author?.locale || DEFAULT_LOCALE, teammateNameDisplay, true); } export function shouldIgnorePost(post: Post): boolean { return Post.IGNORE_POST_TYPES.includes(post.type); } export const processPostsFetched = (data: PostResponse) => { const order = data.order; const posts = Object.values(data.posts); const previousPostId = data.prev_post_id; return { posts, order, previousPostId, }; }; export const getLastFetchedAtFromPosts = (posts?: Post[]) => { return posts?.reduce((timestamp: number, p) => { const maxTimestamp = Math.max(p.create_at, p.update_at, p.delete_at); return Math.max(maxTimestamp, timestamp); }, 0) || 0; }; export const moreThan5minAgo = (time: number) => { return Date.now() - time > toMilliseconds({minutes: 5}); }; export function hasSpecialMentions(message: string): boolean { const result = SPECIAL_MENTIONS_REGEX.test(message); // path_to_url SPECIAL_MENTIONS_REGEX.lastIndex = 0; return result; } export async function persistentNotificationsConfirmation(serverUrl: string, value: string, mentionsList: string[], intl: IntlShape, sendMessage: () => void, persistentNotificationMaxRecipients: number, persistentNotificationInterval: number, currentUserId: string, channelName?: string, channelType?: ChannelType) { let title = ''; let description = ''; let buttons: AlertButton[] = [{ text: intl.formatMessage({ id: 'persistent_notifications.error.okay', defaultMessage: 'Okay', }), style: 'cancel', }]; if (channelType === General.DM_CHANNEL) { const {database} = DatabaseManager.getServerDatabaseAndOperator(serverUrl); const teammateId = getUserIdFromChannelName(currentUserId, channelName!); const user = await getUserById(database, teammateId); title = intl.formatMessage({ id: 'persistent_notifications.confirm.title', defaultMessage: 'Send persistent notifications', }); description = intl.formatMessage({ id: 'persistent_notifications.dm_channel.description', defaultMessage: '@{username} will be notified every {interval, plural, one {minute} other {{interval} minutes}} until theyve acknowledged or replied to the message.', }, { interval: persistentNotificationInterval, username: user?.username, }); buttons = [{ text: intl.formatMessage({ id: 'persistent_notifications.confirm.cancel', defaultMessage: 'Cancel', }), style: 'cancel', }, { text: intl.formatMessage({ id: 'persistent_notifications.confirm.send', defaultMessage: 'Send', }), onPress: sendMessage, }]; } else if (hasSpecialMentions(value)) { description = intl.formatMessage({ id: 'persistent_notifications.error.special_mentions', defaultMessage: 'Cannot use @channel, @all or @here to mention recipients of persistent notifications.', }); } else { // removes the @ from the mention const formattedMentionsList = mentionsList.map((mention) => mention.slice(1)); const usersCount = await getUsersCountFromMentions(serverUrl, formattedMentionsList); if (usersCount === 0) { title = intl.formatMessage({ id: 'persistent_notifications.error.no_mentions.title', defaultMessage: 'Recipients must be @mentioned', }); description = intl.formatMessage({ id: 'persistent_notifications.error.no_mentions.description', defaultMessage: 'There are no recipients mentioned in your message. Youll need add mentions to be able to send persistent notifications.', }); } else if (usersCount > persistentNotificationMaxRecipients) { title = intl.formatMessage({ id: 'persistent_notifications.error.max_recipients.title', defaultMessage: 'Too many recipients', }); description = intl.formatMessage({ id: 'persistent_notifications.error.max_recipients.description', defaultMessage: 'You can send persistent notifications to a maximum of {max} recipients. There are {count} recipients mentioned in your message. Youll need to change who youve mentioned before you can send.', }, { max: persistentNotificationMaxRecipients, count: mentionsList.length, }); } else { title = intl.formatMessage({ id: 'persistent_notifications.confirm.title', defaultMessage: 'Send persistent notifications', }); description = intl.formatMessage({ id: 'persistent_notifications.confirm.description', defaultMessage: 'Mentioned recipients will be notified every {interval, plural, one {minute} other {{interval} minutes}} until theyve acknowledged or replied to the message.', }, { interval: persistentNotificationInterval, }); buttons = [{ text: intl.formatMessage({ id: 'persistent_notifications.confirm.cancel', defaultMessage: 'Cancel', }), style: 'cancel', }, { text: intl.formatMessage({ id: 'persistent_notifications.confirm.send', defaultMessage: 'Send', }), onPress: sendMessage, }]; } } Alert.alert( title, description, buttons, ); } ```
/content/code_sandbox/app/utils/post/index.ts
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
1,755
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- ~ ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <window xmlns="path_to_url" messagesPack="spec.cuba.gui.components.validation.screens"> <data> <instance id="dateValidationEntityDs" class="com.haulmont.cuba.web.testmodel.beanvalidation.DateValidationEntity" view="_local"> <loader id="dateValidationLd"/> </instance> </data> <layout> <form dataContainer="dateValidationEntityDs"> <datePicker id="futureDatePicker" property="futureDatePicker"/> <datePicker id="pastDatePicker" property="pastDatePicker"/> <datePicker id="futureOrPresentDatePicker" property="futureOrPresentDatePicker"/> <datePicker id="pastOrPresentDatePicker" property="pastOrPresentDatePicker"/> <datePicker id="specificFutureDatePicker" property="specificFutureDatePicker"/> <dateField id="futureDateField" property="futureDateField"/> <dateField id="pastDateField" property="pastDateField"/> <dateField id="futureOrPresentDateField" property="futureOrPresentDateField"/> <dateField id="pastOrPresentDateField" property="pastOrPresentDateField"/> <dateField id="specificFutureDateField" property="specificFutureDateField"/> </form> </layout> </window> ```
/content/code_sandbox/modules/web/test/spec/cuba/gui/components/beanvalidation/screens/date-validation-screen.xml
xml
2016-03-24T07:55:56
2024-07-14T05:13:48
cuba
cuba-platform/cuba
1,342
340
```xml import { fireEvent, getByTestId } from '@testing-library/react'; import { act } from '@testing-library/react'; import { getModelState } from '@proton/account/test'; import { ROOSTER_EDITOR_ID } from '@proton/components/components/editor/constants'; import { MIME_TYPES } from '@proton/shared/lib/constants'; import noop from '@proton/utils/noop'; import { getAddressKeyCache, releaseCryptoProxy, setupCryptoProxyForTesting } from '../../../helpers/test/crypto'; import type { GeneratedKey } from '../../../helpers/test/helper'; import { addApiKeys, addApiMock, clearAll, createDocument, generateKeys, getCompleteAddress, waitForSpyCall, } from '../../../helpers/test/helper'; import { AddressID, ID, fromAddress, renderComposer, toAddress } from './Composer.test.helpers'; jest.setTimeout(20000); describe('Composer autosave', () => { let fromKeys: GeneratedKey; beforeAll(async () => { await setupCryptoProxyForTesting(); fromKeys = await generateKeys('me', fromAddress); }); afterAll(async () => { clearAll(); await releaseCryptoProxy(); }); beforeEach(() => { clearAll(); jest.useFakeTimers(); addApiKeys(false, toAddress, []); }); afterEach(() => { jest.useRealTimers(); }); const asyncSpy = (resolved = true) => { let resolve: (value: unknown) => void = noop; let reject: (value: unknown) => void = noop; const spy = jest.fn(() => { if (resolved) { return Promise.resolve({ Message: { ID } }); } return new Promise((res, rej) => { resolve = res; reject = rej; }); }); return { spy, resolve: (value: unknown) => resolve(value), reject: (value: unknown) => reject(value) }; }; const triggerRoosterInput = (container: HTMLElement) => { const iframe = getByTestId(container, 'rooster-iframe') as HTMLIFrameElement; const editor = iframe.contentDocument?.getElementById(ROOSTER_EDITOR_ID); if (editor) { fireEvent.input(editor, 'hello'); } }; const setup = async (resolved = true) => { const { container, store, ...renderResult } = await renderComposer({ preloadedState: { addresses: getModelState([getCompleteAddress({ ID: AddressID, Email: fromAddress })]), addressKeys: getAddressKeyCache(AddressID, fromKeys), }, message: { data: { ID: undefined, MIMEType: MIME_TYPES.DEFAULT }, messageDocument: { document: createDocument('test') }, }, }); triggerRoosterInput(container); // Initial dummy Squire input const { spy: createSpy, resolve: createResolve } = asyncSpy(resolved); const { spy: updateSpy, resolve: updateResolve } = asyncSpy(resolved); const { spy: sendSpy, resolve: sendResolve } = asyncSpy(resolved); addApiMock(`mail/v4/messages`, createSpy, 'post'); addApiMock(`mail/v4/messages/undefined`, updateSpy, 'put'); // Should be /ID addApiMock(`mail/v4/messages/${ID}`, sendSpy, 'post'); // Should be /ID return { ...renderResult, container, createSpy, updateSpy, sendSpy, createResolve, updateResolve, sendResolve }; }; it('should wait 2s before saving a change', async () => { const { createSpy, container } = await setup(); await act(async () => { triggerRoosterInput(container); jest.advanceTimersByTime(1500); expect(createSpy).not.toHaveBeenCalled(); jest.advanceTimersByTime(1500); await waitForSpyCall({ spy: createSpy, disableFakeTimers: true }); }); }); it('should wait 2s after the last change before saving a change', async () => { const { createSpy, container } = await setup(); await act(async () => { triggerRoosterInput(container); jest.advanceTimersByTime(1500); triggerRoosterInput(container); jest.advanceTimersByTime(1500); expect(createSpy).not.toHaveBeenCalled(); jest.advanceTimersByTime(1500); await waitForSpyCall({ spy: createSpy, disableFakeTimers: true }); }); }); it('should wait 2s after previous save resolved before saving a change', async () => { const { createSpy, createResolve, updateSpy, container } = await setup(false); await act(async () => { triggerRoosterInput(container); jest.advanceTimersByTime(1500); expect(createSpy).not.toHaveBeenCalled(); jest.advanceTimersByTime(1500); await waitForSpyCall({ spy: createSpy, disableFakeTimers: true }); triggerRoosterInput(container); jest.advanceTimersByTime(1500); expect(updateSpy).not.toHaveBeenCalled(); jest.advanceTimersByTime(1500); expect(updateSpy).not.toHaveBeenCalled(); createResolve({ Message: { ID } }); jest.advanceTimersByTime(1500); expect(updateSpy).not.toHaveBeenCalled(); jest.advanceTimersByTime(1500); await waitForSpyCall({ spy: updateSpy, disableFakeTimers: true }); }); }); it('should wait previous save before sending', async () => { const { createSpy, createResolve, sendSpy, container, ...renderResult } = await setup(false); await act(async () => { triggerRoosterInput(container); jest.advanceTimersByTime(1500); const sendButton = await renderResult.findByTestId('composer:send-button'); fireEvent.click(sendButton); jest.advanceTimersByTime(1500); await waitForSpyCall({ spy: createSpy, disableFakeTimers: true }); expect(sendSpy).not.toHaveBeenCalled(); createResolve({ Message: { ID, Attachments: [] } }); await waitForSpyCall({ spy: sendSpy, disableFakeTimers: true }); }); }); }); ```
/content/code_sandbox/applications/mail/src/app/components/composer/tests/Composer.autosave.test.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,343
```xml <!-- Description: feed generator name --> <feed xmlns="path_to_url"> <generator url="path_to_url" version="1.2">Feed Generator</generator> </feed> ```
/content/code_sandbox/testdata/translator/atom/feed_generator_-_atom10_feed_generator_name.xml
xml
2016-01-23T02:44:34
2024-08-16T15:16:03
gofeed
mmcdole/gofeed
2,547
40
```xml <test> <!-- lat swings roughly from -90 to 90, lon swings from -180 to 180, and their tempo does not match. --> <query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(geohashEncode((number % 150)*1.1 - 75, (number * 3.14 % 300)*1.1 - 150))</query> <query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(geohashDecode(toString(number % 1000000)))</query> <query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(geohashEncode(1.0/rand(), 2.0/rand()))</query> <query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(geohashDecode(toString(rand() % 1000000)))</query> <!-- erroneus values --> <query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(geohashEncode(number + 91.0, number + 181.0))</query> <query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(geohashDecode(hex(number)))</query> </test> ```
/content/code_sandbox/tests/performance/functions_geo.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
271
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <resources xmlns:android="path_to_url" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <string name="bsp_done_label" msgid="7007948707597430919">"Kwenziwe"</string> <string name="bsp_hour_picker_description" msgid="7586639618712934060">"Amahora weslayidi esiyindingilizi"</string> <string name="bsp_minute_picker_description" msgid="6024811202872705251">"Amaminithi weslayidi esiyindingilizi"</string> <string name="bsp_select_hours" msgid="7651068754188418859">"Khetha amahora"</string> <string name="bsp_select_minutes" msgid="8327182090226828481">"Khetha amaminithi"</string> <string name="bsp_day_picker_description" msgid="3968620852217927702">"Igridi yenyanga yezinsuku"</string> <string name="bsp_year_picker_description" msgid="6963340404644587098">"Uhlu lonyaka"</string> <string name="bsp_select_day" msgid="3973338219107019769">"Khetha inyanga nosuku"</string> <string name="bsp_select_year" msgid="2603330600102539372">"Khetha unyaka"</string> <string name="bsp_item_is_selected" msgid="2674929164900463786">"I-<xliff:g id="ITEM">%1$s</xliff:g> ekhethiwe"</string> <string name="bsp_deleted_key" msgid="6908431551612331381">"I-<xliff:g id="KEY">%1$s</xliff:g> isusiwe"</string> </resources> ```
/content/code_sandbox/bottomsheetpickers/src/main/res/values-zu/strings.xml
xml
2016-10-06T01:20:05
2024-08-05T10:12:07
BottomSheetPickers
philliphsu/BottomSheetPickers
1,101
456
```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 React, {useState} from 'react'; import {useIntl} from 'react-intl'; import {Button, CheckRoundIcon, ContainerSM, H1, Muted, Text} from '@wireapp/react-ui-kit'; import {handleEnterDown} from 'Util/KeyboardUtil'; import {setEntropyStrings} from '../../strings'; import {EntropyData} from '../../util/Entropy'; import {EntropyCanvas} from '../component/EntropyCanvas'; import {ProgressBar} from '../component/ProgressBar'; interface Props extends React.HTMLProps<HTMLDivElement> { onSetEntropy: (entropyData: Uint8Array) => void; containerSize?: number; } const EntropyContainer = ({onSetEntropy, containerSize = 400}: Props) => { const {formatMessage: _} = useIntl(); const [entropy, setEntropy] = useState<EntropyData>(new EntropyData()); const [pause, setPause] = useState<boolean>(); const [percent, setPercent] = useState(0); const onProgress = (entropyData: EntropyData, percentage: number, pause: boolean) => { setEntropy(entropyData); setPause(pause); setPercent(percentage); }; const forwardEntropy = async (entropy: Uint8Array) => { // we want to hash the entire entropy array to get a 256 bit (32 bytes) array const hashedValue = await window.crypto.subtle.digest('SHA-256', entropy); onSetEntropy(new Uint8Array(hashedValue)); }; return ( <ContainerSM centerText verticalCenter style={{ alignItems: 'center', display: 'flex', flexDirection: 'column', justifyContent: 'space-around', minHeight: 428, }} > <H1 center css={{marginBottom: 16}}> {_(setEntropyStrings.headline)} </H1> {percent >= 100 ? ( <> <CheckRoundIcon width={64} height={64} css={{alignSelf: 'center', marginBottom: 64}} /> <Muted center style={{marginBottom: 40}}> {_(setEntropyStrings.success)} </Muted> <Button css={{width: '70%'}} onClick={() => forwardEntropy(entropy.entropyData)} data-uie-name="do-entropy-confirm" onKeyDown={event => handleEnterDown(event, () => forwardEntropy(entropy.entropyData))} > {_(setEntropyStrings.continue)} </Button> </> ) : ( <> <Muted center css={{marginBottom: '24px'}}> {_(setEntropyStrings.subheadline)} </Muted> <EntropyCanvas css={{border: pause ? 'red 2px solid' : 'black 2px solid'}} data-uie-name="element-entropy-canvas" sizeX={containerSize} sizeY={containerSize} onProgress={onProgress} minEntropyBits={1024} minFrames={300} /> <ProgressBar error={!!pause} width={containerSize} percent={percent} /> <Text data-uie-name="element-entropy-percent" center> {percent}% </Text> </> )} </ContainerSM> ); }; export {EntropyContainer}; ```
/content/code_sandbox/src/script/auth/page/EntropyContainer.tsx
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
800
```xml // ag-grid-ng2 v6.2.0 import { EventEmitter, ViewContainerRef, ElementRef, QueryList, OnInit, AfterViewInit } from '@angular/core'; import { GridOptions, GridApi, ColumnApi } from 'ag-grid/main'; import { Ng2FrameworkFactory } from "./ng2FrameworkFactory"; import { AgGridColumn } from "./agGridColumn"; export declare class AgGridNg2 implements OnInit, AfterViewInit { private viewContainerRef; private ng2FrameworkFactory; private _nativeElement; private _initialised; private _destroyed; private gridParams; api: GridApi; columnApi: ColumnApi; columns: QueryList<AgGridColumn>; constructor(elementDef: ElementRef, viewContainerRef: ViewContainerRef, ng2FrameworkFactory: Ng2FrameworkFactory); ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: any): void; ngOnDestroy(): void; private globalEventListener(eventType, event); /** * inputs */ gridOptions: GridOptions; slaveGrids: any; rowData: any; floatingTopRowData: any; floatingBottomRowData: any; columnDefs: any; rowStyle: any; context: any; groupColumnDef: any; localeText: any; icons: any; datasource: any; viewportDatasource: any; groupRowRendererParams: any; aggFuncs: any; fullWidthCellRendererParams: any; sortingOrder: any; rowClass: any; rowSelection: any; overlayLoadingTemplate: any; overlayNoRowsTemplate: any; headerCellTemplate: any; quickFilterText: any; rowModelType: any; rowHeight: any; rowBuffer: any; colWidth: any; headerHeight: any; groupDefaultExpanded: any; minColWidth: any; maxColWidth: any; viewportRowModelPageSize: any; viewportRowModelBufferSize: any; layoutInterval: any; autoSizePadding: any; maxPagesInCache: any; maxConcurrentDatasourceRequests: any; paginationOverflowSize: any; paginationPageSize: any; paginationInitialRowCount: any; headerCellRenderer: any; localeTextFunc: any; groupRowInnerRenderer: any; groupRowRenderer: any; isScrollLag: any; isExternalFilterPresent: any; getRowHeight: any; doesExternalFilterPass: any; getRowClass: any; getRowStyle: any; getHeaderCellTemplate: any; traverseNode: any; getContextMenuItems: any; getMainMenuItems: any; processRowPostCreate: any; processCellForClipboard: any; getNodeChildDetails: any; groupRowAggNodes: any; getRowNodeId: any; isFullWidthCell: any; fullWidthCellRenderer: any; doesDataFlower: any; toolPanelSuppressRowGroups: any; toolPanelSuppressValues: any; toolPanelSuppressPivots: any; toolPanelSuppressPivotMode: any; suppressRowClickSelection: any; suppressCellSelection: any; suppressHorizontalScroll: any; debug: any; enableColResize: any; enableCellExpressions: any; enableSorting: any; enableServerSideSorting: any; enableFilter: any; enableServerSideFilter: any; angularCompileRows: any; angularCompileFilters: any; angularCompileHeaders: any; groupSuppressAutoColumn: any; groupSelectsChildren: any; groupIncludeFooter: any; groupUseEntireRow: any; groupSuppressRow: any; groupSuppressBlankHeader: any; forPrint: any; suppressMenuHide: any; rowDeselection: any; unSortIcon: any; suppressMultiSort: any; suppressScrollLag: any; singleClickEdit: any; suppressLoadingOverlay: any; suppressNoRowsOverlay: any; suppressAutoSize: any; suppressParentsInRowNodes: any; showToolPanel: any; suppressColumnMoveAnimation: any; suppressMovableColumns: any; suppressFieldDotNotation: any; enableRangeSelection: any; suppressEnterprise: any; rowGroupPanelShow: any; pivotPanelShow: any; suppressContextMenu: any; suppressMenuFilterPanel: any; suppressMenuMainPanel: any; suppressMenuColumnPanel: any; enableStatusBar: any; rememberGroupStateWhenNewData: any; enableCellChangeFlash: any; suppressDragLeaveHidesColumns: any; suppressMiddleClickScrolls: any; suppressPreventDefaultOnMouseWheel: any; suppressUseColIdForGroups: any; suppressCopyRowsToClipboard: any; pivotMode: any; suppressAggFuncInHeader: any; suppressColumnVirtualisation: any; suppressFocusAfterRefresh: any; functionsPassive: any; functionsReadOnly: any; /** * Outputs */ gridReady: EventEmitter<any>; columnEverythingChanged: EventEmitter<any>; newColumnsLoaded: EventEmitter<any>; columnPivotModeChanged: EventEmitter<any>; columnRowGroupChanged: EventEmitter<any>; columnPivotChanged: EventEmitter<any>; gridColumnsChanged: EventEmitter<any>; columnValueChanged: EventEmitter<any>; columnMoved: EventEmitter<any>; columnVisible: EventEmitter<any>; columnPinned: EventEmitter<any>; columnGroupOpened: EventEmitter<any>; columnResized: EventEmitter<any>; displayedColumnsChanged: EventEmitter<any>; virtualColumnsChanged: EventEmitter<any>; rowGroupOpened: EventEmitter<any>; rowDataChanged: EventEmitter<any>; floatingRowDataChanged: EventEmitter<any>; rangeSelectionChanged: EventEmitter<any>; columnRowGroupAddRequest: EventEmitter<any>; columnRowGroupRemoveRequest: EventEmitter<any>; columnPivotAddRequest: EventEmitter<any>; columnPivotRemoveRequest: EventEmitter<any>; columnValueAddRequest: EventEmitter<any>; columnValueRemoveRequest: EventEmitter<any>; columnAggFuncChangeRequest: EventEmitter<any>; clipboardPaste: EventEmitter<any>; modelUpdated: EventEmitter<any>; cellClicked: EventEmitter<any>; cellDoubleClicked: EventEmitter<any>; cellContextMenu: EventEmitter<any>; cellValueChanged: EventEmitter<any>; cellFocused: EventEmitter<any>; rowSelected: EventEmitter<any>; selectionChanged: EventEmitter<any>; beforeFilterChanged: EventEmitter<any>; filterChanged: EventEmitter<any>; afterFilterChanged: EventEmitter<any>; filterModified: EventEmitter<any>; beforeSortChanged: EventEmitter<any>; sortChanged: EventEmitter<any>; afterSortChanged: EventEmitter<any>; virtualRowRemoved: EventEmitter<any>; rowClicked: EventEmitter<any>; rowDoubleClicked: EventEmitter<any>; gridSizeChanged: EventEmitter<any>; viewportChanged: EventEmitter<any>; dragStarted: EventEmitter<any>; dragStopped: EventEmitter<any>; itemsAdded: EventEmitter<any>; itemsRemoved: EventEmitter<any>; } ```
/content/code_sandbox/services/dashboard/assets-dev/js/vendor/ag-grid-ng2/lib/agGridNg2.d.ts
xml
2016-06-21T19:39:58
2024-08-12T19:23:26
mylg
mehrdadrad/mylg
2,691
1,525
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="center" android:layout_margin="16dp" android:gravity="center" android:orientation="vertical" tools:context=".MainActivity"> <Button android:id="@+id/btnAccelerometer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="accelerometerSensorOnClick" android:text="Accelerometer" /> <Button android:id="@+id/btnProximity" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="proximitySensorOnClick" android:text="Proximity Sensor" /> <Button android:id="@+id/btnGyro" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="gyroscopeSensorOnClick" android:text="Gyroscope" /> <Button android:id="@+id/btnLightSensor" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="lightSensorOnClick" android:text="Light Sensor" /> <Button android:id="@+id/btnStepCounterOnClick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="stepCounterOnClick" android:text="Step Counter Sensor" /> <Button android:id="@+id/btnAmbientTemp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="ambientTempSensorOnClick" android:text="Ambient Temperature Sensor" /> <TextView android:id="@+id/tvResult" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="8dp" android:text="Values would be entered here..." /> </LinearLayout> ```
/content/code_sandbox/Android/AndroidSensors/app/src/main/res/layout/activity_main.xml
xml
2016-05-02T05:43:21
2024-08-16T06:51:39
journaldev
WebJournal/journaldev
1,314
473
```xml <?xml version="1.0" encoding="UTF-8"?> <module external.linked.project.id=":binder-hook" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="understand-plugin-framework" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> <component name="FacetManager"> <facet type="android-gradle" name="Android-Gradle"> <configuration> <option name="GRADLE_PROJECT_PATH" value=":binder-hook" /> </configuration> </facet> <facet type="android" name="Android"> <configuration> <option name="SELECTED_BUILD_VARIANT" value="debug" /> <option name="SELECTED_TEST_ARTIFACT" value="_android_test_" /> <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" /> <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" /> <afterSyncTasks> <task>generateDebugSources</task> </afterSyncTasks> <option name="ALLOW_USER_CONFIGURATION" value="false" /> <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" /> <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" /> <option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" /> <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" /> </configuration> </facet> </component> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="false"> <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" /> <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" /> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/jni" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/jni" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/jni" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/debug" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/mockable-android-19.jar" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/pre-dexed" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" /> <excludeFolder url="file://$MODULE_DIR$/build/intermediates/tmp" /> <excludeFolder url="file://$MODULE_DIR$/build/outputs" /> <excludeFolder url="file://$MODULE_DIR$/build/tmp" /> </content> <orderEntry type="jdk" jdkName="Android API 19 Platform" jdkType="Android SDK" /> <orderEntry type="sourceFolder" forTests="false" /> </component> <component name="org.twodividedbyzero.idea.findbugs"> <option name="_basePreferences"> <map> <entry key="property.analysisEffortLevel" value="default" /> <entry key="property.analyzeAfterAutoMake" value="false" /> <entry key="property.analyzeAfterCompile" value="false" /> <entry key="property.annotationGutterIconEnabled" value="true" /> <entry key="property.annotationSuppressWarningsClass" value="edu.umd.cs.findbugs.annotations.SuppressFBWarnings" /> <entry key="property.annotationTextRangeMarkupEnabled" value="true" /> <entry key="property.exportAsHtml" value="true" /> <entry key="property.exportAsXml" value="true" /> <entry key="property.exportBaseDir" value="" /> <entry key="property.exportCreateArchiveDir" value="false" /> <entry key="property.exportOpenBrowser" value="true" /> <entry key="property.minPriorityToReport" value="Medium" /> <entry key="property.runAnalysisInBackground" value="false" /> <entry key="property.showHiddenDetectors" value="false" /> <entry key="property.toolWindowToFront" value="true" /> </map> </option> <option name="_detectors"> <map> <entry key="AppendingToAnObjectOutputStream" value="true" /> <entry key="AtomicityProblem" value="true" /> <entry key="BadAppletConstructor" value="false" /> <entry key="BadResultSetAccess" value="true" /> <entry key="BadSyntaxForRegularExpression" value="true" /> <entry key="BadUseOfReturnValue" value="true" /> <entry key="BadlyOverriddenAdapter" value="true" /> <entry key="BooleanReturnNull" value="true" /> <entry key="BuildInterproceduralCallGraph" value="false" /> <entry key="BuildObligationPolicyDatabase" value="true" /> <entry key="BuildStringPassthruGraph" value="true" /> <entry key="CallToUnsupportedMethod" value="false" /> <entry key="CalledMethods" value="true" /> <entry key="CheckCalls" value="false" /> <entry key="CheckExpectedWarnings" value="false" /> <entry key="CheckImmutableAnnotation" value="true" /> <entry key="CheckRelaxingNullnessAnnotation" value="true" /> <entry key="CheckTypeQualifiers" value="true" /> <entry key="CloneIdiom" value="true" /> <entry key="ComparatorIdiom" value="true" /> <entry key="ConfusedInheritance" value="true" /> <entry key="ConfusionBetweenInheritedAndOuterMethod" value="true" /> <entry key="CovariantArrayAssignment" value="false" /> <entry key="CrossSiteScripting" value="true" /> <entry key="DefaultEncodingDetector" value="true" /> <entry key="DoInsideDoPrivileged" value="true" /> <entry key="DontCatchIllegalMonitorStateException" value="true" /> <entry key="DontIgnoreResultOfPutIfAbsent" value="true" /> <entry key="DontUseEnum" value="true" /> <entry key="DroppedException" value="true" /> <entry key="DumbMethodInvocations" value="true" /> <entry key="DumbMethods" value="true" /> <entry key="DuplicateBranches" value="true" /> <entry key="EmptyZipFileEntry" value="false" /> <entry key="EqualsOperandShouldHaveClassCompatibleWithThis" value="true" /> <entry key="ExplicitSerialization" value="true" /> <entry key="FieldItemSummary" value="true" /> <entry key="FinalizerNullsFields" value="true" /> <entry key="FindBadCast2" value="true" /> <entry key="FindBadForLoop" value="true" /> <entry key="FindBugsSummaryStats" value="true" /> <entry key="FindCircularDependencies" value="false" /> <entry key="FindComparatorProblems" value="true" /> <entry key="FindDeadLocalStores" value="true" /> <entry key="FindDoubleCheck" value="true" /> <entry key="FindEmptySynchronizedBlock" value="true" /> <entry key="FindFieldSelfAssignment" value="true" /> <entry key="FindFinalizeInvocations" value="true" /> <entry key="FindFloatEquality" value="true" /> <entry key="FindFloatMath" value="false" /> <entry key="FindHEmismatch" value="true" /> <entry key="FindInconsistentSync2" value="true" /> <entry key="FindJSR166LockMonitorenter" value="true" /> <entry key="FindLocalSelfAssignment2" value="true" /> <entry key="FindMaskedFields" value="true" /> <entry key="FindMismatchedWaitOrNotify" value="true" /> <entry key="FindNakedNotify" value="true" /> <entry key="FindNoSideEffectMethods" value="true" /> <entry key="FindNonSerializableStoreIntoSession" value="false" /> <entry key="FindNonSerializableValuePassedToWriteObject" value="false" /> <entry key="FindNonShortCircuit" value="true" /> <entry key="FindNullDeref" value="true" /> <entry key="FindNullDerefsInvolvingNonShortCircuitEvaluation" value="true" /> <entry key="FindOpenStream" value="true" /> <entry key="FindPuzzlers" value="true" /> <entry key="FindRefComparison" value="true" /> <entry key="FindReturnRef" value="true" /> <entry key="FindRoughConstants" value="true" /> <entry key="FindRunInvocations" value="true" /> <entry key="FindSelfComparison" value="true" /> <entry key="FindSelfComparison2" value="true" /> <entry key="FindSleepWithLockHeld" value="true" /> <entry key="FindSpinLoop" value="true" /> <entry key="FindSqlInjection" value="true" /> <entry key="FindTwoLockWait" value="true" /> <entry key="FindUncalledPrivateMethods" value="true" /> <entry key="FindUnconditionalWait" value="true" /> <entry key="FindUninitializedGet" value="true" /> <entry key="FindUnrelatedTypesInGenericContainer" value="true" /> <entry key="FindUnreleasedLock" value="true" /> <entry key="FindUnsatisfiedObligation" value="true" /> <entry key="FindUnsyncGet" value="true" /> <entry key="FindUseOfNonSerializableValue" value="true" /> <entry key="FindUselessControlFlow" value="true" /> <entry key="FindUselessObjects" value="true" /> <entry key="FormatStringChecker" value="true" /> <entry key="FunctionsThatMightBeMistakenForProcedures" value="true" /> <entry key="HugeSharedStringConstants" value="true" /> <entry key="IDivResultCastToDouble" value="true" /> <entry key="IncompatMask" value="true" /> <entry key="InconsistentAnnotations" value="true" /> <entry key="InefficientIndexOf" value="false" /> <entry key="InefficientInitializationInsideLoop" value="false" /> <entry key="InefficientMemberAccess" value="false" /> <entry key="InefficientToArray" value="false" /> <entry key="InfiniteLoop" value="true" /> <entry key="InfiniteRecursiveLoop" value="true" /> <entry key="InheritanceUnsafeGetResource" value="true" /> <entry key="InitializationChain" value="true" /> <entry key="InitializeNonnullFieldsInConstructor" value="true" /> <entry key="InstantiateStaticClass" value="true" /> <entry key="IntCast2LongAsInstant" value="true" /> <entry key="InvalidJUnitTest" value="true" /> <entry key="IteratorIdioms" value="true" /> <entry key="LazyInit" value="true" /> <entry key="LoadOfKnownNullValue" value="true" /> <entry key="LostLoggerDueToWeakReference" value="true" /> <entry key="MethodReturnCheck" value="true" /> <entry key="Methods" value="true" /> <entry key="MultithreadedInstanceAccess" value="true" /> <entry key="MutableEnum" value="true" /> <entry key="MutableLock" value="true" /> <entry key="MutableStaticFields" value="true" /> <entry key="Naming" value="true" /> <entry key="Noise" value="false" /> <entry key="NoiseNullDeref" value="false" /> <entry key="NoteAnnotationRetention" value="true" /> <entry key="NoteCheckReturnValueAnnotations" value="true" /> <entry key="NoteDirectlyRelevantTypeQualifiers" value="true" /> <entry key="NoteJCIPAnnotation" value="true" /> <entry key="NoteNonNullAnnotations" value="false" /> <entry key="NoteNonnullReturnValues" value="false" /> <entry key="NoteSuppressedWarnings" value="true" /> <entry key="NoteUnconditionalParamDerefs" value="true" /> <entry key="NumberConstructor" value="true" /> <entry key="OptionalReturnNull" value="true" /> <entry key="OverridingEqualsNotSymmetrical" value="true" /> <entry key="PreferZeroLengthArrays" value="true" /> <entry key="PublicSemaphores" value="false" /> <entry key="QuestionableBooleanAssignment" value="true" /> <entry key="ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass" value="true" /> <entry key="ReadReturnShouldBeChecked" value="true" /> <entry key="RedundantConditions" value="true" /> <entry key="RedundantInterfaces" value="true" /> <entry key="ReflectiveClasses" value="true" /> <entry key="RepeatedConditionals" value="true" /> <entry key="ResolveAllReferences" value="false" /> <entry key="RuntimeExceptionCapture" value="true" /> <entry key="SerializableIdiom" value="true" /> <entry key="StartInConstructor" value="true" /> <entry key="StaticCalendarDetector" value="true" /> <entry key="StringConcatenation" value="true" /> <entry key="SuperfluousInstanceOf" value="true" /> <entry key="SuspiciousThreadInterrupted" value="true" /> <entry key="SwitchFallthrough" value="true" /> <entry key="SynchronizationOnSharedBuiltinConstant" value="true" /> <entry key="SynchronizeAndNullCheckField" value="true" /> <entry key="SynchronizeOnClassLiteralNotGetClass" value="true" /> <entry key="SynchronizingOnContentsOfFieldToProtectField" value="true" /> <entry key="TestASM" value="false" /> <entry key="TestDataflowAnalysis" value="false" /> <entry key="TestingGround" value="false" /> <entry key="TestingGround2" value="false" /> <entry key="TrainFieldStoreTypes" value="true" /> <entry key="TrainLongInstantfParams" value="true" /> <entry key="TrainNonNullAnnotations" value="true" /> <entry key="TrainUnconditionalDerefParams" value="true" /> <entry key="URLProblems" value="true" /> <entry key="UncallableMethodOfAnonymousClass" value="true" /> <entry key="UnnecessaryMath" value="true" /> <entry key="UnreadFields" value="true" /> <entry key="UselessSubclassMethod" value="false" /> <entry key="VarArgsProblems" value="true" /> <entry key="VolatileUsage" value="true" /> <entry key="WaitInLoop" value="true" /> <entry key="WrongMapIterator" value="true" /> <entry key="XMLFactoryBypass" value="true" /> </map> </option> <option name="_reportCategories"> <map> <entry key="BAD_PRACTICE" value="true" /> <entry key="CORRECTNESS" value="true" /> <entry key="EXPERIMENTAL" value="true" /> <entry key="I18N" value="true" /> <entry key="MALICIOUS_CODE" value="true" /> <entry key="MT_CORRECTNESS" value="true" /> <entry key="PERFORMANCE" value="true" /> <entry key="SECURITY" value="true" /> <entry key="STYLE" value="true" /> </map> </option> </component> </module> ```
/content/code_sandbox/binder-hook/binder-hook.iml
xml
2016-01-28T02:51:45
2024-08-16T11:36:48
understand-plugin-framework
tiann/understand-plugin-framework
2,633
4,986
```xml // / export { default as rect } from './intervalView'; // export { default as pyramid } from './polygonView'; // export { default as funnel } from './polygonView'; ```
/content/code_sandbox/packages/f2/src/components/interval/view/index.tsx
xml
2016-08-29T06:26:23
2024-08-16T15:50:14
F2
antvis/F2
7,877
40
```xml import { PluginManager, Hook } from "@server/utils/PluginManager"; import config from "../plugin.json"; import webhookSubscriptions from "./api/webhookSubscriptions"; import WebhookProcessor from "./processors/WebhookProcessor"; import CleanupWebhookDeliveriesTask from "./tasks/CleanupWebhookDeliveriesTask"; import DeliverWebhookTask from "./tasks/DeliverWebhookTask"; PluginManager.add([ { ...config, type: Hook.API, value: webhookSubscriptions, }, { type: Hook.Processor, value: WebhookProcessor, }, { type: Hook.Task, value: DeliverWebhookTask, }, { type: Hook.Task, value: CleanupWebhookDeliveriesTask, }, ]); ```
/content/code_sandbox/plugins/webhooks/server/index.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
164
```xml <?xml version="1.0" encoding="utf-8"?><!-- --> <LinearLayout xmlns:android="path_to_url" xmlns:tools="path_to_url" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="dodola.appsofix.MainActivity" android:orientation="vertical"> <TextView android:layout_marginTop="10dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="so" /> <TextView android:id="@+id/source" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView android:id="@+id/copyfrom" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="10dp" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=":" android:layout_marginTop="10dp"/> <TextView android:id="@+id/test" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" android:layout_marginTop="10dp"/> </LinearLayout> ```
/content/code_sandbox/appsofix/src/main/res/layout/activity_main.xml
xml
2016-05-25T11:58:00
2024-08-11T00:32:36
RocooFix
dodola/RocooFix
1,573
288
```xml <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24.0" android:viewportHeight="24.0"> <path android:fillColor="#FF000000" android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM16.23,18L12,15.45 7.77,18l1.12,-4.81 -3.73,-3.23 4.92,-0.42L12,5l1.92,4.53 4.92,0.42 -3.73,3.23L16.23,18z"/> </vector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_star.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
208
```xml import { DashboardQuery } from './DashboardQuery'; export interface Result<TModel> { etag: string; model: TModel; } export interface Mapper<TModel, TPartitionKeyFields extends keyof TModel, TRowKeyFields extends keyof TModel> { createStorageIfNotExists(): Promise<void>; insertOrMerge(model: TModel): Promise<void>; insert(model: TModel): Promise<Result<TModel>>; replace(model: TModel, etag: string): Promise<Result<TModel>>; findOne(identifier: Pick<TModel, TPartitionKeyFields | TRowKeyFields>): Promise<Result<TModel> | null>; findAll(query: DashboardQuery<TModel, TPartitionKeyFields, TRowKeyFields>): Promise<Result<TModel>[]>; } ```
/content/code_sandbox/e2e/test/jest-with-ts/src/data-access/mappers/Mapper.ts
xml
2016-02-12T13:14:28
2024-08-15T18:38:25
stryker-js
stryker-mutator/stryker-js
2,561
157
```xml // @ts-ignore: uses flow import normalizeColor from '@react-native/normalize-colors'; import { ExpoConfig } from 'expo/config'; import { ConfigPlugin, InfoPlist, withInfoPlist } from 'expo/config-plugins'; // Maps to the template AppDelegate.m const BACKGROUND_COLOR_KEY = 'RCTRootViewBackgroundColor'; const debug = require('debug')('expo:system-ui:plugin:ios'); export const withIosRootViewBackgroundColor: ConfigPlugin = (config) => { config = withInfoPlist(config, (config) => { config.modResults = setRootViewBackgroundColor(config, config.modResults); return config; }); return config; }; export function setRootViewBackgroundColor( config: Pick<ExpoConfig, 'backgroundColor' | 'ios'>, infoPlist: InfoPlist ): InfoPlist { const backgroundColor = getRootViewBackgroundColor(config); if (!backgroundColor) { delete infoPlist[BACKGROUND_COLOR_KEY]; } else { let color = normalizeColor(backgroundColor); if (!color) { throw new Error('Invalid background color on iOS'); } color = ((color << 24) | (color >>> 8)) >>> 0; infoPlist[BACKGROUND_COLOR_KEY] = color; debug(`Convert color: ${backgroundColor} -> ${color}`); } return infoPlist; } export function getRootViewBackgroundColor(config: Pick<ExpoConfig, 'ios' | 'backgroundColor'>) { return config.ios?.backgroundColor || config.backgroundColor || null; } ```
/content/code_sandbox/packages/expo-system-ui/plugin/src/withIosRootViewBackgroundColor.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
331
```xml export default { schemaNames: ['Conversations', 'ConversationsTag'], types: ['Conversations', 'ConversationsTag'] }; ```
/content/code_sandbox/packages/plugin-inbox-api/src/dashboards.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
30
```xml <?xml version="1.0" encoding="utf-8"?> <androidx.coordinatorlayout.widget.CoordinatorLayout 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:fitsSystemWindows="true" tools:context="github.nisrulz.unittestingwithroboelectric.MainActivity" > <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay" > <androidx.appcompat.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme.PopupOverlay" /> </com.google.android.material.appbar.AppBarLayout> <include layout="@layout/content_main"/> </androidx.coordinatorlayout.widget.CoordinatorLayout> ```
/content/code_sandbox/UnitTestingWithRoboelectric/app/src/main/res/layout/activity_main.xml
xml
2016-02-25T11:06:48
2024-08-07T21:41:59
android-examples
nisrulz/android-examples
1,747
238
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug-Dynamic|ARM"> <Configuration>Debug-Dynamic</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Dynamic|ARM64"> <Configuration>Debug-Dynamic</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Dynamic|Win32"> <Configuration>Debug-Dynamic</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Dynamic|x64"> <Configuration>Debug-Dynamic</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Static|ARM"> <Configuration>Debug-Static</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Static|ARM64"> <Configuration>Debug-Static</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Static|Win32"> <Configuration>Debug-Static</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug-Static|x64"> <Configuration>Debug-Static</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|ARM"> <Configuration>Debug</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|ARM64"> <Configuration>Debug</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Debug|x64"> <Configuration>Debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Dynamic|ARM"> <Configuration>Release-Dynamic</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Dynamic|ARM64"> <Configuration>Release-Dynamic</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Dynamic|Win32"> <Configuration>Release-Dynamic</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Dynamic|x64"> <Configuration>Release-Dynamic</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Static|ARM"> <Configuration>Release-Static</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Static|ARM64"> <Configuration>Release-Static</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Static|Win32"> <Configuration>Release-Static</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release-Static|x64"> <Configuration>Release-Static</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|ARM"> <Configuration>Release</Configuration> <Platform>ARM</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|ARM64"> <Configuration>Release</Configuration> <Platform>ARM64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|Win32"> <Configuration>Release</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <ProjectConfiguration Include="Release|x64"> <Configuration>Release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <!-- Import common config --> <Import Project="..\..\build\vs\pjproject-vs14-common-config.props" /> <PropertyGroup Label="Globals"> <ProjectGuid>{2BB84911-C1B4-4747-B93D-36AA82CC5031}</ProjectGuid> <RootNamespace>pjsip_core</RootNamespace> <!-- Specific UWP property --> <DefaultLanguage>en-US</DefaultLanguage> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v140</PlatformToolset> <UseOfMfc>false</UseOfMfc> <CharacterSet>MultiByte</CharacterSet> </PropertyGroup> <!-- Override the PlatformToolset --> <PropertyGroup> <PlatformToolset>$(BuildToolset)</PlatformToolset> <CharacterSet Condition="'$(API_Family)'!='WinDesktop'"> </CharacterSet> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win32-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win32-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win32-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win32-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win32-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win32-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win64-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm64-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win64-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm64-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win64-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm64-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win64-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm64-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win64-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm64-release-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-release-dynamic-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-win64-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="PropertySheets"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="..\..\build\vs\pjproject-vs14-arm64-common-defaults.props" /> <Import Project="..\..\build\vs\pjproject-vs14-debug-static-defaults.props" /> </ImportGroup> <PropertyGroup Label="UserMacros" /> <PropertyGroup> <_ProjectFileVersion>14.0.22823.1</_ProjectFileVersion> <TargetName>pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration)</TargetName> </PropertyGroup> <!-- Compile and link option definition --> <ItemDefinitionGroup> <ClCompile> <RuntimeLibrary Condition="'$(API_Family)'=='UWP'">MultiThreadedDebugDLL</RuntimeLibrary> </ClCompile> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <Midl> <TargetEnvironment>X64</TargetEnvironment> </Midl> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'"> <Midl /> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <Midl> <TargetEnvironment>X64</TargetEnvironment> </Midl> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'"> <Midl /> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|Win32'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|ARM'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|x64'"> <Midl> <TargetEnvironment>X64</TargetEnvironment> </Midl> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Static|ARM64'"> <Midl /> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|Win32'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|ARM'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|x64'"> <Midl> <TargetEnvironment>X64</TargetEnvironment> </Midl> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Dynamic|ARM64'"> <Midl /> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|Win32'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|ARM'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|x64'"> <Midl> <TargetEnvironment>X64</TargetEnvironment> </Midl> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug-Dynamic|ARM64'"> <Midl /> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|Win32'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|ARM'"> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|x64'"> <Midl> <TargetEnvironment>X64</TargetEnvironment> </Midl> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile /> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release-Static|ARM64'"> <Midl /> <ClCompile> <AdditionalIncludeDirectories>../include;../../pjlib/include;../../pjlib-util/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PrecompiledHeaderOutputFile> </PrecompiledHeaderOutputFile> </ClCompile> <Lib> <OutputFile>..\lib\pjsip-core-$(TargetCPU)-$(Platform)-vc$(VSVer)-$(Configuration).lib</OutputFile> </Lib> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\src\pjsip\sip_auth_aka.c" /> <ClCompile Include="..\src\pjsip\sip_auth_client.c" /> <ClCompile Include="..\src\pjsip\sip_auth_msg.c" /> <ClCompile Include="..\src\pjsip\sip_auth_parser.c" /> <ClCompile Include="..\src\pjsip\sip_auth_server.c" /> <ClCompile Include="..\src\pjsip\sip_config.c" /> <ClCompile Include="..\src\pjsip\sip_dialog.c" /> <ClCompile Include="..\src\pjsip\sip_endpoint.c" /> <ClCompile Include="..\src\pjsip\sip_errno.c" /> <ClCompile Include="..\src\pjsip\sip_msg.c" /> <ClCompile Include="..\src\pjsip\sip_multipart.c" /> <ClCompile Include="..\src\pjsip\sip_parser.c" /> <ClCompile Include="..\src\pjsip\sip_resolve.c" /> <ClCompile Include="..\src\pjsip\sip_tel_uri.c" /> <ClCompile Include="..\src\pjsip\sip_transaction.c" /> <ClCompile Include="..\src\pjsip\sip_transport.c" /> <ClCompile Include="..\src\pjsip\sip_transport_loop.c" /> <ClCompile Include="..\src\pjsip\sip_transport_tcp.c" /> <ClCompile Include="..\src\pjsip\sip_transport_tls.c" /> <ClCompile Include="..\src\pjsip\sip_transport_udp.c" /> <ClCompile Include="..\src\pjsip\sip_ua_layer.c" /> <ClCompile Include="..\src\pjsip\sip_uri.c" /> <ClCompile Include="..\src\pjsip\sip_util.c" /> <ClCompile Include="..\src\pjsip\sip_util_proxy.c" /> <ClCompile Include="..\src\pjsip\sip_util_statefull.c" /> </ItemGroup> <ItemGroup> <ClInclude Include="..\docs\doxygen.h" /> <ClInclude Include="..\include\pjsip.h" /> <ClInclude Include="..\include\pjsip\print_util.h" /> <ClInclude Include="..\include\pjsip\sip_auth.h" /> <ClInclude Include="..\include\pjsip\sip_auth_aka.h" /> <ClInclude Include="..\include\pjsip\sip_auth_msg.h" /> <ClInclude Include="..\include\pjsip\sip_auth_parser.h" /> <ClInclude Include="..\include\pjsip\sip_config.h" /> <ClInclude Include="..\include\pjsip\sip_dialog.h" /> <ClInclude Include="..\include\pjsip\sip_endpoint.h" /> <ClInclude Include="..\include\pjsip\sip_errno.h" /> <ClInclude Include="..\include\pjsip\sip_event.h" /> <ClInclude Include="..\include\pjsip\sip_module.h" /> <ClInclude Include="..\include\pjsip\sip_msg.h" /> <ClInclude Include="..\include\pjsip\sip_multipart.h" /> <ClInclude Include="..\include\pjsip\sip_parser.h" /> <ClInclude Include="..\include\pjsip\sip_private.h" /> <ClInclude Include="..\include\pjsip\sip_resolve.h" /> <ClInclude Include="..\include\pjsip\sip_tel_uri.h" /> <ClInclude Include="..\include\pjsip\sip_transaction.h" /> <ClInclude Include="..\include\pjsip\sip_transport.h" /> <ClInclude Include="..\include\pjsip\sip_transport_loop.h" /> <ClInclude Include="..\include\pjsip\sip_transport_tcp.h" /> <ClInclude Include="..\include\pjsip\sip_transport_tls.h" /> <ClInclude Include="..\include\pjsip\sip_transport_udp.h" /> <ClInclude Include="..\include\pjsip\sip_types.h" /> <ClInclude Include="..\include\pjsip\sip_ua_layer.h" /> <ClInclude Include="..\include\pjsip\sip_uri.h" /> <ClInclude Include="..\include\pjsip\sip_util.h" /> </ItemGroup> <ItemGroup> <Text Include="..\..\INSTALL.txt" /> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> </Project> ```
/content/code_sandbox/pjsip/build/pjsip_core.vcxproj
xml
2016-01-24T05:00:33
2024-08-16T03:31:21
pjproject
pjsip/pjproject
1,960
10,414
```xml import * as React from 'react'; import { classNamesFunction } from '@fluentui/react'; import { Page, PlatformContext, IPageSectionProps, MarkdownHeader, ColorPalette, IColorSwatch, } from '@fluentui/react-docsite-components/lib/index2'; import { Platforms } from '../../../interfaces/Platforms'; import { getSubTitle } from '../../../utilities/index'; import { IThemeSlotsPageProps, IThemeSlotsPageStyles, IThemeSlotsPageStyleProps } from './ThemeSlotsPage.types'; import { ThemeSlotsPageProps } from './ThemeSlotsPage.doc'; const getClassNames = classNamesFunction<IThemeSlotsPageStyleProps, IThemeSlotsPageStyles>(); const baseUrl = 'path_to_url // Color palettes /* eslint-disable import/no-extraneous-dependencies */ const themeColors = require<IColorSwatch[]>('@fluentui/public-docsite/lib/data/colors-theme-slots.json'); const neutralColors = require<IColorSwatch[]>('@fluentui/public-docsite/lib/data/colors-theme-neutrals.json'); const accentColors = require<IColorSwatch[]>('@fluentui/public-docsite/lib/data/colors-theme-accents.json'); /* eslint-enable import/no-extraneous-dependencies */ export const ThemeSlotsPageBase: React.FunctionComponent<IThemeSlotsPageProps> = props => { const { theme, styles, className } = props; const classNames = getClassNames(styles, { theme, className }); return ( <PlatformContext.Consumer> {(platform: Platforms) => { return ( <Page {...props} title="Theme Slots" {...ThemeSlotsPageProps[platform]} subTitle={getSubTitle(platform)} otherSections={_otherSections(platform)} className={classNames.root} /> ); }} </PlatformContext.Consumer> ); }; // Method that returns array of sections. Renders in the order defined. function _otherSections(platform: Platforms): IPageSectionProps[] { switch (platform) { case 'web': return [ { sectionName: 'Color palettes', content: ( <> <MarkdownHeader as="h3">Theme colors</MarkdownHeader> <ColorPalette colors={themeColors} /> <MarkdownHeader as="h3">Neutral colors</MarkdownHeader> <ColorPalette colors={neutralColors} /> <MarkdownHeader as="h3">Accent colors</MarkdownHeader> <ColorPalette colors={accentColors} /> </> ), }, { sectionName: 'Implementation', editUrl: baseUrl + 'web/ThemeSlotsImplementation.md', content: require('!raw-loader?esModule=false!@fluentui/public-docsite/src/pages/Styles/ThemeSlotsPage/docs/web/ThemeSlotsImplementation.md') as string, }, ]; default: return []; } } ```
/content/code_sandbox/apps/public-docsite/src/pages/Styles/ThemeSlotsPage/ThemeSlotsPage.base.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
604
```xml import * as React from 'react'; /* eslint-disable @typescript-eslint/explicit-function-return-type */ import { registerIcons } from '@uifabric/styling'; export const registerSVGIcons = () => { registerIcons({ icons: { arrivalsSVG: ( <svg xmlns="path_to_url" version="1.0" viewBox="0 0 512 512"> <path d="M41.4 1.8c-4.8 2.3-8.1 6.1-9.3 11.1-1.6 6-15.3 152.2-14.8 157.4.3 3.3 1.3 5.9 3.3 8.3 2.1 2.6 17.2 12 54.9 34 28.6 16.7 52 30.7 51.9 31.1 0 .4-12.9 10.7-28.7 22.8-31.5 24.3-33.2 25.7-35.4 29.9-2.1 3.9-2 11.4 0 15.3 2.5 4.7 5.5 6.6 37.1 23.3 19.8 10.5 30.1 15.4 33 15.7 2.7.3 26-3.8 71-12.7 36.8-7.2 67.6-13.2 68.5-13.2.9-.1 16 5.9 33.6 13.2 53.7 22.2 70.4 28.2 93.5 33.3 23.7 5.3 40.7 5.7 56.8 1.6 23.1-5.9 38.2-24.8 38.2-48 0-31.2-31.4-60.7-94.2-88.8-8.4-3.8-72.2-30.4-141.8-59.1-69.6-28.8-126.6-52.4-126.8-52.5-.1-.1-3.6-20.2-7.7-44.6-4.2-24.4-8-45.8-8.6-47.5-2-6.2-6.2-8.7-34.4-20.4C66.4 5.8 52.5.7 50 .4c-3.2-.3-5.7.1-8.6 1.4zm32.3 44.8c4.9 2 9.2 3.9 9.6 4.4.5.4 4.2 20.3 8.2 44.1 4.1 23.9 7.9 45 8.4 46.9 2.3 8-1.6 6.2 143.7 66.4 148.7 61.6 154.9 64.3 172.1 74.1 35.6 20.3 50 37.6 42.3 50.3-3.6 5.8-9.4 7.7-24 7.6-25.5-.2-45.5-6.3-118.1-36.3-21.8-9-38-15.1-40-15.1-1.8 0-33 5.8-69.5 13-36.4 7.1-66.9 13-67.7 13-1.8 0-26.7-13.1-26.7-14.1 0-.3 12.3-10 27.3-21.5 31.5-24.2 34.5-26.8 36.4-31.1 2.7-6.5 1-14.5-3.9-19.1-1.4-1.2-28.3-17.3-59.9-35.8C80.3 175 54.1 159.5 53.6 159c-.6-.6 1.1-22.4 4.3-55.7C63 49.7 63.7 43 64.6 43c.2 0 4.3 1.6 9.1 3.6zM31.5 478.4c-6.4 2.9-10.5 9.4-10.5 16.7 0 6.5 4.9 13.4 11.3 15.8 2 .8 70.3 1.1 224.6 1.1h221.7l4.4-2.2c13-6.6 12.8-24.9-.4-30.9-4-1.8-12.1-1.9-226.1-1.8-183.3 0-222.5.2-225 1.3z" /> </svg> ), departuresSVG: ( <svg xmlns="path_to_url" version="1.0" viewBox="0 0 512 512"> <path d="M445.5 56.6c-15.8 1.7-41.4 8.5-63.8 17-6.7 2.5-64.4 26.2-128.2 52.6-102.4 42.4-116.2 47.9-118 46.8-1.1-.7-15.5-10.9-32-22.5C87 138.8 71.8 128.2 69.7 127c-6.6-3.9-9.8-3.2-36.6 8-13.4 5.5-25.4 10.8-26.8 11.7-6.4 4.2-8 15.1-3.2 21.7 1.2 1.7 22 27 46 56.2 45.9 55.7 46.1 56 53.9 55.7 1.9 0 26.9-6.2 55.4-13.7 28.5-7.5 52.1-13.5 52.3-13.3.2.2-1.8 16.4-4.3 36l-4.7 35.6 2.4 4.8c3 5.9 7.5 8.7 13.8 8.6 4.5-.1 57.4-15.9 63.2-18.9 1.8-.9 10.2-12.5 24.5-33.6 11.9-17.8 28.1-41.7 35.8-53.2l14.1-20.9 34.3-14.2c51.3-21.4 70.9-31.4 89.8-46.1 15.1-11.7 24.2-23.2 28.5-36.3 3.2-9.5 2.5-22.2-1.8-31.4-6.1-12.9-18.6-22.6-32.8-25.5-6-1.3-22.4-2.2-28-1.6zm26.1 34.1c5.1 2.7 7.9 7.9 7 13.1-.8 5.5-7.3 13.9-15.6 20.5-19.1 15.2-35.9 23.7-98.9 49.7-15.1 6.3-28.4 12.3-29.7 13.4-1.2 1.2-17.8 25.3-36.8 53.7l-34.7 51.5-12.5 3.8c-6.9 2.1-12.8 3.6-13 3.3-.3-.3 1.5-15.9 3.9-34.6 4.8-36.3 4.8-38.1.5-43.6-2.5-3.2-7.4-5.5-11.8-5.5-1.7 0-29.7 7-62.3 15.5l-59.2 15.6-2-2.5c-1.1-1.3-15.9-19.3-33-40-17-20.7-31.1-38-31.3-38.4-.2-.8 15.1-7.5 17.2-7.5.6 0 15.9 10.4 33.9 23.2 18 12.8 34.4 23.9 36.5 24.8 2.1.8 5.1 1.3 7.2 1 1.9-.3 56.4-22.4 121-49.2 64.6-26.8 124.3-51.3 132.5-54.5 20.5-7.8 35.9-12.3 53.5-15.4 1.4-.2 7.2-.3 13-.2 8.5.2 11.3.6 14.6 2.3zM11.6 425c-1.6.5-4 1.9-5.3 3.2-7.9 7.3-7 18.6 2 25.2l2.8 2.1 243.2.3c271 .3 248.8.8 254.5-6.6 2.2-2.9 2.7-4.6 2.7-9.1 0-6.9-2.9-11.5-8.9-14.2-4-1.8-12.2-1.9-246.1-1.8-133.1 0-243.3.5-244.9.9z" /> </svg> ), noDataFoundSVG: ( <svg xmlns="path_to_url" viewBox="0 0 500 500"><defs><clipPath id="a"><path stroke-linecap="round" stroke-linejoin="round" d="M167.15 336.75s3.62 8.93 3 16.79-3 20.61-1.28 25.93 5.53 26.47 5.53 26.47-1.91 2.12-1.91 4 .64 11.47.64 11.47h1.27l1.28-9.56a3.75 3.75 0 012.12 2.55c.21 1.7.85 6.59 1.7 6.8a15.55 15.55 0 003.19 0s1.27-.85.64-1.49a5.35 5.35 0 01-1.7-3.18c-.43-1.92-1.49-4.68-1.49-8.29v-32c0-9.35 1.27-16.58 1.7-24.87a78.54 78.54 0 00-.43-14z"/></clipPath><clipPath id="b"><path stroke-linecap="round" stroke-linejoin="round" d="M187.61 338.09s2 6.18 1.64 9.09-9.82 11.81-10.91 17.09-3.64 17.27-4.54 22.36-1.66 8.09-3.2 9.46-4.37.11-6.51 2.54-8.4 9.9-8.4 9.9l.87.77 7.35-4.49s3.39 1.29 3.46 3.29a53.37 53.37 0 001.16 8.26c.45 1.67 3.54 4.94 5.52 5.42s1.93-2 1.14-2.47-1.92-3-1.74-6.12 1.43-12.3 2.65-14.42 12.06-25 17.69-32.32 7.45-14 8.73-15.82 1.27-6.18 1.27-8.54a27.56 27.56 0 00-.36-4.36z"/></clipPath></defs><path d="M235.67 182.42c-4.17-2.27-6.07-.38-7.58-2.27s4.17-6.83-7.21-11.76c0 0-.76-10.61-16.3-11S193.21 168 189 170.67s-5.31-1.52-9.48 1.13-2.28 8-5.69 8.72-8-3.41-12.13-.75-4.17 4.92-6.07 4.92-5.69-1.51-8 0-4.93 3.42-4.93 3.42h96s1.14-3.42-3.03-5.69zM429.92 259.54c-6.18-3.37-9-.56-11.24-3.37s6.18-10.11-10.67-17.41c0 0-1.12-15.73-24.16-16.29s-16.85 15.72-23 19.66-7.86-2.25-14 1.68-3.37 11.8-8.43 12.92-11.79-5.05-18-1.12-6.18 7.3-9 7.3-8.43-2.25-11.8 0-7.3 5.06-7.3 5.06h142.09s1.69-5.06-4.49-8.43zM214.68 320.51c-6.18-3.37-9-.56-11.24-3.37s6.18-10.11-10.67-17.42c0 0-1.12-15.72-24.15-16.29s-16.86 15.73-23 19.67-7.87-2.25-14.05 1.68-3.37 11.8-8.42 12.92-11.8-5.05-18-1.12-6.18 7.3-9 7.3-8.42-2.25-11.79 0-7.31 5.06-7.31 5.06h142.12s1.69-5.06-4.49-8.43z"/><g opacity=".4"><path d="M235.67 182.42c-4.17-2.27-6.07-.38-7.58-2.27s4.17-6.83-7.21-11.76c0 0-.76-10.61-16.3-11S193.21 168 189 170.67s-5.31-1.52-9.48 1.13-2.28 8-5.69 8.72-8-3.41-12.13-.75-4.17 4.92-6.07 4.92-5.69-1.51-8 0-4.93 3.42-4.93 3.42h96s1.14-3.42-3.03-5.69zM429.92 259.54c-6.18-3.37-9-.56-11.24-3.37s6.18-10.11-10.67-17.41c0 0-1.12-15.73-24.16-16.29s-16.85 15.72-23 19.66-7.86-2.25-14 1.68-3.37 11.8-8.43 12.92-11.79-5.05-18-1.12-6.18 7.3-9 7.3-8.43-2.25-11.8 0-7.3 5.06-7.3 5.06h142.09s1.69-5.06-4.49-8.43zM214.68 320.51c-6.18-3.37-9-.56-11.24-3.37s6.18-10.11-10.67-17.42c0 0-1.12-15.72-24.15-16.29s-16.86 15.73-23 19.67-7.87-2.25-14.05 1.68-3.37 11.8-8.42 12.92-11.8-5.05-18-1.12-6.18 7.3-9 7.3-8.42-2.25-11.79 0-7.31 5.06-7.31 5.06h142.12s1.69-5.06-4.49-8.43z"/></g><path d="M383.83 318.51s-15.71-2.7-23.79-12.12-51.17-60.15-51.17-60.15-8.08-3.14-24.69 0l19.75 79z"/><path d="M415.7 317.16s-103.24.9-139.6 10.77v7.63s48.06 15.22 113.54 29.77a106.46 106.46 0 0023.13 2.55H435v-51.17z"/><g opacity=".3"><path d="M303.41 323.16c24.2-2.91 54.78-4.42 77.92-5.2-4.76-1.19-15.2-4.46-21.29-11.57-1.56-1.82-4.43-5.18-8-9.42-17 11.74-36.88 18.31-49.73 21.64zM300.67 312.2c22-7.3 29.51-24.28 31.8-38.19l-23.6-27.77a16.66 16.66 0 00-2.41-.64c.8 15.72-4.9 31.3-11.49 43.78zM383.83 350.82c-17.83-2.09-77-12.63-102.34-17.19v-7c-1.92.42-3.73.85-5.39 1.3v7.63h.09l.25.08 2.7.83 2.29.7c14.27 4.32 55.59 16.43 108.15 28.11a106.46 106.46 0 0023.13 2.55H435V351.4c-13.06.6-35.7 1.24-51.17-.58z"/><path d="M302.59 336.01l40.39-1.79-28.28-7.19H299l3.59 8.98z"/></g><g><path stroke-linecap="round" stroke-linejoin="round" d="M73 360.1h362v25H73zM73 268.1h362v6H73z"/><path stroke-linecap="round" stroke-linejoin="round" d="M118 100.1v274M255 100.1v274M392 100.1v274M76.51 171.1C196 171 316 171 435 171.1"/><path stroke-miterlimit="10" d="M158.47 212.87l3.14 4.47M129.34 171.4l25.03 35.64M296.85 317.34l3.14 4.47M267.72 275.87l25.03 35.64M308.33 355.62l3.15 4.48M279.2 314.15l25.04 35.64M194.57 148.33l3.14 4.47M165.44 106.86l25.03 35.64M313.17 127.24l3.14 4.48M284.04 85.77l25.03 35.64M425.93 313.51l3.14 4.47M396.8 272.04l25.03 35.64M152.45 316.24l3.14 4.48M123.32 274.77l25.04 35.64M174.88 133.01l3.14 4.48M145.75 91.54l25.03 35.64M337.62 246.34l3.14 4.48M308.49 204.87l25.04 35.64"/></g><g><path d="M75.73 296.76c1.43.63 5 .55 5 .55s-.75-2.3-.82-2.44c-.77-1.62-3.21-4.28-5.19-4a2.37 2.37 0 00-1.91 3 5 5 0 002.92 2.89z"/><path d="M121.76 284.8c-2-.22-4.36 2.51-5.08 4.14-.07.14-.8 2.46-.76 2.46-.37.43-.77.89-1.2 1.41-.78 1-1.65 2-2.52 3.29a42.75 42.75 0 00-2.61 4.16 31.1 31.1 0 00-2.23 5 .14.14 0 010 .06v-2.35c-.23-1.77-1.71-5.06-3.68-5.43a2.37 2.37 0 00-2.73 2.23 4.92 4.92 0 001.9 3.71c1.12 1 4.24 2 4.49 2.05A41.14 41.14 0 00106 311c-.19 1.07-.35 2.15-.5 3.24v-1c-.23-1.77-1.72-5.06-3.69-5.43a2.37 2.37 0 00-2.74 2.19 5 5 0 001.9 3.71 15.89 15.89 0 004.36 2c-.06.42-.11.83-.16 1.25-.24 2-.47 4-.76 6-.1.69-.23 1.36-.35 2v-.89c-.23-1.77-1.72-5.06-3.69-5.42a2.37 2.37 0 00-2.73 2.23 5 5 0 001.9 3.7 15 15 0 004.23 2c-.15.69-.29 1.38-.46 2-.13.45-.22.9-.38 1.34l-.42 1.32c-.3.82-.61 1.68-.92 2.48l-.64 1.61c.1-.68.29-2 .29-2.15a9.14 9.14 0 00-1.23-4.47 3.15 3.15 0 000-.53 2.37 2.37 0 00-2.89-2c-1.94.52-3.16 3.91-3.26 5.7 0 .11.07 1.25.12 2-.09-.42-.18-.83-.29-1.26-.2-.86-.43-1.71-.67-2.62-.13-.44-.27-.88-.4-1.32s-.31-.9-.47-1.36c-.38-1-.82-2.08-1.29-3.12a15.61 15.61 0 004.47-1.68 4.94 4.94 0 002.11-3.52 2.37 2.37 0 00-2.56-2.43c-2 .22-3.72 3.39-4.08 5.14 0 .11-.14 1.39-.19 2.1-.28-.62-.56-1.24-.87-1.86-.89-1.8-1.85-3.58-2.79-5.37-.29-.54-.58-1.09-.86-1.64a16.5 16.5 0 004.62-1.71 5 5 0 002.18-3.56 2.37 2.37 0 00-2.56-2.42c-2 .21-3.72 3.39-4.08 5.14 0 .13-.19 2-.21 2.45-.63-1.21-1.24-2.41-1.8-3.63a41.29 41.29 0 01-1.95-5.05 16.63 16.63 0 004.65-1.71 5 5 0 002.17-3.56 2.36 2.36 0 00-2.56-2.42c-2 .21-3.71 3.38-4.07 5.13 0 .14-.21 2.13-.22 2.49 0-.1-.07-.2-.1-.3a29.87 29.87 0 01-1-5.33c-.12-1-.17-1.95-.2-2.88a15.75 15.75 0 004.7-1.18 4.91 4.91 0 002.55-3.29 2.37 2.37 0 00-2.27-2.7c-2 0-4.07 3-4.62 4.66 0 .09-.23 1.07-.37 1.78v-1.26c0-1.51.1-2.9.2-4.13.06-.69.12-1.32.19-1.91a15.78 15.78 0 003.61-3.2 4.93 4.93 0 00.74-4.1 2.37 2.37 0 00-3.26-1.34c-1.77.92-2.24 4.5-2 6.26 0 .15.7 2.49.73 2.47-.07.56-.15 1.17-.22 1.83-.12 1.23-.25 2.62-.29 4.14a41.32 41.32 0 00.12 4.91 31.69 31.69 0 00.91 5.41.64.64 0 010 .07c-.31-.5-1.24-1.85-1.32-2-1.17-1.35-4.23-3.28-6.07-2.49a2.36 2.36 0 00-1 3.36 5 5 0 003.63 2.05c1.49.21 4.63-.7 4.88-.77a40 40 0 001.9 5.26c.43 1 .89 2 1.37 3-.28-.42-.54-.79-.58-.84-1.17-1.35-4.23-3.27-6.07-2.49a2.37 2.37 0 00-1 3.37 5 5 0 003.63 2 15.9 15.9 0 004.74-.73l.56 1.14c.91 1.8 1.82 3.6 2.67 5.4.29.63.56 1.26.83 1.9-.25-.38-.47-.69-.51-.73-1.16-1.35-4.22-3.28-6.06-2.5a2.37 2.37 0 00-1 3.37 4.93 4.93 0 003.63 2 14.81 14.81 0 004.61-.69c.26.66.52 1.31.74 2 .14.45.31.87.43 1.32s.24.89.37 1.33c.2.86.42 1.74.6 2.58.13.58.24 1.14.36 1.7-.29-.63-.88-1.86-1-1.95-.95-1.52-3.67-3.88-5.61-3.39a2.37 2.37 0 00-1.55 3.17 4.92 4.92 0 003.25 2.63 16.37 16.37 0 004.89 0c.18.93.35 1.83.5 2.69.53 3 .85 5.47 1 7.22 0 .31.07.58.1.85h-6l2.2 42.92h10.27l2.2-42.92H97.7l.12-.26c.77-1.61 1.84-3.91 3-6.73.37-.9.74-1.85 1.12-2.84a16.36 16.36 0 004.89.38 5 5 0 003.46-2.32 2.38 2.38 0 00-1.3-3.28c-1.9-.63-4.8 1.52-5.86 3-.06.09-.64 1.08-1 1.72.15-.41.3-.8.45-1.22.3-.82.58-1.66.88-2.55.13-.44.27-.88.4-1.33s.24-.92.36-1.38c.25-1.09.46-2.2.65-3.32a15.79 15.79 0 004.64 1.07 5 5 0 003.78-1.77 2.37 2.37 0 00-.8-3.43c-1.78-.92-5 .77-6.24 2-.07.08-.88 1.09-1.31 1.65.1-.68.21-1.35.3-2 .24-2 .43-4 .63-6 .06-.62.12-1.23.19-1.85a16.41 16.41 0 004.8 1.13 4.92 4.92 0 003.77-1.77 2.36 2.36 0 00-.79-3.43c-1.78-.92-5 .77-6.24 2-.09.1-1.25 1.55-1.53 1.93.14-1.35.3-2.7.5-4a41.85 41.85 0 011.16-5.28c.12 0 3.29 1.24 4.83 1.13a4.92 4.92 0 003.77-1.77 2.36 2.36 0 00-.8-3.43c-1.77-.92-5 .77-6.23 2-.1.1-1.35 1.66-1.55 2 0-.1 0-.2.08-.3a30.23 30.23 0 012.09-5c.46-.89.94-1.71 1.43-2.51a15.6 15.6 0 004.57 1.61 5 5 0 004-1.34 2.36 2.36 0 00-.42-3.5c-1.66-1.11-5 .22-6.42 1.34-.07.06-.78.76-1.28 1.28.22-.36.45-.73.67-1.06.84-1.27 1.69-2.37 2.44-3.34.44-.55.84-1 1.22-1.49a15.86 15.86 0 004.78-.68 5 5 0 002.88-3 2.36 2.36 0 00-2.03-3.02zm-22 53.47c-1.2 2.77-2.31 5-3.11 6.6l-.43.86H96c0-.31-.08-.65-.13-1-.24-1.76-.63-4.28-1.22-7.27-.19-.94-.4-1.95-.64-3a23.75 23.75 0 002.74-1.29 17.69 17.69 0 004 2.58c-.33.88-.68 1.73-1.03 2.52z"/><path d="M111.27 297.53s.64-2.33.66-2.49c.25-1.77-.32-5.33-2.12-6.21a2.37 2.37 0 00-3.22 1.43 5 5 0 00.85 4.08c.85 1.32 3.83 3.19 3.83 3.19z"/></g><g><rect width="189" height="113" x="234.99" y="123.44" stroke-linecap="round" stroke-linejoin="round" rx="6"/><path stroke-linecap="round" stroke-linejoin="round" d="M233.8 153.45h190.89"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M283.74 141.18h91.01"/><path stroke-linecap="round" stroke-linejoin="round" d="M281.17 153.92v81.47M330.9 153.92v81.47M380.64 153.92v81.47M240.9 164.34h11.85M240.9 170.03h16.02M240.9 175.71h11.85M240.9 181.39h21.15M240.9 187.08h11.85M240.9 192.76h15.73M240.9 198.45h11.85M240.9 204.13h24.86M240.9 209.81h11.85M240.9 215.5h16.59M240.9 221.18h11.85M240.9 226.87h11.85M291.69 164.34h11.84M291.69 170.03h16.01M291.69 175.71h11.84M291.69 181.39h21.15M291.69 187.08h11.84M291.69 192.76h15.73M291.69 198.45h11.84M291.69 204.13h24.86M291.69 209.81h11.84M291.69 215.5h16.58M291.69 221.18h11.84M291.69 226.87h11.84M342.47 164.34h11.84M342.47 170.03h16.02M342.47 175.71h11.84M342.47 181.39h21.15M342.47 187.08h11.84M342.47 192.76h15.73M342.47 198.45h11.84M342.47 204.13h24.86M342.47 209.81h11.84M342.47 215.5h16.59M342.47 221.18h11.84M342.47 226.87h11.84M393.25 164.34h11.85M393.25 170.03h16.02M393.25 175.71h11.85M393.25 181.39h21.15M393.25 187.08h11.85M393.25 192.76h15.73M393.25 198.45h11.85M393.25 204.13h24.86M393.25 209.81h11.85M393.25 215.5h16.59M393.25 221.18h11.85M393.25 226.87h11.85"/><path d="M251.21 145.3v-1c0-.05.06-.11.11-.15l1.18-.89a.27.27 0 00.1-.18v-3.64a.83.83 0 000-.13l-5.6 1.77v-.16-1.12a.21.21 0 01.12-.21q2.68-1.68 5.38-3.35a.28.28 0 00.14-.27v-3.65a1.05 1.05 0 011.53-1 1 1 0 01.58 1v3.63a.32.32 0 00.17.31l5.32 3.32a.29.29 0 01.16.27v1.24l-5.63-1.76V143a.29.29 0 00.13.27c.4.29.79.59 1.18.89a.3.3 0 01.1.2v.93l-1-.29-1.3-.37a.86.86 0 00-.32 0l-2.2.63z"/><circle cx="253.63" cy="138.29" r="9.42" stroke-linecap="round" stroke-linejoin="round"/></g><g><ellipse cx="202.78" cy="423.09" rx="87.15" ry="12.62"/><ellipse cx="202.78" cy="423.09" opacity=".5" rx="87.15" ry="12.62"/></g><g><path d="M240.49 346.13a1 1 0 01-1-1v-57.84a1 1 0 112 0v57.84a1 1 0 01-1 1z"/><path d="M240.49 298.58a1.5 1.5 0 01-1.5-1.5v-9.79a1.5 1.5 0 113 0v9.79a1.5 1.5 0 01-1.5 1.5z"/><path d="M238.08 346.13a1 1 0 01-1-1v-57.84a1 1 0 012 0v57.84a1 1 0 01-1 1z"/><path d="M238.08 298.58a1.5 1.5 0 01-1.5-1.5v-9.79a1.5 1.5 0 013 0v9.79a1.5 1.5 0 01-1.5 1.5z"/><path d="M240.49 285.79h-2.41v2.93h2.39l.02-2.93z"/><path stroke-linecap="round" stroke-linejoin="round" d="M238.85 415.22h2.34v4.84h-2.34zM255.37 415.22h2.34v4.84h-2.34zM245.69 415.22h2.34v4.84h-2.34zM262.22 415.22h2.34v4.84h-2.34z"/><rect width="33.33" height="78" x="235" y="337.34" stroke-linecap="round" stroke-linejoin="round" rx="5.33"/><rect width="13.67" height="78" x="254.67" y="337.34" stroke-linecap="round" stroke-linejoin="round" rx="5.33"/><path stroke-linecap="round" stroke-linejoin="round" d="M250.58 337.34a5.33 5.33 0 00-5.33 5.34V410a6.41 6.41 0 003.81 5.28"/><path d="M167.15 336.75s3.62 8.93 3 16.79-3 20.61-1.28 25.93 5.53 26.47 5.53 26.47-1.91 2.12-1.91 4 .64 11.47.64 11.47h1.27l1.28-9.56a3.75 3.75 0 012.12 2.55c.21 1.7.85 6.59 1.7 6.8a15.55 15.55 0 003.19 0s1.27-.85.64-1.49a5.35 5.35 0 01-1.7-3.18c-.43-1.92-1.49-4.68-1.49-8.29v-32c0-9.35 1.27-16.58 1.7-24.87a78.54 78.54 0 00-.43-14z"/><g clip-path="url(#a)"><path d="M167.56 337.85a50.09 50.09 0 011.75 6.16h12.58c-.09-3.09-.33-5.27-.44-6.16z"/><path d="M167.56 337.85a50.09 50.09 0 011.75 6.16h12.58c-.09-3.09-.33-5.27-.44-6.16z" opacity=".5"/></g><path stroke-linecap="round" stroke-linejoin="round" d="M167.15 336.75s3.62 8.93 3 16.79-3 20.61-1.28 25.93 5.53 26.47 5.53 26.47-1.91 2.12-1.91 4 .64 11.47.64 11.47h1.27l1.28-9.56a3.75 3.75 0 012.12 2.55c.21 1.7.85 6.59 1.7 6.8a15.55 15.55 0 003.19 0s1.27-.85.64-1.49a5.35 5.35 0 01-1.7-3.18c-.43-1.92-1.49-4.68-1.49-8.29v-32c0-9.35 1.27-16.58 1.7-24.87a78.54 78.54 0 00-.43-14z"/><path stroke-linecap="round" stroke-linejoin="round" d="M179.62 421.3h-3.19s-1-.08-1.12-3.93a30.41 30.41 0 00-.76-6.16 3.56 3.56 0 013.45.79c1.74 1.47 2.16 7.28 2.37 8a3.64 3.64 0 00.63 1.27z"/><path stroke-linecap="round" stroke-linejoin="round" d="M181.61 416.57a50 50 0 01-1.33-5.87 19.49 19.49 0 00-1.44-3.49c-1.48-2.55-4.46-1.27-4.46-1.27s-1.91 2.12-1.91 4 .64 11.47.64 11.47h1.27l1.28-9.56a3.75 3.75 0 012.12 2.55c.21 1.7.85 6.59 1.7 6.8a15.55 15.55 0 003.19 0s1.27-.85.64-1.49a5.35 5.35 0 01-1.7-3.14z"/><path d="M187.61 338.09s2 6.18 1.64 9.09-9.82 11.81-10.91 17.09-3.64 17.27-4.54 22.36-1.66 8.09-3.2 9.46-4.37.11-6.51 2.54-8.4 9.9-8.4 9.9l.87.77 7.35-4.49s3.39 1.29 3.46 3.29a53.37 53.37 0 001.16 8.26c.45 1.67 3.54 4.94 5.52 5.42s1.93-2 1.14-2.47-1.92-3-1.74-6.12 1.43-12.3 2.65-14.42 12.06-25 17.69-32.32 7.45-14 8.73-15.82 1.27-6.18 1.27-8.54a27.56 27.56 0 00-.36-4.36z"/><g clip-path="url(#b)"><path d="M187.61 338.09a45.51 45.51 0 011.45 5.92h14.71v-1.92a28.45 28.45 0 00-.34-4.24h-5.32z"/><path d="M187.61 338.09a45.51 45.51 0 011.45 5.92h14.71v-1.92a28.45 28.45 0 00-.34-4.24h-5.32z" opacity=".5"/></g><path stroke-linecap="round" stroke-linejoin="round" d="M187.61 338.09s2 6.18 1.64 9.09-9.82 11.81-10.91 17.09-3.64 17.27-4.54 22.36-1.66 8.09-3.2 9.46-4.37.11-6.51 2.54-8.4 9.9-8.4 9.9l.87.77 7.35-4.49s3.39 1.29 3.46 3.29a53.37 53.37 0 001.16 8.26c.45 1.67 3.54 4.94 5.52 5.42s1.93-2 1.14-2.47-1.92-3-1.74-6.12 1.43-12.3 2.65-14.42 12.06-25 17.69-32.32 7.45-14 8.73-15.82 1.27-6.18 1.27-8.54a27.56 27.56 0 00-.36-4.36z"/><path stroke-linecap="round" stroke-linejoin="round" d="M163.91 404.81s1.58 4.28 1.45 6.46-1.12 3.75-.13 5.45 2.68 4.16 8.82 5.06c0 0-3.15-5.46-3.3-9.11s-.74-9.33-2.54-9.8-4.16-.42-4.3 1.94z"/><path stroke-linecap="round" stroke-linejoin="round" d="M175.19 419.31c-.79-.43-1.92-3-1.74-6.12-2.38-3.05-1-7.53-2.64-11.08a11.37 11.37 0 00-4.09-5h0a4.67 4.67 0 00-2.6 1.51c-2.15 2.42-8.4 9.9-8.4 9.9l.87.77 7.35-4.49s3.39 1.29 3.46 3.29a53.37 53.37 0 001.16 8.26c.45 1.67 3.54 4.94 5.52 5.42s1.92-2.04 1.11-2.46z"/><path stroke-linecap="round" stroke-linejoin="round" d="M160.78 233.68a28.92 28.92 0 00-4 7.65c-1.27 4-12.54 35.28-10.62 37.19s21.25 8.07 21.25 8.07l3.19-8.71-11.27-5.31 7-22.53s1.89-13.39-5.55-16.36z"/><path stroke-linecap="round" stroke-linejoin="round" d="M150.65 278c4.53-.55 8.64-5.4 8.64-5.4a10.5 10.5 0 01-2.06 6.54M163.53 257.08s-1.72-1.43-5.16-8.88M163.24 258.51a101.11 101.11 0 01-9.44-4.87"/><path stroke-linecap="round" stroke-linejoin="round" d="M169.49 279.16s-5.1 8.5-8.5 25.5a138 138 0 00-1.91 34.21s19.55 4.26 54.19 0c0 0-3.4-42.92-16.15-59.71z"/><path stroke-linecap="round" stroke-linejoin="round" d="M158.76 330.71c0 5 .32 8.16.32 8.16s19.55 4.26 54.19 0c0 0-.25-3.18-.87-8.15-29.1 2.99-47.78.86-53.64-.01z"/><path stroke-linecap="round" stroke-linejoin="round" d="M172 229.85s-9.56 2.34-11.26 3.83-.85 9.35.21 14.45 8.5 31 8.5 31h27.63s6.38-41.66 6.16-45.27-17.21-5.95-17.21-5.95z"/><path stroke-linecap="round" stroke-linejoin="round" d="M167.62 272.57l1.87 6.59h27.63s.4-2.62 1-6.59z"/><path stroke-linecap="round" stroke-linejoin="round" d="M228.06 280.74a12.11 12.11 0 003.44.94c1.25 0 5.48-1.88 7.2-1.57s5.16 5.79 5.63 6.57-1.81 1.49-2.66 2.19c-1.42 1.18-2.69.1-2.5-.47l.31-1.25s-1.4-.86-2.35 0a6.38 6.38 0 01-4.22 1.56c-1.88 0-5.94-2.81-5.94-2.81z"/><path stroke-linecap="round" stroke-linejoin="round" d="M195.42 258.54s.85 16.58 1.91 18.28 12.75 7 18.49 8.71a75.49 75.49 0 0011.69 2.34l1.7-7.65s-14.66-8.08-17.64-10-4.89-3.4-4.89-3.4-.85-22.53-1.06-26.78-.21-6.37-2.12-7.44a35.53 35.53 0 00-6.38-2.12"/><path stroke-linecap="round" stroke-linejoin="round" d="M201.59 272.82c3.15-1.72 5.09-6 5.09-6s-5.09 2.84-9.1 1.12"/><path stroke-linecap="round" stroke-linejoin="round" d="M178.27 197.55a11.3 11.3 0 00-7.86 8.29c-1.92 7-.43 14-.43 16.57s-1.49 13.82-3 21.89-3.61 17.22-3.61 17.22 6.17 1.48 9.14 1.91l6.16.85 1.07-5.1.85 5.31a47.2 47.2 0 006.16 0 20.91 20.91 0 007.23-1.91l.21-2.76 2.12 2.33a24.58 24.58 0 003.62-1.27c1.91-.85 4.88-2.55 4.88-2.55s-10.2-25.5-11.47-30.82 1.06-8.28 1.91-14.87-3.61-16.15-7-16.79a6.09 6.09 0 00-5.53 1.91 5.14 5.14 0 00-4.45-.21z"/></g></svg> ) }, }); }; ```
/content/code_sandbox/samples/react-flighttracker/src/helpers/registerSVGIcons.tsx
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
13,114
```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 { EngineEvent } from "./events"; import { LocalWorkspace } from "./localWorkspace"; import { DestroyResult, OutputMap, PreviewResult, RefreshResult, Stack, UpdateSummary, UpResult } from "./stack"; import { Deployment } from "./workspace"; /** * {@link RemoteStack} is an isolated, independently configurable instance of a * Pulumi program that is operated on remotely. */ export class RemoteStack { /** * @internal */ static create(stack: Stack): RemoteStack { return new RemoteStack(stack); } private constructor(private readonly stack: Stack) { const ws = stack.workspace; if (!(ws instanceof LocalWorkspace)) { throw new Error("expected workspace to be an instance of LocalWorkspace"); } } /** * The name identifying the Stack. */ get name(): string { return this.stack.name; } /** * Creates or updates the resources in a stack by executing the program in * the Workspace. This operation runs remotely. * * @param opts * Options to customize the behavior of the update. * * @see path_to_url */ up(opts?: RemoteUpOptions): Promise<UpResult> { return this.stack.up(opts); } /** * Performs a dry-run update to a stack, returning pending changes. This * operation runs remotely. * * @param opts * Options to customize the behavior of the preview. * * @see path_to_url */ preview(opts?: RemotePreviewOptions): Promise<PreviewResult> { return this.stack.preview(opts); } /** * Compares the current stacks resource state with the state known to exist * in the actual cloud provider. Any such changes are adopted into the * current stack. This operation runs remotely. * * @param opts * Options to customize the behavior of the refresh. */ refresh(opts?: RemoteRefreshOptions): Promise<RefreshResult> { return this.stack.refresh(opts); } /** * Deletes all resources in a stack, leaving all history and configuration * intact. This operation runs remotely. * * @param opts * Options to customize the behavior of the destroy. */ destroy(opts?: RemoteDestroyOptions): Promise<DestroyResult> { return this.stack.destroy(opts); } /** * Gets the current set of stack outputs from the last {@link Stack.up}. */ outputs(): Promise<OutputMap> { return this.stack.outputs(); } /** * Returns a list summarizing all previous and current results from Stack * lifecycle operations (up/preview/refresh/destroy). */ history(pageSize?: number, page?: number): Promise<UpdateSummary[]> { // TODO: Find a way to allow showSecrets as an option that doesn't require loading the project. return this.stack.history(pageSize, page, false); } /** * Stops a stack's currently running update. It returns an error if no * update is currently running. Note that this operation is _very * dangerous_, and may leave the stack in an inconsistent state if a * resource operation was pending when the update was canceled. This command * is not supported for DIY backends. */ cancel(): Promise<void> { return this.stack.cancel(); } /** * Exports the deployment state of the stack. This can be combined with * {@link Stack.importStack} to edit a stack's state (such as recovery from * failed deployments). */ exportStack(): Promise<Deployment> { return this.stack.exportStack(); } /** * Imports the specified deployment state into a pre-existing stack. This * can be combined with {@link Stack.exportStack} to edit a stack's state * (such as recovery from failed deployments). * * @param state * The stack state to import. */ importStack(state: Deployment): Promise<void> { return this.stack.importStack(state); } } /** * Options controlling the behavior of a {@link RemoteStack.up} operation. */ export interface RemoteUpOptions { onOutput?: (out: string) => void; onEvent?: (event: EngineEvent) => void; } /** * Options controlling the behavior of a {@link RemoteStack.preview} operation. */ export interface RemotePreviewOptions { onOutput?: (out: string) => void; onEvent?: (event: EngineEvent) => void; } /** * Options controlling the behavior of a {@link RemoteStack.refresh} operation. */ export interface RemoteRefreshOptions { onOutput?: (out: string) => void; onEvent?: (event: EngineEvent) => void; } /** * Options controlling the behavior of a {@link RemoteStack.destroy} operation. */ export interface RemoteDestroyOptions { onOutput?: (out: string) => void; onEvent?: (event: EngineEvent) => void; } ```
/content/code_sandbox/sdk/nodejs/automation/remoteStack.ts
xml
2016-10-31T21:02:47
2024-08-16T19:47:04
pulumi
pulumi/pulumi
20,743
1,109
```xml /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ import { ResizablePanel, SplitDirection, } from 'modules/components/ResizablePanel'; import {Container, PanelContainer} from './styled'; import {observer} from 'mobx-react'; import {useEffect, useRef, useState} from 'react'; import {Frame, FrameProps} from 'modules/components/Frame'; type Props = { leftPanel?: React.ReactNode; topPanel: React.ReactNode; bottomPanel: React.ReactNode; additionalTopContent?: React.ReactNode; footer?: React.ReactNode; rightPanel?: React.ReactNode; frame?: FrameProps; type: 'process' | 'decision' | 'migrate'; }; const InstancesList: React.FC<Props> = observer( ({ leftPanel, topPanel, bottomPanel, rightPanel, additionalTopContent, footer, frame, type, }) => { const [clientHeight, setClientHeight] = useState(0); const containerRef = useRef<HTMLDivElement | null>(null); useEffect(() => { setClientHeight(containerRef?.current?.clientHeight ?? 0); }, []); const panelMinHeight = clientHeight / 4; return ( <Frame frame={frame}> <Container $hasLeftPanel={leftPanel !== undefined} $hasRightPanel={rightPanel !== undefined} $hasFooter={footer !== undefined} $hasAdditionalTopContent={additionalTopContent !== undefined} > {leftPanel} {additionalTopContent && <>{additionalTopContent}</>} <PanelContainer ref={containerRef}> <ResizablePanel panelId={`${type}-instances-vertical-panel`} direction={SplitDirection.Vertical} minHeights={[panelMinHeight, panelMinHeight]} > {topPanel} {bottomPanel} </ResizablePanel> </PanelContainer> {rightPanel} {footer} </Container> </Frame> ); }, ); export {InstancesList}; ```
/content/code_sandbox/operate/client/src/App/Layout/InstancesList/index.tsx
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
444
```xml <?xml version="1.0" encoding="utf-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <resources> <dimen name="cat_toc_tall_toolbar_height">112dp</dimen> <dimen name="cat_toc_toolbar_image_offset">16dp</dimen> <dimen name="cat_toc_grid_divider_size">1dp</dimen> <dimen name="cat_toc_item_size">180dp</dimen> <dimen name="cat_toc_header_additional_start_margin">12dp</dimen> </resources> ```
/content/code_sandbox/catalog/java/io/material/catalog/tableofcontents/res/values/dimens.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
155
```xml <?xml version="1.0" encoding="utf-8"?> <cn.droidlover.xrecyclerview.XRecyclerContentLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:id="@+id/contentLayout" android:layout_width="match_parent" android:layout_height="match_parent" app:recyclerBackgroundColor="#f5f5f5" app:recyclerScrollbarNone="true" app:recyclerScrollbarStyle="outsideOverlay" /> ```
/content/code_sandbox/app/src/main/res/layout/fragment_base_pager.xml
xml
2016-11-27T05:38:20
2024-08-13T15:07:36
XDroid
limedroid/XDroid
1,299
108
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>BuildMachineOSBuild</key> <string>17E199</string> <key>CFBundleIdentifier</key> <string>org.rehabman.injector.FakePCIID-Intel-HD-Graphics</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>FakePCIID_Intel_HD_Graphics</string> <key>CFBundlePackageType</key> <string>KEXT</string> <key>CFBundleShortVersionString</key> <string>1.3.12</string> <key>CFBundleSupportedPlatforms</key> <array> <string>MacOSX</string> </array> <key>CFBundleVersion</key> <string>1.3.12</string> <key>DTCompiler</key> <string>com.apple.compilers.llvm.clang.1_0</string> <key>DTPlatformBuild</key> <string>9E145</string> <key>DTPlatformVersion</key> <string>GM</string> <key>DTSDKBuild</key> <string>10M2518</string> <key>DTSDKName</key> <string>macosx10.6</string> <key>DTXcode</key> <string>0930</string> <key>DTXcodeBuild</key> <string>9E145</string> <key>IOKitPersonalities</key> <dict> <key>HD4200 HD4400 HD4600 P4600</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> EgQAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x04128086 0x04168086 0x0a168086 0x0a1e8086 0x041e8086 0x041a8086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>HD510 HD515 HD520 HD530 P530</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> EhkAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x19128086 0x19068086 0x19138086 0x191e8086 0x19168086 0x191b8086 0x19028086 0x191d8086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>Iris 540 Iris 550 Iris Pro 580</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> FhkAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x19268086 0x19278086 0x193b8086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>P4000</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> ZgEAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x01668086 0x016a8086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>P6300 - 162a</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> IhYAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x16228086 0x162a8086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>UHD620 KabyLake-R </key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> FlkAAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x59168086 0x59178086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> <key>UHD630 CoffeeLake</key> <dict> <key>CFBundleIdentifier</key> <string>org.rehabman.driver.FakePCIID</string> <key>FakeProperties</key> <dict> <key>RM,device-id</key> <data> kj4AAA== </data> </dict> <key>IOClass</key> <string>FakePCIID</string> <key>IOMatchCategory</key> <string>FakePCIID</string> <key>IOPCIClassMatch</key> <string>0x03000000&amp;0xff000000</string> <key>IOPCIPrimaryMatch</key> <string>0x3e918086 0x3e928086</string> <key>IOProbeScore</key> <integer>9001</integer> <key>IOProviderClass</key> <string>IOPCIDevice</string> </dict> </dict> <key>OSBundleRequired</key> <string>Root</string> <key>Source Code</key> <string>path_to_url </dict> </plist> ```
/content/code_sandbox/Clover-Configs/Asus/FL5900/CLOVER/kexts/Other/FakePCIID_Intel_HD_Graphics.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
2,234
```xml import { Pipe, PipeTransform } from '@angular/core'; import * as _ from 'lodash'; @Pipe({ name: 'nl2br' }) export class Nl2brPipe implements PipeTransform { transform(value: any): any { if (!_.isString(value)) { return value; } return value.replace(/\r\n|\n/g, '<br>\n'); } } ```
/content/code_sandbox/deb/openmediavault/workbench/src/app/shared/pipes/nl2br.pipe.ts
xml
2016-05-03T10:35:34
2024-08-16T08:03:04
openmediavault
openmediavault/openmediavault
4,954
86
```xml import { DecryptedParameters, ErrorDecryptingParameters, EncryptionOperatorsInterface } from '@standardnotes/encryption' import { ContentTypeUsesKeySystemRootKeyEncryption, EncryptedPayloadInterface, ItemContent, KeySystemRootKeyInterface, RootKeyInterface, } from '@standardnotes/models' import { DecryptTypeAPayload } from './DecryptPayload' import { RootKeyManager } from '../../../RootKeyManager/RootKeyManager' import { KeySystemKeyManagerInterface } from '../../../KeySystem/KeySystemKeyManagerInterface' import { LoggerInterface } from '@standardnotes/utils' export class DecryptTypeAPayloadWithKeyLookup { constructor( private operators: EncryptionOperatorsInterface, private keySystemKeyManager: KeySystemKeyManagerInterface, private rootKeyManager: RootKeyManager, private logger: LoggerInterface, ) {} async executeOne<C extends ItemContent = ItemContent>( payload: EncryptedPayloadInterface, ): Promise<DecryptedParameters<C> | ErrorDecryptingParameters> { let key: RootKeyInterface | KeySystemRootKeyInterface | undefined if (ContentTypeUsesKeySystemRootKeyEncryption(payload.content_type)) { if (!payload.key_system_identifier) { this.logger.error('Payload is missing key system identifier', payload) return { uuid: payload.uuid, errorDecrypting: true, } } key = this.keySystemKeyManager.getPrimaryKeySystemRootKey(payload.key_system_identifier) } else { key = this.rootKeyManager.getRootKey() } if (key == undefined) { return { uuid: payload.uuid, errorDecrypting: true, waitingForKey: true, } } const usecase = new DecryptTypeAPayload(this.operators) return usecase.executeOne(payload, key) } async executeMany<C extends ItemContent = ItemContent>( payloads: EncryptedPayloadInterface[], ): Promise<(DecryptedParameters<C> | ErrorDecryptingParameters)[]> { return Promise.all(payloads.map((payload) => this.executeOne<C>(payload))) } } ```
/content/code_sandbox/packages/services/src/Domain/Encryption/UseCase/TypeA/DecryptPayloadWithKeyLookup.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
434
```xml import ResizeObserver from "resize-observer-polyfill"; import { parseQuery } from "coral-common/common/lib/utils"; import { FrameHeightMessage } from "coral-framework/components/Frame"; import { getBrowserInfo } from "coral-framework/lib/browserInfo"; import { PostMessageService } from "coral-framework/lib/postMessage"; import { getContentBoxSize } from "coral-ui/helpers"; async function injectConditionalPolyfills() { const pending: Array<Promise<any>> = []; const browser = getBrowserInfo(window); // Polyfill Intersection Observer. if (!browser.supports.intersectionObserver) { pending.push(import("intersection-observer")); } // Polyfill Resize Observer. if (!browser.supports.resizeObserver) { pending.push(import("coral-framework/helpers/polyfillResizeObserver")); } await Promise.all(pending); } async function main() { const { frameID } = parseQuery(location.search); if (!window.parent || !frameID) { return; } await injectConditionalPolyfills(); const postMessage = new PostMessageService( window, "coral", window.parent, "*" ); new ResizeObserver((entries) => { if (entries.length > 1) { throw new Error("Not expected length to be > 1"); } const entry = entries[0]; const contentBoxSize = getContentBoxSize(entry); if (contentBoxSize === null) { // eslint-disable-next-line no-console console.warn("ResizeObserver contains invalid `contentBoxSize`", entries); } const msg: FrameHeightMessage = { frameID, height: contentBoxSize!.blockSize, }; postMessage.send("frameHeight", msg); }).observe(window.document.body); } export default main; ```
/content/code_sandbox/client/src/core/client/frame/frame.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
388
```xml import 'reflect-metadata'; import { assert } from 'chai'; import { ServiceIdentifiers } from '../../../../src/container/ServiceIdentifiers'; import { IIdentifierNamesGenerator } from '../../../../src/interfaces/generators/identifier-names-generators/IIdentifierNamesGenerator'; import { IInversifyContainerFacade } from '../../../../src/interfaces/container/IInversifyContainerFacade'; import { IdentifierNamesGenerator } from '../../../../src/enums/generators/identifier-names-generators/IdentifierNamesGenerator'; import { InversifyContainerFacade } from '../../../../src/container/InversifyContainerFacade'; describe('DictionaryIdentifierNamesGenerator', () => { let identifierNamesGenerator: IIdentifierNamesGenerator, dictionaryIdentifierName: string; describe('generateNext', () => { describe('Base behaviour', () => { before(() => { const inversifyContainerFacade: IInversifyContainerFacade = new InversifyContainerFacade(); inversifyContainerFacade.load('', '', { identifiersDictionary: ['a', 'b'] }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); }); describe('Variant #1: first dictionary iteration', () => { const expectedDictionaryIdentifierNameRegExp: RegExp = /[a|b]/; beforeEach(() => { dictionaryIdentifierName = identifierNamesGenerator.generateNext(); }); it('Match #1: should return first identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); it('Match #2: should return second identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); }); describe('Variant #2: second dictionary iteration', () => { const expectedDictionaryIdentifierNameRegExp: RegExp = /[A|B]/; beforeEach(() => { dictionaryIdentifierName = identifierNamesGenerator.generateNext(); }); it('Match #1: should return third identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); it('Match #2: should return fourth identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); }); }); describe('Empty string as dictionary value', () => { before(() => { const inversifyContainerFacade: IInversifyContainerFacade = new InversifyContainerFacade(); inversifyContainerFacade.load('', '', { identifiersDictionary: ['', 'a'] }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); }); describe('Variant #1: Should ignore empty strings from dictionary', () => { const expectedDictionaryIdentifierNameRegExp: RegExp = /[a|A]/; beforeEach(() => { dictionaryIdentifierName = identifierNamesGenerator.generateNext(); }); it('Match #1: should return first identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); it('Match #2: should return second identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); }); }); describe('Multi-character string as dictionary value', () => { before(() => { const inversifyContainerFacade: IInversifyContainerFacade = new InversifyContainerFacade(); inversifyContainerFacade.load('', '', { identifiersDictionary: ['aa'] }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); }); describe('Variant #1: Should generate identifier names based on all variants of word from dictionary', () => { const expectedFirstIterationIdentifierName: string = 'aa'; const expectedSecondIterationIdentifierName: string = 'Aa'; const expectedThirdIterationIdentifierName: string = 'aA'; const expectedFourthIterationIdentifierName: string = 'AA'; beforeEach(() => { dictionaryIdentifierName = identifierNamesGenerator.generateNext(); }); it('Match #1: should return first identifier name', () => { assert.equal(dictionaryIdentifierName, expectedFirstIterationIdentifierName); }); it('Match #2: should return second identifier name', () => { assert.equal(dictionaryIdentifierName, expectedSecondIterationIdentifierName); }); it('Match #3: should return third identifier name', () => { assert.equal(dictionaryIdentifierName, expectedThirdIterationIdentifierName); }); it('Match #4: should return fourth identifier name', () => { assert.equal(dictionaryIdentifierName, expectedFourthIterationIdentifierName); }); }); }); describe('Errors', () => { let inversifyContainerFacade: IInversifyContainerFacade = new InversifyContainerFacade(); beforeEach(() => { inversifyContainerFacade = new InversifyContainerFacade(); }); describe('Variant #1: No more identifier variants for generation', () => { const expectedDictionaryIdentifierNameRegExp: RegExp = /[a|A]/; let testFunc: () => string; before(() => { inversifyContainerFacade.load('', '', { identifiersDictionary: ['a'] }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); testFunc = () => identifierNamesGenerator.generateNext(); }); it('Match #1: should return first identifier name', () => { dictionaryIdentifierName = testFunc(); assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); it('Match #2: should return second identifier name', () => { dictionaryIdentifierName = testFunc(); assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); it('Should throw an error when all identifier variants are used', () => { assert.throws(testFunc, Error); }); }); describe('Variant #2: Empty identifiers dictionary', () => { let testFunc: () => string; before(() => { inversifyContainerFacade.load('', '', { identifiersDictionary: [] }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); testFunc = () => identifierNamesGenerator.generateNext(); }); it('Should throw an error when identifiers dictionary is empty', () => { assert.throws(testFunc, Error); }); }); }); }); describe('generateForGlobalScope', () => { before(() => { const inversifyContainerFacade: IInversifyContainerFacade = new InversifyContainerFacade(); inversifyContainerFacade.load('', '', { identifiersDictionary: ['a'], identifiersPrefix: 'foo' }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); }); describe('Variant #1: Should generate identifier names with prefix', () => { const expectedDictionaryIdentifierNameRegExp: RegExp = /foo[a|A]/; beforeEach(() => { dictionaryIdentifierName = identifierNamesGenerator.generateForGlobalScope(); }); it('Match #1: should return first identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); it('Match #2: should return second identifier name', () => { assert.match(dictionaryIdentifierName, expectedDictionaryIdentifierNameRegExp); }); }); }); describe('generateForLabel', () => { const label1: string = 'label1'; const label2: string = 'label2'; const dictionaryNames1: string[] = []; const dictionaryNames2: string[] = []; let identifierNamesGenerator: IIdentifierNamesGenerator; before(() => { const inversifyContainerFacade: IInversifyContainerFacade = new InversifyContainerFacade(); inversifyContainerFacade.load('', '', { identifiersPrefix: 'foo', identifiersDictionary: ['a', 'b', 'c'] }); identifierNamesGenerator = inversifyContainerFacade.getNamed<IIdentifierNamesGenerator>( ServiceIdentifiers.IIdentifierNamesGenerator, IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator ); dictionaryNames1.push(identifierNamesGenerator.generateForLabel(label1)); dictionaryNames1.push(identifierNamesGenerator.generateForLabel(label1)); dictionaryNames1.push(identifierNamesGenerator.generateForLabel(label1)); dictionaryNames2.push(identifierNamesGenerator.generateForLabel(label2)); dictionaryNames2.push(identifierNamesGenerator.generateForLabel(label2)); dictionaryNames2.push(identifierNamesGenerator.generateForLabel(label2)); }); it('should return different dictionary names for different labels', () => { assert.notDeepEqual(dictionaryNames1, dictionaryNames2); }); }); }); ```
/content/code_sandbox/test/unit-tests/generators/identifier-names-generators/DictionarylIdentifierNamesGenerator.spec.ts
xml
2016-05-09T08:16:53
2024-08-16T19:43:07
javascript-obfuscator
javascript-obfuscator/javascript-obfuscator
13,358
1,900
```xml class Base { constructor(num: number) { } public instanceM() { console.log(1) } public static staticM() { console.log(2) } } class Sub extends Base { constructor() { super(5) } public instanceM() { super.instanceM() console.log(3) } public static staticM() { console.log(4) } } let x = new Base(4) let y = new Sub() ```
/content/code_sandbox/tests/pyconverter-test/baselines/class_super.ts
xml
2016-01-24T19:35:52
2024-08-16T16:39:39
pxt
microsoft/pxt
2,069
115
```xml import * as React from 'react'; import { CSSModule } from './utils'; export interface AccordionProps extends React.HTMLAttributes<HTMLElement> { tag?: React.ElementType; cssModule?: CSSModule; flush?: boolean; innerRef?: React.Ref<HTMLElement>; open: string | string[]; toggle: (targetId: string) => void; } export interface UncontrolledAccordionProps extends Omit<AccordionProps, 'open'> { defaultOpen?: string | string[]; stayOpen?: boolean; } declare class Accordion extends React.Component<AccordionProps> {} export default Accordion; ```
/content/code_sandbox/types/lib/Accordion.d.ts
xml
2016-02-19T08:01:36
2024-08-16T11:48:48
reactstrap
reactstrap/reactstrap
10,591
128
```xml // Type definitions for Chalk // Definitions by: Thomas Sauer <path_to_url export const enum Level { None = 0, Basic = 1, Ansi256 = 2, TrueColor = 3 } export interface ChalkOptions { enabled?: boolean; level?: Level; } export interface ChalkConstructor { new (options?: ChalkOptions): Chalk; (options?: ChalkOptions): Chalk; } export interface ColorSupport { level: Level; hasBasic: boolean; has256: boolean; has16m: boolean; } export interface Chalk { (...text: string[]): string; (text: TemplateStringsArray, ...placeholders: string[]): string; constructor: ChalkConstructor; enabled: boolean; level: Level; rgb(r: number, g: number, b: number): this; hsl(h: number, s: number, l: number): this; hsv(h: number, s: number, v: number): this; hwb(h: number, w: number, b: number): this; bgHex(color: string): this; bgKeyword(color: string): this; bgRgb(r: number, g: number, b: number): this; bgHsl(h: number, s: number, l: number): this; bgHsv(h: number, s: number, v: number): this; bgHwb(h: number, w: number, b: number): this; hex(color: string): this; keyword(color: string): this; readonly reset: this; readonly bold: this; readonly dim: this; readonly italic: this; readonly underline: this; readonly inverse: this; readonly hidden: this; readonly strikethrough: this; readonly visible: this; readonly black: this; readonly red: this; readonly green: this; readonly yellow: this; readonly blue: this; readonly magenta: this; readonly cyan: this; readonly white: this; readonly gray: this; readonly grey: this; readonly blackBright: this; readonly redBright: this; readonly greenBright: this; readonly yellowBright: this; readonly blueBright: this; readonly magentaBright: this; readonly cyanBright: this; readonly whiteBright: this; readonly bgBlack: this; readonly bgRed: this; readonly bgGreen: this; readonly bgYellow: this; readonly bgBlue: this; readonly bgMagenta: this; readonly bgCyan: this; readonly bgWhite: this; readonly bgBlackBright: this; readonly bgRedBright: this; readonly bgGreenBright: this; readonly bgYellowBright: this; readonly bgBlueBright: this; readonly bgMagentaBright: this; readonly bgCyanBright: this; readonly bgWhiteBright: this; } declare const chalk: Chalk & { supportsColor: ColorSupport }; export default chalk ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/babel-eslint/node_modules/chalk/types/index.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
645
```xml import path from "path"; import JSZip from "jszip"; import escapeRegExp from "lodash/escapeRegExp"; import { FileOperationFormat, NavigationNode } from "@shared/types"; import Logger from "@server/logging/Logger"; import { Collection } from "@server/models"; import Attachment from "@server/models/Attachment"; import Document from "@server/models/Document"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import ZipHelper from "@server/utils/ZipHelper"; import { serializeFilename } from "@server/utils/fs"; import ExportTask from "./ExportTask"; export default abstract class ExportDocumentTreeTask extends ExportTask { /** * Exports the document tree to the given zip instance. * * @param zip The JSZip instance to add files to * @param documentId The document ID to export * @param pathInZip The path in the zip to add the document to * @param format The format to export in */ protected async addDocumentToArchive({ zip, pathInZip, documentId, format = FileOperationFormat.MarkdownZip, includeAttachments, pathMap, }: { zip: JSZip; pathInZip: string; documentId: string; format: FileOperationFormat; includeAttachments: boolean; pathMap: Map<string, string>; }) { Logger.debug("task", `Adding document to archive`, { documentId }); const document = await Document.findByPk(documentId); if (!document) { return; } let text = format === FileOperationFormat.HTMLZip ? await DocumentHelper.toHTML(document, { centered: true }) : DocumentHelper.toMarkdown(document); const attachmentIds = includeAttachments ? ProsemirrorHelper.parseAttachmentIds( DocumentHelper.toProsemirror(document) ) : []; const attachments = attachmentIds.length ? await Attachment.findAll({ where: { teamId: document.teamId, id: attachmentIds, }, }) : []; // Add any referenced attachments to the zip file and replace the // reference in the document with the path to the attachment in the zip await Promise.all( attachments.map(async (attachment) => { Logger.debug("task", `Adding attachment to archive`, { documentId, key: attachment.key, }); const dir = path.dirname(pathInZip); zip.file( path.join(dir, attachment.key), new Promise<Buffer>((resolve) => { attachment.buffer.then(resolve).catch((err) => { Logger.warn(`Failed to read attachment from storage`, { attachmentId: attachment.id, teamId: attachment.teamId, error: err.message, }); resolve(Buffer.from("")); }); }), { date: attachment.updatedAt, createFolders: true, } ); text = text.replace( new RegExp(escapeRegExp(attachment.redirectUrl), "g"), encodeURI(attachment.key) ); }) ); // Replace any internal links with relative paths to the document in the zip const internalLinks = [ ...text.matchAll(/\/doc\/(?:[0-9a-zA-Z-_~]*-)?([a-zA-Z0-9]{10,15})/g), ]; internalLinks.forEach((match) => { const matchedLink = match[0]; const matchedDocPath = pathMap.get(matchedLink); if (matchedDocPath) { const relativePath = path.relative(pathInZip, matchedDocPath); if (relativePath.startsWith(".")) { text = text.replace( matchedLink, encodeURI(relativePath.substring(1)) ); } } }); // Finally, add the document to the zip file zip.file(pathInZip, text, { date: document.updatedAt, createFolders: true, comment: JSON.stringify({ createdAt: document.createdAt, updatedAt: document.updatedAt, }), }); } /** * Exports the documents and attachments in the given collections to a zip file * and returns the path to the zip file in tmp. * * @param zip The JSZip instance to add files to * @param collections The collections to export * @param format The format to export in * @param includeAttachments Whether to include attachments in the export * * @returns The path to the zip file in tmp. */ protected async addCollectionsToArchive( zip: JSZip, collections: Collection[], format: FileOperationFormat, includeAttachments = true ) { const pathMap = this.createPathMap(collections, format); Logger.debug( "task", `Start adding ${Object.values(pathMap).length} documents to archive` ); for (const path of pathMap) { const documentId = path[0].replace("/doc/", ""); const pathInZip = path[1]; await this.addDocumentToArchive({ zip, pathInZip, documentId, includeAttachments, format, pathMap, }); } Logger.debug("task", "Completed adding documents to archive"); return await ZipHelper.toTmpFile(zip); } /** * Generates a map of document urls to their path in the zip file. * * @param collections */ private createPathMap( collections: Collection[], format: FileOperationFormat ) { const map = new Map<string, string>(); for (const collection of collections) { if (collection.documentStructure) { this.addDocumentTreeToPathMap( map, collection.documentStructure, serializeFilename(collection.name), format ); } } return map; } private addDocumentTreeToPathMap( map: Map<string, string>, nodes: NavigationNode[], root: string, format: FileOperationFormat ) { for (const node of nodes) { const title = serializeFilename(node.title) || "Untitled"; const extension = format === FileOperationFormat.HTMLZip ? "html" : "md"; // Ensure the document is given a unique path in zip, even if it has // the same title as another document in the same collection. let i = 0; let filePath = path.join(root, `${title}.${extension}`); while (Array.from(map.values()).includes(filePath)) { filePath = path.join(root, `${title} (${++i}).${extension}`); } map.set(node.url, filePath); // If this is an imported document, the references to this doc are in the 'doc/{docId}' format. // Set this format to replace them with relative URLs in the zip. map.set(`/doc/${node.id}`, filePath); if (node.children?.length) { this.addDocumentTreeToPathMap( map, node.children, path.join(root, title), format ); } } } } ```
/content/code_sandbox/server/queues/tasks/ExportDocumentTreeTask.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
1,519
```xml import type { DirectLineCardAction } from 'botframework-webchat-core'; import FunctionMiddleware from './FunctionMiddleware'; type PerformCardAction = (cardAction: DirectLineCardAction, event?: { target: EventTarget }) => void; type CardActionMiddleware = FunctionMiddleware< [{ dispatch: (action: any) => void }], [ { cardAction: DirectLineCardAction; getSignInUrl?: () => string; target: any; } ], {} >; export default CardActionMiddleware; export { PerformCardAction }; ```
/content/code_sandbox/packages/api/src/types/CardActionMiddleware.ts
xml
2016-07-07T23:16:57
2024-08-16T00:12:37
BotFramework-WebChat
microsoft/BotFramework-WebChat
1,567
116
```xml import type { FileReader } from './file-reader' interface FileReaderBatch { completed: boolean directories: Array<string> callbacks: Array<{ resolve: (value: ReadonlyArray<string>) => void reject: (err: any) => void }> } /** * CachedFileReader will deduplicate requests made to the same folder structure * to scan for files. */ export class BatchedFileReader implements FileReader { private batch?: FileReaderBatch constructor(private readonly reader: FileReader) {} // This allows us to schedule the batches after all the promises associated // with loading files. private schedulePromise?: Promise<void> private schedule(callback: Function) { if (!this.schedulePromise) { this.schedulePromise = Promise.resolve() } this.schedulePromise.then(() => { process.nextTick(callback) }) } private getOrCreateBatch(): FileReaderBatch { // If there is an existing batch and it's not completed, then reuse it. if (this.batch && !this.batch.completed) { return this.batch } const batch: FileReaderBatch = { completed: false, directories: [], callbacks: [], } this.batch = batch this.schedule(async () => { batch.completed = true if (batch.directories.length === 0) return // Collect all the results for each of the directories. If any error // occurs, send the results back to the loaders. let values: ReadonlyArray<ReadonlyArray<string> | Error> try { values = await this.load(batch.directories) } catch (err) { // Reject all the callbacks. for (const { reject } of batch.callbacks) { reject(err) } return } // Loop over all the callbacks and send them their results. for (let i = 0; i < batch.callbacks.length; i++) { const value = values[i] if (value instanceof Error) { batch.callbacks[i].reject(value) } else { batch.callbacks[i].resolve(value) } } }) return batch } private async load( directories: ReadonlyArray<string> ): Promise<ReadonlyArray<ReadonlyArray<string> | Error>> { // Make a unique array of directories. This is what lets us de-duplicate // loads for the same directory. const unique = [...new Set(directories)] const results = await Promise.all( unique.map(async (directory) => { let files: ReadonlyArray<string> | undefined let error: Error | undefined try { files = await this.reader.read(directory) } catch (err) { if (err instanceof Error) error = err } return { directory, files, error } }) ) return directories.map((directory) => { const found = results.find((result) => result.directory === directory) if (!found) return [] if (found.files) return found.files if (found.error) return found.error return [] }) } public async read(dir: string): Promise<ReadonlyArray<string>> { // Get or create a new file reading batch. const batch = this.getOrCreateBatch() // Push this directory into the batch to resolve. batch.directories.push(dir) // Push the promise handles into the batch (under the same index) so it can // be resolved later when it's scheduled. const promise = new Promise<ReadonlyArray<string>>((resolve, reject) => { batch.callbacks.push({ resolve, reject }) }) return promise } } ```
/content/code_sandbox/packages/next/src/server/route-matcher-providers/dev/helpers/file-reader/batched-file-reader.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
776
```xml /** Symbol.observable addition */ declare global { interface SymbolConstructor { readonly observable: symbol; } } /** Symbol.observable or a string "@@observable". Used for interop */ export declare const observable: string | symbol; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/internal/symbol/observable.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
47
```xml import { jsx, Canvas, Chart, Axis, Interval, Tooltip } from '../../src'; import { delay } from '../util'; import { Renderer } from '@antv/g-mobile-svg'; const container = document.createElement('div'); container.style.width = '300px'; container.style.height = '200px'; document.body.appendChild(container); const data = [ { type: 'a', genre: 'Sports', sold: 5 }, { type: 'a', genre: 'Strategy', sold: 10 }, { type: 'a', genre: 'Action', sold: 20 }, { type: 'a', genre: 'Shooter', sold: 20 }, { type: 'a', genre: 'Other', sold: 40 }, ]; const renderer = new Renderer(); describe('Chart', () => { it('Chart render', async () => { const { props } = ( <Canvas container={container} animate={false} renderer={renderer} width={300} height={200}> <Chart data={data}> <Interval x="genre" y="sold" color="genre" /> </Chart> </Canvas> ); const canvas = new Canvas(props); await canvas.render(); const dataURL = await canvas.toDataURL(); expect(dataURL).toBe( 'data:image/svg+xml;charset=utf8,%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22300%22%20height%3D%22200%22%20color-interpolation-filters%3D%22sRGB%22%20style%3D%22background%3A%20transparent%3B%22%3E%3Cdefs%2F%3E%3Cg%20id%3D%22g-svg-camera%22%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cg%20id%3D%22g-root%22%20fill%3D%22none%22%20stroke%3D%22none%22%20visibility%3D%22visible%22%20font-size%3D%2212px%22%20font-family%3D%22%26quot%3BHelvetica%20Neue%26quot%3B%2C%20Helvetica%2C%20%26quot%3BPingFang%20SC%26quot%3B%2C%20%26quot%3BHiragino%20Sans%20GB%26quot%3B%2C%20%26quot%3BMicrosoft%20YaHei%26quot%3B%2C%20Arial%2C%20sans-serif%22%20font-style%3D%22normal%22%20font-weight%3D%22normal%22%20font-variant%3D%22normal%22%20text-anchor%3D%22left%22%20stroke-dashoffset%3D%220px%22%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cg%20id%3D%22g-svg-1%22%20fill%3D%22none%22%20stroke%3D%22none%22%20width%3D%22300px%22%20height%3D%22200px%22%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-2%22%20fill%3D%22rgba(0%2C0%2C0%2C0)%22%20d%3D%22M%200%2C0%20l%20300%2C0%20l%200%2C200%20l-300%200%20z%22%20stroke%3D%22none%22%20width%3D%22300px%22%20height%3D%22200px%22%2F%3E%3Cg%20id%3D%22g-svg-3%22%20fill%3D%22none%22%20stroke%3D%22none%22%20width%3D%220px%22%20height%3D%220px%22%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cg%20id%3D%22g-svg-4%22%20fill%3D%22none%22%20stroke%3D%22none%22%20width%3D%220px%22%20height%3D%220px%22%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cg%20id%3D%22g-svg-5%22%20fill%3D%22none%22%20stroke%3D%22none%22%20width%3D%220px%22%20height%3D%220px%22%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-6%22%20fill%3D%22none%22%20d%3D%22M%200%2C0%20l%200%2C0%20l%200%2C0%20l0%200%20z%22%20stroke%3D%22none%22%2F%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-7%22%20fill%3D%22none%22%20d%3D%22M%200%2C0%20l%200%2C0%20l%200%2C0%20l0%200%20z%22%20stroke%3D%22none%22%2F%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C28.500000%2C163.750000)%22%3E%3Cpath%20id%3D%22g-svg-12%22%20fill%3D%22rgba(24%2C144%2C255%2C1)%22%20d%3D%22M%200%2C0%20l%2027.000000000000007%2C0%20l%200%2C21.25%20l-27.000000000000007%200%20z%22%20stroke%3D%22none%22%20width%3D%2227.000000000000007px%22%20height%3D%2221.25px%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-8%22%20fill%3D%22none%22%20d%3D%22M%200%2C0%20l%200%2C0%20l%200%2C0%20l0%200%20z%22%20stroke%3D%22none%22%2F%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C82.500000%2C142.500000)%22%3E%3Cpath%20id%3D%22g-svg-13%22%20fill%3D%22rgba(47%2C194%2C91%2C1)%22%20d%3D%22M%200%2C0%20l%2027%2C0%20l%200%2C42.5%20l-27%200%20z%22%20stroke%3D%22none%22%20width%3D%2227px%22%20height%3D%2242.5px%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-9%22%20fill%3D%22none%22%20d%3D%22M%200%2C0%20l%200%2C0%20l%200%2C0%20l0%200%20z%22%20stroke%3D%22none%22%2F%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C136.500000%2C100)%22%3E%3Cpath%20id%3D%22g-svg-14%22%20fill%3D%22rgba(250%2C204%2C20%2C1)%22%20d%3D%22M%200%2C0%20l%2027%2C0%20l%200%2C85%20l-27%200%20z%22%20stroke%3D%22none%22%20width%3D%2227px%22%20height%3D%2285px%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-10%22%20fill%3D%22none%22%20d%3D%22M%200%2C0%20l%200%2C0%20l%200%2C0%20l0%200%20z%22%20stroke%3D%22none%22%2F%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C190.500000%2C100)%22%3E%3Cpath%20id%3D%22g-svg-15%22%20fill%3D%22rgba(34%2C50%2C115%2C1)%22%20d%3D%22M%200%2C0%20l%2027.00000000000003%2C0%20l%200%2C85%20l-27.00000000000003%200%20z%22%20stroke%3D%22none%22%20width%3D%2227.00000000000003px%22%20height%3D%2285px%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C0%2C0)%22%3E%3Cpath%20id%3D%22g-svg-11%22%20fill%3D%22none%22%20d%3D%22M%200%2C0%20l%200%2C0%20l%200%2C0%20l0%200%20z%22%20stroke%3D%22none%22%2F%3E%3Cg%20transform%3D%22matrix(1%2C0%2C0%2C1%2C244.500000%2C15)%22%3E%3Cpath%20id%3D%22g-svg-16%22%20fill%3D%22rgba(133%2C67%2C224%2C1)%22%20d%3D%22M%200%2C0%20l%2027%2C0%20l%200%2C170%20l-27%200%20z%22%20stroke%3D%22none%22%20width%3D%2227px%22%20height%3D%22170px%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E' ); }); }); ```
/content/code_sandbox/packages/f2/test/chart/svg.test.tsx
xml
2016-08-29T06:26:23
2024-08-16T15:50:14
F2
antvis/F2
7,877
3,273
```xml <vector android:height="24dp" android:tint="#F42A13" android:viewportHeight="24.0" android:viewportWidth="24.0" android:width="24dp" xmlns:android="path_to_url"> <path android:fillColor="#FF000000" android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/> </vector> ```
/content/code_sandbox/Android/app/src/main/res/drawable/ic_favorite_red_full_24dp.xml
xml
2016-01-30T13:42:30
2024-08-12T19:21:10
Travel-Mate
project-travel-mate/Travel-Mate
1,292
215
```xml <?xml version="1.0" encoding="utf-8"?> <Behavior Version="5"> <Node Class="Behaviac.Design.Nodes.Behavior" AgentType="AgentNodeTest" Domains="" Enable="true" HasOwnPrefabData="false" Id="-1" PrefabName="" PrefabNodeId="-1"> <Comment Background="NoColor" Text="" /> <DescriptorRefs value="0:" /> <Connector Identifier="GenericChildren"> <Node Class="PluginBehaviac.Nodes.SequenceStochastic" Enable="true" HasOwnPrefabData="false" Id="0" PrefabName="" PrefabNodeId="-1" RandomGenerator="&quot;&quot;"> <Comment Background="NoColor" Text="" /> <Connector Identifier="GenericChildren"> <Node Class="PluginBehaviac.Nodes.False" Enable="true" HasOwnPrefabData="false" Id="2" PrefabName="" PrefabNodeId="-1"> <Comment Background="NoColor" Text="" /> </Node> <Node Class="PluginBehaviac.Nodes.False" Enable="true" HasOwnPrefabData="false" Id="3" PrefabName="" PrefabNodeId="-1"> <Comment Background="NoColor" Text="" /> </Node> <Node Class="PluginBehaviac.Nodes.Action" Enable="true" HasOwnPrefabData="false" Id="1" Method="Self.AgentNodeTest::setTestVar_0(0)" PrefabName="" PrefabNodeId="-1" ResultFunctor="&quot;&quot;" ResultOption="BT_SUCCESS"> <Comment Background="NoColor" Text="" /> </Node> </Connector> </Node> </Connector> </Node> </Behavior> ```
/content/code_sandbox/integration/unity/Assets/behaviac/workspace/behaviors/node_test/sequence_stochastic_ut_3.xml
xml
2016-11-21T05:08:08
2024-08-16T07:18:30
behaviac
Tencent/behaviac
2,831
369
```xml import { Component, HostBinding } from '@angular/core'; import { slideInUpAnimation } from '../../../app.animations'; @Component({ selector: 'docs-deployment', styleUrls: ['./deployment.component.scss'], templateUrl: './deployment.component.html', animations: [slideInUpAnimation], }) export class DeploymentComponent { @HostBinding('@routeAnimation') routeAnimation = true; @HostBinding('class.td-route-animation') classAnimation = true; } ```
/content/code_sandbox/apps/docs-app/src/app/content/docs/deployment/deployment.component.ts
xml
2016-07-11T23:30:52
2024-08-15T15:20:45
covalent
Teradata/covalent
2,228
96
```xml import { EnhancedItem } from '@devhub/core' import { EMPTY_ARRAY, EMPTY_OBJ } from '../../utils/constants' import { RootState } from '../types' import { createShallowEqualSelector } from './helpers' const s = (state: RootState) => state.data || EMPTY_OBJ export const dataByNodeIdOrId = (state: RootState) => s(state).byId export const dataNodeIdsOrIdsBySubscriptionId = (state: RootState) => s(state).idsBySubscriptionId export const dataReadIds = (state: RootState) => s(state).readIds export const dataSavedIds = (state: RootState) => s(state).savedIds export const createItemsBySubscriptionIdsSelector = () => { return createShallowEqualSelector( (_state: RootState, subscriptionIds: string[]) => subscriptionIds, (state: RootState, _subscriptionIds: string[]) => dataNodeIdsOrIdsBySubscriptionId(state), (state: RootState, _subscriptionIds: string[]) => dataByNodeIdOrId(state), (subscriptionIds, idsBySubscriptionId, entryById) => { if (!idsBySubscriptionId) return EMPTY_ARRAY if (!(subscriptionIds && subscriptionIds.length)) return EMPTY_ARRAY const itemIds: string[] = [] const items: EnhancedItem[] = [] subscriptionIds.forEach((subscriptionId) => { const ids = idsBySubscriptionId[subscriptionId] if (!(ids && ids.length)) return ids.forEach((id) => { if (!id) return if (itemIds.includes(id)) return const entry = entryById[id] if (!(entry && entry.item)) return itemIds.push(id) items.push(entry.item) }) }) if (!(items && items.length)) return EMPTY_ARRAY return items }, ) } ```
/content/code_sandbox/packages/components/src/redux/selectors/data.ts
xml
2016-11-30T23:24:21
2024-08-16T00:24:59
devhub
devhubapp/devhub
9,652
392
```xml import * as React from 'react'; import { useBadge_unstable } from './useBadge'; import { useBadgeStyles_unstable } from './useBadgeStyles.styles'; import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts'; import { renderBadge_unstable } from './renderBadge'; import type { BadgeProps } from './Badge.types'; import type { ForwardRefComponent } from '@fluentui/react-utilities'; /** * Define a styled Badge, using the `useBadge_unstable` hook. */ export const Badge: ForwardRefComponent<BadgeProps> = React.forwardRef((props, ref) => { const state = useBadge_unstable(props, ref); useBadgeStyles_unstable(state); useCustomStyleHook_unstable('useBadgeStyles_unstable')(state); return renderBadge_unstable(state); }); Badge.displayName = 'Badge'; ```
/content/code_sandbox/packages/react-components/react-badge/library/src/components/Badge/Badge.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
185
```xml <clickhouse> <storage_configuration> <disks> <s3> <type>s3</type> <endpoint>path_to_url <access_key_id>minio</access_key_id> <secret_access_key>minio123</secret_access_key> <s3_max_single_part_upload_size>33554432</s3_max_single_part_upload_size> <s3_max_put_rps>10</s3_max_put_rps> <s3_max_get_rps>10</s3_max_get_rps> <read_resource>network_read</read_resource> <write_resource>network_write</write_resource> </s3> </disks> <policies> <s3> <volumes> <main> <disk>s3</disk> </main> </volumes> </s3> </policies> </storage_configuration> </clickhouse> ```
/content/code_sandbox/tests/integration/test_scheduler/configs/storage_configuration.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
208
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="debug|x64"> <Configuration>debug</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="release|x64"> <Configuration>release</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="profile|x64"> <Configuration>profile</Configuration> <Platform>x64</Platform> </ProjectConfiguration> <ProjectConfiguration Include="checked|x64"> <Configuration>checked</Configuration> <Platform>x64</Platform> </ProjectConfiguration> </ItemGroup> <PropertyGroup Label="Globals"> <ProjectGuid>{E52F63A7-67BB-4C5F-AC3F-306F95DBDD0F}</ProjectGuid> <RootNamespace>ApexShared</RootNamespace> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'" Label="Configuration"> <ConfigurationType>StaticLibrary</ConfigurationType> <PlatformToolset>v120</PlatformToolset> </PropertyGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> <ImportGroup Label="ExtensionSettings"> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='debug|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../paths.vsprops" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='release|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../paths.vsprops" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='profile|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../paths.vsprops" /> </ImportGroup> <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='checked|x64'"> <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> <Import Project="../paths.vsprops" /> </ImportGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'"> <OutDir>./../../lib/vc12win64-PhysX_3.4\</OutDir> <IntDir>./build/x64/ApexShared/debug\</IntDir> <TargetExt>.lib</TargetExt> <TargetName>$(ProjectName)DEBUG</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='debug|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <FloatingPointModel>Fast</FloatingPointModel> <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /MP /d2Zi+</AdditionalOptions> <Optimization>Disabled</Optimization> <AdditionalIncludeDirectories>../../../PxShared/include;../../../PxShared/include/filebuf;../../../PxShared/include/foundation;../../../PxShared/include/task;../../../PxShared/include/cudamanager;../../../PxShared/include/pvd;../../../PxShared/src/foundation/include;../../../PxShared/src/filebuf/include;../../../PxShared/src/fastxml/include;../../../PxShared/src/pvd/include;./../../shared/general/shared;./../../public;../../../PhysX_3.4/Include;../../../PhysX_3.4/Include/common;../../../PhysX_3.4/Include/cooking;../../../PhysX_3.4/Include/extensions;../../../PhysX_3.4/Include/geometry;../../../PhysX_3.4/Include/gpu;../../../PhysX_3.4/Include/deformable;../../../PhysX_3.4/Include/particles;../../../PhysX_3.4/Include/characterkinematic;../../../PhysX_3.4/Include/characterdynamic;../../../PhysX_3.4/Include/vehicle;../../../PhysX_3.4/Source/GeomUtils/headers;../../../PhysX_3.4/Source/PhysXGpu/include;./../../shared/general/RenderDebug/public;./../../shared/general/shared/inparser/include;./../../common/include;./../../common/include/autogen;./../../common/include/windows;./../../shared/internal/include;./../../module/common/include;./../../NvParameterized/include;./../../include;./../../include/PhysX3;./../../framework/include;./../../framework/include/autogen;./../../include;./../../include/PhysX3;./../../include/destructible;./../../shared/general/floatmath/include;./../../shared/general/PairFilter/public;./../../shared/general/PairFilter/include;./../../shared/general/HACD/public;./../../shared/general/HACD/include;./../../shared/general/HACD/src;./../../shared/general/stan_hull/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;INSTALLER=1;EXCLUDE_PARTICLES=1;ENABLE_TEST=0;PLUGINS_EMBEDDED;_DEBUG;PX_DEBUG;PX_CHECKED;PHYSX_PROFILE_SDK;PX_SUPPORT_VISUAL_DEBUGGER;PX_PROFILE;PX_NVTX=1;PX_PHYSX_DLL_NAME_POSTFIX=DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <AdditionalOptions>/INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)DEBUG.lib</OutputFile> <AdditionalLibraryDirectories>../../../PxShared/lib/vc12win64;../../../PhysX_3.4/Lib/vc12win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName)DEBUG.lib.pdb</ProgramDatabaseFile> <TargetMachine>MachineX64</TargetMachine> </Lib> <ResourceCompile> </ResourceCompile> <ProjectReference> <LinkLibraryDependencies>true</LinkLibraryDependencies> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'"> <OutDir>./../../lib/vc12win64-PhysX_3.4\</OutDir> <IntDir>./build/x64/ApexShared/release\</IntDir> <TargetExt>.lib</TargetExt> <TargetName>$(ProjectName)</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='release|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /MP /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>../../../PxShared/include;../../../PxShared/include/filebuf;../../../PxShared/include/foundation;../../../PxShared/include/task;../../../PxShared/include/cudamanager;../../../PxShared/include/pvd;../../../PxShared/src/foundation/include;../../../PxShared/src/filebuf/include;../../../PxShared/src/fastxml/include;../../../PxShared/src/pvd/include;./../../shared/general/shared;./../../public;../../../PhysX_3.4/Include;../../../PhysX_3.4/Include/common;../../../PhysX_3.4/Include/cooking;../../../PhysX_3.4/Include/extensions;../../../PhysX_3.4/Include/geometry;../../../PhysX_3.4/Include/gpu;../../../PhysX_3.4/Include/deformable;../../../PhysX_3.4/Include/particles;../../../PhysX_3.4/Include/characterkinematic;../../../PhysX_3.4/Include/characterdynamic;../../../PhysX_3.4/Include/vehicle;../../../PhysX_3.4/Source/GeomUtils/headers;../../../PhysX_3.4/Source/PhysXGpu/include;./../../shared/general/RenderDebug/public;./../../shared/general/shared/inparser/include;./../../common/include;./../../common/include/autogen;./../../common/include/windows;./../../shared/internal/include;./../../module/common/include;./../../NvParameterized/include;./../../include;./../../include/PhysX3;./../../framework/include;./../../framework/include/autogen;./../../include;./../../include/PhysX3;./../../include/destructible;./../../shared/general/floatmath/include;./../../shared/general/PairFilter/public;./../../shared/general/PairFilter/include;./../../shared/general/HACD/public;./../../shared/general/HACD/include;./../../shared/general/HACD/src;./../../shared/general/stan_hull/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;INSTALLER=1;EXCLUDE_PARTICLES=1;ENABLE_TEST=0;PLUGINS_EMBEDDED;NDEBUG;APEX_SHIPPING;_SECURE_SCL=0;_ITERATOR_DEBUG_LEVEL=0;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <AdditionalOptions>/INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName).lib</OutputFile> <AdditionalLibraryDirectories>../../../PxShared/lib/vc12win64;../../../PhysX_3.4/Lib/vc12win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName).lib.pdb</ProgramDatabaseFile> <TargetMachine>MachineX64</TargetMachine> </Lib> <ResourceCompile> </ResourceCompile> <ProjectReference> <LinkLibraryDependencies>true</LinkLibraryDependencies> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'"> <OutDir>./../../lib/vc12win64-PhysX_3.4\</OutDir> <IntDir>./build/x64/ApexShared/profile\</IntDir> <TargetExt>.lib</TargetExt> <TargetName>$(ProjectName)PROFILE</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='profile|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /MP /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>../../../PxShared/include;../../../PxShared/include/filebuf;../../../PxShared/include/foundation;../../../PxShared/include/task;../../../PxShared/include/cudamanager;../../../PxShared/include/pvd;../../../PxShared/src/foundation/include;../../../PxShared/src/filebuf/include;../../../PxShared/src/fastxml/include;../../../PxShared/src/pvd/include;./../../shared/general/shared;./../../public;../../../PhysX_3.4/Include;../../../PhysX_3.4/Include/common;../../../PhysX_3.4/Include/cooking;../../../PhysX_3.4/Include/extensions;../../../PhysX_3.4/Include/geometry;../../../PhysX_3.4/Include/gpu;../../../PhysX_3.4/Include/deformable;../../../PhysX_3.4/Include/particles;../../../PhysX_3.4/Include/characterkinematic;../../../PhysX_3.4/Include/characterdynamic;../../../PhysX_3.4/Include/vehicle;../../../PhysX_3.4/Source/GeomUtils/headers;../../../PhysX_3.4/Source/PhysXGpu/include;./../../shared/general/RenderDebug/public;./../../shared/general/shared/inparser/include;./../../common/include;./../../common/include/autogen;./../../common/include/windows;./../../shared/internal/include;./../../module/common/include;./../../NvParameterized/include;./../../include;./../../include/PhysX3;./../../framework/include;./../../framework/include/autogen;./../../include;./../../include/PhysX3;./../../include/destructible;./../../shared/general/floatmath/include;./../../shared/general/PairFilter/public;./../../shared/general/PairFilter/include;./../../shared/general/HACD/public;./../../shared/general/HACD/include;./../../shared/general/HACD/src;./../../shared/general/stan_hull/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;INSTALLER=1;EXCLUDE_PARTICLES=1;ENABLE_TEST=0;PLUGINS_EMBEDDED;NDEBUG;PHYSX_PROFILE_SDK;PX_SUPPORT_VISUAL_DEBUGGER;PX_PROFILE;PX_NVTX=1;_SECURE_SCL=0;_ITERATOR_DEBUG_LEVEL=0;PX_PHYSX_DLL_NAME_POSTFIX=PROFILE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <AdditionalOptions>/INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)PROFILE.lib</OutputFile> <AdditionalLibraryDirectories>../../../PxShared/lib/vc12win64;../../../PhysX_3.4/Lib/vc12win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName)PROFILE.lib.pdb</ProgramDatabaseFile> <TargetMachine>MachineX64</TargetMachine> </Lib> <ResourceCompile> </ResourceCompile> <ProjectReference> <LinkLibraryDependencies>true</LinkLibraryDependencies> </ProjectReference> </ItemDefinitionGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'"> <OutDir>./../../lib/vc12win64-PhysX_3.4\</OutDir> <IntDir>./build/x64/ApexShared/checked\</IntDir> <TargetExt>.lib</TargetExt> <TargetName>$(ProjectName)CHECKED</TargetName> <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRules /> <CodeAnalysisRuleAssemblies /> </PropertyGroup> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='checked|x64'"> <ClCompile> <TreatWarningAsError>true</TreatWarningAsError> <StringPooling>true</StringPooling> <RuntimeTypeInfo>false</RuntimeTypeInfo> <FloatingPointModel>Fast</FloatingPointModel> <AdditionalOptions>/wd4201 /wd4324 /Wall /wd4514 /wd4820 /wd4127 /wd4710 /wd4711 /wd4061 /wd4668 /wd4626 /wd4266 /wd4263 /wd4264 /wd4640 /wd4625 /wd4574 /wd4191 /wd4987 /wd4986 /wd4946 /wd4836 /wd4571 /wd4826 /wd4577 /wd4458 /MP /d2Zi+</AdditionalOptions> <Optimization>Full</Optimization> <AdditionalIncludeDirectories>../../../PxShared/include;../../../PxShared/include/filebuf;../../../PxShared/include/foundation;../../../PxShared/include/task;../../../PxShared/include/cudamanager;../../../PxShared/include/pvd;../../../PxShared/src/foundation/include;../../../PxShared/src/filebuf/include;../../../PxShared/src/fastxml/include;../../../PxShared/src/pvd/include;./../../shared/general/shared;./../../public;../../../PhysX_3.4/Include;../../../PhysX_3.4/Include/common;../../../PhysX_3.4/Include/cooking;../../../PhysX_3.4/Include/extensions;../../../PhysX_3.4/Include/geometry;../../../PhysX_3.4/Include/gpu;../../../PhysX_3.4/Include/deformable;../../../PhysX_3.4/Include/particles;../../../PhysX_3.4/Include/characterkinematic;../../../PhysX_3.4/Include/characterdynamic;../../../PhysX_3.4/Include/vehicle;../../../PhysX_3.4/Source/GeomUtils/headers;../../../PhysX_3.4/Source/PhysXGpu/include;./../../shared/general/RenderDebug/public;./../../shared/general/shared/inparser/include;./../../common/include;./../../common/include/autogen;./../../common/include/windows;./../../shared/internal/include;./../../module/common/include;./../../NvParameterized/include;./../../include;./../../include/PhysX3;./../../framework/include;./../../framework/include/autogen;./../../include;./../../include/PhysX3;./../../include/destructible;./../../shared/general/floatmath/include;./../../shared/general/PairFilter/public;./../../shared/general/PairFilter/include;./../../shared/general/HACD/public;./../../shared/general/HACD/include;./../../shared/general/HACD/src;./../../shared/general/stan_hull/include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> <PreprocessorDefinitions>WIN32;WIN64;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;INSTALLER=1;EXCLUDE_PARTICLES=1;ENABLE_TEST=0;PLUGINS_EMBEDDED;NDEBUG;PX_CHECKED;PHYSX_PROFILE_SDK;PX_SUPPORT_VISUAL_DEBUGGER;PX_ENABLE_CHECKED_ASSERTS;PX_NVTX=1;_SECURE_SCL=0;_ITERATOR_DEBUG_LEVEL=0;PX_PHYSX_DLL_NAME_POSTFIX=CHECKED;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ExceptionHandling>false</ExceptionHandling> <WarningLevel>Level4</WarningLevel> <RuntimeLibrary>MultiThreaded</RuntimeLibrary> <PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeaderFile></PrecompiledHeaderFile> <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> </ClCompile> <Lib> <AdditionalOptions>/INCREMENTAL:NO</AdditionalOptions> <AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies> <OutputFile>$(OutDir)$(ProjectName)CHECKED.lib</OutputFile> <AdditionalLibraryDirectories>../../../PxShared/lib/vc12win64;../../../PhysX_3.4/Lib/vc12win64;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories> <ProgramDatabaseFile>$(OutDir)/$(ProjectName)CHECKED.lib.pdb</ProgramDatabaseFile> <TargetMachine>MachineX64</TargetMachine> </Lib> <ResourceCompile> </ResourceCompile> <ProjectReference> <LinkLibraryDependencies>true</LinkLibraryDependencies> </ProjectReference> </ItemDefinitionGroup> <ItemGroup> <ClCompile Include="..\..\shared\internal\src\authoring\ApexCSG.cpp"> </ClCompile> <ClCompile Include="..\..\shared\internal\src\authoring\ApexCSGHull.cpp"> </ClCompile> <ClCompile Include="..\..\shared\internal\src\authoring\ApexCSGMeshCleaning.cpp"> </ClCompile> <ClCompile Include="..\..\shared\internal\src\authoring\Cutout.cpp"> </ClCompile> <ClCompile Include="..\..\shared\internal\src\authoring\Fracturing.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\shared\internal\src\PvdNxParamSerializer.cpp"> </ClCompile> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSG.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSGDefs.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSGFastMath.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSGFastMath2.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSGHull.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSGMath.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexCSGSerialization.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\ApexGSA.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\authoring\Fracturing.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\internal\include\ApexSharedSerialization.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\ApexStream.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\ApexString.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\FractureTools.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\Link.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\ParamArray.h"> </ClInclude> <ClInclude Include="..\..\shared\internal\include\PvdNxParamSerializer.h"> </ClInclude> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\general\shared\PxInputDataFromPxFileBuf.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\general\floatmath\include\FloatMath.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\shared\general\floatmath\src\FloatMath.cpp"> </ClCompile> <ClInclude Include="..\..\shared\general\floatmath\src\FloatMath.inl"> </ClInclude> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\general\HACD\include\AutoGeometry.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\ConvexDecomposition.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgAABBPolygonSoup.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgArray.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgConvexHull3d.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgGoogol.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgGraph.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgHeap.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgIntersections.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgList.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgMatrix.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgMeshEffect.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgPlane.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgPolygonSoupBuilder.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgPolygonSoupDatabase.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgPolyhedra.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgQuaternion.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgRefCounter.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgSmallDeterminant.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgSphere.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgStack.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgTree.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgTypes.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\include\dgVector.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\general\HACD\public\ConvexHull.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\HACD.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\JobSwarm.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\MergeHulls.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\PlatformConfigHACD.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\PxVector.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\SparseArray.h"> </ClInclude> <ClInclude Include="..\..\shared\general\HACD\public\WuQuantizer.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\shared\general\HACD\src\AutoGeometry.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\ConvexDecomposition.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\ConvexHull.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgAABBPolygonSoup.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgConvexHull3d.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgGoogol.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgIntersections.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgMatrix.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgMeshEffect.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgPolygonSoupBuilder.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgPolyhedra.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgQuaternion.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgSmallDeterminant.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgSphere.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgTree.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\dgTypes.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\HACD.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\MergeHulls.cpp"> </ClCompile> <ClCompile Include="..\..\shared\general\HACD\src\WuQuantizer.cpp"> </ClCompile> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\general\PairFilter\include\PairFilter.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\shared\general\PairFilter\src\PairFilter.cpp"> </ClCompile> </ItemGroup> <ItemGroup> </ItemGroup> <ItemGroup> <ClInclude Include="..\..\shared\general\stan_hull\include\StanHull.h"> </ClInclude> <ClInclude Include="..\..\shared\general\stan_hull\include\StanHullConfig.h"> </ClInclude> </ItemGroup> <ItemGroup> <ClCompile Include="..\..\shared\general\stan_hull\src\StanHull.cpp"> </ClCompile> </ItemGroup> <ItemGroup> </ItemGroup> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"></ImportGroup> </Project> ```
/content/code_sandbox/APEX_1.4/compiler/vc12win64-PhysX_3.4/ApexShared.vcxproj
xml
2016-10-12T16:34:31
2024-08-16T09:40:38
PhysX-3.4
NVIDIAGameWorks/PhysX-3.4
2,343
7,968
```xml <?xml version="1.0" encoding="utf-8"?> <!-- path_to_url Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <menu xmlns:android="path_to_url" xmlns:talon="path_to_url"> <item android:id="@+id/menu_open_web" android:orderInCategory="3" android:title="@string/menu_open_web" android:icon="@drawable/ic_links_dark" talon:showAsAction="always" /> </menu> ```
/content/code_sandbox/app/src/main/res/menu/browser_activity.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
126
```xml import React, { Component, ReactElement, ReactNode } from 'react'; import PropTypes from 'prop-types'; import { EmojiPluginTheme } from '../../../../../index'; interface EntryParams { theme: EmojiPluginTheme; icon: ReactNode; groupIndex: number; isActive: boolean; onGroupSelect(index: number): void; } export default class Entry extends Component<EntryParams> { static propTypes = { theme: PropTypes.object.isRequired, icon: PropTypes.oneOfType([PropTypes.element, PropTypes.string]).isRequired, groupIndex: PropTypes.number.isRequired, isActive: PropTypes.bool, onGroupSelect: PropTypes.func.isRequired, }; static defaultProps = { isActive: false, }; mouseDown = false; onMouseDown = (): void => { this.mouseDown = true; }; onMouseUp = (): void => { if (this.mouseDown) { this.mouseDown = false; this.props.onGroupSelect(this.props.groupIndex); } }; render(): ReactElement { const { theme = {}, icon, isActive } = this.props; return ( <button className={ isActive ? theme.emojiSelectPopoverNavEntryActive : theme.emojiSelectPopoverNavEntry } onMouseDown={this.onMouseDown} type="button" onMouseUp={this.onMouseUp} > {icon} </button> ); } } ```
/content/code_sandbox/packages/emoji/src/components/EmojiSelect/Popover/Nav/Entry/index.tsx
xml
2016-02-26T09:54:56
2024-08-16T18:16:31
draft-js-plugins
draft-js-plugins/draft-js-plugins
4,087
301
```xml import type { Uri } from 'vscode'; import { TabInputCustom, TabInputNotebook, TabInputNotebookDiff, TabInputText, TabInputTextDiff, window } from 'vscode'; import { Commands } from '../constants'; import type { Container } from '../container'; import { showGenericErrorMessage } from '../messages'; import { getRepositoryOrShowPicker } from '../quickpicks/repositoryPicker'; import { filterMap } from '../system/array'; import { command } from '../system/command'; import { UriComparer } from '../system/comparers'; import { Logger } from '../system/logger'; import { findOrOpenEditors } from '../system/utils'; import { Command } from './base'; export interface OpenOnlyChangedFilesCommandArgs { uris?: Uri[]; } @command() export class OpenOnlyChangedFilesCommand extends Command { constructor(private readonly container: Container) { super(Commands.OpenOnlyChangedFiles); } async execute(args?: OpenOnlyChangedFilesCommandArgs) { args = { ...args }; try { if (args.uris == null) { const repository = await getRepositoryOrShowPicker('Open Changed & Close Unchanged Files'); if (repository == null) return; const status = await this.container.git.getStatusForRepo(repository.uri); if (status == null) { void window.showWarningMessage('Unable to open changed & close unchanged files'); return; } args.uris = filterMap(status.files, f => (f.status !== 'D' ? f.uri : undefined)); } const hasNoChangedFiles = args.uris.length === 0; const openUris = new Set(args.uris); let inputUri: Uri | undefined = undefined; let matchingUri: Uri | undefined; for (const group of window.tabGroups.all) { for (const tab of group.tabs) { if (hasNoChangedFiles) { void window.tabGroups.close(tab, true); continue; } if ( tab.input instanceof TabInputText || tab.input instanceof TabInputCustom || tab.input instanceof TabInputNotebook ) { inputUri = tab.input.uri; } else if (tab.input instanceof TabInputTextDiff || tab.input instanceof TabInputNotebookDiff) { inputUri = tab.input.modified; } else { inputUri = undefined; } if (inputUri == null) continue; // eslint-disable-next-line no-loop-func matchingUri = args.uris.find(uri => UriComparer.equals(uri, inputUri)); if (matchingUri != null) { openUris.delete(matchingUri); } else { void window.tabGroups.close(tab, true); } } } if (openUris.size > 0) { findOrOpenEditors([...openUris]); } } catch (ex) { Logger.error(ex, 'OpenOnlyChangedFilesCommand'); void showGenericErrorMessage('Unable to open changed & close unchanged files'); } } } ```
/content/code_sandbox/src/commands/openOnlyChangedFiles.ts
xml
2016-08-08T14:50:30
2024-08-15T21:25:09
vscode-gitlens
gitkraken/vscode-gitlens
8,889
656
```xml // This file is part of Background Music. // // Background Music is free software: you can redistribute it and/or // published by the Free Software Foundation, either version 2 of the // // Background Music 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 Background Music. If not, see <path_to_url // // BGMXPCHelperService.mm // BGMXPCHelper // // // Self Include #import "BGMXPCHelperService.h" // Local Includes #import "BGM_Utils.h" #import "BGMXPCListenerDelegate.h" #import "BGMBackgroundMusicDevice.h" // PublicUtility Includes #import "CADebugMacros.h" #pragma clang assume_nonnull begin static const int DELAY_BEFORE_CLEANING_UP_FOR_BGMAPP_SECS = 1; static NSXPCListenerEndpoint* __nullable sBGMAppEndpoint = nil; static NSXPCConnection* __nullable sBGMAppConnection = nil; @implementation BGMXPCHelperService { NSXPCConnection* connection; AudioObjectID outputDeviceToMakeDefaultOnAbnormalTermination; } - (id) initWithConnection:_connection { if ((self = [super init])) { connection = _connection; outputDeviceToMakeDefaultOnAbnormalTermination = kAudioObjectUnknown; } return self; } + (NSError*) errorWithCode:(NSInteger)code description:(NSString*)description { return [NSError errorWithDomain:kBGMXPCHelperMachServiceName code:code userInfo:@{ NSLocalizedDescriptionKey: description }]; } + (NSError*) errorWithCode:(NSInteger)code description:(NSString*)description underlyingError:(NSError*)underlyingError { return [NSError errorWithDomain:kBGMXPCHelperMachServiceName code:code userInfo:@{ NSLocalizedDescriptionKey: description, NSUnderlyingErrorKey: underlyingError }]; } + (void) withBGMAppRemoteProxy:(void (^)(id))block errorHandler:(void (^)(NSError* error))errorHandler { // Retry by default return [BGMXPCHelperService withBGMAppRemoteProxy:block errorHandler:errorHandler retryOnError:YES]; } + (void) withBGMAppRemoteProxy:(void (^)(id))block errorHandler:(void (^)(NSError* error))errorHandler retryOnError:(BOOL)retry { // Wraps some error handling around a block that calls BGMApp remotely, and runs it. if (!sBGMAppConnection && sBGMAppEndpoint) { // Create a new connection to BGMApp from the endpoint @synchronized(self) { sBGMAppConnection = [[NSXPCConnection alloc] initWithListenerEndpoint:(NSXPCListenerEndpoint* __nonnull)sBGMAppEndpoint]; NSAssert(sBGMAppConnection, @"NSXPCConnection::initWithListenerEndpoint returned nil"); [sBGMAppConnection setRemoteObjectInterface:[NSXPCInterface interfaceWithProtocol:@protocol(BGMAppXPCProtocol)]]; sBGMAppConnection.invalidationHandler = ^{ sBGMAppConnection = nil; }; [sBGMAppConnection resume]; } } if (sBGMAppConnection) { id proxy = [sBGMAppConnection remoteObjectProxyWithErrorHandler:^(NSError* error) { if (retry) { DebugMsg("BGMXPCHelperService::withBGMAppRemoteProxy: %s error=<%lu, %s>", "Error sending message to BGMApp. Creating new connection and retrying.", [error code], [[error localizedDescription] UTF8String]); // Clear the stored connection so a new one will be created when we retry. (The connection might still be // valid, but it's simpler to just make a new one every time.) @synchronized(self) { sBGMAppConnection = nil; } // Retry the message. [BGMXPCHelperService withBGMAppRemoteProxy:block errorHandler:errorHandler retryOnError:NO]; } else { NSLog(@"BGMXPCHelperService::withBGMAppRemoteProxy: Error sending message to BGMApp: %@", error); errorHandler(error); } }]; block(proxy); } else { errorHandler([BGMXPCHelperService errorWithCode:kBGMXPC_MessageFailure description:@"No connection to BGMApp"]); } } // Called after the connection from BGMApp is invalidated. (If it's only been interrupted, launchd // might restore it, so we wait for it to be invalidated.) - (void) cleanUpForBGMApp { // Wait a bit to see if BGMApp reconnects. Then, if it doesn't, check to see if BGMDevice has // been left as the default output device. That would probably mean BGMApp crashed or was force // quit or something like that, so we try to restore the user's output device from BGMXPCHelper. int64_t delay = DELAY_BEFORE_CLEANING_UP_FOR_BGMAPP_SECS * NSEC_PER_SEC; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, delay), dispatch_get_main_queue(), ^{ [self unsetBGMDeviceAsDefault]; }); } - (void) unsetBGMDeviceAsDefault { // Check that BGMApp hasn't reconnected. if (sBGMAppConnection) { DebugMsg("BGMXPCHelperService::unsetBGMDeviceAsDefault: BGMApp connected. Doing nothing."); return; } AudioObjectID outputDevice = outputDeviceToMakeDefaultOnAbnormalTermination; if (outputDevice == kAudioObjectUnknown) { // We could set the default device arbitrarily, but it's probably not worth the effort. DebugMsg("BGMXPCHelperService::unsetBGMDeviceAsDefault: No device to set. Doing nothing."); return; } // If BGMDevice has been left as the default device, change it to the real output device. BGMLogAndSwallowExceptions("BGMXPCHelperService::unsetBGMDeviceAsDefault", ([&] { NSLog(@"BGMXPCHelperService::unsetBGMDeviceAsDefault: Changing default device to %u", outputDevice); BGMBackgroundMusicDevice().UnsetAsOSDefault(outputDevice); })); } #pragma mark Exported Methods - (void) registerAsBGMAppWithListenerEndpoint:(NSXPCListenerEndpoint*)endpoint reply:(void (^)(void))reply { [self debugWarnIfCalledByBGMDriver]; DebugMsg("BGMXPCHelperService::registerAsBGMAppWithListenerEndpoint: Received BGMApp listener endpoint"); // Store the connection (which we now know is from BGMApp) and endpoint so all instances of this class can use them. @synchronized([self class]) { sBGMAppEndpoint = endpoint; sBGMAppConnection = connection; [sBGMAppConnection setRemoteObjectInterface:[NSXPCInterface interfaceWithProtocol:@protocol(BGMAppXPCProtocol)]]; // Set the stored connection back to nil when BGMApp closes, dies or invalidates the connection. sBGMAppConnection.interruptionHandler = ^{ @synchronized([self class]) { sBGMAppConnection = nil; } }; sBGMAppConnection.invalidationHandler = ^{ @synchronized([self class]) { sBGMAppConnection = nil; [self cleanUpForBGMApp]; } }; } reply(); } - (void) unregisterAsBGMApp { [self debugWarnIfCalledByBGMDriver]; DebugMsg("BGMXPCHelperService::unregisterAsBGMApp: Destroying connection to BGMApp"); // TODO: We don't want to assume only one instance of BGMApp will be running, in case multiple users are running it. @synchronized([self class]) { if (sBGMAppConnection) { [sBGMAppConnection invalidate]; sBGMAppConnection = nil; sBGMAppEndpoint = nil; } } } - (void) startBGMAppPlayThroughSyncWithReply:(void (^)(NSError*))reply forUISoundsDevice:(BOOL)isUI { [self debugWarnIfCalledByBGMApp]; // If this reply string isn't set before the end of this method, it's a bug __block NSError* replyToBGMDriver = [BGMXPCHelperService errorWithCode:kBGMXPC_InternalError description:@"Reply not set in startBGMAppPlayThroughSyncWithReply"]; // I couldn't find the Obj-C equivalent of xpc_connection_send_message_with_reply_sync so just wait on this // semaphore until we get a reply from BGMApp (or timeout). Note that ARC handles dispatch semaphores. dispatch_semaphore_t bgmAppReplySemaphore = dispatch_semaphore_create(0); DebugMsg("BGMXPCHelperService::startBGMAppPlayThroughSyncWithReply: Waiting for BGMApp to start IO on the output device"); // Send the message to BGMApp [BGMXPCHelperService withBGMAppRemoteProxy:^(id remoteObjectProxy) { [remoteObjectProxy startPlayThroughSyncWithReply:^(NSError* bgmAppReply) { replyToBGMDriver = bgmAppReply; dispatch_semaphore_signal(bgmAppReplySemaphore); } forUISoundsDevice:isUI]; } errorHandler:^(NSError* error) { replyToBGMDriver = [BGMXPCHelperService errorWithCode:kBGMXPC_MessageFailure description:[error localizedDescription] underlyingError:error]; dispatch_semaphore_signal(bgmAppReplySemaphore); }]; // Wait for BGMApp's reply long err = dispatch_semaphore_wait(bgmAppReplySemaphore, dispatch_time(DISPATCH_TIME_NOW, kStartIOTimeoutNsec)); if (err != 0) { replyToBGMDriver = [BGMXPCHelperService errorWithCode:kBGMXPC_Timeout description:@"Timed out waiting for BGMApp"]; } // Return the reply to BGMDriver DebugMsg("BGMXPCHelperService::startBGMAppPlayThroughSyncWithReply: Reply to BGMDriver: %s", [[replyToBGMDriver localizedDescription] UTF8String]); reply(replyToBGMDriver); } - (void) setOutputDeviceToMakeDefaultOnAbnormalTermination:(AudioObjectID)deviceID { outputDeviceToMakeDefaultOnAbnormalTermination = deviceID; DebugMsg("BGMXPCHelperService::setOutputDeviceToMakeDefaultOnAbnormalTermination: ID set to %u", deviceID); } #pragma mark Debug Utils - (void) debugWarnIfCalledByBGMApp { #if DEBUG if ([connection effectiveUserIdentifier] != [BGMXPCListenerDelegate _coreaudiodUID]) { DebugMsg("BGMXPCHelperService::debugWarnIfCalledByBGMDriver: A method intended for BGMDriver only was (probably) called " "by BGMApp. Or it could have just been the tests."); NSLog(@"%@", [NSThread callStackSymbols]); } #endif } - (void) debugWarnIfCalledByBGMDriver { #if DEBUG if ([connection effectiveUserIdentifier] == [BGMXPCListenerDelegate _coreaudiodUID]) { DebugMsg("BGMXPCHelperService::debugWarnIfCalledByBGMDriver: A method intended for BGMApp only was (probably) called by BGMDriver"); NSLog(@"%@", [NSThread callStackSymbols]); } #endif } @end #pragma clang assume_nonnull end ```
/content/code_sandbox/BGMApp/BGMXPCHelper/BGMXPCHelperService.mm
xml
2016-02-24T07:19:32
2024-08-16T15:21:10
BackgroundMusic
kyleneideck/BackgroundMusic
15,709
2,575
```xml // // // Microsoft Bot Framework: path_to_url // // Bot Framework Emulator Github: // path_to_url // // All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // import './commands'; import * as path from 'path'; import * as url from 'url'; import { addNotification, azureLoggedInUserChanged, isMac, newNotification, rememberBounds, setOpenUrl, updateNewTunnelInfo, updateTunnelError, updateTunnelStatus, Notification, PersistentSettings, SharedConstants, TunnelError, TunnelInfo, TunnelStatus, } from '@bfemulator/app-shared'; import { app, BrowserWindow, nativeTheme, Rectangle, screen } from 'electron'; import { CommandServiceImpl, CommandServiceInstance } from '@bfemulator/sdk-shared'; import { enable } from '@electron/remote/main'; import { AppUpdater } from './appUpdater'; import * as commandLine from './commandLine'; import { Protocol } from './constants'; import { Emulator } from './emulator'; import './fetchProxy'; import { Window } from './platform/window'; import { dispatch, getSettings, store } from './state/store'; import { TelemetryService } from './telemetry'; import { botListsAreDifferent, ensureStoragePath, saveSettings, writeFile } from './utils'; import { openFileFromCommandLine } from './utils/openFileFromCommandLine'; import { sendNotificationToClient } from './utils/sendNotificationToClient'; import { WindowManager } from './windowManager'; import { ProtocolHandler } from './protocolHandler'; import { WebSocketServer } from './server/webSocketServer'; const genericTunnelError = 'Oops.. Your ngrok tunnel seems to have an error. Please check the Ngrok Status Viewer for more details'; // start app startup timer const beginStartupTime = Date.now(); // your_sha256_hash------------- (process as NodeJS.EventEmitter).on('uncaughtException', (error: Error) => { // eslint-disable-next-line no-console console.error(error); }); // your_sha256_hash------------- // TODO - localization if (app) { app.setName('Bot Framework Emulator'); } let protocolUsed = false; // Parse command line commandLine.parseArgs(); function windowIsOffScreen(windowBounds: Rectangle): boolean { const nearestDisplay = screen.getDisplayMatching(windowBounds).workArea; return ( windowBounds.x > nearestDisplay.x + nearestDisplay.width || windowBounds.x + windowBounds.width < nearestDisplay.x || windowBounds.y > nearestDisplay.y + nearestDisplay.height || windowBounds.y + windowBounds.height < nearestDisplay.y ); } class SplashScreen { private static splashWindow: BrowserWindow; public static show(mainBrowserWindow: BrowserWindow) { if (this.splashWindow) { return; } this.splashWindow = new BrowserWindow({ show: false, width: 400, height: 300, center: true, frame: false, }); const splashPage = process.env.ELECTRON_TARGET_URL ? `${process.env.ELECTRON_TARGET_URL}splash.html` : url.format({ protocol: 'file', slashes: true, pathname: require.resolve('@bfemulator/client/public/splash.html'), }); this.splashWindow.loadURL(splashPage); this.splashWindow.once('ready-to-show', () => { // only show if the main window still hasn't loaded if (!mainBrowserWindow.isVisible()) { this.splashWindow.show(); } else { this.hide(); } }); } public static hide() { if (!this.splashWindow) { return; } this.splashWindow.destroy(); this.splashWindow = null; } } class EmulatorApplication { @CommandServiceInstance() public commandService: CommandServiceImpl; public mainBrowserWindow: BrowserWindow; public mainWindow: Window; public windowManager = new WindowManager(); private botsRef = store.getState().bot.botFiles; private fileToOpen: string; constructor() { Emulator.initialize(); this.initializeNgrokListeners(); this.initializeAppListeners(); this.initializeSystemPreferencesListeners(); store.subscribe(this.storeSubscriptionHandler); } private initializeBrowserWindowListeners() { this.mainBrowserWindow.once('close', this.onBrowserWindowClose); this.mainBrowserWindow.once('ready-to-show', this.onBrowserWindowReadyToShow); this.mainBrowserWindow.on('restore', this.onBrowserWindowRestore); this.mainBrowserWindow.on('closed', this.onBrowserWindowClosed); this.mainBrowserWindow.on('move', this.rememberCurrentBounds); this.mainBrowserWindow.on('restore', this.rememberCurrentBounds); } private initializeNgrokListeners() { Emulator.getInstance().ngrok.ngrokEmitter.on('onTunnelError', this.onTunnelError); Emulator.getInstance().ngrok.ngrokEmitter.on('onNewTunnelConnected', this.onNewTunnelConnected); Emulator.getInstance().ngrok.ngrokEmitter.on('onTunnelStatusPing', this.onTunnelStatusPing); } private initializeSystemPreferencesListeners() { nativeTheme.on('updated', this.onInvertedColorSchemeChanged); } private initializeAppListeners() { app.on('activate', this.onAppActivate); app.on('ready', this.onAppReady); app.on('open-file', this.onAppOpenFile); app.on('open-url', this.onAppOpenUrl); app.on('will-quit', this.onAppWillQuit); } // Main browser window listeners private onBrowserWindowClose = async (event: Event) => { const { azure } = getSettings(); if (azure.signedInUser && !azure.persistLogin) { event.preventDefault(); await this.commandService.call(SharedConstants.Commands.Azure.SignUserOutOfAzure, false); } saveSettings<PersistentSettings>('server.json', getSettings()); app.quit(); }; private onBrowserWindowReadyToShow = async () => { this.onInvertedColorSchemeChanged(); const { zoomLevel } = getSettings().windowState; this.mainWindow.webContents.setZoomLevel(zoomLevel); SplashScreen.hide(); this.mainBrowserWindow.show(); // Start auto-updater await AppUpdater.startup(); // Renew arm token await this.renewArmToken(); await WebSocketServer.init(); if (this.fileToOpen) { await openFileFromCommandLine(this.fileToOpen, this.commandService); this.fileToOpen = null; } // log app startup time in seconds const endStartupTime = Date.now(); const startupTime = (endStartupTime - beginStartupTime) / 1000; const launchedByProtocol = process.argv.some(arg => arg.includes(Protocol)) || protocolUsed; TelemetryService.trackEvent('app_launch', { method: launchedByProtocol ? 'protocol' : 'binary', startupTime, }); }; private onBrowserWindowRestore = () => { if (windowIsOffScreen(this.mainWindow.browserWindow.getBounds())) { const currentBounds = this.mainWindow.browserWindow.getBounds(); let display = screen.getAllDisplays().find(displayArg => displayArg.id === getSettings().windowState.displayId); display = display || screen.getDisplayMatching(currentBounds); this.mainWindow.browserWindow.setPosition(display.workArea.x, display.workArea.y); const bounds = { displayId: display.id, width: currentBounds.width, height: currentBounds.height, left: display.workArea.x, top: display.workArea.y, }; dispatch(rememberBounds(bounds)); } }; private onBrowserWindowClosed = () => { this.windowManager.closeAll(); this.mainWindow = null; }; private rememberCurrentBounds = () => { const currentBounds = this.mainWindow.browserWindow.getBounds(); const bounds = { displayId: screen.getDisplayMatching(currentBounds).id, width: currentBounds.width, height: currentBounds.height, left: currentBounds.x, top: currentBounds.y, }; dispatch(rememberBounds(bounds)); }; private onTunnelStatusPing = async (status: TunnelStatus) => { dispatch(updateTunnelStatus({ tunnelStatus: status })); }; private onNewTunnelConnected = async (tunnelInfo: TunnelInfo) => { dispatch(updateNewTunnelInfo(tunnelInfo)); }; private onTunnelError = async (response: TunnelError) => { const { Commands } = SharedConstants; dispatch(updateTunnelError({ ...response })); const ngrokNotification: Notification = newNotification(genericTunnelError); dispatch(addNotification(ngrokNotification.id)); this.commandService.call(Commands.Ngrok.OpenStatusViewer, false); ngrokNotification.addButton('Debug Console', () => { this.commandService.remoteCall(Commands.Notifications.Remove, ngrokNotification.id); this.commandService.call(Commands.Ngrok.OpenStatusViewer); }); await sendNotificationToClient(ngrokNotification, this.commandService); Emulator.getInstance().ngrok.broadcastNgrokError(genericTunnelError); }; private onInvertedColorSchemeChanged = () => { const { theme, availableThemes } = getSettings().windowState; const themeInfo = availableThemes.find(availableTheme => availableTheme.name === theme); const isHighContrast = nativeTheme.shouldUseInvertedColorScheme || nativeTheme.shouldUseHighContrastColors; const themeName = isHighContrast ? 'high-contrast' : themeInfo.name; const themeComponents = isHighContrast ? path.join('.', 'themes', 'high-contrast.css') : themeInfo.href; this.commandService.remoteCall(SharedConstants.Commands.UI.SwitchTheme, themeName, themeComponents, false); }; // App listeners private onAppReady = () => { if (this.mainBrowserWindow) { return; } this.mainBrowserWindow = new BrowserWindow({ show: false, backgroundColor: '#f7f7f7', width: 1400, height: 920, webPreferences: { contextIsolation: false, nodeIntegration: true, webviewTag: true }, }); this.initializeBrowserWindowListeners(); this.mainWindow = new Window(this.mainBrowserWindow); enable(this.mainBrowserWindow.webContents); Emulator.getInstance().initServer({ fetch, logService: this.mainWindow.logService }); if (process.env.NODE_ENV !== 'test') { SplashScreen.show(this.mainBrowserWindow); } const page = process.env.ELECTRON_TARGET_URL || url.format({ protocol: 'file', slashes: true, pathname: require.resolve('@bfemulator/client/public/index.html'), }); if (/^http:\/\//.test(page)) { // eslint-disable-next-line no-console console.warn(`Loading emulator code from ${page}`); } this.mainBrowserWindow.loadURL(page); this.mainBrowserWindow.setTitle(app.getName()); }; private onAppActivate = () => { this.onAppReady(); }; private onAppWillQuit = () => { WebSocketServer.cleanup(); }; private onAppOpenUrl = (event: Event, url: string): void => { event.preventDefault(); if (isMac()) { protocolUsed = true; if (this.mainWindow && this.mainWindow.webContents) { // the app is already running, send a message containing the url to the renderer process ProtocolHandler.parseProtocolUrlAndDispatch(url); } else { // the app is not yet running, so store the url so the UI can request it later store.dispatch(setOpenUrl(url)); } } }; private onAppOpenFile = async (event: Event, file: string) => { if (!this.mainWindow || !this.commandService) { this.fileToOpen = file; } else { await openFileFromCommandLine(file, this.commandService); } }; private storeSubscriptionHandler = () => { const state = store.getState(); // if the bots list changed, write it to disk const bots = state.bot.botFiles.filter(botFile => !!botFile); if (botListsAreDifferent(this.botsRef, bots)) { const botsJson = { bots }; const botsJsonPath = path.join(ensureStoragePath(), 'bots.json'); try { // write bots list writeFile(botsJsonPath, botsJson); // update cached version to check against for changes this.botsRef = bots; } catch (e) { // eslint-disable-next-line no-console console.error('Error writing bot list to disk: ', e); } } }; private async renewArmToken() { const { persistLogin, signedInUser } = getSettings().azure; if (persistLogin && signedInUser) { const result = await this.commandService.registry.getCommand(SharedConstants.Commands.Azure.RetrieveArmToken)( true ); if (result && 'access_token' in result) { await this.commandService.remoteCall(SharedConstants.Commands.UI.ArmTokenReceivedOnStartup, result); } else if (!result) { store.dispatch(azureLoggedInUserChanged('')); await this.commandService.call(SharedConstants.Commands.Electron.UpdateFileMenu); } } } } export const emulatorApplication = new EmulatorApplication(); ```
/content/code_sandbox/packages/app/main/src/main.ts
xml
2016-11-11T23:15:09
2024-08-16T12:45:29
BotFramework-Emulator
microsoft/BotFramework-Emulator
1,803
3,087
```xml // Creates an event log. You can write to this during testing and then assert // on the result. // // The main use case is for asynchronous e2e tests. It provides a `waitFor` // method that resolves when the log matches some expected asynchronous sequence // of events. This is an alternative to setting up a timer loop. It helps catch // subtle mistakes where the order of events is not expected, or the same // event happens more than it should. // // Based on the Scheduler.log pattern used in the React repo. export function createTestLog() { let events = [] // Represents a pending waitFor call. let pendingExpectation: null | { resolve: () => void reject: (error: Error) => void expectedEvents: Array<any> error: Error } = null function log(value: any) { // Add to the event log. events.push(value) // Check if we've reached the end of the expected log. If there's a // pending waitFor, and we've reached the last of the expected events, this // will resolve the promise. pingExpectation() } function assert(expectedEvents: any[]) { if (pendingExpectation !== null) { const error = new Error('Cannot assert while a waitFor() is pending.') Error.captureStackTrace(error, assert) throw error } const actualEvents = events events = [] if (!areLogsEqual(expectedEvents, actualEvents)) { // Capture the stack trace of `assert` so that Jest will report the // error as originating from the `assert` call instead of here. const error = new Error( 'Expected sequence of events did not occur.\n\n' + createDiff(expectedEvents, actualEvents) ) Error.captureStackTrace(error, assert) throw error } } function waitFor(expectedEvents: any[], timeout: number = 5000) { // Returns a promise that resolves when the event log matches the // expected sequence. // Capture the stack trace of `waitFor` so that if an inner assertion fails, // Jest will report the error as originating from the `waitFor` call instead // of inside this module's implementation. const error = new Error() Error.captureStackTrace(error, waitFor) if (pendingExpectation !== null) { error.message = 'A previous waitFor() is still pending.' throw error } let resolve let reject const promise = new Promise<void>((res, rej) => { resolve = res reject = rej }) const thisExpectation = { resolve, reject, expectedEvents, error, } pendingExpectation = thisExpectation setTimeout(() => { if (pendingExpectation === thisExpectation) { error.message = `waitFor timed out after ${timeout}ms` reject(error) } }, timeout) pingExpectation() return promise } function pingExpectation() { if (pendingExpectation !== null) { const expectedEvents = pendingExpectation.expectedEvents if (events.length < expectedEvents.length) { return } if (areLogsEqual(expectedEvents, events)) { // We've reached the end of the expected log. Resolve the promise and // reset the log. events = [] pendingExpectation.resolve() pendingExpectation = null } else { // The log does not match what was expected by the test. Reject the // promise and reset the log. // Use the error object that we captured at the start of the `waitFor` // call. Jest will show that the error originated from `waitFor` call // instead of inside this internal function. const error = pendingExpectation.error error.message = 'Expected sequence of events did not occur.\n\n' + createDiff(expectedEvents, events) events = [] pendingExpectation.reject(error) pendingExpectation = null } } } function createDiff(expected, actual) { // TODO: Jest exposes the diffing utility that it uses for `expect`. // We could use that here for nicer output. return ` Expected: ${JSON.stringify(expected)} Actual: ${JSON.stringify(actual)} ` } function areLogsEqual(a, b) { if (a.length !== b.length) { return false } for (let i = 0; i < a.length; i++) { if (a[i] !== b[i]) { return false } } return true } return { log, waitFor, assert, } } ```
/content/code_sandbox/test/lib/test-log.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
1,011
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>Author</key> <string>bb1045</string> <key>Description</key> <string>Boot Camp</string> <key>Theme</key> <dict> <key>Anime</key> <array> <dict> <key>ID</key> <integer>1</integer> <key>Path</key> <string>logo_3D</string> <key>Frames</key> <integer>50</integer> <key>FrameTime</key> <integer>100</integer> </dict> <dict> <key>DistanceFromScreenEdgeX%</key> <integer>64</integer> <key>DistanceFromScreenEdgeY%</key> <integer>44</integer> <key>Frames</key> <integer>1</integer> <key>ID</key> <integer>3</integer> <key>NudgeX</key> <integer>2</integer> <key>NudgeY</key> <integer>-5</integer> <key>Path</key> <string>func_help</string> <key>ScreenEdgeX</key> <string>right</string> <key>ScreenEdgeY</key> <string>top</string> </dict> <dict> <key>DistanceFromScreenEdgeX%</key> <integer>64</integer> <key>DistanceFromScreenEdgeY%</key> <integer>44</integer> <key>Frames</key> <integer>1</integer> <key>ID</key> <integer>4</integer> <key>NudgeX</key> <integer>2</integer> <key>NudgeY</key> <integer>-5</integer> <key>Path</key> <string>func_options_big</string> <key>ScreenEdgeX</key> <string>right</string> <key>ScreenEdgeY</key> <string>top</string> </dict> <dict> <key>DistanceFromScreenEdgeX%</key> <integer>64</integer> <key>DistanceFromScreenEdgeY%</key> <integer>44</integer> <key>Frames</key> <integer>1</integer> <key>ID</key> <integer>14</integer> <key>NudgeX</key> <integer>2</integer> <key>NudgeY</key> <integer>-5</integer> <key>Path</key> <string>14_Themes</string> <key>ScreenEdgeX</key> <string>right</string> <key>ScreenEdgeY</key> <string>top</string> </dict> </array> <key>Background</key> <dict> <key>Path</key> <string>background_tile.png</string> <key>Type</key> <string>Scale</string> </dict> <key>Badges</key> <dict> <key>Inline</key> <false/> <key>OffsetX</key> <integer>0</integer> <key>OffsetY</key> <integer>0</integer> <key>Scale</key> <integer>8</integer> <key>Show</key> <false/> <key>Swap</key> <false/> </dict> <key>Banner</key> <string></string> <key>Components</key> <dict> <key>MenuTitle</key> <false/> <key>MenuTitleImage</key> <false/> <key>Revision</key> <false/> </dict> <key>Font</key> <dict> <key>CharWidth</key> <integer>22</integer> <key>Path</key> <string>font.png</string> <key>Proportional</key> <true/> <key>Type</key> <string>Load</string> </dict> <key>Layout</key> <dict> <key>BannerOffset</key> <integer>64</integer> <key>ButtonOffset</key> <integer>114</integer> <key>SelectionBigWidth</key> <integer>247</integer> <key>TextOffset</key> <integer>1</integer> <key>TileXSpace</key> <integer>68</integer> <key>TileYSpace</key> <integer>24</integer> </dict> <key>Origination</key> <dict> <key>DesignHeight</key> <integer>1080</integer> <key>DesignWidth</key> <integer>1920</integer> </dict> <key>Selection</key> <dict> <key>Big</key> <string>Selection_big.png</string> <key>ChangeNonSelectedGrey</key> <false/> <key>Color</key> <string>0xf8f8f872</string> <key>OnTop</key> <false/> <key>Small</key> <string>selection.small.png</string> </dict> </dict> <key>Year</key> <string>2015</string> </dict> </plist> ```
/content/code_sandbox/Clover-Configs/Acer/Aspire VN7-591G/CLOVER/themes/Boot/theme.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
1,416
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffffff" android:orientation="vertical" android:paddingLeft="2dp" android:paddingRight="2dp" android:paddingTop="4dp"> <ImageView android:id="@+id/iv_girl" android:layout_width="match_parent" android:layout_height="200dp" android:adjustViewBounds="true" android:scaleType="fitXY" /> </LinearLayout> ```
/content/code_sandbox/app/src/main/res/layout/adapter_girl.xml
xml
2016-11-27T05:38:20
2024-08-13T15:07:36
XDroid
limedroid/XDroid
1,299
139
```xml /* eslint-disable @typescript-eslint/naming-convention */ import type { ProjectAnnotations, Renderer, StoryContext, StoryId, StrictArgTypes, Tag, } from '@storybook/csf'; import type { AnnotatedStoryFn, Args, ComponentAnnotations, Parameters, StoryAnnotations, StoryAnnotationsOrFn, } from './csf'; // TODO -- I think the name "CSFExports" overlaps here a bit with the types in csfFile.ts // we might want to reconcile @yannbf export type Store_CSFExports<TRenderer extends Renderer = Renderer, TArgs extends Args = Args> = { default: ComponentAnnotations<TRenderer, TArgs>; __esModule?: boolean; __namedExportsOrder?: string[]; }; /** A story function with partial args, used internally by composeStory */ export type PartialArgsStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = ( args?: TArgs ) => (TRenderer & { T: TArgs; })['storyResult']; /** * A story that got recomposed for portable stories, containing all the necessary data to be * rendered in external environments */ export type ComposedStoryFn< TRenderer extends Renderer = Renderer, TArgs = Args, > = PartialArgsStoryFn<TRenderer, TArgs> & { args: TArgs; id: StoryId; play?: (context?: Partial<StoryContext<TRenderer, Partial<TArgs>>>) => Promise<void>; run: (context?: Partial<StoryContext<TRenderer, Partial<TArgs>>>) => Promise<void>; load: () => Promise<void>; storyName: string; parameters: Parameters; argTypes: StrictArgTypes<TArgs>; tags: Tag[]; }; /** * Based on a module of stories, it returns all stories within it, filtering non-stories Each story * will have partial props, as their props should be handled when composing stories */ export type StoriesWithPartialProps<TRenderer extends Renderer, TModule> = { // T represents the whole ES module of a stories file. K of T means named exports (basically the Story type) // 1. pick the keys K of T that have properties that are Story<AnyProps> // 2. infer the actual prop type for each Story // 3. reconstruct Story with Partial. Story<Props> -> Story<Partial<Props>> [K in keyof TModule as TModule[K] extends StoryAnnotationsOrFn<infer _, infer _TProps> ? K : never]: TModule[K] extends StoryAnnotationsOrFn<infer _, infer TProps> ? ComposedStoryFn<TRenderer, Partial<TProps>> : unknown; }; /** * Type used for integrators of portable stories, as reference when creating their own composeStory * function */ export interface ComposeStoryFn<TRenderer extends Renderer = Renderer, TArgs extends Args = Args> { ( storyAnnotations: AnnotatedStoryFn<TRenderer, TArgs> | StoryAnnotations<TRenderer, TArgs>, componentAnnotations: ComponentAnnotations<TRenderer, TArgs>, projectAnnotations: ProjectAnnotations<TRenderer>, exportsName?: string ): ComposedStoryFn; } ```
/content/code_sandbox/code/core/src/types/modules/composedStory.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
710
```xml import type { DependencyList, RefObject } from 'react'; import { useEffect, useMemo, useRef } from 'react'; import debounce from '@proton/utils/debounce'; import throttle from '@proton/utils/throttle'; import useEventManager from './useEventManager'; export type Handler = (...args: any[]) => void; export interface Cancellable { cancel?: () => void; } /** * Create a stable reference of handler * But will always run the updated version of the handler in argument */ export const useHandler = <T extends Handler>( handler: T, options: { debounce?: number; throttle?: number } = {} ): T & Cancellable => { const handlerRef = useRef(handler); useEffect(() => { handlerRef.current = handler; }, [handler]); const actualHandler = useMemo(() => { const handler = (...args: any[]) => handlerRef.current(...args); if (options.debounce && options.debounce > 0) { return debounce(handler, options.debounce); } if (options.throttle && options.throttle > 0) { return throttle(handler, options.throttle); } return handler; }, []) as T & Cancellable; return actualHandler; }; /** * Listen to the eventName of the ref element * Use useHandler to ensure an updated version of the handler */ export const useEventListener = ( ref: RefObject<Document | Element | null | undefined>, eventName: string, handler: Handler, dependencies: DependencyList ) => { const actualHandler = useHandler(handler); useEffect(() => { const el = ref.current; if (!el) { return; } el.addEventListener(eventName, actualHandler); return () => { el.removeEventListener(eventName, actualHandler); }; }, dependencies); }; /** * Listen to the event manager * Use useHandler to ensure an updated version of the handler */ export const useSubscribeEventManager = (handler: Handler) => { const { subscribe } = useEventManager(); const actualHandler = useHandler(handler); useEffect(() => { const unsubscribe = subscribe(actualHandler); return () => { if (unsubscribe) { unsubscribe(); } }; }, []); }; /** * Run a handler at a defined interval * Returns a function to abort the interval before the component is unmount * Using an interval 0 will prevent the interval to be used */ export const useInterval = (interval: number, handler: Handler) => { const actualHandler: Handler & Cancellable = useHandler(handler); useEffect(() => { if (interval > 0) { const intervalID = window.setInterval(actualHandler, interval); actualHandler(); actualHandler.cancel = () => clearInterval(intervalID); return actualHandler.cancel; } }, []); return () => actualHandler.cancel?.(); }; export default useHandler; ```
/content/code_sandbox/packages/components/hooks/useHandler.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
609
```xml import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Store } from '@ngxs/store'; import { ProjectState } from 'app/store/project.state'; import { finalize } from 'rxjs/operators'; import { AutoUnsubscribe } from 'app/shared/decorator/autoUnsubscribe'; import { forkJoin } from 'rxjs'; import { Project, ProjectRepository } from 'app/model/project.model'; import { ProjectService } from 'app/service/project/project.service'; import { RepoManagerService } from 'app/service/repomanager/project.repomanager.service'; import { Repository } from 'app/model/repositories.model'; import { ToastService } from 'app/shared/toast/ToastService'; import { VCSProject } from 'app/model/vcs.model'; @Component({ selector: 'app-projectv2-explore-repository-add', templateUrl: './explore-repository-add.html', styleUrls: ['./explore-repository-add.scss'], changeDetection: ChangeDetectionStrategy.OnPush }) @AutoUnsubscribe() export class ProjectV2ExploreRepositoryAddComponent implements OnDestroy { loading: boolean; loadingResync: boolean; project: Project; vcsProject: VCSProject; currentRepositories: ProjectRepository[]; selectedRepo: Repository; repositories: Repository[]; filteredRepos: Repository[]; constructor( private _routeActivated: ActivatedRoute, private _store: Store, private _cd: ChangeDetectorRef, private _projectService: ProjectService, private _repoManagerService: RepoManagerService, private _toastService: ToastService, private _router: Router ) { // Get project and VCS, subscribe to react in case of project switch this.project = this._store.selectSnapshot(ProjectState.projectSnapshot); this._routeActivated.params.subscribe(p => { forkJoin([ this._projectService.getVCSRepositories(this.project.key, p['vcsName']), this._projectService.getVCSProject(this.project.key, p['vcsName']) ]).subscribe(result => { this.currentRepositories = result[0]; this.vcsProject = result[1]; this._cd.markForCheck(); this.listRepositories(false); }); }); } ngOnDestroy(): void { } // Should be set to use @AutoUnsubscribe with AOT listRepositories(resync: boolean): void { this.loadingResync = true; this._cd.markForCheck(); this._repoManagerService.getRepositories(this.project.key, this.vcsProject.name, resync) .pipe(finalize(() => { this.loadingResync = false; this._cd.markForCheck(); })) .subscribe(repos => { this.repositories = repos.filter(repo => this.currentRepositories.findIndex(r => r.name === repo.fullname) === -1); this.filteredRepos = this.repositories.slice(0, 100); this._cd.markForCheck(); }); } filterRepo(query: string): void { if (!query || query.length < 3) { return; } this.filteredRepos = this.repositories.filter(repo => repo.fullname.toLowerCase().indexOf(query.toLowerCase()) !== -1); this._cd.markForCheck(); } trackRepo(idx: number, r: Repository): string { return r.name; } addRepositoryOnProject(): void { if (!this.selectedRepo) { return; } let repo = new ProjectRepository(); repo.name = this.selectedRepo.fullname; this.loading = true; this._cd.markForCheck(); this._projectService.addVCSRepository(this.project.key, this.vcsProject.name, repo).pipe(finalize(() => { this.loading = false; this._cd.markForCheck(); })).subscribe(r => { this._toastService.success('Repository added', ''); this._router.navigate(['/', 'projectv2', this.project.key, 'explore', 'vcs', this.vcsProject.name, 'repository', r.name]).then() }); } } ```
/content/code_sandbox/ui/src/app/views/projectv2/explore/explore-repository-add.component.ts
xml
2016-10-11T08:28:23
2024-08-16T01:55:31
cds
ovh/cds
4,535
871
```xml import * as React from "react"; import {styled} from "styletron-react"; const MyComponent: React.ComponentType<{ foo: 42; }> = _props => { return null; }; const MyStyledComponent = styled(MyComponent, {color: "red"}); <MyStyledComponent foo={42} />; // @ts-expect-error <MyStyledComponent foo={42} invalidProp={42} />; // Should fail, not in props ```
/content/code_sandbox/packages/typescript-type-tests/src/exact-props.tsx
xml
2016-04-01T00:00:06
2024-08-14T21:28:45
styletron
styletron/styletron
3,317
98
```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.neo</groupId> <artifactId>spring-boot-admin-simple</artifactId> <version>1.0.0.BUILD-SNAPSHOT</version> </parent> <artifactId>spring-boot-admin-client</artifactId> <packaging>jar</packaging> <dependencies> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-client</artifactId> <version>1.5.6</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project> ```
/content/code_sandbox/1.x/spring-boot-admin-simple/spring-boot-admin-client/pom.xml
xml
2016-11-05T05:32:33
2024-08-16T13:11:30
spring-boot-examples
ityouknow/spring-boot-examples
30,137
247
```xml "use client" import Link from "next/link" import { useRouter } from "next/navigation" import { uiOptionsAtom } from "@/store/config.store" import { orderTypeAtom } from "@/store/order.store" import { useAtomValue, useSetAtom } from "jotai" import { ArrowLeft, PhoneIcon, ShoppingBagIcon, SoupIcon } from "lucide-react" import { IOrderType } from "@/types/order.types" import { AspectRatio } from "@/components/ui/aspect-ratio" import { Button } from "@/components/ui/button" import Image from "@/components/ui/image" const Page = () => { const setType = useSetAtom(orderTypeAtom) const router = useRouter() const handleClick = (type: IOrderType) => { setType(type) router.push("/home") } const { texts, logo } = useAtomValue(uiOptionsAtom) || {} return ( <div className="w-full h-screen flex flex-col items-center justify-between relative "> <Button className="absolute top-6 right-6 rounded-full px-6 uppercase text-sm" size="lg" Component={Link} href={"/"} > <ArrowLeft className="h-5 w-5 -translate-x-2" strokeWidth={2} /> </Button> <div /> <div className="w-full flex flex-col items-center justify-center gap-20"> <div className="w-4/12 text-center"> <AspectRatio ratio={1.6}> <Image src={logo || "/logo-dark.png"} alt="" className="object-contain p-3" sizes={"100vw"} quality={100} /> </AspectRatio> </div> <div className="w-8/12 grid grid-cols-2 gap-4"> <Button className="h-full w-full flex-col py-8 px-6 rounded-3xl uppercase bg-primary/90" // variant={"outlne"} onClick={() => handleClick("eat")} size="lg" > <AspectRatio className="mx-5"> <SoupIcon className="h-full w-full" strokeWidth={1} /> </AspectRatio> </Button> {/* <AspectRatio> */} <Button className="h-full w-full flex-col py-8 px-6 border-4 rounded-3xl uppercase text-primary/80 hover:text-primary hover:bg-primary/5 hover:border-primary" variant={"outline"} size="lg" onClick={() => handleClick("take")} > <AspectRatio className="mx-5"> <ShoppingBagIcon className="h-full w-full" strokeWidth={1} /> </AspectRatio> </Button> {/* </AspectRatio> */} </div> </div> <div className="flex justify-between items-center text-xs uppercase p-6 w-full text-primary font-bold"> {!!texts?.phone && ( <span className="flex items-center gap-1"> <PhoneIcon strokeWidth={2.5} className="w-4 h-4" /> {texts?.phone} </span> )} <span>{texts?.website}</span> </div> </div> ) } export default Page ```
/content/code_sandbox/pos/app/(main)/choose-type/page.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
694
```xml import { isEnabled } from "@erxes/api-utils/src/serviceDiscovery"; import graphqlPubsub from "@erxes/api-utils/src/graphqlPubsub"; import { sendCardsMessage, sendCoreMessage, sendPricingMessage, sendProductsMessage } from "./messageBroker"; import { setPlace } from "./utils/setPlace"; import { splitData } from "./utils/splitData"; import { getConfig, getCustomer } from "./utils/utils"; export default { "sales:deal": ["update"] }; export const afterMutationHandlers = async (subdomain, params) => { const { type, action, user } = params; if (type === "sales:deal") { if (action === "update") { const deal = params.updatedDocument; const oldDeal = params.object; const destinationStageId = deal.stageId || ""; if (!(destinationStageId && destinationStageId !== oldDeal.stageId)) { return; } if (!(deal.productsData && deal.productsData.length)) { return; } const splitConfigs = await getConfig( subdomain, "dealsProductsDataSplit", {} ); const placeConfigs = await getConfig( subdomain, "dealsProductsDataPlaces", {} ); const printConfigs = await getConfig( subdomain, "dealsProductsDataPrint", {} ); if ( !( Object.keys(splitConfigs).includes(destinationStageId) || Object.keys(placeConfigs).includes(destinationStageId) || Object.keys(printConfigs).includes(destinationStageId) ) ) { return; } let pDatas = deal.productsData; const products = await sendProductsMessage({ subdomain, action: "productFind", data: { query: { _id: { $in: pDatas.map(pd => pd.productId) } }, limit: pDatas.length }, isRPC: true, defaultValue: [] }); const productById = {}; for (const product of products) { productById[product._id] = product; } if (Object.keys(splitConfigs).includes(destinationStageId)) { pDatas = await splitData( subdomain, deal._id, pDatas, splitConfigs[destinationStageId], productById ); } if (Object.keys(placeConfigs).includes(destinationStageId)) { const placeConfig = placeConfigs[destinationStageId]; pDatas = await setPlace( subdomain, deal._id, pDatas, placeConfig, productById ); if ((await isEnabled("pricing")) && placeConfig.checkPricing) { const groupedData: any = {}; for (const data of pDatas) { const { branchId = "", departmentId = "" } = data; if (!Object.keys(groupedData).includes(branchId)) { groupedData[branchId] = {}; } if (!Object.keys(groupedData[branchId]).includes(departmentId)) { groupedData[branchId][departmentId] = []; } groupedData[branchId][departmentId].push(data); } let isSetPricing = false; let afterPricingData = []; for (const branchId of Object.keys(groupedData)) { for (const departmentId of Object.keys(groupedData[branchId])) { const perDatas = groupedData[branchId][departmentId]; if (perDatas.length) { const pricing = await sendPricingMessage({ subdomain, action: "checkPricing", data: { prioritizeRule: "exclude", totalAmount: perDatas.reduce( (sum, cur) => (sum + cur.amount, 0) ), departmentId: departmentId, branchId: branchId, products: perDatas.map(i => ({ itemId: i._id, productId: i.productId, quantity: i.quantity, price: i.unitPrice })) }, isRPC: true, defaultValue: {} }); for (const item of perDatas) { const discount = pricing[item._id]; if (discount) { isSetPricing = true; if (discount.type === "percentage") { item.discountPercent = parseFloat( ( (discount.value / (item.unitPrice || 1)) * 100 ).toFixed(2) ); item.discount = discount.value * item.quantity; item.amount = ((item.globalUnitPrice || item.unitPrice) - discount.value) * item.quantity; } else { item.discount = discount.value * item.quantity; item.amount = ((item.globalUnitPrice || item.unitPrice) - discount.value) * item.quantity; } } } } afterPricingData = afterPricingData.concat(perDatas); } } if (isSetPricing) { await sendCardsMessage({ subdomain, action: "deals.updateOne", data: { selector: { _id: deal._id }, modifier: { $set: { productsData: afterPricingData } } }, isRPC: true }); } pDatas = afterPricingData; } } if (Object.keys(printConfigs).includes(destinationStageId)) { const printConfig = printConfigs[destinationStageId]; if (printConfig.conditions.length) { const { customerCode, customerName } = await getCustomer( subdomain, deal ); const branchIds = pDatas.map(pd => pd.branchId); const branches = await sendCoreMessage({ subdomain, action: "branches.find", data: { query: { _id: { $in: branchIds } } }, isRPC: true }); const branchById = {}; for (const branch of branches) { branchById[branch._id] = branch; } const departmentIds = pDatas.map(pd => pd.departmentId); const departments = await sendCoreMessage({ subdomain, action: "departments.find", data: { _id: { $in: departmentIds } }, isRPC: true }); const departmentById = {}; for (const department of departments) { departmentById[department._id] = department; } await sendCoreMessage({ subdomain, action: "branches.find", data: {}, isRPC: true }); const content: any = []; for (const condition of printConfig.conditions) { const filteredData = pDatas.filter( pd => pd.branchId === condition.branchId && pd.departmentId === condition.departmentId ); if (filteredData.length) { content.push({ branchId: condition.branchId, branch: branchById[condition.branchId], departmentId: condition.departmentId, department: departmentById[condition.departmentId], date: new Date(), name: deal.name, number: deal.number, customerCode, customerName, pDatas: filteredData.map(fd => ({ ...fd, product: productById[fd.productId] })), amount: filteredData.reduce((sum, i) => sum + i.amount, 0) }); } } if (content.length) { await graphqlPubsub.publish(`productPlacesResponded:${user._id}`, { productPlacesResponded: { userId: user._id, responseId: deal._id, sessionCode: user.sessionCode || "", content } }); } } } } return; } }; ```
/content/code_sandbox/packages/plugin-productplaces-api/src/afterMutations.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,645