hunk dict | file stringlengths 0 11.8M | file_path stringlengths 2 234 | label int64 0 1 | commit_url stringlengths 74 103 | dependency_score listlengths 5 5 |
|---|---|---|---|---|---|
{
"id": 3,
"code_window": [
" PackageName: Visual Studio Code Server\n",
" condition: and(succeeded(), ne(variables['VSCODE_PUBLISH'], 'false'), ne(variables['VSCODE_ARCH'], 'universal'))\n",
"\n",
" - publish: $(agent.builddirectory)/vscode-server-darwin/_manifest\n",
" displayName:... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | build/gulpfile.vscode.win32.js | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.00018501780868973583,
0.00017155845125671476,
0.0001651206985116005,
0.00017119053518399596,
0.000004414989234646782
] |
{
"id": 4,
"code_window": [
"\t\t\t\t`Microsoft.PowerShell.Archive\\\\Expand-Archive -Path \"${vscodeArchivePath}\" -DestinationPath \"${tempDir}\"`\n",
"\t\t\t]);\n",
"\t\t} else {\n",
"\t\t\tcp.spawnSync('unzip', [vscodeArchivePath, '-d', `${tempDir}`]);\n",
"\t\t}\n",
"\t\tfs.renameSync(p... | # VS Code Smoke Test
Make sure you are on **Node v12.x**.
### Quick Overview
```bash
# Build extensions in the VS Code repo (if needed)
yarn && yarn compile
# Dev (Electron)
yarn smoketest
# Dev (Web - Must be run on distro)
yarn smoketest --web --browser [chromium|webkit]
# Build (Electron)
yarn smoketest --buil... | test/smoke/README.md | 1 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.00047860239283181727,
0.0002007699804380536,
0.00016016005247365683,
0.00016635826614219695,
0.00009829227201407775
] |
{
"id": 4,
"code_window": [
"\t\t\t\t`Microsoft.PowerShell.Archive\\\\Expand-Archive -Path \"${vscodeArchivePath}\" -DestinationPath \"${tempDir}\"`\n",
"\t\t\t]);\n",
"\t\t} else {\n",
"\t\t\tcp.spawnSync('unzip', [vscodeArchivePath, '-d', `${tempDir}`]);\n",
"\t\t}\n",
"\t\tfs.renameSync(p... | {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "HTML contributions to package.json",
"type": "object",
"properties": {
"contributes": {
"type": "object",
"properties": {
"html.customData": {
"type": "array",
"markdownDescription": "A list of relative file paths pointing to JS... | extensions/html-language-features/schemas/package.schema.json | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.00017171278886962682,
0.00016853045963216573,
0.00016583973774686456,
0.00016803891048766673,
0.0000024227274479926564
] |
{
"id": 4,
"code_window": [
"\t\t\t\t`Microsoft.PowerShell.Archive\\\\Expand-Archive -Path \"${vscodeArchivePath}\" -DestinationPath \"${tempDir}\"`\n",
"\t\t\t]);\n",
"\t\t} else {\n",
"\t\t\tcp.spawnSync('unzip', [vscodeArchivePath, '-d', `${tempDir}`]);\n",
"\t\t}\n",
"\t\tfs.renameSync(p... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | src/vs/workbench/contrib/terminal/test/common/environmentVariableService.test.ts | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.00017757521709427238,
0.00017387059051543474,
0.00017015948833432049,
0.00017391028814017773,
0.000002073019913950702
] |
{
"id": 4,
"code_window": [
"\t\t\t\t`Microsoft.PowerShell.Archive\\\\Expand-Archive -Path \"${vscodeArchivePath}\" -DestinationPath \"${tempDir}\"`\n",
"\t\t\t]);\n",
"\t\t} else {\n",
"\t\t\tcp.spawnSync('unzip', [vscodeArchivePath, '-d', `${tempDir}`]);\n",
"\t\t}\n",
"\t\tfs.renameSync(p... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | extensions/markdown-language-features/src/test/workspaceSymbolProvider.test.ts | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.00017685908824205399,
0.0001715072285151109,
0.0001642186543904245,
0.000172394749824889,
0.000003317455366413924
] |
{
"id": 5,
"code_window": [
"#### Web\n",
"\n",
"There is no support for testing an old version to a new one yet.\n",
"Instead, simply configure the `--build` command line argument to point to the absolute path of the extracted server web build folder (e.g. `<rest of path here>/vscode-server-darwin-... | steps:
- task: NodeTool@0
inputs:
versionSpec: "16.x"
- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
inputs:
azureSubscription: "vscode-builds-subscription"
KeyVaultName: vscode
SecretsFilter: "github-distro-mixin-password,macos-developer-certificate,macos-d... | build/azure-pipelines/darwin/product-build-darwin.yml | 1 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.0012885414762422442,
0.00026389912818558514,
0.00016592135943938047,
0.0001704459427855909,
0.00024060392752289772
] |
{
"id": 5,
"code_window": [
"#### Web\n",
"\n",
"There is no support for testing an old version to a new one yet.\n",
"Instead, simply configure the `--build` command line argument to point to the absolute path of the extracted server web build folder (e.g. `<rest of path here>/vscode-server-darwin-... | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
| extensions/theme-abyss/yarn.lock | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.0001646169985178858,
0.0001646169985178858,
0.0001646169985178858,
0.0001646169985178858,
0
] |
{
"id": 5,
"code_window": [
"#### Web\n",
"\n",
"There is no support for testing an old version to a new one yet.\n",
"Instead, simply configure the `--build` command line argument to point to the absolute path of the extracted server web build folder (e.g. `<rest of path here>/vscode-server-darwin-... | src/vs/workbench/services/search/test/node/fixtures/examples/subfolder/anotherfolder/anotherfile.txt | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.0001670537021709606,
0.0001670537021709606,
0.0001670537021709606,
0.0001670537021709606,
0
] | |
{
"id": 5,
"code_window": [
"#### Web\n",
"\n",
"There is no support for testing an old version to a new one yet.\n",
"Instead, simply configure the `--build` command line argument to point to the absolute path of the extracted server web build folder (e.g. `<rest of path here>/vscode-server-darwin-... | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | extensions/npm/src/features/bowerJSONContribution.ts | 0 | https://github.com/microsoft/vscode/commit/b4b5c4d97975212100f2a68f05f8d83394460c2d | [
0.00017457330250181258,
0.00016996088379528373,
0.00016656826483085752,
0.000169669947354123,
0.000002302597749803681
] |
{
"id": 0,
"code_window": [
"import expressWinston = require('express-winston');\n",
"import * as winston from 'winston';\n",
"import express = require('express');\n",
"\n",
"const app = express();\n",
"\n",
"// Logger with all options\n"
],
"labels": [
"keep",
"keep",
"a... | // Type definitions for express-winston 3.0
// Project: https://github.com/bithavoc/express-winston#readme
// Definitions by: Alex Brick <https://github.com/bricka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { ErrorRequestHandler, Handler, Request, Response } f... | types/express-winston/index.d.ts | 1 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.018303722143173218,
0.004310965072363615,
0.0001668348122620955,
0.0008276661392301321,
0.005878405645489693
] |
{
"id": 0,
"code_window": [
"import expressWinston = require('express-winston');\n",
"import * as winston from 'winston';\n",
"import express = require('express');\n",
"\n",
"const app = express();\n",
"\n",
"// Logger with all options\n"
],
"labels": [
"keep",
"keep",
"a... | { "extends": "dtslint/dt.json" }
| types/lodash.first/tslint.json | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017143318837042898,
0.00017143318837042898,
0.00017143318837042898,
0.00017143318837042898,
0
] |
{
"id": 0,
"code_window": [
"import expressWinston = require('express-winston');\n",
"import * as winston from 'winston';\n",
"import express = require('express');\n",
"\n",
"const app = express();\n",
"\n",
"// Logger with all options\n"
],
"labels": [
"keep",
"keep",
"a... | import { mapKeys } from "lodash";
export default mapKeys;
| types/lodash-es/mapKeys.d.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017458196089137346,
0.00017458196089137346,
0.00017458196089137346,
0.00017458196089137346,
0
] |
{
"id": 0,
"code_window": [
"import expressWinston = require('express-winston');\n",
"import * as winston from 'winston';\n",
"import express = require('express');\n",
"\n",
"const app = express();\n",
"\n",
"// Logger with all options\n"
],
"labels": [
"keep",
"keep",
"a... | // Type definitions for non-npm package Google Google Cloud Machine Learning Engine v1 1.0
// Project: https://cloud.google.com/ml/
// Definitions by: Bolisov Alexey <https://github.com/Bolisov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// IMPORTANT
// This file was ... | types/gapi.client.ml/index.d.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00023532513296231627,
0.0001689599739620462,
0.00016258579853456467,
0.00016853050328791142,
0.000006269429377425695
] |
{
"id": 1,
"code_window": [
" colorize: true,\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" expressFormat: true,\n",
" ignoreRoute: (req, res) => true,\n",
" ignoredRoutes: ['foo'],\n",
" level: (req, res) => 'level',\n",
" meta: true,\n",
" metaField: 'metaFi... | // Type definitions for express-winston 3.0
// Project: https://github.com/bithavoc/express-winston#readme
// Definitions by: Alex Brick <https://github.com/bricka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { ErrorRequestHandler, Handler, Request, Response } f... | types/express-winston/index.d.ts | 1 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0030912759248167276,
0.001296093687415123,
0.00016756562399677932,
0.0011904751881957054,
0.0010041833156719804
] |
{
"id": 1,
"code_window": [
" colorize: true,\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" expressFormat: true,\n",
" ignoreRoute: (req, res) => true,\n",
" ignoredRoutes: ['foo'],\n",
" level: (req, res) => 'level',\n",
" meta: true,\n",
" metaField: 'metaFi... | { "extends": "dtslint/dt.json" }
| types/emoji-regex/tslint.json | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017225509509444237,
0.00017225509509444237,
0.00017225509509444237,
0.00017225509509444237,
0
] |
{
"id": 1,
"code_window": [
" colorize: true,\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" expressFormat: true,\n",
" ignoreRoute: (req, res) => true,\n",
" ignoredRoutes: ['foo'],\n",
" level: (req, res) => 'level',\n",
" meta: true,\n",
" metaField: 'metaFi... | {
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"strictFunctionTypes": true,
"baseUrl": "../../",
"typeRoots": [
"../../"
]... | types/socket.io/v1/tsconfig.json | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017430233128834516,
0.00017382037185598165,
0.00017309165559709072,
0.00017406717233825475,
5.241573717285064e-7
] |
{
"id": 1,
"code_window": [
" colorize: true,\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" expressFormat: true,\n",
" ignoreRoute: (req, res) => true,\n",
" ignoredRoutes: ['foo'],\n",
" level: (req, res) => 'level',\n",
" meta: true,\n",
" metaField: 'metaFi... | import parseChangelog = require('changelog-parser');
const options = {
filePath: 'path/to/CHANGELOG.md',
removeMarkdown: false
};
const fn = (obj: object): void => {};
parseChangelog({filePath: 'path/to/CHANGELOG.md'}, (error, result) => {
if (error) {
throw error;
}
fn(result);
});
par... | types/changelog-parser/changelog-parser-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0001739374129101634,
0.00017342997307423502,
0.00017316760204266757,
0.00017318493337370455,
3.5887705962522887e-7
] |
{
"id": 2,
"code_window": [
"\n",
"// Error Logger with all options\n",
"app.use(expressWinston.errorLogger({\n",
" baseMeta: { foo: 'foo', nested: { bar: 'baz' } },\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" level: (req, res) => 'level',\n",
" metaField: 'metaFiel... | import expressWinston = require('express-winston');
import * as winston from 'winston';
import express = require('express');
const app = express();
// Logger with all options
app.use(expressWinston.logger({
baseMeta: { foo: 'foo', nested: { bar: 'baz' } },
bodyBlacklist: ['foo'],
bodyWhitelist: ['bar'],
color... | types/express-winston/express-winston-tests.ts | 1 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.9146378040313721,
0.10092146694660187,
0.0018288898281753063,
0.009073570370674133,
0.27137893438339233
] |
{
"id": 2,
"code_window": [
"\n",
"// Error Logger with all options\n",
"app.use(expressWinston.errorLogger({\n",
" baseMeta: { foo: 'foo', nested: { bar: 'baz' } },\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" level: (req, res) => 'level',\n",
" metaField: 'metaFiel... | declare var hiddenField: ASPxClientHiddenField;
declare var mainCallbackPanel: ASPxClientCallbackPanel;
declare var loginPopup: ASPxClientPopupControl;
declare var searchButton: ASPxClientButton;
declare var searchComboBox: ASPxClientComboBox;
declare var roomsNumberSpinEdit: ASPxClientSpinEdit;
declare var adultsNumbe... | types/devexpress-web/v171/devexpress-web-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00023426645202562213,
0.00017190778453368694,
0.00016567076090723276,
0.0001705677277641371,
0.000009972845873562619
] |
{
"id": 2,
"code_window": [
"\n",
"// Error Logger with all options\n",
"app.use(expressWinston.errorLogger({\n",
" baseMeta: { foo: 'foo', nested: { bar: 'baz' } },\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" level: (req, res) => 'level',\n",
" metaField: 'metaFiel... | import isFunction = require("is-function");
const a: boolean = isFunction("string");
const b: boolean = isFunction(true);
const c: boolean = isFunction((x: number) => x * x);
const d: boolean = isFunction({ type: "number" });
const e: boolean = isFunction(() => {
return "I am anounymous!";
});
| types/is-function/is-function-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0001767336652847007,
0.0001767336652847007,
0.0001767336652847007,
0.0001767336652847007,
0
] |
{
"id": 2,
"code_window": [
"\n",
"// Error Logger with all options\n",
"app.use(expressWinston.errorLogger({\n",
" baseMeta: { foo: 'foo', nested: { bar: 'baz' } },\n",
" dynamicMeta: (req, res, err) => ({ foo: 'bar' }),\n",
" level: (req, res) => 'level',\n",
" metaField: 'metaFiel... | import * as gulp from 'gulp';
import revReplace = require('gulp-rev-replace');
import rev = require('gulp-rev');
import useref = require('gulp-useref');
gulp.task("index", () => {
return gulp.src("src/index.html")
.pipe(useref()) // Concatenate with gulp-useref
.pipe(rev()) ... | types/gulp-rev-replace/gulp-rev-replace-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0001786354259820655,
0.000175549226696603,
0.00017295537691097707,
0.00017590311472304165,
0.0000020107329419261077
] |
{
"id": 3,
"code_window": [
"// Definitions by: Alex Brick <https://github.com/bricka>\n",
"// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n",
"// TypeScript Version: 2.2\n",
"\n",
"import { ErrorRequestHandler, Handler, Request, Response } from 'express';\n",
"import * a... | // Type definitions for express-winston 3.0
// Project: https://github.com/bithavoc/express-winston#readme
// Definitions by: Alex Brick <https://github.com/bricka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { ErrorRequestHandler, Handler, Request, Response } f... | types/express-winston/index.d.ts | 1 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.9853891730308533,
0.09610006213188171,
0.00016615548520348966,
0.0008056355291046202,
0.28144803643226624
] |
{
"id": 3,
"code_window": [
"// Definitions by: Alex Brick <https://github.com/bricka>\n",
"// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n",
"// TypeScript Version: 2.2\n",
"\n",
"import { ErrorRequestHandler, Handler, Request, Response } from 'express';\n",
"import * a... | import { findKey } from "../fp";
export = findKey;
| types/lodash/fp/findKey.d.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017432744789402932,
0.00017432744789402932,
0.00017432744789402932,
0.00017432744789402932,
0
] |
{
"id": 3,
"code_window": [
"// Definitions by: Alex Brick <https://github.com/bricka>\n",
"// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n",
"// TypeScript Version: 2.2\n",
"\n",
"import { ErrorRequestHandler, Handler, Request, Response } from 'express';\n",
"import * a... | { "extends": "dtslint/dt.json" }
| types/async-retry/tslint.json | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017067980661522597,
0.00017067980661522597,
0.00017067980661522597,
0.00017067980661522597,
0
] |
{
"id": 3,
"code_window": [
"// Definitions by: Alex Brick <https://github.com/bricka>\n",
"// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n",
"// TypeScript Version: 2.2\n",
"\n",
"import { ErrorRequestHandler, Handler, Request, Response } from 'express';\n",
"import * a... | import PluginError = require('plugin-error');
let e: PluginError;
// string message
e = new PluginError('my-plugin', 'message');
e = new PluginError('my-plugin', 'message', { showProperties: false, showStack: false });
e = new PluginError('my-plugin', { showProperties: false, showStack: false, message: 'message' });
... | types/plugin-error/plugin-error-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017542998830322176,
0.00017171567014884204,
0.00016575372137594968,
0.00017396330076735467,
0.000004258045009919442
] |
{
"id": 4,
"code_window": [
" bodyWhitelist?: string[];\n",
" colorize?: boolean;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" expressFormat?: boolean;\n",
" ignoreRoute?: RouteFilter;\n",
" ignoredRoutes?: string[];\n",
" level?: string | DynamicLevelFunction;\n"
],
"labels... | import expressWinston = require('express-winston');
import * as winston from 'winston';
import express = require('express');
const app = express();
// Logger with all options
app.use(expressWinston.logger({
baseMeta: { foo: 'foo', nested: { bar: 'baz' } },
bodyBlacklist: ['foo'],
bodyWhitelist: ['bar'],
color... | types/express-winston/express-winston-tests.ts | 1 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.8155069351196289,
0.0918559581041336,
0.00016565386613365263,
0.00025723755243234336,
0.24306415021419525
] |
{
"id": 4,
"code_window": [
" bodyWhitelist?: string[];\n",
" colorize?: boolean;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" expressFormat?: boolean;\n",
" ignoreRoute?: RouteFilter;\n",
" ignoredRoutes?: string[];\n",
" level?: string | DynamicLevelFunction;\n"
],
"labels... | const params: ReCaptchaV2.Parameters = {
sitekey: "mySuperSecretKey",
theme: "light",
type: "image",
size: "normal",
tabindex: 5,
isolated: false,
callback: (response: string) => { },
"expired-callback": () => { },
"error-callback": () => { },
};
const size1: ReCaptchaV2.Size = "compact";
const size2... | types/grecaptcha/grecaptcha-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0001755484554450959,
0.0001713723613647744,
0.00016303958545904607,
0.00017270688840653747,
0.000004354902102932101
] |
{
"id": 4,
"code_window": [
" bodyWhitelist?: string[];\n",
" colorize?: boolean;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" expressFormat?: boolean;\n",
" ignoreRoute?: RouteFilter;\n",
" ignoredRoutes?: string[];\n",
" level?: string | DynamicLevelFunction;\n"
],
"labels... | {
"private": true,
"dependencies": {
"csstype": "^2.0.0",
"indefinite-observable": "^1.0.1"
}
}
| types/jss/package.json | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0001752756506903097,
0.0001752756506903097,
0.0001752756506903097,
0.0001752756506903097,
0
] |
{
"id": 4,
"code_window": [
" bodyWhitelist?: string[];\n",
" colorize?: boolean;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" expressFormat?: boolean;\n",
" ignoreRoute?: RouteFilter;\n",
" ignoredRoutes?: string[];\n",
" level?: string | DynamicLevelFunction;\n"
],
"labels... | // Type definitions for express-session 1.15
// Project: https://github.com/expressjs/session
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi>
// Jacob Bogers <https://github.com/jacobbogers>
// Naoto Yokoyama <https://github.com/builtinnya>
// Ryan Cannon... | types/express-session/index.d.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00019916622841265053,
0.00017506172298453748,
0.00016648662858642638,
0.00017209010547958314,
0.000010169665983994491
] |
{
"id": 5,
"code_window": [
"export function logger(options: LoggerOptions): Handler;\n",
"\n",
"export interface BaseErrorLoggerOptions {\n",
" baseMeta?: object;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" level?: string | DynamicLevelFunction;\n",
" metaField?: string;\n",
... | import expressWinston = require('express-winston');
import * as winston from 'winston';
import express = require('express');
const app = express();
// Logger with all options
app.use(expressWinston.logger({
baseMeta: { foo: 'foo', nested: { bar: 'baz' } },
bodyBlacklist: ['foo'],
bodyWhitelist: ['bar'],
color... | types/express-winston/express-winston-tests.ts | 1 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.9283770322799683,
0.1552775353193283,
0.00016992309247143567,
0.011679085902869701,
0.2985479235649109
] |
{
"id": 5,
"code_window": [
"export function logger(options: LoggerOptions): Handler;\n",
"\n",
"export interface BaseErrorLoggerOptions {\n",
" baseMeta?: object;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" level?: string | DynamicLevelFunction;\n",
" metaField?: string;\n",
... | // Type definitions for makeup-floating-label 0.0
// Project: https://github.com/makeup-js/makeup-floating-label#readme
// Definitions by: Timur Manyanov <https://github.com/darkwebdev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
declare class FloatingLabel {
constru... | types/makeup-floating-label/index.d.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.0001687359035713598,
0.00016816882998682559,
0.00016760175640229136,
0.00016816882998682559,
5.670735845342278e-7
] |
{
"id": 5,
"code_window": [
"export function logger(options: LoggerOptions): Handler;\n",
"\n",
"export interface BaseErrorLoggerOptions {\n",
" baseMeta?: object;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" level?: string | DynamicLevelFunction;\n",
" metaField?: string;\n",
... | import * as glVec from "gl-vec4";
import glVecAdd from "gl-vec4/add";
import glVecClone from "gl-vec4/clone";
import glVecCopy from "gl-vec4/copy";
import glVecCreate from "gl-vec4/create";
import glVecDistance from "gl-vec4/distance";
import glVecDivide from "gl-vec4/divide";
import glVecDot from "gl-vec4/dot";
impor... | types/gl-vec4/gl-vec4-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00017912202747538686,
0.00017710396787151694,
0.00017525193106848747,
0.00017724299686960876,
0.0000012046966730849817
] |
{
"id": 5,
"code_window": [
"export function logger(options: LoggerOptions): Handler;\n",
"\n",
"export interface BaseErrorLoggerOptions {\n",
" baseMeta?: object;\n",
" dynamicMeta?: DynamicMetaFunction;\n",
" level?: string | DynamicLevelFunction;\n",
" metaField?: string;\n",
... | import {
createContext,
getDefaultWatermarks,
summarizers,
Watermarks
} from 'istanbul-lib-report';
import { CoverageMap } from 'istanbul-lib-coverage';
const watermarks: Watermarks = {
statements: [],
branches: [],
functions: [],
lines: []
};
createContext();
createContext({});
const context = createContext... | types/istanbul-lib-report/istanbul-lib-report-tests.ts | 0 | https://github.com/DefinitelyTyped/DefinitelyTyped/commit/dfa678e14395f3e0739af90a17cf1c4e68619bf0 | [
0.00018022223957814276,
0.00017719579045660794,
0.00017439262592233717,
0.0001770841481629759,
0.0000020729498828586657
] |
{
"id": 0,
"code_window": [
" <ListItemText primary={`Line item ${value + 1}`} />\n",
" <ListItemSecondaryAction>\n",
" <Checkbox\n",
" onClick={this.handleToggle(value)}\n",
" checked={this.state.checked.indexOf(value) !... | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemSecondaryAction, ListItemText } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
import Avata... | docs/src/pages/demos/lists/CheckboxListSecondary.js | 1 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.9937762022018433,
0.14977990090847015,
0.00016458625032100827,
0.0030800984241068363,
0.3448721170425415
] |
{
"id": 0,
"code_window": [
" <ListItemText primary={`Line item ${value + 1}`} />\n",
" <ListItemSecondaryAction>\n",
" <Checkbox\n",
" onClick={this.handleToggle(value)}\n",
" checked={this.state.checked.indexOf(value) !... | // flow-typed signature: 0d8dc35f8a477a72673435242d172674
// flow-typed version: <<STUB>>/babel-plugin-istanbul_v^4.1.5/flow_v0.56.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-istanbul'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to sha... | flow-typed/npm/babel-plugin-istanbul_vx.x.x.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00017339941405225545,
0.000168465863680467,
0.00016428096569143236,
0.00016809155931696296,
0.000004080109647475183
] |
{
"id": 0,
"code_window": [
" <ListItemText primary={`Line item ${value + 1}`} />\n",
" <ListItemSecondaryAction>\n",
" <Checkbox\n",
" onClick={this.handleToggle(value)}\n",
" checked={this.state.checked.indexOf(value) !... | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon;
let PhonelinkErase = props =>
<SvgIconCustom {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2... | packages/material-ui-icons/src/PhonelinkErase.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00017241893510799855,
0.00017237011343240738,
0.0001723212917568162,
0.00017237011343240738,
4.882167559117079e-8
] |
{
"id": 0,
"code_window": [
" <ListItemText primary={`Line item ${value + 1}`} />\n",
" <ListItemSecondaryAction>\n",
" <Checkbox\n",
" onClick={this.handleToggle(value)}\n",
" checked={this.state.checked.indexOf(value) !... | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon;
let HdrStrong = props =>
<SvgIconCustom {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 ... | packages/material-ui-icons/src/HdrStrong.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00017254245176445693,
0.0001715450780466199,
0.00017054770432878286,
0.0001715450780466199,
9.973737178370357e-7
] |
{
"id": 1,
"code_window": [
" <ListItemText primary=\"Wi-Fi\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('wifi')}\n",
" checked={this.state.checked.indexOf('wifi') !== -1}\n",
" ... | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, {
ListItem,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
ListSubheader,
} from 'material-ui/List';
import Switch fro... | docs/src/pages/demos/lists/SwitchListSecondary.js | 1 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.9978736639022827,
0.11451192945241928,
0.0001667758187977597,
0.0021874343510717154,
0.31235605478286743
] |
{
"id": 1,
"code_window": [
" <ListItemText primary=\"Wi-Fi\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('wifi')}\n",
" checked={this.state.checked.indexOf('wifi') !== -1}\n",
" ... | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
const SvgIconCustom = global.__MUI_SvgIcon__ || SvgIcon;
let Email = props =>
<SvgIconCustom {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-... | packages/material-ui-icons/src/Email.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.0001727676426526159,
0.00017146591562777758,
0.00017016420315485448,
0.00017146591562777758,
0.0000013017197488807142
] |
{
"id": 1,
"code_window": [
" <ListItemText primary=\"Wi-Fi\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('wifi')}\n",
" checked={this.state.checked.indexOf('wifi') !== -1}\n",
" ... | ---
filename: /src/Paper/Paper.js
---
<!--- This documentation is automatically generated, do not try to edit it. -->
# Paper
## Props
| Name | Type | Default | Description |
|:-----|:-----|:--------|:------------|
| classes | Object | | Useful to extend the style applied to components. |
| component | ElementTy... | pages/api/paper.md | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.0001746042544255033,
0.00017035107885021716,
0.00015955750131979585,
0.00017155124805867672,
0.000004727596660814015
] |
{
"id": 1,
"code_window": [
" <ListItemText primary=\"Wi-Fi\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('wifi')}\n",
" checked={this.state.checked.indexOf('wifi') !== -1}\n",
" ... | // @flow
import React from 'react';
import keycode from 'keycode';
import { assert } from 'chai';
import { ReactWrapper } from 'enzyme';
import TestUtils from 'react-dom/test-utils';
import { createMount } from 'src/test-utils';
import Popover from 'src/Popover';
import SimpleMenu from './fixtures/menus/SimpleMenu';
i... | test/integration/Menu.spec.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00017564957670401782,
0.0001714233949314803,
0.00016108894487842917,
0.00017157381807919592,
0.0000032751520393503597
] |
{
"id": 2,
"code_window": [
" </ListItemIcon>\n",
" <ListItemText primary=\"Bluetooth\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('bluetooth')}\n",
" checked={this.state.checke... | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, {
ListItem,
ListItemIcon,
ListItemSecondaryAction,
ListItemText,
ListSubheader,
} from 'material-ui/List';
import Switch fro... | docs/src/pages/demos/lists/SwitchListSecondary.js | 1 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.9964259266853333,
0.12363656610250473,
0.00016481099009979516,
0.005997634958475828,
0.3098289370536804
] |
{
"id": 2,
"code_window": [
" </ListItemIcon>\n",
" <ListItemText primary=\"Bluetooth\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('bluetooth')}\n",
" checked={this.state.checke... | // flow-typed signature: fbf80a98d7e0a1254cbdcc2ad5bbd54c
// flow-typed version: <<STUB>>/karma-mocha-reporter_v^2.2.5/flow_v0.56.0
/**
* This is an autogenerated libdef stub for:
*
* 'karma-mocha-reporter'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share... | flow-typed/npm/karma-mocha-reporter_vx.x.x.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00017134576046373695,
0.0001682404981693253,
0.00016236565716098994,
0.0001696252729743719,
0.000003642370529632899
] |
{
"id": 2,
"code_window": [
" </ListItemIcon>\n",
" <ListItemText primary=\"Bluetooth\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('bluetooth')}\n",
" checked={this.state.checke... | // @flow
import React from 'react';
import type { Node, ElementType } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = (theme: Object) => ({
root: {
color: 'inherit',
display: 'table-row',
height: ... | src/Table/TableRow.js | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00017635188123676926,
0.0001726009213598445,
0.00016391952522099018,
0.00017358582408633083,
0.0000031800225315237185
] |
{
"id": 2,
"code_window": [
" </ListItemIcon>\n",
" <ListItemText primary=\"Bluetooth\" />\n",
" <ListItemSecondaryAction>\n",
" <Switch\n",
" onClick={this.handleToggle('bluetooth')}\n",
" checked={this.state.checke... | import * as React from 'react';
import { StandardProps } from '..';
export interface GridListTileProps extends StandardProps<
React.HTMLAttributes<HTMLLIElement>,
GridListTileClassKey
> {
cols?: number;
component?: React.ReactType;
rows?: number;
}
export type GridListTileClassKey =
| 'root'
| 'tile'
... | src/GridList/GridListTile.d.ts | 0 | https://github.com/mui/material-ui/commit/5c2c3e869ea483ae9008af71bad1d477351fe3d6 | [
0.00016933016013354063,
0.00016721822612453252,
0.0001635959924897179,
0.0001687285111984238,
0.000002573052825027844
] |
{
"id": 0,
"code_window": [
"- name: release-npm-packages\n",
" image: grafana/build-container:1.3.1\n",
" commands:\n",
" - ./scripts/build/release-packages.sh ${DRONE_TAG}\n",
" environment:\n",
" NPM_TOKEN:\n",
" from_secret: npm_token\n",
" depends_on:\n"
],
"lab... | load(
'scripts/lib.star',
'test_release_ver',
'build_image',
'publish_image',
'pipeline',
'lint_backend_step',
'codespell_step',
'shellcheck_step',
'dashboard_schemas_check',
'test_backend_step',
'test_frontend_step',
'build_backend_step',
'build_frontend_step',
'... | scripts/release.star | 1 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.008495952934026718,
0.0007327472558245063,
0.00016542027879040688,
0.00017272827972192317,
0.0017687565414234996
] |
{
"id": 0,
"code_window": [
"- name: release-npm-packages\n",
" image: grafana/build-container:1.3.1\n",
" commands:\n",
" - ./scripts/build/release-packages.sh ${DRONE_TAG}\n",
" environment:\n",
" NPM_TOKEN:\n",
" from_secret: npm_token\n",
" depends_on:\n"
],
"lab... | elasticsearch5:
image: elasticsearch:5
command: elasticsearch
ports:
- '10200:9200'
- '10300:9300'
fake-elastic5-data:
image: grafana/fake-data-gen
links:
- elasticsearch5
environment:
FD_SERVER: elasticsearch5
FD_DATASOURCE: elasticsearch
FD_PORT: 9200
| devenv/docker/blocks/elastic5/docker-compose.yaml | 0 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.0001677331601968035,
0.00016718200640752912,
0.0001666308380663395,
0.00016718200640752912,
5.511610652320087e-7
] |
{
"id": 0,
"code_window": [
"- name: release-npm-packages\n",
" image: grafana/build-container:1.3.1\n",
" commands:\n",
" - ./scripts/build/release-packages.sh ${DRONE_TAG}\n",
" environment:\n",
" NPM_TOKEN:\n",
" from_secret: npm_token\n",
" depends_on:\n"
],
"lab... | +++
title = "Share query results"
weight = 310
+++
# Share query results between panels
Grafana let you use the query result from one panel for any other panel in the dashboard. Sharing query results across panels reduces the number of queries made to your data source, which can improve the performance of your dashbo... | docs/sources/panels/share-query-results.md | 0 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.00016471357957925647,
0.00016403426707256585,
0.000163366217748262,
0.00016402303299400955,
5.501156010723207e-7
] |
{
"id": 0,
"code_window": [
"- name: release-npm-packages\n",
" image: grafana/build-container:1.3.1\n",
" commands:\n",
" - ./scripts/build/release-packages.sh ${DRONE_TAG}\n",
" environment:\n",
" NPM_TOKEN:\n",
" from_secret: npm_token\n",
" depends_on:\n"
],
"lab... | package plugins
import (
"fmt"
"runtime"
"strings"
)
func ComposePluginStartCommand(executable string) string {
os := strings.ToLower(runtime.GOOS)
arch := runtime.GOARCH
extension := ""
if os == "windows" {
extension = ".exe"
}
return fmt.Sprintf("%s_%s_%s%s", executable, os, strings.ToLower(arch), exte... | pkg/plugins/backend_utils.go | 0 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.00018501990416552871,
0.0001767325884429738,
0.00016844527272041887,
0.0001767325884429738,
0.000008287315722554922
] |
{
"id": 2,
"code_window": [
" 'NPM_TOKEN': {\n",
" 'from_secret': 'npm_token',\n",
" },\n",
" },\n",
" 'commands': commands,\n",
" }\n",
"\n",
"def get_steps(edition, ver_mode):\n"
],
"labels": [
"keep",
"keep",
"a... | load(
'scripts/lib.star',
'test_release_ver',
'build_image',
'publish_image',
'pipeline',
'lint_backend_step',
'codespell_step',
'shellcheck_step',
'dashboard_schemas_check',
'test_backend_step',
'test_frontend_step',
'build_backend_step',
'build_frontend_step',
'... | scripts/release.star | 1 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.9952023029327393,
0.14173099398612976,
0.000166505211382173,
0.002218091394752264,
0.3316791355609894
] |
{
"id": 2,
"code_window": [
" 'NPM_TOKEN': {\n",
" 'from_secret': 'npm_token',\n",
" },\n",
" },\n",
" 'commands': commands,\n",
" }\n",
"\n",
"def get_steps(edition, ver_mode):\n"
],
"labels": [
"keep",
"keep",
"a... | # Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.
# More details are here: https://help.github.com/articles/about-codeowners/
# The '*' pattern is global owners.
# Order is important. The last matching pattern has the most precedence.
# The folders are ordered as f... | .github/CODEOWNERS | 0 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.00017338336328975856,
0.00017144759476650506,
0.00017001386731863022,
0.00017081282567232847,
0.000001366916649203631
] |
{
"id": 2,
"code_window": [
" 'NPM_TOKEN': {\n",
" 'from_secret': 'npm_token',\n",
" },\n",
" },\n",
" 'commands': commands,\n",
" }\n",
"\n",
"def get_steps(edition, ver_mode):\n"
],
"labels": [
"keep",
"keep",
"a... | import React, { HTMLProps, useEffect } from 'react';
import { useForm, Mode, OnSubmit, DeepPartial } from 'react-hook-form';
import { FormAPI } from '../../types';
import { css } from 'emotion';
interface FormProps<T> extends Omit<HTMLProps<HTMLFormElement>, 'onSubmit'> {
validateOn?: Mode;
validateOnMount?: boole... | packages/grafana-ui/src/components/Forms/Form.tsx | 0 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.00017251759709324688,
0.0001707950868876651,
0.00016920120106078684,
0.0001705754257272929,
0.000001132363195210928
] |
{
"id": 2,
"code_window": [
" 'NPM_TOKEN': {\n",
" 'from_secret': 'npm_token',\n",
" },\n",
" },\n",
" 'commands': commands,\n",
" }\n",
"\n",
"def get_steps(edition, ver_mode):\n"
],
"labels": [
"keep",
"keep",
"a... | import React, { ComponentProps, useState } from 'react';
import { InlineField, Input } from '@grafana/ui';
import { useDispatch } from '../../../../hooks/useStatelessReducer';
import { changeMetricSetting } from '../state/actions';
import { ChangeMetricSettingAction } from '../state/types';
import { SettingKeyOf } from... | public/app/plugins/datasource/elasticsearch/components/QueryEditor/MetricAggregationsEditor/SettingsEditor/SettingField.tsx | 0 | https://github.com/grafana/grafana/commit/54b1ce2cdb7afefcdf5745c54d72344bbfc4175b | [
0.0001749459042912349,
0.00017404186655767262,
0.00017329180263914168,
0.00017396488692611456,
5.903415853936167e-7
] |
{
"id": 1,
"code_window": [
"\n",
"#### --use-npm flag in storybook CLI\n",
"\n",
"The `--use-npm` is now removed. Use `--package-manager=npm` instead. [More info here](#cli-option---use-npm-deprecated).\n",
"\n",
"##### `setGlobalConfig` from `@storybook/react`\n",
"\n",
"The `setGl... | // noinspection JSUnusedGlobalSymbols
import * as fs from 'fs-extra';
import type { RequestHandler } from 'express';
import type { ViteDevServer } from 'vite';
import express from 'express';
import { dirname, join, parse } from 'path';
import type { Options, StorybookConfig as StorybookBaseConfig } from '@storybook/ty... | code/builders/builder-vite/src/index.ts | 1 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00023302649788092822,
0.0001923091331264004,
0.00016888463869690895,
0.00018003863806370646,
0.000024069249775493518
] |
{
"id": 1,
"code_window": [
"\n",
"#### --use-npm flag in storybook CLI\n",
"\n",
"The `--use-npm` is now removed. Use `--package-manager=npm` instead. [More info here](#cli-option---use-npm-deprecated).\n",
"\n",
"##### `setGlobalConfig` from `@storybook/react`\n",
"\n",
"The `setGl... | ```js
// Button.stories.js|jsx
export const Basic {
parameters: {
docs: {
story: { autoplay: true },
},
},
};
```
| docs/snippets/common/api-doc-block-story-parameter.js.mdx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00017833437595982105,
0.0001724474277580157,
0.00016656047955621034,
0.0001724474277580157,
0.000005886948201805353
] |
{
"id": 1,
"code_window": [
"\n",
"#### --use-npm flag in storybook CLI\n",
"\n",
"The `--use-npm` is now removed. Use `--package-manager=npm` instead. [More info here](#cli-option---use-npm-deprecated).\n",
"\n",
"##### `setGlobalConfig` from `@storybook/react`\n",
"\n",
"The `setGl... | import React from 'react';
export enum EnumWithExtraProps {
key1 = 'key1',
key2 = 'key2',
}
export const component = () => <div>hello</div>;
| code/renderers/react/template/stories/docgen-components/9832-ts-enum-export/input.tsx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00017115307855419815,
0.00017115307855419815,
0.00017115307855419815,
0.00017115307855419815,
0
] |
{
"id": 1,
"code_window": [
"\n",
"#### --use-npm flag in storybook CLI\n",
"\n",
"The `--use-npm` is now removed. Use `--package-manager=npm` instead. [More info here](#cli-option---use-npm-deprecated).\n",
"\n",
"##### `setGlobalConfig` from `@storybook/react`\n",
"\n",
"The `setGl... | ```ts
// .storybook/preview.ts
// Replace your-framework with the framework you are using (e.g., react, vue3)
import { Preview } from '@storybook/your-framework';
import { themes, ensure } from '@storybook/theming';
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(backgro... | docs/snippets/common/storybook-preview-auto-docs-override-theme.ts.mdx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00025568102137185633,
0.00019711740605998784,
0.0001664886949583888,
0.00016918248729780316,
0.00004142533362028189
] |
{
"id": 2,
"code_window": [
"```ts\n",
"import { setProjectAnnotations } from `@storybook/testing-react`.\n",
"```\n",
"\n",
"## From version 7.5.0 to 7.6.0\n",
"\n",
"#### CommonJS with Vite is deprecated\n"
],
"labels": [
"keep",
"keep",
"keep",
"add",
"keep",
... | // noinspection JSUnusedGlobalSymbols
import * as fs from 'fs-extra';
import type { RequestHandler } from 'express';
import type { ViteDevServer } from 'vite';
import express from 'express';
import { dirname, join, parse } from 'path';
import type { Options, StorybookConfig as StorybookBaseConfig } from '@storybook/ty... | code/builders/builder-vite/src/index.ts | 1 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.0003166973765473813,
0.0001928436104208231,
0.0001651638449402526,
0.00017054576892405748,
0.00004559645094559528
] |
{
"id": 2,
"code_window": [
"```ts\n",
"import { setProjectAnnotations } from `@storybook/testing-react`.\n",
"```\n",
"\n",
"## From version 7.5.0 to 7.6.0\n",
"\n",
"#### CommonJS with Vite is deprecated\n"
],
"labels": [
"keep",
"keep",
"keep",
"add",
"keep",
... | /* eslint-disable no-underscore-dangle */
import type { Component } from './types';
const titleCase = (str: string): string =>
str
.split('-')
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
.join('');
export const getComponentName = (component: Component): string => {
if (!component) {
... | code/ui/blocks/src/blocks/utils.ts | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00017301047046203166,
0.0001703985035419464,
0.00016783428145572543,
0.0001703746384009719,
0.000002365595946685062
] |
{
"id": 2,
"code_window": [
"```ts\n",
"import { setProjectAnnotations } from `@storybook/testing-react`.\n",
"```\n",
"\n",
"## From version 7.5.0 to 7.6.0\n",
"\n",
"#### CommonJS with Vite is deprecated\n"
],
"labels": [
"keep",
"keep",
"keep",
"add",
"keep",
... | ```tsx
// YourComponent.stories.ts|tsx
import type { Meta } from 'storybook-solidjs';
import { YourComponent } from './YourComponent';
// Replacing the <Story/> element with a Story function is also a good way of writing decorators.
// Useful to prevent the full remount of the component's story.
const meta: Meta<typ... | docs/snippets/solid/your-component-with-decorator.story-function-ts.ts.mdx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00017099420074373484,
0.00016877346206456423,
0.0001665527088334784,
0.00016877346206456423,
0.0000022207459551282227
] |
{
"id": 2,
"code_window": [
"```ts\n",
"import { setProjectAnnotations } from `@storybook/testing-react`.\n",
"```\n",
"\n",
"## From version 7.5.0 to 7.6.0\n",
"\n",
"#### CommonJS with Vite is deprecated\n"
],
"labels": [
"keep",
"keep",
"keep",
"add",
"keep",
... | import React from 'react';
import { LocationProvider } from '@storybook/router';
import type { Meta, StoryObj } from '@storybook/react';
import { NotificationList } from './NotificationList';
import * as itemStories from './NotificationItem.stories';
const meta = {
component: NotificationList,
title: 'Notificatio... | code/ui/manager/src/components/notifications/NotificationList.stories.tsx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00016644346760585904,
0.0001658237015362829,
0.0001650723716011271,
0.00016574915207456797,
4.841857048631937e-7
] |
{
"id": 4,
"code_window": [
"import { transformIframeHtml } from './transform-iframe-html';\n",
"import { createViteServer } from './vite-server';\n",
"import { build as viteBuild } from './build';\n",
"import type { ViteBuilder, StorybookConfigVite } from './types';\n",
"\n",
"export { with... | // noinspection JSUnusedGlobalSymbols
import * as fs from 'fs-extra';
import type { RequestHandler } from 'express';
import type { ViteDevServer } from 'vite';
import express from 'express';
import { dirname, join, parse } from 'path';
import type { Options, StorybookConfig as StorybookBaseConfig } from '@storybook/ty... | code/builders/builder-vite/src/index.ts | 1 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.8504577279090881,
0.07976559549570084,
0.00016696086095180362,
0.00043209854629822075,
0.24373850226402283
] |
{
"id": 4,
"code_window": [
"import { transformIframeHtml } from './transform-iframe-html';\n",
"import { createViteServer } from './vite-server';\n",
"import { build as viteBuild } from './build';\n",
"import type { ViteBuilder, StorybookConfigVite } from './types';\n",
"\n",
"export { with... | ```ts
// List.stories.ts|tsx
import type { Meta, StoryObj } from '@storybook/react';
import { List } from './List';
const meta: Meta<typeof List> = {
component: List,
};
export default meta;
type Story = StoryObj<typeof List>;
//👇 Always an empty list, not super interesting
export const Empty: Story = {};
```
| docs/snippets/react/list-story-starter.ts.mdx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.0004345457418821752,
0.0003006521728821099,
0.000166758632985875,
0.0003006521728821099,
0.0001338935544481501
] |
{
"id": 4,
"code_window": [
"import { transformIframeHtml } from './transform-iframe-html';\n",
"import { createViteServer } from './vite-server';\n",
"import { build as viteBuild } from './build';\n",
"import type { ViteBuilder, StorybookConfigVite } from './types';\n",
"\n",
"export { with... | import mapValues from 'lodash/mapValues.js';
import { logger } from '@storybook/client-logger';
import type { Renderer, ArgTypesEnhancer, SBEnumType, StrictInputType } from '@storybook/types';
import { filterArgTypes } from './filterArgTypes';
import { combineParameters } from './parameters';
export type ControlsMatch... | code/lib/preview-api/src/modules/store/inferControls.ts | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00017451171879656613,
0.00017058437515515834,
0.0001667665783315897,
0.0001700685388641432,
0.000002528360710130073
] |
{
"id": 4,
"code_window": [
"import { transformIframeHtml } from './transform-iframe-html';\n",
"import { createViteServer } from './vite-server';\n",
"import { build as viteBuild } from './build';\n",
"import type { ViteBuilder, StorybookConfigVite } from './types';\n",
"\n",
"export { with... | ```js
// Button.stories.js|jsx
import { fn } from '@storybook/test';
import { Button } from './Button';
export default {
component: Button,
// 👇 Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked
args: { onClick: fn() },
};
```
| docs/snippets/common/button-story-onclick-action-spy.js.mdx | 0 | https://github.com/storybookjs/storybook/commit/8c305f9d53d7e3bf5d0b60c7dbe6880e77c25dae | [
0.00017536476661916822,
0.00017393131565768272,
0.0001724978646961972,
0.00017393131565768272,
0.000001433450961485505
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.