text stringlengths 1 2.83M | id stringlengths 16 152 | metadata dict | __index_level_0__ int64 0 949 |
|---|---|---|---|
import { cyan, red } from 'nanocolors';
import { relative } from 'path';
export function getSelectFilesMenu(succeededFiles: string[], failedFiles: string[]) {
const maxI = succeededFiles.length + failedFiles.length;
const minWidth = maxI.toString().length + 1;
function formatTestFile(file: string, i: number, of... | modernweb-dev/web/packages/test-runner-core/src/cli/getSelectFilesMenu.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/cli/getSelectFilesMenu.ts",
"repo_id": "modernweb-dev",
"token_count": 329
} | 197 |
import { nanoid } from 'nanoid';
import path from 'path';
import { SESSION_STATUS } from '../test-session/TestSessionStatus.js';
import { TestSession } from '../test-session/TestSession.js';
import { TestRunnerCoreConfig } from '../config/TestRunnerCoreConfig.js';
import { TestRunnerGroupConfig } from '../config/TestR... | modernweb-dev/web/packages/test-runner-core/src/runner/createSessionGroups.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/runner/createSessionGroups.ts",
"repo_id": "modernweb-dev",
"token_count": 1345
} | 198 |
/* eslint-disable no-async-promise-executor, no-inner-declarations */
import { getPortPromise } from 'portfinder';
import path from 'path';
import { TestRunner, TestRunnerCoreConfig } from './index.js';
import { Logger } from './logger/Logger.js';
import { TestResult, TestSession, TestSuiteResult } from './test-session... | modernweb-dev/web/packages/test-runner-core/src/test-helpers.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-core/src/test-helpers.ts",
"repo_id": "modernweb-dev",
"token_count": 2027
} | 199 |
import path from 'path';
const REGEXP_TO_FILE_PATH = new RegExp('/', 'g');
export function toFilePath(browserPath: string) {
return browserPath.replace(REGEXP_TO_FILE_PATH, path.sep);
}
| modernweb-dev/web/packages/test-runner-coverage-v8/src/utils.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-coverage-v8/src/utils.ts",
"repo_id": "modernweb-dev",
"token_count": 66
} | 200 |
import '../../../../../node_modules/chai/chai.js';
import { fail } from './simple-source.js';
describe('real numbers forming a monoid', function() {
it('under addition', function() {
chai.expect(1 + 1).to.equal(2);
});
});
describe('off-by-one boolean logic errors', function() {
it('null hypothesis', funct... | modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/simple/simple-test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-junit-reporter/test/fixtures/simple/simple-test.js",
"repo_id": "modernweb-dev",
"token_count": 321
} | 201 |
const { runTests } = require('@web/test-runner-core/test-helpers');
const { chromeLauncher } = require('@web/test-runner-chrome');
const { resolve } = require('path');
const { expect } = require('chai');
it('can run tests with standalone', async function () {
this.timeout(50000);
const { sessions } = await runTes... | modernweb-dev/web/packages/test-runner-mocha/test/standalone.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-mocha/test/standalone.test.js",
"repo_id": "modernweb-dev",
"token_count": 982
} | 202 |
import * as puppeteer from 'puppeteer';
import * as puppeteerCore from 'puppeteer-core';
import { Browser, Page, PuppeteerNodeLaunchOptions } from 'puppeteer-core';
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { chromeLauncher } from '@web/test-runner-chrome';
export interface ... | modernweb-dev/web/packages/test-runner-puppeteer/src/puppeteerLauncher.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-puppeteer/src/puppeteerLauncher.ts",
"repo_id": "modernweb-dev",
"token_count": 251
} | 203 |
import { BrowserLauncher } from '@web/test-runner-core';
import SaucelabsAPI, {
SauceLabsOptions,
SauceConnectOptions,
SauceConnectInstance,
} from 'saucelabs';
import ip from 'ip';
/**
* Wraps a Promise with a timeout, rejecing the promise with the timeout.
*/
export function withTimeout<T>(promise: Promise<T... | modernweb-dev/web/packages/test-runner-saucelabs/src/SauceLabsLauncherManager.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-saucelabs/src/SauceLabsLauncherManager.ts",
"repo_id": "modernweb-dev",
"token_count": 880
} | 204 |
import path from 'path';
import { VisualRegressionPluginOptions, DiffResult } from './config.js';
import { VisualRegressionError } from './VisualRegressionError.js';
function resolveImagePath(baseDir: string, name: string) {
const finalName = path.extname(name) ? name : `${name}.png`;
if (path.isAbsolute(finalNam... | modernweb-dev/web/packages/test-runner-visual-regression/src/visualDiffCommand.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-visual-regression/src/visualDiffCommand.ts",
"repo_id": "modernweb-dev",
"token_count": 1292
} | 205 |
import { BrowserLauncher, TestRunnerCoreConfig } from '@web/test-runner-core';
import { Browser, remote, RemoteOptions } from 'webdriverio';
import { IFrameManager } from './IFrameManager.js';
import { SessionManager } from './SessionManager.js';
import { getBrowserLabel } from './utils.js';
type MouseButton = 'left' ... | modernweb-dev/web/packages/test-runner-webdriver/src/webdriverLauncher.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner-webdriver/src/webdriverLauncher.ts",
"repo_id": "modernweb-dev",
"token_count": 2534
} | 206 |
function a() {
throw new Error('error thrown in a.js')
}
function b() {
throw new Error('error thrown in b.js')
}
export { a, b };
//# sourceMappingURL=index.js.map
| modernweb-dev/web/packages/test-runner/demo/source-maps/bundled/dist/index.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/source-maps/bundled/dist/index.js",
"repo_id": "modernweb-dev",
"token_count": 62
} | 207 |
{
"version": 3,
"file": "fail-source-maps-separate.test.js",
"sourceRoot": "",
"sources": [
"./fail-source-maps-separate.test.ts"
],
"names": [],
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEhD,QAAQ,CAAC,2BAA2B,EAAE;IACpC,EAAE,CAAC,WAAW,EAAE;Q... | modernweb-dev/web/packages/test-runner/demo/source-maps/separate/test/fail-source-maps-separate.test.js.map/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/source-maps/separate/test/fail-source-maps-separate.test.js.map",
"repo_id": "modernweb-dev",
"token_count": 330
} | 208 |
import { expect } from './chai.js';
beforeEach(() => {
throw new Error('error thrown in beforeEach 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-before-each.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-before-each.test.js",
"repo_id": "modernweb-dev",
"token_count": 87
} | 209 |
foo' | modernweb-dev/web/packages/test-runner/demo/test/fail-syntax-error-dependency.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/fail-syntax-error-dependency.js",
"repo_id": "modernweb-dev",
"token_count": 2
} | 210 |
import { expect } from './chai.js';
it('test 1', () => {
if (
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) ||
navigator.userAgent.toLowerCase().includes('firefox')
) {
expect(true).to.be.false;
}
expect(true).to.be.true;
});
| modernweb-dev/web/packages/test-runner/demo/test/pass-log-non-chrome.test.js/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/test/pass-log-non-chrome.test.js",
"repo_id": "modernweb-dev",
"token_count": 108
} | 211 |
export declare class MyClass {
doFoo(foo: string, bar: number): Promise<void>;
}
export declare function doBar(bar: string, foo: number): void;
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/src/MyClass.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/src/MyClass.d.ts",
"repo_id": "modernweb-dev",
"token_count": 47
} | 212 |
import './shared-a.js';
import './shared-b.js';
| modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-3.test.d.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-3.test.d.ts",
"repo_id": "modernweb-dev",
"token_count": 20
} | 213 |
import { readConfig, ConfigLoaderError } from '@web/config-loader';
import { TestRunnerStartError } from '../TestRunnerStartError.js';
export interface ReadFileConfigParams {
/**
* The config name to use. Defaults to web-test-runner.config.{mjs,cjs,js}
*/
configName?: string;
/**
* Path to the config f... | modernweb-dev/web/packages/test-runner/src/config/readFileConfig.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/config/readFileConfig.ts",
"repo_id": "modernweb-dev",
"token_count": 329
} | 214 |
import { TestResult, TestSuiteResult } from '@web/test-runner-core';
export function getPassedFailedSkippedCount(testResults: TestSuiteResult) {
let passed = 0;
let failed = 0;
let skipped = 0;
function collectTests(tests: TestResult[]) {
for (const test of tests) {
if (test.skipped) {
skipp... | modernweb-dev/web/packages/test-runner/src/reporter/utils/getPassedFailedSkippedCount.ts/0 | {
"file_path": "modernweb-dev/web/packages/test-runner/src/reporter/utils/getPassedFailedSkippedCount.ts",
"repo_id": "modernweb-dev",
"token_count": 270
} | 215 |
www.opendota.com | odota/web/CNAME/0 | {
"file_path": "odota/web/CNAME",
"repo_id": "odota",
"token_count": 7
} | 216 |
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 500 500" style="enable-background:new 0 0 500 ... | odota/web/public/assets/images/dota2/talent_tree.svg/0 | {
"file_path": "odota/web/public/assets/images/dota2/talent_tree.svg",
"repo_id": "odota",
"token_count": 1855
} | 217 |
<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="M106.25 0h1133.3v850H106.25z"/>
</clipPath>
</defs>
<g clip-path="url(#a)" transform="matrix(.56472 0 0 .56482 -60.002 -.1)">
<path d="M0 0h1300v850H0z" fi... | odota/web/public/assets/images/flags/ax.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ax.svg",
"repo_id": "odota",
"token_count": 302
} | 218 |
<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="#007a5e" d="M0 0h213.333v480H0z"/>
<path fill="#ce1126" d="M213.333 0h213.333v480H213.333z"/>
<path fill="#fcd116" d="M426.667 0H640v480H426.667z"/>
<g transform="transl... | odota/web/public/assets/images/flags/cm.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/cm.svg",
"repo_id": "odota",
"token_count": 370
} | 219 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#fff" d="M0 0h640v480H0z"/>
<path fill="#ce1124" d="M281.6 0h76.8v480h-76.8z"/>
<path fill="#ce1124" d="M0 201.6h640v76.8H0z"/>
</svg>
| odota/web/public/assets/images/flags/gb-eng.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/gb-eng.svg",
"repo_id": "odota",
"token_count": 120
} | 220 |
<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 0h120v90H0z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="scale(5.33)" stroke-width="1pt">
<path fill="#0d5eaf" d="M0 0h1... | odota/web/public/assets/images/flags/gr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/gr.svg",
"repo_id": "odota",
"token_count": 438
} | 221 |
<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="#f93" d="M0 0h640v160H0z"/>
<path fill="#fff" d="M0 160h640v160H0z"/>
<path fill="#128807" d="M0 320h640v160H0z"/>
<g transform="matrix(3.2 0 0 3.2 320 240)">
<circl... | odota/web/public/assets/images/flags/in.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/in.svg",
"repo_id": "odota",
"token_count": 526
} | 222 |
<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="M5.077.1h682.53V512H5.077z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(-4.761 -.094) scale(.93768)">
<path strok... | odota/web/public/assets/images/flags/kp.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/kp.svg",
"repo_id": "odota",
"token_count": 504
} | 223 |
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480">
<path fill="#c1272d" d="M640 0H0v480h640z"/>
<path d="M320 179.452l-35.574 109.496 93.12-67.647H262.453l93.122 67.648z" fill="none" stroke="#006233" stroke-width="11.704"/>
</svg>
| odota/web/public/assets/images/flags/ma.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/ma.svg",
"repo_id": "odota",
"token_count": 122
} | 224 |
<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-54.667 0h682.67v512h-682.67z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(51.25) scale(.9375)" stroke-width="1pt">
... | odota/web/public/assets/images/flags/nr.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/nr.svg",
"repo_id": "odota",
"token_count": 410
} | 225 |
<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-70.28 0h640v480h-640z"/>
</clipPath>
</defs>
<g fill-rule="evenodd" clip-path="url(#a)" transform="translate(70.28)" stroke-width="1pt">
<path fill="#4aa... | odota/web/public/assets/images/flags/pw.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/pw.svg",
"repo_id": "odota",
"token_count": 237
} | 226 |
<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="#ffe300" d="M0 0h767.63v512H0z"/... | odota/web/public/assets/images/flags/tg.svg/0 | {
"file_path": "odota/web/public/assets/images/flags/tg.svg",
"repo_id": "odota",
"token_count": 433
} | 227 |
import React from 'react';
import propTypes from 'prop-types';
import styled from 'styled-components';
import constants from '../constants';
import { styleValues, formatValues } from '../../utility';
import AbilityBehaviour from './AbilityBehaviour';
import config from '../../config';
const Wrapper = styled.div`
pos... | odota/web/src/components/AbilityTooltip/index.tsx/0 | {
"file_path": "odota/web/src/components/AbilityTooltip/index.tsx",
"repo_id": "odota",
"token_count": 2124
} | 228 |
import App from './App';
export default App;
| odota/web/src/components/App/index.js/0 | {
"file_path": "odota/web/src/components/App/index.js",
"repo_id": "odota",
"token_count": 14
} | 229 |
import Error from './Error';
export default Error;
| odota/web/src/components/Error/index.js/0 | {
"file_path": "odota/web/src/components/Error/index.js",
"repo_id": "odota",
"token_count": 14
} | 230 |
import React from 'react';
import { IconGithub, IconDiscord } from '../Icons';
import config from '../../config';
export default ({ strings }) => {
const links = [
{
tooltip: strings.app_github,
path: `//github.com/${config.GITHUB_REPO}`,
icon: <IconGithub aria-hidden />,
},
];
if (con... | odota/web/src/components/Footer/SocialLinks.jsx/0 | {
"file_path": "odota/web/src/components/Footer/SocialLinks.jsx",
"repo_id": "odota",
"token_count": 350
} | 231 |
import Heatmap from './Heatmap';
export default Heatmap;
| odota/web/src/components/Heatmap/index.js/0 | {
"file_path": "odota/web/src/components/Heatmap/index.js",
"repo_id": "odota",
"token_count": 17
} | 232 |
import React from 'react';
import { bool, func, arrayOf, shape, number, string } from 'prop-types';
import { connect } from 'react-redux';
import { getHeroPlayers } from '../../actions';
import Table, { TableLink } from '../Table';
import PlayersSkeleton from '../Skeletons/PlayersSkeleton';
import { wilsonScore } from ... | odota/web/src/components/Hero/Players.jsx/0 | {
"file_path": "odota/web/src/components/Hero/Players.jsx",
"repo_id": "odota",
"token_count": 1194
} | 233 |
import React from 'react';
export default props => (
// Taked from http://game-icons.net/skoll/originals/fist.html
// by Skoll under CC BY 3.0
<svg viewBox="0 0 512 512" {...props}>
<path
fill="#f44336"
d="M329.8 235.69l62.83-82.71 42.86 32.56-62.83 82.75zm-12.86-9.53l66.81-88-45-34.15-66.81
... | odota/web/src/components/Icons/AttrStrength.jsx/0 | {
"file_path": "odota/web/src/components/Icons/AttrStrength.jsx",
"repo_id": "odota",
"token_count": 378
} | 234 |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import ReactTooltip from 'react-tooltip';
import { Tooltip } from '@material-ui/core';
import heroes from 'dotaconstants/build/heroes.json';
import {
formatSeconds,
getHeroes... | odota/web/src/components/Match/MatchLog.jsx/0 | {
"file_path": "odota/web/src/components/Match/MatchLog.jsx",
"repo_id": "odota",
"token_count": 8912
} | 235 |
import React from 'react';
import PropTypes from 'prop-types';
import ReactTooltip from 'react-tooltip';
import styled from 'styled-components';
import {
gameCoordToUV,
formatSeconds,
getWardSize
} from '../../../utility';
import PlayerThumb from '../PlayerThumb';
import DotaMap from '../../DotaMap';
import const... | odota/web/src/components/Match/Vision/VisionMap.jsx/0 | {
"file_path": "odota/web/src/components/Match/Vision/VisionMap.jsx",
"repo_id": "odota",
"token_count": 1875
} | 236 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Box } from '@material-ui/core';
import FlatButton from 'material-ui/FlatButton';
import ActionUpdate from 'material-ui/svg-icons/navigation/refresh';
import styled from 'styled-components';
import { toggleShow... | odota/web/src/components/Player/Header/PlayerButtons.jsx/0 | {
"file_path": "odota/web/src/components/Player/Header/PlayerButtons.jsx",
"repo_id": "odota",
"token_count": 850
} | 237 |
import { transformations, displayHeroId } from '../../../../utility';
import matchesColumns from '../../../Match/matchColumns';
export default (strings, isShowItems) => ([{
displayName: strings.th_hero_id,
tooltip: strings.tooltip_hero_id,
field: 'hero_id',
displayFn: displayHeroId,
}, {
displayName: strings... | odota/web/src/components/Player/Pages/Matches/playerMatchesColumns.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Matches/playerMatchesColumns.jsx",
"repo_id": "odota",
"token_count": 463
} | 238 |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getPlayerWordcloud } from '../../../../actions';
import Container from '../../../Container';
import Wordcloud from '../../../Wordcloud';
const getData = (props) => {
props.getPlayerWordcloud(props.playerId,... | odota/web/src/components/Player/Pages/Wordcloud/Wordcloud.jsx/0 | {
"file_path": "odota/web/src/components/Player/Pages/Wordcloud/Wordcloud.jsx",
"repo_id": "odota",
"token_count": 637
} | 239 |
import { inflictorWithValue } from '../Visualizations';
import { displayHeroId, formatSeconds, abbreviateNumber } from '../../utility';
const computeWinRate = row => (row.wins / row.games);
export const getTimeRange = (field, metadata) => {
let lower;
if (metadata.indexOf(field) !== 0) {
lower = metadata[meta... | odota/web/src/components/Scenarios/ScenariosColumns.jsx/0 | {
"file_path": "odota/web/src/components/Scenarios/ScenariosColumns.jsx",
"repo_id": "odota",
"token_count": 1009
} | 240 |
import React from 'react';
import PropTypes from 'prop-types';
import TableHeaderColumn from './TableHeaderColumn';
const TableHeader = ({
columns, sortState, sortField, sortClick, totalWidth, setHighlightedCol,
}) => (
<tr>
{columns.map((column, index) => (
<TableHeaderColumn
key={index}
... | odota/web/src/components/Table/TableHeader.jsx/0 | {
"file_path": "odota/web/src/components/Table/TableHeader.jsx",
"repo_id": "odota",
"token_count": 313
} | 241 |
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { abbreviateNumber } from '../../utility';
const Styled = styled.div`
font-size: 60%;
margin: 5px 19px 15px 5px;
position: relative;
display: inline-block;
:last-child {
margin-right: 5p... | odota/web/src/components/Visualizations/GaugeChart.jsx/0 | {
"file_path": "odota/web/src/components/Visualizations/GaugeChart.jsx",
"repo_id": "odota",
"token_count": 1556
} | 242 |
export { default as TablePercent } from './Table/Percent';
export { default as TableSparkline } from './Table/Sparkline';
export { default as KDA } from './Table/KDA';
export { default as TableHeroImage } from './Table/HeroImage';
export { default as FromNowTooltip } from './FromNowTooltip';
export { default as inflict... | odota/web/src/components/Visualizations/index.js/0 | {
"file_path": "odota/web/src/components/Visualizations/index.js",
"repo_id": "odota",
"token_count": 112
} | 243 |
{
"yes": "sí",
"no": "no",
"abbr_thousand": "ok",
"abbr_million": "m",
"abbr_billion": "b",
"abbr_trillion": "t",
"abbr_quadrillion": "q",
"abbr_not_available": "N/A",
"abbr_pick": "P",
"abbr_win": "W",
"abbr_number": "No.",
"analysis_eff": "Eficiencia en línea",
"analysis_farm_drought": "Meno... | odota/web/src/lang/es-US.json/0 | {
"file_path": "odota/web/src/lang/es-US.json",
"repo_id": "odota",
"token_count": 19593
} | 244 |
{
"yes": "да",
"no": "нет",
"abbr_thousand": "тыс.",
"abbr_million": "млн",
"abbr_billion": "млрд",
"abbr_trillion": "трлн",
"abbr_quadrillion": "квадрлн",
"abbr_not_available": "Н/Д",
"abbr_pick": "В",
"abbr_win": "П",
"abbr_number": "Ном.",
"analysis_eff": "Эффективность на линии",
"analysis... | odota/web/src/lang/ru-RU.json/0 | {
"file_path": "odota/web/src/lang/ru-RU.json",
"repo_id": "odota",
"token_count": 34846
} | 245 |
export type Hero = {
id: number
name: string
localized_name: string
primary_attr: string
attack_type: string
roles: string[]
img: string
icon: string
cm_enabled: boolean
base_health: number
base_health_regen: number | null
base_mana: number
base_mana_regen: number
base_armor: number
base_m... | odota/web/src/types/Hero/Hero.ts/0 | {
"file_path": "odota/web/src/types/Hero/Hero.ts",
"repo_id": "odota",
"token_count": 219
} | 246 |
[
{
"x": 0,
"games": 222,
"win": 65
},
{
"x": 1,
"games": 423,
"win": 150
},
{
"x": 2,
"games": 515,
"win": 241
},
{
"x": 3,
"games": 566,
"win": 304
},
{
"x": 4,
"games": 530,
"win": 312
},
{
"x": 5,
"games": 520,
"win": 313
},
{
"x": 6,
"games": 451,
"win": 286
... | odota/web/testcafe/cachedAjax/players_101695162_histograms_kills_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/players_101695162_histograms_kills_.json",
"repo_id": "odota",
"token_count": 1165
} | 247 |
[
{
"match_id": 4089382003,
"duration": 2204,
"start_time": 1535593412,
"radiant_team_id": 2564070,
"radiant_name": "PapiroDontFeedPlss",
"dire_team_id": 3728320,
"dire_name": "El ano de inu sama",
"leagueid": 3482,
"league_name": "Sudamerican Master 3 by g2a",
"series_id": 237480,
"series_type":... | odota/web/testcafe/cachedAjax/proMatches_.json/0 | {
"file_path": "odota/web/testcafe/cachedAjax/proMatches_.json",
"repo_id": "odota",
"token_count": 17565
} | 248 |
import {
Selector,
} from 'testcafe';
import {
ReactSelector,
} from 'testcafe-react-selectors';
import {
fixtureBeforeHook,
fixtureBeforeEachHook,
fixtureAfterHook,
fixtureRequestHooks,
host,
} from './../testsUtility';
const paths = [
'/explorer?minDate=2018-08-01T13%3A03%3A40.498Z',
'/meta',
'/m... | odota/web/testcafe/tests/home.js/0 | {
"file_path": "odota/web/testcafe/tests/home.js",
"repo_id": "odota",
"token_count": 402
} | 249 |
# Server
This directory contains the API codebase. It's written in Go and is fully cross-platform (does not depend on any platform-specific libraries or C code).
## Architecture
### Layout
The codebase follows idiomatic Go guidelines. Interfaces are preferred as a means of sharing functionality in order to facilita... | openmultiplayer/web/app/README.md/0 | {
"file_path": "openmultiplayer/web/app/README.md",
"repo_id": "openmultiplayer",
"token_count": 929
} | 250 |
package server
import (
"context"
"fmt"
"net"
"regexp"
"strings"
sampquery "github.com/Southclaws/go-samp-query"
)
var (
ipMatcher = regexp.MustCompile(`\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b`)
resolver = net.DefaultResolver
)
func TransformQueryResult(s sampquery.Server, err error) (r All) {
if err != ni... | openmultiplayer/web/app/resources/server/transform.go/0 | {
"file_path": "openmultiplayer/web/app/resources/server/transform.go",
"repo_id": "openmultiplayer",
"token_count": 625
} | 251 |
// +build integration
package serververify
import (
"context"
"fmt"
"testing"
)
func TestVerify(t *testing.T) {
v := Verifyer{}
ch, err := v.Verify(context.Background(), "localhost:7777", "somecode")
if err != nil {
panic(err)
}
for m := range ch {
fmt.Printf("Result : %#v\n", m)
}
}
| openmultiplayer/web/app/services/serververify/verify_test.go/0 | {
"file_path": "openmultiplayer/web/app/services/serververify/verify_test.go",
"repo_id": "openmultiplayer",
"token_count": 129
} | 252 |
package pawndex
import (
"net/http"
"github.com/openmultiplayer/web/internal/web"
)
func (s *service) list(w http.ResponseWriter, r *http.Request) {
all, err := s.store.GetAll()
if err != nil {
web.StatusInternalServerError(w, err)
return
}
web.Write(w, all) //nolint:errcheck
}
| openmultiplayer/web/app/transports/api/pawndex/h_list.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/pawndex/h_list.go",
"repo_id": "openmultiplayer",
"token_count": 118
} | 253 |
package users
import (
"errors"
"net/http"
"github.com/go-chi/chi"
"github.com/openmultiplayer/web/app/services/authentication"
"github.com/openmultiplayer/web/internal/web"
)
type patchPayload struct {
Email *string `json:"email"`
Name *string `json:"name"`
Bio *string `json:"bio"`
}
func (s *service) p... | openmultiplayer/web/app/transports/api/users/h_patch.go/0 | {
"file_path": "openmultiplayer/web/app/transports/api/users/h_patch.go",
"repo_id": "openmultiplayer",
"token_count": 355
} | 254 |
---
title: OnClientCheckResponse
description: This callback is called when a SendClientCheck request completes
tags: []
---
## Description
This callback is called when a SendClientCheck request completes.
| Name | Description |
| ------------- | --------------------------------- |
| pl... | openmultiplayer/web/docs/scripting/callbacks/OnClientCheckResponse.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnClientCheckResponse.md",
"repo_id": "openmultiplayer",
"token_count": 465
} | 255 |
---
title: OnObjectMoved
description: This callback is called when an object is moved after MoveObject (when it stops moving).
tags: ["object"]
---
## Description
This callback is called when an object is moved after MoveObject (when it stops moving).
| Name | Description |
| -------- | -... | openmultiplayer/web/docs/scripting/callbacks/OnObjectMoved.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnObjectMoved.md",
"repo_id": "openmultiplayer",
"token_count": 393
} | 256 |
---
title: OnPlayerEnterGangZone
description: This callback is called when a player enters a gangzone
tags: ["player", "gangzone"]
---
<VersionWarn name='callback' version='omp v1.1.0.2612' />
## Description
This callback is called when a player enters a gangzone
| Name | Description ... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterGangZone.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerEnterGangZone.md",
"repo_id": "openmultiplayer",
"token_count": 444
} | 257 |
---
title: OnPlayerPickUpPickup
description: This callback is called when a player picks up a pickup created with CreatePickup.
tags: ["player"]
---
## Description
This callback is called when a player picks up a pickup created with [CreatePickup](../functions/CreatePickup).
| Name | Description ... | openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickUpPickup.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerPickUpPickup.md",
"repo_id": "openmultiplayer",
"token_count": 618
} | 258 |
---
title: AddCharModel
description: Adds a new custom character model for download.
tags: ["custom skin", "char model"]
---
<VersionWarn version='SA-MP 0.3.DL R1' />
## Description
Adds a new custom character model for download. The model files will be stored in player's Documents\GTA San Andreas User Files\SAMP\ca... | openmultiplayer/web/docs/scripting/functions/AddCharModel.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/AddCharModel.md",
"repo_id": "openmultiplayer",
"token_count": 768
} | 259 |
---
title: ApplyActorAnimation
description: Apply an animation to an actor.
tags: ["actor", "animation"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Apply an animation to an actor.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/ApplyActorAnimation.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ApplyActorAnimation.md",
"repo_id": "openmultiplayer",
"token_count": 2005
} | 260 |
---
title: ClearBanList
description: Clears the ban list.
tags: []
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Clears the ban list.
## Returns
**true** - Success.
**false** - Failed to execute the function.
## Examples
```c
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdte... | openmultiplayer/web/docs/scripting/functions/ClearBanList.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/ClearBanList.md",
"repo_id": "openmultiplayer",
"token_count": 402
} | 261 |
---
title: DisableNameTagLOS
description: Disables the nametag Line-Of-Sight checking so that players can see nametags through objects.
tags: []
---
## Description
Disables the nametag Line-Of-Sight checking so that players can see nametags through objects.
## Examples
```c
public OnGameModeInit()
{
DisableName... | openmultiplayer/web/docs/scripting/functions/DisableNameTagLOS.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/DisableNameTagLOS.md",
"repo_id": "openmultiplayer",
"token_count": 256
} | 262 |
---
title: GangZoneShowForPlayer
description: Show a gangzone for a player.
tags: ["player", "gangzone"]
---
## Description
Show a gangzone for a player. Must be created with [GangZoneCreate](GangZoneCreate) first.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GangZoneShowForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GangZoneShowForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 692
} | 263 |
---
title: GetActorSkin
description: Get the skin of the actor.
tags: ["actor"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the skin of the actor.
| Name | Description |
|---------|-----------------------------|
| actorid | The ID of the actor to get. |
## Return Values
Ret... | openmultiplayer/web/docs/scripting/functions/GetActorSkin.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetActorSkin.md",
"repo_id": "openmultiplayer",
"token_count": 270
} | 264 |
---
title: GetMenuColumnWidth
description: Get the width of the one or two columns.
tags: ["menu"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the width of the one or two columns.
| Name | Description |
| ---------... | openmultiplayer/web/docs/scripting/functions/GetMenuColumnWidth.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetMenuColumnWidth.md",
"repo_id": "openmultiplayer",
"token_count": 413
} | 265 |
---
title: GetObjectMovingTargetPos
description: Get the move target position of an object.
tags: ["object"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Get the move target position of an object.
| Name | Description |
|-... | openmultiplayer/web/docs/scripting/functions/GetObjectMovingTargetPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetObjectMovingTargetPos.md",
"repo_id": "openmultiplayer",
"token_count": 535
} | 266 |
---
title: GetPlayerBuildingsRemoved
description: Gets the number of removed buildings for a player.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the number of removed buildings for a player.
| Name | Description |
|----------|-----------------------|
| playerid |... | openmultiplayer/web/docs/scripting/functions/GetPlayerBuildingsRemoved.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerBuildingsRemoved.md",
"repo_id": "openmultiplayer",
"token_count": 321
} | 267 |
---
title: GetPlayerLastSyncedTrailerID
description: Gets the player's last synced trailer ID.
tags: ["player", "vehicle"]
---
<VersionWarn version='omp v1.1.0.2612' />
:::warning
This function has not yet been implemented.
:::
## Description
Gets the player's last synced trailer ID.
## Parameters
| Name | ... | openmultiplayer/web/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerLastSyncedTrailerID.md",
"repo_id": "openmultiplayer",
"token_count": 219
} | 268 |
---
title: GetPlayerObjectPos
description: Get the position of a player object (CreatePlayerObject).
tags: ["player", "object", "playerobject"]
---
## Description
Get the position of a player object ([CreatePlayerObject](CreatePlayerObject)).
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetPlayerObjectPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerObjectPos.md",
"repo_id": "openmultiplayer",
"token_count": 851
} | 269 |
---
title: GetPlayerSkin
description: Returns the class of the players skin.
tags: ["player"]
---
## Description
Returns the class of the players skin
| Name | Description |
| -------- | ---------------------------------------- |
| playerid | The player you want to get the skin from ... | openmultiplayer/web/docs/scripting/functions/GetPlayerSkin.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerSkin.md",
"repo_id": "openmultiplayer",
"token_count": 386
} | 270 |
---
title: GetPlayerVelocity
description: Get the velocity (speed) of a player on the X, Y and Z axes.
tags: ["player"]
---
## Description
Get the velocity (speed) of a player on the X, Y and Z axes.
| Name | Description |
| -------- | -----... | openmultiplayer/web/docs/scripting/functions/GetPlayerVelocity.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerVelocity.md",
"repo_id": "openmultiplayer",
"token_count": 610
} | 271 |
---
title: GetSVarString
description: Gets a string server variable's value.
tags: ["server variable", "svar"]
---
<VersionWarn version='SA-MP 0.3.7 R2' />
## Description
Gets a string server variable's value.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetSVarString.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetSVarString.md",
"repo_id": "openmultiplayer",
"token_count": 592
} | 272 |
---
title: GetVehicleParamsCarDoors
description: Allows you to retrieve the current state of a vehicle's doors.
tags: ["vehicle"]
---
<VersionWarn version='SA-MP 0.3.7' />
## Description
Allows you to retrieve the current state of a vehicle's doors
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/GetVehicleParamsCarDoors.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleParamsCarDoors.md",
"repo_id": "openmultiplayer",
"token_count": 521
} | 273 |
---
title: GetVehicleVirtualWorld
description: Get the virtual world of a vehicle.
tags: ["vehicle"]
---
## Description
Get the virtual world of a vehicle.
| Name | Description |
| --------- | -------------------------------------------------- |
| vehicleid | The ID of the... | openmultiplayer/web/docs/scripting/functions/GetVehicleVirtualWorld.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleVirtualWorld.md",
"repo_id": "openmultiplayer",
"token_count": 229
} | 274 |
---
title: HideMenuForPlayer
description: Hides a menu for a player.
tags: ["player", "menu"]
---
## Description
Hides a menu for a player.
| Name | Description |
| ----------- | -------------... | openmultiplayer/web/docs/scripting/functions/HideMenuForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/HideMenuForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 797
} | 275 |
---
title: IsNickNameCharacterAllowed
description: Checks if a character is allowed in nickname.
tags: []
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Checks if a character is allowed in nickname.
| Name | Description |
| --------- | ----------------------- |
| character | The chara... | openmultiplayer/web/docs/scripting/functions/IsNickNameCharacterAllowed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsNickNameCharacterAllowed.md",
"repo_id": "openmultiplayer",
"token_count": 254
} | 276 |
---
title: IsPlayerInCheckpoint
description: Check if the player is currently inside a checkpoint, this could be used for properties or teleport points for example.
tags: ["player", "checkpoint"]
---
## Description
Check if the player is currently inside a checkpoint, this could be used for properties or teleport poi... | openmultiplayer/web/docs/scripting/functions/IsPlayerInCheckpoint.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerInCheckpoint.md",
"repo_id": "openmultiplayer",
"token_count": 470
} | 277 |
---
title: LimitPlayerMarkerRadius
description: Set the player marker radius.
tags: ["player"]
---
## Description
Set the player marker radius.
| Name | Description |
| ------------------- | ------------------------------------ |
| Float:markerRadius | The radius that markers... | openmultiplayer/web/docs/scripting/functions/LimitPlayerMarkerRadius.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/LimitPlayerMarkerRadius.md",
"repo_id": "openmultiplayer",
"token_count": 246
} | 278 |
---
title: PlayCrimeReportForPlayer
description: This function plays a crime report for a player - just like in single-player when CJ commits a crime.
tags: ["player"]
---
## Description
This function plays a crime report for a player - just like in single-player when CJ commits a crime.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/PlayCrimeReportForPlayer.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayCrimeReportForPlayer.md",
"repo_id": "openmultiplayer",
"token_count": 611
} | 279 |
---
title: PlayerTextDrawGetPos
description: Gets the position of a player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the position (in-screen x & y) of a player-textdraw.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetPos.md",
"repo_id": "openmultiplayer",
"token_count": 973
} | 280 |
---
title: PlayerTextDrawSetPreviewRot
description: Sets the rotation and zoom of a 3D model preview player-textdraw.
tags: ["player", "textdraw", "playertextdraw"]
---
## Description
Sets the rotation and zoom of a 3D model preview player-textdraw.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/PlayerTextDrawSetPreviewRot.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawSetPreviewRot.md",
"repo_id": "openmultiplayer",
"token_count": 1299
} | 281 |
---
title: RemovePlayerWeapon
description: Remove a specified weapon from a player.
tags: ["player"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Remove a specified weapon from a player.
| Name | Description |
|-----------------|--------------... | openmultiplayer/web/docs/scripting/functions/RemovePlayerWeapon.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/RemovePlayerWeapon.md",
"repo_id": "openmultiplayer",
"token_count": 372
} | 282 |
---
title: SendCommand
description: This will force the NPC to write a desired command, and this way, getting the effects it would produce.
tags: []
---
## Description
This will force the NPC to write a desired command, and this way, getting the effects it would produce.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SendCommand.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SendCommand.md",
"repo_id": "openmultiplayer",
"token_count": 367
} | 283 |
---
title: SetDeathDropAmount
description: Sets death drops money.
tags: []
---
:::warning
Does not work, Use [CreatePickup](CreatePickup).
:::
## Description
Sets death drops money.
| Name | Description |
| ------ | ----------------------- |
| amount | Amount of money to set. |
## Returns
This fu... | openmultiplayer/web/docs/scripting/functions/SetDeathDropAmount.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetDeathDropAmount.md",
"repo_id": "openmultiplayer",
"token_count": 248
} | 284 |
---
title: SetObjectsDefaultCameraCollision
description: Allows camera collisions with newly created objects to be disabled by default.
tags: ["object", "camera"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Allows camera collisions with newly created objects to be disabled by default.
| Name ... | openmultiplayer/web/docs/scripting/functions/SetObjectsDefaultCameraCollision.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetObjectsDefaultCameraCollision.md",
"repo_id": "openmultiplayer",
"token_count": 591
} | 285 |
---
title: SetPlayerCameraPos
description: Sets the camera to a specific position for a player.
tags: ["player", "camera"]
---
## Description
Sets the camera to a specific position for a player.
| Name | Description |
| -------- | ---------------------------------------- |
| playerid... | openmultiplayer/web/docs/scripting/functions/SetPlayerCameraPos.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerCameraPos.md",
"repo_id": "openmultiplayer",
"token_count": 379
} | 286 |
---
title: SetPlayerObjectMoveSpeed
description: Set the move speed of a player-object.
tags: ["player", "object", "playerobject"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Set the move speed of a player-object.
| Name | Description |
|--------... | openmultiplayer/web/docs/scripting/functions/SetPlayerObjectMoveSpeed.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerObjectMoveSpeed.md",
"repo_id": "openmultiplayer",
"token_count": 475
} | 287 |
---
title: SetPlayerSpecialAction
description: This function allows to set players special action.
tags: ["player"]
---
## Description
This function allows to set players special action.
| Name | Description |
| ----------------------- | ----... | openmultiplayer/web/docs/scripting/functions/SetPlayerSpecialAction.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerSpecialAction.md",
"repo_id": "openmultiplayer",
"token_count": 552
} | 288 |
---
title: SetTimerEx
description: Sets a timer to call a function after the specified interval.
tags: ["timer"]
---
## Description
Sets a timer to call a function after the specified interval. This variant ('Ex') can pass parameters (such as a player ID) to the function.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/SetTimerEx.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetTimerEx.md",
"repo_id": "openmultiplayer",
"token_count": 1551
} | 289 |
---
title: SetVehicleToRespawn
description: Sets a vehicle back to the position at where it was created.
tags: ["vehicle"]
---
## Description
Sets a vehicle back to the position at where it was created.
| Name | Description |
| --------- | -------------------------------- |
| vehicleid | Th... | openmultiplayer/web/docs/scripting/functions/SetVehicleToRespawn.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleToRespawn.md",
"repo_id": "openmultiplayer",
"token_count": 233
} | 290 |
---
title: StartRecordingPlayerData
description: Starts recording a player's movements to a file, which can then be reproduced by an NPC.
tags: ["player"]
---
## Description
Starts recording a player's movements to a file, which can then be reproduced by an NPC.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/StartRecordingPlayerData.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/StartRecordingPlayerData.md",
"repo_id": "openmultiplayer",
"token_count": 1074
} | 291 |
---
title: TextDrawFont
description: Changes the text font.
tags: ["textdraw"]
---
## Description
Changes the text font.
| Name | Description ... | openmultiplayer/web/docs/scripting/functions/TextDrawFont.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawFont.md",
"repo_id": "openmultiplayer",
"token_count": 1354
} | 292 |
---
title: TextDrawGetShadow
description: Gets the size of a textdraw's text's shadow.
tags: ["textdraw"]
---
<VersionWarn version='omp v1.1.0.2612' />
## Description
Gets the size of a textdraw's text's shadow.
| Name | Description |
| ----------- | --------------------... | openmultiplayer/web/docs/scripting/functions/TextDrawGetShadow.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawGetShadow.md",
"repo_id": "openmultiplayer",
"token_count": 685
} | 293 |
---
title: TextDrawSetSelectable
description: Sets whether a textdraw can be selected (clicked on) or not.
tags: ["textdraw"]
---
## Description
Sets whether a textdraw can be selected (clicked on) or not
| Name | Description |
| --------------- | --... | openmultiplayer/web/docs/scripting/functions/TextDrawSetSelectable.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawSetSelectable.md",
"repo_id": "openmultiplayer",
"token_count": 518
} | 294 |
---
title: UnBlockIpAddress
description: Unblock an IP address that was previously blocked using BlockIpAddress.
tags: ["administration", "ip address"]
---
## Description
Unblock an IP address that was previously blocked using [BlockIpAddress](BlockIpAddress).
| Name | Description |
| ---... | openmultiplayer/web/docs/scripting/functions/UnBlockIpAddress.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/UnBlockIpAddress.md",
"repo_id": "openmultiplayer",
"token_count": 281
} | 295 |
---
title: fflush
description: Flush a file to disk (ensure all writes are complete).
tags: ["file management"]
---
<VersionWarn version='omp v1.1.0.2612' />
<LowercaseNote />
## Description
Flush a file to disk (ensure all writes are complete). Actually just calls [flength](flength) as that has to force a flush to... | openmultiplayer/web/docs/scripting/functions/fflush.md/0 | {
"file_path": "openmultiplayer/web/docs/scripting/functions/fflush.md",
"repo_id": "openmultiplayer",
"token_count": 725
} | 296 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.