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 { InjectionError } from '../src/errors.js';
import { expect } from 'chai';
describe(InjectionError.name, () => {
it('should format a correct message', () => {
const cause = new Error('expected cause');
function bar() {
// idle
}
expect(new InjectionError([class Foo {}, bar, 'baz']... | /content/code_sandbox/e2e/test/typescript-transpiling/test/errors.spec.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 269 |
```xml
// See LICENSE in the project root for license information.
import { FileSystem } from '../FileSystem';
import { PosixModeBits } from '../PosixModeBits';
// The PosixModeBits are intended to be used with bitwise operations.
/* eslint-disable no-bitwise */
test('PosixModeBits tests', () => {
let modeBits: nu... | /content/code_sandbox/libraries/node-core-library/src/test/FileSystem.test.ts | xml | 2016-09-30T00:28:20 | 2024-08-16T18:54:35 | rushstack | microsoft/rushstack | 5,790 | 222 |
```xml
import RangeSlider from './RangeSlider';
export type { RangeSliderProps } from './RangeSlider';
export default RangeSlider;
``` | /content/code_sandbox/src/RangeSlider/index.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 26 |
```xml
import { GeoView } from '../composition/geoView';
import { GeoPath } from '../composition/geoPath';
export function geolib() {
return {
'composition.geoView': GeoView,
'composition.geoPath': GeoPath,
} as const;
}
``` | /content/code_sandbox/src/lib/geo.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 58 |
```xml
<TS language="es" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Haz clic derecho para editar la direccin o etiqueta</translation>
</message>
<message>
<source>Create a new address</source>... | /content/code_sandbox/src/qt/locale/verge_es.ts | xml | 2016-01-23T04:20:14 | 2024-08-13T18:07:31 | verge | vergecurrency/verge | 1,402 | 43,145 |
```xml
<vector xmlns:android="path_to_url" android:width="24dp" android:height="24dp" android:viewportWidth="24" android:viewportHeight="24">
<path android:pathData="M16 10.53c-0.29-0.29-0.77-0.29-1.06 0l-4.35 4.35L9 13.29C8.71 13 8.23 13 7.94 13.29c-0.29 0.29-0.29 0.77 0 1.06l1.94 1.94c0.39 0.39 1.02 0.39 1.41 0l4... | /content/code_sandbox/app/src/main/res/drawable/ic_event_available_vector.xml | xml | 2016-01-26T21:02:54 | 2024-08-15T00:35:32 | Simple-Calendar | SimpleMobileTools/Simple-Calendar | 3,512 | 400 |
```xml
<controls:ContentPopup x:Class="Telegram.Views.Settings.Password.SettingsPasswordHintPopup"
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="using:Telegram.Views.Popups"
xmlns:controls="using:Telegram.Controls"
... | /content/code_sandbox/Telegram/Views/Settings/Password/SettingsPasswordHintPopup.xaml | xml | 2016-05-23T09:03:33 | 2024-08-16T16:17:48 | Unigram | UnigramDev/Unigram | 3,744 | 425 |
```xml
export type { ExtraResponseInit } from './middleware-helpers';
export * from './middleware-helpers';
export type { Geo } from './edge-headers';
export * from './edge-headers';
export * from './response';
export type { RequestContext } from './request';
import './published-types.d.ts';
``` | /content/code_sandbox/packages/edge/src/index.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 63 |
```xml
import { interfaces } from '@botpress/sdk'
export default interfaces.speechToText
``` | /content/code_sandbox/interfaces/speech-to-text/interface.definition.ts | xml | 2016-11-16T21:57:59 | 2024-08-16T18:45:35 | botpress | botpress/botpress | 12,401 | 19 |
```xml
describe('Pinia', () => {
beforeEach(() => {
cy.task('db:reset')
})
it('with current instance', () => {
cy.visit('/pinia')
cy.get('.channel-link').should('have.lengthOf', 2)
cy.contains('.channel-link', '# General')
cy.contains('.channel-link', '# Random')
})
it('with effect scope... | /content/code_sandbox/packages/test-e2e-composable-vue3/tests/e2e/specs/pinia.cy.ts | xml | 2016-09-18T18:44:06 | 2024-08-14T21:22:24 | apollo | vuejs/apollo | 6,009 | 265 |
```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 incrmme = require( './index' );
// TESTS //
// The function returns an accumulator function...
{
incrmm... | /content/code_sandbox/lib/node_modules/@stdlib/stats/incr/mme/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 570 |
```xml
import chance from 'chance';
import { client } from './client';
export function createDomain(k: string) {
return {
suffix: chance().bool(),
verified: chance().bool(),
nameservers: chance().string(),
intendedNameservers: chance().string(),
customNameservers: chance().string(),
creator: ... | /content/code_sandbox/packages/cli/test/mocks/domains.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 360 |
```xml
// @vitest-environment happy-dom
/// <reference types="@testing-library/jest-dom" />;
import { render, screen } from '@testing-library/vue';
import { describe, expect, it, vi } from 'vitest';
import { addons } from 'storybook/internal/preview-api';
import type { Meta } from '@storybook/vue3';
import { expectT... | /content/code_sandbox/code/renderers/vue3/src/__tests__/composeStories/portable-stories.test.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 1,220 |
```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/view_model/WarningsContainer/WarningsContainer.test.tsx | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 1,439 |
```xml
import React from 'react';
import { Table, Tooltip } from 'antd';
import { DtoStressRecord } from '../../common/interfaces/dto_stress_record';
import * as _ from 'lodash';
import { DtoRecord } from '../../common/interfaces/dto_record';
import './style/index.less';
import { StressRunResult, StressResFailedStatist... | /content/code_sandbox/client/src/modules/stress_test/stress_run_history_grid.tsx | xml | 2016-09-26T02:47:43 | 2024-07-24T09:32:20 | Hitchhiker | brookshi/Hitchhiker | 2,193 | 1,001 |
```xml
/*
*
* See the CONTRIBUTORS.txt file in the distribution for a
* full listing of individual contributors.
*
* This program is free software: you can redistribute it and/or modify
* published by the Free Software Foundation, either version 3 of the
*
* This program is distributed in the hope that it will ... | /content/code_sandbox/ui/app/manager/src/components/configuration/or-conf-realm/or-conf-realm-card.ts | xml | 2016-02-03T11:14:02 | 2024-08-16T12:45:50 | openremote | openremote/openremote | 1,184 | 3,223 |
```xml
import { FormFieldElement } from "../types";
import DomElementVisibilityService from "./dom-element-visibility.service";
function createBoundingClientRectMock(customProperties: Partial<any> = {}): DOMRectReadOnly {
return {
top: 0,
bottom: 0,
left: 0,
right: 0,
width: 500,
height: 500... | /content/code_sandbox/apps/browser/src/autofill/services/dom-element-visibility.service.spec.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 3,364 |
```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/E2EIdentity/OIDCService/OauthEncryptedStore.ts | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 462 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)-tvos</TargetFramework>
</PropertyGroup>
<!-- Imports of the form '../shared.csproj' will be processed by xharness -->
<Import Project="../shared.csp... | /content/code_sandbox/tests/bindings-framework-test/dotnet/tvOS/bindings-framework-test.csproj | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 172 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const DocumentReplyIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1792 1536q53 0 99 20t82 55 55 81 20 100q0 53-20 ... | /content/code_sandbox/packages/react-icons-mdl2/src/components/DocumentReplyIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 242 |
```xml
export * from './components/AriaLive/index';
``` | /content/code_sandbox/packages/react-components/react-toast/library/src/AriaLive.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 11 |
```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.
-->
<LinearLayout xmlns:android="path_to_url"
android:layout_width="matc... | /content/code_sandbox/app/src/main/res/layout/foot_view_shelf.xml | xml | 2016-08-03T05:17:27 | 2024-08-16T14:23:57 | BookReader | smuyyh/BookReader | 6,557 | 227 |
```xml
<dict>
<key>LayoutID</key>
<integer>36</integer>
<key>PathMapRef</key>
<array>
<dict>
<key>CodecID</key>
<array>
<integer>283902518</integer>
</array>
<key>Headphone</key>
<dict>
<key>DefaultVolume</key>
<integer>4292870144</integer>
<key>Headset_dBV</key>
<integer>323905... | /content/code_sandbox/Resources/ALC236/layout36.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 7,041 |
```xml
import React, { Component } from 'react';
import { ButtonDropdown, Menu } from 'mailspring-component-kit';
import PropTypes from 'prop-types';
type MultiselectDropdownProps = {
className?: string;
items: any[];
itemChecked?: (...args: any[]) => any;
onToggleItem?: (...args: any[]) => any;
itemKey?: (.... | /content/code_sandbox/app/src/components/multiselect-dropdown.tsx | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 601 |
```xml
import * as React from "react";
import * as sui from "./sui";
import * as data from "./data";
import { fireClickOnEnter } from "./util";
export interface ICarouselProps {
// Percentage of child width to bleed over either edge of the page
bleedPercent: number;
selectedIndex?: number;
tickId?: str... | /content/code_sandbox/webapp/src/carousel.tsx | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 3,013 |
```xml
<resources>
<declare-styleable name="ExTabLayout">
<attr name="tabTitleArray" format="string" />
<attr name="tabIcon1" format="reference" />
<attr name="tabIcon2" format="reference" />
<attr name="tabIcon3" format="reference" />
<attr name="tabIcon4" format="referenc... | /content/code_sandbox/app/src/main/res/values/attrs.xml | xml | 2016-08-08T13:25:41 | 2024-08-15T07:21:04 | H-Viewer | PureDark/H-Viewer | 1,738 | 436 |
```xml
import * as tanh from './tanh';
describe('tanh', () => {
describe('.active()', () => {
it('matches for value 1', () => {
expect(tanh.activate(1).toFixed(5)).toBe(Math.tanh(1).toFixed(5));
});
});
describe('.measure()', () => {
it('matches for value .7', () => {
expect(tanh.measure(... | /content/code_sandbox/src/activation/tanh.test.ts | xml | 2016-02-13T18:09:44 | 2024-08-15T20:41:49 | brain.js | BrainJS/brain.js | 14,300 | 117 |
```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/examples/shardingsphere-jdbc-example-generator/pom.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 667 |
```xml
import { MessageBase } from '../MessageBase';
import { InputDeviceSource } from '../../common/input/InputDeviceSource';
import { InputDeviceTarget } from '../../common/input/InputDeviceTarget';
import { InputDeviceApi } from '../../common/input/InputDeviceApi';
export const InputDeviceDetailsRequestType = 'Inpu... | /content/code_sandbox/@xoutput/api/src/websocket/input/InputDeviceDetailsRequest.ts | xml | 2016-11-22T21:13:16 | 2024-08-16T10:35:33 | XOutput | csutorasa/XOutput | 1,103 | 123 |
```xml
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import { format } from 'date-fns';
import * as Mock from 'mockjs';
// region: mock data
const visitData: any[] = [];
const ... | /content/code_sandbox/maxkey-web-frontend/maxkey-web-app/_mock/_chart.ts | xml | 2016-11-16T03:06:50 | 2024-08-16T09:22:42 | MaxKey | dromara/MaxKey | 1,423 | 1,215 |
```xml
import { CodedError } from 'expo-modules-core';
import { ActionCrop } from '../../ImageManipulator.types';
import { getContext } from '../utils.web';
export default (canvas: HTMLCanvasElement, options: ActionCrop['crop']) => {
// ensure values are defined.
let { originX = 0, originY = 0, width = 0, height ... | /content/code_sandbox/packages/expo-image-manipulator/src/web/actions/CropAction.web.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 310 |
```xml
import SwitchVisibility from '../../../../src/commands/view/SwitchVisibility';
describe('SwitchVisibility command', () => {
let fakeEditor: any;
let fakeFrames: any;
let fakeIsActive: any;
beforeEach(() => {
fakeFrames = [];
fakeIsActive = false;
fakeEditor = {
Canvas: {
getF... | /content/code_sandbox/test/specs/commands/view/SwitchVisibility.ts | xml | 2016-01-22T00:23:19 | 2024-08-16T11:20:59 | grapesjs | GrapesJS/grapesjs | 21,687 | 172 |
```xml
import React from 'react';
import {
ButtonToolbar,
Button,
Modal,
Toggle,
RadioGroup,
Radio,
Loader,
Placeholder
} from 'rsuite';
import DefaultPage from '@/components/Page';
import RemindIcon from '@rsuite/icons/legacy/Remind';
import ImportGuide from '@/components/ImportGuide';
const inDocsCom... | /content/code_sandbox/docs/pages/components/modal/index.tsx | xml | 2016-06-06T02:27:46 | 2024-08-16T16:41:54 | rsuite | rsuite/rsuite | 8,263 | 160 |
```xml
export { DefaultSyncService } from "./default-sync.service";
export { CoreSyncService } from "./core-sync.service";
``` | /content/code_sandbox/libs/common/src/platform/sync/internal.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 25 |
```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 scusumkbn2 = require( './index' );
// TESTS //
// The function returns a Float32Array...
{
const x = ne... | /content/code_sandbox/lib/node_modules/@stdlib/blas/ext/base/scusumkbn2/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 5,344 |
```xml
import { Alert, Link } from "@mui/material";
import React, { useEffect, useState } from "react";
import { getUsageStatsEnabled } from "../service/global";
export const UsageStatsAlert = () => {
const [usageStatsPromptEnabled, setUsageStatsPromptEnabled] = useState(false);
const [usageStatsEnabled, setUsageS... | /content/code_sandbox/python/ray/dashboard/client/src/common/UsageStatsAlert.tsx | xml | 2016-10-25T19:38:30 | 2024-08-16T19:46:34 | ray | ray-project/ray | 32,670 | 281 |
```xml
import { Operation } from 'slate'
export const input = {}
export const test = value => {
return Operation.isOperation(value)
}
export const output = false
``` | /content/code_sandbox/packages/slate/test/interfaces/Operation/isOperation/object.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 36 |
```xml
import { Alert, __, confirm } from "coreui/utils";
import {
ArchivePipelineMutationResponse,
CopiedPipelineMutationResponse,
IOption,
RemovePipelineMutationResponse,
UpdateOrderPipelineMutationResponse,
UpdateOrderPipelineMutationVariables
} from "../types";
import {
BoardDetailQueryResponse,
Pip... | /content/code_sandbox/packages/plugin-purchases-ui/src/settings/boards/containers/Pipelines.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,422 |
```xml
import { Value, Liquid, TagToken, Context, Emitter, Tag, TopLevelToken } from 'liquidjs'
const engine = new Liquid({
root: __dirname,
extname: '.liquid'
})
engine.registerTag('header', class HeaderTag extends Tag {
private value: Value
constructor (token: TagToken, remainTokens: TopLevelToken[], liquid... | /content/code_sandbox/demo/typescript/index.ts | xml | 2016-06-13T07:39:30 | 2024-08-16T16:56:50 | liquidjs | harttle/liquidjs | 1,485 | 192 |
```xml
import { testHover } from '../../../hoverHelper';
import { position, sameLineRange } from '../../../util';
import { getDocUri } from '../../path';
describe('Should do hover', () => {
const docUri = getDocUri('hover/Basic.vue');
it('shows hover for <img> tag', async () => {
await testHover(docUri, posit... | /content/code_sandbox/test/lsp/features/hover/basic.test.ts | xml | 2016-10-29T23:20:43 | 2024-08-16T03:59:58 | vetur | vuejs/vetur | 5,739 | 334 |
```xml
import T from 'i18n-react';
export const __ = (key: string, options?: any) => {
const translation = T.translate(key, options);
if (!translation) {
return '';
}
return translation.toString();
};
export const setLocale = (currentLanguage, callback) => {
import(`./locales/${currentLanguage}.json`)... | /content/code_sandbox/client-portal/utils/index.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 476 |
```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/test/it/parser/src/main/resources/sql/supported/ddl/drop-view.xml | xml | 2016-01-18T12:49:26 | 2024-08-16T15:48:11 | shardingsphere | apache/shardingsphere | 19,707 | 217 |
```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
/**
* Returns a list of English stop words.
*
* ## Notes
*
* - This function synchro... | /content/code_sandbox/lib/node_modules/@stdlib/datasets/stopwords-en/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 209 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:title="@string/pref_title__dock">
<SwitchPreference
android:defaultValue="true"
androi... | /content/code_sandbox/app/src/main/res/xml/preferences_dock.xml | xml | 2016-08-03T10:10:19 | 2024-08-16T09:40:47 | openlauncher | OpenLauncherTeam/openlauncher | 1,424 | 407 |
```xml
import * as React from 'react';
import { View } from 'react-native';
import Svg, {Rect} from 'react-native-svg';
export default function App() {
return (
<View style={{flex: 1}}>
<Svg width="100%" height="100%" viewBox="0 0 56 56" color="red">
<Rect width="20" height="20" rx="4" fill="cur... | /content/code_sandbox/apps/test-examples/src/Test2080.tsx | xml | 2016-01-17T14:29:21 | 2024-08-16T13:35:44 | react-native-svg | software-mansion/react-native-svg | 7,397 | 209 |
```xml
import { Text } from 'slate'
export const input = [
{
anchor: {
path: [0],
offset: 1,
},
focus: {
path: [0],
offset: 2,
},
decoration: 'decoration',
},
]
export const test = decorations => {
return Text.decorations({ text: 'abc', mark: 'mark' }, decorations)
}
e... | /content/code_sandbox/packages/slate/test/interfaces/Text/decorations/middle.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 151 |
```xml
/* eslint-env jest */
import fs from 'fs/promises';
import { execute, getLoadedModulesAsync, projectRoot } from './utils';
const originalForceColor = process.env.FORCE_COLOR;
const originalCI = process.env.CI;
beforeAll(async () => {
await fs.mkdir(projectRoot, { recursive: true });
process.env.FORCE_COLO... | /content/code_sandbox/packages/@expo/cli/e2e/__tests__/run-ios-test.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 245 |
```xml
/**
* @license
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at path_to_url
*/
import {
ComponentHarness,
ComponentHarnessConstructor,
HarnessPredicate,
} from '@angular/cdk/testing';
import {coerceBooleanProperty} from '@angular/cdk/coercion'... | /content/code_sandbox/src/material/slide-toggle/testing/slide-toggle-harness.ts | xml | 2016-01-04T18:50:02 | 2024-08-16T11:21:13 | components | angular/components | 24,263 | 1,081 |
```xml
<?xml version="1.0" encoding="utf-8"?>
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<resources>
<!-- Style to use for MaterialDivider in the theme. -->
<attr name="materialDi... | /content/code_sandbox/lib/java/com/google/android/material/divider/res/values/attrs.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 278 |
```xml
import { PanelType } from './Panel.types';
import {
AnimationClassNames,
AnimationVariables,
getGlobalClassNames,
HighContrastSelector,
ScreenWidthMinMedium,
ScreenWidthMinLarge,
ScreenWidthMinXLarge,
ScreenWidthMinXXLarge,
ScreenWidthMinUhfMobile,
IconFontSizes,
} from '../../Styling';
impor... | /content/code_sandbox/packages/react/src/components/Panel/Panel.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 2,434 |
```xml
import {
Column,
Entity,
JoinColumn,
JoinTable,
ManyToMany,
ManyToOne,
PrimaryGeneratedColumn,
} from "../../../../src"
import { Category } from "./Category"
import { Breed } from "./Breed"
@Entity()
export class Animal {
@PrimaryGeneratedColumn()
id: number
@Column()
... | /content/code_sandbox/test/github-issues/1355/entity/Animal.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 219 |
```xml
import * as assert from "assert"
import * as Span from "./../../src/Renderer/Span"
describe("Span", () => {
describe("flattenSpansToArray", () => {
it("simple test", () => {
const output = Span.flattenSpansToArray([
{ startX: 1, endX: 2 },
{ startX: 3, en... | /content/code_sandbox/browser/test/Renderer/SpanTests.ts | xml | 2016-11-16T14:42:55 | 2024-08-14T11:48:05 | oni | onivim/oni | 11,355 | 348 |
```xml
import {Injectable} from '@angular/core';
import {Config} from '../../../common/config/public/Config';
import {Title} from '@angular/platform-browser';
import {GridMedia} from '../ui/gallery/grid/GridMedia';
import {SearchQueryParserService} from '../ui/gallery/search/search-query-parser.service';
import {Search... | /content/code_sandbox/src/frontend/app/model/pi-title.service.ts | xml | 2016-03-12T11:46:41 | 2024-08-16T19:56:44 | pigallery2 | bpatrik/pigallery2 | 1,727 | 324 |
```xml
import { logger } from '@sentry/utils';
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
import { posix, sep } from 'path';
logger.enable();
// eslint-disable-next-line @typescript-eslint/unbound-method
const { dirname, join, resolve, sep: posixSep } = posix;
interface Package {
name... | /content/code_sandbox/src/js/tools/ModulesCollector.ts | xml | 2016-11-30T14:45:57 | 2024-08-16T13:21:38 | sentry-react-native | getsentry/sentry-react-native | 1,558 | 925 |
```xml
import * as React from 'react';
import { IStyle, IStyleSetBase, ITheme } from '@fluentui/style-utilities';
// TODO: Known TypeScript issue is widening return type checks when using function type declarations.
// Effect is that mistyped property keys on returned style objects will not generate errors.
// ... | /content/code_sandbox/packages/foundation-legacy/src/IComponent.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,291 |
```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 {
AfterViewInit,
ChangeDetectorRef,
Component,
ElementRef,
Input,
OnDestroy,
OnInit,
Renderer2,
Te... | /content/code_sandbox/ui-ngx/src/app/modules/home/components/widget/lib/cards/progress-bar-widget.component.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,733 |
```xml
<manifest package="net.lucode.hackware.magicindicator" />
``` | /content/code_sandbox/magicindicator/src/main/AndroidManifest.xml | xml | 2016-06-26T08:20:43 | 2024-08-16T18:33:28 | MagicIndicator | hackware1993/MagicIndicator | 9,699 | 16 |
```xml
<?xml version="1.0"?>
<!DOCTYPE type PUBLIC "-//NetBeans//DTD annotation type 1.0//EN" "path_to_url">
<type
name='CallSiteCurrent'
description_key='Hint_CallSiteCurrent'
localizing_bundle='org.graalvm.visualizer.source.resources.Bundle'
visible='true'
glyph='nbresloc:/org/graalvm/visualizer/... | /content/code_sandbox/visualizer/IdealGraphVisualizer/SourceRepository/src/org/graalvm/visualizer/source/resources/CallSiteCurrent.xml | xml | 2016-01-14T17:11:35 | 2024-08-16T17:54:25 | graal | oracle/graal | 20,129 | 131 |
```xml
import { TestUserModel, createMstPlugin } from "./fixtures"
describe("actions", () => {
it("sends action complete event", () => {
const { reactotron, track } = createMstPlugin()
const user = TestUserModel.create()
track(user)
user.setAge(123)
// details about the reactotron functions used... | /content/code_sandbox/lib/reactotron-mst/test/actions.test.ts | xml | 2016-04-15T21:58:32 | 2024-08-16T11:39:46 | reactotron | infinitered/reactotron | 14,757 | 337 |
```xml
const params = `
externalScoringResponse: JSON,
restInquiryResponse: JSON,
score: Float,
keyword: String,
reportPurpose: String,
customerId: String,
vendor: String
`;
const chechParms = `
keyword: String,
reportPurpose: String,
customerId: String,
vendor: String
`;
export const mutations ... | /content/code_sandbox/packages/plugin-burenscoring-api/src/graphql/schema/mutations.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 107 |
```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 { Pipe, PipeTransform } from '@angular/core';
import {
MappingValueType,
OPCUaSourceTypes,
SourceTypes
} from ... | /content/code_sandbox/ui-ngx/src/app/modules/home/components/widget/lib/gateway/pipes/gateway-help-link.pipe.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 224 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
xmlns="path_to_url"
xmlns:flowable="path_to_url"
targetNamespace="Examples">
<process id="eventSubscriptionLocking">
<startEvent id="theStart">
<extensionElements>
<flowable:eventType>myEvent</flowable:eve... | /content/code_sandbox/modules/flowable-engine/src/test/resources/org/flowable/engine/test/eventregistry/EventSubscriptionLockingTest.testConcurrentStarts.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 263 |
```xml
import { createHooks } from '@proton/redux-utilities';
import { selectUserInvitations, userInvitationsThunk } from './index';
const hooks = createHooks(userInvitationsThunk, selectUserInvitations);
export const useUserInvitations = hooks.useValue;
export const useGetUserInvitations = hooks.useGet;
``` | /content/code_sandbox/packages/account/userInvitations/hooks.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 69 |
```xml
import { DevToolsPluginClient } from './DevToolsPluginClient';
/**
* The DevToolsPluginClient for the app -> browser communication.
*/
export declare class DevToolsPluginClientImplApp extends DevToolsPluginClient {
private browserClientMap;
/**
* Initialize the connection.
* @hidden
*/
... | /content/code_sandbox/packages/expo/build/devtools/DevToolsPluginClientImplApp.d.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 93 |
```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/CX20641/Platforms13.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 1,310 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net472</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Locator" />
<PackageReference Include="Newtonsoft.Json" />
</ItemGroup>
</Project>
``` | /content/code_sandbox/src/ResourcesGenerator/ResourcesGenerator.csproj | xml | 2016-05-04T17:58:58 | 2024-08-16T05:16:46 | MSBuildStructuredLog | KirillOsenkov/MSBuildStructuredLog | 1,429 | 77 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Yksinkertainen kalenteri</string>
<string name="app_launcher_name">Kalenteri</string>
<string name="change_view">Vaihda nkym</string>
<string name="daily_view">Pivnkym</string>
<string name="weekly_view">Viikkonkym</st... | /content/code_sandbox/app/src/main/res/values-fi/strings.xml | xml | 2016-01-26T21:02:54 | 2024-08-15T00:35:32 | Simple-Calendar | SimpleMobileTools/Simple-Calendar | 3,512 | 6,058 |
```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 Debug from 'debug';
// @ts-ignore
import mathJax from 'mathjax-node';
import renderSVG from './svg';
import {ImageDefinition} from ... | /content/code_sandbox/src/images/mathjax.ts | xml | 2016-11-07T19:54:09 | 2024-08-07T17:41:06 | md2googleslides | googleworkspace/md2googleslides | 4,464 | 440 |
```xml
import { PlaywrightCrawler } from 'crawlee';
// For playwright-extra you will need to import the browser type itself that you want to use!
// By default, PlaywrightCrawler uses chromium, but you can also use firefox or webkit.
import { chromium } from 'playwright-extra';
import stealthPlugin from 'puppeteer-ext... | /content/code_sandbox/docs/examples/crawler-plugins/playwright-extra.ts | xml | 2016-08-26T18:35:03 | 2024-08-16T16:40:08 | crawlee | apify/crawlee | 14,153 | 649 |
```xml
export declare function not(pred: Function, thisArg: any): Function;
``` | /content/code_sandbox/deps/node-10.15.3/tools/node_modules/eslint/node_modules/rxjs/internal/util/not.d.ts | xml | 2016-09-05T10:18:44 | 2024-08-11T13:21:40 | LiquidCore | LiquidPlayer/LiquidCore | 1,010 | 16 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<... | /content/code_sandbox/Example/PopupDialog/Base.lproj/LaunchScreen.xib | xml | 2016-06-22T18:56:17 | 2024-08-16T09:30:45 | PopupDialog | Orderella/PopupDialog | 3,934 | 750 |
```xml
import {
Component,
EventEmitter,
Input,
OnDestroy,
OnInit,
Output,
} from '@angular/core';
import { Subscription, timer } from 'rxjs';
import { finalize } from 'rxjs/operators';
import { ScannerVo } from '../../../../../shared/services';
import { ErrorHandler } from '../../../../../share... | /content/code_sandbox/src/portal/src/app/base/project/repository/artifact/vulnerability-scanning/result-bar-chart.component.ts | xml | 2016-01-28T21:10:28 | 2024-08-16T15:28:34 | harbor | goharbor/harbor | 23,335 | 2,019 |
```xml
<dict>
<key>LayoutID</key>
<integer>12</integer>
<key>PathMapRef</key>
<array>
<dict>
<key>CodecID</key>
<array>
<integer>283904137</integer>
</array>
<key>Headphone</key>
<dict/>
<key>Inputs</key>
<array>
<string>LineIn</string>
<string>Mic</string>
</array>
<key>Int... | /content/code_sandbox/Resources/ALC889/layout12.xml | xml | 2016-03-07T20:45:58 | 2024-08-14T08:57:03 | AppleALC | acidanthera/AppleALC | 3,420 | 851 |
```xml
import { Document, Schema } from 'mongoose';
import { field, schemaHooksWrapper } from './utils';
export interface IItem {
_id?: string;
id?: string;
name: string;
barCode?: string;
barCodeType?: string;
classificationCode?: string;
taxProductCode?: string;
measureUnit?: string;
qty: number;
... | /content/code_sandbox/packages/plugin-posclient-api/src/models/definitions/putResponses.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,813 |
```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
/**
* Computes the reciprocal cube root of a double-precision floating-point number.
*... | /content/code_sandbox/lib/node_modules/@stdlib/math/base/special/rcbrt/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 262 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PasswordGeneratorWidget</class>
<widget class="QWidget" name="PasswordGeneratorWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>729</width>
<height>433</height>
</rect>
</property>
<property name="wi... | /content/code_sandbox/src/gui/PasswordGeneratorWidget.ui | xml | 2016-02-28T15:52:40 | 2024-08-16T19:26:56 | keepassxc | keepassxreboot/keepassxc | 20,477 | 8,083 |
```xml
const addMeeting = `
mutation MeetingAdd($title: String!, $description: String, $startDate: Date, $endDate: Date, $location: String, $method: String, $createdBy: String, $status: String, $participantIds: [String], $companyId: String!, $dealIds: [String!]) {
meetingAdd(title: $title, description: $description... | /content/code_sandbox/packages/plugin-meetings-ui/src/graphql/mutations.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 694 |
```xml
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { RouterModule } from '@angular/router';
import { NgProgressbar } from 'ngx-progressbar';
import { NgProgressRouter } from 'ngx-progressbar/router';
import { HeaderComponent } from './header/header.component';
@Component({
standalone: ... | /content/code_sandbox/projects/ngx-progressbar-demo/src/app/app.component.ts | xml | 2016-09-01T05:55:21 | 2024-08-14T12:42:02 | ngx-progressbar | MurhafSousli/ngx-progressbar | 1,007 | 126 |
```xml
import { Badge, TableContainer } from '../../../../styles';
import { ILottery } from '../../types';
import { Link } from 'react-router-dom';
import React from 'react';
import { Table } from '@erxes/ui/src/';
import { colors } from '@erxes/ui/src/styles/';
interface IProps {
lotteries: ILottery[];
loading: ... | /content/code_sandbox/packages/plugin-loyalties-ui/src/loyalties/lotteries/components/award/list.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 554 |
```xml
/*your_sha256_hash-----------------------------
*your_sha256_hash----------------------------*/
export const PROJECTS_FILE = "projects.json";
export enum CommandLocation { CommandPalette, SideBar, StatusBar }
export enum OpenInCurrentWindowIfEmptyMode {
always = "always",
onlyUsingCommandPalette = "on... | /content/code_sandbox/src/constants.ts | xml | 2016-01-06T23:47:23 | 2024-08-14T16:30:13 | vscode-project-manager | alefragnani/vscode-project-manager | 1,880 | 131 |
```xml
import React, { createContext, useContext } from 'react'
export function createStoreContext<R>(
storeCreator: () => R,
storeName?: string
) {
const context = createContext<R | null>(null)
const StoreProvider: React.FC = ({ children }) => (
<context.Provider value={storeCreator()}>{children}</contex... | /content/code_sandbox/src/lib/context.tsx | xml | 2016-11-19T14:30:34 | 2024-08-16T03:13:45 | BoostNote-App | BoostIO/BoostNote-App | 3,745 | 255 |
```xml
<TS language="nb" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Hyreklikk for redigere adressen eller merkelappen</translation>
</message>
<message>
<source>Create a new address</source>
... | /content/code_sandbox/src/qt/locale/verge_nb.ts | xml | 2016-01-23T04:20:14 | 2024-08-13T18:07:31 | verge | vergecurrency/verge | 1,402 | 42,868 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="cLeftTextId" type="id" />
<item name="cRightTextId" type="id" />
<item name="cCenterTextId" type="id" />
<item name="cCenterBaseLineId" type="id" />
<item name="cLeftTopTextId" type="id" />
<item name="cLeftBottomTextId" typ... | /content/code_sandbox/library/src/main/res/values/commom_textview_ids.xml | xml | 2016-10-19T04:06:54 | 2024-08-12T03:29:20 | SuperTextView | lygttpod/SuperTextView | 3,768 | 208 |
```xml
import { inject, Injectable, Injector } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { Observable, of } from 'rxjs';
import { filter, switchMap } from 'rxjs/operators';
import { HttpErrorReporterService } from '@abp/ng.core';
import { CustomHttpErrorHandlerService } fr... | /content/code_sandbox/npm/ng-packs/packages/theme-shared/src/lib/handlers/error.handler.ts | xml | 2016-12-03T22:56:24 | 2024-08-16T16:24:05 | abp | abpframework/abp | 12,657 | 676 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- -->
<!-- -->
<!-- All rights reserved. This program and the accompanying materials -->
<!-- which accompanies this distribution, and is available at -->
<!-- path_to_url -->
... | /content/code_sandbox/Linux_SGXEclipsePlugin/build_directory/features/com.intel.sgx.feature/feature.xml | xml | 2016-02-23T23:41:25 | 2024-08-15T10:13:48 | linux-sgx | intel/linux-sgx | 1,313 | 2,656 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FFFFFF"
android:pathData="M16,1L4,1c-1.1,0 -2,0.9 -2,2v14h2L4,3h12L16,1zM19,5L8,5c-1.1,0 -2,0.9 ... | /content/code_sandbox/sample/src/main/res/drawable/ic_content_copy_black_24dp.xml | xml | 2016-04-24T01:49:59 | 2024-07-16T15:06:16 | FloatingToolbar | rubensousa/FloatingToolbar | 1,552 | 204 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21225" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
... | /content/code_sandbox/dotnet/Templates/Microsoft.macOS.Templates/macos-view/View1.xib | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 284 |
```xml
import { MarkType } from "prosemirror-model";
import { EditorState } from "prosemirror-state";
import { Primitive } from "utility-types";
import { getMarksBetween } from "./getMarksBetween";
/**
* Checks if a mark is active in the current selection or not.
*
* @param type The mark type to check.
* @param at... | /content/code_sandbox/shared/editor/queries/isMarkActive.ts | xml | 2016-05-22T21:31:47 | 2024-08-16T19:57:22 | outline | outline/outline | 26,751 | 274 |
```xml
import { Component, OnDestroy, OnInit } from '@angular/core';
import { Worker } from 'ng-swagger-gen/models';
import { JobserviceService } from 'ng-swagger-gen/services';
import { finalize, Subscription } from 'rxjs';
import { ConfirmationDialogService } from 'src/app/base/global-confirmation-dialog/confirmation... | /content/code_sandbox/src/portal/src/app/base/left-side-nav/job-service-dashboard/worker-card/worker-card.component.ts | xml | 2016-01-28T21:10:28 | 2024-08-16T15:28:34 | harbor | goharbor/harbor | 23,335 | 893 |
```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
/**
* Evaluates the moment-generating function (MGF) of an Erlang distribution.
*
* @p... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/erlang/mgf/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 927 |
```xml
import type { TextEditor, Uri } from 'vscode';
import { Commands } from '../constants';
import type { Container } from '../container';
import { GitUri } from '../git/gitUri';
import { showGenericErrorMessage } from '../messages';
import { command, executeCoreCommand } from '../system/command';
import { Logger } ... | /content/code_sandbox/src/commands/browseRepoAtRevision.ts | xml | 2016-08-08T14:50:30 | 2024-08-15T21:25:09 | vscode-gitlens | gitkraken/vscode-gitlens | 8,889 | 640 |
```xml
declare module 'egg' {
interface Foo {
bar(): string;
}
interface IProxy {
foo: Foo;
}
interface Context {
proxy: IProxy;
}
}
``` | /content/code_sandbox/test/fixtures/apps/app-ts/app/proxy/foo.d.ts | xml | 2016-06-18T06:53:23 | 2024-08-16T10:11:28 | egg | eggjs/egg | 18,851 | 43 |
```xml
import { DtoRecord } from '../common/interfaces/dto_record';
import { StringUtil } from './string_util';
import * as _ from 'lodash';
export class CompareUtil {
static compare(o: DtoRecord, t: DtoRecord): boolean {
if ((!o && t) || (o && !t)) {
return false;
}
return (!o... | /content/code_sandbox/client/src/utils/compare_util.ts | xml | 2016-09-26T02:47:43 | 2024-07-24T09:32:20 | Hitchhiker | brookshi/Hitchhiker | 2,193 | 348 |
```xml
<vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="512" android:viewportWidth="512" android:width="34.0dp">
<path android:fillColor="@android:color/white" android:pathData="M176 32c44.2 0 80 35.8 80 80l0 16c0 8.8-7.2 16-16 16c-44.2 0-80... | /content/code_sandbox/app/src/main/res/drawable/ic_preset_fas_plate_wheat.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 884 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<!-- for e2e testing on release build, we need cleartext traffic from local server -->
<domain includeSubdomains="true">10.0.2.2</domain>
<domain includeSubdomains="true">localhost</dom... | /content/code_sandbox/apps/bare-expo/android/app/src/main/res/xml/network_security_config.xml | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 96 |
```xml
import { Socket } from 'net';
import { AFCClient } from '../AFCClient';
function mockSocket() {
return {
on: jest.fn(),
} as unknown as Socket;
}
describe('getFileInfo', () => {
it(`returns public staging file info`, async () => {
const socket = mockSocket();
const client = new AFCClient(soc... | /content/code_sandbox/packages/@expo/cli/src/run/ios/appleDevice/client/__tests__/AFCClient-test.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 1,345 |
```xml
import { writeFile } from 'fs/promises';
import type { Options } from 'tsup';
import { defineConfig } from 'tsup';
export default defineConfig(options => {
const commonOptions: Options = {
entry: {
'react-querybuilder_bootstrap': 'src/index.tsx',
},
dts: true,
sourcemap: true,
...opt... | /content/code_sandbox/packages/bootstrap/tsup.config.ts | xml | 2016-06-17T22:03:19 | 2024-08-16T10:28:42 | react-querybuilder | react-querybuilder/react-querybuilder | 1,131 | 538 |
```xml
<?xml version="1.0"?>
<project xmlns="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url
path_to_url">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.yahoo.vespa.jdisc_core</groupId>
<artifactId>integration-test-pa... | /content/code_sandbox/jdisc_core_test/test_bundles/pom.xml | xml | 2016-06-03T20:54:20 | 2024-08-16T15:32:01 | vespa | vespa-engine/vespa | 5,524 | 776 |
```xml
import { Component } from '@angular/core';
@Component({
selector: 'directives-demo-basic',
styleUrls: ['./directives-demo-basic.component.scss'],
templateUrl: './directives-demo-basic.component.html',
})
export class DirectivesDemoBasicComponent {
trim = '';
}
``` | /content/code_sandbox/apps/docs-app/src/app/content/utilities/utilities-demos/directives/demos/directives-demo-basic/directives-demo-basic.component.ts | xml | 2016-07-11T23:30:52 | 2024-08-15T15:20:45 | covalent | Teradata/covalent | 2,228 | 57 |
```xml
export * from './components/MenuItemSwitch/index';
``` | /content/code_sandbox/packages/react-components/react-menu/library/src/MenuItemSwitch.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.