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 { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import { Observable } from 'rxjs';
import { Hero } from './hero';
@Injectable()
export class HeroSearchService {
constructor(private http: Http) { }
search(term: string): Observable<Hero[]> {
return this.http
... | /content/code_sandbox/samples/features/json/angularjs/dotnet-tour-of-heroes/wwwroot/app/hero-search.service.ts | xml | 2016-03-11T21:42:56 | 2024-08-16T09:31:00 | sql-server-samples | microsoft/sql-server-samples | 9,855 | 100 |
```xml
<clickhouse>
<remote_servers>
<replicas_cluster>
<shard>
<replica>
<host>n1</host>
<port>9000</port>
</replica>
<replica>
<host>n2</host>
<port>9000</port>
... | /content/code_sandbox/tests/integration/test_distributed_load_balancing/configs/remote_servers.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 524 |
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VoxelInstanceLibrarySceneItem" inherits="VoxelInstanceLibraryItem" xmlns:xsi="path_to_url" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
<brief_description>
Instancer model using scenes.
</brief_description>
<description>
This model will spawn... | /content/code_sandbox/doc/classes/VoxelInstanceLibrarySceneItem.xml | xml | 2016-05-01T21:44:28 | 2024-08-16T18:52:42 | godot_voxel | Zylann/godot_voxel | 2,550 | 146 |
```xml
import { Version, Guid } from "@microsoft/sp-core-library";
import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
import {
IPropertyPaneConfiguration,
PropertyPaneTextField
} from "@microsoft/sp-property-pane";
import { escape } from "@microsoft/sp-lodash-subset";
import styles from "./MyFlows... | /content/code_sandbox/samples/js-myflows/src/webparts/myFlows/MyFlowsWebPart.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 949 |
```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="StepperLayout">
<!-- BACK button's text color -->
... | /content/code_sandbox/material-stepper/src/main/res/values/attrs.xml | xml | 2016-06-28T08:27:15 | 2024-08-05T10:12:04 | android-material-stepper | stepstone-tech/android-material-stepper | 1,781 | 1,712 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ All Rights Reserved.
-->
<vector
xmlns:android="path_to_url"
android:width="36dp"
android:height="36dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12 17... | /content/code_sandbox/library/src/main/res/drawable/mrb_star_icon_black_36dp.xml | xml | 2016-10-22T01:32:12 | 2024-08-14T01:26:08 | MaterialRatingBar | zhanghai/MaterialRatingBar | 1,960 | 161 |
```xml
import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { MenuButton as FluentMenuButton } from './menu-button.js';
import { MenuButtonAppearance, MenuButtonShape, MenuButtonSize } from './menu-button.... | /content/code_sandbox/packages/web-components/src/menu-button/menu-button.stories.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 3,942 |
```xml
<clickhouse>
<merge_tree>
<compress_marks>0</compress_marks>
<compress_primary_key>0</compress_primary_key>
</merge_tree>
</clickhouse>
``` | /content/code_sandbox/tests/integration/test_backward_compatibility/configs/no_compress_marks.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 41 |
```xml
import { isEmpty } from "lodash";
import React, { Component, CSSProperties, FC, MutableRefObject, RefObject, useCallback } from "react";
import { css, CommandBar, IconButton, ICommandBarItemProps, MessageBar, MessageBarType, Panel, PanelType, Stack, StackItem, Text, useTheme, TooltipHost } from '@fluentui/react'... | /content/code_sandbox/samples/react-rhythm-of-business-calendar/src/common/components/DataPanelBase.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 2,638 |
```xml
import { c } from 'ttag';
import {
APP_UPSELL_REF_PATH,
BRAND_NAME,
MAIL_APP_NAME,
MAIL_UPSELL_PATHS,
PLANS,
PLAN_NAMES,
UPSELL_COMPONENT,
} from '@proton/shared/lib/constants';
import { getUpsellRef } from '@proton/shared/lib/helpers/upsell';
import { getKnowledgeBaseUrl } from '@pr... | /content/code_sandbox/packages/components/containers/domains/CatchAllSection.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 379 |
```xml
import { NativeCommandsSender } from './adapters/NativeCommandsSender';
import { NativeEventsReceiver } from './adapters/NativeEventsReceiver';
import { Commands } from './commands/Commands';
import { EventsRegistry } from './events/EventsRegistry';
import { EventsRegistryIOS } from './events/EventsRegistryIOS';... | /content/code_sandbox/lib/src/Notifications.ts | xml | 2016-04-06T13:17:44 | 2024-08-06T01:35:50 | react-native-notifications | wix/react-native-notifications | 3,217 | 779 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(CurrentTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
</PropertyGroup>
</Project>
``` | /content/code_sandbox/test/TestAssets/TestProjects/WatchBrowserLaunchApp/WatchBrowserLaunchApp.csproj | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 46 |
```xml
import { expectNotAssignable } from 'tsd';
import { createStyleSet } from '../../src/index';
type CreateStyleSetInit = Parameters<typeof createStyleSet>[0];
// Related to #4081.
// Equivalent to: createStyleSet({ suggestedActionsStackedOverflow: 'string' });
expectNotAssignable<CreateStyleSetInit>({ suggeste... | /content/code_sandbox/packages/bundle/test-d/fail-once/invalid-style-options-suggested-actions-stacked-overflow.test-d.ts | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 81 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<view xmlns:android="path_to_url"
class="wangdaye.com.geometricweather.common.snackbar.Snackbar$SnackbarLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal"
android:background=... | /content/code_sandbox/app/src/main/res/layout/container_snackbar_layout.xml | xml | 2016-02-21T04:39:19 | 2024-08-16T13:35:51 | GeometricWeather | WangDaYeeeeee/GeometricWeather | 2,420 | 104 |
```xml
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../../..'
export const input = (
<editor>
<block>one</block>
</editor>
)
export const test = editor => {
return Editor.range(editor, [0])
}
export const output = {
anchor: { path: [0, 0], offset: 0 },
focus: { path: [0, 0], offset... | /content/code_sandbox/packages/slate/test/interfaces/Editor/range/path.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 102 |
```xml
import { TrackId } from "../track/Track"
export interface ITrackMute {
shouldPlayTrack(trackId: TrackId): boolean
}
``` | /content/code_sandbox/app/src/trackMute/ITrackMute.ts | xml | 2016-03-06T15:19:53 | 2024-08-15T14:27:10 | signal | ryohey/signal | 1,238 | 32 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<animated-selector
xmlns:android="path_to_url"
xmlns:app="path_to_url">
<item
android:id="@+id/pause"
android:drawable="@drawable/vd_playpausestop_pause"
app:state_pause="true"/>
<item
android:id="@+id/stop"
android:drawable="@drawable/vd_playp... | /content/code_sandbox/app/src/main/res/drawable/asl_playpausestop.xml | xml | 2016-11-04T14:23:35 | 2024-08-12T07:50:44 | adp-delightful-details | alexjlockwood/adp-delightful-details | 1,070 | 370 |
```xml
<resources>
<string name="app_name">Open Note Scanner</string>
<string name="title_activity_gallery">Galerij</string>
<string name="title_activity_full_image">Gescande afbeeldingviewer</string>
<string name="images_scanned">Afbeelding gescand</string>
<string name="action_share">Delen</string>
<string name... | /content/code_sandbox/app/src/main/res/values-nl/strings.xml | xml | 2016-02-10T11:14:38 | 2024-08-14T18:33:50 | OpenNoteScanner | allgood/OpenNoteScanner | 1,332 | 1,855 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:tint="?attr/colorControlNormal"
android:viewportHeight="24"
android:viewportWidth="24">
<group
android:name="rotationGroup"
android:pivotX="12"
android:pivotY="... | /content/code_sandbox/app/src/main/res/drawable/vd_pathmorph_drawer_arrow.xml | xml | 2016-11-04T14:23:35 | 2024-08-12T07:50:44 | adp-delightful-details | alexjlockwood/adp-delightful-details | 1,070 | 141 |
```xml
<test>
<settings>
<max_size_to_preallocate_for_aggregation>1000000000</max_size_to_preallocate_for_aggregation>
</settings>
<substitutions>
<substitution>
<name>table_name</name>
<values>
<value>hits_100m_single</value>
</values>
... | /content/code_sandbox/tests/performance/hash_table_sizes_stats.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 480 |
```xml
import React from 'react'
import {
Form,
OverlayContainer,
OverlayHeading,
OverlayTechnology,
} from 'src/reusable_ui'
const minLen = 3
export function validateRoleName(name: string): boolean {
return name?.length >= minLen
}
interface Props {
onCancel: () => void
onOK: () => void
visible: bool... | /content/code_sandbox/ui/src/admin/components/influxdb/ConfirmDiscardDialog.tsx | xml | 2016-08-24T23:28:56 | 2024-08-13T19:50:03 | chronograf | influxdata/chronograf | 1,494 | 325 |
```xml
import { argv } from 'just-scripts';
import * as fs from 'fs';
import * as path from 'path';
import { findGitRoot } from '@fluentui/scripts-monorepo';
import { build as storybook } from '@storybook/core-server';
// Option types are documented here but not included in package for some reason
// path_to_url
int... | /content/code_sandbox/scripts/tasks/src/storybook.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 679 |
```xml
/*global*/
import type { Chart, ChartOptions, ChartTypes, DataItem } from 'billboard.js';
// import BubbleCompare from 'billboard.js/dist/plugin/billboardjs-plugin-bubblecompare';
// import { scaleSqrt } from 'd3-scale';
import type { Commit, State } from '../../../../plus/webviews/timeline/protocol';
import typ... | /content/code_sandbox/src/webviews/apps/plus/timeline/chart.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 3,897 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="60dp"
android:paddingBott... | /content/code_sandbox/TextToSpeech/app/src/main/res/layout/content_main.xml | xml | 2016-02-25T11:06:48 | 2024-08-07T21:41:59 | android-examples | nisrulz/android-examples | 1,747 | 343 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\common.props" />
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
... | /content/code_sandbox/framework/src/Volo.Abp.ObjectMapping/Volo.Abp.ObjectMapping.csproj | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 224 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="path_to_url" xmlns:activiti="path_to_url" xmlns:bpmn2="path_to_url" xmlns:bpmndi="path_to_url" xmlns:dc="path_to_url" xmlns:di="path_to_url" xsi:schemaLocation="path_to_url BPMN20.xsd" id="Definitions_1" targetNamespace="path_to_url">
<bpmn2:... | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/event/end/TerminateEndEventTest.testProcessTerminateAll.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 1,820 |
```xml
import { User } from '../auth/user.model';
const authorMapper = (author: any, id?: number) => ({
username: author.username,
bio: author.bio,
image: author.image,
following: id
? author?.followedBy.some((followingUser: Partial<User>) => followingUser.id === id)
: false,
});
export default author... | /content/code_sandbox/src/app/routes/article/author.mapper.ts | xml | 2016-07-15T09:41:40 | 2024-08-15T19:57:40 | node-express-realworld-example-app | gothinkster/node-express-realworld-example-app | 3,565 | 80 |
```xml
/*
* LiskHQ/lisk-commander
*
* 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... | /content/code_sandbox/commander/src/utils/tablify.ts | xml | 2016-02-01T21:45:35 | 2024-08-15T19:16:48 | lisk-sdk | LiskArchive/lisk-sdk | 2,721 | 531 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="..">
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA7}</UniqueIdentifier>
</Filter>
<Filter Include="..\..">
<UniqueIdentifier>{739DB09A-CC57-A953-A6CF-F64FA08E4FA... | /content/code_sandbox/third_party/WebKit/Source/bindings/modules/v8/bindings_modules_v8_generated_init_partial.vcxproj.filters | xml | 2016-09-27T03:41:10 | 2024-08-16T10:42:57 | miniblink49 | weolar/miniblink49 | 7,069 | 462 |
```xml
import React from 'react';
import cx from 'classnames';
import { Dropdown as SemanticDropdown, DropdownProps as SUIDropdownProps } from 'semantic-ui-react';
import common from '../../common.scss';
import styles from './styles.scss';
export type DropdownProps = SUIDropdownProps & {
noCaret?: boolean;
noBord... | /content/code_sandbox/packages/ui/lib/components/Dropdown/index.tsx | xml | 2016-09-22T22:58:21 | 2024-08-16T15:47:39 | nuclear | nukeop/nuclear | 11,862 | 223 |
```xml
<Project Sdk="Microsoft.NET.Sdk.Razor">
<ItemGroup>
<Content Remove="bundleconfig.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="bundleconfig.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9" />
<PackageReferenc... | /content/code_sandbox/src/Modules/SimplCommerce.Module.Core/SimplCommerce.Module.Core.csproj | xml | 2016-05-21T13:43:01 | 2024-08-16T16:44:29 | SimplCommerce | simplcommerce/SimplCommerce | 4,173 | 183 |
```xml
import React from 'react';
import { fireEvent, render, screen } from '@testing-library/react';
import sinon from 'sinon';
import { testStandardProps } from '@test/utils';
import PanelGroup from '../PanelGroup';
import Panel from '../../Panel';
describe('PanelGroup', () => {
testStandardProps(<PanelGroup />);
... | /content/code_sandbox/src/PanelGroup/test/PanelGroupSpec.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 668 |
```xml
<resources>
<string name="app_name">Expanding Collection Simple Example</string>
</resources>
``` | /content/code_sandbox/expanding-collection-simple-example/src/main/res/values/strings.xml | xml | 2016-10-06T13:30:26 | 2024-08-15T19:22:08 | expanding-collection-android | Ramotion/expanding-collection-android | 2,022 | 23 |
```xml
import React, { memo, useCallback } from 'react'
import { ChartProperty, Flavor } from '../../../types'
import { ControlContext, TextControlConfig } from '../types'
import { Control, PropertyHeader, Help, TextInput } from '../ui'
interface TextControlProps {
id: string
property: ChartProperty
flavor... | /content/code_sandbox/website/src/components/controls/generics/TextControl.tsx | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 284 |
```xml
<Controls:MetroWindow
x:Class="Certify.UI.Windows.UpdateAvailable"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:Controls1="clr-namespace:Certify.UI.Controls"
xmlns:d="path_to_url"
xmlns:fa="path_to_url"
... | /content/code_sandbox/src/Certify.UI.Shared/Windows/UpdateAvailable.xaml | xml | 2016-03-27T07:05:15 | 2024-08-15T05:08:45 | certify | webprofusion/certify | 1,471 | 667 |
```xml
#import "AppDelegate.h"
#import <React/RCTBundleURLProvider.h>
@implementation AppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
self.moduleName = @"MacOSExample";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewCo... | /content/code_sandbox/MacOSExample/macos/MacOSExample-macOS/AppDelegate.mm | xml | 2016-10-27T08:31:38 | 2024-08-16T12:03:40 | react-native-gesture-handler | software-mansion/react-native-gesture-handler | 5,989 | 256 |
```xml
<Activity mc:Ignorable="sap sap2010" x:Class="NestedSequencesWithVars"
xmlns="path_to_url"
xmlns:mc="path_to_url"
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
xmlns:sap="path_to_url"
xmlns:sap2010="path_to_url"
... | /content/code_sandbox/src/Test/TestCases.Workflows/TestXamls/NestedSequencesWithVars.xaml | xml | 2016-08-25T20:07:20 | 2024-08-13T22:23:35 | CoreWF | UiPath/CoreWF | 1,126 | 998 |
```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"
android:gravity="center"
tools:context=".MainActiv... | /content/code_sandbox/Android/AndroidQSettingsPanel/app/src/main/res/layout/activity_main.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 353 |
```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>
<string name="side_sheet_accessibility_pane_title">Zijblad</string>
<... | /content/code_sandbox/lib/java/com/google/android/material/sidesheet/res/values-nl/strings.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 89 |
```xml
import moment from 'moment';
import { WalletTransaction } from '../../../domains/WalletTransaction';
export class TransactionsGroup {
date: moment.Moment;
transactions: WalletTransaction[];
constructor(props: {
date: moment.Moment;
transactions: WalletTransaction[];
}) {
Object.assign(this,... | /content/code_sandbox/source/renderer/app/components/wallet/transactions/types.ts | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 143 |
```xml
import { styled } from "@mui/material/styles";
import Dialog from "@mui/material/Dialog";
export const StyledDialog = styled(Dialog)(({ theme }) => ({
"& .MuiDialogContent-root": {
padding: theme.spacing(2),
},
"& .MuiDialogActions-root": {
padding: theme.spacing(1),
},
}));
``` | /content/code_sandbox/samples/react-personal-tools-list/src/webparts/myTools/styles/muiMaterialStyles.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 73 |
```xml
export abstract class Table<T> {
public currentPage = 1;
public nbElementsByPage = 10;
abstract getData(): Array<T>;
/**
* Get the data for the current page.
*
* @returns
*/
getDataForCurrentPage(): Array<T> {
let indexStart = 0;
if (this.currentPage > 1... | /content/code_sandbox/ui/src/app/shared/table/table.ts | xml | 2016-10-11T08:28:23 | 2024-08-16T01:55:31 | cds | ovh/cds | 4,535 | 368 |
```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.
-->
<androidx.cardview.widget.CardView
xmlns:android="path_to_url"
xmlns:a... | /content/code_sandbox/demo-ads/src/main/res/layout/native_ad_list_item.xml | xml | 2016-01-31T15:45:41 | 2024-08-14T02:52:55 | toro | eneim/toro | 1,414 | 706 |
```xml
export function getMiddlewareParams(event = 'login', data = {}) {
const cb = jest.fn();
const next = jest.fn();
return {
args: [event, data, cb],
cb,
next,
};
}
``` | /content/code_sandbox/packages/server/test/helpers/middleware.ts | xml | 2016-02-15T14:47:58 | 2024-08-14T13:07:55 | fiora | yinxin630/fiora | 6,485 | 51 |
```xml
import { Component } from '@angular/core';
import { BaseIcon } from 'primeng/baseicon';
@Component({
selector: 'CalendarIcon',
standalone: true,
imports: [BaseIcon],
template: `
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="path_to_url" [attr.aria-label]="ariaLabel" ... | /content/code_sandbox/src/app/components/icons/calendar/calendar.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 1,226 |
```xml
import { createModel } from '@rematch/core';
import { Manifest } from '@verdaccio/types';
import type { RootModel } from '.';
import { PackageMetaInterface } from '../../types/packageMeta';
import API from '../api';
import { APIRoute } from './routes';
import { stripTrailingSlash } from './utils';
function is... | /content/code_sandbox/packages/ui-components/src/store/models/manifest.ts | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 640 |
```xml
<?xml version="1.0"?>
<!-- drawable/update.xml -->
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FFF"
android:pathData="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.8... | /content/code_sandbox/app/src/main/res/drawable/ic_version_white_24dp.xml | xml | 2016-02-22T10:00:46 | 2024-08-16T15:37:50 | Images-to-PDF | Swati4star/Images-to-PDF | 1,174 | 323 |
```xml
import { Path } from 'slate'
export const input = {
path: [0, 1],
another: [0, 1],
}
export const test = ({ path, another }) => {
return Path.isSibling(path, another)
}
export const output = false
``` | /content/code_sandbox/packages/slate/test/interfaces/Path/isSibling/equal.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 61 |
```xml
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/config/gpu_info_collector.h"
#include <vector>
#include "base/logging.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_ioobject.h"
#include "b... | /content/code_sandbox/orig_chrome/gpu/config/gpu_info_collector_mac.mm | xml | 2016-09-27T03:41:10 | 2024-08-16T10:42:57 | miniblink49 | weolar/miniblink49 | 7,069 | 1,808 |
```xml
/*
* *** MIT LICENSE ***
* your_sha256_hash---------
* This code may be modified and distributed under the MIT license.
* See the LICENSE file for details.
* your_sha256_hash---------
*
* @summary Definitions for redux-logic
*
* @author Alvis HT Tang <alvis@hilbert.space>... | /content/code_sandbox/definitions/index.d.ts | xml | 2016-08-01T20:12:23 | 2024-06-30T01:28:48 | redux-logic | jeffbski/redux-logic | 1,807 | 125 |
```xml
import { useCallback, useRef, useState } from "react";
import { Button } from "react-common/components/controls/Button";
import KeyboardControlsInfo from "./KeyboardControlsInfo";
import Popup from "./Popup";
export default function Render() {
const [showKeys, setShowKeys] = useState(false);
const butto... | /content/code_sandbox/multiplayer/src/components/KeyboardControlsButton.tsx | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 305 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12120" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="g8W-qW-Pfp">
<device... | /content/code_sandbox/PlistDemo/Base.lproj/Main.storyboard | xml | 2016-03-15T05:44:49 | 2024-08-12T19:21:54 | SwiftTheme | wxxsw/SwiftTheme | 2,514 | 6,192 |
```xml
import { Table, Column, Model } from '../../../src';
@Table
export class Game extends Model {
@Column
title: string;
}
``` | /content/code_sandbox/test/models/exports/Game.ts | xml | 2016-01-27T11:25:52 | 2024-08-13T16:56:45 | sequelize-typescript | sequelize/sequelize-typescript | 2,768 | 31 |
```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/Data/index.ts | xml | 2016-09-02T07:00:06 | 2024-08-16T03:50:21 | trafficcontrol | apache/trafficcontrol | 1,043 | 199 |
```xml
export interface TagRepositorySectionResponseRootObject {
sections: TagRepositorySectionResponsesectionsItem[];
more_available: boolean;
next_max_id: string;
next_page: number;
next_media_ids: string[];
auto_load_more_enabled: boolean;
status: string;
}
export interface TagRepositorySectionResponse... | /content/code_sandbox/src/responses/tag.repository.section.response.ts | xml | 2016-06-09T12:14:48 | 2024-08-16T10:07:22 | instagram-private-api | dilame/instagram-private-api | 5,877 | 97 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:id="@+id/zhihu_item_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/item_margin"
android:pa... | /content/code_sandbox/app/src/main/res/layout/zhihu_layout_item.xml | xml | 2016-08-20T00:57:24 | 2024-08-09T02:01:01 | LookLook | xinghongfei/LookLook | 2,211 | 374 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<domain:infData
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.tld</domain:name>
<domain:roid>%ROID%<... | /content/code_sandbox/core/src/test/resources/google/registry/flows/domain/domain_info_response_delegated_hosts.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 446 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<animated-vector xmlns:android="path_to_url"
android:drawable="@drawable/ic_spotlight_arc">
<target
android:name="curve_left_atrium"
android:animation="@animator/arc_animator" />
<target
android:name="curve_right_atrium"
android... | /content/code_sandbox/Spotlight-library/src/main/res/drawable/avd_spotlight_arc.xml | xml | 2016-06-14T11:34:35 | 2024-08-14T04:14:09 | Spotlight | 29jitender/Spotlight | 1,272 | 95 |
```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/tools/tzcode/icuzdump.vcxproj | xml | 2016-01-08T02:42:32 | 2024-08-16T18:14:55 | icu | unicode-org/icu | 2,693 | 1,442 |
```xml
import { jsx, Canvas, Chart, Timeline, Axis, Interval, Line } from '../../src';
import { createContext } from '../util';
const context = createContext('', { width: '300px', height: '500px' });
const data = [
{ type: 'a', genre: 'Sports', sold: 5 },
{ type: 'a', genre: 'Strategy', sold: 10 },
{ type: 'a',... | /content/code_sandbox/packages/f2/test/timeline/interval-adjust.test.tsx | xml | 2016-08-29T06:26:23 | 2024-08-16T15:50:14 | F2 | antvis/F2 | 7,877 | 391 |
```xml
/// <reference types="node" />
/// <reference types="react" />
/// <reference types="node" />
import type { SatoriOptions } from "next/dist/compiled/@vercel/og/satori";
import type { EmojiType } from './emoji';
import type { OutgoingHttpHeader } from 'http';
declare type ImageOptions = {
/**
* The width... | /content/code_sandbox/packages/next/src/compiled/@vercel/og/types.d.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 915 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SyncSettingsUIBase</class>
<widget class="QWidget" name="SyncSettingsUIBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>339</width>
<height>270</height>
</rect>
</property>
<property name="windowTitle"... | /content/code_sandbox/src/MEGASync/syncs/gui/Twoways/win/SyncSettingsUIBase.ui | xml | 2016-02-10T18:28:05 | 2024-08-16T19:36:44 | MEGAsync | meganz/MEGAsync | 1,593 | 1,610 |
```xml
/*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/src/templates/assets/javascripts/templates/tabbed/index.tsx | xml | 2016-01-28T22:09:23 | 2024-08-16T17:55:06 | mkdocs-material | squidfunk/mkdocs-material | 19,629 | 387 |
```xml
const ThreadDragImage = document.createElement('img');
ThreadDragImage.src = `data:image/png;base64,your_sha256_hashyour_sha256_hashGGOx72bfwg628bAYA536VfpFL+Xume6ebnvkqZb+IswMXfX+v6rXr6pnOlOCIJjiNXHyJngAHoCXB+ABeHkAHoCXB+ABeHkAHoCXB+ABeHkAHoCXB+ABeHkAdQQg5dHg9T8lPrICKNd4Yx0rNZC0AMqZ3WQ0tc7VVAFIVQDGGN/e3v7lvHnzl... | /content/code_sandbox/app/src/canvas-utils.ts | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 3,547 |
```xml
import { Secret } from 'kubernetes-types/core/v1';
export interface SecretRowData extends Secret {
inUse: boolean;
isSystem: boolean;
}
``` | /content/code_sandbox/app/react/kubernetes/configs/ListView/SecretsDatatable/types.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 35 |
```xml
<?xml version="1.0" encoding="utf-8" ?>
<local:TestTabbedPage
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
xmlns:local="using:Xamarin.Forms.Controls"
mc:Ignorable="d"
Title="Test 8804"
x:Class="Xamarin.Forms.Controls.Issues.Issue8804"
... | /content/code_sandbox/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue8804.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 340 |
```xml
import React from 'react';
type IconProps = React.SVGProps<SVGSVGElement>;
export declare const IcBrandDiscover: (props: IconProps) => React.JSX.Element;
export {};
``` | /content/code_sandbox/packages/icons/lib/icBrandDiscover.d.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 43 |
```xml
import { Component } from '@angular/core';
import { Observable } from 'rxjs/Rx';
import { TodoStore } from '../shared/services/todo.store';
import { EmitterService } from '../shared/services/emitter.service';
import { Todo } from '../shared/models/todo.model';
/**
* The list of todos component
*
* Can fil... | /content/code_sandbox/test/fixtures/todomvc-ng2/src/app/list/list.component.ts | xml | 2016-10-17T07:09:28 | 2024-08-14T16:30:10 | compodoc | compodoc/compodoc | 3,980 | 305 |
```xml
import { promises as fsp, mkdirSync, writeFileSync } from 'node:fs'
import { dirname, join, relative, resolve } from 'pathe'
import { defu } from 'defu'
import { findPath, logger, normalizePlugin, normalizeTemplate, resolveAlias, resolveFiles, resolvePath } from '@nuxt/kit'
import type { Nuxt, NuxtApp, NuxtPlugi... | /content/code_sandbox/packages/nuxt/src/core/app.ts | xml | 2016-10-26T11:18:47 | 2024-08-16T19:32:46 | nuxt | nuxt/nuxt | 53,705 | 2,825 |
```xml
import type { FunctionComponent } from 'react';
import { Alert, StyleSheet, Text, View } from 'react-native';
import { FlatList, RectButton } from 'react-native-gesture-handler';
import AppleStyleSwipeableRow from './GestureHandler/AppleStyleSwipeableRow';
import GmailStyleSwipeableRow from './GestureHandler/Gm... | /content/code_sandbox/apps/native-component-list/src/screens/GestureHandlerSwipeableScreen.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,264 |
```xml
import type { Addon_DecoratorFunction } from 'storybook/internal/types';
import { PARAM_KEY } from './constants';
import { withMeasure } from './withMeasure';
export const decorators: Addon_DecoratorFunction[] = [withMeasure];
export const initialGlobals = {
[PARAM_KEY]: false,
};
``` | /content/code_sandbox/code/addons/measure/src/preview.tsx | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 66 |
```xml
<stix:STIX_Package xmlns:cyboxCommon="path_to_url" xmlns:cybox="path_to_url" xmlns:cyboxVocabs="path_to_url" xmlns:URIObj="path_to_url#URIObject-2" xmlns:example="path_to_url" xmlns:indicator="path_to_url" xmlns:stixCommon="path_to_url" xmlns:stixVocabs="path_to_url" xmlns:stix="path_to_url" xmlns:xsi="path_to_u... | /content/code_sandbox/Packs/Base/Scripts/StixParser/test_data/stix1_tests/url-stix-ioc.xml | xml | 2016-06-06T12:17:02 | 2024-08-16T11:52:59 | content | demisto/content | 1,108 | 445 |
```xml
import { getSubscription } from '@proton/shared/lib/api/payments';
import { PLANS } from '@proton/shared/lib/constants';
import type { Subscription } from '@proton/shared/lib/interfaces';
import formatSubscription from '@proton/shared/lib/subscription/format';
import { addApiMock } from '@proton/testing';
expor... | /content/code_sandbox/packages/components/hooks/helpers/test/useSubscription.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 477 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="debug|x64">
<Configuration>debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfigura... | /content/code_sandbox/PhysX_3.4/Snippets/compiler/vc12win64/SnippetJoint.vcxproj | xml | 2016-10-12T16:34:31 | 2024-08-16T09:40:38 | PhysX-3.4 | NVIDIAGameWorks/PhysX-3.4 | 2,343 | 4,708 |
```xml
export { Input } from './Input';
export { Select } from './Select';
``` | /content/code_sandbox/app/react/components/form-components/Input/index.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 17 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Input, OnDestroy, ViewChild } from '@angular/core';
import { FocusedImage, FocusPicker } from 'image-focus';
import { TranslatePipe, Types } from '@app/framework';
import { AnnotateAssetDto, Ass... | /content/code_sandbox/frontend/src/app/shared/components/assets/image-focus-point.component.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 665 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xs:schema version="1.0.0"
attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="path_to_url">
<xs:complexType name="DependencyInfo">
<xs:attribute name="Id">
<xs:annotation>
<xs:documentation>
... | /content/code_sandbox/packages/Microsoft.VSSDK.BuildTools.14.3.25407/tools/vssdk/schemas/PackageManifestSchema.Dependencies.xsd | xml | 2016-04-24T09:50:47 | 2024-08-16T11:45:14 | ILRuntime | Ourpalm/ILRuntime | 2,976 | 506 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const DeclineCallIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1024 512q75 0 159 8t171 25 171 44 164 64 145 86 11... | /content/code_sandbox/packages/react-icons-mdl2/src/components/DeclineCallIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 472 |
```xml
import React from 'react';
import { injectIntl } from 'react-intl';
import SVGInline from 'react-svg-inline';
import QRCode from 'qrcode.react';
// @ts-ignore ts-migrate(2307) FIXME: Cannot find module '../../../assets/images/voting/... Remove this comment to see the full error message
import downloadAppStoreIco... | /content/code_sandbox/source/renderer/app/components/voting/voting-info/AppStore.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 514 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<regress-exe>
<test>
<default>
<files>TryCatchStackOverflow.js</files>
</default>
</test>
</regress-exe>
``` | /content/code_sandbox/test/TryCatch/rlexe.xml | xml | 2016-01-05T19:05:31 | 2024-08-16T17:20:00 | ChakraCore | chakra-core/ChakraCore | 9,079 | 55 |
```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 secd = require( './index' );
// TESTS //
// The function returns a number...
{
secd( 60 ); // $ExpectTy... | /content/code_sandbox/lib/node_modules/@stdlib/math/base/special/secd/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 218 |
```xml
import invariant from "invariant";
import Team from "~/models/Team";
import useStores from "./useStores";
/**
* Returns the current team, or undefined if there is no current team and `rejectOnEmpty` is set to
* false.
*
* @param options.rejectOnEmpty - If true, throws an error if there is no current team. D... | /content/code_sandbox/app/hooks/useCurrentTeam.ts | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 176 |
```xml
import { Component } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'import-doc',
template: ` <app-code [code]="code" [hideToggleCode]="true"></app-code> `
})
export class ImportDoc {
code: Code = {
typescript: `import { InputNumberModule } from 'primeng/in... | /content/code_sandbox/src/app/showcase/doc/inputnumber/importdoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 85 |
```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 format from 'date-fns/format';
import { Apps } from './Apps';
export class AppsFormBasedDetails extends Apps {
redirect... | /content/code_sandbox/maxkey-web-frontend/maxkey-web-mgt-app/src/app/entity/AppsFormBasedDetails.ts | xml | 2016-11-16T03:06:50 | 2024-08-16T09:22:42 | MaxKey | dromara/MaxKey | 1,423 | 219 |
```xml
import { observer } from "mobx-react";
import { ArchiveIcon, GoToIcon, ShapesIcon, TrashIcon } from "outline-icons";
import * as React from "react";
import { useTranslation } from "react-i18next";
import styled from "styled-components";
import type { NavigationNode } from "@shared/types";
import Document from "~... | /content/code_sandbox/app/components/DocumentBreadcrumb.tsx | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 848 |
```xml
import { global } from "../globals/index.js";
declare global {
interface Window {
[cacheSizeSymbol]?: Partial<CacheSizes>;
}
}
/**
* The cache sizes used by various Apollo Client caches.
*
* @remarks
* All configurable caches hold memoized values. If an item is
* cache-collected, it incurs only a ... | /content/code_sandbox/src/utilities/caching/sizes.ts | xml | 2016-02-26T20:25:00 | 2024-08-16T10:56:57 | apollo-client | apollographql/apollo-client | 19,304 | 2,765 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="debug|Win32">
<Configuration>debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
... | /content/code_sandbox/deps/boost_1_66_0/libs/qvm/bld/test/rotx_quat_test.vcxproj | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 2,470 |
```xml
import AppLayout from "@cloudscape-design/components/app-layout";
import { useEffect } from "react";
import "./App.css";
import LoginNavigation from "./LoginNavigation";
import { useStore } from "./store";
import FeedbackLayout from "./FeedbackLayout";
function App() {
const { checkAuth, token } = useStore()... | /content/code_sandbox/applications/feedback_sentiment_analyzer/client/src/App.tsx | xml | 2016-08-18T19:06:57 | 2024-08-16T18:59:44 | aws-doc-sdk-examples | awsdocs/aws-doc-sdk-examples | 9,298 | 139 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="path_to_url">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGro... | /content/code_sandbox/samples/applications/iot-smart-grid/DataGenerator/DataGenerator.csproj | xml | 2016-03-11T21:42:56 | 2024-08-16T09:31:00 | sql-server-samples | microsoft/sql-server-samples | 9,855 | 637 |
```xml
// Type definitions for Combokeys v2.4.6
// Project: path_to_url
// Definitions by: Ian Clanton-Thuon <path_to_url
// Definitions: path_to_url
declare namespace Combokeys {
interface CombokeysStatic {
new (element: Element): Combokeys;
/**
* all instances of Combokeys
*/
... | /content/code_sandbox/samples/angular-migration/angular-todo-webpart/typings/combokeys/combokeys.d.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 720 |
```xml
import { DeleteOutlined } from "@ant-design/icons";
import { AutoComplete, Button, Input } from "antd";
import React, { memo, useCallback, useEffect } from "react";
import { KeyValuePair } from "../../types";
interface Props {
keyValuePairs: KeyValuePair[];
setKeyValuePairs: (keyValuePairs: KeyValuePair[]) ... | /content/code_sandbox/app/src/views/features/api-client/client-view/request/KeyValueForm.tsx | xml | 2016-12-01T04:36:06 | 2024-08-16T19:12:19 | requestly | requestly/requestly | 2,121 | 646 |
```xml
export interface IPaginationActionsProps {
description: string;
onChangePage: (event,page)=>void;
page:number;
count:number;
rowsPerPage:number;
}
``` | /content/code_sandbox/samples/react-material-ui/src/webparts/materialUiSample/components/Pagination/IPaginationActionsProps.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 38 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url" xmlns:activiti="path_to_url"
targetNamespace="Examples">
<error id="myError" errorCode="123" />
<process id="CatchErrorInEmbeddedSubProcess">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theSta... | /content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/event/error/ErrorEventSubProcessTest.testEventSubprocessTakesPrecedence.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 397 |
```xml
import * as React from 'react';
import {
AvatarGroup,
AvatarGroupItem,
AvatarGroupPopover,
AvatarGroupPopoverProps,
AvatarGroupProps,
partitionAvatarGroupItems,
} from '@fluentui/react-avatar';
export const names = [
'Katri Athokas',
'Elvia Atkins',
'Mauricio August',
'Colin Ballinger',
'L... | /content/code_sandbox/apps/vr-tests-react-components/src/stories/AvatarGroup/utils.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 493 |
```xml
<configuration>
<appender name="CONSOLE"
class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{ISO8601} %-5p %X{dbz.connectorType}|%X{dbz.connectorName}|%X{dbz.taskId}|%X{dbz.connectorContext}|%X{dbz.databaseName} %m [%c]%n</pattern>
</encoder>
</appe... | /content/code_sandbox/debezium-storage/debezium-storage-jdbc/src/test/resources/logback-test.xml | xml | 2016-01-22T20:17:05 | 2024-08-16T13:42:33 | debezium | debezium/debezium | 10,320 | 263 |
```xml
import {ViewEngine} from "../decorators/viewEngine.js";
import {Engine, EngineOptions} from "./Engine.js";
@ViewEngine("squirrelly")
export class SquirrellyEngine extends Engine {
protected $compile(template: string, options: EngineOptions) {
for (const partial in options.partials) {
this.engine.def... | /content/code_sandbox/packages/engines/src/components/SquirrellyEngine.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 136 |
```xml
import { SHA, Branch, ICommit } from 'shared/models/Versioning/RepositoryData';
export type NetworkColor = number; // 0xffffff
export interface INetworkCoordinate {
x: number;
y: number;
}
export interface INetworkData {
points: INetworkPoint[];
connections: INetworkConnection[];
}
export interface I... | /content/code_sandbox/webapp/client/src/shared/models/Versioning/NetworkGraph/index.ts | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 460 |
```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 MultiSlice = require( '@stdlib/slice/multi' );
import sliceShape = require( './index' );
// TESTS //
// ... | /content/code_sandbox/lib/node_modules/@stdlib/slice/base/shape/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 331 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="path_to_url">
<!--shadow-->
<item>
<shape android:shape="rectangle">
<gradient
android:angle="90"
android:endColor="@android:color/transparent"
android:startColor="#88333... | /content/code_sandbox/app/src/main/res/drawable/view_top_shadow.xml | xml | 2016-11-04T02:04:13 | 2024-08-07T01:13:41 | MyDiary | DaxiaK/MyDiary | 1,580 | 87 |
```xml
import { GetServerSideProps } from 'next'
type Props = {
data: string
cookies: any
}
export const getServerSideProps: GetServerSideProps<Props> = async ({
req,
}) => {
return {
props: { data: 'hello world', cookies: req.cookies },
}
}
export default function Page({ cookies }: Props) {
return <... | /content/code_sandbox/test/integration/typescript/pages/ssr/cookies.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 96 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.