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
export default function isString(value?: any): value is string {
return typeof value === 'string';
}
``` | /content/code_sandbox/src/utils/is-string.ts | xml | 2016-07-19T22:58:49 | 2024-07-02T18:53:16 | subscriptions-transport-ws | apollographql/subscriptions-transport-ws | 1,517 | 23 |
```xml
/*
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
import { existsInWindow } from '../utils/exists.js';
export class LogService {
static log(...args: any) {
if (notProductionEnvironment() && notTestingEnvir... | /content/code_sandbox/packages/core/src/internal/services/log.service.ts | xml | 2016-09-29T17:24:17 | 2024-08-11T17:06:15 | clarity | vmware-archive/clarity | 6,431 | 179 |
```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>Author</key>
<string>brumas</string>
<key>CodecID</key>
<integer>33862</integer>
<key>CodecName</key>
<string>VT1802</string>
<key>Files</key>
<dict>
<key>Layouts... | /content/code_sandbox/Resources/VT1802/Info.plist | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 1,486 |
```xml
import { CommandName, Navigation, OptionsTopBarButton } from 'react-native-navigation';
Navigation.addOptionProcessor<OptionsTopBarButton>(
'topBar.rightButtons',
(rightButtons: OptionsTopBarButton[], commandName: CommandName): OptionsTopBarButton => {
return rightButtons.map((button) => ({
...but... | /content/code_sandbox/website/docs/docs/style-theme/option-processor-defaults.tsx | xml | 2016-03-11T11:22:54 | 2024-08-15T09:05:44 | react-native-navigation | wix/react-native-navigation | 13,021 | 90 |
```xml
import { SelectionSetNode, TypeNameMetaFieldDef } from 'graphql';
import { pathsFromSelectionSet } from './pathsFromSelectionSet.js';
import { MappingInstruction } from './types.js';
export function getSourcePaths(
mappingInstructions: Array<MappingInstruction>,
selectionSet?: SelectionSetNode,
): Array<Arr... | /content/code_sandbox/packages/stitching-directives/src/getSourcePaths.ts | xml | 2016-03-22T00:14:38 | 2024-08-16T02:02:06 | graphql-tools | ardatan/graphql-tools | 5,331 | 182 |
```xml
Version 2.0, January 2004
path_to_url
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definitio... | /content/code_sandbox/application/src/main/data/lwm2m-registry/3375.xml | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,359 |
```xml
import React, { type FC, useCallback, useState } from 'react';
import { useInterval } from 'react-use';
import { Button, type ButtonProps } from '../themed-button';
interface Props extends ButtonProps {
confirmMessage?: string;
content: string;
title?: string;
}
export const CopyButton: FC<Props> = ({
... | /content/code_sandbox/packages/insomnia/src/ui/components/base/copy-button.tsx | xml | 2016-04-23T03:54:26 | 2024-08-16T16:50:44 | insomnia | Kong/insomnia | 34,054 | 268 |
```xml
import React, { Component, CSSProperties } from 'react';
import { localized, Account } from 'mailspring-exports';
import { RetinaImg, Flexbox, EditableList } from 'mailspring-component-kit';
import classnames from 'classnames';
import PropTypes from 'prop-types';
interface PreferencesAccountListProps {
accoun... | /content/code_sandbox/app/internal_packages/preferences/lib/tabs/preferences-account-list.tsx | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 732 |
```xml
import { foldTo } from 'fractal-objects';
import ClientModule, { ClientModuleShape } from '@gqlapp/module-client-angular';
export interface CounterModuleShape extends ClientModuleShape {
counterModule?: any[];
}
class CounterModule extends ClientModule {
constructor(...modules: CounterModuleShape[]) {
... | /content/code_sandbox/modules/counter/client-angular/CounterModule.ts | xml | 2016-09-08T16:44:45 | 2024-08-16T06:17:16 | apollo-universal-starter-kit | sysgears/apollo-universal-starter-kit | 1,684 | 85 |
```xml
import _ from "lodash";
import {
ValidationPlugin,
ValidationPluginConfig,
ValidationPluginConstructor,
ValidationPluginInterface,
} from "../models/ValidatorInterface";
const isPromise = (obj) =>
!!obj &&
typeof obj.then === "function" &&
(typeof obj === "object" || typeof obj === "function");
/... | /content/code_sandbox/src/validators/SVK.ts | xml | 2016-06-20T22:10:41 | 2024-08-10T13:14:33 | mobx-react-form | foxhound87/mobx-react-form | 1,093 | 829 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document xmlns:xsi="path_to_url"
xsi:noNamespaceSchemaLocation="competition-entry-region-model.xsd" filename='bm_eu-006-reg.xml'>
<table id='1'>
<region id='1' page='1'>
<instruction instr-id='14'/>
<instruction instr-id='14' subinstr-id='2'/>
... | /content/code_sandbox/tests/files/tabula/icdar2013-dataset/competition-dataset-eu/eu-006-reg.xml | xml | 2016-06-18T11:48:49 | 2024-08-15T18:32:02 | camelot | atlanhq/camelot | 3,628 | 3,912 |
```xml
import type { BytesLike } from "./data.js";
export declare function decodeBase64(textData: string): Uint8Array;
export declare function encodeBase64(_data: BytesLike): string;
//# sourceMappingURL=base64-browser.d.ts.map
``` | /content/code_sandbox/lib.commonjs/utils/base64-browser.d.ts | xml | 2016-07-16T04:35:37 | 2024-08-16T13:37:46 | ethers.js | ethers-io/ethers.js | 7,843 | 50 |
```xml
import type { ButtonHTMLAttributes, DetailedHTMLProps, Ref } from 'react';
import { forwardRef } from 'react';
import { c } from 'ttag';
import { NotificationDot } from '@proton/atoms';
import type { ThemeColor } from '@proton/colors';
import { getInitials } from '@proton/shared/lib/helpers/string';
import typ... | /content/code_sandbox/packages/components/containers/heading/UserDropdownButton.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 633 |
```xml
import { Autolinker, AutolinkerConfig } from 'autolinker';
/**
* @internal
*/
const AUTOLINKER_CFGS: AutolinkerConfig = {
urls: {
schemeMatches: true,
tldMatches: true
},
email: true,
phone: true,
mention: 'twitter',
hashtag: 'twitter',
stripPrefix: false,
stripTrailingSlash: false,
newWindow: tr... | /content/code_sandbox/openvidu-components-angular/projects/openvidu-components-angular/src/lib/models/linkifier.model.ts | xml | 2016-10-10T13:31:27 | 2024-08-15T12:14:04 | openvidu | OpenVidu/openvidu | 1,859 | 191 |
```xml
'use strict';
import { assert, expect } from 'chai';
import * as TypeMoq from 'typemoq';
import { Memento } from 'vscode';
import { ICommandManager } from '../../client/common/application/types';
import { Commands } from '../../client/common/constants';
import {
GLOBAL_PERSISTENT_KEYS_DEPRECATED,
KeysS... | /content/code_sandbox/src/test/common/persistentState.unit.test.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 1,596 |
```xml
import { SVGProps, useMemo } from 'react'
import { useTransition } from '@react-spring/web'
import { useTheme, useMotionConfig } from '@nivo/core'
import { AnyScale, getScaleTicks } from '@nivo/scales'
import { ArcLine } from '@nivo/arcs'
interface CircularGridProps {
scale: AnyScale
startAngle: number
... | /content/code_sandbox/packages/polar-axes/src/CircularGrid.tsx | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 529 |
```xml
import * as React from 'react';
import { Badge } from '@fluentui/react-components';
export const Color = () => {
return (
<>
<Badge appearance="filled" color="brand">
999+
</Badge>
<Badge appearance="filled" color="danger">
999+
</Badge>
<Badge appearance="fi... | /content/code_sandbox/packages/react-components/react-badge/stories/src/Badge/BadgeColor.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 305 |
```xml
import { createStoreContext } from '../../utils/context'
import { usePage } from '../../../../cloud/lib/stores/pageStore'
import { SerializedTeamIntegration } from '../../../../cloud/interfaces/db/connections'
import { useState, useRef, useCallback, useEffect } from 'react'
import { useToast } from '../toast'
im... | /content/code_sandbox/src/design/lib/stores/integrations/index.ts | xml | 2016-11-19T14:30:34 | 2024-08-16T03:13:45 | BoostNote-App | BoostIO/BoostNote-App | 3,745 | 728 |
```xml
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import { Grid, AutoSizer, Index } from 'react-virtualized'
import { shallowEquals, structuralEquals } from '../../../lib/equality'
import { FocusContainer } from '../../lib/focus-container'
import { ListRow } from './list-row'
import {
findNe... | /content/code_sandbox/app/src/ui/lib/list/section-list.tsx | xml | 2016-05-11T15:59:00 | 2024-08-16T17:00:41 | desktop | desktop/desktop | 19,544 | 12,715 |
```xml
<vector xmlns:android="path_to_url"
android:width="108dp"
android:height="108dp"
android:viewportWidth="45.28302"
android:viewportHeight="45.28302"
android:tint="#FFFFFF">
<group android:translateX="10.641509"
android:translateY="10.641509">
<path android:fillColor="#FF000000" a... | /content/code_sandbox/java-sample/src/main/res/drawable-v24/ic_launcher_foreground.xml | xml | 2016-11-29T06:15:08 | 2024-08-16T11:21:28 | Android-BLE | aicareles/Android-BLE | 2,623 | 242 |
```xml
import type { TreeNode } from "~/types/tree";
const splatRoutes: TreeNode = {
name: "routes",
type: "f",
path: "",
children: [{ name: "files.$.tsx", type: "r", path: "/files", children: [] }],
};
export default splatRoutes;
``` | /content/code_sandbox/packages/remix/test/fixtures-vite/02-interactive-remix-routing-v2/app/data/routes/splatRoutes/splatRoutes.tsx | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 67 |
```xml
import { hooks } from 'botframework-webchat-component';
import React, { memo } from 'react';
import cx from 'classnames';
import styles from './Attachments.module.css';
import { useStyles } from '../../styles';
const { useLocalizer } = hooks;
const attachmentsPluralStringIds = {
one: 'TEXT_INPUT_ATTACHMENTS_... | /content/code_sandbox/packages/fluent-theme/src/components/sendBox/Attachments.tsx | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 236 |
```xml
import "reflect-metadata"
import {
closeTestingConnections,
createTestingConnections,
reloadTestingDatabases,
} from "../../utils/test-utils"
import { DataSource } from "../../../src/data-source/DataSource"
import { Post } from "./entity/Post"
describe("github issues > #5734 insert([]) should not cr... | /content/code_sandbox/test/github-issues/5734/issue-5734.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 273 |
```xml
/* eslint-disable @typescript-eslint/no-var-requires */
/**
* Webpack coverage configuration
*/
const baseProfile = require("../profile.base");
const testBaseProfile = require("../profile.base.test");
import * as Path from "path";
function coverageOptions() {
const coverageProfile = {
partials: {
... | /content/code_sandbox/packages/xarc-webpack/src/options/coverage.ts | xml | 2016-09-06T19:02:39 | 2024-08-11T11:43:11 | electrode | electrode-io/electrode | 2,103 | 188 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
android:id="@+id/activity_play"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000">
<com.example.gsyvideoplayer.video.EmptyControlVideo
android:id="@+... | /content/code_sandbox/app/src/main/res/layout/activity_play_empty_control.xml | xml | 2016-11-13T12:34:31 | 2024-08-16T15:39:12 | GSYVideoPlayer | CarGuo/GSYVideoPlayer | 19,994 | 114 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @fb-only
/* eslint-disable @typescript-eslint/no-explicit-any */
// This file contains imports only used by non-OSS internal builds of ISL
// This should be the only file... | /content/code_sandbox/addons/isl-server/src/Internal.ts | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 159 |
```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.
-->
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_t... | /content/code_sandbox/courses/developingapps/v1.2/java/datastore/start/pom.xml | xml | 2016-04-17T21:39:27 | 2024-08-16T17:22:27 | training-data-analyst | GoogleCloudPlatform/training-data-analyst | 7,726 | 1,259 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="path_to_url"
android:width="30dp"
android:height="30dp"
android:viewportWidth="30"
android:viewportHeight="30">
<path
android:fillColor="#000000"
android:pathData="M1.49,16.88c0,1.12,0.33,2.12,1,3s1.53,1.47,2.58,1.... | /content/code_sandbox/Android/app/src/main/res/drawable/wi_day_storm_showers.xml | xml | 2016-01-30T13:42:30 | 2024-08-12T19:21:10 | Travel-Mate | project-travel-mate/Travel-Mate | 1,292 | 3,183 |
```xml
import { Post } from "../entity/Post"
import {
EntitySubscriberInterface,
EventSubscriber,
InsertEvent,
} from "../../../../src"
/**
* Subscriber which checks the validity of the entity passed to beforeInsert().
* Tests the fix for issue #5734 in which we saw an empty array leak into
* beforeInse... | /content/code_sandbox/test/github-issues/5734/subscriber/CheckValidEntitySubscriber.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 155 |
```xml
import { afterEach, describe, expect, it, vi } from "vitest";
import { NodeJsCommandlineUtility } from "./NodeJsCommandlineUtility";
const execMock = vi.fn();
let error: Error | null = null;
let stdout: string = "output";
let stderr: string | undefined = undefined;
vi.mock("child_process", async (importOrigin... | /content/code_sandbox/src/main/Core/CommandlineUtility/NodeJsCommandlineUtility.test.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 623 |
```xml
import type { Address as AddressInterface } from '../interfaces';
import type { CalendarMember as MemberInterface } from '../interfaces/calendar';
export const getMemberAndAddress = (
Addresses: AddressInterface[] = [],
Members: MemberInterface[] = [],
Author = ''
): [MemberInterface, AddressInterfa... | /content/code_sandbox/packages/shared/lib/calendar/members.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 248 |
```xml
import { describe, expect, it } from 'vitest';
import { tmpdir } from 'os';
import { join } from 'path';
import { writeFile, readdir, mkdirp, stat, remove, readFile } from 'fs-extra';
import { merge } from '../../../../src/util/build/merge';
import { isErrnoException } from '@vercel/error-utils';
describe('merg... | /content/code_sandbox/packages/cli/test/unit/util/build/merge.test.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 640 |
```xml
// See LICENSE.txt for license information.
import {Image} from 'expo-image';
import React from 'react';
import {StyleSheet, View} from 'react-native';
import {buildAbsoluteUrl} from '@actions/remote/file';
import {buildProfileImageUrlFromUser} from '@actions/remote/user';
import {useServerUrl} from '@app/cont... | /content/code_sandbox/app/screens/gallery/footer/avatar/index.tsx | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 384 |
```xml
/*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/src/templates/assets/javascripts/templates/index.ts | xml | 2016-01-28T22:09:23 | 2024-08-16T17:55:06 | mkdocs-material | squidfunk/mkdocs-material | 19,629 | 274 |
```xml
import jsonata from 'jsonata';
import type {
DefaultRuleGroupType,
Field,
FormatQueryOptions,
RuleGroupType,
RuleProcessor,
} from '../../types';
import type { TestSQLParams } from './dbqueryTestUtils';
import { dbTests, superUsers } from './dbqueryTestUtils';
import { formatQuery } from './formatQuery... | /content/code_sandbox/packages/react-querybuilder/src/utils/formatQuery/dbquery.jsonata.test.ts | xml | 2016-06-17T22:03:19 | 2024-08-16T10:28:42 | react-querybuilder | react-querybuilder/react-querybuilder | 1,131 | 732 |
```xml
import { Accessibility, AccessibilityAttributes } from '../../types';
/**
* @description
* Image is usually only visual representation and therefore is hidden from screen readers, unless 'alt' property is provided.
*
* @specification
* Adds attribute 'aria-hidden=true', if there is no 'alt' property provid... | /content/code_sandbox/packages/fluentui/accessibility/src/behaviors/Image/imageBehavior.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 141 |
```xml
import { c } from 'ttag';
import { Banner } from '@proton/components';
import { BannerBackgroundColor } from '@proton/components/components/banner/Banner';
import EventReminderText from './EventReminderText';
interface Props {
isAllDay: boolean;
startDate: Date;
endDate: Date;
isOutdated?: boo... | /content/code_sandbox/applications/mail/src/app/components/message/extras/calendar/EventReminderBanner.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 244 |
```xml
import { gql } from '@apollo/client';
import { Alert } from '@erxes/ui/src/utils';
import { Spinner } from '@erxes/ui/src/components';
import React from 'react';
import { mutations, queries } from '../graphql';
import { ConfigsQueryResponse, IConfigsMap } from '../types';
import { useQuery, useMutation } from '@... | /content/code_sandbox/packages/plugin-multierkhet-ui/src/containers/Settings.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 330 |
```xml
import { Counts } from '@erxes/ui/src/types';
import { gql } from '@apollo/client';
import React from 'react';
import ClientPortalIdFilter from '../components/list/ClientPortalIdFilter';
import { queries } from '../graphql';
import { ClientPortalConfigsQueryResponse } from '../types';
import { useQuery } from '... | /content/code_sandbox/packages/plugin-clientportal-ui/src/containers/ClientPortalIdFilter.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 267 |
```xml
/*! *****************************************************************************
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
ME... | /content/code_sandbox/sdk/nodejs/vendor/typescript@3.8.3/lib.es2019.string.d.ts | xml | 2016-10-31T21:02:47 | 2024-08-16T19:47:04 | pulumi | pulumi/pulumi | 20,743 | 168 |
```xml
import React from 'react'
import InputButton from './InputButton'
import {MdFunctions, MdInsertChart} from 'react-icons/md'
import {mdiFunctionVariant} from '@mdi/js';
import { WithTranslation, withTranslation } from 'react-i18next';
type FunctionInputButtonsInternalProps = {
fieldSpec?: any
onZoomClick?(.... | /content/code_sandbox/src/components/_FunctionButtons.tsx | xml | 2016-09-08T17:52:22 | 2024-08-16T12:54:23 | maputnik | maplibre/maputnik | 2,046 | 461 |
```xml
import type { DocumentNode } from "../../core/index.js";
import { getOperationDefinition } from "./getFromAST.js";
function isOperation(
document: DocumentNode,
operation: "query" | "mutation" | "subscription"
) {
return getOperationDefinition(document)?.operation === operation;
}
export function isMutat... | /content/code_sandbox/src/utilities/graphql/operations.ts | xml | 2016-02-26T20:25:00 | 2024-08-16T10:56:57 | apollo-client | apollographql/apollo-client | 19,304 | 127 |
```xml
import moment from 'moment';
export const getMetricSparklineKey = (metricName) => {
switch (metricName) {
case 'load':
return 'load';
case 'num_queries':
return 'num_queries_per_sec';
case 'num_queries_with_warnings':
return 'num_queries_with_warnings_per_sec';
case 'num_quer... | /content/code_sandbox/pmm-app/src/shared/components/Elements/Charts/Sparkline/Sparkline.tools.ts | xml | 2016-01-22T07:14:23 | 2024-08-13T13:01:59 | grafana-dashboards | percona/grafana-dashboards | 2,661 | 278 |
```xml
import { line, curveMonotoneX, curveMonotoneY } from 'd3-shape'
import { DefaultLink, DefaultNode, SankeyLinkDatum } from './types'
export const sankeyLinkHorizontal = <N extends DefaultNode, L extends DefaultLink>() => {
const lineGenerator = line().curve(curveMonotoneX)
return (link: SankeyLinkDatum<... | /content/code_sandbox/packages/sankey/src/links.ts | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 591 |
```xml
import type { SettingsManager } from "@Core/SettingsManager";
import type { OperatingSystem } from "@common/Core";
import type { App, BrowserWindow, Rectangle, Size } from "electron";
import { describe, expect, it, vi } from "vitest";
import { BrowserWindowToggler } from "./BrowserWindowToggler";
describe(Brows... | /content/code_sandbox/src/main/Core/BrowserWindow/BrowserWindowToggler.test.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 1,807 |
```xml
export { findElementRecursive } from '@fluentui/dom-utilities';
``` | /content/code_sandbox/packages/utilities/src/dom/findElementRecursive.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 16 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="zh-Hans" original="../Localiza... | /content/code_sandbox/src/Microsoft.TemplateEngine.Edge/xlf/LocalizableStrings.zh-Hans.xlf | xml | 2016-06-28T20:54:16 | 2024-08-16T14:39:38 | templating | dotnet/templating | 1,598 | 6,694 |
```xml
import { GraphQLNonNull, GraphQLObjectType } from 'graphql/type'
import { AuxillaryObjectTypeGenerator } from '../../../generator'
import { TypeIdentifiers } from 'prisma-datamodel'
export default class BatchPayloadGenerator extends AuxillaryObjectTypeGenerator {
public getTypeName(input: null, args: {}) {
... | /content/code_sandbox/cli/packages/prisma-generate-schema/src/generator/default/mutation/updateMany/batchPayloadGenerator.ts | xml | 2016-09-25T12:54:40 | 2024-08-16T11:41:23 | prisma1 | prisma/prisma1 | 16,549 | 153 |
```xml
import { treeItemAsListItemBehavior } from '@fluentui/accessibility';
describe('TreeItemAsListItemBehavior', () => {
describe('role', () => {
test(`is 'listitem' if not a leaf`, () => {
const expectedResult = treeItemAsListItemBehavior({ hasSubtree: true });
expect(expectedResult.attributes.ro... | /content/code_sandbox/packages/fluentui/accessibility/test/behaviors/treeItemAsListItemBehavior-test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 130 |
```xml
import { nextTestSetup } from 'e2e-utils'
describe('parallel-routes-catchall-default', () => {
const { next } = nextTestSetup({
files: __dirname,
})
it('should match default paths before catch-all', async () => {
let browser = await next.browser('/en/nested')
// we have a top-level catch-all... | /content/code_sandbox/test/e2e/app-dir/parallel-routes-catchall-default/parallel-routes-catchall-default.test.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 433 |
```xml
<dict>
<key>LayoutID</key>
<integer>63</integer>
<key>PathMapRef</key>
<array>
<dict>
<key>CodecID</key>
<array>
<integer>283904133</integer>
</array>
<key>ExtMic</key>
<dict>
<key>HeadsetMic_dBV</key>
<integer>3214514586</integer>
<key>MuteGPIO</key>
<integer>262144</int... | /content/code_sandbox/Resources/ALC885/layout63.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 21,388 |
```xml
// See LICENSE in the project root for license information.
import { DllPlugin, type Compiler, WebpackError, type Chunk, type NormalModule } from 'webpack';
import path from 'path';
import { Async, FileSystem, LegacyAdapters, Path } from '@rushstack/node-core-library';
const PLUGIN_NAME: 'DeepImportsPlugin' = ... | /content/code_sandbox/webpack/webpack-deep-imports-plugin/src/DeepImportsPlugin.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 2,084 |
```xml
import isEmpty from "lodash/isEmpty";
import z from "zod";
import { FileOperationType } from "@shared/types";
import { FileOperation } from "@server/models";
import { BaseSchema } from "../schema";
const CollectionsSortParamsSchema = z.object({
/** The attribute to sort by */
sort: z
.string()
.refi... | /content/code_sandbox/server/routes/api/fileOperations/schema.ts | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 431 |
```xml
import ora from 'ora'
import { http } from '../core'
export interface Result {
name: string
owner: string
fullname: string
description: string
updated: string
}
/**
* Fetch remote template list
* @param owner template owner name
*/
export default async (owner: string): Promise<Result[]> => {
con... | /content/code_sandbox/src/list/fetch.ts | xml | 2016-09-23T19:24:33 | 2024-08-09T05:04:06 | caz | zce/caz | 2,452 | 165 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="forkJoinNoWaitStates">
<startEvent id="theStart" />
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="fork" />
<par... | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/gateway/ParallelGatewayTest.testSplitMergeNoWaitstates.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 209 |
```xml
declare interface IListViewerStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
DescriptionFieldLabel: string;
}
declare module 'listViewerStrings' {
const strings: IListViewerStrings;
export = strings;
}
``` | /content/code_sandbox/samples/riot-list/src/webparts/listViewer/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 | 52 |
```xml
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { DebugElement } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { TestMaskComponent } from './utils/test-component.component';
import { eq... | /content/code_sandbox/projects/ngx-mask-lib/src/test/separator.spec.ts | xml | 2016-09-23T20:44:28 | 2024-08-15T12:52:51 | ngx-mask | JsDaddy/ngx-mask | 1,150 | 14,839 |
```xml
import { Path } from 'slate'
export const input = {
path: [0, 1, 2],
another: [0, 1, 2],
}
export const test = ({ path, another }) => {
return Path.endsAt(path, another)
}
export const output = true
``` | /content/code_sandbox/packages/slate/test/interfaces/Path/endsAt/equal.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 67 |
```xml
// See LICENSE in the project root for license information.
import type * as child_process from 'child_process';
import process from 'process';
import { Executable } from './Executable';
/**
* Details about how the `child_process.ChildProcess` was created.
*
* @beta
*/
export interface ISubprocessOptions ... | /content/code_sandbox/libraries/node-core-library/src/SubprocessTerminator.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 1,971 |
```xml
/// <reference path="../../built/pxtlib.d.ts" />
/// <reference path="../../built/pxtsim.d.ts" />
import * as Blockly from "blockly";
import { FieldCustom } from "./field_utils";
const rowRegex = /^.*[\.#].*$/;
enum LabelMode {
None,
Number,
Letter
}
export class FieldMatrix extends Blockly.Field... | /content/code_sandbox/pxtblocks/fields/field_ledmatrix.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 3,079 |
```xml
import confirm from '@erxes/ui/src/utils/confirmation/confirm';
export default confirm;
``` | /content/code_sandbox/packages/core-ui/src/modules/common/utils/confirmation/confirm.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 19 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="path_to_url"
xmlns:xsi="path_to_url"
xmlns:dubbo="path_to_url"
xsi:schemaLocation="path_to_url
path_to_url
path_to_url
path_to_url">
<!-- -->
<dubbo:application name="goshop-web-managet" />
<!-- redis-->... | /content/code_sandbox/goshop-web-portal/src/main/resources/dubbo/dubbo-consumer.xml | xml | 2016-06-18T10:16:23 | 2024-08-01T09:11:36 | goshop2 | pzhgugu/goshop2 | 1,106 | 242 |
```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 PATH_DELIMITER = require( './index' );
// TESTS //
// The variable is a string...
{
// eslint-disable-n... | /content/code_sandbox/lib/node_modules/@stdlib/constants/path/delimiter/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 99 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="path_to_url" xmlns:xsi="path_to_url" xmlns:flowable="path_to_url" xmlns:cmmndi="path_to_url" xmlns:dc="path_to_url" xmlns:di="path_to_url" xmlns:design="path_to_url" targetNamespace="path_to_url">
<case id="testCase" flowable:initiatorVariableName="ini... | /content/code_sandbox/modules/flowable-cmmn-engine/src/test/resources/org/flowable/cmmn/test/migration/event-registry-listener-repetition.cmmn.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 276 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const CompareIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1603 256l214 640h103v128h-22q-20 57-56 104t-84 81-104 ... | /content/code_sandbox/packages/react-icons-mdl2/src/components/CompareIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 385 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="path_to_url"
android:color="@color/light_ripple"/>
``` | /content/code_sandbox/app/src/main/res/drawable-v21/ripple_light_borderless.xml | xml | 2016-07-08T03:18:40 | 2024-08-14T02:54:51 | talon-for-twitter-android | klinker24/talon-for-twitter-android | 1,189 | 36 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<language name="LLVM" section="Sources"
version="4" kateversion="5.0"
extensions="*.ll"
mimetype=""
author="LLVM Team"
<highlighting>
<list name="keywords">
<item>begin</item>
... | /content/code_sandbox/syntax/llvm.xml | xml | 2016-08-19T16:25:54 | 2024-08-11T08:59:44 | matterhorn | matterhorn-chat/matterhorn | 1,027 | 2,278 |
```xml
<UserControl
x:Class="IntelligentKioskSample.Controls.AgeGenderDistributionControl"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="using:IntelligentKioskSample.Controls"
xmlns:d="path_to_url"
xmlns:mc="path_to_url"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="3... | /content/code_sandbox/Kiosk/Controls/AgeGenderDistributionControl.xaml | xml | 2016-06-09T17:19:24 | 2024-07-17T02:43:08 | Cognitive-Samples-IntelligentKiosk | microsoft/Cognitive-Samples-IntelligentKiosk | 1,049 | 1,125 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import type {DiffId, DiffSummary, Hash, PageVisibility, RepoInfo, Result} from '../types';
import type {UICodeReviewProvider} from './UICodeReviewProvider';
import serverAPI ... | /content/code_sandbox/addons/isl/src/codeReview/CodeReviewInfo.ts | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 1,610 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="com.atollic.hardwaredebug.launch.launchConfigurationType">
<stringAttribute key="com.atollic.hardwaredebug.launch.analyzeCommands" value="# Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers ... | /content/code_sandbox/libs/STM32_USB-FS-Device_Lib_V4.0.0/Projects/Composite_Example/TrueSTUDIO/STM3210E-EVAL/STM3210E-EVAL.elf.launch | xml | 2016-08-10T15:31:26 | 2024-08-16T13:06:40 | Avem | avem-labs/Avem | 1,930 | 1,406 |
```xml
import { WebApplication } from '@/Application/WebApplication'
import Button from '@/Components/Button/Button'
import { ContentType, isSystemView, SmartView } from '@standardnotes/snjs'
import { observer } from 'mobx-react-lite'
import { useCallback, useEffect, useMemo, useState } from 'react'
import { Title } fr... | /content/code_sandbox/packages/web/src/javascripts/Components/Preferences/Panes/General/SmartViews/SmartViews.tsx | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 824 |
```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 stdev = require( './index' );
// TESTS //
// The function returns a number...
{
stdev( 0, 2 ); // $Expe... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/cosine/stdev/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 380 |
```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 entropy = require( './index' );
// TESTS //
// The function returns a number...
{
entropy( 0, 4, 2 ); /... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/triangular/entropy/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 473 |
```xml
import { PromptObject } from 'prompts';
export declare function getSlugPrompt(customTargetPath?: string | null): PromptObject<string>;
export declare function getLocalFolderNamePrompt(customTargetPath?: string | null): PromptObject<string>;
export declare function getSubstitutionDataPrompts(slug: string): Promis... | /content/code_sandbox/packages/create-expo-module/build/prompts.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 90 |
```xml
import Webhooks from './webhooks';
export {
Webhooks
}
``` | /content/code_sandbox/packages/plugin-webhooks-api/src/graphql/resolvers/queries/index.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 16 |
```xml
<!--
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~
~ path_to_url
~
~ Unless required by applicable law or agreed to in writing, software
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expre... | /content/code_sandbox/test/e2e/sql/src/test/resources/cases/rql/dataset/dbtbl_with_readwrite_splitting_and_encrypt/count_encrypt_rule.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 132 |
```xml
<clickhouse>
<remote_servers>
<cluster>
<shard>
<internal_replication>true</internal_replication>
<replica>
<host>ch1</host>
<port>9000</port>
</replica>
<replica>
<host>ch2</host>
<port>90... | /content/code_sandbox/tests/integration/test_alter_settings_on_cluster/configs/config.d/clusters.xml | xml | 2016-06-02T08:28:18 | 2024-08-16T18:39:33 | ClickHouse | ClickHouse/ClickHouse | 36,234 | 102 |
```xml
// See LICENSE in the project root for license information.
import * as sst from '@serverless-stack/resources';
export default class MyStack extends sst.Stack {
public constructor(scope: sst.App, id: string, props?: sst.StackProps) {
super(scope, id, props);
// Create a HTTP API
const api = new ... | /content/code_sandbox/build-tests-samples/heft-serverless-stack-tutorial/src/stacks/MyStack.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 129 |
```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 resolve = require( './index' );
// TESTS //
// The function returns a number or null...
{
resolve( 0 );... | /content/code_sandbox/lib/node_modules/@stdlib/blas/base/diagonal-type-resolve-enum/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 102 |
```xml
export type KeyboardAction = 'addSegment' | 'togglePlayResetSpeed' | 'togglePlayNoResetSpeed' | 'reducePlaybackRate' | 'reducePlaybackRateMore' | 'increasePlaybackRate' | 'increasePlaybackRateMore' | 'timelineToggleComfortZoom' | 'seekPreviousFrame' | 'seekNextFrame' | 'captureSnapshot' | 'setCutStart' | 'setCut... | /content/code_sandbox/types.ts | xml | 2016-10-30T10:49:56 | 2024-08-16T19:12:59 | lossless-cut | mifi/lossless-cut | 25,459 | 1,730 |
```xml
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../../..'
export const input = (
<editor>
<block>
one<inline>two</inline>three
</block>
</editor>
)
export const test = editor => {
const inline = editor.children[0].children[1]
return Editor.hasTexts(editor, inline)
}
exp... | /content/code_sandbox/packages/slate/test/interfaces/Editor/hasTexts/inline.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 93 |
```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
/**
* Frechet Distribution.
*/
declare class Frechet {
/**
* Frchet distribution con... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/frechet/ctor/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 806 |
```xml
import { initializeApp } from 'firebase/app';
import { MessagePayload, deleteToken, getMessaging, getToken, onMessage } from 'firebase/messaging';
import { firebaseConfig, vapidKey } from './config';
initializeApp(firebaseConfig);
const messaging = getMessaging();
// IDs of divs that display registration toke... | /content/code_sandbox/messaging/main.ts | xml | 2016-04-26T17:13:48 | 2024-08-16T13:54:58 | quickstart-js | firebase/quickstart-js | 5,069 | 1,093 |
```xml
import {
IIntegration,
IntegrationMutationVariables
} from '@erxes/ui-inbox/src/settings/integrations/types';
import { Count } from '@erxes/ui/src/styles/main';
import { EMPTY_CONTENT_MESSENGER } from '@erxes/ui-settings/src/constants';
import EmptyContent from '@erxes/ui/src/components/empty/EmptyContent';... | /content/code_sandbox/packages/ui-inbox/src/settings/integrations/components/common/IntegrationList.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 736 |
```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 setNonEnumerableWriteOnlyAccessor = require( './index' );
// TESTS //
// The function returns `undefined... | /content/code_sandbox/lib/node_modules/@stdlib/utils/define-nonenumerable-write-only-accessor/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 610 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder.AppleTV.Storyboard" version="3.0" toolsVersion="11762" systemVersion="16A313a" targetRuntime="AppleTV" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="pe4-zE-cy7"... | /content/code_sandbox/TvOSExamples/Basic.storyboard | xml | 2016-11-24T18:49:37 | 2024-08-16T11:42:27 | Hero | HeroTransitions/Hero | 21,990 | 3,339 |
```xml
// See LICENSE.txt for license information.
// See LICENSE.txt for license information.
import {Image} from 'expo-image';
import React, {useMemo} from 'react';
import {StyleSheet, View} from 'react-native';
import Animated from 'react-native-reanimated';
import ProfilePicture from '@components/profile_picture... | /content/code_sandbox/app/screens/user_profile/title/avatar.tsx | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 351 |
```xml
namespace BitBlazorUI {
class BitController {
id: string = BitBlazorUI.Utils.uuidv4();
controller = new AbortController();
dotnetObj: DotNetObject | undefined;
}
export class ColorPicker {
private static _bitControllers: BitController[] = [];
public static re... | /content/code_sandbox/src/BlazorUI/Bit.BlazorUI/Components/Inputs/_Pickers/ColorPicker/BitColorPicker.ts | xml | 2016-10-19T14:23:48 | 2024-08-16T11:34:32 | bitplatform | bitfoundation/bitplatform | 1,051 | 271 |
```xml
import { join } from 'node:path';
import { typescript } from '../../../../scripts/prepare/tools';
export function getTSDiagnostics(
program: typescript.Program,
cwd: string,
host: typescript.CompilerHost
): any {
return typescript.formatDiagnosticsWithColorAndContext(
typescript.getPreEmitDiagnosti... | /content/code_sandbox/code/core/scripts/helpers/typescript.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 321 |
```xml
import {
CallButtons,
ErxesAvatar,
ErxesDate,
ErxesFromCustomer,
ErxesMessage,
ErxesMessageSender,
ErxesMessagesList,
ErxesSpacialMessage,
FromCustomer,
SkillWrapper,
VideoCallRequestWrapper
} from './styles';
import {
IMessagesItem,
ISkillData
} from '@erxes/ui-inbox/src/settings/integ... | /content/code_sandbox/packages/plugin-inbox-ui/src/settings/integrations/components/messenger/widgetPreview/WidgetContent.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 877 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="path_to_url">
<item android:state_checked="true" android:drawable="@drawable/edit_bg_adjust_saturation_press" />
<item android:state_pressed="true" android:drawable="@drawable/edit_bg_adjust_saturation_press" />
<item android:drawable=... | /content/code_sandbox/Project-AndroidStudio/app/src/main/res/drawable/selector_image_edit_adjust_saturation.xml | xml | 2016-01-08T11:36:56 | 2024-08-14T09:40:48 | MagicCamera | wuhaoyu1990/MagicCamera | 5,419 | 91 |
```xml
import * as vscode from "vscode";
import * as nls from "vscode-nls";
import { AppLauncher } from "../../appLauncher";
import {
IAndroidRunOptions,
IIOSRunOptions,
ImacOSRunOptions,
IWindowsRunOptions,
PlatformType,
} from "../../launchArgs";
import { OutputChannelLogger } from "../../log/Out... | /content/code_sandbox/src/extension/commands/util/index.ts | xml | 2016-01-20T21:10:07 | 2024-08-16T15:29:52 | vscode-react-native | microsoft/vscode-react-native | 2,617 | 845 |
```xml
import React, { Component } from 'react';
// @ts-ignore ts-migrate(2305) FIXME: Module '"react"' has no exported member 'Node'.
import type { Node } from 'react';
import { Provider, observer } from 'mobx-react';
import faker from '@faker-js/faker';
import { observable, computed, runInAction } from 'mobx';
import... | /content/code_sandbox/storybook/stories/_support/StoryProvider.tsx | xml | 2016-10-05T13:48:54 | 2024-08-13T22:03:19 | daedalus | input-output-hk/daedalus | 1,230 | 1,976 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="path_to_url" version="1.2" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
<file datatype="xml" source-language="en" target-language="pt-BR" original="../FSStrings.... | /content/code_sandbox/src/fcs-fable/src/Compiler/xlf/FSStrings.pt-BR.xlf | xml | 2016-01-11T10:10:13 | 2024-08-15T11:42:55 | Fable | fable-compiler/Fable | 2,874 | 22,053 |
```xml
// Use of this source code is governed by the license that can be found in the
// LICENSE file.
#include "nativeui/cursor.h"
#import <Cocoa/Cocoa.h>
#include "base/apple/scoped_nsobject.h"
@interface NSCursor(Undocumented)
+ (NSCursor*)busyButClickableCursor;
@end
namespace nu {
namespace {
NSCursor* Load... | /content/code_sandbox/nativeui/mac/cursor_mac.mm | xml | 2016-08-07T07:53:56 | 2024-08-16T06:07:30 | yue | yue/yue | 3,415 | 571 |
```xml
export interface PlatformRouterSettings {
appendChildrenRoutesFirst?: boolean;
}
declare global {
namespace TsED {
interface Configuration extends Record<string, any> {
router?: PlatformRouterSettings;
}
}
}
``` | /content/code_sandbox/packages/platform/common/src/config/interfaces/PlatformRouterSettings.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 46 |
```xml
/* your_sha256_hash----------------------------
* See 'LICENSE' in the project root for license information.
* your_sha256_hash-------------------------- */
'use strict';
import * as util from './util';
import * as vscode from 'vscode';
import TelemetryReporter from '@vscode/extension-telemetry';
import { get... | /content/code_sandbox/src/telemetry.ts | xml | 2016-04-16T21:00:29 | 2024-08-16T16:41:57 | vscode-cmake-tools | microsoft/vscode-cmake-tools | 1,450 | 945 |
```xml
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import { Message } from './message';
/**
* Message service used in messages and toast components.
* @group Service
*/
@Injectable()
export class MessageService {
private messageSource = new Subject<Message | Message[]>();
priv... | /content/code_sandbox/src/app/components/api/messageservice.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 261 |
```xml
import { Alert, confirm } from "@erxes/ui/src/utils";
import React, { useCallback, useEffect, useState } from "react";
import { gql, useMutation, useQuery } from "@apollo/client";
import { mutations, queries } from "../graphql";
import History from "../components/History";
import { IHistory } from "../types";
i... | /content/code_sandbox/packages/plugin-calls-ui/src/containers/History.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 827 |
```xml
import { IAttachment, IField, IOption, Label } from "../../types";
import { ControlLabel } from "../../common/form";
import FormControl from "../../common/form/Control";
import FormGroup from "../../common/form/Group";
import ModifiableList from "../../common/form/ModifiableList";
import React from "react";
imp... | /content/code_sandbox/client-portal/modules/card/components/GenerateField.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 2,261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.