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
/**
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "FBObjectiveCNSCFTimer.h"
#import <objc/runtime.h>
#import "FBRetainCycleDetector.h"
#import "FBRetainCycleUtils.h"
@implementation FB... | /content/code_sandbox/FBRetainCycleDetector/Graph/Specialization/FBObjectiveCNSCFTimer.mm | xml | 2016-04-07T18:17:16 | 2024-08-07T03:44:31 | FBRetainCycleDetector | facebook/FBRetainCycleDetector | 4,206 | 390 |
```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.
-->
<resources>
<style name="LinearLayout">
<item name="android:gravity">center</item>
<item... | /content/code_sandbox/spacetablayout/src/main/res/values/styles.xml | xml | 2016-10-27T20:27:05 | 2024-08-15T10:10:43 | SpaceTabLayout | long1eu/SpaceTabLayout | 1,601 | 112 |
```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 name="Theme.Material3.DayNight.SideSheetDialog" parent="Theme.... | /content/code_sandbox/lib/java/com/google/android/material/sidesheet/res/values/themes_daynight.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 118 |
```xml
import { Entity } from "../../../../../../src/decorator/entity/Entity"
import { Column } from "../../../../../../src/decorator/columns/Column"
import { ObjectIdColumn } from "../../../../../../src/decorator/columns/ObjectIdColumn"
import { Counters } from "./Counters"
import { ObjectId } from "../../../../../../... | /content/code_sandbox/test/functional/mongodb/basic/embedded-columns/entity/Post.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 126 |
```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/page/MainContent/panels/preferences/accountPreferences/AccountLink.tsx | xml | 2016-07-21T15:34:05 | 2024-08-16T11:40:13 | wire-webapp | wireapp/wire-webapp | 1,125 | 447 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>NodeSelector</class>
<widget class="QDialog" name="NodeSelector">
<property name="windowModality">
<enum>Qt::NonModal</enum>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>48... | /content/code_sandbox/src/MEGASync/gui/node_selector/gui/linux/NodeSelector.ui | xml | 2016-02-10T18:28:05 | 2024-08-16T19:36:44 | MEGAsync | meganz/MEGAsync | 1,593 | 4,464 |
```xml
import isEmpty from 'lodash/isEmpty';
import {MarkedDates} from '../../../src/types';
const today = new Date().toISOString().split('T')[0];
const fastDate = getPastDate(3);
const futureDates = getFutureDates(12);
const dates = [fastDate, today].concat(futureDates);
function getFutureDates(numberOfDays: number)... | /content/code_sandbox/example/src/mocks/agendaItems.ts | xml | 2016-11-11T12:17:27 | 2024-08-16T16:43:58 | react-native-calendars | wix/react-native-calendars | 9,403 | 1,117 |
```xml
export interface IChatModeratorInfo {
threadId: string;
moderatorAccessToken : string
moderatorUserId: string;
email: string;
pageUrl?:string;
}
``` | /content/code_sandbox/samples/react-roomchat/src/models/IChatModeratorInfo.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 39 |
```xml
import { FragmentType, useFragment, graphql } from './gql';
export const FilmFragment = graphql(/* GraphQL */ `
fragment FilmItem on Film {
id
title
releaseDate
producers
}
`);
const Film = (props: {
/* tweet property has the correct type */
film: FragmentType<typeof FilmFragment>;
}) ... | /content/code_sandbox/examples/react/http-executor/src/Film.tsx | xml | 2016-12-05T19:15:11 | 2024-08-15T14:56:08 | graphql-code-generator | dotansimha/graphql-code-generator | 10,759 | 131 |
```xml
import vtkXMLReader, { IXMLReaderInitialValues } from '../XMLReader';
/**
*
*/
export interface IXMLImageDataReaderInitialValues
extends IXMLReaderInitialValues {
dataType?: string;
}
export interface vtkXMLImageDataReader extends vtkXMLReader {
/**
* Parse data as XML.
* @param rootElem
* @pa... | /content/code_sandbox/Sources/IO/XML/XMLImageDataReader/index.d.ts | xml | 2016-05-02T15:44:11 | 2024-08-15T19:53:44 | vtk-js | Kitware/vtk-js | 1,200 | 353 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
import { Component, Input } from '@angular/core';
import { UntypedFormGroup } from '@angular/forms';
import { FieldDto, GeolocationFieldPropertiesDto } from '@app/shared';
@Component({
standalone: true,
selector: 'sqx-geolocation-validation',
styleUrls:... | /content/code_sandbox/frontend/src/app/features/schemas/pages/schema/fields/types/geolocation-validation.component.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 151 |
```xml
import {
commonCampaignInputs,
commonCampaignTypes,
commonFilters,
commonFilterTypes,
paginateTypes
} from './common';
export const types = `
type LotteryCampaign @key(fields: "_id") @cacheControl(maxAge: 3) {
_id: String,
${commonCampaignTypes}
numberFormat: String,
buyScore: Float... | /content/code_sandbox/packages/plugin-loyalties-api/src/graphql/schema/lotteryCampaign.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 342 |
```xml
<!--
Description: feed copyright content xml:base
-->
<feed version="0.3" xmlns="path_to_url#">
<copyright type="application/xhtml+xml" xml:base="path_to_url"><div xmlns="path_to_url">Example <a href="test.html">test</a></div></copyright>
</feed>
``` | /content/code_sandbox/testdata/parser/atom/feed_copyright_xml_base.xml | xml | 2016-01-23T02:44:34 | 2024-08-16T15:16:03 | gofeed | mmcdole/gofeed | 2,547 | 70 |
```xml
import { c } from 'ttag';
import type { Props } from '@proton/components/components/drawer/drawerAppButtons/DrawerAppButton';
import DrawerAppButton from '@proton/components/components/drawer/drawerAppButtons/DrawerAppButton';
import { useDrawer } from '@proton/components/hooks';
import { DRAWER_NATIVE_APPS } f... | /content/code_sandbox/packages/components/components/drawer/drawerAppButtons/ContactDrawerAppButton.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 279 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<delete>
<host:delete
xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>ns1.example.tld</host:name>
</host:delete>
</delete>
<extension>
<metadata:metadata xmlns:metadata="urn:google:params:xml:ns:metadat... | /content/code_sandbox/core/src/test/resources/google/registry/tools/server/host_delete_by_registrar.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 168 |
```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/elements/lisk-p2p/test/functional/blacklist_whitelist_fixed_peers.spec.ts | xml | 2016-02-01T21:45:35 | 2024-08-15T19:16:48 | lisk-sdk | LiskArchive/lisk-sdk | 2,721 | 2,946 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
path_to_url
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<project xmlns="path_to_url" xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_... | /content/code_sandbox/src/site/site.xml | xml | 2016-11-11T15:22:00 | 2024-08-15T19:57:41 | mybatis-dynamic-sql | mybatis/mybatis-dynamic-sql | 1,082 | 739 |
```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.
*/
/* eslint-disable max-classes-per-file */
import * as React from "react";
import { Menu, MenuItem } from "@blueprintjs/core";
im... | /content/code_sandbox/packages/docs-app/src/examples/table-examples/tableSortableExample.tsx | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 2,032 |
```xml
/*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, a... | /content/code_sandbox/src/templates/assets/javascripts/components/index.ts | xml | 2016-01-28T22:09:23 | 2024-08-16T17:55:06 | mkdocs-material | squidfunk/mkdocs-material | 19,629 | 322 |
```xml
export enum MutationType {
UpdateUserTimestamps = 1,
/**
* The item was changed as part of an internal operation, such as a migration, or, a user
* interaction that shouldn't modify timestamps (pinning, protecting, etc).
*/
NoUpdateUserTimestamps = 2,
/**
* The item was changed as part of an ... | /content/code_sandbox/packages/models/src/Domain/Abstract/Item/Types/MutationType.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 135 |
```xml
declare interface IPowerBiEmbeddedStrings {
PropertyPaneDescription: string;
BasicGroupName: string;
DescriptionFieldLabel: string;
}
declare module 'powerBiEmbeddedStrings' {
const strings: IPowerBiEmbeddedStrings;
export = strings;
}
``` | /content/code_sandbox/samples/js-powerbi-embedded/src/webparts/powerBiEmbedded/loc/mystrings.d.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 55 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import type {FunctionComponent, PropsWithChildren} from 'react';
import {createContext, useContext, useEffect} from 'react';
/* eslint-disable no-bitwise */
type Modifiers ... | /content/code_sandbox/addons/shared/KeyboardShortcuts.tsx | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 1,122 |
```xml
export default function Page({ params: { id } }) {
return <p>{id}</p>
}
``` | /content/code_sandbox/test/e2e/app-dir/disable-logging-route/app/[id]/page.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 23 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>SearchHelpWidget</class>
<widget class="QFrame" name="SearchHelpWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>397</width>
<height>264</height>
</rect>
</property>
<property name="windowTitle">
... | /content/code_sandbox/src/gui/SearchHelpWidget.ui | xml | 2016-02-28T15:52:40 | 2024-08-16T19:26:56 | keepassxc | keepassxreboot/keepassxc | 20,477 | 3,017 |
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Grpc.AspNetCore.Server" Version="2.64.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Apache.Arrow.Flight\Apache.Arrow.Flight.c... | /content/code_sandbox/csharp/src/Apache.Arrow.Flight.AspNetCore/Apache.Arrow.Flight.AspNetCore.csproj | xml | 2016-02-17T08:00:23 | 2024-08-16T19:00:48 | arrow | apache/arrow | 14,094 | 97 |
```xml
const baz = foo?.bar?.()?.[1] ?? 'qux';
qux()?.map()
const directiveRanges = comments?.map(tryParseTSDirective)
const qux = quux(corge?.cov());
input?.id!.toString();
bar?.baz[0]
state.stats[organization?.organization_id] = action.payload.stats;
// path_to_url
delete myVariable?.[indexer];
void foo?.();... | /content/code_sandbox/packages/instrumenter/testResources/instrumenter/optional-chains.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 92 |
```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;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</F... | /content/code_sandbox/samples/features/sqlvdi/snapshot/snapshot.vcxproj.filters | xml | 2016-03-11T21:42:56 | 2024-08-16T09:31:00 | sql-server-samples | microsoft/sql-server-samples | 9,855 | 410 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.... | /content/code_sandbox/application/src/main/data/lwm2m-registry/3404.xml | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,247 |
```xml
import standardDeviation from "./index"
//OK
standardDeviation(3, 2, 1);
standardDeviation([1, 2, 3, 2, 4, 1]);
standardDeviation(1, 2, 3, 4, 5, -6);
standardDeviation([1, 2, 3, 4, 9]);
//OK But throws
standardDeviation([4]);
standardDeviation([]);
standardDeviation()
// @ts-expect-error
standardDeviation(["... | /content/code_sandbox/packages/array-standard-deviation/index.tests.ts | xml | 2016-06-26T02:04:54 | 2024-08-15T00:08:43 | just | angus-c/just | 5,974 | 162 |
```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 the expected value of a degenerate distribution.
*
* @param mu - constan... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/degenerate/mean/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 197 |
```xml
// The Turbopack HMR client can't be properly omitted at the moment (WEB-1589),
// so instead we remap its import to this file in webpack builds.
export function connect() {}
``` | /content/code_sandbox/packages/next/src/client/dev/noop-turbopack-hmr.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 44 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageButton
android:id="@id/exo_play"
style="@style/ExoMediaBut... | /content/code_sandbox/app/src/main/res/layout/exo_player_control_view.xml | xml | 2016-04-09T15:47:45 | 2024-08-14T04:30:04 | MusicLake | caiyonglong/MusicLake | 2,654 | 671 |
```xml
import { ComponentProps } from 'react';
import { simpleRender, waitFor } from 'test-utils';
import SignTransaction from '@features/SendAssets/components/SignTransaction';
import { fTxConfig } from '@fixtures';
import { WalletId } from '@types';
import { getHeader } from './helper';
const defaultProps: Compon... | /content/code_sandbox/src/components/SignTransactionWallets/__tests__/SignTransactionTrezor.test.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 320 |
```xml
export * from "./interfaces/index";
export * from "./enums/index";
export * from "./models/index";
export * from "./services/PrismaService";
export * from "./repositories/index";
``` | /content/code_sandbox/packages/orm/prisma/test/snapshots/generate_code/index.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 39 |
```xml
// automatically generated by the FlatBuffers compiler, do not modify
import * as flatbuffers from 'flatbuffers';
import { Precision } from './precision.js';
export class FloatingPoint {
bb: flatbuffers.ByteBuffer|null = null;
bb_pos = 0;
__init(i:number, bb:flatbuffers.ByteBuffer):FloatingPoint {
th... | /content/code_sandbox/js/src/fb/floating-point.ts | xml | 2016-02-17T08:00:23 | 2024-08-16T19:00:48 | arrow | apache/arrow | 14,094 | 360 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns="path_to_url"
xmlns:activiti="path_to_url"
targetNamespace="Examples">
<process id="exclusive">
<startEvent id="theStart" />
<sequenceFlow sourceRef="theStart" targetRef="fork" />
<parallelGateway id="fork" />
<seque... | /content/code_sandbox/modules/flowable5-test/src/test/resources/org/activiti/engine/test/bpmn/exclusive/ExclusiveTaskTest.testExclusiveServiceConcurrent.bpmn20.xml | xml | 2016-10-13T07:21:43 | 2024-08-16T15:23:14 | flowable-engine | flowable/flowable-engine | 7,715 | 526 |
```xml
import eighties from '../../../../resources/musicgenresicons/outline/80\'s.svg';
import nineties from '../../../../resources/musicgenresicons/outline/90\'s.svg';
import acoustic from '../../../../resources/musicgenresicons/outline/acoustic.svg';
import blues from '../../../../resources/musicgenresicons/outline/b... | /content/code_sandbox/packages/app/app/components/Dashboard/GenresTab/mapGenres.ts | xml | 2016-09-22T22:58:21 | 2024-08-16T15:47:39 | nuclear | nukeop/nuclear | 11,862 | 886 |
```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/iter/pipeline-thunk/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 366 |
```xml
/*
* path_to_url
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
*/
import { expect } from 'chai';
import { PlainTextContentHelper } from '../../lib/response/PlainTextContentHelper';
describe('Pl... | /content/code_sandbox/ask-sdk-core/tst/response/PlainTextContentHelper.spec.ts | xml | 2016-06-24T06:26:05 | 2024-08-14T12:39:19 | alexa-skills-kit-sdk-for-nodejs | alexa/alexa-skills-kit-sdk-for-nodejs | 3,118 | 462 |
```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 dnanmax = require( './index' );
// TESTS //
// The function returns a number...
{
const x = new Float64... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dnanmax/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 1,733 |
```xml
export interface IListProvisioningProps {
description: string;
}
``` | /content/code_sandbox/samples/react-feature-framework/src/webparts/listProvisioning/components/IListProvisioningProps.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 15 |
```xml
/**
* Run function with `scroll-behavior: auto` applied to `<html/>`.
* This css change will be reverted after the function finishes.
*/
export function handleSmoothScroll(
fn: () => void,
options: { dontForceLayout?: boolean; onlyHashChange?: boolean } = {}
) {
// if only the hash is changed, we don't ... | /content/code_sandbox/packages/next/src/shared/lib/router/utils/handle-smooth-scroll.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 231 |
```xml
import { IConversionStage } from "@erxes/ui-sales/src/boards/types";
import { __ } from "@erxes/ui/src/utils/core";
import Stage from "../../../containers/conversion/Stage";
import * as React from "react";
import { HeadRow, TableView } from "../style";
type Props = {
stages: IConversionStage[];
pipelineId: ... | /content/code_sandbox/packages/plugin-sales-ui/src/deals/components/conversion/table/Table.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 223 |
```xml
<?xml version="1.0"?>
<!--
14x28 fullbody detector (see the detailed description below).
//////////////////////////////////////////////////////////////////////////
| IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
| By downloading, copying, installing or using the software you agree
| ... | /content/code_sandbox/Opencv_pil/source36/cv2/data/haarcascade_fullbody.xml | xml | 2016-10-19T18:22:39 | 2024-07-29T07:53:55 | lambda-packs | ryfeus/lambda-packs | 1,107 | 182,098 |
```xml
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as data from "./data";
import * as sui from "./sui";
import * as core from "./core";
import { fireClickOnEnter } from "./util";
export interface WebCamProps {
close: () => void;
}
export interface WebCamState {
devices?: Me... | /content/code_sandbox/webapp/src/greenscreen.tsx | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 1,195 |
```xml
import * as React from 'react';
import {
StackedBarChart,
IChartProps,
IChartDataPoint,
DataVizPalette,
getColorFromToken,
} from '@fluentui/react-charting';
import { DefaultPalette } from '@fluentui/react/lib/Styling';
export class StackedBarChartBenchmarkExample extends React.Component<{}, {}> {
p... | /content/code_sandbox/packages/react-examples/src/react-charting/StackedBarChart/StackedBarChart.Benchmark.Example.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 217 |
```xml
import typeDefs from './graphql/typeDefs';
import resolvers from './graphql/resolvers';
import { generateModels } from './connectionResolver';
import { setupMessageConsumers } from './messageBroker';
import { getSubdomain } from '@erxes/api-utils/src/core';
import segments from './segments';
import forms from '.... | /content/code_sandbox/packages/plugin-reactions-api/src/configs.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 180 |
```xml
/**
* @license
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, ... | /content/code_sandbox/packages/mdc-data-table/component.ts | xml | 2016-12-05T16:04:09 | 2024-08-16T15:42:22 | material-components-web | material-components/material-components-web | 17,119 | 2,947 |
```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 type { HeadingNode, PageNode } from "@documentalist/client";
import { filter } from "fuzzaldrin-plus";
import * as React fr... | /content/code_sandbox/packages/docs-theme/src/components/navigator.tsx | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 786 |
```xml
declare module 'hkdf' {
export default class HKDF {
constructor(hashAlg: string, salt: string, ikm: string);
derive(info: string, length: number, cb: (buffer: Buffer) => void): void;
}
}
``` | /content/code_sandbox/packages/insomnia/types/hkdf.d.ts | xml | 2016-04-23T03:54:26 | 2024-08-16T16:50:44 | insomnia | Kong/insomnia | 34,054 | 56 |
```xml
import * as React from 'react';
import createSvgIcon from '../utils/createSvgIcon';
const MailSolidIcon = createSvgIcon({
svg: ({ classes }) => (
<svg xmlns="path_to_url" viewBox="0 0 2048 2048" className={classes.svg} focusable="false">
<path d="M2048 384v85L1024 981 0 469v-85h2048zm-1024 811l1024-... | /content/code_sandbox/packages/react-icons-mdl2/src/components/MailSolidIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 141 |
```xml
import { useQuery } from "@apollo/client"
import { queries } from "../graphql"
import { IFeed } from "../types"
export interface IUsePosts {
loading: boolean
totalCount: number
events: IFeed[]
handleLoadMore: () => void
}
export const useEvents = (): IUsePosts => {
const { data, loading, fetchMore }... | /content/code_sandbox/exm-web/modules/feed/hooks/useEvent.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 326 |
```xml
import dayjs from 'dayjs';
import { __ } from 'coreui/utils';
import _ from 'lodash';
import React from 'react';
import { ExtraRow, DidAmount, WillAmount } from '../../styles';
import { ITransaction } from '../../../transactions/types';
type Props = {
transaction: ITransaction;
};
function ScheduleRow({ tra... | /content/code_sandbox/packages/plugin-savings-ui/src/contracts/components/schedules/ScheduleRow.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 213 |
```xml
import { computeNextBackoffInterval } from '@ide/backoff';
import * as Application from 'expo-application';
import { CodedError, Platform, UnavailabilityError } from 'expo-modules-core';
import ServerRegistrationModule from '../ServerRegistrationModule';
import { DevicePushToken } from '../Tokens.types';
const... | /content/code_sandbox/packages/expo-notifications/src/utils/updateDevicePushTokenAsync.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 988 |
```xml
import React from 'react';
import { render } from '@testing-library/react';
import { createMemoryHistory } from 'history';
import { buildStoreState } from '../../../test/storeBuilders';
import MainContentContainer from '../MainContentContainer';
import { AnyProps, configureMockStore, setupI18Next, TestRouterPro... | /content/code_sandbox/packages/app/app/containers/SearchResultsContainer/SearchResultsContainer.test.tsx | xml | 2016-09-22T22:58:21 | 2024-08-16T15:47:39 | nuclear | nukeop/nuclear | 11,862 | 349 |
```xml
/*
* Planck.js
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, ... | /content/code_sandbox/src/collision/TimeOfImpact.ts | xml | 2016-03-22T04:46:05 | 2024-08-16T07:41:00 | planck.js | piqnt/planck.js | 4,864 | 4,219 |
```xml
type DerivedStateActions = "nextState" | "resolve";
type DerivedStateMessage = {
id: string;
action: DerivedStateActions;
data?: string; // Json stringified TTo
originator: "foreground" | "background";
};
``` | /content/code_sandbox/apps/browser/src/platform/state/port-message.d.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 56 |
```xml
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.delete(editor, { reverse: true })
}
export const input = (
<editor>
<block void>
<text />
</block>
<block>
<cursor />
</block>
</editor>
)
export const ou... | /content/code_sandbox/packages/slate/test/transforms/delete/voids-false/block-after-reverse.tsx | xml | 2016-06-18T01:52:42 | 2024-08-16T18:43:42 | slate | ianstormtaylor/slate | 29,492 | 108 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="path_to_url">
<gradient
android:angle="270"
android:endColor="@android:color/transparent"
android:startColor="@color/gradient_grey_start"/>
</shape>
``` | /content/code_sandbox/app/src/main/res/drawable/gradient_background_flipped.xml | xml | 2016-07-12T20:06:21 | 2024-08-16T13:08:21 | Simple-File-Manager | SimpleMobileTools/Simple-File-Manager | 1,490 | 62 |
```xml
<vector android:height="12dp" android:viewportHeight="200.0"
android:viewportWidth="200.0" android:width="12dp" xmlns:android="path_to_url">
<path android:fillColor="#fff" android:pathData="M138.41,105.45c2.28,0.56 4.67,1.09 7.39,2.69 -0.5,3.13 4.18,3.54 4.03,8.06 -0.21,6.38 -7.16,7.56 -13.43,6.71 0.74,4... | /content/code_sandbox/app/src/main/res/drawable-night/icon_wind.xml | xml | 2016-02-20T13:10:14 | 2024-08-14T07:53:05 | SeeWeather | xcc3641/SeeWeather | 3,448 | 2,215 |
```xml
import type { Element } from '../dom/element.js';
import type { Style } from '../dom/style.js';
export function getComputedStyle(element: Element): Style {
return element.style;
}
``` | /content/code_sandbox/packages/miniapp-runtime/src/bom/getComputedStyle.ts | xml | 2016-11-03T06:59:15 | 2024-08-16T10:11:29 | ice | alibaba/ice | 17,815 | 40 |
```xml
import * as compose from 'lodash.flowright';
import {
AddMutationResponse,
EmailTemplatesQueryResponse,
IEngageMessageDoc,
} from '@erxes/ui-engage/src/types';
import { Alert, withProps } from '@erxes/ui/src/utils';
import {
MESSAGE_KINDS,
MESSENGER_KINDS,
METHODS,
SENT_AS_CHOICES,
} from '@erxes/... | /content/code_sandbox/packages/plugin-engages-ui/src/campaigns/containers/Widget.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 799 |
```xml
// Type definitions for iview 3.3.1
// Project: path_to_url
// Definitions by: yangdan
// Definitions: path_to_url
import Vue, { VNode } from 'vue';
export declare class Page extends Vue {
/**
* .sync
* @default 1
*/
current?: number;
/**
*
* @default 0
*/
total?: number;
/**
*... | /content/code_sandbox/types/page.d.ts | xml | 2016-07-28T01:52:59 | 2024-08-16T10:15:08 | iview | iview/iview | 23,980 | 448 |
```xml
import { Meta, StoryObj } from '@storybook/angular';
import Button from '../../button.component';
const meta: Meta<Button> = {
// title: 'Others / Issues / 12009 unknown component',
component: Button,
};
export default meta;
type Story = StoryObj<Button>;
export const Basic: Story = {
args: { text: 'U... | /content/code_sandbox/code/frameworks/angular/template/stories/others/issues/12009-unknown-component.stories.ts | xml | 2016-03-18T04:23:44 | 2024-08-16T19:22:08 | storybook | storybookjs/storybook | 83,755 | 79 |
```xml
import { requireNativeModule } from 'expo-modules-core';
import { NotificationsEmitterModule } from './NotificationsEmitterModule.types';
export default requireNativeModule<NotificationsEmitterModule>('ExpoNotificationsEmitter');
``` | /content/code_sandbox/packages/expo-notifications/src/NotificationsEmitterModule.native.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 41 |
```xml
/* eslint-disable @typescript-eslint/no-explicit-any */
import * as assert from 'assert';
import { Uri } from 'vscode';
import * as typeMoq from 'typemoq';
import * as path from 'path';
import { Observable } from 'rxjs/Observable';
import * as fs from 'fs';
import * as sinon from 'sinon';
import { IConfiguration... | /content/code_sandbox/src/test/testing/testController/pytest/pytestDiscoveryAdapter.unit.test.ts | xml | 2016-01-19T10:50:01 | 2024-08-12T21:05:24 | pythonVSCode | DonJayamanne/pythonVSCode | 2,078 | 2,345 |
```xml
import { useState } from 'react';
import { Button as ButtonUI } from '@mycrypto/ui';
import { Wallet } from '@mycrypto/wallets';
import { AnyAction, bindActionCreators, Dispatch } from '@reduxjs/toolkit';
import { connect, ConnectedProps } from 'react-redux';
import styled from 'styled-components';
import back... | /content/code_sandbox/src/features/SignAndVerifyMessage/SignMessage.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 1,220 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="path_to_url"
xmlns:xsi="path_to_url"
xsi:schemaLocation="path_to_url path_to_url">
<modelVersion>4.0.0</modelVersion>
<groupId>com.us</groupId>
<artifactId>springboot-security0</artifactId>
<version>1.0-SNAPSHOT</version>
... | /content/code_sandbox/springboot-SpringSecurity0/pom.xml | xml | 2016-11-07T02:13:31 | 2024-08-16T08:17:57 | springBoot | 527515025/springBoot | 6,488 | 608 |
```xml
import { useCallback, useEffect, useMemo, useState } from 'react';
import { add, isBefore } from 'date-fns';
import { compact } from 'lodash';
import { c } from 'ttag';
import type { WasmApiWalletAccount, WasmApiWalletTransaction, WasmTransactionDetails } from '@proton/andromeda';
import { WasmSortOrder } from... | /content/code_sandbox/applications/wallet/src/app/components/TransactionList/index.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 3,239 |
```xml
import * as React from 'react';
import { Form, FormInput, FormDropdown, FormButton } from '@fluentui/react-northstar';
import { Formik } from 'formik';
const FormValidateFormik = () => (
<Formik
initialValues={{
firstName: '',
city: '',
}}
validate={values => {
const errors: {
... | /content/code_sandbox/packages/fluentui/react-northstar-prototypes/src/prototypes/FormValidation/Formik.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 389 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com... | /content/code_sandbox/app/src/main/res/layout/content_stock.xml | xml | 2016-07-22T19:30:16 | 2024-08-15T11:03:14 | PinnedSectionItemDecoration | oubowu/PinnedSectionItemDecoration | 2,083 | 154 |
```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<create>
<domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.tld</domain:name>
<domain:period unit="y">2</domain:period>
<domain:ns>... | /content/code_sandbox/core/src/test/resources/google/registry/flows/domain_create_prettyprinted.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 249 |
```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.
*/
/* eslint-disable @typescript-eslint/no-invalid-this */
import isSymmetricMatrix = require( './index' );
// TES... | /content/code_sandbox/lib/node_modules/@stdlib/assert/is-symmetric-matrix/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 370 |
```xml
import { AriaProps, EditorCommand } from '@draft-js-plugins/editor';
import {
DraftHandleValue,
EditorState,
genKey,
SelectionState,
} from 'draft-js';
import PropTypes from 'prop-types';
import React, {
Component,
ComponentType,
CSSProperties,
KeyboardEvent,
ReactElement,
RefAttributes,
} fr... | /content/code_sandbox/packages/mention/src/MentionSuggestions/MentionSuggestions.tsx | xml | 2016-02-26T09:54:56 | 2024-08-16T18:16:31 | draft-js-plugins | draft-js-plugins/draft-js-plugins | 4,087 | 3,182 |
```xml
<Project>
<PropertyGroup>
<AndroidPackageFormat>apk</AndroidPackageFormat>
<AndroidUseDefaultAotProfile>false</AndroidUseDefaultAotProfile>
<MauiUseDefaultAotProfile>false</MauiUseDefaultAotProfile>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)CommonMethods.cs" ... | /content/code_sandbox/src/profiled-aot/Directory.Build.targets | xml | 2016-03-30T15:37:14 | 2024-08-16T19:22:13 | android | dotnet/android | 1,905 | 654 |
```xml
<?xml version="1.0" encoding="utf-8" ?>
<services version="1.0">
<admin version="2.0">
<adminserver hostalias="node1"/>
<logserver hostalias="node1" />
</admin>
<content version="1.0">
<redundancy>1</redundancy>
<documents>
<document type="music" mode="in... | /content/code_sandbox/configserver/src/test/apps/app/services.xml | xml | 2016-06-03T20:54:20 | 2024-08-16T15:32:01 | vespa | vespa-engine/vespa | 5,524 | 226 |
```xml
import "reflect-metadata"
import { expect } from "chai"
import {
closeTestingConnections,
createTestingConnections,
reloadTestingDatabases,
} from "../../../../utils/test-utils"
import { DataSource } from "../../../../../src"
import { Post } from "./entity/Post"
import { DriverUtils } from "../../../... | /content/code_sandbox/test/functional/database-schema/custom-constraint-names/unique/unique.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 978 |
```xml
import * as compose from 'lodash.flowright';
import { Alert, confirm } from '@erxes/ui/src/utils';
import {
IPageDoc,
PageDetailQueryResponse,
PagesAddMutationResponse,
PagesEditMutationResponse,
PagesRemoveMutationResponse,
TypesQueryResponse,
} from '../../types';
import { mutations, queries } fro... | /content/code_sandbox/packages/plugin-webbuilder-ui/src/containers/sites/Detail.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 978 |
```xml
import { FeatureId } from '@/react/portainer/feature-flags/enums';
import { FormSection } from '@@/form-components/FormSection';
import { SwitchField } from '@@/form-components/SwitchField';
import { TextTip } from '@@/Tip/TextTip';
export function LoadBalancerFormSection() {
return (
<FormSection title=... | /content/code_sandbox/app/react/kubernetes/namespaces/components/LoadBalancerFormSection/LoadBalancerFormSection.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 227 |
```xml
set NUTR;
set FOOD;
param cost {FOOD} > 0;
param f_min {FOOD} >= 0;
param f_max {j in FOOD} >= f_min[j];
param n_min {NUTR} >= 0;
param n_max {i in NUTR} >= n_min[i];
param amt {NUTR,FOOD} >= 0;
var Buy {j in FOOD} >= f_min[j], <= f_max[j];
minimize Total_Cost: sum {j in FOOD} cost[j] * Buy[j];
subject to... | /content/code_sandbox/pyomo/solvers/tests/mip/diet.mod | xml | 2016-05-27T19:33:45 | 2024-08-16T08:09:25 | pyomo | Pyomo/pyomo | 1,945 | 519 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.... | /content/code_sandbox/application/src/main/data/lwm2m-registry/3302.xml | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,708 |
```xml
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
<Import Project="../../version.xml" />
<PropertyGroup>
<AssemblyName>Microsoft.EntityFrameworkCore.DynamicLinq</AssemblyName>
<AssemblyOriginatorKeyFile>../Microsoft.EntityFrameworkCore.DynamicLinq.EFCore2/Microsoft.EntityFrameworkCor... | /content/code_sandbox/src/Microsoft.EntityFrameworkCore.DynamicLinq.EFCore8/Microsoft.EntityFrameworkCore.DynamicLinq.EFCore8.csproj | xml | 2016-04-08T16:41:51 | 2024-08-16T05:55:59 | System.Linq.Dynamic.Core | zzzprojects/System.Linq.Dynamic.Core | 1,537 | 555 |
```xml
/*
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
*/
import {mockApplyDeleteDefinitionOperation} from 'modules/mocks/api/decisions/operations';
import {decisionDefinitionStore} from 'modules/stores/decis... | /content/code_sandbox/operate/client/src/App/Decisions/Decision/DecisionOperations/index.test.tsx | xml | 2016-03-20T03:38:04 | 2024-08-16T19:59:58 | camunda | camunda/camunda | 3,172 | 2,081 |
```xml
<ResourceDictionary xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:controls="clr-namespace:Xamarin.Forms.Platform.WPF.Controls">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Xamarin.Forms.Platform.WPF;component/Assets/Converters.xaml"... | /content/code_sandbox/Xamarin.Forms.Platform.WPF/Themes/FormsSymbolIcon.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 244 |
```xml
export * from './sample.effect';
``` | /content/code_sandbox/src/client/app/modules/sample/effects/index.ts | xml | 2016-01-27T07:12:46 | 2024-08-15T11:32:04 | angular-seed-advanced | NathanWalker/angular-seed-advanced | 2,261 | 8 |
```xml
import * as React from 'react';
import { Component } from 'react';
import RNSVGDefs from '../fabric/DefsNativeComponent';
export default class Defs extends Component<React.PropsWithChildren> {
static displayName = 'Defs';
render() {
return <RNSVGDefs>{this.props.children}</RNSVGDefs>;
}
}
``` | /content/code_sandbox/src/elements/Defs.tsx | xml | 2016-01-17T14:29:21 | 2024-08-16T13:35:44 | react-native-svg | software-mansion/react-native-svg | 7,397 | 76 |
```xml
import React from 'react';
import { NavigationProps, Options } from 'react-native-navigation';
import Root from '../components/Root';
import Button from '../components/Button';
import Navigation from '../services/Navigation';
import testIDs from '../testIDs';
import Screens from './Screens';
class LazilyRegiste... | /content/code_sandbox/playground/src/screens/LazilyRegisteredScreen.tsx | xml | 2016-03-11T11:22:54 | 2024-08-15T09:05:44 | react-native-navigation | wix/react-native-navigation | 13,021 | 237 |
```xml
import { type FC, useCallback, useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import { c } from 'ttag';
import { useNotifications } from '@proton/components/index';
import { useAuthStore } from '@proton/pass/components/Core/AuthStoreProvider';
import { useConnectivity } from '@proton/... | /content/code_sandbox/packages/pass/components/Lock/PasswordUnlock.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 599 |
```xml
import { c } from 'ttag';
import { createToken, resumeImport, updateImport } from '@proton/activation/src/api';
import { ApiImporterError, ApiImporterState } from '@proton/activation/src/api/api.interface';
import { getImportProviderFromApiProvider } from '@proton/activation/src/helpers/getImportProviderFromApi... | /content/code_sandbox/packages/activation/src/components/ReportsTable/Importers/ImporterRowActions.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 1,344 |
```xml
import * as React from 'react';
import expect from 'expect';
import { render, screen } from '@testing-library/react';
import { stringify } from 'query-string';
import { fireEvent, waitFor } from '@testing-library/react';
import { CoreAdminContext } from '../../core';
import { testDataProvider } from '../../data... | /content/code_sandbox/packages/ra-core/src/controller/list/useListParams.spec.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 3,002 |
```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 fresnelc = require( './index' );
// TESTS //
// The function returns a number...
{
fresnelc( 0.3 ); // ... | /content/code_sandbox/lib/node_modules/@stdlib/math/base/special/fresnelc/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 241 |
```xml
import { docsUrl } from '@pnpm/cli-utils'
import { FILTERING } from '@pnpm/common-cli-options-help'
import { WANTED_LOCKFILE } from '@pnpm/constants'
import renderHelp from 'render-help'
export const rcOptionsTypes = (): Record<string, unknown> => ({})
export const cliOptionsTypes = (): Record<string, unknown> ... | /content/code_sandbox/pnpm/src/cmd/recursive.ts | xml | 2016-01-28T07:40:43 | 2024-08-16T12:38:47 | pnpm | pnpm/pnpm | 28,869 | 943 |
```xml
import Class from "../core/Class";
import { MixinConstructor } from "../core/Mixin";
/**
* `Map`'Layers'
* @english
* Common methods for classes can be rendered, e.g. Map, Layers
* @mixin Renderable
* @protected
*/
export default function <T extends MixinConstructor>(Base: T) {
return class extends Ba... | /content/code_sandbox/src/renderer/Renderable.ts | xml | 2016-02-03T02:41:32 | 2024-08-15T16:51:49 | maptalks.js | maptalks/maptalks.js | 4,272 | 330 |
```xml
import {
makeCommunicationReducerFromEnum,
makeCommunicationReducerByIdFromEnum,
CommunicationActionsToObj,
} from 'shared/utils/redux/communication';
import { combineReducers } from 'redux';
import {
IDatasetVersionsState,
loadDatasetVersionsActionTypes,
IDeleteDatasetVersionActions,
deleteDatase... | /content/code_sandbox/webapp/client/src/features/datasetVersions/store/reducer/communications.ts | xml | 2016-10-19T01:07:26 | 2024-08-14T03:53:55 | modeldb | VertaAI/modeldb | 1,689 | 373 |
```xml
import {BodyParams, Controller, PlatformTest, Post} from "@tsed/common";
import {PlatformExpress} from "@tsed/platform-express";
import {MaxLength, MinLength} from "@tsed/schema";
import SuperTest from "supertest";
import {Server} from "./app/Server.js";
@Controller({
path: "/customers"
})
class CustomerContr... | /content/code_sandbox/packages/specs/swagger/test/swagger.bodyparams.spec.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 718 |
```xml
import { getCanWrite, getCanAdmin, getIsOwner } from '@proton/shared/lib/drive/permissions'
import type { DocumentKeys } from '@proton/drive-store'
import type { SHARE_MEMBER_PERMISSIONS } from '@proton/shared/lib/drive/constants'
import { DocumentRole } from '@proton/docs-shared'
export type DocumentEntitlemen... | /content/code_sandbox/packages/docs-core/lib/Types/DocumentEntitlements.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 173 |
```xml
import { AccessToken } from "./AccessToken"
import { OneToOne } from "../../../../../src/decorator/relations/OneToOne"
import { Column } from "../../../../../src/decorator/columns/Column"
import { PrimaryColumn } from "../../../../../src/decorator/columns/PrimaryColumn"
import { Entity } from "../../../../../src... | /content/code_sandbox/test/functional/persistence/one-to-one/entity/User.ts | xml | 2016-02-29T07:41:14 | 2024-08-16T18:28:52 | typeorm | typeorm/typeorm | 33,875 | 143 |
```xml
import config, { describeParallel } from './config.ts';
import {
randomCouchString,
now,
fillWithDefaultSettings,
categorizeBulkWriteRows,
getPrimaryFieldOfPrimaryKey,
BulkWriteRow
} from '../../plugins/core/index.mjs';
import {
schemaObjects,
schemas,
isFastMode,
EXAMPLE... | /content/code_sandbox/test/unit/rx-storage-helper.test.ts | xml | 2016-12-02T19:34:42 | 2024-08-16T15:47:20 | rxdb | pubkey/rxdb | 21,054 | 428 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="path_to_url">
<scale
android:duration="400"
android:fromXScale="1.0"
android:fromYScale="1.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:pivotX="50%"
android:pivotY="50%"
... | /content/code_sandbox/app/src/main/res/anim/scale_out.xml | xml | 2016-04-09T15:47:45 | 2024-08-14T04:30:04 | MusicLake | caiyonglong/MusicLake | 2,654 | 130 |
```xml
import {
Card,
FeedLayout,
OverflowWrapper,
Row,
SingleEvent,
TabContent,
WidgetChatWrapper,
NoEvent,
FeedWrapper,
FlexAlignCenter
} from '../styles';
import { MainContainer, SideContainer } from '../../layout/styles';
import React, { useState } from 'react';
import { TabTitle, Tabs } from '.... | /content/code_sandbox/exm/modules/exmFeed/components/Home.tsx | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 1,320 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.