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 faFontFamily = 'Font Awesome 5 Free';\n\nexport type FontAwesomeStyle = 'solid' | 'regular' | 'brands';\n\n/**\n * Add an icon into `sap.ui.core.IconPool`.\n *\n * @export\n * @param {string} iconName Icon name.\n * @param {string... | typescript | edit | 0 | 1 | mit | 4695462cf532468595f236d25d85637b37630a4c | gluons/font-awesome-openui5 | src/utils/addIcon.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ngInjector } from '@waldur/core/services';\nimport { translate } from '@waldur/i18n';\nimport { marketplaceIsVisible } from '@waldur/marketplace/utils';\nimport { validateState } from '@waldur/resource/actions/base';\nimport { ... | typescript | edit | 0 | 2 | mit | 2b1eba6964df6cd7c915fe40db02159a6c375d8e | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace/resources/change-limits/ChangeLimitsAction.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Chapters from '../../lib/collections/chapters/collection'\nimport Sequences, { makeEditableOptions } from '../../lib/collections/sequences/collection'\nimport { addEditableCallbacks } from '../editor/make_editable_callbacks';\nim... | typescript | edit | 0 | 2 | mit | f612fa625d91985257dd0acc4b2113993694deaa | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/server/callbacks/sequenceCallbacks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright 2020 Google LLC\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 * http... | typescript | edit | 0 | 0 | apache-2.0 | c8c72182da705f9a0b813ef18f7735eef050bbf4 | GoogleChrome/web-vitals,GoogleChrome/web-vitals | src/lib/finalMetrics.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TestContext } from 'ember-test-helpers';\nimport Pretender from 'pretender';\n\nexport default function setupPretender(hooks: NestedHooks) {\n hooks.beforeEach(function(this: TestContext) {\n this.server = new Pretender();\... | typescript | edit | 0 | 1 | mit | d763f0bf594b2b7a8e618e2ae1d3f4ced173526c | mike-north/ember-api-actions,mike-north/ember-api-actions,truenorth/ember-api-actions,mike-north/ember-api-actions,truenorth/ember-api-actions,mike-north/ember-api-actions | tests/helpers/setup-pretender.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AdminLoginPage } from './admin-login.po';\n\ndescribe('admin login page', () => {\n const page = new AdminLoginPage();\n\n let usernameInput;\n let passwordInput;\n\n beforeEach(async () => {\n await page.navigateTo();\n... | typescript | edit | 0 | 1 | mit | 7851a3c0ada3a7034ca9988bcc2ef734b068d3ef | drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild,drumonii/LeagueTrollBuild | frontend/projects/admin/e2e/src/login/admin-login.e2e-spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Dispatch } from \"redux\";\nimport { Actions } from \"../constants/actions\";\nimport { Wallet, walletService } from \"walletApi\";\nimport { createAction } from \"redux-actions\";\nimport { AlertsActions } from \"./alerts\";\n... | typescript | edit | 0 | 2 | mit | 962c475f7e36ce774f8fb3ff426218cdbf4182a1 | faddiv/budget-keeper,faddiv/budget-keeper,faddiv/budget-keeper,faddiv/budget-keeper | Wallet/OnlineWallet.Web.Core/ClientApp/actions/wallets.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from 'angular2/core';\nimport {Router, ROUTER_DIRECTIVES} from 'angular2/router';\nimport {FORM_DIRECTIVES, ControlGroup, FormBuilder, Validators} from 'angular2/common';\nimport {Authentication} from '../../services/... | typescript | edit | 0 | 2 | apache-2.0 | 3074d5ee04f6b3b9d2112164e649a121d3a42c88 | Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components | demo-shell-ng2/app/components/login/login.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Routes, RouterModule } from '@angular/router';\nimport { HomeComponent } from './home';\nimport { AboutComponent } from './about';\nimport { NoContentComponent } from './no-content';\n\nimport { DataResolver } from './app.resol... | typescript | edit | 0 | 1 | mit | ce524feee0be9dd2b312e5efae5f0509e065075b | jacobjojan/angular2-webpack-starter,HipsterZipster/angular2-webpack-starter,jacobjojan/angular2-webpack-starter,HipsterZipster/angular2-webpack-starter,jacobjojan/angular2-webpack-starter,HipsterZipster/angular2-webpack-starter | src/app/app.routes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Die } from '../shared/die.model';\nimport { Data } from \"../shared/data.interface\";\n\nexport class BestiaryEntry implements Data<BestiaryEntry> {\n constructor(\n public ID:number|undefined = undefined,\n public name:... | typescript | edit | 0 | 0 | mit | dd1dfef513b70ab3156cb9b66856800efbc34252 | madigan/ncounter-ng2,madigan/ncounter-ng2,madigan/ncounter-ng2 | src/app/bestiary/bestiary-entry.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport createHttpClient from './create-http-client';\nimport createMollieApi from './create-mollie-api';\n\n// Expose models\nimport * as ChargebackModel from './models/chargeback';\nimport * as CustomerModel from './models/customer';\n... | typescript | edit | 0 | 2 | bsd-3-clause | 3a1f81d73bc7a720b4f03083c8cb0c1d2beb8e6e | mollie/mollie-api-node,mollie/mollie-api-node,mollie/mollie-api-node | src/mollie.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {\n applyMiddleware,\n createStore,\n combineReducers,\n compose,\n} from 'redux';\nimport * as ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport thunkMiddleware from... | typescript | edit | null | null | mit | a01b302530451b9cece38806e68b304a27c8f1b3 | fsahmad/tsuml-demo,fsahmad/tsuml-demo,fsahmad/tsuml-demo | src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, Input} from \"@angular/core\";\nimport {Dsa} from \"./models/Dsa\";\nimport {DsaService} from \"./dsa.service\";\nimport {LoggerService} from \"eds-common-js\";\nimport {NgbModal, NgbActiveModal} from \"@ng-bootstrap/... | typescript | edit | 0 | 1 | apache-2.0 | 21fdbfc10cd1028cbaac23a0bfed23969f52813f | endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS,endeavourhealth/EDS | src/eds-ui/src/main/frontend/app/dsa/purposeAdd.dialog.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { isEqual } from 'lodash';\n\nimport { IServerGroupCommand } from 'core/serverGroup';\nimport { HelpField } from 'core/help/HelpField';\n\nexport interface IPlatformHealthOverrideProps {\n comman... | typescript | edit | null | null | apache-2.0 | e9b20c800a3e2162bd96f323b073efb5606bb56e | spinnaker/deck,sgarlick987/deck,icfantv/deck,ajordens/deck,spinnaker/deck,duftler/deck,spinnaker/deck,icfantv/deck,icfantv/deck,duftler/deck,duftler/deck,ajordens/deck,ajordens/deck,sgarlick987/deck,sgarlick987/deck,spinnaker/deck,duftler/deck,icfantv/deck,ajordens/deck,sgarlick987/deck | app/scripts/modules/core/src/application/modal/PlatformHealthOverride.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TableCell, VMergeType } from \"./table-cell\";\n\nexport class TableColumn {\n constructor(private readonly cells: TableCell[]) {}\n\n public getCell(index: number): TableCell {\n const cell = this.cells[index];\n\... | typescript | edit | 0 | 2 | mit | 31a91116674231815624542b99d95cbe7a64ed32 | dolanmiu/docx,dolanmiu/docx,dolanmiu/docx | src/file/table/table-column.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for knockout.rx 1.0\n// Project: https://github.com/Igorbek/knockout.rx\n// Definitions by: Igor Oleinikov <https://github.com/Igorbek>\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\n\n/// <referenc... | typescript | edit | 0 | 0 | mit | 0692edd2381159aa004995cfd973f4d6995170f8 | davidsidlinger/DefinitelyTyped,bluong/DefinitelyTyped,progre/DefinitelyTyped,arusakov/DefinitelyTyped,jimthedev/DefinitelyTyped,onecentlin/DefinitelyTyped,jasonswearingen/DefinitelyTyped,lseguin42/DefinitelyTyped,rcchen/DefinitelyTyped,bkristensen/DefinitelyTyped,dydek/DefinitelyTyped,olivierlemasle/DefinitelyTyped,ash... | knockout.rx/knockout.rx.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Redux from 'redux'\nimport {rootReducer, rootReducerMock} from './reducers'\n\ndeclare global {\n interface Window {\n __REDUX_DEVTOOLS_EXTENSION__: Function\n }\n}\n\nconst configureStore = (): Redux.Store<any> => {\n ... | typescript | edit | 0 | 4 | mit | f57dc9cee65483eac287ea1747893fff3aabec95 | devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity | src/frontend/redux/store.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TestBed, async } from '@angular/core/testing';<% if (routing) { %>\nimport { RouterTestingModule } from '@angular/router/testing';<% } %>\nimport { AppComponent } from './app.component';\ndescribe('AppComponent', () => {\n bef... | typescript | edit | null | null | mit | 4785f0158789d8fee2d5a2b06e2d81b46748cd70 | hansl/devkit,hansl/devkit,hansl/devkit,hansl/devkit | packages/schematics/angular/application/other-files/app.component.spec.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport styled from 'styled-components';\n\nimport opacity from '../../../../../shared/defaults/opacity';\nimport typography from '../../../../../shared/mixins/typography';\nimport images from '../../../../../shared/mixins/images';\n\nco... | typescript | edit | 0 | 0 | apache-2.0 | d966e1d712fb365122b6036dd7af3a444355e5ab | Nersent/Wexond,Nersent/Wexond | src/menu/bookmarks/components/TreeBar/Item/styles.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport * as Mocha from 'mocha';\nimport * as glob from 'glob';\n\nexport function run(): Promise<void> {\n\t// Create the mocha test\n\tconst mocha = new Mocha({\n\t\tui: 'tdd',\n\t});\n\tmocha.useColors(t... | typescript | edit | 0 | 3 | mit | 0a1373b6ec1b008ab22f7deb4f56884039f3cd23 | DAXaholic/vscode-edifact | test/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Page from '../UI/Page';\nimport _ttvst from '../TTVST';\n\nimport * as riot from 'riot';\n\nimport SettingsMenu from '../../../../dist/dev.pakl.ttvst/renderer/UI/Settings/SettingsMenu';\nimport SettingsConfig from '../UI/Settings... | typescript | edit | 0 | 1 | mit | ae422d6ffe5c83c0f87b7a15defd068c62b97940 | PakL/TTVStreamerTool,PakL/TTVStreamerTool,PakL/TTVStreamerTool | src/dev.pakl.ttvst/renderer/Pages/SettingsPage.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as md5 from \"md5\";\nimport { TypeUtil } from \"../../Utility/TypeUtil\";\nimport { TypesAwareObjectMapper } from \"../../Mapping/ObjectMapper\";\n\nexport class HashCalculator {\n\n private _buffers: Buffer[] = [];\n\n ... | typescript | edit | 0 | 11 | mit | 399fe0fb1da41976e7e5120d52752ce5a81d8207 | ravendb/ravendb-nodejs-client,ravendb/ravendb-nodejs-client | src/Documents/Queries/HashCalculator.ts | rejected_complexity | Cyclomatic complexity too high: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Container} from '../../collections';\nimport {emit_object} from '../../helpers/emit-object';\nimport {ObjectMember} from '../members/object';\nimport {Type} from '../type';\n\n// tslint:disable-next-line no-empty-interface\nexpo... | typescript | edit | 0 | 1 | mit | da5c634880b1f077ac6b6b55a3a7e08324e2ac18 | ikatyang/dts-element,ikatyang/dts-element | src/elements/types/object.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './intern';\n\nexport const environments = [\n\t{ browserName: 'internet explorer', version: [ '10.0', '11.0' ], platform: 'Windows 7' },\n\t/* Having issues with Edge with Intern and SauceLabs */\n\t// { browserName: 'Mic... | typescript | edit | 0 | 0 | bsd-3-clause | df1f5f3bbace7f54ef7f1172656d582d73523b29 | edhager/widget-core,edhager/widget-core,edhager/widget-core,edhager/widget-core | tests/intern-saucelabs.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as localForage from 'localforage';\r\nimport * as immutableTransform from 'redux-persist-transform-immutable';\r\nimport {\r\n PERSISTED_STATE_WHITELIST,\r\n IMMUTABLE_PERSISTED_STATE_WHITELIST\r\n} from './constants/settings... | typescript | edit | 0 | 1 | mit | 7de2659a424ca472388bc7169fb80b802a69c0c6 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport config from 'config:sanity'\nimport configureClient from 'part:@sanity/base/configure-client?'\nimport sanityClient from '@sanity/client'\n\nconst deprecationMessage = `[deprecation] The Sanity client is now exposed in CommonJS f... | typescript | edit | 0 | 3 | mit | 4c602ce5e28f27c1e8a2a46bf9b948359d71992b | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | packages/@sanity/base/src/client/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Language, LanguageService } from '@picturepark/sdk-v1-angular';\n\n@Component({\n selector: 'pp-language-switch',\n templateUrl: './language-switch.component.html',\n styleUrls: ['... | typescript | edit | 0 | 2 | mit | f5952435dd00a9906995b7426b2664f8c3da3729 | Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript | src/picturepark-sdk-v1-angular/projects/picturepark-sdk-v1-angular-ui/src/lib/features-module/language-switch/language-switch.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CommonModule } from \"@angular/common\";\nimport { NgModule, ModuleWithProviders } from \"@angular/core\";\nimport { FormValidationDirective } from \"./Directives/form-validation.directive\";\nimport { FormGroupComponent } from... | typescript | edit | 0 | 1 | mit | 3ce1b2c9856242c369d4a988f3d0d59159ff95ba | third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation | src/lib/ng-bootstrap-form-validation.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { HTTP_INTERCEPTORS } from '@angular/common/http';\nimport { TokenInterceptor } from './interceptors/token.interceptor';\nimport { JwtHelper } from './helpers/jwt.he... | typescript | edit | 0 | 1 | mit | 5ce9656a940207a8157c8cd2e6f9b72324777936 | denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs | src/Diploms.WebUI/ClientApp/app/auth/auth.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport app, { Component } from '../../index-jsx';\n\nvar model = 'world';\n\nconst Hello = ({name}) => <div>Hello: {name}</div>;\n\nconst view = (val) => {\n return <div>\n <Hello name={val}/>\n <input value={val} oninput={functi... | typescript | edit | null | null | mit | 12ccfab25a885a6c69685bb48dc783ecc358c86b | yysun/apprun,yysun/apprun,yysun/apprun | demo/router-components/echo.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport dynamic from \"next/dynamic\";\nimport ExternalLink from \"./externalLink\";\n\nconst ShareButtons = dynamic(() => import(\"./shareButtons\"));\n\nexport default function Footer() {\n return (\n <>\n <style jsx={true}>{`... | typescript | edit | null | null | apache-2.0 | c64cf403bb255f3e3a72f341dae629ea41c5b812 | thenickreynolds/popcorngif,thenickreynolds/popcorngif | app/components/footer.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { bootstrap, Component } from 'angular2/angular2';\n\n@Component({\n selector: 'deadbase-app',\n template: '<h1>{{title}}</h1><h2>{{venue}} Details!</h2>'\n})\nclass DeadBaseAppComponent {\n public title = \"Deadbase - ... | typescript | edit | 0 | 0 | mit | 72d3f7de35b2639e7b1a1f0ceba97347850b3677 | BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2,BillWagner/TypeScriptAngular2 | DeadBaseSample/src/DeadBaseSample/TypeScriptSource/deadbase.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\n\n// @strictNullChecks: true\n\n// Non-objects should be skipped, so `| number | null` should have no effect on completions.\n////const x: { a: number, b: number } | { a: string, c: string } | { b:... | typescript | edit | 0 | 0 | apache-2.0 | c4c9bf70c429fd5a22537691f841cfc5867db0b9 | minestarks/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,basarat/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,donaldpipowitch/TypeScript,mihailik/TypeScript,kitsonk/TypeScript,Eyas/TypeScript,nojvek/TypeScript,TukekeSoft/TypeScript,kpreisser/TypeScript,mihailik/TypeScript,chuckjaz/TypeScript,RyanCavanau... | tests/cases/fourslash/completionListOfUnion.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as C from './combinators';\nimport * as T from './types/index';\nimport * as S from './seq';\nimport { Arbitrary } from './arbitrary';\nimport hold from './integrations/index';\nimport { property, TestResult, forAll, ForAll } f... | typescript | edit | 0 | 2 | mit | 9070d68b069d930d9166efeb56cd53d0cfa539fb | hychen/ke-e,hychen/ke-e | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai';\nimport { MOVE_SLIDE_DOWN } from '../../../../app/constants/slides.constants';\n\nexport default function(initialState: any, reducer: any, slide: any) {\n const dummySlide1 = {\n plugins: ['plugin1'],\... | typescript | edit | 0 | 1 | mit | 092a5164043632802dfa56ec51b7c6658794fe5f | Team-CHAD/DevDecks,Team-CHAD/DevDecks,chengsieuly/devdecks,chengsieuly/devdecks,chengsieuly/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,DevDecks/devdecks,DevDecks/devdecks | test/reducers/slides/actions/moveSlideDown-spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from 'angular2/core';\nimport {Router, ROUTER_DIRECTIVES} from 'angular2/router';\nimport { References } from '../../services/references';\n\n@Component({\n selector: 'home',\n templateUrl: './components/signIn/sign... | typescript | edit | 0 | 2 | mit | 4ab1fc513569ec42869061828be1140fda570073 | misoukrane/did-or-wish,misoukrane/did-or-wish,misoukrane/did-or-wish | app/components/signIn/signIn.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport runJest from '../__helpers__/runJest';\nimport * as fs from 'fs';\nimport * as path from 'path';\n\ndescribe('hello_world', () => {\n const snapshot =\n`---------------|----------|----------|----------|----------|---------------... | typescript | edit | 0 | 1 | mit | 5fef998275aa6330b812a1e741bee0111981f2a5 | kulshekhar/ts-jest,kulshekhar/ts-jest | tests/__tests__/ts-coverage-async.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, Input, Output, EventEmitter} from 'angular2/core';\nimport {TestAction} from \"../../model/tests\";\n\n@Component({\n selector: \"test-action\",\n template: `<div class=\"test-action\" (click)=\"select()\" (mou... | typescript | edit | 0 | 1 | apache-2.0 | 2f740f4bc97e187e5415466435d7ed54494f027b | christophd/citrus-admin,christophd/citrus-admin,christophd/citrus-admin,christophd/citrus-admin | citrus-admin-client/src/js/components/design/test.action.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport type Koa from 'koa';\n\n/**\n * Koa Middleware to serve '/tutorials/view.html' from '/tutorials/*'.\n */\nexport const tutorialsMidd... | typescript | edit | 0 | 4 | bsd-3-clause | feeba12976632355f6a8300e6bbf873f7b98be56 | lit/lit.dev,lit/lit.dev,lit/lit.dev | packages/lit-dev-server/src/middleware/tutorials-middleware.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 | 1 | apache-2.0 | fe830a3d4823493faff3d967fb989fee8b18204d | DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components | src/component/sidenav/sidenav.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Params } from '@angular/router';\nimport { SetupService } from './setup.service';\nimport { RootService } from '../shared/services';\n\n@Component({\n selecto... | typescript | edit | 0 | 3 | bsd-2-clause | 5b750b99297670aea575b24719a1181f3aa40ea9 | crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin | front_end/src/app/setup/setup.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {XHR} from '../libs/xhr';\n\nexport class InstagramClient {\n\n endpoint: string;\n protocol: string;\n token: string;\n\n xhr: XHR;\n\n constructor() {\n this.protocol = 'https://'\n this.endpoint = 'api.instagram.... | typescript | edit | 0 | 1 | mit | 97c23ff2ce61196f97191a4a72f315f726f4d218 | yadomi/lastagram,yadomi/lastagram,yadomi/lastagram | app/services/instagram.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from \"@angular/core\";\n@Component({\n selector: 'application-component',\n templateUrl: '/static/components/application/application.html',\n styles: [\n `#navbar_botom {margin-bottom: 0; border-radiu... | typescript | edit | 0 | 0 | mit | b6eca5a50677143a650a8d538a9bffd7c22e3cb4 | pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise,pbraunstein/trackercise | app/static/components/application/application.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (c) 2020 The Polymer Project Authors. All rights reserved. This\n * code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt The complete set of authors may be\n ... | typescript | edit | 0 | 0 | bsd-3-clause | 13a223f761c4afa81fc8eaab2461221dc251a0ce | webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills | packages/formdata-event/ts_src/wrappers/wrap_constructor.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 | 3 | mit | f708ded77ee8933f424d95216d6cdea379032365 | rishii7/vscode,mjbvz/vscode,Krzysztof-Cieslak/vscode,stringham/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,mjbvz/vscode,the-ress/vscode,hungys/vscode,hashhar/vscode,microlv/vscode,veeramarni/vscode,hashhar/vscode,cleidigh/vscode,DustinCampbell/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,charlespierce/vscode,hun... | src/vs/base/worker/workerMain.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit} from '@angular/core';\nimport {Router, ActivatedRoute} from '@angular/router';\n\nimport {Player} from '../models/player';\nimport {AdventureService} from '../services/adventure.service';\nimport {StatusCompo... | typescript | edit | 0 | 1 | mit | 6d60229e820c5069fa1477b91e12d1d7dea0a395 | kdechant/eamon,kdechant/eamon,kdechant/eamon,kdechant/eamon | static/main-hall/components/adventure-list.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Component from '@glimmer/component';\n\nexport type SkinType = 'primary' | 'success' | 'warning' | 'danger' | 'secondary';\n\ntype SkinDefType = {\n [key in SkinType]: string;\n};\n\nconst BASE_CLASS = 'upf-tag';\n\nexport const... | typescript | edit | 0 | 4 | mit | ef09d62d60b3924e1493ea1c8b8fbaa26793750d | upfluence/oss-components,upfluence/oss-components,upfluence/oss-components,upfluence/oss-components | addon/components/o-s-s/tag.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { connect } from 'react-redux';\n\nimport AppAlert from './AppAlert';\n\ninterface IAppAlertsProps\n{\n appAlerts?: IAppAlert[];\n};\n\nclass AppAlerts extends React.Component<IAppAlertsProps, an... | typescript | edit | null | null | mit | 09fed824ad739f013cf7d0c3ab08a0f2dd889b9d | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | src/js/View/Components/AppAlerts/Index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { translate } from '@waldur/i18n';\n\nimport { EventGroup } from './types';\n\nexport class EventRegistry {\n private groups = [];\n private formatters = {};\n\n registerGroup(group: EventGroup) {\n this.groups.push(group);... | typescript | edit | 0 | 4 | mit | 905f0d85bf0506f592a4de418cc7a230c3668832 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/events/registry.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { SectionRow } from './SectionRow';\nimport { TableWrapper } from './ArgsTable';\nimport { ResetWrapper } from '../../typography/DocumentFormatting';\n\nexport default {\n component: SectionRow,\n ti... | typescript | edit | null | null | mit | 0e2cf4bbec21fa03cada14d4efe87f00c5e680f4 | storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook | lib/components/src/blocks/ArgsTable/SectionRow.stories.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 { SearchMap } from '../../types';\r\nimport { Card, ResourceList, FormLayout, Button } from '@shopify/polaris';\r\nimport EmptyQueue from './EmptyQueue';\r\nimport QueueItem from './QueueItem';\... | typescript | edit | null | null | mit | 0a12b27bd19ef1342f3df9aa87d91a0e32b1e15a | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/Queue/QueueTable.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 { runTests } from \"vscode-test\";\n\nasync function main() {\n try {\n // The folder containing the Extension Manifest package.json\n // Passed to `--extensionDevelopmentPath`\... | typescript | edit | 0 | 2 | mit | 7bec5d37ec99e7cf0b7fb9014be1c05ebf58c040 | ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters | test/runTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// The address of your Looker instance. Required.\nexport const lookerHost = 'self-signed.looker.com:9999'\n\n// A dashboard that the user can see. Set to 0 to disable dashboard demo.\nexport const dashboardId = 1\n// A Look that the us... | typescript | edit | 0 | 0 | mit | 5cf0d4aee06ca1c1e5e38a9b1d1c69dcc22a166d | looker-open-source/embed-sdk,looker-open-source/embed-sdk,looker-open-source/embed-sdk,looker-open-source/embed-sdk | demo/demo_config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\";\nimport {Member, MembershipStatus} from \"../entity/Member\";\nimport {Box, Card, CardContent, List, Typography} from \"@material-ui/core\";\nimport {GroupMemberListItem} from \"./GroupMemberListItem\";\nimp... | typescript | edit | null | null | apache-2.0 | 7a1e35f8cc388867ad8cc48eee5865e9377aa164 | googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020 | coffee-chats/src/main/webapp/src/components/GroupMembersList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @author Daniel de Oliveira\n */\nexport class DatastoreErrors {\n\n public static INVALID_DOCUMENT: string = 'idai-components-2/datastore/invaliddocument';\n public static GENERIC_ERROR: string = 'idai-components-2/datasto... | typescript | edit | 0 | 0 | apache-2.0 | 8d2ac8dbda1384b16f469e6e4ddb85ee5ad0ea64 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | src/app/core/datastore/model/datastore-errors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as gulp from 'gulp';\nimport * as changedInPlace from 'gulp-changed-in-place';\nimport * as sourcemaps from 'gulp-sourcemaps';\nimport * as less from 'gulp-less';\nimport * as project from '../aurelia.json';\nimport {build} fro... | typescript | edit | 0 | 1 | mit | 685782b4aba3b80e1f36ca5b918ea00c57a6da48 | ghidello/cli,zewa666/cli,zewa666/cli,aurelia/cli,DrSammyD/cli,ghidello/cli,ghidello/cli,zewa666/cli,aurelia/cli,DrSammyD/cli,zewa666/cli,DrSammyD/cli | lib/resources/tasks/process-less.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\nimport { Account } from '../../models';\nimport { AccountService } from '../../services';\n\n@Component({\n selector: 'app-register',\n templateU... | typescript | edit | 0 | 2 | mit | 1faf756a1d926576e1276ef437545a9df609561b | 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 { spawn } from 'child_process'\nimport { fatalError } from './fatal-error'\n\n/** Opens a shell setting the working directory to fullpath. If a shell is not specified, OS defaults are used. */\nexport function openShell(fullPath:... | typescript | edit | 0 | 5 | mit | ed6f9b2cb78eb18aab07807056a4d9841f1e4c3f | hjobrien/desktop,shiftkey/desktop,kactus-io/kactus,gengjiawen/desktop,kactus-io/kactus,shiftkey/desktop,hjobrien/desktop,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,artivilla/desktop,hjobrien/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,BugTesterTest/desktops,shiftkey/desktop,BugT... | app/src/lib/open-shell.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {UploadEvent} from './typedefs'\nimport {UPLOAD_STATUS_KEY} from './constants'\nimport {set, unset} from '../../utils/patches'\n\nconst UNSET_UPLOAD_PATCH = unset([UPLOAD_STATUS_KEY])\n\nexport function createUploadEvent(patches ... | typescript | edit | 0 | 1 | mit | 4416d199e21a5207361e3311072c2dbefa9a3ed0 | sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity | packages/@sanity/form-builder/src/sanity/uploads/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport {}; // To get around: Cannot redeclare block-scoped variable 'mockLogger'.ts(2451)\n\n/**\n * Calculate the sizes to be used for resizing the image based on the current size\n * @param {number} width - the width of the original i... | typescript | edit | 0 | 8 | mit | 4c21d84c6cf6e2c898ba0e5f916b043dc1c1deb5 | guyellis/plant-image-lambda,guyellis/plant-image-lambda | src/image-sizes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport bind from \"bind-decorator\";\nimport { Subscribable } from \"event/Event\";\nimport { SyncEvent } from \"event/SyncEvent\";\nimport { Storage } from \"storage/Storage\";\n\nexport class CachedStorage<T> implements Storage<T> {\n... | typescript | edit | 0 | 2 | mit | 6924ab35f330f9dc7a4518af8be70ae65e3ff37c | easyfuckingpeasy/chrome-reddit-comment-highlights,easyfuckingpeasy/chrome-reddit-comment-highlights | src/storage/CachedStorage.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { ReactElement, useEffect, useState } from 'react';\nimport { Route, Switch } from 'react-router';\nimport { BrowserRouter } from 'react-router-dom';\nimport ImageView from '../shared/image/ImageView';\nimport { doLogout, ... | typescript | edit | null | null | apache-2.0 | 8bfc8aa4fccd936727e2b117638b122d6be956b5 | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/idai_shapes/Shapes.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface stringToObjConfig {\n trim: Boolean;\n delimiters: {\n values: { [key: string]: any },\n blackhole: string | Boolean,\n };\n}\n\ndeclare module 'string-to-obj' {\n\n class stringToObj {\n constructor(config: strin... | typescript | edit | 0 | 1 | mit | 53932ea12ea5e85a65c8e2db51cd7283a88947af | richmondwang/string-to-obj | index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport unsupportedPreviewSvg from 'design-system/assets/img/shared/preview-unsupported.svg';\nimport corruptedPreviewSvg from 'design-system/assets/img/shared/preview-corrupted.svg'... | typescript | edit | null | null | mit | b4703b6703ca3b12ccdfaae50116052182a38acf | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/filePreview/UnsupportedPreview.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 { Head, Row } from '../../components';\nimport { useDayPicker } from '../../hooks';\nimport { UIElement } from '../../types';\nimport { getWeeks } from './utils/getWeeks';\n\n/**\n * The props f... | typescript | edit | null | null | mit | 1b9a7a39583e37a778aee7aaa0531c414adb4c46 | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/components/Table/Table.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { Account } from '../../models';\n\n@Component({\n selector: 'app-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.scss']\n})\nexport class LoginCo... | typescript | edit | 0 | 2 | mit | 3a8f23c0dc197494eca12d7a3b5cf706e73ea8ff | fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training | client/app/accounts/components/login/login.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { NgForm } from '@angular/forms';\n\nimport { Product } from '../product';\n\n@Component({\n templateUrl: './produ... | typescript | edit | 0 | 1 | mit | 45aa575cfb01e8e056797073b29c80de035b5561 | DeborahK/Angular-Routing,DeborahK/Angular-Routing,DeborahK/Angular-Routing | APM-Start/src/app/products/product-edit/product-edit-info.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { CanActivate, CanLoad, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree, Router, Route } from '@angular/router';\nimport { Observable } from 'rxjs';\nimport { AuthService } from '... | typescript | edit | 0 | 2 | mit | 32b805744765d8f48b21a0d55d6d0260c92e541e | DeborahK/Angular-Routing,DeborahK/Angular-Routing,DeborahK/Angular-Routing | APM-Final/src/app/user/auth.guard.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface CustomElement extends HTMLElement {\n attributeChangedCallback?(name: string, oldValue: string, newValue: string);\n childrenUpdated?();\n connectedCallback?();\n disconnectedCallback?();\n forceUpdate?();\n props... | typescript | edit | null | null | mit | f407586d381d36b241b92bf0d2a322fba4dc6f6d | skatejs/skatejs,skatejs/skatejs,skatejs/skatejs | packages/skatejs/src/types.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Dropbox } from 'dropbox';\nimport { User, Rule, RuleService as rs } from './models';\nimport _ = require('underscore');\n\nexport class DropboxService {\n client: Dropbox;\n\n constructor(token?: string) {\n this.client = ... | typescript | edit | 0 | 5 | bsd-2-clause | c4740c4613d3b1c6e26af7da240c97ea32c6f8fe | mustpax/sortmybox,mustpax/sortmybox,mustpax/sortmybox | src/dropbox.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as api from '../libs/api';\nimport * as stickynotes from '../libs/stickynotes';\nimport RoutesFunction from './routesFunction';\n\nexport default ((app, db) => {\n\n\tapp.get('/stickynotes', async (req, res) => {\n\t\ttry {\n\t... | typescript | edit | 0 | 2 | mit | b989a2827233aea0e8c767932c3b713cddb15e77 | michaelgira23/MyMICDS-v2,michaelgira23/MyMICDS-v2 | src/routes/stickynotesAPI.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport NotePage from './NotePage'\nimport { useRouteParams } from '../lib/router'\nimport { StyledNotFoundPage } from './styled'\n\nexport default () => {\n const routeParams = useRouteParams()\n switch (rou... | typescript | edit | null | null | mit | 5036ac71a5856b870801a4f7c698c55a7e469682 | Sarah-Seo/Inpad,Sarah-Seo/Inpad | src/components/Router.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as bodyParser from 'body-parser';\nimport * as dotenv from 'dotenv';\nimport * as express from 'express';\nimport * as morgan from 'morgan';\nimport * as mongoose from 'mongoose';\nimport * as path from 'path';\n\nimport setRou... | typescript | edit | 0 | 2 | mit | a0719b2bf7cda47a0cf974277a1c326a9c23ef5b | hasman16/rent-a-ref,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,hasman16/rent-a-ref,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,hasman16/rent-a-ref | server/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport gql from 'graphql-tag'\n\nexport default gql`\n query MySettings {\n me {\n __typename\n id\n first_name\n last_name\n email\n slug\n unconfirmed_email\n bio\n is_premium\n ho... | typescript | edit | 0 | 0 | mit | f9b953e6b16d85d8531c8e9a6f89e8730a3b33a7 | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | src/v2/components/UserSettings/queries/UserSettingsQuery.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Platform } from '@angular/cdk/platform';\nimport { HttpClient } from '@angular/common/http';\nimport { ShareButtonBase } from './base';\nimport { IShareButton, ShareMetaTags } from '../share.models';\n\nexport class TelegramBut... | typescript | edit | 0 | 1 | mit | f10189a8f32be9a779bcf47f7dd8f5007f616905 | MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons,MurhafSousli/ng2-sharebuttons | projects/core/src/lib/buttons/telegram.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* @internal */\r\nnamespace ts.codefix {\r\n registerCodeFix({\r\n errorCodes: [Diagnostics.Class_0_incorrectly_implements_interface_1.code],\r\n getCodeActions: (context: CodeFixContext) => {\r\n const sour... | typescript | edit | 0 | 5 | apache-2.0 | 55bf3e3ff01d5eeaedc206715be04b26fc305cb6 | mihailik/TypeScript,TukekeSoft/TypeScript,Microsoft/TypeScript,Eyas/TypeScript,Microsoft/TypeScript,TukekeSoft/TypeScript,Microsoft/TypeScript,erikmcc/TypeScript,nojvek/TypeScript,chuckjaz/TypeScript,erikmcc/TypeScript,basarat/TypeScript,mihailik/TypeScript,donaldpipowitch/TypeScript,kitsonk/TypeScript,alexeagle/TypeSc... | src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { NavParams } from 'ionic-angular';\n\nimport { UserData } from '../../providers/user-data';\n\n\n@Component({\n templateUrl: 'build/pages/session-detail/session-detail.html'\n})\nex... | typescript | edit | 0 | 1 | apache-2.0 | 901ccee8092d082434d37ed9d2fab69b2804eed7 | laodice/ionic-conference-app-session2,laodice/ionic-conference-app-session2,laodice/ionic-conference-app-session2 | app/pages/session-detail/session-detail.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Cleanup CSS!\nimport '../App.css';\nimport { Component } from 'react';\nimport * as React from 'react';\n\nexport default class StageInfo extends Component<any, any> {\n constructor(props: any, context: any) {\n super(props, cont... | typescript | edit | null | null | apache-2.0 | fe52083cf376a9a495f85659de2b29d805992c40 | flubstep/engvalues,flubstep/engvalues,flubstep/engvalues | src/components/StageInfo.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nexport * from './toc';\nexport * from './registry';\nexport * from './generators';\n\n```\n\nApply this change: Reorder imports a... | typescript | edit | 0 | 0 | bsd-3-clause | e8bf21c46494a48e52468c105eda23d232007d60 | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | packages/toc/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Company, User } from '.'\n\nexport interface Event {\n readonly id: string\n readonly companyName: string\n readonly company: Company\n readonly responsible: User\n readonly schedule: string\n readonly location: string\n ... | typescript | edit | 0 | 0 | mit | 270df4226461076cc8b2ec8883eadc19c060b3ec | studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord | src/models/Event.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';\nimport { MediaChange, MediaObserver } from '@angular/flex-layout';\nimport { MatSidenav } from '@angular/material';\nimport { filter } from 'rxjs/operators';\n\ni... | typescript | edit | 0 | 2 | mit | 5943cc27789df7136b63ffcbc77ed6ae39425378 | ngx-rocket/generator-ngx-rocket,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket,angular-starter-kit/generator-ngx-app,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket,angular-starter-kit/generator-ngx-app,ngx-rocket/generator-ngx-rocket | generators/app/templates/src/app/shell/__material-simple.shell.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as chai from 'chai'\nconst expect = chai.expect\n\nimport { CommitIdentity } from '../../src/models/commit-identity'\n\ndescribe('CommitIdentity', () => {\n describe('#parseIdent', () => {\n it('understands a normal ident s... | typescript | edit | null | null | mit | 4b18946ca75f00a897a23274ff72a5a89a048169 | kactus-io/kactus,BugTesterTest/desktops,gengjiawen/desktop,artivilla/desktop,artivilla/desktop,BugTesterTest/desktops,kactus-io/kactus,kactus-io/kactus,say25/desktop,gengjiawen/desktop,BugTesterTest/desktops,hjobrien/desktop,hjobrien/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,desktop/de... | app/test/unit/commit-identity-test.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\nimport {RoutingModule} from './router/rou... | typescript | edit | 0 | 1 | apache-2.0 | 78a397e070335dafd4ed69001e0818d966498627 | toladata/TolaProfile,toladata/TolaProfile,toladata/TolaProfile,toladata/TolaProfile | FrontEnd/src/app/app.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useState } from 'react';\n\nimport { DayClickEventHandler, ModifierStatus, SelectMode } from '../../types';\nimport { DateRange } from '../../types/DateRange';\nimport { addToRange } from './utils/addToRange';\n\nexport type Ra... | typescript | edit | 0 | 3 | mit | 12bf19c5ce0d2737fe70a56be000cf2e5ed50885 | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/hooks/useSelection/useSelectRange.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @file CORS middleware\n * @author Dave Ross <<EMAIL>>\n */\n\nimport { Application, Request, Response } from \"polka\"\n\nexport default function corsAllowAll(server: Application) {\n\n\tserver.use(\"/*\", function (req: Request... | typescript | edit | 0 | 2 | mit | 72635008fd6e6fcd9599d516ff73812893ac4120 | daveross/catalogopolis-api,daveross/catalogopolis-api | app/src/cors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Paper } from \"./paper\";\n\n// Determines if a <br> in the editable area is part of the document or a doorstop at the end of a block.\nexport function isBRPlaceholder(paper: Paper, node: Node) {\n if (node.nodeName !== 'BR') ... | typescript | edit | 0 | 9 | mit | 1ae8d70fff30e038968bdbf89c188260faf57efd | jacwright/typewriter,jacwright/typewriter | packages/view/src/br.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Component, Prop, State, Element, Watch,\n} from '@stencil/core';\n\n@Component({\n tag: 'c-global-style',\n styleUrl: 'global-style.scss',\n})\nexport class GlobalStyle {\n @Prop({ context: 'store' }) ContextStore: any;\n... | typescript | edit | null | null | mit | 51a4a7f7e13e5cac17c0e4f960542a81f74dba40 | scania/corporate-ui,scania/corporate-ui | src/components/global-style/global-style.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { InlineLinkButton, Icon } from 'react-components';\n\ninterface Props {\n inTrash: boolean;\n filter: boolean;\n onToggle: () => void;\n}\n\nconst TrashWarning = ({... | typescript | edit | null | null | mit | c644843b090bc62385398d581c93ff90d7f028ac | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/mail/src/app/components/conversation/TrashWarning.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport TextFieldAdapter = require(\"awayjs-player/lib/adapters/TextFieldAdapter\");\nimport AdaptedTextField = require(\"awayjs-player/lib/display/AdaptedTextField\");\n\nclass AS2TextFieldAdapter implements TextFieldAdapter\n{\n pri... | typescript | edit | 0 | 2 | apache-2.0 | 43c897bd040705566b1822dc2b434c743086a99c | awayjs/awayjs-player,awayjs/awayjs-player,awayjs/awayjs-player | lib/adapters/AS2TextFieldAdapter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { InjectionToken } from '@angular/core';\n\nexport interface ConfigActions {\n [key: string]: boolean\n}\n\nexport interface PictureparkUIConfiguration {\n 'ContentBrowserComponent': ConfigActions,\n 'BasketComponent': C... | typescript | edit | 0 | 1 | mit | eba587272e84e65507ac3491f17cc16a873081f4 | Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript | src/picturepark-sdk-v1-angular/projects/picturepark-sdk-v1-angular-ui/src/lib/configuration.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * CloudEvent class definition\n */\nexport class Cloudevent {\n public constructor(spec?: any, formatter?: any);\n\n public format(): any;\n public toString(): string;\n\n public id(id: string): Cloudevent;\n public getId(): ... | typescript | edit | 0 | 1 | apache-2.0 | e78f36a609c9177e36fdd4e28a103acd422b4627 | cloudevents/sdk-javascript,cloudevents/sdk-javascript | v1/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\n\nimport {HsAddLayersVectorService} from './add-layers-vector.service';\nimport {HsLayoutService} from '../../layout/layout.service';\n\n@Component({\n selector: 'hs-add-layers-vector',\n temp... | typescript | edit | null | null | mit | 3aa9c2499e643ba9888109468386e4dea49535d9 | hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng | components/add-layers/vector/add-layers-vector.component.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../../../typings/jasmine/jasmine.d.ts\" />\n/// <reference path=\"../../../../typings/angularjs/angular-mocks.d.ts\" />\n\n'use strict';\n\ndescribe('app.tree.TreeService', () => {\n\n var treeService : app.tre... | typescript | edit | 0 | 1 | mit | 3d95072fb4786ce10a70e69229214b18b898a497 | pancho111203/JsonFormsEditor,eclipsesource/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFo... | app/src/components/tree/tree.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Stream } from 'most';\n\nexport function nth<T>(index: number): (stream: Stream<T>) => Promise<T>;\nexport function first<T>(stream: Stream<T>): Promise<T>;\nexport function last<T>(stream: Stream<T>): Promise<T>;\n\n```\n\nApp... | typescript | edit | 0 | 1 | bsd-3-clause | be078ecf5994ddd4a2c66b7d05998d6a9953a88b | craft-ai/most-utils,craft-ai/most-utils | packages/most-nth/src/most-nth.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { AppState } from '../../app.service';\n\n@Component({\n selector: 'menu',\n styleUrls: ['./menu-components.scss'],\n templateUrl: './menu.components.html'\n})\nexport class MenuComp... | typescript | edit | 0 | 3 | mit | 303c87cbad1e2e8766ad1ffbf8639697351c9ab3 | gcriva/gcriva-frontend,gcriva/gcriva-frontend,gcriva/gcriva-frontend,gcriva/gcriva-frontend | src/app/pages/menu/menu.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for storybook-addon-jsx 5.4\n// Project: https://github.com/storybooks/storybook\n// Definitions by: James Newell <https://github.com/jameslnewell>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\... | typescript | edit | 0 | 0 | mit | ed674d727942e7219c7f413afa7d73ef23e298d2 | georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped | types/storybook-addon-jsx/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {PluginObj} from '@babel/core'\nimport {NodePath} from '@babel/traverse'\nimport {Program} from '@babel/types'\nimport commonjsPlugin from '@babel/plugin-transform-modules-commonjs'\n// Rewrite imports using next/<something> to n... | typescript | edit | 0 | 3 | mit | 1a5fc941ce53a3e192a388b0caa65922078e96e4 | flybayer/next.js,zeit/next.js,JeromeFitz/next.js,BlancheXu/test,BlancheXu/test,azukaru/next.js,JeromeFitz/next.js,JeromeFitz/next.js,BlancheXu/test,zeit/next.js,azukaru/next.js,azukaru/next.js,azukaru/next.js,zeit/next.js,flybayer/next.js,flybayer/next.js,flybayer/next.js,JeromeFitz/next.js | packages/next/build/babel/plugins/commonjs.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fetch from 'isomorphic-fetch'\n\nexport default async (endpoint: string): Promise<Record<string, unknown> | Record<string, unknown>[]> => {\n const response = await fetch(`https://data.police.uk/api${endpoint}`)\n return r... | typescript | edit | 0 | 1 | mit | bf9d4f7379547c5058c594ef495243d61d2001ec | AlexChesters/ukpd,AlexChesters/ukpd,AlexChesters/ukpd | src/utils/fetch-data.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as path from \"path\";\nimport * as glob from \"glob\";\n\nlet _posixifyRegExp = new RegExp(\"\\\\\\\\\", \"g\");\nexport function posixify(path:string) {\n return path.replace(_posixifyRegExp, \"/\");\n}\n\nexport function co... | typescript | edit | 0 | 5 | apache-2.0 | 5c02770c93ed19355e9f5661c9a89fa6c4fbc18d | witheve/eve-starter,witheve/eve-starter,witheve/eve-starter | src/util.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Optional, Input, OnInit, OnDestroy } from '@angular/core';\nimport { RootService } from '../../infrastructure/component/index';\nimport { PluginComponent } from '../plugin.component';\nimport { EditFormView } from 'n... | typescript | edit | 0 | 0 | mit | 3835bf23795aca8f2a60ea2c0d7b4674e3802c7b | azkurban/ng2,qgrid/ng2,qgrid/ng2,qgrid/ng2,azkurban/ng2,azkurban/ng2 | src/plugins/edit-form/edit-form.component.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.