type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
getFirstToken(node: ESTree.Node, options?: SourceCode.CursorWithSkipOptions): AST.Token | null;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getFirstTokens(node: ESTree.Node, options?: SourceCode.CursorWithCountOptions): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getLastToken(node: ESTree.Node, options?: SourceCode.CursorWithSkipOptions): AST.Token | null;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getLastTokens(node: ESTree.Node, options?: SourceCode.CursorWithCountOptions): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokenBefore( node: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithSkipOptions, ): AST.Token | null;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokensBefore( node: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithCountOptions, ): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokenAfter( node: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithSkipOptions, ): AST.Token | null;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokensAfter( node: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithCountOptions, ): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getFirstTokenBetween( left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithSkipOptions, ): AST.Token | null;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getFirstTokensBetween( left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithCountOptions, ): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getLastTokenBetween( left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithSkipOptions, ): AST.Token | null;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getLastTokensBetween( left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, options?: SourceCode.CursorWithCountOptions, ): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokensBetween( left: ESTree.Node | AST.Token | ESTree.Comment, right: ESTree.Node | AST.Token | ESTree.Comment, padding?: number | SourceCode.FilterPredicate | SourceCode.CursorWithCountOptions, ): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokens(node: ESTree.Node, beforeCount?: number, afterCount?: number): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getTokens(node: ESTree.Node, options: SourceCode.FilterPredicate | SourceCode.CursorWithCountOptions): AST.Token[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
commentsExistBetween(left: ESTree.Node | AST.Token, right: ESTree.Node | AST.Token): boolean;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getCommentsBefore(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getCommentsAfter(nodeOrToken: ESTree.Node | AST.Token): ESTree.Comment[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getCommentsInside(node: ESTree.Node): ESTree.Comment[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
verify(code: SourceCode | string, config: Linter.Config, filename?: string): Linter.LintMessage[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
verify(code: SourceCode | string, config: Linter.Config, options: Linter.LintOptions): Linter.LintMessage[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
verifyAndFix(code: string, config: Linter.Config, filename?: string): Linter.FixReport;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
verifyAndFix(code: string, config: Linter.Config, options: Linter.FixOptions): Linter.FixReport;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getSourceCode(): SourceCode;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
defineRule(name: string, rule: Rule.RuleModule): void;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
defineRules(rules: { [name: string]: Rule.RuleModule }): void;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getRules(): Map<string, Rule.RuleModule>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
defineParser(name: string, parser: Linter.ParserModule): void;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
static outputFixes(results: ESLint.LintResult[]): Promise<void>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
static getErrorResults(results: ESLint.LintResult[]): ESLint.LintResult[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
lintFiles(patterns: string | string[]): Promise<ESLint.LintResult[]>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
lintText(code: string, options?: { filePath?: string; warnIgnored?: boolean }): Promise<ESLint.LintResult[]>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
calculateConfigForFile(filePath: string): Promise<any>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
isPathIgnored(filePath: string): Promise<boolean>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
loadFormatter(nameOrPath?: string): Promise<ESLint.Formatter>;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
executeOnFiles(patterns: string[]): CLIEngine.LintReport;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
resolveFileGlobPatterns(patterns: string[]): string[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getConfigForFile(filePath: string): Linter.Config;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
executeOnText(text: string, filename?: string): CLIEngine.LintReport;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
addPlugin(name: string, pluginObject: any): void;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
isPathIgnored(filePath: string): boolean;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
getFormatter(format?: string): CLIEngine.Formatter;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
static getErrorResults(results: CLIEngine.LintResult[]): CLIEngine.LintResult[];
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
static getFormatter(format?: string): CLIEngine.Formatter;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
static outputFixes(report: CLIEngine.LintReport): void;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
MethodDeclaration
run( name: string, rule: Rule.RuleModule, tests: { valid?: Array<string | RuleTester.ValidTestCase>; invalid?: RuleTester.InvalidTestCase[]; }, ): void;
444sergey444/todo
node_modules/@types/eslint/index.d.ts
TypeScript
TypeAliasDeclaration
/** * A type representing the strings that are valid loss names. */ export type ActivationSerialization = typeof activationOptions[number];
18037128621/tfjs
tfjs-layers/src/keras_format/activation_config.ts
TypeScript
TypeAliasDeclaration
// Sad that we have to do all this just for hard_sigmoid vs. hardSigmoid. // TODO(soergel): Move the CamelCase versions back out of keras_format // e.g. to src/common.ts. Maybe even duplicate *all* of these to be pedantic? /** @docinline */ export type ActivationIdentifier = 'elu'|'hardSigmoid'|'linear'|'relu'|'relu6'...
18037128621/tfjs
tfjs-layers/src/keras_format/activation_config.ts
TypeScript
FunctionDeclaration
/** * All props pass through to `<Projection projection="albersUsa" {...props} />` */ export default function AlbersUsa<Datum extends GeoPermissibleObjects>( props: ProjectionProps<Datum>, ) { return <Projection<Datum> projection="albersUsa" {...props} />; }
Dusch4593/vx
packages/vx-geo/src/projections/AlbersUsa.tsx
TypeScript
InterfaceDeclaration
export default interface IUserForm extends IUser { password: string }
covid5g/cvm-backend
src/Service/User/IUserForm.ts
TypeScript
FunctionDeclaration
async function bootstrap() { const app = await NestFactory.create(AppModule); await app.listen(3000); }
malkaviano/node-nestjs-template
src/main.ts
TypeScript
ArrowFunction
() => { this.element.innerHTML = this.buffer.join("\n") }
sinclairzx81/tesseract
test/run/logger.ts
TypeScript
ClassDeclaration
export class ConsoleLogger implements Logger { constructor() { } public log(message: string) { console.log(message) } }
sinclairzx81/tesseract
test/run/logger.ts
TypeScript
ClassDeclaration
export class ElementLogger implements Logger { private buffer: string[] constructor(private element: HTMLElement) { this.buffer = new Array(48) for(let i = 0; i < 48; i++) { this.buffer[i] = "" } } public log(message: string) { this.buffer.shift() this.buffer.push(message) reques...
sinclairzx81/tesseract
test/run/logger.ts
TypeScript
InterfaceDeclaration
/*-------------------------------------------------------------------------- tesseract - gpgpu compute library for javascript The MIT License (MIT) Copyright (c) 2017 Haydn Paterson (sinclair) <haydn.developer@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software a...
sinclairzx81/tesseract
test/run/logger.ts
TypeScript
MethodDeclaration
public log(message: string) { console.log(message) }
sinclairzx81/tesseract
test/run/logger.ts
TypeScript
MethodDeclaration
public log(message: string) { this.buffer.shift() this.buffer.push(message) requestAnimationFrame(() => { this.element.innerHTML = this.buffer.join("\n") }) }
sinclairzx81/tesseract
test/run/logger.ts
TypeScript
FunctionDeclaration
export function registerExposedModule(moduleName: string, modules: any) { if (exposeModuleMap[moduleName]) { console.error('module has been registered in expose module map'); return; } exposeModuleMap[moduleName] = modules; }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
FunctionDeclaration
export function mount<T extends EmitterProps>(App: AppComponent<T>, container?: Element | null, id?: string) { class ConsoleApp extends React.Component<T & IProps> { public componentDidCatch() {/*Empty*/} public componentDidMount() { const props = getProps(this.props); if (!props) { retu...
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ArrowFunction
(data: any) => { window.postMessage(data.data, null); }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ArrowFunction
(emitter: EventEmitter) => { emitter && emitter.on('main:postMessage', globalEventEmitter); }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ArrowFunction
(emitter: EventEmitter) => { emitter && emitter.off('main:postMessage', globalEventEmitter); }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ArrowFunction
(props) => { const appProps = { ...props, ...(props.appProps || {}) }; delete appProps.domElement; delete appProps.singleSpa; delete appProps.mountParcel; return appProps || {}; }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ArrowFunction
() => document.getElementsByTagName(id)[0]
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ClassDeclaration
class ConsoleApp extends React.Component<T & IProps> { public componentDidCatch() {/*Empty*/} public componentDidMount() { const props = getProps(this.props); if (!props) { return; } const { emitter } = props; bindEvents(emitter) } public componentWillUnmount() {...
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
InterfaceDeclaration
interface EmitterProps { emitter: EventEmitter; }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
InterfaceDeclaration
interface IProps { customProps: EmitterProps; appProps: EmitterProps; appDidCatch?: (error: Error) => void; logger: Logger; }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
TypeAliasDeclaration
type AppComponent<T> = React.ComponentClass<T & EmitterProps, any> | React.FunctionComponent<T & EmitterProps> | string;
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
MethodDeclaration
public componentDidCatch() {/*Empty*/}
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
MethodDeclaration
public componentDidMount() { const props = getProps(this.props); if (!props) { return; } const { emitter } = props; bindEvents(emitter) }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
MethodDeclaration
public componentWillUnmount() { const { emitter } = getProps(this.props); unbindEvents(emitter) }
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
MethodDeclaration
public render () { const props = getProps(this.props); const { logger, appDidCatch } = props; const contextValue: IContextProps = { inOsSandBox: isOsContext(), appProps: props }; return ( <ErrorBoundary logger={logger} appDidCatch={appDidCatch...
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
MethodDeclaration
Context ? ( <Context
h-a-n-a/alibabacloud-alfa
packages/react/react-portal/src/mount.tsx
TypeScript
ArrowFunction
({targetModel}: any) => { // const {target, source, targetModel, item} = params; const newIds = targetModel.map((m: Bookmark) => m.id); this.bookmarkService.reorderBookmarks(newIds); }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
ArrowFunction
(m: Bookmark) => m.id
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
ArrowFunction
(bookmarkIN) => { if (bookmarkIN) { if (bookmarkIN.id) { this.bookmarkService.updateBookmark(bookmarkIN.id, bookmarkIN); } else { this.bookmarkService.addBookmark(bookmarkIN); } } }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
ClassDeclaration
@Component({ selector: 'bookmark-bar', templateUrl: './bookmark-bar.component.html', styleUrls: ['./bookmark-bar.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, animations: [ fadeAnimation, slideAnimation, ], }) export class BookmarkBarComponent implements OnDestroy { isDragOve...
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
ngOnDestroy() { this._subs.unsubscribe(); }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
@HostListener('dragenter', ['$event']) onDragEnter(ev: DragEvent) { this.dragEnterTarget = ev.target as HTMLElement; ev.preventDefault(); this.isDragOver = true; }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
@HostListener('dragleave', ['$event']) onDragLeave(ev: DragEvent) { if (this.dragEnterTarget === (ev.target as HTMLElement)) { ev.preventDefault(); this.isDragOver = false; } }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
@HostListener('drop', ['$event']) onDrop(ev: DragEvent) { this.bookmarkService.createFromDrop(ev); this.isDragOver = false; }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
openEditDialog(bookmark?: Bookmark) { this._matDialog.open(DialogEditBookmarkComponent, { restoreFocus: true, data: { bookmark }, }).afterClosed() .subscribe((bookmarkIN) => { if (bookmarkIN) { if (bookmarkIN.id) { this.bookmarkService.updateBookmar...
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
remove(id: string) { this.bookmarkService.deleteBookmark(id); }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
MethodDeclaration
trackByFn(i: number, bookmark: Bookmark) { return bookmark.id; }
freetoken-Tg1483/super-productivity
src/app/features/bookmark/bookmark-bar/bookmark-bar.component.ts
TypeScript
FunctionDeclaration
export function useCommonBindings( props: CommonProps, config: InputConfig | TextareaConfig, ): CommonBindings<HTMLInputElement | HTMLTextAreaElement> { const { accessor, control } = useValueAccessor() useFormItemRegister(control) const { elementRef, focus, blur } = useFormElement<HTMLInputElement | HTMLTex...
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
() => { watchEffect(() => { const value = accessor.valueRef.value ?? '' const element = elementRef.value! if (element.value !== value) { element.value = value } }) }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
() => { const value = accessor.valueRef.value ?? '' const element = elementRef.value! if (element.value !== value) { element.value = value } }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
() => accessor.disabled.value
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
() => props.clearable ?? config.clearable
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
() => props.clearIcon ?? config.clearIcon
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
() => isDisabled.value || props.readonly || !accessor.valueRef.value
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(evt: Event) => { if (isComposing.value) { return } const { value } = evt.target as HTMLInputElement callEmit(props.onInput, evt) accessor.setValue(value) }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(evt: CompositionEvent) => { isComposing.value = true callEmit(props.onCompositionStart, evt) }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(evt: CompositionEvent) => { callEmit(props.onCompositionEnd, evt) if (isComposing.value) { isComposing.value = false handlerInput(evt) } }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(evt: FocusEvent) => { isFocused.value = true callEmit(props.onFocus, evt) }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(evt: FocusEvent) => { isFocused.value = false callEmit(props.onBlur, evt) accessor.markAsBlurred() }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(evt: MouseEvent) => { callEmit(props.onClear, evt) accessor.setValue('') }
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
InterfaceDeclaration
export interface CommonBindings<T extends HTMLInputElement | HTMLTextAreaElement> { elementRef: Ref<T | undefined> accessor: FormAccessor isDisabled: ComputedRef<boolean> clearIcon: ComputedRef<string> clearHidden: ComputedRef<boolean> isClearable: ComputedRef<boolean> isFocused: Ref<boolean> focus: ...
jackson-yyy/components
packages/components/input/src/useCommonBindings.ts
TypeScript
ArrowFunction
(dict) => fc.tuple(fc.constant(dict), fc.shuffledSubarray(Object.keys(dict)))
best-doctor/ke
src/django-spa/utils/dicts/omit.test.ts
TypeScript
ArrowFunction
([source, keys]) => { const result = omit(source, keys) Object.keys(result).forEach((key) => expect(keys.includes(key)).toBeFalsy()) }
best-doctor/ke
src/django-spa/utils/dicts/omit.test.ts
TypeScript