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 social = require('../interfaces/social');\n\nexport var NETWORK_OPTIONS :{[name:string]:social.NetworkOptions} = {\n 'Google': { // Old GTalk XMPP provider, being deprecated.\n displayName: 'Google Hangouts',\n isFirebase...
typescript
edit
0
0
apache-2.0
3e3606ef0ada52d6d332354041007772afba6964
uProxy/uproxy,uProxy/uproxy,jpevarnek/uproxy,jpevarnek/uproxy,jpevarnek/uproxy,jpevarnek/uproxy,uProxy/uproxy,jpevarnek/uproxy,uProxy/uproxy,uProxy/uproxy
src/generic/network-options.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Enum for the kind of map\nexport type MapType = City | Square;\ninterface City { kind: \"city\"; }\ninterface Square { kind: \"square\"; }\n\n// Map class\nexport class Map {\n constructor(\n private id?: number,\n private tit...
typescript
edit
0
1
mit
8b23cec9b5bdc94ed7e02412b42080b7a0f884df
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
app/core/map.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { assert } from './assert';\nimport { deprecate } from './deprecate';\nimport { uuid } from '@orbit/utils';\n\ndeclare const self: any;\ndeclare const global: any;\n\nexport interface OrbitGlobal {\n globals: any;\n assert: (de...
typescript
edit
0
1
mit
0535d1cde172f579e1326d1dedfda37284a22f0e
orbitjs/orbit.js,orbitjs/orbit.js
packages/@orbit/core/src/main.ts
rejected_duplicate
Near-duplicate of sample 113792
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport RoutingServer from './routingserver';\n\nexport interface ConfigServer {\n listenPort: number;\n routingServers: RoutingServer[];\n}\n\nexport interface ConfigOptions {\n fakeVersion: boolean;\n fakeVersionNum: number;\n blo...
typescript
edit
0
0
mit
705e948a1e8abe1e69fb34ff52785c7f8bd629f9
popstarfreas/Dimensions,popstarfreas/Dimensions,popstarfreas/Dimensions
configloader.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport artyomjs = require('artyom.js');\n\n\n@Injectable()\nexport class VoiceService {\n\n private voiceProvider: IVoiceProvider = new ArtyomProvider();\n\n constructor() { }\n\n public s...
typescript
edit
0
1
mit
10699f14ad50ad04ea6aed9a959153a8acb989fd
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
app/touchpad/voice.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { } from 'jest';\nimport { } from 'node';\nimport runJest from '../__helpers__/runJest';\n\ndescribe('import with relative and absolute paths', () => {\n\n it('should run successfully', () => {\n\n const result = runJes...
typescript
edit
0
1
mit
99db9bdfb159f93688e57722eb3876f12fa96367
kulshekhar/ts-jest,kulshekhar/ts-jest
tests/__tests__/import.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (c) 2019 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may b...
typescript
edit
0
3
bsd-3-clause
e087422b47a9e1836366df4b6701d3154943d9b0
Polymer/koa-node-resolve
src/support/path-utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AssumeArmorMasterwork, LockArmorEnergyType } from '@destinyitemmanager/dim-api-types';\nimport { DimItem } from 'app/inventory/item-types';\nimport { ArmorEnergyRules } from 'app/loadout-builder/types';\n\n/** Gets the max ener...
typescript
edit
0
6
mit
c5d98f9f95bfd779bbc936655583dbab613c6991
DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM
src/app/loadout/armor-upgrade-utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for react-inlinesvg 0.8.3\n// Project: https://github.com/gilbarbara/react-inlinesvg#readme\n// Definitions by: MyCrypto <https://github.com/MyCryptoHQ>, Nick <https://github.com/nickmccurdy>\n// Definitions: https:/...
typescript
edit
0
0
mit
af911f7e4abf8777c85453d6f5680bba9ed53213
borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped
types/react-inlinesvg/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {createSelector} from 'reselect'\nimport uniqWith from 'lodash-es/uniqWith'\nimport * as moment from 'moment'\nimport {availableTimeSelector} from './available-time'\nimport {IDropdownOptions, IRootState} from '../types'\n\nexpor...
typescript
edit
0
1
mit
0a97097d862af24a9c2c834391fea70234a54082
jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend,jsse-2017-ph23/web-frontend
src/selectors/available-hours.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';\n\nimport { ElasticsearchReindexService } from './elasticsearch-reindex.service';\n\n@Component({\n selector: 'jhi-elasticsearch...
typescript
edit
0
1
apache-2.0
ed55b8bff43d9765bd0d4d92df66bda0f53be155
pascalgrimaud/qualitoast,pascalgrimaud/qualitoast,pascalgrimaud/qualitoast,pascalgrimaud/qualitoast,pascalgrimaud/qualitoast
src/main/webapp/app/admin/elasticsearch-reindex/elasticsearch-reindex-modal.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\n\nimport ButtonLike, { ButtonLikeProps } from './ButtonLike';\n\nexport interface ButtonProps extends Omit<ButtonLikeProps<'button'>, 'as' | 'ref'> {}\n\nconst Button = (props: ButtonProps, ref: React.Ref<HTM...
typescript
edit
null
null
mit
5a2890e09a74f4e4f1b62b626db150a83d9a304c
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/components/button/Button.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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
5e33a23cf9b0758a21b428e9bb1d5d63cb048366
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 { transition, trigger, style, state, animate } from '@angular/animations';\n\nexport const slideIn = trigger('slideIn', [\n state('*', style({\n opacity: 1,\n transform: 'scaleY(1)'\n })),\n state('void', style({\n op...
typescript
edit
0
0
mit
d80d1fdbb3b2321dada90609313e61997ebc243f
bluecaret/carettab,bluecaret/carettab,bluecaret/carettab
src/app/_shared/animations.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { MdDialog } from '@angular/material';\n\nimport { CreateChallengeDialog, SelectTrainingPathDialog } from './../dialogs';\nimport { Us...
typescript
edit
0
2
mit
301cacc736cc933f26e08f7abb4051796cb2ae1f
semagarcia/javascript-kata-player,semagarcia/javascript-kata-player,semagarcia/javascript-kata-player
src/app/home/home.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport const latestVersi...
typescript
edit
0
0
mit
a8c86a32e051d62ea10fbc39b2f50342d3bead7c
DevIntent/angular-cli,geofffilippi/angular-cli,geofffilippi/angular-cli,Brocco/angular-cli,angular/angular-cli,geofffilippi/angular-cli,clydin/angular-cli,DevIntent/angular-cli,angular/angular-cli,Brocco/angular-cli,clydin/angular-cli,filipesilva/angular-cli,clydin/angular-cli,angular/angular-cli,geofffilippi/angular-c...
packages/schematics/angular/utility/latest-versions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class OnboardingTutorial {\n public constructor() {\n this.skipInstallEditor = false\n this.skipCreatePR = false\n }\n\n getCurrentStep() {\n // call all other methods to check where we're at\n }\n\n isEditorInstall...
typescript
edit
null
null
mit
f4f99e96d7b57c431c7538d31b04c2b358128815
j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-de...
app/src/lib/stores/helpers/onboarding-tutorial.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*!\n * Leaflet Geocoder Component\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { Map, Control } from 'leaflet';\nimport { ...
typescript
edit
0
2
mit
dc8cd68cfa37b201ea850076bcad162f530ba885
ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2
src/app/leaflet-geocoder/leaflet-geocoder.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Webdriver } from 'mugshot';\nimport { Page } from 'puppeteer';\n\n/**\n * Webdriver adapter over [Puppeteer](https://github.com/puppeteer/puppeteer)\n * to be used with [[WebdriverScreenshotter]].\n *\n * @see https://github.co...
typescript
edit
0
3
mit
51f3679642a5ec3803a284ed68f612ffa49d17c6
uberVU/mugshot,uberVU/mugshot
packages/puppeteer/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport function getAssetPath(url: string | undefined): string | undefined {\n return url;\n}\n\nimport { ICON_ZOOM_OUT_FIXED } from \"../constants/assets\";\n\nlet mRoot = ICON_ZOOM_OUT_FIXED.replace(\"/zoom-out-fixed.png\", \"/../.....
typescript
edit
0
1
mit
f0d63c745c2db8eac5b96b20531097e35c5c798c
jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout,jumpinjackie/mapguide-react-layout
src/utils/asset.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {UserSchema, IUserModel} from \"../../src/server/data/User\";\nimport {GameSchema, IGameModel} from \"../../src/server/data/GameModel\";\nimport mongoose from \"mongoose\";\nimport assert from \"assert\";\n\nconst connectionStrin...
typescript
edit
0
1
mit
584854ea6f36a2eecdd2d6d65fb9a5b9cb3a943f
Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki,Majavapaja/Mursushakki
test/data/User.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { DebugElement } from '@angular/core';\n\nimport { PageNotFoundComponent } from './page-n...
typescript
edit
0
1
mit
b0f8421fe26754fa5ff83ac8ace9b8da91585e5e
pawelec/todo-list,pawelec/todo-list,pawelec/todo-list,pawelec/todo-list
src/app/page-not-found/page-not-found.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\nimport { Frame, FrameExpr, FrameString } from \"../../src/frames\";\nimport { maml } from \"../../src/maml\";\n\ndescribe(\"maml\", () => {\n const text = \"Hello, MAML!\";\n const body = new FrameStr...
typescript
edit
0
1
mit
0863e003d74035ef7fa446a370e97ab17805eaa7
TheSwanFactory/maml,TheSwanFactory/hclang,TheSwanFactory/maml,TheSwanFactory/hclang
test/maml/maml-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { Row, Col } from \"../../ui/index\";\nimport { t } from \"i18next\";\nimport * as moment from \"moment\";\nimport { TaggedDevice } from \"../../resources/tagged_resources\";\n\ninterface LastSe...
typescript
edit
null
null
mit
7fffcc3b634aed0b1c42658c0a7d20917edc0e80
MrChristofferson/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farmbot-w...
src/devices/components/last_seen_widget.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nimport { runTests,downloadAndUnzipVSCode } from 'vscode-test';\n\nasync function main() {\n try {\n var vscodeExecutablePath = await downloadAndUnzipVSCode('1.35.0')\n } catch (err) {\n ...
typescript
edit
0
2
mit
513543f48df8bc300e93d601a0c32327bdf5b6a1
neild3r/vscode-php-docblocker
test/runTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for fastify-static 0.14\n// Project: https://github.com/fastify/fastify-static\n// Definitions by: Leonhard Melzer <https://github.com/leomelzer>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n/...
typescript
edit
0
0
mit
28f195fc5db3c0ba77c2dea6e6d61d53c59e94c4
AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,...
types/fastify-static/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='../typings/tsd.d.ts' />\n\nimport logger = require('../logger');\nimport app = require('../app');\n\nimport https = require('https');\nimport fs = require('fs');\n\nvar options = {\n\tkey: fs.readFileSync('./ssl/ser...
typescript
edit
0
4
mit
938ab93b44981723450d3b49c24901418c7463df
PaperJamTeam/bibliothek,PaperJamTeam/bibliothek
bin/www.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { CSSProperties } from 'react';\nimport { Card, Container, Row, Col } from 'react-bootstrap';\nimport { Link } from 'react-router-dom';\nimport CategoryIcon from './CategoryIcon';\n\nexport default ({ document }) => {\n\n ...
typescript
edit
null
null
apache-2.0
15297c47b112d7ffd2c62c1153a811f82118c297
dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web
ui/src/DocumentTeaser.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Copyright 2015 CANAL+ Group\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * h...
typescript
edit
0
3
apache-2.0
1caea30d739e0f38b0da8ec3af3ed1029ec79154
canalplus/rx-player,canalplus/rx-player,canalplus/rx-player,canalplus/rx-player,canalplus/rx-player
src/parsers/manifest/dash/common/get_http_utc-timing_url.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\nCopyright 2021 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n h...
typescript
edit
null
null
apache-2.0
2582f6df238f0f64524027ccad84b0f951778686
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk
test/components/views/settings/FontScalingPanel-test.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport * as fs from 'fs';\n\nexport const rootPath = path.resolve(__dirname, '../../');\nexport const testRootPath = path.resolve(rootPath, 'test');\nexport const stagingPath = path.resolve(testRootPath, '...
typescript
edit
0
2
mit
baaa4e05e239ce710fd2492373d8dad3851a601f
MortenHoustonLudvigsen/ts-css-loader,MortenHoustonLudvigsen/ts-css-loader
test/src/test-utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\n\nimport { IFile } from './file';\nimport { ITag } from '../tag/tag';\nimport { FileService } from './file.service';\nimport { TagService } from '../tag/tag.service';\n\n\n@Component({...
typescript
edit
0
3
mit
a0f07caff4e9647d9aeef9dbd85eab4e2ece8523
waxe/waxe-image,waxe/waxe-image,waxe/waxe-image,waxe/waxe-image,waxe/waxe-image
angular/src/app/file/file-list.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {MstSvt} from \"../../../model/master/Master\";\nimport {MstSkillContainer, MstSvtSkillContainer, MstCombineSkillContainer} from \"../../../model/impl/MstContainer\";\n\nexport interface MstGoal {\n appVer: string;\n svtRaw...
typescript
edit
0
0
mit
d3a04bf69d3aa346f44e24b527e611e17ea56748
agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook,agreatfool/fgo-handbook
src/mobile/lib/model/MstGoal.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BaseApp, HandleRequest, Plugin, PluginConfig } from 'jovo-core';\nimport _merge = require('lodash.merge');\nimport PulseLabsRecorder = require('pulselabs-recorder');\n\nimport { InitOptions } from 'pulselabs-recorder/dist/inter...
typescript
edit
0
3
apache-2.0
30a4fa06756c3065884c8e0243f4f74cd7477668
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
jovo-integrations/jovo-plugin-pulselabs/src/PulseLabs.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport 'colors';\n\ntype LogColor = 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'gray';\n\nexport class Logger {\n private static colors: LogColor[] = Logger.getAvailableColors();\n\n private color: LogColor;\n private...
typescript
edit
0
1
mit
be0c9ac5b18f46c860a8d2b439dc7f92d2cf70d9
ibrahimduran/node-kaptan
src/util/logger.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\nimport { AppComponent } from './app.component';\nimport { CreateFormComponent } from './create-form/create-form.component';\nimport { Mp...
typescript
edit
0
0
apache-2.0
94b28b62489965068555c660a48303c7ac3c7f3e
googleinterns/step18-2020,googleinterns/step18-2020,googleinterns/step18-2020,googleinterns/step18-2020,googleinterns/step18-2020
launchpod/angular-launchpod/src/app/app-routing.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BehaviorSubject } from \"rxjs/BehaviorSubject\";\nimport { Injectable } from \"@angular/core\";\n\nexport enum SessionListMode {\n CLICK_TO_OPEN_HOVER_TO_PREVIEW = \"Click to open, hover to preview\",\n CLICK_TO_OPEN_BUTTON_T...
typescript
edit
0
0
mit
635c9df70eb2ba3f7e936dfce4c8a1a35d25b14c
chipster/chipster-web,chipster/chipster-web,chipster/chipster-web
src/app/shared/services/settings.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n templateUrl: './categoryForm.component.html',\n styleUrls: ['./categoryForm.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class C...
typescript
edit
0
1
mit
dfee963c6198de4e05374eb04f91548b5c848965
ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin,ivanna-ostrovets/language-and-literature-admin
src/components/categoryForm/categoryForm.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Action, Stream, Subscriber, Unsubscribe} from '../index'\n\nexport function Action<T>(): Action<T> {\n let sink: Subscriber<T> = null\n\n const action = ((value: T): void => {\n if (sink) {\n sink(value)\n }\n }) a...
typescript
edit
0
2
mit
8116543f910e2f4e45b5ddc85a3ea4a2ec387037
juhohei/slope
src/create-action.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { getStaticURL } from '@proton/shared/lib/helpers/url';\n\nimport TopBanner from './TopBanner';\nimport { Href } from '../../components';\n\nconst WelcomeV5TopBanner = () => ...
typescript
edit
null
null
mit
8297607d110e0583bffbfc656c39f23423411299
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/topBanners/WelcomeV5TopBanner.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// part:@sanity/base/undo-icon\n\nimport React from 'react'\n\nconst strokeStyle = {\n stroke: 'currentColor',\n strokeWidth: 1.2\n}\n\nconst UndoIcon = () => (\n <svg\n data-sanity-icon\n viewBox=\"0 0 25 25\"\n fill=\"none...
typescript
edit
null
null
mit
84a131c2374f56b24f8f4484a06f6655b768058d
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/base/src/components/icons/Undo.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may b...
typescript
edit
0
3
bsd-3-clause
484835eb2cccd351d8332e7f4a4afddcfab97814
Polymer/tools,Polymer/tools,Polymer/tools,Polymer/tools
src/gitignore.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ILanguageSpecificFormatter } from \"./ILanguageSpecificFormatter\";\nimport * as prettier from \"prettier\";\nimport * as highlight from \"highlight.js\";\n\nexport class JavaScriptFormatter implements ILanguageSpecificFormatte...
typescript
edit
0
1
apache-2.0
d6a3cc661cbc3478910a9e036c9d2a14edf896ba
luhring/opinionator,luhring/opinionator
src/lib/JavaScriptFormatter.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as ko from \"knockout\";\n\nimport { env } from \"./Environment\";\nimport { Metrics } from \"./Utility/Metrics\";\nimport { Store } from \"./Utility/Store\";\n\nexport class LauncherViewModel {\n constructor() {\n co...
typescript
edit
0
4
mit
65eb6747411bb48f314952c1f2b5a61c576d6435
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/LauncherViewModel.ts
rejected_duplicate
Near-duplicate of sample 112639
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Diagnostic } from 'vscode-languageserver';\nimport RuboCop, { IRuboCopResults } from './RuboCop';\n\nexport default class Standard extends RuboCop {\n\tget cmd(): string {\n\t\tif (this.lintConfig.command) {\n\t\t\treturn this....
typescript
edit
0
3
mit
da5abf1829dd19272208fea2066354c70c297711
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
server/src/linters/Standard.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class Context<User = any> {\n state: { [key: string]: any } = {};\n user: User;\n\n constructor(public request) {}\n}\n\n```\n\nApply this change: Add `Request` type to Context." }, { "role": "assistant", "content"...
typescript
edit
0
1
mit
dddfa946969e31a4582401afe2eeb4444605ea2f
FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal
packages/core/src/core/http/contexts.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { SyncPlugin } from '../../src/plugin';\n\nexport class InMemoryPlugin extends SyncPlugin {\n public messages: any[] = [];\n public process(message: any): Promise<any> {\n this.messages.push(message);\n return Promise.res...
typescript
edit
0
1
mit
9d38a12f8a71c8f97aa2b2b91065282a5ed75727
Quantumplation/capillary-logger,Quantumplation/capillary-logger,Quantumplation/capillary-logger
spec/helpers/InMemoryPlugin.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\n\nexport function selectElement<T> (fixture: ComponentFixture<T>, locator: string) {\n return fixture.debugElement.query(By.css...
typescript
edit
0
1
bsd-3-clause
ab03f2109537eb1aecaca59a9a75666ce8aa75a1
cumulous/web,cumulous/web,cumulous/web,cumulous/web
src/testing/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// This module renders an element with an emoji using\n// a non system-default font to workaround an Chrome\n// issue that causes unexpected spacing on emojis.\n// More info:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=111...
typescript
edit
0
0
mit
81416c1cc58f950414528c2f0ded4efe4625d476
shiftkey/desktop,say25/desktop,desktop/desktop,artivilla/desktop,kactus-io/kactus,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,shiftkey/deskt...
app/src/lib/fix-emoji-spacing.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { searchIcon } from 'app/shell/icons';\nimport AppIcon from 'app/shell/icons/AppIcon';\nimport { useIsPhonePortrait } from 'app/shell/selectors';\nimport { isiOSBrowser } from 'app/utils/browsers';\nimport React, { useEffect, use...
typescript
edit
null
null
mit
7613a6df0299779bd5699be3f3e45146fee877d0
DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM
src/app/search/SearchInput.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport '../../test/common-test-setup-karma';\nimport './gr-hovercard-run';\nimport {fixture, html} from '@open-wc/testing-helpers';\nimport {Gr...
typescript
edit
0
1
apache-2.0
2ec4a92b4023230618b083cfa041194e1ec8e6ca
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/elements/checks/gr-hovercard-run_test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* beautify ignore:start */\nimport {\n it,\n inject,\n //injectAsync,\n beforeEachProviders\n //TestComponentBuilder\n} from 'angular2/testing';\nimport {<%=servicenameClass%>Service} from './<%=servicenameFile%>.service...
typescript
edit
null
null
mit
6f26929ed42fae2f686892454e129e4455a49a0b
mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2,mcfly-io/generator-mcfly-ng2
generators/service/templates/_service.spec.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from \"@angular/core\";\nimport { RacePart } from \"../../models/race-part.model\";\nimport { RACE_PARTS } from \"../../models/mocks\";\n\n@Component({\n selector: \"my-app-custom-component\",\n templateUrl: \"./a...
typescript
edit
0
3
mit
fde22ada4105d7ea802df48750256df6e1c7d298
var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training
A2/quickstart/src/app/components/app-custom/app.custom.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport logUpdate = require('log-update')\nimport spinner = require('elegant-spinner')\nimport chalk = require('chalk')\nimport Promise = require('native-or-bluebird')\nimport promiseFinally from 'promise-finally'\n\nexport interface Opt...
typescript
edit
0
3
mit
638fccc534a9611f5a9fd457c1ba4ecfed194e46
typings/typings,typings/typings
src/utils/cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as requestPromise from 'request-promise-native';\nimport { Config, Request, TaxjarError } from '../util/types';\n\nconst proxyError = (result): Promise<never> => {\n throw new TaxjarError(\n result.error.error,\n result....
typescript
edit
0
2
mit
0e558bfc2e5bf94f77a1d81e24975006f88daac4
taxjar/taxjar-node,taxjar/taxjar-node
lib/util/request.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst currencyFormatter = new Intl.NumberFormat('en-US', {\r\n style: 'currency',\r\n currency: 'USD',\r\n minimumFractionDigits: 2\r\n});\r\n\r\nexport const formatAsUsd = currencyFormatter.format;\r\n\r\n/**\r\n * Trims leading and...
typescript
edit
0
2
mit
746748e949a1063a3b86697467d1880784ff2861
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\nimport React from 'react';\nimport { c } from 'ttag';\nimport FullLoader from '../../components/loader/FullLoader';\nimport TextLoader from '../../components/loader/TextLoader';\n\nconst PreviewLoader = () => {\n return (\n <d...
typescript
edit
null
null
mit
b2aad609b1867610729cb854339d8037fc6a89b4
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/filePreview/PreviewLoader.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 { expect, ClientRenderer, sinon, simulate } from 'test-drive-react';\nimport { Heading } from '../../src';\n\ndescribe('<Heading />', () => {\n const clientRenderer = new ClientRenderer();\n ...
typescript
edit
null
null
mit
13c3ba7e471e8ad70d8b01cc5dd4c3a228ebdc26
wix/stylable-components,wix/stylable-components
test/components/heading.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport 'rxjs/add/operator/map';\n\nimport {Configuration} from '../app.constants';\nimport {AuthenticationService} from './authentication.service'\n\n@I...
typescript
edit
0
1
apache-2.0
72129cdcd8d5871db28bbc166c937a6152a083d7
IBMZissou/dbh17-zissou,arner/fabric-boilerplate-ts,arner/fabric-boilerplate-ts,arner/fabric-boilerplate-ts,IBMZissou/dbh17-zissou,arner/fabric-boilerplate-ts,IBMZissou/dbh17-zissou,arner/fabric-boilerplate-ts,IBMZissou/dbh17-zissou,IBMZissou/dbh17-zissou
client/src/app/services/thing.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {SCRIPT_DIR, TEMPLATES_DIR} from \"./Task\";\nimport {DeployTask} from \"./DeployTask\";\nimport {Config} from \"../config\";\nimport {Session, SessionResult, executeScript, copy} from \"../Session\";\n\n\nconst fs = require('fs'...
typescript
edit
0
1
mit
c7804cba05b6533f49677493a81499767eb74da8
c9s/typeloy,c9s/typeloy
src/tasks/UploadTask.ts
rejected_duplicate
Near-duplicate of sample 112804
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path'\nimport * as process from 'process'\nimport * as glob from 'glob'\nimport * as tmpFile from 'tmp'\nimport { runTests } from 'vscode-test'\n\nasync function main() {\n try {\n const extensionDevelop...
typescript
edit
0
5
mit
c188e65391e297b92bb73a6a7fd4027a08eb6576
James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop,James-Yu/LaTeX-Workshop
test/runTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Dispatcher, AppStore, ErrorHandler } from './index'\nimport { SelectionType } from '../app-state'\nimport { GitError } from '../git/core'\nimport { GitError as GitErrorType } from 'git-kitchen-sink'\n\n/** Handle errors by pres...
typescript
edit
0
9
mit
f189d4db3af1ea83f240e2fa7b6964a51dd5c50a
artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,BugTesterTest/desktops,say25/desktop,say25/desktop,gengjiawen/desktop,desktop/desktop,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,hjo...
app/src/lib/dispatcher/error-handlers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass WorksheetViewModel {\n private _subjects: Contract.ISubject[];\n get subjects() { return this._subjects; }\n selectedSubject = ko.observable<Contract.ISubject>();\n\n error = ko.observable();\n\n topLeftColumn = ko...
typescript
edit
0
1
mit
b0853f7ba504e3b757a777a4fd5248c59e98c67d
eggapauli/WorksheetGenerator,eggapauli/WorksheetGenerator
WorksheetGenerator/WorksheetViewModel.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as screenfull from \"screenfull\";\nimport { DOMElement } from \"react\";\n\nconst getWindowTransforms = () => {\n const MAX_WIDTH = 2000;\n const width = Math.max(window.innerWidth, Math.min(MAX_WIDTH, screen.width));\n co...
typescript
edit
0
4
mit
4aeda431d8bc405074e9f3312360577d9c1f2f96
concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models,concord-consortium/building-models
src/code/utils/scale-app.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Store, StoreOptions} from './store';\nimport { AdapterInitializer } from \"./adapter\";\n\nexport * from './store';\nexport * from \"./adapter\";\nexport * from \"./bucket\";\n\nexport async function store(name: string, settings...
typescript
edit
0
1
mit
2474764f605060d0bea2874cb6448dc52d311114
taoyuan/kvs,taoyuan/kvs
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nexport default function Divider({\n prefixCls = 'ant',\n type = 'horizontal',\n className,\n children,\n dashed,\n ...restProps,\n}) {\n const classString =...
typescript
edit
null
null
mit
93fcbdf334c2ed718614ba20e38e72c79450f3aa
icaife/ant-design,havefive/ant-design,elevensky/ant-design,havefive/ant-design,havefive/ant-design,RaoHai/ant-design,ant-design/ant-design,icaife/ant-design,ant-design/ant-design,havefive/ant-design,icaife/ant-design,zheeeng/ant-design,RaoHai/ant-design,elevensky/ant-design,ant-design/ant-design,elevensky/ant-design,zh...
components/divider/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Link } from 'react-router'\nimport * as React from 'react'\n\nimport { List, ListItem } from 'material-ui/List'\nimport Avatar from 'material-ui/Avatar'\nimport Subheader from 'material-ui/Subheader'\n\nimport { RaceListItem } ...
typescript
edit
null
null
mit
3c9b39a54d77cb15135587ed2aae5c8254c8472b
nluo/horse-races,nluo/horse-races,nluo/horse-races
app/components/views/RaceList.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {SequelizeModel} from \"./SequelizeModel\";\nimport {SequelizeDB} from \"../libs/SequelizeDB\";\nimport * as Sequelize from \"sequelize\"\n\n/**\n * @author Humberto Machado\n */\nexport abstract class BaseModel implements Sequel...
typescript
edit
0
1
mit
7ed8ae874c194483ad26f129cf7f5a2f44cfed42
linck/protontype
src/models/BaseModel.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const IndexedStoreMixin = {\n map: {},\n getInitialState: function() {\n return this.map;\n }\n}\n\n```\n\nApply this change: Fix IndexedStoreMixin share same object bug" }, { "role": "assistant", "content": "ex...
typescript
edit
0
1
apache-2.0
d807621bab744af9eef93273b179126f56893bd9
lawrence0819/neptune-front,lawrence0819/neptune-front
src/stores/store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for calq\n// Project: https://calq.io/docs/client/javascript/reference\n// Definitions by: Eirik Hoem <https://github.com/eirikhm>\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\n\ninterface Calq\n{\...
typescript
edit
0
0
mit
60b04cfffea80d3687792e45d1450a1778e6b312
mhegazy/DefinitelyTyped,gcastre/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,Ptival/DefinitelyTyped,benishouga/DefinitelyTyped,martinduparc/DefinitelyTyped,flyfishMT/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,alexdresko/DefinitelyTyped,alexdresko/DefinitelyTyped,chrismbarr/DefinitelyTyped,isman-usoh/...
calq/calq.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as m from 'mithril'\n\nexport function makeMenuItem(title: string, callback: () => void): m.Vnode<any, any> {\n const top = m('li', { onclick: callback }, title);\n return top\n}\n\nexport function makeMenu(\n menuTitl...
typescript
edit
0
1
mit
e2e74d13bfb8e647031d670ab83435122174ba2c
sami-badawi/shapelogic-typescript,sami-badawi/shapelogic-typescript
src/gui/mithril-menu.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Injectable} from 'angular2/core';\nimport {Observable} from 'rxjs/Observable';\nimport {Recipe} from '../../models/recipe';\nimport {AuthApi} from '../auth-api/authentication';\nimport Firebase = require(\"firebase\");\n\nexport...
typescript
edit
0
1
mit
effb92e4f4bc606f659044f3300e4201bb4165cd
bspride/ModernCookbook,bspride/ModernCookbook,bspride/ModernCookbook
src/app/services/api/api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { messages } from '@cucumber/messages'\n\nexport class EnvelopesQuery {\n private envelopes: messages.IEnvelope[] = []\n\n public update(envelope: messages.IEnvelope) {\n this.envelopes.push(envelo...
typescript
edit
0
1
mit
ab49bb2ed4c2744f7457520975d54455d5c06b47
cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber
react/javascript/src/EnvelopesQueryContext.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"fourslash.ts\" />\r\n\r\n////var x = Object.create(/**/\r\n\r\ndiagnostics.setEditValidation(IncrementalEditValidation.None);\r\ngoTo.marker();\r\nverify.not.completionListIsEmpty();\r\nedit.insert(\"nu\");\r\nverif...
typescript
edit
0
0
apache-2.0
cb30eaf8b1653b12333fb2e1c29d6ef901eefcc2
mszczepaniak/TypeScript,thr0w/Thr0wScript,TukekeSoft/TypeScript,abbasmhd/TypeScript,tinganho/TypeScript,hitesh97/TypeScript,jnetterf/typescript-react-jsx,yortus/TypeScript,AbubakerB/TypeScript,yortus/TypeScript,shovon/TypeScript,hitesh97/TypeScript,Microsoft/TypeScript,nagyistoce/TypeScript,mauricionr/TypeScript,chocol...
tests/cases/fourslash/completionEntryForPrimitive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2022 Bjoern Kimminich & the OWASP Juice Shop contributors.\n * SPDX-License-Identifier: MIT\n */\n\nimport glob = require('glob')\nconst path = require('path')\nconst fs = require('fs-extra')\nconst logger = re...
typescript
edit
0
2
mit
11b791fdf621dff35566d727919affeb1c882742
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
lib/startup/cleanupFtpFolder.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nexport type Props = {\n maxHeight?: string | number,\n invisible?: boolean,\n className?: string,\n color: string,\n style?: React.CSSProperties,\n lineSpacing?: string | number\n}\n\nexport defa...
typescript
edit
null
null
mit
76ab9d1c5897e9c6744cef4666d96a737636e1e4
buildo/react-placeholder,buildo/react-placeholder,buildo/react-placeholder
src/placeholders/TextRow.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport type CookieAttributes = object & {\n path?: string\n domain?: string\n expires?: number | Date\n sameSite?: string\n secure?: boolean\n [property: string]: any\n}\n\nexport type ReadConverter = (value: string, name?: string...
typescript
edit
0
0
mit
aabbb695224bb56197ec35983e8513446b9d100d
carhartl/js-cookie,carhartl/js-cookie
types/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { program } from \"commander\";\nimport { version } from \"../package.json\";\n\nprogram.version(version);\n\nconsole.log(\"Hello en3\", version);\n```\n\nApply this change: Remove get-started because we have it on the landing pa...
typescript
edit
0
0
apache-2.0
df1d0f4e8e295c4686d101aca20b0fd3f7b1984f
jimmywarting/Dexie.js,jimmywarting/Dexie.js,jimmywarting/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js
addons/dexie-cloud/bin-src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { isSafari, hasPDFSupport } from 'proton-shared/lib/helpers/browser';\n\nexport const isSupportedImage = (mimeType: string) =>\n [\n 'image/apng',\n 'image/bmp',\n 'image/gif',\n 'image/x-icon',\n ...
typescript
edit
0
2
mit
3639cbc331b651111be3db36d3ed4f1a41c4b247
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/components/containers/filePreview/helpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { BasicFileContainer } from \"./basicFileContainer\";\nimport * as common from \"./common\";\nimport * as utils from \"../common/utils\";\nimport * as view from \"../view/common\";\n\nexport class FileContainer extends BasicFileC...
typescript
edit
0
3
mit
66ab18544481b693a0d35f2d2a19902417f4a835
tht13/gerrit-vscode
src/files/fileContainer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { animated, config, useSpring } from 'react-spring';\n\nconst spring = {\n ...config.stiff,\n clamp: true,\n};\n\n/**\n * A number that animates between values.\n */\nexport default function Animated...
typescript
edit
null
null
mit
570558ed8e93dc62094f5cc0d79ced4861d962d0
DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM,DestinyItemManager/DIM
src/app/dim-ui/AnimatedNumber.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';\n\nlet mavensMateMateExtension;\n\nexport function activate(context: vscode.ExtensionContext) {\n let { MavensMateExtension } = require('./mavensmateExtension');\n mavensMateMateExtension = new Ma...
typescript
edit
0
2
mit
35fe6371d7d94073eb76691c3c841e394f4a6ad8
joeferraro/MavensMate-VisualStudioCode
src/extension.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { ITdDataTableColumn } from '@covalent/core';\n\nimport {AngularFire, FirebaseListObservable} from 'angularfire2';\n\n@Component({\n selector: 'app-projects-management',\n tem...
typescript
edit
0
1
mit
043b22c1537cb1f4eb74e65beefdeb98ffcbbbd6
idee-negocios/idee-dashboard,idee-negocios/idee-dashboard,idee-negocios/idee-dashboard
src/app/admin/projects/projects-management/projects-management.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core'\n\nimport { MonotonicTimeService } from \"./monotonic-time.service\";\n\n@Injectable()\nexport class LocalDataService {\n private _vrEnterTime : number = null; // null if not in VR\n\n const...
typescript
edit
0
2
apache-2.0
6f7e01dab8277a4e1b5e74f2a2734e7b126e7a5a
sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile,sth-larp/deus-mobile
src/services/local-data.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// @filename: input.js\n// @out: output.js\n// @allowJs: true\n\nfunction C() {\n this.m = null;\n}\nC.prototype.m = function() {\n this.nothing();\n}\n\nclass X {\n constructor() {\n this.m = this.m.bind(this);\n ...
typescript
edit
0
1
apache-2.0
72057500b5220b28e637a6a31acb86f4f4273393
erikmcc/TypeScript,microsoft/TypeScript,donaldpipowitch/TypeScript,RyanCavanaugh/TypeScript,mihailik/TypeScript,erikmcc/TypeScript,minestarks/TypeScript,kitsonk/TypeScript,mihailik/TypeScript,SaschaNaz/TypeScript,jwbay/TypeScript,synaptek/TypeScript,weswigham/TypeScript,vilic/TypeScript,jwbay/TypeScript,Microsoft/TypeS...
tests/cases/conformance/salsa/multipleDeclarations.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { PageInterface } from \"../../pages\";\nimport getBaseUrl from \"./getBaseUrl\";\n\nconst getCurrentUrl = (page: PageInterface): string => {\n return `${getBaseUrl()}${page.action}`;\n};\n\nexport default getCurrentUrl;\n\n```\...
typescript
edit
0
1
mit
76b6ae57db813912527a45f2604d72659cb63809
drublic/vc,drublic/vc,drublic/vc
server/data/getCurrentUrl.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {ContainerConfig, Container} from './container';\nimport {Label, LabelConfig} from './label';\nimport {UIInstanceManager} from '../uimanager';\nimport ErrorEvent = bitmovin.player.ErrorEvent;\nimport {TvNoiseCanvas} from './tvnoi...
typescript
edit
0
2
mit
a6b8fa968b9fc7a6517db9219c28f7d78cf56f3b
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
src/ts/components/errormessageoverlay.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nimport {\n waitInMs\n} from './helpers/helpers'\nimport { ChallengeInstruction } from './'\n\nexport const TutorialUnavailableInstruction: Challe...
typescript
edit
0
0
mit
1935123248ddef6a70d7f157ede65dc9f7d8724b
bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop
frontend/src/hacking-instructor/tutorialUnavailable.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// The following line is a workaround for aurelia-fetch-client requiring the type UrlSearchParams\n// to exist in global scope, but that type not being declared in any public @types/* package.\n/// <reference path=\"../../../../node_mod...
typescript
edit
0
1
apache-2.0
03774253eb264b5ba3c79cff87e67d48b2cba102
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
templates/AureliaSpa/ClientApp/app/components/fetchdata/fetchdata.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as http from 'http';\nimport * as querystring from 'querystring';\nimport * as fs from 'fs';\n\n/**\n * Read all the data from an HTTP request.\n */\nexport function body(req: http.IncomingMessage): Promise<string> {\n return ...
typescript
edit
0
2
mit
110adf672f217bf1dd1bfa92eb356dde522c0928
cucapra/opal-bot,cucapra/opal-bot
libweb/webutil.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport \"jquery-sloth-konami\";\n\nexport module sloth {\n function fixSlothCanvas() {\n let slothCanvas: HTMLCanvasElement = <HTMLCanvasElement>$(\"canvas\")[0];\n slothCanvas.height = $(\"#body\").height();\n }\n\n...
typescript
edit
0
1
mit
7afb6f9923ee4741eddab3c561da7cc2f3daa847
crossroads-education/eta-front,crossroads-education/eta-front
static/js/sloth.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport class OnboardingTutorial {\n public constructor() {\n this.skipInstallEditor = false\n this.skipCreatePR = false\n }\n\n getCurrentStep() {\n // call all other methods to check where we're at\n }\n\n isEditorInstall...
typescript
edit
0
2
mit
ea9677a9d9ad6eafcd776ff52e8ffce13b58189c
say25/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,say25/desktop,desktop/desktop...
app/src/lib/stores/helpers/onboarding-tutorial.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference types=\"Cypress\" />\ncontext('Languages', () => {\n\n beforeEach(() => {\n cy.umbracoLogin(Cypress.env('username'), Cypress.env('password'));\n });\n\n it('Add language', () => {\n const name = \"Kyrgyz (Kyrgyzs...
typescript
edit
0
1
mit
52550efc036c3b71ba1f9e2a69687da22b8ed133
umbraco/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,umbraco/Umbraco-CMS,marcemarc/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,robertjf/Umbraco-CMS,KevinJump/Umbraco-CMS,marcemarc/Umbraco-CMS,abjerner/Umbraco-CMS,JimBobSquarePants/Umbraco-CMS,arknu/Umbraco-CMS,KevinJump/Umbraco-CMS,abryukhov/Umbraco-CMS,marcema...
src/Umbraco.Tests.AcceptanceTest/cypress/integration/Settings/languages.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// set test timeout to 10s\njest.setTimeout(10000)\n\nimport 'jest-extended'\nimport 'jest-localstorage-mock'\n\n```\n\nApply this change: Increase Jest timeout to 100s" }, { "role": "assistant", "content": "// set test time...
typescript
edit
0
0
mit
0f91f08664f304091361dc815c8fca5dae78aa31
say25/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/deskt...
app/test/setup-test-framework.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport Select from 'react-select';\nimport { Field } from 'redux-form';\n\nimport { translate } from '@waldur/i18n';\n\nexport const getOptions = () => [\n { value: null, label: translate('All') },\n {...
typescript
edit
null
null
mit
df3849a2c2ecc787fc2e3c6b4f51917e26868cfe
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/customer/AccountingRunningField.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from \"@angular/core\";\nimport { HttpClient, HttpHeaders } from \"@angular/common/http\";\nimport { Constants } from \"src/app/common/constants\";\nimport { Observable } from \"rxjs\";\n\n@Injectable({\n provid...
typescript
edit
0
1
mit
43c15097b32e3338b9b4f003f5945d5c45122c39
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
console/src/app/core/services/container-server/container-server-service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Link, ThemeSwitch, Heading, TwitterFollowButton } from 'src/components'\n\nimport styles from './Header.module.scss'\n\nexport interface Props {\n searchEngineTitle?: string\n title: string\n subtitle?: string\n backButton?...
typescript
edit
null
null
mit
fd6a681228d4fee2777ac843de5a9f237ddaea65
tech-conferences/confs.tech,tech-conferences/confs.tech,tech-conferences/confs.tech
src/components/Header/Header.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// https://github.com/nteract/nteract/issues/389\nimport CodeMirror, { EditorConfiguration, Mode } from \"codemirror\";\n\nimport \"codemirror/mode/meta\";\nimport \"codemirror/mode/python/python\";\n\n// The TypeScript definitions are ...
typescript
edit
0
1
bsd-3-clause
f27c67f0b7c050ecb2190f3533dad45a940f24a9
nteract/composition,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract
packages/editor/src/mode/ipython.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport react = require(\"react\");\n\nimport Explorer = require(\"./components/explorer\");\n\n/**\n * Creates and renders the API Explorer component.\n */\nexport function run(initial_resource?: string, initial_route?: string): void {\...
typescript
edit
0
1
mit
e596e78f6f69878f3aef68d38d790e8e768fa98b
Asana/api-explorer,Asana/api-explorer
src/explorer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from \"path\";\nimport { writeFile } from \"fs\";\nimport { remote } from \"electron\";\nconst { dialog } = remote;\n\nimport { stringifyNotebook } from \"@nteract/commutable\";\n\nimport store from \"./store\";\nexport...
typescript
edit
0
3
mit
fce5f5bd7d81417de0e5a5aae2762ab556a94c06
nteract/hydrogen,nteract/hydrogen
lib/export-notebook.ts
accepted
null
true