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"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY space " ">
<!ENTITY separators ",;">
<!ENTITY ns_punctuators "!%&space;&()+-/.*<=>?[]{|}~^&separators;">
]>
<!--
-->
<language
name="C++"
section="Sources"
version="13"
katev... | /content/code_sandbox/syntax/cpp.xml | xml | 2016-08-19T16:25:54 | 2024-08-11T08:59:44 | matterhorn | matterhorn-chat/matterhorn | 1,027 | 26,198 |
```xml
import { makeStyles, mergeClasses } from '@griffel/react';
import { useDividerStyles_unstable, type DividerSlots } from '@fluentui/react-divider';
import type { SlotClassNames } from '@fluentui/react-utilities';
import type { NavDividerState } from './NavDivider.types';
export const navDividerClassNames: SlotCl... | /content/code_sandbox/packages/react-components/react-nav-preview/library/src/components/NavDivider/useNavDividerStyles.styles.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 233 |
```xml
import * as React from 'react';
import graphql from 'graphql-tag';
export default class extends React.Component<{}, {}> {
public render() {
return <div />;
}
}
export const pageQuery = graphql`
query IndexQuery {
site {
siteMetadata {
title
}
}
}
`;
// export const page... | /content/code_sandbox/packages/load/tests/loaders/schema/test-files/13.tsx | xml | 2016-03-22T00:14:38 | 2024-08-16T02:02:06 | graphql-tools | ardatan/graphql-tools | 5,331 | 107 |
```xml
import { packageName } from '../../util/pkg-name';
export const inspectCommand = {
name: 'inspect',
description: 'Show information about a deployment.',
arguments: [
{
name: 'url',
required: true,
},
],
options: [
{
name: 'timeout',
description: 'Time to wait for de... | /content/code_sandbox/packages/cli/src/commands/inspect/command.ts | xml | 2016-09-09T01:12:08 | 2024-08-16T17:39:45 | vercel | vercel/vercel | 12,545 | 366 |
```xml
import './clean-conversation-headers.css';
import React from 'dom-chef';
import {$} from 'select-dom';
import elementReady from 'element-ready';
import ArrowLeftIcon from 'octicons-plain-react/ArrowLeft';
import * as pageDetect from 'github-url-detection';
import features from '../feature-manager.js';
import ge... | /content/code_sandbox/source/features/clean-conversation-headers.tsx | xml | 2016-02-15T16:45:02 | 2024-08-16T18:39:26 | refined-github | refined-github/refined-github | 24,013 | 690 |
```xml
import { FluentDesignSystem } from '../fluent-design-system.js';
import { ProgressBar } from './progress-bar.js';
import { styles } from './progress-bar.styles.js';
import { template } from './progress-bar.template.js';
/**
* The Fluent ProgressBar Element.
*
*
* @public
* @remarks
* HTML Element: \<fluen... | /content/code_sandbox/packages/web-components/src/progress-bar/progress-bar.definition.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 103 |
```xml
import {
DELETE_CONFIRMATION_TYPES,
ICAL_ATTENDEE_STATUS,
RECURRING_TYPES,
} from '@proton/shared/lib/calendar/constants';
import {
getHasNonCancelledSingleEdits,
getMustResetPartstat,
} from '@proton/shared/lib/calendar/mailIntegration/invite';
import type { CalendarEvent } from '@proton/sha... | /content/code_sandbox/applications/calendar/src/app/containers/calendar/eventActions/getRecurringDeleteType.ts | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 711 |
```xml
import { PageHeader } from '@@/PageHeader';
import { EnvironmentGroupsDatatable } from './EnvironmentGroupsDatatable';
export function ListView() {
return (
<>
<PageHeader
title="Environment Groups"
breadcrumbs="Environment group management"
reload
/>
<Environme... | /content/code_sandbox/app/react/portainer/environments/environment-groups/ListView/ListView.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 72 |
```xml
<?xml version="1.0" encoding="UTF-8" ?>
<Mission xmlns="path_to_url" xmlns:xsi="path_to_url">
<About>
<Summary>Find the goal!</Summary>
</About>
<ServerSection>
<ServerInitialConditions>
<Time>
<StartTime>6000</StartTime>
<AllowPassageOfTime>false</AllowPassageOfTime>... | /content/code_sandbox/sample_missions/classroom/basic.xml | xml | 2016-05-17T14:58:40 | 2024-08-13T12:38:11 | malmo | microsoft/malmo | 4,051 | 670 |
```xml
import * as React from 'react';
import { CheckmarkCircle12Filled, ErrorCircle12Filled, Warning12Filled } from '@fluentui/react-icons';
import { Label } from '@fluentui/react-label';
import { getIntrinsicElementProps, useId, slot } from '@fluentui/react-utilities';
import type { FieldProps, FieldState } from './... | /content/code_sandbox/packages/react-components/react-field/library/src/components/Field/useField.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 560 |
```xml
import {UniformStore, ShaderUniformType} from '@luma.gl/core';
import {
AnimationLoopTemplate,
AnimationProps,
Model,
CubeGeometry,
Timeline,
KeyFrames,
makeRandomGenerator
} from '@luma.gl/engine';
import {dirlight} from '@luma.gl/shadertools';
import {Matrix4, radians} from '@math.gl/core';
// ... | /content/code_sandbox/examples/api/animation/app.ts | xml | 2016-01-25T09:41:59 | 2024-08-16T10:03:05 | luma.gl | visgl/luma.gl | 2,280 | 2,016 |
```xml
import {Component} from "./component.js";
/**
* Opens up a modal to edit the value of this component.
* @decorator
* @formio
* @property
* @schema
*/
export function ModalEdit(modalEdit = true) {
return Component({
modalEdit
});
}
``` | /content/code_sandbox/packages/third-parties/schema-formio/src/decorators/modalEdit.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 65 |
```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 { formatDate } from "@angular/common";
import { Component, OnInit } from "@angular/core";
import { MatDialog } from "@angular/materia... | /content/code_sandbox/experimental/traffic-portal/src/app/core/change-logs/change-logs.component.ts | xml | 2016-09-02T07:00:06 | 2024-08-16T03:50:21 | trafficcontrol | apache/trafficcontrol | 1,043 | 1,223 |
```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 dstdevpn = require( './index' );
// TESTS //
// The function returns a number...
{
const x = new Float6... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dstdevpn/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 2,377 |
```xml
import { Localized } from "@fluent/react/compat";
import React, { FunctionComponent, useCallback } from "react";
import { SearchIcon, SvgIcon } from "coral-ui/components/icons";
import { Button, Flex, TextField } from "coral-ui/components/v2";
import styles from "./SiteSearchTextField.css";
interface Props {
... | /content/code_sandbox/client/src/core/client/admin/components/SiteSearch/SiteSearchTextField.tsx | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 478 |
```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
/* eslint-disable max-lines */
import cdf = require( '@stdlib/stats/base/dists/expone... | /content/code_sandbox/lib/node_modules/@stdlib/stats/base/dists/exponential/docs/types/index.d.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 2,639 |
```xml
import { ComponentRegistry, ExtensionRegistry } from 'mailspring-exports';
import AutoloadImagesExtension from './autoload-images-extension';
import AutoloadImagesHeader from './autoload-images-header';
/*
All packages must export a basic object that has at least the following 3
methods:
1. `activate` - Actio... | /content/code_sandbox/app/internal_packages/message-autoload-images/lib/main.ts | xml | 2016-10-13T06:45:50 | 2024-08-16T18:14:37 | Mailspring | Foundry376/Mailspring | 15,331 | 205 |
```xml
import type { UnknownAction } from '@reduxjs/toolkit';
import { configureStore } from '@reduxjs/toolkit';
import * as React from 'react';
import type { ReactReduxContextValue, TypedUseSelectorHook } from 'react-redux';
import { createSelectorHook } from 'react-redux';
import { QueryBuilderContext } from '../comp... | /content/code_sandbox/packages/react-querybuilder/src/redux/index.ts | xml | 2016-06-17T22:03:19 | 2024-08-16T10:28:42 | react-querybuilder | react-querybuilder/react-querybuilder | 1,131 | 796 |
```xml
import * as React from 'react';
import { IAzureApp } from './IAppInterfaces';
import { AppList } from './AppList';
import { Icon, MessageBar, MessageBarType, Pivot, PivotItem } from 'office-ui-fabric-react';
import { Spinner } from '@fluentui/react';
import { IService, Service } from '../Service';
import { IAppP... | /content/code_sandbox/samples/react-sites-selected-admin/src/webparts/sitesSelectedManager/components/App.tsx | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 1,069 |
```xml
import type { CustomMessageHandlerConnection } from '@react-native/dev-middleware';
import chalk from 'chalk';
import { launchInspectorBrowserAsync, type LaunchBrowserInstance } from './LaunchBrowser';
import { Log } from '../../../../log';
import { env } from '../../../../utils/env';
import { pageIsSupported }... | /content/code_sandbox/packages/@expo/cli/src/start/server/middleware/inspector/JsInspector.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 959 |
```xml
/**
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import DocusaurusThemedImage from '@theme/ThemedImage';
type CommandProps = {
/**
... | /content/code_sandbox/website/elements.tsx | xml | 2016-05-05T16:53:47 | 2024-08-16T19:12:02 | sapling | facebook/sapling | 5,987 | 466 |
```xml
<?xml version="1.0" encoding="utf-8" ?>
<hosts>
<host name="localhost">
<alias>host1</alias>
</host>
</hosts>
``` | /content/code_sandbox/config-model/src/test/cfg/application/treeconfig/hosts.xml | xml | 2016-06-03T20:54:20 | 2024-08-16T15:32:01 | vespa | vespa-engine/vespa | 5,524 | 42 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="path_to_url"
android:shape="oval">
<stroke
android:width="3dp"
android:color="#e6e6e6" />
</shape>
``` | /content/code_sandbox/paper-onboarding/src/main/res/drawable/onboarding_pager_circle_icon.xml | xml | 2016-04-25T09:31:20 | 2024-08-07T21:44:08 | paper-onboarding-android | Ramotion/paper-onboarding-android | 2,559 | 60 |
```xml
import { PointF2D } from "../../Common/DataObjects/PointF2D";
import { Glissando } from "../VoiceData/Glissando";
import { ColDirEnum } from "./BoundingBox";
import { EngravingRules } from "./EngravingRules";
import { GraphicalLine } from "./GraphicalLine";
import { GraphicalNote } from "./GraphicalNote";
import... | /content/code_sandbox/src/MusicalScore/Graphical/GraphicalGlissando.ts | xml | 2016-02-08T15:47:01 | 2024-08-16T17:49:53 | opensheetmusicdisplay | opensheetmusicdisplay/opensheetmusicdisplay | 1,416 | 1,385 |
```xml
import type { SearchResultItem } from "@common/Core";
export type SearchOptions = {
searchResultItems: SearchResultItem[];
searchTerm: string;
fuzziness: number;
maxSearchResultItems: number;
};
``` | /content/code_sandbox/src/renderer/Core/Search/Helpers/SearchOptions.ts | xml | 2016-10-11T04:59:52 | 2024-08-16T11:53:31 | ueli | oliverschwendener/ueli | 3,543 | 46 |
```xml
/** @jsxRuntime automatic */
/** @jsxImportSource @fluentui/react-jsx-runtime */
import { assertSlots } from '@fluentui/react-utilities';
import type { CarouselCardState, CarouselCardSlots } from './CarouselCard.types';
/**
* Render the final JSX of CarouselCard
*/
export const renderCarouselCard_unstable = ... | /content/code_sandbox/packages/react-components/react-carousel-preview/library/src/components/CarouselCard/renderCarouselCard.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 97 |
```xml
// none of these should work, since non are actually modules
var V = 12;
import v = V;
class C {
name: string;
}
import c = C;
enum E {
Red, Blue
}
import e = E;
interface I {
id: number;
}
import i = I;
``` | /content/code_sandbox/tests/format/typescript/conformance/internalModules/importDeclarations/invalidImportAliasIdentifiers.ts | xml | 2016-11-29T17:13:37 | 2024-08-16T17:29:57 | prettier | prettier/prettier | 48,913 | 67 |
```xml
import { NativeModulesProxy, Platform } from 'expo-modules-core';
import * as SMS from '../SMS';
import { SMSAttachment } from '../SMS.types';
it(`normalizes one phone number into an array`, async () => {
try {
const { ExpoSMS } = NativeModulesProxy;
await SMS.sendSMSAsync('0123456789', 'test');
... | /content/code_sandbox/packages/expo-sms/src/__tests__/SMS-test.ts | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 457 |
```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>
<string name="error_a11y_label">Pogreka: nije vaee</string>
<string... | /content/code_sandbox/lib/java/com/google/android/material/checkbox/res/values-hr/strings.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 154 |
```xml
export function generateColor(str: string): string {
let hash = 0;
for (let i = 0; i < str.length; i++) {
hash = str.charCodeAt(i) + ((hash << 5) - hash);
}
const h = hash % 360;
return colorFromH(h);
}
export function colorFromH(h: string | number): string {
return getHSLValue(h, 50, 85);
}
e... | /content/code_sandbox/packages/helpers/src/jora/colors.ts | xml | 2016-11-30T14:09:21 | 2024-08-15T18:52:57 | statoscope | statoscope/statoscope | 1,423 | 465 |
```xml
import { Slot, ErrorBoundary } from 'expo-router';
import Head from 'expo-router/head';
import { View, Text } from 'react-native';
/*
* These 3 exports would normally break FastRefresh, as they do not follow the rules defined here:
* path_to_url
*
* However, Expo Router monkey-patches the ReactRefresh.isL... | /content/code_sandbox/apps/router-e2e/__e2e__/fast-refresh/app/_layout.tsx | xml | 2016-08-15T17:14:25 | 2024-08-16T19:54:44 | expo | expo/expo | 32,004 | 199 |
```xml
//
//
// Microsoft Bot Framework: path_to_url
//
// Bot Framework Emulator Github:
// path_to_url
//
// All rights reserved.
//
// 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 witho... | /content/code_sandbox/packages/app/shared/src/state/actions/windowStateActions.spec.ts | xml | 2016-11-11T23:15:09 | 2024-08-16T12:45:29 | BotFramework-Emulator | microsoft/BotFramework-Emulator | 1,803 | 553 |
```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 config from 'config';
import { _logger } from '../config/logger';
import { JsInvokeMessageProcessor } from '../api/j... | /content/code_sandbox/msa/js-executor/queue/serviceBusTemplate.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,212 |
```xml
/*
* Squidex Headless CMS
*
* @license
*/
/* eslint-disable @angular-eslint/component-selector */
import { booleanAttribute, ChangeDetectionStrategy, Component, EventEmitter, Input, numberAttribute, Output } from '@angular/core';
import { RouterLink } from '@angular/router';
import { ConfirmClickDirective... | /content/code_sandbox/frontend/src/app/features/content/shared/references/reference-item.component.ts | xml | 2016-08-29T05:53:40 | 2024-08-16T17:39:38 | squidex | Squidex/squidex | 2,222 | 502 |
```xml
// See LICENSE.txt for license information.
import React, {useCallback} from 'react';
import {useIntl} from 'react-intl';
import {Keyboard, type StyleProp, StyleSheet, type ViewStyle} from 'react-native';
import ProfilePicture from '@components/profile_picture';
import TouchableWithFeedback from '@components/t... | /content/code_sandbox/app/screens/channel/channel_post_list/intro/direct_channel/member/member.tsx | xml | 2016-10-07T16:52:32 | 2024-08-16T12:08:38 | mattermost-mobile | mattermost/mattermost-mobile | 2,155 | 402 |
```xml
import { PartialStrykerOptions } from '@stryker-mutator/api/core';
import { Immutable } from '@stryker-mutator/util';
import { CustomInitializer, CustomInitializerConfiguration } from './custom-initializer.js';
const guideUrl = 'path_to_url
/**
* More information can be found in the Stryker handbook:
* path... | /content/code_sandbox/packages/core/src/initializer/custom-initializers/vue-js-initializer.ts | xml | 2016-02-12T13:14:28 | 2024-08-15T18:38:25 | stryker-js | stryker-mutator/stryker-js | 2,561 | 182 |
```xml
<menu xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
tools:context="com.journaldev.androidarsceneform.MainActivity">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:sho... | /content/code_sandbox/Android/AndroidArSceneform/app/src/main/res/menu/menu_main.xml | xml | 2016-05-02T05:43:21 | 2024-08-16T06:51:39 | journaldev | WebJournal/journaldev | 1,314 | 87 |
```xml
import { CloudSong } from "@signal-app/api"
import { makeObservable, observable } from "mobx"
export class CommunitySongStore {
songs: CloudSong[] = []
constructor() {
makeObservable(this, {
songs: observable,
})
}
}
``` | /content/code_sandbox/packages/community/src/stores/CommunitySongStore.ts | xml | 2016-03-06T15:19:53 | 2024-08-15T14:27:10 | signal | ryohey/signal | 1,238 | 57 |
```xml
/// <reference path="../../localtypings/pxtpackage.d.ts" />
import * as Blockly from "blockly";
// Validates that variables are created and used within the workspace.
// Name is optional. If undefined or empty, all variable names are permitted.
// Returns the definition blocks for variables that passed the chec... | /content/code_sandbox/pxteditor/code-validation/validateVariableUsage.ts | xml | 2016-01-24T19:35:52 | 2024-08-16T16:39:39 | pxt | microsoft/pxt | 2,069 | 398 |
```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>
<string name="mtrl_picker_range_header_title"> </string>
<string... | /content/code_sandbox/lib/java/com/google/android/material/datepicker/res/values-bg/strings.xml | xml | 2016-12-05T16:11:29 | 2024-08-16T17:51:42 | material-components-android | material-components/material-components-android | 16,176 | 725 |
```xml
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import * as React from "react";
import { Intent } from "@blueprintjs/core";
import { Example, type ExampleProps } from "@blueprin... | /content/code_sandbox/packages/docs-app/src/examples/table-examples/tableEditableExample.tsx | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 1,032 |
```xml
import { ReactNode } from 'react';
export interface Props {
value: string;
icon?: ReactNode;
color: string;
}
// Helper function used as workaround to add opacity to the background color
function setOpacity(hex: string, alpha: number) {
return `${hex}${Math.floor(alpha * 255)
.toString(16)
.pad... | /content/code_sandbox/app/react/portainer/settings/AuthenticationView/InternalAuth/Badge.tsx | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 163 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="path_to_url"
xmlns:app="path_to_url"
xmlns:tools="path_to_url"
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#... | /content/code_sandbox/pjsip-apps/src/swig/java/android/app-kotlin/src/main/res/layout/activity_main.xml | xml | 2016-01-24T05:00:33 | 2024-08-16T03:31:21 | pjproject | pjsip/pjproject | 1,960 | 703 |
```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 to register the shared object types.
import "#src/shared_disjoint_sets.js";
import "#src/uint64_map.js";
impo... | /content/code_sandbox/src/segmentation_display_state/backend.ts | xml | 2016-05-27T02:37:25 | 2024-08-16T07:24:25 | neuroglancer | google/neuroglancer | 1,045 | 741 |
```xml
// module
import { IMultilingualState, initialState } from '../states/multilingual.state';
import { Actions, ActionTypes } from '../actions/multilingual.action';
export function reducer(
state: IMultilingualState = initialState,
action: Actions
): IMultilingualState {
switch (action.type) {
case A... | /content/code_sandbox/src/client/app/modules/i18n/reducers/multilingual.reducer.ts | xml | 2016-01-27T07:12:46 | 2024-08-15T11:32:04 | angular-seed-advanced | NathanWalker/angular-seed-advanced | 2,261 | 117 |
```xml
import {computed} from "vue";
import {has} from "lodash";
export const formFieldProps = {
field: {
type: Object,
required: false,
default: () => {
return undefined;
}
},
modelValue: {
type: [String, Number, Boolean, Array],
required: false,... | /content/code_sandbox/frontend/components/Form/useFormField.ts | xml | 2016-04-30T21:41:23 | 2024-08-16T18:27:26 | AzuraCast | AzuraCast/AzuraCast | 2,978 | 353 |
```xml
import {
Component,
Input,
HostBinding,
ElementRef,
Output,
KeyValueDiffers,
KeyValueDiffer,
EventEmitter,
HostListener,
ChangeDetectionStrategy,
ChangeDetectorRef,
DoCheck,
SkipSelf
} from '@angular/core';
import { TreeStatus } from './body-cell.component';
import { columnsByPin, colu... | /content/code_sandbox/projects/swimlane/ngx-datatable/src/lib/components/body/body-row.component.ts | xml | 2016-05-31T19:25:47 | 2024-08-06T15:02:47 | ngx-datatable | swimlane/ngx-datatable | 4,624 | 1,605 |
```xml
import React from "react";
export const Logo: React.FC = () => {
return (
<svg
width="123"
height="29"
viewBox="0 0 123 29"
fill="none"
xmlns="path_to_url"
>
<path
d="M34.7441 22.9997H37.2741V16.3297H41.5981C44.7031 16.3297 46.9801 14.9037 46.9801 11.4537C46... | /content/code_sandbox/examples/cms-payload/components/Logo/index.tsx | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 2,719 |
```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 layouts = require( './index' );
// TESTS //
// The function returns an array of strings...
{
layouts();... | /content/code_sandbox/lib/node_modules/@stdlib/blas/base/layouts/docs/types/test.ts | xml | 2016-03-24T04:19:52 | 2024-08-16T09:03:19 | stdlib | stdlib-js/stdlib | 4,266 | 110 |
```xml
import * as React from 'react';
import cx from 'classnames';
import { createSvgIcon } from '../utils/createSvgIcon';
import { iconClassNames } from '../utils/iconClassNames';
export const AppFolderIcon = createSvgIcon({
svg: ({ classes }) => (
<svg role="presentation" focusable="false" viewBox="2 2 16 16"... | /content/code_sandbox/packages/fluentui/react-icons-northstar/src/components/AppFolderIcon.tsx | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 1,295 |
```xml
export {
slot,
isSlot,
// eslint-disable-next-line deprecation/deprecation
getSlots,
// eslint-disable-next-line deprecation/deprecation
getSlotsNext,
assertSlots,
// eslint-disable-next-line deprecation/deprecation
resolveShorthand,
isResolvedShorthand,
getIntrinsicElementProps,
SLOT_ELE... | /content/code_sandbox/packages/react-components/react-utilities/src/index.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 589 |
```xml
import { Environment, RecordSource } from "relay-runtime";
import sinon from "sinon";
import { waitFor } from "coral-common/common/lib/helpers";
import { parseQuery } from "coral-common/common/lib/utils";
import { CoralContext } from "coral-framework/lib/bootstrap";
import { LOCAL_ID } from "coral-framework/lib... | /content/code_sandbox/client/src/core/client/stream/mutations/SetCommentIDMutation.spec.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 473 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>StalledIssueTab</class>
<widget class="QFrame" name="StalledIssueTab">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>138</width>
<height>32</height>
</rect>
</property>
<property name="minimumSize">
<si... | /content/code_sandbox/src/MEGASync/stalled_issues/gui/macx/StalledIssueTab.ui | xml | 2016-02-10T18:28:05 | 2024-08-16T19:36:44 | MEGAsync | meganz/MEGAsync | 1,593 | 655 |
```xml
import {AuthenticationMWs} from '../middlewares/user/AuthenticationMWs';
import {Express} from 'express';
import {RenderingMWs} from '../middlewares/RenderingMWs';
import {UserRoles} from '../../common/entities/UserDTO';
import {VersionMWs} from '../middlewares/VersionMWs';
import {AlbumMWs} from '../middlewares... | /content/code_sandbox/src/backend/routes/AlbumRouter.ts | xml | 2016-03-12T11:46:41 | 2024-08-16T19:56:44 | pigallery2 | bpatrik/pigallery2 | 1,727 | 418 |
```xml
<vector xmlns:android="path_to_url"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
</vector>
``` | /content/code_sandbox/app/src/main/res/drawable/ic_menu_home.xml | xml | 2016-05-21T08:47:10 | 2024-08-14T04:13:43 | JAViewer | SplashCodes/JAViewer | 4,597 | 101 |
```xml
<resources>
<string name="app_name">GuDong Translate-Debug</string>
<string name="app_process_text">TranslateFloat-Debug</string>
</resources>
``` | /content/code_sandbox/app/src/debug/res/values/strings.xml | xml | 2016-02-26T06:10:35 | 2024-08-09T12:49:52 | TranslateApp | maoruibin/TranslateApp | 1,800 | 40 |
```xml
<manifest xmlns:android="path_to_url"
package="org.chromium.third_party.android">
</manifest>
``` | /content/code_sandbox/libraries_res/datausagechart_res/src/main/AndroidManifest.xml | xml | 2016-07-04T07:28:36 | 2024-08-15T05:20:42 | AndroidChromium | JackyAndroid/AndroidChromium | 3,090 | 25 |
```xml
import { ObjectTypeComposer } from '../ObjectTypeComposer';
import { NonNullComposer } from '../NonNullComposer';
import { ListComposer } from '../ListComposer';
import { ThunkComposer } from '../ThunkComposer';
import { InterfaceTypeComposer } from '../InterfaceTypeComposer';
import type { InputTypeComposer } f... | /content/code_sandbox/src/utils/toInputType.ts | xml | 2016-06-07T07:43:40 | 2024-07-30T19:45:36 | graphql-compose | graphql-compose/graphql-compose | 1,205 | 1,042 |
```xml
import React from 'react';
import Icon from '../index';
import { renderWithWrapper } from '../../../.ci/testHelper';
describe('Icon component', () => {
it('should apply values from theme', () => {
const { wrapper } = renderWithWrapper(
<Icon name="edit" />,
'RNE__ICON__Component',
{
... | /content/code_sandbox/packages/themed/src/Icon/__tests__/Icon.test.tsx | xml | 2016-09-08T14:21:41 | 2024-08-16T10:11:29 | react-native-elements | react-native-elements/react-native-elements | 24,875 | 114 |
```xml
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>Command completed successfully</msg>
</result>
<resData>
<host:infData
xmlns:host="urn:ietf:params:xml:ns:host-1.0">
<host:name>ns1.example.tld</host:name>
<host:roid>NS1_EXAMPLE1-RE... | /content/code_sandbox/core/src/test/resources/google/registry/flows/host/host_info_response_linked.xml | xml | 2016-02-29T20:16:48 | 2024-08-15T19:49:29 | nomulus | google/nomulus | 1,685 | 392 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="path_to_url">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
... | /content/code_sandbox/MemCombineTest/MemCombineTest.vcxproj | xml | 2016-11-15T08:01:35 | 2024-08-14T08:55:28 | WindowsInternals | zodiacon/WindowsInternals | 2,319 | 1,945 |
```xml
import { IGitHubUserProfile } from "../../../services/GitHubServices";
import { HttpClient } from '@microsoft/sp-http';
import { DisplayMode } from '@microsoft/sp-core-library';
export interface IGitHubBadgeV2Props {
gitHubUserName: string;
httpClient: HttpClient;
displayMode: DisplayMode;
onConfigure: ... | /content/code_sandbox/samples/react-github-badge/src/webparts/gitHubBadgeV2/components/IGitHubBadgeV2.types.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 107 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="path_to_url">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVe... | /content/code_sandbox/Clients/CommandLineDecoder/CommandLineDecoder.csproj | xml | 2016-10-27T20:15:17 | 2024-08-16T02:15:03 | ZXing.Net | micjahn/ZXing.Net | 2,676 | 952 |
```xml
import { SendType } from "@bitwarden/common/tools/send/enums/send-type";
import { Send } from "@bitwarden/common/tools/send/models/domain/send";
import { SendId } from "@bitwarden/common/types/guid";
/**
* The mode of the add/edit form.
* - `add` - The form is creating a new send.
* - `edit` - The form is ed... | /content/code_sandbox/libs/tools/send/send-ui/src/send-form/abstractions/send-form-config.service.ts | xml | 2016-03-09T23:14:01 | 2024-08-16T15:07:51 | clients | bitwarden/clients | 8,877 | 599 |
```xml
export {
default,
default as ModerateNavigationContainer,
} from "./ModerateNavigationContainer";
``` | /content/code_sandbox/client/src/core/client/admin/routes/Moderate/ModerateNavigation/index.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 21 |
```xml
import {css, unsafeCSS} from "lit";
import {DefaultColor1, DefaultColor2, DefaultColor3, DefaultColor5, DefaultColor4, DefaultColor6, DefaultHeaderHeight} from "@openremote/core";
// language=CSS
export const panelStyles = css`
.panelContainer {
flex: 1 1 50%;
box-sizing: border-box;
... | /content/code_sandbox/ui/component/or-asset-viewer/src/style.ts | xml | 2016-02-03T11:14:02 | 2024-08-16T12:45:50 | openremote | openremote/openremote | 1,184 | 2,050 |
```xml
import {
PaginationTableSettings,
SortableTableSettings,
} from '@/react/components/datatables/types';
export interface TableSettings
extends SortableTableSettings,
PaginationTableSettings {}
export type SupportedIngControllerTypes =
| 'nginx'
| 'traefik'
| 'other'
| 'custom';
// Not having ... | /content/code_sandbox/app/react/kubernetes/cluster/ingressClass/IngressClassDatatable/types.ts | xml | 2016-05-19T20:15:28 | 2024-08-16T19:15:14 | portainer | portainer/portainer | 30,083 | 179 |
```xml
import { type FC } from 'react';
import { c } from 'ttag';
import { LockSetup } from '@proton/pass/components/Settings/LockSetup';
import { SettingsPanel } from './SettingsPanel';
export const LockSettings: FC = () => (
<SettingsPanel title={c('Label').t`Unlock with`}>
<LockSetup />
</Setting... | /content/code_sandbox/packages/pass/components/Settings/LockSettings.tsx | xml | 2016-06-08T11:16:51 | 2024-08-16T14:14:27 | WebClients | ProtonMail/WebClients | 4,300 | 83 |
```xml
import ensureEndSlash from "./ensureEndSlash";
it("should add slash to the end", () => {
const path = ensureEndSlash("/test");
expect(path).toBe("/test/");
});
it("should not add slash to the end if it's already there", () => {
const path = ensureEndSlash("/test/");
expect(path).toBe("/test/");
});
``... | /content/code_sandbox/common/lib/utils/ensureEndSlash.spec.ts | xml | 2016-10-31T16:14:05 | 2024-08-06T16:15:57 | talk | coralproject/talk | 1,881 | 79 |
```xml
import { chartOnBrushFilter as render } from '../plots/api/chart-on-brush-filter';
import { PLOT_CLASS_NAME } from '../../src';
import { dblclick, brush } from '../plots/interaction/penguins-point-brush';
import { createNodeGCanvas } from './utils/createNodeGCanvas';
import { createPromise, receiveExpectData } f... | /content/code_sandbox/__tests__/integration/chart-on-brush-filter.spec.ts | xml | 2016-05-26T09:21:04 | 2024-08-15T16:11:17 | G2 | antvis/G2 | 12,060 | 408 |
```xml
import { render } from '@testing-library/react-native';
import { expectTranslatedInlineCSSRuleTo } from './utils';
/**
* path_to_url
*/
describe('HTML component', () => {
it('should pass regression #361 regarding inline margin CSS rules', () => {
expectTranslatedInlineCSSRuleTo({
cssInlineRules: '... | /content/code_sandbox/packages/render-html/src/__tests__/regression.361.css-margin-rule.test.tsx | xml | 2016-11-29T10:50:53 | 2024-08-08T06:53:22 | react-native-render-html | meliorence/react-native-render-html | 3,445 | 97 |
```xml
<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Jaeger" Version="... | /content/code_sandbox/samples/OpenTracing/Ocelot.Samples.OpenTracing.csproj | xml | 2016-06-29T20:35:24 | 2024-08-15T16:00:38 | Ocelot | ThreeMammals/Ocelot | 8,277 | 437 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:local="using:Xamarin.Forms.Xaml.UnitTests"
x:Class="Xamarin.Forms.Xaml.UnitTests.DataTemplateExtension">
<ContentPage.Resources>
<ShellContent x:Key="content" ContentTemplate="{DataTemplate local:DataTe... | /content/code_sandbox/Xamarin.Forms.Xaml.UnitTests/DataTemplateExtension.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 104 |
```xml
import type { ImageLoaderPropsWithConfig } from './image-config'
function defaultLoader({
config,
src,
width,
quality,
}: ImageLoaderPropsWithConfig): string {
if (process.env.NODE_ENV !== 'production') {
const missingValues = []
// these should always be provided but make sure they are
i... | /content/code_sandbox/packages/next/src/shared/lib/image-loader.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 564 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="path_to_url"
android:shape="rectangle">
<corners android:radius="12dp" />
<padding
android:bottom="4dp"
android:left="8dp"
android:right="8dp"
android:top="4dp" />
<solid android:color="#44aaaaaa" />
</sh... | /content/code_sandbox/sample/src/main/res/drawable/shape_number_indicator_background.xml | xml | 2016-09-13T08:26:29 | 2024-08-15T09:49:27 | XBanner | xiaohaibin/XBanner | 2,159 | 94 |
```xml
import {Controller, Get, PlatformTest, QueryParams} from "@tsed/common";
import {PlatformExpress} from "@tsed/platform-express";
import {MinLength, Property, Required} from "@tsed/schema";
import SuperTest from "supertest";
import {Server} from "./app/Server.js";
class QueryParamModel {
@Required()
@MinLeng... | /content/code_sandbox/packages/specs/swagger/test/swagger.query.spec.ts | xml | 2016-02-21T18:38:47 | 2024-08-14T21:19:48 | tsed | tsedio/tsed | 2,817 | 884 |
```xml
import {Component, TemplateRef, ViewChild, inject} from '@angular/core';
import {
MatBottomSheet,
MatBottomSheetConfig,
MatBottomSheetModule,
} from '@angular/material/bottom-sheet';
/**
* @title Testing with MatBottomSheetHarness
*/
@Component({
selector: 'bottom-sheet-harness-example',
templateUrl... | /content/code_sandbox/src/components-examples/material/bottom-sheet/bottom-sheet-harness/bottom-sheet-harness-example.ts | xml | 2016-01-04T18:50:02 | 2024-08-16T11:21:13 | components | angular/components | 24,263 | 149 |
```xml
type OgModule = typeof import('next/dist/compiled/@vercel/og')
function importModule(): Promise<
typeof import('next/dist/compiled/@vercel/og')
> {
return import(
process.env.NEXT_RUNTIME === 'edge'
? 'next/dist/compiled/@vercel/og/index.edge.js'
: 'next/dist/compiled/@vercel/og/index.node.j... | /content/code_sandbox/packages/next/src/server/og/image-response.ts | xml | 2016-10-05T23:32:51 | 2024-08-16T19:44:30 | next.js | vercel/next.js | 124,056 | 461 |
```xml
try {} catch (e: any)
{}
try {}
catch (e: unknown) {}
``` | /content/code_sandbox/tests/format/typescript/catch-clause/type-annotation.ts | xml | 2016-11-29T17:13:37 | 2024-08-16T17:29:57 | prettier | prettier/prettier | 48,913 | 19 |
```xml
/*
*
*
* path_to_url
*
* Unless required by applicable law or agreed to in writing, software
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
import * as React from "react";
import { Button, Intent, Popover, type PopoverInteractionKind } from "@blueprintjs/core";
import ... | /content/code_sandbox/packages/docs-app/src/examples/core-examples/popoverInteractionKindExample.tsx | xml | 2016-10-25T21:17:50 | 2024-08-16T15:14:48 | blueprint | palantir/blueprint | 20,593 | 352 |
```xml
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<goals>
<goal>config-gen</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
<runOnConfiguration... | /content/code_sandbox/config-class-plugin/src/main/resources/META-INF/m2e/lifecycle-mapping-metadata.xml | xml | 2016-06-03T20:54:20 | 2024-08-16T15:32:01 | vespa | vespa-engine/vespa | 5,524 | 103 |
```xml
import * as React from 'react';
import { ReactNode } from 'react';
import { FieldProps } from './types';
/**
* A field rendering its children.
*
* Designed as a wrapper for several fields, to support props read by
* the parent element (e.g. `<SimpleShowLayout>`, `<Datagrid`).
*
* @example
* import { Wra... | /content/code_sandbox/packages/ra-ui-materialui/src/field/WrapperField.tsx | xml | 2016-07-13T07:58:54 | 2024-08-16T18:32:27 | react-admin | marmelab/react-admin | 24,624 | 265 |
```xml
import { Text } from '@microsoft/sp-core-library';
import { SPHttpClient, SPHttpClientResponse } from '@microsoft/sp-http';
export class GroupService {
private spHttpClient: SPHttpClient;
constructor(spHttpClient: SPHttpClient) {
this.spHttpClient = spHttpClient;
}
public async getGrou... | /content/code_sandbox/samples/react-list-form/src/common/services/GroupService.ts | xml | 2016-08-30T17:21:43 | 2024-08-16T18:41:32 | sp-dev-fx-webparts | pnp/sp-dev-fx-webparts | 2,027 | 132 |
```xml
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
import { NavSize } from '../Nav/Nav.types';
export type AppItemStaticSlots = {
/**
* The root element of the AppItemStatic.
*/
root: Slot<'div'>;
/**
* Icon that renders before the content.
*/
icon?: Slot<... | /content/code_sandbox/packages/react-components/react-nav-preview/library/src/components/AppItemStatic/AppItemStatic.types.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 165 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date{ISO8601} %-5level %logger - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"... | /content/code_sandbox/dev/maven-plugin/src/maven-test/external-project-2.12/integration-test/src/test/resources/logback-test.xml | xml | 2016-02-23T01:51:06 | 2024-07-17T04:00:50 | lagom | lagom/lagom | 2,630 | 97 |
```xml
import { Component } from '@angular/core';
import { Code } from '@domain/code';
@Component({
selector: 'badge-position-demo',
template: `
<app-docsectiontext>
<p>A Badge can be positioned at the top right corner of an element by adding <i>p-overlay-badge</i> style class to the elemen... | /content/code_sandbox/src/app/showcase/doc/badge/positiondoc.ts | xml | 2016-01-16T09:23:28 | 2024-08-16T19:58:20 | primeng | primefaces/primeng | 9,969 | 454 |
```xml
import { DecryptedItemMutator } from '../../Abstract/Item/Mutator/DecryptedItemMutator'
import { ActionExtensionContent } from './ActionsExtension'
import { Action } from './Types'
export class ActionsExtensionMutator extends DecryptedItemMutator<ActionExtensionContent> {
set description(description: string) ... | /content/code_sandbox/packages/models/src/Domain/Syncable/ActionsExtension/ActionsExtensionMutator.ts | xml | 2016-12-05T23:31:33 | 2024-08-16T06:51:19 | app | standardnotes/app | 5,180 | 145 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage
xmlns="path_to_url"
xmlns:x="path_to_url"
xmlns:viewmodels="clr-namespace:Xamarin.Forms.Controls.GalleryPages.VisualStateManagerGalleries"
x:Class="Xamarin.Forms.Controls.GalleryPages.VisualStateManagerGalleries.StateTriggersDirectlyOnElements"
... | /content/code_sandbox/Xamarin.Forms.Controls/GalleryPages/VisualStateManagerGalleries/StateTriggersDirectlyOnElements.xaml | xml | 2016-03-18T15:52:03 | 2024-08-16T16:25:43 | Xamarin.Forms | xamarin/Xamarin.Forms | 5,637 | 591 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="path_to_url"
android:layout_width="12dp"
android:layout_height="12dp"
android:background="@drawable/simple_count_badge_bg"
android:gravity="center"
android:textColor="@android:color/white"
android:textSize="8dp" />
``` | /content/code_sandbox/app/src/main/res/layout/simple_count_badge_layout.xml | xml | 2016-06-26T08:20:43 | 2024-08-16T18:33:28 | MagicIndicator | hackware1993/MagicIndicator | 9,699 | 81 |
```xml
import { Pipe, PipeTransform } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
@Pipe({ name: 'safe' })
export class SafePipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {}
transform(url) {
return this.sanitizer.bypassSecurityTrustResourceUrl(ur... | /content/code_sandbox/src/Presentation/Web/ClientApp/src/app/shared/pipes/safe.pipe.ts | xml | 2016-06-03T17:49:56 | 2024-08-14T02:53:24 | AspNetCoreSpa | fullstackproltd/AspNetCoreSpa | 1,472 | 74 |
```xml
import {
ChangeDetectionStrategy,
Component,
ElementRef,
ErrorHandler,
QueryList,
ViewChild,
ViewChildren,
ViewEncapsulation,
signal,
} from '@angular/core';
import {fakeAsync, flush, tick} from '@angular/core/testing';
import {
dispatchEvent,
createMouseEvent,
createTouchEvent,
dispatc... | /content/code_sandbox/src/cdk/drag-drop/directives/standalone-drag.spec.ts | xml | 2016-01-04T18:50:02 | 2024-08-16T11:21:13 | components | angular/components | 24,263 | 16,392 |
```xml
export const types = `
type TasksPipelineTemplateStage {
_id: String!
name: String!
formId: String
order: Int
}
input TasksPipelineTemplateStageInput {
_id: String!
name: String!
formId: String
}
type TasksPipelineTemplate @key(fields: "_id") {
_id: String!
name:... | /content/code_sandbox/packages/plugin-tasks-api/src/graphql/schema/pipelineTemplate.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 271 |
```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>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.network.client</key>
<true... | /content/code_sandbox/electron/entitlements.plist | xml | 2016-03-06T15:19:53 | 2024-08-15T14:27:10 | signal | ryohey/signal | 1,238 | 168 |
```xml
import { IConfigDocument } from '../../models/definitions/configs';
import { IPosUserDocument } from '../../models/definitions/posUsers';
import { IOrderInput } from '../types';
export const checkDirectDiscount = (
orderInput: IOrderInput,
config: IConfigDocument,
posUser: IPosUserDocument
): IOrderInput ... | /content/code_sandbox/packages/plugin-posclient-api/src/graphql/utils/directDiscount.ts | xml | 2016-11-11T06:54:50 | 2024-08-16T10:26:06 | erxes | erxes/erxes | 3,479 | 394 |
```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 } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
import { ... | /content/code_sandbox/ui-ngx/src/app/modules/home/components/widget/config/basic/alarm/alarms-table-basic-config.component.ts | xml | 2016-12-01T09:33:30 | 2024-08-16T19:58:25 | thingsboard | thingsboard/thingsboard | 16,820 | 1,751 |
```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-ripple/test/foundation-deactivation.test.ts | xml | 2016-12-05T16:04:09 | 2024-08-16T15:42:22 | material-components-web | material-components/material-components-web | 17,119 | 3,831 |
```xml
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" target-language="cs" datatype="plaintext" original="messages.en.xlf">
<body>
<trans-unit id="N7mikjJ" resname="time_tracking" xml:space="preserve">
<source>Tim... | /content/code_sandbox/translations/messages.cs.xlf | xml | 2016-10-20T17:06:34 | 2024-08-16T18:27:30 | kimai | kimai/kimai | 3,084 | 21,219 |
```xml
import { formatEther } from '@ethersproject/units';
import styled from 'styled-components';
import { Button, LinkApp, Tooltip } from '@components';
import { ROUTE_PATHS } from '@config';
import { getTotalByAsset, useRates } from '@services';
import { getAccountsAssets } from '@services/Store/helpers';
import { ... | /content/code_sandbox/src/features/DeFiZap/components/ZapCard.tsx | xml | 2016-12-04T01:35:27 | 2024-08-14T21:41:58 | MyCrypto | MyCryptoHQ/MyCrypto | 1,347 | 2,477 |
```xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="path_to_url"
android:layout_width="match_parent"
android:layout_height="match_parent" />
``` | /content/code_sandbox/core-sample-app/src/main/res/layout/empty_layout.xml | xml | 2016-08-29T12:04:03 | 2024-08-16T13:03:46 | android-youtube-player | PierfrancescoSoffritti/android-youtube-player | 3,391 | 47 |
```xml
import { usePopover_unstable } from '@fluentui/react-popover';
import type { TeachingPopoverProps, TeachingPopoverState } from './TeachingPopover.types';
export const useTeachingPopover_unstable = (props: TeachingPopoverProps): TeachingPopoverState => {
const popoverState = usePopover_unstable(props);
retu... | /content/code_sandbox/packages/react-components/react-teaching-popover/library/src/components/TeachingPopover/useTeachingPopover.ts | xml | 2016-06-06T15:03:44 | 2024-08-16T18:49:29 | fluentui | microsoft/fluentui | 18,221 | 115 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.