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
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'; // Set by `yarn test-fire`. const {disableInputAttributeSyncing} = require('shared/React...
32.30855
114
0.603321
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 default class UnknownHookError extends Error { constructor(message: string) { super(message); // M...
23.636364
89
0.700555
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 {REACT_PORTAL_TYPE} from 'shared/ReactSymbols'; import {checkKeyStringCoercion} from 'shared/CheckStringCoerc...
24.588235
68
0.697353
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 */ const uppercasePattern = /([A-Z])/g; const msPattern = /^ms-/; /** * Hyphenates a camelcased CSS property name, fo...
24.8125
78
0.666667
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 {FrontendBridge} from 'react-devtools-shared/src/bridge'; import type Store from 'react-devtools-shared/...
25.906481
113
0.535459
Python-Penetration-Testing-for-Developers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-refresh-babel.production.min.js'); } else { module.exports = require('./cjs/react-refresh-babel.development.js'); }
26.375
74
0.688073
cybersecurity-penetration-testing
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-interactions-events/scroll.production.min.js'); } else { module.exports = require('./cjs/react-interactions-events/scroll.development.js'); }
29.625
87
0.713115
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 minimist = require('minimist'); const runESLint = require('../eslint'); async function main() { console....
24.65625
87
0.665854
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; var _react = _interopRequireWildcard(require("react")); var _jsxFileName = ""; function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWil...
45.641026
743
0.648515
PenetrationTestingScripts
// Portal target container. window.container = document.getElementById('container'); let hasInjectedStyles = false; // DevTools styles are injected into the top-level document head (where the main React app is rendered). // This method copies those styles to the child window where each panel (e.g. Elements, Profiler)...
30.35
110
0.722045
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
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'; /** * turns * { 'MUCH ERROR': '0', 'SUCH WRONG': '1' } * into * { 0: 'MUCH ERROR', 1: 'SUCH WRONG' } */ f...
21.133333
66
0.662142
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 */ /* eslint-disable react-internal/prod-error-codes */ // We expect that our Rollup, Jest, and Flow configurations //...
31.095238
71
0.728083
owtf
'use strict'; // This file is a proxy for our rule definition that will // load the latest built version on every check. This makes // it convenient to test inside IDEs (which would otherwise // load a version of our rule once and never restart the server). // See instructions in ../index.js playground. let build; re...
24.555556
79
0.645267
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 {ReactContext} from 'shared/ReactTypes'; import * as React from 'react'; import { createContext, use...
22.374332
79
0.629977
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 * as React from 'react'; import {useCallback, useContext, useMemo} from 'react'; import Button from '../Butto...
30.739726
127
0.693869
cybersecurity-penetration-testing
/** @flow */ import {createElement} from 'react'; import {createRoot} from 'react-dom/client'; import { activate as activateBackend, initialize as initializeBackend, } from 'react-devtools-inline/backend'; import {initialize as initializeFrontend} from 'react-devtools-inline/frontend'; import {initDevTools} from '...
30.505495
84
0.710747
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 {createAsyncHook, executionAsyncId} from './ReactFlightServerConfig'; import {enableAsyncDebugInfo} from 'sha...
31.147059
81
0.686813
Python-Penetration-Testing-for-Developers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server-dom-turbopack-client.node.production.min.js'); } else { module.exports = require('./cjs/react-server-dom-turbopack-client.node.development.js'); }
31.125
93
0.710938
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'; // Polyfills for test environment global.ReadableStream = require('web-streams-polyfil...
26.398135
273
0.599105
cybersecurity-penetration-testing
'use strict'; function checkDCE() { /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function' ) { return; } if (process.env.NODE_ENV !== 'production') { // This branch is unreachable ...
33.948718
78
0.670338
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...
63.962963
1,144
0.88591
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. * * @jest-environment node */ 'use strict'; const ReactNativeAttributePayload = require('../ReactNativeAttributePayload'); const...
24.912727
80
0.481825
owtf
const React = window.React; const fixturePath = window.location.pathname; /** * A simple routing component that renders the appropriate * fixture based on the location pathname. */ class FixturesPage extends React.Component { static defaultProps = { fixturePath: fixturePath === '/' ? '/home' : fixturePath, ...
17.507937
61
0.606009
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 */ export * from './src/ReactFlightDOMServerEdge';
22
66
0.702381
Python-Penetration-Testing-Cookbook
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; /** * 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. * * */ function C...
57.904762
836
0.886731
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...
28.585987
93
0.585702
PenetrationTestingScripts
/* global chrome */ import { getAppendComponentStack, getBreakOnConsoleErrors, getSavedComponentFilters, getShowInlineWarningsAndErrors, getHideConsoleLogsInStrictMode, } from 'react-devtools-shared/src/utils'; import {getBrowserTheme} from 'react-devtools-extensions/src/utils'; // The renderer interface ca...
33
82
0.723019
Effective-Python-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, Thenable} from 'shared/ReactTypes'; import * as React from 'react'; import {createContex...
25.323671
105
0.648678
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'; export const defaultPointerId = 1; export const defaultPointerSize = 23; export const de...
20.045455
112
0.674352
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 Scheduler; let act; let waitForA...
30.933754
90
0.598004
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() const React = require('react'); const ReactNoop = require('react-noop-re...
24.692308
76
0.588376
Hands-On-Penetration-Testing-with-Python
"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...
87.71875
9,228
0.859025
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 {ReactClientValue} from 'react-server/src/ReactFlightServer'; import type {ServerContextJSONValue, Thena...
24.844037
79
0.679688
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-unstable-cache.production.min.js'); } else { module.exports = require('./cjs/react-unstable-cache.development.js'); }
26.625
75
0.690909
null
'use strict'; module.exports = require('./cjs/react-suspense-test-utils.js');
19
63
0.708861
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 {ReactClientValue} from 'react-server/src/ReactFlightServer'; import type { Destination, Chunk, Pr...
22.833333
92
0.742857
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...
77.233333
1,640
0.883205
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 */ const aliases = new Map([ ['acceptCharset', 'accept-charset'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']...
35.010309
72
0.662658
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 {AnyNativeEvent} from '../events/PluginModuleType'; // This exists to avoid circular dependency between ...
26.627907
74
0.682393
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 Scheduler; let waitForAll; let w...
24.973818
102
0.531739
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} from 'shared/ReactTypes'; export const ContextRegistry: { [globalName: string]: ...
22.6
66
0.711048
cybersecurity-penetration-testing
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-interactions-events/focus.production.min.js'); } else { module.exports = require('./cjs/react-interactions-events/focus.development.js'); }
29.375
86
0.710744
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 */ /** * This is a renderer of React that doesn't have a render target output. * It is useful to demonstrate the inte...
29.526882
75
0.727273
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'; let React; let ReactTestRenderer; let act; let useState; let useTransition; const SUSPI...
25.318681
95
0.579783
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'; const React = require('react'); let ReactTestRenderer; let Con...
37.315789
85
0.627602
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 {ReactScopeInstance} from 'shared/ReactTypes'; import type {DOMEventName} from '../events/DOMEventNames'...
25.652174
66
0.722222
Tricks-Web-Penetration-Tester
// @flow import memoizeOne from 'memoize-one'; import * as React from 'react'; import { createElement, PureComponent } from 'react'; import { cancelTimeout, requestTimeout } from './timer'; import { getScrollbarSize, getRTLOffsetType } from './domHelpers'; import type { TimeoutID } from './timer'; type Direction = '...
29.13449
128
0.614584
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 ReactSharedInternals from 'shared/ReactSharedInternals'; let suppressWarning = false; export function setSuppressWarning...
29.35
79
0.689011
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 default class EventEmitter<Events: Object> { listenersMap: Map<string, Array<Function>> = new Map(); add...
24.644737
66
0.568789
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 * as React from 'react'; import {useLayoutEffect, useRef, useState} from 'react'; import {render} from 'react-dom'; func...
21.097561
66
0.669613
owtf
const React = window.React; const startDate = new Date(); /** * This test case was originally provided by @richsoni, * https://github.com/facebook/react/issues/8116 */ class SwitchDateTestCase extends React.Component { state = { fullDate: false, date: startDate, }; render() { const attrs = this.i...
20.014706
66
0.509804
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 * as React from 'react'; import styles from './ReactLogo.css'; type Props = { className?: string, }; exp...
25
67
0.599767
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} from 'shared/ReactTypes'; import { REACT_PROVIDER_TYPE, REACT_SERVER_CONTEXT_T...
29.910256
81
0.653112
owtf
import * as React from 'react'; import {use, Suspense, useState, startTransition} from 'react'; import ReactDOM from 'react-dom/client'; import {createFromFetch, encodeReply} from 'react-server-dom-webpack/client'; // TODO: This should be a dependency of the App but we haven't implemented CSS in Node yet. import './st...
26.859649
91
0.666037
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('escapeTextForBrowser', () => { beforeEach(()...
31.328358
75
0.629561
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; var _react = _interopRequireWildcard(require("react")); var _jsxFileName = ""; function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWil...
45.641026
743
0.648515
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. * * @format * @flow strict-local */ 'use strict'; import {ReactNativeViewConfigRegistry} from 'react-native/Libraries/ReactPriv...
26.5
110
0.753747
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...
88.19375
9,304
0.859706
Python-Penetration-Testing-Cookbook
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; var _react = _interopRequireWildcard(require("react")); var _jsxFileName = ""; function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWil...
88.428571
2,676
0.831835
null
(function () { 'use strict'; var ReactImage0 = function (props) { if (props.x === 0) { return React.createElement('i', { alt: '', className: '_3-99 img sp_i534r85sjIn sx_538591', src: null, }); } if (props.x === 15) { return React.createElement('i', { c...
25.982819
89
0.502876
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 const DPR: number = window.devicePixelRatio || 1; export const LABEL_SIZE = 80; export const MARKER_HEIGHT = ...
32.89644
80
0.702569
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 {Source} from 'shared/ReactElementType'; import type { RefObject, ReactContext, StartTransitionOpt...
31.233796
89
0.696208
Ethical-Hacking-Scripts
/** * 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, useDebugValue, useState} from 'react'; const div = document.creat...
15.9
66
0.515785
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 * as React from 'react'; import {useCallback, useContext, useEffect, useMemo, useRef} from 'react'; import {S...
24.743056
92
0.640043
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 React = require('react'); const {useEffect} = React; function Component(props) { useEffect(() => {}); Rea...
20.263158
66
0.655087
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 */ /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol * and Temporal.* types. See https://...
33.361111
96
0.666235
Ethical-Hacking-Scripts
const SUCCESSFUL_COMPILATION_MESSAGE = 'Compiled successfully.'; module.exports = { SUCCESSFUL_COMPILATION_MESSAGE, };
19.5
64
0.770492
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; /** * 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. * * */ function C...
21.238095
66
0.701717
Python-Penetration-Testing-for-Developers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-refresh-runtime.production.min.js'); } else { module.exports = require('./cjs/react-refresh-runtime.development.js'); }
26.875
76
0.693694
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 ReactTestRenderer; let Scheduler; let act; let assertLog; describe('Stri...
22.930986
127
0.56033
Ethical-Hacking-Scripts
/** * 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, Com...
24.772727
85
0.623815
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 {REACT_PROVIDER_TYPE, REACT_CONTEXT_TYPE} from 'shared/ReactSymbols'; import type {ReactProviderType} from '...
32.208633
117
0.621235
Penetration-Testing-Study-Notes
'use strict'; // TODO: this doesn't make sense for an ESLint rule. // We need to fix our build process to not create bundles for "raw" packages like this. if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/eslint-plugin-react-hooks.production.min.js'); } else { module.exports = require('....
36.2
87
0.71159
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-dom-bindings/src/shared/ReactF...
35.461538
84
0.781415
owtf
/** @license React v15.7.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("fun...
42.4
172
0.734411
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/dom/create-event-handle/Focus';
22.454545
66
0.692607
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 path = require('path'); const semver = require('semver'); function resolveRelatively(importee, importer) { ...
30.157303
78
0.621212
cybersecurity-penetration-testing
'use strict'; // This file is used as temporary storage for modules generated in Flight tests. var moduleIdx = 0; var modules = new Map(); // This simulates what the compiler will do when it replaces render functions with server blocks. exports.saveModule = function saveModule(render) { var idx = '' + moduleIdx++; ...
25.176471
97
0.725225
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; describe('ReactCompositeComponentNestedState-state', () => { ...
27.5
74
0.535829
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 */ describe('events', () => { let dispatcher; beforeEach(() => { const EventEmitter = require('../events').def...
30.30597
103
0.679065
Python-Penetration-Testing-Cookbook
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Component = Component; /** * 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. * * */ function C...
62.47619
932
0.894144
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 */ module.exports = require('./src/ReactFlightTurbopackNodeRegister');
23.818182
67
0.716912
null
'use strict'; const RELEASE_CHANNEL = process.env.RELEASE_CHANNEL; const __EXPERIMENTAL__ = typeof RELEASE_CHANNEL === 'string' ? RELEASE_CHANNEL === 'experimental' : true; const bundleTypes = { NODE_ES2015: 'NODE_ES2015', ESM_DEV: 'ESM_DEV', ESM_PROD: 'ESM_PROD', UMD_DEV: 'UMD_DEV', UMD_PROD: 'U...
27.033135
83
0.632206
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 */ // TODO: direct imports like some-package/src/* are bad. Fix me. import {getCurrentFiberOwnerNameInDevOrNull} from '...
34.731982
110
0.657905
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 {createContext} from 'react'; import Store from '../stor...
29.321429
91
0.771951
owtf
import TestCase from '../../TestCase'; import Iframe from '../../Iframe'; const React = window.React; class OnSelectIframe extends React.Component { state = {count: 0, value: 'Select Me!'}; _onSelect = event => { this.setState(({count}) => ({count: count + 1})); }; _onChange = event => { this.setStat...
24.647059
87
0.592961
owtf
import TestCase from '../../TestCase'; import DragBox from './drag-box'; const React = window.React; class Drag extends React.Component { render() { return ( <TestCase title="Drag" description=""> <TestCase.Steps> <li>Drag the circle below with any pointer tool</li> </TestCase.St...
21.538462
75
0.617094
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 {PriorityLevel} from './SchedulerPriorities'; import {enableProfiling} from './SchedulerFeatureFlags'; ...
22.372222
77
0.655492
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. * */ // Do not require this module directly! Use normal `invariant` calls with // template literal strings. The messages will be r...
30.769231
76
0.69697
cybersecurity-penetration-testing
import {completeBoundaryWithStyles} from './ReactDOMFizzInstructionSetInlineSource'; // This is a string so Closure's advanced compilation mode doesn't mangle it. // eslint-disable-next-line dot-notation window['$RM'] = new Map(); // eslint-disable-next-line dot-notation window['$RR'] = completeBoundaryWithStyles;
38.75
84
0.776025
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'; function evalStringConcat(ast) { switch (ast.type) { case 'StringLiteral': case 'Literal': // ESLint ...
29.160714
71
0.626185
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'; describe('forwardRef', () => { let React; let ReactFeatureFlags; let ReactNoop; ...
24.310345
78
0.599216
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. */ const instanceCache = new Map(); const instanceProps = new Map(); export function precacheFiberNode(hostInst, tag) { instance...
23.981132
66
0.746032
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 type WorkTag = | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14...
21.552239
91
0.70596
owtf
/** * Copyright (c) Facebook, Inc. and its affiliates. */ // To do: Make this ESM. // To do: properly check heading numbers (headings with the same text get // numbered, this script doesn’t check that). const assert = require('assert'); const fs = require('fs'); const GithubSlugger = require('github-slugger'); cons...
24.567568
90
0.600634
null
'use strict'; module.exports = { env: { browser: true, }, globals: { // ES6 BigInt: 'readonly', Map: 'readonly', Set: 'readonly', Symbol: 'readonly', Proxy: 'readonly', WeakMap: 'readonly', WeakSet: 'readonly', Int8Array: 'readonly', Uint8Array: 'readonly', Uint8C...
22.413043
80
0.621458
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 './client.browser';
20.727273
66
0.684874
Python-Penetration-Testing-for-Developers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server-dom-turbopack-server.edge.production.min.js'); } else { module.exports = require('./cjs/react-server-dom-turbopack-server.edge.development.js'); }
31.125
93
0.710938
null
'use strict'; const Table = require('cli-table'); const filesize = require('filesize'); const chalk = require('chalk'); const join = require('path').join; const fs = require('fs'); const mkdirp = require('mkdirp'); const BUNDLE_SIZES_FILE_NAME = join(__dirname, '../../build/bundle-sizes.json'); const prevBuildResults...
25.961832
80
0.647692