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": "Write typescript code for the following: Add costs matrix for creep parts" }, { "role": "assistant", "content": "// Body part \tBuild cost \tEffect per one body part\nexport const CreepPartMatrix: { [index: string]: number } = {\n ATTACK: 80,\n CARRY: 50,\n ...
typescript
new_file
0
0
unlicense
1ebaf394eebe2b043af9769f3aef8f550af2352b
ABitMoreDepth/screeps,ABitMoreDepth/screeps
src/utils/creepPartCosts.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {Component} from \"angular2/core\";\nimport {Router} from \"angular2/router\";\n\nimport {User} from \"../../shared/user/user\";\nimport {UserService} from \"../../shared/user/user.service\";\n\n@Component({\n selector: \"login\...
typescript
edit
0
1
mit
608b813626754f878e759926db6bef91549e9999
anhoev/cms-mobile,poly-mer/community,NativeScript/sample-Groceries,poly-mer/community,poly-mer/community,qtagtech/nativescript_tutorial,dzfweb/sample-groceries,NativeScript/sample-Groceries,qtagtech/nativescript_tutorial,tjvantoll/sample-Groceries,dzfweb/sample-groceries,tjvantoll/sample-Groceries,qtagtech/nativescript...
app/pages/login/login.component.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add back file deleted in error" }, { "role": "assistant", "content": "import * as helper from '../helper';\nimport oninit from './tournamentCtrl';\nimport view from './tournamentView';\n\nexport default {\n oncreate: helper....
typescript
new_file
0
0
mit
95c80f83d5bbcd04bb0b9b07be0b2e8f91f566b6
btrent/lichobile,btrent/lichobile,btrent/lichobile,btrent/lichobile
src/js/ui/tournament/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"cordova-plugin-braintree.d.ts\" />\n\nBraintreePlugin.initialize(\"a\");\nBraintreePlugin.initialize(\"a\", () => {});\nBraintreePlugin.initialize(\"a\", () => {}, () => {});\n\nvar paymentUIOptions: BraintreePlugi...
typescript
edit
0
1
mit
49f3cd04c1b5ecdc9fd8b198ffe71e12d753dc16
Taracque/cordova-plugin-braintree,Justin-Credible/cordova-plugin-braintree,Taracque/cordova-plugin-braintree,btafel/cordova-plugin-braintree,btafel/cordova-plugin-braintree,LudwigEnglbrecht/cordova-plugin-braintree_new,btafel/cordova-plugin-braintree,Justin-Credible/cordova-plugin-braintree,Taracque/cordova-plugin-brai...
typings/cordova-plugin-braintree-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add fourslash test for in scope completion" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts'/>\r\n\r\n////function f() {\r\n//// namespace n {\r\n//// interface I {\r\n//// x: numb...
typescript
new_file
0
0
apache-2.0
01f2cce8cf20aa87d8174439a3db3a78ccb186b4
kumikumi/TypeScript,kpreisser/TypeScript,alexeagle/TypeScript,fabioparra/TypeScript,bpowers/TypeScript,keir-rex/TypeScript,hoanhtien/TypeScript,mcanthony/TypeScript,impinball/TypeScript,msynk/TypeScript,fabioparra/TypeScript,abbasmhd/TypeScript,ionux/TypeScript,moander/TypeScript,SmallAiTT/TypeScript,germ13/TypeScript,...
tests/cases/fourslash/completionWithNamespaceInsideFunction.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add implementation of Chain Of Responsibililty pattern" }, { "role": "assistant", "content": "class Trouble {\n private number: number;\n\n constructor(number: number) {\n this.number = number;\n }\n\n getNumber(): num...
typescript
new_file
0
3
mit
74b5b43706136f7dfe7fa51c71474b148213e424
Erichain/design-patterns-in-typescript,Erichain/design-patterns-in-typescript
chain-of-responsibility/solve-problem.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add an extension for Array<T>" }, { "role": "assistant", "content": "export class XArray<T> extends Array<T> {\n\tpublic randomize(prng?: () => number): Array<T> {\n\t\tvar t: T, j: number, ret = this.slice(0), i = ret.length...
typescript
new_file
0
1
mit
432eb9979afb804c7cdec6cc00ff65e09e83026d
MrShoenel/node-temporary-short-urls,MrShoenel/node-temporary-short-urls
resource/classes/Extensions.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test case when new expression target is not Class declaration" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts' />\r\n\r\n////class C2 {\r\n////}\r\n////let I: {\r\n//// /*constructSignature*/ne...
typescript
new_file
0
0
apache-2.0
1472b654db1d5f631f239f250ffc92ee12f5e07e
kitsonk/TypeScript,Microsoft/TypeScript,donaldpipowitch/TypeScript,nojvek/TypeScript,basarat/TypeScript,weswigham/TypeScript,weswigham/TypeScript,RyanCavanaugh/TypeScript,alexeagle/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,alexeagle/TypeScript,donaldpipowitch/TypeScript,SaschaNaz/Typ...
tests/cases/fourslash/goToDefinitionNewExpressionTargetNotClass.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add grid pager info test" }, { "role": "assistant", "content": "import { browser, element, by } from '../node_modules/protractor/built';\n\ndescribe('grid pager info', () => {\n\n let paginator = element(by.tagName('ngb-p...
typescript
new_file
0
1
mit
ff5a019d9cf2eb21ea49dc31488f2c3e4a386ef3
unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2
src/Unosquare.Tubular2.Web/e2e/gridPagerInfo.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test adding members to JS variables whose initialisers are functions" }, { "role": "assistant", "content": "/// <reference path=\"fourslash.ts\" />\n// @allowJs: true\n// @Filename: something.js\n////var C = function () { }\n...
typescript
new_file
0
0
apache-2.0
4a9b1209aeffb33ddbc6c7358e2a0e901cb8eee9
jeremyepling/TypeScript,Eyas/TypeScript,nojvek/TypeScript,kitsonk/TypeScript,thr0w/Thr0wScript,nojvek/TypeScript,jwbay/TypeScript,kitsonk/TypeScript,thr0w/Thr0wScript,kpreisser/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,minestarks/TypeScript,nojvek/TypeScript,SaschaNaz/TypeScript,donaldpipowitch/TypeScript,vi...
tests/cases/fourslash/salsaMethodsOnAssignedFunctionExpressions.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add barrel for plugin so that you can easily import multiple services" }, { "role": "assistant", "content": "export * from './battery-status';\nexport * from './camera';\nexport * from './device';\nexport * from './device-mot...
typescript
new_file
0
0
mit
41d2c582ebebd827e2618fbc433fd00f654462be
arnesson/angular-cordova,arnesson/angular-cordova
plugin/index.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Implement unit tests for HelperCrypto" }, { "role": "assistant", "content": "import \"../../helpers/require\";\nimport { expect } from \"chai\";\nimport HelperCrypto from \"@eta/helpers/crypto\";\n\ndescribe(\"helpers/crypto\...
typescript
new_file
0
1
mit
552f6fa787d803abf60a6e2b756162bb52820799
crossroads-education/eta,crossroads-education/eta
test/helpers/crypto.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add selector for filtering hitDatabase entries by title." }, { "role": "assistant", "content": "import { hitDatabaseSelector, databaseFIlterSettingsSelector } from './index';\nimport { createSelector } from 'reselect';\nimpor...
typescript
new_file
0
1
mit
877142ee3d0ad9153480a982f41f7295144ba4e3
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/selectors/databaseFilterSettings.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add config provider to read all module configurartions and read specific value" }, { "role": "assistant", "content": "import * as fs from 'fs';\nimport * as path from 'path';\nimport {Config} from '../Configuration/Config';\n...
typescript
new_file
0
3
mit
2c9009676721480734cc567afd2b35e78d43a70d
vincent-chapron/resonance-js,vincent-chapron/resonance-js,vincent-chapron/resonance-js
src/app/Utils/ConfigProvider.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add failing html escaping test" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../../index'\nimport { PlainTextNode } from '../../../SyntaxNodes/PlainTextNode'\n\n\ndescribe('All insta...
typescript
new_file
0
1
mit
5b75c217b2bfc753c94d4c1afb288fd069a8e312
start/up,start/up
src/Test/Html/Escaping/Content.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add post processor for policy" }, { "role": "assistant", "content": "import { SchemaPostProcessor } from '../models';\r\n\r\nexport const postProcessor: SchemaPostProcessor = (_namespace: string, _apiVersion: string, schema: ...
typescript
new_file
0
4
mit
2f9e9269c6cafbb58ef61cbdb2b3a6e18f65f19e
Azure/azure-resource-manager-schemas,Azure/azure-resource-manager-schemas,Azure/azure-resource-manager-schemas,Azure/azure-resource-manager-schemas
generator/processors/Microsoft.Authorization.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add file/helper for config-change html tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport { UpConfigArgs } from '../../../UpConfigArgs'\nimport { Up } from '../../../index'\nimport { SyntaxNode...
typescript
new_file
0
1
mit
b77004a09fc73e13d1e697279ba670cebe2ac34e
start/up,start/up
src/Test/Html/Config/Changes.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for \"angular-i18next\" definition." }, { "role": "assistant", "content": "/// <reference path=\"angular-i18next.d.ts\" />\n/**\n* @summary Test for \"angular-i18next\" with options.\n*/\nfunction testOptions() {\n ...
typescript
new_file
0
1
mit
bfc68a72a8f372711842e52caeda7f0a063315e8
bluong/DefinitelyTyped,Zzzen/DefinitelyTyped,brainded/DefinitelyTyped,SebastianCoetzee/DefinitelyTyped,GlennQuirynen/DefinitelyTyped,alexdresko/DefinitelyTyped,manekovskiy/DefinitelyTyped,bilou84/DefinitelyTyped,bdoss/DefinitelyTyped,pocesar/DefinitelyTyped,zalamtech/DefinitelyTyped,Syati/DefinitelyTyped,Pipe-shen/Defi...
angular-i18next/angular-i18next-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: chore: Add tests to profile memory usage" }, { "role": "assistant", "content": "import { expect } from 'code'\nimport * as Hapi from 'hapi'\nimport * as Lab from 'lab'\nimport * as net from 'net'\nimport * as rp from 'request...
typescript
new_file
0
2
apache-2.0
5f356cb9ef5db6050818c8ac59609687a0da882a
creditkarma/thrift-server,creditkarma/thrift-server
packages/thrift-client/src/tests/integration/profiler.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add structure to Avatar as a component" }, { "role": "assistant", "content": "import { UIComponentSources, UIComponentSinks } from '../';\nimport xs, { Stream } from 'xstream';\nimport { VNode } from '@cycle/dom';\nimport { S...
typescript
new_file
0
0
mit
29ad6f9bbb72868b3fc17f3c9693f180bad40b99
cyclic-ui/cyclic-ui,cyclic-ui/cyclic-ui
src/components/Avatar/index.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add action creators for fetching status Summary." }, { "role": "assistant", "content": "import {\n STATUS_SUMMARY_REQUEST,\n STATUS_SUMMARY_FAILURE,\n STATUS_SUMMARY_SUCCESS\n} from '../constants';\n\nexport interface Fetc...
typescript
new_file
0
1
mit
bd6c24b6a355520c234aad776a2d8bc3f6a433b3
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/actions/statusSummary.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create a dropzone directive to handle dropzone events.\n\nInitialize the dropzone element in the directive and add event\nhandlers to handle the 'sending' event which triggers on each\nfile upload.\n\nModify the 'sending' event to append...
typescript
new_file
0
1
bsd-3-clause
7ff81196eb4ea9a1b6c2be91ee68ea36b326df20
nimbis/s3commander,nimbis/s3commander,nimbis/s3commander,nimbis/s3commander
src/dropzone/DropzoneDirective.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Implement tests for HelperString methods" }, { "role": "assistant", "content": "import * as assert from \"assert\";\nimport * as mocha from \"mocha\";\nimport HelperString from \"../../helpers/string\";\n\ndescribe(\"HelperSt...
typescript
new_file
0
1
mit
50b19c611f31b716b0281b9fe9a4ef0c1711c3e3
crossroads-education/eta,crossroads-education/eta
test/helpers/string.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add initial google trends analysis script" }, { "role": "assistant", "content": "import * as wpdb from '../articles/wpdb'\nimport * as fs from 'fs-extra'\nconst googleTrends = require('google-trends-api')\n\nasync function ma...
typescript
new_file
0
2
mit
ec6eb9ebdea6480af4549f6dd6a2d2a5faf3b40e
OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,Our...
src/scripts/googleTrendsAnalysis.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add typings for Document class and its events" }, { "role": "assistant", "content": "import {Model} from \"./model\";\n\ntype JsObj = {[key: string]: any};\n\nexport interface Document {\n constructor(): void;\n\n clear...
typescript
new_file
0
0
bsd-3-clause
89a9441cd992f9e1e269d9edc276e4736390c2a2
KasperPRasmussen/bokeh,DuCorey/bokeh,jakirkham/bokeh,KasperPRasmussen/bokeh,KasperPRasmussen/bokeh,schoolie/bokeh,mindriot101/bokeh,jakirkham/bokeh,azjps/bokeh,aavanian/bokeh,mindriot101/bokeh,azjps/bokeh,ptitjano/bokeh,azjps/bokeh,timsnyder/bokeh,percyfal/bokeh,jakirkham/bokeh,quasiben/bokeh,justacec/bokeh,aavanian/bo...
bokehjs/src/coffee/api/interfaces/document.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for decorators and declaration emit from error free source" }, { "role": "assistant", "content": "// @strict: true\r\n// @declaration: true\r\n// @emitDecoratorMetadata: true\r\n// @experimentalDecorators: true\r\n\...
typescript
new_file
0
0
apache-2.0
e290559057f3c84b27c5057b4d12951d46c35863
SaschaNaz/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,minestarks/TypeScript,RyanCavanaugh/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,minestarks/TypeScript,kitsonk/TypeScript,kitsonk/TypeScript,kpreisser/TypeScript,kpreisser/TypeScript,alexeagle/TypeScript,alexeagle/TypeScript,Micro...
tests/cases/conformance/types/tuple/readonlyArraysAndTuples2.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Logger from './logger';\n\n// let alreadyWarned = false;\n\nexport function debugAssert(test, msg) {\n // if (!alreadyWarned) {\n // alreadyWarned = true;\n // Logger.warn(\"Don't leave debug assertions on in public builds...
typescript
edit
0
3
mit
e581b0f1a29fcf70964b9ad73ed482ac642f7e32
lbdm44/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,tildeio/glimmer,glimmerjs/glimmer-vm,tildeio/glimmer,lbdm44/glimmer-vm,chadhietala/glimmer,chadhietala/glimmer,chadhietala/glimmer,glimmerjs/glimmer-vm,chadhietala/glimmer,lbdm44/glimmer-vm
packages/glimmer-util/lib/assert.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add jest's mock feature and mocking state_tunnel to resolve test error" }, { "role": "assistant", "content": "var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype...
typescript
new_file
0
8
mit
1de7a769ebc87d83ba6231af585aa0a79ed4c859
scania/corporate-ui,scania/corporate-ui
__mocks__/@stencil/state-tunnel.tsx
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create component to better handle security.\n\nBecause sometime, we need to display some components\nonly when the user have some rights, create two component to handle\nauthentication and authorization: `OnLoggedIn` and `OnGranted`.\n\n...
typescript
new_file
null
null
mit
c385cb0adce1db3366cebe747b6ab22940ba76aa
kneelnrise/vep,kneelnrise/vep,kneelnrise/vep
src/main/client/app/framework/components/Security.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add test suite for jsonwebtoken package" }, { "role": "assistant", "content": "/** \n * Test suite created by Maxime LUCE <https://github.com/SomaticIT> \n * \n * Created by using code samples from https://github.com/auth0/n...
typescript
new_file
0
1
mit
d6fe5776f8d135b3293e5fa2f9d01f8417ffab9d
GlennQuirynen/DefinitelyTyped,MugeSo/DefinitelyTyped,jimthedev/DefinitelyTyped,muenchdo/DefinitelyTyped,abner/DefinitelyTyped,mareek/DefinitelyTyped,daptiv/DefinitelyTyped,onecentlin/DefinitelyTyped,stanislavHamara/DefinitelyTyped,alvarorahul/DefinitelyTyped,nitintutlani/DefinitelyTyped,jacqt/DefinitelyTyped,one-pieces...
jsonwebtoken/jsonwebtoken-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add shadow dom UT for gr-account-chip\n\nChange-Id: I0628297ff259e344b85e4b8ed7c399bf17b0cfa9" }, { "role": "assistant", "content": "/**\n * @license\n * Copyright (C) 2021 The Android Open Source Project\n *\n * Licensed und...
typescript
new_file
0
1
apache-2.0
6ca778ddea235e69d4d3122dada2672b4e8f8062
GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit
polygerrit-ui/app/elements/shared/gr-account-chip/gr-account-chip_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Revert \"remove old changelog validate script\"\n\nThis reverts commit 58d41f678959cfed96d30eb3b1b2c533a2eb47f9." }, { "role": "assistant", "content": "#!/usr/bin/env ts-node\n\nimport * as Path from 'path'\nimport * as Fs fr...
typescript
new_file
0
2
mit
6efd97e8e6a752004ae8964af8e3b377064e4909
kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,desktop/desktop,kac...
script/validate-changelog.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\njest.mock(\"react-redux\", () => ({\n connect: jest.fn()\n}));\n\nimport * as React from \"react\";\nimport { mount } from \"enzyme\";\nimport { FarmwarePage } from \"../index\";\nimport { FarmwareProps } from \"../../devices/interface...
typescript
edit
null
null
mit
73756b42c1de0737d7dcd59529e85bb4819f8373
gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,Rick...
webpack/farmware/__tests__/farmware_test.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add test file to check Typescript types for the .js dist" }, { "role": "assistant", "content": "// Test file to check Typescript types for the .js dist\nimport noUiSlider from 'dist/nouislider.js';\n\nconst element: HTMLEleme...
typescript
new_file
0
0
mit
e1df7e8969d491c46afae4d2c88d72d744b46721
leongersen/noUiSlider,leongersen/noUiSlider,leongersen/noUiSlider,leongersen/noUiSlider
tests/typescript.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add io for settings file" }, { "role": "assistant", "content": "// Copyright 2016 underdolphin(masato sueda)\n// \n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file ex...
typescript
new_file
0
1
apache-2.0
c4dd36443aaf629725ecfdfda2ebd8a03e179391
underdolphin/SoundRebuild,underdolphin/SoundRebuild,underdolphin/SoundRebuild
src/main/io/settings-io.ts
rejected_duplicate
Near-duplicate of sample 114577
true
[ { "role": "user", "content": "Write typescript code for the following: Add component to display the time until the next scheduled search." }, { "role": "assistant", "content": "import * as React from 'react';\nimport { connect } from 'react-redux';\nimport { RootState } from '../../types';\nimpo...
typescript
new_file
null
null
mit
2a850abace3d4e411ced4c0d588e5f3c48c1708e
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/SearchBar/TimeNextSearch.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add an example unit test" }, { "role": "assistant", "content": "import { distance, makeDivisibleBy } from \"./number\";\n\ndescribe(\"distance\", () => {\n it(\"does basic straight line distance\", () => {\n expect(distan...
typescript
new_file
0
1
unlicense
01d071046a9a8b131f8d5cadbc70295cb6da9e85
PartyPlanner64/PartyPlanner64,PartyPlanner64/PartyPlanner64,PartyPlanner64/PartyPlanner64
src/utils/number.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {SFC, MouseEvent} from 'react'\nimport OnClickOutside from 'react-onclickoutside'\nimport classnames from 'classnames'\n\nimport {Template} from 'src/types'\n\ninterface Props {\n templates: Template[]\n selected: Templa...
typescript
edit
null
null
mit
d73b3126c003dbf63dd4e60525cf55a34effe9db
nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,li-ang/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/inf...
ui/src/shared/components/TemplateDrawer.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Read in the emoji lookup table" }, { "role": "assistant", "content": "import * as Fs from 'fs'\nimport * as Path from 'path'\nimport * as Url from 'url'\n\nexport default class EmojiStore {\n /** Map from shorcut (e.g., +1) ...
typescript
new_file
0
2
mit
94220b146b1072ad7c68afa4f8505d44a1fd5c0a
artivilla/desktop,kactus-io/kactus,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,gengjiawen/desktop,BugTesterTest/desktops,desktop/desktop,shiftkey/desktop,kactus-io/kactus,BugTesterTest/desktops,desktop/desktop,j-f1/forked-desktop,desktop/desktop,hjobrien/desktop,hjobrien/desktop,gengjiawen/desktop,kactus-io/kac...
app/src/lib/dispatcher/emoji-store.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add simple tests to Hbar skeleton\n\nTicket: BG-23027" }, { "role": "assistant", "content": "import * as Promise from 'bluebird';\nimport { Hbar } from '../../../../src/v2/coins/';\n\nconst co = Promise.coroutine;\nimport { T...
typescript
new_file
0
1
apache-2.0
82a1d72f9bc26b4fa0c0ef224931cf3ab5922e38
BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS
modules/core/test/v2/unit/coins/hbar.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {PureComponent} from 'react'\nimport {getDataForCSV} from 'src/data_explorer/apis'\nimport VisHeaderTabs from 'src/data_explorer/components/VisHeaderTabs'\nimport {OnToggleView} from 'src/data_explorer/components/VisHeader...
typescript
edit
null
null
mit
91895dee9cb5bfa3b6d262ea9c2522c24c55df9e
influxdb/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,li-ang/influxdb,influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,li-ang/influxdb,influxdb/influxdb,mark-r...
ui/src/data_explorer/components/VisHeader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Introduce the basic patch types." }, { "role": "assistant", "content": "/**\n * VPatch: the core type indicating changes between two VTrees. \n */\n \nimport VTree = require('vtree');\n \n/** \n * Patches come in several flav...
typescript
new_file
null
null
mit
a60a101ea662409b32ed3f74b5ea4c96d2879ee4
tel/typescript-vdom
vpatch.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add 5 passing inline document tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from'../../../index'\nimport { InlineUpDocument } from'../../../SyntaxNodes/InlineUpDocument'\nimport { Plain...
typescript
new_file
0
1
mit
4f6b5b1cda03d11ec130440da1edff6385fe4c18
start/up,start/up
src/Test/Ast/InlineDocument/OutlineConventions.ts
rejected_duplicate
Near-duplicate of sample 114414
true
[ { "role": "user", "content": "Write typescript code for the following: Add passing table of contents HTML test" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../../index'\nimport { DocumentNode } from '../../../SyntaxNodes/DocumentNode'\nimport { Heading...
typescript
new_file
0
1
mit
010580f9d286ad941006346ee607022046653c6e
start/up,start/up
src/Test/Html/Config/TableOfContents.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create script for generating lexicons" }, { "role": "assistant", "content": "const nlp = require('compromise'); // tslint:disable-line\nconst verbConjugations: Lexicon[] = require('../../lexicon/verb-conjugations.json'); // t...
typescript
new_file
0
1
mit
3ecde6a2ecd7f5ee12b728a3a0fbcc912bcb0f8b
martinhartt/messagelint,martinhartt/messagelint,martinhartt/messagelint
src/scripts/generate-lexicon.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: feat(RandomStrategy): Add a strategy that randomly selects cards" }, { "role": "assistant", "content": "\nimport {IStrategy} from \"./strategy_runner\";\n\nexport class RandomStrategy implements IStrategy {\n public playCard...
typescript
new_file
0
1
mit
d93d3ebccf065c7c657ba9fdd13c7a33ed2205b4
grantpatten/battleline-ai,grantpatten/battleline-ai
src/random_strategy.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as gulp from 'gulp';\nimport * as gulpLoadPlugins from 'gulp-load-plugins';\nimport * as merge from 'merge-stream';\nimport * as reporter from 'postcss-reporter';\nimport * as stylelint from 'stylelint';\nimport * as doiuse fro...
typescript
edit
0
2
mit
c220163f372e2320eb8b00c5e473dd42e69b9bbb
davewragg/agot-spa,fr-esco/angular-seed,alexmanning23/uafl-web,rtang03/fabric-seed,liuy97/angular2-material-seed,ysyun/angular-seed-stub-api-environment,suigezi/angular2-seed,nie-ine/raeber-website,jelgar1/fpl-api,osulp/oe-ng2-seed,MgCoders/angular-seed,NathanWalker/angular-seed-advanced,maniche04/ngIntranet,dspies/boo...
tools/tasks/seed/css-lint.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test getRenderedData commit messages specifically" }, { "role": "assistant", "content": "import { GitgraphCore } from \"../index\";\n\ndescribe(\"Gitgraph.getRenderedData.commits\", () => {\n it(\"should use a default messag...
typescript
new_file
0
1
mit
2b8b253d2ad51c229df4cfac865b02bc2fa8f591
nicoespeon/gitgraph.js,nicoespeon/gitgraph.js,nicoespeon/gitgraph.js,nicoespeon/gitgraph.js
packages/gitgraph-core/src/__tests__/gitgraph.getRenderedData.commits.test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for jsdoc in navigation bar" }, { "role": "assistant", "content": "/// <reference path=\"fourslash.ts\"/>\r\n\r\n// @Filename: foo.js\r\n/////** @typedef {(number|string)} NumberLike */\r\n/////** @typedef {(string|n...
typescript
new_file
0
0
apache-2.0
89488f83171a0eb9118e825b86410cab88dca4c6
basarat/TypeScript,vilic/TypeScript,TukekeSoft/TypeScript,kpreisser/TypeScript,donaldpipowitch/TypeScript,erikmcc/TypeScript,Eyas/TypeScript,vilic/TypeScript,SaschaNaz/TypeScript,basarat/TypeScript,jeremyepling/TypeScript,mihailik/TypeScript,mihailik/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,nojvek/TypeScrip...
tests/cases/fourslash/navigationBarJsDoc.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add story for login form" }, { "role": "assistant", "content": "import { of, throwError } from 'rxjs';\n\nimport { NgModule } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { storiesO...
typescript
new_file
0
1
apache-2.0
9a4bd65b7e6e84a079493f47192ec07406e63a3f
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/home/login/login.component.stories.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add the bounds utility function." }, { "role": "assistant", "content": "import * as _ from 'lodash';\n\n/**\n * Computes the minimum and maxiumum value of `collection`.\n * This method complements the lodash\n * [http://devdo...
typescript
new_file
0
6
bsd-2-clause
3de3eb4a823f751c0ca6b1a4798a537510f22e01
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
src/math/math.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Make converting node 4 calls to promises easier." }, { "role": "assistant", "content": "\n\n\nexport function asPromise<T, A>(fn: (a: A, cb: (err: Error, data: T) => any) => any): (a: A) => Promise<T>;\nexport function asProm...
typescript
new_file
0
2
mit
5d5c99b4e618965f1fdc1113ac50983a1b0d665e
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
client/src/asPromise.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Radio, RadioGroup } from \"react-radio-group\";\n\nclass ReactRadioGroup extends React.Component<RadioGroup.RadioGroupProps> {\n handleChange: RadioGroup.RadioGroupProps['onChange'] = value =...
typescript
edit
null
null
mit
63211a477b67d9ffbcf62613dc2ab7a41e14130a
dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,rolandzwaga/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,ma...
types/react-radio-group/react-radio-group-tests.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as constants from \"../constants\";\n\nexport class NativescriptCloudExtensionService implements INativescriptCloudExtensionService {\n\n\tconstructor(private $extensibilityService: IExtensibilityService,\n\t\tprivate $logger: ...
typescript
edit
0
3
apache-2.0
09fd55a41a8b67d5b8eece5e77879d58ef18eba4
NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,NativeScript/nativescript-cli,NativeScript/nativescript-cli,NativeScript/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli
lib/services/nativescript-cloud-extension-service.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add passing inline document HTML test" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { InlineUpDocument } from '../../SyntaxNodes/InlineUpDocument'\n\n\ndescribe('An...
typescript
new_file
0
1
mit
4897de1318acac29d974cb0015528373d8b63188
start/up,start/up
src/Test/Html/InlineDocument.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test around setup component's reset method." }, { "role": "assistant", "content": "import { SetupComponent } from './setup.component';\nimport { Observable } from 'rxjs/Observable';\n\nlet fixture: SetupComponent;\n\nlet ...
typescript
new_file
0
1
bsd-2-clause
90a6117709aa6f8320c8e24287852879d631e582
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
front_end/src/app/setup/setup.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a high-order view component" }, { "role": "assistant", "content": "import * as React from 'react'\n\ninterface IUiViewProps extends React.Props<UiView> {\n id?: string\n}\n\nexport class UiView extends React.Component<IU...
typescript
new_file
null
null
mit
41a121deab7230ebcfef1ab2fc45af16eaf6dd36
BugTesterTest/desktops,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,BugTesterTest/desktops,gengjiawen/desktop,desktop/desktop,hjobrien/desktop,artivilla/desktop,hjobrien/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,say25/desktop,hjobr...
app/src/ui/ui-view.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add some smoke tests for timeout()\n\nCo-Authored-By: Rafael Oleza <2cf5b502deae2e387c60721eb8244c243cb5c4e1@users.noreply.github.com>" }, { "role": "assistant", "content": "import { timeout, sleep } from '../../src/lib/promi...
typescript
new_file
0
1
mit
6f4372c2d950bdcaa83ebda070c3c0a92a13d7f6
artivilla/desktop,kactus-io/kactus,shiftkey/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,say25/desktop,desktop/desktop,shiftkey/deskt...
app/test/unit/promise-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for geo map component" }, { "role": "assistant", "content": "import { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { GeoMapComponent } from './geo-map.component';\nimport { GeoMapD3 } from '../....
typescript
new_file
0
1
apache-2.0
04bc2e9995b417fd66530d1def93c7e068fbdd81
googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge
src/components/geo-map/geo-map.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add some basic structure for OnboardingTutorial test" }, { "role": "assistant", "content": "import { setupOnboardingTutorialRepo } from '../helpers/repositories'\n\ndescribe('OnboardingTutorial', () => {\n describe('isEditor...
typescript
new_file
0
1
mit
fbe4e89077f57b73f76641132098832835f64879
artivilla/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,say25/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,say25/des...
app/test/unit/onboarding-tutorial-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add login functionality with Passport JS" }, { "role": "assistant", "content": "///<reference path=\"../../typings/globals/passport/index.d.ts\"/>\n///<reference path=\"../../typings/globals/passport-local/index.d.ts\"/>\n///...
typescript
new_file
0
4
mit
69663a63140981655d282871c76c515aa5a6d938
shavindraSN/examen,shavindraSN/examen,shavindraSN/examen
server/routes/passport.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for AccordionItem's className and expandedClassName props" }, { "role": "assistant", "content": "import * as React from 'react';\nimport { cleanup, render } from 'react-testing-library';\nimport { default as Ac...
typescript
new_file
null
null
mit
e2a71ee2882c2c66c7b2dba4507364e792d6c300
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/components/AccordionItem.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add test with ChangeDetectionStrategy.OnPush on an host component" }, { "role": "assistant", "content": "/*\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMIT...
typescript
new_file
0
1
mit
f87a85522495a367fda7021172a5c03b211284bb
mpalourdio/ng-http-loader,mpalourdio/ng-http-loader,mpalourdio/ng-http-loader
src/test/components/ng-http-loader.component.on-push.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for argument named 'func'" }, { "role": "assistant", "content": "// \"Fatal error: exception Parsing.Parse_error\"\n/*@ foo :: (func:number) => number */\nfunction foo(func:number) {\n return func\n}\n\n// SAFE\n...
typescript
new_file
0
1
bsd-3-clause
c8fe5a5b94139f9998d1da856e791cb80fa1b6e6
UCSD-PL/RefScript,UCSD-PL/RefScript,UCSD-PL/RefScript
tests/pos/misc/func-arg.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add 2 passing and 1 failing en dash test" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { PlainTextNode } fro...
typescript
new_file
0
1
mit
7c39eaae7e7bd3410a02dd0dec3336429fa36bea
start/up,start/up
src/Test/Ast/Dash.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add e2e test for oauth-client component" }, { "role": "assistant", "content": "import { browser, element, by, $ } from 'protractor';\n\ndescribe('Project e2e test', () => {\n\n const username = element(by.id('username'));\...
typescript
new_file
0
1
apache-2.0
9297ece17633e28fa2bb97dc1f44d2df3958cd8d
RADAR-CNS/ManagementPortal,RADAR-CNS/ManagementPortal,RADAR-CNS/ManagementPortal,RADAR-CNS/ManagementPortal,RADAR-CNS/ManagementPortal
src/test/javascript/e2e/entities/oauth-client.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Reduce scope of home component unit tests." }, { "role": "assistant", "content": "import {\n beforeEachProviders,\n describe,\n expect,\n it,\n inject,\n} from '@angular/core/testing';\nimport { Inject, Injector } from '...
typescript
new_file
0
2
mit
aa247ba4458c734a77209630e303a140f5cf1594
coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer,coshx/portfolio_optimizer
src/app/home/home.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for image-row" }, { "role": "assistant", "content": "import {ImageDocument} from 'idai-components-2';\nimport {ImageRow} from '../../../../../app/core/images/row/image-row';\n\n\ndescribe('ImageRow', () => {\n\n...
typescript
new_file
0
1
apache-2.0
c77498da9ee7bcfbbc2129a3bec6d3311cfdd6ed
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
test/unit/core/images/row/image-row.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add action to update database search term." }, { "role": "assistant", "content": "import { updateValue } from './updateValue';\nimport { UPDATE_DB_SEARCH_TERM } from '../constants';\n\nexport interface UpdateDatabaseSearchTer...
typescript
new_file
0
0
mit
958f8cdaa054f333b604020d272c0fd4822955aa
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/actions/databaseFilterSettings.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for isMobileV3PlayerAPI" }, { "role": "assistant", "content": "import { PlayerAPI } from 'bitmovin-player';\nimport { isMobileV3PlayerAPI, MobileV3PlayerAPI, MobileV3PlayerEvent } from '../src/ts/mobilev3player...
typescript
new_file
0
1
mit
c9167df45d9563d817e9d8d5be580e0ab0c682a7
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
spec/mobilev3playerapi.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Implement expression support (without UI)" }, { "role": "assistant", "content": "import RenderingRequest from './render-request'\nimport {Clip} from '../../project'\nimport {ParameterValueTypes} from '../../plugin-support/typ...
typescript
new_file
0
1
mit
8696943a9c3fc4e235b0a25370ae61984fa40792
Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir
src/delir-core/src/renderer/pipeline/ExpressionContext.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test update for resolved bug" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts'/>\r\n\r\n////function foo<T>(x: T) {\r\n//// return x;\r\n////}\r\n\r\n////function other2<T extends Date>(arg: T) ...
typescript
new_file
0
0
apache-2.0
f0b7dfd49389f0ecba9ee6ccab0825a5fa5fddef
hippich/typescript,mbebenita/shumway.ts,mbebenita/shumway.ts,fdecampredon/jsx-typescript-old-version,fdecampredon/jsx-typescript-old-version,hippich/typescript,popravich/typescript,mbebenita/shumway.ts,hippich/typescript,popravich/typescript,popravich/typescript,fdecampredon/jsx-typescript-old-version
tests/cases/fourslash/quickInfoForIndexerResultWithConstraint.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add new component for rendering branches with ahead/behind info" }, { "role": "assistant", "content": "import * as React from 'react'\n\nimport { Octicon, OcticonSymbol } from '../octicons'\nimport { HighlightText } from '../...
typescript
new_file
null
null
mit
b0dff0fbfd89912aa84c82d8c3348c72f0974743
desktop/desktop,say25/desktop,say25/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,artivilla/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,...
app/src/ui/history/compare-branch-list-item.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Test case for nested binding element's rename" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts' />\n\n////interface MultiRobot {\r\n//// name: string;\r\n//// skills: {\r\n//// [|primary|]...
typescript
new_file
0
0
apache-2.0
2e44bccb36566596a15a7c1b9763ddb1b88afc7b
synaptek/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,thr0w/Thr0wScript,ziacik/TypeScript,erikmcc/TypeScript,kitsonk/TypeScript,synaptek/TypeScript,microsoft/TypeScript,ziacik/TypeScript,TukekeSoft/TypeScript,TukekeSoft/TypeScript,erikmcc/TypeScript,alexeagle/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScr...
tests/cases/fourslash/renameDestructuringNestedBindingElement.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add stop event propagation behavior." }, { "role": "assistant", "content": "// uses typings/angular\n\nmodule rl.utilities.behaviors.stopEventPropogation {\n\t'use strict';\n\n\texport var moduleName: string = 'rl.utilities.b...
typescript
new_file
0
1
mit
70bb3c2f921a767b43e5792a13709ca2d83c6d63
SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,csengineer13/TypeScript-Angular-Utilities,csengineer13/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities
source/behaviors/stopEventPropagation/stopEventPropagation.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit dedicated tests for WavPack, ensure MIME-tpe is used once." }, { "role": "assistant", "content": "import {} from \"mocha\";\nimport {assert} from \"chai\";\nimport * as mm from \"../src\";\nimport * as fs from \"fs-e...
typescript
new_file
0
1
mit
ba11c26e9383c2f3f3f6589def1dddee01e590d0
Borewit/music-metadata,Borewit/music-metadata
test/test-wavpack.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: test(vgPlaybackButton): Raise coverage. Initial unit tests\n\n#1 Raise coverage to 100%" }, { "role": "assistant", "content": "import {it, describe, expect, beforeEach, inject} from 'angular2/testing';\nimport {VgPlaybackButt...
typescript
new_file
0
1
mit
93564c7d2efe895aeebd38a9cac578957e9c89c6
videogular/videogular2,videogular/videogular2,amitkumarmahajan/videogular2,kwarismian/videogular2,videogular/videogular2,kwarismian/videogular2,kwarismian/videogular2,amitkumarmahajan/videogular2,amitkumarmahajan/videogular2
src/vg-controls/vg-playback-button/vg-playback-button.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for add-assignment component" }, { "role": "assistant", "content": "import {\n beforeEachProviders,\n describe,\n inject,\n it\n} from '@angular/core/testing';\n\nimport { AddAssignmentComponent } from './add-as...
typescript
new_file
0
1
mit
55fa13d1b34191edbddf02606d9ed8fb5ba583e6
bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder
src/app/add-assignment/add-assignment.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {\n NavLink,\n NavLinkProps,\n match,\n Link,\n RouteComponentProps\n} from 'react-router-dom';\nimport * as H from 'history';\n\nconst getIsActive = (extraProp: string) => (match: match, loc...
typescript
edit
null
null
mit
ab0e2d66e0779f07eeaac1b25322ac4e5190e97a
georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped
types/react-router-dom/react-router-dom-tests.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add reducer for responding to CONNECT_ACCOUNT_SUCCESS" }, { "role": "assistant", "content": "import { MaybeAccount } from '../types';\nimport { ConnectAccountAction } from '../actions/connectAccount';\nimport { CONNECT_ACCOUN...
typescript
new_file
0
2
mit
3339ab5f4a64da28abb44c3cd3f4c6031fe9b597
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/reducers/account.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add outline syntax node class" }, { "role": "assistant", "content": "import { SyntaxNode } from '../SyntaxNodes/SyntaxNode'\nimport { PlainTextNode } from '../SyntaxNodes/PlainTextNode'\nimport { RichSyntaxNode } from '../Syn...
typescript
new_file
0
0
mit
40c03e5c12223b199f69f5dcccce8d3cf92d7d28
start/up,start/up
src/SyntaxNodes/OutlineSyntaxNode.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create an image map to make it more configurable which Editor to which image" }, { "role": "assistant", "content": "import {\n ANDROIDSTUDIO,\n ATOM,\n CHROME,\n ECLIPSE,\n SUBLIMETEXT2,\n SUBLIMETEXT3,\n VIM,\n VSCOD...
typescript
new_file
0
0
bsd-3-clause
a312fb4075ac3d2029172f6894aa4dd1bac2f074
wakatime/desktop,wakatime/wakatime-desktop,wakatime/desktop,wakatime/wakatime-desktop,wakatime/desktop
src/config/editorsImgMap.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: [material] Add table cell with disabled bottom border" }, { "role": "assistant", "content": "import { withStyles } from '@material-ui/core/styles';\nimport { TableCell } from '@material-ui/core';\nimport * as React from 'reac...
typescript
new_file
null
null
mit
452327be41440ebd0c74a4040a1b4ef7660c206d
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
packages/material/src/complex/NoBorderTableCell.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add a helper method for recursing through all menu items in a menu" }, { "role": "assistant", "content": "import { Menu, MenuItem } from 'electron'\n\n/**\n * Returns an iterator that traverses the menu and all\n * submenus a...
typescript
new_file
0
4
mit
761bdd75c8ddad48bb66fcbc9a81eddff120ced6
kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,say25/desktop,desktop/desktop,desktop/desktop,say25/desktop,...
app/src/main-process/menu/get-all-menu-items.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add failing unordered list test" }, { "role": "assistant", "content": "/// <reference path=\"../../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../../typings/chai/chai.d.ts\" />\n\nimport { expect } from '...
typescript
new_file
0
1
mit
7fdeebf2e92c6860a04680cbeefd7a369a22a464
start/up,start/up
src/Test/Ast/EdgeCases/UnorderedList.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test case for completion when destructuring from a union type." }, { "role": "assistant", "content": "/// <reference path='fourslash.ts'/>\r\n\r\n////interface I {\r\n//// x: number;\r\n//// y: string;\r\n//// z:...
typescript
new_file
0
0
apache-2.0
f7ba7188f3d9b54126605e4ae88105db702cbdd2
billti/TypeScript,jwbay/TypeScript,MartyIX/TypeScript,jbondc/TypeScript,enginekit/TypeScript,nojvek/TypeScript,HereSinceres/TypeScript,jwbay/TypeScript,moander/TypeScript,chuckjaz/TypeScript,ziacik/TypeScript,weswigham/TypeScript,JohnZ622/TypeScript,mmoskal/TypeScript,erikmcc/TypeScript,AbubakerB/TypeScript,jeremyeplin...
tests/cases/fourslash/completionListInObjectBindingPattern13.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Undo remove static desc tests" }, { "role": "assistant", "content": "/* tslint:disable:no-unused-variable */\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { AcEllipseStaticDescComponent ...
typescript
new_file
0
1
mit
046da41166cfc5248c6e1bd711f5c946dc62af65
TGFTech/angular-cesium,TGFTech/angular-cesium,TGFTech/angular-cesium
src/angular-cesium/components/ac-static-circle-desc/ac-static-circle-desc.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a basic alpha-beta evaluation function" }, { "role": "assistant", "content": "export function alphaBeta<TNode>(node: TNode, depth: number, alpha: number,\n beta: number, isMaximizingPlayer: boolean, evaluate: (node: TNod...
typescript
new_file
0
1
mit
4c6b639e0ceda039ef2b9545eabb75d96a61f7ae
artfuldev/tictactoe-ai,artfuldev/tictactoe-ai
src/search/alphaBeta.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add border constans of Bootstrap" }, { "role": "assistant", "content": "// Imported from https://github.com/twbs/bootstrap/blob/v4.3.1/scss/_variables.scss\n\nimport { gray } from './colors'\n\nexport const border = {\n widt...
typescript
new_file
0
0
mit
a8db9a3b642e5bc2d50496f2352d2529e7a69b32
crowi/crowi,crowi/crowi,crowi/crowi
client/constants/components.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for join methods\n\nSigned-off-by: Will Soto <willsoto@users.noreply.github.com>\n\n#1431" }, { "role": "assistant", "content": "import { Person } from '../fixtures/person';\nimport { raw } from '../../..';\n\n(asyn...
typescript
new_file
0
1
mit
703defba62b675793e886e930df2d5552d443c5b
Vincit/objection.js,Vincit/objection.js,Vincit/objection.js
tests/ts/query-builder-api/join-methods.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: [frontend] Add an overflow on hover Vue directive\n\nSimilar to the ko binding we have to only show scrollbars when mouse is hovering over an element" }, { "role": "assistant", "content": "// Licensed to Cloudera, Inc. under ...
typescript
new_file
0
5
apache-2.0
ef24732d51a19f174b8025836dc23ad47b7a0f51
cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamo...
desktop/core/src/desktop/js/components/directives/overflowOnHoverDirective.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nexport const DEFAULT_APP_NAME = 'APP';\n\n// Update both together, and update app / package.json / devDeps / electron\nexport const DEFAULT_ELECTRON_VERSION = '12.0.2';\nexport const DEFAULT_CHROME_VERSI...
typescript
edit
0
0
bsd-2-clause
83b1c102694d394e1212343438b07ec57fd265a3
jiahaog/Nativefier,jiahaog/Nativefier,jiahaog/Nativefier
src/constants.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add Api setAccessToken method test" }, { "role": "assistant", "content": "import { Api } from '../../src/api'\n\ndescribe('Api class', () => {\n let api = new Api();\n\n beforeEach(() => {\n api = new Api();\n });\n\n ...
typescript
new_file
0
1
mit
d8bf0eb019bcefa6d7cb5e637df81f58cf6ae623
y0za/trumpet,y0za/trumpet,y0za/trumpet,y0za/trumpet
__tests__/api/index.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test whether undeterminable types throw errors" }, { "role": "assistant", "content": "import {jsonMember, jsonObject, TypedJSON} from '../src';\n\ndescribe('errors', () => {\n class CustomType {\n }\n\n it('should be...
typescript
new_file
0
1
mit
8accf9e0fcfa3142f4c01495b5dcb2f8d8c0df0b
JohnWhiteTB/TypedJSON,JohnWhiteTB/TypedJSON,JohnWeisz/TypedJSON,JohnWeisz/TypedJSON,JohnWhiteTB/TypedJSON
spec/errors.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Prepare package for npm distribution" }, { "role": "assistant", "content": "import { writeFileSync, readFileSync } from 'fs';\n\nconst packageJson = JSON.parse(readFileSync('./package.json').toString());\ndelete packageJson.d...
typescript
new_file
0
0
mit
eb1fc336fa819437c319e0b11aab1807329c0f2c
czeckd/angular2-dual-listbox,czeckd/angular-dual-listbox,czeckd/angular2-dual-listbox,czeckd/angular-dual-listbox,czeckd/angular-dual-listbox,czeckd/angular2-dual-listbox
tools/packager.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { RouterConfig } from '@angular/router';\n\nimport { CustomerComponent } from './customer.component';\nimport { CustomerOrdersComponent } from './customerOrders.component';\nimport { CustomerDetailsComponent } from './customerD...
typescript
edit
0
0
mit
9dc66f26d0620ee84442ba1fd13381d854472a02
DanWahlin/Angular-JumpStart,m-williams/Angular2-JumpStart,DanWahlin/Angular-JumpStart,DanWahlin/Angular2-JumpStart,m-williams/Angular2-JumpStart,DanWahlin/Angular2-JumpStart,m-williams/Angular2-JumpStart,DanWahlin/Angular2-JumpStart,DanWahlin/Angular-JumpStart
src/app/+customer/customer.routes.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add utility methods for extensions and copying" }, { "role": "assistant", "content": "export function shallowCopy(target: Object, source: Object) {\n for (var key in source)\n if (source.hasOwnProperty(key))\n ta...
typescript
new_file
0
3
mit
aa52f58bcf69c356ca28524168741d855557464e
cyclic-ui/cyclic-ui,cyclic-ui/cyclic-ui
src/utils/extend.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: feat(autocomplete): Create container directive for items" }, { "role": "assistant", "content": "/*\n MIT License\n\n Copyright (c) 2017 Temainfo Sistemas\n\n Permission is hereby granted, free of charge, to any person obtaini...
typescript
new_file
0
1
mit
408c7d5cbee4492361e9122f68301e4e00ee7f1b
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
src/autocomplete/autocomplete-container-directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n ComponentFixture,\n TestBed\n} from '@angular/core/testing';\nimport {\n ListState,\n ListStateDispatcher,\n ListStateModel\n} from '../list/state';\nimport { SkyListToolbarModule } from './';\nimport {\n ListToolbarTes...
typescript
edit
0
1
mit
2fa1d649378af0317583582276f3e33903f73c9d
Blackbaud-LuisBello/microedge-skyux2-contrib,Blackbaud-ChrisFranz/microedge-skyux2-contrib,Blackbaud-ChrisFranz/microedge-skyux2-contrib,blackbaud-joshgerdes/microedge-skyux2-contrib,Blackbaud-KristinaDurivage/microedge-skyux2-contrib,Blackbaud-LuisBello/microedge-skyux2-contrib,blackbaud-joshgerdes/microedge-skyux2-co...
src/modules/list-toolbar/list-toolbar.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add file to store response formats to slack API calls" }, { "role": "assistant", "content": "import { WebAPICallResult } from \"@slack/web-api\";\n\n/**\n * Taken from https://api.slack.com/methods/team.info\n */\nexport inte...
typescript
new_file
0
0
apache-2.0
d14858d32d187797cfbeff7f0963a48a8451da2a
matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack
src/SlackResponses.ts
accepted
null
true