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 { round } from './round'\n\n/**\n * Number sign display mode\n */\nexport const enum Sign {\n Normal,\n Forced,\n}\n\n/**\n * Display bytes in human readable format like:\n * 23 GiB\n * -43 B\n * It's also possible to forc...
typescript
edit
0
4
mit
ca9a604192c2435c9ae6add938c81a6670fae26d
shiftkey/desktop,say25/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,kac...
app/src/ui/lib/bytes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// import Sentry from \"@sentry/node\";\nimport { createApp } from \"./app\";\nimport DiscordEventHandler from \"./DiscordEventHandler\";\n\nconst port = process.env.PORT ? Number(process.env.PORT) : 3001;\n\nconst handler = new Discord...
typescript
edit
0
1
mit
bfa7e87bd41973a941c9e4d354062ee498ad6395
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
packages/skin-database/api/server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Component from 'inferno-component'\nimport h from 'inferno-hyperscript'\n\ninterface Props {\n clearCompleted: () => void\n clearAll: () => void\n leftCount: number\n}\ninterface State {}\n\nexport default class Footer extends...
typescript
edit
0
2
mit
c4757db1d8e9540e3386d49d9375dde1d1c924c6
y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo
src/components/footer.ts
rejected_duplicate
Near-duplicate of sample 112844
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\ninterface IAppAlertProps\n{\n appAlert: IAppAlert;\n};\n\nclass AppAlert extends React.Component<IAppAlertProps, any>\n{\n render()\n {\n return (\n <div className={'app-alert '\n ...
typescript
edit
null
null
mit
6e07d6b34c6292b03ece1565c191932c56b887dd
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
src/js/View/Components/AppAlerts/AppAlert.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Request, Response, Router } from 'express';\n\nimport { ErrorResponse } from '../../../common/responses';\nimport { RouteModule } from '../../RouteModule';\nimport { tables } from './tables';\n\nexport function v1(): RouteModul...
typescript
edit
0
2
mit
d1186c2b36645caa2e7b2087acc70f84d27ec6df
mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium
server/src/routes/api/v1/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\"\nimport * as Relay from \"react-relay\"\n\ninterface Props extends RelayProps, React.HTMLProps<GeneContents> {\n gene: any\n}\n\nexport class GeneContents extends React.Component<Props, null> {\n\n ren...
typescript
edit
null
null
mit
5039130fc0818ea29ad22710797aee889d5560fc
xtina-starr/reaction,artsy/reaction-force,artsy/reaction,xtina-starr/reaction,craigspaeth/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction-force,craigspaeth/reaction,craigspaeth/reaction,xtina-starr/reaction,artsy/reaction
src/components/gene/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport \"./bundle-config\";\nimport * as application from 'tns-core-modules/application';\nimport { StoreUpdate, AlertTypesConstant } from \"nativescript-store-update\";\n\nnew StoreUpdate({\n notifyNbDaysAfterRelease: 0,\n majorUpda...
typescript
edit
0
0
apache-2.0
ca6bbf13f6d0603ee39b2c07de0dcacaf3842749
chronogolf/nativescript-store-update,chronogolf/nativescript-store-update,chronogolf/nativescript-store-update,chronogolf/nativescript-store-update
demo/app/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IComponentController, IComponentOptions, module } from 'angular';\n\nimport { INFRASTRUCTURE_CACHE_SERVICE, InfrastructureCacheService } from '@spinnaker/core';\n\nclass LoadBalancerSelectorController implements IComponentContr...
typescript
edit
0
1
apache-2.0
fd1a375b3f4c9e14bc6a4b19f10b84340b5f488f
spinnaker/deck,kenzanlabs/deck,spinnaker/deck,spinnaker/deck,icfantv/deck,ajordens/deck,icfantv/deck,ajordens/deck,sgarlick987/deck,sgarlick987/deck,kenzanlabs/deck,ajordens/deck,sgarlick987/deck,ajordens/deck,icfantv/deck,kenzanlabs/deck,duftler/deck,sgarlick987/deck,duftler/deck,duftler/deck,icfantv/deck,duftler/deck...
app/scripts/modules/amazon/src/serverGroup/configure/wizard/loadBalancers/loadBalancerSelector.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, Inject} from '@angular/core';\nimport {MatDialogRef, MAT_DIALOG_DATA} from '@angular/material'\nimport {UserListService} from \"./user-list.service\";\nimport {User} from \"./user\";\n\n\n@Component({\n selector: '...
typescript
edit
0
0
mit
1e3abe455e88fa41daee4c231e781269f0fa9cda
UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo
client/src/app/users/add-user.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/meteor/meteor.d.ts\" />\ndeclare var process: any;\n\nexport function getDbVersion() {\n console.log(HTTP.get(process.env.HF_COUCH_DB).content);\n}\n\n```\n\nApply this change: Fix server env variabl...
typescript
edit
0
1
apache-2.0
6c771f69a62e624e559b53b4c9acef4ea8978016
shmakes/hf_callcenter,shmakes/hf_callcenter
server/couchdb_connector/db_Connection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { shell } from 'electron'\nimport * as classNames from 'classnames'\n\ninterface ILinkButtonProps {\n /** A URI to open on click. */\n readonly uri?: string\n\n /** A function to call on click. ...
typescript
edit
null
null
mit
57b5d058a832e0ae1d7cb770cb7e0d0f12523b7c
desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,hjobrien/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,hjobrien/desktop,j-f1/forked-desktop,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop,kactus-io/kactus,kactus-io/ka...
app/src/ui/lib/link-button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class NsfwBlockNode {\n OUTLINE_SYNTAX_NODE(): void { }\n\n constructor(public children: OutlineSyntaxNode[] = []) { }\n\n protected NSFW_BLOCK_NODE(): void { }\n}\n...
typescript
edit
0
1
mit
493bcdf7769d6b8ad063fc2cb6b1907d41450bb7
start/up,start/up
src/SyntaxNodes/NsfwBlockNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Player } from '../models/player.model';\nimport { BankService } from './bank.service';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PlayerService {\n\n private _players:...
typescript
edit
0
1
apache-2.0
6c3736e705d71d9dd15a81e27bf23b28119e14fd
luminousuk/CriminalContact,luminousuk/CriminalContact,luminousuk/CriminalContact
src/renderer/app/services/player.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Express } from \"express\";\r\nimport * as Alexa from \"alexa-app\";\r\n\r\n// Skills\r\nimport StagesSkill from \"./stages\";\r\nimport KMSignalRSkill from \"./kmsignalr\";\r\nimport StreamcheckSkill from \"./streamcheck\";\r\...
typescript
edit
0
1
mit
59479ad66c7e9e6817b123177bb1e26fc088d284
nozzlegear/alexa-skills
skills/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport rc = require('rc')\nimport extend = require('xtend')\nimport { PROJECT_NAME, REGISTRY_URL } from './config'\n\nexport interface RcConfig {\n proxy?: string\n httpProxy?: string\n httpsProxy?: string\n noProxy?: string\n reje...
typescript
edit
0
0
mit
af37e2e7fdab564121f1b0d87f654a6d69af899c
typings/core,typings/core
src/utils/rc.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Resolve, ActivatedRouteSnapshot } from '@angular/router';\n\nimport { Observable } from 'rxjs/Observable';\n\nimport { FileHttpService } from '../util/http/file.http.service';\nimpor...
typescript
edit
0
3
apache-2.0
2a85b1a8d3ef647707b97989b96981e9f1dbb2cf
cinovo/cloudconductor-server,cinovo/cloudconductor-server,cinovo/cloudconductor-server,cinovo/cloudconductor-server,cinovo/cloudconductor-server
src/main/webapp/src/app/files/file.resolve.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2021-2022, University of Colorado Boulder\n\n/**\n * Mixin for THREE.Object3D types that handles instrumentation details.\n *\n * @author Jonathan Olson <<EMAIL>>\n */\n\nimport ThreeObject3DPhetioObject from './ThreeObject...
typescript
edit
0
2
mit
4e9b16ff15624cafcdc1921b79adae222230c6f0
phetsims/mobius,phetsims/mobius,phetsims/mobius
js/ThreeInstrumentable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PullRequestStore } from '../pull-request-store'\nimport { Account } from '../../../models/account'\nimport { fatalError } from '../../fatal-error'\nimport { GitHubRepository } from '../../../models/github-repository'\n\n//** In...
typescript
edit
0
2
mit
db6e2cb5bab28a90cf58ed624064c816e848a090
say25/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,artivilla/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desk...
app/src/lib/stores/helpers/pull-request-updater.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {bindable, bindingMode} from 'aurelia-framework';\nimport {getLogger} from 'aurelia-logging';\n\nconst logger = getLogger('EntryOptionsInputComponent');\n\nexport class EntryOptionsInput {\n @bindable({ defaultBindingMode: bindi...
typescript
edit
0
2
mit
f7efdc452d0c159ec0f6c5b25186402a5a32b858
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
src/entry-options-input/entry-options-input.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NextApiRequest, NextApiResponse } from \"next\";\nimport { DEFAULT_CACHE_TIME } from \"common/config\";\nimport { fetchResources, resourcePatterns } from \"common/hyena\";\n\nexport default async (req: NextApiRequest, res: Next...
typescript
edit
0
3
isc
523d4d8603ee6ee43f05834d9e03f33b4e7d3256
sobstel/golazon,sobstel/golazon,sobstel/golazon
pages/api/competitions/[id].ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from 'chai'\nimport Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { PlainText } from '../../SyntaxNodes/PlainText'\nimport { Emphasis } from '../../SyntaxNodes/Emphasis'\nimport ...
typescript
edit
0
1
mit
387449fd9e81ef5ee056b2a310c897bbd10e7f06
start/up,start/up
src/Test/Parsing/RevisionInsertion.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\r\nimport { NavDropdown, MenuItem, NavItem } from 'react-bootstrap'\r\nimport { LinkContainer } from 'react-router-bootstrap'\r\nimport { AuthMessage, UserEntity } from '../Signum.Entities.Authorization'\...
typescript
edit
null
null
mit
1e7c91d9624ac5a0667e8a5c90e7e93a5fa54179
signumsoftware/framework,signumsoftware/extensions,MehdyKarimpour/extensions,signumsoftware/framework,AlejandroCano/extensions,signumsoftware/extensions,MehdyKarimpour/extensions,AlejandroCano/extensions
Signum.React.Extensions/Authorization/Login/LoginUserControl.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { git } from './core'\nimport { revRange } from './rev-list'\nimport { Repository } from '../../models/repository'\n\n/**\n * Generate a patch containing the changes associated with this range of commits\n *\n * @param repository...
typescript
edit
0
1
mit
4f992081cd4ec662bf5f17d4ba028c271d82fdab
shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,say25/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,artivilla/desktop,say25/desktop...
app/src/lib/git/format-patch.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Document} from 'idai-components-2';\n\nexport type TypeName = string;\n\nexport interface IndexItem {\n\n id: string;\n identifier: string\n}\n\n\nexport interface TypeResourceIndexItem extends IndexItem {\n\n instances...
typescript
edit
0
5
apache-2.0
2f523e21dd213e6b71e66ffd01f9b8f681c8200b
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/core/datastore/index/index-item.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport * as ko from \"knockout\";\nimport { noop } from \"lodash\";\n\nexport function linkComponentToObservables(component: React.Component) {\n let observableSubscription = ko.observable().subscribe...
typescript
edit
0
3
mit
1d95aebf61bdbbf4b0c3f537a6e106e8b3bab256
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Combatant/linkComponentToObservables.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { } from 'jest';\nimport { } from 'node';\nimport runJest from '../__helpers__/runJest';\n\ndescribe('use strict', () => {\n\n it('should show the error locations for \"use strict\" violations', () => {\n\n const result = run...
typescript
edit
0
1
mit
4be7a18bf84d8e08d3abba0b6862205ce475d7e2
kulshekhar/ts-jest,kulshekhar/ts-jest
tests/__tests__/use-strict.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as mobxReact from 'mobx-react';\nimport * as mio from '../';\n\n@mobxReact.observer\nexport class ChapterView extends React.Component<{vm: mio.ChapterViewModel}> {\n // TODO: Inline styles like...
typescript
edit
null
null
mit
d3804fb98603b766aeb738db4852b2059ab892c0
Deathspike/mangarack.js,MangaRack/mangarack,MangaRack/mangarack,Deathspike/mangarack.js,MangaRack/mangarack,Deathspike/mangarack.js
src/web/views/ChapterView.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ReactDOM from \"react-dom\";\nimport * as React from \"react\";\n\nimport { ComponentsRefs } from \"./../../components-refs\";\nimport { Button } from \"./button\";\n\nexport class FetchButton extends Button<{}, {}> {\n\n ...
typescript
edit
null
null
mit
450a63e2e84a41b868b70588f19d76bd481f80a6
Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin
src/app/js/component/button/fetch-button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2021 Bjoern Kimminich & the OWASP Juice Shop contributors.\n * SPDX-License-Identifier: MIT\n */\n\nimport {\n waitInMs, waitForElementToGetClicked\n} from '../helpers/helpers'\nimport { ChallengeInstruction }...
typescript
edit
0
0
mit
5dea827c9e6b0bdcdb8e90913d0aaec4ce41382b
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
frontend/src/hacking-instructor/challenges/codingChallenges.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\n\nimport { It, Mock } from 'typemoq';\n\nimport { TitleService } from '../../shared/title.service...
typescript
edit
0
1
apache-2.0
f0676a1012d9ca5b241af311444bb4310cfa321f
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/home/top-page/top-page.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {InjectorService, PLATFORM_ROUTER_OPTIONS, PlatformHandler, PlatformRouter, PlatformStaticsOptions} from \"@tsed/common\";\nimport {Configuration, Inject} from \"@tsed/di\";\nimport * as Express from \"express\";\nimport {RouterO...
typescript
edit
0
0
mit
f1dfdf9d62613db65392c6eac97d4b367f9f9826
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
packages/platform-express/src/services/PlatformExpressRouter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { InlineLinkButton, Icon } from 'react-components';\n\ninterface Props {\n inTrash: boolean;\n filter: boolean;\n onToggle: () => void;\n}\n\nconst TrashWarning = ({...
typescript
edit
null
null
mit
6edee28b4fdfb5ea212d4f2554e587938fcf408d
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/conversation/TrashWarning.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Dam names avaiable\n */\nexport enum DamName {\n cantareira = 'Cantareira',\n altoTiete = 'Alto Tietê',\n guarapiranga = 'Guarapiranga',\n cotia = 'Cotia',\n rioGrande = 'Rio Grande',\n rioClaro = 'Rio Claro',\n saoLouren...
typescript
edit
0
0
mit
599619020704218391edc7c4c9ec4d19da205369
rafaell-lycan/sabesp-mananciais-api,rafaell-lycan/sabesp-mananciais-api
src/entities/Dam.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { storiesOf, action } from '@kadira/storybook'\nimport InputAutocomplete from '../src/InputAutocomplete'\n\nconst onChange = (ev: React.FormEvent<HTMLInputElement>) => {\n return action('input onC...
typescript
edit
null
null
mit
410e111071d48bb5c1b0d7c81d65b7c9e139feea
kevinjhanna/input-autocomplete,kevinjhanna/input-autocomplete
stories/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as command from \"./command\";\nimport * as request from \"./request\";\nimport * as path from \"path\";\nimport * as vscode from \"vscode\";\nimport * as client from \"vscode-languageclient\";\n\nexport function launch(context...
typescript
edit
0
1
apache-2.0
778de3293a26f1affd31f87480045f1ec7b6f55e
freebroccolo/vscode-reasonml,freebroccolo/vscode-reasonml
src/client/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Bluebird = require(\"bluebird\");\nimport { ICollection } from \"../ICollection\";\nimport MongoDB = require(\"mongodb\");\nimport { IMongoClient } from \"../../connectors/mongo/IMongoClient\";\n\n\nexport class MongoCollection i...
typescript
edit
0
1
mit
ad6b064063cc37f37b2e3fdb23464fe50bcf53f3
clems4ever/authelia,clems4ever/authelia,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia
server/src/lib/storage/mongo/MongoCollection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport $ from 'jquery';\nimport {TrackingEventHandler, TrackEventType, TrackingData} from './tracking';\nimport usersessioncookiepersister from './usersessioncookiepersister';\nimport {UserAgentInfo} from './useragentinfo';\n\nexport in...
typescript
edit
0
1
mit
dbdc2e238d7a8665cf9a8acf000c95098caf1c46
trustpilot/skift,trustpilot/skift
src/config.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* beautify ignore:start */\nimport {\n\tit,\n\tinject,\n\tinjectAsync,\n\tbeforeEachProviders,\n\tTestComponentBuilder\n} from 'angular2/testing';\nimport {<%=componentnameClass%>Component} from './<%=componentnameFile%>.component.ts';...
typescript
edit
null
null
mit
52f54b2747565dcb45c8126e513e676b7d2a5133
mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2
generators/component/templates/_component.spec.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { Server } from \"../server\";\nimport { RethinkDB } from \"../rethinkdb\";\n\ninterface IRepeats {\n [token: string]: {\n [command: string]: {\n command: string;\n period: number;\n t...
typescript
edit
0
6
mit
f62ad32b33c8850e7c05e5e77e4c3de2011b1504
CactusBot/Sepal,CactusDev/Sepal,CactusDev/Sepal
src/repeat/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class AddressView {\n constructor(private readonly address: string) {}\n\n get billName() {\n return this.firstLinesWithoutLastTwo.join(' ').substring(0, 70)\n }\n\n get billAddress() {\n return this.secondLastLine.subs...
typescript
edit
0
2
mit
a34d7e47cc7c79bf7f776ee9a431c7c1037681f7
lukaselmer/sanhei-bills2,lukaselmer/sanhei-bills2,lukaselmer/sanhei-bills2,lukaselmer/sanhei-bills2
src/app/bills/address-view.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as merge from '../';\n\nconst x = {\n\tfoo: 'abc',\n\tbar: 'def',\n}\n\nconst y = {\n\tfoo: 'cba',\n\tbar: 'fed',\n}\n\nconst z = {\n\tbaz: '123',\n\tquux: '456',\n}\n\nlet merged1 = merge(x, y);\nlet merged2 = merge(x, z);\nle...
typescript
edit
0
1
mit
2dbd2f937546bab81f7e243c728c18a7dfe197b9
KyleAMathews/deepmerge,KyleAMathews/deepmerge
test/typescript.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { LoginCredentials } from '../../model/login/loginCredentials';\nimport { LoginResponse } from '../../model/login/loginResponse';\nimport { loginMockResponses } from './loginMockData';\nimport { LoginFunction } from './loginAPI.c...
typescript
edit
0
2
mit
a55269774bfcaf9ed3ecbb972715b23ceaf8e2d2
MasterLemon2016/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood,Lemoncode/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood
src/rest-api/login/loginAPI.real.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport isTruthy from './isTruthy';\n\nexport const getCookies = (): string[] => {\n try {\n return document.cookie.split(';').map((item) => item.trim());\n } catch (e) {\n return [];\n }\n};\n\nexport const getCoo...
typescript
edit
0
6
mit
85f91da4638ce52cf76b520972f634f9ee68dbfe
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/shared/lib/helpers/cookies.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport swal, { SweetAlert } from \"./core\";\n\ndeclare global {\n const swal: SweetAlert;\n const sweetAlert: SweetAlert;\n}\n\nexport default swal;\nexport as namespace swal;\n\n```\n\nApply this change: Fix Error to TypeScript Impo...
typescript
edit
0
0
mit
9abfa4c78ce41493bdc0e6da0d812b1d9aa30344
t4t5/sweetalert,t4t5/sweetalert
typings/sweetalert.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\neslint\n@typescript-eslint/explicit-function-return-type: 0,\n@typescript-eslint/no-explicit-any: 0\n*/\nimport FeathersVuexFind from '../FeathersVuexFind'\nimport FeathersVuexGet from '../FeathersVuexGet'\nimport FeathersVuexFormWr...
typescript
edit
0
2
mit
d3e6ec9aea81a3a17ab83f0f96afb5ba062d6ce8
feathers-plus/feathers-vuex,feathers-plus/feathers-vuex
src/vue-plugin/vue-plugin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule, ModuleWithProviders, Optional, SkipSelf } from '@angular/core';\nimport { JwtInterceptor } from './src/jwt.interceptor';\nimport { JwtHelperService } from './src/jwthelper.service';\nimport { HTTP_INTERCEPTORS } from ...
typescript
edit
0
0
mit
72657c2b94e4a02d4270546506070bacdb8b7bcc
auth0/angular2-jwt,hoalex/angular2-jwt,auth0/angular2-jwt,auth0/angular2-jwt,hoalex/angular2-jwt
index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as optional from 'optional';\nimport { NestContainer } from '@nestjs/core/injector/container';\nimport { NestModuleMetatype } from '@nestjs/common/interfaces/modules/module-metatype.interface';\nimport { NestApplication, NestAp...
typescript
edit
0
1
mit
74d6c37c8bb4e8a7f5e1606ed9655933162d6fb5
kamilmysliwiec/nest,kamilmysliwiec/nest
src/testing/testing-module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Hmngr from \"./HarvesterManager\";\n\nexport function run(creep: Creep, src: string): void {\n if (creep.carry.energy! < creep.carryCapacity) {\n let source = <Source>Game.getObjectById(src);\n if(creep.harvest(source...
typescript
edit
0
9
unlicense
cdcf4cece0068387269904b0f69af96b5ac43f9f
lennytmp/screeps,lennytmp/screeps
src/Harvester.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { browser, ExpectedConditions as EC, $, $$ } from 'protractor';\nimport * as support from './support';\n\nimport { HomePage } from './page_objects/home.page';\nimport { LoginPage } from './page_objects/login.page';\n\n// declare ...
typescript
edit
0
1
apache-2.0
dcf05bafe7086bffe64aa7aa8d1a8dc2e50b413e
ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test
ee_tests/src/specs/login.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/threejs/three.d.ts\" />\n\nimport * as THREE from \"three\";\n\nexport class RendererUI {\n private renderer: THREE.WebGLRenderer;\n private camera: THREE.PerspectiveCamera;\n private scene: ...
typescript
edit
0
1
mit
b319125165f07861c71835a26e85981798c119e3
mapillary/mapillary-js,mapillary/mapillary-js
src/ui/RendererUI.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IBuildLogMessage } from './IBuildLogMessage';\n\nexport interface ILogger {\n Error(logMessageBuilder: (b: IBuildLogMessage) => void, method?: string): void;\n Warn(logMessageBuilder: (b: IBuildLogMessage) => void, method...
typescript
edit
0
0
mit
bd89862edeeebaa97adf1a0d85f16a4bdd0f916b
Supercide/loxium,Supercide/loxium
src/ILogger.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Col, Row } from 'reactstrap';\n\nrequire('../css/iconbadge.css');\n\nconst Header = () => (\n <div>\n <Row className=\"justify-content-end my-5 px-3\">\n <span className=\"f...
typescript
edit
null
null
apache-2.0
5b738d79b62f8755a39ed088b1a3d4877ee6a0e0
srct/schedules,srct/schedules,srct/schedules
schedules_web/src/components/Header.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../lib/d3.d.ts\" />\n\n///<reference path=\"../src/table.ts\" />\n///<reference path=\"../src/renderer.ts\" />\n///<reference path=\"../src/interaction.ts\" />\n///<reference path=\"../src/labelComponent.ts\" />\n//...
typescript
edit
0
0
mit
0633e8ff5447d0718ed6a7b6866c3fbd7241540b
gdseller/plottable,NextTuesday/plottable,RobertoMalatesta/plottable,danmane/plottable,palantir/plottable,jacqt/plottable,iobeam/plottable,alyssaq/plottable,palantir/plottable,palantir/plottable,palantir/plottable,NextTuesday/plottable,jacqt/plottable,iobeam/plottable,iobeam/plottable,gdseller/plottable,softwords/plotta...
examples/sparklineDemo.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\nimport {IOption} from 'ng-select';\nimport {OptionService} from '../services/option.service';\n\n@Component({\n selector: 'home',\n templateUrl: './home.component.html'\n})\nexport class H...
typescript
edit
0
1
isc
0318818d4f5697d5906ce146631f35ef4cf805c3
basvandenberg/ng-select,basvandenberg/angular2-select,basvandenberg/ng-select,basvandenberg/angular2-select,benelliott/angular2-select,basvandenberg/angular2-select,benelliott/angular2-select,benelliott/angular2-select,basvandenberg/ng-select,basvandenberg/ng-select,benelliott/angular2-select
demo/src/app/components/home.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n BaseEntity,\n Column,\n CreateDateColumn,\n Entity,\n Generated,\n PrimaryGeneratedColumn,\n UpdateDateColumn,\n} from 'typeorm';\n\n@Entity()\nexport class BaseModel extends BaseEntity {\n\n public st...
typescript
edit
0
1
mit
1ea52564139ce2652c8fca6ba21899d826f336a5
Ionaru/EVE-Track,Ionaru/EVE-Track,Ionaru/EVE-Track
server/src/models/base.model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Register a bunch of editable properties that are used by many\n * dashboard items.\n */\nts.properties.register([\n\n {\n name: 'query',\n category: 'base',\n template: '{{item.query.name}}',\n edit_options: {\n ...
typescript
edit
0
2
apache-2.0
ae30ebc0bb8863c5788135c3407295462c783df6
jmptrader/tessera,urbanairship/tessera,jmptrader/tessera,Slach/tessera,section-io/tessera,aalpern/tessera,tessera-metrics/tessera,aalpern/tessera,tessera-metrics/tessera,Slach/tessera,urbanairship/tessera,jmptrader/tessera,section-io/tessera,aalpern/tessera,urbanairship/tessera,jmptrader/tessera,aalpern/tessera,Slach/t...
ts/dashboard/properties.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class FilterService {\n search(array: any[], query: string) {\n let lQuery = query.toLowerCase();\n\n if (!query) {\n return array;\n } else if (array) ...
typescript
edit
0
4
mit
96a244a317040bde13786e694b8cf8e174d55011
auth0-blog/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos,auth0-blog/ng2-dinos,auth0-blog/ng2-dinos
src/app/core/filter.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TextConsumer } from '../TextConsumer'\n\nexport enum TokenMeaning {\n PlainText,\n EmphasisStart,\n EmphasisEnd,\n StressStart,\n StressEnd,\n InlineCode,\n RevisionDeletionStart,\n RevisionDeletionEnd,\n RevisionInser...
typescript
edit
0
2
mit
be6c8ec0465ab26bc616f2ae11134310dacefb90
start/up,start/up
src/Parsing/Inline/Token.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { FormsModule } from '@angular/forms'\nimport { AppComponent } from './app.component';\nimport { HeroDetailCompone...
typescript
edit
0
0
mit
835b2f4dbd0828fd6f2383a15909a922fb570551
amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes
app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n Simplest Rimu TypeScript application.\n\n npm install rimu # Install Rimu module.\n tsc --module commonjs minimal-example.ts # Compile example.\n node minimal-example.js # Run example....
typescript
edit
0
0
mit
2d7c1ebb4e3e69ae87fb73bded26c5a7a1ef1fb3
srackham/rimu
src/examples/minimal-example.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as core from \"@actions/core\";\nimport * as github from \"@actions/github\";\n\nasync function run() {\n console.log(\"START\");\n console.log(github.context);\n if (github.context.eventName !== \"issue\") {\n ...
typescript
edit
0
4
mit
114e1bd93a84b5e2ee7ac91e7304f91860490fbd
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
.github/actions/issue_template_bot/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ChangeDetectionStrategy, Component, EventEmitter, Input, Output} from '@angular/core';\n\n@Component({\n changeDetection: ChangeDetectionStrategy.OnPush,\n selector: 'app-header',\n template: `\n <nav class=\"nav...
typescript
edit
0
0
mit
61abb3fe0c758eb9b9f92630e4ae2f15d2ef01d2
tchen10/bbrigade,tchen10/bbrigade,tchen10/bbrigade
src/app/components/app-header.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class UnorderedListNode implements OutlineSyntaxNode {\n constructor(public items: UnorderedListNode.Item[]) { }\n \n OUTLINE_SYNTAX_NODE(): void { }\n}\n\nexport mo...
typescript
edit
0
1
mit
746450b0fb50fcea67d9d058b202f60443367aed
start/up,start/up
src/SyntaxNodes/UnorderedListNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Type} from \"@tsed/core\";\nimport {Header} from \"swagger-schema-official\";\n\nexport interface ISwaggerResponses {\n /**\n * Use IResponseOptions.type instead of\n * @deprecated\n */\n use?: Type<any>;\n type?: Type<...
typescript
edit
0
0
mit
dd7cf273e254d665ae591582b6760102bf0a9358
Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators
packages/swagger/src/interfaces/ISwaggerResponses.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { HttpModule } from '@angular/http';\n\nimport { AppComponent } from './app.component';\nimport { HomeComponent } from './home...
typescript
edit
0
0
mit
62e93b965e4b301527ec5441c40957dfd2f033cd
stvnhrlnd/sh-app,stvnhrlnd/sh-app,stvnhrlnd/sh-app
app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { buildServerApp } from \"reaction/Artsy/Router/server\"\nimport { stitch } from \"@artsy/stitch\"\nimport { routes } from \"reaction/Apps/Purchase/routes\"\nimport React from \"react\"\nimport { buildServerAppContext } from \"de...
typescript
edit
null
null
mit
a5282c59e5a212d6c6212bebe627802612db0136
joeyAghion/force,anandaroop/force,artsy/force,erikdstock/force,anandaroop/force,izakp/force,joeyAghion/force,damassi/force,artsy/force,artsy/force-public,yuki24/force,yuki24/force,yuki24/force,oxaudo/force,erikdstock/force,eessex/force,damassi/force,yuki24/force,izakp/force,anandaroop/force,eessex/force,oxaudo/force,da...
src/desktop/apps/purchases/server.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport { Model, Service } from './model';\nimport { ModelService } from './model.service';\n\n@Component({\n selector: 'services-list',\...
typescript
edit
0
1
apache-2.0
385fe9873902d4203f084dd8a8da6f8869156b6e
pushtechnology/diffusion-rest-adapter,pushtechnology/diffusion-rest-adapter
web-interface/web-interface-client/src/main/ts/services-list.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PullRequestDatabase } from '../databases'\n\n/** The store for GitHub Pull Requests. */\nexport class PullRequestStore {\n private db: PullRequestDatabase\n\n public constructor(db: PullRequestDatabase) {\n this.db = db\n ...
typescript
edit
0
1
mit
7e92a3dcd170ef2afebc9f98e7a9c9ff356a2d16
desktop/desktop,gengjiawen/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/kactus,artivilla/...
app/src/lib/stores/pull-request-store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\n\ninterface ModalConfig extends Object {\n title?: string;\n id?: string;\n}\n\nconst defaultConfig = <ModalConfig> {};\n\nlet id = 0;\n\n@Component(...
typescript
edit
0
2
mit
bba7bf48bbc95dfbb320621cbc30e60a855813e6
filoxo/an-angular-modal,filoxo/an-angular-modal,filoxo/an-angular-modal
src/app/modal/modal.component.ts
rejected_duplicate
Near-duplicate of sample 113009
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NonIdealState } from \"@blueprintjs/core\";\nimport { inject, observer } from \"mobx-react\";\nimport React from \"react\";\nimport { ICommonStoreProps } from \"../../common/ICommonStoreProps\";\nimport { WorkItemType } from \"...
typescript
edit
null
null
mit
4ce47293e496e6aa1e4a17fbd9f49eeb3bd06ea5
sgaloux/timetrack2,sgaloux/timetrack2
src/renderer/modules/Tracker/TrackerPage.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport observeFields from './observeFields'\nimport resolveRefType from './utils/resolveRefType'\nimport {createPathObserver} from './createPathObserver'\nimport {createPreviewObserver} from './createPreviewObserver'\n\nexport {default}...
typescript
edit
0
0
mit
65f8127ceb4382e7635578e122dbd4c45c3fa345
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/base/src/preview/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\n/**\n * A relative path to a Bungie.net image asset.\n */\nexport type BungieImagePath = string;\n\ninterface BungieImageProps {\n src: BungieImagePath;\n}\n\n/**\n * An image tag that links its src t...
typescript
edit
null
null
mit
8d6721729bcae2840545e3961bd547a26ccb2577
delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,chrisfried/DIM,bhollis/DIM,bhollis/DIM,bhollis/DIM,chrisfried/DIM,DestinyItemManager/DIM,delphiactual/DIM,chrisfried/DIM,chrisfried/DIM,delphiactual/DIM,bhollis/DIM
src/app/dim-ui/bungie-image.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for vfile-location 2.0\n// Project: https://github.com/vfile/vfile-location\n// Definitions by: Ika <https://github.com/ikatyang>\n// Junyoung Choi <https://github.com/rokt33r>\n// Definitions: https:...
typescript
edit
0
0
mit
b91830f72f5a229b7376fcfa238ef38c077b2122
dsebastien/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,mcliment/Defin...
types/vfile-location/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { dialog, ipcMain } from 'electron'\nimport fs from 'fs'\nimport { projects } from 'stencila'\nimport { CHANNEL } from '../../preload'\nimport { openProjectWindow, projectWindow } from './window'\n\nexport const registerProjectHa...
typescript
edit
0
2
apache-2.0
577c86c807da1b6f8f5783068f18272895cddf42
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
desktop/src/main/project/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nimport { IWorkspaceModuleProvider } from './workspace-module-provider';\nimport { matchByWords, stripExtension } from './utils';\nimport { getConfig } from './config';\n\nexport function findWorkspaceMod...
typescript
edit
0
4
mit
f2e0c578cc09b13ebdebf255bf6a4b9340dda246
reflectiondm/vscode-npmsmartimporter
src/workspace-module-resolver.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Dropdown, MenuItem } from 'react-bootstrap';\n\nimport '../actions.less';\n\nexport interface Props {\n onDelete: () => any;\n notebookActionCallback?: () => any;\n tensorboardActionCallback?...
typescript
edit
null
null
apache-2.0
270e9df7fa9fd24874bad3334a600035bdae8a84
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
client/src/components/projects/projectActions.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Platform } from 'ionic-angular';\nimport { StatusBar, Splashscreen } from 'ionic-native';\n\nimport { TabsPage } from '../pages/tabs/tabs';\n\nimport { ManUpService } from 'ionic-manu...
typescript
edit
0
1
mit
e299ab7566bac622fe596e44bced0800f15e6a24
NextFaze/ionic-manup,NextFaze/ionic-manup,NextFaze/ionic-manup
manup-demo/src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as messages from '@cucumber/messages'\n\nexport default function createLocation(props: {\n line?: number\n column?: number\n}): messages.Location {\n const location: messages.Location = { ...props }\n if (location.line === ...
typescript
edit
0
1
mit
b4c569e3df4ba7fd3402f79968421231dba1086c
cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin
javascript/src/createLocation.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts'/>\n\n////interface A1 { readonly [|{| \"isWriteAccess\": true, \"isDefinition\": true |}a|]: string };\n////interface A2 { [|{| \"isWriteAccess\": true, \"isDefinition\": true |}a|]?: number };\n////le...
typescript
edit
0
0
apache-2.0
0ffe24c64b7bfee0bd001e95866c6e4a460db44e
synaptek/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,nojvek/TypeScript,mihailik/TypeScript,SaschaNaz/TypeScript,mihailik/TypeScript,kpreisser/TypeScript,basarat/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,mihailik/TypeScript,RyanCavanaugh/TypeScript,basarat/TypeScript,RyanCavanaugh/TypeScript,basarat/TypeS...
tests/cases/fourslash/findAllRefsForObjectSpread.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createStore, applyMiddleware, combineReducers } from 'redux';\nimport { composeWithDevTools } from 'redux-devtools-extension';\nimport createSagaMiddleware from 'redux-saga';\nimport reducers from './reducers';\nimport rootSaga...
typescript
edit
0
3
mit
0bd21f6ac42c86362706bf04ba367720c5324e8c
DashBouquet/react-hipstaplate,DashBouquet/react-hipstaplate
app/client/store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MongoClient } from \"mongodb\";\nimport MongodbMemoryServer from \"mongodb-memory-server\";\nimport { StatBlock } from \"../common/StatBlock\";\nimport { probablyUniqueString } from \"../common/Toolbox\";\nimport * as DB from \...
typescript
edit
0
1
mit
024060e87cf85f5742c07b15a029fb84845ef7cd
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
server/dbconnection.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport h, { FunctionComponent } from '../../../lib/tsx/TsxParser';\nimport { Link } from './Link';\n\ninterface FooterProps {\n firstName: string;\n lastName: string;\n gitRevision: string;\n githubLink: string;\n}\n\nexport...
typescript
edit
null
null
mit
3b8ef37392fd28e76af3f50ff7a1645678eb3606
birkett/a-birkett.co.uk
assets/components/tsx/Footer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Given a value 0-1, returns a string describing it as a percentage from 0-100\n */\nexport function percent(val: number): string {\n return `${Math.min(100, Math.floor(100 * val))}%`;\n}\n\n/**\n * Given a value on (or outside) ...
typescript
edit
0
7
mit
d324f57361191e0a2fe68fdc87777db4c77f9f22
DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM
src/app/shell/formatters.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent, ComponentProps } from 'react';\nimport { styled } from '@storybook/theming';\n\nimport { Brand } from './Brand';\nimport { SidebarMenu, MenuList } from './Menu';\n\nexport interface HeadingProps {\n m...
typescript
edit
null
null
mit
f5cce7bb3c5902940608c0b65c64f448aa0dd911
storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook
lib/ui/src/components/sidebar/Heading.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as db from '../../data'\n\nconst defaultConfig: Concierge.Configuration = {\n name: '',\n conciergePort: 3141,\n debug: 0,\n dockerRegistry: undefined,\n proxyHostname: undefined,\n registryCredentials: undefined,\n stat...
typescript
edit
0
5
mit
47a0992131fd8c717c3ef09f3eb333044173b0fe
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
src/api/configuration/db.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Link from \"next/link\"\nimport { FunctionComponent } from \"react\"\nimport TagsList from \"./TagsList\"\nimport BlogPostPreview from \"../models/BlogPostPreview\"\nimport FormattedDate from \"./FormattedDate\"\nimport Horizonta...
typescript
edit
null
null
mit
b36e8a60bd21cb7637ee2e9b50d9497db324c1c4
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
components/BlogPostPreview.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: \"my-app-custom-component\",\n templateUrl: \"app/app.custom.component.html\",\n styleUrls: [ \"app/app.custom.component.css\" ]\n})\n\nexport class AppCustomComp...
typescript
edit
0
1
mit
6cef96cf59e6e943b990ee3a02e562a67bde5e9b
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
A2/quickstart/src/app/app.custom.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ResultDocument } from '../../api/result';\nimport CONFIGURATION from '../../configuration.json';\n\n\nconst IMAGE_CATEGORIES = ['Image', 'Photo', 'Drawing'];\n\nexport const getDocumentLink = (doc: ResultDocument, project: stri...
typescript
edit
0
7
apache-2.0
f8aac97c3eb50f3b73a72c3568f4989cf17fec09
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/shared/document/document-utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { ButtonGroup, Button } from '@shopify/polaris';\r\nimport { SearchResult } from '../../types';\r\nimport TOpticonButton from './TOpticonButton';\r\nimport { generateAcceptUrl, generatePreviewUr...
typescript
edit
null
null
mit
dd91ea55ee1ab4c0b90e5d64ebd9c19b9bd1fbea
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/SearchCard/ExternalPlainButtons.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as GulpJsonmin from 'gulp-jsonmin';\n\nGulpJsonmin();\nGulpJsonmin({});\nGulpJsonmin({ verbose: true });\n\n```\n\nApply this change: Fix how modules are imported" }, { "role": "assistant", "content": "import GulpJs...
typescript
edit
0
0
mit
19afef35b34bc2bb86bc692242c0ae6c45bc6adc
markogresak/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyT...
types/gulp-jsonmin/gulp-jsonmin-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { StoryFn } from '@storybook/addons';\n\nexport const parameters = {\n docs: {\n inlineStories: true,\n prepareForInline: (storyFn: StoryFn<string>) => (\n // eslint-disable-next-line react...
typescript
edit
null
null
mit
82c58871829f210c1711845b388c5653a5af28ad
storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook
addons/docs/src/frameworks/html/config.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst colors = {\n white: '#FFF',\n onHover: '#BABABA',\n onSelect: '#B6B6B6', // used for sidebar list item in selected state\n midGrey: '#C4C4C4', // used for Sidebar Toggle hovered/selected state\n lightGrey: '#E1E1E1'...
typescript
edit
0
0
mit
913fe06e4864302e1d7c3acbfeace85027e122a6
WorldBrain/WebMemex,WorldBrain/WebMemex
src/dashboard-refactor/colors.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport path = require('path');\nimport electron = require('electron');\nimport i18n = require('i18n');\n\nlet instance: TranslationUtil = null;\nlet app: Electron.App = null;\n\n/* To make the util runnable in both main...
typescript
edit
0
2
apache-2.0
47b729cbc2c329072a3ef33091ad8ed455f50626
zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-desktop,zulip/zulip-desktop
app/renderer/js/utils/translation-util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Field } from \"formik\";\nimport React = require(\"react\");\nimport { probablyUniqueString } from \"../../../../common/Toolbox\";\nimport { CombatantViewModel } from \"../../../Combatant/CombatantViewModel\";\nimport { SubmitB...
typescript
edit
null
null
mit
0b2792142c024e1a32075ab4cab0ad08e02eaa16
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Commands/Prompts/components/ApplyDamagePrompt.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { translate } from '@waldur/i18n';\nimport {\n createDefaultEditAction,\n createLatinNameField,\n validateState,\n createDescriptionField\n} from '@waldur/resource/actions/base';\nimport { ResourceAction } from '@waldur/resou...
typescript
edit
0
1
mit
f5fab719873d95f33c8a1ab8543fb7e4c2e631d9
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/openstack/openstack-backup/actions/EditAction.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PortfolioOptimizerPage } from './app.po';\n\ndescribe('portfolio-optimizer App', function() {\n let page: PortfolioOptimizerPage;\n\n beforeEach(() => {\n page = new PortfolioOptimizerPage();\n });\n\n it('should display...
typescript
edit
0
1
mit
6d61344eed54d3a729e53b39e2b32d2ac355cf62
coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer
e2e/app.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ProjectWizardData } from './project-wizard-data.model';\n\nexport class Project {\n public projectName: string;\n public freelancer: string;\n public client: string;\n public startDate: number;\n public endDate: number;\n ...
typescript
edit
0
1
apache-2.0
48a66b03c267e70e5eef170942fcb3c9390bc72d
IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou
client/src/app/models/project.model.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport vscode = require('vscode');\nimport { LanguageClient, RequestType, NotificationType } from 'vscode-languageclient';\nimport Window = vscode.window;\nimport { IFeature } from '../feature';\n\nexport class CodeActionsFeature implem...
typescript
edit
0
1
mit
1667eef999fe213320bc60467f01d941824cf914
PowerShell/vscode-powershell
src/features/CodeActions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport * from './FormWithConstraints';\nexport * from './FieldFeedbacks';\nexport * from './FieldFeedback';\nexport * from './FieldFeedbackWhenValid';\nexport * from './Async';\nimport Field from './Field';\nexport { Field };\nexport * ...
typescript
edit
0
0
mit
21bba51d4176aa4188c503a78bba36005b52633f
tkrotoff/react-form-with-constraints,tkrotoff/react-form-with-constraints,tkrotoff/react-form-with-constraints
packages/react-form-with-constraints/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport classNames from 'classnames';\nimport RcInputNumber from 'rc-input-number';\n\nexport interface InputNumberProps {\n prefixCls?: string;\n min?: number;\n max?: number;\n value?: number;\n step?: ...
typescript
edit
null
null
mit
851f8a8756e8735a82d7220b48d766c2cba28391
liekkas/ant-design,icaife/ant-design,mitchelldemler/ant-design,mitchelldemler/ant-design,ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,havefive/ant-design,liekkas/ant-design,marswong/ant-design,vgeyi/ant-design,liekkas/ant-design,mitchelldemler/ant-design,elevensky/ant-design,vgeyi/ant-design,ant-design/a...
components/input-number/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false