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
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 ReachTooltip from '@reach/tooltip'; import tooltipStyles from './Tooltip.css'...
20.486486
66
0.651134
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...
76.205128
1,252
0.786047
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. * */ 'use strict'; const babelRegister = require('@babel/register'); babelRegister({ ignore: [/[\\\/](build|server\/server|node...
22.862385
72
0.613846
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 {Fragment, useCallback, useState} from 'react'; export function ListItem({it...
21.674419
74
0.540356
owtf
/* * Copyright (c) Facebook, Inc. and its affiliates. */ // Used in next.config.js to remove the process transitive dependency. module.exports = { env: {}, cwd() {}, };
16.7
70
0.636364
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...
26.384892
93
0.574619
owtf
import React, {PureComponent} from 'react'; import { VictoryArea, VictoryAxis, VictoryChart, VictoryBar, VictoryTheme, VictoryScatter, VictoryStack, } from 'victory'; const colors = ['#fff489', '#fa57c1', '#b166cc', '#7572ff', '#69a6f9']; export default class Charts extends PureComponent { render() { ...
24.212598
71
0.367073
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...
71.366667
1,464
0.873272
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('SyntheticEvent', () => { let container; beforeE...
24.558824
76
0.649655
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 {Props} from '../client/ReactFiberConfi...
24.653846
120
0.666
owtf
import React from 'react'; import {useContext, useMemo, useRef, useState, useLayoutEffect} from 'react'; import {__RouterContext} from 'react-router'; import {ReactReduxContext} from 'react-redux'; import ThemeContext from './shared/ThemeContext'; let rendererModule = { status: 'pending', promise: null, result:...
25.96875
78
0.620943
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 Destination = { buffer: string, done: boolean, fatal: boolean, error: mixed, }; export opaque t...
22.952381
78
0.756837
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. * * @flow */ const {MessageChannel} = require('node:worker_threads'); export default function enqueueTask(task: () => void): voi...
23.35
66
0.679012
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-primitive-constructors'); const {RuleTester} = require('esli...
22.604167
109
0.547703
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 {useContext} from 'react'; import {ProfilerContext} from '../Profiler/Profile...
23.273292
90
0.582288
null
#!/usr/bin/env node 'use strict'; const {logPromise, updateVersionsForNext} = require('../utils'); const theme = require('../theme'); module.exports = async ({reactVersion, tempDirectory, version}) => { return logPromise( updateVersionsForNext(tempDirectory, reactVersion, version), theme`Updating version n...
24.714286
68
0.70195
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.75
93
0.794163
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 { DispatchConfig, ReactSynthetic...
25.756757
77
0.737108
Ethical-Hacking-Scripts
import * as React from 'react'; export default function UseMemoCache(): React.Node { React.unstable_useMemoCache(1); return null; }
16.375
52
0.724638
owtf
'use strict'; // This is a server to host data-local resources like databases and RSC const path = require('path'); const url = require('url'); if (typeof fetch === 'undefined') { // Patch fetch for earlier Node versions. global.fetch = require('undici').fetch; } const express = require('express'); const bodyPa...
26.836879
85
0.640163
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 */ function ignoreStrings( methodName: string, stringsToIgnore: Array<string>, ): void { // $FlowFixMe[prop-missi...
29.772727
87
0.691057
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 JSON5 from 'json5'; import type {Element} from 'react-devtools-shared/src/frontend/types'; import type {Stat...
27.27907
129
0.621813
PenetrationTestingScripts
/* global chrome */ import type {BrowserTheme} from 'react-devtools-shared/src/devtools/views/DevTools'; export function getBrowserTheme(): BrowserTheme { if (__IS_CHROME__) { // chrome.devtools.panels added in Chrome 18. // chrome.devtools.panels.themeName added in Chrome 54. return chrome.devtools.pan...
32.115385
94
0.673256
PenetrationTestingScripts
#!/usr/bin/env node 'use strict'; const {exec} = require('child-process-promise'); const {Finder} = require('firefox-profile'); const {resolve} = require('path'); const {argv} = require('yargs'); const EXTENSION_PATH = resolve('./firefox/build/unpacked'); const START_URL = argv.url || 'https://react.dev/'; const fi...
27.028986
114
0.645111
Nojle
/** * 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...
29.795918
80
0.706897
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 list should be kept updated to reflect additions to 'shared/ReactSymbols'. // DevTools can't import symbols ...
36.279412
106
0.765983
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_STRICT_MODE_TYPE} from 'shared/ReactSymbols'; import type {Wakeable, Thenable} from 'shared/ReactType...
34.301938
122
0.692548
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'; import {createEventTarget, setPointerEvent} from 'dom-event-testing-library'; let React...
28.323263
112
0.6
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('toErrorDev', () => { it('does not fail if a warning contains a stack', () =>...
34.52506
92
0.529629
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 */ /* eslint-disable react-internal/prod-error-codes */ // We expect that our Rollup, Jest, and Flow configurations //...
31.095238
71
0.728083
Tricks-Web-Penetration-Tester
// @flow import type {ComponentType} from "react"; import createListComponent from './createListComponent'; import type { Props, ScrollToAlign } from './createListComponent'; const DEFAULT_ESTIMATED_ITEM_SIZE = 50; type VariableSizeProps = {| estimatedItemSize: number, ...Props<any>, |}; type itemSizeGetter =...
26.059561
108
0.654501
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 '../../view-base'; export function positioningScaleFactor( intrinsicWidth: number, fram...
21.380952
80
0.72524
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 {isEnabled} from 'react-dom-bindings/src/events/ReactDOMEventListener'; import Internals from './src/ReactDO...
22.369565
107
0.742086
null
'use strict'; const chalk = require('chalk'); const util = require('util'); const shouldIgnoreConsoleError = require('./shouldIgnoreConsoleError'); const {getTestFlags} = require('./TestFlags'); if (process.env.REACT_CLASS_EQUIVALENCE_TEST) { // Inside the class equivalence tester, we have a custom environment, let...
30.983923
84
0.616831
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('ReactDOMComponentTree', () => { let React; let ReactDOM; let container; ...
29.369863
95
0.61218
null
#!/usr/bin/env node 'use strict'; const {join} = require('path'); const {readJsonSync} = require('fs-extra'); const clear = require('clear'); const {getPublicPackages, handleError} = require('./utils'); const theme = require('./theme'); const checkNPMPermissions = require('./publish-commands/check-npm-permissions');...
32.592233
100
0.643539
null
#!/usr/bin/env node 'use strict'; const clear = require('clear'); const {join, relative} = require('path'); const theme = require('../theme'); module.exports = async ({build}) => { const commandPath = relative( process.env.PWD, join(__dirname, '../download-experimental-build.js') ); clear(); const ...
20.615385
56
0.632799
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 {Fiber} from '../ReactFiber'; import type {CapturedValue} from '../ReactCapturedValue'; import {ClassCo...
26.578947
112
0.710602
owtf
'use server'; import {setServerState} from './ServerState.js'; export async function like() { setServerState('Liked!'); return new Promise((resolve, reject) => resolve('Liked')); } export async function greet(formData) { const name = formData.get('name') || 'you'; setServerState('Hi ' + name); const file =...
22.333333
60
0.613497
owtf
var path = require('path'); module.exports = { entry: './input', output: { filename: 'output.js', }, resolve: { root: path.resolve('../../../../build/oss-experimental'), alias: { react: 'react/umd/react.production.min', 'react-dom': 'react-dom/umd/react-dom.production.min', }, }, ...
19.25
61
0.560372
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/scheduler.production.min.js'); } else { module.exports = require('./cjs/scheduler.development.js'); }
23.875
64
0.676768
diff-droid
"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...
79.282051
1,372
0.795208
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 { createContext, forwardRef, Fragment, memo, useCallback, useCont...
22.375796
85
0.683565
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...
92.142857
2,884
0.838734
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, useMemo, useRef, useState} from 'react'; import {unstable_batche...
25.325503
98
0.638067
null
'use strict'; const semver = require('semver'); const {ReactVersion} = require('../../../ReactVersions'); 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_COLOR, LIGHT_MODE_DIMMED_LOG_COLOR, } = requi...
31.05
79
0.728928
owtf
/* * Copyright (c) Facebook, Inc. and its affiliates. */ module.exports = { // Text colors primary: '#23272F', // gray-90 'primary-dark': '#F6F7F9', // gray-5 secondary: '#404756', // gray-70 'secondary-dark': '#EBECF0', // gray-10 tertiary: '#5E687E', // gray-50 'tertiary-dark': '#99A1B3', // gray-30 ...
23.989362
76
0.543015
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'; const objectWithModifiedHasOwnProperty = { foo: 'abc', bar: 123, hasOwnProper...
22.222222
73
0.730539
Python-Penetration-Testing-for-Developers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server-dom-esm-client.node.production.min.js'); } else { module.exports = require('./cjs/react-server-dom-esm-client.node.development.js'); }
29.625
87
0.696721
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 ...
34.846154
81
0.675734
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 fs = require('fs'); const ReactVersionSrc = fs.readFileSync( require.resolve('../../packages/shared/React...
26.069767
77
0.676698
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 function loadChunk(filename: string): Promise<mixed> { return __turbopack_load__(filename); }
22.692308
66
0.703583
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...
77.45
1,344
0.790564
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 Activity; l...
26.873149
175
0.589011
cybersecurity-penetration-testing
'use strict'; module.exports = require('./server.node');
13.75
42
0.672414
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 {Dispatcher} from 'react-reconciler/src/ReactInternalTypes'; import type { ReactContext, StartTrans...
30.588024
119
0.681289
Python-Penetration-Testing-Cookbook
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "ComponentUsingHooksIndirectly", { enumerable: true, get: function () { return _ComponentUsingHooksIndirectly.Component; } }); Object.defineProperty(exports, "ComponentWithCustomHook", { enumerable...
56.213483
1,828
0.822039
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 { DevToolsHook, ReactRenderer, } from 'react-devtools-shared/src/backend/types'; import {hasAssigned...
28.4
110
0.675865
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 * as React from 'react'; import {useContext} from 'react'; import {StoreContext} from '../context'; import { ...
27
80
0.683876
Effective-Python-Penetration-Testing
export const CHANGE_LOG_URL = 'https://github.com/facebook/react/blob/main/packages/react-devtools/CHANGELOG.md'; export const UNSUPPORTED_VERSION_URL = 'https://reactjs.org/blog/2019/08/15/new-react-devtools.html#how-do-i-get-the-old-version-back'; export const REACT_DEVTOOLS_WORKPLACE_URL = 'https://fburl.com...
45.475073
98
0.626806
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 */ // ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/b...
36.898551
82
0.734124
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 * as React from 'react'; import styles from './Icon.css'; export type IconType = | 'arrow' | 'bug' | '...
34.671958
265
0.643525
null
'use strict'; jest.mock('shared/ReactFeatureFlags', () => { jest.mock( 'ReactFeatureFlags', () => jest.requireActual('shared/forks/ReactFeatureFlags.www-dynamic'), {virtual: true} ); const actual = jest.requireActual('shared/forks/ReactFeatureFlags.www'); // This flag is only used by tests, it sho...
27.047619
75
0.68904
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 {Instance} from 'react-reconciler/src/ReactFiberConfig'; import type {FiberRoot} from 'react-reconciler/...
30.435135
101
0.624393
owtf
// Example const Throw = React.lazy(() => { throw new Error('Example'); }); const Component = React.memo(function Component({children}) { return children; }); function DisplayName({children}) { return children; } DisplayName.displayName = 'Custom Name'; class NativeClass extends React.Component { render() {...
16.064516
61
0.683712
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 { COMFORTABLE_LINE_HEIGHT, COMPACT_LINE_HEIGHT, } from 'react-devtools-shared/src/devtools/constants.js';...
25.047619
95
0.739927
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. */ /** * ReactElementValidator provides a wrapper around a element factory * which validates the props passed to the element. Thi...
29.901566
110
0.621561
owtf
const {createElement, useLayoutEffect, useState} = React; const {createRoot} = ReactDOM; function App() { const [isMounted, setIsMounted] = useState(false); useLayoutEffect(() => { setIsMounted(true); }, []); return createElement('div', null, `isMounted? ${isMounted}`); } const container = document.getEle...
26.533333
63
0.711165
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 {Size, IntrinsicSize, Rect} from './geometry'; import type { Interaction, MouseDownInteraction, Mo...
27.449664
103
0.658606
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 ReactNoopPersistent; let waitForAll; describe(...
26.953917
89
0.624073
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 */ import {withSyncPerfMeasurements} from 'react-devtools-shared/src/PerformanceLoggingUtils'; import traverse from '@b...
34.965517
116
0.643321
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 LRU from 'lru-cache'; import { isElement, typeOf, ContextConsumer, ContextProvider, ForwardRef, F...
26.069223
172
0.615454
Hands-On-Penetration-Testing-with-Python
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "ComponentUsingHooksIndirectly", { enumerable: true, get: function () { return _ComponentUsingHooksIndirectly.Component; } }); Object.defineProperty(exports, "ComponentWithCustomHook", { enumerable...
36.325843
743
0.727793
owtf
import Fixture from '../../Fixture'; import FixtureSet from '../../FixtureSet'; import TestCase from '../../TestCase'; import InputTestCase from './InputTestCase'; import ReplaceEmailInput from './ReplaceEmailInput'; const React = window.React; class TextInputFixtures extends React.Component { render() { return...
34.089286
80
0.543264
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...
83.05
1,568
0.803927
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 {Lanes} from './ReactFiberLane'; import type ...
29.905213
86
0.725153
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 ReactDOMServer; let Suspense; describe('ReactDOMServerFB', () => { bef...
24.470046
283
0.578176
owtf
import cn from 'classnames'; import semver from 'semver'; import PropTypes from 'prop-types'; import IssueList from './IssueList'; import {parse} from 'query-string'; import {semverString} from './propTypes'; const React = window.React; const propTypes = { children: PropTypes.node.isRequired, title: PropTypes.nod...
23.187097
80
0.51254
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 */ // Parsing source and source maps is done in a Web Worker // because parsing is CPU intensive and should not block t...
35.426357
122
0.638681
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 {useContext} from 'react'; import {SettingsContext} from './SettingsContext';...
25.797619
67
0.582667
Advanced-Infrastructure-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 function loadChunk(chunkId: string, filename: string): Promise<mixed> { return __webpack_chunk_load__(chunk...
24.230769
78
0.706422
null
'use strict'; const fetch = require('node-fetch'); const {writeFileSync} = require('fs'); const stories = 50; async function getStory(id) { const storyRes = await fetch( `https://hacker-news.firebaseio.com/v0/item/${id}.json` ); return await storyRes.json(); } async function getTopStories() { const topSt...
20.852941
59
0.672507
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 React; let ...
32.278146
117
0.626612
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 waitForAll; // This is a new fe...
27.697674
86
0.670722
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 {memo, useCallback, useContext} from 'react'; import {areEqual} from 'react-w...
23.081395
72
0.663285
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 */ // Reach styles need to come before any component styles. // This makes overriding the styles simpler. import '@reac...
35.816619
132
0.618773
Python-Penetration-Testing-Cookbook
"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...
57.538462
920
0.850099
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 * as React from 'react'; import Badge from './Badge'; import ForgetBadge from './ForgetBadge'; import Indexa...
22.525424
78
0.635184
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. */ let didWarnValueNull = false; export function validateProperties(type, props) { if (__DEV__) { if (type !== 'input' && ty...
28.805556
85
0.564366
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 {isStartish, isMoveish, isEndish} from './ResponderTopLevelEventTypes'; /** * Tracks the position and time ...
30.004219
83
0.698108
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 ModuleLoading = null; export function prepareDestinationWithChunks( moduleLoading: ModuleLoading, c...
23.052632
97
0.730263
owtf
module.exports = { presets: [ [ '@babel/react', { runtime: 'automatic', development: process.env.BABEL_ENV === 'development', }, ], ], plugins: ['@babel/plugin-transform-modules-commonjs'], };
17.615385
61
0.53112
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...
63.047619
944
0.895833
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 strict */ module.exports = { showErrorDialog: jest.fn(), };
19.307692
66
0.684411
owtf
import React, {createRef, PureComponent} from 'react'; const SPEED = 0.003 / Math.PI; const FRAMES = 10; export default class Clock extends PureComponent { faceRef = createRef(); arcGroupRef = createRef(); clockHandRef = createRef(); frame = null; hitCounter = 0; rotation = 0; t0 = Date.now(); arcs = ...
25.783019
80
0.545807
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('Stylex plugin utils', () => { let getStyleXData; let styleElements; function defineStyles(style) { ...
19.759542
80
0.477933
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 typeof ReactTestRenderer from 'react-test-renderer'; import type {FrontendBridge} from 'react-devtools-share...
27.119355
143
0.678981
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. * * @noflow */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import {findCurrentFiberUsingSlowPath} from...
26.5722
120
0.67719
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...
19.071429
77
0.675579
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 { CrossOriginEnum, PreloadImplOptions, PreloadModuleImplOptions, PreinitStyleOptions, PreinitS...
29.712329
96
0.701919