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
const checklistsChanged = `
subscription ticketsChecklistDetailChanged($contentType: String!, $contentTypeId: String!) {
ticketsChecklistDetailChanged(contentType: $contentType, contentTypeId: $contentTypeId) {
_id
}
}
`;
const checklistDetailChanged = `
subscription ticketsChecklistDetailCh... | /content/code_sandbox/packages/ui-tickets/src/checklists/graphql/subscriptions.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 110 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".ui.activity.ViewTransformActivity">
... | /content/code_sandbox/app/src/main/res/layout/activity_view_transform.xml | xml | 2016-08-08T08:52:10 | 2024-08-12T19:24:13 | AndroidAnimationExercise | REBOOTERS/AndroidAnimationExercise | 1,868 | 925 |
```xml
/*
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
export * from './textarea.element.js';
``` | /content/code_sandbox/packages/core/src/textarea/index.ts | xml | 2016-09-29T17:24:17 | 2024-08-11T17:06:15 | clarity | vmware-archive/clarity | 6,431 | 38 |
```xml
export default function page() {
return <>pages-icon-page</>
}
``` | /content/code_sandbox/test/e2e/app-dir/metadata/pages/blog/icon.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 16 |
```xml
<?xml version="1.0" encoding="utf-8"?>
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<accelerateDecelerateInterpolator xmlns:android="path_to_url" />
``` | /content/code_sandbox/libraries_res/chrome_res/src/main/res/interpolator/transform_curve_interpolator.xml | xml | 2016-07-04T07:28:36 | 2024-08-15T05:20:42 | AndroidChromium | JackyAndroid/AndroidChromium | 3,090 | 56 |
```xml
import { VERSION } from '@angular/core';
import { SemVerDSL as DSL, ISemVerDSL } from 'semver-dsl';
export const SemVerDSL: ISemVerDSL = DSL(VERSION.full);
``` | /content/code_sandbox/src/util/ngVersion.ts | xml | 2016-02-10T17:22:40 | 2024-08-14T16:41:28 | codelyzer | mgechev/codelyzer | 2,446 | 46 |
```xml
export interface SubscriptionCallback<T> {
(item: T): void;
}
// eslint-disable-next-line @typescript-eslint/ban-types
export interface Store<T extends object> {
subscribeToItem<K extends keyof T>(
key: K,
callback: SubscriptionCallback<T[K]>
): void;
unsubscribeFromItem<K extends keyof T>(
... | /content/code_sandbox/packages/utils/src/createStore.ts | xml | 2016-02-26T09:54:56 | 2024-08-16T18:16:31 | draft-js-plugins | draft-js-plugins/draft-js-plugins | 4,087 | 385 |
```xml
<clickhouse>
<profiles>
<default>
<allow_experimental_database_materialized_mysql>1</allow_experimental_database_materialized_mysql>
<external_storage_max_read_rows>0</external_storage_max_read_rows>
<external_storage_max_read_bytes>1</external_storage_max_read_byt... | /content/code_sandbox/tests/integration/test_materialized_mysql_database/configs/users_disable_rows_settings.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 134 |
```xml
import { inject, injectable, } from 'inversify';
import { ServiceIdentifiers } from '../../container/ServiceIdentifiers';
import { TIdentifierNamesGeneratorFactory } from '../../types/container/generators/TIdentifierNamesGeneratorFactory';
import { TStatement } from '../../types/node/TStatement';
import { TStri... | /content/code_sandbox/src/custom-nodes/string-array-nodes/StringArrayScopeCallsWrapperVariableNode.ts | xml | 2016-05-09T08:16:53 | 2024-08-16T19:43:07 | javascript-obfuscator | javascript-obfuscator/javascript-obfuscator | 13,358 | 859 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks Condition="'$(OS)' != 'Windows_NT'">net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">net6.0;net5.0;net471;netcoreapp3.1</TargetFrameworks>
<A... | /content/code_sandbox/LiteNetLib.Tests/LiteNetLib.Tests.csproj | xml | 2016-01-15T18:28:35 | 2024-08-16T03:25:43 | LiteNetLib | RevenantX/LiteNetLib | 3,025 | 290 |
```xml
import { Trace } from '@apollo/usage-reporting-protobuf';
import { TraceTreeBuilder } from '../traceTreeBuilder.js';
import type { SendErrorsOptions } from '../usageReporting/index.js';
import { internalPlugin } from '../../internalPlugin.js';
import { schemaIsSubgraph } from '../schemaIsSubgraph.js';
import typ... | /content/code_sandbox/packages/server/src/plugin/inlineTrace/index.ts | xml | 2016-04-21T09:26:01 | 2024-08-16T19:32:15 | apollo-server | apollographql/apollo-server | 13,742 | 1,429 |
```xml
import fs from 'fs';
import path from 'path';
import { BabelFileResult, transformAsync } from '@babel/core';
import * as glob from 'glob';
import { logger } from 'just-scripts';
const EOL_REGEX = /\r?\n/g;
function addSourceMappingUrl(code: string, loc: string): string {
// Babel keeps stripping this commen... | /content/code_sandbox/scripts/tasks/src/babel.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 398 |
```xml
export * from './RatingItem';
export * from './RatingItem.types';
export * from './renderRatingItem';
export * from './useRatingItem';
export * from './useRatingItemStyles.styles';
``` | /content/code_sandbox/packages/react-components/react-rating/library/src/components/RatingItem/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 42 |
```xml
import {
CreateDecryptedItemFromPayload,
DecryptedPayload,
DecryptedTransferPayload,
FillItemContentSpecialized,
KeySystemIdentifier,
KeySystemItemsKeyContentSpecialized,
KeySystemItemsKeyInterface,
PayloadTimestampDefaults,
ProtocolVersion,
} from '@standardnotes/models'
import { PureCryptoInt... | /content/code_sandbox/packages/encryption/src/Domain/Operator/004/UseCase/KeySystem/CreateKeySystemItemsKey.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 328 |
```xml
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { Location, LocationStrategy, HashLocationStrategy } from '@angular/common';
import * as shape from 'd3-shape';
import * as d3Array from 'd3-array';
import { Color, colorSets } from '@swimlane/ngx-charts/utils/color-sets';
import { for... | /content/code_sandbox/src/app/app.component.ts | xml | 2016-07-22T15:58:41 | 2024-08-02T15:56:24 | ngx-charts | swimlane/ngx-charts | 4,284 | 5,681 |
```xml
import { observer } from 'mobx-react-lite'
import { FunctionComponent, useRef } from 'react'
import { UpgradePrompt } from '../PremiumFeaturesModal/Subviews/UpgradePrompt'
import { useApplication } from '../ApplicationProvider'
export const PreferencesPremiumOverlay: FunctionComponent = () => {
const ctaButto... | /content/code_sandbox/packages/web/src/javascripts/Components/Preferences/PremiumOverlay.tsx | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 243 |
```xml
import * as React from 'react';
import { StyleSheet } from 'react-native';
import type { StackNavigationProp } from '@react-navigation/stack';
import { List, PaperProvider, Banner } from 'react-native-paper';
import ScreenWrapper from '../ScreenWrapper';
type Props = {
navigation: StackNavigationProp<{ [key... | /content/code_sandbox/example/src/Examples/ThemeExample.tsx | xml | 2016-10-19T05:56:53 | 2024-08-16T08:48:04 | react-native-paper | callstack/react-native-paper | 12,646 | 257 |
```xml
export class ListItem {
public Title: string;
public Description:string;
public ImageUrl: string;
}
``` | /content/code_sandbox/samples/react-slide-swiper/src/webparts/reactSlideSwiper/services/ListItem.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 24 |
```xml
import ParserHtml from '../../../../src/parser/model/ParserHtml';
import ParserCss from '../../../../src/parser/model/ParserCss';
import DomComponents from '../../../../src/dom_components';
import Editor from '../../../../src/editor/model/Editor';
import { CSS_BG_OBJ, CSS_BG_STR } from './ParserCss';
describe('... | /content/code_sandbox/test/specs/parser/model/ParserHtml.ts | xml | 2016-01-22T00:23:19 | 2024-08-16T11:20:59 | grapesjs | GrapesJS/grapesjs | 21,687 | 5,385 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:id="@+id/selected"
android:oneshot="false"
xmlns:android="path_to_url">
<item android:drawable="@drawable/ic_location_navigation_no_location_24dp" android:duration="750" />
<item android:drawable="@drawable/ic_... | /content/code_sandbox/app/src/main/res/drawable/ic_location_navigation_searching_24dp.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 93 |
```xml
<!DOCTYPE icuInfo SYSTEM "path_to_url">
<!--
* 2017 and later: Unicode, Inc. and others.
-->
<icuInfo>
<icuProducts>
<icuProduct type="icu4c">
<releases>
<release version="4.2">
<capabilities>
<feature type="unicode" version="5.1"/>
<feature type="uca" version="5.1"/>
<feature t... | /content/code_sandbox/tools/multi/proj/icu4cscan/xml/4_2.xml | xml | 2016-01-08T02:42:32 | 2024-08-16T18:14:55 | icu | unicode-org/icu | 2,693 | 7,893 |
```xml
import {Component, EventEmitter, NgZone, OnDestroy, OnInit, Output} from "@angular/core";
import {RxDocument} from "../../../../../../";
import {DatabaseService} from "../../services/database.service";
@Component({
selector: 'heroes-list',
templateUrl: 'heroes-list.component.html'
})
export class HeroesLis... | /content/code_sandbox/examples/ionic2/src/app/components/heroes-list/heroes-list.component.ts | xml | 2016-12-02T19:34:42 | 2024-08-16T15:47:20 | rxdb | pubkey/rxdb | 21,054 | 273 |
```xml
import { ExpoUpdatesManifest } from 'expo-manifests';
import { NativeModules } from 'react-native';
import './setUpErrorHandler.fx';
/**
* @hidden Dev launcher manifests are only ones served by servers (not embedded bare manifests)
*/
export type Manifest = ExpoUpdatesManifest;
export { disableErrorHandling ... | /content/code_sandbox/packages/expo-dev-launcher/src/DevLauncher.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 187 |
```xml
import { getUnixTime } from 'date-fns';
import { c } from 'ttag';
import { AppLink, SettingsLink } from '@proton/components';
import { CALENDAR_SETTINGS_SECTION_ID, ICAL_ATTENDEE_STATUS, ICAL_METHOD } from '@proton/shared/lib/calendar/constants';
import { getInteroperabilityOperationsPath } from '@proton/shared... | /content/code_sandbox/applications/mail/src/app/helpers/calendar/inviteLink.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 1,438 |
```xml
export { default as Prompt } from './Prompt';
export * from './Prompt';
``` | /content/code_sandbox/packages/components/components/prompt/index.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 17 |
```xml
import * as React from 'react';
import { AreaChart, IChartProps } from '@fluentui/react-charting';
import * as d3 from 'd3-format';
import { ILineChartProps } from '@fluentui/react-charting';
import { DefaultButton } from '@fluentui/react/lib/Button';
interface IAreaChartBasicState {
width: number;
height: ... | /content/code_sandbox/packages/react-examples/src/react-charting/AreaChart/AreaChart.DataChange.Example.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,375 |
```xml
// Used by GestureDetector (unsupported on web at the moment) to check whether the
// attached view may get flattened on Fabric. Original implementation causes errors
// on web due to the static resolution of `require` statements by webpack breaking
// the conditional importing.
export function getShadowNodeFrom... | /content/code_sandbox/src/getShadowNodeFromRef.web.ts | xml | 2016-10-27T08:31:38 | 2024-08-16T12:03:40 | react-native-gesture-handler | software-mansion/react-native-gesture-handler | 5,989 | 72 |
```xml
export * from "./Contract";
export * from "./FavoriteManagerModule";
``` | /content/code_sandbox/src/main/Core/FavoriteManager/index.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 15 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="ru" original="../LocalizableSt... | /content/code_sandbox/src/Microsoft.TemplateSearch.Common/xlf/LocalizableStrings.ru.xlf | xml | 2016-06-28T20:54:16 | 2024-08-16T14:39:38 | templating | dotnet/templating | 1,598 | 401 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="path_to_url"
android:exitFadeDuration="@android:integer/config_shortAnimTime" >
<item android:state_pressed="true"
android:drawable="@color/branch_name_bg_pressed" />
<item android:drawable="@color/branch_name_bg" />
<... | /content/code_sandbox/app/src/main/res/drawable/bt_branch_name_bg.xml | xml | 2016-10-14T02:54:01 | 2024-08-16T16:01:33 | MGit | maks/MGit | 1,193 | 82 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{1b31e8a3-343c-4e8a-a018-3ca937a37bf6}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
<Filter I... | /content/code_sandbox/pjsip-apps/build/python_pjsua.vcxproj.filters | xml | 2016-01-24T05:00:33 | 2024-08-16T03:31:21 | pjproject | pjsip/pjproject | 1,960 | 368 |
```xml
import { TypeORMError } from "./TypeORMError"
import { EntityMetadata } from "../metadata/EntityMetadata"
/**
* Thrown when specified entity property was not found.
*/
export class EntityPropertyNotFoundError extends TypeORMError {
constructor(propertyPath: string, metadata: EntityMetadata) {
supe... | /content/code_sandbox/src/error/EntityPropertyNotFoundError.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 106 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO... | /content/code_sandbox/src/script/components/ConnectRequests/ConnectionRequests.tsx | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 1,352 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<resources>
<dimen name="quoted_tweet_height">140dp</dimen>
<dimen name="action_bar_de... | /content/code_sandbox/app/src/main/res/values/dimens.xml | xml | 2016-07-08T03:18:40 | 2024-08-14T02:54:51 | talon-for-twitter-android | klinker24/talon-for-twitter-android | 1,189 | 519 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
export {default as DatePicker} from './DatePicker';
``` | /content/code_sandbox/optimize/client/src/modules/components/DatePicker/index.tsx | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 38 |
```xml
import React from 'react';
import { utils } from '../../utils';
import LinkExternal from '../LinkExternal';
const UpLinkLink: React.FC<{ packageName: string; uplinkName: string }> = ({
packageName,
uplinkName,
}) => {
const link = utils.getUplink(uplinkName, packageName);
return link ? (
<LinkExter... | /content/code_sandbox/packages/ui-components/src/components/UpLinks/UplinkLink.tsx | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 118 |
```xml
<?xml version="1.0" encoding="utf-8"?>
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<!--
Overlays a Button on top of an ImageView. Via a RemoteViews the only way to set an image, apply
a color filter, and have API level 16+ compatibility... | /content/code_sandbox/libraries_res/chrome_res/src/main/res/layout/web_notification_button.xml | xml | 2016-07-04T07:28:36 | 2024-08-15T05:20:42 | AndroidChromium | JackyAndroid/AndroidChromium | 3,090 | 382 |
```xml
import { jsx } from '../../../src';
import { Canvas, Chart } from '../../../src';
import { Interval, Legend, Axis } from '../../../src/components';
import { createContext, delay, gestureSimulator } from '../../util';
const data = [
{ genre: 'Sports', sold: 275 },
{ genre: 'Strategy', sold: 115 },
{ genre:... | /content/code_sandbox/packages/f2/test/components/legend/interval.test.tsx | xml | 2016-08-29T06:26:23 | 2024-08-16T15:50:14 | F2 | antvis/F2 | 7,877 | 346 |
```xml
import { outputFile, pathExists, readFile } from 'fs-extra';
import type { TestCase } from 'junit-xml';
import { getJunitXml } from 'junit-xml';
import { join, resolve } from 'path';
import { prompt } from 'prompts';
import invariant from 'tiny-invariant';
import { dedent } from 'ts-dedent';
import {
allTempl... | /content/code_sandbox/scripts/task.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 4,327 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="path_to_url"
xmlns:xsi="path_to_url"
xmlns:dubbo="path_to_url"
xsi:schemaLocation="path_to_url
path_to_url
path_to_url
path_to_url">
<!-- -->
<dubbo:application name="goshop-service-goods" />
<!-- redis... | /content/code_sandbox/goshop-service-goods/src/main/resources/spring/applicationContext-dubbo-provider.xml | xml | 2016-06-18T10:16:23 | 2024-08-01T09:11:36 | goshop2 | pzhgugu/goshop2 | 1,106 | 339 |
```xml
import visit from 'unist-util-visit'
import { Node } from 'unist'
import { mermaidAPI } from 'mermaid'
import rehypeParse from 'rehype-parse'
import unified from 'unified'
import { randomBytes } from 'crypto'
const SUPPORTED = ['flowchart', 'mermaid', 'sequence', 'chart', 'chart(yaml)']
export function remarkC... | /content/code_sandbox/src/cloud/lib/charts/remarkCharts.ts | xml | 2016-11-19T14:30:34 | 2024-08-16T03:13:45 | BoostNote-App | BoostIO/BoostNote-App | 3,745 | 383 |
```xml
import {IListItem} from "./IListItem";
export interface INewsListItem extends IListItem {
newsheader: string;
newsbody: string;
expiryDate: Date;
}
``` | /content/code_sandbox/samples/react-designpatterns-typescript/FactoryMethod/src/webparts/factoryMethod/components/models/INewsListItem.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 40 |
```xml
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ConfirmPopupDocModule } from '@doc/confirmpopup/confirmpopupdoc.module';
import { ConfirmPopupDemo } from './confirmpopupdemo';
import { ConfirmPopupDemoRoutingModule } from './confirmpopupdemo-routing.module';
@N... | /content/code_sandbox/src/app/showcase/pages/confirmpopup/confirmpopupdemo.module.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 106 |
```xml
import { fetchPolaris } from '../utils';
export const getDepositStatement = async (subdomain, params) => {
const balance = await fetchPolaris({
op: '13610302',
data: [
{
acntCode: params.number,
startDate: params.startDate,
endDate: params.endDate,
orderBy: 'desc'... | /content/code_sandbox/packages/plugin-syncpolaris-api/src/utils/deposit/getDepositStatement.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 136 |
```xml
import { Entity } from "../../../../src/decorator/entity/Entity"
import { Column } from "../../../../src/decorator/columns/Column"
import { PrimaryGeneratedColumn } from "../../../../src/decorator/columns/PrimaryGeneratedColumn"
import { OneToMany } from "../../../../src/decorator/relations/OneToMany"
import { C... | /content/code_sandbox/test/github-issues/996/entity/Post.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 122 |
```xml
/*your_sha256_hash-----------------------------
*your_sha256_hash----------------------------*/
import * as assert from 'assert';
import StatusView from '../../src/views/statusView';
import * as LocalizedConstants from '../../src/constants/localizedConstants';
suite('Status View Tests', () => {
test('updat... | /content/code_sandbox/test/unit/statusView.test.ts | xml | 2016-06-26T04:38:04 | 2024-08-16T20:04:12 | vscode-mssql | microsoft/vscode-mssql | 1,523 | 868 |
```xml
import Link from "next/link";
export default function Header() {
return (
<div>
<Link href="/" style={{ marginRight: 10 }}>
Home
</Link>
<Link href="/about" style={{ marginRight: 10 }}>
About
</Link>
</div>
);
}
``` | /content/code_sandbox/examples/with-dynamic-import/components/Header.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 68 |
```xml
import type { Logger } from '@apollo/utils.logger';
import type { ReferencedFieldsByType } from '@apollo/utils.usagereporting';
import LRUCache from 'lru-cache';
export interface OperationDerivedData {
signature: string;
referencedFieldsByType: ReferencedFieldsByType;
}
export function createOperationDeriv... | /content/code_sandbox/packages/server/src/plugin/usageReporting/operationDerivedDataCache.ts | xml | 2016-04-21T09:26:01 | 2024-08-16T19:32:15 | apollo-server | apollographql/apollo-server | 13,742 | 532 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.cyl.musiclake.ui.widget.LyricView
android:id="@+id/lyricShow"
android:layout_width="match_parent"... | /content/code_sandbox/app/src/main/res/layout/frag_player_lrcview.xml | xml | 2016-04-09T15:47:45 | 2024-08-14T04:30:04 | MusicLake | caiyonglong/MusicLake | 2,654 | 155 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<RootNamespace>ConsoleAppCosmosDb</RootNamespace>
<AssemblyName>ConsoleAppCosmosDb</AssemblyName>
<StartupObject>ConsoleAppCosmosDb.Program</StartupObject>
</Pr... | /content/code_sandbox/src-console/ConsoleApp_netcore2.1_CosmosDb/ConsoleApp_netcore2.1_CosmosDb.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 317 |
```xml
export class OrganizationSubscriptionUpdateRequest {
/**
* The number of seats to add or remove from the subscription.
* Applies to both PM and SM request types.
*/
seatAdjustment: number;
/**
* The maximum number of seats that can be auto-scaled for the subscription.
* Applies to both PM a... | /content/code_sandbox/libs/common/src/billing/models/request/organization-subscription-update.request.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 194 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
"path_to_url">
(See accompanying file LICENSE_1_0.txt or path_to_url
-->
<section id="string_algo.concept" last-revision="$Date$">
<title>Concepts</title>
<using-namespace name="boost"/>
<u... | /content/code_sandbox/deps/boost_1_66_0/libs/algorithm/string/doc/concept.xml | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 1,582 |
```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/icu4c/source/test/letest/cletest.vcxproj | xml | 2016-01-08T02:42:32 | 2024-08-16T18:14:55 | icu | unicode-org/icu | 2,693 | 2,790 |
```xml
import { makeStyles } from '@griffel/react';
import { SlotClassNames } from '@fluentui/react-utilities';
import type { TextSlots } from '../../Text/Text.types';
import { typographyStyles } from '@fluentui/react-theme';
export const body2ClassNames: SlotClassNames<TextSlots> = {
root: 'fui-Body2',
};
/**
* S... | /content/code_sandbox/packages/react-components/react-text/library/src/components/presets/Body2/useBody2Styles.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 106 |
```xml
/** @jsxRuntime automatic */
/** @jsxImportSource @fluentui/react-jsx-runtime */
import { assertSlots } from '@fluentui/react-utilities';
import type { TableBodyState, TableBodySlots } from './TableBody.types';
/**
* Render the final JSX of TableBody
*/
export const renderTableBody_unstable = (state: TableBod... | /content/code_sandbox/packages/react-components/react-table/library/src/components/TableBody/renderTableBody.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 97 |
```xml
import * as React from 'react';
import {
I18nContextProvider,
RecordContextProvider,
ResourceContext,
} from 'ra-core';
import { TextField } from './field';
import { Labeled } from './Labeled';
import { Box, Stack } from '@mui/material';
export default { title: 'ra-ui-materialui/detail/Labeled' };
... | /content/code_sandbox/packages/ra-ui-materialui/src/Labeled.stories.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 976 |
```xml
export interface ISettings {
id: number;
}
export interface ICutoff {
id: number;
name: string;
}
export interface IItem {
allowed: boolean;
quality: IQuality;
}
export interface IQuality {
id: number;
name: string;
}
export interface ICheckbox {
value: string;
enabled: bo... | /content/code_sandbox/src/Ombi/ClientApp/src/app/interfaces/ICommon.ts | xml | 2016-02-25T12:14:54 | 2024-08-14T22:56:44 | Ombi | Ombi-app/Ombi | 3,674 | 156 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1001">
<msg>Command completed successfully; action pending</msg>
</result>
<resData>
<domain:trnData
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.tld</domain:name>
<dom... | /content/code_sandbox/core/src/test/resources/google/registry/flows/domain/domain_transfer_request_response_fee.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 353 |
```xml
import { DecoratorFunction, StoryContext } from 'storybook/internal/types';
import { Type } from '@angular/core';
import { ApplicationConfig } from '@angular/platform-browser';
import { computesTemplateFromComponent } from './angular-beta/ComputesTemplateFromComponent';
import { isComponent } from './angular-b... | /content/code_sandbox/code/frameworks/angular/src/client/decorators.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 626 |
```xml
const baseStyle = () => {
return {
color: 'text.900',
_dark: {
color: 'text.50',
},
fontWeight: 'bold',
lineHeight: 'sm',
};
};
const sizes = {
'4xl': {
fontSize: { base: '6xl', md: '7xl' },
letterSpacing: 'xl',
},
'3xl': {
fontSize: { base: '5xl', md: '6xl' },
... | /content/code_sandbox/src/theme/components/heading.ts | xml | 2016-04-15T11:37:23 | 2024-08-14T16:16:44 | NativeBase | GeekyAnts/NativeBase | 20,132 | 247 |
```xml
import {
commonCampaignInputs,
commonCampaignTypes,
commonFilterTypes,
paginateTypes
} from './common';
export const types = `
type SpinCampaign @key(fields: "_id") @cacheControl(maxAge: 3) {
_id: String,
${commonCampaignTypes}
buyScore: Float,
awards: JSON,
spinsCount: Int,
}
... | /content/code_sandbox/packages/plugin-loyalties-api/src/graphql/schema/spinCampaign.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 217 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url">
<data>
<import type="android.view.View" />
<variable
name="feedback"
type="com.eventyay.organizer.data.feedback.Feedback" />
</da... | /content/code_sandbox/app/src/main/res/layout/feedbacklist_layout.xml | xml | 2016-08-13T08:08:39 | 2024-08-06T13:58:48 | open-event-organizer-android | fossasia/open-event-organizer-android | 1,783 | 591 |
```xml
import { vtkObject } from '../../../interfaces';
/**
*
*/
export interface IPriorityQueueInitialValues {
elements?: Array<any>;
}
export interface vtkPriorityQueue extends vtkObject {
/**
* Push an element to the queue while defining a priority.
* @param {Number} priority The priority of the elemen... | /content/code_sandbox/Sources/Common/Core/PriorityQueue/index.d.ts | xml | 2016-05-02T15:44:11 | 2024-08-15T19:53:44 | vtk-js | Kitware/vtk-js | 1,200 | 395 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path
name="files"
path="." />
<cache-path
name="cache"
path="." />
<external-path
name="external"
path="." />
<external-files-path
name="external_files"
path="." />
<external-... | /content/code_sandbox/app/src/main/res/xml/filepaths.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 115 |
```xml
import { Component } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'accessibility-doc',
template: ` <app-docsectiontext>
<h3>Screen Reader</h3>
<p>
Value to describe the source listbox and target listbox can be provided with <i>ariaLabelled... | /content/code_sandbox/src/app/showcase/doc/picklist/accessibilitydoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 1,230 |
```xml
import customScalars from '@erxes/api-utils/src/customScalars';
import burenScoringQueries from './queries/queries';
import mutations from './mutations/toSaveBurenScoring';
const resolvers: any = async () => ({
...customScalars,
Mutation: {
...mutations
},
Query: {
...burenScoringQueries,
},
}... | /content/code_sandbox/packages/plugin-burenscoring-api/src/graphql/resolvers/index.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 83 |
```xml
import React from 'react';
type IconProps = React.SVGProps<SVGSVGElement>;
export declare const IcDensityLow: (props: IconProps) => React.JSX.Element;
export {};
``` | /content/code_sandbox/packages/icons/lib/icDensityLow.d.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 43 |
```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 { Inject, Injectable, NgZone } from '@angular/core';
import {
AlarmCountCmd,
AlarmCountUnsubscribeCmd,
AlarmCo... | /content/code_sandbox/ui-ngx/src/app/core/ws/telemetry-websocket.service.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,278 |
```xml
import { Observable } from '../Observable';
import { SchedulerAction, SchedulerLike } from '../types';
import { Subscriber } from '../Subscriber';
import { Subscription } from '../Subscription';
/**
* Convert an object into an Observable of `[key, value]` pairs.
*
* <span class="informal">Turn entries of an ... | /content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/src/internal/observable/pairs.ts | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 732 |
```xml
import React, { useCallback, MouseEvent } from 'react'
import querystring from 'querystring'
import { getWorkspaceURL, getTeamURL } from '../../lib/utils/patterns'
import { SerializedWorkspace } from '../../interfaces/db/workspace'
import { SerializedTeam } from '../../interfaces/db/team'
import { useRouter } fr... | /content/code_sandbox/src/cloud/components/Link/WorkspaceLink.tsx | xml | 2016-11-19T14:30:34 | 2024-08-16T03:13:45 | BoostNote-App | BoostIO/BoostNote-App | 3,745 | 518 |
```xml
import * as React from 'react';
import { styled } from '@mui/material/styles';
import { ReactElement } from 'react';
import {
Drawer,
DrawerProps,
useMediaQuery,
Theme,
useScrollTrigger,
} from '@mui/material';
import lodashGet from 'lodash/get';
import { useLocale } from 'ra-core';
import {... | /content/code_sandbox/packages/ra-ui-materialui/src/layout/Sidebar.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 1,133 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:background="?attr/conversation_list_item_background"
android:orientation="horizontal"
android:layout_width="match_parent"
androi... | /content/code_sandbox/src/main/res/layout/profile_document_item.xml | xml | 2016-07-03T07:32:36 | 2024-08-16T16:51:15 | deltachat-android | deltachat/deltachat-android | 1,082 | 434 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources translatable="false" xmlns:tools="path_to_url">
<string name="app_name">Emoji</string>
<bool name="leak_canary_add_launcher_icon" tools:ignore="UnusedResources">false</bool>
</resources>
``` | /content/code_sandbox/app/src/main/res/values/strings.xml | xml | 2016-03-09T16:01:10 | 2024-08-14T18:34:35 | Emoji | vanniktech/Emoji | 1,523 | 69 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="path_to_url">
<item>
<shape android:shape="rectangle">
<gradient
android:angle="270"
android:endColor="@color/colorPrimaryDark"
android:startColor="@color/colorPrimary"
... | /content/code_sandbox/app/src/main/res/drawable/toolbar_bg.xml | xml | 2016-02-22T10:00:46 | 2024-08-16T15:37:50 | Images-to-PDF | Swati4star/Images-to-PDF | 1,174 | 88 |
```xml
import { Component } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'accessibility-doc',
template: ` <div>
<app-docsectiontext>
<h3>Screen Reader</h3>
<p>
InputTextarea component renders a native textarea element that imp... | /content/code_sandbox/src/app/showcase/doc/inputtextarea/accessibilitydoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 364 |
```xml
import { IActivityLogForMonth } from '@erxes/ui-log/src/activityLogs/types';
import { IUser } from './auth/types';
export interface IRouterProps {
location: any;
match: any;
navigate: any;
}
export interface IAttachment {
name: string;
type: string;
url: string;
size?: number;
duration?: number... | /content/code_sandbox/packages/erxes-ui/src/types.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,091 |
```xml
import { EncryptService } from "../../../platform/abstractions/encrypt.service";
import { EncString } from "../../../platform/models/domain/enc-string";
import { SymmetricCryptoKey } from "../../../platform/models/domain/symmetric-crypto-key";
import { OrgKey, UserPrivateKey } from "../../../types/key";
import {... | /content/code_sandbox/libs/common/src/admin-console/models/domain/encrypted-organization-key.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 482 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!-- -->
<shape xmlns:android="path_to_url"
android:padding="10dp"
android:shape="rectangle">
<solid android:color="#ffffffff"/>
<corners
android:bottomLeftRadius="3dp"
android:bottomRightRadius="3dp"
android:topLeftRadius="... | /content/code_sandbox/app/src/main/res/drawable/background_white_round.xml | xml | 2016-01-28T12:16:02 | 2024-08-12T03:26:43 | NineGridView | jeasonlzy/NineGridView | 2,461 | 142 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO... | /content/code_sandbox/src/script/media/MediaDevicesHandler.test.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 2,144 |
```xml
import { DEFAULT_FONT_FACE, DEFAULT_FONT_SIZE } from './constants';
import { getFontFaceValueFromId } from './helpers/fontFace';
export interface FontData {
FontFace: string | null;
FontSize: number | null;
}
/**
* Helper used because of Squire problems to handle correctly default fonts
* TODO : Remo... | /content/code_sandbox/packages/components/components/editor/helpers.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 182 |
```xml
import { Platform, ColorValue } from 'react-native';
import * as React from 'react';
import { Component } from 'react';
import GenericTouchable from './GenericTouchable';
import {
TouchableNativeFeedbackProps,
TouchableNativeFeedbackExtraProps,
} from './TouchableNativeFeedbackProps';
/**
* TouchableNative... | /content/code_sandbox/src/components/touchables/TouchableNativeFeedback.android.tsx | xml | 2016-10-27T08:31:38 | 2024-08-16T12:03:40 | react-native-gesture-handler | software-mansion/react-native-gesture-handler | 5,989 | 627 |
```xml
/// <reference path="../../localtypings/qrcode.d.ts" />
let loadPromise: Promise<boolean>;
function loadQrCodeGeneratorAsync(): Promise<boolean> {
if (!loadPromise)
loadPromise = pxt.BrowserUtils.loadScriptAsync("qrcode/qrcode.min.js")
.then(() => typeof qrcode !== "undefined")
... | /content/code_sandbox/webapp/src/qr.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 307 |
```xml
/*************************************************************
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
/**
* @fileoverview Implements the CHTMLmo wrapper for the Mml... | /content/code_sandbox/ts/output/chtml/Wrappers/mo.ts | xml | 2016-02-23T09:52:03 | 2024-08-16T04:46:50 | MathJax-src | mathjax/MathJax-src | 2,017 | 1,617 |
```xml
//
//
// Microsoft Bot Framework: path_to_url
//
// Bot Framework Emulator Github:
// path_to_url
//
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software witho... | /content/code_sandbox/packages/app/main/src/server/routes/directLine/handlers/getConversation.spec.ts | xml | 2016-11-11T23:15:09 | 2024-08-16T12:45:29 | BotFramework-Emulator | microsoft/BotFramework-Emulator | 1,803 | 398 |
```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 6.1c0 1.376-1.363 0.694-1.363 0.694L12.5 7H11a5.31 5.31 0 0 1... | /content/code_sandbox/app/src/main/res/drawable/ic_preset_maki_slaughterhouse.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 756 |
```xml
import { FunctionComponent } from 'react';
import { TChildrenRendererProps } from './shared-types';
import renderChildren from './renderChildren';
/**
* A component to render collections of tnodes.
* Especially useful when used with {@link useTNodeChildrenProps}.
*/
const TChildrenRenderer: FunctionComponent... | /content/code_sandbox/packages/render-html/src/TChildrenRenderer.tsx | xml | 2016-11-29T10:50:53 | 2024-08-08T06:53:22 | react-native-render-html | meliorence/react-native-render-html | 3,445 | 81 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="path_to_url"
android:id="@+id/deviceInfoRv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:overScrollMode="never" />
``` | /content/code_sandbox/lib/utildebug/src/main/res/layout/du_debug_device_info.xml | xml | 2016-07-30T18:18:32 | 2024-08-16T01:37:59 | AndroidUtilCode | Blankj/AndroidUtilCode | 33,178 | 68 |
```xml
import React from 'react';
import { MultiCascader, Button, Toggle, RadioGroup, Radio, Stack } from 'rsuite';
import DefaultPage from '@/components/Page';
import ImportGuide from '@/components/ImportGuide';
import PeoplesIcon from '@rsuite/icons/Peoples';
import AdminIcon from '@rsuite/icons/Admin';
import {
im... | /content/code_sandbox/docs/pages/components/multi-cascader/index.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 273 |
```xml
import _ from 'lodash';
import sinon from 'sinon';
import conformToMask from '../conformToMask';
import dynamicTests from './dynamicTests';
import testParameters, { noGuideMode, acceptedCharInMask, escapedMaskChar } from './testParameters';
import { convertMaskToPlaceholder } from '../utilities';
import keepChar... | /content/code_sandbox/src/MaskedInput/test/conformToMaskSpec.ts | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 1,979 |
```xml
import { paramCase } from 'change-case';
export default (compName) => `import React, { forwardRef, useContext } from 'react';
import { createBEM } from '@zarm-design/bem';
import { ConfigContext } from '../config-provider';
import type { HTMLProps } from '../utils/utilityTypes';
import type { Base${compName}Pro... | /content/code_sandbox/packages/zarm-cli/src/templates/component/compTpl.ts | xml | 2016-07-13T11:45:37 | 2024-08-12T19:23:48 | zarm | ZhongAnTech/zarm | 1,707 | 246 |
```xml
import * as Log from '../../log';
import { logCmdError } from '../../utils/errors';
const CTRL_C = '\u0003';
const debug = require('debug')('expo:start:interface:keyPressHandler') as typeof console.log;
/** An abstract key stroke interceptor. */
export class KeyPressHandler {
private isInterceptingKeyStroke... | /content/code_sandbox/packages/@expo/cli/src/start/interface/KeyPressHandler.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 621 |
```xml
import { DocumentNode } from 'graphql'
import { isRef } from 'vue-demi'
import { useQueryImpl, DocumentParameter, VariablesParameter, OptionsParameter, UseQueryOptions, UseQueryReturn } from './useQuery'
import type { OperationVariables } from '@apollo/client/core'
import { isServer } from './util/env.js'
expor... | /content/code_sandbox/packages/vue-apollo-composable/src/useLazyQuery.ts | xml | 2016-09-18T18:44:06 | 2024-08-14T21:22:24 | apollo | vuejs/apollo | 6,009 | 539 |
```xml
<resources>
<string name="app_name">Sample</string>
<string name="navigation_drawer_open">Open navigation drawer</string>
<string name="navigation_drawer_close">Close navigation drawer</string>
<string name="action_settings">Settings</string>
<string name="image_view_description">ImageView<... | /content/code_sandbox/sample/src/main/res/values/strings.xml | xml | 2016-01-30T13:08:17 | 2024-07-10T06:26:08 | MaterialIntroView | iammert/MaterialIntroView | 2,433 | 106 |
```xml
import * as React from 'react';
import { Image, StyleProp, StyleSheet, View, ViewStyle } from 'react-native';
import { getCardCoverStyle } from './utils';
import { useInternalTheme } from '../../core/theming';
import { grey200 } from '../../styles/themes/v2/colors';
import type { ThemeProp } from '../../types';... | /content/code_sandbox/src/components/Card/CardCover.tsx | xml | 2016-10-19T05:56:53 | 2024-08-16T08:48:04 | react-native-paper | callstack/react-native-paper | 12,646 | 511 |
```xml
import React from 'react';
import {
HTMLFieldProps,
connectField,
filterDOMProps,
joinName,
useField,
} from 'uniforms';
export type ListDelFieldProps = HTMLFieldProps<unknown, HTMLSpanElement>;
function ListDel({ disabled, name, readOnly, ...props }: ListDelFieldProps) {
const nameParts = joinName... | /content/code_sandbox/packages/uniforms-unstyled/src/ListDelField.tsx | xml | 2016-05-10T13:08:50 | 2024-08-13T11:27:18 | uniforms | vazco/uniforms | 1,934 | 311 |
```xml
import styled from "@emotion/styled"
import { observer } from "mobx-react-lite"
import { FC, useCallback } from "react"
import { useStores } from "../../hooks/useStores"
import { Localized } from "../../localize/useLocalization"
import { AutoScrollButton } from "../Toolbar/AutoScrollButton"
import QuantizeSelect... | /content/code_sandbox/app/src/components/TempoGraph/TempoGraphToolbar.tsx | xml | 2016-03-06T15:19:53 | 2024-08-15T14:27:10 | signal | ryohey/signal | 1,238 | 425 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Behavior Version="5">
<Node Class="Behaviac.Design.Nodes.Behavior" AgentType="EmployeeParTestAgent" Domains="" Enable="true" HasOwnPrefabData="false" Id="-1" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<DescriptorRefs value="0:" />
... | /content/code_sandbox/integration/unity/Assets/behaviac/workspace/behaviors/par_test/static_property_as_left_value_and_param.xml | xml | 2016-11-21T05:08:08 | 2024-08-16T07:18:30 | behaviac | Tencent/behaviac | 2,831 | 2,223 |
```xml
import { getUserAgent } from '../src/utils/get-user-agent';
describe('getUserAgent util', () => {
test('should resolve with empty string if nothing found', () => {
const userAgent = getUserAgent({
headers: {},
} as any);
expect(userAgent).toEqual('');
});
test('should use user-agent he... | /content/code_sandbox/packages/express-session/__tests__/utils.ts | xml | 2016-10-07T01:43:23 | 2024-07-14T11:57:08 | accounts | accounts-js/accounts | 1,492 | 238 |
```xml
<?xml version="1.0" encoding="utf-8"?><HelpTOCNode Title="CSharpParser Properties" Url="html/b717f267-2662-14ed-5247-fefc4d1d296b.htm"><HelpTOCNode Title="Args Property " Url="html/a456d967-d82c-977c-c4bc-f0399b313940.htm" /><HelpTOCNode Title="CmdScripts Property " Url="html/f09af14a-a96c-ff1c-f1b5-55440434391d... | /content/code_sandbox/docs/help/toc/b717f267-2662-14ed-5247-fefc4d1d296b.xml | xml | 2016-01-16T05:50:23 | 2024-08-14T17:35:38 | cs-script | oleg-shilo/cs-script | 1,583 | 679 |
```xml
import clone from 'lodash/clone';
/**
* A function that takes translations from a standard react-admin language package and converts them to i18next format.
* It transforms the following:
* - interpolations wrappers from `%{foo}` to `{{foo}}` unless a prefix and/or a suffix are provided
* - pluralization me... | /content/code_sandbox/packages/ra-i18n-i18next/src/convertRaTranslationsToI18next.ts | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 1,012 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.