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\nconst availablePrefixs = ['moz', 'ms', 'webkit'];\n\nfunction requestAnimationFramePolyfill() {\n let lastTime = 0;\n return function(callback) {\n const currTime = new Date().getTime();\n const timeToCall = Math.max(0, 16 - (cu... | typescript | edit | 0 | 6 | mit | 0a9a3887b5bc7d87f3f509f3d28dc2b1ce698408 | zheeeng/ant-design,havefive/ant-design,havefive/ant-design,RaoHai/ant-design,vgeyi/ant-design,ant-design/ant-design,ant-design/ant-design,ant-design/ant-design,marswong/ant-design,marswong/ant-design,vgeyi/ant-design,elevensky/ant-design,icaife/ant-design,vgeyi/ant-design,icaife/ant-design,RaoHai/ant-design,havefive/an... | components/_util/getRequestAnimationFrame.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { Account } from '../../models';\nimport { AccountService } from '../../services';\n\n@Component({\n selector: 'app-register',\n templateU... | typescript | edit | 0 | 2 | mit | c9a739174b5eee8f25b23836ec98f94b3e7ca30c | fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training | client/app/accounts/components/register/register.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Head from \"next/head\";\n\nimport largeImage from \"../images/hugo_large.jpg\";\nimport ogImage from \"../images/hugo_og.jpg\";\n\nexport default () => (\n <div>\n <Head>\n <meta charSet=\"utf-8\" />\n <meta\n ... | typescript | edit | null | null | mit | 542f037a4ece02382e61d8c767432d667c1944d6 | hugo/hugo.github.com,thisishugo/thisishugo.github.com,hugo/hugo.github.com,thisishugo/thisishugo.github.com | src/components/Head.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../common/Interfaces.ts\" />\n/// <reference path=\"../Blend.ts\" />\n/// <reference path=\"../dom/Element.ts\" />\n/// <reference path=\"../ui/PaddableContainer.ts\" />\n\nnamespace Blend.container {\n\n /**\n ... | typescript | edit | 0 | 2 | apache-2.0 | e9f9c54dfff545b601fa66f11e9d5c8968b0edb4 | blendsdk/material-blend,blendsdk/material-blend,blendsdk/material-blend,blendsdk/material-blend,blendsdk/material-blend | blend/src/container/Fit.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { UnitTest } from '@ephox/bedrock-client';\nimport * as TinyLoader from 'ephox/mcagar/api/TinyLoader';\nimport Theme from 'tinymce/lib/themes/silver/main/ts/Theme';\n\nUnitTest.asynctest('TinyLoader should fail (instead of timeou... | typescript | edit | 0 | 1 | mit | 5c9e99257f4c0f98f65f2fa46a6c24e9346bf30f | tinymce/tinymce,tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce,FernCreek/tinymce,tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce | modules/mcagar/src/test/ts/browser/api/TinyLoaderErrorTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Meteor } from 'meteor/meteor';\n\nexport const isServer = Meteor.isServer\nexport const isClient = Meteor.isClient\nexport const isDevelopment = Meteor.isDevelopment\nexport const isProduction = Meteor.isProduction\nexport cons... | typescript | edit | 0 | 1 | mit | 9a7ada2d0ef9447b26becc666578c887ad223592 | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/lib/executionEnvironment.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport enum NodeStatus {\n RUNNING = 'running',\n HALTED = 'halted',\n REBOOTING = 'rebooting',\n}\n\nexport interface NodeStatusTime {\n status: NodeStatus;\n date: string;\n}\n\nexport interface NodeInfo {\n status: NodeStatus;\... | typescript | edit | 0 | 0 | bsd-3-clause | 5d6215f76c0283f5c2ebca3b4f06019ea16bc182 | threefoldfoundation/app_backend,threefoldfoundation/app_backend,threefoldfoundation/app_backend,threefoldfoundation/app_backend | brandings/src/interfaces/node-status.interfaces.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type Ordering = 'NONE' | 'ASC' | 'DESC';\n\nexport interface QueryOrder {\n field: string;\n ordering: Ordering;\n chain?: string[];\n}\n\nexport interface QueryFilters {\n [attribute: string]: any;\n}\n\nexport interface Que... | typescript | edit | 0 | 0 | mit | 13a6fb6bc8a1d6dd2f5b47a32b25f6206d71005d | pretur/pretur,pretur/pretur | packages/pretur.sync/src/query.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Octicon, OcticonSymbol } from '../octicons'\n\ninterface IBannerProps {\n readonly id?: string\n readonly timeout?: number\n readonly dismissable?: boolean\n readonly onDismissed: () => void\... | typescript | edit | null | null | mit | e45faa86d33f295a34e389c8da27b69fc7d9dc2c | desktop/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,desktop/de... | app/src/ui/banners/banner.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';\nimport { Observable } from 'rxjs/Observable';\n\nimport { Map, MapType } from './map';\n\n@Injectable()\nexport class MapService {\n\n constr... | typescript | edit | 0 | 1 | mit | f896330b3c0c0d5488ed8475b61b6f4de12da558 | ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core | app/core/map.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport \"./index.css\";\nimport { App } from \"./App\";\nimport reportWebVitals from \"./reportWebVitals\";\n\nconst root = ReactDOM.createRoot(\n document.getEl... | typescript | edit | null | null | mit | 77c53b0b3f8dd75e8d42ad3bf26219ef07a8a3f3 | collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists,collinbarrett/FilterLists | web/src/index.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 { StyleContext, TypeContext } from '../Lines';\r\nimport { classes, addClass } from '../Globals';\r\n\r\nimport \"./Lines.css\"\r\nimport { navigatorIsReadOnly } from '../../../../Extensions/Sig... | typescript | edit | null | null | mit | d304e744a7f6257b456caefaed6921beb2584e6a | signumsoftware/framework,avifatal/framework,avifatal/framework,signumsoftware/framework,AlejandroCano/framework,AlejandroCano/framework | Signum.React/Scripts/Lines/FormControlReadonly.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class IterationResult<T> {\n\tpublic done: boolean;\n\tpublic promise: Promise<void> | undefined;\n\tpublic value: T | undefined | null;\n\tconstructor(done: boolean, value: T | undefined, promise: Promise<void> | undefined) {\n\... | typescript | edit | 0 | 1 | mit | 4e1063e852c3bd10a8a59b8e9ed89131a261001e | FontoXML/fontoxpath,FontoXML/fontoxpath,FontoXML/fontoxpath | src/expressions/util/iterators.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: fix(plugin-express): Correct import for plugin type"
},
{
"role": "assistant",
"content": "import { Plugin } from '@bugsnag/node'\ndeclare const bugsnagPluginExpress: Plugin\nexport default bugsnagPluginExpress\n"
}
] | typescript | new_file | 0 | 0 | mit | cdf0bce0d23d03988b34bec93a9d8eb81a7d4b71 | bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js,bugsnag/bugsnag-js | packages/plugin-express/types/bugsnag-express.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { DayProps } from 'types';\n\nimport { defaultProps } from '../DayPicker/defaultProps';\nimport { getDayComponent } from './getDayComponent';\n\nexport function Day(props: DayProps): JSX.Element {... | typescript | edit | null | null | mit | ecce86fc733e7770bed01dfc31937a1da720d43c | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/components/Day/Day.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst config: NeteaseCaptcha.Config = {\n captchaId: 'FAKE ID',\n element: '#captcha',\n mode: 'popup',\n protocol: 'https',\n width: '200px',\n lang: 'en',\n onVerify: (error: any, data?... | typescript | edit | 0 | 2 | mit | 5d5e47bc5aa15e8f499bd35b033ec297dabda48b | mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,magny/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/Defin... | types/netease-captcha/netease-captcha-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\n\nimport {\n Injectable,\n ComponentFactory,\n ComponentRef,\n ViewContainerRef\n} from '@angular/core';\n\n@Injectable()\nexport class ContentProjector {\n instantiateAndProject<T>(componentFactory: ComponentFactory... | typescript | edit | 0 | 5 | mit | 5c6d57ab2cece7ed3fa65f7ef26c944bc33ff57e | Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc,Rebilly/ReDoc | lib/services/content-projector.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n GraphQLObjectType,\n GraphQLList,\n GraphQLInputObjectType,\n GraphQLString,\n GraphQLInt,\n GraphQLID,\n GraphQLBoolean,\n GraphQLNonNull,\n} from 'graphql'\nimport { GraphQLDateTime } from './GraphQLDateTime'\nimpor... | typescript | edit | 0 | 1 | mit | 477b6ccf4636e061d4af6a73189eee1a9a8735c0 | studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord | src/graphql/GraphQLEvent.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app',\n template: `<h1>\n Hello {{name}}\n </h1>\n <my-app-custom-component></my-app-custom-component>\n `,\n})\nexport class AppComponent { name = 'Ang... | typescript | edit | 0 | 0 | mit | 8b8606f7ca42afad172ef112238c83dc2091c32a | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | A2/quickstart/src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AppConsts } from '@shared/AppConsts';\nimport { UtilsService } from '@abp/utils/utils.service';\n\nexport class SignalRAspNetCoreHelper {\n static initSignalR(): void {\n\n const encryptedAuthToken = new UtilsService(... | typescript | edit | 0 | 1 | mit | a4a6a327e9bb01a0d4ddb6900ec5fe4b8c0a5e85 | aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template,aspnetboilerplate/module-zero-core-template | angular/src/shared/helpers/SignalRAspNetCoreHelper.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// app.module.ts\n\n\"use strict\";\n\nimport { module } from \"angular\";\nimport uiRoute from \"@uirouter/angularjs\";\n\nroutingConfig.$inject = [\"$stateProvider\"];\n\nfunction routingConfig($stateProvider: angular.ui.IStateProvide... | typescript | edit | 0 | 1 | mit | a44e5689a3d8d6318d1f62dc26f3255a7f2302fc | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | SPAWithAngularJS/module5/angularjs-controllers/src/app.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Preact from 'preact';\nimport { createAddonDecorator, Render } from '../../index';\nimport { ContextsPreviewAPI } from '../ContextsPreviewAPI';\n\n/**\n * This is the framework specific bindings for Preact.\n * '@storybook/preact... | typescript | edit | 0 | 1 | mit | 1ae1e5eef475f37a4e315bfa345d141e377d23c1 | storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,kadirahq/react-storybook | addons/contexts/src/preview/frameworks/preact.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { BeamStatsApiService } from \"../main/services\";\n\nimport 'rxjs/add/operator/publishReplay';\nimport 'rxjs/add/operator/mergeMap';\nimport 'rxjs/add/operator/map';\nimport 'r... | typescript | edit | 0 | 1 | mit | e84e8130dffdc79809ab2c933c517947be269511 | xCausxn/BeamStats,xCausxn/BeamStats,xCausxn/BeamStats | frontend/src/bundles/status/status.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Observable } from \"rxjs\";\nimport { Action, InstallationResAction, RepositoriesResAction, RepositoriesReqAction } from \"../actions\";\nimport { ghClient } from \"../util/gh-client\";\n\nexport function fetchRepositories(acti... | typescript | edit | 0 | 1 | mit | 8a2f20610a8bb010bd4afb19eb3e9076b40dc4e9 | reg-viz/reg-suit,reg-viz/reg-suit,reg-viz/reg-suit,reg-viz/reg-suit | packages/reg-gh-app-front/src/side-effects/fetch-repositories.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createStore, applyMiddleware } from 'redux';\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport * as _ from 'lodash';\n\nimport thunk from 'redux-thunk';\nimport { createLogger } from 'redux-logger';\n\nimport appReducer f... | typescript | edit | 0 | 3 | apache-2.0 | 0f0e28f3f31d467b3e315263f710b6d0d1566710 | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | client/src/configureStore.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from 'angular2/core';\nimport {WorkoutPlan, Exercise} from './model';\nimport {WorkoutService} from \"./workout-service\";\nimport {ExercisePlan} from \"./model\";\n\n@Injectable()\nexport class WorkoutBuilderService... | typescript | edit | 0 | 3 | mit | eab88023a996836793461fa3b03951c3876f05d0 | chandermani/angular2byexample,chandermani/angular2byexample,chandermani/angular2byexample | trainer/src/services/workout-builder-service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { doc } from 'idai-field-core';\nimport { DocumentRepository } from './document-repository';\nimport PouchDB = require('pouchdb-node');\n\ndescribe('DocumentRepository', () => {\n\n const project = 'testdb';\n \n let rep... | typescript | edit | 0 | 3 | apache-2.0 | 65158de44234b0ada4c436847ac2b197f141a27d | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | mobile/repositories/document-repository.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, {SFC} from 'react'\nimport HandlerInput from 'src/kapacitor/components/HandlerInput'\nimport HandlerEmpty from 'src/kapacitor/components/HandlerEmpty'\n\ninterface Props {\n selectedHandler: {\n enabled: boolean\n }\n... | typescript | edit | null | null | mit | 8f5ebbcbe18e4761f1848b3901154349ce4aa44c | nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influx... | ui/src/kapacitor/components/handlers/Pagerduty2Handler.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Ansi from \"ansi-to-react\";\nimport * as React from \"react\";\nimport styled from \"styled-components\";\n\ninterface Props {\n /**\n * The name of the exception. This value is returned by the kernel.\n */\n ename: strin... | typescript | edit | null | null | bsd-3-clause | 47d25747bcb458d0f11eff85c21d792409ef1695 | nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition,nteract/composition | packages/outputs/src/components/kernel-output-error.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { get } from '@waldur/core/api';\nimport { ngInjector } from '@waldur/core/services';\n\nclass ResourcesServiceClass {\n private services;\n\n get(resource_type, uuid) {\n return ngInjector.get('$q').when(this.getInternal(re... | typescript | edit | 0 | 4 | mit | 55d595c22f0195cee2519dfcc07b28f1e2307ad7 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/resource/ResourcesService.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport { Photo } from '../../../data.types';\nimport { FullscreenService } from '../../../shared/fullscreen.service';\n\n@Component({\n selector: 'post-photo',\n template: `\n ... | typescript | edit | 0 | 2 | mit | c16bd20f2e66c2181b63b27b28d38e818a487102 | zoehneto/tumblr-reader,zoehneto/tumblr-reader,zoehneto/tumblr-reader | src/app/components/post-components/post-photo/post-photo.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { module } from 'angular';\n\nimport { STATE_CONFIG_PROVIDER, StateConfigProvider } from 'core/navigation/state.provider';\nimport { SETTINGS } from 'core/config/settings';\n\nexport const INFRASTRUCTURE_STATES = 'spinnaker.core.... | typescript | edit | 0 | 2 | apache-2.0 | 64af8a3ec212cf1b756a753d3b42cb81c3ea2d94 | spinnaker/deck,duftler/deck,ajordens/deck,ajordens/deck,sgarlick987/deck,duftler/deck,sgarlick987/deck,sgarlick987/deck,duftler/deck,duftler/deck,icfantv/deck,spinnaker/deck,ajordens/deck,icfantv/deck,sgarlick987/deck,icfantv/deck,spinnaker/deck,ajordens/deck,icfantv/deck,spinnaker/deck | app/scripts/modules/core/src/search/infrastructure/infrastructure.states.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useCallback, useState } from 'react';\nimport { UserSettingsModel } from 'proton-shared/lib/models';\nimport useCache from './useCache';\n\nexport const WELCOME_FLAG_KEY = 'flow';\n\nexport interface WelcomeFlagsState {\n ha... | typescript | edit | 0 | 5 | mit | 4737553ba2e78140651378860b3145eaee7d73a0 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/hooks/useWelcomeFlags.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgModule } from \"@angular/core\";\n\nimport { HighlightJsModule } from 'ngx-highlight-js';\nimport { InputModule } from 'truly-ui... | typescript | edit | 0 | 0 | mit | a247a4bc9eb31fd45182afe9f966e54bbe58f7e9 | TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui | demo/src/app/components/dialog/dialogdemo.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport getFileMetadata from 'file-metadata'\n\n/**\n * Attempts to determine if the provided path is an application bundle or not.\n *\n * macOS differs from the other platforms we support in that a directory can\n * also be an applicat... | typescript | edit | 0 | 8 | mit | 18a50b2502bebb14e361da167d28ca53dc1f2202 | desktop/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,kactus-io/kactus,artivilla/desktop,say25/desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-... | app/src/lib/is-application-bundle.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { Observable, Subject, BehaviorSubject } from 'rxjs/Rx';\nimport { FirebaseAuth, FirebaseAuthState } from 'angularfire2';\n\n@Injectable()\ne... | typescript | edit | 0 | 2 | mit | b0759c2f0ab623df616905545297a14f87ced240 | michaelgira23/Pear-Tutoring,michaelgira23/Pear-Tutoring,michaelgira23/Pear-Tutoring | src/app/shared/security/auth.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { UnitTest } from '@ephox/bedrock';\nimport { IconProvider, get } from '../../../../main/ts/ui/icons/Icons';\nimport { Assertions, Pipeline, Step } from '@ephox/agar';\nimport { getAll as getAllOxide } from '@tinymce/oxide-icons-... | typescript | edit | 0 | 1 | mit | 05d7d8867f58f41326ce61345700746269048661 | tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce,FernCreek/tinymce,TeamupCom/tinymce,FernCreek/tinymce,tinymce/tinymce,tinymce/tinymce | src/themes/silver/test/ts/atomic/icons/IconsTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { ListingViewModel } from \"./Listing\";\nimport { EncounterLibrary } from \"../EncounterLibrary\";\nimport { SavedEncounter, SavedCombatant } from \"../../Encounter/SavedEncounter\";\nimport { ... | typescript | edit | null | null | mit | e3f61a7d971b3898e3627693d394d8e5bc5f0fbf | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Library/Components/EncounterLibraryViewModel.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Path from 'path'\n\nimport { getGitDir } from '../git'\n\n/**\n * Get the path to the parent of the .git directory or null if the path isn't a\n * valid repository.\n */\nexport async function validatedRepositoryPath(path: s... | typescript | edit | 0 | 2 | mit | 30241f5126ad58219ca4200e0b5c2c705964c9bc | j-f1/forked-desktop,shiftkey/desktop,kactus-io/kactus,kactus-io/kactus,artivilla/desktop,hjobrien/desktop,say25/desktop,desktop/desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,gengjiawen/desktop,kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,j-f1/forked-desktop,artivilla/desktop,gengjiawen/deskto... | app/src/lib/dispatcher/validated-repository-path.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\nimport { Subject } from '../../models/subject';\n\nimport { SubjectService } from '../../services/subject.service';\n\n@Component({\n templateUrl: './subjectsList.component.html',\n... | typescript | edit | 0 | 1 | mit | 2c49c837d0d2109b29efe3ae3b3dff5f569a1065 | ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin | src/components/subjectsList/subjectsList.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface RestController {\n create?: (data: any, query: object) => Promise<any>;\n get?: (id: any, query: object) => Promise<any>;\n getAll?: (query: object) => Promise<any>;\n update?: (id: any, data: any, query: object) =>... | typescript | edit | 0 | 0 | mit | b518b5a7b633667236e5ccdde7e3e72280fd9abc | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | packages/core/src/controllers/binders/rest/rest-controller.interface.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 | 36b2deb27edaaaaa8b29135c7fda1ccffd21579f | artivilla/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/de... | app/src/ui/notification/new-commits-banner.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\n@Component({\n selector: 'app-code-input',\n templateUrl: './code-input.component.html',\n styleUrls: ['./code-input.component.css']\n})\nexport class... | typescript | edit | 0 | 1 | mit | e8c70e4ca22fdc81963d833f909ee9feb73d4db2 | bvkatwijk/code-tools,bvkatwijk/code-tools,bvkatwijk/code-tools | src/app/components/code-input/code-input.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Endpoint, Parameter, Path, Response} from '../../swagger/path';\nimport {HTTPVerb} from '../../http-verb';\nimport {IWakandaDataClass} from '../../';\nimport {collectionEndpoint} from './collection';\nimport {createEndpoint} fro... | typescript | edit | 0 | 1 | mit | d8bff61d0d73f8d3393a2e181ea2df84946ea8b0 | mrblackus/wakanda-swagger | src/paths/dataclass/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface AlbumInfo {\n albumId: number;\n title: string;\n name: string;\n description: string;\n imagesInAlbum: number;\n imagesPerPage: number;\n totalPages: number;\n iconUrl: string;\n}\n\n```\n\nApply this change: A... | typescript | edit | 0 | 0 | apache-2.0 | f88437c324c272e57bff2f997f5ae9f509152b7c | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | src/app/gallery/album-info.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nexport const HOST_WILLIAM = '127.0.0.1'// '10.1.38.61'\nexport const HOST_DAVID = '192.168.1.97'\nexport const HOST = WEBPACK_HOST || HOST_WILLIAM\nexport const PORT = 3002\nexport const IO_SERVER = `http://${HOST}:${PORT}`\n\nexport ... | typescript | edit | 0 | 0 | mit | 254166807c6f1f5544d521dccce309423be92949 | wdelmas/remote-potato,wdelmas/remote-potato,wdelmas/remote-potato | src/communication/constants.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { Small, Text } from \"rebass\";\nimport InfoPane from \"game/components/InfoPane\";\nimport Player from \"models/player\";\nimport { TerritoryAction, TerritoryActionDefinitions, ColourStrings }... | typescript | edit | null | null | mit | e36173ac848fc062ea3dd81fb3f4fe22f4d2753f | tomwwright/graph-battles,tomwwright/graph-battles,tomwwright/graph-battles | src/game/components/PlayerInfo.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Optional } from \"../optional\";\n\nexport interface SearchResult {\n statuses: Tweet[]\n}\n\nexport interface Tweet {\n id_str: string\n full_text: string\n created_at: string\n display_text_range: [number, numb... | typescript | edit | null | null | apache-2.0 | 42bc9a17621d1a94e939d07c8b76de7340b109f6 | squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase | functions/src/twitter/twitter-data.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { connect } from 'react-redux';\nimport { compose } from 'redux';\nimport { reduxForm, SubmissionError } from 'redux-form';\n\nimport { translate, withTranslation } from '@waldur/i18n';\nimport { closeModalDialog, openModalDialog... | typescript | edit | 0 | 2 | mit | 8e4bcc0ae0da059bfef97b00f19a04f4e8b42bd5 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | app/scripts/components/customer/create/CustomerCreatePromptContainer.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Color } from './../math/Color';\nimport { MaterialParameters, Material } from './Material';\n\nexport interface LineBasicMaterialParameters extends MaterialParameters {\n\tcolor?: Color | string | number;\n\tlinewidth?: number;... | typescript | edit | 0 | 1 | mit | 71a1a013df2bbce56f44cb06f6fd9ba25c4ec532 | mrdoob/three.js,mrdoob/three.js,06wj/three.js,looeee/three.js,gero3/three.js,looeee/three.js,jpweeks/three.js,greggman/three.js,fyoudine/three.js,kaisalmen/three.js,aardgoose/three.js,donmccurdy/three.js,Liuer/three.js,makc/three.js.fork,fyoudine/three.js,greggman/three.js,Liuer/three.js,kaisalmen/three.js,WestLangley/... | src/materials/LineBasicMaterial.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { browser, element, by } from '../../node_modules/protractor/built';\n\ndescribe('grid pager info', () => {\n\n let paginator = element(by.tagName('ngb-pagination')).$$('nav').$$('ul').$$('li'),\n gridPagerInfo = eleme... | typescript | edit | 0 | 1 | mit | 51a5bb9307562a8faea2f62ccf0778cb8bb00ccc | unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2 | test/e2e/grid-pager-info.e2e-spec.ts | rejected_duplicate | Near-duplicate of sample 113383 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { MetaContainer } from './meta-container';\n\nexport class FbMetaContainer extends MetaContainer\n{\n\tset title( value: string | null ) { this._set( 'og:title', value ); }\n\tget title() { return this._get( 'og:title' ); }\n\n\t... | typescript | edit | 0 | 1 | mit | a3fc785a16e52cd32fab7bb92abe59dde82dad54 | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | components/meta/fb-meta-container.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { registerComponent, Components } from '../../lib/vulcan-lib';\nimport { useSingle } from '../../lib/crud/withSingle';\nimport React from 'react';\nimport { useCurrentUser } from '../common/withUser';\nimport Users from '../../li... | typescript | edit | null | null | mit | 2aa781983bd55f175ca6333ad4e12af98cbf6c40 | Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/components/posts/BookmarksList.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';\n\nimport { NestedListActions } from '@waldur/resource/actions/NestedListActions';\nimport { ResourceRowActions } from '@waldur/resource/actions/ResourceRowActions';\nimport { ResourceName } from '@waldur... | typescript | edit | null | null | mit | f768beacd16403c0f1502cb7957599c31c02a4ce | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/openstack/openstack-security-groups/SecurityGroupsList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PromiseReadable } from '../lib/promise-readable'\n\nimport { createReadStream } from 'fs'\n\ntype Chunk = Buffer | undefined\n\nasync function main () {\n const rstream = new PromiseReadable(createReadStream(process.argv[2] ||... | typescript | edit | 0 | 4 | mit | 1cc4adcbdcf4b47f4b9ee6b89f5c5200bb7a27b7 | dex4er/js-promise-readable,dex4er/js-promise-readable | examples/read-by-chunks-ts.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { Contact } from \"models/contact\";\nimport { RemoveContact } from \"actions/contacts\";\nimport { Component } from \"component\";\n\nexport interface Props {\n editable: boolean\n}\n\nexpor... | typescript | edit | null | null | mit | 599b14d9c546e84665ce311a65f763f9f606d687 | luk707/address_book,luk707/address_book | src/components/contact/list.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { get } from '@waldur/core/api';\nimport { format } from '@waldur/core/ErrorMessageFormatter';\nimport { ENV } from '@waldur/core/services';\nimport { translate } from '@waldur/i18n';\nimport { validateState } from '@waldur/resou... | typescript | edit | 0 | 4 | mit | 0e99b11777055c3e27b431d4b00a20e8b0a37803 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/openstack/openstack-instance/actions/ConsoleAction.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Route, RouteComponentProps, Switch } from 'react-router-dom';\nimport LoginContainer from '@/components/auth/LoginContainer';\nimport ForgotPasswordContainer from '@/components/auth/ForgotPasswordCon... | typescript | edit | null | null | mit | 90e2d0d72a20b4dd930ee9fadb0bbcda1b179b95 | Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel,Pterodactyl/Panel | resources/scripts/routers/AuthenticationRouter.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ControlMock } from \"../control/control.mock\";\n\nexport class IframeControlMock extends ControlMock implements Xrm.Controls.IframeControl {\n public setVisible(visible: boolean): void {\n throw new Error(\"setVisible not ... | typescript | edit | 0 | 1 | mit | bf8678f4edd82df4f3d74f657f7e6ab93568f9bb | camelCaseDave/xrm-mock,camelCaseDave/xrm-mock | src/xrm-mock/controls/iframecontrol/iframecontrol.mock.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 | 1 | mit | b5299e3690f8a64a4963851fc92ceff8975014ff | eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,mi... | src/vs/workbench/api/browser/mainThreadBulkEdits.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport styled from \"../..\";\n\ndeclare const A: React.ComponentClass;\ndeclare const B: React.StatelessComponent;\ndeclare const C: React.ComponentClass | React.StatelessComponent;\n\nstyled(A); // succeeds\nstyled(B); // succeeds\nst... | typescript | edit | 0 | 0 | mit | b463a8c86b84099ef3ef766ccad12055cda0b831 | styled-components/styled-components,JamieDixon/styled-components,css-components/styled-components,styled-components/styled-components,JamieDixon/styled-components,JamieDixon/styled-components,styled-components/styled-components | typings/tests/component-type-test.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// @allowJs: true\n// @checkJs: true\n// @noEmit: true\n// @Filename: indices.js\n/** @type {Object.<string, number>} */\nvar o1;\n/** @type {Object.<number, boolean>} */\nvar o2;\n/** @type {Object.<boolean, string>} */\nvar o3;\n\n```... | typescript | edit | 0 | 1 | apache-2.0 | 2473ffcaac533a7bd6a5b5fe3a2896a6cff9a726 | SaschaNaz/TypeScript,SaschaNaz/TypeScript,minestarks/TypeScript,RyanCavanaugh/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,Microsoft/TypeScript,donaldpipowitch/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,basarat/TypeScript,Eyas/TypeScript,basarat/TypeScript,alexeagle/TypeScript,donaldpipowitch/TypeSc... | tests/cases/conformance/jsdoc/jsdocIndexSignature.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// List of projects/orgs using your project for the users page.\n\nexport const siteConfig = {\n editUrl: 'https://github.com/formik/formik/edit/master',\n copyright: `Copyright © ${new Date().getFullYear()} Jared Palmer. All Rights R... | typescript | edit | 0 | 0 | apache-2.0 | d7e4fdab026da1dd665dacf2b29ce40873c4b095 | jaredpalmer/formik,jaredpalmer/formik,jaredpalmer/formik | docs/src/siteConfig.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport {shallow} from 'enzyme'\n\nimport KapacitorRules from 'src/kapacitor/components/KapacitorRules'\n\nimport {source, kapacitorRules} from 'test/resources'\n\njest.mock('src/shared/apis', () => require('mo... | typescript | edit | null | null | mit | d9002cf55777366ae82793316a70a738080c9cea | influxdb/influxdb,li-ang/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,no... | ui/test/kapacitor/components/KapacitorRules.test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { renderError } from '../../common';\nimport { IAppController } from '../app.controller.interface';\nimport { Config } from '../config';\nimport { Context, HttpResponse } from '../http';\n\nexport async function convertErrorToRes... | typescript | edit | 0 | 4 | mit | cbce666321378908ce8879b1b00e6f61a105ac23 | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | packages/core/src/core/routes/convert-error-to-response.ts | rejected_duplicate | Near-duplicate of sample 114825 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport {Button, Dialog, DialogActions, DialogContent,\n DialogContentText, DialogTitle} from \"@material-ui/core\";\nimport {Group} from \"../entity/Group\";\nimport {useHistory} from \"react-router-dom\";... | typescript | edit | null | null | apache-2.0 | abb2626824fb206661ca2def86e2b4c2d8f5832b | googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020 | coffee-chats/src/main/webapp/src/components/GroupDeleteDialog.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 ConfigStoreService {\n\n _bpm: number;\n _offset: number;\n\n constructor() {\n this._bpm = 150;\n this._offset = 0.247;\n }\n\n get bpm(): number {\n... | typescript | edit | 0 | 1 | mit | 8ab52830debdcb6a3f482001bf756fc23b16ad7e | nb48/chart-hero,nb48/chart-hero,nb48/chart-hero | src/app/config-store/config-store.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PrismaClient } from '@prisma/client';\nimport { generateAnalysis } from '../src/utils/offers/analysis/analysisGeneration';\n\nconst prisma = new PrismaClient();\n\nconst seedAnalysis = async () => {\n console.log('Busy crunchi... | typescript | edit | 0 | 2 | mit | 59c836c45d89f9d5342b248f47f3deef73369405 | yangshun/tech-interview-handbook,yangshun/tech-interview-handbook,yangshun/tech-interview-handbook,yangshun/tech-interview-handbook,yangshun/tech-interview-handbook | apps/portal/prisma/seed-analysis.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { isSafari, hasPDFSupport } from '@proton/shared/lib/helpers/browser';\n\nexport const isSupportedImage = (mimeType: string) =>\n [\n 'image/apng',\n 'image/bmp',\n 'image/gif',\n 'image/x-icon',\n ... | typescript | edit | 0 | 2 | mit | ece31c291538f6871dc2291cefab18f6b8594cd4 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/filePreview/helpers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n////class C {\r\n//// z: boolean = true;\r\n//// method() {\r\n//// const x = 0;\r\n//// this.y(x, \"a\", this.z);\r\n//// }\r\n////}\r\n\r\nverify.codeFixAll({\r\n ... | typescript | edit | 0 | 0 | apache-2.0 | 8bc92e4a6363804436dba0dc37b33b1d862019bd | kpreisser/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,weswigham/TypeScript,basarat/TypeScript,kpreisser/TypeScript,alexeagle/TypeScript,RyanCavanaugh/TypeScript,basarat/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,minestarks/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,... | tests/cases/fourslash/codeFixAddMissingMember9.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport {\n Alert,\n Button,\n ModalProps,\n ModalTwo as Modal,\n ModalTwoContent as ModalContent,\n ModalTwoFooter as ModalFooter,\n ModalTwoHeader as ModalHeader,\n} from '../../../compon... | typescript | edit | null | null | mit | a2333e754b0d8751f438e086741308e876c5f54b | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/recovery/phone/ConfirmRemovePhoneModal.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AfterViewInit, Component, ElementRef, Input, ViewChild, ViewEncapsulation } from '@angular/core';\n\n/**\n * This component represents the slide item.\n */\n@Component({\n moduleId: module.id,\n selector: 'ngx-agile-slider-it... | typescript | edit | 0 | 4 | mit | d3aee69dec3cb959c9fe9fdc02a22e79cff4aac0 | anderlin/ngx-agile-slider,anderlin/ngx-agile-slider,anderlin/ngx-agile-slider | src/app/carousel/components/ngx-agile-slider-item.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Node } from '../types/nodes';\n\nexport default class Path<N extends Node> {\n node: N;\n parent: Path<Node> | null;\n parentKey: string | null;\n\n constructor(node: N, parent: Path<Node> | null = null, parentKey: string |... | typescript | edit | 0 | 2 | mit | a213238e5c92e54431df1dcb1907295d8d0989ce | tildeio/glimmer,glimmerjs/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm | packages/@glimmer/syntax/lib/traversal/path.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { memo } from 'react';\n\nimport { MailSettings } from '@proton/shared/lib/interfaces';\n\nimport { Filter, Sort } from '../../models/tools';\nimport FilterActions from '../toolbar/FilterActions';\nimport SortDropdown from '../to... | typescript | edit | null | null | mit | 7d363469ab12ec68ab7e9b59a2d2de50a0d36a08 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/mail/src/app/components/list/ListSettings.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 { Dialog, DialogRef } from '../../ui/dialog';\nimport { SettingsDialogData } from './settings-dialog-data';\nimport { SettingsDialogComponent } from './settings-dialog.component';\n\n\... | typescript | edit | 0 | 3 | mit | 073b7074a5da2b70b4afb83e2bf0f7df93e3bed6 | seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary | src/browser/settings/settings-dialog/settings-dialog.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n ReduxActionContextDecorator,\n ReduxActionContextDecoratorConfig,\n ReduxActionDecorator,\n ReduxActionDecoratorConfig,\n ReduxReducerDecorator,\n ReduxReducerDecoratorConfig,\n ReduxStateDecorator,\n ReduxStateDecora... | typescript | edit | 0 | 0 | mit | efc50c7c3f5239dc1603101341a1e76c5dd3e66d | HarmoWatch/ngx-redux-core,HarmoWatch/ngx-redux-core,HarmoWatch/ngx-redux-core | src/harmowatch/ngx-redux-core/decorators/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const styledMap = (...args) => (props) => {\n /** Put the styles in the object */\n const styles: any = args[args.length - 1]\n const styleKeys: string[] = Object.keys(styles)\n\n /** Check if the first parameter is a string ... | typescript | edit | 0 | 7 | mit | d0c5709629fe24ae5ae167b336b544abc57b5f2f | slupjs/slup,slupjs/slup | packages/Common/src/styledMap.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright 2021 The Vitess Authors.\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 copy of the License at\n *\n ... | typescript | edit | null | null | apache-2.0 | 4fc2303010afafcace0c5688b3de9b8ec7a47c31 | mahak/vitess,vitessio/vitess,vitessio/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,mahak/vitess,vitessio/vitess,vitessio/vitess,mahak/vitess,vitessio/vitess,mahak/vitess,mahak/vitess | web/vtadmin/src/components/pips/BackupStatusPip.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useEffect } from 'react';\nimport { matchPath } from 'react-router-dom';\nimport { WalletSettingsStateEnum } from '../../../../common/ipc/api';\nimport { ROUTES } from '../../routes-config';\nimport type { UseMenuUpdaterArgs } ... | typescript | edit | 0 | 9 | apache-2.0 | e39ce55d819cfab85e544d528b7e0d1ad5d9c53d | input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus | source/renderer/app/containers/MenuUpdater/useMenuUpdater.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { SFC } from \"react\"\n\nexport interface OrderAppProps {\n orderID: string\n me: {\n name: string\n }\n}\n\n// @ts-ignore\nexport const OrderApp: SFC<OrderAppProps> = ({ orderID, me }) => (\n <div>\n {me.name}\... | typescript | edit | null | null | mit | e255d5e2ae5a1f434b5b38678243e57bb1d8b796 | xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction | src/Apps/Order/OrderApp.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\nimport { PatientService } from './patient.service';\nimport * as _ from 'lodash';\nimport { EncounterResourceService } from '../openmrs-api/encounter-resource.service';\n\n@Injectable()\... | typescript | edit | 0 | 3 | mit | d14412f4eed7bd0c1701353a279d3b72e78b5ea9 | AMPATH/ng2-amrs,AMPATH/ng2-amrs,AMPATH/ng2-amrs,AMPATH/ng2-amrs | src/app/patient-dashboard/patient-previous-encounter.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { ChampionsRoutingModule } from './champions-routing.module';\n\nimport { ChampionsNameF... | typescript | edit | 0 | 0 | mit | e32a0c71b00a4647ee7a84422f37c8501e65c4a6 | drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild | frontend/src/app/page/champions/champions.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\nimport {SpeechBuilder} from \"jovo-core\";\nimport {AlexaSkill} from \"./AlexaSkill\";\n\n\nexport class AlexaSpeechBuilder extends SpeechBuilder {\n constructor(alexaSkill: AlexaSkill) {\n super(... | typescript | edit | 0 | 2 | apache-2.0 | bf32fc69fdbff65c43ad59606ac52dc53c278bbb | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | jovo-integrations/jovo-platform-alexa/src/core/AlexaSpeechBuilder.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from 'angular2/core';\n\n@Injectable();\nexport class CsrfService{\n\n\tconstructor() {}\n\n\tgetToken() {\n\t\treturn this.parseCookie()['csrftoken'];\n\t}\n\n\tprivate parseCookie() {\n\t\treturn document.cookie\... | typescript | edit | null | null | mit | 37b82edde653475467be8be8d5908a2fbc0e4fc4 | watchdogpolska/bliski_publikator,watchdogpolska/bliski_publikator,watchdogpolska/bliski_publikator,watchdogpolska/bliski_publikator | bliski_publikator/angular2/src/app/services/csrf.service.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent } from 'react';\nimport { ModalHeader, ModalCloseButton, ModalBody, ModalFooter, Image, Text, Flex, Link } from '@chakra-ui/react';\n\ninterface ImageModalProps {\n src: string;\n}\n\nconst ImageModal:... | typescript | edit | null | null | apache-2.0 | 318ffe56e12106e277c172bd52dcc921b8cca768 | ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas | new-client/src/components/ImageModal.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Proto from 'typescript/lib/protocol';\nexport = Proto;\n\ndeclare enum ServerType {\n\tSyntax = 'syntax',\n\tSemantic = 'semantic',\n}\ndeclare module 'typescript/lib/protocol' {\n\n\tinterface Response {\n\t\treadonly _serv... | typescript | edit | 0 | 0 | mit | 4e00f75408e279e8b773932dccad87659afca55e | Krzysztof-Cieslak/vscode,Microsoft/vscode,eamodio/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,micro... | extensions/typescript-language-features/src/protocol.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Optional, OnInit } from '@angular/core';\nimport { PluginComponent } from '../../plugin.component';\nimport { RootService } from 'ng2-qgrid/infrastructure/component/root.service';\n\n@Component({\n\tselector: 'q-grid... | typescript | edit | 0 | 1 | mit | 2c9a11398765c606a26c9b39bbc5e928285572f4 | qgrid/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2 | src/plugins/pagination/pager-target/pager-target.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { TouchableWithoutFeedback, ViewProperties } from \"react-native\"\nimport NavigatorIOS from \"react-native-navigator-ios\"\nimport { Image } from \"../Elements/Image\"\nimport { theme } from \"../Ele... | typescript | edit | null | null | mit | d72dae9b8baf0fd211a71c83720cdec57488aaa8 | artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen | src/lib/Components/Bidding/Components/BackButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// https://github.com/nteract/nteract/issues/389\nimport CodeMirror from \"codemirror\";\n\nimport \"codemirror/mode/meta\";\nimport \"codemirror/mode/python/python\";\n\nCodeMirror.defineMode(\n \"text/x-ipython\",\n (\n conf: Cod... | typescript | edit | 0 | 1 | bsd-3-clause | 0a7159390f26e7febe1469efcf004eb3272c621d | rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,nteract/composition,rgbkrk/nteract,rgbkrk/nteract,nteract/nteract,rgbkrk/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition | packages/editor/src/mode/ipython.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 | 1 | mit | 0798d13f10b193df0297e301affe761b90a8bfa9 | microsoft/vscode,Krzysztof-Cieslak/vscode,hoovercj/vscode,the-ress/vscode,the-ress/vscode,landonepps/vscode,Microsoft/vscode,joaomoreno/vscode,the-ress/vscode,mjbvz/vscode,eamodio/vscode,cleidigh/vscode,cleidigh/vscode,joaomoreno/vscode,hoovercj/vscode,hoovercj/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,eamodio/vscod... | extensions/markdown-language-features/src/slugify.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Provides secure access to local media files by rewriting `file://`\n * URLs to use this custom protocols which requires a HMAC\n * (hash-based message authentication code) for each requested path.\n */\n\nimport { createHmac, ra... | typescript | edit | 0 | 2 | apache-2.0 | fb642b6b6f218284c21a63145fed3ce02e7b1e12 | stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila | desktop/src/main/local-protocol.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport bodyParser = require('body-parser');\nimport express = require('express');\nimport plugin = require('./core/plugin');\n\nlet app = express();\n\n(() => {\n plugin.initialize();\n\n app.use(bodyParser.json());\n app.use(bodyPar... | typescript | edit | 0 | 1 | apache-2.0 | ab2132d8527f1049d0ced4ae7ba44cc6db3a4af7 | sgkim126/beyond.ts,sgkim126/beyond.ts,noraesae/beyond.ts,murmur76/beyond.ts,SollmoStudio/beyond.ts,SollmoStudio/beyond.ts,murmur76/beyond.ts,noraesae/beyond.ts | main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input, OnInit } from '@angular/core';\nimport { humanizeMeasureName } from '../../utils/formatters';\nimport { Meta } from '../../datasets/metas/types';\nimport { TabbedChartsMeta } from '../../datasets/metas/tabbed-... | typescript | edit | 0 | 4 | apache-2.0 | 4e6af5c7941ce7778efb0d26ef6355d089b7fa88 | googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge | src/components/card/card.component.ts | rejected_duplicate | Near-duplicate of sample 114785 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport FileSystem = require(\"fs-extra\");\nimport Puppeteer = require(\"puppeteer-core\");\nimport { CancellationToken, Progress } from \"vscode\";\nimport { IConvertedFile } from \"../../Conversion/IConvertedFile\";\nimport { Markdown... | typescript | edit | null | null | mit | 9ac8ec74c03ba712d02834ded97ef07be2d99a63 | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | MarkdownConverter/src/System/Tasks/PuppeteerTask.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport abstract class Parser {\n static workerBase = \"\";\n\n public getBase(): string {\n return Parser.workerBase;\n }\n\n abstract parse(file: File, options: any): Promise<any>;\n}\n```\n\nApply this change: Change the ... | typescript | edit | 0 | 1 | apache-2.0 | 0511efcfd58894c9dc0608ec8329046b45fd62ab | Tomella/explorer-3d,Tomella/explorer-3d,Tomella/explorer-3d | source/parser/parser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport DS from \"ember-data\";\nimport { computed, get } from \"@ember/object\";\nimport Brand from \"./brand\";\nimport Sku from \"./sku\";\nimport ProductField from \"./product-field\";\nimport ProductImage from \"./product-image\";\n... | typescript | edit | 0 | 0 | mit | 747e8c76aa794c2f80dc5b56808714e450771336 | goods/ember-goods,goods/ember-goods,goods/ember-goods | addon/models/product.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: 'locale-page',\n templateUrl: 'locale-page.component.html'\n})\nexport class LocalePage implements OnInit {\n ngOnInit() {\n\n }\n}\n```\n\nApply... | typescript | edit | 0 | 1 | mit | ceb17f09017b2c3712f056fe7e2463b722e1cd02 | todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,anthonynsimon/parrot | app/src/app/pages/locale/locale-page.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport createSpy = jasmine.createSpy\nimport { HEROES_DATA } from './mockup-data'\n\nconst HEROES_SERVICE_DATA = HEROES_DATA.slice()\n\nexport class HeroServiceStub {\n getHero = createSpy('getHero').and.callFake(() =>\n Promise.res... | typescript | edit | 0 | 1 | mit | de4aa20a66c991429ec7bb416d899e5747744bad | hckhanh/tour-of-heroes,hckhanh/tour-of-heroes,hckhanh/tour-of-heroes | src/app/hero-service.stub.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'annotator',\n templateUrl: './annotator.component.html',\n styleUrls: ['./annotator.component.css'],\n})\n\nexport cla... | typescript | edit | 0 | 1 | bsd-3-clause | 4134926195e4cf6b109c72daf698da4d4f298411 | Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber | src/app/annotator/annotator.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Vue from \"vue\";\nimport Component from \"vue-class-component\";\n\n@Component({\n name: \"Hello\",\n})\nexport default class Hello extends Vue {\n msg: string = \"Welcome to Your Vue.js App\";\n// created (): void {\n/... | typescript | edit | 0 | 2 | mit | 4445ba93ee7cba5271fc4889286911f3e42bcaa3 | devkimchi/Vue.js-with-ASP.NET-Core-Sample,devkimchi/Vue.js-with-ASP.NET-Core-Sample,devkimchi/Vue.js-with-ASP.NET-Core-Sample,devkimchi/Vue.js-with-ASP.NET-Core-Sample | src/VueJsTypeScriptAspNetCoreSample/src/components/Hello.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.