text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
export default { foo: 'bar' };
| modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/module-in-.mjs/my-project.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/config-loader/test/fixtures/package-cjs/module-in-.mjs/my-project.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 10
} | 182 |
/**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... | modernweb-dev/web/packages/dev-server-core/src/dom5/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/dom5/index.ts",
"repo_id": "modernweb-dev",
"token_count": 196
} | 183 |
import { Middleware } from 'koa';
import path from 'path';
import { Logger } from '../logger/Logger';
import { Plugin } from '../plugins/Plugin';
/**
* Sets up a middleware which allows plugins to serve files instead of looking it up in the file system.
*/
export function pluginServeMiddleware(logger: Logger, plugin... | modernweb-dev/web/packages/dev-server-core/src/middleware/pluginServeMiddleware.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/middleware/pluginServeMiddleware.ts",
"repo_id": "modernweb-dev",
"token_count": 667
} | 184 |
import { Server } from 'net';
import WebSocket from 'ws';
import { EventEmitter } from './EventEmitter.js';
export const NAME_WEB_SOCKET_IMPORT = '/__web-dev-server__web-socket.js';
export const NAME_WEB_SOCKET_API = 'wds';
export type WebSocketData = { type: string } & Record<string, unknown>;
export interface Even... | modernweb-dev/web/packages/dev-server-core/src/web-sockets/WebSocketsManager.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/src/web-sockets/WebSocketsManager.ts",
"repo_id": "modernweb-dev",
"token_count": 1054
} | 185 |
import { expect } from 'chai';
import path from 'path';
import fs from 'fs';
import { nanoid } from 'nanoid';
import { createTestServer, timeout } from '../helpers.js';
import { DevServer } from '../../src/server/DevServer.js';
const fixtureDir = path.resolve(__dirname, '..', 'fixtures', 'basic');
const testFileAName... | modernweb-dev/web/packages/dev-server-core/test/middleware/etagCacheMiddleware.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-core/test/middleware/etagCacheMiddleware.test.ts",
"repo_id": "modernweb-dev",
"token_count": 1010
} | 186 |
import { h, render } from 'preact';
render(
<main>
<h1>Hello World!</h1>
</main>,
document.body,
);
| modernweb-dev/web/packages/dev-server-esbuild/demo/jsx/app.jsx/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/demo/jsx/app.jsx",
"repo_id": "modernweb-dev",
"token_count": 49
} | 187 |
export { esbuildPlugin } from './esbuildPluginFactory.js';
| modernweb-dev/web/packages/dev-server-esbuild/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 17
} | 188 |
import { expect } from 'chai';
import { createTestServer, expectIncludes } from '@web/dev-server-core/test-helpers';
import { esbuildPlugin } from '../src/index.js';
const modernJs = `
class MyClass {
static myStaticField = 'foo';
#myPrivateField = 'bar';
myField = 'x';
}
const myClass = new MyClass();
const ... | modernweb-dev/web/packages/dev-server-esbuild/test/target.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-esbuild/test/target.test.ts",
"repo_id": "modernweb-dev",
"token_count": 4535
} | 189 |
import { Plugin, Logger, getRequestFilePath } from '@web/dev-server-core';
import {
ParsedImportMap,
parse as parseFromObject,
parseFromString,
resolve,
} from '@import-maps/resolve';
import { getHtmlPath } from '@web/dev-server-core';
import { parse as parseHtml, serialize as serializeHtml, Element as ElementA... | modernweb-dev/web/packages/dev-server-import-maps/src/importMapsPlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-import-maps/src/importMapsPlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 2785
} | 190 |
import { LitElement, html } from 'lit-element';
class MyApp extends LitElement {
static properties = {
foo: { type: String },
};
constructor() {
super();
this.foo = 'bar';
}
render() {
return html`<p>Hello world</p>`;
}
}
customElements.define('my-app', MyApp);
| modernweb-dev/web/packages/dev-server-legacy/demo/app.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-legacy/demo/app.js",
"repo_id": "modernweb-dev",
"token_count": 110
} | 191 |
/* eslint-disable no-control-regex */
import path from 'path';
import whatwgUrl from 'whatwg-url';
import {
Plugin as WdsPlugin,
DevServerCoreConfig,
FSWatcher,
PluginError,
PluginSyntaxError,
Context,
getRequestFilePath,
} from '@web/dev-server-core';
import {
queryAll,
predicates,
getTextContent,
... | modernweb-dev/web/packages/dev-server-rollup/src/rollupAdapter.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/src/rollupAdapter.ts",
"repo_id": "modernweb-dev",
"token_count": 7632
} | 192 |
export const internalA = 'internal a value';
| modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/private-imports/internal-a.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/fixtures/private-imports/internal-a.js",
"repo_id": "modernweb-dev",
"token_count": 11
} | 193 |
import path from 'path';
import {
createTestServer as originalCreateTestServer,
timeout,
fetchText,
expectIncludes,
} from '@web/dev-server-core/test-helpers';
import { DevServerCoreConfig, Logger } from '@web/dev-server-core';
export function createTestServer(config: Partial<DevServerCoreConfig> = {}, mockLog... | modernweb-dev/web/packages/dev-server-rollup/test/node/test-helpers.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-rollup/test/node/test-helpers.ts",
"repo_id": "modernweb-dev",
"token_count": 180
} | 194 |
console.log('loaded manager.js');
| modernweb-dev/web/packages/dev-server-storybook/demo/wc/.storybook/manager.js/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/demo/wc/.storybook/manager.js",
"repo_id": "modernweb-dev",
"token_count": 10
} | 195 |
import { Plugin } from 'rollup';
import { mdjsToCsf } from 'storybook-addon-markdown-docs';
export function mdjsPlugin(type: string): Plugin {
return {
name: 'md',
transform(code, id) {
if (id.endsWith('.md')) {
return mdjsToCsf(code, id, type);
}
},
};
}
| modernweb-dev/web/packages/dev-server-storybook/src/build/rollup/mdjsPlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/src/build/rollup/mdjsPlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 125
} | 196 |
declare module 'storybook-addon-markdown-docs' {
export function mdjsToCsf(
markdown: string,
filePath: string,
projectType: string,
options?: Record<string, unknown>,
): Promise<string>;
}
| modernweb-dev/web/packages/dev-server-storybook/types/storybook-addon-markdown-docs/index.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server-storybook/types/storybook-addon-markdown-docs/index.d.ts",
"repo_id": "modernweb-dev",
"token_count": 75
} | 197 |
<html>
<head>
<base href="/" />
</head>
<body>
<img width="100" src="./demo/logo.png" />
<h1>Demo app</h1>
<p>
<a href="foo/">Foo</a>
</p>
<p>
<a href="bar/">Bar</a>
</p>
<div id="test"></div>
</body>
<script type="module">
import './demo/index-rewrite/mod... | modernweb-dev/web/packages/dev-server/demo/index-rewrite/index.html/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/demo/index-rewrite/index.html",
"repo_id": "modernweb-dev",
"token_count": 288
} | 198 |
import { getPortPromise } from 'portfinder';
import path from 'path';
import { DevServerCliArgs } from './readCliArgs.js';
import { mergeConfigs } from './mergeConfigs.js';
import { DevServerConfig } from './DevServerConfig.js';
import { esbuildPlugin } from '../plugins/esbuildPlugin.js';
import { watchPlugin } from '... | modernweb-dev/web/packages/dev-server/src/config/parseConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/dev-server/src/config/parseConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 1140
} | 199 |
import './polyfills.js';
import { setupWorker } from 'msw/browser';
import { _registerMockRoutes } from './registerMockRoutes.js';
const bypassServiceWorker = new URL(window.location.href).searchParams.has('bypass-sw');
const worker = setupWorker();
const workerPromise = worker
.start({
serviceWorker: {
ur... | modernweb-dev/web/packages/mocks/browser.js/0 | {
"file_path": "modernweb-dev/web/packages/mocks/browser.js",
"repo_id": "modernweb-dev",
"token_count": 489
} | 200 |
// @ts-nocheck
import { createAddon } from '@web/storybook-utils';
import React from 'react';
import { addons } from '@storybook/manager-api';
import { registerAddon } from './register-addon.js';
// Storybook 7
registerAddon(addons, React, createAddon);
| modernweb-dev/web/packages/mocks/storybook/addon/manager.js/0 | {
"file_path": "modernweb-dev/web/packages/mocks/storybook/addon/manager.js",
"repo_id": "modernweb-dev",
"token_count": 84
} | 201 |
# @web/polyfills-loader
## 2.3.0
### Minor Changes
- 74b3e1bd: Set fetchPriority of polyfill scripts to `high`
## 2.2.0
### Minor Changes
- c185cbaa: Set minimum node version to 18
### Patch Changes
- Updated dependencies [c185cbaa]
- @web/parse5-utils@2.1.0
## 2.1.5
### Patch Changes
- 76a2f86f: update en... | modernweb-dev/web/packages/polyfills-loader/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/polyfills-loader/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 1065
} | 202 |
const { glob } = require('glob');
const fs = require('fs');
const path = require('path');
/**
* Lists all files using the specified glob, starting from the given root directory.
*
* Will return all matching file paths fully resolved.
*
* @param {string} fromGlob
* @param {string} rootDir
* @param {string|string... | modernweb-dev/web/packages/rollup-plugin-copy/src/listFiles.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-copy/src/listFiles.js",
"repo_id": "modernweb-dev",
"token_count": 247
} | 203 |
<h1>Index</h1>
<ul>
<li>
<a href="/">Index</a>
</li>
<li>
<a href="/pages/page-a.html">A</a>
</li>
<li>
<a href="/pages/page-B.html">B</a>
</li>
<li>
<a href="/pages/page-C.html">C</a>
</li>
</ul> | modernweb-dev/web/packages/rollup-plugin-html/demo/mpa/index.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/demo/mpa/index.html",
"repo_id": "modernweb-dev",
"token_count": 130
} | 204 |
import { injectBundles } from './injectBundles.js';
import { InputData } from '../input/InputData';
import {
EntrypointBundle,
RollupPluginHTMLOptions,
TransformHtmlFunction,
} from '../RollupPluginHTMLOptions';
import { parse, serialize } from 'parse5';
import { minify as minifyHTMLFunc } from 'html-minifier-ter... | modernweb-dev/web/packages/rollup-plugin-html/src/output/getOutputHTML.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/src/output/getOutputHTML.ts",
"repo_id": "modernweb-dev",
"token_count": 1195
} | 205 |
<svg xmlns="http://www.w3.org/2000/svg"><path d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2"></path></svg>
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/image-b.svg/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/assets/image-b.svg",
"repo_id": "modernweb-dev",
"token_count": 61
} | 206 |
console.log('hello world');
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/basic/app.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/basic/app.js",
"repo_id": "modernweb-dev",
"token_count": 8
} | 207 |
console.log('shared-module.js');
| modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/modules/shared-module.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/fixtures/rollup-plugin-html/modules/shared-module.js",
"repo_id": "modernweb-dev",
"token_count": 11
} | 208 |
import path from 'path';
import { parse, serialize } from 'parse5';
import { expect } from 'chai';
import { extractModules } from '../../../../src/input/extract/extractModules.js';
const { sep } = path;
describe('extractModules()', () => {
it('extracts all modules from a html document', () => {
const document ... | modernweb-dev/web/packages/rollup-plugin-html/test/src/input/extract/extractModules.test.ts/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-html/test/src/input/extract/extractModules.test.ts",
"repo_id": "modernweb-dev",
"token_count": 2590
} | 209 |
export const nameTwo = 'two-name';
export const imageTwo = new URL('../../two.svg', import.meta.url).href;
| modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/two.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-import-meta-assets/test/fixtures/one/two/two.js",
"repo_id": "modernweb-dev",
"token_count": 35
} | 210 |
{
"name": "@web/rollup-plugin-polyfills-loader",
"version": "2.1.1",
"publishConfig": {
"access": "public"
},
"description": "Plugin for injecting a polyfills loader to HTML pages",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modern-web/web.git",
"directory"... | modernweb-dev/web/packages/rollup-plugin-polyfills-loader/package.json/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/package.json",
"repo_id": "modernweb-dev",
"token_count": 604
} | 211 |
<html><head>
<link rel="preload" href="./entrypoint-a.js" as="script" crossorigin="anonymous" />
</head><body><script>(function () {
function loadScript(src, type, attributes) {
return new Promise(function (resolve) {
var script = document.createElement('script');
script.fetchPriority = 'high';
... | modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/snapshots/multiple-outputs.html/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-polyfills-loader/test/snapshots/multiple-outputs.html",
"repo_id": "modernweb-dev",
"token_count": 745
} | 212 |
export const a = 1; | modernweb-dev/web/packages/rollup-plugin-workbox/demo/some-module.js/0 | {
"file_path": "modernweb-dev/web/packages/rollup-plugin-workbox/demo/some-module.js",
"repo_id": "modernweb-dev",
"token_count": 6
} | 213 |
// based on https://github.com/storybookjs/storybook/blob/v7.0.9/code/lib/builder-vite/src/codegen-importfn-script.ts
import { normalizePath } from '@rollup/pluginutils';
import { logger } from '@storybook/node-logger';
import type { Options } from '@storybook/types';
import * as path from 'path';
import { listStories... | modernweb-dev/web/packages/storybook-builder/src/generate-stories-script.ts/0 | {
"file_path": "modernweb-dev/web/packages/storybook-builder/src/generate-stories-script.ts",
"repo_id": "modernweb-dev",
"token_count": 730
} | 214 |
{
"name": "@web/storybook-framework-web-components",
"version": "0.1.1",
"publishConfig": {
"access": "public"
},
"description": "Storybook framework for `@web/storybook-builder` + Web Components",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.gi... | modernweb-dev/web/packages/storybook-framework-web-components/package.json/0 | {
"file_path": "modernweb-dev/web/packages/storybook-framework-web-components/package.json",
"repo_id": "modernweb-dev",
"token_count": 987
} | 215 |
# @web/storybook-utils
## 1.0.1
### Patch Changes
- afc680d2: fix export
## 1.0.0
### Major Changes
- 7320d233: create a package for Storybook utilities, move the utility to help make Storybook addons with web components from @web/storybook-prebuilt to reuse in Storybook 7
| modernweb-dev/web/packages/storybook-utils/CHANGELOG.md/0 | {
"file_path": "modernweb-dev/web/packages/storybook-utils/CHANGELOG.md",
"repo_id": "modernweb-dev",
"token_count": 90
} | 216 |
import { TestRunnerPlugin } from '@web/test-runner-core';
import path from 'path';
import fs from 'fs';
import { promisify } from 'util';
import mkdirp from 'mkdirp';
const readFile = promisify(fs.readFile);
const writeFile = promisify(fs.writeFile);
const unlink = promisify(fs.unlink);
const access = promisify(fs.acc... | modernweb-dev/web/packages/test-runner-commands/src/filePlugin.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/src/filePlugin.ts",
"repo_id": "modernweb-dev",
"token_count": 1137
} | 217 |
import { executeServerCommand } from '../../browser/commands.mjs';
import { expect } from '../chai.js';
it('a known command does not throw', async () => {
await executeServerCommand('command-a');
});
it('a command can return an object', async () => {
const result = await executeServerCommand('command-a');
expec... | modernweb-dev/web/packages/test-runner-commands/test/execute-server-command/browser-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/execute-server-command/browser-test.js",
"repo_id": "modernweb-dev",
"token_count": 501
} | 218 |
/* @web/test-runner snapshot v1 */
export const snapshots = {};
snapshots['persistent-a'] = `this is snapshot A`;
/* end snapshot persistent-a */
snapshots['persistent-b'] = `this is snapshot B`;
/* end snapshot persistent-b */
| modernweb-dev/web/packages/test-runner-commands/test/snapshot/__snapshots__/browser-test.snap.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-commands/test/snapshot/__snapshots__/browser-test.snap.js",
"repo_id": "modernweb-dev",
"token_count": 71
} | 219 |
import { codeFrameColumns } from '@babel/code-frame';
import path from 'path';
import { bold, cyan, red } from 'nanocolors';
import openBrowser from 'open';
import { writeCoverageReport } from './writeCoverageReport.js';
import { getSelectFilesMenu } from './getSelectFilesMenu.js';
import { getWatchCommands } from './... | modernweb-dev/web/packages/test-runner-core/src/cli/TestRunnerCli.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/cli/TestRunnerCli.ts",
"repo_id": "modernweb-dev",
"token_count": 5713
} | 220 |
import globby from 'globby';
import { sep } from 'path';
export function collectTestFiles(patterns: string | string[], baseDir = process.cwd()) {
const normalizedPatterns = [patterns].flat().map(p => p.split(sep).join('/'));
return globby.sync(normalizedPatterns, { cwd: baseDir, absolute: true });
}
| modernweb-dev/web/packages/test-runner-core/src/runner/collectTestFiles.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/runner/collectTestFiles.ts",
"repo_id": "modernweb-dev",
"token_count": 98
} | 221 |
import path from 'path';
import { Context } from '@web/dev-server-core';
import { TestRunnerCoreConfig } from '../config/TestRunnerCoreConfig.js';
import { PARAM_SESSION_ID, PARAM_MANUAL_SESSION } from '../utils/constants.js';
const toBrowserPathRegExp = new RegExp(path.sep === '\\' ? '\\\\' : path.sep, 'g');
const to... | modernweb-dev/web/packages/test-runner-core/src/server/utils.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/server/utils.ts",
"repo_id": "modernweb-dev",
"token_count": 512
} | 222 |
// this file is autogenerated with the generate-mjs-dts-entrypoints script
import cjsEntrypoint from './dist/test-helpers.js';
const { runTests } = cjsEntrypoint;
export { runTests };
| modernweb-dev/web/packages/test-runner-core/test-helpers.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/test-helpers.mjs",
"repo_id": "modernweb-dev",
"token_count": 62
} | 223 |
{
"name": "@web/test-runner-coverage-v8",
"version": "0.8.0",
"publishConfig": {
"access": "public"
},
"description": "Code coverage using v8",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/test-runner-coverage-v8... | modernweb-dev/web/packages/test-runner-coverage-v8/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-coverage-v8/package.json",
"repo_id": "modernweb-dev",
"token_count": 581
} | 224 |
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="Chrome_puppeteer_/packages/test-runner-junit-reporter/test/fixtures/simple/simple-test.js" id="0" tests="6" skipped="1" errors="2" failures="2" time="<<computed>>">
<properties>
<property name="test.fileName" value="packages/test-runner-ju... | modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/simple/expected.xml/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/simple/expected.xml",
"repo_id": "modernweb-dev",
"token_count": 775
} | 225 |
<!DOCTYPE html>
<html>
<body>
<script type="module">
import { runTests } from '../../dist/standalone.js';
runTests(() => {
throw new Error('error during setup');
it('test 1', () => {});
it('test 2', () => {});
});
</script>
</body>
</html>
| modernweb-dev/web/packages/test-runner-mocha/test/fixtures/standalone-setup-fail.html/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-mocha/test/fixtures/standalone-setup-fail.html",
"repo_id": "modernweb-dev",
"token_count": 137
} | 226 |
{
"name": "time-library",
"type": "module",
"exports": {
"./hour": "./index.js"
}
} | modernweb-dev/web/packages/test-runner-module-mocking/test/fixtures/bare/fixture/node_modules/time-library/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-module-mocking/test/fixtures/bare/fixture/node_modules/time-library/package.json",
"repo_id": "modernweb-dev",
"token_count": 55
} | 227 |
import { Page, BrowserContext } from 'playwright';
import { TestRunnerCoreConfig } from '@web/test-runner-core';
import { V8Coverage, v8ToIstanbul } from '@web/test-runner-coverage-v8';
import { SessionResult } from '@web/test-runner-core';
import { ProductType } from './PlaywrightLauncher.js';
export class Playwright... | modernweb-dev/web/packages/test-runner-playwright/src/PlaywrightLauncherPage.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-playwright/src/PlaywrightLauncherPage.ts",
"repo_id": "modernweb-dev",
"token_count": 1111
} | 228 |
{
"name": "@web/test-runner-puppeteer",
"version": "0.16.0",
"publishConfig": {
"access": "public"
},
"description": "Puppeteer browser launcher for Web Test Runner",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/... | modernweb-dev/web/packages/test-runner-puppeteer/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-puppeteer/package.json",
"repo_id": "modernweb-dev",
"token_count": 626
} | 229 |
{
"name": "@web/test-runner-saucelabs",
"version": "0.11.1",
"publishConfig": {
"access": "public"
},
"description": "Saucelabs launcher for Web Test Runner",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/modernweb-dev/web.git",
"directory": "packages/test-run... | modernweb-dev/web/packages/test-runner-saucelabs/package.json/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-saucelabs/package.json",
"repo_id": "modernweb-dev",
"token_count": 705
} | 230 |
export default 'moduleFeaturesB';
| modernweb-dev/web/packages/test-runner-saucelabs/test-remote/fixtures/module-features-b.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-saucelabs/test-remote/fixtures/module-features-b.js",
"repo_id": "modernweb-dev",
"token_count": 8
} | 231 |
export function visualDiff(element: Node, name: string): Promise<void>;
| modernweb-dev/web/packages/test-runner-visual-regression/browser/commands.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-visual-regression/browser/commands.d.ts",
"repo_id": "modernweb-dev",
"token_count": 19
} | 232 |
export { visualRegressionPlugin } from './visualRegressionPlugin.js';
| modernweb-dev/web/packages/test-runner-visual-regression/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-visual-regression/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 18
} | 233 |
export { webdriverLauncher, WebdriverLauncher } from './webdriverLauncher.js';
| modernweb-dev/web/packages/test-runner-webdriver/src/index.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-webdriver/src/index.ts",
"repo_id": "modernweb-dev",
"token_count": 23
} | 234 |
import { createSauceLabsLauncher } from '@web/test-runner-saucelabs';
import { legacyPlugin } from '@web/dev-server-legacy';
const sauceLabsCapabilities = {
build: `modern-web ${process.env.GITHUB_REF || 'local'} build ${
process.env.GITHUB_RUN_NUMBER || ''
}`,
name: 'integration test',
};
const sauceLabsLa... | modernweb-dev/web/packages/test-runner/demo/saucelabs.config.mjs/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/saucelabs.config.mjs",
"repo_id": "modernweb-dev",
"token_count": 652
} | 235 |
import { expect } from './chai.js';
beforeEach(() => {
throw new Error('error thrown in afterEach hook');
});
it('true is true', () => {
expect(true).to.equal(true);
});
it('true is really true', () => {
expect(true).to.equal(true);
});
| modernweb-dev/web/packages/test-runner/demo/test/fail-after-each.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-after-each.test.js",
"repo_id": "modernweb-dev",
"token_count": 87
} | 236 |
import { throwErrorA } from './fail-stack-trace-a.js';
import { expect } from './chai.js';
it('test 1', () => {
throwErrorA();
});
| modernweb-dev/web/packages/test-runner/demo/test/fail-stack-trace.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-stack-trace.test.js",
"repo_id": "modernweb-dev",
"token_count": 51
} | 237 |
export function neverImported() {
return 'function is never imported';
}
export function neverCalled() {
return 'function is never called';
}
export function neverCalledWithTrue(neverTrue) {
if (neverTrue) {
return 'condition is never returned';
} else {
return 6;
}
}
export function calledOnce() {... | modernweb-dev/web/packages/test-runner/demo/test/pass-coverage.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/pass-coverage.js",
"repo_id": "modernweb-dev",
"token_count": 340
} | 238 |
export function b(condition: unknown) {
if (condition) {
return 'a';
}
return 'b';
}
| modernweb-dev/web/packages/test-runner/demo/test/virtual-files/b.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/virtual-files/b.ts",
"repo_id": "modernweb-dev",
"token_count": 36
} | 239 |
import './shared-a.js';
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-16.test.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-16.test.d.ts",
"repo_id": "modernweb-dev",
"token_count": 10
} | 240 |
import { CoverageConfig, TestRunnerCoreConfig, TestRunnerGroupConfig } from '@web/test-runner-core';
import { chromeLauncher } from '@web/test-runner-chrome';
import {
emulateMediaPlugin,
selectOptionPlugin,
setUserAgentPlugin,
setViewportPlugin,
sendKeysPlugin,
filePlugin,
snapshotPlugin,
sendMousePlug... | modernweb-dev/web/packages/test-runner/src/config/parseConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/config/parseConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 3002
} | 241 |
export function getFailedOnBrowsers(allBrowserNames: string[], failedBrowsers: string[]) {
if (allBrowserNames.length === 1 || failedBrowsers.length === allBrowserNames.length) {
return '';
}
const browserString =
failedBrowsers.length === 1
? failedBrowsers[0]
: failedBrowsers.slice(0, -1).jo... | modernweb-dev/web/packages/test-runner/src/reporter/utils/getFailedOnBrowsers.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/reporter/utils/getFailedOnBrowsers.ts",
"repo_id": "modernweb-dev",
"token_count": 148
} | 242 |
/* eslint-disable */
const fs = require('fs-extra');
const path = require('path');
/**
* Script to update a single dependency on the monorepo. Example:
*
* npm run update-dependency rollup ^1.2.3
*/
const isDefined = _ => !!_;
const dependencyFields = ['dependencies', 'devDependencies', 'peerDependencies'];
cons... | modernweb-dev/web/scripts/update-dependency.js/0 | {
"file_path": "modernweb-dev/web/scripts/update-dependency.js",
"repo_id": "modernweb-dev",
"token_count": 785
} | 243 |
legacy-peer-deps=true | odota/web/.npmrc/0 | {
"file_path": "odota/web/.npmrc",
"repo_id": "odota",
"token_count": 9
} | 244 |
https://opendota.com/* https://www.opendota.com/:splat 301!
/api/* https://api.opendota.com/api/:splat 200
/static/js/* /index.html 404
/* /index.html 200
| odota/web/public/_redirects/0 | {
"file_path": "odota/web/public/_redirects",
"repo_id": "odota",
"token_count": 69
} | 245 |
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="900" height="600"><rect width="900" height="600" fill="#ED2939"/><rect width="600" height="600" fill="#fff"/><rect width="300" height="600" fill="#002395"/></svg>
| odota/web/public/assets/images/flags/fx.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/fx.svg",
"repo_id": "odota",
"token_count": 97
} | 246 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-87.62 0h682.67v512H-87.62z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(82.14) scale(.94)">
<path fill="#fff" d... | odota/web/public/assets/images/flags/il.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/il.svg",
"repo_id": "odota",
"token_count": 555
} | 247 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M0 0h682.67v512H0z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" fill-rule="evenodd" transform="scale(.9375)">
<path fill="#ff0" d="M0 0h768.77v128H0z"/>
... | odota/web/public/assets/images/flags/km.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/km.svg",
"repo_id": "odota",
"token_count": 689
} | 248 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd">
<path fill="#fff" d="M0 0h640v480.003H0z"/>
<path fill="#ab231d" d="M0 0h640v192.001H0zM0 288.002h640v192.001H0z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/lv.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/lv.svg",
"repo_id": "odota",
"token_count": 124
} | 249 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="480" width="640" viewBox="0 0 640 480">
<path fill="#006233" d="M0 0h640v480H0z"/>
<circle cx="320" cy="180" r="155" fill="#ffc400"/>
<path d="M243.425 11.216A150 150 0 0 0 170 140a150 150 0 0 0 150 150 150 150 0 0 0 150-15... | odota/web/public/assets/images/flags/mr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/mr.svg",
"repo_id": "odota",
"token_count": 376
} | 250 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#ef2b2d" d="M0 0h640v480H0z"/>
<path fill="#fff" d="M180 0h120v480H180z"/>
<path fill="#fff" d="M0 180h640v120H0z"/>
<path fill="#002868" d="M210 0h60v480h-60z"/>
<path fill="#002868" d="M0 210h640v60H0z"/>
</s... | odota/web/public/assets/images/flags/no.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/no.svg",
"repo_id": "odota",
"token_count": 156
} | 251 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<defs>
<clipPath id="a">
<path fill-opacity=".67" d="M-118 0h682.67v512H-118z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" transform="translate(110.63) scale(.9375)">
<g fill-rule="evenodd" stroke-width="1pt... | odota/web/public/assets/images/flags/ps.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ps.svg",
"repo_id": "odota",
"token_count": 296
} | 252 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd">
<path fill="#000067" d="M0 0h213.97v480H0z"/>
<path fill="red" d="M426.03 0H640v480H426.03z"/>
<path fill="#ff0" d="M213.97 0h212.06v480H213.97z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/td.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/td.svg",
"repo_id": "odota",
"token_count": 141
} | 253 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<g fill-rule="evenodd" stroke-width="1pt">
<path fill="#ffd500" d="M0 0h640v480H0z"/>
<path fill="#005bbb" d="M0 0h640v240H0z"/>
</g>
</svg>
| odota/web/public/assets/images/flags/ua.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ua.svg",
"repo_id": "odota",
"token_count": 115
} | 254 |
export default function transformTrends(fieldName) {
return (response) => {
let cumulativeSum = 0;
const chunkSize = 20;
// Compute sum of data (to act as in integral over data field)
// trends[i].value = sum(0 -> i, attribute)
const trends = response.reverse().reduce((dataList, match) => {
... | odota/web/src/actions/transformTrends.js/0 | {
"file_path": "odota/web/src/actions/transformTrends.js",
"repo_id": "odota",
"token_count": 602
} | 255 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import constants from '../constants';
const StyledLink = styled(Link)`
font-weight: ${constants.fontWeightMedium};
color: ${constant... | odota/web/src/components/App/AppLogo.jsx/0 | {
"file_path": "odota/web/src/components/App/AppLogo.jsx",
"repo_id": "odota",
"token_count": 330
} | 256 |
import React from 'react';
import { string } from 'prop-types';
const Error = props => (
<div>Whoops! Something went wrong. {props.text ? props.text : ''}</div>
);
Error.propTypes = {
text: string,
};
export default Error;
| odota/web/src/components/Error/Error.jsx/0 | {
"file_path": "odota/web/src/components/Error/Error.jsx",
"repo_id": "odota",
"token_count": 77
} | 257 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import AppLogo from '../App/AppLogo';
import PageLinks from './PageLinks';
// import Cheese from './Cheese';
import SocialLinks from './SocialLinks';
import { IconSteam } from '.... | odota/web/src/components/Footer/Footer.jsx/0 | {
"file_path": "odota/web/src/components/Footer/Footer.jsx",
"repo_id": "odota",
"token_count": 2041
} | 258 |
import Heading from './Heading';
export default Heading;
| odota/web/src/components/Heading/index.js/0 | {
"file_path": "odota/web/src/components/Heading/index.js",
"repo_id": "odota",
"token_count": 17
} | 259 |
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import itemIds from 'dotaconstants/build/item_ids.json';
import PropTypes from 'prop-types';
import Table from '../Table';
import inflictorWithValue from '../Visualizations/inflictorWithValue';
import { getHeroItemSuggestions } from '../..... | odota/web/src/components/Hero/ItemSuggestion.jsx/0 | {
"file_path": "odota/web/src/components/Hero/ItemSuggestion.jsx",
"repo_id": "odota",
"token_count": 663
} | 260 |
import React from 'react';
export default props => (
// Taked from http://game-icons.net/lorc/originals/wind-slap.html
// by http://lorcblog.blogspot.ru/ under CC BY 3.0
<svg {...props} viewBox="0 0 512 512">
<path
fill="#39d401"
d="M164.672 15.316c-4.24-.02-8.52-.008-12.848.032 356.973 34.267 14... | odota/web/src/components/Icons/AttrAgility.jsx/0 | {
"file_path": "odota/web/src/components/Icons/AttrAgility.jsx",
"repo_id": "odota",
"token_count": 449
} | 261 |
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
const icon = (props) => {
const { color } = props.style;
return (
<svg {...props} viewBox="0 0 24 24">
<line strokeLinecap="undefined" strokeLinejoin="undefined" id="svg_24" y2="2" x2="2" y1="12" x1="2"... | odota/web/src/components/Icons/LaneRoles.jsx/0 | {
"file_path": "odota/web/src/components/Icons/LaneRoles.jsx",
"repo_id": "odota",
"token_count": 544
} | 262 |
import React from 'react';
import propTypes from 'prop-types';
import styled from 'styled-components';
import constants from '../constants';
import { styleValues } from '../../utility';
import config from '../../config';
import AbilityBehaviour from '../AbilityTooltip/AbilityBehaviour';
const items = (await import('do... | odota/web/src/components/ItemTooltip/index.jsx/0 | {
"file_path": "odota/web/src/components/ItemTooltip/index.jsx",
"repo_id": "odota",
"token_count": 4612
} | 263 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import FlatButton from 'material-ui/FlatButton';
import styled from 'styled-components';
import NavigationRefresh from 'material-ui/svg-icons/navigation/refresh';
import ActionF... | odota/web/src/components/Match/MatchHeader/MatchHeader.jsx/0 | {
"file_path": "odota/web/src/components/Match/MatchHeader/MatchHeader.jsx",
"repo_id": "odota",
"token_count": 4946
} | 264 |
import React from 'react';
import PropTypes from 'prop-types';
import TeamTable from '../TeamTable';
import mcs from '../matchColumns';
const VisionItems = ({ match, strings }) => {
const { visionColumns } = mcs(strings);
return (
<TeamTable
players={match.players}
heading={strings.heading_vision}
... | odota/web/src/components/Match/Vision/VisionItems.jsx/0 | {
"file_path": "odota/web/src/components/Match/Vision/VisionItems.jsx",
"repo_id": "odota",
"token_count": 214
} | 265 |
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { PlayerStatsCard } from './Styled';
import constants from '../../constants';
import config from '../../../config';
const shouldShow = props => props.loggedInId && props... | odota/web/src/components/Player/Header/PlayedWith.jsx/0 | {
"file_path": "odota/web/src/components/Player/Header/PlayedWith.jsx",
"repo_id": "odota",
"token_count": 768
} | 266 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { MMRGraph } from '../../../Visualizations';
import { getPlayerMmr } from '../../../../actions';
import Container from '../../../Container';
import Info from '../../../Alerts/Info';
const MMRInfo = strings => (... | odota/web/src/components/Player/Pages/MMR/MMR.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/MMR/MMR.jsx",
"repo_id": "odota",
"token_count": 639
} | 267 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { TrendGraph } from '../../../Visualizations';
import { getPlayerTrends } from '../../../../actions';
import ButtonGarden from '../../../ButtonGarden';
import trend... | odota/web/src/components/Player/Pages/Trends/Trends.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Trends/Trends.jsx",
"repo_id": "odota",
"token_count": 931
} | 268 |
import React from 'react';
import MenuItem from 'material-ui/MenuItem';
import heroes from 'dotaconstants/build/heroes.json';
import { getTimeRange } from './ScenariosColumns';
import config from '../../config';
const items = (await import('dotaconstants/build/items.json')).default;
export default function getFormFie... | odota/web/src/components/Scenarios/FormFieldData.jsx/0 | {
"file_path": "odota/web/src/components/Scenarios/FormFieldData.jsx",
"repo_id": "odota",
"token_count": 709
} | 269 |
import React from 'react';
import ContentLoader from 'react-content-loader';
const PlayersSkeleton = props => (
<ContentLoader
primaryColor="#666"
secondaryColor="#ecebeb"
width={400}
animate
{...props}
>
<rect x="0" y="10" rx="5" ry="5" width="300" height="5" />
<rect x="0" y="25" rx="... | odota/web/src/components/Skeletons/PlayersSkeleton.jsx/0 | {
"file_path": "odota/web/src/components/Skeletons/PlayersSkeleton.jsx",
"repo_id": "odota",
"token_count": 261
} | 270 |
import styled from 'styled-components';
import constants from '../constants';
export const StyledBody = styled.div`
table {
table-layout: auto !important;
font-family: ${constants.tableFontFamily} !important;
box-sizing: border-box;
${props => (props.customWidth ? `
table-layout: fixed !import... | odota/web/src/components/Table/Styled.jsx/0 | {
"file_path": "odota/web/src/components/Table/Styled.jsx",
"repo_id": "odota",
"token_count": 2196
} | 271 |
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import styled from 'styled-components';
import FlatButton from 'material-ui/FlatButton';
import { getOrdinal, getTeamLogoUrl, fromNow, subTextStyle } from '../../utility';
import { ge... | odota/web/src/components/Teams/index.jsx/0 | {
"file_path": "odota/web/src/components/Teams/index.jsx",
"repo_id": "odota",
"token_count": 1380
} | 272 |
import React from 'react';
import PropTypes from 'prop-types';
import {
YAxis,
BarChart,
Bar,
Cell,
ReferenceLine,
Tooltip,
} from 'recharts';
import { StyledContainer, SparklineContainer } from './Styled';
import { StyledCustomizedTooltip } from '../../Visualizations/Graph/Styled';
import constants from '... | odota/web/src/components/Visualizations/Table/Sparkline.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/Table/Sparkline.jsx",
"repo_id": "odota",
"token_count": 861
} | 273 |
{
"yes": "sí",
"no": "no",
"abbr_thousand": "k",
"abbr_million": "m",
"abbr_billion": "b",
"abbr_trillion": "t",
"abbr_quadrillion": "q",
"abbr_not_available": "N/D",
"abbr_pick": "S",
"abbr_win": "V",
"abbr_number": "Núm.",
"analysis_eff": "Eficiencia en senda",
"analysis_farm_drought": "Meno... | odota/web/src/lang/es-ES.json/0 | {
"file_path": "odota/web/src/lang/es-ES.json",
"repo_id": "odota",
"token_count": 21511
} | 274 |
import { createSelector } from 'reselect';
/**
* Get Hero from heroes by heroId
* @param {Array<Object>} heroes Array of heroes
* @param {string|number} heroId
*/
export const heroSelector = (heroes, heroId) =>
heroes.find(hero => String(hero.id) === String(heroId));
/**
* Return ProPlayer map, where key accou... | odota/web/src/reducers/selectors.js/0 | {
"file_path": "odota/web/src/reducers/selectors.js",
"repo_id": "odota",
"token_count": 193
} | 275 |
{
"leaver_status": {
"0": {
"games": 5780,
"win": 3681
},
"1": {
"games": 227,
"win": 58
},
"2": {
"games": 1,
"win": 0
},
"3": {
"games": 62,
"win": 7
},
"4": {
"games": 5,
"win": 1
}
},
"game_mode": {
"0": {
"games": 36,
"win": 17
},
"1": {
"games": ... | odota/web/testcafe/cachedAjax/players_101695162_counts_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_counts_.json",
"repo_id": "odota",
"token_count": 2153
} | 276 |
{
"my_word_counts": {
"zuo": 2,
"ge": 2,
"ren": 2,
"wu": 1,
"gg": 339,
"gl": 23,
"lgd": 1,
"g": 215,
"zheba": 1,
"song": 1,
"le": 13,
"da": 4,
"wan": 3,
"ju": 1,
"bao": 3,
"xiexie": 1,
"zhi": 1,
"chi": 1,
"b": 6,
"wo": 9,
"ye": 1,
"mei": 6,
"kan": 1,
"dao": 4,
"tui": 5... | odota/web/testcafe/cachedAjax/players_101695162_wordcloud_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_wordcloud_.json",
"repo_id": "odota",
"token_count": 25070
} | 277 |
[
{
"table_name": "api_key_usage",
"column_name": "account_id",
"data_type": "bigint"
},
{
"table_name": "api_key_usage",
"column_name": "customer_id",
"data_type": "text"
},
{
"table_name": "api_key_usage",
"column_name": "api_key",
"data_type": "uuid"
},
{
"table_name": "api_key_usage",
"... | odota/web/testcafe/cachedAjax/schema.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/schema.json",
"repo_id": "odota",
"token_count": 13923
} | 278 |
<p align="center">
<a aria-label="open.mp logo" href="https://open.mp">
<img src="https://assets.open.mp/assets/images/assets/wordmark-light-mono.png" width="420" />
</a>
</p>
<p align="center">
<em>open.mp multiplayer game framework</em>
</p>
<p align="center">
<a
href="https://open.mp/docs"
>Wiki<... | openmultiplayer/web/README.md/0 | {
"file_path": "openmultiplayer/web/README.md",
"repo_id": "openmultiplayer",
"token_count": 956
} | 279 |
package server
import (
"errors"
"time"
"github.com/openmultiplayer/web/internal/db"
)
// All contains all the information associated with a game server including the core information, the standard SA:MP
// "rules" and "players" lists as well as any additional fields to enhance the server browsing experience.
typ... | openmultiplayer/web/app/resources/server/model.go/0 | {
"file_path": "openmultiplayer/web/app/resources/server/model.go",
"repo_id": "openmultiplayer",
"token_count": 1575
} | 280 |
package scraper
import (
"context"
"go.uber.org/zap"
"github.com/openmultiplayer/web/app/resources/server"
"github.com/openmultiplayer/web/app/services/queryer"
)
type SimpleScraper struct {
Q queryer.Queryer
}
func (s *SimpleScraper) Scrape(ctx context.Context, addresses []string) []server.Essential {
zap.L... | openmultiplayer/web/app/services/scraper/simple.go/0 | {
"file_path": "openmultiplayer/web/app/services/scraper/simple.go",
"repo_id": "openmultiplayer",
"token_count": 498
} | 281 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.