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 { makeStyles, mergeClasses } from '@griffel/react'; import { SlotClassNames } from '@fluentui/react-utilities'; import { typographyStyles } from '@fluentui/react-theme'; import { useContentStyles, useIconStyles, useIndicatorStyles, useRootDefaultClassName, useSmallStyles, } from '../sharedNavSty...
/content/code_sandbox/packages/react-components/react-nav-preview/library/src/components/NavCategoryItem/useNavCategoryItem.styles.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
523
```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 { booleanAttribute, ChangeDetectorRef, Directive, inject, Injectable, Input, OnDestroy, } from '@angular/core'; import {Directionality} from '@angula...
/content/code_sandbox/src/cdk/menu/context-menu-trigger.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
2,013
```xml <?xml version="1.0" encoding="UTF-8"?> <?NLS TYPE="org.eclipse.help.toc"?> <toc label="Samples" link_to="toc.xml#samples"> <topic label="Samples Subheading" href="html/concepts/subconcepttext.html"> </topic> </toc> ```
/content/code_sandbox/toolbox/org.lamport.tla.toolbox.doc/tocsamples.xml
xml
2016-02-02T08:48:27
2024-08-16T16:50:00
tlaplus
tlaplus/tlaplus
2,271
70
```xml // luma.gl /* import test from 'tape-promise/tape'; import {GPUGeometry, Geometry, GeometryProps} from '@luma.gl/engine'; import {TypedArray} from '@luma.gl/core'; import { getWebGLTestDevices } from '@luma.gl/test-utils'; const TEST_CASES: {title: string; props: GeometryProps; [key: string]: any}[] = [ { ...
/content/code_sandbox/modules/engine/test/geometry/gpu-geometry.spec.ts
xml
2016-01-25T09:41:59
2024-08-16T10:03:05
luma.gl
visgl/luma.gl
2,280
729
```xml import PropTypes from 'prop-types'; import React, { FC } from 'react'; import useStyleSet from '../hooks/useStyleSet'; type AudioContentProps = { alt?: string; autoPlay?: boolean; loop?: boolean; poster?: string; src: string; }; const AudioContent: FC<AudioContentProps> = ({ alt, autoPlay, loop, src...
/content/code_sandbox/packages/component/src/Attachment/AudioContent.tsx
xml
2016-07-07T23:16:57
2024-08-16T00:12:37
BotFramework-WebChat
microsoft/BotFramework-WebChat
1,567
243
```xml import { Fragment, useMemo } from 'react'; import { omit } from '@proton/shared/lib/helpers/object'; import clsx from '@proton/utils/clsx'; import useActiveBreakpoint from '../../hooks/useActiveBreakpoint'; import Icon from '../icon/Icon'; import Breadcrumb from './Breadcrumb'; import CollapsedBreadcrumbs from...
/content/code_sandbox/packages/components/components/collapsingBreadcrumbs/CollapsingBreadcrumbs.tsx
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
613
```xml export * from 'rxjs-compat/util/root'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/src/util/root.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
11
```xml import { Outlet, useLocale, getAllLocales, getDefaultLocale, Link, useLocation } from 'ice'; import { IntlProvider as ReactIntlProvider } from 'react-intl'; import { messages } from '@/locales'; export default function Layout() { const location = useLocation(); const [activeLocale, setLocale] = useLocale();...
/content/code_sandbox/examples/with-i18n/src/pages/layout.tsx
xml
2016-11-03T06:59:15
2024-08-16T10:11:29
ice
alibaba/ice
17,815
258
```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 /** * Tests if an object-like value contains a circular reference. * * @param value - ...
/content/code_sandbox/lib/node_modules/@stdlib/assert/is-circular/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
256
```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/user_profile_header.xml
xml
2016-07-08T03:18:40
2024-08-14T02:54:51
talon-for-twitter-android
klinker24/talon-for-twitter-android
1,189
1,153
```xml <!-- ~ contributor license agreements. See the NOTICE file distributed with ~ this work for additional information regarding copyright ownership. ~ ~ path_to_url ~ ~ Unless required by applicable law or agreed to in writing, software ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre...
/content/code_sandbox/test/e2e/sql/src/test/resources/cases/dql/dataset/empty_storage_units/postgresql/select_postgresql_pg_catalog_pg_conversion.xml
xml
2016-01-18T12:49:26
2024-08-16T15:48:11
shardingsphere
apache/shardingsphere
19,707
159
```xml <resources> <string name="app_name">AndroidAnimatedVectorDrawable</string> <string name="settings_path">M 19.43 12.98 C 19.47 12.66 19.5 12.34 19.5 12 C 19.5 11.66 19.47 11.34 19.43 11.02 L 21.54 9.37 C 21.73 9.22 21.78 8.95 21.66 8.73 L 19.66 5.27 C 19.54 5.05 19.27 4.97 19.05 5.05 L 16.56 6.05 C 16.0...
/content/code_sandbox/Android/AndroidAnimatedVectorDrawable/app/src/main/res/values/strings.xml
xml
2016-05-02T05:43:21
2024-08-16T06:51:39
journaldev
WebJournal/journaldev
1,314
907
```xml // import foo = require('foo'); // import bar = foo.bar; ```
/content/code_sandbox/examples/declaration-files/21-export-equal/src/index.ts
xml
2016-05-11T03:02:41
2024-08-16T12:59:57
typescript-tutorial
xcatliu/typescript-tutorial
10,361
18
```xml import { TestBed } from "@angular/core/testing"; import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from "@angular/router"; import { mock, MockProxy } from "jest-mock-extended"; import { ProviderService } from "@bitwarden/common/admin-console/abstractions/provider.service"; import { ProviderUserType...
/content/code_sandbox/bitwarden_license/bit-web/src/app/admin-console/providers/guards/provider-permissions.guard.spec.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
903
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "path_to_url"> <suite name="TestNG Excludes Test Suite" guice-stage="DEVELOPMENT"> <test thread-count="5" name="TestNG Excludes Test" verbose="2"> <classes> <class name="com.journaldev.xml.TestNGXMLTest"> <methods> <exclude name="test_a...
/content/code_sandbox/TestNG-Examples/src/test/resources/testng-exclude.xml
xml
2016-05-02T05:43:21
2024-08-16T06:51:39
journaldev
WebJournal/journaldev
1,314
122
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const ReplyAltIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M1920 896v128H475l402 403-90 90-557-557 557-557 90 90-...
/content/code_sandbox/packages/react-icons-mdl2/src/components/ReplyAltIcon.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
133
```xml export { default } from './HeaderInfoDialog'; ```
/content/code_sandbox/packages/ui-components/src/components/HeaderInfoDialog/index.ts
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
11
```xml import gql from "graphql-tag"; import { execute } from "../../core/execute"; import { HttpLink } from "../HttpLink"; import { itAsync, subscribeAndCount } from "../../../testing"; import type { Observable } from "zen-observable-ts"; import { ObservableQuery } from "../../../core"; import { TextEncoder, TextDecod...
/content/code_sandbox/src/link/http/__tests__/responseIterator.ts
xml
2016-02-26T20:25:00
2024-08-16T10:56:57
apollo-client
apollographql/apollo-client
19,304
3,545
```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 /** * Evaluates the binary logarithm (base two). * * ## Notes * * - For negative num...
/content/code_sandbox/lib/node_modules/@stdlib/math/base/special/log2/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
261
```xml import {INTERACTION_GRANT_ID} from "../constants/constants.js"; import {JsonParameterStore} from "@tsed/schema"; import {GrantId} from "./grantId.js"; describe("@GrandId", () => { it("should inject grantId", () => { class MyInteraction { $prompt(@GrantId() grandId: string) {} } const entity...
/content/code_sandbox/packages/security/oidc-provider/src/decorators/grantId.spec.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
120
```xml import { useLocal } from "coral-framework/lib/relay"; import { graphql } from "react-relay"; import { useZKeyEnabledLocal } from "coral-stream/__generated__/useZKeyEnabledLocal.graphql"; /** * Returns true when the comment seen feature is enabled. */ export default function useZKeyEnabled() { const [local]...
/content/code_sandbox/client/src/core/client/stream/tabs/Comments/commentSeen/useZKeyEnabled.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
126
```xml export const KUBERNETES_DEFAULT_NAMESPACE = 'default'; export function isDefaultNamespace(namespace: string) { return namespace === KUBERNETES_DEFAULT_NAMESPACE; } ```
/content/code_sandbox/app/react/kubernetes/namespaces/isDefaultNamespace.ts
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
37
```xml import React from 'react'; import { Animated, Platform, View, ViewProps } from 'react-native'; interface Props extends ViewProps { visibility?: 0 | 1 | Animated.AnimatedInterpolation<number>; index: number; } class BottomNavigationRouteScreen extends React.Component<Props> { render(): JSX.Element { c...
/content/code_sandbox/src/components/BottomNavigation/BottomNavigationRouteScreen.tsx
xml
2016-10-19T05:56:53
2024-08-16T08:48:04
react-native-paper
callstack/react-native-paper
12,646
238
```xml import { ButtonProps, Icon, Text } from '@chakra-ui/react'; import { FC } from 'react'; import { MdSave } from 'react-icons/md'; import { RippleButton } from './ripple-button'; export const SaveButton: FC<ButtonProps> = (properties) => ( <RippleButton {...properties}> <Icon as={MdSave} boxSize={5} /> ...
/content/code_sandbox/packages/buttons/src/save-button.tsx
xml
2016-05-14T02:18:49
2024-08-16T02:46:28
ElectroCRUD
garrylachman/ElectroCRUD
1,538
98
```xml <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="path_to_url" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/gray_bbbbbb" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" a...
/content/code_sandbox/library/src/main/res/layout/listitem_calendar_header.xml
xml
2016-08-10T11:04:33
2024-07-22T02:46:12
CalendarListView
Kelin-Hong/CalendarListView
1,067
222
```xml import type { Action } from '@reduxjs/toolkit'; import { createSlice } from '@reduxjs/toolkit'; import type { RequireSome } from '@proton/shared/lib/interfaces'; import { createImporterThunk } from './createImporter.action'; import * as actions from './oauthDraft.actions'; import type { OauthDraftState } from ...
/content/code_sandbox/packages/activation/src/logic/draft/oauthDraft/oauthDraft.slice.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
812
```xml <?xml version="1.0" encoding="utf-8"?> <vector xmlns:android="path_to_url" android:width="@dimen/triangle_cornerflag_width" android:height="@dimen/triangle_cornerflag_width" android:viewportWidth="24.0" android:viewportHeight="24.0"> <path android:fillColor="@android:color/black" ...
/content/code_sandbox/RxUI/src/main/res/drawable/triangle_background.xml
xml
2016-09-24T09:30:45
2024-08-16T09:54:41
RxTool
Tamsiree/RxTool
12,242
107
```xml import { createNext, FileRef } from 'e2e-utils' import { NextInstance } from 'e2e-utils' import { fetchViaHTTP, renderViaHTTP } from 'next-test-utils' import path from 'path' import { promises as fs } from 'fs' import { readJson } from 'fs-extra' // TODO: `node-fetch` hangs on some of these tests in Node.js. //...
/content/code_sandbox/test/e2e/edge-compiler-can-import-blob-assets/index.test.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
767
```xml import * as React from 'react'; import FaiLikeCheckbox from 'shared/view/elements/FaiLikeCheckbox/FaiLikeCheckbox'; interface ILocalProps { isSelected: boolean; isDisabled: boolean; onHover?(): void; onUnhover?(): void; onChange: (value: boolean) => void; } type AllProps = ILocalProps; cl...
/content/code_sandbox/webapp/client/src/shared/view/domain/CompareEntities/CompareClickAction/CompareClickAction.tsx
xml
2016-10-19T01:07:26
2024-08-14T03:53:55
modeldb
VertaAI/modeldb
1,689
213
```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 { EventSubject } from '../utils/event-subject.js'; import { CDSState, setupCDSGlobal } from '../utils/global.js'; import { LogService } from './log.service...
/content/code_sandbox/packages/core/src/internal/services/global.service.ts
xml
2016-09-29T17:24:17
2024-08-11T17:06:15
clarity
vmware-archive/clarity
6,431
234
```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>14A356a</string> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>AppleHDAHardwar...
/content/code_sandbox/Clover-Configs/Lenovo/G50-70M/CLOVER/kexts/Other/AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
9,811
```xml <?xml version="1.0" encoding="UTF-8"?> <module type="JAVA_MODULE" version="4"> <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="ja...
/content/code_sandbox/flexmark-test-specs/flexmark-test-specs.iml
xml
2016-01-23T15:29:29
2024-08-15T04:04:18
flexmark-java
vsch/flexmark-java
2,239
231
```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 FLOAT32_EXPONENT_BIAS = require( './index' ); // TESTS // // The export is a number... { // eslint-disa...
/content/code_sandbox/lib/node_modules/@stdlib/constants/float32/exponent-bias/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
105
```xml import * as SecureStore from 'expo-secure-store'; import * as React from 'react'; import { Alert, Platform, ScrollView, Text, TextInput, View, Switch, StyleSheet, } from 'react-native'; import ListButton from '../components/ListButton'; import Colors from '../constants/Colors'; import { useResol...
/content/code_sandbox/apps/native-component-list/src/screens/SecureStoreScreen.tsx
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
1,381
```xml /*your_sha256_hash----------------------------- *your_sha256_hash----------------------------*/ import * as assert from 'assert'; import * as TypeMoq from 'typemoq'; import { IConfig, IStatusView, IHttpClient, IDecompressProvider } from '../../src/languageservice/interfaces'; import ServiceDownloadProvider fro...
/content/code_sandbox/test/unit/download.test.ts
xml
2016-06-26T04:38:04
2024-08-16T20:04:12
vscode-mssql
microsoft/vscode-mssql
1,523
2,252
```xml /* * 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 CO...
/content/code_sandbox/traffic_portal/test/integration/specs/Parameters.spec.ts
xml
2016-09-02T07:00:06
2024-08-16T03:50:21
trafficcontrol
apache/trafficcontrol
1,043
622
```xml import { ComponentSlotStylesPrepared, ICSSInJSStyle } from '@fluentui/styles'; import { ToolbarMenuRadioGroupWrapperProps } from '../../../../components/Toolbar/ToolbarMenuRadioGroupWrapper'; import { ToolbarVariables } from './toolbarVariables'; export const toolbarMenuRadioGroupWrapperStyles: ComponentSlotSt...
/content/code_sandbox/packages/fluentui/react-northstar/src/themes/teams/components/Toolbar/toolbarMenuRadioGroupWrapperStyles.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
97
```xml import fs from 'fs' import path from 'path' import { applyPatchToDir } from '@pnpm/patching.apply-patch' import { docsUrl } from '@pnpm/cli-utils' import { type Config, types as allTypes } from '@pnpm/config' import { type LogBase } from '@pnpm/logger' import { type CreateStoreControllerOptions, } from '@pnpm/...
/content/code_sandbox/patching/plugin-commands-patching/src/patch.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
1,248
```xml <?xml version="1.0" encoding="utf-8"?> <org.thoughtcrime.securesms.ConversationListItem xmlns:android="path_to_url" xmlns:app="path_to_url" xmlns:tools="path_to_url" android:background="?attr/conversation_list_item_background" android:layout_width="match_parent" an...
/content/code_sandbox/src/main/res/layout/conversation_list_item_view.xml
xml
2016-07-03T07:32:36
2024-08-16T16:51:15
deltachat-android
deltachat/deltachat-android
1,082
1,202
```xml import React, { useEffect, useMemo, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { useParams } from "react-router-dom"; import { getAuthInitialization, getUserAuthDetails } from "store/selectors"; import { getRecording } from "backend/sessionRecording/getRecording"; imp...
/content/code_sandbox/app/src/features/sessionBook/screens/SavedSessionScreen/SavedSessionScreen.tsx
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
708
```xml /** * Parse an email address into its local and domain parts. * * @param email The email address to parse * @returns The local and domain parts of the email address, in lowercase */ export function parseEmail(email: string): { local: string; domain: string } { const [local, domain] = email.toLowerCase().s...
/content/code_sandbox/shared/utils/email.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
99
```xml import * as React from 'react' import { DialogFooter, DialogContent, Dialog } from '../dialog' import { OkCancelButtonGroup } from '../dialog/ok-cancel-button-group' interface IConfirmExitTutorialProps { readonly onDismissed: () => void readonly onContinue: () => boolean } export class ConfirmExitTutorial...
/content/code_sandbox/app/src/ui/tutorial/confirm-exit-tutorial.tsx
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
261
```xml declare module "*.svg" { const content: string; export default content; } ```
/content/code_sandbox/src/svg-shim.d.ts
xml
2016-07-17T15:01:51
2024-08-09T16:00:56
eme
egoist/eme
2,041
19
```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 */ export * from './aria-describer/aria-describer'; export * from './aria-describer/aria-reference'; export * from './key-manager/activedescendant-key-manager'; export * from...
/content/code_sandbox/src/cdk/a11y/public-api.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
366
```xml <?xml version="1.1" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url" logicalFilePath="migration/node-services.changelog-init.xml"> <changeSet author="R3.Cord...
/content/code_sandbox/node/src/main/resources/migration/node-core.changelog-v10.xml
xml
2016-10-06T08:46:29
2024-08-15T09:36:24
corda
corda/corda
3,974
147
```xml import { Chunk, Compiler } from 'webpack'; export default class AssetRelocatorPatch { private readonly isProd: boolean; private readonly nodeIntegration: boolean; constructor(isProd: boolean, nodeIntegration: boolean) { this.isProd = isProd; this.nodeIntegration = nodeIntegration; } private...
/content/code_sandbox/packages/plugin/webpack/src/util/AssetRelocatorPatch.ts
xml
2016-10-05T14:51:53
2024-08-15T20:08:12
forge
electron/forge
6,380
523
```xml import { packageName } from '../../util/pkg-name'; export const bisectCommand = { name: 'bisect', description: 'Bisect the current project interactively.', arguments: [], options: [ { name: 'bad', description: 'Known bad URL', argument: 'URL', shorthand: 'b', type: Stri...
/content/code_sandbox/packages/cli/src/commands/bisect/command.ts
xml
2016-09-09T01:12:08
2024-08-16T17:39:45
vercel
vercel/vercel
12,545
368
```xml /* * Squidex Headless CMS * * @license */ import { Injectable } from '@angular/core'; import { Log, User, UserManager, WebStorageStateStore } from 'oidc-client-ts'; import { Observable, ReplaySubject } from 'rxjs'; import { ApiUrlConfig } from '@app/framework'; export class Profile { public get id() { ...
/content/code_sandbox/frontend/src/app/shared/services/auth.service.ts
xml
2016-08-29T05:53:40
2024-08-16T17:39:38
squidex
Squidex/squidex
2,222
1,110
```xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>$(DEVELOPMENT_LANGUAGE)</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key...
/content/code_sandbox/Prj-iOS/ARLiveKit/Info.plist
xml
2016-08-26T06:35:48
2024-08-15T03:26:11
anyRTC-RTMP-OpenSource
anyrtcIO-Community/anyRTC-RTMP-OpenSource
4,672
222
```xml <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="path_to_url"> <ItemGroup> <Filter Include="openssl"> <UniqueIdentifier>{A2039617-BE22-2E2D-B4F3-3B64B7BAFB84}</UniqueIdentifier> </Filter> <Filter Include="openssl\ssl"> <UniqueIdentifier>{9619347D-2389-BF68-D54C-...
/content/code_sandbox/node/openssl/openssl.vcxproj.filters
xml
2016-09-27T03:41:10
2024-08-16T10:42:57
miniblink49
weolar/miniblink49
7,069
108,320
```xml // See LICENSE in the project root for license information. import * as path from 'path'; import { InternalError, JsonSchema } from '@rushstack/node-core-library'; import type { IHeftPlugin } from '../pluginFramework/IHeftPlugin'; import type { IScopedLogger } from '../pluginFramework/logging/ScopedLogger'; im...
/content/code_sandbox/apps/heft/src/configuration/HeftPluginDefinition.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
2,510
```xml const Counter = decorator("my-counter")( (props: { initialCount?: number; label?: string }) => { const p = useDefault(props, { initialCount: 0, label: "Counter", }); const [s, set] = useState({ count: p.initialCount }); const onClick = () => set("count", (it) => it + 1); retur...
/content/code_sandbox/tests/format/typescript/last-argument-expansion/decorated-function.tsx
xml
2016-11-29T17:13:37
2024-08-16T17:29:57
prettier
prettier/prettier
48,913
324
```xml import Header from "../_components/header"; export default function AboutPage() { return ( <> <Header /> <h1>About page</h1> </> ); } ```
/content/code_sandbox/examples/dynamic-routing/app/about/page.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
40
```xml import * as path from "path"; import * as vs from "vscode"; import { Analyzer } from "../shared/analyzer"; import { DartCapabilities } from "../shared/capabilities/dart"; import { DaemonCapabilities, FlutterCapabilities } from "../shared/capabilities/flutter"; import { vsCodeVersion } from "../shared/capabilitie...
/content/code_sandbox/src/extension/extension.ts
xml
2016-07-30T13:49:11
2024-08-10T16:23:15
Dart-Code
Dart-Code/Dart-Code
1,472
11,817
```xml export function hrToSeconds(hrtime: ReturnType<typeof process.hrtime>): string { const raw = hrtime[0] + hrtime[1] / 1e9; return raw.toFixed(2) + 's'; } export function containsAriaDescriptionWarning(message: string): boolean { return message.startsWith( 'Warning: Invalid aria prop %s on <%s> tag. Fo...
/content/code_sandbox/scripts/test-ssr/src/utils/helpers.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
98
```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. --> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <modelVersion>4.0.0</mo...
/content/code_sandbox/ui-ngx/pom.xml
xml
2016-12-01T09:33:30
2024-08-16T19:58:25
thingsboard
thingsboard/thingsboard
16,820
843
```xml <?xml version="1.0" encoding="utf-8"?> <data-extraction-rules> <cloud-backup> <exclude domain="root" /> <exclude domain="file" /> <exclude domain="database" /> <exclude domain="sharedpref" /> <exclude domain="external" /> </cloud-backup> <device-transfer> ...
/content/code_sandbox/app/src/main/res/xml/data_extraction_rules.xml
xml
2016-05-04T11:46:20
2024-08-15T16:29:10
android
meganz/android
1,537
132
```xml import {isPlainObject, isString, Store, StoreMerge, useDecorators} from "@tsed/core"; import {CollectionOf, Property} from "@tsed/schema"; import {MONGOOSE_MODEL_NAME, MONGOOSE_SCHEMA} from "../constants/constants.js"; import {MongooseVirtualRefOptions} from "../interfaces/MongooseVirtualRefOptions.js"; import {...
/content/code_sandbox/packages/orm/mongoose/src/decorators/virtualRef.ts
xml
2016-02-21T18:38:47
2024-08-14T21:19:48
tsed
tsedio/tsed
2,817
572
```xml <!-- ~ <p/> ~ <p/> ~ path_to_url ~ <p/> ~ 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:app="path_to_url"> <item android:id="@+id/action_cha...
/content/code_sandbox/sample/src/main/res/menu/menu_activity_main.xml
xml
2016-11-23T18:24:38
2024-07-18T14:16:46
faboptions
JoaquimLey/faboptions
1,040
162
```xml import { createNext, FileRef } from 'e2e-utils' import { NextInstance } from 'e2e-utils' import { assertHasRedbox, getRedboxSource } from 'next-test-utils' import webdriver from 'next-webdriver' import { join } from 'path' describe('font-loader-in-document-error', () => { let next: NextInstance beforeAll(a...
/content/code_sandbox/test/development/next-font/font-loader-in-document-error.test.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
272
```xml <FrameLayout 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" tools:context="in.hbb20.countrycodepickerproject.CustomSizeFragment"> <androidx.cardview.widget.CardView style="@style/paren...
/content/code_sandbox/app/src/main/res/layout/fragment_custom_size.xml
xml
2016-01-20T10:28:34
2024-08-13T16:24:01
CountryCodePickerProject
hbb20/CountryCodePickerProject
1,506
1,569
```xml <?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)-maccatalyst</TargetFramework> </PropertyGroup> <!-- Imports of the form '../shared.fsproj' will be processed by xharness --> <Import Project="../sha...
/content/code_sandbox/tests/bindings-test/dotnet/MacCatalyst/bindings-test.csproj
xml
2016-04-20T18:24:26
2024-08-16T13:29:19
xamarin-macios
xamarin/xamarin-macios
2,436
113
```xml import React from 'react'; import Wrapper from '@erxes/ui/src/layout/components/Wrapper'; import { __ } from '@erxes/ui/src/utils/core'; import Table from '@erxes/ui/src/components/table'; import Button from '@erxes/ui/src/components/Button'; import Row from './InventoryProductsRow'; import { CollapseContent, ...
/content/code_sandbox/packages/plugin-syncerkhet-ui/src/components/inventoryProducts/InventoryProducts.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,643
```xml import { Localized } from "@fluent/react/compat"; import React, { FunctionComponent } from "react"; import { graphql } from "react-relay"; import { ExternalLink } from "coral-framework/lib/i18n/components"; import { FormFieldDescription } from "coral-ui/components/v2"; import Header from "../../Header"; import...
/content/code_sandbox/client/src/core/client/admin/routes/Configure/sections/Auth/SSOConfig.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
544
```xml <Project Sdk="Microsoft.NET.Sdk"> <Import Project="..\..\common.props" /> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <Nullable>enable</Nullable> <RootNamespace>MyCompanyName.MyProjectName</RootNamespace> </PropertyGroup> <ItemGroup> <ProjectReference Include="..\..\..\.....
/content/code_sandbox/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi.Client/MyCompanyName.MyProjectName.HttpApi.Client.csproj
xml
2016-12-03T22:56:24
2024-08-16T16:24:05
abp
abpframework/abp
12,657
171
```xml import * as mediaWallCustomAction from '../actions/media-wall-custom'; import { WallHeader, WallBackground, WallCard } from '../models'; export interface State { wallHeader: WallHeader; wallBackground: WallBackground; wallCard: WallCard; } export const initialState: State = { wallHeader: { backgroundColo...
/content/code_sandbox/src/app/reducers/media-wall-custom.ts
xml
2016-09-20T13:50:42
2024-08-06T13:58:18
loklak_search
fossasia/loklak_search
1,829
485
```xml export enum Currency { AED = 'AED', // 'UNITED ARAB EMIRATES DIRHAM' AFN = 'AFN', // 'AFGHAN AFGHANI' ALL = 'ALL', // 'ALBANIAN LEK' AMD = 'AMD', // 'ARMENIAN DRAM' ANG = 'ANG', // 'NETHERLANDS ANTILLEAN GUILDER' AOA = 'AOA', // 'ANGOLAN KWANZA' ARS = 'ARS', // 'ARGENTINE PESO' AUD = 'AUD', // 'A...
/content/code_sandbox/apps/portal/src/utils/offers/currency/CurrencyEnum.tsx
xml
2016-07-05T05:00:48
2024-08-16T19:01:19
tech-interview-handbook
yangshun/tech-interview-handbook
115,302
3,459
```xml import { deepMix } from '@antv/util'; import { TransformComponent as TC } from '../runtime'; import { StackYTransform } from '../spec'; import { column, columnOf, inferredColumn, maybeColumnOf, } from './utils/helper'; import { normalizeComparator, createGroups, applyOrder } from './utils/order'; export...
/content/code_sandbox/src/transform/stackY.ts
xml
2016-05-26T09:21:04
2024-08-15T16:11:17
G2
antvis/G2
12,060
964
```xml import * as vscode from 'vscode'; import { DocumentSelector, ExtensionContext } from 'vscode'; export function registerHighlightProvider(ctx: ExtensionContext, documentSelector: DocumentSelector) { // highlight provider let pairedEnds = []; const getEnd = function (line) { //end must be on a line by itsel...
/content/code_sandbox/packages/vscode-ruby-client/src/providers/highlight.ts
xml
2016-02-24T04:14:24
2024-08-12T08:08:29
vscode-ruby
rubyide/vscode-ruby
1,260
614
```xml <dict> <key>CommonPeripheralDSP</key> <array> <dict> <key>DeviceID</key> <integer>0</integer> <key>DeviceType</key> <string>Headphone</string> </dict> <dict> <key>DeviceID</key> <integer>0</integer> <key>DeviceType</key> <string>Microphone</string> </dict> </array> <key>PathMa...
/content/code_sandbox/Resources/ALC289/Platforms87.xml
xml
2016-03-07T20:45:58
2024-08-14T08:57:03
AppleALC
acidanthera/AppleALC
3,420
1,572
```xml import React, { FunctionComponent } from "react"; const ButtonPlayIcon: FunctionComponent = () => { // path_to_url return ( <svg viewBox="-0.25 -0.25 24.5 24.5" xmlns="path_to_url"> <path d="M0.750 11.998 A11.250 11.250 0 1 0 23.250 11.998 A11.250 11.250 0 1 0 0.750 11.998 Z" fill=...
/content/code_sandbox/client/src/core/client/ui/components/icons/ButtonPlayIcon.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
256
```xml import App from '../src/App'; import { onlyViewActions, onlyCommands } from '../src/middleware/builtin'; const app = new App({ token: 'TOKEN', signingSecret: 'Signing Secret' }); // path_to_url app.use(async (args) => { onlyViewActions(args); }); app.use(async (args) => { onlyCommands(args); }); app.use(as...
/content/code_sandbox/types-tests/middleware.test-d.ts
xml
2016-07-19T02:46:33
2024-08-16T12:34:33
bolt-js
slackapi/bolt-js
2,729
108
```xml import { act, fireEvent, screen, waitFor, within, } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { commitLocalUpdate } from "relay-runtime"; import { pureMerge } from "coral-common/common/lib/utils"; import { GQLCOMMENT_SORT, GQLCOMMENT_STATUS, GQLRe...
/content/code_sandbox/client/src/core/client/admin/test/moderate/regularQueue.spec.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
6,739
```xml // See LICENSE in the project root for license information. // This function will read the current directory and try to figure out if it's a rush project or regular pnpm workspace // Currently it will throw error if neither can be determined import { FileSystem, Path } from '@rushstack/node-core-library'; impo...
/content/code_sandbox/apps/lockfile-explorer/src/utils/init.ts
xml
2016-09-30T00:28:20
2024-08-16T18:54:35
rushstack
microsoft/rushstack
5,790
699
```xml import { Admin, Resource, ShowGuesser } from 'react-admin'; import jsonServerProvider from 'ra-data-json-server'; import PostIcon from '@mui/icons-material/Book'; import UserIcon from '@mui/icons-material/Group'; import { PostList, PostEdit, PostCreate } from './posts'; import { UserList } from './users'; impor...
/content/code_sandbox/examples/tutorial/src/App.tsx
xml
2016-07-13T07:58:54
2024-08-16T18:32:27
react-admin
marmelab/react-admin
24,624
213
```xml export enum E2ePingEvents { E2E_RTT_CHANGED = 'e2eping.e2e_rtt_changed' } ```
/content/code_sandbox/types/hand-crafted/service/e2eping/E2ePingEvents.d.ts
xml
2016-01-27T22:44:09
2024-08-16T02:51:56
lib-jitsi-meet
jitsi/lib-jitsi-meet
1,328
29
```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 randu = require( '@stdlib/random/iter/randu' ); import iterator2array = require( './index' ); /** * Multip...
/content/code_sandbox/lib/node_modules/@stdlib/array/from-iterator/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
710
```xml export interface ParentProps { /** prop1 */ prop1?: number; } ```
/content/code_sandbox/src/__tests__/data/ExtendsExternalPropsComponentParentProps.tsx
xml
2016-05-06T14:40:29
2024-08-15T13:51:56
react-docgen-typescript
styleguidist/react-docgen-typescript
1,176
18
```xml import { useEffect, useState } from "react"; import { getFunctions, httpsCallable } from "firebase/functions"; import Logger from "lib/logger"; import { useSelector } from "react-redux"; import { getAuthInitialization } from "store/selectors"; export const useIsTeamAdmin = (teamId: string): { isLoading: boolean...
/content/code_sandbox/app/src/features/settings/components/Profile/ManageTeams/TeamViewer/hooks/useIsTeamAdmin.ts
xml
2016-12-01T04:36:06
2024-08-16T19:12:19
requestly
requestly/requestly
2,121
244
```xml export * from "./EventCard"; export * from "./IEventCardProps"; ```
/content/code_sandbox/samples/react-calendar-feed/src/shared/components/EventCard/index.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
17
```xml import { isArray } from './common-utils'; /* eslint-disable @typescript-eslint/ban-types */ export class BaseTreeNode<T extends object> { children: TreeNode<T>[] = []; isLeaf = true; parent?: TreeNode<T>; constructor(props: T) { Object.assign(this, props); } static create<T extends object>(pro...
/content/code_sandbox/npm/ng-packs/packages/core/src/lib/utils/tree-utils.ts
xml
2016-12-03T22:56:24
2024-08-16T16:24:05
abp
abpframework/abp
12,657
756
```xml import 'react-native-gesture-handler'; import React, { useEffect, useMemo, useRef } from 'react'; import { StyleSheet, View, useWindowDimensions, Text } from 'react-native'; import Animated, { useAnimatedStyle, useSharedValue, withSpring, withTiming, } from 'react-native-reanimated'; import { Gesture, ...
/content/code_sandbox/docs/src/examples/GestureStateFlowExample/index.tsx
xml
2016-10-27T08:31:38
2024-08-16T12:03:40
react-native-gesture-handler
software-mansion/react-native-gesture-handler
5,989
1,043
```xml import { pick } from "lodash"; import { graphql } from "react-relay"; import { Environment } from "relay-runtime"; import { CoralContext } from "coral-framework/lib/bootstrap"; import { commitMutationPromiseNormalized, createMutationContainer, lookup, MutationInput, MutationResponsePromise, } from "co...
/content/code_sandbox/client/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentMutation.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
657
```xml /* eslint-disable @typescript-eslint/no-unnecessary-type-constraint */ import type { FC, ReactElement } from 'react'; import * as React from 'react'; import type { Root as ReactRoot, RootOptions } from 'react-dom/client'; import * as ReactDOM from 'react-dom/client'; import { preventActChecks } from './preventA...
/content/code_sandbox/code/lib/react-dom-shim/src/react-18.tsx
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
497
```xml <?xml version="1.0" encoding="UTF-8"?> <configuration> <contextName>springboot-dataSource</contextName> <!-- --> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%method - %msg%n</pattern> ...
/content/code_sandbox/springboot-dynamicDataSource/src/main/resources/local/logback-spring.xml
xml
2016-11-07T02:13:31
2024-08-16T08:17:57
springBoot
527515025/springBoot
6,488
395
```xml import { Expose } from 'class-transformer'; import { Feed } from '../core/feed'; import { DirectInboxFeedResponse, DirectInboxFeedResponseThreadsItem } from '../responses'; import { DirectThreadEntity } from '../entities'; export class DirectPendingInboxFeed extends Feed<DirectInboxFeedResponse, DirectInboxFeed...
/content/code_sandbox/src/feeds/direct-pending.feed.ts
xml
2016-06-09T12:14:48
2024-08-16T10:07:22
instagram-private-api
dilame/instagram-private-api
5,877
322
```xml import { Model } from 'mongoose'; import { ITemplate, TemplateDocument, templateSchema } from './definitions/templates'; type ITemplateDocument = Omit< ITemplate, '_id' | 'createdAt' | 'updatedAt' | 'createdBy' | 'updatedBy' >; export interface ITemplateModal extends Model<TemplateDocument> { getTe...
/content/code_sandbox/packages/plugin-template-api/src/models/Templates.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
528
```xml import { unwrap, usableHeight, usableWidth, viewportHeight, viewportWidth, wrap } from "./common.js"; // scaleFactor returns the scale factor with which the image should be // transformed. The tw and th parameters specify the maximum usable width and // height in the viewport. function scaleFactor(img: HTMLImag...
/content/code_sandbox/src/zoom-image.ts
xml
2016-10-01T02:48:24
2024-07-19T21:09:51
zoom.js
nishanths/zoom.js
1,346
1,311
```xml import { selectors } from './dialog-example'; describe('Dialog', () => { const trigger = `#${selectors.trigger}`; const cancelButton = `#${selectors.cancelButton}`; beforeEach(() => { cy.gotoTestCase(__filename, trigger); cy.get('body').click('bottomRight'); }); it('should open on click trig...
/content/code_sandbox/packages/fluentui/e2e/tests/dialog.spec.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
335
```xml import * as React from 'react'; import { mountWithProvider as mount } from 'test/utils'; import { TextArea } from 'src/components/TextArea/TextArea'; import { isConformant } from 'test/specs/commonTests'; import * as faker from 'faker'; describe('TextArea', () => { isConformant(TextArea, { testPath: __filenam...
/content/code_sandbox/packages/fluentui/react-northstar/test/specs/components/TextArea/TextArea-test.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
263
```xml import path from 'path' import PATH from 'path-name' export function prependDirsToPath (prependDirs: string[], env = process.env): { name: string, value: string } { return { name: PATH, value: [ ...prependDirs, ...(env[PATH] != null ? [env[PATH]] : []), ].join(path.delimiter), } } `...
/content/code_sandbox/env/path/src/index.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
84
```xml import { log } from '../../../main-process/log' import { formatLogMessage } from '../format-log-message' const g = global as any g.log = { error(message: string, error?: Error) { log('error', '[main] ' + formatLogMessage(message, error)) }, warn(message: string, error?: Error) { log('warn', '[mai...
/content/code_sandbox/app/src/lib/logging/main/install.ts
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
160
```xml import { getOrganization } from '@proton/shared/lib/api/organization'; import { addApiMock } from '@proton/testing'; export const organizationDefaultResponse = { Code: 1000, Organization: { Name: '', DisplayName: '', PlanName: 'bundle2022', PlanFlags: 7, TwoFactor...
/content/code_sandbox/packages/components/hooks/helpers/test/useOrganization.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
346
```xml import { ContentType } from '@standardnotes/domain-core' import { ContentReferenceType, MutationType } from '../../Abstract/Item' import { createFile, createTagWithContent, createTagWithTitle } from '../../Utilities/Test/SpecUtils' import { SNTag } from './Tag' import { TagMutator } from './TagMutator' describe...
/content/code_sandbox/packages/models/src/Domain/Syncable/Tag/TagMutator.spec.ts
xml
2016-12-05T23:31:33
2024-08-16T06:51:19
app
standardnotes/app
5,180
532
```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url"> <parent> <artifactId>whatsmars-spring-boot-samples</artifactId> <groupId>org.hongxi</groupId> <version>2021.4.1</version> </p...
/content/code_sandbox/whatsmars-spring-boot-samples/whatsmars-boot-sample-thymeleaf/pom.xml
xml
2016-04-01T10:33:04
2024-08-14T23:44:08
whatsmars
javahongxi/whatsmars
1,952
204
```xml function _getDimension(node, dim) { const raw = node.style[dim] || node[dim]; if (!raw) { return [null, '']; } const valueRegexp = /([\d.]*)(.*)/; const match = valueRegexp.exec(raw); if (!match) { return [null, '']; } const value = match[1]; const units = match[2] || 'px'; return [N...
/content/code_sandbox/app/internal_packages/message-list/lib/adjust-images.ts
xml
2016-10-13T06:45:50
2024-08-16T18:14:37
Mailspring
Foundry376/Mailspring
15,331
475
```xml import { mock } from "jest-mock-extended"; import { of, firstValueFrom } from "rxjs"; import { PolicyType } from "@bitwarden/common/admin-console/enums"; // FIXME: use index.ts imports once policy abstractions and models // implement ADR-0002 import { Policy } from "@bitwarden/common/admin-console/models/domain...
/content/code_sandbox/libs/tools/generator/core/src/strategies/password-generator-strategy.spec.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
2,824
```xml import fs from 'node:fs' export function isEmptyDirOrNothing (path: string): boolean { try { const pathStat = fs.statSync(path) if (pathStat.isFile()) { return pathStat.size === 0 } return isDirEmpty(path) } catch (error) { if (error && typeof error === 'object' && 'code' in erro...
/content/code_sandbox/fs/is-empty-dir-or-nothing/src/index.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
158
```xml import { createServer, AddressInfo, Server, Socket } from 'net' import split2 from 'split2' import { sendNonFatalException } from '../helpers/non-fatal-exception' import { ITrampolineCommand, TrampolineCommandHandler, TrampolineCommandIdentifier, } from './trampoline-command' import { TrampolineCommandPars...
/content/code_sandbox/app/src/lib/trampoline/trampoline-server.ts
xml
2016-05-11T15:59:00
2024-08-16T17:00:41
desktop
desktop/desktop
19,544
1,245
```xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="path_to_url" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:weightSum="1"> <TextView android:id="@+id/descriptionLabel" android:layout_widt...
/content/code_sandbox/app/src/main/res/layout/quest_generic_list.xml
xml
2016-07-02T10:44:04
2024-08-16T18:55:54
StreetComplete
streetcomplete/StreetComplete
3,781
196