repo_name
stringlengths
4
68
text
stringlengths
21
269k
avg_line_length
float64
9.4
9.51k
max_line_length
int64
20
28.5k
alphnanum_fraction
float64
0.3
0.92
null
#!/usr/bin/env node 'use strict'; const {execRead, logPromise} = require('../utils'); const theme = require('../theme'); const run = async ({cwd, packages, version}) => { const currentUser = await execRead('npm whoami'); const failedProjects = []; const checkProject = async project => { const owners = (aw...
24.044444
81
0.604796
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 './AutoSizeInput.css'; type Props = { className?: string, on...
20.966102
78
0.608494
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 {NormalizedWheelDelta} from './utils/normalizeWheel'; import type {Point} from './geometry'; import {us...
23.972549
74
0.639391
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ export * from './index.stable.js';
20.818182
66
0.682008
Python-Penetration-Testing-for-Developers
let React; let ReactNoop; let Scheduler; let act; let Suspense; let useState; let textCache; let readText; let resolveText; // let rejectText; let assertLog; let waitForPaint; describe('ReactSuspenseWithNoopRenderer', () => { beforeEach(() => { jest.resetModules(); React = require('react'); ReactNoop ...
22.640678
67
0.486161
null
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ 'use strict'; export * from './src/useSubscription';
18.923077
66
0.686047
owtf
import Fixture from '../../Fixture'; const React = window.React; class ReplaceEmailInput extends React.Component { state = { formSubmitted: false, }; onReset = () => { this.setState({formSubmitted: false}); }; onSubmit = event => { event.preventDefault(); this.setState({formSubmitted: true...
19.707317
63
0.53184
PenetrationTestingScripts
'use strict'; /** @flow */ async function addItem(page, newItemText) { await page.evaluate(text => { const {createTestNameSelector, findAllNodes} = window.REACT_DOM_APP; const container = document.getElementById('iframe').contentDocument; const input = findAllNodes(container, [ createTestNameSele...
20.461538
72
0.667864
cybersecurity-penetration-testing
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment node */ 'use strict'; let React; let ReactDOMServer; let ReactDOMServerBrowser; des...
28.935484
88
0.650674
Python-Penetration-Testing-for-Developers
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core * @jest-environment node */ /* eslint-disable no-func-assign */ 'use strict'; let React; let textCache;...
30.269124
127
0.532299
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 {ImportManifestEntry} from './shared/ReactFlightImportMetadata'; import {join} from 'path'; import {pat...
32.474088
160
0.534606
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 */ // $FlowFixMe[method-unbinding] const hasOwnProperty = Object.prototype.hasOwnProperty; export default hasOwnProper...
22.214286
66
0.737654
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 */ /* eslint-disable no-var */ import type {PriorityLevel} from '../SchedulerPriorities'; import { enableSchedulerD...
28.648286
86
0.688886
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 React from 'react'; import useTheme from './useTheme'; export function Component() { const theme = useThem...
19.277778
66
0.684066
owtf
import {useState, useEffect} from 'react'; export default function useTimer() { const [value, setValue] = useState(() => new Date()); useEffect(() => { const id = setInterval(() => { setValue(new Date()); }, 1000); return () => clearInterval(id); }, []); return value.toLocaleTimeString(); }
23.615385
55
0.595611
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.810651
93
0.561396
owtf
'use client'; import * as React from 'react'; let LazyDynamic = React.lazy(() => import('./Dynamic.js').then(exp => ({default: exp.Dynamic})) ); export function Client() { const [loaded, load] = React.useReducer(() => true, false); return loaded ? ( <div> loaded dynamically: <LazyDynamic /> </di...
18.454545
67
0.592506
owtf
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @emails react-core */ // These tests are based on ReactJSXElement-test, // ReactJSXElementValidator-test, ReactComponent-test...
27
80
0.626678
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 {Wakeable, Thenable} from 'shared/ReactTypes'; import {REACT_LAZY_TYPE} from 'shared/ReactSymbols'; co...
28.636364
83
0.579679
owtf
import Fixture from '../../Fixture'; import FixtureSet from '../../FixtureSet'; import TestCase from '../../TestCase'; import SwitchDateTestCase from './switch-date-test-case'; const React = window.React; class DateInputFixtures extends React.Component { render() { return ( <FixtureSet title="Dates"> ...
26.575758
74
0.616062
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...
42.107143
743
0.653129
owtf
import {createContext} from 'react'; const ThemeContext = createContext(null); export default ThemeContext;
17.5
41
0.790909
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...
30.425
743
0.603939
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...
42.107143
743
0.653129
Tricks-Web-Penetration-Tester
// @flow import type {ComponentType} from "react"; import createGridComponent from './createGridComponent'; import type { Props, ScrollToAlign } from './createGridComponent'; const FixedSizeGrid: ComponentType<Props<$FlowFixMe>> = createGridComponent({ getColumnOffset: ({ columnWidth }: Props<any>, index: number)...
28.202429
92
0.579451
PenetrationTestingScripts
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ 'use strict'; /* eslint-disable no-unused-vars */ type JestMockFn<TArguments: $ReadOnlyArray<any>, TReturn> = { ...
27.86661
187
0.666255
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 */ let React; let ReactNoop; let Scheduler; let act; let Suspense; let SuspenseList; let getCacheForType; ...
23.185714
97
0.596889
Mastering-Kali-Linux-for-Advanced-Penetration-Testing-Second-Edition
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e((t=t||self).ReactWindow={},t.React)}(this,function(t,e){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){...
8,225.666667
24,635
0.74063
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 React = require('react'); const ReactDOMClient = require('react-dom/client'); cons...
29.25
93
0.452359
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...
81.538462
1,460
0.800808
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 */ declare var $$$config: any; export opaque type ClientManifest = mixed; export opaque type ClientReference<T> = mixe...
40.592593
84
0.794118
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 {DispatchConfig} from './ReactSyntheticEventType'; import type { AnyNativeEvent, PluginName, Legac...
27.49434
104
0.698808