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
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 = require('react'); let useContext; let ReactNoop; let Scheduler; let gen; let...
29.114857
117
0.522827
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 {withErrorsOrWarningsIgnored} from 'react-devtool...
26.149862
141
0.520076
owtf
/** * Supports render.html, a piece of the hydration fixture. See /hydration */ 'use strict'; (function () { var Fixture = null; var output = document.getElementById('output'); var status = document.getElementById('status'); var hydrate = document.getElementById('hydrate'); var reload = document.getElemen...
24.910891
75
0.611122
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. */ 'use strict'; // TODO: Move flattenStyle into react function flattenStyle() {} module.exports = flattenStyle;
19.4
66
0.718033
owtf
import React from 'react'; import {createElement} from 'glamor/react'; // eslint-disable-line /* @jsx createElement */ import {MultiGrid, AutoSizer} from 'react-virtualized'; import 'react-virtualized/styles.css'; import FileSaver from 'file-saver'; import { inject as injectErrorOverlay, uninject as uninjectError...
24.243164
96
0.577066
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/test-utils/ReactTestUtils';
22.090909
66
0.695652
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; let waitForThrow; d...
22.181818
77
0.634223
owtf
import {createStore} from 'redux'; function reducer(state = 0, action) { switch (action.type) { case 'increment': return state + 1; default: return state; } } // Because this file is declared above both Modern and Legacy folders, // we can import this from either folder without duplicating the...
23.866667
72
0.698925
owtf
const React = window.React; export default function Home() { return ( <main className="container"> <h1>DOM Test Fixtures</h1> <p> Use this site to test browser quirks and other behavior that can not be captured through unit tests. </p> <section> <h2>Tested Browsers...
30.252101
130
0.458042
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import {normalizeCodeLocInfo} from './utils'; let React; let ReactDOMClient; let act; let fakeConsole; let legacyRe...
32.60023
94
0.636058
null
/** * @license React * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* eslint-disable max-len */ 'use strict'; (function (global, factory) { // eslint-disable-next-line ft...
31.078431
124
0.701651
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 '../ReactServerStreamConfigEdge';
22
66
0.702381
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. * * @emails react-core */ 'use strict'; let ReactCache; let createResource; let React; let ReactFeatureFlags; let ReactTestRende...
26.05303
99
0.535101
owtf
'use strict'; // This module is the single source of truth for versioning packages that we // publish to npm. // // Packages will not be published unless they are added here. // // The @latest channel uses the version as-is, e.g.: // // 18.3.0 // // The @canary channel appends additional information, with the scheme...
28.949153
84
0.695923
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 {UserTimingMark} from '../types'; import type { Interaction, MouseMoveInteraction, Rect, Size, ...
22.745902
85
0.620059
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'; process.on('unhandledRejection', err => { throw err; }); const chalk = require('chalk'); const runFlow = requi...
25.963636
78
0.661269
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 ReactDOM; describe('Component stack trace displaying', () => { beforeE...
28.948276
71
0.519148
owtf
import FixtureSet from '../../FixtureSet'; import ReorderedInputsTestCase from './ReorderedInputsTestCase'; import OnSelectEventTestCase from './OnSelectEventTestCase'; const React = window.React; export default function SelectionEvents() { return ( <FixtureSet title="Selection Restoration" descripti...
31.55
79
0.729231
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('EventPluginRegistry', () => { let EventPluginRegistry; let createPlugin; ...
29.739496
97
0.664252
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 */ // sanity tests to make sure act() works without a mocked scheduler let React; let ReactDOM; let act; ...
19.893491
68
0.579603
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 */ import type {PublicInstance} from './ReactNativePrivateInterface'; export default function createPublicInsta...
22.136364
66
0.726378
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 {enableBinaryFlight} from 'shared/ReactFeatureFlags'; import type {Thenable} from 'shared/ReactTypes'; import...
23.956522
92
0.703704
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 {NativeEvent, TimelineData} from '../types'; import type { Interaction, IntrinsicSize, MouseMoveIn...
25.119231
80
0.637113
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 createReactNativeComponentClass; let React; let ReactNativ...
24.065789
93
0.653361
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUti...
25.535211
152
0.589872
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 Scheduler; let scheduleCallback; let ImmediatePriority; le...
24.592308
89
0.604931
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 {execSync} = require('child_process'); const {readFileSync} = require('fs'); const {resolve} = require('path'); const DAR...
27.086207
74
0.66769
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 { enableProfilerCommitHooks, enableProfilerNestedUpdate...
26.083333
100
0.703339
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. * * @emails react-core */ 'use strict'; describe('ReactDOMInReactServer', () => { beforeEach(() => { jest.resetModules...
21.166667
67
0.619586
null
/** * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; // Polyfills for test environment global.ReadableStream = require('web-streams-pol...
29.636792
89
0.624115
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // This is a DevTools fork of ReactFiberComponentStack. // This fork enables DevTools to use the same "native" compo...
26.887755
78
0.706808
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 styles from './LoadingAnimation.css'; type Props = { className?: string, }...
23.910714
79
0.542324
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 NormalPr...
29.377551
96
0.596288
PenetrationTestingScripts
/* global chrome */ import {createElement} from 'react'; import {flushSync} from 'react-dom'; import {createRoot} from 'react-dom/client'; import Bridge from 'react-devtools-shared/src/bridge'; import Store from 'react-devtools-shared/src/devtools/store'; import {getBrowserTheme} from '../utils'; import { localStora...
31.141921
118
0.698302
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 {insertNodesAndExecuteScripts} from '../test-utils/FizzTestUtils'; // Polyfills ...
30.324484
104
0.627301
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'; var Circle = require('react-art/Circle'); var React = require('react'); var ReactART = require('react-art'); var G...
37.369128
265
0.636459
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 = require('react'); let ReactDOM = require('react-dom'); let ReactFeatureFlags...
28.686525
111
0.604597
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 */ /** * CSS properties which accept numbers but are not in units of "px". */ const unitlessNumbers = new Set([ 'an...
19.460674
81
0.682418
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 opaque type CrossOriginString: string = string; export function getCrossOriginString(input: ?string): ?Cross...
21.709677
74
0.655761
owtf
/* * Copyright (c) Facebook, Inc. and its affiliates. */ exports.siteConfig = { // -------------------------------------- // Translations should replace these lines: languageCode: 'en', hasLegacySite: true, isRTL: false, // -------------------------------------- copyright: `Copyright © ${new Date().get...
26.904762
90
0.577778
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'; export * from './src/forks/SchedulerPostTask';
22.181818
66
0.708661
owtf
export default function BigComponent() { return ( <article> <section> <h2>Description</h2> <p> This page has repeating sections purposefully to create very large trees that stress the rendering and streaming capabilities of Fizz </p> </section> <sectio...
22.291209
80
0.303445
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 spyOn = jest.spyOn; // Spying on console methods in production builds can mask errors. // This is why we a...
24.840909
82
0.661972
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 getActiveElement from './getActiveElement'; import {getOffsets, setOffsets} from './ReactDOMSelection'; import {ELEMENT_...
28.774359
110
0.681309
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 {canUseDOM} from 'shared/ExecutionEnvironment'; /** * Generate a mapping of standard vendor prefixes using the defined ...
26.787234
98
0.718882
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 ReactDOM; let ReactTestUtils; describe('ReactJSXElement', () => { let ...
28.673171
77
0.629069
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'; // This test is a hot mess. It heavily uses internals and relies on DOM even // though t...
32.652965
102
0.66674
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'; module.exports = function dynamicImports() { return { name: 'scripts/rollup/plugins/dynamic-imports', re...
23.2
66
0.637681
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. */ /** * `ReactInstanceMap` maintains a mapping from a public facing stateful * instance (key) and the internal representation (v...
26.394737
78
0.725962
null
'use strict'; module.exports = { rules: { 'no-primitive-constructors': require('./no-primitive-constructors'), 'no-to-warn-dev-within-to-throw': require('./no-to-warn-dev-within-to-throw'), 'warning-args': require('./warning-args'), 'prod-error-codes': require('./prod-error-codes'), 'no-productio...
32.846154
82
0.653759
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 {LazyComponent} from 'react/src/ReactLazy'; import type {ReactContext, ReactProviderType} from 'shared/R...
28.791367
103
0.647826
null
#!/usr/bin/env node 'use strict'; const clear = require('clear'); const {existsSync} = require('fs'); const {readJsonSync} = require('fs-extra'); const {join} = require('path'); const theme = require('../theme'); const {execRead} = require('../utils'); const run = async ({cwd, packages, tags}) => { // Tags are nam...
30.669231
97
0.593294
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...
77.382353
2,848
0.824357
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.974359
78
0.67058
null
#!/usr/bin/env node 'use strict'; const clear = require('clear'); const {join, relative} = require('path'); const theme = require('../theme'); module.exports = ({cwd}, isStableRelease) => { const publishPath = relative( process.env.PWD, join(__dirname, '../publish.js') ); clear(); let message; if...
23.02381
94
0.640873
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 { Thenable, PendingThenable, FulfilledThenable, RejectedThenable, } from 'shared/ReactTypes'; i...
37.862745
80
0.669795
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 './ReactNativeInjectionShared'; import { getFiberCurrentPropsFromNode, getInstanceFromNode, getNodeFro...
25.642857
96
0.794275
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. */ 'use strict'; // Mock of the Native Hooks // Map of viewTag -> {children: [childTag], parent: ?parentTag} const roots = []; co...
28.369231
79
0.63657
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 act; let waitForAll; describe('ReactDO...
25.353333
117
0.607794
PenetrationTestingScripts
/* global chrome */ import setExtensionIconAndPopup from './setExtensionIconAndPopup'; import {executeScriptInMainWorld} from './executeScript'; import {EXTENSION_CONTAINED_VERSIONS} from '../utils'; export function handleReactDevToolsHookMessage(message, sender) { const {payload} = message; switch (payload?.ty...
24.740385
109
0.626308
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...
79.589744
1,384
0.796308
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 */ // This is a regression test for https://github.com/facebook/react/issues/131...
26.308642
80
0.658526
owtf
/** @license React v0.14.10 * 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
null
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server-flight.production.min.js'); } else { module.exports = require('./cjs/react-server-flight.development.js'); }
26.375
74
0.688073
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 {default} from 'react-shallow-renderer';
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 */ import type {Snapshot, TimelineData} from '../types'; import type { Interaction, Point, Rect, Size, Surfac...
24.789272
108
0.634473
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. * * @format * @flow */ 'use strict'; type Options = {+unsafelyIgnoreFunctions?: boolean}; /* * @returns {bool} true if differ...
26.376471
80
0.623388
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 Immutable from 'immutable'; const set = new Set(['abc', 123]); const map = n...
20.380952
74
0.611441
Python-Penetration-Testing-for-Developers
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-server-dom-turbopack-client.edge.production.min.js'); } else { module.exports = require('./cjs/react-server-dom-turbopack-client.edge.development.js'); }
31.125
93
0.710938
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'; /** * Change environment support for PointerEvent. */ function emptyFunction() {} ex...
21.367647
72
0.629605
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...
71.75
1,552
0.910609
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 { ElementTypeForwardRef, ElementTypeMemo, } from 'react-devtools-shared/src/frontend/types'; import {form...
22.626168
77
0.661654
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...
80.45
1,464
0.798281
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ 'use strict'; import type {ReactNodeList} from 'shared/ReactTypes'; import type { RootType, HydrateRootOptions,...
20.614035
66
0.683997
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 */ type Info = {tag: string}; export type AncestorInfoDev = { current: ?Info, formTag: ?Info, aTagInScope: ?Info...
22.844106
97
0.584722
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 { insertNodesAndExecuteScripts, getVisibleChildren, } from '../test-utils/Fiz...
27.261261
80
0.575642
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, us...
27.415282
125
0.696094
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ 'use strict'; let React; let ReactDOM; let ReactDOMServer; // In standard React, TextComponent keeps ...
22.580645
100
0.557805
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 {useDebugValue} = require('react'); function Component(props) { useCustomHookOne(); const [bar] = useCust...
19.888889
66
0.69241
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 { Request, ReactClientValue, } from 'react-server/src/ReactFlightServer'; import type {Destination} ...
26.327684
86
0.673904
Penetration_Testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export type RootTag = 0 | 1; export const LegacyRoot = 0; export const ConcurrentRoot = 1;
20.214286
66
0.699324
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.65625
72
0.598238
hackipy
/** * Copyright (c) Meta 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 */ throw new Error( 'The React Server cannot be used outside a react-server environment. ' + 'You must configure ...
26
77
0.700265
PenetrationTestingScripts
/** @flow */ 'use strict'; const {runOnlyForReactRange} = require('./utils'); const listAppUtils = require('./list-app-utils'); const devToolsUtils = require('./devtools-utils'); const {test, expect} = require('@playwright/test'); const config = require('../../playwright.config'); const semver = require('semver'); te...
31.317797
82
0.643981
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 ImportManifestEntry = { id: string, // chunks is a double indexed array of chunkId / chunkFilename p...
27.75
76
0.676424
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, useContext, useEffect} from 'react'; import {BridgeContext} from '...
28.476744
88
0.603394
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...
84.94375
8,784
0.854473
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-local */ export opaque type PublicInstance = mixed; export opaque type PublicTextInstance = mixed; module.expor...
25.31746
66
0.689801
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 url = require('url'); const Module = require('module'); let webpackModuleIdx = 0; const webpackServerModul...
24.810458
95
0.641844
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('profiling utils', () => { let utils; beforeEach(() => { utils = require('react-devtools-shared/sr...
22.107143
79
0.609907
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 {useContext, useEffect} from 'react'; import {RegistryContext} from './Contexts'; import type {OnChangeFn, R...
24.425926
70
0.627551
cybersecurity-penetration-testing
// This is a generated file. The source files are in react-dom-bindings/src/server/fizz-instruction-set. // The build script is at scripts/rollup/generate-inline-fizz-runtime.js. // Run `yarn generate-inline-fizz-runtime` to generate. export const clientRenderBoundary = '$RX=function(b,c,d,e){var a=document.getElemen...
200.214286
1,024
0.694602
null
#!/usr/bin/env node 'use strict'; const prompt = require('prompt-promise'); const theme = require('../theme'); const run = async () => { while (true) { const otp = await prompt('NPM 2-factor auth code: '); prompt.done(); if (otp) { return otp; } else { console.log(); console.log(...
17.083333
72
0.572748
PenetrationTestingScripts
#!/usr/bin/env node 'use strict'; const chalk = require('chalk'); const build = require('../build'); const main = async () => { await build('firefox'); console.log(chalk.green('\nThe Firefox extension has been built!')); console.log(chalk.green('You can test this build by running:')); console.log(chalk.gray...
27.815789
114
0.678245
PenetrationTestingScripts
function hasAbsoluteFileName(hook) { const fileName = hook.hookSource ? hook.hookSource.fileName : null; if (fileName == null) { return false; } else { return fileName.indexOf('/react-devtools-shared/') > 0; } } function serializeHook(hook) { if (!hook.hookSource) return hook; // Remove user-speci...
25.409836
87
0.678882
owtf
'use strict'; const fs = require('fs'); const path = require('path'); const paths = require('./paths'); // Make sure that including paths.js after env.js will read .env variables. delete require.cache[require.resolve('./paths')]; const NODE_ENV = process.env.NODE_ENV; if (!NODE_ENV) { throw new Error( 'The NOD...
39.038095
90
0.683084
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. */ 'use strict'; // Mock of the Native Hooks const roots = new Map(); const allocatedTags = new Set(); function dumpSubtree(info...
25.779343
88
0.613361
owtf
import Fixture from '../../Fixture'; const React = window.React; class RangeKeyboardFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { keydownCount: 0, changeCount: 0, }; } componentDidMount() { this.input.addEventListener('keydown'...
20.9375
73
0.537628
null
'use strict'; const http2Server = require('http2'); const httpServer = require('http-server'); const {existsSync, statSync, createReadStream} = require('fs'); const {join} = require('path'); const argv = require('minimist')(process.argv.slice(2)); const mime = require('mime'); function sendFile(filename, response) { ...
23.316456
70
0.652604
null
'use strict'; // These flags can be in a @gate pragma to declare that a test depends on // certain conditions. They're like GKs. // // Examples: // // @gate enableSomeAPI // test('uses an unstable API', () => {/*...*/}) // // // @gate __DEV__ // test('only passes in development', () => {/*...*/}) // // Most fl...
29.307018
84
0.629994