text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="path_to_url">
<solid android:color="?attr/colorSecondary" />
<corners android:radius="12dp" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/rounded_new_label.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 52 |
```xml
import { theme } from '@expo/styleguide';
export const NotFoundImage = () => (
<svg width="218" height="133" fill="none" xmlns="path_to_url">
<path
d="m25.977 131.315 63.762-8.961c5.47-.769 9.28-5.826 8.511-11.295l-9.14-65.046a10 10 0 0 0-3.885-6.594L56.807 18.005a10 10 0 0 0-7.41-1.917l-38.846 5.46... | /content/code_sandbox/docs/ui/components/ErrorPage/NotFoundImage.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 13,891 |
```xml
<project xmlns="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.journaldev.java</groupId>
<artifactId>Java-Cloning</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<artifactId>maven-compil... | /content/code_sandbox/CoreJavaProjects/Java-Cloning/pom.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 162 |
```xml
import type { KeyboardEvent } from 'react';
import { useEffect, useMemo, useRef, useState } from 'react';
import { c } from 'ttag';
import { Button } from '@proton/atoms/Button';
import type { IconName } from '@proton/components/components';
import { Icon, InputFieldTwo, Tooltip } from '@proton/components/comp... | /content/code_sandbox/applications/mail/src/app/components/assistant/toolbar/ComposerAssistantCustomInput.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 1,210 |
```xml
// Utility library of default shader snippets.
export namespace GfxShaderLibrary {
// Matrix library. Automatically included into every shader by default for convenience reasons.
export const mat4 = `
struct Mat4x4 { vec4 mx; vec4 my; vec4 mz; vec4 mw; };
struct Mat4x3 { vec4 mx; vec4 my; vec4 mz; };
struct M... | /content/code_sandbox/src/gfx/helpers/GfxShaderLibrary.ts | xml | 2016-10-06T21:43:45 | 2024-08-16T17:03:52 | noclip.website | magcius/noclip.website | 3,206 | 2,684 |
```xml
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
import { UntypedFormGroup, ReactiveFormsModule } from "@angular/forms";
import {
DynamicFormControlComponent,
DynamicFormControlLayout,
DynamicFormLayout,
DynamicFormLayoutService,
DynamicFormVali... | /content/code_sandbox/projects/ng-dynamic-forms/ui-foundation/src/lib/switch/dynamic-foundation-switch.component.ts | xml | 2016-06-01T20:26:33 | 2024-08-05T16:40:39 | ng-dynamic-forms | udos86/ng-dynamic-forms | 1,315 | 260 |
```xml
import {
createPresenceComponent,
Field,
makeStyles,
mergeClasses,
type MotionImperativeRef,
motionTokens,
Slider,
Switch,
tokens,
} from '@fluentui/react-components';
import * as React from 'react';
import description from './PresenceAppear.stories.md';
const useClasses = makeStyles({
cont... | /content/code_sandbox/packages/react-components/react-motion/stories/src/CreatePresenceComponent/PresenceAppear.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 801 |
```xml
import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';
import { CaptionsLangOption } from '../../models/caption.model';
import { StorageService } from '../storage/storage.service';
/**
* @internal
*/
@Injectable({
providedIn: 'root'
})
export class CaptionService {
private l... | /content/code_sandbox/openvidu-components-angular/projects/openvidu-components-angular/src/lib/services/caption/caption.service.ts | xml | 2016-10-10T13:31:27 | 2024-08-15T12:14:04 | openvidu | OpenVidu/openvidu | 1,859 | 581 |
```xml
import { CoordinateComponent as CC } from '../runtime';
import { HelixCoordinate } from '../spec';
export type HelixOptions = HelixCoordinate;
/**
* Helix
*/
export const Helix: CC<HelixOptions> = ({
startAngle = 0,
endAngle = Math.PI * 6,
innerRadius = 0,
outerRadius = 1,
}) => [
['translate', 0.5... | /content/code_sandbox/src/coordinate/helix.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 141 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<OutputType>Exe</OutputType>
<DefineConstants>$(DefineConstants);NET</DefineConstants>
<RootNamespace>monotouchtest</RootNamespace>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\..\..\product.snk</Assembly... | /content/code_sandbox/tests/monotouch-test/dotnet/shared.csproj | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 3,748 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Behavior Version="5" NoError="true">
<Node Class="Behaviac.Design.Nodes.Behavior" AgentType="FirstAgent" Domains="" Enable="true" HasOwnPrefabData="false" Id="-1" PrefabName="" PrefabNodeId="-1">
<Comment Background="NoColor" Text="" />
<DescriptorRefs value="0:"... | /content/code_sandbox/tutorials/tutorial_8/workspace/behaviors/StructBT.xml | xml | 2016-11-21T05:08:08 | 2024-08-16T07:18:30 | behaviac | Tencent/behaviac | 2,831 | 499 |
```xml
import React from 'react';
import { StatusBarProps } from './StatusBar.types';
export default function ExpoStatusBar(props: StatusBarProps): React.JSX.Element;
//# sourceMappingURL=ExpoStatusBar.ios.d.ts.map
``` | /content/code_sandbox/packages/expo-status-bar/build/ExpoStatusBar.ios.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 43 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<liste><date_actuelle>2024-04-14 15:10:57</date_actuelle><date_debut>2024-04-13</date_debut><date_fin>2024-04-15</date_fin><date_minimale_calendrier>2014-12-01</date_minimale_calendrier><echantillon>1</echantillon><donneesMarche date='2024-04-13'><type v='donneesMarche' per... | /content/code_sandbox/parsers/test/mocks/GB/eco2mix_api_live.xml | xml | 2016-05-21T16:36:17 | 2024-08-16T17:56:07 | electricitymaps-contrib | electricitymaps/electricitymaps-contrib | 3,437 | 11,910 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<hyphenation-info>
<!-- Lithuanian Hyphenation Patterns -->
<!-- (more info about the licence to be added later) -->
<!-- This file is part of hyph-utf8 package and resulted from -->
<!-- semi-manual conversions of hyphenation patterns into UTF-8 -->
<!-- in October 2008... | /content/code_sandbox/itext/itext.hyph/lt.xml | xml | 2016-06-16T14:34:03 | 2024-08-14T11:37:28 | itext-dotnet | itext/itext-dotnet | 1,630 | 6,679 |
```xml
import { createContext, useContext } from 'react';
import type { UseReferenceFieldControllerResult } from './useReferenceFieldController';
export const ReferenceFieldContext =
createContext<UseReferenceFieldControllerResult | null>(null);
export const ReferenceFieldContextProvider = ReferenceFieldContext.P... | /content/code_sandbox/packages/ra-core/src/controller/field/ReferenceFieldContext.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 114 |
```xml
// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
import * as utilities from "./utilities";
/**
* I... | /content/code_sandbox/tests/testdata/codegen/urn-id-properties/nodejs/res.ts | xml | 2016-10-31T21:02:47 | 2024-08-16T19:47:04 | pulumi | pulumi/pulumi | 20,743 | 587 |
```xml
import { expect } from 'chai';
import {
normalizeWhitespaces,
propertyPath,
escapeRegExpLiteral,
escapeRegExp,
normalizeFileName,
normalizeLineEndings,
strykerReportBugUrl,
} from '../../src/index.js';
describe('stringUtils', () => {
describe(normalizeWhitespaces.name, () => {
it('should no... | /content/code_sandbox/packages/util/test/unit/string-utils.spec.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 1,132 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
type ProcessInstanceFilterField =
| 'process'
| 'version'
| 'ids'
| 'parentInstanceId'
| 'errorMessage'
| 'flowNodeId'
| 'variableName'
... | /content/code_sandbox/operate/client/src/modules/utils/filter/shared.ts | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 421 |
```xml
import { addCommentInputSchema } from '../misc/custom-schemas'
import type { IntegrationProps } from '../misc/types'
import { getClient } from '../utils'
export const addComment: IntegrationProps['actions']['addComment'] = async ({ ctx, input, logger }) => {
const validatedInput = addCommentInputSchema.parse... | /content/code_sandbox/integrations/trello/src/actions/add-comment.ts | xml | 2016-11-16T21:57:59 | 2024-08-16T18:45:35 | botpress | botpress/botpress | 12,401 | 186 |
```xml
interface Product {
href: string
title: string
src: string
price: number
}
interface Vendor {
name: string
products: Product[]
}
export type State = {
vendors: Vendor[]
}
export const useShopifyStore = defineStore('vendors', {
state: (): State => ({
vendors: [],
}),
actions: {
asy... | /content/code_sandbox/packages/docs/src/stores/shopify.ts | xml | 2016-09-12T00:39:35 | 2024-08-16T20:06:39 | vuetify | vuetifyjs/vuetify | 39,539 | 225 |
```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.
-->
<selector xmlns:android="path_to_url">
<item android:color="?attr/colorPrimary" android... | /content/code_sandbox/lib/java/com/google/android/material/textfield/res/color/mtrl_filled_icon_tint.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 130 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="sections">
<item>@string/section_live</item>
<item>@string/section_recommend</item>
<item>@string/section_bangumi</item>
<item>@string/section_more</item>
<item>@string/section_focus</item>
... | /content/code_sandbox/app/src/main/res/values/strings.xml | xml | 2016-06-01T04:36:01 | 2024-08-14T06:51:22 | bilibili-android-client | HotBitmapGG/bilibili-android-client | 4,487 | 1,705 |
```xml
export { PersistedFoldersFormSection } from './PersistedFoldersFormSection';
``` | /content/code_sandbox/app/react/kubernetes/applications/components/PersistedFoldersFormSection/index.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 17 |
```xml
// invariant(condition, message) will refine types based on "condition", and
// if "condition" is false will throw an error. This function is special-cased
// in flow itself, so we can't name it anything else.
export default function invariant(cond?: boolean, message?: string, ...args: string[]): asserts cond {
... | /content/code_sandbox/applications/docs-editor/src/app/Shared/invariant.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 124 |
```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>
<attr name="MaterialTapTargetPromptTheme" format="reference"/>
<a... | /content/code_sandbox/library/src/main/res/values/attrs.xml | xml | 2016-06-05T16:24:53 | 2024-08-15T07:43:28 | MaterialTapTargetPrompt | sjwall/MaterialTapTargetPrompt | 1,522 | 1,090 |
```xml
"use strict"
import { Indicator, IndicatorInput } from '../indicator/indicator';
import { SMA } from '../moving_averages/SMA';
import { SD } from '../Utils/SD';
export class BollingerBandsInput extends IndicatorInput {
period : number;
stdDev : number;
values : number[];
};
export class BollingerBa... | /content/code_sandbox/src/volatility/BollingerBands.ts | xml | 2016-05-02T19:16:32 | 2024-08-15T14:25:09 | technicalindicators | anandanand84/technicalindicators | 2,137 | 554 |
```xml
export * from './build/layouts/Tabs';
export { default } from './build/layouts/Tabs';
``` | /content/code_sandbox/packages/expo-router/tabs.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 21 |
```xml
/**
* @file Option service
* @module module/option/service
* @author Surmon <path_to_url
*/
import _omit from 'lodash/omit'
import _uniq from 'lodash/uniq'
import { Injectable } from '@nestjs/common'
import { InjectModel } from '@app/transformers/model.transformer'
import { MongooseModel, MongooseDoc } from... | /content/code_sandbox/src/modules/option/option.service.ts | xml | 2016-02-13T08:16:02 | 2024-08-12T08:34:20 | nodepress | surmon-china/nodepress | 1,421 | 694 |
```xml
import React, {
ReactElement,
ReactNode,
useCallback,
useEffect,
useRef,
} from 'react';
import { EmojiPluginStore } from '../../index';
export interface EmojiSuggestionsPortalParams {
store: EmojiPluginStore;
offsetKey: string;
children: ReactNode;
}
export default function EmojiSuggestionsPor... | /content/code_sandbox/packages/emoji/src/components/EmojiSuggestionsPortal/index.tsx | xml | 2016-02-26T09:54:56 | 2024-08-16T18:16:31 | draft-js-plugins | draft-js-plugins/draft-js-plugins | 4,087 | 229 |
```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/58_01_ReverseWordsInSentence/58_01_ReverseWordsInSentence.vcxproj | xml | 2016-11-21T05:04:57 | 2024-08-14T04:03:23 | CodingInterviewChinese2 | zhedahht/CodingInterviewChinese2 | 5,289 | 1,782 |
```xml
<RelativeLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="@drawable/view_post_comment_bg"
android:layout_gravity="bottom">
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
androi... | /content/code_sandbox/demo/src/main/res/layout/footer.xml | xml | 2016-03-28T09:07:07 | 2024-08-15T05:22:18 | SpringView | liaoinstan/SpringView | 1,935 | 183 |
```xml
import { getPureDate } from '@erxes/api-utils/src/core';
import { sendPosMessage } from '../../../messageBroker';
export const getPosOrders = async (
subdomain,
params,
result,
branch,
department,
productById,
beProductIds
) => {
const { endDate, beginDate, branchId, departmentId, isDetailed } =... | /content/code_sandbox/packages/plugin-inventories-api/src/graphql/resolvers/utils/posOrders.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 2,266 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
import { AsyncPipe } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { Router, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { AppDto, ... | /content/code_sandbox/frontend/src/app/features/settings/pages/more/more-page.component.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 928 |
```xml
import path from 'path';
import { testInjector, factory, assertions, TempTestDirectorySandbox } from '@stryker-mutator/test-helpers';
import { expect } from 'chai';
import { createMochaOptions } from '../helpers/factories.js';
import { createMochaTestRunnerFactory, MochaTestRunner } from '../../src/index.js';
... | /content/code_sandbox/packages/mocha-runner/test/integration/timeout-on-infinite-loop.it.spec.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 521 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<signal id="someSignal" name="signal1" />
<process id="testErrorThrownByJavaDelegateNotCaughtByOtherEventType">
<startEvent id="theStart" />
... | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/event/error/BoundaryErrorEventTest.testErrorThrownByJavaDelegateNotCaughtByOtherEventType.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 418 |
```xml
/*
Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader.
*/
import * as React from 'react'
type Reference = object
type TaintableUniqueValue = string | bigint | ArrayBufferView
function notImplemented() {
throw new Error('Taint can only be used with the taint ... | /content/code_sandbox/packages/next/src/server/app-render/rsc/taint.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 195 |
```xml
import { Token } from '@lumino/coreutils';
/**
* The plugin manager token.
*/
export const IPluginManager = new Token<IPluginManager>(
'@jupyterlab/pluginmanager:IPluginManager',
`A canary for plugin manager presence, with a method to open the plugin manager widget.`
);
/**
* A class that exposes a com... | /content/code_sandbox/packages/pluginmanager/src/tokens.ts | xml | 2016-06-03T20:09:17 | 2024-08-16T19:12:44 | jupyterlab | jupyterlab/jupyterlab | 14,019 | 104 |
```xml
import { IRawStyle, IStyleFunction, FontWeights, getFocusStyle } from '@fluentui/react';
import { NeutralColors, MotionDurations, MotionTimings } from '@fluentui/theme';
import { IColorPaletteStyleProps, IColorPaletteStyles } from './ColorPalette.types';
const swatchGap = '4px';
const swatchesPerRow = 4;
const ... | /content/code_sandbox/packages/react-docsite-components/src/components/ColorPalette/ColorPalette.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 981 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling... | /content/code_sandbox/app/src/main/res/layout/item_vp_list.xml | xml | 2016-03-29T08:59:27 | 2024-08-07T21:31:02 | NavigationTabBar | Devlight/NavigationTabBar | 4,950 | 160 |
```xml
import { Node } from 'slate'
export const input = {
children: [],
selection: null,
}
export const test = value => {
return Node.isNode(value)
}
export const output = true
``` | /content/code_sandbox/packages/slate/test/interfaces/Node/isNode/value.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 46 |
```xml
import path from 'path'
import type { ReactCompilerOptions } from '../server/config-shared'
function getReactCompiler() {
try {
// It's in peerDependencies, so it should be available
// eslint-disable-next-line import/no-extraneous-dependencies
return require.resolve('babel-plugin-react-compiler')... | /content/code_sandbox/packages/next/src/build/get-babel-loader-config.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 698 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/**
* Interface describing `dnanstdevwd`.
*/
interface Routine {
/**
* Computes the ... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dnanstdevwd/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 744 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_hei... | /content/code_sandbox/app/src/main/res/layout/activity_recyclerview_banner.xml | xml | 2016-04-22T05:50:25 | 2024-08-15T03:35:23 | banner | youth5201314/banner | 12,833 | 144 |
```xml
import { CryptoFunctionService } from "../../../platform/abstractions/crypto-function.service";
import { SymmetricCryptoKey } from "../../../platform/models/domain/symmetric-crypto-key";
import { PrfKey } from "../../../types/key";
import { WebAuthnLoginPrfCryptoServiceAbstraction } from "../../abstractions/weba... | /content/code_sandbox/libs/common/src/auth/services/webauthn-login/webauthn-login-prf-crypto.service.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 333 |
```xml
import { generateModels } from './connectionResolver';
export default {
types: [
{
description: 'Automations',
type: 'automations'
}
],
tag: async ({ subdomain, data }) => {
const { action, _ids, targetIds, tagIds } = data;
const models = await generateModels(subdomain);
... | /content/code_sandbox/packages/plugin-automations-api/src/tags.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 414 |
```xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<!-- Customize your theme here. -->
</style>
<style name="MaterialSearchViewStyle">
<item name="searchBackground">@color/white_ish</item>
<item name="searchVoiceIcon... | /content/code_sandbox/app/src/main/res/values/styles.xml | xml | 2016-04-19T23:48:39 | 2024-07-18T16:15:26 | MaterialSearchView | Mauker1/MaterialSearchView | 1,080 | 318 |
```xml
import * as React from 'react';
import { initializeComponentRef } from './initializeComponentRef';
import { mount } from 'enzyme';
import type { IBaseProps } from './BaseComponent.types';
describe('initializeComponentRef', () => {
class Foo extends React.Component<IBaseProps, {}> {
constructor(props: IBas... | /content/code_sandbox/packages/utilities/src/initializeComponentRef.test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 164 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="path_to_url">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros">
<IntDir>$(SolutionDir)build\Intermediate\$(Configuration)\$(PlatformName)\$(ProjectName)\</IntDir>
<OutDir>$(SolutionDir)build\$(Configuration)\$(PlatformName... | /content/code_sandbox/Scylla/scylla.props | xml | 2016-01-27T05:26:30 | 2024-08-16T08:06:22 | ScyllaHide | x64dbg/ScyllaHide | 3,365 | 1,105 |
```xml
/* eslint-disable jest/no-mocks-import */
import path from 'path';
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { fileUtils, pluginUtils } from '@verdaccio/core';
import { logger, setup } from '@verdaccio/logger';
import LocalDatabase, { ERROR_DB_LOCKED } from '../src/loca... | /content/code_sandbox/packages/plugins/local-storage/tests/local-database.test.ts | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 1,863 |
```xml
<?xml version='1.0' encoding='utf-8' ?>
<xpipe>
<dc id="jq" zone="SHA">
<sentinel id="1" address="10.0.0.1:5000, 10.0.0.1:5001, 10.0.0.1:5002, 10.0.0.1:5003, 10.0.0.1:5004"/>
<cluster id="cluster1" phase ="1" type="bi_direction" dcs="jq,oy,rb" org-id="1">
<shard id="shard1" sentin... | /content/code_sandbox/redis/redis-console/src/test/resources/crdt-replication-test.xml | xml | 2016-03-29T12:22:36 | 2024-08-12T11:25:42 | x-pipe | ctripcorp/x-pipe | 1,977 | 625 |
```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 { CardModule } from 'primeng/card';`
... | /content/code_sandbox/src/app/showcase/doc/card/importdoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 83 |
```xml
// Image.setPixel
picture.setPixel(0, 0, 0)
``` | /content/code_sandbox/tests/language-service/snippet_cases/imageThisParam.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 18 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/**
* Interface describing `snanminabs`.
*/
interface Routine {
/**
* Computes the m... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/snanminabs/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 671 |
```xml
<!--
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | /content/code_sandbox/test/e2e/sql/src/test/resources/cases/rql/dataset/readwrite_splitting/mysql/show_storage_units.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 846 |
```xml
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { CommonActions } from '@react-navigation/native';
import { Text, BottomNavigation } from 'react-native-paper';
import Icon from 'react-native-vector-icons... | /content/code_sandbox/example/src/Examples/BottomNavigationBarExample.tsx | xml | 2016-10-19T05:56:53 | 2024-08-16T08:48:04 | react-native-paper | callstack/react-native-paper | 12,646 | 514 |
```xml
import { combineReducers } from 'redux';
import { MemberEntity, MemberErrors } from '../model';
import { membersReducer } from './members';
import { memberReducer } from './member';
import { memberErrorsReducer } from './memberErrors';
export interface State {
members: MemberEntity[];
member: MemberEntity;
... | /content/code_sandbox/old_class_components_samples/13 TestComponents/src/reducers/index.ts | xml | 2016-02-28T11:58:58 | 2024-07-21T08:53:34 | react-typescript-samples | Lemoncode/react-typescript-samples | 1,846 | 102 |
```xml
/**
* Everything in this file was copied and adapted from
* @link path_to_url
*
* TODO We should use the original npm module instead when this bug is fixed:
* @link path_to_url
*/
type Compare<T> = ((a: T, b: T) => number | null | undefined);
export declare function boundGE<T>(a: T[], y: T, c: Compare<T>, ... | /content/code_sandbox/dist/types/plugins/storage-memory/binary-search-bounds.d.ts | xml | 2016-12-02T19:34:42 | 2024-08-16T15:47:20 | rxdb | pubkey/rxdb | 21,054 | 218 |
```xml
<?xml version="1.0" encoding="utf-8"?>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.... | /content/code_sandbox/application/src/main/data/lwm2m-registry/2056.xml | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 804 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<F... | /content/code_sandbox/Chapter 14 The Tessellation Stages/BasicTessellation/BasicTessellation.vcxproj.filters | xml | 2016-03-25T04:33:36 | 2024-08-16T10:32:50 | d3d12book | d3dcoder/d3d12book | 1,487 | 773 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="path_to_url">
<item android:state_pressed="false">
<shape android:shape="rectangle">
<solid android:color="@color/color_page_bg" />
<corners android:radius="15dp" />
<padding android:bottom="7dp" andro... | /content/code_sandbox/app/src/main/res/drawable/selector_bg_tree_tag.xml | xml | 2016-11-20T11:59:25 | 2024-08-14T13:24:02 | CloudReader | youlookwhat/CloudReader | 4,933 | 187 |
```xml
import React from 'react';
import { storiesOf } from '@storybook/react-native';
import { withKnobs } from '@storybook/addon-knobs';
import { Example as Basic } from './basic';
import { Example as LinearGrad } from './LinearGrad';
import { Example as WithRef } from './WithRef';
import { Example as Composition } f... | /content/code_sandbox/example/storybook/stories/components/primitives/Box/index.tsx | xml | 2016-04-15T11:37:23 | 2024-08-14T16:16:44 | NativeBase | GeekyAnts/NativeBase | 20,132 | 316 |
```xml
export { default } from './LinkExternal';
``` | /content/code_sandbox/packages/ui-components/src/components/LinkExternal/index.ts | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 10 |
```xml
<test>
<settings><max_block_size>1</max_block_size></settings>
<create_query>
CREATE TABLE insert_small_block_performance
(
`x` String,
`a` DEFAULT SHA256(x),
`b` DEFAULT SHA256(toString(a)),
`c` DEFAULT SHA256(toString(b)),
`d` DEFAULT SHA256(toString(c)),
`e` DEFAULT SHA25... | /content/code_sandbox/tests/performance/insert_select_default_small_block.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 369 |
```xml
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MessageDemoComponent } from './message-demo.component';
const routes: Routes = [
{
path: '',
component: MessageDemoComponent,
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
e... | /content/code_sandbox/apps/docs-app/src/app/content/components/component-demos/message/demos/message-demo-routing.module.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 78 |
```xml
<baseviews:MiniPlayerViewBase x:Class="Dopamine.Views.MiniPlayer.NanoPlayer"
xmlns="path_to_url"
xmlns:d="path_to_url"
xmlns:x="path_to_url"
xmlns:mc="path_to_url"
... | /content/code_sandbox/Dopamine/Views/MiniPlayer/NanoPlayer.xaml | xml | 2016-07-13T21:34:42 | 2024-08-15T03:30:43 | dopamine-windows | digimezzo/dopamine-windows | 1,786 | 1,448 |
```xml
import '../../methods/get.js';
import '../../methods/map.js';
import '../../methods/text.js';
import { jQuery, jq, assert, JQStatic } from '../utils.js';
const test = ($: JQStatic, type: string): void => {
describe(`${type} - .map`, () => {
beforeEach(() => {
document.querySelector('#frame')!.innerH... | /content/code_sandbox/packages/jq/__test__/methods/map.test.ts | xml | 2016-07-11T17:39:02 | 2024-08-16T07:12:34 | mdui | zdhxiong/mdui | 4,077 | 373 |
```xml
import { z, IntegrationDefinition, messages } from '@botpress/sdk'
import { sentry as sentryHelpers } from '@botpress/sdk-addons'
export default new IntegrationDefinition({
name: 'messenger',
version: '0.4.4',
title: 'Messenger',
description: 'This integration allows your bot to interact with Messenger.... | /content/code_sandbox/integrations/messenger/integration.definition.ts | xml | 2016-11-16T21:57:59 | 2024-08-16T18:45:35 | botpress | botpress/botpress | 12,401 | 282 |
```xml
<Configuration status="ERROR">
<Appenders>
<Console name="Out">
<PatternLayout pattern="%d{YYYY-MM-dd HH:mm:ss} %-5p %tn %c:%L - %encode{%m}{CRLF}%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Out"/>
</Root>
... | /content/code_sandbox/kotlin/services/s3/src/main/resources/log4j2.xml | xml | 2016-08-18T19:06:57 | 2024-08-16T18:59:44 | aws-doc-sdk-examples | awsdocs/aws-doc-sdk-examples | 9,298 | 163 |
```xml
// See LICENSE.txt for license information.
import * as React from 'react';
import Svg, {
G,
Path,
Mask,
Ellipse,
Defs,
Pattern,
Use,
Image,
LinearGradient,
Stop,
ClipPath,
} from 'react-native-svg';
type Props = {
theme: Theme;
};
const PublicChannelIllustratio... | /content/code_sandbox/app/screens/channel/channel_post_list/intro/illustration/public.tsx | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 9,839 |
```xml
import React, {PureComponent} from 'react'
import _ from 'lodash'
import {ErrorHandling} from 'src/shared/decorators/errors'
import Dropdown from 'src/shared/components/Dropdown'
import {showDatabases, showMeasurements} from 'src/shared/apis/metaQuery'
import parseShowDatabases from 'src/shared/parsing/showData... | /content/code_sandbox/ui/src/tempVars/components/MeasurementsTemplateBuilder.tsx | xml | 2016-08-24T23:28:56 | 2024-08-13T19:50:03 | chronograf | influxdata/chronograf | 1,494 | 950 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<OutputType>Exe</OutputType>
<ApplicationTitle>CatalystAppOptimizedForMacOS</ApplicationTitle>
<ApplicationId>com.xamarin.catalystappoptimizedformacos</ApplicationId>
</PropertyGroup>
<Import Project="../../common/shared-dotnet.csproj" /... | /content/code_sandbox/tests/dotnet/CatalystAppOptimizedForMacOS/shared.csproj | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 121 |
```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 FLOAT16_MAX = require( './index' );
// TESTS //
// The export is a number...
{
// eslint-disable-next-l... | /content/code_sandbox/lib/node_modules/@stdlib/constants/float16/max/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 99 |
```xml
import * as React from 'react';
import type { Meta } from '@storybook/react';
import { Steps } from 'storywright';
import { Rating } from '@fluentui/react-rating';
import {
getStoryVariant,
withStoryWrightSteps,
TestWrapperDecoratorFixedWidth,
HIGH_CONTRAST,
DARK_MODE,
} from '../../utilities';
expor... | /content/code_sandbox/apps/vr-tests-react-components/src/stories/Rating/RatingInteractions.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 443 |
```xml
// This file is part of Moonfire NVR, a security camera network video recorder.
import AppBar from "@mui/material/AppBar";
import Drawer from "@mui/material/Drawer";
import List from "@mui/material/List";
import ListItemButton from "@mui/material/ListItemButton";
import ListItemIcon from "@mui/material/ListItem... | /content/code_sandbox/ui/src/components/Header.tsx | xml | 2016-01-02T06:05:42 | 2024-08-16T11:13:05 | moonfire-nvr | scottlamb/moonfire-nvr | 1,209 | 597 |
```xml
import * as jwt from 'jsonwebtoken';
import { Request, Response } from 'express';
import User from '../models/user';
import BaseCtrl from './base';
const secret: jwt.Secret = process.env.SECRET_TOKEN as string;
class UserCtrl extends BaseCtrl {
model = User;
login = async (req: Request, res: Response) =>... | /content/code_sandbox/server/controllers/user.ts | xml | 2016-05-14T14:21:49 | 2024-08-10T00:30:46 | Angular-Full-Stack | DavideViolante/Angular-Full-Stack | 1,480 | 213 |
```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 CONDI... | /content/code_sandbox/js/src/visitor/vectorassembler.ts | xml | 2016-02-17T08:00:23 | 2024-08-16T19:00:48 | arrow | apache/arrow | 14,094 | 2,591 |
```xml
<vector android:height="24dp" android:viewportHeight="72"
android:viewportWidth="72" android:width="24dp" xmlns:android="path_to_url">
<path android:fillAlpha="0" android:fillColor="#000000"
android:pathData="M0,0L72,0L72,72L0,72L0,0ZM30,3L17,8L7,19L3,29L3,44L7,54L10,58L21,66L29,69L44,69L52,66L58... | /content/code_sandbox/Android/app/src/main/res/drawable/ic_shortcut_directions_car.xml | xml | 2016-01-30T13:42:30 | 2024-08-12T19:21:10 | Travel-Mate | project-travel-mate/Travel-Mate | 1,292 | 13,848 |
```xml
import { Alert, __, confirm, router } from "@erxes/ui/src/utils";
import {
Button,
DataWithLoader,
FormControl,
ModalTrigger,
Pagination,
SortHandler,
Table,
} from "@erxes/ui/src/components";
import {
MainStyleCount as Count,
MainStyleTitle as Title,
} from "@erxes/ui/src/styles/eindex";
impo... | /content/code_sandbox/packages/plugin-loyalties-ui/src/loyalties/spins/components/List.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,372 |
```xml
import type { ReactNode } from 'react';
import { useEffect, useState } from 'react';
import { AppsDropdown, Sidebar, SidebarDrawerItems, SidebarNav } from '@proton/components';
import SidebarStorageUpsell from '@proton/components/containers/payments/subscription/SidebarStorageUpsell';
import useDisplayContactsW... | /content/code_sandbox/applications/drive/src/app/components/layout/sidebar/DriveSidebar/DriveSidebar.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 600 |
```xml
const baseDocLink =
'path_to_url
const vertaDocLinks = {
log_artifact: `${baseDocLink}#artifacts`,
log_metric: `${baseDocLink}#metrics`,
log_hyperparameters: `${baseDocLink}#hyperparameters`,
log_observations: `${baseDocLink}#observations`,
log_dataset: `${baseDocLink}#data-versioning`,
log_tags: ... | /content/code_sandbox/webapp/client/src/shared/utils/globalConstants/vertaDocLinks.ts | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 147 |
```xml
import type { DefaultCombinatorNameExtended, DefaultOperatorName } from '../../types/index.noReact';
import { parseNumber } from '../parseNumber';
import type {
AndOperator,
ComparisonOperator,
MixedAndXorOrList,
OrOperator,
SQLAndExpression,
SQLExpression,
SQLIdentifier,
SQLLiteralValue,
SQLOr... | /content/code_sandbox/packages/react-querybuilder/src/utils/parseSQL/utils.ts | xml | 2016-06-17T22:03:19 | 2024-08-16T10:28:42 | react-querybuilder | react-querybuilder/react-querybuilder | 1,131 | 2,143 |
```xml
'use strict';
import * as semver from 'semver';
import { verboseRegExp } from './regexp';
// basic version info
/**
* basic version information
*
* A normalized object will only have non-negative numbers, or `-1`,
* in its properties. A `-1` value is an indicator that the property
* is not set. Lower ... | /content/code_sandbox/src/client/common/utils/version.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 2,760 |
```xml
import { CssMixBlendMode } from '@nivo/core'
import { OrdinalColorScaleConfig } from '@nivo/colors'
import { ChartProperty, Flavor } from '../../types'
export const ordinalColors = ({
key = 'colors',
group = 'Style',
flavors,
help = `Define chart's colors.`,
description = `Please see the [de... | /content/code_sandbox/website/src/lib/chart-properties/colors.ts | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 363 |
```xml
import { clampMax } from './clampMax';
describe('ProgressBar clampMax util', () => {
const originalConsoleError = console.error;
beforeAll(() => {
console.error = jest.fn();
});
afterAll(() => {
console.error = originalConsoleError;
});
it('sends an error message when max is negative', () =>... | /content/code_sandbox/packages/react-components/react-progress/library/src/utils/clampMax.test.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 358 |
```xml
import React, { FunctionComponent } from "react";
import { Typography } from "coral-ui/components/v2";
import styles from "./Subtitle.css";
interface Props {
children?: React.ReactNode;
}
const Subtitle: FunctionComponent<Props> = (props) => (
<Typography variant="heading4" align="center" className={styl... | /content/code_sandbox/client/src/core/client/auth/components/Header/Subtitle.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 88 |
```xml
import { TextDocument } from 'vscode';
import * as Constants from '../../common/constants';
import { DocumentCache } from '../../models/documentCache';
import { ResolveErrorMessage, ResolveResult, ResolveState, ResolveWarningMessage } from '../../models/httpVariableResolveResult';
import { VariableType } from '.... | /content/code_sandbox/src/utils/httpVariableProviders/requestVariableProvider.ts | xml | 2016-03-30T08:12:52 | 2024-08-16T05:00:34 | vscode-restclient | Huachao/vscode-restclient | 5,163 | 659 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
/* eslint-disable @angular-eslint/no-input-rename */
import { AfterViewInit, booleanAttribute, Directive, ElementRef, Input, numberAttribute, Renderer2 } from '@angular/core';
import { TypedSimpleChanges, Types } from '../internal';
@Directive({
selector: '[sq... | /content/code_sandbox/frontend/src/app/framework/angular/scroll-active.directive.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 447 |
```xml
import path from 'path';
import { MakerBase, MakerOptions } from '@electron-forge/maker-base';
import { ForgeArch } from '@electron-forge/shared-types';
import { expect } from 'chai';
import proxyquire from 'proxyquire';
import { SinonStub, stub } from 'sinon';
import { MakerRpmConfig } from '../src/Config';
i... | /content/code_sandbox/packages/maker/rpm/test/MakerRpm_spec.ts | xml | 2016-10-05T14:51:53 | 2024-08-15T20:08:12 | forge | electron/forge | 6,380 | 851 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
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, WITHO... | /content/code_sandbox/docs/topics/impala_rcfile.xml | xml | 2016-04-13T07:00:08 | 2024-08-16T10:10:44 | impala | apache/impala | 1,115 | 2,270 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const TouchPointerIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1856 768q40 0 75 15t61 41 41 61 15 75v384q0 119-4... | /content/code_sandbox/packages/react-icons-mdl2/src/components/TouchPointerIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 622 |
```xml
// See LICENSE in the project root for license information.
/**
* This interface is part of the {@link IPackageJson} file format. It is used for the
* "dependencies", "optionalDependencies", and "devDependencies" fields.
* @public
*/
export interface IPackageJsonDependencyTable {
/**
* The key is the ... | /content/code_sandbox/libraries/node-core-library/src/IPackageJson.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 2,365 |
```xml
import { SFCDescriptor } from './parse'
export interface StartOfSourceMap {
file?: string
sourceRoot?: string
}
export interface RawSourceMap extends StartOfSourceMap {
version: string
sources: string[]
names: string[]
sourcesContent?: string[]
mappings: string
}
export interface VueTemplateComp... | /content/code_sandbox/IntelPresentMon/AppCef/Web/rollup/vue-ccu/lib/types.ts | xml | 2016-03-09T18:44:16 | 2024-08-15T19:51:10 | PresentMon | GameTechDev/PresentMon | 1,580 | 312 |
```xml
import React from 'react';
import { fireEvent } from '@testing-library/react-native';
import { SpeedDial } from '..';
import { renderWithWrapper } from '../../../.ci/testHelper';
describe('Speed Dial Action', () => {
it('should have onPress event', () => {
const onPress = jest.fn();
const { getByText ... | /content/code_sandbox/packages/base/src/SpeedDial/__tests__/SpeedDial.Action.test.tsx | xml | 2016-09-08T14:21:41 | 2024-08-16T10:11:29 | react-native-elements | react-native-elements/react-native-elements | 24,875 | 140 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="path_to_url">
<group android:enabled="true">
<item
android:title="@string/play"
android:id="@+id/menu_play"/>
<item
android:title="@string/add_to_play_queue"
android:id="@+id/menu_add_to_play_queue"/>
<item
... | /content/code_sandbox/app/src/main/res/menu/menu_genre_item.xml | xml | 2016-01-14T13:38:47 | 2024-08-16T13:03:46 | APlayer | rRemix/APlayer | 1,308 | 113 |
```xml
import * as React from 'react';
import { ComponentInfo } from '../types';
function importAll(contexts: __WebpackModuleApi.RequireContext[]): ComponentInfo[] {
const cache: ComponentInfo[] = [];
contexts.forEach(context => {
context.keys().forEach(key => cache.push(context(key)));
});
return cache;... | /content/code_sandbox/packages/fluentui/docs/src/utils/componentInfoContext.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 285 |
```xml
<?xml version="1.0" standalone="yes"?>
<library-reference id="variadic_macro_data_reference"><title>Variadic Macro Data Reference</title><header name="boost/vmd/array/to_seq.hpp">
<macro name="BOOST_VMD_ARRAY_TO_SEQ" kind="functionlike"><macro-parameter name="array"/><purpose>converts an array to a seq. </purpos... | /content/code_sandbox/deps/boost_1_66_0/libs/vmd/doc/vmd_reference.xml | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 21,766 |
```xml
import { TFabricPlatformPageProps } from '../../../interfaces/Platforms';
import { HorizontalBarChartWithAxisPageProps as ExternalProps } from '@fluentui/react-examples/lib/react-charting/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.doc';
export const HorizontalBarChartWithAxisPageProps: TFabricPlatfor... | /content/code_sandbox/apps/public-docsite/src/pages/Controls/HorizontalBarChartPage/HorizontalBarChartWithAxisPage.doc.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 103 |
```xml
export interface StateMap {
[key: string]: number
}
export default class State {
map: StateMap
states: number = 0
constructor(map: StateMap) {
this.map = map
}
add(state: number) {
this.states |= state
}
delete(state: number) {
this.states &= ~state
}
toggle(state: number) {
... | /content/code_sandbox/lib/utils/state.ts | xml | 2016-09-29T04:23:25 | 2024-08-14T13:08:03 | vue-slider-component | NightCatSama/vue-slider-component | 2,400 | 134 |
```xml
import { PermissionResponse, PermissionStatus, PermissionExpiration, PermissionHookOptions, EventSubscription } from 'expo-modules-core';
import type { Ref } from 'react';
import type { ViewProps } from 'react-native';
export type CameraType = 'front' | 'back';
export type FlashMode = 'off' | 'on' | 'auto';
expo... | /content/code_sandbox/packages/expo-camera/build/Camera.types.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 3,705 |
```xml
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
onClick?: () => void;
}
export function LogoutButton(props: ButtonProps) {
const logout = () => {
fetch('/account/logout', {method: 'POST'}).then(() => {
if (typeof props?.onClick === 'function') {
props.onClick(... | /content/code_sandbox/packages/hydrogen/test/fixtures/demo-store-ts/src/components/elements/LogoutButton.client.tsx | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.