messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT License\n\nexport { PublicClientApplication } from './AppConfig/publicClientApplication';\nexport { ApplicationConfiguration } from './AppConfig/app... | typescript | edit | 0 | 0 | mit | 331f228aacd2228be58f2d7aa75e5fcfa7c9ed64 | AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication... | lib/msal-electron-proof-of-concept/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as webpack from 'webpack';\nimport * as path from 'path';\n\nexport default {\n resolve: {\n extensions: [ '.ts', '.js', '.json' ]\n },\n module: {\n rules: [\n {\n test: /\\.ts$/,\n use: [\n ... | typescript | edit | 0 | 0 | mit | a5715987222d047923790ec9e5a104a2251a3a52 | nowzoo/nowzoo-angular-bootstrap-lite,nowzoo/nowzoo-angular-bootstrap-lite,trekhleb/ng-library-starter,trekhleb/angular-library-seed,trekhleb/angular-library-seed,trekhleb/angular-library-seed,nowzoo/nowzoo-angular-bootstrap-lite,trekhleb/ng-library-starter,trekhleb/ng-library-starter | webpack-test.config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Dexie from 'dexie'\n\n// NB: This _must_ be incremented whenever the DB key scheme changes.\nconst DatabaseVersion = 1\n\nexport interface IGitHubUser {\n readonly id?: number\n readonly endpoint: string\n readonly email: stri... | typescript | edit | 0 | 1 | mit | 41e554429e20d91536767a2accb6b2a7dbadbfb3 | artivilla/desktop,desktop/desktop,gengjiawen/desktop,kactus-io/kactus,say25/desktop,say25/desktop,gengjiawen/desktop,BugTesterTest/desktops,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,BugTesterTest/desktops,gengjiawen/desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,desktop/desktop,j-f1/forked-de... | app/src/lib/dispatcher/github-user-database.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as D from '../windef';\nimport * as GT from '../types';\n\n\nexport const fnDef: GT.Win32FnDef = {\n GetLastError: [D.DWORD, []], // err code: https://msdn.microsoft.com/zh-cn/library/windows/desktop/ms681381(v=vs.85).aspx\n... | typescript | edit | 0 | 0 | mit | 7e63d9fd1e2e3f3e4a4c59f0dbad1f4f76f65343 | waitingsong/node-win32-api,waitingsong/node-win32-api,waitingsong/node-win32-api | src/lib/kernel32/api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default interface ClipboardRepository {\n read(): string;\n\n write(text: string): void;\n}\n\nexport class ClipboardRepositoryImpl {\n read(): string {\n const textarea = window.document.createElement(\"textarea\");\n w... | typescript | edit | 0 | 2 | mit | 3fdc3e999ef5aa7c6de67b5cc50181dc51feb297 | ueokande/vim-vixen,ueokande/vim-vixen,ueokande/vim-vixen | src/content/repositories/ClipboardRepository.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Bookmarks } from 'webextension-polyfill-ts'\n\nimport { TabManager } from 'src/activity-logger/background/tab-manager'\nimport { pageIsStub } from 'src/page-indexing/utils'\nimport PageStorage from 'src/page-indexing/background... | typescript | edit | 0 | 3 | mit | 9936147bc9ccb8f21012f87295a6779759221536 | WorldBrain/WebMemex,WorldBrain/WebMemex | src/search/bookmarks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from \"fs-extra\";\nimport * as recursiveReaddir from \"recursive-readdir\";\n\nexport default class HelperFS {\n /**\n * Provides functionality of deprecated fs.exists()\n * See https://github.com/nodejs/node/... | typescript | edit | 0 | 2 | mit | b1382a56b1a85b58ac204cc73a755df8520672e4 | crossroads-education/eta,crossroads-education/eta | helpers/fs.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { Text } from 'rebass';\n\nimport { RemoteGameComponent } from 'lobby/components/RemoteGameComponent';\nimport { RemoteGameStore } from 'lobby/store... | typescript | edit | null | null | mit | aff2e40d800399ecc64d073e3f0f8c290a5b128a | tomwwright/graph-battles,tomwwright/graph-battles,tomwwright/graph-battles | packages/game/src/lobby/containers/RemoteGameList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for Custom Functions 1.4\n// Project: http://dev.office.com\n// Definitions by: OfficeDev <https://github.com/OfficeDev>, Michael Zlatkovsky <https://github.com/Zlatkovsky>, Michelle Scharlock <https://github.com/msc... | typescript | edit | 0 | 0 | mit | dd5b155ae286a546e880a4be9551f185f29f64a9 | dsebastien/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,AgentME/DefinitelyTyped,markogresak/DefinitelyT... | types/custom-functions-runtime/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport * as chai from 'chai';\n\ndescribe('output', () => {\n it('work', () => {\n })\n})\n\n```\n\nApply this change: Test fixture for output widget"
},
{
"role": "assistant",
"content": "\nimport * as chai from 'ch... | typescript | edit | 0 | 1 | bsd-3-clause | 61970836544f8879bf5cb38b979c2f566a99bd57 | SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,SylvainCorlay/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,ipython/ipywidgets | jupyter-widgets-htmlmanager/test/src/output_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { combineReducers } from \"redux-immutable\";\nimport { Action } from \"redux\";\nimport * as Immutable from \"immutable\";\n\nimport {\n makeKernelCommunicationRecord,\n makeKernelsCommunicationRecord\n} from \"@nteract/types\... | typescript | edit | 0 | 9 | bsd-3-clause | 72feff21babbbb428256920ea7da17fec0161ed1 | nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,rgbkrk/nteract,nteract/composition,rgbkrk/nteract,nteract/composition,rgbkrk/nteract,nteract/nteract | packages/reducers/src/core/communication/kernels.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* eslint-disable no-console */\nimport { loggerFns, OBJ, MESSAGE } from '../../test/fixtures';\nimport logger, { Logger, LoggerFunction } from './logger';\n\ntype IndexableConsole = typeof console & {\n [key: string]: LoggerFunction |... | typescript | edit | 0 | 1 | mit | a3a0b52bf24aea09d5f0cd9e457ad6d60ae0a1e8 | wKovacs64/pwned,wKovacs64/pwned | src/utils/logger.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {MaxesState} from \"./state/MaxesState\";\n\nexport class Game extends Phaser.Game {\n constructor() {\n super(\"100\", \"100\", Phaser.AUTO);\n\n this.state.add(\"maxes\", MaxesState);\n\n this.state.star... | typescript | edit | 0 | 1 | mit | 2899c07eae6b273279aca67a5555fc747a4851c9 | NickH-nz/ts-reference-for-automated-testing | src/game.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\nimport { UpDocument } from './UpDocument'\nimport { Heading } from './Heading'\nimport { concat } from '../CollectionHelpers'\n\n\nexport function getEntriesForTableOfContents(nod... | typescript | edit | 0 | 2 | mit | 3a82c2207710d67ee2829a0f2ae1fc66bddea6cd | start/up,start/up | src/SyntaxNodes/getEntriesForTableOfContents.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SettingService } from './setting-service';\nimport { Filter } from './../models/filter';\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport 'rxjs/add/operator/map';\nimport { ImsService ... | typescript | edit | 0 | 1 | mit | 1ebf3979967a9199f529d2553a5e18aeb98947db | IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app | src/providers/auth-service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// @flow\nimport * as React from \"react\";\nimport { connect } from \"react-redux\";\n\nimport Main from \"../components/Main\";\nimport { actions } from \"../redux\";\n\nfunction detectPlatform(req) {\n if (req && req.headers) {\n ... | typescript | edit | null | null | bsd-3-clause | 24dd0b1d26c316852cd3f645f7bd394ffe0f3734 | nteract/composition,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract | applications/play/pages/index.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { satisfies } from 'semver';\nimport { Workspace } from '../workspace';\nimport { Dependency } from '../manifest';\nimport { Registration } from '../sources';\nimport { DependencyGraph } from './dependency-graph';\nimport Resolve... | typescript | edit | 0 | 4 | mit | e341abd96558fb529187b2feab8e553340076deb | vba-blocks/vba-blocks,vba-blocks/vba-blocks,vba-blocks/vba-blocks | src/resolve/latest-solver.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../../index'\nimport { InlineNsflNode } from '../../../SyntaxNodes/InlineNsflNode'\n\n\ndescribe(\"The text in an inline NSFL convention's label\", () => {\n it(\"uses the provided term... | typescript | edit | 0 | 1 | mit | 0d5fb0720077993c4f6c2f76a62233f58e32beb6 | start/up,start/up | src/Test/Html/Config/ToggleNsfl.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Config,\n ParserConfig,\n validate,\n parseConfig,\n ConversionType\n} from './config/index';\n\ntype Parsed = string | number | Date;\ninterface ParsedData {\n [key: string]: Parsed;\n}\n\nexport default class SegmentP... | typescript | edit | 0 | 3 | mit | c7eed5c11e604b4246575cb8f4ebf58f2ca8217c | adregan/segment-parser,adregan/segment-parser | src/SegmentParser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nexport class Button extends React.Component {\n render() {\n return (\n <div className=\"button\">{this.props.children}</div>\n );\n }\n}\n\nexport class BadButton extends React.Component ... | typescript | edit | null | null | mit | c035dab94b1a7e6cd5f3a6024a3d435bebb026ae | kulshekhar/ts-jest,kulshekhar/ts-jest | tests/button/Button.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from \"fs\";\nimport testRunner = require(\"vscode/lib/testrunner\");\nconst onExit = require(\"signal-exit\"); // tslint:disable-line:no-var-requires\n\n// Ensure we write coverage on exit.\ndeclare const __coverage__: a... | typescript | edit | 0 | 5 | mit | c02aba3c52dd54e86be3859cb8938ffde12c0c24 | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | test/test_runner.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport fs = require(\"fs\");\nimport { exec } from \"shelljs\";\n\nfunction cmd(command: string) {\n const result: any = exec(command);\n return result.stdout;\n}\n\nconst porcelain = cmd(\"git status --porcelain\");\nif (porcelai... | typescript | edit | 0 | 1 | mit | 3e3b468047dc8ebdfa46ec5a96341b1104a6f38e | mmkal/slimejs,mmkal/slimejs,mmkal/slimejs,mmkal/slimejs | transpilation/deploy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ComponentFactoryResolver, ComponentRef, ApplicationRef, Injectable, ReflectiveInjector,\n\tType, ViewContainerRef } from '@angular/core';\n\nimport { BaseModal } from './base-modal.component';\nimport { BaseModalConfig } from '... | typescript | edit | 0 | 2 | mit | 483393af7a5b68c76d7ef6502ee4e42029f3dbf9 | czeckd/angular2-simple-modal,czeckd/angular-simple-modal,czeckd/angular2-simple-modal,czeckd/angular-simple-modal,czeckd/angular-simple-modal,czeckd/angular2-simple-modal | app/modal/simple-modal.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"./typings/bundle.d.ts\" />\n\nimport {task, src, dest, watch} from 'gulp';\nimport * as ts from 'gulp-typescript';\nimport * as tslint from 'gulp-tslint';\nimport * as babel from 'gulp-babel';\n\ntask('build', ['bu... | typescript | edit | 0 | 1 | mit | f9527fc7e887912cc9f02efc1004e051ee1ff0d8 | MissKernel/Misskey-API,misskey-delta/Misskey-API,sirotama/misskey-api,sirotama/misskey-api,misskey-delta/Misskey-API | gulpfile.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { StateDeclaration } from '@waldur/core/types';\n\nimport { OfferingDetailsContainer } from './OfferingDetailsContainer';\n\nexport const states: StateDeclaration[] = [\n {\n name: 'offeringDetails',\n url: '/offering/:uui... | typescript | edit | 0 | 0 | mit | 3e56e89e380a92476375cf94d546c81ff65514dc | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/offering/routes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Observable} from 'rx';\n\nexport interface DOMSelection {\n observable: Observable<any>;\n events: (eventType: string) => Observable<any>;\n}\n\nexport class MockedDOMSelection {\n public observable: Observable<any>;\n\n con... | typescript | edit | 0 | 3 | mit | e8a69fdc60b394b377c18f3c8aedcbd746a1b6e4 | cyclejs/cyclejs,staltz/cycle,staltz/cycle,maskinoshita/cyclejs,cyclejs/cyclejs,ntilwalli/cyclejs,maskinoshita/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,feliciousx-open-source/cyclejs,cyclejs/cyclejs,ntilwalli/cyclejs,ntilwalli/cyclejs,feliciousx-open-source/cyclejs,feliciousx-open-so... | dom/src/mockDOMSource.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { StatBlock } from \"../../common/StatBlock\";\nimport { InitializeSettings } from \"../Settings/Settings\";\nimport { buildEncounter } from \"./buildEncounter\";\n\ndescribe(\"Combatant\", () => {\n beforeEach(() => {\n ... | typescript | edit | 0 | 1 | mit | b7f0903385fadd673fb44c3a0ad529742b076d7e | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/test/Combatant.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AbstractDevice } from '../abstract-device';\n\nexport abstract class AbstractUSBDevice extends AbstractDevice {\n abstract readonly pid: string;\n abstract readonly vid: string;\n readonly driver = 'CdcAcmSerialDriver';\n a... | typescript | edit | 0 | 0 | apache-2.0 | 54233ee9f61917909662062baa5bf13d31c0696d | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | src/app/states/devices/usb/abstract-usb-device.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Bull from 'bull';\nimport deleteFile from './delete-file';\n\nconst jobs = {\n\tdeleteFile,\n} as any;\n\nexport default function(q: Bull.Queue) {\n\tfor (const [k, v] of Object.entries(jobs)) {\n\t\tq.process(k, v as any);\... | typescript | edit | 0 | 2 | mit | ed0070c470b9371378501a47c8cf304bf796c4da | syuilo/Misskey,syuilo/Misskey | src/queue/processors/object-storage/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../../typings/bundle.d.ts\" />\n\nimport async = require('async');\nimport Application = require('../../models/application');\n\nimport conf = require('../../config');\n\nexport = render;\n\nvar render = (req: a... | typescript | edit | 0 | 2 | mit | cb94bbd1deffa90f4795b2a11fd3278be70ff5f8 | sirotama/Misskey,sirotama/Misskey | src/web/controllers/dev.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { PureComponent } from 'react'\nimport { browser } from 'webextension-polyfill-ts'\n\nconst styles = require('./CongratsMessage.css')\n\nconst partyPopperIcon = browser.runtime.getURL('/img/party_popper.svg')\n\nclass Cong... | typescript | edit | null | null | mit | df55617448625673676ef57cb5b2e16098a4d825 | WorldBrain/WebMemex,WorldBrain/WebMemex | src/sidebar-overlay/components/CongratsMessage.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport firebaseAdmin from 'firebase-admin';\nimport express from 'express';\nimport PushService from '../services/PushService';\n\nconst router: express.Router = express.Router();\nconst pushService: PushService = new PushService();\n\n... | typescript | edit | 0 | 2 | mit | 380bd7a7a892e8bb33c9afbf8dc5b4e7d3ae6c7e | schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service | src/routes/push.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// rx streams require events to be replayed over time to make any sense.\nexport default function replaySteps(steps: any[], timeoutMax: number = 90) {\n if (steps.length > 0) {\n let head = steps[0];\n let headArg = und... | typescript | edit | 0 | 10 | mit | ee0c6428bc8a8cc95c0bad9b2cf3506019fb4d90 | stofte/linq-editor,stofte/ream-editor,stofte/ream-editor,stofte/ream-editor,stofte/ream-editor | app/test/replay-steps.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { browser, ExpectedConditions, promise } from 'protractor';\nimport { Create, Ladder } from './app.po';\n\ndescribe('base flow', () => {\n const ladder: Ladder = new Ladder();\n const create: Create = new Create();\n const one... | typescript | edit | 0 | 1 | mit | a0d258fbcd93623cfd8983578b1d97e049ccce9c | lrem/ladders,lrem/ladders,lrem/ladders,lrem/ladders,lrem/ladders | web/e2e/app.e2e-spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport EthereumCommon from 'ethereumjs-common';\n\n/**\n * A Common object defining the chain and the hardfork for CELO Testnet\n */\nexport const testnetCommon = EthereumCommon.forCustomChain(\n 'mainnet', // It's a test net based on ... | typescript | edit | 0 | 0 | apache-2.0 | a4fe145370f39657743db0f8ad0f4cee353aa7e8 | BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS | modules/account-lib/src/coin/celo/resources.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Course from './Course';\nimport { generateCourses } from './CourseGenerator';\nimport { parseCourses } from './CourseParser';\n\nfor (let i = 0; i < 100; i++) {\n const sample = [...generateCourses(5)];\n\n const parsedCour... | typescript | edit | 0 | 1 | unlicense | 167375ea0a79ed883adf761032e67eb1941555f2 | rizadh/scheduler | src/test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Head from 'next/head'\nimport Link from 'next/link'\n\nexport default function Layout({\n children,\n title\n}: {\n children: React.ReactNode\n title?: string\n}) {\n return (\n <>\n <Head>\n <title>{title && ... | typescript | edit | null | null | mit | 17050243ba59ee4268210f277bc5501c692fd26c | kplattret/kplattret.github.io,kplattret/kplattret.github.io | components/layout.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport fs from 'fs';\nimport { resolve } from 'path';\nimport type { StoriesEntry, NormalizedStoriesEntry } from '../types';\n\nconst DEFAULT_FILES = '*.stories.@(mdx|tsx|ts|jsx|js)';\nconst DEFAULT_TITLE_PREFIX = '';\n\nexport const no... | typescript | edit | 0 | 7 | mit | a1091a424f26f58b46a03a9e263abc711509150e | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | lib/core-common/src/utils/normalize-stories.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IDatabase } from \"pg-promise\";\n\n// tslint:disable-next-line: no-any\nexport async function runSchema(db: IDatabase<any>) {\n // Create schema\n await db.none(`\n CREATE TABLE metrics_activities (\n u... | typescript | edit | 0 | 1 | apache-2.0 | 65d791cccddc7b6bb6d1e8b439a808d02d7bc27f | matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack | src/datastore/postgres/schema/v5.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { setup as bemClassNameSetup, BemSettings } from 'bem-cn';\n\ninterface Modifications {\n [name: string]: string | boolean | undefined;\n}\n\nlet block = bemClassNameSetup();\n\nfunction bemClassNameLite(blockName: string) {\n ... | typescript | edit | 0 | 4 | mit | 3cd2b3c994752706d1e24634a1ac332d6960891b | mistakster/bem-cn-lite,mistakster/bem-cn-lite | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\n\nconsole.log(\"vim-js-alternate: initialized\");\n\nimport ProjectionLoader from \"./ProjectionLoader\";\nimport { ProjectionResolver } from \"./ProjectionResolver\";\n\nvar Vim = require(\"vim-node-driver\");\nvar... | typescript | edit | 0 | 3 | mit | adb346364f6fb65e8da58149c1c2280ea99528d7 | extr0py/vim-js-alternate,extr0py/vim-js-alternate | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from \"./interface\";\n\nimport {GinBuilder} from \"./builder\";\nexport {GinBuilder} from \"./builder\";\n\nexport * from \"./enum\";\nexport * from \"./filter\";\n\n\nexport const gindownloader = new GinBuilder();\n\n```\n\nA... | typescript | edit | 0 | 0 | mit | e8b61c713cdbff32fc05b2da2873aad20532cb14 | pikax/gin-downloader,pikax/gin-downloader | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, Router } from '@angular/router';\nimport { Observable } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport clas... | typescript | edit | 0 | 3 | mit | 66e4cf764b697b018e03a664b5c980c9f795432c | DeborahK/Angular2-GettingStarted,DeborahK/Angular2-GettingStarted,DeborahK/Angular2-APM,DeborahK/Angular2-GettingStarted,DeborahK/Angular2-APM | APM-Final/src/app/products/product-detail.guard.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'demo-app',\n template: `\n <prx-header>\n <prx-navitem route=\"/\" text=\"PRX StyleGuide\"></prx-navitem>\n <prx-navuser userName=\"Mary\">\n ... | typescript | edit | 0 | 0 | mit | 048ebb49f9e381a584d4e7dd5ebe9f3734d8d608 | PRX/styleguide.prx.org,PRX/styleguide.prx.org,PRX/styleguide.prx.org,PRX/styleguide.prx.org | src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"../.d.ts\"/>\n\"use strict\";\n\nrequire(\"./../bootstrap\");\nimport * as path from \"path\";\nimport fiberBootstrap = require(\"./../common/fiber-bootstrap\");\nfiberBootstrap.run(() => {\n\t$injector.require(\"ty... | typescript | edit | 0 | 6 | apache-2.0 | 5756256af81db3e06f743d9ddf9964ebe95815da | Icenium/icenium-cli,Icenium/icenium-cli | lib/hooks/typescript-compilation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport styled from '../../../lib/styled'\nimport { Link, LinkProps } from 'react-router-dom'\n\nexport const StyledStorageItem = styled.li`\n margin: 0;\n padding: 0;\n`\n\nexport const StyledStorageItemHead... | typescript | edit | null | null | mit | 82a4ba516fa1e6c0337ce9ebeee9e54731d567a6 | Sarah-Seo/Inpad,Sarah-Seo/Inpad | src/components/SideNavigator/StorageItem/styled.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\nimport * as skinview3d from \"../src/skinview3d\";\n\nimport skin1_8Default from \"./textures/skin-1.8-default-no_hd.png\";\nimport skin1_8Slim from \"./textures/skin-1.8-slim-no_hd.png\";\nimport skinO... | typescript | edit | 0 | 1 | mit | 9ae399927f8ff982ea24da70cda58233c7a4a301 | to2mbn/skinview3d | test/test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { spawn } from 'child_process';\nimport { readFile, readFileSync, readdirSync } from 'fs';\nimport * as path from 'path';\n\nimport { formatText } from '../src/index';\n\nexport function runLuaCode(code: string): Promise<boolean>... | typescript | edit | 0 | 2 | mit | 4dffe81caf01a69b61d5144fc821387cee1dc1c1 | trixnz/lua-fmt,willmoffat/lua-fmt,willmoffat/lua-fmt,trixnz/lua-fmt | test/util.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {createState, createReducer} from \"./rxjs-redux\";\nimport {counterActions, counterReducer, CounterState} from \"./counter\";\nimport {nameActions, nameReducer, NameState} from \"./appName\";\n\n// our application state as a str... | typescript | edit | 0 | 1 | mit | 6b8df6bcea01a7ef5a956568e3347826ada2783a | Dynalon/redux-pattern-with-rx,Dynalon/redux-pattern-with-rx | src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport User from '../models/user'\nimport Repository from '../models/repository'\nimport { Commit, Branch } from './local-git-operations'\nimport { FileChange, WorkingDirectoryStatus, WorkingDirectoryFileChange } from '../models/status'... | typescript | edit | 0 | 0 | mit | 950e4a6a898e776271a233420f3cf00bdeb2c7c7 | j-f1/forked-desktop,BugTesterTest/desktops,j-f1/forked-desktop,kactus-io/kactus,gengjiawen/desktop,desktop/desktop,say25/desktop,BugTesterTest/desktops,BugTesterTest/desktops,desktop/desktop,say25/desktop,gengjiawen/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-i... | app/src/lib/app-state.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from \"fs\";\nimport { Document } from \"../../docx/document\";\nimport { Numbering } from \"../../numbering\";\nimport { Properties } from \"../../properties\";\nimport { Styles } from \"../../styles\";\nimport { Packer ... | typescript | edit | 0 | 1 | mit | 90e5cc3ad53e6a054cb3e0a0cd369613233471c3 | dolanmiu/docx,dolanmiu/docx,dolanmiu/docx | ts/export/packer/local.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport styled from 'styled-components'\n\nimport Icons from 'v2/components/UI/Icons'\n\nconst Container = styled.a`\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n padding: ${x => x.theme.... | typescript | edit | null | null | mit | 09ca7a4eafae1fda2e6929697ee792cf215afb00 | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | src/v2/components/AuthForm/components/CloseButton/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit} from \"@angular/core\";\nimport {FormControl, FormGroup, Validators} from \"@angular/forms\";\n\n@Component({\n selector: 'app-basic-example',\n templateUrl: './basic-example.component.html',\n styleUrls: [... | typescript | edit | 0 | 1 | mit | 2798e415985af98b6af8aa47c6a650f463e2983a | third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation | src/app/basic-example/basic-example.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by wiekonek on 11.12.16.\n */\nimport {Component, Input, OnInit} from '@angular/core';\nimport {ChildCard} from \"../card\";\n\n@Component({\n selector: 'child-card',\n templateUrl: './child-card.component.html'\n})\n\... | typescript | edit | 0 | 2 | mit | daab348fd5b338a2ea7cd0fd82abcd2393e7e561 | JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend,JiraGoggles/jiragoggles-frontend | src/app/card/child-card/child-card.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input } from '@angular/core';\nimport { Mage } from '../model/mage.model';\nimport { SpellBook } from '../model/spellbook.model';\nimport { Spell } from '../model/spell.model';\n\n@Component({\n selector: 'a... | typescript | edit | 0 | 2 | mit | 9f5fa1387ac80a7a49b71a32d99473975f1c95d1 | ChargerIIC/Frostgrave-WarRoster,ChargerIIC/Frostgrave-WarRoster,ChargerIIC/Frostgrave-WarRoster | src/app/spell-dialog-modal/spell-dialog-modal.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { default as classnames } from 'classnames';\nimport * as React from 'react';\nimport { UUID } from '../ItemContainer/ItemContainer';\n\ntype AccordionItemHeadingProps = React.HTMLAttributes<HTMLDivElement> & {\n hideBodyClass... | typescript | edit | null | null | mit | 36d94d4491080e07514397448707326e35b307fb | springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion | src/AccordionItemHeading/AccordionItemHeading.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as classNames from 'classnames';\n\nimport {\n Bulma,\n removeStateProps, removeColorProps, removeFullWidthProps,\n getStateModifiers, getColorModifiers, getFullWidthModifiers,\n wit... | typescript | edit | null | null | mit | 5f5f91c3d030cf05bc6a884aae60a22e7349db3a | AlgusDark/bloomer,AlgusDark/bloomer | src/elements/Button.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Controller, Get, Use, Post } from '@tsed/common';\nimport passport from 'passport'; import express from 'express';\nimport { Request, Response, NextFunction } from 'express';\nimport { createToken, passportAuthenticateGithub } ... | typescript | edit | 0 | 1 | apache-2.0 | 541211016b7c9c51384b346bf775375ed9a508f1 | stryker-mutator/stryker-badge,stryker-mutator/stryker-badge,stryker-mutator/stryker-badge,stryker-mutator/stryker-badge | packages/website-backend/src/api/auth/GithubAuth.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as numeral from \"numeral\"\nimport * as React from \"react\"\nimport * as Relay from \"react-relay\"\n\nimport styled from \"styled-components\"\nimport { secondary } from \"../../assets/fonts\"\n\ninterface TotalCountProps ex... | typescript | edit | null | null | mit | db8511828ec094844d7e445a10ccbc9e0795b640 | xtina-starr/reaction,artsy/reaction-force,craigspaeth/reaction,craigspaeth/reaction,artsy/reaction,xtina-starr/reaction,craigspaeth/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction | src/components/artwork_filter/total_count.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { connect, Dispatch } from 'react-redux';\nimport { withRouter } from 'react-router-dom';\n\nimport { AppState } from '../constants/types';\nimport GroupDetail from '../components/groupDetail';\nimport * as actions from '../actio... | typescript | edit | 0 | 2 | apache-2.0 | b5207aab2dd220cbd4252448f2f9241fd1c02f3b | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | client/src/containers/groupDetail.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for Mousetrap 1.2.2\r\n// Project: http://craig.is/killing/mice\r\n// Definitions by: Dániel Tar https://github.com/qcz\r\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\r\n\r\ninterface ExtendedKeybo... | typescript | edit | 0 | 0 | mit | 221f0bcfb0297f69d76ce4b2dcce0b32b419d0ff | esperco/DefinitelyTyped,gamesbrainiac/DefinitelyTyped,aindlq/DefinitelyTyped,acepoblete/DefinitelyTyped,bruennijs/DefinitelyTyped,danludwig/DefinitelyTyped,vagarenko/DefinitelyTyped,subash-a/DefinitelyTyped,syntax42/DefinitelyTyped,ciriarte/DefinitelyTyped,mariokostelac/DefinitelyTyped,hafenr/DefinitelyTyped,ctaggart/D... | mousetrap/mousetrap.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Rx from 'rx';\n\nimport {RESTResource} from './rest_resource';\nimport {Connection} from '../../connection';\nimport {Permissionable, getPermissions, setPermissions} from '../addons/permissions';\nimport * as types from '../... | typescript | edit | 0 | 1 | apache-2.0 | efb8c2867c089e62593b98100bd6d84b1b5b0012 | hadalin/resolwe-js,hadalin/resolwe-js,genialis/resolwe-js,genialis/resolwe-js | src/api/resources/rest/data.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as classNames from 'classnames';\nimport * as React from 'react';\nimport { react2angular } from 'react2angular';\n\nimport { RequestState } from './types';\n\ninterface ExpertRequestStateProps {\n model: {\n state: Request... | typescript | edit | null | null | mit | 226430c9ef1d7dc10befd03b99c607a0ebaffc43 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | app/scripts/components/experts/requests/ExpertRequestState.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport {getBrowserAndPages, getTestServerPort, platform} from '../... | typescript | edit | 0 | 2 | bsd-3-clause | e4132180df00f23c34eda638d1f33ed6b17e1991 | ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend | test/interactions/helpers/shared.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare function require(name: string): string;\nimport * as nprogress from \"nprogress\";\n\ninterface IWindow extends Window {\n Loadingbar: Loadingbar;\n}\n\nexport class Loadingbar {\n public static Start(): void {\n Lo... | typescript | edit | 0 | 2 | mit | 7f49b1e9d6d5a299c34d9eafabda49a073595226 | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | ui/src/app/loadingbar.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Schema} from \"@tsed/mongoose\";\n\n/**\n * Do not apply this property to schema (create virtual property)\n *\n * ### Example\n *\n * ```typescript\n * @Model()\n * @SchemaIgnore()\n * @Property()\n * kind: string;\n *\n * ```\... | typescript | edit | 0 | 1 | mit | 15da0fa8044c564873be4972759814404947aa44 | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | packages/mongoose/src/decorators/schemaIgnore.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class OnboardingTutorial {\n public constructor() {\n this.skipInstallEditor = false\n this.skipCreatePR = false\n }\n\n public getCurrentStep() {\n // call all other methods to check where we're at\n }\n\n if (th... | typescript | edit | 0 | 3 | mit | 3e6f7ab0f1cd7054c354699ad4594e5c0538d783 | kactus-io/kactus,say25/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,artivilla/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,kactus-io/k... | app/src/lib/stores/helpers/onboarding-tutorial.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useState } from 'react';\nimport { generateUID } from '../../helpers';\n\nimport { useControlled } from '../../hooks';\n\nconst useModalState = (options?: { open?: boolean; onClose?: () => void; onExit?: () => void }) => {\n ... | typescript | edit | 0 | 2 | mit | f23ff7fc541991ceb63b73ddbf67dc3d04a2cb38 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/modalTwo/useModalState.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default function SearchBox({\n text,\n onChange,\n}: {\n text: string;\n onChange: (text: string) => void;\n}) {\n return (\n <div>\n <style jsx={true}>{`\n .search_input {\n width: 100%;\n o... | typescript | edit | null | null | apache-2.0 | f855fb4eeb36240784e0f1a8c0c9031ba46ab03b | thenickreynolds/popcorngif,thenickreynolds/popcorngif | app/components/searchBox.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*!\n * This source file is part of the EdgeDB open source project.\n *\n * Copyright 2019-present MagicStack Inc. and the EdgeDB authors.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use thi... | typescript | edit | 0 | 0 | apache-2.0 | 09e45ca3a968df96d06a5428a9e4e09c92f0f762 | edgedb/edgedb-js,edgedb/edgedb-js | src/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { useTracking } from \"v2/Artsy/Analytics/useTracking\"\nimport { MockedConversation } from \"v2/Apps/__tests__/Fixtures/Conversation\"\nimport { Conversation_conversation } from \"v2/__generated__/Co... | typescript | edit | null | null | mit | 9824cc624b7d22d05d7f3ba926d1555edd0e74ec | joeyAghion/force,artsy/force,joeyAghion/force,artsy/force-public,joeyAghion/force,joeyAghion/force,eessex/force,eessex/force,eessex/force,eessex/force,artsy/force,artsy/force-public,artsy/force,artsy/force | src/v2/Apps/Conversation/__tests__/Reply.jest.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ko from \"knockout\";\n\nimport { Store } from \"../Utility/Store\";\nimport { LegacyCommandSettingsKeys } from \"./LegacyCommandSettingsKeys\";\n\nexport class Command {\n public ShowOnActionBar: KnockoutObservable<boole... | typescript | edit | 0 | 1 | mit | 04634ea4775ee34837031dabff835b705cc5e5c3 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Commands/Command.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'jasmine';\nimport { Deferred } from '../Deferred';\n\ndescribe('Deferred', () => {\n var deferred: Deferred<void>;\n\n beforeEach(() => {\n deferred = new Deferred<void>();\n });\n\n it('indicates completion',... | typescript | edit | 0 | 2 | mit | d2d437ea22c74e226e5dd489f4fdc24446a099d7 | AArnott/Nerdbank.FullDuplexStream | src/nerdbank-streams/src/tests/DeferredTests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport {ObjectDiff, StringDiff} from '@sanity/diff'\nimport {Annotation} from '../../panes/documentPane/history/types'\nimport {DiffComponent, SchemaType} from '../types'\nimport {StringFieldDiff} from '../str... | typescript | edit | null | null | mit | 07b2885f964fd2dc636e361431bdd81c3ecc7931 | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | packages/@sanity/desk-tool/src/diffs/slug/SlugFieldDiff.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport { Model } from '../data-types';\n\n@Component({\n selector: 'timeline-cred',\n templateUrl: '../../themes/_active/cred/timeline-cred.component.html',\n})\nexport class Timeline... | typescript | edit | 0 | 3 | apache-2.0 | 75a704b88e4f122072f3b098284a0318349180c7 | swcurran/TheOrgBook,swcurran/TheOrgBook,WadeBarnes/TheOrgBook,WadeBarnes/TheOrgBook,swcurran/TheOrgBook,swcurran/TheOrgBook,swcurran/TheOrgBook,WadeBarnes/TheOrgBook,WadeBarnes/TheOrgBook,WadeBarnes/TheOrgBook | tob-web/src/app/cred/timeline-cred.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { Ref } from 'react';\nimport { c } from 'ttag';\nimport { Icon, DropdownCaret } from '../../';\n\ninterface Props extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {\n co... | typescript | edit | null | null | mit | 18f9b5a43fd0c20e663c487f9e9c23ab1242ed33 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/heading/SupportDropdownButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\nimport { ControlGroup } from '../../core/controls/control-group';\nimport { ControlsService } from '../../services/controls.service';\n\n@Component({\n templateUrl: 'software-editor... | typescript | edit | 0 | 1 | mit | 56a0bee42d77cfba3822bad1a9f11bc9677e9471 | azasypkin/frunze,azasypkin/frunze,azasypkin/frunze,azasypkin/frunze | ng-app/src/modules/app/components/software-editor-view/software-editor-view.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Query,\n Resolver,\n Subscription,\n Mutation,\n Args,\n Info,\n} from '@nestjs/graphql';\nimport { PrismaService } from '../prisma/prisma.service';\nimport { Post } from '../graphql.schema';\n\n@Resolver()\nexport clas... | typescript | edit | 0 | 1 | mit | ff828b9e863004b4141ab04b3c8374fda494b61e | kamilmysliwiec/nest,kamilmysliwiec/nest | sample/22-graphql-prisma/src/posts/posts.resolver.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class TsScreenerDataService {\n private history: Array<number> = [1];\n private dataRecord: Array<[number, string]> = [];\n\n constructor() { }\n\n public saveData... | typescript | edit | 0 | 2 | mit | 229b73c46d30fe0daae3caadf13b416885fe2322 | marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website | src/app/services/ts-screener-data.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Pipe, PipeTransform } from \"@angular/core\";\nimport { DomSanitizer, SafeHtml } from \"@angular/platform-browser\";\n\n@Pipe({\n name: 'sanitizeHtml',\n pure: false\n})\nexport class SanitizerPipe implements PipeTransfor... | typescript | edit | 0 | 3 | mit | 5d51de7b780d31a0a49f9df988794a4cc1945abc | ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE,ultimate-comparisons/ultimate-comparison-BASE | app/components/pipes/sanitizer-pipe/sanitizer.pipe.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {resolve} from \"path\";\n\nconst normalizePath = require(\"normalize-path\");\n\nfunction mapExcludes(excludes: string[]) {\n return excludes.map((s: string) => `!${s.replace(/!/gi, \"\")}`);\n}\n\nfunction mapExtensions(file: ... | typescript | edit | 0 | 4 | mit | a9fb75e2ee35c204e143f8988fb1ad15656dd798 | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | packages/common/src/server/utils/cleanGlobPatterns.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { AuthbarComponent } from './authbar.component';\n\ndescribe('AuthbarComponent', () => {\n let component: AuthbarComponent;\n let fixture: ComponentFi... | typescript | edit | 0 | 1 | mit | e72197c5e49b69708ebc3aceff6e484b4b1c9966 | VitaliySokolov/chat-angular4,VitaliySokolov/chat-angular4,VitaliySokolov/chat-angular4 | src/app/components/authbar/authbar.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createRunner } from 'atom-mocha-test-runner';\n\nmodule.exports = createRunner(\n {\n htmlTitle: `atom-languageclient Tests - pid ${process.pid}`,\n reporter: process.env.MOCHA_REPORTER || 'spec',\n colors: process.pl... | typescript | edit | 0 | 3 | mit | b41f817ae1138aa83e970a800a0b9d77bae18b24 | atom/atom-languageclient,atom/atom-languageclient,atom/atom-languageclient | test/runner.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare function require(id: string): any;\n\nexport type OptimisticWrapperFunction<\n T = (...args: any[]) => any,\n> = T & {\n // The .dirty(...) method of an optimistic function takes exactly the same\n // parameter types as the o... | typescript | edit | 0 | 3 | mit | 2170266f5187e2aa586b42aa54b91f1082a75b7e | apollographql/apollo-client,apollostack/apollo-client,apollographql/apollo-client,apollostack/apollo-client,apollostack/apollo-client | packages/apollo-cache-inmemory/src/optimism.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './angular-oauth-oidic.module';\nexport * from './oauth-service';\nexport * from './token-validation/jwks-validation-handler';\nexport * from './token-validation/null-validation-handler';\nexport * from './token-validation... | typescript | edit | 0 | 0 | mit | aaa75f3c106b7ea4fb308e838a8b9dee74ad15dc | manfredsteyer/angular-oauth2-oidc,manfredsteyer/angular-oauth2-oidc,manfredsteyer/angular-oauth2-oidc | projects/lib/src/public_api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Constants {\n public static runtimeVersion = \"~0.4\";\n public static nodeVersion = \"5.9.1\";\n public static latest = \"latest\";\n public static runtimeVersionAppSettingName = \"FUNCTIONS_EXTENSION_VERSION\"... | typescript | edit | 0 | 0 | apache-2.0 | 025f167c45b8541d382c66473ba903a54949bfe1 | agruning/azure-functions-ux,projectkudu/WebJobsPortal,agruning/azure-functions-ux,chunye/azure-functions-ux,projectkudu/AzureFunctions,agruning/azure-functions-ux,chunye/azure-functions-ux,chunye/azure-functions-ux,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,agruning/azure-functions-u... | AzureFunctions.Client/app/models/constants.ts | rejected_duplicate | Near-duplicate of sample 112734 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class RegisterComponent implements ng.IComponentOptions {\n static NAME: string = 'appRegister';\n template: any;\n controllerAs: string;\n controller;\n\n constructor() {\n this.template = require('./register.component.h... | typescript | edit | 0 | 3 | mit | a73835056a0100a066ae2cd2c2f0f55546053d6e | ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io | resources/app/auth/components/register/register.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as chai from 'chai'\nconst expect = chai.expect\n\nimport * as path from 'path'\n\nimport { GitProcess, GitError } from '../lib'\n\nconst temp = require('temp').track()\n\ndescribe('git-process', () => {\n it('can launch git',... | typescript | edit | 0 | 2 | mit | c0299b7cc5b55f57a3191931e178acc4a02dc849 | desktop/dugite,desktop/dugite,desktop/dugite | test/git-process-test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nimport {\n waitInMs\n} from './helpers/helpers'\nimport { ChallengeInstruction } from './'\n\nexport const TutorialUnavailableInstruction: Challe... | typescript | edit | 0 | 0 | mit | ff0eda29d18d80c37e13900d06426520e2fc7365 | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | frontend/src/hacking-instructor/tutorialUnavailable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as OS from 'os'\nimport { UAParser } from 'ua-parser-js'\n\n/** Get the OS we're currently running on. */\nexport function getOS() {\n if (__DARWIN__) {\n // On macOS, OS.release() gives us the kernel version which isn't te... | typescript | edit | 0 | 4 | mit | 74fa589f9d5e40744b9be500c6f2a01244c588c0 | j-f1/forked-desktop,say25/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftk... | app/src/lib/get-os.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport {\n FormBuilder,\n FormGroupDirective } from '@angular/forms';\nimport { BasePluginComponent } from '../base-plugin.component';\n\n\n@Component({\n selector: 'ubuntu-con... | typescript | edit | 0 | 1 | mit | 0e06c091916b0d78edfb543e029999601d68ae16 | galaxyproject/cloudlaunch-ui,galaxyproject/cloudlaunch-ui,galaxyproject/cloudlaunch-ui | src/app/catalog/plugins/ubuntu/ubuntu.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass WebStorage {\n private storageObj: Storage;\n\n public constructor(storageObj: Storage) {\n this.storageObj = storageObj;\n }\n\n public get(key: string): string {\n if (!this.isCompatible()) { return; }\... | typescript | edit | 0 | 1 | mit | 3a79e8faf3ea612fb49b9e7ec8c2b604a767b38c | CAAL/CAAL,CAAL/CAAL,CAAL/CAAL,CAAL/CAAL | src/gui/storage.ts | rejected_duplicate | Near-duplicate of sample 112602 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"fourslash.ts\" />\r\n\r\n////import /*1*/q = /*2*/\r\n\r\nverifyIncompleteImport();\r\ngoTo.marker('2');\r\nedit.insert(\"a.\");\r\nverifyIncompleteImport();\r\n\r\nfunction verifyIncompleteImport() {\r\n goTo.ma... | typescript | edit | 0 | 1 | apache-2.0 | 3c600608d3ebbae13738ee6b7361f5ef52a734e5 | Raynos/TypeScript,ionux/TypeScript,donaldpipowitch/TypeScript,synaptek/TypeScript,msynk/TypeScript,yortus/TypeScript,blakeembrey/TypeScript,mcanthony/TypeScript,nycdotnet/TypeScript,MartyIX/TypeScript,Microsoft/TypeScript,hoanhtien/TypeScript,Mqgh2013/TypeScript,vilic/TypeScript,RyanCavanaugh/TypeScript,jwbay/TypeScrip... | tests/cases/fourslash/completionEntryForImportName.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, {PureComponent} from 'react'\n\nimport {TemplateValue} from 'src/types'\n\ninterface Props {\n item: TemplateValue\n onClick: (item: TemplateValue) => void\n style: {\n height: string\n marginBottom: string\n }\n... | typescript | edit | null | null | mit | 013d34001c10d291978a78f3d597c5711c43132a | mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdb/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxd... | ui/src/tempVars/components/TemplatePreviewListItem.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as AST from '../types/nodes';\n\n/*\n * Subclass of `Error` with additional information\n * about location of incorrect markup.\n */\nclass SyntaxError {\n message: string;\n stack: string;\n location: AST.SourceLocation;\n\... | typescript | edit | 0 | 1 | mit | 79fd19fba597ad01a07107a36ac469cc51aaa9d6 | lbdm44/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,tildeio/glimmer | packages/@glimmer/syntax/lib/errors/syntax-error.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Component from '@glimmer/component';\nimport { Link } from 'ember-link';\nimport { MenuItem } from '@cardstack/boxel/helpers/menu-item';\nimport '@cardstack/boxel/styles/global.css';\nimport './index.css';\n\ninterface TabBarArgs... | typescript | edit | 0 | 1 | mit | 4515bdf2b4c16129dbe08040a40b5213414a88f1 | cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack | packages/boxel/addon/components/boxel/tab-bar/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Game } from './game';\nimport { Player } from './player';\n\nexport class DuelWeek {\n games = new Array<Game>();\n\n constructor(\n public _id: string,\n public duelId: string,\n public weekNum: number,\n public ... | typescript | edit | 0 | 1 | mit | c928d659f1d2d770e696b7ebbf4eb692ebf07855 | lentz/buddyduel,lentz/buddyduel,lentz/buddyduel | src/app/duels/duel-week.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport path from 'path';\nimport fs from 'fs';\n\nimport { baseGenerator, Generator } from '../baseGenerator';\n\nconst generator: Generator = async (packageManager, npmOptions, options) => {\n const extraMain = options.linkable\n ?... | typescript | edit | 0 | 3 | mit | ccb7b673fa64a948cb8a44672631e891ef06181f | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | lib/cli/src/generators/REACT_SCRIPTS/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Dexie from 'dexie'\n\nexport interface Migrations {\n [storageKey: string]: (db: Dexie) => Promise<void>\n}\n\nexport const migrations: Migrations = {\n /**\n * If lastEdited is undefined, then set it to createdWhen val... | typescript | edit | 0 | 3 | mit | 0f358e1f21a623ae7423fab7af955f1b2bf47336 | WorldBrain/WebMemex,WorldBrain/WebMemex | src/background-script/quick-and-dirty-migrations.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default class Cache<T, V> {\n public size = 0;\n public misses = 0;\n public hits = 0;\n\n constructor(private limit: number, private func: (obj: T) => V, private store?: any) {\n this.store = store || new Map();\n }\n\n ... | typescript | edit | 0 | 1 | mit | 196a208a83edb2f4a88c42116a20631ca8bcb1fa | qaiken/ember.js,miguelcobain/ember.js,tildeio/ember.js,sly7-7/ember.js,asakusuma/ember.js,cibernox/ember.js,miguelcobain/ember.js,qaiken/ember.js,givanse/ember.js,cibernox/ember.js,Turbo87/ember.js,cibernox/ember.js,mfeckie/ember.js,elwayman02/ember.js,elwayman02/ember.js,fpauser/ember.js,asakusuma/ember.js,cibernox/em... | packages/@ember/-internals/utils/lib/cache.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.