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
/** * 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} from 'shared/ReactTypes'; import {REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED} from 's...
30.076412
99
0.6677
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 */ 'use strict'; let React; let ReactNoop; let act; describe('ReactIncremental...
22.878981
71
0.554696
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 ReactDOMFizzStatic; let Suspense; describe('Re...
24.695545
283
0.573603
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 fs = require('fs'); const path = require('path'); const existingErrorMap = JSON.pa...
29.601942
82
0.545858
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 */ /** * Converts nested hooks paths to the format expected by the backend. * e.g. [''] => [''] * e.g. [1, 'value', ...
23.689655
69
0.54965
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 {DOMEventName} from './DOMEventNames'; import type {EventSystemFlags} from './EventSystemFlags'; import ...
30.081918
88
0.668102
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. */ import getComponentNameFromType from 'shared/getComponentNameFromType'; import ReactSharedInternals from 'shared/ReactSharedInte...
27.707521
95
0.630665
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 */ 'use strict'; export {useSyncExternalStore} from 'use-sync-external-store/src/useSyncExternalStoreShim';
22.923077
90
0.729032
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('../prod-error-codes'); const {RuleTester} = require('eslint'); con...
27.192308
89
0.535032
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 ReactDOMClient; let Scheduler; let act; let waitForAll; le...
28.428747
116
0.584328
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/use-subscription.production.min.js'); } else { module.exports = require('./cjs/use-subscription.development.js'); }
25.625
71
0.688679
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/ReactFlightDOMClientNode';
22
66
0.702381
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 './ReactDOMFizzServerNode.js'; export {prerenderToNodeStream} from './ReactDOMFizzStaticNode.js';
25.416667
66
0.724684
Python-Penetration-Testing-Cookbook
"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...
60.703704
1,056
0.87988
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 */ /** * @param {array} arr an "accumulation" of items which is either an Array or * a single item. Useful when paire...
29.212121
78
0.676707
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 */ // Module provided by RN: import {UIManager} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';...
26.24
90
0.714706
PenetrationTestingScripts
#!/usr/bin/env node 'use strict'; const archiver = require('archiver'); const {execSync} = require('child_process'); const {readFileSync, writeFileSync, createWriteStream} = require('fs'); const {copy, ensureDir, move, remove, pathExistsSync} = require('fs-extra'); const {join, resolve} = require('path'); const {getG...
31.238636
105
0.679358
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 { importFromChromeTimeline, Flamechart as SpeedscopeFlamechart, } from '@elg/speedscope'; import type {Ti...
31.902813
120
0.660232
owtf
/* * Copyright (c) Facebook, Inc. and its affiliates. */ const defaultTheme = require('tailwindcss/defaultTheme'); const colors = require('./colors'); module.exports = { content: [ './src/components/**/*.{js,ts,jsx,tsx}', './src/pages/**/*.{js,ts,jsx,tsx}', './src/styles/**/*.{js,ts,jsx,tsx}', ], ...
31.52381
151
0.483983
PenetrationTestingScripts
import {printStore} from 'react-devtools-shared/src/devtools/utils'; // test() is part of Jest's serializer API export function test(maybeStore) { // It's important to lazy-require the Store rather than imported at the head of the module. // Because we reset modules between tests, different Store implementations w...
34.727273
104
0.749045
Python-Penetration-Testing-Cookbook
"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...
68.111111
1,256
0.892761
owtf
import React from 'react'; import {useContext} from 'react'; import {connect} from 'react-redux'; import ThemeContext from './shared/ThemeContext'; import lazyLegacyRoot from './lazyLegacyRoot'; // Lazy-load a component from the bundle using legacy React. const Greeting = lazyLegacyRoot(() => import('../legacy/Greeti...
24.852941
72
0.64123
PenetrationTestingScripts
const chromeManifest = require('../react-devtools-extensions/chrome/manifest.json'); const firefoxManifest = require('../react-devtools-extensions/firefox/manifest.json'); const minChromeVersion = parseInt(chromeManifest.minimum_chrome_version, 10); const minFirefoxVersion = parseInt( firefoxManifest.applications.ge...
28.192308
86
0.681608
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. * * @jest-environment node */ 'use strict'; describe('ReactIncrementalErrorReplay-test', () => { const React = require('react'...
32.954545
77
0.683858
null
'use strict'; const baseConfig = require('./config.base'); module.exports = Object.assign({}, baseConfig, { modulePathIgnorePatterns: [ ...baseConfig.modulePathIgnorePatterns, 'packages/react-devtools-extensions', 'packages/react-devtools-shared', 'ReactIncrementalPerf', 'ReactIncrementalUpdates...
25.136364
50
0.702091
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 { ElementTypeClass, ElementTypeFunction, ElementTypeRoot, ElementTypeHostComponent, ElementTypeOthe...
28.653345
102
0.631907
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'; describe('ReactDOMIframe', () => { let React; let ReactTestUtils; beforeEach(() =...
22.794118
68
0.665842
owtf
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-jsx-runtime.production.min.js'); } else { module.exports = require('./cjs/react-jsx-runtime.development.js'); }
25.875
72
0.682243
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 */ 'use strict'; let React; let ReactNoop; let Scheduler; let act; let assertLog; let waitFor; let waitFo...
24.890432
131
0.534692
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, FulfilledThenable, RejectedThenable, } from 'shared/ReactTypes'; import type {ImportM...
29.809816
86
0.700856
cybersecurity-penetration-testing
/** * 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 * as React from 'react'; function generateArray(size: number) { return Array.from({length: size}, () =...
27.488889
78
0.626854
Python-for-Offensive-PenTest
/** * 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 {CommitTree} from './types'; import type {SerializedElement} from 'react-devtools-shared/src/frontend/ty...
28.293103
80
0.594817
owtf
const React = window.React; const noop = n => n; class RadioNameChangeFixture extends React.Component { state = { updated: false, }; onClick = () => { this.setState(state => { return {updated: !state.updated}; }); }; render() { const {updated} = this.state; const radioName = updated...
19.061224
59
0.476578
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 * @jest-environment node */ 'use strict'; let React; let ReactNoopServer; describe('ReactServer', () =>...
22.166667
67
0.630252
owtf
import Fixture from '../../Fixture'; const React = window.React; class JumpingCursorTestCase extends React.Component { state = {value: ''}; onChange = event => { this.setState({value: event.target.value}); }; render() { return ( <Fixture> <div>{this.props.children}</div> <div cl...
21.975
55
0.507625
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...
25.686275
93
0.704412
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 */ /** * `charCode` represents the actual "character code" and is safe to use with * `String.fromCharCode`. As such, ...
29.5
80
0.685804
owtf
import FixtureSet from '../../FixtureSet'; import TestCase from '../../TestCase'; import NumberTestCase from './NumberTestCase'; import NumberInputDecimal from './NumberInputDecimal'; import NumberInputExtraZeroes from './NumberInputExtraZeroes'; const React = window.React; function NumberInputs() { return ( <F...
29.402062
98
0.581143
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} from 'react-reconciler/src/ReactInternalTypes'; import type {ReactScopeInstance} from 'shared/Re...
34.750831
81
0.709201
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 ReactNative; let createReactNativeComponentClas...
25.131868
94
0.624316
owtf
var React = require('react'); var ReactDOM = require('react-dom'); ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
21.375
50
0.702247
Python-Penetration-Testing-for-Developers
let React; let ReactNoop; let Scheduler; let act; let LegacyHidden; let Activity; let Suspense; let useState; let useEffect; let startTransition; let textCache; let waitFor; let waitForPaint; let assertLog; describe('Activity Suspense', () => { beforeEach(() => { jest.resetModules(); React = require('react'...
25.744144
91
0.542986
owtf
import TestCase from '../../TestCase'; const React = window.React; const ReactDOM = window.ReactDOM; const MouseEnter = () => { const containerRef = React.useRef(); React.useEffect(function () { const hostEl = containerRef.current; ReactDOM.render(<MouseEnterDetect />, hostEl, () => { ReactDOM.rend...
23.108108
78
0.5659
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. * * @emails react-core * @jest-environment node */ 'use strict'; const React = require('react'); const {startTransition, useDef...
21.745223
75
0.539776
Python-Penetration-Testing-for-Developers
let React; let ReactNoop; let Scheduler; let act; let assertLog; describe('ReactClassSetStateCallback', () => { beforeEach(() => { jest.resetModules(); React = require('react'); ReactNoop = require('react-noop-renderer'); Scheduler = require('scheduler'); act = require('internal-test-utils').act...
23.75
106
0.566065
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...
68.703704
1,272
0.89261
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'; module.exports = { meta: { schema: [], }, create(context) { return { ...
22.404762
70
0.464358
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 */ /** * WARNING: * This file contains types that are designed for React DevTools UI and how it interacts with the ba...
29.561265
111
0.733928
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 * from './src/index';
23.666667
66
0.696833
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/ReactFiberReconciler';
21.636364
66
0.697581
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 {Rect} from './geometry'; import type {View} from './View'; export type LayoutInfo = {view: View, frame...
25.022124
87
0.647959
Hands-On-Penetration-Testing-with-Python
/** * Install the hook on window, which is an event emitter. * Note: this global hook __REACT_DEVTOOLS_GLOBAL_HOOK__ is a de facto public API. * It's especially important to avoid creating direct dependency on the DevTools Backend. * That's why we still inline the whole event emitter implementation, * the string f...
32.508803
106
0.61922
cybersecurity-penetration-testing
const {resolve} = require('path'); const Webpack = require('webpack'); const WebpackDevServer = require('webpack-dev-server'); const fs = require('fs'); const { DARK_MODE_DIMMED_WARNING_COLOR, DARK_MODE_DIMMED_ERROR_COLOR, DARK_MODE_DIMMED_LOG_COLOR, LIGHT_MODE_DIMMED_WARNING_COLOR, LIGHT_MODE_DIMMED_ERROR_CO...
27.584416
92
0.606937
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 */ export * from 'react-client/src/ReactFlightClientConfigBrowser'; export * from 'react-server-dom-webpack/src/ReactFl...
39.1875
90
0.791277
owtf
import Fixture from '../../Fixture'; const React = window.React; class EmailAttributesTestCase extends React.Component { state = {value: 'a@fb.com'}; onChange = event => { this.setState({value: event.target.value}); }; render() { return ( <Fixture> <div>{this.props.children}</div> ...
22.612245
55
0.472318
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 */ 'use strict'; import {normalizeCodeLocInfo} from './utils'; describe('Timeline profiler', () => { let React; l...
31.337042
383
0.423172
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 { useContext, unstable_useCacheRefresh as useCacheRefresh, useTransitio...
24.766304
79
0.647679
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. * * @jest-environment node */ // sanity tests for act() let React; let ReactNoop; let act; let use; let Suspense; let DiscreteEv...
27.182336
136
0.591548
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. */ import getNodeForCharacterOffset from './getNodeForCharacterOffset'; import {TEXT_NODE} from './HTMLNodeType'; /** * @param {D...
28.108374
94
0.647766
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} from './ReactInternalTypes'; import { HostComponent, HostHoistable, HostSingleton, Lazy...
27.236842
78
0.709091
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. * * @noflow */ import {REACT_FORWARD_REF_TYPE, REACT_MEMO_TYPE} from 'shared/ReactSymbols'; export function forwardRef<Props, El...
31.435897
89
0.595492
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. */ import SyntheticEvent from './SyntheticEvent'; /** * `touchHistory` isn't actually on the native event, but putting it in the ...
29.545455
75
0.743666
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; 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 the root directory of this so...
25.433333
86
0.655303
null
'use strict'; throw new Error("Don't run `jest` directly. Run `yarn test` instead.");
21
71
0.678161
owtf
import { resolve, load as reactLoad, getSource as getSourceImpl, transformSource as reactTransformSource, } from 'react-server-dom-webpack/node-loader'; export {resolve}; import babel from '@babel/core'; const babelOptions = { babelrc: false, ignore: [/\/(build|node_modules)\//], plugins: [ '@babel...
28.040541
78
0.673184
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 */ import type {ReactContext, ReactProviderType} from 'shared/ReactTypes'; import type {Fiber} from './ReactInternalTyp...
26.323529
80
0.690713
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 {ReactNodeList, Wakeable} from 'shared/ReactTypes'; import type {Fiber} from './ReactInternalTypes'; imp...
32.206897
80
0.689172
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server.production.min.js'); } else { module.exports = require('./cjs/react-server.development.js'); }
24.625
67
0.676471
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react.shared-subset.production.min.js'); } else { module.exports = require('./cjs/react.shared-subset.development.js'); }
26.375
74
0.688073
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.764706
81
0.658273
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 */ export * from 'react-client/src/ReactFlightClientConfigNode'; export * from 'react-server-dom-webpack/src/ReactFligh...
35.266667
88
0.777164
null
'use strict'; module.exports = function shouldIgnoreConsoleError(format, args) { if (__DEV__) { if (typeof format === 'string') { if (format.indexOf('Error: Uncaught [') === 0) { // This looks like an uncaught error from invokeGuardedCallback() wrapper // in development that is reported by ...
30.849057
96
0.577949
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 ErrorStackParser from 'error-stack-parser'; import testErrorStack, { SOURCE_STACK_FRAME_LINE_NUMBER, } from...
27.285714
66
0.706775
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 type {ReactContext} from 'shared/ReactTypes'; import * as React from 'react'; import {createContext, useMemo...
23.44898
75
0.71345
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/ReactFizzServer';
21.181818
66
0.691358
null
'use strict'; module.exports = { globalSetup: require.resolve('./setupGlobal.js'), modulePathIgnorePatterns: [ '<rootDir>/scripts/rollup/shims/', '<rootDir>/scripts/bench/', ], transform: { '.*': require.resolve('./preprocessor.js'), }, setupFiles: [require.resolve('./setupEnvironment.js')], ...
29.34375
73
0.654639
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 {default as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './src/ReactDOMSharedInternals'; export ...
19.9375
108
0.729447
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 */ import {preinitModuleForSSR} from 'react-client/src/ReactFlightClientConfig'; export type ModuleLoading = | null ...
22.666667
77
0.674501
cybersecurity-penetration-testing
let ReactDOM = require('react-dom'); describe('ReactDOMRoot', () => { let container; beforeEach(() => { jest.resetModules(); container = document.createElement('div'); ReactDOM = require('react-dom'); }); afterEach(() => { jest.restoreAllMocks(); }); test('deprecation warning for ReactDO...
24.069767
58
0.613742
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'; import { inser...
31.986618
610
0.514834
GWT-Penetration-Testing-Toolset
/** * 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 {Component, Suspense} from 'react'; import Store from 'react-devtools-shared/...
27.541667
104
0.622865
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 */ // These tests are based on ReactJSXElement-test, // ReactJSXElementValidator-test, ReactComponent-test...
27.583333
91
0.625894
Python-for-Offensive-PenTest
/** * 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 { ElementType, SerializedElement, } from 'react-devtools-shared/src/frontend/types'; import type { ...
30.584906
101
0.733519
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. * */ const {resolve} = require('path'); function resolveFeatureFlags(target) { let flagsPath; switch (target) { case 'inl...
23.139535
66
0.650916
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 */ export function Component() { const [count] = require('react').useState(0); return count; }
19.133333
66
0.681063
cybersecurity-penetration-testing
import * as React from 'react'; import {createRoot} from 'react-dom/client'; import { activate as activateBackend, initialize as initializeBackend, } from 'react-devtools-inline/backend'; import {initialize as createDevTools} from 'react-devtools-inline/frontend'; // This is a pretty gross hack to make the runtime...
29.036364
84
0.745609
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 './ReactDOMFizzServerBrowser.js'; export {prerender} from './ReactDOMFizzStaticBrowser.js';
24.916667
66
0.719355
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; 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 the root directory of this so...
25.433333
86
0.655303
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 { ReactContext, StartTransitionOptions, Usable, Thenable, RejectedThenable, Awaited, } from ...
32.114239
117
0.661715
Penetration-Testing-Study-Notes
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/jest-react.production.min.js'); } else { module.exports = require('./cjs/jest-react.development.js'); }
24.125
65
0.67
owtf
/** @license React v16.14.0 * react-jsx-dev-runtime.production.min.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';require("react");exports.Fragment=60107;if("fu...
42.5
172
0.735023
Python-Penetration-Testing-for-Developers
let React; let Suspense; let ReactNoop; let Scheduler; let act; let ReactFeatureFlags; let Random; const SEED = process.env.FUZZ_TEST_SEED || 'default'; const prettyFormatPkg = require('pretty-format'); function prettyFormat(thing) { return prettyFormatPkg.format(thing, { plugins: [ prettyFormatPkg.plugin...
28.144444
100
0.516776
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 */ export type GitHubIssue = { title: string, url: string, }; const GITHUB_ISSUES_API = 'https://api.github.com/se...
21
67
0.639427
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 ReactDOMServer; describe('quoteAttributeValueForBrowser', () => { befo...
29.746667
76
0.619089
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 { PostponedState, ErrorInfo, PostponeInfo, } from 'react-server/src/ReactFizzServer'; import type ...
30.099138
123
0.653313
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. * */ import Html from './Html'; import BigComponent from './BigComponent'; export default function App({assets, title}) { const...
19.888889
66
0.616341
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 {ElementRef} from 'react'; import type { HostComponent, MeasureInWindowOnSuccessCallback, MeasureL...
24.625954
105
0.687723
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 {ScrollState} from './view-base/utils/scrollState'; // Source: https://github.com/facebook/flow/issues/...
25.572549
79
0.73786
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 */ export * from 'react-client/src/ReactFlightClientConfigBrowser'; export * from 'react-server-dom-turbopack/src/React...
39.9375
94
0.795107
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 */ // Patch fetch import './ReactFetch'; export {default as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from '...
18.195122
114
0.709924