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 * as fs from 'fs';\nimport * as jsyaml from 'js-yaml';\n\nexport function readTypeIDs(path): Object {\n return jsyaml.load(fs.readFileSync(path).toString());\n}\n\nexport function readToken(path): string {\n return fs.readFileS...
typescript
edit
0
1
mit
d4a0f2027e9bd72ac9de9dcefd04b4f0bd319f9d
Ionaru/MarketBot
src/helpers/readers.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\".d.ts\"/>\n\"use strict\";\n\n// this call must be first to avoid requiring c++ dependencies\nrequire(\"./common/verify-node-version\").verifyNodeVersion(require(\"../package.json\").engines.node);\n\nrequire(\"./bo...
typescript
edit
0
2
apache-2.0
562fdbba10ad9af369a099704fc5187cffca7eee
NativeScript/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,NathanaelA/nativescript-cli,tsvetie/nativescript-cli,NativeScript/nativescript-cli,tsvetie/nativescript-cli,tsvetie/nativescript-cli,NathanaelA/nativ...
lib/nativescript-cli.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\nimport {connect} from 'react-redux';\nimport Top from '../components/Top';\nimport {closeAllTask, openAllTask, sync, updateCommonConfig} from '../actions/index';\nimport RootState from '../states/index';\ni...
typescript
edit
0
1
mit
ed291560d73a15b8bb802db11c44358b73f898e6
tadashi-aikawa/owlora,tadashi-aikawa/owlora,tadashi-aikawa/owlora
src/containers/TopContainer.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nimport AppActionContext from \"../components/AppLayout/AppActionContext\";\nimport { Provider as DateProvider } from \"../components/Date/DateContext\";\nimport { FormProvider } from \"../components/...
typescript
edit
null
null
bsd-3-clause
f42b6590f984423ef98d2187712788e77ea05dc5
maferelo/saleor,mociepka/saleor,mociepka/saleor,maferelo/saleor,mociepka/saleor,maferelo/saleor
saleor/static/dashboard-next/storybook/Decorator.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport type { PluginCreator } from 'postcss';\n\nexport const cssDeclarationSorter: PluginCreator<{\n /**\n Provide the name of one of the built-in sort orders or a comparison function that is passed to `Array.sort`.\n\n @default 'al...
typescript
edit
0
0
isc
72e04790fd4fb060444eb13cbbd5e72906f703ba
Siilwyn/css-declaration-sorter
src/main.d.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nlet platform: any;\n\n// return the current platform if there is one,\n// otherwise open up a new platform\nexport function getPlatform(appId: string, appCode: string) {\n if (platform) return platform;\n\n platform = new H.servic...
typescript
edit
0
2
mit
d6fa0136b4e6aeafa8f244e04cde8e5d2afa7a9b
Josh-ES/react-here-maps,Josh-ES/react-here-maps
src/utils/get-platform.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport lonlat from '@conveyal/lonlat'\n\nimport {PROJECTION_ZOOM_LEVEL} from 'lib/constants'\n\nexport default function calculateGridPoints(\n bounds: CL.Bounds,\n zoom = PROJECTION_ZOOM_LEVEL\n): number {\n const topLeft = lonlat.to...
typescript
edit
0
1
mit
9eccb86b6f34abd145ebb9b107787953a8bc0adb
conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui
lib/utils/calculate-grid-points.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// We will use an array as if it isn't associative\n\nexport class HashMap<T> {\n private _arr: T[] = [];\n\n set(key: string, val: T): void {\n const hash = this._hash(key);\n this._arr[hash] = val;\n }\n\n get(key: string): ...
typescript
edit
0
1
mit
c67ccf97af318e15b92c50827e256ba9180f3d99
hAWKdv/DataStructures,hAWKdv/DataStructures
typescript/collections/hash-map.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { ComponentFixture, getTestBed, TestBed } from '@angular/core/testing';\n\n\n/**\n * Sources from:\n * https://github.com/topnotch48/ng-bullet-workspace\n * https://blog.angularindepth.com/angular-unit-testing-performance-34363...
typescript
edit
0
1
mit
4fde183a6ae218751829d85d3b0bc2f0f7977034
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
test/helpers/fast-test-setup.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/**\n * Created by Reto Baumgartner (rfbaumgartner) on 05.07.17.\n */\n\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { FassungComponent } from './fassung.component';\n\n@NgModule({\...
typescript
edit
0
0
mit
076796396253a9605ee05ab01657dc21002f1ffa
nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website
src/client/app/fassung/fassung-routing.module.ts
rejected_duplicate
Near-duplicate of sample 115432
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for GetImage pipe" }, { "role": "assistant", "content": "import { GetImagePipe } from './getImage.pipe'\r\n\r\ndescribe('Testing for GetImagePipe', ()=>{\r\n let pipe: GetImagePipe;\r\n\r\n beforeEach(()=>...
typescript
new_file
0
1
mit
c8959e289b8a12f6c5f5f35b672a65f977c3cc09
fedorax/angular-basic,fedorax/angular-basic,fedorax/angular-basic
myFirstApps/src/app/pipe/getImage.pipe.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a class for representing the source-value of a picture" }, { "role": "assistant", "content": "import { dirname, extname } from \"path\";\nimport { Document } from \"../Document\";\nimport { Asset } from \"./Asset\";\nimpo...
typescript
new_file
0
5
mit
3c2c992a1b785ab9b6cfa3ae0d9f082683c291c0
manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter
src/System/Documents/Assets/PictureSource.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add e2e test for global evaluation in Console\n\nThis patch ports the following layout test:\nhttps://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/web_tests/http/tests/devtools/console/console-eval-global.js;drc=7...
typescript
new_file
0
1
bsd-3-clause
19c6bc0fe056a2430b0530d16bbf980a14b7b65b
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
test/e2e/console/console-eval-global_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add description list parser file" }, { "role": "assistant", "content": "import { TextConsumer } from '../TextConsumer'\nimport { UnorderedListNode } from '../../SyntaxNodes/UnorderedListNode'\nimport { UnorderedListItemNode }...
typescript
new_file
0
0
mit
92806a890fa78a8e9ad455d5bedf14cb9bd7259f
start/up,start/up
src/Parsing/Outline/ParseDescriptionList.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Make severity configuration its own component" }, { "role": "assistant", "content": "import React, {SFC} from 'react'\nimport uuid from 'uuid'\nimport ColorDropdown, {Color} from 'src/logs/components/ColorDropdown'\n\ninterfa...
typescript
new_file
null
null
mit
492bc6ab6a75bfd5c4d03134c16dfbe9b8de25a2
nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,li-ang/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,...
ui/src/logs/components/SeverityConfig.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n///<reference path=\"../tether/tether.d.ts\" />\n///<reference path=\"tether-drop.d.ts\" />\n\nimport 'tether-drop';\n\nvar yellowBox = document.querySelector(\".yellow\");\nvar greenBox = document.querySelector(\".green\");\n\nvar d = ...
typescript
edit
0
1
mit
605baa5cb44469c9bd6d2caa70b6b9812d500224
psnider/DefinitelyTyped,AgentME/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,abner/DefinitelyTyped,martinduparc/DefinitelyTyped,abner/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,slavomirvojacek/DefinitelyTyped,daptiv/DefinitelyTyped,slavomirvojacek/adbrain-typescript-definitions,Penryn/Definite...
tether-drop/tether-drop-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a test for quick-info" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts' />\r\n\r\n//// var name1 = undefined, id1 = undefined;\r\n//// var /*obj1*/obj1 = {/*name1*/name1, /*id1*/id1};\r\n//// var ...
typescript
new_file
0
0
apache-2.0
b3078f265ee65c0538d80e11173a327625817523
matthewjh/TypeScript,pcan/TypeScript,suto/TypeScript,RReverser/TypeScript,mihailik/TypeScript,ionux/TypeScript,fabioparra/TypeScript,zmaruo/TypeScript,webhost/TypeScript,mihailik/TypeScript,enginekit/TypeScript,moander/TypeScript,SaschaNaz/TypeScript,mszczepaniak/TypeScript,enginekit/TypeScript,thr0w/Thr0wScript,ionux/...
tests/cases/fourslash/quickInfoForShorthandProperty.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"minimist.d.ts\" />\n\nimport minimist = require('minimist');\nimport Opts = minimist.Opts;\n\nvar num: string;\nvar str: string;\nvar strArr: string[];\nvar args: string[];\nvar obj: minimist.ParsedArgs;\nvar opts:...
typescript
edit
0
2
mit
57888a3a478e3cb0d0cb10c778f794df99c0a1af
slavomirvojacek/DefinitelyTyped,onecentlin/DefinitelyTyped,jasonswearingen/DefinitelyTyped,chrootsu/DefinitelyTyped,gandjustas/DefinitelyTyped,wilfrem/DefinitelyTyped,johan-gorter/DefinitelyTyped,musicist288/DefinitelyTyped,Zzzen/DefinitelyTyped,magny/DefinitelyTyped,johan-gorter/DefinitelyTyped,benliddicott/Definitely...
minimist/minimist-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add 4 failing curly bracket tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { PlainTextNode } from '../....
typescript
new_file
0
1
mit
37503183f6f27bcde42d8bf38f89ff6a8085a3c8
start/up,start/up
src/Test/Ast/CurlyBracketed.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a basic test of the QueryKeyMaker." }, { "role": "assistant", "content": "import { QueryKeyMaker } from '../queryKeyMaker';\nimport { CacheKeyNode } from '../optimism';\nimport gql from 'graphql-tag';\nimport { DocumentNo...
typescript
new_file
0
3
mit
49d5a6d36e8c28175a3135121d0016d1e0cce70c
apollostack/apollo-client,apollographql/apollo-client,apollostack/apollo-client,apollostack/apollo-client,apollographql/apollo-client
packages/apollo-cache-inmemory/src/__tests__/queryKeyMaker.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add available spellchecker languages as test helper" }, { "role": "assistant", "content": "/**\r\n * The list is based on Electron v17.0.1\r\n *\r\n * Call to session.availableSpellCheckerLanguages\r\n * https://www.electronj...
typescript
new_file
0
1
mit
9ad742dc1398944bb3e470b51ecb4d0a38438152
shiftkey/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop
app/test/helpers/menus/available-spellchecker-languages-helper.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: chore: Add interface file for `navigator.share`" }, { "role": "assistant", "content": "/**\n * Parameters for {@link Navigator#share}\n */\ninterface NavigatorShareParams {\n\t/**\n\t * The title to share\n\t */\n\ttitle?: st...
typescript
new_file
0
0
mit
4ac76f85e88326ccdc59963bb0d9f70533ea90eb
Chan4077/angular-rss-reader,Chan4077/angular-rss-reader,Chan4077/angular-rss-reader
src/app/NavigatorShare.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add TS Kahn's topological sorting" }, { "role": "assistant", "content": "import { Graph } from '../graph';\n\n// This doesn't check if the graph is acyclic!\nfunction topologicalSort<T>(g: Graph<T>): T[] {\n g = g.copy();\n ...
typescript
new_file
0
1
mit
1e3887f0ba70ccd28923ce79cc6d3b4a78a877a5
hAWKdv/DataStructures,hAWKdv/DataStructures
typescript/graphs/algorithms/kahns-topological-sort.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for onOpen" }, { "role": "assistant", "content": "import flatpickr from \"index\";\nimport { Options } from \"types/options\";\nimport { Instance } from \"types/instance\";\n\nflatpickr.defaultConfig.animate = f...
typescript
new_file
0
1
mit
25e361311fbb0e2690942fc77c3511dba7234f74
chmln/flatpickr,chmln/flatpickr
src/__tests__/hooks.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for summarization directive" }, { "role": "assistant", "content": "import { ComponentFixture, TestBed } from '@angular/core/testing';\r\nimport { SummarizationDirective } from './summarization.directive';\r\nimport ...
typescript
new_file
0
1
apache-2.0
1359fdd379fc81fa1cac5e257514ea58a589e810
googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge
src/directives/summarization/summarization.directive.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for semicolon detection in auto-import" }, { "role": "assistant", "content": "/// <reference path=\"fourslash.ts\" />\n\n// @Filename: /a.ts\n////export function foo() {}\n\n// @Filename: /b.ts\n////const x = 0\n////...
typescript
new_file
0
0
apache-2.0
6282c9fb5e2097c86f44ee67da872423df1c1d5c
alexeagle/TypeScript,kpreisser/TypeScript,microsoft/TypeScript,minestarks/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,nojvek/TypeScript,microsoft/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,microsoft/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,SaschaNa...
tests/cases/fourslash/completionsImport_noSemicolons.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for Card component" }, { "role": "assistant", "content": "import { By } from '@angular/platform-browser';\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { DebugElement } from ...
typescript
new_file
0
1
mit
2ae6dd908592fe2abae4bdeb25306bc5b35e65e4
joeattardi/scrum-deck,joeattardi/scrum-deck,joeattardi/scrum-deck
src/app/card/card.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: [frontend] Add an execution-analysis web component for logs and errors" }, { "role": "assistant", "content": "// Licensed to Cloudera, Inc. under one\n// or more contributor license agreements. See the NOTICE file\n// distri...
typescript
new_file
0
1
apache-2.0
33bec79debe90f47559065138fc387c1422e0958
cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue
desktop/core/src/desktop/js/webComponents/ExecutionAnalysis.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add an initial dialog for the schannel error" }, { "role": "assistant", "content": "import * as React from 'react'\nimport { Dialog, DialogContent, DialogFooter } from '../dialog'\nimport { OkCancelButtonGroup } from '../dial...
typescript
new_file
null
null
mit
38e405b5a368baa6bd92afbf0190ad971bad52c4
say25/desktop,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,desktop/desktop,say25/desktop,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,say25/deskt...
app/src/ui/schannel-no-revocation-check/schannel-no-revocation-check.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Change column type VARCHAR(255) -> TEXT" }, { "role": "assistant", "content": "import * as Sequelize from \"sequelize\"\n\nconst migration = {\n up: async (queryInterface: Sequelize.QueryInterface) => {\n await queryInter...
typescript
new_file
0
1
mit
b46862560627ece8701871cce5b15e918ab02de0
sketchglass/respass,sketchglass/respass,sketchglass/respass,sketchglass/respass
migrations/20160713080742-change-message-text-limit.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for knockout.rx 1.0\n// Project: https://github.com/Igorbek/knockout.rx\n// Definitions by: Igor Oleinikov <https://github.com/Igorbek>\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\n\n/// <referenc...
typescript
edit
0
0
mit
dc4d81a6bda11013ce1e1752a53a8cf00606adfd
davidpricedev/DefinitelyTyped,musically-ut/DefinitelyTyped,minodisk/DefinitelyTyped,daptiv/DefinitelyTyped,samdark/DefinitelyTyped,syuilo/DefinitelyTyped,evandrewry/DefinitelyTyped,mrk21/DefinitelyTyped,mattanja/DefinitelyTyped,duncanmak/DefinitelyTyped,wkrueger/DefinitelyTyped,dariajung/DefinitelyTyped,miguelmq/Defini...
knockout.rx/knockout.rx.d.ts
rejected_duplicate
Near-duplicate of sample 112464
true
[ { "role": "user", "content": "Write typescript code for the following: Add commented-out input instruction test file" }, { "role": "assistant", "content": "/*\n\nimport { expect } from 'chai'\nimport Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { PlainTex...
typescript
new_file
0
0
mit
4190cf945c2a031574d9229a15ff196a0a1b51ad
start/up,start/up
src/Test/Ast/InputInstructionNode.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\n\nvscode.commands.registerCommand('extension.helloWorld', () => {\n\tvscode.window.showInformationMessage('Hello World!');\n});\n\nvscode.languages.registerCompletionItemProvider('markdown', {\n\tprovi...
typescript
edit
0
1
mit
12c8bf1bff18e4a3f2163af1aa74823a02932350
georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped
types/vscode/vscode-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Write a test for the UserViewModel." }, { "role": "assistant", "content": "import { expect } from './support';\nimport { createMockStore } from './lib/mock-store';\nimport { Store } from '../src/lib/store';\nimport { User, Pr...
typescript
new_file
0
1
bsd-3-clause
0e47602adbb783cb83926476d098c1db8a26a196
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
test/user-list-item-spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create mock camera that can be used for browser testing." }, { "role": "assistant", "content": "export class MockCamera {\n DestinationType = { 'FILE_URI': 'FILE_URI' };\n EncodingType = { 'JPEG': 'JPEG' };\n MediaType = {...
typescript
new_file
0
1
mit
173294924093d969147df85c5215fa7fcfb41506
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
src/mocks/providers/mock-camera.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Fix issue with adding IP addresses to the UI." }, { "role": "assistant", "content": "import { Injectable } from '@angular/core';\nimport { HttpHeaders, HttpClient } from '@angular/common/http';\nimport { Constants } from 'src...
typescript
new_file
0
1
mit
7c09785614350ebc490e35608e9b6627ed106777
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
src/app/core/services/control-api/control-api.service.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for propTypes helper" }, { "role": "assistant", "content": "import * as propTypes from './propTypes';\n\ndescribe('propTypes', () => {\n describe('wildcard', () => {\n it('does not return an error, no...
typescript
new_file
0
1
mit
60a0d17758f7d355e4b096081c670f4b7c88216d
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/helpers/propTypes.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a function for getting a list of files that have changed in the index" }, { "role": "assistant", "content": "import { git } from './core'\nimport { Repository } from '../../models/repository'\n\nexport async function getC...
typescript
new_file
0
2
mit
278ddaa56566e133cb1e12440c859d955512e9e3
j-f1/forked-desktop,kactus-io/kactus,hjobrien/desktop,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,desktop/desktop,desktop/desktop,gengjiawen/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,hjobrien/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,hjobri...
app/src/lib/git/diff-index.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add failing ordered list test" }, { "role": "assistant", "content": "/// <reference path=\"../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../typings/chai/chai.d.ts\" />\n\nimport { expect } from 'chai'\ni...
typescript
new_file
0
1
mit
1b9f4dead40cfe087022c82ebc6106f94381044a
start/up,start/up
src/Test/Ast/OrderedList.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for p-cancelable 0.3\n// Project: https://github.com/sindresorhus/p-cancelable#readme\n// Definitions by: BendingBender <https://github.com/BendingBender>\n// Definitions: https://github.com/DefinitelyTyped/Definitel...
typescript
edit
0
0
mit
5f178511caeb96021fa64676f560b658a8340d8c
mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/De...
types/p-cancelable/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Upgrade to angular rc3 and upgrade to new router" }, { "role": "assistant", "content": "import { provideRouter, RouterConfig } from '@angular/router';\n\nimport { LoginComponent } from \"../login/login.component\";\nimport { ...
typescript
new_file
0
0
mit
d383595f1aafad7b1d5a38d52449d733f7a44853
bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder
webapp/src/app/router/app.routes.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for list-stream 1.0\n// Project: https://github.com/rvagg/list-stream\n// Definitions by: IanStorm <https://github.com/IanStorm>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n\n/// <reference t...
typescript
edit
0
0
mit
3f185078d8bdf57c6669b08a5ea135de65555d9d
georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/Defin...
types/list-stream/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Remove tweet url field. It can be infered." }, { "role": "assistant", "content": "import * as Knex from \"knex\";\n\nexport async function up(knex: Knex): Promise<any> {\n await knex.schema.table(\"tweets\", function (table)...
typescript
new_file
0
1
mit
039d3ea8c6afb27fa129adad27e3ec53f9462070
captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js
packages/skin-database/migrations/20201202012156_remove_tweet_url.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as Koa from 'koa';\nimport * as KoaCors from 'koa-cors';\n\nnew Koa()\n .use(KoaCors())\n .use(KoaCors({}))\n .use(KoaCors({ origin: '*' }));\n\n```\n\nApply this change: Fix how modules are imported" }, { "rol...
typescript
edit
0
0
mit
539633af43d232be18d1792ef27e023531c3305d
markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,mcliment/Definite...
types/koa-cors/koa-cors-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add 2 passing config tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport { Up } from '../../../index'\nimport { insideDocumentAndParagraph } from '../Helpers'\nimport { ImageNode } from '../../....
typescript
new_file
0
1
mit
14f0d33f791af59891a7a71a02ed7c014dfd19f2
start/up,start/up
src/Test/Ast/Config/Image.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n\n\nvar view1 = { title: \"Joe\", calc: function () { return 2 + 4; } };\nvar template1 = \"{{title}} spends {{calc}}\";\nvar output = Mustache.render(template1, view1);\n\nvar view2 = { forename: \"Jane\", calc: function () { return 10...
typescript
edit
0
1
mit
e8ed3007deb5dc8b6fefc22752ab68be369f3e0e
mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,geo...
types/mustache/mustache-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add action creator for ApiRateLimitExceeded." }, { "role": "assistant", "content": "import { API_LIMIT_EXCEEDED } from '../constants';\nimport { GroupId } from 'types';\n\nexport interface ApiRateLimitExceeded {\n readonly t...
typescript
new_file
0
1
mit
bfeccd70eceb8d584e8a5cb0318416db49f37c72
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/actions/api.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add script to configure algolia indices from scratch" }, { "role": "assistant", "content": "import * as algoliasearch from 'algoliasearch'\nimport * as _ from 'lodash'\n\nimport { ALGOLIA_ID } from 'settings'\nimport { ALGOL...
typescript
new_file
0
1
mit
50b123cda4f55daee0cc40809f121cfcbb4f92ba
OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher
scripts/configureAlgolia.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for implementation result types" }, { "role": "assistant", "content": "import test from '..';\n\ntest('return a promise-like', t => {\n\treturn {\n\t\tthen(resolve) {\n\t\t\tresolve?.();\n\t\t}\n\t};\n});\n\ntest('re...
typescript
new_file
0
1
mit
fe12bd4cb1ab81c592a77cd71f084d487ff0e166
avajs/ava,sindresorhus/ava,avajs/ava
test-d/implementation-result.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add selector to determine the number of active watchers in a folder." }, { "role": "assistant", "content": "import { createSelector } from 'reselect';\nimport { watcherTimersSelector } from '.';\nimport { getWatcherIdsAssigne...
typescript
new_file
0
2
mit
c11cfd4def38229d1db7014c047017c80a7f1aa5
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/selectors/watcherTimers.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create implementation of insert node at head." }, { "role": "assistant", "content": "import * as fs from 'fs';\n\nprocess.stdin.resume();\nprocess.stdin.setEncoding('utf-8');\n\nlet inputString: any = '';\nlet currentLine = 0...
typescript
new_file
0
3
mit
0a439f3e15b725b80d614c62e85f9a153e38c4c1
Goyatuzo/Challenges,Goyatuzo/Challenges,Goyatuzo/Challenges,Goyatuzo/Challenges
TypeScript/HackerRank/Practice/Data-Structures/Linked-Lists/insert-node-at-head.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: tests: Add helper to quickly write tests for tests/data/... examples" }, { "role": "assistant", "content": "import { readFileTree } from '../../files/deno.ts'\nimport { FileTree } from '../../types/filetree.ts'\nimport { vali...
typescript
new_file
0
1
mit
f880788fade3a79d1f364e73243306e13057a7a3
nellh/bids-validator,nellh/bids-validator,nellh/bids-validator
bids-validator/src/tests/local/common.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a generic component for tracking whether focus is inside of component" }, { "role": "assistant", "content": "import * as React from 'react'\nimport * as classNames from 'classnames'\n\ninterface IFocusContainerProps {\n ...
typescript
new_file
null
null
mit
9babab4dad1771a8e2a3720c982f8652663c8b20
kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,shiftkey/desktop,kactus-io/kactus,...
app/src/ui/lib/focus-container.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add tests for \"dock-spawn\" library." }, { "role": "assistant", "content": "/// <reference path=\"dock-spawn.d.ts\" />\n\nvar dockManagerDiv = document.createElement('div'),\n panelDiv1 = document.createElement('div'),\n ...
typescript
new_file
0
0
mit
4b572e1b66ef7aed1a52f2b8f29eb2c5bbfff592
wilfrem/DefinitelyTyped,TildaLabs/DefinitelyTyped,david-driscoll/DefinitelyTyped,sandersky/DefinitelyTyped,robl499/DefinitelyTyped,abbasmhd/DefinitelyTyped,ajtowf/DefinitelyTyped,pocke/DefinitelyTyped,sledorze/DefinitelyTyped,GodsBreath/DefinitelyTyped,lukehoban/DefinitelyTyped,jbrantly/DefinitelyTyped,moonpyk/Definite...
dock-spawn/dock-spawn-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add scroll event mock generator" }, { "role": "assistant", "content": "import {\n NativeSyntheticEvent,\n NativeScrollEvent,\n NativeScrollPoint,\n} from 'react-native';\n\nexport default (\n contentOffset?: NativeScrollP...
typescript
new_file
0
1
mit
ec37be51de234cc84ffb6013e72c3cefe51ac09e
hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy
lib/helpers/scrollEventMock.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for invalid IQ payloads" }, { "role": "assistant", "content": "import { parse, Registry } from '../src/jxt';\nimport XMPP, { IQ } from '../src/protocol';\n\nconst registry = new Registry();\nregistry.define(XMPP);\n...
typescript
new_file
0
1
mit
6b06b4cc497c5f95b66267e2e83a0f8081cb5221
otalk/stanza.io,legastero/stanza.io,legastero/stanza.io,otalk/stanza.io
test/invalid-iq.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add Modal Dialog ui element" }, { "role": "assistant", "content": "import { ExpectedConditions as until, ElementFinder } from 'protractor';\nimport { BaseElement } from './base.element';\n\nexport class ModalDialog extends Ba...
typescript
new_file
0
1
apache-2.0
8890230b379819fd9c55c8717b8f14427258f986
ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test
ee_tests/src/specs/page_objects/ui/modal_dialog.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create resusable warn force push-dialog" }, { "role": "assistant", "content": "import * as React from 'react'\nimport { Checkbox, CheckboxValue } from '../lib/checkbox'\nimport { Dispatcher } from '../dispatcher'\nimport { Di...
typescript
new_file
null
null
mit
cfe8dc32021cfddd601887dfab94647af85198a9
j-f1/forked-desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,say25/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,say25/desktop,say25/desktop,desktop/deskto...
app/src/ui/multi-commit-operation/warn-force-push-dialog.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add auth login to client" }, { "role": "assistant", "content": "import React, { FC , useEffect, useState } from \"react\";\r\nimport styled from \"styled-components\";\r\n\r\nexport const Main: FC = () => {\r\nconst [ code, s...
typescript
new_file
null
null
bsd-3-clause
90f8544c853f695ea0bdaaeac20d79e9a49f803d
nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract
applications/web/pages/auth/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add page for blog post" }, { "role": "assistant", "content": "import type {GetStaticProps} from \"next\"\nimport {TRPCError} from \"@trpc/server\"\nimport type {FC} from \"react\"\n\nimport {router} from \"server/trpc/route\"...
typescript
new_file
null
null
mit
3f49591cb8b9d34da2fc7a38c6a5bc942048c89e
octet-stream/eri,octet-stream/eri
src/pages/post/[date]/[name]/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add mail sending API call" }, { "role": "assistant", "content": "///<reference path=\"../../../typings/globals/nodemailer/index.d.ts\"/>\n\nimport { Router, Response, Request, NextFunction } from \"express\";\nimport * as nod...
typescript
new_file
0
2
mit
bbc865b24664e65d9cac81abffef11ef85242d02
shavindraSN/examen,shavindraSN/examen,shavindraSN/examen
server/api/mailer/send-mail.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for decorator without args.\n\nNot sure why this wasn't here before." }, { "role": "assistant", "content": "import {getInfoFromString} from \"./../../../main\";\nimport {runFileDefinitionTests} from \"./../../testHel...
typescript
new_file
0
1
mit
e56a5109697be3b357eebdd5971090e3e496dd96
dsherret/type-info-ts,dsherret/ts-type-info,dsherret/ts-type-info,dsherret/type-info-ts
src/tests/languageTests/general/decoratorTests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n//import * as fs from \"fs\";\nimport Utils from \"./Utils\";\nimport Job from \"./Job\";\nimport {existsSync, statSync} from \"fs\";\n\nconst executors: Dictionary<(i: Job, a: string[]) => void> = {\n cd: (job: Job, args: string[]):...
typescript
edit
0
4
mit
9a427c9216f31a796fc17ae42a259c531f67c894
railsware/upterm,vshatskyi/black-screen,shockone/black-screen,j-allard/black-screen,shockone/black-screen,drew-gross/black-screen,drew-gross/black-screen,black-screen/black-screen,black-screen/black-screen,black-screen/black-screen,drew-gross/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,drew-gross/black-s...
src/Command.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add button activated led sample" }, { "role": "assistant", "content": "import { periodic } from '@amnisio/rivulet';\nimport { Sources, createSinks, run } from '@amnisio/arduino-uno';\n\n// Sample application that has the on b...
typescript
new_file
0
1
mit
0e4e1761a3c4c0797b9eb9dfa39b8762546de83e
artfuldev/RIoT
examples/arduino-uno/button-activated-led.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add custom exception class for Prometheus error." }, { "role": "assistant", "content": "/**\n * Handles \n */\nexport class PrometheusError extends Error { \n\n prometheusResponseStatus: number; \n\n constructor(message...
typescript
new_file
0
1
mit
89e50bdc5a9f470c73d3b55bd46c4b8290e356e1
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
console/src/app/common/Exceptions/PrometheusError.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as css from 'styled-jsx/css';\nimport flushToReact, { flushToHTML } from 'styled-jsx/server';\n\nconst styled = (\n <div>\n <style jsx>{`\n color: rebeccapurple;\n `}...
typescript
edit
null
null
mit
1a092b0b221986a65fedecdcb501e4e34ebc8aab
dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped...
types/styled-jsx/styled-jsx-tests.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add EmptyState component for when no HITs are in the redux store" }, { "role": "assistant", "content": "import * as React from 'react';\nimport { EmptyState } from '@shopify/polaris';\n\nexport interface Props {\n onAction: ...
typescript
new_file
null
null
mit
efd5c28745c3d673d2c4e877ee4be19080264b5c
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/HitTable/EmptyHitTable.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {PureComponent} from 'react'\nimport {connect} from 'react-redux'\n\nimport FluxOverlay from 'src/flux/components/FluxOverlay'\nimport {OverlayContext} from 'src/shared/components/OverlayTechnology'\nimport {\n showOverla...
typescript
edit
null
null
mit
00839f3c91dc8fafb514b2fd3a5e174f4ae8de3e
influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,li-ang/inf...
ui/src/flux/components/FluxHeader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: [frontend] Add a sql-text web component to render formatted SQL" }, { "role": "assistant", "content": "// Licensed to Cloudera, Inc. under one\n// or more contributor license agreements. See the NOTICE file\n// distributed w...
typescript
new_file
0
1
apache-2.0
ce427b5f361cffa94742642b1d945a4c443ade3d
cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue
desktop/core/src/desktop/js/webComponents/SqlText.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Update File with Imports and Components" }, { "role": "assistant", "content": "import { Component } from '@angular/core';\r\nimport { Observable } from 'rxjs/Observable';\r\n\r\nimport { Courses } from '../../../both/collecti...
typescript
new_file
0
1
mit
e9e79d733116b039a895add69ca7a5c125e4455e
aztec-developers/PortalPlus,aztec-developers/PortalPlus
client/imports/app/app.component.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport reducer, {defaultState} from 'src/logs/reducers'\nimport {setTimeWindow} from 'src/logs/actions'\n\ndescribe('Logs.Reducers', () => {\n it('can set a time window', () => {\n const expected = {\n timeOption: 'now',\n ...
typescript
edit
0
1
mit
ca2e198e90a2b722f86d2344471fa41476e8f7c9
mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdata/influxdb,li-ang/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/inf...
ui/test/logs/reducers/logs.test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add an examples folder and add the README example to it" }, { "role": "assistant", "content": "import { Boolean, Number, String, Literal, Array, Tuple, Record, Union, Static } from '../src/index'\n\nconst Vector = Tuple(Numbe...
typescript
new_file
0
0
mit
c87970ae5d1c5f34406d3993f4b1b48fc225df45
typeetfunc/runtypes,pelotom/runtypes,pelotom/runtypes
examples/spaceGame.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add commissioning events test case" }, { "role": "assistant", "content": "import myparser = require('../lib/epcisparser');\nimport eventtypes = require('../lib/epcisevents');\nvar assert = require('assert');\nvar fs = require...
typescript
new_file
0
1
mit
454a11124f8a5474885743576df9d66ae0ff1331
matgnt/epcis-js,matgnt/epcis-js
tests/test_commissioning_events.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for AccordionContext" }, { "role": "assistant", "content": "import * as React from 'react';\nimport { render } from 'react-testing-library';\nimport { Consumer, Provider } from './AccordionContext';\n\ndescribe...
typescript
new_file
null
null
mit
79c5d11e92ca7e2551cb56a46e9e359d971775a9
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/components/AccordionContext.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path=\"pg.d.ts\" />\nimport * as pg from \"pg\";\n\nvar conString = \"postgres://username:password@localhost/database\";\n\n// https://github.com/brianc/node-pg-types\npg.types.setTypeParser(20, (val) => Number(val));\n\n...
typescript
edit
0
2
mit
d2a5819d31ead08a2d8731eceeed0c6d29028218
paulmorphy/DefinitelyTyped,amanmahajan7/DefinitelyTyped,hellopao/DefinitelyTyped,nainslie/DefinitelyTyped,nycdotnet/DefinitelyTyped,one-pieces/DefinitelyTyped,ryan10132/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,syuilo/DefinitelyTyped,johan-gorter/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyp...
pg/pg-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test module for webui/reactutil" }, { "role": "assistant", "content": "/// <reference path=\"../node_modules/react-typescript/declarations/react.d.ts\" />\n\nimport react = require('react');\n\nimport reactutil = req...
typescript
new_file
0
3
bsd-3-clause
517e603bb2ba10002a9a43b4664f9cb28ad2db33
robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards
webui/reactutil_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Remove the thumb s3key from DB" }, { "role": "assistant", "content": "import {MigrationInterface, QueryRunner} from \"typeorm\";\n\nexport class RemoveMediaThumbs1517782491551 implements MigrationInterface {\n\n public asy...
typescript
new_file
0
1
mit
c3c9a28a1c2dda05408cb3c40f7fa99259ebd1ff
seanmiddleditch/campman,seanmiddleditch/campman,seanmiddleditch/campman
app/db/migrations/1517782491551-RemoveMediaThumbs.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Make columns in events not nullable" }, { "role": "assistant", "content": "import { IDatabase } from \"pg-promise\";\n\nexport const runSchema = async(db: IDatabase<unknown>) => {\n await db.none(`\n ALTER TABLE eve...
typescript
new_file
0
1
apache-2.0
be864c195e8b8513318aa9cec35423c35f18f642
matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack
src/datastore/postgres/schema/v14.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add render without crash test for MathJax provider" }, { "role": "assistant", "content": "import { shallow } from \"enzyme\";\nimport React from \"react\";\n\nimport MathJaxContext from \"../src/context\";\nimport MathJaxProv...
typescript
new_file
null
null
bsd-3-clause
e4af465163ea76c819eaae3e1bd52b0bbd258b29
nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition,nteract/composition
packages/mathjax/__tests__/provider.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add test case to make sure that we only report an error from target file" }, { "role": "assistant", "content": "/// <reference path=\"fourslash.ts\" />\n\n// @declaration: true\n// @out: true\n\n// @Filename: inputFile1.ts\n...
typescript
new_file
0
0
apache-2.0
75949578ff56622ed841999425dab60044016f02
blakeembrey/TypeScript,billti/TypeScript,mszczepaniak/TypeScript,pcan/TypeScript,shiftkey/TypeScript,evgrud/TypeScript,Eyas/TypeScript,chuckjaz/TypeScript,DanielRosenwasser/TypeScript,moander/TypeScript,evgrud/TypeScript,OlegDokuka/TypeScript,keir-rex/TypeScript,thr0w/Thr0wScript,zhengbli/TypeScript,Microsoft/TypeScrip...
tests/cases/fourslash/getDeclarationDiagnostics.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for Newton Numeric Solver" }, { "role": "assistant", "content": "import * as Newton from '../src/newton';\n\nimport { expect } from 'chai';\nimport 'mocha';\n\ndescribe('Newton numeric solver', () => {\n it('Root of...
typescript
new_file
0
1
mit
7ad4716f24002ef48a0c0562b938c09ce0dd17a4
THeK3nger/calendar-generator,THeK3nger/calendar-generator
tests/test_newton.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a super simple stack" }, { "role": "assistant", "content": "// Super simple stack\nexport default class Stack<T> {\n\tprivate stack: T[];\n\n\tconstructor() {\n\t\tthis.stack = [];\n\t}\n\n\tget size() {\n\t\treturn this....
typescript
new_file
0
1
mit
6ef0a3f2aef3a4575a71cb185a57f75811221509
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
server/src/util/Stack.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add more complex test scenarios\n\n(cherry picked from commit e347c3711cc4b85eda34f1aba844e1a6576ff40c)\n\n# Conflicts:\n#\ttests/cases/fourslash/jsDocGenerics1.ts" }, { "role": "assistant", "content": "///<reference path=\"f...
typescript
new_file
0
0
apache-2.0
e347c3711cc4b85eda34f1aba844e1a6576ff40c
blakeembrey/TypeScript,plantain-00/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,nycdotnet/TypeScript,vilic/TypeScript,RyanCavanaugh/TypeScript,minestarks/TypeScript,erikmcc/TypeScript,kitsonk/TypeScript,vilic/TypeScript,synaptek/TypeScript,jwbay/TypeScript,Eyas/TypeScript,chuckjaz/TypeScript,TukekeSoft/TypeScript,...
tests/cases/fourslash/jsDocGenerics1.ts
rejected_duplicate
Near-duplicate of sample 115406
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for disposing subscriptions to a reactive query" }, { "role": "assistant", "content": "import {MockApi} from './mock';\nimport {describeComponent} from '../tests/component';\n\ndescribeComponent('reactive queri...
typescript
new_file
0
1
apache-2.0
0dcada6135b4711c3f550763b0ab2dba12e65dfa
hadalin/resolwe-js,genialis/resolwe-js,genialis/resolwe-js,hadalin/resolwe-js
src/api/resource.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a basic auth Plugin" }, { "role": "assistant", "content": "import {injectDependency, InjectionDecorator} from '../../core/InjectionClient'\nimport {exportDependency, PluginConfig, PluginConstructor} from '../../core/Plugi...
typescript
new_file
0
1
mit
94579f9fa1b3aeca7fbc486c5e53c46786546fde
brightinteractive/bright-js-framework,brightinteractive/bright-js-framework,brightinteractive/bright-js-framework
src/lib/plugins/AuthPlugin/AuthPlugin.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add failing spoiler block test" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { DocumentNode } from '../../SyntaxNodes/DocumentNode'\nimport { PlainTextNode } from '...
typescript
new_file
0
1
mit
6ebcc6e15111dbecea9dce9d1f3f462917136bf9
start/up,start/up
src/Test/Ast/SpoilerBlock.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add better names list implementation" }, { "role": "assistant", "content": "namespace BetterNamesList {\n interface NamesIterator {\n next(): string;\n hasNext(): boolean;\n }\n\ninterface NamesList {\n getIterator(i...
typescript
new_file
0
1
mit
287b3217bf37d4b63af69115cbd52721e5e770b9
Erichain/design-patterns-in-typescript,Erichain/design-patterns-in-typescript
iterator/names-list/better-names-list.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add failing line block tests" }, { "role": "assistant", "content": "/// <reference path=\"../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../typings/chai/chai.d.ts\" />\n\nimport { expect } from 'chai'\nim...
typescript
new_file
0
1
mit
30e277a4fa4cba910ec18a83dddfc1d887619940
start/up,start/up
src/Test/Ast/LineBlock.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Move Mongoose config API endpoint into MongooseApi namespace." }, { "role": "assistant", "content": "// A class that describes endpoints for Mongoose API. \n// See Mongoose API (as for 27.03.2019): ...\n// ... https://github....
typescript
new_file
0
0
mit
4a860358baf48beeb4fce36adc5d2a44c4813a4e
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
console/src/app/core/services/mongoose-api-models/MongooseApi.model.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test coverage for TerminalSession support methods" }, { "role": "assistant", "content": "const mockTerminal: Pick<Terminal, \"open\"> = {\n open: jest.fn(),\n};\n\njest.mock(\"xterm\", () => {\n return {\n Terminal: func...
typescript
new_file
0
1
mit
40d384c3803c1fd2835a44cc8d54ed1d46968759
FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API
frontend/terminal/__tests__/support_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test that the minimal and sample configs pass validation" }, { "role": "assistant", "content": "import * as yaml from \"js-yaml\";\nimport * as Chai from \"chai\";\nimport { ConfigValidator } from \"matrix-appservice-bridge\"...
typescript
new_file
0
1
apache-2.0
a4bd75e04f328960130876f7f69411fb38a8f8fb
Half-Shot/matrix-appservice-discord
test/test_configschema.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create utility class for pagination" }, { "role": "assistant", "content": "export class PageData{\n Display: string;\n IsActive: boolean;\n\n constructor(display: string,\n isActive: boolean){\n ...
typescript
new_file
0
13
mit
45e79f6b1ae15069d2ce4bdce6ac0f4881854bc7
CaoDuyThanh/WebAppClient,CaoDuyThanh/WebAppClient,CaoDuyThanh/WebAppClient
src/client/app/utils/pagination.helper.ts
rejected_complexity
Cyclomatic complexity too high: 13
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for JavaVersionParser" }, { "role": "assistant", "content": "import {JavaVersionParser} from '../../../../app/core/java/java-version-parser';\n\n\n/**\n * @author Thomas Kleinke\n */\ndescribe('JavaVersionParser...
typescript
new_file
0
1
apache-2.0
b54de6a58cd9ef9b85fddae9467b40486036a63e
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
test/unit/core/java/java-version-parser.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a push progress parser" }, { "role": "assistant", "content": "import { StepProgressParser } from './step-progress'\n\n/**\n * Highly approximate (some would say outright inaccurate) division\n * of the individual progress...
typescript
new_file
0
1
mit
2b430f1c6fa0070298be96683508470b988876da
shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,BugTesterTest/desktops,say25/desktop,hjobrien/desktop,artivilla/desktop,gengjiawen/desktop,BugTesterTest/desktops,shiftkey/desktop,say25/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,hjobrien/desktop,BugTesterTest/desktops,gengjiawen/desktop,desktop/d...
app/src/lib/progress/push-progress-parser.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Write karma tests for `AddUserComponent`\n\nThis gives us 100% coverage for `AddUserComponent`. You might argue it\nwas an awful lot of work for a fairly small improvement in coverage,\nbut I learned some useful things about mocking so t...
typescript
new_file
0
2
mit
82668071e4b4c4e981755f81a586770f87ebd577
UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo,UMM-CSci-3601/3601-lab4_mongo
client/src/app/users/add-user.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as AST from '../types/nodes';\nimport { Option } from '@glimmer/interfaces';\n\nclass TraversalError extends Error {\n constructor(message: string, public node: AST.Node, public parent: Option<AST.Node>, public key: string) {\...
typescript
edit
0
1
mit
d92d475c8986c89933c3c8b3da6c9a3624798e39
lbdm44/glimmer-vm,tildeio/glimmer,tildeio/glimmer,lbdm44/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,glimmerjs/glimmer-vm
packages/@glimmer/syntax/lib/traversal/errors.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { mapStateToProps } from \"../state_to_props\";\nimport { fakeState } from \"../../__test_support__/fake_state\";\n\ndescribe(\"mapStateToProps()\", () => {\n it(\"populates user\", () => {\n const result = mapStateToProps(fa...
typescript
edit
0
1
mit
5b02616d037d047af8dc5b3d2630899c94474b8a
gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farm...
webpack/account/__tests__/state_to_props_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add support for keyboard shortcuts" }, { "role": "assistant", "content": "import {PureComponent, ReactNode} from 'react'\n\ninterface Props {\n children: ReactNode\n onControlEnter: () => void\n}\n\nclass KeyboardShortcuts ...
typescript
new_file
0
3
mit
0b621f37daf3e8c92263443ff6aef25cdf9584a7
influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,nooproblem/influ...
ui/src/ifql/components/KeyboardShortcuts.tsx
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as QueryStream from 'pg-query-stream';\nimport * as pg from 'pg';\n\nconst options: QueryStream.Options = {\n highWaterMark: 1000,\n batchSize: 100\n};\n\nconst query = new QueryStream('SELECT * FROM generate_series(0, $1...
typescript
edit
0
1
mit
c03e601a5079f67aae15d2780e8c01d2136da18e
magny/DefinitelyTyped,benliddicott/DefinitelyTyped,georgemarshall/DefinitelyTyped,abbasmhd/DefinitelyTyped,benishouga/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,nycdotnet/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,jimthedev/DefinitelyTyped,alexdresko/DefinitelyTyped,benishouga/DefinitelyTyped,geo...
types/pg-query-stream/pg-query-stream-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Write first attempt at results state shape\n\n- more complicated than it seems, mainly due to the doubly nested nature of the groupings (days -> pages -> notes)\n- main differences from old:\n - regardless of search type, the state shap...
typescript
new_file
0
0
mit
5983672797648211f8ed8116331e494823895722
WorldBrain/WebMemex,WorldBrain/WebMemex
src/dashboard-refactor/search-results/types.ts
accepted
null
true