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 { Answer } from './answer';\n\nexport class Question {\n id: number;\n qno: number\n correct_ans_no: number;\n question_time: number;\n paper_id: number;\n subject_id: number;\n is_image: boolean;\n image_... | typescript | edit | 0 | 0 | mit | 871033db70e7f095765116ab00cd51a1ee2a4822 | shavindraSN/examen,shavindraSN/examen,shavindraSN/examen | client/sharedClasses/question.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule rl.utilities.filters {\n\t'use strict';\n\n\texport var moduleName: string = 'rl.utilities.filter';\n\n\texport interface IFilterWithCounts extends IFilter {\n\t\tupdateOptionCounts<TItemType>(data: TItemType[]): void;\n\t}\n\n\t... | typescript | edit | 0 | 0 | mit | 47058cd40d0fe1b42c05c8f6be197e7ff37511ba | SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities | source/filters/filter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BaseError } from './baseError'\nimport { AliasMetadataMember } from '../aliasMetadataMember'\n\n/**\n * Represents an error triggered when a cyclic dependency has been identified.\n */\nexport class UnfulfilledMembersRequiremen... | typescript | edit | 0 | 1 | mit | ce66f17eeb226e31a0239e1ad96b33e980f71411 | JemsFramework/di,JemsFramework/di | src/errors/unfulfilledMembersRequirementsError.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Page as ArgoPage, TopBarProps } from 'argo-ui';\nimport * as PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { AppContext } from '../context';\nimport { services } from '../services';\n\nexport class Page ... | typescript | edit | null | null | apache-2.0 | 4bd49b0bf6011f2e0a3694acc2919bd044fa4224 | argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd | src/app/shared/components/page.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, ViewRef} from '@angular/core';\nimport {HsCompositionsService} from '../compositions.service';\nimport {HsDialogComponent} from '../../layout/dialogs/dialog-component.interface';\nimport {HsDialogContainerService} fro... | typescript | edit | 0 | 1 | mit | 6cd9fd6a7429f8edd47564e4ab17a1b90a7474cb | hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng | components/compositions/dialogs/overwrite-dialog.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {thread} from \"./thread\";\nimport {IMessage} from \"../../common/data\";\n\n// workaround (should be fixed)\ndeclare let Notification: any;\n\n\nNotification.requestPermission()\n\n\nconst notify = (msg: IMessage) => {\n const... | typescript | edit | 0 | 3 | mit | 509082191c0c2a5adaae8fe3657b3223c63c138b | sketchglass/respass,sketchglass/respass,sketchglass/respass,sketchglass/respass | ui/src/notification.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Minion } from './minion.model';\n\n///This is a repo class for the various minions that can be hired for a warband.\nexport class EquipmentVault {\n\n public static items = new Array<Minion>();\n\n\n constructor(){\n }\n\n ... | typescript | edit | 0 | 1 | mit | 21d316f8221e49395de691fb47965e4eda625aea | ChargerIIC/Frostgrave-WarRoster,ChargerIIC/Frostgrave-WarRoster,ChargerIIC/Frostgrave-WarRoster | src/app/model/warbandVault.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as scrypt from 'scryptsy';\n\nconst key = 'TheKey';\nconst salt = 'Salty';\n\n// Test without processCallback\nconst data: Buffer = scrypt(key, salt, 16384, 8, 1, 64);\n\n// Test with processCallback\nscrypt(key, salt, 16384, 8... | typescript | edit | 0 | 1 | mit | 2ec048ca71b7a9e7f9f18eff7cc32a186576a1ec | georgemarshall/DefinitelyTyped,arusakov/DefinitelyTyped,one-pieces/DefinitelyTyped,alexdresko/DefinitelyTyped,zuzusik/DefinitelyTyped,borisyankov/DefinitelyTyped,arusakov/DefinitelyTyped,chrootsu/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/Def... | types/scryptsy/scryptsy-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule csComp.Services {\n 'use strict';\n\n export class WmsSource implements ILayerSource\n {\n title = \"wms\";\n service : LayerService;\n\n init(service : LayerService){\n this.service = service;\n ... | typescript | edit | 0 | 1 | mit | 4de765e4895fecd2e8df919776c0dc061d001d87 | mkuzak/csWeb,mkuzak/csWeb,Maartenvm/csWeb,Maartenvm/csWeb,mkuzak/csWeb,c-martinez/csWeb,TNOCS/csWeb,TNOCS/csWeb,Maartenvm/csWeb,indodutch/csWeb,c-martinez/csWeb,mkuzak/csWeb,Maartenvm/csWeb,TNOCS/csWeb,c-martinez/csWeb,indodutch/csWeb,indodutch/csWeb | csComp/services/layer/sources/WmsSource.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DOM } from \"react\";\n\ninterface CarouselItemProps {\n imageUrl: string;\n active?: boolean;\n}\n\nexport const CarouselItem = (props: CarouselItemProps) => {\n return (\n DOM.div({ className: props.active ? \... | typescript | edit | 0 | 2 | apache-2.0 | c630b42e4b52bb2012d10be381161fc82923f4c1 | mendixlabs/carousel,FlockOfBirds/carousel,mendixlabs/carousel,FlockOfBirds/carousel | src/com/mendix/widget/carousel/components/CarouselItem.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Plugin {\n bot: any;\n commands: any;\n\n constructor(bot : any) {\n this.bot = bot;\n this.commands = {\n 'lmgtfy': 'onCommandLmgtfy'\n };\n this.querystring = require('querystring');\n }\n\n onComman... | typescript | edit | 0 | 2 | bsd-3-clause | 21e51a8f1ce738f0976f02a5f5527443e6630213 | modubot/modubot.js,modubot/modubot.js | src/plugins/reynir/lmgtfy/lmgtfy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\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 *\n * @format\n */\n\nexport const startGlo... | typescript | edit | 0 | 2 | mit | dfdeffbc0979ef9edf85f3b98b1f8353c76b2776 | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | desktop/flipper-ui-core/src/utils/globalErrorHandling.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default {\n baseUrl: \"http://127.0.0.1:8080\",\n htmlToText: {\n ignoreHref: true,\n wordwrap: 500\n }\n}\n\n```\n\nApply this change: Update to reference official url"
},
{
"role": "assistant",
... | typescript | edit | 0 | 0 | mit | 36198de92382d3d4cea8c5e3bffb525dc65bac1f | simonvizzini/vscode-factorio-lua-api-autocomplete | scraper/config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport abstract class ItemSwitch<T> {\n protected loadMoreItems: Function;\n\n public setLoadMoreItemsCallback(loadMoreItems?: () => Promise<T[]>) {\n this.loadMoreItems = loadMoreItems;\n }\n\n public showPreviousIte... | typescript | edit | 0 | 1 | mit | 4beb6ad91235f7c5b1ece4a27b37632daba41fb6 | zoehneto/tumblr-reader,zoehneto/tumblr-reader,zoehneto/tumblr-reader | src/app/item-switch/item.switch.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { validateEmailAddress } from './email';\nimport { isNumber } from './validators';\n\nexport const requiredValidator = (value: any) =>\n value === undefined || value === null || value?.trim?.() === '... | typescript | edit | 0 | 2 | mit | eaaba7ca0b7b4750dfb336d701f3ec7be5960716 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/shared/lib/helpers/formValidators.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { SocialAuthService, GoogleLoginProvider, SocialUser } from \"angularx-social-login\";\nimport { UserService } from \"../user.service\";\n\n@Component({\n selector: 'app-authen... | typescript | edit | 0 | 1 | apache-2.0 | 5d801a639e8f1ae5b89f07ef3c127cd3d0685cd5 | googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020 | capstone-project/src/main/angular-webapp/src/app/authentication/authentication.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport semver from 'semver';\n\nimport packageVersionConst from './packageVersion.const';\n\nexport default function sdkVersion(toolchainVersion = packageVersionConst) {\n const version = semver.parse(toolchainVersion);\n if (version ... | typescript | edit | 0 | 10 | bsd-3-clause | 5dc943feb92fbae1e43750d3000717135898a0a5 | Fitbit/fitbit-sdk-toolchain,Fitbit/fitbit-sdk-toolchain | src/sdkVersion.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport { Post } from '../../../data.types';\n\n@Component({\n selector: 'post-chat',\n template: `\n <p *ngFor=\"let message of post.dialogue\">\n <span class=\"... | typescript | edit | 0 | 0 | mit | cdf799a958ba572ddd14706a6753d161b8e95c04 | zoehneto/tumblr-reader,zoehneto/tumblr-reader,zoehneto/tumblr-reader | src/app/components/post-components/post-chat/post-chat.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FunctionComponent } from 'react';\n\nimport { translate } from '@waldur/i18n';\nimport { ResourceStateField } from '@waldur/marketplace/resources/list/ResourceStateField';\n\nexport const bookingStateAliases = (state: string): ... | typescript | edit | null | null | mit | 998d926d40892f56d431e690f8ccdf131723f57d | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/booking/BookingStateField.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as localBower from 'local-bower';\r\nimport * as Types from 'local-bower/lib/Types';\r\n\r\ndescribe(\"module\", function() {\r\n\tdescribe(\"'local-bower'\", function() {\r\n\t\tit(\"should be a function\", function() {\r\n\t\... | typescript | edit | 0 | 1 | mit | 3a751b3f77d98672eaaec7eb90d1d346df308459 | MortenHoustonLudvigsen/local-bower,MortenHoustonLudvigsen/local-bower | test/tests/Import.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Leaflet Button Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Renderer } from '@angular/core';\nimport { TestBed, fakeAs... | typescript | edit | null | null | mit | 5d589edc46815a0f92802ab04ca3649f81df6a1c | ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps | src/app/leaflet/leaflet-button/leaflet-button.component.spec.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport logger from './logging/logger'\n\n// TODO(tec27): Move this to a more common location\nexport class JsonLocalStorageValue<T> {\n constructor(readonly name: string) {}\n\n /**\n * Retrieves the current `localStorage` value (pa... | typescript | edit | 0 | 3 | mit | 55288757a2e5d0401350e94fa182c59bbe0c358c | ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery | client/local-storage.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for assertsharp\n// Project: https://www.npmjs.com/package/assertsharp\n// Definitions by: Bruno Leonardo Michels <https://github.com/brunolm>\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\n\ndeclar... | typescript | edit | 0 | 1 | mit | 64eccdfcb734df89956a8b3db75d9aa0c185f88f | hellopao/DefinitelyTyped,vagarenko/DefinitelyTyped,Syati/DefinitelyTyped,ryan10132/DefinitelyTyped,DzmitryDulko/DefinitelyTyped,elisee/DefinitelyTyped,drinchev/DefinitelyTyped,gcastre/DefinitelyTyped,rcchen/DefinitelyTyped,bdoss/DefinitelyTyped,olemp/DefinitelyTyped,chrootsu/DefinitelyTyped,mjjames/DefinitelyTyped,elis... | assertsharp/assertsharp.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { FilterState } from \"../../FilterState\"\n\nimport { Radio, RadioGroup } from \"@artsy/palette\"\n\nexport const TimePeriodFilter: React.SFC<{\n filters: FilterState\n timePeriods?: string[]\n}> =... | typescript | edit | null | null | mit | c476ad32a38ea7f582c0f5c70b21492f362e39db | artsy/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction-force | src/Apps/Collect/Components/Filters/TimePeriodFilter.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Locator from '../../../locator';\nimport Dimensions from '../../../world/dimensions.type';\nimport WorldPosition from '../../../world/world-position.type';\nimport World from '../../../world/world.interface';\nimport ColorPixelRe... | typescript | edit | 0 | 2 | isc | 010c394513f779d12558dc4a4cd6e46eb86f47d5 | kamsac/angleworms-game,kamsac/angleworms-game | src/renderers/canvas/color-pixel/color-pixel-world-renderer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport RentMovieCommandHandler from './RentMovieCommandHandler';\nimport AddMovieCommandHandler from './AddMovieCommandHandler';\n\nexport {\n RentMovieCommandHandler,\n AddMovieCommandHandler,\n};\n\n```\n\nApply this change: Add... | typescript | edit | 0 | 0 | mit | 95c025a56f6f9368ad420ab19d9f72cba3ee4550 | MarcAtrapalo/webflix-js-ports-adapters,MarcAtrapalo/webflix-js-ports-adapters | src/application/commands/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Btn from './components/Btn'\nimport Modal from './components/Modal'\n\nexport { Btn, Modal }\n\n```\n\nApply this change: Add Badge to script entry"
},
{
"role": "assistant",
"content": "import Badge from './component... | typescript | edit | 0 | 0 | mit | 25a0be656025a85ddc0a5bd210cb47765f80aef0 | IsaacLean/bolt-ui,IsaacLean/bolt-ui | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TweenLite } from 'gsap';\n\n// Constants and defaults\nimport { TOOLBAR_BUTTON_WIDTH } from '../constants/design';\nimport tabAnimations from '../defaults/tab-animations';\n\nimport Store from '../store';\n\nexport default clas... | typescript | edit | 0 | 5 | apache-2.0 | c0bde6af9224a47d4f0b3a9f9e5f5738d8a9877b | Nersent/Wexond,Nersent/Wexond | src/app/models/add-tab-button.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport Router from 'vue-router';\n\nVue.use(Router);\n\nexport default new Router({\n mode: process.env.IS_ELECTRON ? 'hash' : 'history',\n base: process.env.BASE_URL,\n routes: [\n {\n path: '/',\n ... | typescript | edit | 0 | 0 | mit | 44b69fee93cfdea0be7812b8fbd40c1ba6ad521c | babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop,babsey/nest-desktop | src/router/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport View from '!view!./broadcast-card.html?style=./broadcast-card.styl';\nimport { AppCard } from 'game-jolt-frontend-lib/components/card/card';\nimport { FiresidePost } from 'game-jolt-frontend-lib/components/fireside/post/post-mode... | typescript | edit | 0 | 0 | mit | 9a7ea51be30b0f24cf6f1b452d01c791e6e1b5e4 | gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt | src/app/components/broadcast-card/broadcast-card.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Request, Response } from \"express\";\nimport * as admin from \"firebase-admin\";\nimport * as functions from \"firebase-functions\";\n\nconst cacheSeconds = 24 * 60 * 60;\nconst origins = functions.config().cors.origins.split(... | typescript | edit | 0 | 4 | mit | e4dc6c60dbcc968e628c964d36ac5a6472793c3a | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | functions/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport \"source-map-support/register\";\n\nimport log from \"fancy-log\";\nimport path from \"path\";\nimport process from \"process\";\n\ntry {\n // Fallback for Windows backs out of node_modules folder to root of project.\n process.... | typescript | edit | 0 | 0 | mit | e195983fc67e44b65201af4cc6d7ce3bf3189f2e | cyrale/gulpfile.js,cyrale/gulpfile.js | src/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add charts module to runner"
},
{
"role": "assistant",
"content": "import \"../../../../ag-grid-enterprise/src/modules/chartsModule.ts\";\n\nimport \"../../../../ag-grid-enterprise/src/main.ts\";\n"
}
] | typescript | new_file | 0 | 0 | mit | d6cfabce314da408e0f01b261ab7abe92ad228d2 | ceolter/ag-grid,ceolter/ag-grid,ceolter/angular-grid,ceolter/angular-grid | packages/ag-grid-docs/src/_assets/ts/ag-grid-enterprise-main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright 2015-2018 Simon Edwards <<EMAIL>>\n */\n\nimport { Renderer, HScrollBar, VScrollBar } from \"ace-ts\";\n\nexport class TerminalRenderer extends Renderer {\n\n constructor(container: HTMLElement) {\n super(container... | typescript | edit | 0 | 2 | mit | c82cd070be37b39676d130e4185535c840a1aee0 | sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm | packages/extraterm-ace-terminal-renderer/src/TerminalRenderer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport fs = require(\"fs\");\nimport { exec } from \"shelljs\";\n\nfunction cmd(command: string): string {\n const result: any = exec(command);\n return result.stdout.trim().replace(\"\\r\\n\", \"\\n\");\n}\n\nconst currentBranch ... | typescript | edit | 0 | 1 | mit | f9fbe23cec7458dec01b2237d6efa0e76a5bc01b | mmkal/slimejs,mmkal/slimejs,mmkal/slimejs,mmkal/slimejs | transpilation/deploy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst path = electronRequire('path');\n// appveyor/travisci sets this var\nconst CI_MOD = process.env['CI'] ? 3 : 1;\n\nconst omnisharpPath = path.resolve((IS_LINUX ? `${process.env.HOME}/.ream-editor/` : \n `${process.env.LOCALAPPDA... | typescript | edit | 0 | 0 | mit | 2953d1092efb56d4d674fe2d3e17b10fdefe81c4 | stofte/ream-editor,stofte/ream-editor,stofte/linq-editor,stofte/ream-editor,stofte/ream-editor | app/config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'ext/ace/ace'\nimport 'ext/ace/ext-language_tools';\nimport 'ext/ace/ext-searchbox';\nimport 'ext/ace/ext-settings_menu';\nimport 'ext/ace/mode-bigquery';\nimport 'ext/ace/mode-druid';\nimport 'ext/ace/mode-elasticsearch';\nimpor... | typescript | edit | 0 | 0 | apache-2.0 | d97e3c1153fd35ac41de7822326184af960dc0b4 | kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon... | desktop/core/src/desktop/js/ext/aceHelper.ts | rejected_duplicate | Near-duplicate of sample 113843 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Combatant } from \"../../Combatant/Combatant\";\nimport { Prompt } from \"./Prompt\";\n\nexport class ConcentrationPrompt implements Prompt {\n public static Tag = \"Concentrating\";\n public InputSelector = \".passcheck\";\n... | typescript | edit | 0 | 2 | mit | 5af58734bb7e8563dff82818c6f05f7486045c7a | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Commands/Prompts/ConcentrationPrompt.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { c } from 'ttag';\nimport isTruthy from '@proton/shared/lib/helpers/isTruthy';\nimport { Address } from '@proton/shared/lib/interfaces';\n\nimport { DropdownActions, Select } from '../../componen... | typescript | edit | null | null | mit | 121f9e60a4da922469d7aefde1e2cf9027eb093c | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/keys/AddressKeysHeaderActions.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from 'ng-metadata/core';\nimport { Model } from './../../model/model-service';\n\nexport function Youtube_ChannelFactory( Model )\n{\n\treturn Model.create( Youtube_Channel, {\n\t} );\n}\n\n@Injectable()\nexport cl... | typescript | edit | 0 | 1 | mit | 33268ee36e9790d2f9647ec4f74f8b0a672e5fd6 | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | components/youtube/channel/channel-model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Ember from 'ember';\nimport DS from 'ember-data';\nimport { assertType } from \"./lib/assert\";\n\nconst Person = DS.Model.extend({\n firstName: DS.attr(),\n lastName: DS.attr(),\n title: DS.attr({ defaultValue: \"The de... | typescript | edit | 0 | 1 | mit | ff7058dcc617182fdfe874920c156a3a8bc70842 | georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,alexdresko/DefinitelyTyped,arusakov/DefinitelyTyped,zuzusik/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,alexdresko/DefinitelyTyped,magny/DefinitelyTyped,zuzu... | types/ember-data/test/model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as jsc from \"../lib/jsverify.js\";\n\ndescribe(\"basic jsverify usage\", () => {\n jsc.property(\"(b && b) === b\", jsc.bool, b => (b && b) === b);\n\n jsc.property(\"boolean fn thrice\", jsc.fn(jsc.bool), jsc.bool, (f, b) =... | typescript | edit | 0 | 2 | mit | b62adbfbfedbf4ccd9f1055ddf705020b9a95ff3 | jsverify/jsverify,StoneCypher/jsverify,StoneCypher/jsverify,jsverify/jsverify | test-ts/example.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nlet assert = require('assert');\n\nimport projectCatalogService = require('../../services/project-catalog-service');\n\ndescribe('GetProjectrs', function() {\n describe('#indexOf()', function() {\n it('should return -1 when the valu... | typescript | edit | 0 | 1 | mit | a98bb3b3e0453753a7a79efd7158baf807f2b2ad | scottrehlander/angular2-expressjs-brd,scottrehlander/angular2-expressjs-brd,scottrehlander/angular2-expressjs-brd | server/test/services/test-project-catalog-service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { View } from 'react-native';\nimport {\n addNavigationHelpers,\n StackNavigator,\n} from 'react-navigation';\n\nconst Start = (\n <View />\n);\n\nexport const AppNavigator = StackNavigat... | typescript | edit | null | null | mit | 1cfe9350bbc174d957c263c7eb2a39c206af7cba | AgentME/DefinitelyTyped,zuzusik/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,benliddicott/DefinitelyTyped,QuatroCode/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,minodisk/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,benishouga/DefinitelyTyped,borisyan... | types/react-navigation/react-navigation-tests.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\nCopyright 2018 New Vector Ltd\nCopyright 2019 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a ... | typescript | edit | 0 | 2 | apache-2.0 | 83d1e61b2f4b4671ae1dc392c71f1cc082af4c8b | matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk | src/randomstring.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nrequire('look').start()\nvar fs = require('fs')\nvar net = require('net')\nvar app = require('http').createServer()\nvar io = require('socket.io').listen(app)\nio.set('log level', 2)\napp.listen(1337)\n\nvar opts = {\n\tkey: fs.readFil... | typescript | edit | 0 | 1 | apache-2.0 | 5169c7946ec7e034247952db486ba5d6726bf3d1 | shockkolate/scuffle,shockkolate/scuffle,shockkolate/scuffle | server/scuffled.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport hljs from 'highlight.js/lib/highlight';\n\nimport { HLJSLang } from '../types';\n\n/**\n * Register Highlight.js languages.\n *\n * @export\n * @param {Record<string, HLJSLang>} languages Highlight.js languages\n */\nexport defau... | typescript | edit | 0 | 2 | mit | 27d5ef5a2543fa546fd5f56a41039ec3113286e4 | gluons/vue-highlight.js | src/lib/registerLanguages.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, ViewChild, Input, Output, EventEmitter } from '@angular/core';\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\nimport { DataSource } from '@angular/cdk/collections';\nimport { MatPaginator } from '@... | typescript | edit | 0 | 1 | bsd-3-clause | 6c93388d32f394cddd38c1d2470823de33ec9ec4 | Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber | src/app/alveo/listindex/listtable/listtable.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Client, InitConfig } from '@jovotech/client-web';\nimport { Plugin, reactive, ref } from 'vue';\n\ndeclare global {\n interface Window {\n JovoWebClientVue?: typeof import('.');\n }\n}\n\ndeclare module '@vue/runtime-core'... | typescript | edit | 0 | 2 | apache-2.0 | 9149d43ac2d803f7b1aefd6869dbcf395c89b914 | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | clients/client-web-vue3/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\n\nexport class LetterHistogramService {\n create(sentences: string[]): any {\n let letters = _.flatMap(sentences, sentence => sentence.split(''));\n\n let formattedLetters = _\n ... | typescript | edit | 0 | 2 | mit | e549bb1523f5ce45ad092a0d937e7260169e3f58 | s-soltys/GmailStats,s-soltys/GmailStats,s-soltys/GmailStats | app/messages/services/letterHistogramService.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable, Pipe, PipeTransform} from '@angular/core';\nimport {FunctionInfo} from '../models/function-info';\n\n@Pipe({\n name: 'sidebarFilter',\n pure: false\n})\n@Injectable()\nexport class SideBarFilterPipe implements... | typescript | edit | 0 | 5 | apache-2.0 | cf4ec8179c319fbe512f25889e58b60f14ba0253 | projectkudu/WebJobsPortal,projectkudu/AzureFunctions,projectkudu/AzureFunctions,agruning/azure-functions-ux,chunye/azure-functions-ux,agruning/azure-functions-ux,chunye/azure-functions-ux,projectkudu/WebJobsPortal,agruning/azure-functions-ux,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,agruning/azure-functions-... | AzureFunctions.Client/app/pipes/sidebar.pipe.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// https://angular.io/docs/ts/latest/guide/server-communication.html#!#http-client\n\nimport {Injectable, Inject} from 'angular2/core';\nimport {Http, Response} from 'angular2/http';\nimport {Observable} from 'rxjs/Observable';\... | typescript | edit | 0 | 1 | mit | 3452c99e77f5dc02e108aa2b4c790262035d4471 | astagi/angular2-workbench,astagi/angular2-workbench,astagi/angular2-workbench | src/services/main-service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { Button, Icon, Tooltip } from '@proton/components';\n\ninterface Props {\n onClose: () => void;\n}\n\nconst PopoverCloseButton = ({ onClose }: Props) => {\n return (\n <Tooltip title={c('E... | typescript | edit | null | null | mit | 54bb91ae330088a55bb6dd413f56b7d9e55550a9 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/calendar/src/app/components/events/PopoverCloseButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\"use strict\";\nmodule.exports = {\n\tvalidate: (routingNumber: string) => {\n\t\tconst match = routingNumber.match(/^\\s*([\\d]{9})\\s*$/);\n\t\tif (!match) {\n\t\t\treturn false;\n\t\t}\n\n\t\tconst weights = [3, 7 ,1];\n\t\tconst ab... | typescript | edit | 0 | 4 | mit | 546df299c5afb2e1fdc5a8db53978aae661517a5 | JamesEggers1/node-ABAValidator | src/aba-validation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport define, { getName } from '@skatejs/define';\nimport Element from '@skatejs/element';\nimport { h as preactH, render } from 'preact';\n\nconst mapDom = new WeakMap();\n\nexport default class extends Element {\n disconnectedCallba... | typescript | edit | 0 | 2 | mit | f3e39fd6c76f3c47805fc371ed4c8b98640a34cc | skatejs/skatejs,skatejs/skatejs,skatejs/skatejs | packages/element-preact/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Size of the ball, in cm.\n */\nenum BallSize {\n\tThrityEight = 0.38,\n\tFourty = 0.4,\n\tFourtyPlus = 0.4025,\n\tFourtyFour = 0.44\n}\n\nexport default BallSize;\n```\n\nApply this change: Add export default object literal usag... | typescript | edit | 0 | 0 | mit | 33e62f73c89c69130add3b0a78efec2934f6e402 | unional/coolCodeExamples | TypeScript/TableTennis/Equipments/BallSize.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Vue from 'vue'\n\nimport { getRundeckContext, url } from '@rundeck/ui-trellis'\n\nimport ProjectPicker from '@rundeck/ui-trellis/lib/components/widgets/project-select/ProjectSelectButton.vue'\nimport { Project } from '@rundeck/ui... | typescript | edit | 0 | 2 | apache-2.0 | 5f238ee78ed77134e9d097863a698d3f3641cf36 | rundeck/rundeck,variacode/rundeck,rundeck/rundeck,variacode/rundeck,rundeck/rundeck,variacode/rundeck,rundeck/rundeck,rundeck/rundeck,variacode/rundeck,variacode/rundeck | rundeckapp/grails-spa/packages/ui/src/components/project-picker/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface IAuthService {\n isLoggedIn();\n register(user);\n login(user);\n}\n```\n\nApply this change: Add interface for register and login http response"
},
{
"role": "assistant",
"content": "export interfa... | typescript | edit | 0 | 0 | mit | 26bf7b02dde5a0a92d9f56c7ee5927440be0c519 | ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io | resources/app/auth/auth.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Model} from \"../models/Model\";\nimport {IIncludeAssociation} from \"./IIncludeAssociation\";\nimport {IBaseIncludeOptions} from \"./IBaseIncludeOptions\";\n\n/**\n * Complex include options\n */\nexport interface IIncludeOptio... | typescript | edit | 0 | 0 | mit | 59f43192f802d0dea4140e4ce6862d4d611bb9d2 | RobinBuschmann/sequelize-typescript,RobinBuschmann/sequelize-typescript,RobinBuschmann/sequelize-typescript | lib/interfaces/IIncludeOptions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, EventEmitter, Input, OnDestroy, OnInit, Output} from '@angular/core';\n\n@Component({\n selector: 'app-search',\n templateUrl: './search.component.html',\n styleUrls: ['./search.component.css']\n})\nexport class Se... | typescript | edit | 0 | 1 | bsd-3-clause | d3bc9c6d38ec0fa8c9a91e70fe648aefdfcde418 | UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub | src/app/search/search.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { map, isObject } from 'lodash'\nimport { request } from './request'\nimport { APIError } from '../../errors'\nimport { camel, snake } from '../../helpers/case'\n\nconst stringify = (object: object) =>\n map(snake(object), v => ... | typescript | edit | 0 | 2 | apache-2.0 | 29b809956f783996204b6607dd1302c68e47d1a0 | dempfi/xene | packages/slack/src/api/base/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { isLocalhost } from './registerServiceWorker';\n\nexport const SETTINGS = 'Connection Settings';\n\nexport const VALIDATION_ERROR = 'VALIDATION_ERROR';\nexport const CHANNEL_FIELD = 'channel';\nexport const NAME_FIELD = 'name';\... | typescript | edit | 0 | 0 | mit | 270be8c9d4bef4310ce22de24dcff21b0cf08f29 | undefeat/purple-raven,undefeat/purple-raven,undefeat/purple-raven | purple-raven-client/src/constants.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { DialogContent } from '../dialog'\nimport { Checkbox, CheckboxValue } from '../lib/checkbox'\nimport { LinkButton } from '../lib/link-button'\n\ninterface IAdvancedPreferencesProps {\n readonly i... | typescript | edit | null | null | mit | 35c217ab6ab9da060069cf298343f4e28fc51968 | kactus-io/kactus,hjobrien/desktop,desktop/desktop,j-f1/forked-desktop,gengjiawen/desktop,shiftkey/desktop,hjobrien/desktop,hjobrien/desktop,gengjiawen/desktop,desktop/desktop,desktop/desktop,desktop/desktop,gengjiawen/desktop,say25/desktop,kactus-io/kactus,BugTesterTest/desktops,gengjiawen/desktop,artivilla/desktop,hjo... | app/src/ui/preferences/advanced.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DiscordDBUser } from \"../../../../typeorm/models/discord-db-user\";\nimport { Message } from \"discord.js\";\nimport { getMongoRepository } from \"typeorm\";\nimport { DiscordDBUserHelper } from \"../../../../typeorm/helpers/d... | typescript | edit | 0 | 2 | apache-2.0 | 9f0fe1c7d57cc3fab807e5cf662f102cf8df60b4 | Goyatuzo/LurkerBot,Goyatuzo/LurkerBot | bot/handlers/messages/dm/remove-me.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const environment = {\n production: true,\n backend_url: 'http://localhost:8080',\n auth_clientID: 'xwMK322G3bOF4OV20tqDlaMx2TMYjc32',\n auth_domain: 'c4sg-staging.auth0.com,\n auth_tenant_shared: true,\n auth_a... | typescript | edit | 0 | 0 | mit | 0921a5479ec0a595f30d0614d672b8806bf50d34 | bingxuren/c4sg-web,Code4SocialGood/c4sg-web,jxwang16/c4sg-web,Code4SocialGood/c4sg-web,jekcosty/c4sg-web,Code4SocialGood/c4sg-web,bingxuren/c4sg-web,bingxuren/c4sg-web,jxwang16/c4sg-web,jxwang16/c4sg-web,jekcosty/c4sg-web,jekcosty/c4sg-web | src/environments/environment.staging-local.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FunctionComponent } from 'react';\n\nimport { translate } from '@waldur/i18n';\nimport { ServiceProviderManagement } from '@waldur/marketplace/service-providers/ServiceProviderManagement';\n\nexport const CustomerMarketplacePan... | typescript | edit | null | null | mit | 101d3ad633d7baa7edea9cfd6bed2d65fd44ee6f | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/customer/details/CustomerMarketplacePanel.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Nest @common\n * Copyright(c) 2017 - 2019 Kamil Mysliwiec\n * https://nestjs.com\n * MIT Licensed\n */\nimport 'reflect-metadata';\n\nexport * from './cache';\nexport * from './decorators';\nexport * from './enums';\nexport * fro... | typescript | edit | 0 | 0 | mit | 1682181b783813fbd4e0f9c4595345009d719b36 | kamilmysliwiec/nest,kamilmysliwiec/nest | packages/common/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ko from \"knockout\";\n\nimport { env } from \"./Environment\";\nimport { Metrics } from \"./Utility/Metrics\";\nimport { TransferLocalStorageToCanonicalURLIfNeeded } from \"./Utility/TransferLocalStorage\";\n\nexport class ... | typescript | edit | 0 | 2 | mit | c284b8f0d027e07348d6300f0f4fc231030ad80e | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/LauncherViewModel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// import 'rxjs/Rx'; // adds ALL RxJS statics & operators to Observable\n\n// See node_module/rxjs/Rxjs.js\n// Import just the rxjs statics and operators we need for THIS app.\n\n// Statics\nimport 'rxjs/add/observable/throw';\nimport '... | typescript | edit | 0 | 0 | mit | 400e51abe0667c5b4735cc67847f0a12c1ca6dca | SamGraber/codemash-angular-app,SamGraber/codemash-angular-app,SamGraber/codemash-angular-app | source/rxjs-operators.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Puts `key` into the backing array, if it is not already present. Returns\n * the index of the `key` in the backing array.\n */\nexport let put: (strarr: FastStringArray, key: string) => number;\n\n/**\n * FastStringArray acts li... | typescript | edit | 0 | 2 | apache-2.0 | b1c382653182fd69bad7f7882aaeca55eeaea3d2 | ampproject/remapping,ampproject/remapping,ampproject/remapping | src/fast-string-array.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 * https... | typescript | edit | 0 | 3 | apache-2.0 | 4e500eee2c3507817571b203c8e3ca860f9511d6 | google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform | web-ng/src/app/services/data-import/data-import.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule Foundation.ViewModel.Implementations {\n @Core.Injectable()\n export class DefaultDateTimeService implements Contracts.IDateTimeService {\n\n public constructor( @Core.Inject(\"ClientAppProfileManager\") public clie... | typescript | edit | 0 | 4 | mit | 321e157633e67e64102fe5e9f720cfddae74d335 | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | Foundation/HtmlClient/Foundation.ViewModel.HtmlClient/Implementations/defaultDateTimeService.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * intro.component.ts\n *\n * Copyright (C) 2017-2018 [ A Legge Up ]\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n */\n\nimport { Component, Inject... | typescript | edit | 0 | 2 | mit | e36c8883231276a41e877c7a87e1bfe2bb0db1ce | ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid | application/confagrid-frontend/src/main/frontend/root/modules/main/views/intro/intro.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport type {Root} from 'mdast'\nimport type {ReactElement} from 'react'\nimport type {Plugin} from 'unified'\nimport type {Options} from './lib/index.js'\n\n/**\n * Plugin to compile to React\n *\n * @param options\n * Configuration.... | typescript | edit | 0 | 0 | mit | 9ba6b6667922d245f678aadbdb2c0cc1d2afdae3 | mapbox/mdast-react,mapbox/remark-react,mapbox/remark-react,mapbox/mdast-react | index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createConnection } from 'net';\nimport child from 'child_process';\n\nimport { NeovimClient } from './../api/client';\nimport { logger } from '../utils/logger';\n\nexport interface Attach {\n reader?: NodeJS.ReadableStream;\n ... | typescript | edit | 0 | 7 | mit | 2735af754f160564b70c0eb64a9f151aef4ffdc9 | rhysd/node-client,neovim/node-client,neovim/node-client | src/attach/attach.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as registerSuite from 'intern!object';\nimport * as assert from 'intern/chai!assert';\nimport createParentMixin from 'src/mixins/createParentMixin';\n\nregisterSuite({\n\tname: 'mixins/createParentMixin',\n\tcreation() {\n\t\tc... | typescript | edit | 0 | 1 | bsd-3-clause | bc15aef5706d32579cc657cffc20f121e0aad861 | edhager/widget-core,edhager/widget-core,edhager/widget-core,edhager/widget-core | tests/unit/mixins/createParentMixin.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { NextContext } from \".\";\nimport { SingletonRouter } from \"./router\";\n\nexport interface AppComponentProps {\n Component: React.ComponentType<any>;\n pageProps: any;\n}\n\nexport int... | typescript | edit | 0 | 0 | mit | 87f0d482ebd840d299428244826169f3566b9d74 | borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyType... | types/next/app.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare module \"time-since\" {\n export interface timeSince {\n since: {\n millis: number;\n secs: number;\n mins: number;\n hours: number;\n days: number;\n weeks: number;\n };\n }\n}\n\n```\n\nAp... | typescript | edit | 0 | 1 | apache-2.0 | 4c8ace776f24d34122fd23b5b03efb5f2824089b | tombailey/Time-Since | lib.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IAuthServiceConfiguration, IEndPoint } from '@signature/webfrontauth';\n\n/**\n * WebFrontAuth configuration class.\n *\n * @export\n */\nexport class AuthServiceClientConfiguration implements IAuthServiceConfiguration {\n /**... | typescript | edit | 0 | 2 | mit | c95e6d8b683dbe2d4f04e219d1c86dea5990fb70 | Invenietis/CK-AspNet-Auth,Invenietis/CK-AspNet-Auth,Invenietis/CK-AspNet-Auth,Invenietis/CK-AspNet-Auth | Clients/webfrontauth-ngx/projects/webfrontauth-ngx/src/lib/AuthServiceClientConfiguration.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Property } from \"tns-core-modules/ui/core/properties\";\nimport { MLKitCameraView } from \"../mlkit-cameraview\";\n\nexport const confidenceThresholdProperty = new Property<MLKitImageLabeling, number>({\n name: \"confidenceTh... | typescript | edit | 0 | 1 | mit | 8e7a1c9c65c3259ceff2d6f0f8c37560674b64c8 | EddyVerbruggen/nativescript-plugin-firebase,EddyVerbruggen/nativescript-plugin-firebase,EddyVerbruggen/nativescript-plugin-firebase,EddyVerbruggen/nativescript-plugin-firebase,EddyVerbruggen/nativescript-plugin-firebase,EddyVerbruggen/nativescript-plugin-firebase | src/mlkit/imagelabeling/imagelabeling-common.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nrequire('dotenv').load();\n\n// Export the module from the base level for ease of use\nexport { Hue } from './src/hue-node';\nexport * from './src/hue-interfaces';\n\n```\n\nApply this change: Remove usage of removed dependency"
},
... | typescript | edit | 0 | 0 | mit | d5f9b28a988e30d97504f70a2eafcc6b9d4f488a | bjohnso5/hue-hacking-npm,bjohnso5/hue-hacking-npm | index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FormsModule } from '@angular/forms';\nimport { MdIconModule, MdButtonModule, MdMenuModule, MdSlideToggleModule, MdDialogModule, MdInputModule } from '@angular/material';\nimport { NgModule } from '@angular/core';\nimport { Rout... | typescript | edit | 0 | 0 | mit | cfacefe922f0a7657e23a80bdd0dc90baf7f41fe | AurelieV/end-of-round,AurelieV/end-of-round,AurelieV/end-of-round | src/app/modules/zone/zone.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './gateway-metadata.interface';\nexport * from './nest-gateway.interface';\nexport * from './observable-socket-server.interface';\nexport * from './web-socket-server.interface';\nexport * from './on-gateway-init.interface'... | typescript | edit | 0 | 0 | mit | 02e629308fcf80f45bbc4fe9ebcab3e6ad847220 | kamilmysliwiec/nest,kamilmysliwiec/nest | src/websockets/interfaces/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component, OnInit} from '@angular/core';\nimport {Router} from '@angular/router';\nimport {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms';\n\n@Component({\n selector: 'app-form',\n templateUrl: './dataS... | typescript | edit | 0 | 4 | apache-2.0 | a489439b12225b93e4d5b5784498b78e11a597fb | googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020 | step-release-vis/src/app/components/form/dataSubmissionForm.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { versionIsAtLeast } from \"../utils\";\n\nexport class FlutterCapabilities {\n\tpublic static get empty() { return new FlutterCapabilities(\"0.0.0\"); }\n\n\tpublic version: string;\n\n\tconstructor(flutterVersion: string) {\n\t... | typescript | edit | 0 | 1 | mit | 446aa35d97de0cb5bd8e4995b6dc8791118a30cc | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/flutter/capabilities.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport AppLink, { Props as LinkProps } from '../link/AppLink';\nimport { ButtonLike } from '../button';\n\nconst SidebarBackButton = ({ children, ...rest }: LinkProps) => {\n return (\n <ButtonLik... | typescript | edit | null | null | mit | 674598b8e4e5a99f82964d492f0b41670f6951ea | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/sidebar/SidebarBackButton.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Component\n} from '@angular/core';\n\n@Component({\n selector: 'hello-world',\n template: 'Hello world from the {{ projectTitle }} module!'\n})\nexport class HelloWorld {\n projectTitle: string = 'weighted screen';\n}\n\n... | typescript | edit | 0 | 1 | mit | 24a7d35313d619df6e4d9d2f944cf7d47d59f074 | grow-design/weighted-screen,grow-design/weighted-screen | src/helloWorld.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Entity } from \"./entity\";\nimport { GeneralUpdateOperation } from \"sp2\";\n\nexport type CustomQueryResult<QR extends Object = Object> = {\n result: QR;\n};\n\nexport type QueryResult<E extends Entity> = {\n entities: E[];... | typescript | edit | 0 | 0 | apache-2.0 | de396b2625e7276b821bcf966f84d83ba5e47469 | phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl | modules/interfaces/src/query-result.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { StyleSheet } from 'react-native';\n\nimport EditScreenInfo from '../components/EditScreenInfo';\nimport { Text, View } from '../components/Themed';\n\nexport default function ModalScreen() {\n ... | typescript | edit | null | null | bsd-3-clause | 42d0b16fde8eed3cd81a55577187cb4fb1fc09e5 | exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/expon... | templates/expo-template-tabs/screens/ModalScreen.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport getElements from './-get-elements';\nimport toArray from './-to-array';\n\n/**\n Find all elements matched by the given selector. Equivalent to calling\n `querySelectorAll()` on the test root element.\n\n @public\n @param {st... | typescript | edit | 0 | 3 | apache-2.0 | 560029eae3ce844c5e26bb737b17cce7bd857d0a | switchfly/ember-test-helpers,switchfly/ember-test-helpers | addon-test-support/@ember/test-helpers/dom/find-all.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*!\n * Map Type Component\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Component, OnInit, AfterViewInit, ContentChild } from '@angular/core';\nimport { LeafletControlPanelComponent } ... | typescript | edit | 0 | 2 | mit | f3c33d64f8f5c827e234ddd48f7ce4b26e6a2f9b | ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2 | src/app/map-type/map-type.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport { Status, getStatusText, isSuccess, STATUS_CODE_INFO } from './http-status-codes';\nexport { Request } from './request';\nexport { Response } from './response';\nexport {\n HttpMethod,\n Logger,\n NodeRequest,\n NodeResponse,... | typescript | edit | 0 | 0 | mit | 9600cdb1f7c824da050d44b25dac733285d347ea | restify-ts/core,restify-ts/core,restify-ts/core,restify-ts/core | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport express from 'express';\nimport bodyParser from 'body-parser';\nimport mailRouter from './routes/mail';\nimport pushRouter from './routes/push';\n\nconst app: express.Application = express();\nconst port: string = process.env.POR... | typescript | edit | 0 | 1 | mit | 5ded6834bfa4ee1acd958441be745db69ddd3a18 | schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service | src/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Compares two files lighthouse outputs, listing changes between the numeric audits.\n */\nimport { readFileSync } from 'fs';\n\nconst firstFilePath = process.argv[2];\nconst secondFilePath = process.argv[3];\n\nconsole.log(`\\`${... | typescript | edit | 0 | 0 | bsd-3-clause | 8f0d0e8c37bad5d069fdcb2a8bd516da8e78a129 | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | testutils/src/compare-lighthouse.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path='..\\..\\..\\..\\..\\typings\\winrt.d.ts' static='true' />\r\n///<reference path='..\\..\\..\\..\\..\\typings\\winjs.d.ts' static='true' />\r\n\r\ndeclare var msSetImmediate: (expression: any) => void;\r\n\r\n\r\n\r\n... | typescript | edit | 0 | 1 | apache-2.0 | 11dd970564c5c843a0728422dcbab66cd38ffb68 | mbrowne/typescript-dci,mbebenita/shumway.ts,mbrowne/typescript-dci,popravich/typescript,mbebenita/shumway.ts,mbrowne/typescript-dci,hippich/typescript,popravich/typescript,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,popravich/typescript,hippich... | samples/win8/encyclopedia/Encyclopedia/js/win.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, {useCallback, useEffect} from 'react';\nimport { registerComponent } from '../../lib/vulcan-lib';\nimport { useMutation, gql } from '@apollo/client';\nimport { AnalyticsUtil } from '../../lib/analyticsEvents';\nimport { us... | typescript | edit | null | null | mit | 807a7766c99890440b6d96a6f99b1b165a3ee5a0 | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/components/common/AnalyticsClient.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 StepDefinition from '../src/StepDefinition'\nimport { CucumberExpression, ParameterTypeRegistry } from 'cucumber-expressions'\n\ndescribe('StepDefinition', () => {\n describe('#match', () => {\n i... | typescript | edit | 0 | 1 | mit | 3e88a88805f9c5f0920957cbd517e85e9135421a | cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber | fake-cucumber/javascript/test/StepDefinitionTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport * as React from \"react\";\nimport styled from \"../styles\";\n\nconst GifMarkerSpan = styled.span`\n position: absolute;\n top: 5px;\n right: 5px;\n background: #333333;\n color: rgba(253, 253, 253, 0.74);\n font-size: 1... | typescript | edit | null | null | mit | a6443f83d48b67e2362b5b708109f4bd4472420d | itchio/itch,itchio/itch,itchio/itch,leafo/itchio-app,leafo/itchio-app,itchio/itchio-app,leafo/itchio-app,itchio/itch,itchio/itchio-app,itchio/itch,itchio/itch,itchio/itchio-app | src/components/basics/gif-marker.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface Project {\n id: string;\n type: ProjectType;\n}\n\nexport interface ProjectCategory {\n id: string;\n label: string;\n description: string;\n projectList?: Project[];\n}\n\nexport interface JDKProject ... | typescript | edit | 0 | 0 | mit | 526eebca3ce3ed317cf0c40b4e5298329ada456f | TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,TheIndifferent/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin,judovana/jenkins-scm-koji-plugin | src/stores/model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'chart.js';\nimport 'angular2-universal-polyfills/browser';\nimport { enableProdMode } from '@angular/core';\nimport { platformUniversalDynamic } from 'angular2-universal';\nimport { AppModule } from './app/app.module';\nimport '... | typescript | edit | 0 | 1 | apache-2.0 | 22aed0a41f51b0ae2ecc760f7c45e1b49ac7d48a | denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem,denismaster/DiplomContentSystem | src/DiplomContentSystem/ClientApp/boot-client.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.