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 <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="path_to_url"> <item android:state_pressed="true"> <shape> <solid android:color="@color/app_red" /> <corners android:topLeftRadius="@dimen/dp_4"/> </shape> </item> <item> <sh...
/content/code_sandbox/app/src/main/res/drawable/bg_banner_tag.xml
xml
2016-04-09T15:47:45
2024-08-14T04:30:04
MusicLake
caiyonglong/MusicLake
2,654
128
```xml <Project xmlns="path_to_url"> <!-- helper import to get $(PeachpieVersion) property --> <Import Project="$(MSBuildThisFileDirectory)..\build\Peachpie.Version.props" /> </Project> ```
/content/code_sandbox/src/Peachpie.NET.Sdk/Sdk/Version.props
xml
2016-02-05T16:22:55
2024-08-16T17:42:35
peachpie
peachpiecompiler/peachpie
2,317
45
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:orientation="vertical"> <com.kofigyan.stateprogressbar.StateProgressBar ...
/content/code_sandbox/sample/src/main/res/layout/activity_basic_four_states.xml
xml
2016-08-16T12:50:30
2024-08-13T08:27:46
StateProgressBar
kofigyan/StateProgressBar
1,537
130
```xml import Fs from "fs"; import Path from "path"; import _ from "lodash"; /** * Add a list of packages to a package.json's depedencies * * @param pkgJson - package.json data * @param packages - list of packages to add * @param dep - which dependencies section to add * * @returns packages actually added */ e...
/content/code_sandbox/packages/xarc-app-dev/src/lib/tasks/package-json.ts
xml
2016-09-06T19:02:39
2024-08-11T11:43:11
electrode
electrode-io/electrode
2,103
562
```xml export { MD3LightTheme } from './v3/LightTheme'; export { MD3DarkTheme } from './v3/DarkTheme'; export { MD2LightTheme } from './v2/LightTheme'; export { MD2DarkTheme } from './v2/DarkTheme'; ```
/content/code_sandbox/src/styles/themes/index.ts
xml
2016-10-19T05:56:53
2024-08-16T08:48:04
react-native-paper
callstack/react-native-paper
12,646
61
```xml import { render } from '@testing-library/react'; import userEvents from '@testing-library/user-event'; import { EditorState, Modifier } from 'draft-js'; import React from 'react'; import { UndoPuginStore } from '../..'; import Redo from '../index'; describe('RedoButton', () => { function getStore(state = Edit...
/content/code_sandbox/packages/undo/src/RedoButton/__test__/index.test.tsx
xml
2016-02-26T09:54:56
2024-08-16T18:16:31
draft-js-plugins
draft-js-plugins/draft-js-plugins
4,087
628
```xml // See LICENSE in the project root for license information. // eslint-disable-next-line no-console const path: string = requireFolder({ sources: [ { globsBase: './assets', globPatterns: ['**/*.*'] } ], outputFolder: 'assets_[hash]' }); // eslint-disable-next-line no-console console.lo...
/content/code_sandbox/webpack/hashed-folder-copy-plugin/src/test/scenarios/localFolder/entry.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
91
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <vector xmlns:android="path_to_url" android:height="24dp" android:viewportHeight="24.0" android:viewportWidth="24.0" android:width="24dp"> <path android:fillColor="#FFFFFF" android:pathData="M19,7h-8v6h8L19,7zM21,3L3,3c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,1.9...
/content/code_sandbox/app/src/main/res/drawable/ic_picture_in_picture.xml
xml
2016-04-09T15:47:45
2024-08-14T04:30:04
MusicLake
caiyonglong/MusicLake
2,654
205
```xml import { InferAttributes, InferCreationAttributes } from "sequelize"; import { Column, Table, BelongsTo, ForeignKey, NotEmpty, DataType, IsIn, } from "sequelize-typescript"; import { type WebhookDeliveryStatus } from "@server/types"; import WebhookSubscription from "./WebhookSubscription"; import I...
/content/code_sandbox/server/models/WebhookDelivery.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
309
```xml <test> <query>SELECT CounterID, EventDate FROM hits_100m_single ORDER BY CounterID, exp(CounterID), sqrt(CounterID) FORMAT Null</query> <query>SELECT CounterID, EventDate FROM hits_100m_single ORDER BY CounterID, EventDate, exp(CounterID), toDateTime(EventDate) FORMAT Null</query> <query>SELECT Count...
/content/code_sandbox/tests/performance/redundant_functions_in_order_by.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
123
```xml import { assert } from 'chai'; import { JavaScriptObfuscator } from '../../../../../../src/JavaScriptObfuscatorFacade'; import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../../src/options/presets/NoCustomNodes'; import { IdentifierNamesGenerator } from '../../../../../../src/enums/generators/identifier-...
/content/code_sandbox/test/functional-tests/node-transformers/preparing-transformers/obfuscating-guards/force-transform-string-obfuscating-guard/ForceTransformStringObfuscatingGuard.spec.ts
xml
2016-05-09T08:16:53
2024-08-16T19:43:07
javascript-obfuscator
javascript-obfuscator/javascript-obfuscator
13,358
502
```xml import { Point } from 'slate' export const input = { point: { path: [0, 4], offset: 3, }, another: { path: [0, 1], offset: 3, }, } export const test = ({ point, another }) => { return Point.isAfter(point, another) } export const output = true ```
/content/code_sandbox/packages/slate/test/interfaces/Point/isAfter/path-after-offset-equal.tsx
xml
2016-06-18T01:52:42
2024-08-16T18:43:42
slate
ianstormtaylor/slate
29,492
85
```xml import { observer } from "mobx-react"; import { MoreIcon, QuestionMarkIcon, UserIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import styled, { useTheme } from "styled-components"; import Squircle from "@shared/components/Squircle"; import { Paginatio...
/content/code_sandbox/app/components/Sharing/Document/AccessControlList.tsx
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
1,676
```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. --> <vector xmlns:android="path_to_url" xmlns:tools="path_to_url" android:height="...
/content/code_sandbox/lib/java/com/google/android/material/textfield/res/drawable/mtrl_ic_arrow_drop_up.xml
xml
2016-12-05T16:11:29
2024-08-16T17:51:42
material-components-android
material-components/material-components-android
16,176
163
```xml import * as React from 'react'; import ComponentExample from '../../../../components/ComponentDoc/ComponentExample'; import NonPublicSection from '../../../../components/ComponentDoc/NonPublicSection'; const Visual = () => ( <NonPublicSection title="Visual tests"> <ComponentExample examplePath="component...
/content/code_sandbox/packages/fluentui/docs/src/examples/components/Popup/Visual/index.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
160
```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 { Component, Injector } from '@angular/core'; import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@ang...
/content/code_sandbox/ui-ngx/src/app/modules/home/components/widget/config/basic/chart/bar-chart-with-labels-basic-config.component.ts
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
3,643
```xml import { WebPartContext } from "@microsoft/sp-webpart-base"; import { ApplicationCustomizerContext } from "@microsoft/sp-application-base"; import { IUserProperties } from "./IUserProperties"; export interface IPersonaCardProps { context: WebPartContext | ApplicationCustomizerContext; profileProperties: IUs...
/content/code_sandbox/samples/react-directory/src/webparts/directory/components/PersonaCard/IPersonaCardProps.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
70
```xml import Box from '@mui/material/Box'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import React, { Fragment } from 'react'; import { useTranslation } from 'react-i18next'; import NoItems from '../NoItems'; import { DependencyBlock } from './DependencyBlock'; import ...
/content/code_sandbox/packages/ui-components/src/components/Dependencies/Dependencies.tsx
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
418
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- Comprehensive XML Example --> <root:root xmlns:root="path_to_url" xmlns:main="path_to_url" version="1.0"> <!-- Main Section --> <main:companyInfo> <main:name>ABC Corporation</main:name> <main:location> <main:city>New York</main:city>...
/content/code_sandbox/misc/xml-to-record-converter/src/test/resources/xml/sample_15.xml
xml
2016-11-16T14:58:44
2024-08-15T15:15:21
ballerina-lang
ballerina-platform/ballerina-lang
3,561
426
```xml export default class Ref { num: number; gen: number; constructor({ num, gen }: { num: number; gen: number }) { this.num = num; this.gen = gen; } toString(): string { let str = `${this.num}R`; if (this.gen !== 0) { str += this.gen; } return str; } } ```
/content/code_sandbox/packages/react-pdf/src/Ref.ts
xml
2016-08-01T13:46:02
2024-08-16T16:54:44
react-pdf
wojtekmaj/react-pdf
9,159
87
```xml import { Localized } from "@fluent/react/compat"; import { useRouter } from "found"; import React, { FunctionComponent, useCallback } from "react"; import { graphql } from "react-relay"; import ConfigBox from "coral-admin/routes/Configure/ConfigBox"; import Header from "coral-admin/routes/Configure/Header"; imp...
/content/code_sandbox/client/src/core/client/admin/routes/Configure/sections/WebhookEndpoints/AddWebhookEndpoint/AddWebhookEndpointContainer.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
377
```xml <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <Ta...
/content/code_sandbox/app/src/main/res/layout/dialog_advanced_menu.xml
xml
2016-04-20T21:29:44
2024-08-16T16:14:46
mpv-android
mpv-android/mpv-android
1,964
1,252
```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/commander/test/helpers/transactions.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
2,273
```xml <resources> <string name="app_name">ContactsTest</string> </resources> ```
/content/code_sandbox/chapter7/ContactsTest/app/src/main/res/values/strings.xml
xml
2016-10-04T02:55:57
2024-08-16T11:00:26
booksource
guolindev/booksource
3,105
20
```xml export {}; declare global { module NodeJS { interface Global { jasmine: any; shellStartTime: number; errorLogger: any; application: import('../application').default; } } module Electron { interface BrowserWindow { loadSettings: { [key: string]: unknown }; lo...
/content/code_sandbox/app/src/browser/types/global-ext.d.ts
xml
2016-10-13T06:45:50
2024-08-16T18:14:37
Mailspring
Foundry376/Mailspring
15,331
123
```xml export interface PendingPromise<TValue> extends Promise<TValue> { status: "pending"; } export interface FulfilledPromise<TValue> extends Promise<TValue> { status: "fulfilled"; value: TValue; } export interface RejectedPromise<TValue> extends Promise<TValue> { status: "rejected"; reason: unknown; } e...
/content/code_sandbox/src/utilities/promises/decoration.ts
xml
2016-02-26T20:25:00
2024-08-16T10:56:57
apollo-client
apollographql/apollo-client
19,304
444
```xml import React from 'react'; import { AppConsumer } from '@erxes/ui/src/appContext'; const withConsumer = (WrappedComponent: any) => { return (props) => ( <AppConsumer> {(context: any) => <WrappedComponent {...props} {...context} />} </AppConsumer> ); }; export default withConsumer; ```
/content/code_sandbox/packages/plugin-calls-ui/src/withConsumer.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
75
```xml import { FragmentType, useFragment } from './gql/fragment-masking'; import { graphql } from './gql'; export const FilmFragment = graphql(/* GraphQL */ ` fragment FilmItem on Film { id title releaseDate producers } `); const Film = (props: { film: FragmentType<typeof FilmFragment> }) => { ...
/content/code_sandbox/examples/react/apollo-client-swc-plugin/src/Film.tsx
xml
2016-12-05T19:15:11
2024-08-15T14:56:08
graphql-code-generator
dotansimha/graphql-code-generator
10,759
131
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" xmlns:tools="path_to_url" android:id="@+id/activity_music" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#ECECEC" android:orientation="vertical" tools:contex...
/content/code_sandbox/app/src/main/res/layout/activity_photo.xml
xml
2016-03-02T12:11:56
2024-08-07T06:56:48
TwinklingRefreshLayout
lcodecorex/TwinklingRefreshLayout
3,995
458
```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"; export c...
/content/code_sandbox/tests/testdata/codegen/secrets/nodejs/resource.ts
xml
2016-10-31T21:02:47
2024-08-16T19:47:04
pulumi
pulumi/pulumi
20,743
1,080
```xml import { mockProperty, unmockProperty } from 'jest-expo'; import * as Sharing from '../Sharing'; describe('Sharing', () => { describe('isAvailableAsync', () => { if (typeof navigator !== 'undefined') { describe('browser', () => { it(`returns true if navigator.share is defined`, async () => ...
/content/code_sandbox/packages/expo-sharing/src/__tests__/Sharing-test.web.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
166
```xml <vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="15" android:viewportWidth="15" android:width="34.0dp"> <path android:fillColor="@android:color/white" android:pathData="M15 3C15 3 15 13 15 13L0.05 13C1.5 12.5 3.5 12.5 4.5 11.5C3.5 11....
/content/code_sandbox/app/src/main/res/drawable/ic_preset_temaki_beach.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
432
```xml import deleteCustomProps from "./delete-custom-props"; // eslint-disable-next-line @typescript-eslint/no-var-requires const _ = require("lodash"); import assert = require("assert"); import Partial from "./partial"; import Profile from "./profile"; import ConcatMethod from "./concat-method"; import CONSTANT from ...
/content/code_sandbox/packages/webpack-config-composer/src/index.ts
xml
2016-09-06T19:02:39
2024-08-11T11:43:11
electrode
electrode-io/electrode
2,103
1,324
```xml // Escapes the RegExp special characters "^", "$", "", ".", "*", "+", "?", "(", // ")", "[", "]", "{", "}", and "|" in string. // See path_to_url#escapeRegExp import escapeRegExp from "lodash/escapeRegExp"; import {Part} from "./merge"; export type ChannelPart = Part & { channel: string; }; // escapes a regex...
/content/code_sandbox/client/js/helpers/ircmessageparser/findChannels.ts
xml
2016-02-09T03:16:03
2024-08-16T10:52:38
thelounge
thelounge/thelounge
5,518
489
```xml <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.2"?> <plugin> <extension-point id="org.lamport.tla.toolbox.tool" name="Toolbox Life Cycle Participant" schema="schema/org.lamport.tla.toolbox.tool.exsd"/> <!-- --> <!-- Application --> <!-- --> <extension id="o...
/content/code_sandbox/toolbox/org.lamport.tla.toolbox.product.standalone/plugin.xml
xml
2016-02-02T08:48:27
2024-08-16T16:50:00
tlaplus
tlaplus/tlaplus
2,271
1,420
```xml import { Outlet, defineDataLoader, useData, request } from 'ice'; export default () => { const data = useData(); console.log(data); return ( <div> <h1>ICE 3.0 Layout</h1> <Outlet /> </div> ); }; export function pageConfig() { return { title: 'Layout', meta: [ { ...
/content/code_sandbox/examples/with-request/src/pages/layout.tsx
xml
2016-11-03T06:59:15
2024-08-16T10:11:29
ice
alibaba/ice
17,815
156
```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. */ /** * Measures the session recovery initiation api call successes and failur...
/content/code_sandbox/packages/metrics/types/web_core_session_recovery_initiation_total_v1.schema.d.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
107
```xml import React from 'react' import { generateChordData } from '@nivo/generators' import { Seo } from '../../components/Seo' import { ApiClient } from '../../components/components/api-client/ApiClient' import { groups } from '../../data/components/chord/props' import mapper from '../../data/components/chord/mapper'...
/content/code_sandbox/website/src/pages/chord/api.tsx
xml
2016-04-16T03:27:56
2024-08-16T03:38:37
nivo
plouc/nivo
13,010
545
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="path_to_url"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>10.0.20506</Produc...
/content/code_sandbox/Unity-Design-Pattern.CSharp.csproj
xml
2016-10-11T04:26:01
2024-08-16T05:01:31
Unity-Design-Pattern
QianMo/Unity-Design-Pattern
4,141
3,557
```xml import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-footer', templateUrl: './footer.component.html', styleUrls: ['./footer.component.scss'] }) export class FooterComponent implements OnInit { constructor() { } ngOnInit(): void { } } ```
/content/code_sandbox/projects/docs-app/src/app/layout/footer/footer.component.ts
xml
2016-03-10T21:29:15
2024-08-15T07:07:30
angular-tree-component
CirclonGroup/angular-tree-component
1,093
58
```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> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> <i...
/content/code_sandbox/supportSample/src/main/res/values/styles.xml
xml
2016-08-03T15:43:34
2024-08-14T01:11:22
SwipeRecyclerView
yanzhenjie/SwipeRecyclerView
5,605
202
```xml import { processFiles } from './processFiles'; const ARGS = require('minimist')(process.argv.slice(2)); const SRC = ARGS.src; const BUILD_TYPE = process.env.BUILD_TYPE; try { processFiles(SRC, { regexp: /<%=\s*BUILD_TYPE\s*%>/g, replace: BUILD_TYPE }); } catch (e) { console.error(e); } ```
/content/code_sandbox/build/vars.ts
xml
2016-02-10T17:22:40
2024-08-14T16:41:28
codelyzer
mgechev/codelyzer
2,446
88
```xml import type { LexicalNode } from 'lexical' import { CustomListNode } from './CustomListNode' export function $isCustomListNode(node: LexicalNode | null | undefined): node is CustomListNode { return node instanceof CustomListNode } ```
/content/code_sandbox/applications/docs-editor/src/app/Plugins/CustomList/$isCustomListNode.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
51
```xml import resolvers from './resolvers'; import typeDefs from './typeDefs'; const mod = { resolvers, typeDefs, }; export default mod; ```
/content/code_sandbox/packages/plugin-insight-api/src/graphql/index.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
34
```xml <test> <query>SELECT arrayFold((acc, x) -> acc + x, range(number % 100), toUInt64(0)) from numbers(100000) Format Null</query> <query>SELECT arrayFold((acc, x) -> acc + 1, range(number % 100), toUInt64(0)) from numbers(100000) Format Null</query> <query>SELECT arrayFold((acc, x) -> acc + x, range(num...
/content/code_sandbox/tests/performance/array_fold.xml
xml
2016-06-02T08:28:18
2024-08-16T18:39:33
ClickHouse
ClickHouse/ClickHouse
36,234
125
```xml /** * @license * * 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, ...
/content/code_sandbox/packages/mdc-tab-indicator/component.ts
xml
2016-12-05T16:04:09
2024-08-16T15:42:22
material-components-web
material-components/material-components-web
17,119
697
```xml import { Injectable } from '@angular/core'; import { messages } from './messages'; import { botReplies, gifsLinks, imageLinks } from './bot-replies'; @Injectable() export class ChatService { loadMessages() { return messages; } loadBotReplies() { return botReplies; } reply(message: string)...
/content/code_sandbox/src/app/pages/extra-components/chat/chat.service.ts
xml
2016-05-25T10:09:03
2024-08-16T16:34:03
ngx-admin
akveo/ngx-admin
25,169
291
```xml import { memo } from 'react'; import { c } from 'ttag'; import { isEmailNotification } from '@proton/shared/lib/calendar/alarms'; import getNotificationString from '@proton/shared/lib/calendar/alarms/getNotificationString'; import type { NotificationModel } from '@proton/shared/lib/interfaces/calendar'; inter...
/content/code_sandbox/applications/calendar/src/app/components/events/PopoverNotification.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
213
```xml import { PropertyType } from 'shared/models/Filters'; import { IFilterRootState, IFilterState } from './types'; const selectState = (state: IFilterRootState): IFilterState => state.filters; export const selectCurrentContextAppliedFilters = (state: IFilterRootState) => { return selectCurrentContextFilters(st...
/content/code_sandbox/webapp/client/src/features/filter/store/selectors.ts
xml
2016-10-19T01:07:26
2024-08-14T03:53:55
modeldb
VertaAI/modeldb
1,689
367
```xml import FormControl from '../form/Control'; import { __ } from '../../utils/core'; import React from 'react'; type Props = { placeholder?: string; onChange: (e) => void; }; function Filter({ placeholder = 'Search', onChange }: Props) { return ( <FormControl type="text" placeholder={__(plac...
/content/code_sandbox/packages/erxes-ui/src/components/filterableList/Filter.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
93
```xml import { isNil } from '../util' export class MapFS { constructor (private mapping: {[key: string]: string}) {} public sep = '/' async exists (filepath: string) { return this.existsSync(filepath) } existsSync (filepath: string) { return !isNil(this.mapping[filepath]) } async readFile (f...
/content/code_sandbox/src/fs/map-fs.ts
xml
2016-06-13T07:39:30
2024-08-16T16:56:50
liquidjs
harttle/liquidjs
1,485
271
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /** * Returns the median of a Bernoulli distribution. * * ## Notes * * - If `p < 0` ...
/content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/bernoulli/median/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
216
```xml import { createInjector } from 'typed-inject'; import { RestClient } from 'typed-rest-client'; import { execaCommand } from 'execa'; import { resolveFromCwd } from '@stryker-mutator/util'; import { LogLevel } from '@stryker-mutator/api/core'; import { coreTokens, provideLogger } from '../di/index.js'; import {...
/content/code_sandbox/packages/core/src/initializer/index.ts
xml
2016-02-12T13:14:28
2024-08-15T18:38:25
stryker-js
stryker-mutator/stryker-js
2,561
382
```xml import { DtoError } from './dto_error'; export interface MailScheduleRecord { scheduleName: string; success: boolean; duration: number; runResults: MailRunResult[]; } export interface MailRunResult { recordName: string; parameter: string; envName: string; tests: { [key: ...
/content/code_sandbox/client/src/common/interfaces/dto_mail.ts
xml
2016-09-26T02:47:43
2024-07-24T09:32:20
Hitchhiker
brookshi/Hitchhiker
2,193
95
```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>15D21</string> <key>CFBundleExecutable</key> <string>BrcmFirmwareRepo</string> <key>CFBundleIdentifier</key> <string>com.no-one.Brcm...
/content/code_sandbox/Clover-Configs/Dell/Dell XPS 13 9350/CLOVER/kexts/10.11/BrcmFirmwareRepo.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
680
```xml import './parent.js'; import type { Selector } from '../shared/helper.js'; declare module '../shared/core.js' { // eslint-disable-next-line @typescript-eslint/no-unused-vars interface JQ<T = HTMLElement> { /** * * @param selector CSS * @example ```js // span $('span').parents() ``` ...
/content/code_sandbox/packages/jq/src/methods/parents.ts
xml
2016-07-11T17:39:02
2024-08-16T07:12:34
mdui
zdhxiong/mdui
4,077
114
```xml import DateSelect from './DateSelect'; export type { DateSelectProps } from './DateSelect'; export default DateSelect; ```
/content/code_sandbox/packages/zarm/src/date-select/index.tsx
xml
2016-07-13T11:45:37
2024-08-12T19:23:48
zarm
ZhongAnTech/zarm
1,707
26
```xml import { BooleanInput, coerceBooleanProperty } from "@angular/cdk/coercion"; import { CommonModule } from "@angular/common"; import { Component, Input, Signal, inject } from "@angular/core"; import { JslibModule } from "@bitwarden/angular/jslib.module"; import { AsyncActionsModule, FunctionReturningAwaitabl...
/content/code_sandbox/apps/browser/src/platform/popup/layout/popup-header.component.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
384
```xml import { setHeader } from 'h3' export default defineNuxtPlugin({ name: 'server-only-plugin', setup () { const evt = useRequestEvent() if (evt) { setHeader(evt, 'custom-head', 'hello') } }, env: { islands: false, }, }) ```
/content/code_sandbox/test/fixtures/basic/plugins/server-only.server.ts
xml
2016-10-26T11:18:47
2024-08-16T19:32:46
nuxt
nuxt/nuxt
53,705
72
```xml export function normalizedAssetPrefix(assetPrefix: string | undefined): string { // remove all leading slashes and trailing slashes const escapedAssetPrefix = assetPrefix?.replace(/^\/+|\/+$/g, '') || false // if an assetPrefix was '/', we return empty string // because it could be an unnecessary traili...
/content/code_sandbox/packages/next/src/shared/lib/normalized-asset-prefix.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
156
```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/elements/lisk-utils/src/index.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
124
```xml import { ProfileThreePage } from './profile-three'; import { NgModule } from '@angular/core'; import { IonicPageModule } from 'ionic-angular'; @NgModule({ declarations: [ ProfileThreePage, ], imports: [ IonicPageModule.forChild(ProfileThreePage), ], exports: [ ProfileThreePage ] }) expo...
/content/code_sandbox/src/pages/profile/profile-three/profile-three.module.ts
xml
2016-11-04T05:48:23
2024-08-03T05:22:54
ionic3-components
yannbf/ionic3-components
1,679
78
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <ItemGroup> <Filter Include="Source Files"> <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> </Filter> <F...
/content/code_sandbox/06_PrintListInReversedOrder/06_PrintListInReversedOrder.vcxproj.filters
xml
2016-11-21T05:04:57
2024-08-14T04:03:23
CodingInterviewChinese2
zhedahht/CodingInterviewChinese2
5,289
313
```xml import { animate, state, style, transition, trigger } from '@angular/animations'; import { CommonModule } from '@angular/common'; import { AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, ElementRef, EventEmitter, Inject, Input, NgM...
/content/code_sandbox/src/app/components/panelmenu/panelmenu.ts
xml
2016-01-16T09:23:28
2024-08-16T19:58:20
primeng
primefaces/primeng
9,969
9,329
```xml import { dotize } from "./dotize"; it("converts nested properties", () => { const input = { a: "property", can: { be: "nested", really: { deeply: "sometimes" } }, }; const output = dotize(input); expect(output).toStrictEqual({ a: "property", "can.be": "nested", "can.really.deeply": ...
/content/code_sandbox/server/src/core/server/utils/dotize.spec.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
537
```xml var arr1 = [1, 3, 2]; arr1.reverse(); console.log(arr1); var arr2 = ["def", "abc", "aba", "ced", "meh"]; console.log(arr2.reverse()); var arr3 = ["abc", "def"]; console.log(arr3.reverse()); ```
/content/code_sandbox/tests/arrays/reverse.ts
xml
2016-07-24T23:05:37
2024-08-12T19:23:59
ts2c
andrei-markeev/ts2c
1,252
65
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ import zeros = require( '@stdlib/ndarray/zeros' ); import nditerStacks = require( './index' ); // TESTS // // T...
/content/code_sandbox/lib/node_modules/@stdlib/ndarray/iter/stacks/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
1,699
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const CheckListCheckMirroredIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M1728 1621l211-210 90 90-301 301-173-173...
/content/code_sandbox/packages/react-icons-mdl2/src/components/CheckListCheckMirroredIcon.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
223
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES ...
/content/code_sandbox/test/it/parser/src/main/resources/sql/supported/ddl/alter-publication.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
295
```xml <PreferenceScreen xmlns:android="path_to_url"> <SwitchPreference android:defaultValue="true" android:key="example_switch" android:summary="@string/pref_description_social_recommendations" android:title="@string/pref_title_social_recommendations"/> <!-- NOTE: EditTextPref...
/content/code_sandbox/app/src/main/res/xml/pref_general.xml
xml
2016-08-08T08:52:10
2024-08-12T19:24:13
AndroidAnimationExercise
REBOOTERS/AndroidAnimationExercise
1,868
284
```xml import { describe, expect, test } from 'vitest'; import { isNodeVersionGreaterThan21 } from '@verdaccio/config'; import { aesDecryptDeprecated, aesEncryptDeprecated, generateRandomSecretKeyDeprecated, } from '../src'; const itdescribe = (condition) => (condition ? describe : describe.skip); itdescribe(...
/content/code_sandbox/packages/signature/test/legacy-token-deprecated.spec.ts
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
265
```xml <?xml version="1.0" encoding="UTF-8"?> <definitions id="definition" xmlns="path_to_url" xmlns:xsi="path_to_url" xmlns:flowable="path_to_url" targetNamespace="Examples"> <process id="miSubProcessLocalVariables"> <startEvent id="theStart" /> <sequenceFlow id="flow1" sourceRef="theStar...
/content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/multiinstance/MultiInstanceTest.testCallActivityLocalVariables.bpmn20.xml
xml
2016-10-13T07:21:43
2024-08-16T15:23:14
flowable-engine
flowable/flowable-engine
7,715
357
```xml import { Component, Input, OnInit } from '@angular/core'; import { InputBase } from './input-base'; import { AnotherComponent } from './another-component.component'; /** * The main component */ @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.c...
/content/code_sandbox/test/fixtures/sample-files-extends/src/app/app.component.ts
xml
2016-10-17T07:09:28
2024-08-14T16:30:10
compodoc
compodoc/compodoc
3,980
95
```xml /*your_sha256_hash---------- zero 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, distr...
/content/code_sandbox/src/engine/math/angle.ts
xml
2016-10-10T11:59:07
2024-08-16T11:00:47
zero
sinclairzx81/zero
2,412
265
```xml <assembly xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <id>publish</id> <formats> <format>tar.gz</format> </formats> <includeBaseDirectory>false</includeBaseDirectory> <fileSets> <fileSet> <directory>${basedir}/target/repository</directory>...
/content/code_sandbox/org.eclipse.jdt.ls.product/publish-assembly.xml
xml
2016-06-27T13:06:53
2024-08-16T00:38:32
eclipse.jdt.ls
eclipse-jdtls/eclipse.jdt.ls
1,726
282
```xml <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="path_to_url" android:viewportWidth="800" android:viewportHeight="800" android:width="1000dp" android:height="1000dp"> <path android:pathData="M323.37 205.33c1.18 -0.21 2.39 -0.33 3.6 -0.36 46.34 0.02 92.69 0.02 139.03 0.01 ...
/content/code_sandbox/app/src/main/res/drawable/ic_device_outline_24dp.xml
xml
2016-02-01T23:48:36
2024-08-15T03:35:42
TagMo
HiddenRamblings/TagMo
2,976
2,589
```xml import * as React from 'react'; import { BaseButton } from '../BaseButton'; import { customizable, nullRender } from '../../../Utilities'; import { getStyles } from './DefaultButton.styles'; import type { IButtonProps } from '../Button.types'; /** * {@docCategory Button} */ @customizable('DefaultButton', ['th...
/content/code_sandbox/packages/react/src/components/Button/DefaultButton/DefaultButton.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
172
```xml /* * path_to_url * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either */ import { services } from 'ask-sdk-model'; import { expect } from 'chai'; import * as sinon from 'sinon'; import { ApiClient } fr...
/content/code_sandbox/ask-sdk-v1adapter/tst/services/listManagementService.spec.ts
xml
2016-06-24T06:26:05
2024-08-14T12:39:19
alexa-skills-kit-sdk-for-nodejs
alexa/alexa-skills-kit-sdk-for-nodejs
3,118
1,204
```xml <!-- ~ Nextcloud - Android Client ~ --> <vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24"> <path android:fillColor="#757575" android:pathData="M12,5V1L7,6l5,5V7c3.31,0 6,2.69 6,6s-2.69,6 -6,6 -6,...
/content/code_sandbox/app/src/main/res/drawable/ic_history.xml
xml
2016-06-06T21:23:36
2024-08-16T18:22:36
android
nextcloud/android
4,122
169
```xml import React from 'react' import {MdArrowDropDown, MdArrowDropUp} from 'react-icons/md' type CollapserProps = { isCollapsed: boolean style?: object }; export default class Collapser extends React.Component<CollapserProps> { render() { const iconStyle = { width: 20, height: 20, ...th...
/content/code_sandbox/src/components/Collapser.tsx
xml
2016-09-08T17:52:22
2024-08-16T12:54:23
maputnik
maplibre/maputnik
2,046
120
```xml <Project> <PropertyGroup> <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> <EFCoreMySqlJsonNewtonsoftFile>$(IntermediateOutputPath)EFCoreMySqlJsonNewtonsoft$(DefaultLanguageSourceExtension)</EFCoreMySqlJsonNewtonsoftFile> </PropertyGroup> <Choose> <When ...
/content/code_sandbox/src/EFCore.MySql.Json.Newtonsoft/build/netstandard2.0/Pomelo.EntityFrameworkCore.MySql.Json.Newtonsoft.targets
xml
2016-07-11T16:05:17
2024-08-14T15:06:37
Pomelo.EntityFrameworkCore.MySql
PomeloFoundation/Pomelo.EntityFrameworkCore.MySql
2,674
477
```xml import { ActionName, calculateActionName, runAction, QueryParams, QueryMatcher, DeterministicSortComparator, StateResolveFunctionInput, ChangeEvent } from 'event-reduce-js'; import type { RxQuery, MangoQuery, RxChangeEvent, StringKeys, RxDocumentData } from './...
/content/code_sandbox/src/event-reduce.ts
xml
2016-12-02T19:34:42
2024-08-16T15:47:20
rxdb
pubkey/rxdb
21,054
1,144
```xml import React from 'react'; import ReplyFbMessage from './components/action/ReplyFbMessage'; import OptionalContent from './components/OptionalContent'; import MessageForm from './components/trigger/MessageForm'; import TriggerContent from './components/trigger/Content'; import CommnetForm from './components/trig...
/content/code_sandbox/packages/plugin-facebook-ui/src/automations/index.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
527
```xml import { Context } from "../shapes/Samplers.js"; import * as ad from "./ad.js"; import { FunctionInternalWarning } from "./errors.js"; import { ValueShapeT } from "./types.js"; import { Value } from "./value.js"; export type MayWarn<T> = { value: T; warnings: FunctionInternalWarning[]; }; export type CompF...
/content/code_sandbox/packages/core/src/types/functions.ts
xml
2016-09-22T04:47:19
2024-08-16T13:00:54
penrose
penrose/penrose
6,760
337
```xml export * from "./WorkflowExtensionModule"; ```
/content/code_sandbox/src/main/Extensions/Workflow/index.ts
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
9
```xml <?xml version="1.0" encoding="UTF-8"?> <ns2:test-suite xmlns:ns2="urn:model.allure.qatools.yandex.ru" start="1443622429471" stop="1443622429475"> <name>multistep</name> <title>Multi-step</title> <test-cases> <test-case start="1443622429471" stop="1443622429472" status="failed"> ...
/content/code_sandbox/allure-generator/test-data/screen-diff/steps-testsuite.xml
xml
2016-05-27T14:06:05
2024-08-16T20:00:51
allure2
allure-framework/allure2
4,013
551
```xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url"> <android.support.design.widget.CoordinatorLayout android:id="@+id/main_content" android:layout_width="match_parent" android:layout_height="match_paren...
/content/code_sandbox/app/src/main/res/layout/activity_user.xml
xml
2016-05-09T05:55:34
2024-07-26T07:43:48
T-MVP
north2016/T-MVP
2,709
771
```xml import gql from 'graphql-tag'; export default ({ rootMutationName, extendTypeDefs = true, }: { rootMutationName?: string; extendTypeDefs?: boolean; }) => gql` ${extendTypeDefs ? 'extend' : ''} type ${rootMutationName || 'Mutation'} { # Creates a user with a password, returns the id corresponding d...
/content/code_sandbox/modules/module-password/src/schema/mutation.ts
xml
2016-10-07T01:43:23
2024-07-14T11:57:08
accounts
accounts-js/accounts
1,492
211
```xml import { Route, Routes, useLocation, useParams } from "react-router-dom"; import MainSettings from "./settings/components/MainSettings"; import React from "react"; import Settings from "./settings/containers/Settings"; import asyncComponent from "@erxes/ui/src/components/AsyncComponent"; import queryString from...
/content/code_sandbox/packages/plugin-savings-ui/src/routes.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
867
```xml import {Component, OnInit, ViewContainerRef} from '@angular/core'; import {LoggedInCallback} from './services/cognito.service'; import {environment} from '../environments/environment'; import {Router} from '@angular/router'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls...
/content/code_sandbox/MultiRegion/2_UI/src/app/app.component.ts
xml
2016-11-22T22:47:29
2024-08-16T02:04:15
aws-serverless-workshops
aws-samples/aws-serverless-workshops
4,177
259
```xml import * as React from 'react'; import * as ReactDom from 'react-dom'; import { Version } from '@microsoft/sp-core-library'; import { IPropertyPaneConfiguration, PropertyPaneTextField } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; import * as string...
/content/code_sandbox/samples/react-yammer-praise/src/webparts/reactYammer/ReactYammerWebPart.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
477
```xml <?xml version="1.0" encoding="utf-8"?> <rotate xmlns:android="path_to_url" android:drawable="@drawable/abc_ic_ab_back_material" android:fromDegrees="180" android:pivotX="50%" android:pivotY="50%" android:toDegrees="180" /> ```
/content/code_sandbox/sample/src/main/res/drawable/ms_right_arrow.xml
xml
2016-06-28T08:27:15
2024-08-05T10:12:04
android-material-stepper
stepstone-tech/android-material-stepper
1,781
71
```xml import { tokens } from '@fluentui/react-theme'; import type { SlotClassNames } from '@fluentui/react-utilities'; import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react'; import type { AvatarSlots, AvatarState } from './Avatar.types'; export const avatarClassNames: SlotClassNames<AvatarSlots> ...
/content/code_sandbox/packages/react-components/react-avatar/library/src/components/Avatar/useAvatarStyles.styles.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
4,775
```xml import { useCurrentTheme, useExpoTheme } from 'expo-dev-client-components'; export function useTheme(): { theme: ReturnType<typeof useExpoTheme>; themeType: 'light' | 'dark'; } { const theme = useExpoTheme(); const themeType = useCurrentTheme(); return { theme, themeType }; } ```
/content/code_sandbox/apps/expo-go/src/utils/useTheme.ts
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
75
```xml function forceDownload(blobUrl: string, filename: string) { let a: any = document.createElement("a"); a.download = filename; a.href = blobUrl; document.body.appendChild(a); a.click(); a.remove(); } export default function downloadPhoto(url: string, filename: string) { if (!filename) filename = url...
/content/code_sandbox/examples/with-cloudinary/utils/downloadPhoto.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
163
```xml declare module 'cytoscape'; declare module 'cytoscape-clipboard'; declare module 'cytoscape-edgehandles'; declare module 'cytoscape-grid-guide'; declare module 'cytoscape-panzoom'; declare module 'cytoscape-undo-redo'; ```
/content/code_sandbox/api/client/src/app/playbook/playbook.d.ts
xml
2016-06-08T16:34:46
2024-08-16T18:12:30
WALKOFF
nsacyber/WALKOFF
1,198
56
```xml import { filesystem } from "gluegun" import * as tempy from "tempy" import { runIgnite } from "../_test-helpers" const BOILERPLATE_PATH = filesystem.path(__dirname, "../../boilerplate") const setup = (): { TEMP_DIR: string } => { const TEMP_DIR = tempy.directory({ prefix: "ignite-" }) beforeEach(() => { ...
/content/code_sandbox/test/vanilla/ignite-remove-demo.test.ts
xml
2016-02-10T16:06:07
2024-08-16T19:52:51
ignite
infinitered/ignite
17,196
321
```xml import { Color } from './Color' describe('Color', () => { it('should throw an error if the color is invalid', () => { expect(() => new Color('#ff')).toThrowError('Invalid color') }) it('should parse a rgb string', () => { const color = new Color('rgb(255, 0, 0)') expect(color.r).toBe(255) ...
/content/code_sandbox/packages/ui-services/src/Theme/Color.spec.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
636
```xml import useNavigate from '../hooks/drive/useNavigate'; import { useSpotlight } from './useSpotlight'; const useOpenPreview = () => { const { navigateToLink } = useNavigate(); const spotlight = useSpotlight(); const openPreview = (shareId: string, linkId: string) => { spotlight.searchSpotligh...
/content/code_sandbox/applications/drive/src/app/components/useOpenPreview.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
103
```xml /** * Before 11/23/2022, web and desktop used independent semantic versioning. After this point, desktop automatically * uses web's versioning. The mapping below allows us to see what particular web version a legacy desktop version maps to */ export const LegacyWebToDesktopVersionMapping: Record<string, strin...
/content/code_sandbox/packages/ui-services/src/Changelog/LegacyDesktopMapping.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
5,366