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 { validateData } from '../../validator';\n\ntest('invalid', () => {\n expect(() => (validateData as any)()).toThrow();\n expect(() => (validateData as any)({ tag: -1 })).toThrow();\n});\n\n```\n\nApply this change: Add test for...
typescript
edit
0
1
mit
def543422ab87402170135f8684aa2a29b45e284
maxdavidson/structly,maxdavidson/structly
src/__tests__/validator/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nexport function commonPrefix(values: string[]): string {\n if (!values.length) return '';\n const result = values.reduce(pfx);\n return result;\n}\n\nfunction pfx(a: string, b: string): string {\n const s = Math.min(a.leng...
typescript
edit
0
3
mit
6fbb591a90fadf9dd4f72b1f8af1d3250beea606
Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker,Jason-Rev/vscode-spell-checker
packages/client/src/util/commonPrefix.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed } from '@angular/core/testing';\n\nimport { OvApiService } from './ov-api.service';\nimport { HttpClientTestingModule } from '@angular/common/http/testing';\n\ndescribe('OvApiService', () => {\n let service: OvApiSer...
typescript
edit
0
1
mit
9e9eee7f9fdf29875aa9b7def2f68fa19aee4fcf
yktoo/infopi,yktoo/infopi,yktoo/infopi,yktoo/infopi
src/app/_services/ov-api.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { setPublicSettings, getServerSettingsCache, setServerSettingsCache, registeredSettings } from '../../../lib/settingsCache';\nimport { getDatabase } from '../lib/mongoCollection';\n\nexport async function refreshSettingsCaches() ...
typescript
edit
0
4
mit
b296fc3cdf10629f30619a992b133dabc0301f3a
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
packages/lesswrong/platform/express/server/loadDatabaseSettings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Clone, IMerge, Merge } from 'lutils';\n\nexport const merge: IMerge = new Merge({ depth: 100 }).merge;\nexport const clone = new Clone({ depth: 100 }).clone;\nexport const isIterable = (obj) => obj != null && typeof obj[Symbol....
typescript
edit
0
3
mit
744cbd726e2dd1a12d5b2b9b3e505b9834405f27
temando/serverless-openapi-documentation,temando/serverless-openapi-documentation,temando/serverless-openapi-documentation
src/utils.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { MouseEvent } from 'react';\nimport { Icon, useLoading, classnames } from 'react-components';\n\nimport { Element } from '../../models/element';\nimport { isMessage as testIsMessage, isStarred as testIsStarred } from '../...
typescript
edit
null
null
mit
a78575a6c0a496f9aa3ec406a0a6cf9bcf0df582
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/list/ItemStar.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// TODO(andreystar): review the autogenerated config, once the file is actually in use, and we have more insight on the real needs\nimport { AppPage } from './app.po';\nimport { browser, logging } from 'protractor';\n\ndescribe('workspa...
typescript
edit
0
1
apache-2.0
12a2728c29ea88c9253c55477bed0ac0989cc76c
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
step-release-vis/e2e/src/app.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Organization } from '../../../models/organization';\n\nexport class BusinessApi {\n public id: number;\n public legalName: string;\n public commonName: string;\n public mail: string;\n public legalStatus: string;...
typescript
edit
0
10
mit
e8da941703579c30ef59adc2abca60315ab57d7c
XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front
src/app/_services/api/api-models/business-api.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {HardhatRuntimeEnvironment} from \"hardhat/types\"\nimport {DeployFunction} from \"hardhat-deploy/types\"\n\nimport ContractDeployer from \"./deployer\"\n\nconst func: DeployFunction = async function(hre: HardhatRuntimeEnvironmen...
typescript
edit
0
1
mit
84f8bc6bb53c2c4a0aa32b89e7cab4b5c3538053
livepeer/protocol,livepeer/protocol,livepeer/protocol
deploy/deploy_poll.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input, OnInit } from '@angular/core';\n\nimport { DataService } from '../../services/data.service';\nimport { Path } from '../../interfaces/path.interface';\n\n@Component({\n selector: 'app-breadcrumbs',\n template...
typescript
edit
0
2
mit
5379bca95e65167295890d46ce99e0b78af256ef
KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web,KeJSaR/artezian-info-web
src/app/sections/breadcrumbs/breadcrumbs.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed, inject } from '@angular/core/testing';\nimport { ImageService } from './image.service';\n\ndescribe('ImageService', () => {\n beforeEach(() => {\n TestBed.configureTestingModule({\n providers: [ImageService]\n...
typescript
edit
0
1
apache-2.0
d4de7cafa69c527ba27b6aeef486c3179226aa72
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/gallery/image.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Navbar } from 'components/navbar';\nimport { Button } from 'components/button';\nimport { Grid, Column } from 'components/grid';\nimport { Card } from 'components/card';\nimport { Hero } from 'c...
typescript
edit
null
null
mit
4fae8d4ca5ee2976af38fe6c07c5a9962d5afa90
patrick91/pycon,patrick91/pycon
frontend/src/pages/home/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\nCopyright 2019 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n h...
typescript
edit
0
0
apache-2.0
8f003ea6af271ee08a897dd35ffbffa4ccac03e9
matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack
src/IConfig.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as fs from \"fs\"\n\n// Update the CHANGELOG with the new version\n\nconst changelog = fs.readFileSync(\"CHANGELOG.md\", \"utf8\")\nconst newCHANGELOG = changelog.replace(\n \"<!-- Your comment below this -->\",\n `<!-- Your ...
typescript
edit
0
0
mit
585b006577e90fc8056c7b903e6c20ce523d2877
danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js
scripts/update-changelog.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ReactElement, SFC, StatelessComponent } from 'react'\nimport uniqueid from 'uniqueid'\n\nexport interface ISequentialIdProps {\n children: (id: string) => ReactElement<any> | null\n}\n\nexport type SequentialIdComponent = Stat...
typescript
edit
0
1
mit
78c8a7065fbf13c6497916b3c1b2e13e0fdfeb4b
thirdhand/components,thirdhand/components
packages/react-sequential-id/src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { inject } from 'aurelia-framework';\nimport { Router } from 'aurelia-router';\nimport { HackerNewsApi } from '../../services/api';\n\n@inject(Router, HackerNewsApi)\nexport class User {\n user: any;\n\n private readonly ro...
typescript
edit
0
2
isc
d5747cbb8972094759b5a34a3e8e1af593e019e4
michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news,MikeBull94/aurelia-hacker-news,michaelbull/aurelia-hacker-news
src/pages/user/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { OutlineSyntaxNode } from './OutlineSyntaxNode'\n\n\nexport class NsflBlockNode {\n OUTLINE_SYNTAX_NODE(): void { }\n\n constructor(public children: OutlineSyntaxNode[] = []) { }\n\n protected NSFL_BLOCK_NODE(): void { }\n}\n...
typescript
edit
0
1
mit
f0b12a4fab3ea6818910b45feb112675432ba4b5
start/up,start/up
src/SyntaxNodes/NsflBlockNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { WEBPACK_OUTPUT_PATH } from 'serverSettings'\nimport { ENV, WEBPACK_DEV_URL, BAKED_BASE_URL } from 'settings'\nimport * as fs from 'fs-extra'\nimport urljoin = require('url-join')\nimport * as path from 'path'\n\nlet manifest: {...
typescript
edit
0
5
mit
cffdbf8bd99471e86888d4c9974337d64c36d965
owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher
utils/server/staticGen.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\"use strict\";\n\nimport { EmberOperation, getHelp } from \"./ember-ops\";\n\nexport default class DumbCache {\n public generateChoices;\n public serveOperation: EmberOperation;\n public testServeOperation: EmberOperation;\n\n...
typescript
edit
0
3
mit
79346849f27a00934b0cee51f06e690d5883d069
felixrieseberg/vsc-ember-cli,t-sauer/vsc-ember-cli
src/dumb-cache.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Get boolean customisation value from attribute\n */\nexport function toBoolean(\n\tname: string,\n\tvalue: unknown,\n\tdefaultValue: boolean\n): boolean {\n\tswitch (typeof value) {\n\t\tcase 'boolean':\n\t\t\treturn value;\n\n\...
typescript
edit
0
10
mit
7ba8c01e6613859740cedd9dbdd77909566e3f49
simplesvg/simple-svg,simplesvg/simple-svg,simplesvg/simple-svg
packages/utils/src/customisations/bool.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component, EventEmitter, Input, OnChanges, Output} from '@angular/core';\nimport {FieldDocument} from 'idai-components-2';\nimport {ModelUtil} from '../../../../../core/model/model-util';\nimport {ReadImagestore} from '../../../...
typescript
edit
0
2
apache-2.0
522b64673f130eafc7bbc05b6850ba1c3dc01ec4
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
app/components/docedit/core/forms/type-relation/type-row.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { StepProgressParser } from './step-progress'\n\n/**\n * Highly approximate (some would say outright inaccurate) division\n * of the individual progress reporting steps in a fetch operation\n */\nconst steps = [\n { title: 'remo...
typescript
edit
0
1
mit
85d0aab054772c96192ac30ef37055b2cbb46bcc
gengjiawen/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,BugTesterTest/desktops,kactus-io/kactus,hjobrien/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,deskto...
app/src/lib/progress/fetch-progress-parser.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Select, XE, XmlError } from \"xml-core\";\n\nimport { Transform } from \"../transform\";\n\n/**\n * Represents the enveloped signature transform for an XML digital signature as defined by the W3C.\n */\nexport class XmlDsigEnve...
typescript
edit
0
4
mit
264d4b45bd8b5f3d1c9aa8efef78abd45fbf3780
PeculiarVentures/xmldsigjs,PeculiarVentures/xmldsigjs
src/xml/transforms/enveloped_signature.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n/**\n * @class EventEmitter\n * @description Very basic events support with listeners.\n */\nexport class EventEmitter {\n private listeners : { [s:string]: Function[] } = {};\n\n constructor(names: string[]) {\n names.forEach((n...
typescript
edit
0
2
mit
4462342e1f76f5c46ca3279a44ebb812f5939f08
yourpalal/backtalk,yourpalal/backtalk
bt/lib/events.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n|--------------------------------------------------------------------------\n| supported Formats\n|--------------------------------------------------------------------------\n*/\n\nexport const SUPPORTED_TRACKS_EXTENSIONS = [\n // ...
typescript
edit
0
0
mit
3ccabc7ffe7d6beb14c1c33c051aa91102a7a73a
KeitIG/museeks,KeitIG/museeks,KeitIG/museeks
src/shared/constants.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nexport const config = () => {\n const path = require('path')\n\n const qcertDir = path.resolve(__dirname, '..', '..', '..', '..')\n\n const deployConfig = {\n packages: {\n qcert: {\n actions: {\n qcert: {\n...
typescript
edit
0
1
apache-2.0
18c6976fbb5b378aa15a99a2b8f753ec6250ff3b
querycert/qcert,querycert/qcert,querycert/qcert,querycert/qcert,querycert/qcert
openwhisk/compiler/src/actions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\r\nimport { HeroesService, IHero } from '../services/heroes.service';\r\n\r\n@Component({\r\n selector: 'hero-selector',\r\n template: `\r\n <div class=\"modal...
typescript
edit
0
1
mit
a18f33ac913ad93e9d6a47415f02d8f8381bbb2e
Overcomplicated/website,Overcomplicated/website,Overcomplicated/website,Overcomplicated/website
src/components/hero-selector.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** @license\n * Kifu for JS\n * Copyright (c) 2014 na2hiro (https://github.com/na2hiro)\n * This software is released under the MIT License.\n * http://opensource.org/licenses/mit-license.php\n */\nimport * as mobx from \"mobx\";\nimpo...
typescript
edit
null
null
mit
94d01d95ae002af454f31c4fefc895fb93505cd1
na2hiro/Kifu-for-JS,na2hiro/Kifu-for-JS,na2hiro/Kifu-for-JS
src/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "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
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Inject } from \"./decorators/decorators\";\n\n@Inject(\"$stateProvider\", \"$urlRouterProvider\")\nexport class <%= pAppName %>Config {\n constructor(stateProvider: ng.ui.IStateProvider, urlRouterProvider: ng.ui.IUrlRouterPr...
typescript
edit
null
null
mit
f98eb0eca0dd087afc124f50a6ca4a2e91c4941e
Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli
templates/app/src/_name.config.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { expect } from './support';\nimport { createMockStore } from './lib/mock-store';\nimport { Store } from '../src/lib/store';\nimport { User, Profile } from '../src/lib/models/api-shapes';\nimport { UserViewModel } from '../src/us...
typescript
edit
0
1
bsd-3-clause
30bee8eca5570ca6103701fa67941434050dd2fa
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
test/user-list-item-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { HtmlDestroyer } from \"./html-destroyer\";\n\nvar htmlDestroyer:HtmlDestroyer = new HtmlDestroyer();\n\nchrome.runtime.onMessage.addListener(\n function(request, sender, sendResponse) {\n if (request == \"destroyH\")\n {...
typescript
edit
0
3
mit
13c5bb181c4ff24620c5a38253f64e279491e1bf
epiphanysearch/Html-destroyer,epiphanysearch/Html-destroyer,epiphanysearch/Html-destroyer
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add Events to the util exports" }, { "role": "assistant", "content": "export * from './logger';\nexport * from './security';\nexport * from './texts';\nexport * from './events';\n" } ]
typescript
new_file
0
0
mit
a06262ea331d8035c269f088e964e8ad1912f9b0
ibrahimduran/node-kaptan
src/util/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport ChatBubbleProps from './interface';\nimport styles from './styles';\n\nconst defaultBubbleStyles = {\n userBubble: {},\n chatbubble: {},\n text: {},\n};\n\nexport default class ChatBubble exten...
typescript
edit
null
null
mit
4a2fcb50d8a8551a910d9524cbf2ed4bba35042f
brandonmowat/react-chat-ui,brandonmowat/react-chat-ui
src/ChatBubble/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"../src/amd.ts\" />\ndeclare const\n global: any,\n require: any;\n \nconst assert = require('assert');\n\nglobal.require(['tst/fizz'], (fizz: any) => assert.strictEqual(fizz.buzz(), 5));\n```\n\nApply this...
typescript
edit
0
1
mit
a0b61fcf9bd6df2de1491162b514dba8afd9803d
federico-lox/AMD.ts,federico-lox/AMD.ts
tst/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport axios from 'axios';\nimport { createWriteStream } from 'fs';\nimport * as cp from 'child_process';\n\nexport async function download(from: string, to: string) {\n const { data } = await axios({\n method: 'get',\n url: from...
typescript
edit
0
2
mit
7c1f198f20163bf598f30d774c0ecfc0b7f8c66e
team-kke/sonoda-san
src/util.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as assert from 'assert'\nimport GherkinLine from '../src/GherkinLine'\n\ndescribe('GherkinLine', () => {\n describe('#getTableCells', () => {\n function getCellsText(line: string) {\n const gl = new GherkinLine(line, 1...
typescript
edit
0
1
mit
747cbbb55c52a9332ff1f57b5ca6dcbf5888217a
cucumber/gherkin-javascript,cucumber/gherkin-javascript
test/GherkinLineTest.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as $ from 'jquery';\nimport { clearStyles } from '../util';\nimport { Article } from 'index';\n\nexport const cleanup = () => {\n $('#scrollDiv, body>img').remove();\n}\n\nexport function parse(): Article {\n return {\n ...
typescript
edit
0
1
mit
69585795b36106447b68749b567b55241e8f2a34
disjukr/just-news,disjukr/just-news,disjukr/jews,disjukr/jews,disjukr/just-news
src/impl/프레시안.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { TestBed } from '@angular/core/testing';\n\nimport { CoreModule } from './core.module';\n\ndescribe('CoreModule', () => {\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [\n CoreModule,\n ...
typescript
edit
0
2
bsd-3-clause
cbb5a7829508fb202873a99ac263101111c74e5a
cumulous/web,cumulous/web,cumulous/web,cumulous/web
src/app/core/core.module.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as express from \"express\";\nimport * as bodyParser from \"body-parser\";\nimport * as http from \"http\";\nimport * as helmet from \"helmet\";\nimport ConfigurationChooser from \"./config/index\";\nimport Configuration from \...
typescript
edit
0
1
mit
3f66453b33f58337757f13d8b2f090986483bf5f
BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS
src/maas.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AnimeNotifier } from \"../AnimeNotifier\"\n\n// like\nexport function like(arn: AnimeNotifier, element: HTMLElement) {\n\tlet apiEndpoint = arn.findAPIEndpoint(element)\n\n\tarn.post(apiEndpoint + \"/like\", null)\n\t.then(() =...
typescript
edit
0
2
mit
30d9b9cdbcd0b474e3953c3fed6b8e247c34ce34
animenotifier/notify.moe,animenotifier/notify.moe,animenotifier/notify.moe
scripts/Actions/Like.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\nimport { RouterModule } from '@angular/router';\n\ni...
typescript
edit
0
0
mit
5f7b0a93e2fabe1f391d1b42f1dd4778214932dc
denismaster/dcs,denismaster/dcs,denismaster/dcs,denismaster/dcs
src/Diploms.WebUI/ClientApp/app/app.shared.module.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport t = require(\"unittest/unittest\");\n\nfunction main(): void {\n t.test(\"bigifies text\", function() { t.expect(\"hello\".toUpperCase(), t.equals(\"HELLO\")); });\n}\n\n```\n\nApply this change: Add an end2end test using a clas...
typescript
edit
0
1
apache-2.0
8e4f2a99a32dfc362b27c883890f64e406ba5aae
yjbanov/ts2dart,alfonso-presa/ts2dart,vsavkin/ts2dart,jeffbcross/ts2dart,alfonso-presa/ts2dart,dart-archive/ts2dart,jacob314/ts2dart,hterkelsen/ts2dart,dart-archive/ts2dart,dart-archive/ts2dart,jeffbcross/ts2dart,vsavkin/ts2dart,vicb/ts2dart,caitp/ts2dart,yjbanov/ts2dart,caitp/ts2dart,hansl/ts2dart,hansl/ts2dart,jtepli...
test/e2e/helloworld.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport throttle from 'lodash/throttle'\nimport get from 'lodash/get'\nimport {stringify} from 'querystring'\n\nimport {MB_TOKEN} from 'lib/constants'\n\nconst DELAY_MS = 400\nconst BASE_URL = 'https://api.mapbox.com'\nconst PATH = '/geo...
typescript
edit
0
3
mit
a76ac48528786ec207478ffa7cab07bd742124e2
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
lib/utils/mapbox-search.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare function require(name: string): string;\nimport * as nprogress from \"nprogress\";\n\nexport class Statusbar {\n public static Start(): void {\n Statusbar.loadStylesheet();\n nprogress.configure({\n m...
typescript
edit
0
2
mit
aa718271ac86d003fac422bf60174f88cdca9969
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
ui/src/app/statusbar.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as yargs from 'yargs'\n\ninterface Options extends yargs.Arguments {\n count: number\n}\n\nconst allOptions = {\n count: {\n alias: 'c',\n default: 5,\n describe: 'number of sources to poll',\n number: true\n }\n...
typescript
edit
0
1
apache-2.0
c10fa9989604580d0f2be07015f5df5ebe5afce8
eheikes/oscar,eheikes/oscar,eheikes/oscar,eheikes/oscar
collector/src/options.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { logger } from \"@truffle/db/logger\";\nconst debug = logger(\"db:db\");\n\nimport gql from \"graphql-tag\";\nimport { DocumentNode, ExecutionResult, execute } from \"graphql\";\n\nimport type TruffleConfig from \"@truffle/confi...
typescript
edit
0
3
mit
4611d9c79704cac18108996c85c9a88d38c122c3
ConsenSys/truffle
packages/db/src/db.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Finder from \"../finder\";\nimport * as Filters from \"../filters\";\n\nexport const enum TextInputSizes {\n DEFAULT = \"default\",\n MINI = \"mini\"\n}\n\ninterface TextInputProps {\n type?: string;\n value?: st...
typescript
edit
0
1
mit
bd1b5e9607662cf74a7b387d9b27784264ea287e
Zerthox/BetterDiscord-Plugins,Zerthox/BetterDiscord-Plugins
dium/src/components/text-input.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, Input, Output, EventEmitter } from \"@angular/core\";\nimport { MapService } from \"../core/map.service\";\nimport { OptionMap } from \"../core/map\";\n\n@Component({\n selector: 'aba-modal-save-map',\n templateUrl...
typescript
edit
0
1
mit
5e1dc59042349bb71a25b2e9ac9c969200dcb7b4
ABAPlan/abaplan-core,ABAPlan/abaplan-core,ABAPlan/abaplan-core
app/modal-save-map/modal-save-map.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const environment = {\n production: true,\n RECAPTCHA_SITE_KEY: process.env.RECAPTCHA_SITE_KEY, // For kfet-insa.fr domains\n VERSION: require('../../../package.json').version,\n JWT_DAY_EXP_LONG: 30,\n JWT_DAY_EXP: 1,\n};\n...
typescript
edit
0
0
apache-2.0
a0c618826752293c837dac6e702cc4a913a35ccb
K-Fet/K-App,K-Fet/K-App,K-Fet/K-App,K-Fet/K-App
client/src/environments/environment.prod.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/catch';\nimport 'rxjs/add/observable/throw';\nimport { Observable }...
typescript
edit
0
2
mit
83901755106b45c9e244e02f118dacaf184b6ccf
zackluckyf/advanced-social-network,zackluckyf/advanced-social-network,zackluckyf/advanced-social-network
src/app/dashboard/shared/services/dashboard.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\nimport * as React from 'react';\n\nimport { IActionComponentProps } from 'rev-ui/lib/actions/types';\nimport Button from 'material-ui/Button';\n\nexport const MUIActionButton: React.SFC<IActionComponentProps> = (props) => {\n\n con...
typescript
edit
null
null
mit
a1bfd99aeb4e5ee90a9b75ef80de30cc9b00ac78
RevFramework/rev-framework,RevFramework/rev-framework
packages/rev-ui-materialui/src/actions/MUIActionButton.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport interface OptionalRange {\n\n value: string;\n endValue?: string;\n}\n\n\nexport module OptionalRange {\n\n export const VALUE = 'value';\n export const ENDVALUE = 'endValue';\n\n\n export function isValid(optional...
typescript
edit
0
7
apache-2.0
2f55b45147e37f75a2bb9d7ddc325631ff6549cb
dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2
src/model/optional-range.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Route} from '@angular/router';\nimport {HomeComponent} from './home/home.component';\nimport {LoginComponent} from './login/login.component';\nimport {FacebookAuthorizerComponent} from './oauth/facebook/facebook_authorizer.compo...
typescript
edit
0
0
mit
9158be7fc0404e4672c98ee321c380a4b581e5ff
frostblooded/kanq,frostblooded/kanq,frostblooded/kanq,frostblooded/kanq,frostblooded/kanq
client/src/app/routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as URL from 'url'\n\ninterface IURLAction<T> {\n name: string\n readonly args: T\n}\n\nexport interface IOAuthActionArgs {\n readonly code: string\n}\n\nexport interface IOAuthAction extends IURLAction<IOAuthActionArgs> {\n ...
typescript
edit
0
4
mit
f16808620fd345dae127bd3011ccfa2393d34241
hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,j-f1/forked-desktop,BugTesterTest/desktops,hjobrien/desktop,desktop/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,hjobrien/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,kactus-io/kactus,j-f1/forked-desktop,geng...
app/src/lib/parse-url.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\n\nimport { IProduct } from './product';\nimport { ProductService } from './product.service';\n\n@Component({\n templateUrl: ...
typescript
edit
0
2
mit
db04cd61b38ef219744cbae3c6e05bf313d8d3e3
DeborahK/Angular2-GettingStarted,DeborahK/Angular2-GettingStarted,DeborahK/Angular2-APM,DeborahK/Angular2-GettingStarted,DeborahK/Angular2-APM
APM-Final/src/app/products/product-detail.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component, OnInit, ViewEncapsulation } from '@angular/core';\nimport { Router } from '@angular/router';\n\nimport {\n AppsService,\n Environment,\n} from './services/apps.service';\n\n@Component({\n encapsulation: ViewEncaps...
typescript
edit
0
1
apache-2.0
1ecc866cad88bd21120fa2d264aa661007d13ed1
fabric8io/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8-ui/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8io/fabric8-ui,fabric8-ui/fabric8-ui
src/app/space/create/apps/apps.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
1
mit
4b3361a7b9b2adf5ccbc2c0774c30a0be92f417f
eamodio/vscode,joaomoreno/vscode,rishii7/vscode,cleidigh/vscode,eamodio/vscode,the-ress/vscode,Microsoft/vscode,hoovercj/vscode,microlv/vscode,landonepps/vscode,0xmohit/vscode,cleidigh/vscode,the-ress/vscode,0xmohit/vscode,Krzysztof-Cieslak/vscode,rishii7/vscode,cleidigh/vscode,0xmohit/vscode,Microsoft/vscode,eamodio/v...
src/vs/editor/contrib/parameterHints/provideSignatureHelp.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Vue from 'vue';\nimport '../../utils/polyfills';\nimport NavBarItemPlugin, { MNavBarItem } from './nav-bar-item';\n\nconst SELECTED_CSS: string = 'm--is-selected';\n\nlet navbaritem: MNavBarItem;\n\ndescribe('navbar-item', () => ...
typescript
edit
0
2
apache-2.0
e8c4abaa12787782ef5b452e9c1f46d20ab255f5
ulaval/modul-components,ulaval/modul-components,ulaval/modul-components
src/components/nav-bar-item/nav-bar.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Observable} from \"rxjs/Observable\";\n\nexport interface IPlayable {\n id:string;\n elem:any;\n time:any;\n buffer:any;\n track?:any; // its optional, need in add custom cue (addTextTrack) \n canPlay:boole...
typescript
edit
0
0
mit
009e8d0dcf201907a9bce3d480608e2a765770e4
videogular/videogular2,kwarismian/videogular2,videogular/videogular2,amitkumarmahajan/videogular2,amitkumarmahajan/videogular2,kwarismian/videogular2,kwarismian/videogular2,amitkumarmahajan/videogular2,videogular/videogular2
src/core/vg-media/i-playable.ts
rejected_duplicate
Near-duplicate of sample 112417
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n EnumLike,\n IsEnum,\n IsNotEmpty,\n IsObject,\n IsOptional,\n IsString,\n Type,\n ValidateNested,\n} from '@jovotech/output';\n\nexport class NextScene {\n @IsString()\n @IsNotEmpty()\n name: string;\n}\n\nexport e...
typescript
edit
0
1
apache-2.0
a6f0651d054a09772b9bdeaea5d6b00aca255361
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
output-googleassistant/src/models/Scene.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { useMemo } from 'react';\nimport { classnames, useToggle, Button } from 'react-components';\n\nimport { isPlainText } from '../../helpers/message/messages';\nimport { MessageExtended } from '../../models/message';\nimport...
typescript
edit
null
null
mit
f3acfb61d87a1cfa1a191c0cd194bfe0f2ce4b2b
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
applications/mail/src/app/components/message/MessageBody.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Router} from '@angular/router';\nimport {Injectable, NgZone} from '@angular/core';\n\nconst ipcRenderer = typeof window !== 'undefined' ? window.require('electron').ipcRenderer : require('electron').ipcRenderer;\nconst remote = ...
typescript
edit
0
2
apache-2.0
c81350a8902e7f7dc579d59773077a7f5554833d
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
src/app/components/menu-service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"RenderObject.ts\"/>\n///<reference path=\"Animations/Animators.ts\"/>\nclass Widget extends RenderObject {\n children: Widget[] = [];\n position = Vector2.zero;\n scale = Vector2.one;\n rotation = 0;\n ...
typescript
edit
0
1
apache-2.0
99678056bc86f3d8bc1b3cc6c2b86a3efe39f3de
Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism
Mechanism/Widget.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Button } from '../lib/button'\n\nconst BlankSlateImage = `file:///${__dirname}/static/empty-no-branches.svg`\n\ninterface INoBranchesProps {\n readonly onCreateNewBranch: () => void\n}\n\nexport...
typescript
edit
null
null
mit
4ff63dd1d58808598ae77fb72c4ff5496dd25a07
shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop...
app/src/ui/branches/no-branches.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { AggregateIdType, DomainEvent, DomainEventType, allDomainEvents, domainEventsByAggregate } from \"./event-store\";\n\nexport function todoListEvents(): Promise<DomainEvent[]> {\n // This app's domain and event-store are desig...
typescript
edit
0
3
mit
45b520975d515a88ac975ca09035b196ba5abeda
jbrianskog/static-event-sourcing-todo,jbrianskog/static-event-sourcing-todo
read.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\njest.mock(\"axios\", function () {\n return {\n default: {\n get: function () {\n return Promise.resolve({\n data: {\n id: 0,\n data: {\n attributes: {\n svg_i...
typescript
edit
0
2
mit
8d16e762e7ecf359ba2431b42487afeafe694a86
RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,MrChristofferson/Farmbot-Web-API,FarmBot/Farmbot-Web-API,MrChristofferson/Farmbot-Web-API...
src/open_farm/__tests__/index_test.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { ToggleButton } from \"../toggle_button\";\nimport { pinToggle } from \"../../devices/actions\";\nimport { Row, Col } from \"../../ui\";\nimport { PeripheralListProps } from \"./interfaces\";\n...
typescript
edit
null
null
mit
b7a6006a2df87d1d942683085066b787356685b8
RickCarlino/farmbot-web-frontend,FarmBot/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,FarmBot/farmbot-web-frontend
src/controls/peripherals/peripheral_list.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* eslint-disable @typescript-eslint/no-var-requires */\nimport * as SegfaultHandler from 'segfault-handler'\nSegfaultHandler.registerHandler('crash.log')\nimport 'source-map-support/register'\nexport * from './commands/generate'\nexpor...
typescript
edit
0
1
apache-2.0
ea5c960c348b5405e820f98087af1ea182641e12
sammydre/ts-for-gjs,sammydre/ts-for-gjs
src/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Box } from \"@artsy/palette\"\nimport { AnalyticsSchema, useTracking } from \"Artsy/Analytics\"\nimport { Location } from \"found\"\nimport React from \"react\"\n\nimport { ArtworkFilter_viewer } from \"__generated__/ArtworkFil...
typescript
edit
null
null
mit
df64e5bcfccbe3829e6fdcfa9849dccba5b7c1df
artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction
src/Apps/Search/Routes/Artworks/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as types from './../store/mutation-types'\n\nexport function afterRegistration(Vue, config, store, isServer) {\n // Place the order. Payload is empty as we don't have any specific info to add for this payment method '{}'\n co...
typescript
edit
0
3
mit
87e05578aaae011413288664630e35b7d20956e4
pkarw/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront,DivanteLtd/vue-storefront,pkarw/vue-storefront
src/modules/payment-backend-methods/hooks/afterRegistration.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nconst express = require('express');\nconst MongoClient = require('mongodb').MongoClient;\nconst ObjectId = require('mongodb').ObjectId;\nconst bodyParser = require('body-parser');\nconst logger = require('morgan');\n\n\n// SETUP\n// ===...
typescript
edit
0
1
mit
c0b80796e2ec9207bd2edc0f31e5999c40236ed6
SBats/marvel-reading-stats-backend
src/index.ts
accepted
null
true
[ { "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'\n\ninterface IGitIgnoreProps {\n readonly text: string | null\n re...
typescript
edit
null
null
mit
9094ea1d86dd3e3134d69dce0c3c5038031d2cd3
kactus-io/kactus,artivilla/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,say25/desktop,say25/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/deskt...
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 { Component, OnInit } from '@angular/core';\nimport { PlantListService } from \"./plant-list.service\";\nimport { Plant } from \"./plant\";\nimport {Params, ActivatedRoute} from \"@angular/router\";\n\n@Component({\n selector:...
typescript
edit
0
1
mit
88fa2116371ab2e153d41c94a2e6e01171b1a9b8
UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-360...
client/src/app/plants/bed.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"Interface.ts\" />\n\nmodule TameGame {\n /**\n * Some well-known control bindings used in many different types of game\n */\n export var standardControls: { [name: string]: ControlBinding } = {\n ...
typescript
edit
0
0
apache-2.0
3525fbae2e1dcb281500c0395e45339a7cb3f2c1
TameGame/Engine,TameGame/Engine,TameGame/Engine
TameGame/Input/StandardControlBindings.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ntype SchemaLeaf = \"copy\" | \"convert\";\nexport interface SchemaProperty {\n required: boolean;\n schema: Schema;\n derive?: (v: any) => any;\n}\ninterface SchemaObject {\n [property: string]: SchemaProperty;\n}\ntype SchemaArray ...
typescript
edit
0
0
mit
6b95ece8e168628012fea275153c2e614f1ff1a0
github/webauthn-json,github/webauthn-json,github/webauthn-json
src/webauthn-json/schema-format.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { Responsive } from \"../Utils/Responsive\"\nimport { BorderBox } from \"../Elements/Box\"\nimport { Sans } from \"@artsy/palette\"\nimport { themeGet } from \"styled-system\"\nimport styled from \"st...
typescript
edit
null
null
mit
c8bcc3cf8d7c7635e29833bffed5ae717c4aa771
artsy/reaction,artsy/reaction,artsy/reaction,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force
src/Styleguide/Components/MarketInsights.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'app works!';\n}\n\n```\n\nApp...
typescript
edit
0
1
mit
b795d676b49e965c7902410dc15e96e063065728
gottsohn/md-input-inline,gottsohn/md-input-inline,gottsohn/md-input-inline
src/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Component from 'inferno-component'\nimport h from 'inferno-hyperscript'\n\ninterface Props {\n clearCompleted: () => void\n clearAll: () => void\n leftCount: number\n}\ninterface State {}\n\nexport default class Footer extends...
typescript
edit
0
2
mit
91be7571aae9d60dd17fbd5a97311cb087996ab8
y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo
src/components/footer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as _ from \"underscore\";\n\nexport function createElement(type: string, props: { [name: string]: any }, ...children: (string | HTMLElement)[]): HTMLElement {\n let elem;\n if (type === \"fragment\") {\n elem = document.cr...
typescript
edit
0
12
bsd-3-clause
8f4361d61aaf82de5503a426456b5cf24096685a
schoolie/bokeh,draperjames/bokeh,percyfal/bokeh,bokeh/bokeh,draperjames/bokeh,percyfal/bokeh,jakirkham/bokeh,jakirkham/bokeh,DuCorey/bokeh,mindriot101/bokeh,bokeh/bokeh,dennisobrien/bokeh,mindriot101/bokeh,mindriot101/bokeh,aavanian/bokeh,draperjames/bokeh,timsnyder/bokeh,stonebig/bokeh,schoolie/bokeh,azjps/bokeh,jakir...
bokehjs/src/coffee/core/util/dom.ts
rejected_complexity
Cyclomatic complexity too high: 12
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { UIView, useCurrentStateAndParams } from '@uirouter/react';\nimport { FunctionComponent } from 'react';\n\nimport { AppFooter } from './AppFooter';\nimport { CookiesConsent } from './cookies/CookiesConsent';\nimport { SiteHeader...
typescript
edit
null
null
mit
b7c929e50be3476e91dd819e09bf5313502e0b73
opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport
src/navigation/AnonymousLayout.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RecursiveProxyHandler } from 'electron-remote';\n\nimport { Store } from '../../src/lib/store';\nimport { Updatable } from '../../src/lib/updatable';\nimport { ChannelBase, User } from '../../src/lib/models/api-shapes';\n\nexpo...
typescript
edit
0
2
bsd-3-clause
3525b1fe0774448431b299a0efbed245fb9176b2
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
test/lib/mock-store.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\r\nimport * as vscode from 'vscode';\r\n\r\nconst appInsights = require(\"applicationinsights\");\r\n\r\nexport class AppInsightsClient {\r\n private _client;\r\n private _enableAppInsights;\r\n\r\n constructor() ...
typescript
edit
0
3
mit
0f5d99e55d0ae7ca25a87b9aaf896aaefeeda425
formulahendry/vscode-code-runner
src/appInsightsClient.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { API, RETURN_OVERLAY_REQUEST, ExportOverlayRequest, setError, makePostData } from './helper'\n\n/** Method that sends the (decoded) fetched overlay, along with its\n * ID and display name. \n*/\nexport async function sendOverlay...
typescript
edit
0
1
apache-2.0
603b14630f8fc36f1c0312ac72be34842b0870b6
googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay,googleinterns/android-studio-figma-overlay
figma-plugin/src/server_requests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare var beforeAll: (callback: () => void) => void;\ndeclare var beforeEach: (callback: () => void) => void;\ndeclare var afterAll: (callback: () => void) => void;\n\nimport adapter from \"detox/runners/jest/adapter\";\n\n// Normally...
typescript
edit
0
1
mit
f794cf4dead09652eae471fd751260dad97bb0a7
dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped
types/detox/test/detox-jest-setup-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2018 The Outline Authors\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// ...
typescript
edit
0
2
apache-2.0
6d34f3761e3a355d7327f142c9984ba8bf4afcd1
Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server
src/server_manager/infrastructure/crypto.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ...
typescript
edit
0
0
mit
c73b9be174158c16f674d25c078cd0534dacfa98
Krzysztof-Cieslak/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,joaomoreno/vscode,the-ress/vscode,the-ress/vscode,Microsoft/vscode,joaomoreno/vscode,hoovercj/vscode,joaomoreno/vscode,the-ress/vscode,eamodio/vscode,microsoft/vscode,joaomoreno/vscode,hoovercj/vscode,hoovercj/vscode,joaomoreno/vscod...
src/vs/editor/contrib/codeAction/codeActionContributions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs from 'fs-extra';\nimport { PixelDiffer } from 'mugshot';\nimport { dirname, join } from 'path';\n\n/**\n * Use PixelDiffer to compare two screenshots.\n *\n * Assume that PixelDiffer passes all of its tests.\n */\nexport async...
typescript
edit
0
3
mit
02ff5f70ab2c134aee031596fa575ee78ac1ed88
uberVU/mugshot,uberVU/mugshot
tests/helpers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Injectable, Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'stationName',\n //pure: false // needed to react to array changes\n})\n@Injectable()\nexport class StationName implements PipeTransform {\n public t...
typescript
edit
0
2
mit
64bbfb53bf127469ba4eda285b2fdf90fea4d9d3
255kb/city-bike-routes,255kb/city-bike-routes,255kb/city-bike-routes
src/pipes/stationName.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { ListingViewModel } from \"./Listing\";\nimport { EncounterLibrary } from \"../EncounterLibrary\";\nimport { SavedEncounter, SavedCombatant } from \"../../Encounter/SavedEncounter\";\nimport { ...
typescript
edit
null
null
mit
a71fb3a46ce2b8cf692a5003b591bdc8eae2cc5a
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Library/Components/EncounterLibraryViewModel.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"react-global.d.ts\" />\n\nclass ControlsProps {\n public controls: any;\n}\n\nclass ControlsJSX extends React.Component<ControlsProps, any> {\n\n constructor(props: ControlsProps) {\n super(props);\n ...
typescript
edit
null
null
apache-2.0
af8bbd9d5de7d49a7a3d6c6106e2472bcd5d8659
jotak/mipod.x,jotak/mipod.x,jotak/mipod.x,jotak/mipod.x
web/typescript/main/controls.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n/////**/module Default{ \r\n////}\r\n\r\nformat.setOption(\"PlaceOpenBraceOnNewLineForFunctions\", true);\r\nformat.setOption(\"PlaceOpenBraceOnNewLineForControlBlocks\", true);\r\n\r\nformat...
typescript
edit
0
0
apache-2.0
5a51e25de97eb29a0e876a218c10e0a121b3f4f3
mbebenita/shumway.ts,hippich/typescript,fdecampredon/jsx-typescript-old-version,mbrowne/typescript-dci,popravich/typescript,fdecampredon/jsx-typescript-old-version,mbrowne/typescript-dci,mbrowne/typescript-dci,mbebenita/shumway.ts,hippich/typescript,popravich/typescript,popravich/typescript,fdecampredon/jsx-typescript-...
tests/cases/fourslash/formattingCrash.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Expect, TestCase } from \"alsatian\";\nimport { Stack } from \"../stack\";\n\nexport class PushPopTestFixture {\n\n @TestCase(15)\n @TestCase(20)\n @TestCase(\"some string\")\n @TestCase(\"another string\")\n @Te...
typescript
edit
0
1
mit
ebbecca947ceb17067a6dee9e97411a2299ba538
ts-data/stack
test/push-pop.test.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Directive, Inject, Input, OnChanges, SimpleChanges } from 'ng-metadata/core';\nimport { Screen } from './../screen/screen-service';\nimport { Ruler } from './../ruler/ruler-service';\n\n@Directive({\n\tselector: '[gj-responsive...
typescript
edit
0
1
mit
0b52e3275f2b3b586f0fb29c4a06709164d1b57a
gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib
components/responsive-dimensions/responsive-dimensions-directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RequestHandler } from 'express'\nimport { get } from './db'\n\nconst handler: RequestHandler = async (_, res) => {\n try {\n const config = await get()\n res.json(config)\n } catch (ex) {\n res.status(500).json({ mes...
typescript
edit
0
3
mit
f79b8dd26f3ecf2c8d0dbfa22f24e612016cda83
the-concierge/concierge,the-concierge/concierge,the-concierge/concierge
src/api/configuration/get.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { Card, FormLayout, Select } from '@shopify/polaris';\r\nimport { SortingOption } from '../../types';\r\nimport SearchTableButtons from './SearchTableButtons';\r\n\r\nexport interface Props {\r\...
typescript
edit
null
null
mit
a140aa90159f19f669bcfcf384d8093fc5f41e35
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/SearchTable/SortingForm.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../../typings/main.d.ts\" />\n\nimport expect = require('expect.js');\nimport { MustLaw } from 'courtroom/courtroom/laws/must';\n\ndescribe('MustLaw', () => {\n\n describe('constructor', () => {\n\n it('sh...
typescript
edit
0
1
mit
b7f170964880b1e7376853d236912c74ca869f30
Jameskmonger/courtroom,Jameskmonger/courtroom
spec/laws/must.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport abstract class NestedError extends Error {\n readonly inner?: Error\n readonly id: Number\n\n\n public constructor(message: string, id: Number, inner?: Error) {\n super(message)\n this.inner = inner\n ...
typescript
edit
0
2
mit
be5b7e429d0592770b7ffc8bc7d02be933f19b87
Belphemur/node-json-db,Belphemur/node-json-db
src/lib/Errors.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { Component } from 'react'\nimport { tuxColors, tuxInputStyles } from '../../styles'\n\ninterface Dropdown {\n id: string\n value: string\n label: string\n helpText: string\n dropdownValues: Array<string>\n onChange:...
typescript
edit
null
null
mit
e1facf9e0689d38b7f6747aecc36511c020f2d51
aranja/tux,aranja/tux,aranja/tux
packages/tux/src/components/fields/Dropdown.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\nClasses in this module handle the protocol-level tasks of handling Events and returning HTTP responses.\n*/\n\nimport { event, callback, challenge, uri } from \"../Api\";\nimport { pathTo, redirectTo } from \"../clients/Http\";\nim...
typescript
edit
0
1
apache-2.0
e0ff22834eae4956ce079e60fd000de841c3d5e8
poetix/bentham,poetix/bentham
dropbox/src/main/endpoints/WebhookEndpoint.ts
accepted
null
true