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 InstanceCache from 'Core/InstanceCache';\nimport reducers from 'Reducers/Index';\nimport configureStore from 'Core/ConfigureStore';\nimport { renderApplication } from 'Core/Renderer';\n\nimport RequestFactory from 'Core/RequestFa...
typescript
edit
0
1
mit
bcaadd6f14253ea3fe06cf2b55add859c9beb2e6
harksys/HawkEye,harksys/HawkEye,harksys/HawkEye
src/HawkEye.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {AppStore} from \"./app-store\";\n\n/**\n * Abstract class to provide utility methods for action creators\n */\nexport class Actions {\n\n private appStore:AppStore = null;\n\n constructor(appStore?:AppStore) {\n if ...
typescript
edit
0
7
mit
46a08045af5a2875af6af1d1fee66b87dab93900
InfomediaLtd/angular2-redux,InfomediaLtd/angular2-redux,InfomediaLtd/angular2-redux
src/actions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Delay time before close autocomplete.\n *\n * (This prevent autocomplete DOM get detroyed before access data.)\n */\nexport const AUTOCOMPLETE_CLOSE_DELAY = 250;\n\n/**\n * Allowed attributes that can be passed to internal input...
typescript
edit
0
0
mit
7a06c3e25eac0bf32642cc1ee75840b5acb3dbae
gluons/vue-thailand-address
src/lib/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getMoves } from './moves';\nimport { evaluate } from './evaluation';\nimport { makeMove } from './game';\n\nexport function getBestMove(grid: boolean[], forX: boolean, depth?: number): number {\n if (depth == undefined)\n d...
typescript
edit
0
2
mit
049e3e9e1394508807004a8e401e826a78fbdd32
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/search.ts
rejected_duplicate
Near-duplicate of sample 114523
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as firebase from \"firebase\";\n\nconst projectId = process.env.REACT_APP_FIREBASE_PROJECT_ID;\n\nexport function initialize(): void {\n firebase.initializeApp({\n apiKey: process.env.REACT_APP_FIREBASE_API_KEY,\n ...
typescript
edit
0
1
mit
1626e7253c64dd751fa73d1e7344d1819857774f
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/lib/firebase.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nnamespace HawtioKeycloak {\n\n const TOKEN_UPDATE_INTERVAL = 5; // 5 sec.\n\n export class KeycloakService {\n\n constructor(\n public readonly enabled: boolean,\n public readonly keycloak: Keycloak.KeycloakInstance) {\n ...
typescript
edit
0
3
apache-2.0
caf0285970bb23f9912fb96f63c06b551d4dbeec
hawtio/hawtio-oauth,hawtio/hawtio-oauth,hawtio/hawtio-oauth
plugins/keycloak/keycloak.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Validators, FormBuilder, FormGroup } from '@angular/forms';\n\n\n\n@Component({\n selector: 'page-login',\n templateUrl: 'login.html'\n})\nexport class LoginPage {\n\n loginForm: F...
typescript
edit
0
1
mit
fdab34aa2d3c9163d7a766242ceddd511797a76a
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
src/pages/login/login.ts
rejected_duplicate
Near-duplicate of sample 114005
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport { runTests } from 'vscode-test';\n\n(async function main() {\n // The folder containing the Extension Manifest package.json\n // Passed to `--extensionDevelopmentPath`\n const extensionDeve...
typescript
edit
0
1
mit
2c159fa94d59a3790ce658a388609bedfb791f34
esbenp/prettier-vscode
src/test/runTests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport function deprecatedClass(message: string): ClassDecorator;\nexport function deprecatedClass<T>(target: T, key: PropertyKey): void;\n/**\n * Logs a deprecation warning for the decorated class if\n * an instance is created\n * @par...
typescript
edit
0
2
mit
6f9c6681f635adb83561eef439b9bf420d3d4a25
zajrik/yamdbf,zajrik/yamdbf
src/util/DeprecatedClassDecorator.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport BigInteger = require('bigi');\n\nconst b1 = BigInteger.fromHex(\"188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012\");\nconst b2 = BigInteger.fromHex(\"07192B95FFC8DA78631011ED6B24CDD573F977A11E794811\");\n\nconst b3 = b1.multiply...
typescript
edit
0
0
mit
0eb9a227403ee4430624fbb7fe16b13941e4586e
rolandzwaga/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,rolandzwaga/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTy...
types/bigi/bigi-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { JovoRequest, JovoSession, EntityMap, UnknownObject } from '..';\nimport { Intent } from '../interfaces';\nimport { AudioInput, InputType } from '../JovoInput';\n\nexport class TestRequest extends JovoRequest {\n isTestRequest ...
typescript
edit
0
1
apache-2.0
ec13de1119d5fdcc19f02e936317d6c2ad220ee1
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
framework/src/testsuite/TestRequest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Routes, RouterModule } from '@angular/router';\nimport { Angular2TokenService } from '../angular2-token.service';\n\nimport { A2tUiComponent } from './a2t-ui.component';\nimport { A2tSignInComponent } from './a2t-sign-in/a2t-si...
typescript
edit
0
0
mit
2ece138af6866ccf1fdfa1e14d1e033fab0696ff
fastindian84/angular2-token,Tybot204/angular2-token,neroniaky/angular2-token,chadnaylor/angular2-token-ionic3,neroniaky/angular2-token,chadnaylor/angular2-token-ionic3,Tybot204/angular2-token,fastindian84/angular2-token
src/a2t-ui/a2t-ui.routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from '@angular/core';\n\n@Component({\n selector: 'subscription',\n templateUrl: 'app/subscription/subscription.component.html'\n})\n\nexport class SubscriptionComponent {\n}\n\n```\n\nApply this change: Add mentors...
typescript
edit
0
0
mit
eea137fafb52ff26ac46e5eda5ddc4938c2f5fa9
dhilt/a2-mkdev-sub,dhilt/a2-mkdev-sub,dhilt/a2-mkdev-sub
app/subscription/subscription.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Module } from '@nestjs/common';\nimport { JwtModule } from '@nestjs/jwt';\nimport { PassportModule } from '@nestjs/passport';\nimport { AuthController } from './auth.controller';\nimport { AuthService } from './auth.service';\n...
typescript
edit
0
0
mit
416f710573aa64ddea4200e57e9645a9245577cc
kamilmysliwiec/nest,kamilmysliwiec/nest
sample/19-auth/src/auth/auth.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../reference.ts\" />\n\nmodule Plottable {\n export class AbstractComponentContainer extends Component {\n public _components: Component[] = [];\n public _removeComponent(c: Component) {\n var removeInde...
typescript
edit
0
2
mit
2d60094aa4ba3e0023349e97f5e90237d861f82f
NextTuesday/plottable,onaio/plottable,gdseller/plottable,alyssaq/plottable,palantir/plottable,RobertoMalatesta/plottable,jacqt/plottable,palantir/plottable,danmane/plottable,softwords/plottable,jacqt/plottable,softwords/plottable,NextTuesday/plottable,danmane/plottable,softwords/plottable,alyssaq/plottable,palantir/plo...
src/core/abstractComponentContainer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Constants {\n public static latestExtensionVersion = \"~0.2\";\n public static latest = \"latest\";\n public static extensionVersionAppSettingName = \"FUNCTIONS_EXTENSION_VERSION\";\n}\n\n```\n\nApply this change: ...
typescript
edit
0
0
apache-2.0
b39e81c8cde014b227f8de90c90c32c1d476c9a9
agruning/azure-functions-ux,agruning/azure-functions-ux,chunye/azure-functions-ux,agruning/azure-functions-ux,projectkudu/AzureFunctions,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,projectkudu/AzureFunctions,agruning/azure-functions-ux,chunye/azure-functions-ux,chunye/azure-functions-...
AzureFunctions.Client/app/models/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { StandardPrivateApp } from 'react-components';\nimport { TtagLocaleMap } from 'proton-shared/lib/interfaces/Locale';\nimport {\n UserModel,\n MailSettingsModel,\n UserSettingsModel,\n Doma...
typescript
edit
null
null
mit
e267646ab7fd2abc8821ba5a9e92a5d0669a6193
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/account/src/app/content/PrivateApp.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Vector2 } from \"three\";\n\nexport const textAlign = {\n center: new Vector2(0, 0),\n left: new Vector2(1, 0),\n topLeft: new Vector2(1, -1),\n topRight: new Vector2(-1, -1),\n right: new Vector2(-1, 0),\n bottomLeft: ne...
typescript
edit
0
2
mit
191dcf06ea39bc9f139df64ed642fc82a2ec25d1
gamestdio/three-text2d,gamestdio/three-text2d,gamestdio/three-text2d
src/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {IRouterConfiguration, IRouter} from '../Routing';\nimport {ModuleProvider} from './ModuleProvider';\n\nexport class RouterProvider {\n private static instance: RouterProvider = null;\n\n public readonly ROUTING: string = '...
typescript
edit
0
4
mit
fe493907d803a540a44aac2e75bcafddbd61fb41
vincent-chapron/resonance-js,vincent-chapron/resonance-js,vincent-chapron/resonance-js
src/app/Utils/RouterProvider.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AstDefinition, AstReferences } from \"truffle-decode-utils\";\n\nfunction getDeclarationsForTypes(contracts: AstDefinition[], types: string[]): AstReferences {\n let result: AstReferences = {};\n\n for (let i = 0; i < contrac...
typescript
edit
0
5
mit
8c6d489634c7cf895bafac5621069e518fe369a5
ConsenSys/truffle
packages/truffle-decoder/lib/allocate/general.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Message from './Message'\nimport MessageSendParams from './MessageSendParams'\nimport { VKResponse } from './APIResponses'\n\nexport default interface UserEvent {\n pattern: RegExp,\n listener(msg?: Message, exec?: RegExpExecAr...
typescript
edit
0
0
mit
5aab66e9753d4e0ac4699aa38893a2288ca5f553
vitalyavolyn/node-vk-bot,vitalyavolyn/node-vk-bot
src/interfaces/UserEvent.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\r\n * Trims leading and trailing whitespace and line terminators and replaces all \r\n * characters after character 90 with an ellipsis.\r\n * @param str\r\n */\r\nexport const truncate = (str: string): string => {\r\n const trimme...
typescript
edit
0
2
mit
bdcef01d37ad23add978a6892100c8f3a70eda42
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/formatting.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nrequire('dotenv').config();\n\n/**\n * This is the database configuration for the migrations and\n * the seeders.\n */\nmodule.exports = {\n client: process.env.DB_CLIENT,\n connection: process.env.DB_CONNECTION,\n migrations: ...
typescript
edit
0
0
mit
3d1026cc8d1bfe08b21cbaf7239c3757bb26c53a
w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate,w3tecch/express-typescript-boilerplate
knexfile.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nmodule app.preview {\n import TreeService = app.tree.TreeService;\n import DataschemaService = app.core.dataschema.DataschemaService;\n\n export class PreviewService implements Observer<PreviewUpdateEvent> {\n public sch...
typescript
edit
0
3
mit
9c700ee17e7cf360853ceaeefa557d86a3a3ab3c
FelixThieleTUM/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFormsEditor,eclipsesource/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,pancho111203/JsonFormsEditor,FelixThieleTUM/JsonFormsEditor,pancho111203/JsonFormsEditor,eclipsesource/JsonFo...
app/src/components/preview/preview.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ko from 'knockout'\nimport * as fs from 'fs'\nimport state from '../../state'\n\nclass Run {\n modalActive = ko.observable(false)\n pullEnabled = ko.observable(true)\n\n imageName = ko.observable('')\n tag = ko.observabl...
typescript
edit
0
3
mit
a94928b9e744b839579ba6eb9828bb89d0b36864
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
front/components/images/pull/pull-image-vm.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { _ } from '@biesbjerg/ngx-translate-extract/dist/utils/utils';\nimport { AbstractDevice, ApparatusSensorType, DeviceType } from './abstract-device';\nimport { DeviceParams, DeviceParamsModel, DeviceParamType } from './device-par...
typescript
edit
0
0
apache-2.0
88962b9abec0eb95612d825a1b3e576e47e97348
openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile
src/app/states/devices/device-mock.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\n\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/observable/of';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/catch';\n\...
typescript
edit
0
2
mit
922f5c6030d0f44380395ec88538864fa894b050
kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard,kiswa/TaskBoard
src/app/settings/board-admin/board-admin.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../../foundation.core.htmlclient/foundation.core.d.ts\" />\nmodule Foundation.Test.Implementations {\n @Core.ObjectDependency({\n name: \"AppEvent\"\n })\n export class TestDefaultAngularAppInitial...
typescript
edit
0
2
mit
f7dad3aa39bf5642272c8e2ea41e41a9f35f5277
bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework
Foundation/HtmlClient/Foundation.Test.HtmlClient/Implementations/testDefaultAngularAppInitialization.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { selectAllSequences } from \"../resources/selectors\";\nimport { store } from \"../redux/store\";\nimport { urlFriendly, lastUrlChunk } from \"../util\";\nimport { selectSequence } from \"./actions\";\n// import { push } from \"...
typescript
edit
0
2
mit
31a0197de240f741bbdb012ba7cae9d899250789
RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,RickCarlino/farmbot-w...
webpack/sequences/set_active_sequence_by_name.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nfunction* funcCollection<T>(): IterableIterator<T> { }\n\nfunction funcMapIterator<T, E>(value: T, callback: AsyncResultCallback<T, E>) { }\nfunction funcMapComplete<T, E>(error: E, results: T[]) { }\n\nasync.map(funcCollection(), funcM...
typescript
edit
0
1
mit
44063a39a648f6131aae9fbb66b063474d091c18
mcrawshaw/DefinitelyTyped,benliddicott/DefinitelyTyped,ashwinr/DefinitelyTyped,abbasmhd/DefinitelyTyped,johan-gorter/DefinitelyTyped,zuzusik/DefinitelyTyped,jimthedev/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,QuatroCode/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,zuzusik/DefinitelyTy...
async/test/es6-generators.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport async function waitFor<T>(action: () => T, checkEveryMilliseconds: number, tryForMilliseconds: number, token?: { isCancellationRequested: boolean }): Promise<T | undefined> {\n\tlet timeRemaining = tryForMilliseconds;\n\twhile (t...
typescript
edit
0
5
mit
7822c56d8d623e03682b46a836e68e36d07053ee
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
src/utils/promises.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as PropTypes from 'prop-types';\nimport { AbstractCheckboxProps } from '../checkbox/Checkbox';\nimport Radio from './radio';\nimport { RadioChangeEvent } from './interface';\nimport Wave from '....
typescript
edit
null
null
mit
f99b9ab56e7fb5cc0f678b5c34b33957055750da
ant-design/ant-design,zheeeng/ant-design,zheeeng/ant-design,icaife/ant-design,elevensky/ant-design,elevensky/ant-design,icaife/ant-design,icaife/ant-design,ant-design/ant-design,icaife/ant-design,ant-design/ant-design,zheeeng/ant-design,elevensky/ant-design,zheeeng/ant-design,ant-design/ant-design,elevensky/ant-design
components/radio/radioButton.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\ninterface IProps {\n onSubmit?: React.EventHandler<React.FormEvent<HTMLFormElement>>;\n}\n\nexport class Form extends React.Component<\n IProps & React.HTMLAttributes<HTMLFormElement>,\n any\n> {\n ...
typescript
edit
null
null
unlicense
7d6f79fea30816cfa073227f2567b93fddb4f010
forabi/hollowverse,forabi/hollowverse,forabi/hollowverse,forabi/hollowverse
client/src/components/form.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { camelCase } from './camel-case';\n\nconst cache = {};\nconst testStyle = typeof document !== 'undefined' ? document.createElement('div').style : undefined;\n\n// Get Prefix\n// http://davidwalsh.name/vendor-prefix\nconst prefix...
typescript
edit
0
6
mit
a73a959de35c381b5961fca253688d2b5a60eeae
achimha/ngx-datatable,swimlane/ngx-datatable,achimha/ngx-datatable,achimha/ngx-datatable,swimlane/angular2-data-table,swimlane/angular2-data-table,swimlane/angular2-data-table,swimlane/ngx-datatable,swimlane/ngx-datatable
src/utils/prefixes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n//@ts-ignore\nimport Promise from \"promise-polyfill\";\n\nlet globalWindow = window as any;\n\nif (globalWindow.Promise === undefined)\n{\n globalWindow.Promise = Promise;\n}\n\n```\n\nApply this change: Remove redundant global wind...
typescript
edit
0
0
bsd-3-clause
e0e6771ea123c37d18f405bc17f8f11408cfb59c
Becklyn/mojave,Becklyn/mojave,Becklyn/mojave
polyfill/promise.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.component';\nimport {NavbarComponent} from '....
typescript
edit
0
0
mit
38e771b1c74b0bc426022e84bd867c5fc483d388
UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601-F17/interation-1-drop-table-teams,UMM-CSci...
client/src/app/app.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { MongooseChartDataset } from \"./mongoose-chart-dataset.model\";\nimport { MongooseChartOptions } from \"./mongoose-chart-options\";\n\nexport interface MongooseChart { \nchartOptions: MongooseChartOptions;\nchartLabels: string[...
typescript
edit
0
0
mit
d636ce25841d4f8e6cbf6ff025dc0a37fc3a151a
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
console/src/app/core/models/chart/mongoose-chart.interface.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * searchfile.js\n *\n * encapsulates a file to be searched\n */\n\n\"use strict\";\n\nimport {FileType} from './filetype';\n\nvar path = require('path');\n\nexport class SearchFile {\n containerSeparator: string = '!';\n cont...
typescript
edit
0
3
mit
7a170d51587e478afcd221af25e9dfdcd4900130
clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch
typescript/tssearch/src/searchfile.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Controller, Get } from '@nestjs/common';\nimport {\n ClientProxy,\n ClientProxyFactory,\n MessagePattern,\n Transport,\n} from '@nestjs/microservices';\nimport { Observable } from 'rxjs';\nimport { scan, take } from 'rxjs/o...
typescript
edit
0
1
mit
a56896e7ba7bd3a1f02d11ab7a18c7afb246edac
kamilmysliwiec/nest,kamilmysliwiec/nest
integration/microservices/src/rmq/rmq-broadcast.controller.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Angular 2 decorators and services\n */\nimport {Component, OnInit} from 'angular2/core';\nimport {NgForm, FORM_DIRECTIVES} from 'angular2/common';\n\nimport {BudgetItem} from './budget/budget-item';\nimport {BudgetService} from '...
typescript
edit
0
1
mit
2d4590a5b59dde8ed9881f569ada58de13bd82ab
bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget,bluebirrrrd/ng2-budget
src/app/app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport type {CodeKeywordDefinition, KeywordErrorDefinition} from \"../../types\"\nimport type KeywordCxt from \"../../compile/context\"\nimport {_, str, operators} from \"../../compile/codegen\"\nimport ucs2length from \"../../compile/u...
typescript
edit
0
0
mit
b68927a5338c39f4c6a91e69cfe7f812ea149e00
epoberezkin/ajv,epoberezkin/ajv,epoberezkin/ajv
lib/vocabularies/validation/limitLength.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport function sortByField (array: Array<any>, field: string){\n array.sort((e1, e2) => {\n var a = e1[field];\n var b = e2[field];\n return (a < b) ? -1 : (a > b) ? 1 : 0; \n });\n}\n```\n\nApply this chan...
typescript
edit
0
3
apache-2.0
5a44fa3ec9e275912516787b0a1ddd892b73eeea
proteus-h2020/proteic,proteus-h2020/proteic,proteus-h2020/proteus-charts,proteus-h2020/proteic
src/utils/data/sorting.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Box } from \"@artsy/palette\"\nimport { findCurrentRoute } from \"Artsy/Router/Utils/findCurrentRoute\"\nimport { NavBar } from \"Components/NavBar\"\nimport { isFunction } from \"lodash\"\nimport React, { useEffect } from \"re...
typescript
edit
null
null
mit
968c624ca6be461fcec0d54114e498a7c742f91d
artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction-force
src/Apps/Components/AppShell.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 DisplayName from '../helpers/DisplayName';\nimport { DivAttributes } from '../helpers/types';\nimport { assertValidHtmlId, nextUuid } from '../helpers/uuid';\nimport {\n Consumer as ItemConsume...
typescript
edit
null
null
mit
71ec2062e9da6be08a8ca0bd95237a35884811f5
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/components/AccordionItem.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {useCallback} from 'react'\nimport scrollIntoView from 'scroll-into-view-if-needed'\nimport {useDidUpdate} from './useDidUpdate'\n\nconst SCROLL_OPTIONS = {scrollMode: 'if-needed'} as const\n\n/**\n * A hook to help make sure the...
typescript
edit
0
3
mit
971a34831310af957aa38d2eb78d4f3ecc6b5225
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/form-builder/src/hooks/useScrollIntoViewOnFocusWithin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Map a resource name to a URL.\n *\n * This particular mapping function works in a nodejs context.\n * \n * @param resourceName relative path to the resource from the main src directory.\n * @return a URL which points to the reso...
typescript
edit
0
1
mit
3e84010c4b4fa3016ffaf5afab529aa50fe9575f
sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm
src/resourceloader.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2016 Joe Duffy. All rights reserved.\n\n\"use strict\";\n\nimport * as process from \"process\";\nimport * as util from \"util\";\n\nconst failCode = -227;\nconst failMsg: string = \"A failure has occurred\";\nconst assertM...
typescript
edit
0
2
mit
6540874092e259230083644101cb4e37380ce476
joeduffy/nodets
src/contract/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'angular2-universal-polyfills';\r\nimport 'angular2-universal-patch';\r\nimport 'zone.js';\r\nimport { createServerRenderer, RenderResult } from 'aspnet-prerendering';\r\nimport { enableProdMode } from '@angular/core';\r\nimport ...
typescript
edit
0
1
mit
2f69736cd55d32f53f669df2860dd89d0554f3d1
vbliznikov/colabedit,vbliznikov/colabedit,vbliznikov/colabedit,vbliznikov/colabedit
src/web-editor/ClientApp/boot-server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * An object that contains settings necessary for uploading files using a\n * POST request.\n */\nexport interface IUploadConfig {\n /**\n * Upload URL to send POST request to.\n */\n url: string;\n\n /**\n * Fields to inc...
typescript
edit
0
0
bsd-3-clause
27bdb5b6fd61b6f115cd0441e469b13d57e8d087
nimbis/s3commander,nimbis/s3commander,nimbis/s3commander,nimbis/s3commander
src/common/IUploadConfig.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {getInfoFromString} from \"./../../../main\";\nimport {runFileDefinitionTests} from \"./../../testHelpers\";\n\ndescribe(\"object type tests\", () => {\n const code = `\nlet obj: { myString: string; myOtherType?: Note; myNext:...
typescript
edit
0
1
mit
3d5dcdf1155453c1552cc572972b79e0039ccc0a
dsherret/ts-type-info,dsherret/type-info-ts,dsherret/ts-type-info,dsherret/type-info-ts
src/tests/languageTests/expression/objectTypeTests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (c) 2020 The Polymer Project Authors. All rights reserved. This\n * code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt The complete set of authors may be\n ...
typescript
edit
0
0
bsd-3-clause
2d60e37de2ce1d449614b093aa80f6f99c7a093e
webcomponents/polyfills,webcomponents/polyfills,webcomponents/polyfills
packages/formdata-event/ts_src/environment/event.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Title } from '@angular/platform-browser';\nimport { Routes } from \"@angular/router\";\n\nimport { AppRoutingModule } from '../../modules/app/app-routing.module';\nimport { LoginRouti...
typescript
edit
0
3
mit
957a016317fa6aa5ca38b4eb8270fb63f8f30581
inpercima/publicmedia,inpercima/publicmedia,inpercima/publicmedia,inpercima/publicmedia
src/app/components/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport * as models from '../../../shared/models';\n\nexport const ApplicationConditions = ({conditions}: { conditions: models.ApplicationCondition[]}) => {\n return (\n <div>\n <h4...
typescript
edit
null
null
apache-2.0
a7d2fddd0773c4eedf8f94e315fe0e393a950f50
argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd,argoproj/argo-cd
src/app/applications/components/application-conditions/application-conditions.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) 2016 Vadim Macagon\n// MIT License, see LICENSE file for full terms.\n\nimport * as ReactDOM from 'react-dom';\nimport * as React from 'react';\nimport MobxDevToolsComponent from 'mobx-react-devtools';\nimport * as Reac...
typescript
edit
0
1
mit
f225680d5bcaffbbf7f6311f3a5ac0f1db485281
debugworkbench/hydragon,debugworkbench/hydragon,debugworkbench/hydragon
app/tests/src/renderer/reporter/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'source-map-support/register';\r\nimport * as cdk from '@aws-cdk/core';\r\nimport { AppStack } from '../lib/app-stack';\r\nimport { SetupStack } from '../lib/setup-stack'\r\n\r\nconst app = new cdk.App();\r\nconst region = \"us-w...
typescript
edit
0
0
apache-2.0
a97711be44b2c13af2cf728aa173774f6070f3c5
Brightspace/util-api-test-tool,Brightspace/util-api-test-tool,Brightspace/util-api-test-tool
bin/pipeline.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 { useHover } from \"../common/withHover\";\n\nconst PostsItemTooltipWrapper = ({children, post, className}: {\n children?: React....
typescript
edit
null
null
mit
cc97f3cbdfdf6ce90d1860c830bb5fccb06c4e7d
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/components/posts/PostsItemTooltipWrapper.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst { console } = global;\n\nexport const logger = {\n info: (message: any): void => console.log(message),\n warn: (message: any): void => console.warn(message),\n error: (message: any): void => console.error(message),\n};\n\n```\n...
typescript
edit
0
1
mit
f526ad370efc7168e0fcaf5443178079f02f0a65
storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook
lib/client-logger/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport glob from \"glob\";\nimport path from \"path\";\n\nimport Setup from \"../types/Setup\";\n\nexport default (...patterns: Array<string>) => (setup: Setup) => {\n setup.testFilePaths = patterns\n .reduce(\n (paths, pattern...
typescript
edit
0
1
mit
109fde296dc1a6ad777b984f391525845ae73302
testingrequired/tf,testingrequired/tf
src/middlewear/matchTestFiles.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { join } from 'path';\nimport * as Constants from './constants';\nimport * as sourceMaps from './source-maps';\nimport * as helpers from './helpers';\n\ndescribe('source maps', () => {\n describe('purgeSourceMapsIfNeeded', () =>...
typescript
edit
0
1
mit
4cb85a0f3664202c3fff8b48758e2d3709f6eef0
driftyco/ionic-app-scripts,driftyco/ionic-app-scripts,driftyco/ionic-app-scripts
src/util/source-maps.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { APIModule } from './base'\nimport { camel, snake } from './converters'\nimport { Message, MessageOptions } from '../types'\nimport * as messageFormat from '../helpers/formatters/message'\n\nexport class Chat extends APIModule {...
typescript
edit
0
1
apache-2.0
dbbbd47ca320d398465185d583dc2af22cfe4ce2
dempfi/xene
packages/slack/src/api/chat.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nlet oneNoteWebClipperInstallMarker = \"oneNoteWebClipperIsInstalledOnThisBrowser\";\nlet marker = document.createElement(\"DIV\");\nmarker.id = oneNoteWebClipperInstallMarker;\nmarker.style.display = \"none\";\n\nif (document.body) {\n\...
typescript
edit
0
0
mit
a79c2f38459be420cd7c73733cc57579f062ce5f
larsendaniel/WebClipper,OneNoteDev/WebClipper,larsendaniel/WebClipper,OneNoteDev/WebClipper,larsendaniel/WebClipper,OneNoteDev/WebClipper
src/scripts/extensions/appendIsInstalledMarker.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2019 Balena Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n...
typescript
edit
0
5
apache-2.0
3387f8f656c8212bdd82f7599af46c38532313d9
resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli,resin-io/resin-cli
lib/actions/help_ts.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst languageConfiguration = {\n\tindentationRules: {\n\t\tincreaseIndentPattern: /^(\\s*(module|class|((private|protected)\\s+)?def|unless|if|else|elsif|case|when|begin|rescue|ensure|for|while|until|(?=.*?\\b(do|begin|case|if|unless)\...
typescript
edit
0
0
mit
c0a9df7f76d3d90ecf8cac71225936462356d4d5
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
src/languageConfiguration.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ReactNode, useContext } from 'react';\n\nimport { classnames } from '../../helpers';\nimport { ModalTwo, ModalProps, ModalTwoContent, ModalTwoFooter, ModalContext } from '../modalTwo';\nimport './AlertModal.scss';\n\nconst Aler...
typescript
edit
null
null
mit
273e020c2876af3dfeb7e7382edc54508fccdab3
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/alertModal/AlertModal.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { UserModel } from 'proton-shared/lib/interfaces';\n\nimport PmMePanel from './PmMePanel';\n\ninterface Props {\n user: UserModel;\n}\n\nconst PmMeSection = ({ user }: Props) => {\n if (!user.can...
typescript
edit
null
null
mit
67febf8145ea00c9a71938979d1bfa67c0377fe4
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/addresses/PmMeSection.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n combineReducers,\n createStore,\n applyMiddleware,\n compose,\n Action\n} from \"redux\";\nimport { createEpicMiddleware, combineEpics } from \"redux-observable\";\nimport { AppState } from \"@nteract/core\";\nimport {\n...
typescript
edit
0
1
bsd-3-clause
3680f688ca556bce7ab0b1dcbb0f0c9fecd8be3c
nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition
applications/jupyter-extension/nteract_on_jupyter/app/store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\ntype AccordionProps = React.HTMLAttributes<HTMLDivElement> & {\n accordion: boolean;\n};\n\nconst Accordion = ({ accordion, ...rest }: AccordionProps): JSX.Element => {\n const role = accordion ?...
typescript
edit
null
null
mit
c26f113b52108351f40ffd2caef63bbcc6118ea5
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/Accordion/Accordion.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { error } from \"./loggers\"\nimport { RequestHandler } from \"express\"\n\nexport const nameOldEigenQueries: RequestHandler = (req, _res, next) => {\n const agent = req.headers[\"user-agent\"]\n if (agent && agent.includes(\"E...
typescript
edit
0
8
mit
6a2cd92ca25805200c50fa229a550dbf8035d240
mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1,artsy/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1
src/lib/nameOldEigenQueries.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport assert from 'assert';\n\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction twitterLink(\n url: string,\n { title, via, hashtags = [] }: { title?: s...
typescript
edit
0
2
mit
af6b0209034ec3328a5c771a8e83d0476875f687
nygardk/react-share,nygardk/react-share
src/TwitterShareButton.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport puppeteer from 'puppeteer';\nimport * as xmlrpc from 'xmlrpc';\nimport { Bot } from './bot';\nimport { Doku } from './doku';\nimport { onExit } from './on_exit';\nimport { Renderer } from './render';\n\n// Used by our .service in...
typescript
edit
0
2
mit
85c128d8f4cbc4f092a52f2c847dcd03139a315a
dotdoom/comicsbot,dotdoom/comicsbot
src/server.ts
rejected_duplicate
Near-duplicate of sample 113178
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from 'fs';\n\nconst PouchDB = require('pouchdb');\nconst replicationStream = require('pouchdb-replication-stream');\nconst MemoryStream = require('memorystream');\n\n\n/**\n * @author Daniel de Oliveira\n **/\nexport modu...
typescript
edit
0
3
apache-2.0
bfd0b037bbbd0a8d41b6360b21f6fb8462f31201
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/components/backup/backup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nexport function uniqueFilterFnGenerator<T>(): (v: T) => boolean;\nexport function uniqueFilterFnGenerator<T, U>(extractFn: (v: T) => U): (v: T) => boolean;\nexport function uniqueFilterFnGenerator<T>(extractFn?: (v: T) => T): (v: T) =...
typescript
edit
0
2
mit
d25dbb4e6637cf057bb3e34fb053eb43cc98f45c
Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell,Jason3S/cspell
src/util/util.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Revert \"chore: remove redundant module.exports assignment\"\n\nClose #895" }, { "role": "assistant", "content": "// eslint-disable-next-line import/no-extraneous-dependencies\nimport interact from '@interactjs/interactjs/ind...
typescript
new_file
0
0
mit
c807aa00dda3b61ad536db12f156b54a6a53388d
taye/interact.js,taye/interact.js,taye/interact.js
packages/interactjs/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TextConsumer } from '../../TextConsumption/TextConsumer'\nimport { HeadingNode } from '../../SyntaxNodes/HeadingNode'\nimport { ParseArgs, OnParse, Parser } from '../Parser'\nimport { streakOf, dottedStreakOf, either, NON_BLANK...
typescript
edit
0
3
mit
fc01f90a2f0fad8f947c581c4472b46a41f4f517
start/up,start/up
src/Parsing/Outline/GetHeadingParser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as glob from 'glob';\r\n\r\nexport default function validate() {\r\n let files = glob.sync('src/**/*.ts');\r\n files.forEach(file => {\r\n console.log(file);\r\n });\r\n}\r\n\n```\n\nApply this change: Resolve e...
typescript
edit
0
2
mit
a404c32864f378d238314308685017c92400a6eb
smikula/good-fences,smikula/good-fences
src/validate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { options, render } from 'preact';\n\nconst mapDom = new WeakMap();\nconst mapNodeName = new WeakMap();\nlet oldVnode;\n\nfunction generateUniqueName(prefix) {\n let suffix = 0;\n while (customElements.get(prefix + suffix)) ++s...
typescript
edit
0
4
mit
75e65863c61a2bd4d4e7f7a9a3485e5740288cca
skatejs/skatejs,skatejs/skatejs,skatejs/skatejs
packages/renderer-preact/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { MutableRefObject } from 'react'\nimport { observer } from 'mobx-react'\nimport { useStore } from './StoreContext'\nimport { Input, InputAdornment } from '@material-ui/core'\nimport CloseButton from './CloseButton'\n\nexp...
typescript
edit
null
null
mit
28a95f882e6da0758945e4cfc5554adf067dd651
xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2,xcv58/Tab-Manager-v2
src/js/components/Search.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { DialogContent } from '../dialog'\nimport { TextArea } from '../lib/text-area'\nimport { LinkButton } from '../lib/link-button'\nimport { Ref } from '../lib/ref'\n\ninterface IGitIgnoreProps {\n ...
typescript
edit
null
null
mit
037ba167a5b9b12233df14efecb31e66798b4caf
j-f1/forked-desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,desktop/desktop,say25/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kac...
app/src/ui/repository-settings/git-ignore.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Request} from 'express';\nimport {HookableComponent, HookableModels} from '../hookable';\nimport {DependencyInjectorComponent} from '../dependency-injector';\nimport {User} ...
typescript
edit
0
1
mit
9dd2619ffd6628164e8b32752f63f85457b08645
MedSolve/ords-fhir
src/components/auth/auth.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport default function SearchBox({\n text,\n onChange,\n}: {\n text: string;\n onChange: (text: string) => void;\n}) {\n return (\n <div>\n <style jsx={true}>{`\n .search_input {\n width: 100%;\n o...
typescript
edit
null
null
apache-2.0
5dda9601f72d99b05438aa3ea11ddddb2ff64e15
thenickreynolds/popcorngif,thenickreynolds/popcorngif
app/components/searchBox.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nimport \"./style/Button.css\";\n\ninterface IProps {\n className?: string;\n onClick?: () => void;\n onMouseOver?: () => void;\n onMouseOut?: () => void;\n style?: object;\n type?: ...
typescript
edit
null
null
mit
fb0cf55456c142671a8f4603e5ed4e3cc534f1e5
raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d
app/src/component/Button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {h, VNode} from '@cycle/dom';\n\nconst hyperx = require(`hyperx`);\n\n/**\n * Returns a {@code VNode} tree representing the given HTML string.\n *\n * This is but a wrapper around hyperx to adjust its attrs for snabbdom, where sn...
typescript
edit
0
4
isc
54ebfd364a012e72f48897fa699070848bacabb2
whymarrh/hypercycle
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from \"@angular/core\";\nimport log from \"loglevel\";\nimport { ErrorService } from \"../../core/errorhandler/error.service\";\nimport { ConfigService } from \"../../shared/services/config.service\";\nimpor...
typescript
edit
0
3
mit
eee321516ee05678ec4c57b2515d05a7a7b6a508
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
src/app/views/accessibility/accessibility.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { observe } from \"mobx\"\nimport { isNotNull } from \"../../common/helpers/array\"\nimport { resetSelection } from \"../actions\"\nimport MIDIOutput from \"../services/MIDIOutput\"\nimport RootStore from \"./RootStore\"\n\nexpor...
typescript
edit
0
2
mit
9d54e5312484b270b245adcb992e84a462976d3c
ryohey/signal,ryohey/signal,ryohey/signal
src/main/stores/reactions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input } from '@angular/core';\n\nimport { App } from '../../shared/app.model';\n@Component({\n selector: 'store-app-details-install-instructions',\n templateUrl: './app-details-install-instructions.componen...
typescript
edit
0
1
apache-2.0
5772cfdb7f1d68987dbde03eca8ec6ba2df8f830
jgarciao/linux-store-frontend,jgarciao/linux-store-frontend,jgarciao/linux-store-frontend
src/app/shared/app-details-install-instructions/app-details-install-instructions.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect, test } from '@playwright/test'\n\ntest('logging in with an existing account', async ({ page }) => {\n await page.goto('/login')\n await page.fill('input[name=\"username\"]', 'admin')\n await page.fill('input[name=\"p...
typescript
edit
0
1
mit
cea1d5f8c536f02c2d7b4100838fd20df85dca38
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
integration/tests/login.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Polygon} from './Polygon';\n\nexport class Candidate {\n candName: string;\n color: number;\n polygons: Polygon[];\n\n constructor(candName: string, color: number) {\n this.candName = candName;\n this.color = color;\n ...
typescript
edit
0
1
apache-2.0
69c894c8bf7d1772086a89e9fb45ca5055382137
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
step-release-vis/src/app/models/Candidate.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"fourslash.ts\" />\n\n// @allowJs: true\n// @checkJs: true\n\n// @Filename: /lib.js\n////class Base { }\n////export default Base;\n\n// @Filename: /test.js\n////[|class Derived extends Base { }|]\n\ngoTo.file(\"/tes...
typescript
edit
0
0
apache-2.0
b07797cc97b81652027b7e2606886090ab085c3f
microsoft/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,kitsonk/TypeScript,kitsonk/TypeScript,RyanCavanaugh/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,minestarks/TypeScript,RyanCavanaugh/TypeScript,kpreisser/TypeScript,alexeagle/TypeScript,Micros...
tests/cases/fourslash/importNameCodeFixDefaultExport2.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../core/migraterList\" />\n\nnamespace YJMCNT.Config.DB {\n export const name = 'counter';\n export const version = 0;\n export const READONLY = \"readonry\";\n export const READWRITE = \"readwrite\";\n...
typescript
edit
0
1
mit
b36f994d0110df0db09c2a66a932a0c6b155c131
yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter
src/ts/config/db.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {AttributesMetadata} from \"../metadata/AttributesMetadata\";\nimport {Type} from \"../utils/types\";\nimport {isPresent} from \"../utils/core\";\nimport {GraphEntity} from \"../model\";\nimport {ExtensionsRowMapper} from \"./Ext...
typescript
edit
0
3
mit
aa6a655de7e18e7d5987728510a66c7c32290f3e
robak86/neography
lib/mappers/AttributesMapper.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport webpack, { Configuration } from 'webpack'\nimport WebpackDevServer from 'webpack-dev-server'\nimport merge from 'webpack-merge'\nimport { StyleguidistConfig } from '../types/StyleGuide'\nimport makeWebpackConfig from './make-webp...
typescript
edit
0
3
mit
20696ad508d97efe1e85add6704ad05154ebf359
vue-styleguidist/vue-styleguidist,vue-styleguidist/vue-styleguidist,vue-styleguidist/vue-styleguidist,vue-styleguidist/vue-styleguidist
packages/vue-styleguidist/src/scripts/create-server.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport { addons, types } from '@storybook/addons';\nimport { ADDON_ID, PANEL_ID } from './constants';\nimport { Panel } from './panel';\n\naddons.register(ADDON_ID, () => {\n addons.add('placeholder', {\n ...
typescript
edit
null
null
mit
276c2466b24b24a57433febee7edc7dc1ac07a10
storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook
dev-kits/addon-roundtrip/src/register.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { garamond } from \"Assets/Fonts\"\nimport { Truncator } from \"Components/Truncator\"\nimport React from \"react\"\nimport Markdown from \"react-markdown\"\nimport styled from \"styled-components\"\n\ninterface Props {\n text: ...
typescript
edit
null
null
mit
7999b286227ec4561bdb1e3a24546275d81e5c99
artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction-force,artsy/reaction
src/Components/Publishing/ToolTip/Components/Description.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FieldProcessorAdt, FieldSchema, ValueSchema } from '@ephox/boulder';\nimport { Result } from '@ephox/katamari';\n\nimport { FormComponent, FormComponentApi, formComponentFields } from './FormComponent';\n\nexport interface Coll...
typescript
edit
0
1
mit
5f6c1d8c5f43cfe930246d1c6645dd8f0bf7366c
tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce,FernCreek/tinymce,tinymce/tinymce,tinymce/tinymce,FernCreek/tinymce,TeamupCom/tinymce
src/main/ts/ephox/bridge/components/dialog/Collection.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { graphql, GraphQLSchema } from \"graphql\";\nimport { schema } from \"truffle-db/data\";\n\nimport { Workspace } from \"truffle-db/workspace\";\n\ninterface IConfig {\n contracts_build_directory: string,\n working_directory?: ...
typescript
edit
0
2
mit
3fd6edb593445334d46d851e1ed8a1c5adfbdab1
ConsenSys/truffle
packages/truffle-db/src/db.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { useActiveBreakpoint } from '../../index';\n\ninterface Props {\n children: React.ReactNode;\n}\nconst MobileNavServices = ({ children }: Props) => {\n const { isNarrow } = useActiveBreakpoint()...
typescript
edit
null
null
mit
804508809970220a26da9164321f03701bb164e7
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/sidebar/MobileNavServices.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.\n// See LICENSE.txt for license information.\n\nimport {Keyboard} from 'react-native';\nimport {OptionsModalPresentationStyle} from 'react-native-navigation';\n\nimport...
typescript
edit
0
2
apache-2.0
b4e0304f2fbd5c0c63d201b5f8976cd198140773
mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile,mattermost/mattermost-mobile
app/utils/permalink/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as query from 'dojo/query';\n\n/* An example of working with query and NodeLists */\n\n/* Querying all the nodes of the current document. The will default to the node\n list being an array of Nodes */\nconst results = query('...
typescript
edit
0
1
bsd-3-clause
3023d8a2bfb99795cf2acbe0689ac20f7f840321
ca0v/typings,ca0v/typings
examples/query/src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as angular from 'angular';\n\nimport {FileComponent} from './file/FileComponent';\nimport {FolderComponent} from './folder/FolderComponent';\nimport {BucketComponent} from './bucket/BucketComponent';\n\nimport './index.css';\n\...
typescript
edit
0
1
bsd-3-clause
3316539f75be2251a95afc0a6c5b9d4df470f8ce
nimbis/s3commander,nimbis/s3commander,nimbis/s3commander,nimbis/s3commander
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\n\nexport interface LocaleReceiverProps {\n componentName: string;\n defaultLocale: object | Function;\n children: (locale, localeCode?) => React.ReactElement<any>;...
typescript
edit
0
3
mit
bcbdd12ce1b2ddf7a54ce57e38dc9a3f35353d65
icaife/ant-design,RaoHai/ant-design,RaoHai/ant-design,elevensky/ant-design,RaoHai/ant-design,ant-design/ant-design,elevensky/ant-design,havefive/ant-design,zheeeng/ant-design,icaife/ant-design,zheeeng/ant-design,havefive/ant-design,icaife/ant-design,zheeeng/ant-design,ant-design/ant-design,elevensky/ant-design,icaife/a...
components/locale-provider/LocaleReceiver.tsx
accepted
null
true