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\nimport React from \"react\";\nimport Head from \"./Head\";\nimport Header from \"./Header\";\nimport Footer from \"./Footer\";\nimport Cookiescript from \"./Cookiescript\";\n\nconst Layout = ({\n title = \"drublic - Engineering Managem... | typescript | edit | null | null | mit | c6cb5040770ca4f93ab88667e874190b19dbd8ed | drublic/vc,drublic/vc,drublic/vc | lib/components/Layout.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { fetch } from \"../../api/fetch\"\n\nexport const graphqlAPI = (url: string, query: string) =>\n fetch(`${url}/api/graphql`, {\n method: \"POST\",\n body: JSON.stringify({ query }),\n })\n .then(res => {\n if (!r... | typescript | edit | 0 | 2 | mit | 3af114db7aad0e17a5fcfed747a0285cc14eb511 | danger/peril,danger/peril,danger/peril,danger/peril,danger/peril | source/api/graphql/api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'llta-create-test-form',\n templateUrl: './createTestForm.component.html',\n styleUrls: ['./createTestForm.component.scss']\n})\nexport class CreateTestFo... | typescript | edit | 0 | 1 | mit | 1e5f0390250b2d2069afe6becff7d99d61a8a695 | ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin | src/components/createTestForm/createTestForm.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FlutterOutline } from \"../../shared/analysis/lsp/custom_protocol\";\nimport { Logger } from \"../../shared/interfaces\";\nimport { fsPath } from \"../../shared/utils/fs\";\nimport { IconRangeComputerLsp } from \"../../shared/v... | typescript | edit | 0 | 4 | mit | 8cd5087b9dd2e34ef074fd843fff4043ff39421a | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/extension/decorations/flutter_icon_decorations_lsp.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare interface IHeaders {\n 'Project-Id-Version': string;\n 'Report-Msgid-Bugs-To': string;\n 'POT-Creation-Date': string;\n 'PO-Revision-Date': string;\n 'Last-Translator': string;\n 'Language': string;\n 'Langu... | typescript | edit | 0 | 1 | mit | c62b82a98dd71e96a94e4c997a3dba15b49d2070 | rubenv/pofile | pofile.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\n\ndescribe('TypeScript Diagnostics errors', () => {\n it('should show the correct error locations in the typescript files', () => {\n const result = runJest('../ts-diagnostics', ['--no-... | typescript | edit | 0 | 1 | mit | 5882591e288b37f752451ac27682dac075ddc3eb | kulshekhar/ts-jest,kulshekhar/ts-jest | tests/__tests__/ts-diagnostics.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\"use strict\";\n\nbrowser.runtime.onMessage.addListener(execute);\n\n\nfunction execute(request, sender, callback) {\n switch (request.execute) {\n case 'Play':\n case \"PlayPause\":\n let pp = document.quer... | typescript | edit | 0 | 11 | mit | 07425d786a6ee1425c55cee28b5f7294477aa62f | Chowbi/DeeToolBar,Chowbi/DeeToolBar | DeezerToolBar/content_scripts/actions.ts | rejected_complexity | Cyclomatic complexity too high: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Byte, periodic } from '@amnisio/rivulet';\nimport { Sources, HIGH, LOW, run, createSinks } from '@amnisio/arduino-uno';\n\nconst invert = (value: Byte) => value == LOW ? HIGH : LOW;\n\n// Sample application that will blink mult... | typescript | edit | 0 | 2 | mit | c3033312581fe023a66bf3b60c1b80abf5e4b80d | artfuldev/RIoT | examples/arduino-uno/multiple-blinks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport enum MongooseRunStatus { \n \n // NOTE: \"All\" status is used to match every existing Mongoose Run Record.\n // It's being used in filter purposes. \n All = \"All\",\n\n Finished = \"Finished\", \n Unavailable ... | typescript | edit | 0 | 0 | mit | 397ff23a3038c1acd339e4ff23963574b037c1a9 | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | console/src/app/core/mongoose-run-status.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport { UI_COMPONENTS } from 'rev-ui/lib/config';\nimport { MUIListView } from './views/MUIListView';\nimport { MUIDetailView } from './views/MUIDetailView';\nimport { MUITextField } from './fields/MUITextField';\nimport { MUIActionB... | typescript | edit | 0 | 1 | mit | 647a0d83ce9404ac2cda3a11916aba3b0c408cf0 | RevFramework/rev-framework,RevFramework/rev-framework | packages/rev-ui-materialui/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n MIT License\n\n Copyright (c) 2017 Temainfo Sistemas\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Softwa... | typescript | edit | 0 | 1 | mit | f9ead9582e75b95710f188a0d71415c7a248f712 | TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui | src/core/base/value-accessor-provider.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Type } from './type.model';\nimport { ItemTemplate } from '@core/game_master/gameMaster';\nimport { Util } from '@util';\nimport APP_SETTINGS from '@settings/app';\n\nexport class TypeMapper {\n public static Map(rawType: It... | typescript | edit | 0 | 1 | mit | d0578030e8fce16edc11734dc2a0f9a64b21516e | BrunnerLivio/pokemongo-json-pokedex,vfcp/pokemongo-json-pokedex,BrunnerLivio/pokemongo-data-normalizer,BrunnerLivio/pokemongo-json-pokedex,BrunnerLivio/pokemongo-data-normalizer,vfcp/pokemongo-json-pokedex | src/components/type/type.mapper.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type MenuEvent =\n 'push' |\n 'pull' |\n 'select-changes' |\n 'select-history' |\n 'add-local-repository' |\n 'create-branch' |\n 'show-branches' |\n 'remove-repository' |\n 'add-repository' |\n 'rename-branch' |\n 'de... | typescript | edit | 0 | 0 | mit | 6bd61885e45f54c62be8a45171ffba4154873f1e | kactus-io/kactus,BugTesterTest/desktops,say25/desktop,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,BugTesterTest/desktops,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,artivilla/desktop,de... | app/src/main-process/menu/menu-event.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {SidebarModel} from \"../../../core/models/impl/SidebarModel\";\nimport {SharedModel} from \"../../../core/models/impl/SharedModel\";\nexport class TweetSidebarComponent implements ng.IComponentOptions {\n public template: str... | typescript | edit | 0 | 1 | mit | 748fb92d4a23890717af4375f83a787391dc09f2 | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | angular-typescript-webpack-jasmine/src/modules/tweets/angular/components/tweetSidebar/TweetSidebarComponent.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FunctionComponent } from 'react';\n\nimport { Link } from '@waldur/core/Link';\n\ninterface ProjectLinkProps {\n row: {\n project_name: string;\n project_uuid: string;\n };\n}\n\nexport const ProjectLink: FunctionCompon... | typescript | edit | null | null | mit | 23dfb41ea866ebe465e7d66b82f89ddf7f10042d | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/project/ProjectLink.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';\r\nimport { Hit, Requester } from '../../types';\r\nimport { ResourceList } from '@shopify/polaris';\r\nimport UnqualifiedCard from './UnqualifiedCard';\r\nimport { calculateAllBadges } from '../../utils/... | typescript | edit | null | null | mit | a1a6242eb0e4bcb0ae783a572b4406567a91e21b | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/HitTable/HitItem.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as http from 'http';\nimport { ListenOptions } from 'net';\nimport { makeDecorator, Provider, ReflectiveInjector, Injector } from '@ts-stack/di';\nimport { Router as RestifyRouter } from '@ts-stack/router';\n\nimport { PreReque... | typescript | edit | 0 | 1 | mit | 933d9445996926338a901db6226d33950fff3176 | restify-ts/core,restify-ts/core,restify-ts/core,restify-ts/core | src/decorators/root-module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type ProjectConfig =\n | string\n | {\n path: string;\n watch?: boolean;\n compiler?: string;\n };\n\nexport type MtscConfig = {\n debug?: boolean;\n watch?: boolean;\n compiler?: st... | typescript | edit | 0 | 0 | apache-2.0 | ef199bb2f2bfa6f1da4e486035c511abfe653136 | guidojo/multipleTypescriptCompilers,guidojo/multipleTypescriptCompilers | src/config/configSpec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ... | typescript | edit | 0 | 0 | mit | 4a94f9148f04d299433a2e72e1633fa0fbb76150 | DustinCampbell/vscode,eklavyamirani/vscode,microlv/vscode,radshit/vscode,0xmohit/vscode,williamcspace/vscode,veeramarni/vscode,DustinCampbell/vscode,ioklo/vscode,gagangupt16/vscode,gagangupt16/vscode,charlespierce/vscode,williamcspace/vscode,veeramarni/vscode,ioklo/vscode,Krzysztof-Cieslak/vscode,landonepps/vscode,sifu... | src/vs/languages/php/common/php.contribution.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nconst DefaultAvatarURL = 'https://github.com/hubot.png'\n\n/** The minimum properties we need in order to display a user's avatar. */\nexport interface IAvatarUser {\n /** The user's email. */\n reado... | typescript | edit | null | null | mit | 90b7936ccf1d60d8f4b9fda0cf035ef42fac6678 | shiftkey/desktop,hjobrien/desktop,gengjiawen/desktop,BugTesterTest/desktops,kactus-io/kactus,BugTesterTest/desktops,desktop/desktop,gengjiawen/desktop,desktop/desktop,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,hjobrien/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,artivilla... | app/src/ui/lib/avatar.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 {Http, URLSearchParams} from '@angular/http';\n@Component({\n selector: 'app-sidebar',\n templateUrl: './sidebar.component.html',\n styleUrls: ['./sidebar.component.scss']\n})\... | typescript | edit | 0 | 1 | mit | fe49a94eef3f02e54fe75f5ae99b16088d0028a6 | prabh-62/skills-ontario-2017,prabh-62/skills-ontario-2017,prabh-62/skills-ontario-2017 | src/app/main/sidebar/sidebar.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Headers, RequestOptions } from '@angular/http';\n\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/operator/map';\n\n@Injectable()\nexport class DataService {\n... | typescript | edit | 0 | 1 | mit | 2970cf2aabe2035b8d11494d761b46af61078936 | hasman16/rent-a-ref,alitriki/TO52_Angular4,DavideViolante/Angular2-Express-Mongoose,amirkatzster/Neurimos,amirkatzster/Neurimos,nigel-smk/av-elab,DavideViolante/Angular-Full-Stack,alitriki/TO52_Angular4,DavideViolante/Angular-Full-Stack,amirkatzster/Neurimos,hasman16/rent-a-ref,amirkatzster/Neurimos,DavideViolante/Angu... | client/app/services/data.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DataAccessConfig } from './acl-manager';\nimport { LuceneQueryAccess } from 'xlucene-evaluator';\n\n/**\n * Using a DataAccess ACL, limit queries to\n * specific fields and records\n *\n * @todo should be able to translate to a... | typescript | edit | 0 | 2 | apache-2.0 | 7b9111e7faa24635cdc496608fee1c23433e55ae | terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice | packages/data-access/src/query-access.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (C) 2020 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a ... | typescript | edit | 0 | 0 | apache-2.0 | 01cfbaafcb20abf374997d23a9b8099f448a4ade | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | polygerrit-ui/app/services/flags/flags.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BuddyBuild } from \"./BuddyBuild\"\nimport { Buildkite } from \"./Buildkite\"\nimport { Circle } from \"./Circle\"\nimport { Codeship } from \"./Codeship\"\nimport { DockerCloud } from \"./DockerCloud\"\nimport { Drone } from \... | typescript | edit | 0 | 0 | mit | 55270ad512d8632dbdff0f54607f6100e47a8a6b | danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js | source/ci_source/providers/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Koa = require(\"koa\");\n\ndeclare module 'koa' {\n export interface Context {\n db(): void;\n }\n}\n\nconst app = new Koa();\n\napp.context.db = () => {};\n\napp.use(async ctx => {\n console.log(ctx.db);\n});\n\n... | typescript | edit | 0 | 1 | mit | e711b702bfbc0f080992ca3d452883fe56c65388 | rolandzwaga/DefinitelyTyped,georgemarshall/DefinitelyTyped,one-pieces/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,rolandzwaga/DefinitelyTyped,magny/Definitel... | types/koa/koa-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict'; // XXX\nimport { Url } from 'url';\nimport { RedirectInfo, ExtendedRedirectInfo } from '../';\n\n\n//\n// Entry Point\n//\nexport function rewrite(url: Url): ExtendedRedirectInfo {\n const host = '.w3.org';\n\n if ((... | typescript | edit | 0 | 3 | mit | 331a2515a4e9dc84accbfb34313425d88c7a9139 | takenspc/ps-url-normalizer | rules/rewrite/w3c.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ChildProcess from 'child_process'\nimport * as Path from 'path'\n\nconst args = process.argv.slice(2)\n\n// At some point we may have other command line options, but for now we assume\n// the first arg is the path to open.\n... | typescript | edit | 0 | 0 | mit | 59068afcca478b4ca5bb1c29f07b920845fe362e | artivilla/desktop,hjobrien/desktop,artivilla/desktop,gengjiawen/desktop,desktop/desktop,hjobrien/desktop,artivilla/desktop,say25/desktop,say25/desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,j-f1/forked-desktop,hjobrien/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,hjobri... | app/src/cli/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { inject, TestBed } from '@angular/core/testing';\n\nimport { UserService } from './user.service';\nimport { User } from './user';\nimport { Observable, of } from 'rxjs';\nimport { HttpClient } from '@angular/common/http';\nimpor... | typescript | edit | 0 | 1 | apache-2.0 | 374022f12d1d9ee211787e550ef9dd250ce461d4 | uw-it-edm/content-services-ui,uw-it-edm/content-services-ui,uw-it-edm/content-services-ui | src/app/user/shared/user.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Outlet, useMatch } from 'react-router';\nimport { Navigate } from 'react-router-dom';\n\nimport * as Nav from '../../elements/Nav/Nav';\nimport appStyles from '../../App.module.css';\n\nimport styles... | typescript | edit | null | null | mit | 643aba1de85163b6dea972a9dc5324d8dc2065ef | KeitIG/museeks,KeitIG/museeks,KeitIG/museeks | src/renderer/views/Settings/Settings.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Observable } from 'rxjs/Observable';\n\nexport const PropNames = [\n 'audioUrl',\n 'title',\n 'subtitle',\n 'subscribeUrl',\n 'subscribeTarget',\n 'artworkUrl',\n 'feedArtworkUrl',\n 'episodes'\n];\n\nexport interface A... | typescript | edit | 0 | 0 | mit | 63fa6895b22c55f4e77b950c35fb66162f3c5c07 | PRX/play.prx.org,PRX/play.prx.org,PRX/play.prx.org,PRX/play.prx.org | src/app/embed/adapters/adapter.properties.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IUser } from './IUser';\n\nexport interface IUserApp {\n save(user: IUser): Promise<IUser>;\n find(query: any, options: { limit: number }): Promise<IUser[]>;\n\n authenticateUser(userNameOrEmail: string, password: stri... | typescript | edit | 0 | 0 | mit | 6f7fcb1775ea77b79447dc874cf7e699dbc1089b | polutz/ptz-user-domain | src/IUserApp.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai';\nimport * as fileWriter from './fileWriter';\nimport * as fileReader from './fileReader';\nimport * as Rx from 'rxjs/Rx';\nimport * as loremIpsum from 'lorem-ipsum';\nimport * as path from 'path';\n\ndescr... | typescript | edit | 0 | 1 | mit | 51879d8fdbc80b8f72c5d0540dda189ae0be3a36 | Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell | packages/cspell-tools/src/fileWriter.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, {FC} from 'react';\n\nimport {Handler} from '../../helpers/typeHelpers';\n\nexport interface GifItemProps {\n previewUrl: string;\n onClick: Handler;\n}\nexport const BTDGifItem: FC<GifItemProps> = (props) => {\n return... | typescript | edit | null | null | mit | 2076c9400c7d2b327b87a4f47e9593832acf2236 | eramdam/BetterTweetDeck,eramdam/BetterTweetDeck,eramdam/BetterTweetDeck,eramdam/BetterTweetDeck | src/components/gifPicker/singleGif.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// tslint:disable-next-line no-implicit-dependencies\nimport { ipcRenderer } from \"electron\";\nimport * as toastify from \"react-toastify\";\n\nimport Logger, { ILoggerObj, IMessage } from \"../common/Logger\";\n\nexport default (logg... | typescript | edit | 0 | 2 | mit | f2c0b268912c081cb2452f632b05093d4a2cc92c | ocboogie/action-hub,ocboogie/action-hub,ocboogie/action-hub | app/renderer/createLogger.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL... | typescript | edit | 0 | 2 | mit | 019525b3d048a31cabd346e7df70cbf17824fdc5 | mpalourdio/SpringBootAngularHTML5,mpalourdio/SpringBootAngularHTML5,mpalourdio/SpringBootAngularHTML5,mpalourdio/SpringBootAngularHTML5 | front/src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { config, run } from '../../common';\nimport * as syncWatch from './sync-watch.cmd';\n\n\nexport const group = 'dev';\nexport const name = 'watch';\nexport const alias = 'w';\nexport const description = 'Starts `build:watch` and ... | typescript | edit | 0 | 1 | mit | bd002d93c9ab291018d333eaae61d066096fcce6 | frederickfogerty/js-cli,frederickfogerty/js-cli,frederickfogerty/js-cli | src/cmds/dev/watch.cmd.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport {Provider} from 'react-redux'\nimport {Store} from 'redux'\nconst {AppContainer} = require('react-hot-loader')\n\n/** Container component properties */\ninterface Props {\n /** Redux store instanc... | typescript | edit | null | null | mit | 6fc328d9b709eb298c6d529ac31ced4acda09d96 | jupl/astraea,jupl/astraea | src/lib/components/container/template.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport function SuccessResponse(name: string | number, description?: string): Function;\n\nexport function SuccessResponse<T>(name: string | number, description?: string): Function;\n\nexport function SuccessResponse<T>(name: string | n... | typescript | edit | 0 | 1 | mit | a57a4d755665d3a8046da50bd66e9237201a4143 | andreasrueedlinger/tsoa,andreasrueedlinger/tsoa,lukeautry/tsoa,lukeautry/tsoa | packages/runtime/src/decorators/response.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport styled from \"styled-components\"\nimport { Col, Row } from \"../Elements/Grid\"\n\nconst Flex = styled.div`\n display: flex;\n flex-direction: row;\n`\n\nconst RoundedImage = styled.img`\n width: ... | typescript | edit | null | null | mit | 33b3a5679b46597dc78653fc428e543ec9359ffa | artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction | src/Styleguide/Artwork/Banner.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit, OnDestroy, ElementRef, ViewChild, EventEmitter, Output, Input} from '@angular/core';\nimport Editor = AceAjax.Editor;\n\n(<any>ace).config.set(\"basePath\", \"/dist\");\n\n@Component({\n selector: 'editor',... | typescript | edit | 0 | 3 | mit | 33fc14676d09ed7a30dbc3a2968fe5674245136b | kryops/jsbb,kryops/jsbb,kryops/jsbb | src/components/editor/editor.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {LEAN_MODE} from './constants'\nimport * as vscode from 'vscode'\nimport {CompletionItemProvider,TextDocument,Position,CancellationToken,CompletionItem,CompletionItemKind,CompletionList,Range} from 'vscode'\n\nexport class LeanIn... | typescript | edit | 0 | 4 | apache-2.0 | 8d32ec09e33cb833ada36b6004657a024ef32eef | leanprover/vscode-lean,leanprover/vscode-lean,leanprover/vscode-lean | src/input.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"mkpath.d.ts\" />\r\nimport mkpath = require('mkpath');\r\n\r\nmkpath('red/green/violet', function (err) {\r\n if (err) throw err;\r\n console.log('Directory structure red/green/violet created');\r\n});\r\n\r\nmkp... | typescript | edit | 0 | 2 | mit | 604e1a1da21d44625f094b39a6a3315e4ffaf4f4 | benliddicott/DefinitelyTyped,Litee/DefinitelyTyped,gorcz/DefinitelyTyped,mcrawshaw/DefinitelyTyped,nfriend/DefinitelyTyped,arusakov/DefinitelyTyped,robertbaker/DefinitelyTyped,zuzusik/DefinitelyTyped,xica/DefinitelyTyped,goaty92/DefinitelyTyped,brainded/DefinitelyTyped,mszczepaniak/DefinitelyTyped,MarlonFan/DefinitelyT... | mkpath/mkpath-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Stylesheet, Rule, Media } from 'css';\nimport { flatten } from './arrayUtils';\n\nexport function findRootRules(cssAST: Stylesheet): Rule[] {\n return cssAST.stylesheet.rules.filter(node => (<Rule>node).type === 'rule');\n}\... | typescript | edit | 0 | 1 | mit | 461a04d23655a026d303566e831c9cebe1f36cd3 | andersea/HTMLClassSuggestionsVSCode | src/cssUtils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as models from '../models';\nimport requests from './requests';\n\nexport class ClustersService {\n public list(): Promise<models.Cluster[]> {\n return requests.get('/clusters').then((res) => res.body as models.Cluste... | typescript | edit | 0 | 2 | apache-2.0 | ec47a071951ced53ebdaa214eda19067866d5946 | argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd | src/app/shared/services/clusters-service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Example of how you would create a table with float positions\n// Import from 'docx' rather than '../build' if you install from npm\nimport * as fs from \"fs\";\nimport {\n Document,\n OverlapType,\n Packer,\n Paragraph,\n... | typescript | edit | 0 | 1 | mit | 28685a8761336e85c54633205eba0e3addcd2468 | dolanmiu/docx,dolanmiu/docx,dolanmiu/docx | demo/34-floating-tables.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Branch from \"./branch\";\nimport Commit from \"./commit\";\n\nexport class GraphColumns<TNode> {\n private columns: Array<Branch[\"name\"]> = [];\n\n /**\n * Compute the graph columns from commits.\n *\n * @param commits... | typescript | edit | 0 | 1 | mit | edd335779abe9385b8e3167e2331f6ac1512418c | nicoespeon/gitgraph.js,nicoespeon/gitgraph.js,nicoespeon/gitgraph.js,nicoespeon/gitgraph.js | packages/gitgraph-core/src/graph-columns.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Table} from \"./Table\";\n/**\n * TODO: Replace all console.error calls with exceptions\n * TODO: Provide rudimentary column and row manipulation methods\n * TODO: Provide rudimentary cell styling possibility\n * TODO: Provide c... | typescript | edit | 0 | 2 | mit | a2ebea044c8a2b4041e79102d32a8f2cce633b9c | mwheregroup/RansomTable,mwheregroup/RansomTable,mwheregroup/RansomTable | src/RansomTableWidget.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nvar circle;\nvar continueAnimating : boolean;\nvar animationProgress : number;\n\nfunction startLoadingAnimation()\n{\n var svg = <HTMLElement> document.querySelector('svg');\n var svgNS = svg.namespaceURI;\n circle = document.... | typescript | edit | 0 | 2 | apache-2.0 | da8e02d9055f66471ce7ea30e819d6bae9f9d4aa | CodethinkLabs/software-dependency-visualizer,CodethinkLabs/software-dependency-visualizer,CodethinkLabs/software-dependency-visualizer,CodethinkLabs/software-dependency-visualizer | block-layout/examples/loadingAnimation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* eslint-disable no-param-reassign */\nimport VueLoaderPlugin from 'vue-loader/lib/plugin';\nimport type { Configuration } from 'webpack';\n\nexport function webpack(config: Configuration) {\n config.plugins.push(new VueLoaderPlugin()... | typescript | edit | 0 | 1 | mit | e4b0e9a06931562b37debd65a7d0bab23db87a46 | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | app/vue/src/server/framework-preset-vue.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This is currently a string because a Symbol seems to have become broken in\n// VS Code. We can revert this if it gets fixed.\n// https://github.com/Microsoft/vscode/issues/57513\nexport const internalApiSymbol = \"private-API\"; // S... | typescript | edit | 0 | 0 | mit | 69eb96048480e2e0044e9dfa67e8d065af0166cb | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/symbols.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * @license\n * Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.\n *\n * Use of this source code is governed by an Apache-2.0 license that can be\n * found in the LICENSE file at https://github.com/DSI-HUG/dejaj... | typescript | edit | 0 | 0 | apache-2.0 | a993c543b850d980e874ff0d60f978781df50dc4 | DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { bootstrap } from '@angular/platform-browser-dynamic';\nimport { provideStore } from '@ngrx/store';\nimport { DIRECTIVES, PIPES, PROVIDERS } from './platform/browser';\nimport { ENV_PROVIDERS } from './platform/environment';\n\n... | typescript | edit | 0 | 2 | mit | 666dfee82f3e4f7c3ce922a1dc10740399ffcfc6 | bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder | src/main.browser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Button } from '../lib/button'\nimport { ButtonGroup } from '../lib/button-group'\n\nimport { DialogFooter, DialogContent, Dialog } from '../dialog'\n\ninterface IConfirmExitTutorialProps {\n r... | typescript | edit | null | null | mit | 3fe979d66dbc78c3b3c37f8bf1223a7945a493b2 | kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forke... | app/src/ui/tutorial/confirm-exit-tutorial.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from 'angular2/core'\nimport {UserService} from './user.service'\n\n@Component({\n selector: 'user-menu-item',\n inputs: ['user'],\n template: `\n<div class=\"vertically fitted item\" *ngIf=\"user\">\n Hel... | typescript | edit | 0 | 1 | mit | 8169c56fe1c67c3c004f2cce35761cb799347c11 | leMaik/EduCraft-Editor,leMaik/EduCraft-Editor,leMaik/EduCraft-Editor,leMaik/EduCraft-Editor | client/app/user-menu-item.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport * as http from \"http\";\nimport * as express from \"express\";\n\nconst app = express();\n\napp.use(express.static(\"public\"));\n\napp.get(\"/\", (req, res) => {\n\tres.send(\"Hello Boss!\");\n});\n\nconst se... | typescript | edit | 0 | 1 | mit | 2cab77735574bbd10e790eec16fbb7be3ae8b9e0 | navi2601/bosstalk,navi2601/bosstalk,navi2601/bosstalk | ts/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ActionReducer } from '@ngrx/store';\n\nimport { Teacher } from '../models';\n\nexport const TEACHER = 'TEACHER';\n\nexport const SET_TEACHER = 'SET_TEACHER';\n\nlet initialState = new Teacher.Builder().build();\n\nexport const ... | typescript | edit | 0 | 2 | mit | 29785b7398abe2763857ff151d36267f4b3a2952 | bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder | src/app/shared/reducers/teacher.reducer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Automatically removes join/leave messages in sandbox\n\nimport {WebClient, RTMClient} from '@slack/client';\n\ninterface SlackInterface {\n\trtmClient: RTMClient,\n\twebClient: WebClient,\n}\n\nexport default async ({rtmClient: rtm, ... | typescript | edit | 0 | 3 | mit | ac675e5c047668d128272f8b39c6029b42579862 | tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot | nojoin/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ExtendedSchema, FieldMetadata, SchemaMetadata } from './extended-schema';\nimport { flatMap } from '../utils/utils';\nimport { mergeSchemas } from '../graphql/merge-schemas';\n\n/**\n * Merges multiple GraphQL schemas by mergin... | typescript | edit | 0 | 1 | mit | 81af969c276c950814a0ee4398b8a657a49acf52 | AEB-labs/graphql-weaver,AEB-labs/graphql-weaver | src/extended-schema/merge-extended-schemas.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { RouteComponentProps } from '@reach/router';\n\nimport { Title } from '../../../components/title/index';\n\nexport const Members = (props: RouteComponentProps) => (\n <Title>Members list</Title>... | typescript | edit | null | null | mit | 6e8d1115a32f6ebc52a48d70d985b34319aa1b85 | patrick91/pycon,patrick91/pycon | frontend/src/pages/admin/members/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport WebpackChain from 'webpack-chain'\n\nexport function bundleForNode(chain: WebpackChain, isClient: boolean) {\n if (isClient) {\n return\n }\n \n chain.output.libraryTarget('commonjs2')\n chain.target('node')\n chain.exte... | typescript | edit | 0 | 7 | mit | 5407fd3caee297355dee588dace9d92163301de2 | ream/ream | packages/ream/src/webpack/blocks/bundle-for-node.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nmodule AirTrafficControl {\n export class AirplaneState {\n constructor(ID: string, StateDescription: string) { }\n }\n}\n```\n\nApply this change: Make sure the airplane data is available in the UI"
},
{
"role":... | typescript | edit | 0 | 1 | mit | 0338175916034f9d64658df0220076be556cefcf | karolz-ms/diagnostics-eventflow | AirTrafficControl.Web/App/AirplaneState.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface KeyValueCacheItem<T, U> {\n key: T;\n value: U;\n}\n\nexport class KeyValueCache<T, U> {\n private readonly cacheItems: KeyValueCacheItem<T, U>[] = [];\n\n getOrCreate(key: T, createFunc: () => U) {\n let it... | typescript | edit | 0 | 1 | mit | 8122701a4b8cd7e362a62a1bc1e2deda4925f34e | dsherret/type-info-ts,dsherret/ts-type-info,dsherret/type-info-ts,dsherret/ts-type-info | src/utils/KeyValueCache.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for htmlbars-inline-precompile 1.0\n// Project: ember-cli-htmlbars-inline-precompile\n// Definitions by: Chris Krycho <https://github.com/chriskrycho>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyp... | typescript | edit | 0 | 1 | mit | 0527bc3489bd1a4f1e33de059690f1b3551a25dd | benishouga/DefinitelyTyped,rolandzwaga/DefinitelyTyped,alexdresko/DefinitelyTyped,nycdotnet/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,abbasmhd/DefinitelyTyped,arusakov/DefinitelyTyped,aciccarello/DefinitelyTyped,ashwinr/DefinitelyTyped,benliddicott/DefinitelyTyped,chrootsu/DefinitelyTyped,zuzusik/DefinitelyTyped,arus... | types/htmlbars-inline-precompile/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SocketHandler } from './SocketHandler'\nimport { Vokkit } from '../../Vokkit'\nimport { ChunkPosition } from '../../world/Chunk'\n\nexport interface ChunkData {\n worldName: string,\n position: ChunkPosition\n}\n\nexport clas... | typescript | edit | 0 | 4 | apache-2.0 | dac7c80cb2ed6ef82462d1ec3dc3cfaebaa2760c | Vokkit/Vokkit,Vokkit/Vokkit,Vokkit/Vokkit | src/server/network/handlers/ChunkHandler.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright 2014-2016 Simon Edwards <<EMAIL>>\n *\n * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.\n */\n\nimport ThemeManager = require('./thememanager');\nimport ThemeTypes = requi... | typescript | edit | 0 | 2 | mit | a81bb6303d1d6908d19a6bd04b68d9091753502b | sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm | src/thememanagerutility.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport { DEFAULT_BRANCH_NAME } from './constants';\nexport {\n StateProps, DispatchProps, Props,\n ExportedComponentDispatchProps, ExportedComponentStateProps,\n UIStateBranch,\n DefaultStateShape,\n defaultBranchSelector,\n defau... | typescript | edit | 0 | 0 | mit | aecf33b8111b0dd437d8dfbaaca550bd5ed14c4f | jamiecopeland/redux-ui-state,jamiecopeland/redux-ui-state | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n subscribeToUncaughtExceptions,\n} from '../utils/error-handling';\n\nimport * as Raven from 'raven-js';\n\ndeclare const SENTRY_KEY: string;\nif (SENTRY_KEY && SENTRY_KEY.length > 0) {\n Raven\n .config(SENTRY_KEY)\n ... | typescript | edit | 0 | 1 | mit | 1717ba1d948e24b7442d65888e6ea4fb44ffac30 | rangle/augury,rangle/augury,rangle/augury,rangle/batarangle,rangle/augury,rangle/batarangle,rangle/batarangle,rangle/batarangle | src/sentry-connection/sentry-connection.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { defaultCurrency } from '@waldur/core/services';\n\nimport { connectPlanComponents } from './utils';\n\nexport const PriceField = connectPlanComponents(props => (\n <div className=\"form-contr... | typescript | edit | null | null | mit | 9c18f44028cbb7d9322ece535d2528d60f78d367 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace/offerings/plan/PriceField.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';\r\nimport { Button, Stack, TextContainer } from '@shopify/polaris';\r\nimport { Tooltip } from '@blueprintjs/core';\r\nimport { RequesterInfo } from '../../types';\r\nimport { turkopticonBaseUrl } from '.... | typescript | edit | null | null | mit | d2fd059490ef88001942ad0347811b0390ce691a | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/SearchCard/TOpticonButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class contactSerivce {\n\n}\n```\n\nApply this change: refactor: Add 'getContacts' method stub to 'ContactService'\n\n[ticket: #3]"
},
{
"role": "assistant",
... | typescript | edit | 0 | 1 | mit | eaa2f56e8d3dfe71bdd7373d6dd189256df45ad8 | armin-es/contact-list-angular-2,armin-es/contact-list-angular-2,armin-es/contact-list-angular-2 | src/app/contact.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/jquery/jquery.d.ts\" />\n\nclass Timer {\n time: number;\n running: boolean;\n element: JQuery;\n \n /**\n * Takes the element to update every second\n */\n constructor(eleme... | typescript | edit | 0 | 2 | mit | e1a4f17bbd98b46052551e011ab824c0d33ee994 | takumif/pokesweeper,takumif/pokesweeper | public/javascripts/Timer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ADDON_STATE_CHANGED, ADDON_STATE_SET } from '@storybook/core-events';\n\nimport {\n HooksContext,\n applyHooks,\n useMemo,\n useCallback,\n useRef,\n useState,\n useReducer,\n useEffect,\n useChannel,\n useStoryContex... | typescript | edit | 0 | 2 | mit | cb1346b0b602d76797f11f0be7904c88a144a1d1 | storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook | lib/client-api/src/hooks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { RootState } from './types';\r\nimport { combineReducers } from 'redux';\r\nimport { reducer as toastr } from 'react-redux-toastr';\r\nimport { default as tab } from './reducers/tab';\r\nimport { default as searchingActive } fro... | typescript | edit | 0 | 0 | mit | f0f79025565de946931488573ec3ca96ed17913a | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/reducers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { observer } from 'mobx-react'\nimport Dialog from '@material-ui/core/Dialog'\nimport DialogTitle from '@material-ui/core/DialogTitle'\nimport DialogContent from '@material-ui/core/DialogContent'\nimpor... | typescript | edit | null | null | mit | aa1f8fb5e611d2090914ffbbefaaf960d5ead45e | xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2 | src/js/components/Shortcut/HotkeyDialog.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Inject } from \"<%= decoratorPath %>\";\nimport { <%= pName %>Controller } from \"./<%= hName %>.controller\";\n\n@Inject(\"$stateProvider\")\nexport class <%= pName %>Config {\n constructor(stateProvider: ng.ui.IStateProvid... | typescript | edit | null | null | mit | f4ad3c8fe1311acede16cf17bb4074adceaa97b3 | Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli | templates/module/_name.config.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { OpaqueToken, Inject } from '@angular/core';\n\nexport const CONFIG_INITIALIZER = new OpaqueToken('Config initializer');\n\nexport function ConfigInitializer<T>(config: T) {\n\ttype ConfigInitializerType = (config: T) => void;\n... | typescript | edit | 0 | 1 | mit | 6a0921a52d530089b4cd1746884570348235c2c1 | efidiles/ng2-config-initializer-decorator,efidiles/ng2-config-initializer-decorator,efidiles/ng2-config-initializer-decorator | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport { createAddonDecorator, Render } from '../../index';\nimport { ContextsPreviewAPI } from '../ContextsPreviewAPI';\nimport { ID } from '../../shared/constants';\n\n/**\n * This is the framework specific bin... | typescript | edit | 0 | 3 | mit | 71bce16a00f0bc4fe7c067277053f09773b0e554 | storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | addons/contexts/src/preview/frameworks/vue.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {mount} from 'enzyme';\nimport jasmineEnzyme from 'jasmine-enzyme';\nimport * as React from 'react';\n\nimport {SharedElementTransitionGroup} from '../src';\n\ndescribe('SharedElementTransitionGroup', () => {\n const Foo = () ... | typescript | edit | null | null | mit | 48125589a3bb2f4ddac9d5b80cdbd63fcb49543f | bkazi/react-layout-transition,bkazi/react-layout-transition,bkazi/react-layout-transition | tests/SharedElementTransitionGroup.test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Inject, Directive, Attribute, ElementRef, DynamicComponentLoader} from 'angular2/core';\nimport {Router, RouterOutlet, ComponentInstruction} from 'angular2/router';\nimport IAuthenticationService from './services/authentication/... | typescript | edit | 0 | 0 | mit | 6b7ec83de2c61e0a571bcb6b04f77b6035ffd338 | timdp/angular2-sub-bay,timdp/angular2-sub-bay,timdp/angular2-sub-bay | logged-in-router-outlet.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport ElectronStore = require('electron-store');\n\nnew ElectronStore({\n defaults: {}\n});\n\nnew ElectronStore({\n name: 'myConfiguration',\n cwd: 'unicorn'\n});\n\nconst electronStore = new ElectronStore();\n\nelectronStore.set('... | typescript | edit | 0 | 0 | mit | 3437e530d9ed260d2b0a3aab495fe0d91c594ed4 | georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,chrootsu/DefinitelyTyped,one-pieces/DefinitelyTyped,rolandzwaga/DefinitelyTyped,markogresak/DefinitelyTyped,Ag... | types/electron-store/electron-store-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\nimport Main from \"../src/index\";\n\ndescribe(\"index.js\", () => {\n let main: Main;\n\n beforeEach(() => {\n main = new Main();\n });\n\n it(\"Should return \\\"Hello world\\\" wh... | typescript | edit | 0 | 1 | apache-2.0 | c53692cefd7cd871c253985b02458e758d123032 | stryker-mutator/stryker,stryker-mutator/stryker,stryker-mutator/stryker | packages/stryker-webpack/test/index.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Fix import metadata issue (see links below)\n\nhttps://github.com/MurhafSousli/ngx-progressbar/issues/160\nhttps://github.com/MurhafSousli/ngx-progressbar/pull/168/files"
},
{
"role": "assistant",
"content": "export { Interco... | typescript | new_file | 0 | 0 | mit | 899b9f07b28ec5735586d4bec0b2c3e475f82132 | CaliStyle/angular2-intercom | public_api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { actions } from \"common/actions\";\nimport { Dispatch, PreferencesState } from \"common/types\";\nimport React from \"react\";\nimport { hookWithProps } from \"renderer/hocs/hook\";\nimport Label from \"renderer/pages/Preferenc... | typescript | edit | null | null | mit | 26dce28bf03c337556595e25e79104d8c12796d3 | itchio/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itchio-app,itchio/itch,itchio/itch,itchio/itch,leafo/itchio-app,itchio/itch,leafo/itchio-app,itchio/itch | src/renderer/pages/PreferencesPage/Checkbox.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\n\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/observable/merge';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operat... | typescript | edit | 0 | 2 | mit | 1d52f1356a6d72096ada2e3812ddae9fd7345346 | gabrielaraujof/pypicompare,gabrielaraujof/pypicompare,gabrielaraujof/pypicompare | src/app/comparisons/shared/package.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst fs = require('fs')\n\nconst definitionsFile = 'dist/myra.d.ts'\n\n\n\n// dts-bundle is removing 'declare' so this is an ugly way to bring it back\n// again\nfs.readFile(definitionsFile, 'utf8', (err, data) => {\n if (err) {\n ... | typescript | edit | 0 | 2 | mit | f664836eb0f13643433c0cdb93c1b1687c67412d | jhdrn/myra,jhdrn/myra | scripts/postbuild.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { getInvoicesPathname } from '@proton/shared/lib/apps/helper';\n\nimport { AlertModal, ButtonLike, ModalProps, SettingsLink } from '../../components';\nimport { useConfig } from '../../hooks';\n\nconst ... | typescript | edit | null | null | mit | ee6f5b3312d72d5dc4861feaf32f0900f649a0f3 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/api/DelinquentModal.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as request from 'superagent';\nimport * as Promise from 'bluebird';\nimport { Response } from 'superagent';\nimport { apiBaseUrl, end, Options} from './shared'\n\nfunction buildPath(machineName: string): string {\n return `${a... | typescript | edit | 0 | 1 | apache-2.0 | e89da275d77be5af9f42b3763562b5fcc2b2ff90 | lawrence0819/neptune-front,lawrence0819/neptune-front | src/api/image-api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ChildProcess, spawn} from 'child_process';\nimport {EventEmitter} from 'events';\nimport {dirname} from 'path';\nimport * as log4js from 'log4js';\nconst logger = log4js.getLogger();\nimport * as repository from './repository';\... | typescript | edit | 0 | 3 | mit | 2bae53a7169e80503d42f19cbc0e1d67421df835 | progre/nginx-rtmp-frontend,progre/nginx-rtmp-frontend,progre/nginx-rtmp-frontend | src/service/nginx.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Hit, Requester } from '../types';\r\nimport { generateBadges } from './badges';\r\nimport { truncate } from './formatting';\r\n\r\ntype ExceptionStatus = 'neutral' | 'warning' | 'critical';\r\nexport interface ExceptionDescript... | typescript | edit | 0 | 2 | mit | 20a02230b65c33c8e898173f6598886661d2e0f4 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/hitItem.ts | rejected_duplicate | Near-duplicate of sample 112964 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, AfterViewChecked } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\nimport { DocumentRef } from '../../services/documentRef.service';\nimport { UserConfig } from '../../config/user.c... | typescript | edit | 0 | 3 | mit | 23235826067be76bdbea742451a4c25c2e595ff1 | bjoberg/brettoberg.com,bjoberg/brettoberg.com,bjoberg/brettoberg.com | src/app/components/about/about.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\nimport { AudioPlayerService } from '../audio-player/audio-player.service';\nimport { ChartFileImporterService } from '../chart-file/importer/chart-file-importer.service';\n\n@Injectable()\n... | typescript | edit | 0 | 2 | mit | 0434e64a3cd8be68fc498fa1eec35298d0386582 | nb48/chart-hero,nb48/chart-hero,nb48/chart-hero | src/app/file-store/file-store.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IParallelEnumerable } from \"../../types\"\n\n/**\n * Paritions the Iterable<T> into a tuple of failing and passing arrays\n * based on the predicate.\n * @param source Elements to Partition\n * @param predicate Pass / Fail con... | typescript | edit | 0 | 3 | mit | c3dbfd95306af19d3e296af407766bc29ed33deb | arogozine/LinqToTypeScript,arogozine/LinqToTypeScript | src/parallel/static/partitionParallel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/threejs/three.d.ts\" />\n\nimport * as THREE from \"three\";\nimport {Node} from \"../Graph\";\nimport {IActivatableUI} from \"../UI\";\n\nexport class RendererUI implements IActivatableUI {\n publ... | typescript | edit | 0 | 1 | mit | 435719f8e8a71218bcae1c1775ab1d080a1a1b99 | mapillary/mapillary-js,mapillary/mapillary-js | src/ui/RendererUI.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IFileSystem } from './filesystem/filesystem.i';\nimport { ITemplateFileSystem } from './templates/templatefilesystem.i';\nimport * as Path from 'path';\n\nexport class DependumentManager {\n private _fileSystem : IFileSystem;\... | typescript | edit | 0 | 1 | unlicense | b326b81d845f1adbe5a05370fd840bd21942ea0c | dependument/dependument,Jameskmonger/dependument,Jameskmonger/dependument,dependument/dependument | src/dependument.manager.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class OnboardingTutorial {\n public constructor({ resolveEditor, getEditor }) {\n this.skipInstallEditor = false\n this.skipCreatePR = false\n this.resolveEditor = resolveEditor\n this.getEditor = getEditor\n }\n\n ... | typescript | edit | 0 | 3 | mit | e2e2d808e2c900eef265274a20bc806f9f096c8f | j-f1/forked-desktop,say25/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,say25/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,sh... | app/src/lib/stores/helpers/onboarding-tutorial.ts | rejected_duplicate | Near-duplicate of sample 113536 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { AccountComponent } from './account.component';\n\ndescribe('AccountComponent', () => {\n let component: AccountComponent;\n let fixture: ComponentFi... | typescript | edit | 0 | 1 | mit | aeec996ac9afc43c32b7e13ee12eb4ab072f9727 | DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack | client/app/account/account.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { setTimeout } from \"timers\";\nimport { Visualizer } from \"./visualizer\";\n\nexport default class CircleVisualizer extends Visualizer {\n\n constructor(canvas: HTMLCanvasElement) {\n super(canvas, 32);\n }\n\n ... | typescript | edit | 0 | 1 | mit | 440dd109a005659be7340a96a2b9203e1c66939c | dolanmiu/MMM-awesome-alexa,dolanmiu/MMM-awesome-alexa | src/renderer/visualizer/circle-visualizer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Pipe, PipeTransform } from '@angular/core';\nimport { OptionMap } from \"../../map/map\";\n\n\n@Pipe({name: 'filterMaps'})\nexport class FilterMapsPipe implements PipeTransform {\n transform(maps: OptionMap[], query: string, a... | typescript | edit | 0 | 4 | mit | a985dda35dc605e345656bd0db6aa3413c79bd82 | ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core | src/app/editor/modal-maps-list/filtermaps.pipe.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { ButtonGroup } from '../lib/button-group'\nimport { Button } from '../lib/button'\nimport { Ref } from '../lib/ref'\nimport { Octicon, OcticonSymbol } from '../octicons'\nimport { Branch } from '.... | typescript | edit | null | null | mit | 87a841e7c77f0ebf42ab161540290b0b873f8074 | artivilla/desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,desktop/de... | app/src/ui/notification/new-commits-banner.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.