text
stringlengths
1
2.83M
id
stringlengths
16
152
metadata
dict
__index_level_0__
int64
0
949
import { Plugin } from '@web/dev-server-core'; import { parse } from 'es-module-lexer'; import { createResolveImport, ResolveImport } from './createResolveImport.js'; import { stripColor } from './stripColor.js'; /** * Plugin that enables mocking of modules */ export function moduleMockingPlugin(): Plugin { const ...
modernweb-dev/web/packages/test-runner-module-mocking/src/moduleMockingPlugin.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner-module-mocking/src/moduleMockingPlugin.ts", "repo_id": "modernweb-dev", "token_count": 1384 }
224
# Web Test Runner Playwright Run tests using [Playwright](https://www.npmjs.com/package/playwright), using a bundled versions of Chromium, Firefox, and/or Webkit. See [our website](https://modern-web.dev/docs/test-runner/browser-launchers/playwright/) for full documentation.
modernweb-dev/web/packages/test-runner-playwright/README.md/0
{ "file_path": "modernweb-dev/web/packages/test-runner-playwright/README.md", "repo_id": "modernweb-dev", "token_count": 80 }
225
# @web/test-runner-puppeteer ## 0.16.0 ### Minor Changes - 4cc90648: Update Puppeteer to version 22. Remove Puppeteer KnownDevices, before the update named devices, export. ### Patch Changes - Updated dependencies [4cc90648] - @web/test-runner-chrome@0.16.0 ## 0.15.0 ### Minor Changes - c185cbaa: Set minimum ...
modernweb-dev/web/packages/test-runner-puppeteer/CHANGELOG.md/0
{ "file_path": "modernweb-dev/web/packages/test-runner-puppeteer/CHANGELOG.md", "repo_id": "modernweb-dev", "token_count": 4717 }
226
export { seleniumLauncher, SeleniumLauncher } from './seleniumLauncher.js';
modernweb-dev/web/packages/test-runner-selenium/src/index.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner-selenium/src/index.ts", "repo_id": "modernweb-dev", "token_count": 24 }
227
import { expect } from '../../../../node_modules/@esm-bundle/chai/esm/chai.js'; it('supports object spread', () => { const foo = { a: 1 }; const bar = { b: 2, ...foo }; expect(bar).to.eql({ a: 1, b: 2 }); }); it('supports async functions', () => { async function asyncFunction() { // } expect(asyncFunc...
modernweb-dev/web/packages/test-runner-selenium/test/fixtures/stage-4-features.js/0
{ "file_path": "modernweb-dev/web/packages/test-runner-selenium/test/fixtures/stage-4-features.js", "repo_id": "modernweb-dev", "token_count": 425 }
228
import { chromeLauncher } from '@web/test-runner-chrome'; import { playwrightLauncher } from '@web/test-runner-playwright'; export default /** @type {import('@web/test-runner').TestRunnerConfig} */ ({ nodeResolve: true, files: ['demo/focus/test/**/*.test.js'], browsers: [ chromeLauncher(), playwrightLaun...
modernweb-dev/web/packages/test-runner/demo/focus/config.mjs/0
{ "file_path": "modernweb-dev/web/packages/test-runner/demo/focus/config.mjs", "repo_id": "modernweb-dev", "token_count": 156 }
229
/* @web/test-runner snapshot v1 */ export const snapshots = {}; snapshots["snapshot-a"] = `some snapshot A4`; /* end snapshot snapshot-a */ snapshots["snapshot-b"] = `some snapshot B4`; /* end snapshot snapshot-b */ snapshots["snapshot-c"] = `some snapshot C4`; /* end snapshot snapshot-c */
modernweb-dev/web/packages/test-runner/demo/test/__snapshots__/pass-snapshot-4.test.snap.js/0
{ "file_path": "modernweb-dev/web/packages/test-runner/demo/test/__snapshots__/pass-snapshot-4.test.snap.js", "repo_id": "modernweb-dev", "token_count": 103 }
230
import { compareSnapshot } from '@web/test-runner-commands'; it('can test snapshot A', async () => { await compareSnapshot({ name: 'snapshot-a', content: 'some snapshot A5' }); }); it('can test snapshot B', async () => { await compareSnapshot({ name: 'snapshot-b', content: 'some snapshot B5' }); }); it('can test...
modernweb-dev/web/packages/test-runner/demo/test/pass-snapshot-5.test.js/0
{ "file_path": "modernweb-dev/web/packages/test-runner/demo/test/pass-snapshot-5.test.js", "repo_id": "modernweb-dev", "token_count": 136 }
231
import './shared-a.js'; import './shared-b.js';
modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-1.test.d.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-1.test.d.ts", "repo_id": "modernweb-dev", "token_count": 20 }
232
import './shared-a.js'; import './shared-b.js';
modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-6.test.d.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner/demo/tsc/dist/test/pass-6.test.d.ts", "repo_id": "modernweb-dev", "token_count": 20 }
233
#!/usr/bin/env node import { startTestRunner } from './startTestRunner.js'; startTestRunner();
modernweb-dev/web/packages/test-runner/src/bin.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner/src/bin.ts", "repo_id": "modernweb-dev", "token_count": 31 }
234
import { TestSession, Logger } from '@web/test-runner-core'; import { bold, gray } from 'nanocolors'; export function reportRequest404s(logger: Logger, sessions: TestSession[]) { const common404s: string[] = []; const request404sPerBrowser = new Map<string, string[]>(); const all404s = sessions.map(s => s.reque...
modernweb-dev/web/packages/test-runner/src/reporter/reportRequest404s.ts/0
{ "file_path": "modernweb-dev/web/packages/test-runner/src/reporter/reportRequest404s.ts", "repo_id": "modernweb-dev", "token_count": 718 }
235
/* eslint-disable no-undef */ import nodeResolve from '@rollup/plugin-node-resolve'; import typescript from '@rollup/plugin-typescript'; import terser from '@rollup/plugin-terser'; export default input => ({ input, output: { dir: './dist', sourcemap: false, format: 'es', }, plugins: [ nodeResol...
modernweb-dev/web/rollup.browser.config.mjs/0
{ "file_path": "modernweb-dev/web/rollup.browser.config.mjs", "repo_id": "modernweb-dev", "token_count": 205 }
236
VITE_ENABLE_ADSENSE=true
odota/web/.env/0
{ "file_path": "odota/web/.env", "repo_id": "odota", "token_count": 10 }
237
# You don't usually need to edit this file. # If it does not fit your personal use case, docker-compose.override.yml is a preferred way to go. version: '3.7' services: web: build: context: . image: odota/web ports: - "8080:8080" volumes: - .:/usr/src container_name: odota-web
odota/web/docker-compose.yml/0
{ "file_path": "odota/web/docker-compose.yml", "repo_id": "odota", "token_count": 133 }
238
<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-90.533 0h682.67v512h-682.67z"/> </clipPath> </defs> <g clip-path="url(#a)" fill-rule="evenodd" transform="translate(84.875) scale(.9375)"> <path d="M-178...
odota/web/public/assets/images/flags/bi.svg/0
{ "file_path": "odota/web/public/assets/images/flags/bi.svg", "repo_id": "odota", "token_count": 699 }
239
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480"> <path fill="#007fff" d="M0 0h640v480H0z"/> <path d="M28.8 96H96l20.8-67.2L137.6 96h67.2l-54.4 41.6 20.8 67.2-54.4-41.6-54.4 41.6 20.8-67.2L28.8 96zM600 0L0 360v120h40l600-360V0h-40" fill="#f7d618"/> <path d="M640 0L0 384v96L64...
odota/web/public/assets/images/flags/cd.svg/0
{ "file_path": "odota/web/public/assets/images/flags/cd.svg", "repo_id": "odota", "token_count": 189 }
240
<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-74 0h682.67v512H-74z"/> </clipPath> </defs> <g fill-rule="evenodd" clip-path="url(#a)" transform="translate(69.38) scale(.94)" stroke-width="1pt"> <path ...
odota/web/public/assets/images/flags/cz.svg/0
{ "file_path": "odota/web/public/assets/images/flags/cz.svg", "repo_id": "odota", "token_count": 240 }
241
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480"> <path fill="#006b3f" d="M0 0h640v480H0z"/> <path fill="#fcd116" d="M0 0h640v320H0z"/> <path fill="#ce1126" d="M0 0h640v160H0z"/> <path d="M320 160l51.987 160-136.104-98.885h168.234L268.013 320z"/> </svg>
odota/web/public/assets/images/flags/gh.svg/0
{ "file_path": "odota/web/public/assets/images/flags/gh.svg", "repo_id": "odota", "token_count": 145 }
242
<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-88.001 32h640v480h-640z"/> </clipPath> </defs> <g fill-rule="evenodd" clip-path="url(#a)" transform="translate(88.001 -32)" stroke-width="1pt"> <path fil...
odota/web/public/assets/images/flags/jp.svg/0
{ "file_path": "odota/web/public/assets/images/flags/jp.svg", "repo_id": "odota", "token_count": 232 }
243
<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"> <defs> <path id="a" transform="scale(8.844)" fill="#fff" d="M0-.5l.162.5h-.324z"/> <g id="b"> <use xlink:href="#a" transform="rotate(-144)" width="18" height="12"/> <u...
odota/web/public/assets/images/flags/mm.svg/0
{ "file_path": "odota/web/public/assets/images/flags/mm.svg", "repo_id": "odota", "token_count": 387 }
244
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480"> <path fill="#0db02b" d="M0 0h640v480H0z"/> <path fill="#fff" d="M0 0h640v320H0z"/> <path fill="#e05206" d="M0 0h640v160H0z"/> <circle cx="320" cy="240" r="68" fill="#e05206"/> </svg>
odota/web/public/assets/images/flags/ne.svg/0
{ "file_path": "odota/web/public/assets/images/flags/ne.svg", "repo_id": "odota", "token_count": 132 }
245
<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-52.334 0h682.67v512h-682.67z"/> </clipPath> </defs> <g fill-rule="evenodd" clip-path="url(#a)" transform="translate(49.063) scale(.9375)" stroke-width="1pt">...
odota/web/public/assets/images/flags/pk.svg/0
{ "file_path": "odota/web/public/assets/images/flags/pk.svg", "repo_id": "odota", "token_count": 479 }
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="M0 0h682.67v512H0z"/> </clipPath> </defs> <g fill-rule="evenodd" clip-path="url(#a)" transform="scale(.9375)" stroke-width="1pt"> <path d="M0 507.17L987.43...
odota/web/public/assets/images/flags/sb.svg/0
{ "file_path": "odota/web/public/assets/images/flags/sb.svg", "repo_id": "odota", "token_count": 617 }
247
<svg xmlns="http://www.w3.org/2000/svg" height="480" width="640" viewBox="0 0 640 480"> <g fill-rule="evenodd"> <path fill="#f31930" d="M0 0h640v480H0z"/> <path d="M406.977 247.473c0 66.215-54.606 119.89-121.97 119.89S163.04 313.686 163.04 247.472s54.606-119.89 121.968-119.89 121.97 53.677 121.97 119.89z" fil...
odota/web/public/assets/images/flags/tr.svg/0
{ "file_path": "odota/web/public/assets/images/flags/tr.svg", "repo_id": "odota", "token_count": 344 }
248
const transformHeroItemSuggestion = (data) => { const res = {}; Object.entries(data).forEach(([gameStage, itemsAsJSON]) => { res[gameStage] = {}; Object.entries(itemsAsJSON) .sort((a, b) => (a[1] > b[1]) ? -1 : 1) .forEach(([itemId, quantity]) => { res[gameStage][itemId] = quantity ...
odota/web/src/actions/transformHeroItemSuggestion.js/0
{ "file_path": "odota/web/src/actions/transformHeroItemSuggestion.js", "repo_id": "odota", "token_count": 160 }
249
import Warning from './Warning'; export default Warning;
odota/web/src/components/Alerts/index.js/0
{ "file_path": "odota/web/src/components/Alerts/index.js", "repo_id": "odota", "token_count": 14 }
250
const getQueryString = (teamA, teamB) => { const selectTeamA = [4, 3, 2, 1, 0] .map(i => ` pma${i}.hero_id `).join(); const joinTeamA = [0, 1, 2, 3, 4] .map(i => ` JOIN player_matches pmA${i} ON pmA${i}.match_id = matches.match_id ${teamA[i] ? `AND pmA${i}.hero_id = ${t...
odota/web/src/components/Combos/getQueryString.js/0
{ "file_path": "odota/web/src/components/Combos/getQueryString.js", "repo_id": "odota", "token_count": 2063 }
251
/* global ace */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import RaisedButton from 'material-ui/RaisedButton'; import ActionSearch from 'material-ui/svg-icons/action/search'; import Helmet from 'react-helmet'; import querystring from 'querystring'; import Pap...
odota/web/src/components/Explorer/index.jsx/0
{ "file_path": "odota/web/src/components/Explorer/index.jsx", "repo_id": "odota", "token_count": 5596 }
252
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Popover from 'material-ui/Popover'; // import styled from 'styled-components'; // import constants from '../constants'; // TODO doesn't work with styled...
odota/web/src/components/Header/Dropdown.jsx/0
{ "file_path": "odota/web/src/components/Header/Dropdown.jsx", "repo_id": "odota", "token_count": 910 }
253
import React from 'react'; import propTypes from 'prop-types'; import nanoid from 'nanoid'; import styled from 'styled-components'; import { XAxis, YAxis, Tooltip, Area, AreaChart, CartesianGrid, ResponsiveContainer, } from 'recharts'; import constants from '../constants'; const Wrapper = styled.div` b...
odota/web/src/components/Hero/BenchmarkGraph.jsx/0
{ "file_path": "odota/web/src/components/Hero/BenchmarkGraph.jsx", "repo_id": "odota", "token_count": 953 }
254
import React from 'react'; import { connect } from 'react-redux'; import Buttons from './Buttons'; import Why from './Why'; import Sponsors from './Sponsors'; import { HeadContainerDiv, HeadlineDiv, DescriptionDiv, BottomTextDiv } from './Styled'; export interface HomePageProps { user?: string; strings: { [key: st...
odota/web/src/components/Home/Home.tsx/0
{ "file_path": "odota/web/src/components/Home/Home.tsx", "repo_id": "odota", "token_count": 489 }
255
import React from 'react'; export default props => ( <svg {...props} viewBox="0 0 144 144"> <path d="M 0,18 c 0,-9 9,-18 18, -18 h 108 c 9,0 18,9 18,18 v 108 c 0,9 -9,18 -18,18 h -108 c -9,0 -18,-9 -18,-18 z M 36 18 c -9,0 -18,9 -18,18 c 0,9 9,18 18,18 c 9,0 18,-9 18,-18 c 0,-9 -9,-18 -18,-18 z M 1...
odota/web/src/components/Icons/Dice.jsx/0
{ "file_path": "odota/web/src/components/Icons/Dice.jsx", "repo_id": "odota", "token_count": 383 }
256
import React from 'react'; import heroes from 'dotaconstants/build/heroes.json'; import Next from 'material-ui/svg-icons/hardware/keyboard-arrow-right'; import Prev from 'material-ui/svg-icons/hardware/keyboard-arrow-left'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Heading from ...
odota/web/src/components/Match/Draft/Draft.jsx/0
{ "file_path": "odota/web/src/components/Match/Draft/Draft.jsx", "repo_id": "odota", "token_count": 5151 }
257
import React from 'react'; import PropTypes from 'prop-types'; import ReactTooltip from 'react-tooltip'; import styled from 'styled-components'; import NavigationArrowForward from 'material-ui/svg-icons/navigation/arrow-forward'; import { inflictorWithValue } from '../Visualizations'; import { sumValues, getHeroesById,...
odota/web/src/components/Match/TargetsBreakdown.jsx/0
{ "file_path": "odota/web/src/components/Match/TargetsBreakdown.jsx", "repo_id": "odota", "token_count": 1766 }
258
import React from 'react'; import PropTypes from 'prop-types'; import LinearProgress from 'material-ui/LinearProgress'; import styled from 'styled-components'; // import PiePercent from '../../PiePercent'; import { getPercentWin } from '../../utility'; import constants from '../constants'; // const getPercentWin = (win...
odota/web/src/components/PercentContainer/PercentContainer.jsx/0
{ "file_path": "odota/web/src/components/PercentContainer/PercentContainer.jsx", "repo_id": "odota", "token_count": 388 }
259
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getPlayerHeroes } from '../../../../actions'; import Table from '../../../Table'; import Container from '../../../Container'; import { playerHeroesColumns } from './playerHeroesColumns'; const Heroes = ({ d...
odota/web/src/components/Player/Pages/Heroes/Heroes.jsx/0
{ "file_path": "odota/web/src/components/Player/Pages/Heroes/Heroes.jsx", "repo_id": "odota", "token_count": 583 }
260
import { displayHeroId } from '../../../../utility'; function roundUp(x) { const y = 10 ** (x.toString().length - 1); let newX = x / y; newX = Math.ceil(newX); newX *= y; return newX; } export default strings => [{ displayName: strings.th_hero, tooltip: strings.hero_id, field: 'hero_id', displayFn: ...
odota/web/src/components/Player/Pages/Rankings/playerRankingsColumns.jsx/0
{ "file_path": "odota/web/src/components/Player/Pages/Rankings/playerRankingsColumns.jsx", "repo_id": "odota", "token_count": 340 }
261
import React from 'react'; import PropTypes from 'prop-types'; import LinearProgress from 'material-ui/LinearProgress'; const ProgressBar = ({ percent, height }) => ( <div> <div style={{ bottom: -height, marginTop: -height, position: 'relative', zIndex: '1', }} > {(percent * 100).toFixed(2)}%...
odota/web/src/components/ProgressBar/ProgressBar.jsx/0
{ "file_path": "odota/web/src/components/ProgressBar/ProgressBar.jsx", "repo_id": "odota", "token_count": 196 }
262
import { Tab, Tabs, Tooltip } from '@material-ui/core'; import PropTypes from 'prop-types'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import styled from 'styled-components'; import useReactRouter from 'use-react-router'; import constants from '../constants'; const StyledMain = styled.m...
odota/web/src/components/TabBar/TabBar.jsx/0
{ "file_path": "odota/web/src/components/TabBar/TabBar.jsx", "repo_id": "odota", "token_count": 1004 }
263
import styled from 'styled-components'; import { CardTitle } from 'material-ui/Card'; import Container from '../Container'; import constants from '../constants'; export const TeamStatsCard = styled(CardTitle)` display: inline-block; padding: 0 !important; margin-right: 25px; margin-top: 15px; .textSuccess {...
odota/web/src/components/Team/TeamStyled.jsx/0
{ "file_path": "odota/web/src/components/Team/TeamStyled.jsx", "repo_id": "odota", "token_count": 749 }
264
import React from 'react'; import PropTypes from 'prop-types'; import heroes from 'dotaconstants/build/heroes.json'; import { IMAGESIZE_ENUM } from '../../utility'; import config from '../../config'; const HeroImage = ({ id, isIcon, imageSizeSuffix = IMAGESIZE_ENUM.LARGE.suffix, heroImageEventProps, ...rest }) => { ...
odota/web/src/components/Visualizations/HeroImage.jsx/0
{ "file_path": "odota/web/src/components/Visualizations/HeroImage.jsx", "repo_id": "odota", "token_count": 250 }
265
{ "yes": "ya", "no": "tidak", "abbr_thousand": "k", "abbr_million": "m", "abbr_billion": "b", "abbr_trillion": "t", "abbr_quadrillion": "q", "abbr_not_available": "Tidak Didapati", "abbr_pick": "P", "abbr_win": "M", "abbr_number": "Bukan.", "analysis_eff": "Kecekapan Lane", "analysis_farm_drou...
odota/web/src/lang/ms-MY.json/0
{ "file_path": "odota/web/src/lang/ms-MY.json", "repo_id": "odota", "token_count": 20383 }
266
{ "yes": "yes", "no": "no", "abbr_thousand": "K", "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": "占线效率", "analysis_farm_drought": "5分钟间隔内最低GPM", "an...
odota/web/src/lang/zh-TW.json/0
{ "file_path": "odota/web/src/lang/zh-TW.json", "repo_id": "odota", "token_count": 22489 }
267
[ { "leagueid": 1135, "ticket": "econ/leagues/subscriptions_d2lwc", "banner": "econ/leagues/subscriptions_d2lwc_ingame", "tier": "premium", "name": "D2L Western Challenge - No Contribution" }, { "leagueid": 2065, "ticket": "econ/leagues/subscriptions_giant_rocket_league__season_2", "banner": "econ/le...
odota/web/testcafe/cachedAjax/leagues_.json/0
{ "file_path": "odota/web/testcafe/cachedAjax/leagues_.json", "repo_id": "odota", "token_count": 157587 }
268
[ { "account_id": 101695162, "match_id": 2118091140, "solo_competitive_rank": 6789, "competitive_rank": null, "time": "2016-02-04T16:28:56.561Z" }, { "account_id": 101695162, "match_id": 2119932680, "solo_competitive_rank": 6740, "competitive_rank": null, "time": "2016-02-05T06:07:52.788Z" }, {...
odota/web/testcafe/cachedAjax/players_101695162_ratings_.json/0
{ "file_path": "odota/web/testcafe/cachedAjax/players_101695162_ratings_.json", "repo_id": "odota", "token_count": 10466 }
269
[ { "match_id": "4098465996", "start_time": "1535988880", "hero_id": "91", "score": "203444" }, { "match_id": "4094742717", "start_time": "1535815609", "hero_id": "91", "score": "191737" }, { "match_id": "4098359744", "start_time": "1535985265", "hero_id": "91", "score": "177031" }, { "...
odota/web/testcafe/cachedAjax/records_hero_healing_.json/0
{ "file_path": "odota/web/testcafe/cachedAjax/records_hero_healing_.json", "repo_id": "odota", "token_count": 5602 }
270
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "go", "request": "launch", ...
openmultiplayer/web/.vscode/launch.json/0
{ "file_path": "openmultiplayer/web/.vscode/launch.json", "repo_id": "openmultiplayer", "token_count": 191 }
271
package pawndex_test import ( "context" "fmt" "os" "testing" "github.com/google/go-github/github" "github.com/joho/godotenv" // loads environment variables from .env "golang.org/x/oauth2" "github.com/openmultiplayer/web/app/resources/pawndex" ) func TestGitHubSearcher_Search(t *testing.T) { godotenv.Load("...
openmultiplayer/web/app/resources/pawndex/searcher_test.go/0
{ "file_path": "openmultiplayer/web/app/resources/pawndex/searcher_test.go", "repo_id": "openmultiplayer", "token_count": 315 }
272
package docsindex import ( "testing" ) // func TestIndex_Build(t *testing.T) { // os.RemoveAll("docsearch.bleve") // l, _ := zap.NewDevelopment() // idx, err := New(l, config.Config{ // DocsSourcesPath: "../../../docs/scripting", // DocsIndexPath: "docsearch.bleve", // }) // if err != nil { // panic(er...
openmultiplayer/web/app/services/docsindex/docsindex_test.go/0
{ "file_path": "openmultiplayer/web/app/services/docsindex/docsindex_test.go", "repo_id": "openmultiplayer", "token_count": 429 }
273
package legacy import ( "github.com/go-chi/chi" cache "github.com/victorspringer/http-cache" "go.uber.org/fx" "github.com/openmultiplayer/web/app/resources/server" "github.com/openmultiplayer/web/app/services/queryer" ) type service struct { storer server.Repository queryer queryer.Queryer } func Build() fx...
openmultiplayer/web/app/transports/api/legacy/api.go/0
{ "file_path": "openmultiplayer/web/app/transports/api/legacy/api.go", "repo_id": "openmultiplayer", "token_count": 342 }
274
package users import ( "github.com/go-chi/chi" "go.uber.org/fx" "github.com/openmultiplayer/web/app/resources/user" "github.com/openmultiplayer/web/app/services/authentication" ) type service struct { auth *authentication.State repo user.Repository } func Build() fx.Option { return fx.Options( fx.Provide(f...
openmultiplayer/web/app/transports/api/users/api.go/0
{ "file_path": "openmultiplayer/web/app/transports/api/users/api.go", "repo_id": "openmultiplayer", "token_count": 528 }
275
--- title: OnNPCConnect description: This callback is called when a NPC successfully connects to the server. tags: ["npc"] --- ## Description This callback is called when a NPC successfully connects to the server. | Name | Description | | ------------ | ----------------...
openmultiplayer/web/docs/scripting/callbacks/OnNPCConnect.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/callbacks/OnNPCConnect.md", "repo_id": "openmultiplayer", "token_count": 301 }
276
--- title: OnPlayerCommandText description: This callback is called when a player enters a command into the client chat window. tags: ["player"] --- ## Description This callback is called when a player enters a command into the client chat window. Commands are anything that start with a forward slash, e.g. /help. | ...
openmultiplayer/web/docs/scripting/callbacks/OnPlayerCommandText.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerCommandText.md", "repo_id": "openmultiplayer", "token_count": 599 }
277
--- title: OnPlayerInteriorChange description: This callback is called when a player changes interior. tags: ["player"] --- ## Description This callback is called when a player changes interior. Can be triggered by SetPlayerInterior or when a player enter/exits a building. | Name | Description ...
openmultiplayer/web/docs/scripting/callbacks/OnPlayerInteriorChange.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerInteriorChange.md", "repo_id": "openmultiplayer", "token_count": 459 }
278
--- title: OnPlayerSpawn description: This callback is called when a player spawns. tags: ["player"] --- ## Description This callback is called when a player spawns. (i.e. after caling [SpawnPlayer](../functions/SpawnPlayer) function) | Name | Description | | -------- | -------------------...
openmultiplayer/web/docs/scripting/callbacks/OnPlayerSpawn.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/callbacks/OnPlayerSpawn.md", "repo_id": "openmultiplayer", "token_count": 603 }
279
--- title: OnVehicleMod description: This callback is called when a vehicle is modded. tags: ["vehicle"] --- ## Description This callback is called when a vehicle is modded. | Name | Description | | ----------- | -----------------------------------------------------...
openmultiplayer/web/docs/scripting/callbacks/OnVehicleMod.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/callbacks/OnVehicleMod.md", "repo_id": "openmultiplayer", "token_count": 618 }
280
--- title: AddStaticVehicleEx description: Adds a 'static' vehicle (models are pre-loaded for players) to the gamemode. tags: ["vehicle"] --- ## Description Adds a 'static' vehicle (models are pre-loaded for players) to the gamemode. Differs from AddStaticVehicle in only one way: allows a respawn time to be set for ...
openmultiplayer/web/docs/scripting/functions/AddStaticVehicleEx.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/AddStaticVehicleEx.md", "repo_id": "openmultiplayer", "token_count": 1613 }
281
--- title: AttachObjectToObject description: You can use this function to attach objects to other objects. tags: ["object"] --- ## Description You can use this function to attach objects to other objects. The objects will follow the main object. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/AttachObjectToObject.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/AttachObjectToObject.md", "repo_id": "openmultiplayer", "token_count": 1105 }
282
--- title: CancelSelectTextDraw description: Cancel textdraw selection with the mouse. tags: ["textdraw"] --- ## Description Cancel textdraw selection with the mouse | Name | Description | | -------- | -------------------------------------------------------...
openmultiplayer/web/docs/scripting/functions/CancelSelectTextDraw.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/CancelSelectTextDraw.md", "repo_id": "openmultiplayer", "token_count": 440 }
283
--- title: CreateObject description: Creates an object at specified coordinates in the game world. tags: ["object"] --- ## Description Creates an object at specified coordinates in the game world. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/CreateObject.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/CreateObject.md", "repo_id": "openmultiplayer", "token_count": 1657 }
284
--- title: EnablePlayerCameraTarget description: Toggle camera targeting functions for a player. tags: ["player"] --- <VersionWarn version='SA-MP 0.3.7' /> ## Description Toggle camera targeting functions for a player. Disabled by default to save bandwidth. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/EnablePlayerCameraTarget.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/EnablePlayerCameraTarget.md", "repo_id": "openmultiplayer", "token_count": 394 }
285
--- title: GangZoneFlashForPlayer description: Makes a gangzone flash for a player. tags: ["player", "gangzone"] --- ## Description Makes a gangzone flash for a player. | Name | Description | | ----------- | -------...
openmultiplayer/web/docs/scripting/functions/GangZoneFlashForPlayer.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GangZoneFlashForPlayer.md", "repo_id": "openmultiplayer", "token_count": 733 }
286
--- title: Get3DTextLabelText description: Gets the 3D text label text. tags: ["3dtextlabel"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Gets the 3D text label text. | Name | Description | | ------------- | ----------------------------------...
openmultiplayer/web/docs/scripting/functions/Get3DTextLabelText.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/Get3DTextLabelText.md", "repo_id": "openmultiplayer", "token_count": 455 }
287
--- title: GetConsoleVarAsString description: Get the string value of a console variable. tags: [] --- ## Description Get the string value of a console variable. | Name | Description | | --------------------- | ----------------------------------------...
openmultiplayer/web/docs/scripting/functions/GetConsoleVarAsString.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetConsoleVarAsString.md", "repo_id": "openmultiplayer", "token_count": 525 }
288
--- title: GetObjectAttachedData description: Get the attachment data of an object. tags: ["object"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Get the attachment data of an object. | Name | Description | |----------------|-----...
openmultiplayer/web/docs/scripting/functions/GetObjectAttachedData.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetObjectAttachedData.md", "repo_id": "openmultiplayer", "token_count": 414 }
289
--- title: GetPVarString description: Gets a player variable as a string. tags: ["player variable", "pvar"] --- ## Description Gets a player variable as a string. | Name | Description | | --------------------- | ----------------------------...
openmultiplayer/web/docs/scripting/functions/GetPVarString.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPVarString.md", "repo_id": "openmultiplayer", "token_count": 696 }
290
--- title: GetPlayer3DTextLabelVirtualWorld description: Gets the player's 3D text label virtual world id. tags: ["player", "3dtextlabel"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Gets the player's 3D text label virtual world id. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/GetPlayer3DTextLabelVirtualWorld.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayer3DTextLabelVirtualWorld.md", "repo_id": "openmultiplayer", "token_count": 481 }
291
--- title: GetPlayerCameraTargetVehicle description: Get the ID of the vehicle the player is looking at. tags: ["player", "vehicle", "camera"] --- <VersionWarn version='SA-MP 0.3.7' /> ## Description Get the ID of the vehicle the player is looking at. | Name | Description | | -------- | -----...
openmultiplayer/web/docs/scripting/functions/GetPlayerCameraTargetVehicle.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerCameraTargetVehicle.md", "repo_id": "openmultiplayer", "token_count": 686 }
292
--- title: GetPlayerHealth description: The function GetPlayerHealth allows you to retrieve the health of a player. tags: ["player"] --- ## Description The function GetPlayerHealth allows you to retrieve the health of a player. Useful for cheat detection, among other things. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/GetPlayerHealth.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerHealth.md", "repo_id": "openmultiplayer", "token_count": 577 }
293
--- title: GetPlayerObjectDrawDistance description: Get the draw distance of a player-object. tags: ["player", "object", "playerobject"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Get the draw distance of a player-object. | Name | Description | |----...
openmultiplayer/web/docs/scripting/functions/GetPlayerObjectDrawDistance.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerObjectDrawDistance.md", "repo_id": "openmultiplayer", "token_count": 333 }
294
--- title: GetPlayerPos description: Get the position of a player, represented by X, Y and Z coordinates. tags: ["player"] --- ## Description Get the position of a player, represented by X, Y and Z coordinates. | Name | Description | | -------- | -...
openmultiplayer/web/docs/scripting/functions/GetPlayerPos.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerPos.md", "repo_id": "openmultiplayer", "token_count": 589 }
295
--- title: GetPlayerTargetActor description: Gets id of an actor which is aimed by certain player. tags: ["player"] --- <VersionWarn version='SA-MP 0.3.7' /> ## Description Gets id of an actor which is aimed by certain player. | Name | Description | | -------- | ------------------...
openmultiplayer/web/docs/scripting/functions/GetPlayerTargetActor.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerTargetActor.md", "repo_id": "openmultiplayer", "token_count": 431 }
296
--- title: GetPlayerZAim description: Gets a player's Z Aim. tags: ["player"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Gets a player's Z Aim. (related to the camera and aiming) | Name | Description | |----------|-----------------------| | playerid | The ID of the player. | ## Retu...
openmultiplayer/web/docs/scripting/functions/GetPlayerZAim.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetPlayerZAim.md", "repo_id": "openmultiplayer", "token_count": 203 }
297
--- title: GetTickCount description: Returns a value which increases every millisecond. tags: ["time"] --- ## Description Returns a value which increases every millisecond. The absolute value returned is undefined and varies between systems, it should only be used to compare two points in time. ## Examples Only all...
openmultiplayer/web/docs/scripting/functions/GetTickCount.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetTickCount.md", "repo_id": "openmultiplayer", "token_count": 656 }
298
--- title: GetVehicleModel description: Gets the model ID of a vehicle. tags: ["vehicle"] --- ## Description Gets the model ID of a vehicle. | Name | Description | | --------- | ------------------------------------------ | | vehicleid | The ID of the vehicle to get the model of. |...
openmultiplayer/web/docs/scripting/functions/GetVehicleModel.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleModel.md", "repo_id": "openmultiplayer", "token_count": 369 }
299
--- title: GetVehicleSeats description: Gets the number of seats in the vehicle. tags: ["vehicle"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Gets the number of seats in the vehicle. | Name | Description | | --------- | ------------------ | | vehicleid | ID of the vehicle. | ## Return...
openmultiplayer/web/docs/scripting/functions/GetVehicleSeats.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/GetVehicleSeats.md", "repo_id": "openmultiplayer", "token_count": 239 }
300
--- title: HTTP description: Sends a threaded HTTP request. tags: ["http"] --- ## Description Sends a threaded HTTP request. | Name | Description | |--------------------|-----------------------------------------------------...
openmultiplayer/web/docs/scripting/functions/HTTP.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/HTTP.md", "repo_id": "openmultiplayer", "token_count": 1269 }
301
--- title: IsActorStreamedIn description: Checks if an actor is streamed in for a player. tags: ["actor"] --- <VersionWarn version='SA-MP 0.3.7' /> ## Description Checks if an actor is streamed in for a player. | Name | Description | | -------- | --------------------- | | actorid | The ID of the acto...
openmultiplayer/web/docs/scripting/functions/IsActorStreamedIn.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/IsActorStreamedIn.md", "repo_id": "openmultiplayer", "token_count": 320 }
302
--- title: IsPlayerCheckpointActive description: Check if the player currently has a checkpoint visible. tags: ["player", "checkpoint"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Check if the player currently has a checkpoint visible. | Name | Description | | -------- | ----...
openmultiplayer/web/docs/scripting/functions/IsPlayerCheckpointActive.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerCheckpointActive.md", "repo_id": "openmultiplayer", "token_count": 285 }
303
--- title: IsPlayerObjectMaterialSlotUsed description: Checks if a slot of player-object material is used. tags: ["player", "object", "playerobject"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Checks if a slot of player-object material is used. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/IsPlayerObjectMaterialSlotUsed.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/IsPlayerObjectMaterialSlotUsed.md", "repo_id": "openmultiplayer", "token_count": 682 }
304
--- title: IsValidCustomModel description: Checks if a custom model ID is valid. tags: ["custom model", "custom skin", "simple model"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Checks if a custom model ID is valid. | Name | Description | | ------- | --------------------------...
openmultiplayer/web/docs/scripting/functions/IsValidCustomModel.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/IsValidCustomModel.md", "repo_id": "openmultiplayer", "token_count": 220 }
305
--- title: IsVehicleHidden description: Checks if a vehicle is hidden. tags: ["vehicle"] --- <VersionWarn version='omp v1.1.0.2612' /> :::warning This function has not yet been implemented. ::: ## Description Checks if a vehicle is hidden. ## Parameters | Name | Description | |---------...
openmultiplayer/web/docs/scripting/functions/IsVehicleHidden.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/IsVehicleHidden.md", "repo_id": "openmultiplayer", "token_count": 255 }
306
--- title: NetStats_GetIpPort description: Get a player's IP and port. tags: ["network monitoring", "ip address"] --- ## Description Get a player's IP and port. | Name | Description | | ---------------------- | -----------------------------------...
openmultiplayer/web/docs/scripting/functions/NetStats_GetIpPort.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/NetStats_GetIpPort.md", "repo_id": "openmultiplayer", "token_count": 773 }
307
--- title: PlayerHasClockEnabled description: Checks whether the player has their in-game clock enabled. tags: ["player"] --- ## Description Checks whether the player has their in-game clock enabled. ([TogglePlayerClock](TogglePlayerClock)) | Name | Description | | -------- | ------...
openmultiplayer/web/docs/scripting/functions/PlayerHasClockEnabled.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/PlayerHasClockEnabled.md", "repo_id": "openmultiplayer", "token_count": 363 }
308
--- title: PlayerTextDrawGetBoxColor description: Gets the box color of a player-textdraw tags: ["player", "textdraw", "playertextdraw"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Gets the box color of a player-textdraw | Name | Description | ...
openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetBoxColor.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawGetBoxColor.md", "repo_id": "openmultiplayer", "token_count": 820 }
309
--- title: PlayerTextDrawIsBox description: Checks if a player-textdraw is box. tags: ["player", "textdraw", "playertextdraw"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Checks if a player-textdraw is box. ## Parameters | Name | Description | | ----------- | ---...
openmultiplayer/web/docs/scripting/functions/PlayerTextDrawIsBox.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/PlayerTextDrawIsBox.md", "repo_id": "openmultiplayer", "token_count": 922 }
310
--- title: SelectTextDraw description: Display the cursor and allow the player to select a textdraw. tags: ["textdraw"] --- ## Description Display the cursor and allow the player to select a textdraw | Name | Description | | ----------- | --------------------...
openmultiplayer/web/docs/scripting/functions/SelectTextDraw.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/SelectTextDraw.md", "repo_id": "openmultiplayer", "token_count": 514 }
311
--- title: SetActorFacingAngle description: Set the facing angle of an actor. tags: ["actor"] --- <VersionWarn version='SA-MP 0.3.7' /> ## Description Set the facing angle of an actor. | Name | Description | | ----------- | ------------------------...
openmultiplayer/web/docs/scripting/functions/SetActorFacingAngle.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/SetActorFacingAngle.md", "repo_id": "openmultiplayer", "token_count": 472 }
312
--- title: SetObjectMaterialText description: Replace the texture of an object with text. tags: ["object"] --- ## Description Replace the texture of an object with text. | Name | Description | | ----...
openmultiplayer/web/docs/scripting/functions/SetObjectMaterialText.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/SetObjectMaterialText.md", "repo_id": "openmultiplayer", "token_count": 1724 }
313
--- title: SetPlayer3DTextLabelVirtualWorld description: Sets the player's 3D text label virtual world id. tags: ["player", "3dtextlabel"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Sets the player's 3D text label virtual world id. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/SetPlayer3DTextLabelVirtualWorld.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayer3DTextLabelVirtualWorld.md", "repo_id": "openmultiplayer", "token_count": 514 }
314
--- title: SetPlayerHoldingObject description: Attaches an object to a bone. tags: ["player"] --- ## Description Attaches an object to a bone. | Name | Description | | -------- | -------------------------------------------------------------------- | | play...
openmultiplayer/web/docs/scripting/functions/SetPlayerHoldingObject.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/SetPlayerHoldingObject.md", "repo_id": "openmultiplayer", "token_count": 666 }
315
--- title: SetVehicleParamsEx description: Sets a vehicle's parameters for all players. tags: ["vehicle"] --- ## Description Sets a vehicle's parameters for all players. | Name | Description | | -------------- | -------------------------------------------...
openmultiplayer/web/docs/scripting/functions/SetVehicleParamsEx.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/SetVehicleParamsEx.md", "repo_id": "openmultiplayer", "token_count": 1317 }
316
--- title: TextDrawBackgroundColour description: Adjusts the text draw area background colour (the outline/shadow - NOT the box. tags: ["textdraw"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Adjusts the text draw area background colour (the outline/shadow - NOT the box. For box colour, see [TextDra...
openmultiplayer/web/docs/scripting/functions/TextDrawBackgroundColour.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawBackgroundColour.md", "repo_id": "openmultiplayer", "token_count": 887 }
317
--- title: TextDrawSetOutline description: Sets the thickness of a textdraw's text's outline. tags: ["textdraw"] --- ## Description Sets the thickness of a textdraw's text's outline. TextDrawBackgroundColor can be used to change the color. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/TextDrawSetOutline.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/TextDrawSetOutline.md", "repo_id": "openmultiplayer", "token_count": 774 }
318
--- title: ToggleChatTextReplacement description: Toggles the chat input filter. tags: [] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Toggles the chat input filter. Disable it to use of chars like % in the chat. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/ToggleChatTextReplacement.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/ToggleChatTextReplacement.md", "repo_id": "openmultiplayer", "token_count": 332 }
319
--- title: VehicleColourIndexToColour description: Convert a car colour index to a HEX colour (RGBA). tags: ["vehicle"] --- <VersionWarn version='omp v1.1.0.2612' /> ## Description Convert a car colour index to a HEX colour (RGBA). ## Parameters | Name | Description | |--...
openmultiplayer/web/docs/scripting/functions/VehicleColourIndexToColour.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/VehicleColourIndexToColour.md", "repo_id": "openmultiplayer", "token_count": 298 }
320
--- title: fattrib description: Set the file attributes. tags: ["file management"] --- <VersionWarn version='omp v1.1.0.2612' /> <LowercaseNote /> ## Description Set the file attributes. | Name | Description ...
openmultiplayer/web/docs/scripting/functions/fattrib.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/fattrib.md", "repo_id": "openmultiplayer", "token_count": 964 }
321
--- title: floatdiv description: Divide one float by another one. tags: ["math", "floating-point"] --- <LowercaseNote /> ## Description Divide one float by another one. Redundant as the division operator (/) does the same thing. | Name | Description | | -------------- | -----...
openmultiplayer/web/docs/scripting/functions/floatdiv.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/floatdiv.md", "repo_id": "openmultiplayer", "token_count": 390 }
322
--- title: fremove description: Delete a file. tags: ["file management"] --- <LowercaseNote /> ## Description Delete a file. | Name | Description | | ---------------- | ------------------------------- | | const filename[] | The path of the file to delete. | ## Returns **true** - Th...
openmultiplayer/web/docs/scripting/functions/fremove.md/0
{ "file_path": "openmultiplayer/web/docs/scripting/functions/fremove.md", "repo_id": "openmultiplayer", "token_count": 718 }
323