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 { Star } from "@server/models"; export default function presentStar(star: Star) { return { id: star.id, documentId: star.documentId, collectionId: star.collectionId, index: star.index, createdAt: star.createdAt, updatedAt: star.updatedAt, }; } ```
/content/code_sandbox/server/presenters/star.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
68
```xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="path_to_url"> <item android:drawable="@drawable/ic_folder_incoming_medium_regular_solid" android:state_selected="true"/> <item android:drawable="@drawable/ic_folder_incoming_medium_regular_outline"/> </selector> ```
/content/code_sandbox/app/src/main/res/drawable/ic_folder_incoming_medium_regular_selector.xml
xml
2016-05-04T11:46:20
2024-08-15T16:29:10
android
meganz/android
1,537
68
```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>15G1004</string> <key>CFBundleDevelopmentRegion</key> <string>English</string> <key>CFBundleExecutable</key> <string>ACPISensors</st...
/content/code_sandbox/Clover-Configs/Lenovo/G50-80/10.12.5 - Clover/CLOVER/kexts/10.12/FakeSMC.kext/Contents/PlugIns/FakeSMC_ACPISensors.kext/Contents/Info.plist
xml
2016-11-05T04:22:54
2024-08-12T19:25:53
Hackintosh-Installer-University
huangyz0918/Hackintosh-Installer-University
3,937
2,291
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10116" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="H...
/content/code_sandbox/Project 06 - CandySearch/CandySearch/Base.lproj/Main.storyboard
xml
2016-02-14T20:14:21
2024-08-15T20:49:08
Swift-30-Projects
soapyigu/Swift-30-Projects
8,036
3,152
```xml import 'mocha'; import { assert } from 'chai'; import sinon from 'sinon'; import rewiremock from 'rewiremock'; import { WebClient } from '@slack/web-api'; import { WorkflowStep, SlackWorkflowStepMiddlewareArgs, AllWorkflowStepMiddlewareArgs, WorkflowStepMiddleware, WorkflowStepConfig, WorkflowStepEdi...
/content/code_sandbox/src/WorkflowStep.spec.ts
xml
2016-07-19T02:46:33
2024-08-16T12:34:33
bolt-js
slackapi/bolt-js
2,729
2,984
```xml <vector xmlns:android="path_to_url" android:width="16dp" android:height="16dp" android:viewportHeight="16" android:viewportWidth="16"> <group> <clip-path android:pathData="M0,0h16v16h-16z" /> <path android:fillColor="#505059" android:fillType="evenOdd" ...
/content/code_sandbox/app/src/main/res/drawable/ic_send_disabled.xml
xml
2016-04-30T16:43:17
2024-08-16T19:45:08
android
bitwarden/android
6,085
559
```xml import { colors } from '../styles'; import React from 'react'; import Toggle from 'react-toggle'; import 'react-toggle/style.css'; import styled from 'styled-components'; const Wrapper = styled.div` line-height: 10px; .react-toggle--checked .react-toggle-track { width: 42px; background-color: ${colo...
/content/code_sandbox/packages/erxes-ui/src/components/Toggle.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
439
```xml export { type RGBColor, type TextColor, colors, FOREGROUND_COLORS_BY_ANSI, BACKGROUND_COLORS_BY_ANSI, } from './colors'; ```
/content/code_sandbox/app/docker/helpers/logHelper/colors/index.ts
xml
2016-05-19T20:15:28
2024-08-16T19:15:14
portainer
portainer/portainer
30,083
36
```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 isStrictEqual = require( './index' ); // TESTS // // The function returns a boolean... { isStrictEqual(...
/content/code_sandbox/lib/node_modules/@stdlib/assert/is-strict-equal/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
184
```xml /* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable no-magic-numbers */ /* * This partial adds DllReferencePlugin to the main bundle for referencing * DLL bundles. */ import * as fs from "fs"; import * as Path from "path"; import * as webpack from "webpack"; const filterScanDir = requ...
/content/code_sandbox/packages/xarc-webpack/src/partials/dll-reference.ts
xml
2016-09-06T19:02:39
2024-08-11T11:43:11
electrode
electrode-io/electrode
2,103
343
```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 iterAcovercos = require( './index' ); /** * Returns an iterator protocol-compliant object. * * @returns it...
/content/code_sandbox/lib/node_modules/@stdlib/math/iter/special/acovercos/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
348
```xml <Project Sdk="Microsoft.NET.Sdk.Razor"> <Import Project="..\..\..\..\configureawait.props" /> <Import Project="..\..\..\..\common.props" /> <PropertyGroup> <TargetFramework>net8.0</TargetFramework> <RootNamespace>Volo.Abp.SettingManagement.Blazor</RootNamespace> </PropertyGroup>...
/content/code_sandbox/modules/setting-management/src/Volo.Abp.SettingManagement.Blazor/Volo.Abp.SettingManagement.Blazor.csproj
xml
2016-12-03T22:56:24
2024-08-16T16:24:05
abp
abpframework/abp
12,657
194
```xml import { Accordion, AccordionHeader, AccordionItem, AccordionPanel } from '@fluentui/react-components'; export { Default } from './AccordionDefault.stories'; export { Collapsible } from './AccordionCollapsible.stories'; export { Controlled } from './AccordionControlled.stories'; export { Multiple } from './Accor...
/content/code_sandbox/packages/react-components/react-accordion/stories/src/Accordion/index.stories.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
353
```xml <?xml version="1.0" encoding="utf-8" ?> <services> <admin version="2.0"> <adminserver hostalias="node1" /> <logserver hostalias="node1" /> <slobroks> <slobrok hostalias="node1" /> </slobroks> </admin> <content version="1.0" id="music"> <redundancy>1<...
/content/code_sandbox/config-model/src/test/cfg/routing/content_two_clusters/services.xml
xml
2016-06-03T20:54:20
2024-08-16T15:32:01
vespa
vespa-engine/vespa
5,524
237
```xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="path_to_url" android:shape="rectangle"> <solid android:color="@color/colorPrimary" /> <corners android:radius="2dp" /> <size android:width="60dp" android:height="30dp" /> </shape> ```
/content/code_sandbox/app/src/main/res/drawable/btn_pin_solid_bg.xml
xml
2016-06-01T04:36:01
2024-08-14T06:51:22
bilibili-android-client
HotBitmapGG/bilibili-android-client
4,487
80
```xml <?xml version="1.0" encoding="utf-8"?> <layout xmlns:app="path_to_url"> <data> <import type="android.view.View" /> <variable name="fuckgoods" type="com.wingsofts.gankclient.bean.FuckGoods" /> </data> <android.support.v7.widget.CardView xmlns:android="path_t...
/content/code_sandbox/app/src/main/res/layout/item_fuckgoods.xml
xml
2016-11-22T10:05:33
2024-08-15T20:35:30
GankClient-Kotlin
githubwing/GankClient-Kotlin
1,527
499
```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 quinary3d = require( './index' ); /** * Quinary function. * * @param x - input value * @param y - input va...
/content/code_sandbox/lib/node_modules/@stdlib/array/base/quinary3d/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
1,792
```xml import { DebuggerType } from "../enums"; export function getDebugAdapterName(debugType: DebuggerType) { let debuggerName: string; switch (debugType) { case DebuggerType.Flutter: debuggerName = "flutter"; break; case DebuggerType.FlutterTest: debuggerName = "flutter_test"; break; case Debugge...
/content/code_sandbox/src/shared/utils/debug.ts
xml
2016-07-30T13:49:11
2024-08-10T16:23:15
Dart-Code
Dart-Code/Dart-Code
1,472
264
```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/modules/pos/module.ts
xml
2016-02-01T21:45:35
2024-08-15T19:16:48
lisk-sdk
LiskArchive/lisk-sdk
2,721
7,761
```xml /********************************************************************************************* ********************************************************************************************** General URL utility functions. For constructing specific URLs (such as ui links to screens, REST or classic links, etc...
/content/code_sandbox/blueocean-core-js/src/js/utils/UrlUtils.ts
xml
2016-01-23T18:02:45
2024-08-13T04:31:34
blueocean-plugin
jenkinsci/blueocean-plugin
2,874
236
```xml export * from '../../dist/types/plugins/encryption-crypto-js/index'; ```
/content/code_sandbox/plugins/encryption-crypto-js/index.ts
xml
2016-12-02T19:34:42
2024-08-16T15:47:20
rxdb
pubkey/rxdb
21,054
15
```xml import { fireEvent, simpleRender } from 'test-utils'; import Button, { Props } from '../Button'; const defaultProps: Props = { children: 'Default', loading: false, disabled: false, onClick: jest.fn() }; function getComponent({ children, loading, disabled, onClick }: Props) { return simpleRender( ...
/content/code_sandbox/src/components/__tests__/Button.test.tsx
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
233
```xml import _ from "lodash"; import React from "react"; import PeriodLockForm from "../containers/PeriodLockForm"; import { IPeriodLock } from "../types"; import { ActionButton } from "@erxes/ui/src/components/ActionButtons"; import Icon from "@erxes/ui/src/components/Icon"; import { formatValue } from "@erxes/ui/sr...
/content/code_sandbox/packages/plugin-loans-ui/src/periodLocks/components/PeriodLockRow.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
492
```xml import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; // import component import { TemplateChallengeCreateComponent } from './template-challenge-create.component'; const routes: Routes = [ { path: '', component: TemplateChallengeCreateComponent, }, ]; @N...
/content/code_sandbox/frontend_v2/src/app/components/template-challenge-create/template-challenge-create-routing.module.ts
xml
2016-10-21T00:51:45
2024-08-16T14:41:56
EvalAI
Cloud-CV/EvalAI
1,736
87
```xml import { IButtonMutateProps, IFormProps } from '@erxes/ui/src/types'; import React, { useState } from 'react'; import { Button, Form as CommonForm, ControlLabel, FormGroup, SelectTeamMembers, __, loadDynamicComponent, } from '@erxes/ui/src'; import { ModalFooter } from '@erxes/ui/src/styles/main'; ...
/content/code_sandbox/packages/plugin-grants-ui/src/section/components/RequestForm.tsx
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
1,044
```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 ssortins = require( './index' ); // TESTS // // The function returns a Float32Array... { const x = new ...
/content/code_sandbox/lib/node_modules/@stdlib/blas/ext/base/ssortins/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
2,385
```xml import { strict as assert } from "assert"; import { DART_DEP_DEPENDENCY_PACKAGE_NODE_CONTEXT, DART_DEP_DEV_DEPENDENCY_PACKAGE_NODE_CONTEXT, DART_DEP_PACKAGE_NODE_CONTEXT, DART_DEP_TRANSITIVE_DEPENDENCY_PACKAGE_NODE_CONTEXT } from "../../../shared/constants.contexts"; import { ensurePackageTreeNode, extApi, getPa...
/content/code_sandbox/src/test/flutter/views/packages_view.test.ts
xml
2016-07-30T13:49:11
2024-08-10T16:23:15
Dart-Code
Dart-Code/Dart-Code
1,472
725
```xml import { mergeDeep } from '@graphql-tools/utils'; describe('mergeDeep', () => { test('merges deeply', () => { const x = { a: { one: 1 } }; const y = { a: { two: 2 } }; expect(mergeDeep([x, y])).toEqual({ a: { one: 1, two: 2 } }); }); test('strips property symbols', () => { const x = {}; ...
/content/code_sandbox/packages/utils/tests/mergeDeep.test.ts
xml
2016-03-22T00:14:38
2024-08-16T02:02:06
graphql-tools
ardatan/graphql-tools
5,331
533
```xml import { Component } from "@angular/core"; import { map, Observable } from "rxjs"; import { ProductSwitcherItem, ProductSwitcherService } from "../shared/product-switcher.service"; @Component({ selector: "navigation-product-switcher", templateUrl: "./navigation-switcher.component.html", }) export class Nav...
/content/code_sandbox/apps/web/src/app/layouts/product-switcher/navigation-switcher/navigation-switcher.component.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
221
```xml import { FunctionComponent } from 'react'; import { IStepComponentProps, ITxData, ITxFromAddress, ITxGasLimit, ITxGasPrice, ITxNonce, ITxToAddress, ITxValue, TStepAction } from '@types'; export interface IPath { label: string; component: FunctionComponent<IStepComponentProps>; action: T...
/content/code_sandbox/src/features/SendAssets/types.ts
xml
2016-12-04T01:35:27
2024-08-14T21:41:58
MyCrypto
MyCryptoHQ/MyCrypto
1,347
192
```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 removeLast = require( './index' ); // TESTS // // The function returns a string... { removeLast( 'abc',...
/content/code_sandbox/lib/node_modules/@stdlib/string/base/remove-last-code-point/docs/types/test.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
396
```xml /* your_sha256_hash------------- |your_sha256_hash------------*/ /** * Remove an extension from the relevant metadata * files of the JupyterLab source tree so that it * is not included in the build. Intended for testing * adding/removing extensions against development * branches of JupyterLab. */ import ...
/content/code_sandbox/buildutils/src/remove-package.ts
xml
2016-06-03T20:09:17
2024-08-16T19:12:44
jupyterlab
jupyterlab/jupyterlab
14,019
264
```xml import { Component, Input, ViewChild } from "@angular/core"; import { ProductTierType } from "@bitwarden/common/billing/enums"; import { OrganizationCreatedEvent, SubscriptionProduct, TrialOrganizationType, } from "../../../billing/accounts/trial-initiation/trial-billing-step.component"; import { Vertica...
/content/code_sandbox/apps/web/src/app/auth/trial-initiation/secrets-manager/secrets-manager-trial-paid-stepper.component.ts
xml
2016-03-09T23:14:01
2024-08-16T15:07:51
clients
bitwarden/clients
8,877
425
```xml export const getAppVersion = (versionString: string) => { return versionString.replace(/-beta.(\d+)/, ' - Beta $1'); }; ```
/content/code_sandbox/packages/components/helpers/appVersion.ts
xml
2016-06-08T11:16:51
2024-08-16T14:14:27
WebClients
ProtonMail/WebClients
4,300
34
```xml const exportHistoriesCreate = ` mutation exportHistoriesCreate($contentType: String!, $columnsConfig: [String], $segmentData: JSON, $name: String) { exportHistoriesCreate(contentType: $contentType, columnsConfig: $columnsConfig, segmentData: $segmentData, name: $name) } `; export default { exportHist...
/content/code_sandbox/packages/core-ui/src/modules/settings/importExport/export/graphql/mutations.ts
xml
2016-11-11T06:54:50
2024-08-16T10:26:06
erxes
erxes/erxes
3,479
82
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" android:id="@+id/dialog_root" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="24dp"> <TextView android:id="@+id/title" android:layout_width="wrap_conte...
/content/code_sandbox/app/src/main/res/layout/dialog_icon.xml
xml
2016-02-20T13:10:14
2024-08-14T07:53:05
SeeWeather
xcc3641/SeeWeather
3,448
573
```xml /** * Wechaty Chatbot SDK - path_to_url * * @copyright 2016 Huan LI () <path_to_url and * Wechaty Contributors <path_to_url * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex...
/content/code_sandbox/src/user-modules/contact.ts
xml
2016-05-01T14:36:45
2024-08-16T17:27:03
wechaty
wechaty/wechaty
19,828
6,149
```xml import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'diff' }) export class DiffPipe implements PipeTransform { transform<T>(input: T, ...args: any[]): T; transform(input: any[], ...args: any[]): any[]; transform(input: any, ...args: any[]): any { if (!Array.isArray(input)) { retu...
/content/code_sandbox/src/ng-pipes/pipes/array/diff.ts
xml
2016-11-24T22:03:44
2024-08-15T12:52:49
ngx-pipes
danrevah/ngx-pipes
1,589
124
```xml import { useContextBridge, useSearchResultItems } from "@Core/Hooks"; import { getImageUrl } from "@Core/getImageUrl"; import { Badge, Button, Input, Text, Tooltip } from "@fluentui/react-components"; import { DismissRegular } from "@fluentui/react-icons"; import { useState } from "react"; import { useTranslatio...
/content/code_sandbox/src/renderer/Core/Settings/Pages/SearchEngine/ExcludedItems.tsx
xml
2016-10-11T04:59:52
2024-08-16T11:53:31
ueli
oliverschwendener/ueli
3,543
491
```xml import * as React from 'react'; import createSvgIcon from '../utils/createSvgIcon'; const LabelIcon = createSvgIcon({ svg: ({ classes }) => ( <svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false"> <path d="M1720 128q41 0 77 16t63 43 43 63 16 78q0 37-10 65t-29 53-...
/content/code_sandbox/packages/react-icons-mdl2/src/components/LabelIcon.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
253
```xml /** * Describes a file that represents a component definition */ export interface ComponentFile { path: string; moduleName: string; componentName: string; } export interface PackageDefinition { name: string; components: { moduleName: string; componentName: string; }[]; } const isLazyLoadi...
/content/code_sandbox/examples/cms-sitecore-xmcloud/scripts/templates/component-factory.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
1,057
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="headerTxt"></string> </resources> ```
/content/code_sandbox/app/src/main/res/values-v21/strings.xml
xml
2016-02-20T13:10:14
2024-08-14T07:53:05
SeeWeather
xcc3641/SeeWeather
3,448
31
```xml <?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="path_to_url"> <ItemGroup Label="ProjectConfigurations"> <ProjectConfiguration Include="Debug|Win32"> <Configuration>Debug</Configuration> <Platform>Win32</Platform> </ProjectConfiguration> ...
/content/code_sandbox/build/miniblink/miniblink.vcxproj
xml
2016-09-27T03:41:10
2024-08-16T10:42:57
miniblink49
weolar/miniblink49
7,069
196,363
```xml import { bindAll, debounce, isString, isUndefined } from 'underscore'; import { ModuleView } from '../../abstract'; import { BoxRect, ObjectAny } from '../../common'; import CssRulesView from '../../css_composer/view/CssRulesView'; import ComponentWrapperView from '../../dom_components/view/ComponentWrapperView'...
/content/code_sandbox/src/canvas/view/FrameView.ts
xml
2016-01-22T00:23:19
2024-08-16T11:20:59
grapesjs
GrapesJS/grapesjs
21,687
3,707
```xml import {createSelector} from 'reselect' import { Annotation, TagFilterType, AnnotationsDisplaySetting, } from 'src/types/annotations' import {AnnotationState} from 'src/shared/reducers/annotations' interface AnnotationsStateShape { app: {persisted: {annotationsDisplaySetting: AnnotationsDisplaySetting}}...
/content/code_sandbox/ui/src/shared/selectors/annotations.ts
xml
2016-08-24T23:28:56
2024-08-13T19:50:03
chronograf
influxdata/chronograf
1,494
330
```xml export * from 'rxjs-compat/operators/subscribeOn'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/operators/subscribeOn.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
13
```xml <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10116" systemVersion="15E65" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" customObjectInstantitationMethod="direct"> <dependencies> <deployment identi...
/content/code_sandbox/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/Base.lproj/MainMenu.xib
xml
2016-04-16T17:16:16
2024-08-09T08:27:34
GPUImage2
BradLarson/GPUImage2
4,858
8,463
```xml import { TestBed, waitForAsync, ComponentFixture } from '@angular/core/testing'; import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { By } from '@angular/platform-browser'; import { TdSearchInputComponent } from '../search-input/search-input.component'; import { Coval...
/content/code_sandbox/libs/angular/search/src/search-box/search-box.component.spec.ts
xml
2016-07-11T23:30:52
2024-08-15T15:20:45
covalent
Teradata/covalent
2,228
384
```xml /** * Formats an array of values into a string that can be used error messages. * ["a", "b", "c"] => "`a`, `b`, `c`" */ export const formatAvailableValues = (values: string[]) => values.map((val) => `\`${val}\``).join(', ') ```
/content/code_sandbox/packages/font/src/format-available-values.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
68
```xml import { resolve } from 'node:path'; import { existsSync, emptyDirSync } from 'fs-extra'; import { createKeyValueStorageImplementation } from 'packages/memory-storage/src/fs/key-value-store'; describe('KeyValueStore should append extension only when needed', () => { const mockImageBuffer = Buffer.from('Thi...
/content/code_sandbox/packages/memory-storage/test/key-value-store/with-extension.test.ts
xml
2016-08-26T18:35:03
2024-08-16T16:40:08
crawlee
apify/crawlee
14,153
655
```xml <?xml version="1.0" encoding="utf-8" ?> <DotNetCliTool Version="1" > <Commands> <Command Name="sayhello" EntryPoint="console.dll" Runner="dotnet" /> </Commands> </DotNetCliTool> ```
/content/code_sandbox/test/Microsoft.DotNet.PackageInstall.Tests/DotnetToolSettingsGolden.xml
xml
2016-07-22T21:26:02
2024-08-16T17:23:58
sdk
dotnet/sdk
2,627
59
```xml <resources> <string name="app_name">MainDemo</string> </resources> ```
/content/code_sandbox/maindemo/src/main/res/values/strings.xml
xml
2016-11-25T03:29:54
2024-06-16T11:30:36
ModularizationArchitecture
SpinyTech/ModularizationArchitecture
1,441
20
```xml import { buildTeam, buildDocument, buildUser } from "@server/test/factories"; import View from "./View"; describe("View", () => { describe("findByDocument", () => { it("should return list of views", async () => { const team = await buildTeam(); const user = await buildUser({ teamId: te...
/content/code_sandbox/server/models/View.test.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
283
```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> <declare-styleable name="SwipeMenuLayout"> <attr name="leftViewId" fo...
/content/code_sandbox/support/src/main/res/values/attrs.xml
xml
2016-08-03T15:43:34
2024-08-14T01:11:22
SwipeRecyclerView
yanzhenjie/SwipeRecyclerView
5,605
119
```xml /* * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. */ import {Mixpanel} from 'mixpanel-browser'; type Appcues = { debug: () => void; page: () => void; identify: ( userId: string, properties...
/content/code_sandbox/tasklist/client/src/modules/types/global.d.ts
xml
2016-03-20T03:38:04
2024-08-16T19:59:58
camunda
camunda/camunda
3,172
398
```xml import { database } from '../common/database'; import type { BaseModel } from '.'; import type { RequestAuthentication, RequestHeader, RequestParameter, RequestPathParameter } from './request'; export const name = 'WebSocket Request'; export const type = 'WebSocketRequest'; export const prefix = 'ws-req'; ex...
/content/code_sandbox/packages/insomnia/src/models/websocket-request.ts
xml
2016-04-23T03:54:26
2024-08-16T16:50:44
insomnia
Kong/insomnia
34,054
759
```xml import { NgModule, Type } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TdChartToolboxComponent, TdChartViewDataFormatterDirective, } from './toolbox.component'; export const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [ TdChartToolboxComponent, TdChartViewDataFormatterDir...
/content/code_sandbox/libs/angular-echarts/toolbox/src/toolbox.module.ts
xml
2016-07-11T23:30:52
2024-08-15T15:20:45
covalent
Teradata/covalent
2,228
120
```xml import { NextPage } from 'next' import HomePage from '../src/pages/HomePage' export interface IndexPageProps { appToken: string | undefined hasOverridenRender: boolean } const Index: NextPage<IndexPageProps> = props => { /* const { appToken: _appToken, hasOverridenRender } = props const appToken = ...
/content/code_sandbox/landing/pages/index.tsx
xml
2016-11-30T23:24:21
2024-08-16T00:24:59
devhub
devhubapp/devhub
9,652
645
```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>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_...
/content/code_sandbox/MacSVG Plugin Projects/macSVG Plugins/ConvertPathsDialog/ConvertPathsDialog/Info.plist
xml
2016-10-17T08:37:55
2024-08-15T15:12:09
macSVG
dsward2/macSVG
1,152
235
```xml export const SYMBOLS = { IVSCodeManager: Symbol.for('IVSCodeManager'), IConfigManager: Symbol.for('IConfigManager'), ISettingsManager: Symbol.for('ISettingsManager'), IIconsGenerator: Symbol.for('IIconsGenerator'), ILanguageResourceManager: Symbol.for('ILanguageResourceManager'), INotificationManager...
/content/code_sandbox/src/models/ioc/symbols.ts
xml
2016-05-30T23:24:37
2024-08-12T22:55:53
vscode-icons
vscode-icons/vscode-icons
4,391
164
```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 ...
/content/code_sandbox/pulsar-io/jdbc/core/pom.xml
xml
2016-06-28T07:00:03
2024-08-16T17:12:43
pulsar
apache/pulsar
14,047
505
```xml /* * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ // TypeScript Version: 4.1 /// <reference types="@stdlib/types"/> import { ndarray } from '@stdlib/types/ndarray...
/content/code_sandbox/lib/node_modules/@stdlib/ndarray/dispatch/docs/types/index.d.ts
xml
2016-03-24T04:19:52
2024-08-16T09:03:19
stdlib
stdlib-js/stdlib
4,266
3,471
```xml import locker from 'lockfile'; import { Callback } from '@verdaccio/types'; // unlocks file by removing existing lock file export function unlockFile(name: string, next: Callback): void { const lockFileName = `${name}.lock`; locker.unlock(lockFileName, function () { return next(null); }); } ```
/content/code_sandbox/packages/core/file-locking/src/legacy/unclock.ts
xml
2016-04-15T16:21:12
2024-08-16T09:38:01
verdaccio
verdaccio/verdaccio
16,189
70
```xml <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework> <IsPackable>false</IsPackable> <ImplicitUsings>enable</ImplicitUsings> </PropertyGroup> </Project> ```
/content/code_sandbox/src/UnicodeNormDApp/UnicodeNormDApp.csproj
xml
2016-05-25T14:18:26
2024-08-16T12:31:39
markdig
xoofx/markdig
4,243
69
```xml import type { Config } from 'jest'; const config: Config = { collectCoverage: true, coverageThreshold: { global: { branches: 100, functions: 100, lines: 100, statements: 100, }, }, preset: 'ts-jest', reporters: process.env.CI === 'true' ? [['github-actions', {...
/content/code_sandbox/jest.config.ts
xml
2016-08-20T00:22:07
2024-08-14T14:25:28
html-react-parser
remarkablemark/html-react-parser
2,066
143
```xml import { MonoTypeOperatorFunction, SubscribableOrPromise } from '../types'; export interface ThrottleConfig { leading?: boolean; trailing?: boolean; } export declare const defaultThrottleConfig: ThrottleConfig; /** * Emits a value from the source Observable, then ignores subsequent source * values for ...
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/internal/operators/throttle.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
499
```xml import { Column, ManyToOne, PrimaryGeneratedColumn } from "../../../../src" import { Entity } from "../../../../src/decorator/entity/Entity" import { Foo } from "./Foo" @Entity() export class Bar { @PrimaryGeneratedColumn() id: number @Column() description: string @ManyToOne((type) => Foo, (foo) =...
/content/code_sandbox/test/github-issues/2251/entity/Bar.ts
xml
2016-02-29T07:41:14
2024-08-16T18:28:52
typeorm
typeorm/typeorm
33,875
85
```xml /** * @_ignore */ export declare function decodeBits(width: number, data: string): Array<number>; //# sourceMappingURL=bit-reader.d.ts.map ```
/content/code_sandbox/lib.commonjs/wordlists/bit-reader.d.ts
xml
2016-07-16T04:35:37
2024-08-16T13:37:46
ethers.js
ethers-io/ethers.js
7,843
32
```xml import type { ArgTypes, LegacyStoryAnnotationsOrFn, Renderer, StoryAnnotations, StoryFn, StoryId, } from '@storybook/core/types'; import type { NormalizedComponentAnnotations, NormalizedStoryAnnotations, } from '@storybook/core/types'; import { storyNameFromExport, toId } from '@storybook/csf'; ...
/content/code_sandbox/code/core/src/preview-api/modules/store/csf/normalizeStory.ts
xml
2016-03-18T04:23:44
2024-08-16T19:22:08
storybook
storybookjs/storybook
83,755
622
```xml import * as React from 'react'; import { ControlsAreaPage, IControlsPageProps } from '../ControlsAreaPage'; import { VerticalBarChartStandardPageProps } from './VerticalBarChartStandardPage.doc'; export const VerticalBarChartStandardPage: React.FunctionComponent<IControlsPageProps> = props => { const { platfo...
/content/code_sandbox/apps/public-docsite/src/pages/Controls/VerticalBarChartPage/VerticalBarChartStandardPage.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
94
```xml export * from './deep-equal' export * from './get-default-insert-location' export * from './match-path' export * from './string' export * from './types' export * from './weak-maps' ```
/content/code_sandbox/packages/slate/src/utils/index.ts
xml
2016-06-18T01:52:42
2024-08-16T18:43:42
slate
ianstormtaylor/slate
29,492
45
```xml import { ApolloClient, HttpLink, InMemoryCache } from "@apollo/client"; import { registerApolloClient } from "@apollo/experimental-nextjs-app-support/rsc"; export const { getClient } = registerApolloClient(() => { return new ApolloClient({ cache: new InMemoryCache(), link: new HttpLink({ // See ...
/content/code_sandbox/examples/with-apollo/src/lib/ApolloClient.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
195
```xml // See LICENSE.txt for license information. import React, {useCallback} from 'react'; import {useIntl} from 'react-intl'; import {enableChannelCalls} from '@calls/actions'; import {useTryCallsFunction} from '@calls/hooks'; import {getCallsConfig} from '@calls/state'; import OptionItem from '@components/option_...
/content/code_sandbox/app/products/calls/components/channel_info_enable_calls/index.tsx
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
335
```xml import {Router} from "express"; import {Repository} from "sequelize-typescript"; import {Post} from "./Post"; export const postRouterFactory = ( postRepository: Repository<Post>, ) => Router() .get('/posts', (req, res, next) => postRepository.findAll() .then(posts => res.json(posts)) ...
/content/code_sandbox/examples/repository-mode/lib/posts/postRouterFactory.ts
xml
2016-01-27T11:25:52
2024-08-13T16:56:45
sequelize-typescript
sequelize/sequelize-typescript
2,768
173
```xml import { v1 as uuid } from "uuid"; import { isResetToken, ResetToken } from "./reset"; function createToken(partial: Partial<ResetToken> | any = {}): ResetToken { const now = Math.floor(Date.now() / 1000); const token: ResetToken = { sub: uuid(), jti: uuid(), iss: uuid(), exp: now + 60 * 60...
/content/code_sandbox/server/src/core/server/services/users/auth/reset.spec.ts
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
206
```xml export interface IResourceConfig { /** * e.g /public will re-write all URLS to have have /public/image.jpg instead of /image.jpg * Default value is "/resources" * @type {string} * @memberof IStyleSheetProps */ resourcePublicRoot?: string; /** * A folder in the file system where the sourc...
/content/code_sandbox/src/config/IResourceConfig.ts
xml
2016-10-28T10:37:16
2024-07-27T15:17:43
fuse-box
fuse-box/fuse-box
4,003
159
```xml import { pureMerge } from "coral-common/common/lib/utils"; import { GQLResolver } from "coral-framework/schema"; import { createResolversStub, CreateTestRendererParams, } from "coral-framework/testHelpers"; import { commenters, settings, stories } from "../../fixtures"; import create from "./create"; const...
/content/code_sandbox/client/src/core/client/stream/test/comments/stream/emitCountEvents.spec.tsx
xml
2016-10-31T16:14:05
2024-08-06T16:15:57
talk
coralproject/talk
1,881
340
```xml <?xml version="1.0" encoding="utf-8"?> <resources> <dimen name="bb_height">56dp</dimen> <dimen name="bb_default_elevation">8dp</dimen> <dimen name="bb_fake_shadow_height">4dp</dimen> </resources> ```
/content/code_sandbox/bottom-bar/src/main/res/values/dimensions.xml
xml
2016-03-16T01:31:05
2024-08-16T16:21:09
BottomBar
roughike/BottomBar
8,424
70
```xml import {Server} from './server'; import {ConfigDiagnostics} from './model/diagnostics/ConfigDiagnostics'; if ((process.argv || []).includes('--run-diagnostics')) { console.log('Running diagnostics and exiting.'); ConfigDiagnostics.runDiagnostics().catch((e) => { console.error(e); process.exit(1); ...
/content/code_sandbox/src/backend/index.ts
xml
2016-03-12T11:46:41
2024-08-16T19:56:44
pigallery2
bpatrik/pigallery2
1,727
94
```xml export * from 'rxjs-compat/BehaviorSubject'; ```
/content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/BehaviorSubject.d.ts
xml
2016-09-05T10:18:44
2024-08-11T13:21:40
LiquidCore
LiquidPlayer/LiquidCore
1,010
12
```xml import { HeaderVariables } from '../../../teams/components/Header/headerVariables'; export const headerVariables = (siteVars: any): Partial<HeaderVariables> => { return { color: siteVars.colors.white, descriptionColor: siteVars.colors.white, }; }; ```
/content/code_sandbox/packages/fluentui/react-northstar/src/themes/teams-high-contrast/components/Header/headerVariables.ts
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
55
```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 */ // Note that these have been copied over verbatim from // `material/select` so that we don't have to expose them publicly. /** * Returns an exception to be thrown when ...
/content/code_sandbox/src/material/select/select-errors.ts
xml
2016-01-04T18:50:02
2024-08-16T11:21:13
components
angular/components
24,263
279
```xml import * as server from './server' export { server } ```
/content/code_sandbox/store/plugin-commands-server/src/index.ts
xml
2016-01-28T07:40:43
2024-08-16T12:38:47
pnpm
pnpm/pnpm
28,869
13
```xml import { Ionicons } from '@expo/vector-icons'; import { TouchableOpacity, Platform } from 'react-native'; import { useTheme } from './ThemeProvider'; export default function ThemeToggler() { const { theme, name, setTheme } = useTheme(); return ( <TouchableOpacity onPress={() => setTheme(name === 'light...
/content/code_sandbox/apps/common/ThemeToggler.tsx
xml
2016-08-15T17:14:25
2024-08-16T19:54:44
expo
expo/expo
32,004
138
```xml export default interface IFollowedSite { name: string; url: string; } ```
/content/code_sandbox/samples/react-followed-drag-and-drop-grid/src/webparts/model/IFollowedSite.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
20
```xml // See LICENSE.txt for license information. import React from 'react'; import {View} from 'react-native'; import ManageMembersLabel from '@components/channel_actions/manage_members_label'; import {Members} from '@constants'; import {useTheme} from '@context/theme'; import {changeOpacity, makeStyleSheetFromTheme...
/content/code_sandbox/app/screens/user_profile/manage_user_options.tsx
xml
2016-10-07T16:52:32
2024-08-16T12:08:38
mattermost-mobile
mattermost/mattermost-mobile
2,155
382
```xml import { Settings } from '../actions/actionTypes'; import settingsOptions from '../constants/settings'; export type SettingsState = { [key: string]: boolean | string | number; isLoading: boolean; isReady: boolean; }; const initialState: SettingsState = { isLoading: false, isReady: false }; const defa...
/content/code_sandbox/packages/app/app/reducers/settings.ts
xml
2016-09-22T22:58:21
2024-08-16T15:47:39
nuclear
nukeop/nuclear
11,862
213
```xml export default function Page({ finished }) { return <p>{`Edge - finished: ${finished}`}</p> } export function getServerSideProps() { return { props: { finished: Boolean(globalThis.instrumentationFinished), }, } } export const config = { runtime: 'experimental-edge', } ```
/content/code_sandbox/test/e2e/instrumentation-hook/with-async-edge-page/pages/index.tsx
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
69
```xml <system-properties> <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/> </system-properties> ```
/content/code_sandbox/archived/kotlin-ktor-app-engine-java8/appengine-web-system-example.xml
xml
2016-01-25T18:46:16
2024-08-14T19:43:44
community
GoogleCloudPlatform/community
1,914
27
```xml import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { flatMap } from '../../asynciterable/operators/flatmap.js'; import { FlattenConcurrentSelector } from '../../asynciterable/operators/_flatten.js'; /** * @ignore */ export function flatMapProto<T, R>( this: AsyncIterableX<T>, s...
/content/code_sandbox/src/add/asynciterable-operators/flatmap.ts
xml
2016-02-22T20:04:19
2024-08-09T18:46:41
IxJS
ReactiveX/IxJS
1,319
156
```xml import React from 'react'; import { Slider, Box } from 'native-base'; export const Example = () => { return ( <Box mx={5} width="80%"> <Slider minValue={0} maxValue={100} step={1} defaultValue={50} isReadOnly> <Slider.Track _readOnly={{ bg: 'indigo.100' }}> <Slider.FilledTrack _rea...
/content/code_sandbox/example/storybook/stories/components/primitives/Slider/isReadOnly.tsx
xml
2016-04-15T11:37:23
2024-08-14T16:16:44
NativeBase
GeekyAnts/NativeBase
20,132
130
```xml import * as React from 'react'; import { render } from '@testing-library/react'; import { InteractionTag } from './InteractionTag'; import { isConformant } from '../../testing/isConformant'; import { InteractionTagPrimary } from '../InteractionTagPrimary'; import { InteractionTagSecondary } from '../InteractionT...
/content/code_sandbox/packages/react-components/react-tags/library/src/components/InteractionTag/InteractionTag.test.tsx
xml
2016-06-06T15:03:44
2024-08-16T18:49:29
fluentui
microsoft/fluentui
18,221
226
```xml import { mode } from '@chakra-ui/theme-tools'; export const inputStyles = { components: { Input: { baseStyle: { field: { fontWeight: 400, borderRadius: '8px', }, }, variants: { main: (properties: any) => ({ field: { bg: m...
/content/code_sandbox/src/renderer/theme/components/input.ts
xml
2016-05-14T02:18:49
2024-08-16T02:46:28
ElectroCRUD
garrylachman/ElectroCRUD
1,538
1,298
```xml /* eslint-disable @typescript-eslint/no-misused-promises */ /* eslint-disable import/order */ import env from "./env"; import "./logging/tracer"; // must come before importing any instrumented module import http from "http"; import https from "https"; import Koa from "koa"; import helmet from "koa-helmet"; imp...
/content/code_sandbox/server/index.ts
xml
2016-05-22T21:31:47
2024-08-16T19:57:22
outline
outline/outline
26,751
1,407
```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="path_to_url" xmlns:app="path_to_url" android:layout_width="match_parent" android:layout_height="@dimen/search_upper_layout_height" android:layout_marginBottom="@dimen/default_general_margin" android:clickable="true" and...
/content/code_sandbox/app/src/main/res/layout/item_search_upper.xml
xml
2016-06-01T04:36:01
2024-08-14T06:51:22
bilibili-android-client
HotBitmapGG/bilibili-android-client
4,487
586
```xml import { describe, expect, it } from "vitest"; import { Formatter } from "@export/formatter"; import { VerticalPositionAlign } from "@file/shared/alignment"; import { Align } from "./align"; describe("Align", () => { describe("#constructor()", () => { it("should create a element with correct root ...
/content/code_sandbox/src/file/drawing/floating/align.spec.ts
xml
2016-03-26T23:43:56
2024-08-16T13:02:47
docx
dolanmiu/docx
4,139
115
```xml import { globalStyle } from "@vanilla-extract/css"; globalStyle("html, body", { height: "100%", }); globalStyle("*, *::before, *::after", { boxSizing: "border-box", WebkitFontSmoothing: "antialiased", MozOsxFontSmoothing: "grayscale", }); globalStyle("body", { display: "flex", flexDirection: "colu...
/content/code_sandbox/examples/with-vanilla-extract/app/globalStyle.css.ts
xml
2016-10-05T23:32:51
2024-08-16T19:44:30
next.js
vercel/next.js
124,056
278
```xml import { IVisit } from '../../model/IVisit'; export interface IVisitService { getGroupVisits (groupId?: string, groupEmail?: string) : Promise<IVisit[]>; } ```
/content/code_sandbox/samples/react-teams-tab-field-visit-mashup/src/webparts/fieldVisitTab/services/VisitService/IVisitService.ts
xml
2016-08-30T17:21:43
2024-08-16T18:41:32
sp-dev-fx-webparts
pnp/sp-dev-fx-webparts
2,027
44
```xml import Renderer from './renderer' import DocumentRenderer from './documentRenderer' import LegacyRelationalRenderer from './legacyRelationalRenderer' import RelationalRenderer from './relationalRenderer' import { DatabaseType } from '../../databaseType' import GQLAssert from '../../util/gqlAssert' export defaul...
/content/code_sandbox/cli/packages/prisma-datamodel/src/datamodel/renderer/index.ts
xml
2016-09-25T12:54:40
2024-08-16T11:41:23
prisma1
prisma/prisma1
16,549
266
```xml /** * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type {StackPullRequestFragment} from './generated/graphql'; import {useCommand} from './KeyboardShortcuts'; import PullRequestStackItem from './PullRequestStackItem'; ...
/content/code_sandbox/eden/contrib/reviewstack/src/PullRequestStack.tsx
xml
2016-05-05T16:53:47
2024-08-16T19:12:02
sapling
facebook/sapling
5,987
1,176