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 { ElementRef, DynamicComponentLoader, AttributeMetadata, Directive } from 'angular2/core';\nimport { Router, RouterOutlet } from 'angular2/router';\nimport { AuthApi } from '../services/auth-api/authentication';\n\n@Directive({\n...
typescript
edit
0
2
mit
052699eba56b1f099f65ac686a41e866a2d088ed
bspride/ModernCookbook,bspride/ModernCookbook,bspride/ModernCookbook
src/app/directives/router-outlet.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Context } from \"../index\";\nimport { Rule } from \"../rule\";\n\nconst SVG_URL_PATTERN = /^[^?]+\\.svg(\\?.*)?$/i\n\nexport class AmpImgUsesSrcSet extends Rule {\n async run(context: Context) {\n const $ = context.$;\n\n ...
typescript
edit
0
4
apache-2.0
13e96fced0341dfa2002c6de9a17ff241fa9cc81
ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox
packages/linter/src/rules/AmpImgUsesSrcSet.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { assert, expect } from \"chai\";\r\nimport { only, skip, slow, suite, test, timeout } from \"mocha-typescript\";\r\nimport * as sinon from \"sinon\";\r\nimport NullLoggerFactory from \"../../src/factory/NullLoggerFactory\";\r\ni...
typescript
edit
0
1
mit
b4abedc2bbc99e1997a83f9b6bdae1f3ea0135f6
sandhje/vscode-phpmd
server/tests/factory/NullLoggerFactoryTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport { Icon, classnames } from '../../index';\n\ninterface Props {\n children: React.ReactNode;\n className?: string;\n onClose?: () => void;\n}\n\nconst TopBanner = ({ children, className, onClo...
typescript
edit
null
null
mit
ecbb0fd37a2d7fd7e8f69fa91790a61d8bf7accd
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/app/TopBanner.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { rimraf } from '../../utils/fs';\nimport { killAllProcesses, ng, silentYarn } from '../../utils/process';\nimport { ngServe, updateJsonFile } from '../../utils/project';\n\nexport default async function() {\n // Currently disab...
typescript
edit
0
3
mit
533ff171cf68484b297b3169a9596ed5ed0c8475
angular/angular-cli,geofffilippi/angular-cli,angular/angular-cli,geofffilippi/angular-cli,catull/angular-cli,Brocco/angular-cli,clydin/angular-cli,catull/angular-cli,Brocco/angular-cli,geofffilippi/angular-cli,catull/angular-cli,ocombe/angular-cli,angular/angular-cli,clydin/angular-cli,clydin/angular-cli,Brocco/angular...
tests/legacy-cli/e2e/tests/misc/webpack-5.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { StocksService } from '../../services/stocks.service';\n\n@Component({\n selector: 'app-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.c...
typescript
edit
0
1
mit
183fb365f1557185ad185971d67245589115d86d
mbarmawi/stocks-tracker,mbarmawi/stocks-tracker,mbarmawi/stocks-tracker
src/app/components/dashboard/dashboard.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { Frame } from \"../../src/frames/frame\";\nimport { FrameString } from \"../../src/frames/frame-string\";\nimport { FrameExpr } from \"../../src/frames/frame-expr\";\nimport * as chai from \"chai\";\n\nconst expect = chai.expe...
typescript
edit
0
1
mit
db2b2b08f88435bdc42ba2e4bfbc903cb1fcb896
TheSwanFactory/maml,TheSwanFactory/maml,TheSwanFactory/hclang,TheSwanFactory/hclang
test/maml/maml-html-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getHasMigratedAddressKeys } from '@proton/shared/lib/keys';\nimport { FeatureCode } from '../containers/features';\nimport { useAddresses } from './useAddresses';\nimport useFeature from './useFeature';\n\nconst useIsMnemonicAv...
typescript
edit
0
3
mit
67545a6c2f4ce1e3517504446e102f549a830292
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/hooks/useIsMnemonicAvailable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport * as config from '../../config';\n\ninterface Props {\n pageType: string;\n}\n\nexport default function SiteHeader({pageType}: Props) {\n return (\n <header className=\"site-header\">\n ...
typescript
edit
null
null
mit
689f92b793124078239d103a2a10dd7724bf6676
Gekkio/gb-hardware-db
src/site/components/SiteHeader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Client, InitConfig } from '@jovotech/client-web';\nimport { PluginObject } from 'vue';\n\ndeclare global {\n interface Window {\n JovoWebClientVue?: typeof import('.');\n }\n}\n\ndeclare module 'vue/types/vue' {\n interfa...
typescript
edit
0
3
apache-2.0
edbeb90105f2ff43eaff3ef228bd89d34fdca828
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
clients/client-web-vue2/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ExpressionDescriptor } from \"./expressionDescriptor\"\nimport { allLocalesLoader } from \"./i18n/allLocalesLoader\"\n\nExpressionDescriptor.initialize(new allLocalesLoader());\n\nexport = ExpressionDescriptor;\n\n```\n\nApply ...
typescript
edit
0
0
mit
b379ecd03cf8faad81fc2b6e8beede28fa5fecc2
bradyholt/cRonstrue,bradyholt/cRonstrue
src/cronstrue-i18n.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable, Inject } from 'ng-metadata/core';\nimport { Fireside_Post } from './../../../../../lib/gj-lib-client/components/fireside/post/post-model';\nimport template from './edit.html';\n\n@Injectable()\nexport class DevlogPo...
typescript
edit
0
1
mit
7b0884c482f9962a8a81af12acb8007aa38df53c
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
src/app/components/devlog/post/edit/edit-service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {PreDestroy, Bean, Qualifier, Autowired, PostConstruct, Optional, Context} from \"./context/context\";\n\nconst themes = [ 'fresh', 'dark', 'blue', 'bootstrap', 'material', 'theme-material'];\nconst themeCLass = new RegExp(`ag-($...
typescript
edit
0
5
mit
484c5bd0a65e508991a673a4e2c762c45f61489f
seanlandsman/ag-grid,ceolter/angular-grid,ceolter/angular-grid,killyosaur/ag-grid,ceolter/ag-grid,seanlandsman/ag-grid,ceolter/ag-grid,seanlandsman/ag-grid,killyosaur/ag-grid,killyosaur/ag-grid
src/ts/environment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport api from './api'\nimport { runHotMiddleware } from './middleware'\nimport { listen } from './listen'\nimport { monitorExceptions } from './exceptionMonitoring'\nimport { serveFrontend } from './s...
typescript
edit
0
1
mit
5a61ae2e9f6603961e7498cc0cc02e678fd38671
devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity,devonzuegel/clarity
src/server/main.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class OrderedListNode implements OutlineSyntaxNode {\n constructor(public items: OrderedListNode.Item[]) { }\n\n start(): number {\n return this.items[0].ordinal\n...
typescript
edit
0
3
mit
9cacd0735f7bca85c1735a8e468c759d23c3e976
start/up,start/up
src/SyntaxNodes/OrderedListNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Subscriptions } from './collection';\nimport { subscriptionTypes } from './schema'\nimport { runCallbacksAsync, Utils } from '../../vulcan-lib';\nimport Users from '../users/collection';\n\nexport const defaultSubscriptionTypeT...
typescript
edit
0
3
mit
c5446891631c96de20b4f4736de6d9a3d4ae08d6
Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope
packages/lesswrong/lib/collections/subscriptions/mutations.ts
rejected_duplicate
Near-duplicate of sample 92753
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'hap-nodejs';\n\nexport interface Homebridge {\n hap: HAPNodeJS.HAPNodeJS;\n log: Homebridge.Log;\n registerAccessory(pluginName: string, accessoryName: string, constructor: Function)\n}\n\nexport namespace Homebridge {\...
typescript
edit
0
0
mit
30483114fc36b48c90a7ab6af711b83abc9aebf6
JosephDuffy/homebridge-pc-volume,JosephDuffy/homebridge-pc-volume,JosephDuffy/homebridge-pc-volume
src/homebridge.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as app from 'app';\nimport * as BrowserWindow from 'browser-window';\nimport * as Menu from 'menu';\nimport * as platform from './models/platform';\n\nif (!platform.isOSX) {\n\tapp.on('window-all-closed', () => app.quit());\n}\...
typescript
edit
0
1
mit
7cefb91669306fe4fa6f59d8971a1cf19bf5b893
AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport * as path from \"path\";\nimport * as fs from \"fs\";\nimport { workspace } from \"vscode\";\n\nexport const dartVMPath = \"bin/dart.exe\";\nexport const analyzerPath = \"bin/snapshots/analysis_server.dart.snap...
typescript
edit
0
3
mit
019fa89f70b824d44b561181cedd8a3cdaf3e25b
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Maybe } from '@terascope/types';\n\n/**\n * The Vector Type, this will change how the data is stored and read\n*/\nexport enum VectorType {\n /**\n * Currently this operates like String\n * but I imagine will be expa...
typescript
edit
0
0
apache-2.0
d7a5a35376fba4831e3177e93bc941fd1c1e99a8
terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice
packages/data-mate/src/vector/interfaces.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts'/>\r\n\r\n////class A<T> {\r\n//// static B<S>(v: A<S>): A<S>;\r\n//// static B<S>(v: S): A<S>;\r\n//// static B<S>(v: any): A<S> {\r\n//// return null;\r\n//// }\r\n////}\r\n\r\n////...
typescript
edit
0
0
apache-2.0
6adf6067eea275cf8272ba1c8ed763f89c08acd2
popravich/typescript,hippich/typescript,hippich/typescript,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,popravich/typescript,mbebenita/shumway.ts,fdecampredon/jsx-typescript-old-version,popravich/typescript,hippich/typescript,mbebenita/shumway.ts,mbebenita/shumway.ts
tests/cases/fourslash/staticGenericOverloads1.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport {Subject} from \"rxjs/Rx\";\n\n@Injectable()\nexport class SearchService {\n private searchTerm: string;\n private subcategories: any;\n private productType: string;\n searchChange...
typescript
edit
0
6
bsd-3-clause
a3e650fffaafffaf0792a8166cbd7947b9ef841e
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
src/app/app.search.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { APPS, SSO_PATHS } from 'proton-shared/lib/constants';\n\nimport TopBanner from './TopBanner';\nimport { useConfig } from '../../hooks';\n\nconst IS_INITIAL_LOGIN = [SSO_PAT...
typescript
edit
null
null
mit
4c49e9bc8a1703dc3aa6701a51bd1bdb43c01e2e
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/topBanners/WelcomeV4TopBanner.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { PageComponent } from './page/page.component';\n\nconst routes: Routes = [\n { path: '', redirectTo: '/main', pathMatch: 'ful...
typescript
edit
0
0
mit
422be766954c4204fcac9c37b263fb1182ae55d5
KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web
src/app/app-routing.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * @license\n * Copyright Hôpitaux Universitaires de Genève. All Rights Reserved.\n *\n * Use of this source code is governed by an Apache-2.0 license that can be\n * found in the LICENSE file at https://github.com/DSI-HUG/dejaj...
typescript
edit
0
0
apache-2.0
2f6a1417da2f45739ee2d74dfafa5cd5e00b1ad9
DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components,DSI-HUG/dejajs-components
src/component/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as commander from \"commander\";\n\nimport { install, parseTyping, uninstall, Typing, TYPINGS_DIR } from \"./index\";\n\ncommander\n .version(require(\"../package\").version);\n\ncommander\n .command(\"install <name>\")\n...
typescript
edit
0
2
mit
3bf8c3974fc6ceb2546cbfa501da0386e0f421ab
tomshen/tsdm
src/cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\nimport {NavController, Alert} from 'ionic-angular';\nimport {LocalNotifications} from 'ionic-native';\n\n\n@Component({\n templateUrl: 'build/pages/home/home.html'\n})\nexport class HomePage {\...
typescript
edit
0
1
apache-2.0
09f5b3367467585d00cd69ab9838641b01d460cb
teerasej/training-ionic2-local-notification,teerasej/training-ionic2-local-notification,teerasej/training-ionic2-local-notification
app/pages/home/home.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, CORE_DIRECTIVES} from 'angular2/angular2';\nimport {SimpleList} from 'InfomediaLtd/angular2-simple-list/app/components/simple-list.ts!';\nimport {UserView} from \"../views/user-view\";\nimport {User} from \"../data/us...
typescript
edit
0
1
mit
231d6a6ad59ecabc66b1bf7556782aad779fe29c
InfomediaLtd/angular2-tutorial,InfomediaLtd/angular2-tutorial,InfomediaLtd/angular2-tutorial
7-redux/app/components/users-list-with-details.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../typings/index.d.ts\" />\ntry { require(\"source-map-support\").install(); } catch (e) { /* empty */ }\nconst log4js = require(\"log4js\");\nimport {app, BrowserWindow} from \"electron\";\n\nlog4js.configure({\n ...
typescript
edit
0
2
mit
43dde6d6aa339177ae24367f636c89d06c41054b
progre/chatreader,progre/chatreader,progre/chatreader
src/index.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 { PlainTextNode } from '../../SyntaxNodes/PlainTextNode'\nimport { EmphasisNode } from '../../SyntaxNodes/Emphas...
typescript
edit
0
1
mit
e320d274e478a8b8e52bdc63c3fd7b49ed5043f1
start/up,start/up
src/Test/Ast/RevisionInsertion.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Dispatcher from '../src/Dispatcher';\n\nimport * as chai from 'chai';\nconst expect = chai.expect;\n\nimport * as path from 'path';\n\ndescribe('Dispatcher', function () {\n it.only('Dispatches to fcat', function (done) {\n ...
typescript
edit
0
2
mit
426b69811ad53a5b002056966ae1384145e27987
hershal/fp-cli-ts,hershal/fp-cli-ts
test/DispatcherSpec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { registerComponent, Components } from '../../../lib/vulcan-lib';\nimport Typography from '@material-ui/core/Typography'\n\nconst styles = theme => ({\n metadata: {\n marginTop:theme.spacing.unit*3,...
typescript
edit
null
null
mit
3c1c688716409baf0e104ec9631b1cf3f95ccf37
Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2
packages/lesswrong/components/posts/PostsPage/PostsPageEventData.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Config from \"webpack-chain\";\n\nimport * as CommonConfig from \"./config.common\";\nimport { Credentials, EnvOptions } from \"./types\";\n\nfunction webpackConfig(options: EnvOptions = {}): Config {\n // get the common co...
typescript
edit
0
1
mit
35a7d8cfb6c6be4980835a5da029caf1bfc671d6
resir014/screeps,resir014/screeps
config/config.local.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ApiInterface } from '../../common/services/api.service';\n/** @ngInject */\nexport function searchForm(): angular.IDirective {\n\n return {\n restrict: 'E',\n scope: {},\n templateUrl: 'app/components/search-form/sear...
typescript
edit
0
1
mit
a068ef8ad62426c2635cea2163dfe5ac6c558599
automaidan/judges,automaidan/judges,automaidan/judges,automaidan/judges
front-end/src/app/components/search-form/search-form.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { computed } from '@ember/object';\nimport $ from 'jquery';\nimport Component from '@ember/component';\nimport { task } from 'ember-concurrency';\nimport config from 'ember-get-config';\nimport moment from 'moment';\n\ninterface ...
typescript
edit
0
1
apache-2.0
be53d643823473a236a2665c233d9557085f7144
hmoco/ember-osf-web,hmoco/ember-osf-web,hmoco/ember-osf-web
app/components/maintenance-banner/component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ActionShowMenu, ActionHideMenu } from './actions';\nimport { ActionTypes, Action } from '../actions';\n\nexport interface UIState {\n isMenuShown: boolean;\n isFullscreen: boolean;\n}\n\nconst initialState: UIState = {\n isM...
typescript
edit
0
7
mit
913aa5469010918b314c9bb8ac74353ce84dc422
matthewtole/codenames,matthewtole/codenames,matthewtole/codenames
src/redux/ui/reducers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class UserSettingsMock implements Xrm.UserSettings {\n public defaultDashboardId: string;\n public isGuidedHelpEnabled: boolean;\n public isHighContrastEnabled: boolean;\n public isRTL: boolean;\n public languageId: number;\...
typescript
edit
0
1
mit
d360e2f98660e4f91e2a120f25f75395cdd50b49
camelCaseDave/xrm-mock,camelCaseDave/xrm-mock
src/xrm-mock/usersettings/usersettings.mock.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
0
mit
d2f506845e451dbb61a3e0133cb8bed68f5ce22d
matthewshirley/vscode,f111fei/vscode,joaomoreno/vscode,edumunoz/vscode,the-ress/vscode,rishii7/vscode,mjbvz/vscode,KattMingMing/vscode,f111fei/vscode,0xmohit/vscode,the-ress/vscode,Zalastax/vscode,sifue/vscode,cleidigh/vscode,ups216/vscode,eamodio/vscode,Microsoft/vscode,veeramarni/vscode,microlv/vscode,cleidigh/vscode...
src/vs/languages/html/common/html.contribution.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { HandleOptions, Jovo } from '@jovotech/framework';\nimport { AlexaRequest } from './AlexaRequest';\nimport { PermissionStatus } from './interfaces';\n\nexport type PermissionType = 'timers' | 'reminders';\n\nexport class AlexaHa...
typescript
edit
0
4
apache-2.0
0cdd7af407f46169601ec81f396409ebc576a0c3
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
platforms/platform-alexa/src/AlexaHandles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { browser, by, element } from 'protractor';\n\nclass HomeObj {\n public title;\n constructor() {\n // this.title = element(by.id('title'));\n }\n}\n\ndescribe('App', () => {\n\n // beforeEach(() => {\n // browser.get('/...
typescript
edit
0
1
mit
16ef5f4b158e3339c332156a65d0a6685c9f3cfd
kojinkai/predictor-ionic,kojinkai/predictor-ionic,kojinkai/predictor-ionic,kojinkai/predictor-ionic
src/pages/home/home.e2e.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'reflect-metadata';\n\nimport { bootstrap } from 'angular2/bootstrap';\n\n<% if (modules === 'webpack') { -%>\nimport './index.<%- css %>';\n\n<% } -%>\nimport { Hello } from './app/hello';\n\nbootstrap(Hello);\n\n```\n\nApply th...
typescript
edit
null
null
mit
578be142bb7cc4d3c2886038a40b5a16a17395a6
FountainJS/generator-fountain-angular2,FountainJS/generator-fountain-angular2,FountainJS/generator-fountain-angular2
generators/app/templates/src/index.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { SubmitButton, FormContainer, FieldError } from '@waldur/form-react';\n\nimport { CloseDialogButton } from './CloseDialogButton';\nimport { ModalDialog } from './ModalDialog';\n\nexport const A...
typescript
edit
null
null
mit
8880a9201886c288eb9ef95f96ff5926f97133d8
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
app/scripts/components/modal/ActionDialog.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {fdescribe,describe,expect,fit,it,xit, inject,beforeEach, beforeEachProviders} from 'angular2/testing';\nimport {provide} from \"angular2/core\";\nimport {IdaiFieldObject} from \"../app/model/idai-field-object\";\nimport {ModelUt...
typescript
edit
0
1
apache-2.0
72f4c0223b751e579194d44d02bbe2dc7a550a41
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
src/test/model-utils.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface MappingValues {\n OriginTissue: string;\n TumorType: string;\n SampleDiagnosis: string;\n DataSource: string;\n}\n\nexport interface Mapping {\n entityId: number;\n entityType: string;\n mappingLabe...
typescript
edit
0
0
apache-2.0
06e7bc39ce24164e3623b6c630e79af84af1c9bb
PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder,PDXFinder/pdxfinder
admin/src/main/app-ui/src/app/mapping-interface.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index'\n\nconst Vector = Tuple(Number, Number, Number)\ntype Vector = Static<typeof Vector>\n\nconst Asteroid = Record({\n type: Literal('ast...
typescript
edit
0
1
mit
82c47a0d04856a7bfea468db580a20f62a2f55cb
pelotom/runtypes,typeetfunc/runtypes,pelotom/runtypes
examples/spaceGame.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {createElement} from 'react'\nimport {useAnnotationColor} from './hooks'\nimport {AnnotationProps, AnnotatedDiffProps} from './DiffAnnotation'\nimport {getAnnotationAtPath} from './helpers'\n\ninterface BaseDiffAnnotationC...
typescript
edit
0
4
mit
1dcf933dde3946397d38dde78ddc668c66d728d7
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/field/src/diff/annotations/DiffAnnotationCard.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\n@Component({\n selector: 'codeCard',\n template: `<plrsCard sectioned title=\"Angular Code\">\n <pre><code>{{ code }}</code></pre>\n </plrsCard>`,\n styles: [\"plrsca...
typescript
edit
0
0
mit
7699ca680dd0a6c5b81da3e1a5cc194c46e8c87c
syrp-nz/angular-polaris,syrp-nz/angular-polaris,syrp-nz/angular-polaris
src/app/doc/utilities/code.card.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DocumentSymbol, DocumentSymbolParams, IConnection } from 'vscode-languageserver';\nimport Provider from './Provider';\nimport { analyses } from '../Analyzer';\n\nexport default class DocumentSymbolProvider extends Provider {\n\...
typescript
edit
0
1
mit
b2ef9b22bb880342e7688303b698a7410ee98763
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
server/src/providers/DocumentSymbolProvider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\" />\n\n////interface I1 {\n//// a(): void;\n//// b(): void;\n////}\n////\n////var imp1: I1 {\n//// a() {},\n//// /*0*/\n////}\n////\n////interface I2 {\n//// a(): void;\n//// b(): vo...
typescript
edit
0
0
apache-2.0
c6feaa016a92ff3ef9ba36ea6694a43f04712e2d
microsoft/TypeScript,DLehenbauer/TypeScript,weswigham/TypeScript,jeremyepling/TypeScript,kitsonk/TypeScript,erikmcc/TypeScript,mihailik/TypeScript,nycdotnet/TypeScript,kimamula/TypeScript,kpreisser/TypeScript,DLehenbauer/TypeScript,ziacik/TypeScript,synaptek/TypeScript,erikmcc/TypeScript,minestarks/TypeScript,mmoskal/T...
tests/cases/fourslash/completionListImplementingInterfaceFunctions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst schema = new Map()\n\nexport interface Field {\n field: string,\n label: string,\n component: React.ReactElement<any>,\n props?: Object\n}\n\nexport interface Meta {\n type: string,\n editorSchema?: Array<Field>,\n name?: s...
typescript
edit
0
11
mit
0ad3e930c5bf430b1fc5210b99706e6ab4639041
aranja/tux,aranja/tux,aranja/tux
packages/tux/src/services/editor.ts
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/\u0000/\u0000/\u0000 \u0000<\u0000r\u0000e\u0000f\u0000e\u0000r\u0000e\u0000n\u0000c\u0000e\u0000 \u0000p\u0000a\u0000t\u0000h\u0000=\u0000\"\u0000f\u0000o\u0000u\u0000r\u0000s\u0000l\u0000a\u0000s\u0000h\u0000.\u0000t\u0000s\u0000\"\u...
typescript
edit
0
0
apache-2.0
86047a7206c60e7964e7108f7aab758bc485bd5b
kitsonk/TypeScript,blakeembrey/TypeScript,synaptek/TypeScript,nycdotnet/TypeScript,evgrud/TypeScript,kpreisser/TypeScript,mihailik/TypeScript,nojvek/TypeScript,plantain-00/TypeScript,microsoft/TypeScript,ziacik/TypeScript,RyanCavanaugh/TypeScript,thr0w/Thr0wScript,plantain-00/TypeScript,jwbay/TypeScript,mihailik/TypeSc...
tests/cases/fourslash/superInsideInnerClass.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { IonicErrorHandler } from 'ionic-angular';\nimport Raven from 'raven-js';\n\nRaven\n .config('https://<EMAIL>/155883')\n .install();\n\n// Sentry.io error handling\nexport class SentryErrorHandler extends IonicErrorHandler...
typescript
edit
0
3
mit
143ac55a08c94b524581d4a8cbe0a48d40f834b6
longzheng/mypal-ionic,longzheng/mypal-ionic,longzheng/mypal-ionic
src/providers/sentry-error.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as BaseActions from \"actions/BaseEditActions\";\nimport { EditableCallbacks, EditableProps} from \"core/EditableProps\";\nimport { connect } from \"react-redux\";\nimport {Store} from \"stores\";\n\ntype MappedProps<TProps ext...
typescript
edit
0
1
mit
a86778ef6ba114ab3b2e4fdfc326e0dd8251bad6
software-training-for-students/manual-editor,software-training-for-students/manual-editor,software-training-for-students/manual-editor
core/connectEditable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { EntityId } from '@reduxjs/toolkit'\nimport { Component, h, Host, Prop } from '@stencil/core'\nimport { option as O } from 'fp-ts'\nimport { constFalse, pipe } from 'fp-ts/function'\nimport { state } from '../../../../../rendere...
typescript
edit
null
null
apache-2.0
102b34cd4e29bd491f1f6dfb5ad5c8e7eeaed82a
stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila
desktop/src/renderer/components/app-document/app-document-pane/app-document-pane-tabs/app-document-pane-tabs.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { } from 'jasmine';\nimport { async, inject } from '@angular/core/testing';\n\nimport { configureTest } from './config';\nimport { ContentService, ShareService, ContentSearchRequest, ShareContent, ShareBasicCreateRequest, OutputA...
typescript
edit
0
1
mit
87ff182c289c60036d5fb87c842aa60d15594560
Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript
src/picturepark-sdk-v1-angular/projects/picturepark-sdk-v1-angular/src/tests/share-service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Schema, model, Document } from 'mongoose';\n\nconst UserSchema = new Schema({\n createTime: { type: Date, default: Date.now },\n lastLoginTime: { type: Date, default: Date.now },\n\n username: {\n type: String,\...
typescript
edit
0
0
mit
6569ca62df89085a2a409a9c24281a9c1a854bf5
yinxin630/fiora,yinxin630/fiora,yinxin630/fiora
server/models/user.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Only for types; take care never to use ts_types in expressions, only in type annotations\r\nimport * as ts_types from 'typescript';\r\nimport { wrapError } from './utils/wrap-error';\r\nimport { TsJestConfig } from './types';\r\n\r\n...
typescript
edit
0
4
mit
e33fc763ee5106cf9684c161a89ff0e7f16be0fe
kulshekhar/ts-jest,kulshekhar/ts-jest
src/custom-compiler.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Skins from \"../data/skins\";\nimport S3 from \"../s3\";\nimport { addSkinFromBuffer } from \"../addSkin\";\nimport { EventHandler } from \"./app\";\n\nlet processing = false;\n\nexport async function processUserUploads(even...
typescript
edit
0
6
mit
f7b45868cf77ba78fd397c078e89d7f0d279923f
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
packages/skin-database/api/processUserUploads.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nnamespace MainApp {\n /**\n * Square\n */\n export class Square {\n constructor() {\n }\n }\n}\n\n```\n\nApply this change: Add piece property to Square" }, { "role": "assistant", "content": "/...
typescript
edit
0
1
mit
2e2de9e67ad46d1b3ad261d9c83e85f84e9ef9e0
yajamon/marukake,yajamon/marukake,yajamon/marukake
src/ts/models/square.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nlet isLinux = process.platform === 'linux';\nlet isFreeBSD = process.platform === 'freebsd';\nlet isOSX = process.platform === 'darwin';\nlet isSunOS = process.platform === 'sunos';\n\nexport { isLinux, isFreeBSD, isOSX, isSunOS }\n\n``...
typescript
edit
0
0
mit
7c5a17a916d1f52612f695d226a217710bb494da
AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey
src/models/platform.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { connect as nativeConnect, ElementClass } from 'react-redux';\n\ninterface ClassDecoratorWithProps<TProps> extends Function {\n <T extends (typeof ElementClass)>(component: T): T;\n props: ...
typescript
edit
0
1
apache-2.0
f798f308f32c1d41e700fd9c9d1144fe0e82c82e
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
src/Microsoft.AspNet.ReactServices/npm/redux-typed/src/StrongProvide.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { StorageMock } from '../mocks/mocks';\r\nimport { Storage } from '@ionic/storage';\r\nimport { TestBed, inject, async } from '@angular/core/testing';\r\nimport { SettingService } from './setting-service';\r\n\r\n\r\ndescribe('Pr...
typescript
edit
0
1
mit
493b8500738f3669907de4426ade88f7f3c543a4
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
src/providers/setting-service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @externs\n * @license\n * Copyright (c) 2021 The Polymer Project Authors. All rights reserved. This\n * code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt The complete set of auth...
typescript
edit
0
0
bsd-3-clause
dd6ddcaa040209b52d0efdae12145701e25bae6b
webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills
packages/webcomponentsjs/externs/webcomponents.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as classNames from 'classnames';\nimport * as React from 'react';\nimport { useSelector } from 'react-redux';\nimport { formValueSelector } from 'redux-form';\n\nimport { translate } from '@waldur/i18n';\nimport { FORM_ID } fro...
typescript
edit
null
null
mit
bfd820adefd072bcaaab98f7585f93937857bf0f
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/rancher/cluster/create/LonghornWorkerWarning.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Field } from 'redux-form';\n\nimport { required } from '@waldur/core/validators';\nimport { translate } from '@waldur/i18n';\n\nimport { FormGroupWithError } from './FormGroupWithError';\n\ninte...
typescript
edit
null
null
mit
9c3b55622913a47cf4a706516932d1fd4a90d316
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/marketplace/offerings/InternalNameField.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable, Inject } from 'ng-metadata/core';\nimport { Fireside_Post } from './../../../../../lib/gj-lib-client/components/fireside/post/post-model';\nimport template from 'html!./edit.html';\n\n@Injectable()\nexport class Dev...
typescript
edit
0
1
mit
4333cafc17c702a1290de84f45a06476bf8ef44b
gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt
src/app/components/devlog/post/edit/edit-service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { useParams } from 'react-router';\nimport useFeature from '../../../../hooks/api/getters/useFeature/useFeature';\nimport MetricComponent from '../../view/metric-container';\nimport { useStyles } from './FeatureMetrics.styles';\n...
typescript
edit
null
null
apache-2.0
e1b67a49111cdb67c6b4a6b2ea15c4d3736e6dbb
Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend,Unleash/unleash-frontend
src/component/feature/FeatureView2/FeatureMetrics/FeatureMetrics.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { parse } from \"url\"\nimport useragent from \"useragent\"\n\nexport const unsupportedBrowserCheck = (req, res, next) => {\n const ua = useragent.parse(req.headers[\"user-agent\"])\n if (!res.locals.sd.BROWSER) {\n res.loca...
typescript
edit
0
6
mit
e01da0c83f80f3e9a52649c0e7b4808ab299365c
artsy/force,izakp/force,erikdstock/force,damassi/force,yuki24/force,yuki24/force,anandaroop/force,eessex/force,joeyAghion/force,artsy/force-public,erikdstock/force,erikdstock/force,eessex/force,anandaroop/force,damassi/force,oxaudo/force,erikdstock/force,joeyAghion/force,anandaroop/force,damassi/force,oxaudo/force,izak...
src/lib/middleware/unsupportedBrowser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { useRef, useEffect } from 'react'\nimport { observer } from 'mobx-react-lite'\nimport Scrollbar from 'libs/Scrollbar'\nimport ReactResizeDetector from 'react-resize-detector'\nimport Loading from './Loading'\nimport { use...
typescript
edit
null
null
mit
381f9411de12be979f0f43f8cd702805df08d5c7
xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2
packages/extension/src/js/components/WinList.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { createStore } from 'redux';\nimport { reducer } from '../../client/src/redux/reducers';\n\nexport const store = createStore(reducer);\n\n```\n\nApply this change: Fix imprt path to reducer" }, { "role": "assistant", ...
typescript
edit
0
0
unlicense
67f905b1d25acf78a535f95b39a7ed08de5c5886
forabi/hollowverse,forabi/hollowverse,forabi/hollowverse,forabi/hollowverse
server/src/redux.store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass AudioPlayer {\n view: HTMLDivElement;\n private audioElements: HTMLAudioElement[] = [];\n private freeAudioElements: HTMLAudioElement[] = [];\n\n constructor() {\n this.view = document.createElement(\"div\");\n...
typescript
edit
0
3
apache-2.0
127bb42cfcc35adff89d536467f0e5bd091a2f15
Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism
Mechanism/AudioPlayer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ipcMain, app, Menu, session } from 'electron';\nimport { resolve } from 'path';\nimport { platform, homedir } from 'os';\nimport { AppWindow } from './app-window';\n\nipcMain.setMaxListeners(0);\n\napp.setPath('userData', resol...
typescript
edit
0
3
apache-2.0
fc454bd61533875e50cd9e3abea347d391216b33
Nersent/Wexond,Nersent/Wexond
src/main/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable, Inject} from \"@angular/core\";\nimport {Observable} from \"rxjs/Observable\";\nimport {Indexeddb} from \"../datastore/indexeddb\"\nimport {Datastore} from \"idai-components-2/idai-components-2\";\n\n/**\n * @author ...
typescript
edit
0
3
apache-2.0
8b79a6410236aef80cb2a941755d2bd89f7122bd
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/services/sync-mediator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { DetailedHTMLProps, ImgHTMLAttributes, useState } from 'react';\nimport { c } from 'ttag';\nimport { SHOW_IMAGES } from '@proton/shared/lib/constants';\nimport { isURL } from '@proton/shared/lib/helpers/validators';\nimport Butt...
typescript
edit
null
null
mit
e3f7196e288ff0e738759621c3484d4e62783c3a
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/image/RemoteImage.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\nimport * as os from 'os';\nimport * as path from 'path';\nimport { Position } from '../common/motion/position';\nimport { Range } from '../common/motion/range';\nimport { logger } from './logger';\n\nc...
typescript
edit
0
2
mit
f95cd84fb4bd418d311d9e2c2396a6687a8c0e09
VSCodeVim/Vim,VSCodeVim/Vim,Chillee/Vim,Chillee/Vim
src/util/util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { StyledBookmarkItem, Icon, Title } from './styles';\nimport { Bookmark } from '@/interfaces';\nimport { observer } from 'mobx-react';\nimport store from '@app/store';\n\ninterface Props {\n item: Boo...
typescript
edit
null
null
apache-2.0
4d1e183269f77be775f9309c3006c4ce607663a3
Nersent/Wexond,Nersent/Wexond
src/renderer/app/components/BookmarkItem/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Context } from \"../common/types\";\nimport { IVNode } from \"./ivnode\";\n\nexport interface SelectorData<T = {}, U = {}> {\n in: T;\n out: U;\n}\n\nexport interface ConnectDescriptor<T, U, K> {\n select: (prev: Selec...
typescript
edit
0
0
mit
9cdfd4d2082198fe2382ab93b069b8f50e0bbd02
ivijs/ivi,ivijs/ivi
src/vdom/connect_descriptor.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for js-md5 v0.4\n// Project: https://github.com/emn178/js-md5\n// Definitions by: Michael McCarthy <https://github.com/mwmccarthy>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/\n\ndeclare names...
typescript
edit
0
0
mit
cfdd4d3496b96711bc9fa2600213a9dd244875a2
magny/DefinitelyTyped,minodisk/DefinitelyTyped,georgemarshall/DefinitelyTyped,QuatroCode/DefinitelyTyped,mcrawshaw/DefinitelyTyped,borisyankov/DefinitelyTyped,jimthedev/DefinitelyTyped,dsebastien/DefinitelyTyped,minodisk/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,amir-arad/DefinitelyTyped,ashwinr/DefinitelyTyped,Agent...
js-md5/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { focusWindow } from '../../ui/main-process-proxy'\nimport { supportsNotifications } from 'desktop-notifications'\nimport { showNotification as invokeShowNotification } from '../../ui/main-process-proxy'\nimport { notificationCal...
typescript
edit
0
3
mit
5d62f75c6dc028cea5bc6ce7cf2aaa2dd99717f1
shiftkey/desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop
app/src/lib/notifications/show-notification.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Constants} from '../../misc/constants';\nimport {IntervalTicker} from '../../misc/ticker/interval';\nimport {Ticker} from '../../misc/ticker/ticker';\nimport {TypeUtil} from '../../misc/type-util';\n\nexport function createTicke...
typescript
edit
0
2
mit
ebfae5fa03fb4aa1813205120de692ebd03a1293
cocopon/tweakpane,cocopon/tweakpane,cocopon/tweakpane
src/main/js/controller/binding-creators/util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport { ListsApi } from '../services';\nimport { List } from './list';\n\n@Component({\n selector: 'lists-table',\n templateUrl: './lists-table.component.html'\n})\n\nexport clas...
typescript
edit
0
1
mit
3ebc5bdff5e41d5b38f5a1bcc77556c2f490bca8
shohrukh92/TaskManagerMEAN,shohrukh92/TaskManagerMEAN,shohrukh92/TaskManagerMEAN
src/app/lists/lists-table.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport NoStringParameterToFunctionCallWalker = require('./utils/NoStringParameterToFunctionCallWalker');\n\n/**\n * Implementation of the no-string-parameter-to-function-call rule.\n */\nexport class Rule extends Lint.Rules.AbstractRu...
typescript
edit
0
1
mit
61c5ebd6b40f2405cee091550b51411901c51b7c
Microsoft/tslint-microsoft-contrib,Microsoft/tslint-microsoft-contrib
src/noStringBasedSetImmediateRule.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Progress from 'antd/lib/progress';\nimport * as React from \"react\";\n\nimport {Status} from \"../utils/types\";\n\nexport interface LoadingProps {\n // TODO: Make \"status\" a proper type.\n status: number;\n}\n\nexport defau...
typescript
edit
null
null
mit
e6e5f0004abe9541b63d4af3a8a2e2537a6085a4
jrupac/goliath,jrupac/goliath,jrupac/goliath,jrupac/goliath,jrupac/goliath
frontend/src/components/Loading.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getCurrentItem, getItem } from './item'\nimport { isWeb } from './device'\n\nexport function close() {\n\twindow.location.href = '/interactive-redirect/v5/items/__self__/back'\n}\n\nexport function next() {\n\twindow.location.h...
typescript
edit
0
3
apache-2.0
92b2dbd2264689cde90c338fa1efd1b257ddf3c1
Mediafly/mflyCommands
commands/navigation.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport $ from 'cafy'; import ID, { transform } from '../../../../../misc/cafy-id';\nimport Message from '../../../../../models/messaging-message';\nimport define from '../../../define';\nimport { publishMessagingStream } from '../../....
typescript
edit
0
2
mit
7947036af93ff73e1dcee8e3c957333fad040bbb
syuilo/Misskey,syuilo/Misskey
src/server/api/endpoints/messaging/messages/delete.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ViewChild } from '@angular/core';\nimport { LayerType } from './core/layer';\nimport { CityMapComponent } from './city-map/city-map.component'\n\n@Component({\n selector: 'aba-plan',\n templateUrl: 'app.component.h...
typescript
edit
0
2
mit
017aeab9b515ea1f97939e4f96c153bd21656143
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ninterface PackageMetadata {\n\tname: String;\n\tversion: String;\n}\n\ninterface ApiOptions {\n\tregions: String[];\n}\n\ninterface ContentOptions {\n\tbucket: String;\n\tcontentDirectory: String;\n}\n\ninterface PublishLambdaOptions {\...
typescript
edit
0
1
bsd-3-clause
66a931a8c12746d74a81442f033c0927016250f9
wparad/AWS-Architect,wparad/AWS-Architect
index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { DestinyAccount } from '../accounts/destiny-account.service';\nimport { $transitions, $state } from '../ngimport-more';\nimport { t } from 'i18next';\n\nexport default class Link extends React.Co...
typescript
edit
null
null
mit
bb6d2a89bbeb0fadc50359f35f1d1aff60c6a34f
chrisfried/DIM,bhollis/DIM,DestinyItemManager/DIM,delphiactual/DIM,bhollis/DIM,DestinyItemManager/DIM,chrisfried/DIM,chrisfried/DIM,DestinyItemManager/DIM,delphiactual/DIM,delphiactual/DIM,DestinyItemManager/DIM,delphiactual/DIM,bhollis/DIM,bhollis/DIM,chrisfried/DIM
src/app/shell/Link.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as rtl from 'rtl-css-js';\n\nexport interface JssRTLOptions {\n enabled?: boolean;\n opt?: 'in' | 'out';\n}\n\nexport default function jssRTL({ enabled = true, opt = 'out' }: JssRTLOptions = {}) {\n return {\n onProcessSt...
typescript
edit
0
6
mit
c9861ef2d8f76d622c6ea558e9007a746388c2a3
alitaheri/jss-rtl
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { rgba, lighten, darken } from 'polished';\n\nexport const mkColor = (color: string) => ({ color });\n\n// Passing arguments that can't be converted to RGB such as linear-gradient\n// to library polished's functions such as light...
typescript
edit
0
3
mit
57db3f2813d8bd480e4ebb577c4ff9213c439cd5
storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook
lib/theming/src/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {React} from \"dium\";\nimport {Settings, FolderData} from \"./settings\";\n\nexport interface ConnectedBetterFolderIconProps {\n folderId: number;\n childProps: any;\n FolderIcon: React.FunctionComponent<any>;\n}\n\nexp...
typescript
edit
null
null
mit
3d0a17f13c1e3d4981e26dbabf60eaefcf36771a
Zerthox/BetterDiscord-Plugins,Zerthox/BetterDiscord-Plugins
src/BetterFolders/icon.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// >> creating-listpicker-code\nimport { Component } from \"@angular/core\";\nimport { ListPicker } from \"tns-core-modules/ui/list-picker\";\n\nlet pokemonList = [\"Bulbasaur\", \"Parasect\", \"Venonat\", \"Venomoth\", \"Diglett\",\n ...
typescript
edit
0
2
apache-2.0
12abbe1398420d746bd9f659a4df86fcbbf95799
NativeScript/nativescript-sdk-examples-ng,NativeScript/nativescript-sdk-examples-ng,NativeScript/nativescript-sdk-examples-ng,NativeScript/nativescript-sdk-examples-ng
app/ng-ui-widgets-category/listpicker/creating-listpicker/creating-listpicker.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport { saveAs } from 'file-saver';\nimport { FileFormat } from './FileFormat';\n\n\nexport class FileOperations { \n\n readonly UNKNOWN_FORMAT: string = \"UNKNOWN\";\n readonly NON_SET_DELIMITER: string = \"\";\n // Note: F...
typescript
edit
0
3
mit
afa545c8aa39cda1f8fac9e9a55bdb6d4e906ebc
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
console/src/app/common/FileOperations/FileOperations.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { rgba, lighten, darken } from 'polished';\n\nexport const mkColor = (color: string) => ({ color });\n\nconst isLinearGradient = (color: string) => {\n return typeof color === 'string' && color.includes('linear-gradient');\n};\n...
typescript
edit
0
5
mit
703b5d545db8cd53f028da35f42450a13adabdee
storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook
lib/theming/src/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\n\nimport { Contact } from './contact';\n\n@Component({\n selector: 'my-contact-detail',\n\n template: `\n <div *ngIf=\"selectedContact\">\n <h2>{{selectedContact...
typescript
edit
0
0
mit
5b6d5fad6bdda64a4696c33ff2ecb3f563beb33e
armin-es/contact-list-angular-2,armin-es/contact-list-angular-2,armin-es/contact-list-angular-2
src/app/contact-detail.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { App } from 'ionic-angular';\nimport { ElementRef, HostListener, Directive, Input } from '@angular/core';\n\nimport { ImageViewer } from './image-viewer';\n\n@Directive({\n\tselector: '[imageViewer]'\n})\nexport class ImageViewe...
typescript
edit
0
2
mit
151ebf0e4a30651e9f12b9f6f72a56b6fb3b59aa
Riron/ionic-img-viewer,Riron/ionic-img-viewer
src/image-viewer.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Workflow} from \"../../\";\nimport {PluginBase} from \"../plugin-base\";\n\nexport class ZoomPlugin extends PluginBase {\n private svg: SVGSVGElement;\n private dispose: Function | undefined;\n\n registerWorkflow(work...
typescript
edit
0
5
apache-2.0
bcec34f9cc47432346fc8d649fe6dd2c40deeabf
rabix/cwl-svg,rabix/cwl-svg,rabix/cwl-svg
src/plugins/zoom/zoom.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, JsonpModule } from '@angular/http';\n\nimport { AppComponent } from './app/app.component';\nimpor...
typescript
edit
0
0
mit
5ae771321a5f2d801ba521662baf6a73ff22ea83
UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM...
client/src/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2020 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {testResolver as testResolverImpl} from './common-test-setup';\n\ndeclare global {\n interface Window {\n testResolver: typeof testR...
typescript
edit
0
0
apache-2.0
1d286dd3566b97e40cb9338aa204f225d0df9687
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/test/common-test-setup-karma.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport loadable from \"@loadable/component\"\nimport { graphql } from \"react-relay\"\nimport { RouteConfig } from \"found\"\n// import React from \"react\"\n\nconst ArtistSeriesApp = loadable(() => import(\"./ArtistSeriesApp\"))\n\n// ...
typescript
edit
0
1
mit
b674ada8bca18bc2ba0e545d73f79459cc27dd88
oxaudo/force,oxaudo/force,oxaudo/force,artsy/force,artsy/force,eessex/force,eessex/force,joeyAghion/force,artsy/force-public,artsy/force-public,eessex/force,joeyAghion/force,joeyAghion/force,joeyAghion/force,oxaudo/force,eessex/force,artsy/force,artsy/force
src/v2/Apps/ArtistSeries/routes.tsx
accepted
null
true