messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Type } from '@angular/core';\n\nimport { ResourceParamsBase } from './Interfaces';\nimport { ResourceProviders } from './ResourceProviders';\nimport { Resource } from './Resource';\n\n\nexport function ResourceParams(params: Re... | typescript | edit | 0 | 8 | mit | 08d65850106eaee40dcd504671604b63ca32e44b | troyanskiy/ng2-resource-rest,troyanskiy/ng2-resource-rest | src/ResourceParams.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { fetchJSON } from '../../http';\nimport { User, Rankings } from '../../lichess/interfaces/user'\n\nexport function autocomplete(term: string): Promise<Array<string>> {\n return fetchJSON('/player/autocomplete', { query: { term ... | typescript | edit | 0 | 1 | mit | c57b99de9d8ae236c16ecfbc794f9404a6bcbaa2 | btrent/lichobile,btrent/lichobile,btrent/lichobile,btrent/lichobile | src/js/ui/players/playerXhr.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { <%= pAppName %>Config } from \"./<%= hAppName %>.config\";\n\nangular.module(\"<%= appName %>\", [\n \"ui.router\"\n])\n.config(<%= pAppName %>Config);\n```\n\nApply this change: Add the run function to entry point"
},
{... | typescript | edit | null | null | mit | 3a45a960d665ff5daa024625b91cef64bc44ea0d | Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli | templates/app/src/_name.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { app, BrowserWindow, dialog } from 'electron'\nimport { basename } from 'path'\nimport { supportedFiles } from '../ui/settings/supported-files'\n\nexport function showOpenDialog(mainWindow: BrowserWindow): Promise<string> {\n ... | typescript | edit | 0 | 2 | mit | ab731e292bc9bdd8f18724b375b637341578ef1a | nrlquaker/nfov,nrlquaker/nfov | src/utils/dialogs.ts | accepted | null | true |
[
{
"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\ttry {\n\t\t// The folder containing the Extension Manifest package.json\n\t\t// Passed to `--extensionDevelopmentPath`\n\t\tconst ext... | typescript | edit | 0 | 2 | mit | d14db4b1c0918527b2c0d5cb7a9daa6a09f3254b | neild3r/vscode-php-docblocker | test/runTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { MobxAutorunDirective } from './directives/mobx-autorun.directive';\nimport { MobxAutorunSyncDirective } from './directives/mobx-autorun-sync.directive';\nimport { MobxReactionDirective... | typescript | edit | 0 | 1 | mit | 44eb5b33ea4c7477ccb87c9018ed93e8cbdfab51 | 500tech/ng2-mobx,500tech/ng2-mobx,mobxjs/mobx-angular,mobxjs/mobx-angular,500tech/ng2-mobx,mobxjs/mobx-angular,mobxjs/mobx-angular | lib/mobx-angular.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Account } from '../models/account'\n\n/** Get the auth key for the user. */\nexport function getKeyForAccount(account: Account): string {\n return getKeyForEndpoint(account.endpoint)\n}\n\n/** Get the auth key for the endpoint... | typescript | edit | 0 | 2 | mit | 1fb5b3c155f7695057cc778229f12661551699d8 | artivilla/desktop,shiftkey/desktop,gengjiawen/desktop,hjobrien/desktop,hjobrien/desktop,kactus-io/kactus,desktop/desktop,gengjiawen/desktop,desktop/desktop,say25/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,desktop/desktop,j-f1/forked-desktop,hjobrien/desktop,say25/desktop,artivilla... | app/src/lib/auth.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule app {\n\n import IDialogService = angular.material.IDialogService;\n import IDialogOptions = angular.material.IDialogOptions;\n import DataschemaImportController = app.dialogs.dataschemaimport.DataschemaImportController;... | typescript | edit | 0 | 2 | mit | d96ded7841c9f2a0e8521fcb61a2d570dd06cf7c | FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonFormsEditor,eclipsesource/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,pancho111203/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,eclipsesource/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFormsEditor,pancho111203/JsonFor... | app/src/app.run.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport jsonp from 'jsonp';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareCount from './hocs/createShareCount';\n\ndeclare global {\n interface Window {\n OK: {\n Share: {\n count: (inde... | typescript | edit | 0 | 1 | mit | 609a2105cc77d2b47f4192ff79118d2b4cecc2da | nygardk/react-share,nygardk/react-share | src/OKShareCount.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nenum AlertType {\n 'info',\n}\n\nexport type ErrorThrownActionCreator = (\n error: Error,\n altText?: string,\n alertType?: AlertType\n) => ErrorThrownAction\n\ninterface ErrorThrownAction {\n type: 'ERROR_THROWN'\n error: Error\n... | typescript | edit | 0 | 1 | mit | 8c2e8a2176ef6b54ae0f27885a62dd65583df6e8 | influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,li-ang/influxdb,nooproblem/influxdb,mark-rushakoff/influ... | ui/src/shared/actions/errors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport {Schema, transform, arrayOf} from \"idealizr\";\n\nexport const game = new Schema(\"games\");\nexport const user = new Schema(\"users\");\nexport const collection = new Schema(\"collections\");\nexport const downloadKey = new S... | typescript | edit | 0 | 1 | mit | 69911da7839ac0e0af9c3c81d96b313a8f3726fc | itchio/itch,itchio/itch,leafo/itchio-app,itchio/itchio-app,itchio/itchio-app,itchio/itch,itchio/itch,leafo/itchio-app,leafo/itchio-app,itchio/itch,itchio/itchio-app,itchio/itch | src/util/schemas.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getResolvedLocale } from '../helpers/get-resolved-locale.js';\nimport { APP_INDEX_URL } from './constants.js';\nimport {\n ok, strictEqual,\n} from './helpers/typed-assert.js';\n\ndescribe('timezones', () => {\n before(async ... | typescript | edit | 0 | 6 | mit | c3347661047dc7cc25e7e3300c9097e702a0cbc5 | motss/app-datepicker,motss/app-datepicker,motss/app-datepicker,motss/jv-datepicker | src/tests/full-icu.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { MutableRefObject } from 'react'\nimport { observer } from 'mobx-react'\nimport Input from '@material-ui/core/Input'\nimport { useStore } from './StoreContext'\n\nexport type InputRefProps = { inputRef: MutableRefObject<H... | typescript | edit | null | null | mit | 9edf863887e7674e430b1d9fb0995abf1ed16ec1 | xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2 | src/js/components/Search.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { Component } from \"react\"\nimport styled from \"styled-components\"\nimport { NewsHeadline } from \"../News/NewsHeadline\"\nimport { NewsSections } from \"../News/NewsSections\"\n\ninterface Props {\n article: any\n i... | typescript | edit | null | null | mit | 09a649b3f28351bb59d083bba2bffb90f8ea5b49 | artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction | src/Components/Publishing/Layouts/NewsLayout.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Query from '../Query'\n\nexport type Constraint = (query: Query) => boolean\n\nexport default Constraint\n\n```\n\nApply this change: Change return type of has constraint to not expect a boolean"
},
{
"role": "assistant",... | typescript | edit | 0 | 0 | mit | 6bd8233a57e2b74010be8a33bab195ced820db58 | revolver-app/vuex-orm,revolver-app/vuex-orm | src/query/options/HasConstraint.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../../dts/protractor.d.ts\" />\n\ndeclare var by: AureliaSeleniumPlugins;\n\nclass PageObject_Welcome {\n\n constructor() {\n\n }\n\n getGreeting() {\n return element(by.tagName('h2')).getText();\n }\n\n ... | typescript | edit | 0 | 1 | mit | 090ff88fe5a4fc8be9f40d9517af006143dc9de3 | bohnen/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript,bohnen/aurelia-skeleton-navigation-gulp-typescript,bohnen/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript | src/test/e2e/welcome.po.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict'; // XXX\nimport * as https from 'https';\nimport * as fs from 'fs';\nimport * as path from 'path';\nimport * as mkdirp from 'mkdirp';\nimport * as request from 'request';\n\nfunction download(org: string, url: string): Prom... | typescript | edit | 0 | 1 | mit | 77d5dc82b3791d87536278104c4a54d1bd02c289 | takenspc/diffofhtmlsgenerator | fetcher/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IncomingMessage } from 'http';\nimport { Buffer } from 'buffer';\n\n/**\n * Simple utility Hash array type\n */\nexport type ObjectMap<T> = {[key: string]: T};\n\n/**\n * A Valid HTTP operation\n */\nexport type HttpVerb = 'GET... | typescript | edit | 0 | 0 | mit | 81e1841b1c3bb88b8e6e14b74ffddabe3711ee43 | syrp-nz/ts-lambda-handler,syrp-nz/ts-lambda-handler | src/Types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {PlatformStaticsOptions, PlatformStaticsSettings} from \"../config/interfaces/PlatformStaticsSettings\";\n\nfunction mapOptions(options: any) {\n const opts: PlatformStaticsOptions =\n typeof options === \"string\"\n ? {... | typescript | edit | 0 | 2 | mit | adc24e3a7187e8dbf5ce3f8913a845e99fb478d6 | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | packages/platform/common/src/utils/getStaticsOptions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for super-image 2.0.0\n// Project: https://github.com/openfresh/super-image\n\nimport * as React from 'react';\n\ndeclare namespace SuperImage {\n export interface Source {\n srcSet?: string;\n sizes?: string;... | typescript | edit | 0 | 0 | mit | 1be4bd4d8db31f69e562a4b8a07ba7feb75ddcbc | openfresh/super-image | type/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This file is required by karma.conf.js and loads recursively all the .spec and framework files\n\nimport 'zone.js/dist/zone-testing';\nimport { getTestBed } from '@angular/core/testing';\nimport {\n BrowserDynamicTestingModule,\n ... | typescript | edit | 0 | 0 | mit | c9348e0a0088b30e2ba9a4a2211559e78d203244 | seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary | package/test/test-browser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ModeName } from '../mode/mode';\nimport { StatusBar } from '../statusBar';\nimport { VimState } from '../state/vimState';\nimport { configuration } from '../configuration/configuration';\n\nexport function ReportClear(vimState:... | typescript | edit | null | null | mit | 8f3305024d5ae3f132b5735de5509c9a579c0474 | VSCodeVim/Vim,VSCodeVim/Vim | src/util/statusBarTextUtils.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { color, typography, background } from '../base';\nimport { ThemeVars } from '../types';\n\nconst theme: ThemeVars = {\n base: 'light',\n\n // Storybook-specific color palette\n colorPrimary: '#FF4785', // coral\n colorSecond... | typescript | edit | 0 | 0 | mit | 943f762e7d6b0f578e06a5347e8ccc4acd6fd58f | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | lib/theming/src/themes/light.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HttpClientModule } from '@angular/common/http';\nimport { TestBed } from '@angular/core/testing';\nimport {} from 'jasmine';\nimport { AuthService } from '../lib/services/auth.service';\nimport { AccessTokenAuthService } from '... | typescript | edit | 0 | 1 | mit | 69431de0b646a030fdbf0943697350c2d0944ed2 | Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript | src/picturepark-sdk-v1-angular/projects/picturepark-sdk-v1-angular/src/tests/config.template.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const fetchImage = async (project: string,\n id: string,\n maxWidth: number,\n maxHeight: number,\n t... | typescript | edit | 0 | 3 | apache-2.0 | 34157af8a56df0b268a6b1d6e6db624f9866cdf5 | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/api/image.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { isProjectDocument } from \"../../src/datastore/helpers\";\n\n\ndescribe('helpers', () => {\n \n it('isProjectDocument', () => {\n\n const result = isProjectDocument({ resource: { id: 'project' }} as any);\n ex... | typescript | edit | 0 | 1 | apache-2.0 | eb41396452c5f81cf08e99b18a1a59109fc2cdc9 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | core/test/datastore/helpers.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const environment = {\n production: true,\n backend: {\n url: 'https://ng2-training.herokuapp.com/api'\n }\n};\n\n```\n\nApply this change: Set backend url as relative"
},
{
"role": "assistant",
"content": "expo... | typescript | edit | 0 | 0 | mit | abfd38a0f59113b07bb08f78b8ff57648afad131 | fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training | client/environments/environment.prod.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FC, useEffect } from 'react'\nimport { usePlatform, WindowConfig } from 'rt-components'\nimport { WindowCenterStatus } from './types'\n\nconst defaultConfig: WindowConfig = {\n name: '',\n url: '',\n width: 600,\n height: 6... | typescript | edit | 0 | 3 | apache-2.0 | f0c922bf19c018d14026a7a767fcfa69af7f7f94 | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | src/client/src/rt-components/tear-off/ExternalWindow.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst Disable = false\n\n/**\n * Enables the application to opt-in for preview features based on runtime\n * checks. This is backed by the GITHUB_DESKTOP_PREVIEW_FEATURES environment\n * variable, which is checked for non-development en... | typescript | edit | 0 | 4 | mit | 130247f2823acb7d18d88eb3d6b1291ecc2b8e94 | desktop/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,j-f1/forked-deskto... | app/src/lib/feature-flag.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare var require:any;\nvar PouchDB = require(\"pouchdb\")\nimport * as Promise from \"bluebird\";\n\n(window as any).Promise = Promise;\nexport let db = new PouchDB(\"mbit\", { revs_limit: 2 })\n\nexport class Table { \n constr... | typescript | edit | 0 | 3 | mit | fcceaab2167a186d4982cf1beb4bd2f9e025dffe | playi/pxt,playi/pxt,Microsoft/pxt,playi/pxt,Microsoft/pxt,switchinnovations/pxt,switch-education/pxt,Microsoft/pxt,switch-education/pxt,Microsoft/pxt,switchinnovations/pxt,switch-education/pxt,Microsoft/pxt,switchinnovations/pxt,switch-education/pxt,switch-education/pxt,playi/pxt,switchinnovations/pxt | webapp/src/db.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { useState, FunctionComponent, ChangeEvent } from \"react\";\n\ntype Props = {\n initialVolume: number;\n onChangeVolume: (volume: number) => void;\n};\n\nconst Component: FunctionComponent<Props> = props => {\n const [... | typescript | edit | null | null | mit | a1930a4aa9e3b114ab15c94cd0cfbbd17bf1945d | frosas/lag,frosas/lag,frosas/lag | src/browser/audio/Component.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'whatwg-fetch';\n\nexport const BASE_URL = 'http://api.giphy.com/v1/gifs'; \n\nexport function get(path): any {\n return fetch(BASE_URL + path, {\n method: 'get',\n headers: {\n 'Accept': 'application/json',\n 'C... | typescript | edit | 0 | 1 | mit | cc90653c0a115bdfa843dc8c1c4d5dc9ad8aeda1 | andrewlo/giphy-react-redux,andrewlo/giphy-react-redux,andrewlo/giphy-react-redux | src/api/server/giphy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\nimport * as moment from 'moment';\nimport { badRequest } from 'boom';\nimport * as Joi from 'joi';\n\nnamespace schemas {\n export const username = Joi.string().token().empty().min(2).max(20).label('Userna... | typescript | edit | 0 | 1 | mit | f346650c733d1f4775dc5dfb280565c207e3211e | majori/piikki | src/utils/validators.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../../index'\nimport { PlainTextNode } from '../../../SyntaxNodes/PlainTextNode'\n\n\ndescribe('Inside plain text nodes, all instances of < and &', () => {\n it('are replaced with \"<... | typescript | edit | 0 | 1 | mit | 364b90133f5c7b9b66a590b9770800bcc155fea0 | start/up,start/up | src/Test/Html/Escaping/Content.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, EventEmitter, Input, Output } from '@angular/core';\n\nimport { Game } from './game';\n\n@Component({\n selector: 'duel-game',\n templateUrl: './game.component.html',\n styleUrls: ['./game.component.css'],\n})\nex... | typescript | edit | 0 | 2 | mit | af6f355f086102c7119eb52d51275160fb33c487 | lentz/buddyduel,lentz/buddyduel,lentz/buddyduel | src/app/duels/game.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, Input, Output, OnInit, EventEmitter} from 'angular2/core';\nimport {FormBuilder, ControlGroup, Validators} from 'angular2/common';\nimport {Game} from '../shared/models/game.model';\n\n@Component({\n selector: 'agot-... | typescript | edit | 0 | 1 | mit | 97a23155ca9eba4008fe108db4ea1de266e7cc67 | davewragg/agot-spa,davewragg/agot-spa,davewragg/agot-spa | src/game/game-form.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst ERRORS = {\n \"404-001\": {\n message: \"Unable to fetch the list of projects\",\n debug: \"Please check your internet connection\"\n },\n \"422-001\": {\n message: \"Login failed due to a badly formatted token. %{toke... | typescript | edit | 0 | 4 | mit | 7ed6389c41311791117f08e4178d156ffd90c1eb | yllieth/localehub,yllieth/localehub,yllieth/localehub,yllieth/localehub | app/+models/application-error.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ArgTypes } from '@storybook/api';\nimport { ArgTypesExtractor, hasDocgen, extractComponentProps } from '../../lib/docgen';\nimport { trimQuotes } from '../../lib/sbtypes/utils';\n\nconst SECTIONS = ['props', 'events', 'slots'];... | typescript | edit | 0 | 3 | mit | 739e1b861f4ad3d1b5ae6ae93bcf51e929f6558a | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook | addons/docs/src/frameworks/vue/extractArgTypes.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:`\n <h1>{{title}}</h1>\n <h2>{{hero.name}} details!</h2>\n <div><label>id: </label>{{hero.id}}</div>\n <div><label>name: </label>{{hero.na... | typescript | edit | null | null | mit | 9dc3a4759ab9fc5003e74e570ef299afefc78045 | atbtm/Angular2-Pull-Repo,atbtm/Angular2-Pull-Repo,atbtm/Angular2-Pull-Repo | app/app.component.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport { AuthAPIClient } from \"./src/v1/AuthAPIClient\";\nexport { DataAPIClient } from \"./src/v1/DataAPIClient\";\nexport { Constants } from \"./src/v1/Constants\";\nexport { IAccount } from \"./src/v1/interfaces/data/IAccount\";\nex... | typescript | edit | 0 | 0 | mit | 10d0c9c6c31c28afadbc4384e3fb1369042c8f8c | TrueLayer/truelayer-client-javascript | index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { KeyboardSensor, PointerSensor, useSensor, useSensors } from '@dnd-kit/core';\nimport { sortableKeyboardCoordinates } from '@dnd-kit/sortable';\nimport { CSS, Transform } from '@dnd-kit/utilities';\nimport { CSSProperties } from... | typescript | edit | 0 | 4 | mit | cffe062e3775a81b335346abd1c5986887bb058d | neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library,neinteractiveliterature/larp_library | app/javascript/SortableUtils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ModeName } from '../mode/mode';\nimport { StatusBar } from '../statusBar';\nimport { VimState } from '../state/vimState';\nimport { configuration } from '../configuration/configuration';\n\nexport function ReportClear(vimState:... | typescript | edit | 0 | 3 | mit | cdada4c185ab5a634c5be777c592e45b57b14ae7 | VSCodeVim/Vim,VSCodeVim/Vim | src/util/statusBarTextUtils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { parseInlineConventions } from './ParseInlineConventions'\nimport { TextConsumer } from '../TextConsumer'\nimport { applyBackslashEscaping } from '../TextHelpers'\nimport { LinkNode } from '../../SyntaxNodes/LinkNode'\nimport { ... | typescript | edit | 0 | 3 | mit | 4f03539b6b0be5daceca828bec28e5cc103fd3b9 | start/up,start/up | src/Parsing/Inline/ParseLink.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\n\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/observable/of';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/catch';\n\... | typescript | edit | 0 | 2 | mit | b9829108e291f513eb2ed27f5ce98fafb7a2cf77 | kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard | src/app/board/board.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport axios from 'axios';\r\nimport { API_URL } from '../constants';\r\n// import { validateHitAccept } from '../utils/parsing';\r\n\r\nexport interface HitAcceptResponse {\r\n readonly successful: boolean;\r\n}\r\n\r\n/**\r\n * Stran... | typescript | edit | 0 | 6 | mit | 4ad09c7189564393fbb0931fb0d22c279cfe086e | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/api/acceptHit.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createRoot } from \"react-dom/client\";\nimport App from \"./App\";\n\nif (process.env.NODE_ENV === \"production\") {\n if (window.location.host === \"www.npcgenerator.com\") {\n console.log(\"you are accessing us via www. ... | typescript | edit | null | null | mit | 0d884a6cfefe27720c0c4f5e5692cab8442f323c | Cellule/dndGenerator,Cellule/dndGenerator,Cellule/dndGenerator | 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';\nimport * as Table from 'react-bootstrap/lib/Table';\n\nimport { translate } from '@waldur/i18n';\n\nexport const StatsTable = props => (\n <Table\n responsive={true}\n bordered={true}\n striped... | typescript | edit | null | null | mit | 5acc7f87ec193c471ba2edb6d185745ea32198f2 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace-checklist/StatsTable.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport select from 'select-dom';\nimport features from '../libs/features';\n\nfunction init() {\n\tconst btn = select('.merge-message .btn-group-squash [type=submit]');\n\tif (!btn) {\n\t\treturn false;\n\t}\n\n\tbtn.addEventListener('c... | typescript | edit | 0 | 2 | mit | 38b53105f8ff8356140e80b49a7a85ca2e5589a2 | sindresorhus/refined-github,sindresorhus/refined-github,busches/refined-github,busches/refined-github | source/features/fix-squash-and-merge-title.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { red, yellow } from \"chalk\"\nimport { existsSync } from \"fs\"\nimport { join } from \"./path\"\nimport { applyPatch } from \"./applyPatches\"\nimport { bold, green } from \"chalk\"\n\nconst yarnPatchFile = join(__dirname, \".... | typescript | edit | 0 | 3 | mit | ac7b352d46bbc09f99e0905c7ccbdb55c364891f | ds300/patch-package,ds300/patch-package,ds300/patch-package | src/patchYarn.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport i18next from \"i18next\";\r\nimport React from \"react\";\r\nimport {RadioButton, RadioGroup} from \"react-toolbox/lib/radio\";\r\n\r\nimport {themr} from \"../theme\";\r\n\r\nimport * as styles from \"./__style__/boolean-radio.c... | typescript | edit | null | null | mit | 47a99cbd62305614bbccbe5a97e15d5f687522cc | get-focus/focus4,get-focus/focus4 | src/components/boolean-radio.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport winston from 'winston';\nimport DeviceModel from '../models/device';\n\nexport default class DeviceService {\n // region public static methods\n public static async addDevice(platform: string, mail: string, token: string) {\n ... | typescript | edit | 0 | 3 | mit | c9232b73e1bfb0e1cb76b424c3ad6b5acf8e025b | schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service | src/services/DeviceService.ts | rejected_duplicate | Near-duplicate of sample 113689 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n JupyterFrontEnd,\n JupyterFrontEndPlugin\n} from '@jupyterlab/application';\n\nimport {\n INotebookTracker\n} from '@jupyterlab/notebook';\n\nimport {\n BoxPanel\n} from '@lumino/widgets';\n\nimport {\n CreateAssignmentW... | typescript | edit | 0 | 1 | bsd-3-clause | 9e90ab47a7b80b68a7c618fddcb5ecf6fd80b2e0 | jupyter/nbgrader,jhamrick/nbgrader,jhamrick/nbgrader,jupyter/nbgrader,jupyter/nbgrader,jhamrick/nbgrader,jupyter/nbgrader,jupyter/nbgrader,jhamrick/nbgrader | src/create_assignment/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport { Jsonp, URLSearchParams } from '@angular/http';\nimport 'rxjs/add/operator/map';\n\n@Injectable()\n\nexport class WeatherService {\n constructo... | typescript | edit | 0 | 3 | mit | 4649eeae3f226d50256345fb95eb0b96cf12a0de | satbirjhuti/ng2Widgets,satbirjhuti/ng2Widgets,satbirjhuti/ng2Widgets | app/services/weather.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n//\n// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING\n//\n// This file is providing the test runner to use when running extension tests.\n// By default the test runner in use is Mocha based.\n//\n// You can provide yo... | typescript | edit | 0 | 0 | mit | 916c78f4ecf952c70bcb6b3658ea40c967f0fae7 | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | src/tests/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport '../shims.js';\nimport { Component } from '@angular/core';\nimport { bootstrap } from '@angular/platform-browser-dynamic';\nimport { HTTP_PROVIDERS } from '@angular/http';\nimport { RESOURCE_PROVIDERS } from 'ng2-resource-rest';\... | typescript | edit | 0 | 0 | bsd-2-clause | 185c64a4784fc720cc3864f522f11329ba28d353 | ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile | src/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { webpack } from 'utils/server/staticGen'\n\nexport const SiteFooter = () => {\n return <footer className=\"SiteFooter\">\n <div>\n <a href=\"/\" className=\"logo\">Our World i... | typescript | edit | null | null | mit | 96e46c0dd96f90e0f05494b236020eb151a9fa4a | OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorld... | site/server/views/SiteFooter.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface Command {\n command: string,\n async: boolean,\n currentTextDocument?: boolean,\n body?: {\n paths?: string[]\n args: {\n ui: boolean\n }\n }\n}\n\nexport default Command;\n```\n\... | typescript | edit | 0 | 0 | mit | 8e942a1bce43d813d80e2e7cc4c4134ce37688f0 | joeferraro/MavensMate-VisualStudioCode | src/mavensmate/command.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as CompanyRouter from \"../../src/routes/companyRouter\";\nimport * as express from \"express\";\nimport * as Chai from \"chai\";\n\n/**\n * This is the test for CompanyRouter class\n *\n * @history\n * | Author | Action Perfor... | typescript | edit | 0 | 1 | mit | 4a2c7dacfe2d8c1cec0e30bfcb6cba980f2fcdb7 | BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS | test/routes/companyRouterTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright 2018-present Facebook.\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n * @format\n */\n\ndeclare module 'react-virtualized' {\n const A... | typescript | edit | 0 | 0 | mit | 920d4eaa1d32123be3fb5d058cfd9b38c6ca6187 | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | types/react-virtualized.d.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport metamaskLogo from '@cardstack/web-client/images/logos/metamask-logo.svg';\nimport walletConnectLogo from '@cardstack/web-client/images/logos/wallet-connect-logo.svg';\n\nexport interface WalletProvider {\n id: string;\n name: s... | typescript | edit | 0 | 0 | mit | fa194a8ca1c470d729f247e551373e5701226e03 | cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack | packages/web-client/app/utils/wallet-providers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IncomingHttpHeaders } from 'http'\nimport { Url } from 'url'\nimport * as request from 'request'\n\ntype Request = request.RequestAPI<request.Request, request.CoreOptions, request.RequiredUriUrl>\n\n/**\n * Pattern: <<~Singleto... | typescript | edit | 0 | 4 | mit | f8df91eee7bebb3aa29a7fe32840512cef3e56e4 | davidglezz/tfg,davidglezz/tfg,davidglezz/tfg,davidglezz/tfg | crawler/src/clases/HttpRequest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({name: 'timeElapsed'})\nexport class TimeElapsedPipe implements PipeTransform {\n transform(secs: number): string {\n let min = Math.floor(secs / 60);\n let ... | typescript | edit | 0 | 2 | mit | fe8a450b9d182b9934cb627dbfc3319261ccbb81 | semagarcia/javascript-kata-player,semagarcia/javascript-kata-player,semagarcia/javascript-kata-player | src/app/core/pipes/time.pipe.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n color,\n Sans,\n sharedTabsStyles,\n space,\n TabsContainer,\n} from \"@artsy/palette\"\nimport { Link, LinkProps } from \"found\"\nimport React from \"react\"\nimport styled from \"styled-components\"\n\nexport const Ro... | typescript | edit | null | null | mit | 04a3c6256318e577b8bc72fa810608bceef4a9b4 | xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force | src/Components/v2/RouteTabs.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Entity, PrimaryGeneratedColumn, Column, ManyToOne, JoinColumn, BaseEntity } from 'typeorm';\nimport Household from './household';\n\nimport encOptions from '../common/util/encryption-options';\n\nimport { ExtendedColumnOptions ... | typescript | edit | 0 | 1 | mit | 416b4576513cc3f53d06573b78c49a183a762e61 | CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend | server/entities/phone-number.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as t from \"./types\";\nexport declare class Address {\n readonly merge_sub_and_building: boolean;\n readonly postcode_inward: string;\n readonly postcode_outward: string;\n readonly po_box: string;\n readonly po... | typescript | edit | 0 | 1 | mit | c8a106f1e315151a77dce3e7e7b37e26f3ac3759 | cblanc/uk-clear-addressing,ideal-postcodes/uk-clear-addressing,ideal-postcodes/uk-clear-addressing | lib/index.d.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 | d0c3535b72813497232a7167a0ec83c11b077167 | GoogleChrome/web-vitals,GoogleChrome/web-vitals | src/lib/finalMetrics.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 { TableName } from '../common/api';\nimport { createTableName } from '../common/util';\n\n@Component({\n templateUr... | typescript | edit | 0 | 2 | mit | dad08eda1b8725c462cb948ed4e5d719b8b1ca83 | mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium | client/app/tables/table-host.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule welcome {\n\n export class Welcome {\n\n heading = 'Welcome to the Aurelia Navigation App!';\n firstName = 'John';\n lastName = 'Doe';\n\n get fullName() {\n return `${this.firstName} ${this.lastName}`;\n }\n... | typescript | edit | 0 | 2 | mit | 280ed973c549aec8892606f7be1d5824aca80b90 | bohnen/aurelia-skeleton-navigation-gulp-typescript,bohnen/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript,bohnen/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript,Enrapt/aurelia-skeleton-navigation-gulp-typescript | src/app/welcome.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PlaylistItem, User } from 'core/models';\n\nexport class AppState {\n constructor(\n public langage?: string,\n public theme?: string,\n public displayType?: string,\n public selectedTab?: number,\n public sho... | typescript | edit | 0 | 11 | mit | 1118452ada43eacb58a69cda42607eb2ce083c8f | radiium/turntable,radiium/turntable,radiium/turntable | src/app/_core/models/app-state.ts | rejected_complexity | Cyclomatic complexity too high: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DataType, Http } from '@ephox/jax';\nimport Promise from '@ephox/wrap-promise-polyfill';\nimport { Chain } from '../api/Chain';\nimport { Step } from '../api/Step';\n\nconst postInfo = (path: string, info: any, die: (err: any) ... | typescript | edit | 0 | 1 | mit | a39ba7674bf656b2c8bf5dd9a5e7416e00ac3a2a | TeamupCom/tinymce,TeamupCom/tinymce,tinymce/tinymce,tinymce/tinymce,tinymce/tinymce | modules/agar/src/main/ts/ephox/agar/server/SeleniumAction.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nconst Markdown = require('react-markdown');\nrequire('github-markdown-css/github-markdown.css');\nconst ArticleComponent = require('./styles').ArticleComponent;\n\ninterface IProps extends React.Props<Bu... | typescript | edit | null | null | mit | e98ab195f8c77a6dafb1225ff4ec4cb76e5cbf0f | scalable-react/scalable-react-typescript-boilerplate,scalable-react/scalable-react-typescript-boilerplate,scalable-react/scalable-react-typescript-boilerplate | src/components/Article/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../../index'\nimport { PlainTextNode } from '../../../SyntaxNodes/PlainTextNode'\n\n\ndescribe('All instances of \"<\" and \"&\" inside a plain text node', () => {\n it('are replaced wi... | typescript | edit | 0 | 1 | mit | 70b7027f68ddc896a02f6b11b7450c5c3d8262b2 | start/up,start/up | src/Test/Html/Escaping/Content.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { fixProto, fixStack } from './utils'\n\n/**\n * Extendable Error\n */\nexport class CustomError extends Error {\n\tconstructor(message?: string) {\n\t\tsuper(message)\n\t\t// fix the extended error prototype chain\n\t\t// becaus... | typescript | edit | 0 | 1 | mit | b10f481960f2270d1d02af466ec20bdf55144d43 | adriengibrat/ts-custom-error | src/custom-error.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type CookieAttributes = object & {\n path?: string\n domain?: string\n expires?: number | Date\n sameSite?: 'strict' | 'Strict' | 'lax' | 'Lax' | 'none' | 'None'\n secure?: boolean\n [property: string]: any\n}\n\nexport typ... | typescript | edit | 0 | 0 | mit | 909700754434a36e767e67662a2b351e607b2e94 | carhartl/js-cookie,carhartl/js-cookie | types/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport styled from 'styled-components';\nimport Background from '../Background';\nimport Envelope from '../Envelope';\nimport Letter from '../Letter';\nimport AppProvider from './AppProvider';\n\nconst C... | typescript | edit | null | null | mit | d2fee0dd76447068131dc6dc75e4732f5e6b28cd | mrodalgaard/Personal-Page,mrodalgaard/Personal-Page,mrodalgaard/Personal-Page | src/components/App/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { assert } from './assert';\nimport { deprecate } from './deprecate';\nimport { uuid } from '@orbit/utils';\n\ndeclare const self: any;\ndeclare const global: any;\n\nexport interface OrbitGlobal {\n globals: any;\n assert: (de... | typescript | edit | 0 | 0 | mit | bb768a56fd450006e0c6f3fd3b028c42faad90dc | orbitjs/orbit.js,orbitjs/orbit.js | packages/@orbit/core/src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Service } from 'ts-express-decorators';\nimport { IDatabaseConnector } from './database.connector';\nimport { SQLiteConnector } from './sqlite.connector';\nimport { populationQueries } from './population-queries';\n\n@Service()... | typescript | edit | 0 | 1 | mit | 0c8e3f88495d39167adaa2fd69ebdca2bf97e1f6 | DavidLevayer/countable,DavidLevayer/countable,DavidLevayer/countable | server/services/database/database.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { formatCategoryLink } from '@vue-storefront/core/modules/url/helpers'\n\n// Duplicate of breadCrumbRoutes, to repalce it soon.\n/** Parse category path for product/category */\nexport function parseCategoryPath (categoryPath) {... | typescript | edit | 0 | 3 | mit | 6de4a07f0f363f8fea2e891125e64a98793c3670 | DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront | core/modules/breadcrumbs/helpers/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DateTime } from 'luxon';\n\nimport { PeriodOption } from '@waldur/form/types';\n\nexport const reactSelectMenuPortaling = (): any => ({\n menuPortalTarget: document.body,\n styles: { menuPortal: (base) => ({ ...base, zIndex: ... | typescript | edit | 0 | 2 | mit | eb1add1b107b40bcd43f1cde43ba38b446f44966 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/form/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport * as chance from 'chance';\n\nexport interface IUserData {\n\temail: string;\n\tpassword: string;\n\tsearchBarInput: string;\n\taccountName: string;\n\taccountNumber: string;\n}\n\nexport class UserData {\n\n\tstatic data = ():... | typescript | edit | 0 | 1 | mit | a8d34dbeefe2d158505e250978fc5ad2922ca7cb | aksud/acceptance-test,aksud/acceptance-test | test/shared/global/test_data.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Queries } from 'marty'\nimport MoviesConstants from '../constants/movies'\nimport { yts } from '../utils/request'\n\nclass MoviesQueries extends Queries {\n\n getPage (from: number, limit: number) {\n var page = Math.floor(... | typescript | edit | 0 | 2 | mit | 9d5f785bb4b8121af186e9e82135ebc79b8f5a19 | blakeembrey/back-row,blakeembrey/back-row,blakeembrey/back-row | app/queries/movies.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport ReactInputMask from 'react-input-mask';\nimport * as React from 'react';\n\n<div>\n <ReactInputMask mask=\"+4\\9 99 999 99\" maskChar={null} />\n <ReactInputMask mask=\"+7 (999) 999-99-99\" />\n <ReactInputMask mask=\"99... | typescript | edit | null | null | mit | edf2bd560299c4033cf2e3ff19f75fd0e082655b | georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,rolandzwaga/DefinitelyTyped,mcliment/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,one-pieces/DefinitelyTyped,magny/DefinitelyTyped,georgem... | types/react-input-mask/react-input-mask-tests.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 './TableHeader.scss';\n\nimport { Column, Sorting } from './types';\n\ninterface Props {\n columns: Column[];\n onSortClick?: (orderField: string, currentSorting: Sorting) => any;\n currentSo... | typescript | edit | null | null | mit | c98bfb1f2567c04a52586bf423c707c4f61ab777 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | app/scripts/components/table-react/TableHeader.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\"\nimport * as Relay from \"react-relay\"\n\ninterface Props {\n text: string\n userId: string\n}\n\ninterface Response {\n}\n\nexport default class AddTweetMutation extends Relay.Mutation<Props, Res... | typescript | edit | null | null | mit | 8c97a06d4faf943d28c6f061af61ec9f6cd0342c | benishouga/DefinitelyTyped,minodisk/DefinitelyTyped,AgentME/DefinitelyTyped,rolandzwaga/DefinitelyTyped,abbasmhd/DefinitelyTyped,aciccarello/DefinitelyTyped,magny/DefinitelyTyped,progre/DefinitelyTyped,alexdresko/DefinitelyTyped,isman-usoh/DefinitelyTyped,chrootsu/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgema... | react-relay/react-relay-tests.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport Header from '../header/index';\nimport Sidebar from '../sidebar/index';\nimport Content from '../content/index';\nimport * as menus from './navigation';\nimport Body from './body';\n\ntype Concier... | typescript | edit | null | null | mit | 9e24e84c0eb26d97c3fc897e9c5ad013754ba885 | the-concierge/concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,paypac/node-concierge | front/components/shell/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type Body = {\n repository: string\n name: string\n key: string\n label: string\n dockerfile: string\n}\n\nexport default function validate(body: Body) {\n const errors = Object.keys(body)\n .reduce((list, key) => {\n ... | typescript | edit | 0 | 7 | mit | a69594b682b6628c6c7e6f5aca45194cf395c4ed | the-concierge/concierge,the-concierge/concierge,the-concierge/concierge | src/api/applications/validate.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getFootures } from './core';\n\nconst ALL_FEATURES: Array<string> = [];\n\nfunction isEnabled(feature: string) {\n const specifier: object = getFootures();\n\n if (ALL_FEATURES.indexOf(feature) === -1) {\n // Not registere... | typescript | edit | 0 | 3 | mit | e26b8308323916faf9fbab05942a41354cb15428 | TypesetIO/footures,TypesetIO/footures | src/footures.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {Route} from 'react-router-dom';\n\nexport interface StatusCodeProps {\n code: number;\n children?: React.ReactNode;\n}\n\nexport default function Status({children, code}: StatusCodeProps) {\n ... | typescript | edit | null | null | mit | 22c8897dac003ecb22ee02cd2ebfdc952e1948b0 | mopedjs/moped,mopedjs/moped,mopedjs/moped | packages/status-code/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface I18nArgs {\n idDelimiter?: string,\n terms?: I18nTerms,\n}\n\ninterface I18nTerms {\n footnote?: string,\n footnoteReference?: string\n}\n\nexport interface WriterConfigArgs {\n documentId?: string,\n i18n?: I18nArgs\n}\... | typescript | edit | 0 | 8 | mit | 37b9049486fadb348c18f8c74af64622cae10d11 | start/up,start/up | src/Writer/WriterConfig.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport IToken from './IToken'\nimport { GherkinException } from './Errors'\n\nexport class UnexpectedTokenException extends GherkinException {\n public static create<TokenType>(token: IToken<TokenType>, expectedTokenTypes: string[]) {\... | typescript | edit | 0 | 1 | mit | d82850d7e1672997e0e886e6abf08ab2c7b8cee6 | cucumber/gherkin-javascript,cucumber/gherkin-javascript | src/TokenExceptions.ts | rejected_duplicate | Near-duplicate of sample 112917 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { assert } from 'chai'\nimport feathersVuex from '../../src/index'\nimport feathers from '@feathersjs/client'\nimport auth from '@feathersjs/authentication-client'\n\nconst feathersClient = feathers().configure(auth())\n\ndescrib... | typescript | edit | 0 | 2 | mit | c871e3f40fb6e8b6dd22c8c08b258790e40b074c | feathers-plus/feathers-vuex,feathers-plus/feathers-vuex | test/service-module/misconfigured-client.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/DefinitelyTyped/node/node.d.ts\" />\n\n// env.ts provides functions to query the host Javascript\n// environment\n\n// This module has no dependencies to facilitate easier re-use across\n// different ... | typescript | edit | 0 | 3 | bsd-3-clause | 056886f0a49f68d271f3bd9963daa81c525fa3ba | robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards | lib/base/env.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\nimport {Observable} from 'rxjs/Observable';\nimport {HotelService} from './../../shared/hotel.service.ts';\nimport {Hotel} from '../../model/backend-typings';\n\n@Component({\n selector: 'hotel... | typescript | edit | 0 | 1 | mit | 8b6ea17e8eeedf1a68fded2ad353b3615bac8cd4 | joachimprinzbach/ng2-camp,joachimprinzbach/ng2-camp,joachimprinzbach/ng2-camp,joachimprinzbach/ng2-camp | frontend/src/app/components/hotel-overview/hotels.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nexport interface DialogProps extends React.DOMAttributes {\n actions?: React.ReactElement<any> | React.ReactElement<any>[];\n actionsContainerClassName?: string;\n actionsContainerStyle?: React... | typescript | edit | 0 | 0 | mit | 568c08c6344ea1467d9febd931e729b85843c9ab | mattiamanzati/typings-material-ui,mattiamanzati/typings-material-ui | Dialog.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { Repository } from '../../models/repository'\nimport { Branch } from '../../models/branch'\n\ninterface IDeleteBranchProps {\n readonly dispat... | typescript | edit | null | null | mit | a1f24fe55673903c228506bb08643037b6dc645c | hjobrien/desktop,gengjiawen/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,j-f1/forked-desktop,gengjiawen/desktop,gengjiawen/desktop,artivilla/desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,BugTesterTest/de... | app/src/ui/delete-branch/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Activity {\n id: string;\n name: string;\n shortDescription: string;\n description: string;\n}\n```\n\nApply this change: Add Injectable decorator to Activity"
},
{
"role": "assistant",
"content": "import { ... | typescript | edit | 0 | 1 | mit | 4772da40625c0239770d1f5db5563c9e3ca9f8f4 | benformosa/squashtrainerapp,benformosa/squashtrainerapp,benformosa/squashtrainerapp | src/app/classes/activity.class.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as toBuffer from 'blob-to-buffer'\n// @ts-ignore: no type definitions\nimport * as domtoimage from 'dom-to-image'\nimport { remote, shell } from 'electron'\nimport * as fs from 'fs'\n\nexport function saveImage(fileName: string... | typescript | edit | 0 | 3 | mit | 86da417b7cc8c342e2a49ff92c457dccd405cf2f | nrlquaker/nfov,nrlquaker/nfov | src/utils/general-utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"./colorbrewer.d.ts\" />\n\nconst accent3: string[] = colorbrewer.Accent[3];\nconst accent4: string[] = colorbrewer.Accent[4];\nconst accent5: string[] = colorbrewer.Accent[5];\nconst accent6: string[] = colorbrewer... | typescript | edit | 0 | 0 | mit | ffc616163340248c91dbddc0f5ece3acdc136421 | nitintutlani/DefinitelyTyped,Zenorbi/DefinitelyTyped,spearhead-ea/DefinitelyTyped,florentpoujol/DefinitelyTyped,jasonswearingen/DefinitelyTyped,zalamtech/DefinitelyTyped,GlennQuirynen/DefinitelyTyped,hesselink/DefinitelyTyped,RedSeal-co/DefinitelyTyped,abbasmhd/DefinitelyTyped,optical/DefinitelyTyped,paulmorphy/Definit... | colorbrewer/colorbrewer-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {IModuleMetadata} from \"../interfaces/imodule\";\nimport {inArray, isArray, isClass} from \"../core\";\nimport {Metadata} from \"../injector/metadata\";\nimport {Router} from \"../router/router\";\nimport {Logger} from \"../logg... | typescript | edit | 0 | 8 | mit | d32d7550f7ca539b080411bce3280a7096c5c6f6 | igorzg/typeix | src/decorators/module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { storiesOf } from '@storybook/react'\nimport PageCreateModal from './PageCreateModal'\nimport Crowi from 'client/util/Crowi'\nimport i18n from '../../i18n'\n\ni18n()\n\nconst crowi = {\n user: {\n ... | typescript | edit | null | null | mit | 404bbbe5d9c3c4a55fd956077a048983fd766d4e | crowi/crowi,crowi/crowi,crowi/crowi | client/components/Modal/PageCreateModal.stories.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.