text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```xml
import * as React from 'react';
import { KnobContext, KnobContextValue } from './KnobContexts';
import { KnobComponent, KnobComponentProps, KnobDefinition } from './types';
import { useKnobValues } from './useKnobValues';
const getKnobControls = (knobsContext: KnobContextValue): Record<'Control' | 'Field' | 'L... | /content/code_sandbox/packages/fluentui/docs-components/src/knobs/KnobInspector.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 607 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="zh-CN" datatype="plaintext" original="teams.en.xlf">
<body>
<trans-unit id="A_4Fc7c" resname="teams.project_access">
<source>teams.project_acc... | /content/code_sandbox/translations/teams.zh_CN.xlf | xml | 2016-10-20T17:06:34 | 2024-08-16T18:27:30 | kimai | kimai/kimai | 3,084 | 431 |
```xml
import * as assert from 'assert';
import * as path from 'path';
import * as sinon from 'sinon';
import * as fsWatcher from '../../../../../client/common/platform/fileSystemWatcher';
import * as platformUtils from '../../../../../client/common/utils/platform';
import { PythonEnvKind } from '../../../../../client... | /content/code_sandbox/src/test/pythonEnvironments/base/locators/lowLevel/customVirtualEnvLocator.unit.test.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 2,384 |
```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 kumaraswamy = require( './index' );
// TESTS //
// The function returns a number...
{
kumaraswamy( 2, 3... | /content/code_sandbox/lib/node_modules/@stdlib/random/base/kumaraswamy/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 2,894 |
```xml
import React, {PureComponent} from 'react'
import _ from 'lodash'
import {ErrorHandling} from 'src/shared/decorators/errors'
import {LogItem} from 'src/types/kapacitor'
interface Props {
logItem: LogItem
}
class LogItemKapacitorPoint extends PureComponent<Props> {
public render() {
const {logItem} = ... | /content/code_sandbox/ui/src/kapacitor/components/LogItemKapacitorPoint.tsx | xml | 2016-08-24T23:28:56 | 2024-08-13T19:50:03 | chronograf | influxdata/chronograf | 1,494 | 396 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
import { booleanAttribute, Component, forwardRef, Input } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AppSettingsDto, ConfirmClickDirective, createProperties, DialogModel, DropdownMenuComponent, EditFieldForm, F... | /content/code_sandbox/frontend/src/app/features/schemas/pages/schema/fields/field.component.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 789 |
```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 { AST_NODE_TYPES, type TSESLint, type TSESTree } from "@typescript-eslint/utils";
import { addImportToFile } from "./utils... | /content/code_sandbox/packages/eslint-plugin/src/rules/html-components.ts | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 606 |
```xml
import { BoardItem } from "@erxes/ui-sales/src/settings/boards/styles";
import { Header } from "@erxes/ui-settings/src/styles";
import { ICalendar } from "../../types";
import { Link } from "react-router-dom";
import { SidebarList as List } from "@erxes/ui/src/layout/styles";
import React from "react";
import Si... | /content/code_sandbox/packages/plugin-calendar-ui/src/settings/components/scheduler/Sidebar.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 233 |
```xml
import { Component, OnInit } from '@angular/core';
import { ChartsService } from '../shared/services/charts.service';
import { Chart } from '../shared/models/chart';
import { SeoService } from '../shared/services/seo.service';
@Component({
selector: 'app-chart-index',
templateUrl: './chart-index.component.h... | /content/code_sandbox/frontend/src/app/chart-index/chart-index.component.ts | xml | 2016-08-24T19:35:09 | 2024-07-01T06:23:47 | monocular | helm/monocular | 1,423 | 194 |
```xml
import { TypedStartListening } from '@reduxjs/toolkit';
import {
type AddressKeysState,
type OrganizationKeyState,
type SecurityCheckupReduxState,
type UserInvitationsState,
type UserKeysState,
type UserSettingsState,
addressKeysListener,
authenticationListener,
organizationK... | /content/code_sandbox/packages/redux-shared-store/sharedListeners.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 247 |
```xml
import { readFileSync } from 'fs';
import { join } from 'path';
import { IResolvers } from '@graphql-tools/utils';
export const typeDefs = readFileSync(join(__dirname, './discount.graphql'), 'utf8');
export const resolvers: IResolvers = {
Product: {
__resolveReference(object) {
return {
...... | /content/code_sandbox/packages/federation/test/fixtures/gateway/discount/index.ts | xml | 2016-03-22T00:14:38 | 2024-08-16T02:02:06 | graphql-tools | ardatan/graphql-tools | 5,331 | 218 |
```xml
import * as React from 'react';
import { Animated } from 'react-native';
export default function useAnimatedValueArray(initialValues: number[]) {
const refs = React.useRef<Animated.Value[]>([]);
refs.current.length = initialValues.length;
initialValues.forEach((initialValue, i) => {
refs.current[i] =... | /content/code_sandbox/src/utils/useAnimatedValueArray.tsx | xml | 2016-10-19T05:56:53 | 2024-08-16T08:48:04 | react-native-paper | callstack/react-native-paper | 12,646 | 88 |
```xml
/* eslint-disable @typescript-eslint/indent */
import type { Element, Text } from '@ice/miniapp-runtime';
import { document } from '@ice/miniapp-runtime';
import { EMPTY_ARR, isBoolean, isUndefined, noop } from '@ice/shared';
import type { HostConfig } from 'react-reconciler';
import Reconciler from 'react-recon... | /content/code_sandbox/packages/miniapp-react-dom/src/reconciler.ts | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 1,018 |
```xml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
xmlns:dualScreen="clr-namespace:Xamarin.Forms.DualScreen;assembly=Xamarin.Forms.DualScreen"
xmlns:local="clr-namespace:Dua... | /content/code_sandbox/DualScreen/DualScreen/MasterDetail/MasterDetail.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 230 |
```xml
import "reflect-metadata"
import { DataSource } from "../../../src/data-source/DataSource"
import {
closeTestingConnections,
createTestingConnections,
reloadTestingDatabases,
} from "../../utils/test-utils"
describe("query runner > drop foreign key", () => {
let connections: DataSource[]
bef... | /content/code_sandbox/test/functional/query-runner/drop-foreign-key.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 267 |
```xml
<resources>
<!-- Base application theme. -->
</resources>
``` | /content/code_sandbox/contentprovider-management/src/main/res/values/styles.xml | xml | 2016-01-28T02:51:45 | 2024-08-16T11:36:48 | understand-plugin-framework | tiann/understand-plugin-framework | 2,633 | 14 |
```xml
export * from './alert';
export * from './tooltip';
export * from './banner';
``` | /content/code_sandbox/packages/feedback/src/index.tsx | xml | 2016-05-14T02:18:49 | 2024-08-16T02:46:28 | ElectroCRUD | garrylachman/ElectroCRUD | 1,538 | 19 |
```xml
import * as React from 'react';
import { mergeArrowOffset, resolvePositioningShorthand, usePositioning } from '@fluentui/react-positioning';
import {
useTooltipVisibility_unstable as useTooltipVisibility,
useFluent_unstable as useFluent,
} from '@fluentui/react-shared-contexts';
import type { KeyborgFocusInE... | /content/code_sandbox/packages/react-components/react-tooltip/library/src/components/Tooltip/useTooltip.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 2,272 |
```xml
import React from 'react';
import DragAndDrop, { DraggableItemData } from './DragAndDrop';
import Tile, { ColorTile } from './Tile';
const COLORS = [
'#F94144',
'#F3722C',
'#F8961E',
'#F9844A',
'#F9C74F',
'#90BE6D',
'pink',
'#43AA8B',
'#4D908E',
'#577590',
'#277DA1',
];
const COLORS_ITEMS... | /content/code_sandbox/example/src/new_api/drag_n_drop/index.tsx | xml | 2016-10-27T08:31:38 | 2024-08-16T12:03:40 | react-native-gesture-handler | software-mansion/react-native-gesture-handler | 5,989 | 289 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:cd>
<domain:name avail="1">example1.tld</domain:name>
... | /content/code_sandbox/core/src/test/resources/google/registry/flows/domain/domain_check_fee_multiple_commands_default_token_response_v12.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 647 |
```xml
import { svgIcon } from "@bitwarden/components";
export const ReportReusedPasswords = svgIcon`
<svg width="102" height="102" fill="none" xmlns="path_to_url">
<path d="M57.983 15.06a35.664 35.664 0 0 1 14.531 6.27c16.164 11.78 19.585 34.613 7.643 51a37.227 37.227 0 0 1-6.81 7.138m-32.842 6.697a35.708 35.70... | /content/code_sandbox/apps/web/src/app/tools/reports/icons/report-reused-passwords.icon.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 608 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="compensateProcess">
<startEvent id="start" />
<sequenceFlow sourceRef="start" targetRef="fork" />
<parallelGateway id="fork" />
... | /content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/bpmn/event/compensate/CompensateEventTest.testMultipleCompensationCatchEventsCompensationAttributeMissingFails.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 658 |
```xml
import { Image, Button, ButtonProps } from '@fluentui/react-northstar';
import * as React from 'react';
export interface GridPickerItemProps {
title?: string;
imageSrc: string;
onClick?: (e: React.SyntheticEvent, props: ButtonProps) => void;
}
const imageButtonStyles = {
minWidth: '56px',
height: '5... | /content/code_sandbox/packages/fluentui/react-northstar-prototypes/src/prototypes/popups/GridImagePicker/GridImagePickerItem.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 208 |
```xml
/**
*
* This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.
*/
import * as ExtensionApi from '@extraterm/extraterm-extension-api';
import * as _ from 'lodash-es';
import { Logger, getLogger } from "extraterm-logging";
import { ExtensionMetadata, ExtensionSessionSetti... | /content/code_sandbox/main/src/extension/WorkspaceSessionSettingsEditorRegistry.ts | xml | 2016-03-04T12:39:59 | 2024-08-16T18:44:37 | extraterm | sedwards2009/extraterm | 2,501 | 1,041 |
```xml
export const roundedRect = (
ctx: CanvasRenderingContext2D,
x: number,
y: number,
width: number,
height: number,
radius: number
) => {
if (radius > 0) {
ctx.moveTo(x + radius, y)
ctx.lineTo(x + width - radius, y)
ctx.quadraticCurveTo(x + width, y, x + width, y ... | /content/code_sandbox/packages/canvas/src/roundedRect.ts | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 207 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>IconDownloaderDialog</class>
<widget class="QDialog" name="IconDownloaderDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>453</width>
<height>339</height>
</rect>
</property>
<property name="sizePoli... | /content/code_sandbox/src/gui/IconDownloaderDialog.ui | xml | 2016-02-28T15:52:40 | 2024-08-16T19:26:56 | keepassxc | keepassxreboot/keepassxc | 20,477 | 1,173 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const CommandPromptIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M2048 128v1664H0V128h2048zM128 256v128h1792V256H1... | /content/code_sandbox/packages/react-icons-mdl2/src/components/CommandPromptIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 337 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="path_to_url"
package="com.journaldev.androidexpressobasics">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_... | /content/code_sandbox/Android/AndroidEspressoBasics/app/src/main/AndroidManifest.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 154 |
```xml
import { ColumnDef, Row } from '@tanstack/react-table';
import { Checkbox } from '@@/form-components/Checkbox';
export function createSelectColumn<T>(dataCy: string): ColumnDef<T> {
let lastSelectedId = '';
return {
id: 'select',
header: ({ table }) => (
<Checkbox
id="select-all"
... | /content/code_sandbox/app/react/components/datatables/select-column.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 529 |
```xml
import HeaderDescription from '@erxes/ui/src/components/HeaderDescription';
import { __ } from '@erxes/ui/src/utils';
import React from 'react';
function Header({
title,
description
}: {
title?: string;
description?: string;
}) {
return (
<HeaderDescription
icon="/images/actions/25.svg"
... | /content/code_sandbox/packages/ui-settings/src/general/components/Header.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 93 |
```xml
import React from 'react';
import { storiesOf } from '@storybook/react-native';
import { withKnobs } from '@storybook/addon-knobs';
import Wrapper from './../../Wrapper';
import Examples from './AppBarExamples';
storiesOf('AppBar', module)
.addDecorator(withKnobs)
.addDecorator((getStory: any) => <Wrapper>... | /content/code_sandbox/example/storybook/stories/components/composites/AppBar/index.tsx | xml | 2016-04-15T11:37:23 | 2024-08-14T16:16:44 | NativeBase | GeekyAnts/NativeBase | 20,132 | 91 |
```xml
<vector xmlns:android="path_to_url"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20">
<path
android:fillColor="@color/gray20"
android:pathData="m16.614,10.1801c0.0155,3.1165 -1.1329,6.4181 -3.6417,8.3195 -0.7118,0.4002 -1.0296,-1.1937... | /content/code_sandbox/src/main/res/drawable/ic_emoji_emoticon_dark_20.xml | xml | 2016-07-03T07:32:36 | 2024-08-16T16:51:15 | deltachat-android | deltachat/deltachat-android | 1,082 | 580 |
```xml
import React from 'react';
import Triangle from '../components/Triangle';
import { renderWithWrapper } from '../../../.ci/testHelper';
describe('Tooltip component', () => {
it('should match snapshot ', () => {
const { toJSON } = renderWithWrapper(<Triangle />, 'RNE__Tooltip_Triangle');
expect(toJSON()... | /content/code_sandbox/packages/base/src/Tooltip/__tests__/Triangle.test.tsx | xml | 2016-09-08T14:21:41 | 2024-08-16T10:11:29 | react-native-elements | react-native-elements/react-native-elements | 24,875 | 187 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ImportGroup Label="PropertySheets" />
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup>
<ClCompile>
<AdditionalIncludeDirectories>$(SolutionDir)lib\3rdParty\OpenBLAS\include;%(Add... | /content/code_sandbox/lib/3rdParty/OpenBLAS/OpenBLAS_x86.props | xml | 2016-03-05T20:08:49 | 2024-08-16T11:30:08 | OpenFace | TadasBaltrusaitis/OpenFace | 6,799 | 241 |
```xml
export type JSONValue = boolean | number | string | null | JSONArray | JSONObject;
export interface JSONArray extends Array<JSONValue> {}
export interface JSONObject {
[key: string]: JSONValue | undefined;
}
export type BridgeMessage<TData extends JSONValue> = {
type: string;
data: TData;
};
``` | /content/code_sandbox/packages/expo/src/dom/www-types.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 68 |
```xml
/*
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except accor... | /content/code_sandbox/framework/src/modules/nft/stores/user.ts | xml | 2016-02-01T21:45:35 | 2024-08-15T19:16:48 | lisk-sdk | LiskArchive/lisk-sdk | 2,721 | 260 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ 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 ... | /content/code_sandbox/kernel/logging/api/pom.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 264 |
```xml
import { EntitySchemaOptions } from "../../../../src/entity-schema/EntitySchemaOptions"
export class Post {
id: number
name: string
title: string
}
export const PostSchema: EntitySchemaOptions<Post> = {
name: "Post",
target: Post,
columns: {
id: {
primary: true,
... | /content/code_sandbox/test/github-issues/3803/entity/Post.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 110 |
```xml
import React, { FunctionComponent } from "react";
import { graphql } from "react-relay";
import { withFragmentContainer } from "coral-framework/lib/relay";
import { StoryRatingContainer_story } from "coral-stream/__generated__/StoryRatingContainer_story.graphql";
import StoryRating from "./StoryRating";
inte... | /content/code_sandbox/client/src/core/client/stream/tabs/Comments/Stream/StoryRating/StoryRatingContainer.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 202 |
```xml
<dict>
<key>CommonPeripheralDSP</key>
<array>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Headphone</string>
</dict>
<dict>
<key>DeviceID</key>
<integer>0</integer>
<key>DeviceType</key>
<string>Microphone</string>
</dict>
</array>
<key>PathMa... | /content/code_sandbox/Resources/IDT92HD81B1C5/Platforms11.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 1,462 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO... | /content/code_sandbox/src/script/components/AvailabilityIcon/index.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 94 |
```xml
<WixLocalization Culture="en-us" Language="1033" xmlns="path_to_url">
<String Id="Caption">Instalador do [WixBundleName]</String>
<String Id="Title">[BUNDLEMONIKER]</String>
<String Id="ConfirmCancelMessage">Tem certeza de que deseja cancelar?</String>
<String Id="ExecuteUpgradeRelatedBundleMessage">Vers... | /content/code_sandbox/src/Installer/redist-installer/packaging/windows/LCID/1046/bundle.wxl | xml | 2016-07-22T21:26:02 | 2024-08-16T17:23:58 | sdk | dotnet/sdk | 2,627 | 1,773 |
```xml
import { isNotUndefined } from './Utils'
export const classNames = (...values: (string | null | undefined | boolean)[]): string => {
return values
.map((value) => (typeof value === 'string' ? value : null))
.filter(isNotUndefined)
.join(' ')
}
``` | /content/code_sandbox/packages/utils/src/Domain/Utils/ClassNames.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 67 |
```xml
import { Quantile as QuantileScale } from '@antv/scale';
import { ScaleComponent as SC } from '../runtime';
import { QuantileScale as QuantileScaleSpec } from '../spec';
export type QuantileOptions = Omit<QuantileScaleSpec, 'type'>;
export const Quantile: SC<QuantileOptions> = (options) => {
return new Quant... | /content/code_sandbox/src/scale/quantile.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 92 |
```xml
/**
* This plugin contains all the logic for setting up the singletons
*/
import { definePlugin, type DocumentDefinition } from "sanity";
import { type StructureResolver } from "sanity/structure";
export const singletonPlugin = definePlugin((types: string[]) => {
return {
name: "singletonPlugin",
d... | /content/code_sandbox/examples/cms-sanity/sanity/plugins/settings.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 447 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<vector
xmlns:android="path_to_url"
android:width="18dp"
android:height="18dp"
android:tint="?attr/colorControlNormal"
android:viewportHeight="1"
android:viewportWidth="1">
<group
android:translateX="@dimen/digit_translateX"
android:translateY="@dimen... | /content/code_sandbox/app/src/main/res/drawable/vd_pathmorph_digits_eight.xml | xml | 2016-11-04T14:23:35 | 2024-08-12T07:50:44 | adp-delightful-details | alexjlockwood/adp-delightful-details | 1,070 | 152 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.tld</domain:name>
<domain:add>
<domain:ns>
<domain:hostObj>ns2.example.foo</domain:hostObj>
</do... | /content/code_sandbox/core/src/test/resources/google/registry/flows/domain/domain_update_prohibited_status.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 264 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
android:id="@+id/no_network_view"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:id="@+id/no_network_retry_view"
... | /content/code_sandbox/app/src/main/res/layout/custom_no_network_view.xml | xml | 2016-02-02T05:18:46 | 2024-08-15T02:04:44 | GanK | dongjunkun/GanK | 1,163 | 218 |
```xml
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* Counter of document updates failed to be sent to the server and saved.... | /content/code_sandbox/packages/metrics/types/docs_document_updates_save_error_total_v1.schema.d.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 127 |
```xml
import { fromUnixTime, isBefore } from 'date-fns';
import { getAppFromPathnameSafe } from '@proton/shared/lib/apps/slugHelper';
import { APPS } from '@proton/shared/lib/constants';
import { isManagedExternally, isTrial } from '@proton/shared/lib/helpers/subscription';
import type { ProtonConfig, Subscription, U... | /content/code_sandbox/packages/components/containers/offers/operations/blackFridayInbox2023Free/eligibility.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 366 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="path_to_url"
android:orientation="vertical" android:layout_width="match_parent"
android:padding="20dp"
android:layout_height="wrap_content">
<androidx.core.widget.ContentLoadingProgressBar
android:layout_width="match_par... | /content/code_sandbox/sample/src/main/res/layout/custom_download_layout.xml | xml | 2016-09-23T04:47:25 | 2024-08-09T06:58:52 | CheckVersionLib | AlexLiuSheng/CheckVersionLib | 2,661 | 294 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.junit.launchconfig">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/janino/src/test/java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPP... | /content/code_sandbox/janino/launch/janino-tests (JavaSE-11).launch | xml | 2016-06-12T16:42:49 | 2024-08-16T02:16:53 | janino | janino-compiler/janino | 1,225 | 973 |
```xml
import type { AppProps } from 'next/app'
import { ThemeProvider } from 'next-themes'
import { Analytics } from '@vercel/analytics/react'
import Layout from 'src/components/Layout'
import 'src/utils/theme/theme.css'
const App = (props: AppProps) => (
<ThemeProvider>
<Layout>
<props.Component {...pro... | /content/code_sandbox/packages/website/src/pages/_app.tsx | xml | 2016-10-21T09:36:02 | 2024-08-16T14:16:08 | gitmoji | carloscuesta/gitmoji | 15,539 | 97 |
```xml
/**
* A general error class that should be used for all errors in Expo modules.
* Guarantees a `code` field that can be used to differentiate between different
* types of errors without further subclassing Error.
*/
export declare class CodedError extends Error {
code: string;
info?: any;
constru... | /content/code_sandbox/packages/expo-modules-core/build/errors/CodedError.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 85 |
```xml
<layer-list xmlns:android="path_to_url">
<item>
<shape android:shape="rectangle">
<stroke
android:width="1dp"
android:color="?attr/colorSecondary" />
<solid android:color="@color/white_white_005" />
<corners android:radius="5dp" />
... | /content/code_sandbox/app/src/main/res/drawable/background_item_grid_selected.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 86 |
```xml
export { bundle } from './vite'
export type { ViteBuildContext } from './vite'
``` | /content/code_sandbox/packages/vite/src/index.ts | xml | 2016-10-26T11:18:47 | 2024-08-16T19:32:46 | nuxt | nuxt/nuxt | 53,705 | 22 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\common\Execution.cs" Link="Execution.cs" />
<Compile Include="..\common\StringUtils.cs" Link="StringUtils.cs" /... | /content/code_sandbox/tools/governance/governance.csproj | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 92 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="test">
<process id="testProcess2" name="test">
<startEvent id="start" />
<sequenceFlow id="flow1" sourceRef="start" targetRef="end" />
<endEvent id="e... | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/repository/latest/version_testProcess2_one.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 100 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
import {shallow} from 'enzyme';
import {ComposedModal, ModalBody} from '@carbon/react';
import Modal from './Modal';
it('should render without throw... | /content/code_sandbox/optimize/client/src/modules/components/Modal/Modal.test.tsx | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 506 |
```xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<array>
<array>
<string>public.default</string>
<string>glyphs</string>
</array>
</array>
</plist>
``` | /content/code_sandbox/sources/ufo/PublicSans-ThinItalic.ufo/layercontents.plist | xml | 2016-11-04T13:51:35 | 2024-08-16T16:28:40 | public-sans | uswds/public-sans | 4,449 | 83 |
```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";
export namespace documentdb {
export interfa... | /content/code_sandbox/tests/testdata/codegen/azure-native-nested-types/nodejs/types/output.ts | xml | 2016-10-31T21:02:47 | 2024-08-16T19:47:04 | pulumi | pulumi/pulumi | 20,743 | 227 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="path_to_url">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGro... | /content/code_sandbox/src/Kernel/Atomix.Kernel_H/Atomix.Kernel_H.csproj | xml | 2016-04-11T15:56:39 | 2024-08-12T19:22:17 | AtomOS | amaneureka/AtomOS | 1,260 | 1,809 |
```xml
import type { APP_NAMES } from '@proton/shared/lib/constants';
import type { Parameters } from '../../pages/interface';
const loginJsonContext = require.context('../../pages', true, /login.ts$/, 'sync');
const loginJsonKeys = loginJsonContext.keys();
const getContext = (key: string): { default: () => Paramet... | /content/code_sandbox/applications/account/src/app/login/loginPagesJson.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 160 |
```xml
import { normalizeStyleOptions, StyleOptions } from 'botframework-webchat-api';
import createActivitiesStyle from './StyleSet/Activities';
import createActivityButtonStyle from './StyleSet/ActivityButton';
import createActivityCopyButtonStyle from './StyleSet/ActivityCopyButton';
import createAudioAttachmentSty... | /content/code_sandbox/packages/component/src/Styles/createStyleSet.ts | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 1,452 |
```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.
-->
<PreferenceScreen
xmlns:android="path_to_url">
<ListPreference
android:key="br... | /content/code_sandbox/app/src/main/res/xml/settings_other_options.xml | xml | 2016-07-08T03:18:40 | 2024-08-14T02:54:51 | talon-for-twitter-android | klinker24/talon-for-twitter-android | 1,189 | 431 |
```xml
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SharedTestingModule } from 'src/app/shared/shared.module';
import { JobServiceDashboardComponent } from './job-service-dashboard.component';
import { NO_ERRORS_SCHEMA } from '@angular/core';
describe('JobServiceDashboardComponent', () =... | /content/code_sandbox/src/portal/src/app/base/left-side-nav/job-service-dashboard/job-service-dashboard.component.spec.ts | xml | 2016-01-28T21:10:28 | 2024-08-16T15:28:34 | harbor | goharbor/harbor | 23,335 | 167 |
```xml
import * as useUserModule from '@proton/account/user/hooks';
import type { UserModel } from '@proton/shared/lib/interfaces';
import { buildUser } from '../builders';
export const mockUseUser = (value: [Partial<UserModel>?, boolean?] = []) => {
const [user, cached = false] = value;
const mockedUseUser =... | /content/code_sandbox/packages/testing/lib/mockUseUser.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 109 |
```xml
<controls:ContentPopup x:Class="Telegram.Views.Popups.ChatMutePopup"
xmlns="path_to_url"
xmlns:d="path_to_url"
xmlns:x="path_to_url"
xmlns:mc="path_to_url"
xmlns:controls="using:Telegram.Controls"
... | /content/code_sandbox/Telegram/Views/Popups/ChatMutePopup.xaml | xml | 2016-05-23T09:03:33 | 2024-08-16T16:17:48 | Unigram | UnigramDev/Unigram | 3,744 | 489 |
```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 { Injectable } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { select,... | /content/code_sandbox/ui-ngx/src/app/core/auth/auth.effects.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 360 |
```xml
import EmptyState from "@erxes/ui/src/components/EmptyState";
import HeaderDescription from "@erxes/ui/src/components/HeaderDescription";
import { __ } from "@erxes/ui/src/utils/core";
import Wrapper from "@erxes/ui/src/layout/components/Wrapper";
import React from "react";
import Boards from "../containers/Boar... | /content/code_sandbox/packages/plugin-calendar-ui/src/settings/components/Home.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 402 |
```xml
export default function Page({ params }) {
return (
<div>
Hello from [this-is-my-route]/some-page. Param:{' '}
{params['this-is-my-route']}
</div>
)
}
``` | /content/code_sandbox/test/e2e/app-dir/parallel-routes-and-interception/app/interception-route-special-params/[this-is-my-route]/some-page/page.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 48 |
```xml
export * from './menu-list';
export * from './menu-item';
export * from './menu-label';
export * from './menu-divider';
``` | /content/code_sandbox/src/webviews/apps/shared/components/menu/index.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 29 |
```xml
import type { ButtonProps } from '@proton/atoms';
import { Button } from '@proton/atoms';
import type { IconProps } from '@proton/components';
import { Icon } from '@proton/components';
import clsx from '@proton/utils/clsx';
interface Props {
title: string;
className?: string;
expanded: boolean;
... | /content/code_sandbox/packages/components/components/button/SidebarExpandButton.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 323 |
```xml
export function formatVariant(
scenario: string,
props: Record<string, string | number | boolean | null>
): string {
const keys = Object.keys(props)
.filter((key) => props[key] !== false && props[key] !== null)
.map((key) => (props[key] === true ? key : `${key}=${props[key]}`));
if (keys.length =... | /content/code_sandbox/turbopack/packages/devlow-bench/src/utils.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 108 |
```xml
import { expect, test, describe, afterAll } from 'vitest';
import { startFixture, setupStartBrowser } from '../utils/start';
import type { Page } from '../utils/browser';
import type Browser from '../utils/browser';
const example = 'with-suspense-ssr';
describe(`start ${example}`, () => {
let page: Page;
l... | /content/code_sandbox/tests/integration/with-suspense-ssr.test.ts | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 490 |
```xml
import {useCallback, useContext, useEffect, useState} from 'react';
import {StreamsContext} from "./streamsContext";
import {ApplicationContext} from "cad/context";
import {Emitter, Stream} from "lstream";
import produce from "immer";
export function useStream<T>(getStream: Stream<T> | ((ctx: ApplicationContext... | /content/code_sandbox/modules/ui/effects.ts | xml | 2016-08-26T21:55:19 | 2024-08-15T01:02:53 | jsketcher | xibyte/jsketcher | 1,461 | 481 |
```xml
import 'reflect-metadata';
import { assert } from 'chai';
import { IObfuscationResult } from '../../../../../../src/interfaces/source-code/IObfuscationResult';
import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../../src/options/presets/NoCustomNodes';
import { JavaScriptObfuscator } from '../../../../.... | /content/code_sandbox/test/functional-tests/custom-code-helpers/string-array/templates/string-array-template/StringArrayTemplate.spec.ts | xml | 2016-05-09T08:16:53 | 2024-08-16T19:43:07 | javascript-obfuscator | javascript-obfuscator/javascript-obfuscator | 13,358 | 716 |
```xml
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/platform_font_ios.h"
#import <UIKit/UIKit.h>
#include <cmath>
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/gfx/font.h"
#in... | /content/code_sandbox/orig_chrome/ui/gfx/platform_font_ios.mm | xml | 2016-09-27T03:41:10 | 2024-08-16T10:42:57 | miniblink49 | weolar/miniblink49 | 7,069 | 813 |
```xml
import {
Column,
Entity,
JoinColumn,
ManyToOne,
PrimaryColumn,
} from "../../../../src/index"
import { MainModel } from "./MainModel"
import { ValidationModel } from "./ValidationModel"
@Entity()
export class DataModel {
@PrimaryColumn()
validation: number
@PrimaryColumn()
m... | /content/code_sandbox/test/github-issues/1545/entity/DataModel.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 194 |
```xml
/**
* @license
*
* 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 type { DataType } from "#src/util/data_type.js";
export const SKELETON_LAYER_RPC_ID = "skeleton/SkeletonLayer";... | /content/code_sandbox/src/skeleton/base.ts | xml | 2016-05-27T02:37:25 | 2024-08-16T07:24:25 | neuroglancer | google/neuroglancer | 1,045 | 91 |
```xml
import asyncComponent from "@erxes/ui/src/components/AsyncComponent";
import queryString from "query-string";
import React from "react";
import { Route, Routes, useLocation } from "react-router-dom";
import GeneralSettings from "./settings/components/GeneralSettings";
const SyncHistoryList = asyncComponent(
(... | /content/code_sandbox/packages/plugin-syncpolaris-ui/src/routes.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 640 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
tools:context="org.horaapps.leafpic.activities.MainActivity">
<group android:id="@+id/timeline_view_items">
<item
android:id="@+id/timeline_menu_filter"... | /content/code_sandbox/app/src/main/res/menu/menu_timeline.xml | xml | 2016-01-07T17:24:12 | 2024-08-16T06:55:33 | LeafPic | UnevenSoftware/LeafPic | 3,258 | 779 |
```xml
/**
* This file needs to be improved in terms of typing. They were rushed due to time constraints.
*/
import ICAL from 'ical.js';
import { parseWithRecovery } from '@proton/shared/lib/calendar/icsSurgery/ics';
import { DAY, HOUR, MINUTE, SECOND, WEEK } from '../constants';
import type {
VcalCalendarCompo... | /content/code_sandbox/packages/shared/lib/calendar/vcal.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 2,943 |
```xml
// Type definitions for iview 3.3.1
// Project: path_to_url
// Definitions by: yangdan
// Definitions: path_to_url
import Vue from 'vue';
export declare class Avatar extends Vue {
/**
* circlesquare
* @default circle
*/
shape?: 'circle' | 'square';
/**
* largesmalldefault
* @default defau... | /content/code_sandbox/types/avatar.d.ts | xml | 2016-07-28T01:52:59 | 2024-08-16T10:15:08 | iview | iview/iview | 23,980 | 170 |
```xml
import { GENERATE_VOTING_PDF_CHANNEL } from '../../../common/ipc/api';
import type {
GenerateVotingPDFMainResponse,
GenerateVotingPDFRendererRequest,
} from '../../../common/ipc/api';
import { RendererIpcChannel } from './lib/RendererIpcChannel';
export const generateVotingPDFChannel: // IpcChannel<Incoming... | /content/code_sandbox/source/renderer/app/ipc/generateVotingPDFChannel.ts | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 118 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "path_to_url">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>16G29</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>WhateverGreen</string>... | /content/code_sandbox/Clover-Configs/XiaoMi/15.6-inch/CLOVER/kexts/Other/WhateverGreen.kext/Contents/Info.plist | xml | 2016-11-05T04:22:54 | 2024-08-12T19:25:53 | Hackintosh-Installer-University | huangyz0918/Hackintosh-Installer-University | 3,937 | 1,044 |
```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 * as Classes from "./classes";
export { Classes };
export * from "./constants";
export * from "./documentalistUtils";
expo... | /content/code_sandbox/packages/docs-theme/src/common/index.ts | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 81 |
```xml
import { CronJob, Job } from 'kubernetes-types/batch/v1';
import { Secret, Pod } from 'kubernetes-types/core/v1';
import { getIsSecretInUse } from './utils';
describe('getIsSecretInUse', () => {
it('should return false when no resources reference the secret', () => {
const secret: Secret = {
metada... | /content/code_sandbox/app/react/kubernetes/configs/ListView/SecretsDatatable/utils.test.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 626 |
```xml
<manifest xmlns:android="path_to_url"
package="com.albums"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-sdk
android:minSdkVersion="... | /content/code_sandbox/albums/android/app/src/main/AndroidManifest.xml | xml | 2016-09-19T16:57:30 | 2024-08-06T14:29:02 | ReactNativeReduxCasts | StephenGrider/ReactNativeReduxCasts | 2,568 | 234 |
```xml
import { ChangeDetectorRef } from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
import { Observable, Subject } from 'rxjs';
type Constructor<T> = new (...args: any[]) => T;
const noop: any = () => {
// empty method
};
export interface IControlValueAccessor extends ControlValueAcce... | /content/code_sandbox/libs/angular/common/src/behaviors/control-value-accesor.mixin.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 410 |
```xml
import BigNumber from "bignumber.js";
import { IConfig } from "../../interfaces/config";
import { IContractDocument } from "../definitions/contracts";
import { calcInterest, getDatesDiffMonth, getDiffDay } from "./utils";
export async function getInterest(contract:IContractDocument,fromDate:Date,toDate:Date,ba... | /content/code_sandbox/packages/plugin-loans-api/src/models/utils/interestUtils.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 228 |
```xml
import { Authorized } from '@/react/hooks/useUser';
import { AddButton } from '@@/buttons';
import { DeleteButton } from '@@/buttons/DeleteButton';
import { DecoratedVolume } from '../types';
export function TableActions({
selectedItems,
onRemove,
}: {
selectedItems: Array<DecoratedVolume>;
onRemove(i... | /content/code_sandbox/app/react/docker/volumes/ListView/VolumesDatatable/TableActions.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 209 |
```xml
import { assert } from 'chai';
import { JavaScriptObfuscator } from '../../../../../../src/JavaScriptObfuscatorFacade';
import { NO_ADDITIONAL_NODES_PRESET } from '../../../../../../src/options/presets/NoCustomNodes';
import { readFileAsString } from '../../../../../helpers/readFileAsString';
describe('Condi... | /content/code_sandbox/test/functional-tests/node-transformers/preparing-transformers/obfuscating-guards/conditional-comment-obfuscating-guard/ConditionalCommentObfuscatingGuard.spec.ts | xml | 2016-05-09T08:16:53 | 2024-08-16T19:43:07 | javascript-obfuscator | javascript-obfuscator/javascript-obfuscator | 13,358 | 2,173 |
```xml
import { nextTestSetup } from 'e2e-utils'
import { check } from 'next-test-utils'
describe('app dir - search params keys', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should keep the React router instance the same when changing the search params', async () => {
const browser... | /content/code_sandbox/test/e2e/app-dir/search-params-react-key/layout-params.test.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 322 |
```xml
import Link from 'next/link'
import { Button } from '../button'
export default function Page() {
return (
<>
<div>
<Link href="/delayed-action/node/other">Navigate to Other Page</Link>
</div>
<div>
<Button />
</div>
</>
)
}
``` | /content/code_sandbox/test/e2e/app-dir/actions/app/delayed-action/node/page.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 71 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.5">
<LinearLayout
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:g... | /content/code_sandbox/app/src/main/res/layout/layout_player_control.xml | xml | 2016-01-14T13:38:47 | 2024-08-16T13:03:46 | APlayer | rRemix/APlayer | 1,308 | 603 |
```xml
import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import MnemonicsDialog from '../../../../components/wallet/wallet-create/MnemonicsDialog';
import type { InjectedDialogContainerStepProps } from '../../../../types/injectedPropsType';
import { InjectedDialogContainerStepDefa... | /content/code_sandbox/source/renderer/app/containers/wallet/dialogs/wallet-create/MnemonicsDialogContainer.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 213 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { typedndarray, genericndarray, float64... | /content/code_sandbox/lib/node_modules/@stdlib/ndarray/base/slice/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 5,680 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Iterator } from '@stdlib/types/iter';... | /content/code_sandbox/lib/node_modules/@stdlib/stats/iter/cusumabs2/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 275 |
```xml
// @needsAudit
/**
* The type of notification feedback generated by a UINotificationFeedbackGenerator object.
* [`UINotificationFeedbackType`](path_to_url
*/
export enum NotificationFeedbackType {
/**
* A notification feedback type indicating that a task has completed successfully.
*/
Success = 'suc... | /content/code_sandbox/packages/expo-haptics/src/Haptics.types.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 291 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.