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
/*
*
* 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 { DOCUMENT, isPlatformServer } from "@angular/common";
import { EventEmitter, Inject, Injectable, PLATFORM_ID } from "@angular/core"... | /content/code_sandbox/experimental/traffic-portal/src/app/shared/theme-manager/theme-manager.service.ts | xml | 2016-09-02T07:00:06 | 2024-08-16T03:50:21 | trafficcontrol | apache/trafficcontrol | 1,043 | 1,099 |
```xml
<schemalist>
<schema id='org.gtk.test.schema'>
<key name='test' type='i'>
<range min='22' max='27'/>
<default>25</default>
</key>
</schema>
</schemalist>
``` | /content/code_sandbox/utilities/glib/gio/tests/schema-tests/range.gschema.xml | xml | 2016-10-27T09:31:28 | 2024-08-16T19:00:35 | nexmon | seemoo-lab/nexmon | 2,381 | 59 |
```xml
export interface TestIPCMessage {
id: number
type: MessageType
args: any[]
}
export interface TestIPCMessageResult {
id: number
resolve?: any
reject?: any
}
export interface AppTestMessage {
type: AppMessageType
}
export enum AppMessageType {
Ready,
WindowLoaded,
SavedBackup,
Log,
}
exp... | /content/code_sandbox/packages/desktop/test/TestIpcMessage.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 214 |
```xml
import isEmpty from 'lodash/isEmpty';
import type { TreeNode } from '@/internals/Tree/types';
export interface ArrowHandlerProps {
focusItem: TreeNode;
expand: boolean;
childrenKey: string;
onExpand?: (focusItem: TreeNode, expanded: boolean) => void;
onFocusItem: () => void;
}
/**
* Handles the left... | /content/code_sandbox/src/Tree/utils/treeKeyboardInteractions.ts | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 344 |
```xml
import '@expo/metro-runtime';
export declare function registerDOMComponent(importer: () => Promise<any>, moduleId: string): void;
//# sourceMappingURL=dom-entry.d.ts.map
``` | /content/code_sandbox/packages/expo/build/dom/dom-entry.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 36 |
```xml
import * as React from 'react';
import { Rating } from '@fluentui/react';
const Scenario = () => <Rating />;
export default Scenario;
``` | /content/code_sandbox/apps/perf-test/src/scenarios/Rating.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 33 |
```xml
import { IReactReduxWebPartProps } from '../IReactReduxWebPartProps';
import { assign } from 'lodash';
export interface IWebpartState {
properties: IReactReduxWebPartProps;
}
export const UPDATE_PROPERTY = 'webpart/UPDATE_PROPERTY';
export const APPLY_PROPERTIES = 'webpart/APPLY_PROPERTIES';
export interfac... | /content/code_sandbox/samples/react-redux/src/webparts/reactRedux/reducers/webpart.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 329 |
```xml
<Project ToolsVersion="4.0" xmlns="path_to_url">
<!-- Import default properties if not done yet. This does not overwrite any previously defined properties. -->
<Import Condition="'$(VcpkgPropsImported)' != 'true'" Project="vcpkg.props" />
<!-- VS2015's version of "vcpkg integrate install" imports both th... | /content/code_sandbox/scripts/buildsystems/msbuild/vcpkg.targets | xml | 2016-09-15T16:40:50 | 2024-08-16T19:42:59 | vcpkg | microsoft/vcpkg | 22,586 | 4,802 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="uncaughtErrorOnScriptTaskWithEmptyErrorEventDefinition">
<startEvent id="theStart" />
<sequen... | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/event/error/BoundaryErrorEventTest.testUncaughtErrorOnScriptTaskWithEmptyErrorEventDefinition.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 256 |
```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 { assert } from "chai";
import { mount, type ReactWrapper } from "enzyme";
import * as React from "react";
import * as sino... | /content/code_sandbox/packages/select/test/suggestTests.tsx | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 3,046 |
```xml
import type {
CancellationToken,
WebviewOptions,
WebviewPanel,
WebviewPanelOptions,
WebviewView,
WebviewViewResolveContext,
} from 'vscode';
import { Disposable, Uri, ViewColumn, window } from 'vscode';
import { uuid } from '@env/crypto';
import type { Commands, WebviewIds, WebviewTypes, WebviewViewIds, We... | /content/code_sandbox/src/webviews/webviewsController.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 4,050 |
```xml
<vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="512" android:viewportWidth="512" android:width="34.0dp">
<path android:fillColor="@android:color/white" android:pathData="M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19... | /content/code_sandbox/app/src/main/res/drawable/ic_preset_fas_drafting_compass.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 685 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Nextcloud - Android Client
~
-->
<manifest xmlns:tools="path_to_url"
xmlns:android="path_to_url">
<!-- Allows unlocking your device and activating its screen so UI tests can succeed -->
<uses-permission android:name="android.permission.DISABLE_K... | /content/code_sandbox/app/src/debug/AndroidManifest.xml | xml | 2016-06-06T21:23:36 | 2024-08-16T18:22:36 | android | nextcloud/android | 4,122 | 191 |
```xml
declare module "simulant" {
type SimulantEvent = {};
interface Simulant {
(event: string, extendedParams: Record<string, any>): SimulantEvent;
fire(
target: HTMLElement,
event: string | SimulantEvent,
extendedParams?: Record<string, any>
): void;
polyfill(): void;
}
co... | /content/code_sandbox/client/src/types/simulant.d.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 91 |
```xml
import * as compose from 'lodash.flowright';
import From from '../../components/label/LabelsForm';
import React from 'react';
import { ButtonMutate } from '@erxes/ui/src/components';
import { IButtonMutateProps } from '@erxes/ui/src/types';
import { ISPLabel } from '../../types';
import { mutations } from '../..... | /content/code_sandbox/packages/plugin-salesplans-ui/src/settings/containers/label/LabelsForm.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 271 |
```xml
import * as React from 'react';
import { BaseButton } from '../../Button';
import { customizable, nullRender } from '../../Utilities';
import { getStyles } from './FacepileButton.styles';
import type { IButtonProps } from '../../Button';
@customizable('FacepileButton', ['theme', 'styles'], true)
export class Fa... | /content/code_sandbox/packages/react/src/components/Facepile/FacepileButton.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 163 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deploy... | /content/code_sandbox/Wuxianda/Classes/Common/YPPlayer/YPBufferingProgressView.xib | xml | 2016-07-21T14:47:27 | 2024-08-15T07:32:25 | Bilibili_Wuxianda | MichaelHuyp/Bilibili_Wuxianda | 2,685 | 886 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
... | /content/code_sandbox/third_party/mbedtls/repo/visualc/VS2017/hello.vcxproj | xml | 2016-04-08T20:47:41 | 2024-08-16T19:19:28 | openthread | openthread/openthread | 3,445 | 2,183 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const TaskGroupMirroredIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M0 256v896h2048V256H0zm128 128h1792v640H128V3... | /content/code_sandbox/packages/react-icons-mdl2/src/components/TaskGroupMirroredIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 209 |
```xml
import { SubstitutionTable } from '../tables.js';
import getCoverageGlyphIndex from './coverage.js';
/**
* Get the substitution glyph for the givne glyph, or null if the glyph was not
* found in the table.
*
* @param table JSON representation of the substitution table
* @param glyphId The index of the glp... | /content/code_sandbox/packages/extraterm-font-ligatures/src/processors/substitution.ts | xml | 2016-03-04T12:39:59 | 2024-08-16T18:44:37 | extraterm | sedwards2009/extraterm | 2,501 | 500 |
```xml
import { getKeyDownHandlers } from '../../src/accessibility/getKeyDownHandlers';
import { KeyActions, keyboardKey } from '@fluentui/accessibility';
const testKeyCode = keyboardKey.ArrowRight;
const partElementName = 'anchor';
let actionsDefinition: KeyActions;
const eventArg = (keyCodeValue: number): any => ({... | /content/code_sandbox/packages/fluentui/react-bindings/test/accesibility/getKeyDownHandlers-test.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,824 |
```xml
import React, { Component } from 'react';
import { defineMessages, intlShape, FormattedHTMLMessage } from 'react-intl';
import Splash from '../widgets/splash/Splash';
const messages = defineMessages({
title: {
id: 'static.splash.network.title',
defaultMessage: '!!!Daedalus',
description: 'Daedalus... | /content/code_sandbox/source/renderer/app/components/splash/SplashNetworkFlight.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 1,081 |
```xml
import { commonTypes, commonInputs, commonFilters } from './common';
export const types = `
type Donate @key(fields: "_id") @cacheControl(maxAge: 3) {
${commonTypes}
donateScore: Float
awardId: String
voucherId: String
}
type DonateMain {
list: [Donate]
totalCount: Int
}
`;
exp... | /content/code_sandbox/packages/plugin-loyalties-api/src/graphql/schema/donate.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 192 |
```xml
export interface ITourProps {
description: string;
actionValue: string;
collectionData: ITourStepConfig[];
}
export interface ITourStepConfig
{
uniqueId: string;
WebPart: string;
StepDescription: string;
Position: string;
Enabled: boolean;
sortIdx: number;
}
``` | /content/code_sandbox/samples/react-tour-pnpjs/src/webparts/tour/components/ITourProps.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 71 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY simpleName "([a-z][a-z\d]*:)?[a-z][a-z\d]*">
<!ENTITY baseName "([a-zA-Z_\$]|[^[:ascii:]])(([\w\$\-\.]|[^[:ascii:]])*([\w\$]|[^[:ascii:]]))?">
<!ENTITY name "(&baseName;:)?&baseName;">
<!ENTITY baseNameWithBoun... | /content/code_sandbox/src/data/extra/syntax-highlighting/syntax/typescript-react.xml | xml | 2016-10-05T07:24:54 | 2024-08-16T05:03:40 | vnote | vnotex/vnote | 11,687 | 7,167 |
```xml
import * as React from 'react';
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
export type InputSlots = {
/**
* Wrapper element which visually appears to be the input and is used for borders, focus styling, etc.
* (A wrapper is needed to properly position `content... | /content/code_sandbox/packages/react-components/react-input/library/src/components/Input/Input.types.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 975 |
```xml
import { FieldPropsEnum, FieldPropsOccurrence, SeparatedPropsMode } from "./models/FieldProps";
export interface PropsGroupsInterface {
editable: string[];
handlers: string[];
computed: string[];
functions: string[];
validation: string[];
separated: string[];
occurrences: {
[index: string]: Fi... | /content/code_sandbox/src/props.ts | xml | 2016-06-20T22:10:41 | 2024-08-10T13:14:33 | mobx-react-form | foxhound87/mobx-react-form | 1,093 | 802 |
```xml
import JsonFile from '@expo/json-file';
import {
isMultipartPartWithName,
parseMultipartMixedResponseAsync,
} from '@expo/multipart-body-parser';
import spawnAsync from '@expo/spawn-async';
import { Project, UrlUtils } from '@expo/xdl';
import chalk from 'chalk';
import crypto from 'crypto';
import ip from '... | /content/code_sandbox/tools/src/dynamic-macros/macros.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,487 |
```xml
<!--
***********************************************************************************************
Microsoft.NET.Build.Extensions.targets
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
created a backup copy. Incorrect changes to this file will make it
... | /content/code_sandbox/src/Tasks/Microsoft.NET.Build.Extensions.Tasks/msbuildExtensions/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 358 |
```xml
import {
Column,
Entity,
ManyToOne,
PrimaryGeneratedColumn,
} from "../../../src/index"
import { JoinTable } from "../../../src/decorator/relations/JoinTable"
import { ManyToMany } from "../../../src/decorator/relations/ManyToMany"
import { Author } from "./Author"
import { Category } from "./Cat... | /content/code_sandbox/sample/sample31-table-prefix/entity/Post.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 166 |
```xml
declare interface IPropertyBagDisplayStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
DescriptionFieldLabel: string;
PropertiesToDisplayFieldLabel: string;
SiteTemplatesToIncludeFieldLabel: string;
}
declare module 'propertyBagDisplayStrings' {
const strings: IPropertyBagDisplayStri... | /content/code_sandbox/samples/react-property-bag-editor/src/webparts/propertyBagDisplay/loc/mystrings.d.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 74 |
```xml
import { IDropdownOption } from 'office-ui-fabric-react/lib/Dropdown';
const options: IDropdownOption[] = [
{ key: 'thumbsup', text: 'thumbsup'},
{ key: 'glasses', text: 'glasses'},
{ key: 'doublerainbow', text: 'double rainbow'},
{ key: 'money', text: 'money'},
{ key: 'ninja', text: 'ninja'... | /content/code_sandbox/samples/react-yammer-praise/src/webparts/reactYammer/components/badges.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 267 |
```xml
import type { IconName } from '@proton/components/index';
export const phraseIcon: IconName = 'text-align-left';
export const emailIcon: IconName = 'envelope';
export const phoneIcon: IconName = 'phone';
export const deviceIcon: IconName = 'tv';
``` | /content/code_sandbox/applications/account/src/app/containers/securityCheckup/methodIcons.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 61 |
```xml
import Form from "../Form";
import Field from "../Field";
import {FieldInterface} from "./FieldInterface";
import {FormInterface} from "./FormInterface";
import {StateInterface} from "./StateInterface";
export interface ValidatorConstructor {
form: FormInterface;
plugins: ValidationPlugins;
}
export interf... | /content/code_sandbox/src/models/ValidatorInterface.ts | xml | 2016-06-20T22:10:41 | 2024-08-10T13:14:33 | mobx-react-form | foxhound87/mobx-react-form | 1,093 | 441 |
```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 fliplr3d = require( './index' );
// TESTS //
// The function returns a nested array...
{
const x = [ [ ... | /content/code_sandbox/lib/node_modules/@stdlib/array/base/fliplr3d/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 306 |
```xml
import { makeStyles, mergeClasses } from '@griffel/core';
import { useRenderer_unstable } from '@griffel/react';
import { tokens, typographyStyles } from '@fluentui/react-theme';
import type { FluentProviderSlots, FluentProviderState } from './FluentProvider.types';
import { SlotClassNames } from '@fluentui/reac... | /content/code_sandbox/packages/react-components/react-provider/library/src/components/FluentProvider/useFluentProviderStyles.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 242 |
```xml
import {Get, getSpec, JsonMethodStore, SpecTypes} from "../../index.js";
import {AcceptMime} from "./acceptMime.js";
describe("AcceptMime", () => {
it("should set metadata", () => {
class Test {
@Get("/")
@AcceptMime("application/json")
test() {}
}
const endpoint = JsonMethodSto... | /content/code_sandbox/packages/specs/schema/src/decorators/operations/acceptMime.spec.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 199 |
```xml
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { DemoMaterialModule } from './material.module';
import { PdfViewerModule } from ... | /content/code_sandbox/src/app/app.module.ts | xml | 2016-06-21T19:27:57 | 2024-08-05T15:07:44 | ng2-pdf-viewer | VadimDez/ng2-pdf-viewer | 1,291 | 128 |
```xml
import type { DisposableHybrid, DisposableLike } from './disposable.js';
import { createDisposeMethodFromList, symbolIsDisposed } from './disposable.js';
/** This is a class that can be inherited to provide Disposable support. */
export const noop = () => undefined;
export class InheritableDisposable implemen... | /content/code_sandbox/packages/utils-disposables/src/DisposableList.ts | xml | 2016-05-16T10:42:22 | 2024-08-16T02:29:06 | vscode-spell-checker | streetsidesoftware/vscode-spell-checker | 1,377 | 704 |
```xml
import { Component } from '@angular/core';
@Component({
selector: 'advanced-example-filters',
template: `
<ng2-smart-table [settings]="settings" [source]="data"></ng2-smart-table>
`,
})
export class AdvancedExampleFiltersComponent {
data = [
{
id: 4,
name: 'Patricia Lebsack',
... | /content/code_sandbox/projects/demo/src/app/pages/examples/filter/advanced-example-filters.component.ts | xml | 2016-08-10T10:25:51 | 2024-08-05T21:57:53 | ng2-smart-table | akveo/ng2-smart-table | 1,631 | 621 |
```xml
// @generated by protobuf-ts 2.1.0 with parameter server_grpc1,generate_dependencies
// @generated from protobuf file "beam_provision_api.proto" (package "org.apache.beam.model.fn_execution.v1", syntax proto3)
// tslint:disable
//
//
// or more contributor license agreements. See the NOTICE file
// distributed ... | /content/code_sandbox/sdks/typescript/src/apache_beam/proto/beam_provision_api.client.ts | xml | 2016-02-02T08:00:06 | 2024-08-16T18:58:11 | beam | apache/beam | 7,730 | 699 |
```xml
import cn from 'classnames';
import * as React from 'react';
import { Icon, IconType } from 'shared/view/elements/Icon/Icon';
import styles from './Pile.module.css';
interface ILocalProps {
additionalClassname?: string;
title: string;
label: string;
iconType: IconType;
dataTest?: string;
labelData... | /content/code_sandbox/webapp/client/src/shared/view/elements/PileWithPopup/Pile/Pile.tsx | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 248 |
```xml
import React, { SyntheticEvent } from 'react';
export type Timeout = ReturnType<typeof setTimeout>;
export interface NumberFormatState {
value?: string;
numAsString?: string;
mounted: boolean;
}
export interface NumberFormatValues {
floatValue: number | undefined;
formattedValue: string;
value: st... | /content/code_sandbox/src/types.ts | xml | 2016-04-17T12:48:41 | 2024-08-16T13:19:14 | react-number-format | s-yadav/react-number-format | 3,842 | 817 |
```xml
import type {ExecFileOptions, ExecOptions} from 'child_process';
import type {IpcMain, IpcRenderer} from 'electron';
import type parseUrl from 'parse-url';
import type {configOptions} from './config';
export type Session = {
uid: string;
rows?: number | null;
cols?: number | null;
splitDirection?: 'H... | /content/code_sandbox/typings/common.d.ts | xml | 2016-07-01T06:01:21 | 2024-08-16T16:05:22 | hyper | vercel/hyper | 43,095 | 1,260 |
```xml
import * as assert from 'assert';
import {describe, it} from 'mocha';
import {ViewProps} from '../../../common/model/view-props.js';
import {PlainView} from '../../../common/view/plain.js';
import {createTestWindow} from '../../../misc/dom-test-util.js';
import {TestKeyBladeController} from '../../test-util.js'... | /content/code_sandbox/packages/core/src/blade/common/controller/container-blade-test.ts | xml | 2016-05-10T15:45:13 | 2024-08-16T19:57:27 | tweakpane | cocopon/tweakpane | 3,480 | 675 |
```xml
import { Column, Entity, PrimaryColumn } from "../../../../src"
@Entity()
export class Example {
@PrimaryColumn()
id: string
@Column({ update: false })
notUpdatable: string
@Column()
updatable: string
}
``` | /content/code_sandbox/test/github-issues/10249/entity/example.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 56 |
```xml
/** @jsx jsx */
import { Editor, Transforms, Element } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.splitNodes(editor, {
match: n => Element.isElement(n) && Editor.isBlock(editor, n),
always: true,
})
}
export const input = (
<editor>
<block>
word... | /content/code_sandbox/packages/slate/test/transforms/splitNodes/always/before-inline.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 156 |
```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="bottomsheet_action_expand_halfway"> </string>
<strin... | /content/code_sandbox/lib/java/com/google/android/material/bottomsheet/res/values-ur/strings.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 145 |
```xml
import * as React from 'react';
import { DismissRegular } from '@fluentui/react-icons';
import {
MessageBar,
MessageBarActions,
MessageBarBody,
MessageBarTitle,
Button,
Link,
Switch,
} from '@fluentui/react-components';
const intents = ['info', 'warning', 'error', 'success'] as const;
export const... | /content/code_sandbox/packages/react-components/react-message-bar/stories/src/MessageBar/ManualLayout.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 372 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as vscode from 'vscode';
export const DELETED_FILE_DIFF_VIEW_PROVIDER_SCHEME = 'sapling-deleted-file';
/**
* Provides empty content for deleted files, so they may ... | /content/code_sandbox/addons/vscode/extension/DeletedFileContentProvider.ts | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 236 |
```xml
import { RichTextElement } from "payload/dist/fields/config/types";
import label from "./label";
import largeBody from "./largeBody";
const elements: RichTextElement[] = [
"blockquote",
"h2",
"h3",
"h4",
"h5",
"h6",
"link",
largeBody,
label,
];
export default elements;
``` | /content/code_sandbox/examples/cms-payload/payload/fields/richText/elements.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 84 |
```xml
import { Button, FormControl, ModalTrigger, formatValue } from "@erxes/ui/src";
import ContractTypeForm from "../containers/ContractTypeForm";
import { IContractType } from "../types";
import React from "react";
import _ from "lodash";
import { useNavigate } from "react-router-dom";
type Props = {
contractTy... | /content/code_sandbox/packages/plugin-savings-ui/src/contractTypes/components/ContractTypeRow.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 519 |
```xml
import { createStackNavigator } from '@react-navigation/stack';
import React from 'react';
import { CONCRETE_EXAMPLE_SCREENS } from '../constants/ConcreteExampleScreens';
import ExamplesListScreen from '../screens/ExamplesListScreen';
export type ExamplesStackNavigatorProps = {
ExamplesListScreen: undefined;... | /content/code_sandbox/apps/native-component-list/src/screens/ExpoMaps/navigators/MainNavigator.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 298 |
```xml
import { css } from '@microsoft/fast-element';
import { checkedState } from '../styles/states/index.js';
import {
borderRadiusCircular,
colorCompoundBrandBackground,
colorCompoundBrandBackgroundHover,
colorCompoundBrandBackgroundPressed,
colorNeutralBackgroundDisabled,
colorNeutralForeground3,
colo... | /content/code_sandbox/packages/web-components/src/switch/switch.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,048 |
```xml
import { Subject } from "./Subject"
import { DateUtils } from "../util/DateUtils"
import { ObjectLiteral } from "../common/ObjectLiteral"
import { OrmUtils } from "../util/OrmUtils"
import { ApplyValueTransformers } from "../util/ApplyValueTransformers"
import { ObjectUtils } from "../util/ObjectUtils"
/**
* F... | /content/code_sandbox/src/persistence/SubjectChangedColumnsComputer.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 1,728 |
```xml
import * as compose from "lodash.flowright";
import {
ResetPasswordMutationResponse,
ResetPasswordMutationVariables,
} from "../types";
import Alert from "../../utils/Alert";
import React from "react";
import ResetPassword from "../components/ResetPassword";
import { gql } from "@apollo/client";
import { g... | /content/code_sandbox/exm/modules/auth/containers/ResetPassword.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 298 |
```xml
import { Animated } from 'react-native';
import color from 'color';
import { MD2DarkTheme } from './themes/v2/DarkTheme';
export const isAnimatedValue = (
it: number | string | Animated.AnimatedInterpolation<number | string>
): it is Animated.Value => it instanceof Animated.Value;
export default function o... | /content/code_sandbox/src/styles/overlay.tsx | xml | 2016-10-19T05:56:53 | 2024-08-16T08:48:04 | react-native-paper | callstack/react-native-paper | 12,646 | 557 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>%FRAMEWORK%</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishAot>true</PublishAot>
<InvariantGlobalization>true</InvariantGlobalization>
</Prop... | /content/code_sandbox/test/dotnet-new.Tests/Approvals/AotVariants.console.cs.verified/MyProject/console.csproj | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 86 |
```xml
<!--
//*********************************************************
//
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************... | /content/code_sandbox/ApplicationUnderTests/AppUIBasics/ControlPages/ViewBoxPage.xaml | xml | 2016-03-20T08:48:45 | 2024-08-16T07:55:40 | WinAppDriver | microsoft/WinAppDriver | 3,626 | 1,300 |
```xml
import { getSingleParam, isEmpty } from './utils';
const sizeValidator = (files: unknown, params: [number | string] | { size: string | number }) => {
if (isEmpty(files)) {
return true;
}
let size = getSingleParam(params, 'size');
size = Number(size);
if (isNaN(size)) {
return false;
}
co... | /content/code_sandbox/packages/rules/src/size.ts | xml | 2016-07-30T01:10:44 | 2024-08-16T10:19:58 | vee-validate | logaretm/vee-validate | 10,699 | 166 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO... | /content/code_sandbox/src/script/auth/module/action/creator/AuthActionCreator.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 3,743 |
```xml
import { versions } from '@storybook/core/common';
import { spawn } from 'child_process';
const args = process.argv.slice(2);
if (['dev', 'build'].includes(args[0])) {
require('@storybook/core/cli/bin');
} else {
const proxiedArgs =
args[0] === 'init'
? [`create-storybook@${versions.storybook}`,... | /content/code_sandbox/code/lib/cli/src/proxy.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 175 |
```xml
<resources>
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
(such as screen margins) for screens with more than 820dp of available width. This
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
<dimen name="activity_... | /content/code_sandbox/app/src/main/res/values-w820dp/dimens.xml | xml | 2016-10-15T15:27:17 | 2024-08-16T06:53:53 | dns66 | julian-klode/dns66 | 2,104 | 100 |
```xml
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnChanges, Output, SimpleChanges, ViewChild } from "@angular/core";
import { TestCase, Tests } from "app/model/pipeline.model";
import { AutoUnsubscribe } from "app/shared/decorator/autoUnsubscribe";
import { NzFormatEmitEvent, ... | /content/code_sandbox/ui/src/app/views/projectv2/run/run-tests.component.ts | xml | 2016-10-11T08:28:23 | 2024-08-16T01:55:31 | cds | ovh/cds | 4,535 | 1,375 |
```xml
import React from 'react';
import { RetinaImg } from 'mailspring-component-kit';
import { localized, isRTL } from 'mailspring-exports';
import { SubjectStatsEntry } from './root';
export class MetricContainer extends React.Component<{ name: string }> {
render() {
return (
<div className="metric-cont... | /content/code_sandbox/app/internal_packages/activity/lib/dashboard/metrics-components.tsx | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 1,522 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%X{actor-name}] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Logger name="io.camunda.zeebe" leve... | /content/code_sandbox/zeebe/atomix/cluster/src/test/resources/log4j2-test.xml | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 142 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="path_to_url">
<solid android:color="@android:color/transparent" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/transparent.xml | xml | 2016-07-08T03:18:40 | 2024-08-14T02:54:51 | talon-for-twitter-android | klinker24/talon-for-twitter-android | 1,189 | 43 |
```xml
/**
* An object representing the custom development client menu entry.
*/
export type ExpoDevMenuItem = {
/**
* Name of the entry, will be used as label.
*/
name: string;
/**
* Callback to fire, when user selects an item.
*/
callback: () => void;
/**
* A boolean spe... | /content/code_sandbox/packages/expo-dev-menu/build/ExpoDevMenu.types.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 166 |
```xml
import {Store} from "@tsed/core";
import {SocketUseAfter} from "../index.js";
describe("@SocketUseAfter", () => {
describe("when the decorator is used on a class", () => {
beforeAll(() => {});
it("should store metadata", () => {
class Test {}
const middleware: any = () => {};
Socke... | /content/code_sandbox/packages/third-parties/socketio/src/decorators/socketUseAfter.spec.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 202 |
```xml
import React from 'react';
import { Provider } from 'react-redux';
import { APP_STATE, fireEvent, mockAppState, simpleRender, waitFor } from 'test-utils';
import TrezorConnect from 'trezor-connect';
import { createStore } from '@store';
import { translateRaw } from '@translations';
import { FormData } from '@t... | /content/code_sandbox/src/components/WalletUnlock/Trezor.test.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 625 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@... | /content/code_sandbox/app/src/main/res/layout/content_video.xml | xml | 2016-02-29T16:24:11 | 2024-08-07T10:06:04 | OuNews | oubowu/OuNews | 1,574 | 197 |
```xml
import type { SlotClassNames } from '@fluentui/react-utilities';
import { makeStyles, makeResetStyles, mergeClasses } from '@griffel/react';
import type { ListSlots, ListState } from './List.types';
export const listClassNames: SlotClassNames<ListSlots> = {
root: 'fui-List',
};
const useRootBaseStyles = make... | /content/code_sandbox/packages/react-components/react-migration-v0-v9/library/src/components/List/List/useListStyles.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 289 |
```xml
// luma.gl
import type {NumberArray} from '@math.gl/types';
import {ShaderModule} from '../../../lib/shader-module/shader-module';
import {lightingUniformsGLSL} from './lighting-uniforms-glsl';
import {lightingUniformsWGSL} from './lighting-uniforms-wgsl';
/** Max number of supported lights (in addition to amb... | /content/code_sandbox/modules/shadertools/src/modules/lighting/lights/lighting.ts | xml | 2016-01-25T09:41:59 | 2024-08-16T10:03:05 | luma.gl | visgl/luma.gl | 2,280 | 1,763 |
```xml
import "reflect-metadata"
import { DataSource } from "../../../src/data-source/DataSource"
import {
closeTestingConnections,
createTestingConnections,
} from "../../utils/test-utils"
describe("github issues > #1113 CreateDateColumn's type is incorrect when using decorator @CreateDateColumn({type: 'times... | /content/code_sandbox/test/github-issues/1113/issue-1113.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 245 |
```xml
import { useQuery } from '@tanstack/react-query';
import axios, { parseAxiosError } from '@/portainer/services/axios';
import { EdgeUpdateResponse, StatusType } from '../types';
import { queryKeys } from './query-keys';
import { buildUrl } from './urls';
export type EdgeUpdateListItemResponse = EdgeUpdateRes... | /content/code_sandbox/app/react/portainer/environments/update-schedules/queries/list.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 205 |
```xml
import { ReactWrapper } from 'enzyme';
import { ComparedCommitType } from 'shared/models/Versioning/Blob/Diff';
import { DiffColor } from '../../../../model';
import { diffColors } from '../../styles';
export const getCommitColumns = (
type: ComparedCommitType,
component: ReactWrapper
) => {
return comp... | /content/code_sandbox/webapp/client/src/features/versioning/compareCommits/view/DiffView/shared/ComparePropertiesTable/__tests__/helpers.ts | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 314 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?tweet_activity_background">
<View
android:alpha=".5"
android:layout_wi... | /content/code_sandbox/app/src/main/res/layout/preference_category_card.xml | xml | 2016-07-08T03:18:40 | 2024-08-14T02:54:51 | talon-for-twitter-android | klinker24/talon-for-twitter-android | 1,189 | 240 |
```xml
<?xml version="1.0"?>
<ruleset name="Carbon Fields">
<description>Coding standards for Carbon Fields</description>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<rule ref="WordPress-Core"/>
</ruleset>
``` | /content/code_sandbox/phpcs.xml | xml | 2016-01-06T10:18:35 | 2024-08-09T09:03:24 | carbon-fields | htmlburger/carbon-fields | 1,353 | 63 |
```xml
//
//
// Microsoft Bot Framework: path_to_url
//
// Bot Framework Emulator Github:
// path_to_url
//
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software witho... | /content/code_sandbox/packages/app/main/src/server/utils/createResponse/createErrorResponse.ts | xml | 2016-11-11T23:15:09 | 2024-08-16T12:45:29 | BotFramework-Emulator | microsoft/BotFramework-Emulator | 1,803 | 298 |
```xml
import Button from "@mui/material/Button";
import ClickAwayListener from "@mui/material/ClickAwayListener";
import Tooltip from "@mui/material/Tooltip";
import axios from "axios";
import "bootstrap/dist/css/bootstrap.css";
import { useState } from "react";
import { useDlLink } from './config';
import ReactGA fro... | /content/code_sandbox/website/src/views/Purchase.tsx | xml | 2016-03-29T23:58:12 | 2024-08-16T06:12:21 | Poker | dickreuter/Poker | 1,977 | 1,669 |
```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.
*/
-->
<Keyboard
xmlns:android="path_to_url"
android:keyWidth="10%p"
androi... | /content/code_sandbox/app/src/main/res/xml-hu/kbd_qwerty.xml | xml | 2016-01-22T21:40:54 | 2024-08-16T11:54:30 | hackerskeyboard | klausw/hackerskeyboard | 1,807 | 4,398 |
```xml
<android.support.v4.widget.DrawerLayout
xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:openDrawer="start">
<android.support.design.widget.... | /content/code_sandbox/app/src/main/res/layout/activity_main.xml | xml | 2016-01-07T17:24:12 | 2024-08-16T06:55:33 | LeafPic | UnevenSoftware/LeafPic | 3,258 | 464 |
```xml
import * as path from 'path';
import fse from 'fs-extra';
import type Generator from '../service/runtimeGenerator.js';
type RenderData = {
loaders: string;
} & Record<string, any>;
function renderExportsTemplate(
renderData: RenderData,
addRenderFile: Generator['addRenderFile'],
renderOptions: {
ro... | /content/code_sandbox/packages/ice/src/utils/renderExportsTemplate.ts | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 289 |
```xml
// Example on how to customize the look at feel using Styles
import * as fs from "fs";
import { AlignmentType, convertInchesToTwip, Document, HeadingLevel, LevelFormat, Packer, Paragraph, TextRun, UnderlineType } from "docx";
const doc = new Document({
creator: "Clippy",
title: "Sample Document",
d... | /content/code_sandbox/demo/2-declaritive-styles.ts | xml | 2016-03-26T23:43:56 | 2024-08-16T13:02:47 | docx | dolanmiu/docx | 4,139 | 1,374 |
```xml
<vector xmlns:android="path_to_url"
android:width="128dp"
android:height="128dp"
android:viewportWidth="128"
android:viewportHeight="128">
<path
android:pathData="m119.44,96.041c-17.673,30.611 -56.815,41.099 -87.426,23.426s-41.099,-56.815 -23.426,-87.426 56.815,-41.099 87.426,-23.426 41.0... | /content/code_sandbox/app/src/main/res/drawable/ic_quest_street_shoulder.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 570 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// See path_to_url
/**
* Because Promises are eager in JavaScript, we need to introduce an extra layer
* to lazily invoke an async operation. lazyInit() takes a function th... | /content/code_sandbox/eden/contrib/shared/lazyInit.ts | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 281 |
```xml
<UserControl x:Class="Aurora.Profiles.Slime_Rancher.Control_Slime_Rancher"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:mc="path_to_url"
xmlns:d="path_to_url"
xmlns:local="clr-namespace:Aurora.Settings"
xmlns:System="clr-namespace... | /content/code_sandbox/Project-Aurora/Project-Aurora/Profiles/Slime Rancher/Control_Slime_Rancher.xaml | xml | 2016-04-04T05:18:18 | 2024-08-03T10:11:45 | Aurora | antonpup/Aurora | 1,824 | 1,192 |
```xml
import React from "react";
import { Content } from "@/components/Post/Content";
import * as mocks from "@/mocks";
import { testUtils } from "@/utils";
describe("Content", () => {
test("renders correctly", () => {
const props = {
title: mocks.markdownRemark.frontmatter.title,
body: mocks.markd... | /content/code_sandbox/src/components/Post/Content/Content.test.tsx | xml | 2016-03-11T21:02:37 | 2024-08-15T23:09:27 | gatsby-starter-lumen | alxshelepenok/gatsby-starter-lumen | 1,987 | 113 |
```xml
import {$$} from 'select-dom';
import * as pageDetect from 'github-url-detection';
import features from '../feature-manager.js';
const authorLinkSelector = 'a[aria-label^="commits by"]';
function init(): void {
for (const author of $$(authorLinkSelector)) {
author.pathname = location.pathname;
}
}
void f... | /content/code_sandbox/source/features/same-branch-author-commits.tsx | xml | 2016-02-15T16:45:02 | 2024-08-16T18:39:26 | refined-github | refined-github/refined-github | 24,013 | 122 |
```xml
import { Editor, EditorInterface } from '../interfaces/editor'
import { Range } from '../interfaces/range'
export const range: EditorInterface['range'] = (editor, at, to) => {
if (Range.isRange(at) && !to) {
return at
}
const start = Editor.start(editor, at)
const end = Editor.end(editor, to || at)... | /content/code_sandbox/packages/slate/src/editor/range.ts | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 95 |
```xml
<vector xmlns:android="path_to_url"
android:width="16dp"
android:height="16dp"
android:viewportWidth="16"
android:viewportHeight="16">
<path
android:pathData="M8.53,1.47C8.237,1.177 7.763,1.177 7.47,1.47L4.47,4.47C4.177,4.763 4.177,5.237 4.47,5.53C4.763,5.823 5.237,5.823 5.53,5.53L8,3.061... | /content/code_sandbox/shared/original-core-ui/src/main/res/drawable/ic_chevron_up_down_small_regular.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 401 |
```xml
import {HttpClient, HttpParams} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Variable} from 'app/model/variable.model';
import {Observable} from 'rxjs';
import {map} from 'rxjs/operators';
/**
* Service to access Variable commons.
* Only used by ProjectStore
*/
@Injectable(... | /content/code_sandbox/ui/src/app/service/variable/variable.service.ts | xml | 2016-10-11T08:28:23 | 2024-08-16T01:55:31 | cds | ovh/cds | 4,535 | 322 |
```xml
// <reference types="node" />
import * as http from 'http';
import { Logger, RemoteUser } from '@verdaccio/types';
declare global {
namespace Express {
export interface Request {
remote_user: RemoteUser;
log: Logger;
}
// FIXME:
// export interface Response extends http.ServerRes... | /content/code_sandbox/packages/middleware/types/custom.d.ts | xml | 2016-04-15T16:21:12 | 2024-08-16T09:38:01 | verdaccio | verdaccio/verdaccio | 16,189 | 108 |
```xml
import { ComponentSlotStylesPrepared, ICSSInJSStyle } from '@fluentui/styles';
import { PillIconStylesProps } from '../../../../components/Pill/PillIcon';
import { PillVariables } from './pillVariables';
export const pillGroupStyles: ComponentSlotStylesPrepared<PillIconStylesProps, PillVariables> = {
root: ()... | /content/code_sandbox/packages/fluentui/react-northstar/src/themes/teams/components/Pill/pillGroupStyles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 90 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/art_login_bg">
</LinearLayout>
``` | /content/code_sandbox/app/src/main/res/layout/appication_start.xml | xml | 2016-03-24T06:20:39 | 2024-08-15T11:37:10 | remusic | aa112901/remusic | 6,266 | 63 |
```xml
import { isDev } from "../dev.js";
import { SafeError } from "../index.js";
import type {
GrafastResultsList,
GrafastResultStreamList,
GrafastSubscriber,
StreamDetails,
} from "../interfaces.js";
import type { StreamableStep } from "../step.js";
import { ExecutableStep, isExecutableStep } from "../step.j... | /content/code_sandbox/grafast/grafast/src/steps/listen.ts | xml | 2016-04-14T21:29:19 | 2024-08-16T17:12:51 | crystal | graphile/crystal | 12,539 | 862 |
```xml
<persistence xmlns="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url"
version="2.0">
<!-- Will be referenced in Spring Context File -->
<persistence-unit name="jpa-persistence" transaction-type="RESOURCE_LOCAL">
<class>com.journaldev.jpa.data.Employee</class>
<properti... | /content/code_sandbox/PrimeFaces/Primefaces-Hibernate-JPA-Spring-Integration-Sample/src/main/resources/META-INF/persistence.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 179 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url">
<data>
<variable
name="adapter"
type="com.example.jingbin.cloudreader.adapter.CategoryArticleAdapter" />
<variable
name=... | /content/code_sandbox/app/src/main/res/layout/item_category_article.xml | xml | 2016-11-20T11:59:25 | 2024-08-14T13:24:02 | CloudReader | youlookwhat/CloudReader | 4,933 | 969 |
```xml
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import { useAppSelector } from 'mastodon/store';
export const NamesList: React.FC<{
accountIds: string[];
total: number;
seeMoreHref?: string;
}> = ({ accountIds, total, seeMoreHref }) => {
const lastAccountId = ac... | /content/code_sandbox/app/javascript/mastodon/features/notifications_v2/components/names_list.tsx | xml | 2016-02-22T15:01:25 | 2024-08-16T19:27:35 | mastodon | mastodon/mastodon | 46,560 | 340 |
```xml
interface IImageMagnifierLensProps {
// the size of the magnifier window
size?: number,
// the offset of the zoom bubble from the cursor
cursorOffset?:({
x?: number,
y?: number
}),
// the size of the non-zoomed-in image
im... | /content/code_sandbox/samples/react-image-magnifier/src/webparts/imageMagnifier/components/ImageMagnifierLens/IImageMagnifierLensProps.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 132 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.