repo_name
stringlengths
4
68
text
stringlengths
21
269k
avg_line_length
float64
9.4
9.51k
max_line_length
int64
20
28.5k
alphnanum_fraction
float64
0.3
0.92
null
export const hashRE = /#.*$/ export const extRE = /\.(md|html)$/ export const endingSlashRE = /\/$/ export const outboundRE = /^[a-z]+:/i export function normalize (path) { return decodeURI(path) .replace(hashRE, '') .replace(extRE, '') } export function getHash (path) { const match = path.match(hashRE) ...
22.674797
99
0.611884
cybersecurity-penetration-testing
'use strict'; var s; if (process.env.NODE_ENV === 'production') { s = require('./cjs/react-dom-server.node.production.min.js'); } else { s = require('./cjs/react-dom-server.node.development.js'); } exports.version = s.version; exports.prerenderToNodeStream = s.prerenderToNodeStream;
23.25
63
0.703448
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const semver = require('semver'); let shouldPass; let isFocused; describe('transform-react-version-pragma', () =>...
23.565217
66
0.597521
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import isArray from 'shared/isArray'; /** * Accumulates items that must not be null or undefined. * * This is us...
24.921569
81
0.644966
PenetrationTestingScripts
module.exports = {};
10
20
0.619048
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export type ReactNode = | React$Element<any> | ReactPortal | ReactText | ReactFragment | ReactProvider<any...
24.394737
115
0.690091
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export * from './src/ReactFreshRuntime';
25
66
0.712446
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import is from './objectIs'; import hasOwnProperty from './hasOwnProperty'; /** * Performs equality by iterating t...
21.909091
79
0.641779
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment node */ /* eslint-disable no-func-assign */ 'use strict'; import {useInsertionEffec...
25.865116
99
0.555988
Hands-On-AWS-Penetration-Testing-with-Kali-Linux
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {GitHubIssue} from './githubAPI'; import * as React from 'react'; import Icon from '../Icon'; import st...
22.153846
66
0.633038
Mastering-Machine-Learning-for-Penetration-Testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import * as React from 'react'; import {useState} from 'react'; import Store from '../../store'; import EditableName...
23.330275
79
0.605055
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Fiber, FiberRoot} from './ReactInternalTypes'; import type { UpdateQueue as HookQueue, Update as Ho...
35.070423
81
0.715513
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ 'use strict'; export * from './src/ReactIs';
18.307692
66
0.676
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {normalizeCodeLocInfo} from './utils'; describe('component stack', () => { let React; let act; let leg...
27.634409
107
0.605184
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from '../ReactServerStreamConfigFB'; export function scheduleWork(callback: () => void) { // We don't sc...
26.533333
105
0.716019
null
'use strict'; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === 'function' ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); }
25.545455
74
0.687285
PenetrationTestingScripts
/* global chrome */ import {registerDevToolsEventLogger} from 'react-devtools-shared/src/registerDevToolsEventLogger'; function registerEventsLogger() { registerDevToolsEventLogger('extension', async () => { // TODO: after we upgrade to Firefox Manifest V3, chrome.tabs.query returns a Promise without the callba...
27.368421
111
0.667286
cybersecurity-penetration-testing
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-interactions-events/press-legacy.production.min.js'); } else { module.exports = require('./cjs/react-interactions-events/press-legacy.development.js'); }
31.125
93
0.71875
Penetration-Testing-Study-Notes
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export const TYPES = { CLIPPING_RECTANGLE: 'ClippingRectangle', GROUP: 'Group', SHAPE: 'Shape', TEXT: 'Text', }; export...
20.171429
66
0.652703
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import * as ReactDOM from 'react-dom'; const ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_...
22.8125
66
0.734211
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Wakeable} from 'shared/ReactTypes'; import type {TimelineData} from './types'; import {importFile as i...
24.528846
81
0.645064
PenTestScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { Thenable, PendingThenable, FulfilledThenable, RejectedThenable, ReactCustomFormAction, } fro...
30.806763
99
0.623361
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // This is a host config that's used for the `react-reconciler` package on npm. // It is only used by third-party re...
50.337719
84
0.795967
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment ./scripts/jest/ReactDOMServerIntegrationEnvironment */ 'use strict'; let JSDOM; let ...
24.825959
94
0.573566
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; // Based on similar script in Jest // https://github.com/facebook/jest/blob/a7acc5ae519613647ff2c253dd21933d6f94b4...
26.283333
101
0.582951
null
'use strict'; const {TestEnvironment: JSDOMEnvironment} = require('jest-environment-jsdom'); const {TestEnvironment: NodeEnvironment} = require('jest-environment-node'); /** * Test environment for testing integration of react-dom (browser) with react-dom/server (node) */ class ReactDOMServerIntegrationEnvironment e...
29.914286
95
0.745606
null
#!/usr/bin/env node 'use strict'; const {readJson} = require('fs-extra'); const {join} = require('path'); const theme = require('../theme'); const run = async ({cwd, packages, tags}) => { // Prevent a "next" release from ever being published as @latest // All canaries share a version number, so it's okay to chec...
29.46875
107
0.607491
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; let React; let ReactDOM; let ReactDOMSelection; let getModernOffsetsFromPoints; descri...
24.490099
83
0.523116
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export type Point = $ReadOnly<{x: number, y: number}>; export type Size = $ReadOnly<{width: number, height: number}>...
27.02027
96
0.656536
Mastering-Machine-Learning-for-Penetration-Testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import * as React from 'react'; import { Fragment, useCallback, useContext, useLayoutEffect, useReducer, ...
27.045902
118
0.628084
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import isArray from 'shared/isArray'; /** * Accumulates items that must not be null or undefined into the first on...
27.609375
81
0.660656
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; const chalk = require('chalk'); const fs = require('fs'); const path = require('path'); const mkdirp = require('m...
28.436709
79
0.642581
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from './src/ReactNoopFlightServer';
21.727273
66
0.698795
null
/** * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {REACT_POSTPONE_TYPE} from 'shared/ReactSymbols'; declare class Postpone extends Error { $$typeof: sym...
24.291667
66
0.729373
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // This is a DevTools fork of ReactComponentStackFrame. // This fork enables DevTools to use the same "native" compo...
31.602076
98
0.626473
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export { __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, act as unstable_act, Children, Component, Fra...
15.941176
66
0.71263
Python-Penetration-Testing-Cookbook
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const {useMemo, useState} = require('react'); function Component(props) { const InnerComponent = useMemo(() => () ...
19.391304
66
0.660256
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // Renderers that don't support mutation // can re-export everything from this module. function shim(...args: any):...
28.868421
66
0.748677
Python-Penetration-Testing-for-Developers
'use strict'; module.exports = require('./client.browser');
14.5
45
0.688525
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {Children} from 'react'; let didWarnSelectedSetOnOption = false; let didWarnInvalidChild = false; let didWar...
29.901639
85
0.586518
Penetration-Testing-Study-Notes
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * @typechecks * * Example usage: * <Wedge * outerRadius={50} * startAngle={0} * endAngle={360} * fill="blue" * /> *...
25.153439
80
0.619183
Ethical-Hacking-Scripts
import * as React from 'react'; import {useState} from 'react'; export default function Toggle() { const [show, setShow] = useState(false); return ( <> <h2>Toggle</h2> <div> <> <button onClick={() => setShow(s => !s)}>Show child</button> {show && ' '} {show && ...
18.652174
70
0.507761
Python-Penetration-Testing-Cookbook
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const {useState} = require('react'); const {useCustom} = require('./useCustom'); function Component(props) { cons...
20.526316
66
0.681373
PenetrationTestingScripts
module.exports = require('./dist/hookNames');
22.5
45
0.717391
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment node */ /* eslint-disable no-func-assign */ 'use strict'; let PropTypes; let React;...
32.312583
153
0.546481
cybersecurity-penetration-testing
/** @flow */ // This test harness mounts each test app as a separate root to test multi-root applications. import * as React from 'react'; import * as ReactDOM from 'react-dom'; import {createRoot} from 'react-dom/client'; import ListApp from '../e2e-apps/ListApp'; function mountApp(App: () => React$Node) { const ...
25.875
93
0.701979
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useTheme; exports.ThemeContext = void 0; var _react = require("react"); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in t...
23.851852
70
0.701493
owtf
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; import {defaultBrowserChromeSize} from '../constants'; import { createEventTarget, ...
26.335165
74
0.557543
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactContext, ReactProviderType, StartTransitionOptions, } from 'shared/ReactTypes'; import type...
28.567787
99
0.664054
null
'use strict'; /* eslint-disable no-for-of-loops/no-for-of-loops */ const crypto = require('node:crypto'); const fs = require('fs'); const fse = require('fs-extra'); const {spawnSync} = require('child_process'); const path = require('path'); const tmp = require('tmp'); const shell = require('shelljs'); const { React...
32.321429
84
0.660439
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import { describeBuiltInComponentFrame, describeFunctionComponentFrame, describeClassComponentFrame, } from 's...
24.619048
72
0.677619
Hands-On-Penetration-Testing-with-Python
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {__DEBUG__} from 'react-devtools-shared/src/constants'; import type {HooksTree} from 'react-debug-tools/src/...
26.3125
122
0.619748
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; let React; let ReactDOM; let ReactDOMServer; let ReactFeatureFlags; describe('ReactLega...
27.715481
93
0.607549
Hands-On-Penetration-Testing-with-Python
"use strict"; /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ const { useMemo, useState } = require('react'); function Component(props) { const InnerComponent = u...
74.464286
1,628
0.913352
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; const rule = require('../warning-args'); const {RuleTester} = require('eslint'); const r...
23.774194
85
0.499349
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('../cjs/use-sync-external-store-shim.production.min.js'); } else { module.exports = require('../cjs/use-sync-external-store-shim.development.js'); }
28.875
84
0.689076
null
#!/usr/bin/env node 'use strict'; const clear = require('clear'); const {confirm} = require('../utils'); const theme = require('../theme'); const run = async () => { clear(); console.log( theme.caution( 'This script does not run any automated tests.' + 'You should run them manually before crea...
16.56
72
0.611872
owtf
import TestCase from '../../TestCase'; import Iframe from '../../Iframe'; const React = window.React; export default class ReorderedInputsTestCase extends React.Component { state = {count: 0}; componentDidMount() { this.interval = setInterval(() => { this.setState({count: this.state.count + 1}); }, ...
24.866667
75
0.601892
Python-Penetration-Testing-for-Developers
let React; let ReactNoop; let Scheduler; let act; let LegacyHidden; let Activity; let useState; let useLayoutEffect; let useEffect; let useMemo; let useRef; let startTransition; let waitForPaint; let waitFor; let assertLog; describe('Activity', () => { beforeEach(() => { jest.resetModules(); React = require...
25.128578
119
0.533482
owtf
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ let React; let DOMAct; let TestRenderer; let TestAct; global.__DEV__ = process.env.NODE_ENV !== 'produ...
23.683168
96
0.567416
PenetrationTestingScripts
import {printStore} from 'react-devtools-shared/src/devtools/utils'; // test() is part of Jest's serializer API export function test(maybeState) { if (maybeState === null || typeof maybeState !== 'object') { return false; } const hasOwnProperty = Object.prototype.hasOwnProperty.bind(maybeState); // Duck t...
31.730769
101
0.716471
Mastering-Kali-Linux-for-Advanced-Penetration-Testing-4E
// @flow let size: number = -1; // This utility copied from "dom-helpers" package. export function getScrollbarSize(recalculate?: boolean = false): number { if (size === -1 || recalculate) { const div = document.createElement('div'); const style = div.style; style.width = '50px'; style.height = '50p...
30
102
0.69275
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ const assign = Object.assign; export default assign;
18.923077
66
0.705426
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export type Source = { fileName: string, lineNumber: number, }; export type ReactElement = { $$typeof: any, ...
16.6
66
0.633776
Penetration-Testing-with-Shellcode
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Thenable} from 'shared/ReactTypes.js'; import type {Response as FlightResponse} from 'react-client/src...
21.839286
83
0.700039
owtf
import React from 'react'; import {useState, Suspense} from 'react'; import {BrowserRouter, Switch, Route} from 'react-router-dom'; import HomePage from './HomePage'; import AboutPage from './AboutPage'; import ThemeContext from './shared/ThemeContext'; export default function App() { const [theme, setTheme] = useS...
23.811321
77
0.512938
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from './src/ReactFlightServer';
21.363636
66
0.693878
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment ./scripts/jest/ReactDOMServerIntegrationEnvironment */ 'use strict'; const ReactDOMS...
36.477212
93
0.584147
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from './ReactDOMFizzServerBun.js';
21.636364
66
0.697581
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; let React; let ReactNoop; let Scheduler; let act; let startTransition; let useDeferredValue; let useMemo; let use...
29.023783
108
0.580837
Python-Penetration-Testing-Cookbook
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ListItem = ListItem; exports.List = List; var React = _interopRequireWildcard(require("react")); var _jsxFileName = ""; function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap...
84.24375
8,672
0.853131
owtf
'use client'; import * as React from 'react'; import {useFormStatus} from 'react-dom'; import ErrorBoundary from './ErrorBoundary.js'; function ButtonDisabledWhilePending({action, children}) { const {pending} = useFormStatus(); return ( <button disabled={pending} formAction={action}> {children} </bu...
20.703704
57
0.654701
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {InspectorData, TouchedViewDataAtPoint} from './ReactNativeTypes'; // Modules provided by RN: import { ...
25.799629
84
0.714345
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment node */ 'use strict'; let React; let ReactFabric; let ReactNativePrivateInterface; l...
28.798134
125
0.619994
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import { pointEqualToPoint, sizeEqualToSize, rectEqualToRect, sizeIsValid, sizeIsEmpty, rectIntersectsRe...
28.67033
82
0.536116
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; const rule = require('../no-to-warn-dev-within-to-throw'); const {RuleTester} = require(...
24.8125
93
0.620606
null
'use strict'; module.exports = require('react-shallow-renderer');
16
51
0.731343
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; var _react = _interopRequireDefault(require("react")); var _useTheme = _interopRequireDefault(require("./useTheme")); var _jsxFileName = ""; function _interopRequireDefault(obj) { return obj && obj.__esMod...
25.423077
95
0.670554
null
/** * @license React * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable max-len */ 'use strict'; (function (global, factory) { // eslint-disable-next-line ft...
30.612245
124
0.701679
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from './index.classic.fb.js'; export { createComponentSelector, createHasPseudoClassSelector, createR...
22.73913
66
0.761468
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from '../src/ReactFlightTurbopackNodeLoader.js';
22.909091
66
0.706107
owtf
/** @license React v17.0.0-rc.3 * react-jsx-dev-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; if (process.env.NODE_ENV !== "production")...
30.362957
450
0.639301
Hands-On-Penetration-Testing-with-Python
"use strict"; /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ const { useMemo, useState } = require('react'); function Component(props) { const InnerComponent = u...
77.607143
1,716
0.916818
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from '../ReactServerStreamConfigNode';
22
66
0.702381
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Request} from 'react-server/src/ReactFlightServer'; export * from '../ReactFlightServerConfigBundlerCu...
24.064516
70
0.740979
owtf
/** * Copyright (c) Facebook, Inc. and its affiliates. */ // Do not delete or move this file. // Many fiddles reference it so we have to keep it here. (function() { var tag = document.querySelector( 'script[type="application/javascript;version=1.7"]' ); if (!tag || tag.textContent.indexOf('window.onload=fu...
31.117647
81
0.655046
Hands-On-Bug-Hunting-for-Penetration-Testers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server-dom-webpack-server.browser.production.min.js'); } else { module.exports = require('./cjs/react-server-dom-webpack-server.browser.development.js'); }
31.375
94
0.713178
owtf
import React from 'react'; import {StrictMode} from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import App from './App'; import {store} from '../store'; ReactDOM.render( <StrictMode> <Provider store={store}> <App /> </Provider> </StrictMode>, document.getElement...
20.0625
37
0.666667
Penetration-Testing-with-Shellcode
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { Request, ReactClientValue, } from 'react-server/src/ReactFlightServer'; import type {Destination} ...
26.77907
86
0.674691
null
'use strict'; const {readdirSync, statSync} = require('fs'); const {join} = require('path'); const baseConfig = require('./config.base'); process.env.IS_BUILD = true; const NODE_MODULES_DIR = process.env.RELEASE_CHANNEL === 'stable' ? 'oss-stable' : 'oss-experimental'; // Find all folders in packages/* with packa...
31
85
0.684569
owtf
import * as React from 'react'; import Button from './Button.js'; import Form from './Form.js'; import {like, greet} from './actions.js'; import {getServerState} from './ServerState.js'; const h = React.createElement; export default async function App() { const res = await fetch('http://localhost:3001/todos'); ...
17.093333
57
0.390118
PenetrationTestingScripts
'use strict'; const {resolve} = require('path'); const Webpack = require('webpack'); const DevToolsIgnorePlugin = require('devtools-ignore-webpack-plugin'); const {resolveFeatureFlags} = require('react-devtools-shared/buildUtils'); const { DARK_MODE_DIMMED_WARNING_COLOR, DARK_MODE_DIMMED_ERROR_COLOR, DARK_MODE_...
28.119658
92
0.614504
cybersecurity-penetration-testing
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-interactions-events/tap.production.min.js'); } else { module.exports = require('./cjs/react-interactions-events/tap.development.js'); }
28.875
84
0.705882
Tricks-Web-Penetration-Tester
// @flow import type {ComponentType} from "react"; import createGridComponent from './createGridComponent'; import type { Props, ScrollToAlign } from './createGridComponent'; const DEFAULT_ESTIMATED_ITEM_SIZE = 50; type VariableSizeProps = {| estimatedColumnWidth: number, estimatedRowHeight: number, ...Props...
25.990196
108
0.665286
owtf
/* * Copyright (c) Facebook, Inc. and its affiliates. */ import {Page} from 'components/Layout/Page'; import {MDXComponents} from 'components/MDX/MDXComponents'; import sidebarLearn from '../sidebarLearn.json'; const {Intro, MaxWidth, p: P, a: A} = MDXComponents; export default function NotFound() { return ( ...
23.0625
70
0.552666
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { PreconnectOptions, PreloadOptions, PreloadModuleOptions, PreinitOptions, PreinitModuleOptions...
38.696884
477
0.642521
null
'use strict'; const baseConfig = require('./config.base'); module.exports = Object.assign({}, baseConfig, { modulePathIgnorePatterns: [ ...baseConfig.modulePathIgnorePatterns, 'packages/react-devtools-extensions', 'packages/react-devtools-shared', ], setupFiles: [ ...baseConfig.setupFiles, r...
22.1875
48
0.686486
owtf
const React = window.React; const CIRCLE_SIZE = 80; class DragBox extends React.Component { state = { hasCapture: false, circleLeft: 80, circleTop: 80, }; isDragging = false; previousLeft = 0; previousTop = 0; onDown = event => { this.isDragging = true; event.target.setPointerCapture(...
22.131868
75
0.602662
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactServerContext, ServerContextJSONValue, } from 'shared/ReactTypes'; import {REACT_SERVER_CONT...
30.118519
99
0.681943
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; const stream = require('stream'); const shouldIgnoreConsoleError = require('../../../../...
32.771795
97
0.659301