text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```xml
<?xml version="1.0" encoding="utf-8"?>
<WixLocalization Culture="en-us" Language="1033" xmlns="path_to_url">
<String Id="Caption">[WixBundleName] Setup</String>
<String Id="Title">[WixBundleName]</String>
<String Id="Description">This bundle setup will install the following:
- TagUI v6.48
- Amazon Cor... | /content/code_sandbox/src/installer/TagUIBundle/HyperlinkTheme.wxl | xml | 2016-12-06T04:30:34 | 2024-08-15T02:46:36 | TagUI | aisingapore/TagUI | 5,514 | 1,087 |
```xml
export const isObject = (value: any): value is object => {
return typeof value === 'object' && !Array.isArray(value) && value !== null;
};
``` | /content/code_sandbox/packages/pass/utils/object/is-object.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 36 |
```xml
import cartesian from './index';
// OK
cartesian([])
cartesian([
[1, 2, 3]
])
cartesian([
[1, 2, 3],
['a', 'b', 'c']
])
// Not OK
// @ts-expect-error
cartesian()
// @ts-expect-error
cartesian(undefined)
// @ts-expect-error
cartesian(null)
// @ts-expect-error
cartesian(['array'])
// @ts-expect-error
car... | /content/code_sandbox/packages/array-cartesian-product/index.tests.ts | xml | 2016-06-26T02:04:54 | 2024-08-15T00:08:43 | just | angus-c/just | 5,974 | 136 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="path_to_url">
<alpha
android:fromAlpha="0.3"
android:toAlpha="1.0"
android:duration="400"/>
<scale
android:fromXScale="0.0"
android:toXScale="1.0"
android:fromYScale="0.0"
... | /content/code_sandbox/app/src/main/res/anim/fade_in.xml | xml | 2016-10-14T02:54:01 | 2024-08-16T16:01:33 | MGit | maks/MGit | 1,193 | 133 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<Resource xmlns="path_to_url">
<CloudServiceSettings>
<GeoRegion><%=response.provider.geoRegion%></GeoRegion>
</CloudServiceSettings>
<Tags><%=response.provider.tags%></Tags>
<Name><%=response.name%></Name>
<OperationStatus>
<Resul... | /content/code_sandbox/user-service/helpers/azure-xml-responses/create.xml | xml | 2016-02-08T13:45:32 | 2024-07-23T20:18:01 | cloudboost | CloudBoost/cloudboost | 1,444 | 220 |
```xml
'use strict';
import { Terminal } from 'vscode';
import { traceVerbose } from '../../../logging';
import { createDeferred, sleep } from '../../utils/async';
import { ITerminalActivator, ITerminalHelper, TerminalActivationOptions, TerminalShellType } from '../types';
export class BaseTerminalActivator implemen... | /content/code_sandbox/src/client/common/terminal/activator/base.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 366 |
```xml
<resources>
<dimen name="frames_video_height">60dip</dimen>
</resources>
``` | /content/code_sandbox/app/src/main/res/values/dimens.xml | xml | 2016-08-29T02:21:34 | 2024-08-16T08:34:38 | Android-Video-Trimmer | iknow4/Android-Video-Trimmer | 1,090 | 24 |
```xml
/* eslint-disable no-new */
import EventEmitter from 'eventemitter3';
import test from 'ava';
import delay from 'delay';
import inRange from 'in-range';
import timeSpan from 'time-span';
import randomInt from 'random-int';
import pDefer from 'p-defer';
import PQueue, {AbortError} from '../source/index.js';
cons... | /content/code_sandbox/test/test.ts | xml | 2016-10-28T10:57:52 | 2024-08-16T17:39:44 | p-queue | sindresorhus/p-queue | 3,377 | 6,676 |
```xml
import { Entity } from "../../../../../../../src/decorator/entity/Entity"
import { Column } from "../../../../../../../src/decorator/columns/Column"
import { PrimaryGeneratedColumn } from "../../../../../../../src/decorator/columns/PrimaryGeneratedColumn"
import { Post } from "./Post"
import { ManyToOne } from "... | /content/code_sandbox/test/functional/query-builder/relation-id/one-to-many/embedded/entity/Category.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 155 |
```xml
export * from './slidemenu';
export * from './slidemenu.interface';
``` | /content/code_sandbox/src/app/components/slidemenu/public_api.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 20 |
```xml
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* Measures the total success or failures for the payment step when signi... | /content/code_sandbox/packages/metrics/types/web_core_signup_paymentStep_payment_total_v1.schema.d.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 115 |
```xml
enum JobExperienceLevel {
Entry,
Mid,
Senior,
}
export function yearsOfExperienceToLevel(years: number): Readonly<{
label: string;
level: JobExperienceLevel;
}> {
if (years <= 2) {
return {
label: 'Entry Level',
level: JobExperienceLevel.Entry,
};
}
if (years <= 5) {
ret... | /content/code_sandbox/apps/portal/src/utils/JobExperienceLevel.ts | xml | 2016-07-05T05:00:48 | 2024-08-16T19:01:19 | tech-interview-handbook | yangshun/tech-interview-handbook | 115,302 | 130 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>NU1608</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Fluent... | /content/code_sandbox/backend/i18n/translator/Squidex.Translator/Squidex.Translator.csproj | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 399 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="@dimen/margin_large"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:focusab... | /content/code_sandbox/sample-kotlin/src/main/res/layout/item_discovery_service.xml | xml | 2016-02-04T13:42:02 | 2024-08-16T06:19:26 | RxAndroidBle | dariuszseweryn/RxAndroidBle | 3,412 | 331 |
```xml
import {
DefinitionNode,
DirectiveDefinitionNode,
DocumentNode,
isDefinitionNode,
isSchema,
Kind,
OperationTypeDefinitionNode,
OperationTypeNode,
parse,
ParseOptions,
} from 'graphql';
import {
getDocumentNodeFromSchema,
GetDocumentNodeFromSchemaOptions,
isDocumentNode,
printWithComme... | /content/code_sandbox/packages/merge/src/typedefs-mergers/merge-typedefs.ts | xml | 2016-03-22T00:14:38 | 2024-08-16T02:02:06 | graphql-tools | ardatan/graphql-tools | 5,331 | 1,810 |
```xml
<vector xmlns:android="path_to_url"
android:width="588dp"
android:height="86dp"
android:viewportWidth="588.96"
android:viewportHeight="86.97375">
<path
android:pathData="m214.47,43.52 l0,4.68 29.64,32.13 9.36,0L219.31,43.52 214.47,43.52Z"
android:fillAlpha="1"
... | /content/code_sandbox/app/app/src/main/res/drawable/nexmon_logo_color.xml | xml | 2016-10-27T09:31:28 | 2024-08-16T19:00:35 | nexmon | seemoo-lab/nexmon | 2,381 | 2,009 |
```xml
import { Component, OnInit } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'dynamic-doc',
template: `
<app-docsectiontext>
<p>RadioButtons can be generated using a list of values.</p>
</app-docsectiontext>
<div class="card flex just... | /content/code_sandbox/src/app/showcase/doc/radiobutton/dynamicdoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 679 |
```xml
export * from "./LaunchDesktopFileActionHandler";
export * from "./LinuxApplicationRepository";
``` | /content/code_sandbox/src/main/Extensions/ApplicationSearch/Linux/index.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 19 |
```xml
import { NgModule } from '@angular/core';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
import { environment } from '../environments/environment';
import { provideAppCheck, initializeAppCheck, ReCaptchaV3Provider } from '@angular/fire/app-check';
@NgModule({
imports... | /content/code_sandbox/samples/compat/src/app/app.browser.module.ts | xml | 2016-01-11T20:47:23 | 2024-08-14T12:09:31 | angularfire | angular/angularfire | 7,648 | 131 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<F... | /content/code_sandbox/examples/sdk_example3/sdk_example3.vcxproj.filters | xml | 2016-04-11T21:02:16 | 2024-08-12T06:59:46 | compressonator | GPUOpen-Tools/compressonator | 1,282 | 259 |
```xml
'use strict';
import { spawn } from 'child_process';
import { connect, Socket } from 'net';
function main(): void {
let serverFinished = false;
let clientFinished = false;
let server = spawn('usr/bin/hello-socket', [], { stdio: [0, 1, 2] });
server.on('error', (err: any) => {
process.stderr.write('error... | /content/code_sandbox/src/bin/socket-example.ts | xml | 2016-02-17T16:29:16 | 2024-08-12T22:21:27 | browsix | plasma-umass/browsix | 3,147 | 251 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<!-- when changing this file, consider adapting values/preferences_appearance.xml as well
(values/preferences_appearance.xml differs only wrt theme default value) -->
<PreferenceScreen xmlns:android="path_to_url">
<ListPreference
android:key="pref_theme"
... | /content/code_sandbox/src/main/res/xml-v29/preferences_appearance.xml | xml | 2016-07-03T07:32:36 | 2024-08-16T16:51:15 | deltachat-android | deltachat/deltachat-android | 1,082 | 300 |
```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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_... | /content/code_sandbox/BeautifyFaceDemo/Info.plist | xml | 2016-04-27T03:08:58 | 2024-07-23T11:34:26 | BeautifyFaceDemo | Guikunzhi/BeautifyFaceDemo | 2,492 | 381 |
```xml
import { formatPreciseDuration } from '../../src/lib/format-duration'
describe('formatPreciseDuration', () => {
it('returns 0s for ms less than 1000', () => {
expect(formatPreciseDuration(1)).toBe('0s')
})
it('return 0[unit] after encountering first whole unit', () => {
expect(formatPreciseDurati... | /content/code_sandbox/app/test/unit/format-duration-test.ts | xml | 2016-05-11T15:59:00 | 2024-08-16T17:00:41 | desktop | desktop/desktop | 19,544 | 191 |
```xml
<vector xmlns:android="path_to_url" android:height="34.0dp" android:tint="?attr/colorControlNormal" android:viewportHeight="15" android:viewportWidth="15" android:width="34.0dp">
<path android:fillColor="@android:color/white" android:pathData="M8.5 4.37L6.5 4.62L6.5 2C6.5 1.45 6.95 1 7.5 1C8.05 1 8.5 1.45 8.... | /content/code_sandbox/app/src/main/res/drawable/ic_preset_temaki_aerialway_pole.xml | xml | 2016-07-02T10:44:04 | 2024-08-16T18:55:54 | StreetComplete | streetcomplete/StreetComplete | 3,781 | 716 |
```xml
import * as React from 'react';
import { View, Text } from 'react-native';
export function ErroredScreen({ message }: { message: string }) {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
<Text>Error: {message}</Text>
</View>
);
}
export function optionalR... | /content/code_sandbox/apps/native-component-list/src/navigation/routeBuilder.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 127 |
```xml
/**
* @license
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
interface Node<T> {
NEXT_PROPERTY: T|null;
PREV_PROPERTY: T|null;
}
export default class {
static insertAfter<T ... | /content/code_sandbox/templates/util/linked_list.template.ts | xml | 2016-05-27T02:37:25 | 2024-08-16T07:24:25 | neuroglancer | google/neuroglancer | 1,045 | 484 |
```xml
import path from 'path';
import { factory, assertions, testInjector, TempTestDirectorySandbox } from '@stryker-mutator/test-helpers';
import { expect } from 'chai';
import { TestStatus } from '@stryker-mutator/api/test-runner';
import { createVitestTestRunnerFactory, VitestTestRunner } from '../../src/vitest-t... | /content/code_sandbox/packages/vitest-runner/test/integration/vitest-test-runner.it.spec.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 2,962 |
```xml
import {Document} from "mongoose";
export type MongooseDocument<T> = T & Document;
``` | /content/code_sandbox/packages/orm/mongoose/src/interfaces/MongooseDocument.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 21 |
```xml
import * as React from 'react';
import * as renderer from 'react-test-renderer';
import { ContextualMenuAnchor } from './ContextualMenuAnchor';
import type { IContextualMenuItem } from '../ContextualMenu.types';
import type { IMenuItemClassNames } from '../ContextualMenu.classNames';
describe('ContextualMenuBut... | /content/code_sandbox/packages/react/src/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.deprecated.test.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 341 |
```xml
import * as express from 'express';
import { IUserDocument } from '../db/models/definitions/users';
import { IDataLoaders } from './dataLoaders';
export interface IContext {
res: express.Response;
requestInfo: any;
user: IUserDocument;
docModifier: <T>(doc: T) => any;
brandIdSelector: {};
userBrandI... | /content/code_sandbox/packages/core/src/data/types.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 155 |
```xml
export default function once(fn: () => void): () => void {
let done;
return () => {
if (!done) {
fn();
done = 1;
}
};
}
``` | /content/code_sandbox/packages/core/src/utils/once.ts | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 44 |
```xml
import * as React from 'react';
import { Steps } from 'storywright';
import { getStoryVariant, RTL, StoryWrightDecorator, TestWrapperDecorator } from '../../utilities';
import { Fabric, OverflowSet, IOverflowSetItemProps } from '@fluentui/react';
import { IconButton } from '@fluentui/react/lib/Button';
const on... | /content/code_sandbox/apps/vr-tests/src/stories/OverflowSet/OverflowSet.stories.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 347 |
```xml
import Avatar from "./avatar";
import Date from "./date";
import CoverImage from "./cover-image";
import Link from "next/link";
import { AuthorType, ImgixType } from "interfaces";
type PostPreviewProps = {
title: string;
coverImage: ImgixType;
date: string;
excerpt: string;
author: AuthorType;
slug:... | /content/code_sandbox/examples/cms-cosmic/components/post-preview.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 271 |
```xml
<project xmlns="path_to_url" xmlns:xsi="path_to_url" xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>Struts2Hibernate</groupId>
<artifactId>Struts2Hibernate</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<depe... | /content/code_sandbox/Struts2/Struts2Hibernate/pom.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 404 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="path_to_url">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectTypeGuids>{A3F8F2AB-B479-4... | /content/code_sandbox/tests/mmptest/src/XM45Example.csproj | xml | 2016-04-20T18:24:26 | 2024-08-16T13:29:19 | xamarin-macios | xamarin/xamarin-macios | 2,436 | 518 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const FolderFillIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M1664 64q26 0 45 19t19 45v992q0 57 20 93t44 67 44 67... | /content/code_sandbox/packages/react-icons-mdl2/src/components/FolderFillIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 158 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:id="@+id/mt_layout_toolbar"
xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/mt_toolba... | /content/code_sandbox/library/src/main/res/layout/mt_morphy_toolbar.xml | xml | 2016-02-01T21:04:25 | 2024-06-15T03:16:32 | morphy-toolbar | badoualy/morphy-toolbar | 1,077 | 632 |
```xml
<LinearLayout
xmlns:android="path_to_url"
xmlns:tools="path_to_url"
tools:context="com.amazon.styledictionaryexample.icon.IconDetailFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/color_background_base"
android:orientation=... | /content/code_sandbox/examples/complete/android/demo/src/main/res/layout/icon_detail.xml | xml | 2016-11-29T20:53:51 | 2024-08-16T14:22:09 | style-dictionary | amzn/style-dictionary | 3,815 | 425 |
```xml
import { Disposable, Event, EventEmitter, WorkspaceFolder } from 'vscode';
import { DocumentFilter, LanguageClientOptions, RevealOutputChannelOn } from 'vscode-languageclient/node';
import { IWorkspaceService } from '../../common/application/types';
import { PYTHON, PYTHON_LANGUAGE } from '../../common/constant... | /content/code_sandbox/src/client/activation/common/analysisOptions.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 764 |
```xml
import type { ChangeEvent, FC } from 'react';
import type { FieldInputProps, FormikErrors } from 'formik';
import { c } from 'ttag';
import { Button, type ButtonProps } from '@proton/atoms/Button';
import type { IconName } from '@proton/components/components';
import { Icon } from '@proton/components/component... | /content/code_sandbox/packages/pass/components/Form/Field/ExtraFieldGroup/ExtraField.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 1,158 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
import { AnnotateAssetForm } from './assets.forms';
describe('AnnotateAssetForm', () => {
let form: AnnotateAssetForm;
const asset: any = {
slug: 'my-file.png',
tags: [
'Tag1',
'Tag2',
],
isProtected:... | /content/code_sandbox/frontend/src/app/shared/state/assets.forms.spec.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 567 |
```xml
/*
* LiskHQ/lisk-commander
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or... | /content/code_sandbox/commander/src/bootstrapping/commands/message/sign.ts | xml | 2016-02-01T21:45:35 | 2024-08-15T19:16:48 | lisk-sdk | LiskArchive/lisk-sdk | 2,721 | 536 |
```xml
import * as Blockly from "blockly";
export class BlockDragger extends Blockly.dragging.Dragger {
onDrag(e: PointerEvent, totalDelta: Blockly.utils.Coordinate): void {
super.onDrag(e, totalDelta);
const blocklyToolboxDiv = document.getElementsByClassName('blocklyToolboxDiv')[0] as HTMLElemen... | /content/code_sandbox/pxtblocks/blockDragger.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 485 |
```xml
export default function page() {
return 'robots'
}
export const metadata = {
robots: {
index: false,
follow: true,
nocache: true,
googleBot: {
index: true,
follow: false,
noimageindex: true,
'max-video-preview': 'standard',
'max-image-preview': -1,
'max-... | /content/code_sandbox/test/e2e/app-dir/metadata/app/robots/page.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 92 |
```xml
import range from 'lodash/range'
import random from 'lodash/random'
import shuffle from 'lodash/shuffle'
import { randColor } from './color'
import { names } from './sets'
type Link = {
source: string
target: string
value: number
}
const availableNodes = names.map(name => ({ id: name }))
const get... | /content/code_sandbox/packages/generators/src/sankey.ts | xml | 2016-04-16T03:27:56 | 2024-08-16T03:38:37 | nivo | plouc/nivo | 13,010 | 555 |
```xml
<vector xmlns:android="path_to_url"
xmlns:tools="path_to_url"
android:width="448dp"
android:height="512dp"
android:viewportWidth="448.0"
android:viewportHeight="512.0"
tools:keep="@drawable/fa_researchgate">
<path
android:fillColor="#FFFFFFFF"
android:pathD... | /content/code_sandbox/mobile/src/main/res/drawable/fa_researchgate.xml | xml | 2016-10-24T13:23:25 | 2024-08-16T07:20:37 | freeotp-android | freeotp/freeotp-android | 1,387 | 723 |
```xml
import {IrcEventHandler} from "../../client";
import Msg from "../../models/msg";
import STSPolicies from "../sts";
export default <IrcEventHandler>function (irc, network) {
const client = this;
irc.on("cap ls", (data) => {
handleSTS(data, true);
});
irc.on("cap new", (data) => {
handleSTS(data, fals... | /content/code_sandbox/server/plugins/irc-events/cap.ts | xml | 2016-02-09T03:16:03 | 2024-08-16T10:52:38 | thelounge | thelounge/thelounge | 5,518 | 457 |
```xml
import { IReadonlyTheme } from '@microsoft/sp-component-base';
export interface IDateBoxProps {
startDate: any;
endDate: any;
className?: string;
size: IDateBoxSize;
themeVariant?: IReadonlyTheme;
}
export enum IDateBoxSize {
Small,
Medium
}
``` | /content/code_sandbox/samples/react-my-events/src/shared/components/DateBox/IDateBoxProps.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 70 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme.Main.Light" parent="AppTheme.Main">
<item name="android:windowTranslucentStatus">false</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:statusBarColor">@android:color/transparent</... | /content/code_sandbox/app/src/main/res/values-v23/styles.xml | xml | 2016-08-13T08:08:39 | 2024-08-06T13:58:48 | open-event-organizer-android | fossasia/open-event-organizer-android | 1,783 | 91 |
```xml
import childProcess from 'child_process';
import { readFileSync, writeFileSync } from 'fs';
import fs from 'fs';
import { rm } from 'fs/promises';
import licenseChecker from 'license-checker';
import { ncp } from 'ncp';
import path from 'path';
import * as vite from 'vite';
import buildMainAndPreload from '../e... | /content/code_sandbox/packages/insomnia/scripts/build.ts | xml | 2016-04-23T03:54:26 | 2024-08-16T16:50:44 | insomnia | Kong/insomnia | 34,054 | 897 |
```xml
import {
BarItems,
Button,
ModalTrigger,
Tip,
Wrapper,
__
} from "@erxes/ui/src";
import { Config, IPLan, ISchedule } from "../common/types";
import { FormContainer, ScheduleCard } from "../../styles";
import { ActivityDate } from "@erxes/ui-log/src/activityLogs/styles";
import Assignees from "@erxe... | /content/code_sandbox/packages/plugin-riskassessment-ui/src/plan/components/Schedules.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,072 |
```xml
/*
* Wire
*
* This program is free software: you can redistribute it and/or modify
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO... | /content/code_sandbox/src/script/components/MessagesList/Message/DeleteMessage.tsx | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 417 |
```xml
import * as _ from 'lodash';
import * as React from 'react';
import { createComponent, ComponentSlotStylesInput, ProviderConsumer } from '@fluentui/react-northstar';
import ColorBox from './ColorBox';
type ColorVariantsProps = {
name: string;
headerOnly?: boolean;
size?: 'small' | 'normal' | 'big';
};
e... | /content/code_sandbox/packages/fluentui/docs/src/components/ColorVariants.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 314 |
```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 { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
import {
Subscription,
Observable,
forkJoin,
throw... | /content/code_sandbox/src/portal/src/app/base/left-side-nav/registries/endpoint.component.ts | xml | 2016-01-28T21:10:28 | 2024-08-16T15:28:34 | harbor | goharbor/harbor | 23,335 | 1,660 |
```xml
import StockData from '../StockData';
import CandlestickFinder from './CandlestickFinder';
export default class BullishEngulfingPattern extends CandlestickFinder {
constructor() {
super();
this.name = 'BullishEngulfingPattern';
this.requiredCount = 2;
}
logic (data:StockData... | /content/code_sandbox/src/candlestick/BullishEngulfingPattern.ts | xml | 2016-05-02T19:16:32 | 2024-08-15T14:25:09 | technicalindicators | anandanand84/technicalindicators | 2,137 | 282 |
```xml
import { LEASE_TYPES } from './constants';
import { schemaHooksWrapper, field } from './utils';
import { Schema, Document } from 'mongoose';
export interface ICustomField {
field: string;
value: any;
stringValue?: string;
numberValue?: number;
dateValue?: Date;
}
export interface IContractConfig {
... | /content/code_sandbox/packages/plugin-loans-api/src/models/definitions/contractTypes.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,270 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.components.BorderlessImageView
xmlns:android="path_to_url"
android:id="@+id/image_view"
android:layout_width="@dimen/media_bubble_sticker_dimens"
android:layout_height="@dimen/media_bubble_sticker_dimens"
android:contentDescri... | /content/code_sandbox/src/main/res/layout/conversation_item_sticker.xml | xml | 2016-07-03T07:32:36 | 2024-08-16T16:51:15 | deltachat-android | deltachat/deltachat-android | 1,082 | 89 |
```xml
// luma.gl
export const PHONG_WGSL = /* wgsl */ `\
struct phongMaterialUniforms {
ambient: f32,
diffuse: f32,
shininess: f32,
specularColor: vec3<f32>,
};
@binding(2) @group(0) var<uniform> material : phongMaterialUniforms;
fn lighting_getLightColor(surfaceColor: vec3<f32>, light_direction: vec3<f32>,... | /content/code_sandbox/modules/shadertools/src/modules/lighting/phong-material/phong-shaders-wgsl.ts | xml | 2016-01-25T09:41:59 | 2024-08-16T10:03:05 | luma.gl | visgl/luma.gl | 2,280 | 1,354 |
```xml
import { ChoiceGroup, IChoiceGroupOption, IChoiceGroupOptionProps, IColorCellProps, SwatchColorPicker } from "@fluentui/react";
import { useId } from "@fluentui/react-hooks";
import React from "react";
import ColorsHelper, { ThemedPalette } from "../../common/ColorsHelper";
import { colorPickerStyles, disabledPi... | /content/code_sandbox/samples/react-dashboards/src/components/SwatchColorPickerThemed/SwatchColorPickerThemed.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 585 |
```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 mapValues = require( './index' );
const transform = ( value: string, key: string ): string => key + value;... | /content/code_sandbox/lib/node_modules/@stdlib/utils/map-values/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 308 |
```xml
import { hooks } from 'botframework-webchat-api';
import classNames from 'classnames';
import React, { useCallback, useMemo, useRef } from 'react';
import AccessibleInputText from '../Utils/AccessibleInputText';
import navigableEvent from '../Utils/TypeFocusSink/navigableEvent';
import { ie11 } from '../Utils/d... | /content/code_sandbox/packages/component/src/SendBox/TextBox.tsx | xml | 2016-07-07T23:16:57 | 2024-08-16T00:12:37 | BotFramework-WebChat | microsoft/BotFramework-WebChat | 1,567 | 1,895 |
```xml
import _ from "lodash";
import express from "express";
import Network from "../server/models/network";
import Chan from "../server/models/chan";
import {EventEmitter} from "events";
import {Message} from "../server/models/msg";
class MockClient extends EventEmitter {
config: {
browser: any;
};
constructor... | /content/code_sandbox/test/util.ts | xml | 2016-02-09T03:16:03 | 2024-08-16T10:52:38 | thelounge | thelounge/thelounge | 5,518 | 368 |
```xml
import { Modal } from 'antd';
import LocalesString from '../../locales/string';
export function confirmDlg(title: string | React.ReactNode, onOk: (func: Function) => any, action: string | React.ReactNode = 'delete') {
Modal.confirm({
title,
content: LocalesString.get('Common.ConfirmContent',... | /content/code_sandbox/client/src/components/confirm_dialog/index.ts | xml | 2016-09-26T02:47:43 | 2024-07-24T09:32:20 | Hitchhiker | brookshi/Hitchhiker | 2,193 | 95 |
```xml
import { ElementIds } from '@/Constants/ElementIDs'
import { useMemo } from 'react'
type Props = {
bytes: Uint8Array
}
const TextPreview = ({ bytes }: Props) => {
const text = useMemo(() => {
const textDecoder = new TextDecoder()
return textDecoder.decode(bytes)
}, [bytes])
return (
<texta... | /content/code_sandbox/packages/web/src/javascripts/Components/FilePreview/TextPreview.tsx | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 141 |
```xml
<Project Sdk="Microsoft.NET.Sdk.Razor">
<ItemGroup>
<Content Remove="bundleconfig.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="bundleconfig.json" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\SimplCommerce.Infrastructure\SimplCommerce.Infrastructure.csproj"... | /content/code_sandbox/src/Modules/SimplCommerce.Module.PaymentCoD/SimplCommerce.Module.PaymentCoD.csproj | xml | 2016-05-21T13:43:01 | 2024-08-16T16:44:29 | SimplCommerce | simplcommerce/SimplCommerce | 4,173 | 173 |
```xml
import { PassThrough } from 'stream';
import { maybeStringify, Configuration, KeyValueStore } from '@crawlee/core';
import type { Dictionary } from '@crawlee/utils';
import { MemoryStorageEmulator } from 'test/shared/MemoryStorageEmulator';
const localStorageEmulator = new MemoryStorageEmulator();
beforeEach(... | /content/code_sandbox/test/core/storages/key_value_store.test.ts | xml | 2016-08-26T18:35:03 | 2024-08-16T16:40:08 | crawlee | apify/crawlee | 14,153 | 4,323 |
```xml
import React, { useLayoutEffect } from "react"
import { useNavigation } from "@react-navigation/native"
import { Header, HeaderProps } from "../components"
/**
* A hook that can be used to easily set the Header of a react-navigation screen from within the screen's component.
* @see [Documentation and Examples... | /content/code_sandbox/boilerplate/app/utils/useHeader.tsx | xml | 2016-02-10T16:06:07 | 2024-08-16T19:52:51 | ignite | infinitered/ignite | 17,196 | 187 |
```xml
// Composables
import { useProxiedModel } from '../proxiedModel'
// Utilities
import { describe, expect, it } from '@jest/globals'
import { mount } from '@vue/test-utils'
import { defineComponent, h } from 'vue'
const TestComponent = defineComponent({
props: {
foo: String,
},
emits: ['update:foo'],
... | /content/code_sandbox/packages/vuetify/src/composables/__tests__/proxiedModel.spec.ts | xml | 2016-09-12T00:39:35 | 2024-08-16T20:06:39 | vuetify | vuetifyjs/vuetify | 39,539 | 1,306 |
```xml
import { FC } from 'react';
import isEmpty from 'ramda/src/isEmpty';
import styled, { css } from 'styled-components';
import {
Box,
BusyBottom,
Button,
CodeBlock,
Overlay,
QRCodeContainer,
Spinner,
Typography
} from '@components';
import { TxIntermediaryDisplay } from '@components/TransactionFl... | /content/code_sandbox/src/components/SignTransactionWallets/WalletConnect.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 1,717 |
```xml
import "reflect-metadata"
import { DataSource } from "../../src"
export const Sample33CustomRepositoryConnection = new DataSource({
type: "sqlite",
database: "./temp/sqlitedb-1.db",
logging: true,
synchronize: true,
})
``` | /content/code_sandbox/sample/sample33-custom-repository/connection.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 54 |
```xml
import * as vscode from 'vscode'
import { constructCommandString, registerCommand, setContext } from '../utils'
const LINE_INF = 9999
export enum GlyphChars {
MuchLessThan = '\u226A',
LessThan = '\u003C',
GreaterThan = '\u003E',
MuchGreaterThan = '\u226B',
BallotX = '\u2717'
}
export enum ... | /content/code_sandbox/src/interactive/results.ts | xml | 2016-06-21T19:13:54 | 2024-08-14T06:10:47 | julia-vscode | julia-vscode/julia-vscode | 1,277 | 3,293 |
```xml
import {
NEXT_INTERCEPTION_MARKER_PREFIX,
NEXT_QUERY_PARAM_PREFIX,
} from '../../../../lib/constants'
import { INTERCEPTION_ROUTE_MARKERS } from '../../../../server/lib/interception-routes'
import { escapeStringRegexp } from '../../escape-regexp'
import { removeTrailingSlash } from './remove-trailing-slash'
... | /content/code_sandbox/packages/next/src/shared/lib/router/utils/route-regex.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 2,234 |
```xml
/*
* @license Apache-2.0
*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
// TypeScript Version: 4.1
/// <reference types="@stdlib/types"/>
import { Iterator as Iter, IterableIterator } ... | /content/code_sandbox/lib/node_modules/@stdlib/math/iter/special/beta/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 427 |
```xml
/*
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except accor... | /content/code_sandbox/framework/test/functional/utils/application.ts | xml | 2016-02-01T21:45:35 | 2024-08-15T19:16:48 | lisk-sdk | LiskArchive/lisk-sdk | 2,721 | 1,508 |
```xml
import { Component, OnInit, inject } from '@angular/core';
import { DocumentData, DocumentSnapshot, QueryDocumentSnapshot, Timestamp, docData } from '@angular/fire/firestore';
import { ActivatedRoute } from '@angular/router';
import { Observable, firstValueFrom, switchMap } from 'rxjs';
import { Stop, Travel } f... | /content/code_sandbox/webframework/src/app/pages/edit-travels/edit-travels.component.ts | xml | 2016-04-26T17:13:59 | 2024-08-08T20:21:32 | codelab-friendlychat-web | firebase/codelab-friendlychat-web | 1,750 | 560 |
```xml
<resources xmlns:tools="path_to_url">
<style name="SplashScreenTheme" parent="SplashScreen_SplashTheme">
<item name="android:navigationBarColor" tools:targetApi="21">@android:color/transparent</item>
<item name="android:statusBarColor" tools:targetApi="21">@android:color/transparent</item>
... | /content/code_sandbox/packages/mobile/android/app/src/main/res/values/styles.xml | xml | 2016-11-30T23:24:21 | 2024-08-16T00:24:59 | devhub | devhubapp/devhub | 9,652 | 305 |
```xml
import { Chart } from '@antv/g2';
const chart = new Chart({
container: 'container',
});
chart.data({
type: 'fetch',
value:
'path_to_url
transform: [
{ type: 'filter', callback: (d) => d['change in male rate'] !== 'NA' },
],
});
chart.lineX().data([0]);
chart.lineY().data([0]);
chart
.rang... | /content/code_sandbox/site/examples/annotation/line/demo/quadrant-scatter.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 518 |
```xml
/**
*/
import axios from '@nextcloud/axios'
import { generateOcsUrl } from '@nextcloud/router'
import type { acceptShareResponse, getSharesResponse, rejectShareResponse, getCapabilitiesResponse } from '../types'
/**
* Fetches list of shares for a current user
*
* @param [options] options;
*/
const getSha... | /content/code_sandbox/src/services/federationService.ts | xml | 2016-09-01T08:08:37 | 2024-08-16T18:09:32 | spreed | nextcloud/spreed | 1,593 | 362 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="path_to_url">
<corners android:radius="6dp" />
<solid android:color="@color/white_grey_800" />
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/background_ask_for_display_over.xml | xml | 2016-05-04T11:46:20 | 2024-08-15T16:29:10 | android | meganz/android | 1,537 | 64 |
```xml
import * as React from 'react';
import {
useController,
UseControllerProps,
useFormState,
} from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';
import * as z from 'zod';
import polyglotI18nProvider from 'ra-i18n-polyglot';
import englishMessages from 'ra-language-english';
... | /content/code_sandbox/packages/ra-core/src/form/Form.stories.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 2,750 |
```xml
import { AveragePipe } from './average';
describe('AveragePipe', () => {
let pipe: AveragePipe;
beforeEach(() => {
pipe = new AveragePipe();
});
it('should not do anything if array contain anything else than numbers', () => {
expect(pipe.transform([Infinity])).toEqual(NaN);
expect(pipe.tra... | /content/code_sandbox/src/ng-pipes/pipes/math/average.spec.ts | xml | 2016-11-24T22:03:44 | 2024-08-15T12:52:49 | ngx-pipes | danrevah/ngx-pipes | 1,589 | 172 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="2.1.0" />
<PackageReference Include="Amazon.Lambda.TestUtilities" Version="2.0.0" />
<PackageReference Incl... | /content/code_sandbox/Blueprints/BlueprintDefinitions/vs2019/SimpleDynamoDBFunction/template/test/BlueprintBaseName.1.Tests/BlueprintBaseName.1.Tests.csproj | xml | 2016-11-11T20:43:34 | 2024-08-15T16:57:53 | aws-lambda-dotnet | aws/aws-lambda-dotnet | 1,558 | 229 |
```xml
/**
* @license
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import { describe, it, expect } from "vitest";
import type { TransformedBoundingBox } from "#src/coordinate_transform.j... | /content/code_sandbox/src/coordinate_transform.spec.ts | xml | 2016-05-27T02:37:25 | 2024-08-16T07:24:25 | neuroglancer | google/neuroglancer | 1,045 | 3,072 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Given a path and some optional additional query parameters, create the dev server bundle URL.
* @param bundlePath like `/foobar`
* @param params like `{ platform: "we... | /content/code_sandbox/packages/@expo/metro-runtime/src/async-require/buildUrlForBundle.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 232 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="path_to_url">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{fbc66ce1-01e9-488f-a71b-190cf51de15b}</UniqueIdentifier>
<Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions>
</Filter>
<Filter I... | /content/code_sandbox/Sources/LWSkaExporter/LWSkaExporter.vcxproj.filters | xml | 2016-03-11T13:28:40 | 2024-08-15T13:54:18 | Serious-Engine | Croteam-official/Serious-Engine | 3,021 | 1,992 |
```xml
var e = 10;
function sum(a){
return function(b){
return function(c){
return function(d){
return a + b + c + d + e;
}
}
}
}
var f1 = sum(1);
var f2 = f1(2);
var f3 = f2(3);
var f4 = f3(4);
console.log(f4);
``` | /content/code_sandbox/tests/funcs/nested8.ts | xml | 2016-07-24T23:05:37 | 2024-08-12T19:23:59 | ts2c | andrei-markeev/ts2c | 1,252 | 85 |
```xml
import { useToast } from "dialog-hooks"
import { ChangeEvent } from "react"
import { createSong, openSong, saveSong } from "../actions"
import { openFile, saveFile, saveFileAs } from "../actions/file"
import { useLocalization } from "../localize/useLocalization"
import { useStores } from "./useStores"
export co... | /content/code_sandbox/app/src/hooks/useSongFile.ts | xml | 2016-03-06T15:19:53 | 2024-08-15T14:27:10 | signal | ryohey/signal | 1,238 | 317 |
```xml
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { TieredMenuDemo } from './tieredmenudemo';
@NgModule({
imports: [RouterModule.forChild([{ path: '', component: TieredMenuDemo }])],
exports: [RouterModule]
})
export class TieredMenuDemoRoutingModule {}
``... | /content/code_sandbox/src/app/showcase/pages/tieredmenu/tieredmenudemo-routing.module.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 70 |
```xml
import React from 'react';
import createTextAlignmentButton from '../utils/createTextAlignmentButton';
export default createTextAlignmentButton({
alignment: 'right',
children: (
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="path_to_url"
>
<path d="M3 21h18v-2H3... | /content/code_sandbox/packages/buttons/src/components/AlignTextRightButton.tsx | xml | 2016-02-26T09:54:56 | 2024-08-16T18:16:31 | draft-js-plugins | draft-js-plugins/draft-js-plugins | 4,087 | 172 |
```xml
import { Pipe, PipeTransform } from '@angular/core';
import { extractDeepPropertyByMapKey, isFunction } from '../helpers/helpers';
@Pipe({ name: 'groupBy' })
export class GroupByPipe implements PipeTransform {
transform(input: any, discriminator: any = [], delimiter: string = '|'): any {
if (!Array.isArra... | /content/code_sandbox/src/ng-pipes/pipes/array/group-by.ts | xml | 2016-11-24T22:03:44 | 2024-08-15T12:52:49 | ngx-pipes | danrevah/ngx-pipes | 1,589 | 269 |
```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/JoyStickMouse/TrueSTUDIO/STM32L152D-EVAL/STM32L152D-EVAL.elf.launch | xml | 2016-08-10T15:31:26 | 2024-08-16T13:06:40 | Avem | avem-labs/Avem | 1,930 | 1,410 |
```xml
<manifest xmlns:android="path_to_url"
package="com.airbnb.epoxy.preloader" />
``` | /content/code_sandbox/epoxy-glide-preloader/src/main/AndroidManifest.xml | xml | 2016-08-08T23:05:11 | 2024-08-16T16:11:07 | epoxy | airbnb/epoxy | 8,486 | 23 |
```xml
import { getMetadataArgsStorage } from "../../globals"
import { TableMetadataArgs } from "../../metadata-args/TableMetadataArgs"
import { ViewEntityOptions } from "../options/ViewEntityOptions"
import { ObjectUtils } from "../../util/ObjectUtils"
/**
* This decorator is used to mark classes that will be an ent... | /content/code_sandbox/src/decorator/entity-view/ViewEntity.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 403 |
```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 negafibonacci = require( './index' );
// TESTS //
// The function returns a number...
{
negafibonacci( ... | /content/code_sandbox/lib/node_modules/@stdlib/math/base/special/negafibonacci/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 250 |
```xml
import { MockProxy } from "jest-mock-extended";
import { MigrationHelper } from "../migration-helper";
import { mockMigrationHelper, runMigrator } from "../migration-helper.spec";
import { AutoConfirmFingerPrintsMigrator } from "./43-move-auto-confirm-finger-prints-to-state-provider";
function rollbackJSON() ... | /content/code_sandbox/libs/common/src/state-migrations/migrations/43-move-auto-confirm-finger-prints-to-state-provider.spec.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 667 |
```xml
import {
render,
screen,
userEvent,
within,
} from '@testing-library/react-native';
import CreditCardInput from '../CreditCardInput';
describe('CreditCardInput', () => {
let onChange: ReturnType<typeof jest.fn>;
let user: ReturnType<typeof userEvent.setup>;
let cardInput: ReturnType<typeof within>... | /content/code_sandbox/src/__tests__/CreditCardInput.test.tsx | xml | 2016-09-01T05:39:55 | 2024-08-13T14:23:48 | react-native-credit-card-input | sbycrosz/react-native-credit-card-input | 1,449 | 951 |
```xml
/** */
angular
.module('directive')
.directive('addshard', addshard);
function addshard($compile, $window) {
return {
restrict: 'E',
templateUrl: '../../views/directives/add-shard.html',
transclude: true,
replace: true
// TODO [marsqing] move shard create/de... | /content/code_sandbox/redis/redis-console/src/main/resources/static/scripts/directives/add-shard.ts | xml | 2016-03-29T12:22:36 | 2024-08-12T11:25:42 | x-pipe | ctripcorp/x-pipe | 1,977 | 87 |
```xml
import dedent from 'dedent-js';
import { format as originalFormat, FormatFn } from '../src/sqlFormatter.js';
import behavesLikeSqlFormatter from './behavesLikeSqlFormatter.js';
import supportsCreateTable from './features/createTable.js';
import supportsDropTable from './features/dropTable.js';
import supportsA... | /content/code_sandbox/test/transactsql.test.ts | xml | 2016-09-12T13:09:04 | 2024-08-16T10:30:12 | sql-formatter | sql-formatter-org/sql-formatter | 2,272 | 1,421 |
```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/electron/renderer/src/components/IsOnline/IsOnline.tsx | xml | 2016-07-26T13:55:48 | 2024-08-16T03:45:51 | wire-desktop | wireapp/wire-desktop | 1,075 | 287 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.