text
stringlengths
9
39.2M
dir
stringlengths
26
295
lang
stringclasses
185 values
created_date
timestamp[us]
updated_date
timestamp[us]
repo_name
stringlengths
1
97
repo_full_name
stringlengths
7
106
star
int64
1k
183k
len_tokens
int64
1
13.8M
```xml import { O } from 'ts-toolbelt'; import { BaseRO } from './base.define'; export type ViewDetailsRO = O.Merge< BaseRO, { viewId: string; properties: Record<string, any>[]; } >; export type StrictViewDetailsRO = O.Required< ViewDetailsRO, 'id' | 'creationDate' >; ```
/content/code_sandbox/src/renderer/defenitions/record-object/view-details.define.ts
xml
2016-05-14T02:18:49
2024-08-16T02:46:28
ElectroCRUD
garrylachman/ElectroCRUD
1,538
79
```xml import { inject } from "@vercel/analytics"; import { createApp } from "vue"; import { createPinia } from "pinia"; import Demo from "./Demo.vue"; const SAMPLE_RATE = 0.5; inject({ beforeSend: event => { if (Math.random() > SAMPLE_RATE) { return null; } return event; } }); const pinia = c...
/content/code_sandbox/src/demo/main.ts
xml
2016-06-17T09:55:24
2024-08-16T15:32:02
vue-echarts
ecomfe/vue-echarts
9,553
106
```xml import { test, expect, vi } from 'vitest' import { mount } from '@vue/test-utils' import VueCodemirror, { Codemirror, install } from '../src/index' // path_to_url test('export type', async () => { expect(Codemirror).toBeDefined() expect(install).toBeTypeOf('function') expect(VueCodemirror).toBeDefined() ...
/content/code_sandbox/test/index.test.ts
xml
2016-09-22T12:33:12
2024-08-15T07:57:52
vue-codemirror
surmon-china/vue-codemirror
3,239
194
```xml // See LICENSE.txt for license information. import {field, immutableRelation} from '@nozbe/watermelondb/decorators'; import Model, {type Associations} from '@nozbe/watermelondb/Model'; import {MM_TABLES} from '@constants/database'; import type {Relation} from '@nozbe/watermelondb'; import type GroupModel from...
/content/code_sandbox/app/database/models/server/group_membership.ts
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
439
```xml const getCreditsInfo = ` query getCreditsInfo { getCreditsInfo { name type initialCount growthInitialCount unit comingSoon unLimited price { monthly yearly oneTime } usage { totalAmount purchasedAmount ...
/content/code_sandbox/packages/core-ui/src/modules/saas/settings/plans/graphql/queries.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
106
```xml import type { Meta, StoryObj } from '@storybook/react'; import { SlackButton } from './SlackButton'; const meta: Meta<typeof SlackButton> = { title: 'Basics/Buttons/Slack', component: SlackButton, }; export default meta; type Story = StoryObj<typeof SlackButton>; export const Primary: Story = { name: '...
/content/code_sandbox/web/src/components/buttons/SlackButton.stories.tsx
xml
2016-05-21T16:36:17
2024-08-16T17:56:07
electricitymaps-contrib
electricitymaps/electricitymaps-contrib
3,437
83
```xml /* eslint-disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ /** * Number of comments failed to be uploaded to server */ export interfac...
/content/code_sandbox/packages/metrics/types/docs_comments_error_total_v1.schema.d.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
112
```xml /// <reference path="../built/pxtlib.d.ts" /> /// <reference path="./projectheader.d.ts" /> /// <reference path="./validatorPlan.d.ts" /> declare namespace pxt.editor { export interface EditorMessage { /** * Constant identifier */ type: "pxteditor" | "pxthost" | "pxtpkgext"...
/content/code_sandbox/localtypings/pxteditor.d.ts
xml
2016-01-24T19:35:52
2024-08-16T16:39:39
pxt
microsoft/pxt
2,069
8,757
```xml <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Dialog</class> <widget class="QDialog" name="Dialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>197</width> <height>72</height> </rect> </property> <property name="windowTitle"> <string>Dialog</stri...
/content/code_sandbox/src/05 Qt Designer Python/dialog.ui
xml
2016-10-13T07:03:35
2024-08-15T15:36:27
examples
pyqt/examples
2,313
464
```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. --> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to...
/content/code_sandbox/courses/developingapps/java/firebase/start/pom.xml
xml
2016-04-17T21:39:27
2024-08-16T17:22:27
training-data-analyst
GoogleCloudPlatform/training-data-analyst
7,726
1,323
```xml import { describe, expect, test, vi } from 'vitest'; import { printMessage } from '../src/formatter'; import { LevelCode } from '../src/levels'; vi.mock('dayjs', () => ({ __esModule: true, default: () => ({ format: () => 'formatted-date', }), })); describe('formatter', () => { const prettyfierOpti...
/content/code_sandbox/packages/logger/logger-prettify/test/formatter.spec.ts
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
1,618
```xml import "reflect-metadata" import { DataSource } from "../../../../src" import { closeTestingConnections, createTestingConnections, } from "../../../utils/test-utils" import { expect } from "chai" describe("indices > conditional index", () => { let connections: DataSource[] before(async () => { ...
/content/code_sandbox/test/functional/indices/conditional-index/conditional-index.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
434
```xml <resources> <string name="app_name">jianxi_record1</string> <string-array name="velocity"> <item>none</item> <item>ultrafast</item> <item>superfast</item> <item>veryfast</item> <item>faster</item> <item>fast</item> <item>medium</item> <item>...
/content/code_sandbox/SmallVideoRecord1/sample/src/main/res/values/strings.xml
xml
2016-08-25T09:20:09
2024-08-11T05:54:45
small-video-record
mabeijianxi/small-video-record
3,455
131
```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 PURPO...
/content/code_sandbox/src/script/components/MessagesList/Message/ContentMessage/asset/LocationAsset.test.tsx
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
282
```xml export * from 'storybook/internal/csf-tools'; export type * from 'storybook/internal/csf-tools'; ```
/content/code_sandbox/code/deprecated/csf-tools/shim.d.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
22
```xml import { ICoronaInfoHistory } from "../../../../models/ICoronaInfoHistory"; export interface IHistoryModalProps { countryCode: string; confirmedColor: string; deathColor: string; recoveredColor: string; _loadHistoryData(): Promise<ICoronaInfoHistory>; } ```
/content/code_sandbox/samples/react-covid19-info/src/webparts/covid19Info/components/HistoryModal/IHistoryModalProps.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
64
```xml import { describe, expect, it, vi } from 'vitest'; import { Channel } from '@storybook/core/channels'; import { EventEmitter } from 'events'; import type { Server } from 'http'; import { stringify } from 'telejson'; import { ServerChannelTransport, getServerChannel } from '../get-server-channel'; describe('g...
/content/code_sandbox/code/core/src/core-server/utils/__tests__/server-channel.test.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
659
```xml /************************************************************* * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /** * @fileoverview A visitor to serialize MathML taking menu ...
/content/code_sandbox/ts/ui/menu/MmlVisitor.ts
xml
2016-02-23T09:52:03
2024-08-16T04:46:50
MathJax-src
mathjax/MathJax-src
2,017
799
```xml import { IServerFiltersInRequest } from 'services/serverModel/Filters/converters'; import { IFilterData } from 'shared/models/Filters'; import { IPagination } from 'shared/models/Pagination'; import { IWorkspace } from 'shared/models/Workspace'; import { makeAddFiltersToRequest } from 'services/serverModel/Filte...
/content/code_sandbox/webapp/client/src/services/datasets/responseRequest/makeLoadDatasetsRequest.ts
xml
2016-10-19T01:07:26
2024-08-14T03:53:55
modeldb
VertaAI/modeldb
1,689
416
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> <...
/content/code_sandbox/components/security/mbedtls/mbedtls-2.16.8/visualc/VS2010/ssl_fork_server.vcxproj
xml
2016-09-11T14:25:51
2024-08-16T10:12:43
LiteOS
LiteOS/LiteOS
4,794
2,155
```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 { assert } from "chai"; import { mount, type ReactWrapper } from "enzyme"; import * as React from "react"; import { spy } f...
/content/code_sandbox/packages/core/test/panel-stack2/panelStack2Tests.tsx
xml
2016-10-25T21:17:50
2024-08-16T15:14:48
blueprint
palantir/blueprint
20,593
2,604
```xml <!-- ~ ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --> <window xmlns="path_to_url"> <actions> <action id="dialogAction"/> </actions> <facets> <opti...
/content/code_sandbox/modules/web/test/spec/cuba/web/optiondialog/screens/option-dialog-screen.xml
xml
2016-03-24T07:55:56
2024-07-14T05:13:48
cuba
cuba-platform/cuba
1,342
303
```xml import { strict as assert } from "assert"; import * as path from "path"; import * as vs from "vscode"; import { DebuggerType, VmService } from "../../../shared/enums"; import { fsPath } from "../../../shared/utils/fs"; import { DartDebugClient } from "../../dart_debug_client"; import { createDebugClient, ensureV...
/content/code_sandbox/src/test/web_debug/debug/web.test.ts
xml
2016-07-30T13:49:11
2024-08-10T16:23:15
Dart-Code
Dart-Code/Dart-Code
1,472
4,431
```xml import {PlatformTest, View} from "@tsed/common"; import {EndpointMetadata, Get, Returns} from "@tsed/schema"; import {getContentType} from "./getContentType.js"; describe("getContentType", () => { beforeEach(() => PlatformTest.create()); afterEach(() => PlatformTest.reset()); it("should return the conten...
/content/code_sandbox/packages/platform/platform-response-filter/src/utils/getContentType.spec.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
647
```xml import { G2Spec } from '../../../src'; export function speciesViolinBasicPolar(): G2Spec { return { type: 'view', data: { type: 'fetch', value: 'data/species.json', }, coordinate: { type: 'polar', }, children: [ { type: 'density', data: { ...
/content/code_sandbox/__tests__/plots/static/species-violin-basic-polar.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
239
```xml /** * @license * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at path_to_url */ import {BaseHarnessFilters} from '@angular/cdk/testing'; /** A set of criteria that can be used to filter a list of `MatProgressSpinnerHarness` instances. */ export inte...
/content/code_sandbox/src/material/progress-spinner/testing/progress-spinner-harness-filters.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
83
```xml import { ApolloServer } from '../../..'; import { ApolloServerPluginUsageReportingDisabled } from '../../../plugin/disabled'; import { ApolloServerPluginSchemaReporting } from '../../../plugin/schemaReporting'; import { describe, it, expect } from '@jest/globals'; describe('end-to-end', () => { it('fails for ...
/content/code_sandbox/packages/server/src/__tests__/plugin/schemaReporting/index.test.ts
xml
2016-04-21T09:26:01
2024-08-16T19:32:15
apollo-server
apollographql/apollo-server
13,742
332
```xml /** */ export interface MonospaceFontMetrics { readonly fontSizePx: number, readonly fontFamily: string, readonly fillTextYOffset: number; // Offset to add to y when rendering text. readonly fillTextXOffset: number; // Offset to add to x when rendering text. readonly widthPx: number; readonly ...
/content/code_sandbox/packages/extraterm-char-render-canvas/src/font_metrics/MonospaceFontMetrics.ts
xml
2016-03-04T12:39:59
2024-08-16T18:44:37
extraterm
sedwards2009/extraterm
2,501
167
```xml import { type ProjectManifest, type DependenciesOrPeersField } from '@pnpm/types' export function getSpecFromPackageManifest ( manifest: Pick<ProjectManifest, DependenciesOrPeersField>, depName: string ): string { return manifest.optionalDependencies?.[depName] ?? manifest.dependencies?.[depName] ?? ...
/content/code_sandbox/pkg-manifest/manifest-utils/src/getSpecFromPackageManifest.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
97
```xml import { BlockPickerOption } from '../BlockPickerPlugin/BlockPickerOption' import { LexicalEditor } from 'lexical' import { INSERT_TABLE_COMMAND } from '@lexical/table' import { LexicalIconName } from '@/Components/Icon/LexicalIcons' export function GetTableBlockOption(onSelect: () => void) { return new Block...
/content/code_sandbox/packages/web/src/javascripts/Components/SuperEditor/Plugins/Blocks/Table.tsx
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
449
```xml import React from 'react'; import { Form } from 'semantic-ui-react'; import { FormInput } from '../..'; export default { title: 'Components/Form Input' }; export const Empty = () => <div className='bg'> <FormInput /> </div>; export const AsFormField = () => <div className='bg'> <Form> <Form.Input la...
/content/code_sandbox/packages/ui/stories/components/input.stories.tsx
xml
2016-09-22T22:58:21
2024-08-16T15:47:39
nuclear
nukeop/nuclear
11,862
96
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions id="definitions" xmlns="path_to_url" targetNamespace="Examples"> <process id="changeStateForEventSubProcess"> <startEvent id="theStart"/> <sequenceFlow sourceRef="theStart" targetRef="processTask"/> <userT...
/content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/api/runtime/changestate/RuntimeServiceChangeStateTest.TimerParallelNestedNonInterruptingTimerEventSubProcess.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
431
```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 isArray = require( './index' ); // TESTS // // The function returns a boolean... { isArray( {} ); // $E...
/content/code_sandbox/lib/node_modules/@stdlib/assert/is-array/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
133
```xml // *** WARNING: this file was generated by test. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; import * as utilities from "./utilities"; import *...
/content/code_sandbox/tests/testdata/codegen/embedded-crd-types/nodejs/component.ts
xml
2016-10-31T21:02:47
2024-08-16T19:47:04
pulumi
pulumi/pulumi
20,743
538
```xml import * as React from "rehackt"; import type * as ReactTypes from "react"; import type { DocumentNode } from "graphql"; import hoistNonReactStatics from "hoist-non-react-statics"; import { parser } from "../parser/index.js"; import type { BaseQueryOptions } from "../types/types.js"; import { Query } from "../c...
/content/code_sandbox/src/react/hoc/query-hoc.tsx
xml
2016-02-26T20:25:00
2024-08-16T10:56:57
apollo-client
apollographql/apollo-client
19,304
967
```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. --> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="...
/content/code_sandbox/msa/monitoring/pom.xml
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
1,265
```xml import clsx from 'clsx'; import { Fragment } from 'react'; import { Taint } from 'kubernetes-types/core/v1'; import { nodeAffinityValues } from '@/kubernetes/filters/application'; import { useAuthorizations } from '@/react/hooks/useUser'; import { Affinity, Label, NodePlacementRowData } from '../types'; inter...
/content/code_sandbox/app/react/kubernetes/applications/DetailsView/PlacementsDatatable/PlacementsDatatableSubRow.tsx
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
1,131
```xml <?xml version="1.0" encoding="utf-8"?> <xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd"> <file datatype="xml" source-language="en" target-language="pl" original="../LocalizableSt...
/content/code_sandbox/src/Cli/dotnet/commands/dotnet-sdk/check/xlf/LocalizableStrings.pl.xlf
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
1,124
```xml import { isDate, isString } from '@antv/util'; function toTimeStamp(value) { if (isString(value)) { if (value.indexOf('T') > 0) { value = new Date(value).getTime(); } else { // new Date('2010/01/10') new Date('2010-01-10') : // : Fri Jan 10 2020 02:40:13 GMT+0800 () // Sun Ja...
/content/code_sandbox/packages/f2/src/util/index.ts
xml
2016-08-29T06:26:23
2024-08-16T15:50:14
F2
antvis/F2
7,877
265
```xml export enum FormStates { IDLE = 'idle', LOADING = 'loading', SUCCESS = 'success', ERRORED = 'errored', } ```
/content/code_sandbox/apps/expo-go/src/constants/FormStates.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
36
```xml import {Get} from "@tsed/schema"; import {Controller} from "@tsed/di"; import {MySocketService} from "../services/MySocketService"; @Controller("/") export class MyCtrl { constructor(private mySocketService: MySocketService) {} @Get("/allo") allo() { this.mySocketService.helloAll(); return "is s...
/content/code_sandbox/docs/tutorials/snippets/socketio/socket-service-di.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
83
```xml /// <reference types="node" /> import net from 'net'; import http from 'http'; import https from 'https'; import { Duplex } from 'stream'; import { EventEmitter } from 'events'; declare function createAgent(opts?: createAgent.AgentOptions): createAgent.Agent; declare function createAgent(callback: createAgent.Ag...
/content/code_sandbox/node_modules/agent-base/dist/src/index.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
667
```xml <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent"> <io.github.javiewer.view.PinchImageView android:id="@+id/image" android:layout_width="match_parent" android:layout_height=...
/content/code_sandbox/app/src/main/res/layout/content_gallery.xml
xml
2016-05-21T08:47:10
2024-08-14T04:13:43
JAViewer
SplashCodes/JAViewer
4,597
230
```xml import * as pulumi from "@pulumi/pulumi"; import * as config from "@pulumi/config"; const prov = new config.Provider("prov", { name: "my config", pluginDownloadURL: "not the same as the pulumi resource option", }); // Note this isn't _using_ the explicit provider, it's just grabbing a value from it. con...
/content/code_sandbox/sdk/nodejs/cmd/pulumi-language-nodejs/testdata/tsc/projects/l2-resource-config/index.ts
xml
2016-10-31T21:02:47
2024-08-16T19:47:04
pulumi
pulumi/pulumi
20,743
102
```xml import { StyleSheet } from 'react-native'; import { useColorMode } from '@docusaurus/theme-common'; export const RADIUS = 100; const lightStyles = StyleSheet.create({ circle: { backgroundColor: 'var(--swm-purple-light-100)', border: '8px solid var(--swm-purple-light-80)', }, }); const darkStyles =...
/content/code_sandbox/docs/src/components/GestureExamples/utils.tsx
xml
2016-10-27T08:31:38
2024-08-16T12:03:40
react-native-gesture-handler
software-mansion/react-native-gesture-handler
5,989
230
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions id="taskListenerExample" xmlns="path_to_url" xmlns:activiti="path_to_url" targetNamespace="Examples"> <process id="businessKeyProcess" name="Update business key Example"> <extensionElements> <activiti:executionListener event="start" class="org.acti...
/content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/api/runtime/ProcessInstanceUpdateBusinessKeyTest.testProcessInstanceUpdateBusinessKey.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
236
```xml import {htmlEscape} from 'escape-goat'; export async function initPdfViewer() { const els = document.querySelectorAll('.pdf-content'); if (!els.length) return; const pdfobject = await import(/* webpackChunkName: "pdfobject" */'pdfobject'); for (const el of els) { const src = el.getAttribute('data-...
/content/code_sandbox/web_src/js/render/pdf.ts
xml
2016-11-01T02:13:26
2024-08-16T19:51:49
gitea
go-gitea/gitea
43,694
150
```xml import { Component } from '@angular/core'; @Component({ selector: 'app-rtl-guide', templateUrl: './rtl-guide.component.html', styleUrls: ['./rtl-guide.component.scss'] }) export class RtlGuideComponent { html = `<tree-root [focused]="true" [nodes]="nodes" [options]="options"></tree-root>`; javascript ...
/content/code_sandbox/projects/docs-app/src/app/guides/rtl-guide/rtl-guide.component.ts
xml
2016-03-10T21:29:15
2024-08-15T07:07:30
angular-tree-component
CirclonGroup/angular-tree-component
1,093
86
```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> </ProjectConfigu...
/content/code_sandbox/third_party/build/srtp/libsrtp.vcxproj
xml
2016-01-24T05:00:33
2024-08-16T03:31:21
pjproject
pjsip/pjproject
1,960
12,266
```xml <?xml version="1.0" encoding="utf-8"?> Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <!-- The widget at the tail of the SignInPreference in settings screen to indicate sync error --> <ImageView xmlns:android="path_to_url" android:layout_width="...
/content/code_sandbox/libraries_res/chrome_res/src/main/res/layout/sync_error_widget.xml
xml
2016-07-04T07:28:36
2024-08-15T05:20:42
AndroidChromium
JackyAndroid/AndroidChromium
3,090
112
```xml import { wait } from '@proton/shared/lib/helpers/promise'; import retryOnError from './retryOnError'; jest.mock('@proton/shared/lib/helpers/promise'); const errorMessage = 'STRI-I-I-I-I-I-ING'; describe('retryOnError', () => { let throwingFunction: () => Promise<void>; let throwingFunction2: () => Pr...
/content/code_sandbox/packages/drive-store/utils/retryOnError.test.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
1,046
```xml <manifest package="com.waynell.videolist"> <application /> </manifest> ```
/content/code_sandbox/video-list-player/src/main/AndroidManifest.xml
xml
2016-03-18T10:49:00
2024-07-29T02:09:13
VideoListPlayer
waynell/VideoListPlayer
1,330
19
```xml import { ColorSet, prepareColorSet } from './color-set/index.js'; import { BuiltInColorSet, resolveColorSet } from './color-set/all.js'; import type { Template, OutputFile, RenderOptions } from './template/index.js'; import { BuiltInTemplate, resolveTemplate } from './template/all.js'; import { OutputFileTransfo...
/content/code_sandbox/cli/src/themer.ts
xml
2016-11-21T13:42:28
2024-08-16T10:14:09
themer
themerdev/themer
5,463
372
```xml import { useSubscribeEventManager } from '@proton/components'; import { EVENT_ACTIONS } from '@proton/shared/lib/constants'; import type { Message } from '@proton/shared/lib/interfaces/mail/Message'; import { useMailDispatch } from 'proton-mail/store/hooks'; import { parseLabelIDsInEvent } from '../../helpers/...
/content/code_sandbox/applications/mail/src/app/hooks/events/useConversationsEvents.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
643
```xml <Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\..\..\buildtools\common.props" /> <PropertyGroup> <Description>Amazon Lambda .NET Core support - Serialization.Json package.</Description> <TargetFramework>netstandard2.0</TargetFramework> <AssemblyTitle>Amazon.Lambda.Serialization.Json</Ass...
/content/code_sandbox/Libraries/src/Amazon.Lambda.Serialization.Json/Amazon.Lambda.Serialization.Json.csproj
xml
2016-11-11T20:43:34
2024-08-15T16:57:53
aws-lambda-dotnet
aws/aws-lambda-dotnet
1,558
196
```xml import { useEffect, useState } from 'react'; import type { DecryptedKey } from '@proton/shared/lib/interfaces'; import { INDEXING_STATUS, defaultESStatus } from './constants'; import { getIndexKey } from './esHelpers'; import { checkVersionedESDB, contentIndexingProgress, metadataIndexingProgress, ...
/content/code_sandbox/packages/encrypted-search/lib/useEncryptedSearchStatus.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
609
```xml <Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\..\..\configureawait.props" /> <Import Project="..\..\..\common.props" /> <PropertyGroup> <TargetFramework>net6.0</TargetFramework> </PropertyGroup> <ItemGroup> <None Remove="Volo.Docs.SourceCode.zip" /> <Content...
/content/code_sandbox/studio/source-codes/Volo.Docs.SourceCode/Volo.Docs.SourceCode.csproj
xml
2016-12-03T22:56:24
2024-08-16T16:24:05
abp
abpframework/abp
12,657
119
```xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="path_to_url" xmlns:task="path_to_url" xmlns:mvc="path_to_url" xmlns:xsi="path_to_url" xmlns:p="path_to_url" xmlns:context="path_to_url" xsi:schemaLocation="path_to_url path_to_url path_to_url path_to_url path_to_url path_to_url path_to_url pat...
/content/code_sandbox/src/main/resources/spring-timer.xml
xml
2016-11-25T10:12:46
2024-08-16T07:26:41
SpringMVC-Mybatis-Shiro-redis-0.2
baichengzhou/SpringMVC-Mybatis-Shiro-redis-0.2
1,787
154
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" xmlns:tools="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white" android:orientation="vertical" android:paddingBottom="1dp" andr...
/content/code_sandbox/wear/src/main/res/layout/rect_activity_main.xml
xml
2016-09-23T13:33:17
2024-08-15T09:51:19
xDrip
NightscoutFoundation/xDrip
1,365
1,787
```xml export { VBadge } from './VBadge' ```
/content/code_sandbox/packages/vuetify/src/components/VBadge/index.ts
xml
2016-09-12T00:39:35
2024-08-16T20:06:39
vuetify
vuetifyjs/vuetify
39,539
11
```xml <!-- ~ Nextcloud - Android Client ~ --> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="960" android:viewportHeight="960"> <path android:fillColor="@color/foreground_highlight" android:pathData="M320,760v-560l440,280 -4...
/content/code_sandbox/app/src/main/res/drawable/ic_global_resume.xml
xml
2016-06-06T21:23:36
2024-08-16T18:22:36
android
nextcloud/android
4,122
95
```xml import clsx from 'clsx'; import type { ReactElement } from 'react'; import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/20/solid'; type Props = Readonly<{ current: number; end: number; label: string; onSelect: (page: number, event: React.MouseEvent<HTMLElement>) => void; pagePadding?: ...
/content/code_sandbox/apps/portal/src/ui/Pagination/Pagination.tsx
xml
2016-07-05T05:00:48
2024-08-16T19:01:19
tech-interview-handbook
yangshun/tech-interview-handbook
115,302
1,026
```xml <shapes name="mxgraph.aws.networking"> <shape name="AWS Direct Connect" h="54.61" w="54.61" aspect="variable" strokewidth="inherit"> <connections> <constraint x="0.5" y="0" perimeter="0" name="N"/> <constraint x="0.5" y="1" perimeter="0" name="S"/> <constraint x="0" y="0.5" perimeter="0" name="W"/> <constraint x...
/content/code_sandbox/src/main/webapp/stencils/aws/networking.xml
xml
2016-09-06T12:59:15
2024-08-16T13:28:41
drawio
jgraph/drawio
40,265
16,057
```xml /* * This software is released under MIT license. * The full license information can be found in LICENSE in the root directory of this project. */ import { renderIcon } from '../icon.renderer.js'; import { IconShapeTuple } from '../interfaces/icon.interfaces.js'; const icon = { outline: '<path d="M 32...
/content/code_sandbox/packages/core/src/icon/shapes/heat-map.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
2,184
```xml import React from 'react'; import { storiesOf } from '@storybook/react-native'; import { withKnobs } from '@storybook/addon-knobs'; import Wrapper from './../../Wrapper'; import { Example as Playground } from './knobEnabled'; import { Example as Usage } from './usage'; import { Example as Size } from './size'; i...
/content/code_sandbox/example/storybook/stories/components/composites/Avatar/index.tsx
xml
2016-04-15T11:37:23
2024-08-14T16:16:44
NativeBase
GeekyAnts/NativeBase
20,132
212
```xml /** @jsx jsx */ import { Transforms } from 'slate' import { jsx } from '../../..' export const run = editor => { Transforms.delete(editor) } export const input = ( <editor> <block> <block> word <cursor /> </block> <block>another</block> </block> </editor> ) export...
/content/code_sandbox/packages/slate/test/transforms/delete/point/nested.tsx
xml
2016-06-18T01:52:42
2024-08-16T18:43:42
slate
ianstormtaylor/slate
29,492
123
```xml import type { ReactNode } from 'react'; import { useMemo } from 'react'; import { c, msgid } from 'ttag'; import type { Breakpoints } from '@proton/components/hooks'; import { DENSITY } from '@proton/shared/lib/constants'; import type { UserSettings } from '@proton/shared/lib/interfaces'; import type { Label }...
/content/code_sandbox/applications/mail/src/app/components/list/ItemColumnLayout.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
2,246
```xml import { MessageArgs, MessageArgsOmitService, sendMessage, } from '@erxes/api-utils/src/core'; import { generateModels } from './connectionResolver'; import { consumeRPCQueue } from '@erxes/api-utils/src/messageBroker'; export const setupMessageConsumers = async () => { consumeRPCQueue('reactions:comme...
/content/code_sandbox/packages/plugin-reactions-api/src/messageBroker.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
441
```xml import { assert, use as chaiUse } from 'chai'; import * as chaiAsPromised from 'chai-as-promised'; import * as fs from 'fs-extra'; import * as sinon from 'sinon'; import { Uri } from 'vscode'; import * as path from 'path'; import * as windowApis from '../../../../client/common/vscodeApis/windowApis'; import * as...
/content/code_sandbox/src/test/pythonEnvironments/creation/provider/venvUtils.unit.test.ts
xml
2016-01-19T10:50:01
2024-08-12T21:05:24
pythonVSCode
DonJayamanne/pythonVSCode
2,078
3,931
```xml import react from '@vitejs/plugin-react-swc'; import path from 'path'; import wasm from 'vite-plugin-wasm'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [react(), wasm()], test: { globals: true, environment: 'happy-dom', poolOptions: { ...
/content/code_sandbox/applications/wallet/vitest.config.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
139
```xml import * as React from 'react'; import { isConformant } from '../../testing/isConformant'; import { AppItemStatic } from './AppItemStatic'; import { appItemStaticClassNames } from './useAppItemStaticStyles.styles'; import { AppItemStaticProps } from './AppItemStatic.types'; describe('AppItemStatic', () => { i...
/content/code_sandbox/packages/react-components/react-nav-preview/library/src/components/AppItemStatic/AppItemStatic.test.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
174
```xml <ExampleDesign> <Vendor>xilinx.com</Vendor> <Library>design</Library> <Name>cl_hls_dds</Name> <Version>1.0</Version> <Design>init.tcl</Design> <DisplayName>cl_hls_dds (IPI)</DisplayName> <Description>cl_hls_dds (IPI)</Description> <Image>ccl_hls_dds.png</Image> </ExampleDesign> ```
/content/code_sandbox/hdk/common/shell_v04261818/hlx/hlx_examples/build/IPI/cl_hls_dds/design.xml
xml
2016-11-04T22:04:05
2024-08-13T03:36:47
aws-fpga
aws/aws-fpga
1,499
92
```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>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.4.0-M1</version...
/content/code_sandbox/spring-cloud-function-samples/function-sample-aws-custom-bean/pom.xml
xml
2016-09-22T02:34:34
2024-08-16T08:19:07
spring-cloud-function
spring-cloud/spring-cloud-function
1,032
1,179
```xml <clickhouse> <keeper_server> <tcp_port>9181</tcp_port> <server_id>3</server_id> <log_storage_path>/var/lib/clickhouse/coordination/log</log_storage_path> <snapshot_storage_path>/var/lib/clickhouse/coordination/snapshots</snapshot_storage_path> <coordination_settings> ...
/content/code_sandbox/tests/integration/test_keeper_three_nodes_two_alive/configs/enable_keeper3.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
258
```xml import { IRadarrCombined } from "../../interfaces"; import { StateToken } from "@ngxs/store"; export const RADARR_STATE_TOKEN = new StateToken<RadarrState>('RadarrState'); export interface RadarrState { settings: IRadarrCombined; } ```
/content/code_sandbox/src/Ombi/ClientApp/src/app/state/radarr/types.ts
xml
2016-02-25T12:14:54
2024-08-14T22:56:44
Ombi
Ombi-app/Ombi
3,674
57
```xml /* eslint-disable storybook/story-exports */ const component = {}; export default { component, }; ```
/content/code_sandbox/code/core/src/core-server/utils/__mockdata__/errors/NoStories.stories.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
21
```xml <?xml version="1.0" encoding="UTF-8"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="11762" systemVersion="16C67" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES"> <device id="retina4_7" orie...
/content/code_sandbox/Project 23 - Birthdays/Birthdays/ContactBirthdayCell.xib
xml
2016-02-14T20:14:21
2024-08-15T20:49:08
Swift-30-Projects
soapyigu/Swift-30-Projects
8,036
1,981
```xml // See LICENSE.txt for license information. import {tableSchema} from '@nozbe/watermelondb'; import {MM_TABLES} from '@constants/database'; const {USER} = MM_TABLES.SERVER; export default tableSchema({ name: USER, columns: [ {name: 'auth_service', type: 'string'}, {name: 'delete_at', ...
/content/code_sandbox/app/database/schema/server/table_schemas/user.ts
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
337
```xml <launch> <!-- Arguments --> <arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/> <arg name="configuration_basename" default="turtlebot3_lds_2d.lua"/> <arg name="sensor_range" default="1.0"/> <arg name="cmd_vel_topic" default="/cmd_vel" /> <arg name="odom_...
/content/code_sandbox/turtlebot3_slam/launch/turtlebot3_frontier_exploration.launch
xml
2016-06-21T07:14:22
2024-08-16T09:12:21
turtlebot3
ROBOTIS-GIT/turtlebot3
1,457
612
```xml import type { ButtonHTMLAttributes, ReactElement, ReactNode, Ref } from 'react'; import { cloneElement, forwardRef } from 'react'; import clsx from '@proton/utils/clsx'; import noop from '@proton/utils/noop'; import { Tooltip } from '../tooltip'; interface Props extends Omit<ButtonHTMLAttributes<HTMLButtonEle...
/content/code_sandbox/packages/components/components/toolbar/ToolbarButton.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
276
```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. --> <RelativeLayout xmlns:android="path_to_url" android:layout_width="match_parent"...
/content/code_sandbox/app/src/main/res/layout/scheduled_new_tweet_activity.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
1,056
```xml import { getOperationManifestFromProject } from "../getOperationManifestFromProject"; import { GraphQLClientProject } from "apollo-language-server"; const mergedOperationsAndFragmentsForService = require("./fixtures/mockOperations.json"); describe("getOperationManifestFromProject", () => { const mockProject ...
/content/code_sandbox/packages/apollo/src/utils/__tests__/getOperationManifestFromProject.test.ts
xml
2016-08-12T15:28:09
2024-08-03T08:25:34
apollo-tooling
apollographql/apollo-tooling
3,040
136
```xml /* eslint global-require: 0 */ import { AccountStore } from '../stores/account-store'; import { Task } from './task'; import * as Actions from '../actions'; import * as Attributes from '../attributes'; import { Message } from '../models/message'; import SoundRegistry from '../../registries/sound-registry'; impor...
/content/code_sandbox/app/src/flux/tasks/send-draft-task.ts
xml
2016-10-13T06:45:50
2024-08-16T18:14:37
Mailspring
Foundry376/Mailspring
15,331
1,659
```xml <vector xmlns:android="path_to_url" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#FFF" android:pathData="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z" /> </vector> ```
/content/code_sandbox/custom-ui/src/main/res/drawable/ayp_ic_fullscreen_exit_24dp.xml
xml
2016-08-29T12:04:03
2024-08-16T13:03:46
android-youtube-player
PierfrancescoSoffritti/android-youtube-player
3,391
126
```xml import type { RuleProcessor } from '../../types/index.noReact'; import { defaultValueProcessorByRule } from './defaultValueProcessorByRule'; import { mapSQLOperator, quoteFieldNamesWithArray } from './utils'; /** * Default rule processor used by {@link formatQuery} for "sql" format. */ export const defaultRul...
/content/code_sandbox/packages/react-querybuilder/src/utils/formatQuery/defaultRuleProcessorSQL.ts
xml
2016-06-17T22:03:19
2024-08-16T10:28:42
react-querybuilder
react-querybuilder/react-querybuilder
1,131
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. --> <!-- This layout defines the main screen and will display the list of weather or an error...
/content/code_sandbox/S09.03-Exercise-ContentProviderDelete/app/src/main/res/layout/activity_forecast.xml
xml
2016-11-02T04:42:26
2024-08-12T19:38:06
ud851-Sunshine
udacity/ud851-Sunshine
1,999
596
```xml <?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="path_to_url"> <sitemap> <loc>path_to_url <lastmod>2016-01-01T00:00:00+00:00</lastmod> </sitemap> <sitemap> <loc>path_to_url <lastmod>2016-01-01T00:00:00+00:00</lastmod> </sitemap> </sitemapindex> ```
/content/code_sandbox/tests/__snapshots__/SitemapIndexTest__multiple_sitemaps_can_be_added_to_the_index__1.xml
xml
2016-08-12T11:56:26
2024-08-15T17:05:59
laravel-sitemap
spatie/laravel-sitemap
2,254
110
```xml import {test, expect} from 'vitest'; import parse from '@commitlint/parse'; import {bodyFullStop} from './body-full-stop.js'; const messages = { empty: 'test:\n', with: `test: subject\n\nbody.`, without: `test: subject\n\nbody`, }; const parsed = { empty: parse(messages.empty), with: parse(messages.with),...
/content/code_sandbox/@commitlint/rules/src/body-full-stop.test.ts
xml
2016-02-12T08:37:56
2024-08-16T13:28:33
commitlint
conventional-changelog/commitlint
16,499
354
```xml import * as React from 'react'; import { DemoPage } from '../DemoPage'; import { MessageBarPageProps } from '@fluentui/react-examples/lib/react/MessageBar/MessageBar.doc'; export const MessageBarPage = (props: { isHeaderVisible: boolean }) => ( <DemoPage jsonDocs={require('../../../dist/api/react/Message...
/content/code_sandbox/apps/public-docsite-resources/src/components/pages/MessageBarPage.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
97
```xml import type { FC } from 'react'; import React from 'react'; interface ItemInterface { text: string; value: string; } interface GenericInterface<T> { value: T; } interface Props { interface: ItemInterface; genericInterface: GenericInterface<string>; } export const Component: FC<Props> = (props: Props) ...
/content/code_sandbox/code/core/src/docs-tools/argTypes/convert/__testfixtures__/typescript/interfaces.tsx
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
81
```xml import * as lunr from "lunr"; import { Observable, firstValueFrom, map } from "rxjs"; import { Jsonify } from "type-fest"; import { SearchService as SearchServiceAbstraction } from "../abstractions/search.service"; import { UriMatchStrategy } from "../models/domain/domain-service"; import { I18nService } from "...
/content/code_sandbox/libs/common/src/services/search.service.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
3,467
```xml import { describe, expect, test } from 'vitest'; import { createSessionToken, getAuthenticatedMessage } from '../src'; describe('Auth Utilities', () => { describe('createSessionToken', () => { test('should generate session token', () => { expect(createSessionToken()).toHaveProperty('expires'); ...
/content/code_sandbox/packages/utils/test/auth-utils.spec.ts
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
128
```xml import { ThemeComponent as TC, Theme } from '../runtime'; import { Dark } from './dark'; export type ClassicDarkOptions = Theme; /** * Dark theme. */ export const ClassicDark: TC<ClassicDarkOptions> = (options) => { return Object.assign( {}, Dark(), { category10: 'category10', categ...
/content/code_sandbox/src/theme/classicDark.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
94
```xml /* * * 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 accor...
/content/code_sandbox/framework/src/controller/channels/index.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
118
```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 PURPO...
/content/code_sandbox/src/script/page/MainContent/panels/preferences/DevicesPreferences/DevicesPreference.tsx
xml
2016-07-21T15:34:05
2024-08-16T11:40:13
wire-webapp
wireapp/wire-webapp
1,125
974
```xml import { computeArcBoundingBox } from '../src/boundingBox' const boundingBoxCases = [ { args: [0, 0, 100, 0, 360], expected: { x: -100, y: -100, width: 200, height: 200, }, }, { args: [0, 0, 100, 0, 90], expected...
/content/code_sandbox/packages/arcs/tests/boundingBox.test.ts
xml
2016-04-16T03:27:56
2024-08-16T03:38:37
nivo
plouc/nivo
13,010
331
```xml export const rangeMap = ( n: number, start1: number, stop1: number, start2: number, stop2: number ): number => { return ((n - start1) / (stop1 - start1)) * (stop2 - start2) + start2; }; export const closestNumber = (number: number, numbers: Array<number>) => numbers.sort((a, b) => a - b).find((item...
/content/code_sandbox/source/renderer/app/utils/numbers.ts
xml
2016-10-05T13:48:54
2024-08-13T22:03:19
daedalus
input-output-hk/daedalus
1,230
135
```xml import { promisify } from 'util'; /** * Wait `n` ticks. This allows async tasks to progress. * @param n The number of ticks to wait */ export async function tick(n = 1): Promise<void> { const nextTickAsPromised = promisify(process.nextTick); for await (const _ of Array.from({ length: n })) { await n...
/content/code_sandbox/packages/test-helpers/src/tick.ts
xml
2016-02-12T13:14:28
2024-08-15T18:38:25
stryker-js
stryker-mutator/stryker-js
2,561
90
```xml export * from './components/DialogActions/index'; ```
/content/code_sandbox/packages/react-components/react-dialog/library/src/DialogActions.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
11
```xml export const foo = () => 'not mocked'; ```
/content/code_sandbox/code/core/template/stories/utils.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
11