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 test for a direct deserialization of an abstract class" }, { "role": "assistant", "content": "import { jsonObject, jsonMember, TypedJSON } from \"../js/typedjson\";\n\ndescribe('single class', function () {\n\n abstra...
typescript
new_file
0
1
mit
35a78dd7bc018bcae86ee371c67df83a54013ef1
JohnWhiteTB/TypedJSON,JohnWhiteTB/TypedJSON,JohnWeisz/TypedJSON,JohnWhiteTB/TypedJSON,JohnWeisz/TypedJSON
spec/polymorphism-root-abstract-class.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for koa-websocket 2.1\n// Project: https://github.com/kudos/koa-websocket\n// Definitions by: My Self <https://github.com/me>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n// TypeScript Version...
typescript
edit
0
1
mit
0e55ab17fc8eac97d856284c954fba717b5900b3
magny/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,Age...
types/koa-websocket/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: feat(textfield): Implement MDC Text field boxes\n\nText field boxes support all of the same features as normal textfields, including help text,\nvalidation, and dense UI.\n\nCloses #57" }, { "role": "assistant", "content": "i...
typescript
new_file
0
1
mit
e440d7355c16d98024190030ed9c93bde8709974
trimox/angular-mdc-web,trimox/angular-mdc-web
src/lib/textfield/textfield-box.component.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for page title service" }, { "role": "assistant", "content": "import { Title } from '@angular/platform-browser';\nimport { It, IMock, Mock, Times } from 'typemoq';\n\nimport { TitleService } from './title.servi...
typescript
new_file
0
1
apache-2.0
91900e122bf626e34da7087c452e46a863d7a842
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/shared/title.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create funciton to detect elm-test files" }, { "role": "assistant", "content": "import * as utils from './elmUtils';\nimport * as vscode from 'vscode';\nimport * as path from 'path';\n\nexport function fileIsTestFile(filename...
typescript
new_file
0
1
mit
5799667bcac2feaa0d57fb3da2422ee571b52d0c
Krzysztof-Cieslak/vscode-elm,sbrink/vscode-elm
src/elmTest.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add modal dialogue for the end screen\n\nSummary:\n- Added a dialogue with 2 possible end state buttons\n - Problem Solved\n - File Support Request\n- This diff is the start of the implementation of the troubleshooting wizard.\n- T...
typescript
new_file
null
null
mit
84ec5813b66df26a172c3166aaedc21ddf327536
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
desktop/app/src/sandy-chrome/appinspect/troubleshooting/GuideEndScreen.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add test to verify does not overwrite existing implementation" }, { "role": "assistant", "content": "import * as fs from \"fs\";\r\nimport { assert } from \"chai\";\r\n\r\ndescribe(\"Reflect\", () => {\r\n it(\"does not ov...
typescript
new_file
0
1
apache-2.0
c2dbe1d02ceb9987f9002eedf0cdb21d74de0019
rbuckton/ReflectDecorators,rbuckton/ReflectDecorators,rbuckton/ReflectDecorators,rbuckton/reflect-metadata,rbuckton/reflect-metadata,rbuckton/reflect-metadata
test/reflect-other.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add empty state for watchers." }, { "role": "assistant", "content": "import * as React from 'react';\nimport { NonIdealState } from '@blueprintjs/core';\n\nexport interface Props {}\n\nclass EmptyWatchers extends React.PureCo...
typescript
new_file
null
null
mit
29c4fef65a897b146d780319037ad547a6061541
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/Watchers/EmptyWatchers.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add legacy command settings keys" }, { "role": "assistant", "content": "export const LegacyCommandSettingsKeys = {\n \"toggle-menu\": \"Toggle Menu\",\n \"start-encounter\": \"Start Encounter\",\n \"reroll-initiative...
typescript
new_file
0
0
mit
524ddf729bbffb8d2295ad91c3b31f3cb5800718
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Commands/LegacyCommandSettingsKeys.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Use Proxies to make a Mock store that returns what we tell it." }, { "role": "assistant", "content": "import { RecursiveProxyHandler } from 'electron-remote';\n\nimport { Store } from '../../src/lib/store';\nimport { Updatabl...
typescript
new_file
0
3
bsd-3-clause
05ff8971e636967219f088bf247de616d897cbab
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
test/lib/mock-store.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a connected component to add watchers from a toast." }, { "role": "assistant", "content": "import { connect, Dispatch } from 'react-redux';\nimport { TextContainer } from '@shopify/polaris';\nimport { AddWatcher, addWatch...
typescript
new_file
null
null
mit
5d79995db954c8ec568cc64fab27c9c4d21ffad6
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/Watchers/AddWatcherToast.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add & deduplicate foreign key constraints" }, { "role": "assistant", "content": "import {MigrationInterface, QueryRunner} from \"typeorm\";\n\nexport class AddForeignKeyConstraints1541082619105 implements MigrationInterface {...
typescript
new_file
0
1
mit
4380ac0abff9be20252ad105faae616fe5668960
OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-worl...
src/migration/1541082619105-AddForeignKeyConstraints.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a simpler tooltip component" }, { "role": "assistant", "content": "import * as React from 'react'\nimport { ITooltipProps, Tooltip } from './tooltip'\nimport { createObservableRef } from './observable-ref'\n\ninterface IT...
typescript
new_file
null
null
mit
1e123fc91a0d23f65c4b42b063b9422c62314823
shiftkey/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/deskto...
app/src/ui/lib/tooltipped-content.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for classnames in AccordionItemHeading" }, { "role": "assistant", "content": "import * as React from 'react';\nimport { cleanup, render } from 'react-testing-library';\nimport Accordion from './Accordion';\nimp...
typescript
new_file
null
null
mit
8c4257bd4d441b017df4c75a0ac133462227a22a
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/components/AccordionItemHeading.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Fix apply changes to work when response is null" }, { "role": "assistant", "content": "var Range = require('atom').Range;\nimport {Observable} from \"rx\";\n\n\nexport function applyChanges(editor: Atom.TextEditor, response: ...
typescript
new_file
0
5
mit
53a7848f4e2e57612e5531037e1fc2bf29d77986
OmniSharp/omnisharp-atom,OmniSharp/omnisharp-atom,OmniSharp/omnisharp-atom
lib/omnisharp-atom/services/apply-changes.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add support to show variable type on Hover." }, { "role": "assistant", "content": "import * as vscode from 'vscode'\nimport { CrystalContext } from './crystalContext'\n\nexport class CrystalHoverProvider extends CrystalContex...
typescript
new_file
0
8
mit
8fc2bcc5ddc7827afd17262c560b75263dbd0032
faustinoaq/vscode-crystal-lang,faustinoaq/vscode-crystal-lang
src/crystalHover.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: REFACTOR lib/router to make creating themes work for react15" }, { "role": "assistant", "content": "interface StoryData {\n viewMode?: string;\n storyId?: string;\n}\ninterface SeparatorOptions {\n rootSeparator: string | ...
typescript
new_file
0
1
mit
9ec6265a7ac6ead18b802e9413d310202cf1f8aa
storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook
lib/router/utils.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a missing unit test suite file to Git" }, { "role": "assistant", "content": "import Q = require('q');\n\nimport testLib = require('./test');\nimport asyncutil = require('./asyncutil');\n\ntestLib.addAsyncTest('test run se...
typescript
new_file
0
1
bsd-3-clause
fc192d4c0baa70da3e523f069d2332ee3a3278b5
robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards
lib/asyncutil_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add Context to setup query/ dir" }, { "role": "assistant", "content": "/**\n * Copyright 2018 The Lovefield Project Authors. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * y...
typescript
new_file
0
3
apache-2.0
6869a05090fae498c711f1bbfa691f2cec59b3f1
arthurhsu/lovefield-ts,arthurhsu/lovefield-ts
lib/query/context.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Implement basic initial integration tests for 404 and 500" }, { "role": "assistant", "content": "// NOTE Running these tests requires the crossroads-education/eta-web-test module to be installed.\n\nprocess.env.ETA_TESTING = ...
typescript
new_file
0
2
mit
2c073ed4302f88ed088d24c18389d1ae0cef408f
crossroads-education/eta,crossroads-education/eta
test/server/requests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Convert Rx.Promise to ES2015 Promise" }, { "role": "assistant", "content": "\nexport function asPromise<T>(thenable: { then(fnOnFulfil: (value: T) => T | Promise<T> | void, fnOnReject?: (reason?: any) => any): any }) {\n r...
typescript
new_file
0
1
mit
a500f5ce64c3994f25721970c00e1c84eee15148
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
server/src/util/util.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for connect typings" }, { "role": "assistant", "content": "/// <reference path=\"./connect.d.ts\" />\n\nimport * as http from \"http\";\nimport * as connect from \"connect\";\n\nconst app = connect();\n\n// log all ...
typescript
new_file
0
2
mit
d90b63ede980d5b3dd5962f6881b8b1a0b8286d9
teves-castro/DefinitelyTyped,arusakov/DefinitelyTyped,stacktracejs/DefinitelyTyped,donnut/DefinitelyTyped,mattanja/DefinitelyTyped,pwelter34/DefinitelyTyped,xStrom/DefinitelyTyped,borisyankov/DefinitelyTyped,behzad888/DefinitelyTyped,abbasmhd/DefinitelyTyped,schmuli/DefinitelyTyped,glenndierckx/DefinitelyTyped,greglo/D...
connect/connect-tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add foreign keys for chart_revisions & chart_slug_redirects\n\nIdeally, chart_revisions should also have a chartId foreign key, but then charts that get deleted must have all revisions deleted. It's better to not enforce this constraint....
typescript
new_file
0
1
mit
0764c64dde659ca9d06c7cb3124677c4efd2785a
owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher
db/migration/1559633072583-AddForeignKeyConstraints.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test cases for toLowercase decorator" }, { "role": "assistant", "content": "import { ToLowercase } from './../../src/';\n\ndescribe('ToLowercase decorator', () => {\n\n it('should throw an error when is applied ov...
typescript
new_file
0
1
mit
e437bae6e3d475d52c261eee51bf430df156ab59
semagarcia/typescript-decorators,semagarcia/typescript-decorators
test/property-decorators/to-lowercase.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add parsing functions for status summary page." }, { "role": "assistant", "content": "import { statusDate } from '../constants/querySelectors';\r\nimport { List } from 'immutable';\r\n\r\n/**\r\n * Returns a list of Mturk's U...
typescript
new_file
0
3
mit
a7d85383fcabf87f49d347a9e9e2263067d0a149
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/parseStatus.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: feat(modal): Create interface for modal options." }, { "role": "assistant", "content": "/**\n * Created by William on 10/07/2017.\n */\nexport interface ModalOptions {\n icon: string;\n title: string;\n color?: strin...
typescript
new_file
0
0
mit
16a87c59ee14e75fc2e55d4d129f62bd2dde90e2
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
src/modal/modal-options.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add 2 failing nsfw 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
d784f019c33d1e85969f6c0a97689273d3efd8c7
start/up,start/up
src/Test/Ast/Config/Nsfw.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: :sparkles: Add initial handle helpers for Alexa" }, { "role": "assistant", "content": "import { PermissionStatus } from './interfaces';\nimport { HandleOptions, Jovo } from '@jovotech/framework';\nimport { AlexaRequest } from...
typescript
new_file
0
4
apache-2.0
62e6b1ffe5ed78f23ebd249ac1c7ea14dc115259
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
platforms/platform-alexa/src/AlexaHandles.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for data_loading." }, { "role": "assistant", "content": "import dataLoading from 'dash-table/derived/table/data_loading';\n\ndescribe('loading state uneditable', () => {\n\n it('returns true when data are loa...
typescript
new_file
0
1
mit
c77b2cdeda8ba93982b01a43c1f6988de73eaef7
plotly/dash-table,plotly/dash-table,plotly/dash-table
tests/cypress/tests/unit/loadingState.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test case for node-progress" }, { "role": "assistant", "content": "/// <reference path=\"node-progress.d.ts\"/>\n\nvar ProgressBar = require('progress');\n\n\n/**\n * Usage example from https://github.com/tj/node-progress...
typescript
new_file
0
2
mit
2cdbc68f690138410785db1cb4fcbd64e36e4203
stephenjelfs/DefinitelyTyped,isman-usoh/DefinitelyTyped,applesaucers/lodash-invokeMap,use-strict/DefinitelyTyped,wkrueger/DefinitelyTyped,OfficeDev/DefinitelyTyped,aldo-roman/DefinitelyTyped,Dominator008/DefinitelyTyped,chrootsu/DefinitelyTyped,lbesson/DefinitelyTyped,sandersky/DefinitelyTyped,chrismbarr/DefinitelyType...
node-progress/node-progress-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add more element factory tests" }, { "role": "assistant", "content": "import { VNodeFlags } from \"../src/vdom/flags\";\nimport { elementFactory } from \"../src/vdom/element\";\nimport * as h from \"./utils/html\";\n\nconst d...
typescript
new_file
0
1
mit
0f91dec2bf5daecce65cb16ba95189061ef4ce31
ivijs/ivi,ivijs/ivi
packages/ivi/__tests__/element_factory.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport gql from \"graphql-tag\";\n\nimport { TypedQuery } from \"../queries\";\nimport { Home } from \"./types/Home\";\n\nconst home = gql`\n query Home {\n salesToday: ordersTotal(period: TODAY) {\n gross {\n amount\n ...
typescript
edit
0
0
bsd-3-clause
fb042657ab2579469a8f3d73b306516d15da3a0d
UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,mociepka/saleor
saleor/static/dashboard-next/home/queries.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a filter which populates the auth header for avatar requests" }, { "role": "assistant", "content": "import { EndpointToken } from '../lib/endpoint-token'\nimport { OrderedWebRequest } from './ordered-webrequest'\n\nexport...
typescript
new_file
0
3
mit
0b3e6e213573706155aa46f92da8c645ace66688
j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop
app/src/main-process/authenticated-avatar-filter.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: test: Add ADD_PLUGIN_TO_CURRENT_SLIDE spec for slides reducer" }, { "role": "assistant", "content": "import { expect } from 'chai';\nimport { ADD_PLUGIN_TO_CURRENT_SLIDE } from '../../../../app/constants/slides.constants';\n\...
typescript
new_file
0
1
mit
ddda6853a2ddc38cf09e0b2d12dd7c45d90ba713
DevDecks/devdecks,chengsieuly/devdecks,chengsieuly/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks
test/reducers/slides/actions/addPluginToCurrentSlide-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as angular from 'angular';\n\nimport { UserService } from '../../core/api/user.service';\nimport { NoticeService } from '../../core/notice/notice.service';\nimport { SessionService } from '../../core/session.service';\n\nexport...
typescript
edit
0
2
mit
5a9471e2204a1aca3ddecce67bf26995b97b2596
sillsdev/web-scriptureforge,ermshiperete/web-languageforge,ermshiperete/web-languageforge,ermshiperete/web-languageforge,sillsdev/web-scriptureforge,sillsdev/web-scriptureforge,sillsdev/web-scriptureforge,ermshiperete/web-languageforge,ermshiperete/web-languageforge,ermshiperete/web-languageforge,sillsdev/web-scripture...
src/angular-app/bellows/apps/changepassword/change-password-app.component.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a simple unit test for the statusbar." }, { "role": "assistant", "content": "\"use strict\";\n\nimport {Statusbar} from \"../src/app/statusbar\";\n\ndescribe(\"Statusbar Test \", () => {\n\n it(\"should start and finis...
typescript
new_file
0
1
mit
862c769f8dc224adfb362e9d22a2a9693e5c9292
jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr
ui/test/statusbar.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add vcs file change dummy" }, { "role": "assistant", "content": "import * as path from 'path';\nimport { Dummy, TextDummy, TypesDummy } from '../../../test/helpers';\nimport { VcsFileChange, VcsFileChangeStatusTypes } from '....
typescript
new_file
0
1
mit
f5f183801b55d65fa20661f2c77b71d144083bbe
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
src/browser/vcs/dummies.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Refactor - split script into small modules" }, { "role": "assistant", "content": "import { modifyManifest } from './modifyManifest';\n\nexport function postlinkAndroid() {\n try {\n modifyManifest();\n } catch (e) {\n ...
typescript
new_file
0
2
mit
563b8d29f43b406b8ab126d5ba16bf30df377eea
doomsower/react-native-vkontakte-login,doomsower/react-native-vkontakte-login,doomsower/react-native-vkontakte-login,doomsower/react-native-vkontakte-login
scripts/android/postlink.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add index on year data_values" }, { "role": "assistant", "content": "import {MigrationInterface, QueryRunner} from \"typeorm\";\n\nexport class DataValuesYearIndex1551319875625 implements MigrationInterface {\n\n public as...
typescript
new_file
0
1
mit
f04db92629c50c8a88768591f46bbd5f23989448
owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher
db/migration/1551319875625-DataValuesYearIndex.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport axios from \"axios\";\nimport { API } from \"./api/index\";\nimport { AuthState } from \"./auth/interfaces\";\nimport { HttpData } from \"./util\";\nimport { setToken } from \"./auth/actions\";\n\n/** Grab a new token from the AP...
typescript
edit
0
1
mit
52d360a3f24387114b7e4be637aeabb10f0a9c72
RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,RickCarlino/farmbot-web-app,RickCarlino/farmbot-web-app,gabrielburnworth/Farmb...
webpack/refresh_token.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Use parse instead of just show" }, { "role": "assistant", "content": "/// <reference path=\"../typings/main.d.ts\" />\n/// <reference path=\"../node_modules/typescript/lib/typescript.d.ts\" />\n\nvar vorpal = require('vorpal'...
typescript
new_file
0
1
mit
773edddcf2a4060fe7b368ab0313ddbcea6f4305
sandermvanvliet/tsa,sandermvanvliet/tsa
src/tsa.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {WINDOW_PERIOD} from 'src/variables/constants'\n\nexport interface QueryFn {\n name: string\n flux: string\n aggregate: boolean\n}\n\nexport const FUNCTIONS: QueryFn[] = [\n {name: 'mean', flux: `|> mean()`, aggregate: true},...
typescript
edit
0
0
mit
2c771d515d2936909ac559f254234acd1cb35414
mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxdb,li-ang/influxdb,nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,ma...
ui/src/timeMachine/constants/queryBuilder.ts
rejected_duplicate
Near-duplicate of sample 114290
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for range decorator" }, { "role": "assistant", "content": "import { Range } from './../../src/';\n\ndescribe('Range decorator', () => {\n\n it('should throw an error when no annotations are provided', () => ...
typescript
new_file
0
1
mit
ba7340ddbc8af893a3498271b0853bd7f7876305
semagarcia/typescript-decorators,semagarcia/typescript-decorators
test/property-decorators/range.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Type definitions for emoji-mart 2.8\n// Project: https://github.com/missive/emoji-mart\n// Definitions by: Diogo Franco <https://github.com/Kovensky>\n// Nick Winans <https://github.com/Nicell>\n// Definitions: https:...
typescript
edit
0
0
mit
6daee807ab903c6730dce84e172b934f3a48e4ca
dsebastien/DefinitelyTyped,magny/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak...
types/emoji-mart/index.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Update Chinese Simplified Translation for Crash Report" }, { "role": "assistant", "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!DOCTYPE TS>\n<TS version=\"2.1\">\n<context>\n <name>MainWindow</name>\n <messa...
typescript
new_file
null
null
apache-2.0
106523df6771477ebe2cfbaf7a1f6124c4705416
YoukaiCat/imgbrd-grabber,Bionus/imgbrd-grabber,YoukaiCat/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
CrashReporter/languages/ChineseSimplified.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add generic SettingCache for caching configuration and environments" }, { "role": "assistant", "content": "import { TextDocument, WorkspaceFolder } from 'vscode-languageserver';\n\nexport type RubyEnvironment = {\n\tPATH: str...
typescript
new_file
0
1
mit
9e7c61b5779ed9985955d62a838af34a17b08487
rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby
server/src/SettingsCache.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add dispatcher to hide getState functions from consumers that only need to dispatch" }, { "role": "assistant", "content": "import CeraonStore from './CeraonStore';\nimport CeraonAction from '../Actions/CeraonAction';\n\n// Se...
typescript
new_file
0
1
bsd-3-clause
9c27c88bdc91a95c21d18dea899b968d888adddd
Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound,Rdbaker/Mealbound
CeraonUI/src/Store/CeraonDispatcher.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create new TypeScript import paths for signature/subtle\n\nThis is part of the ongoing TypeScript migration efforts. It was omitted from the first round due to open questions about how to handle it.\n\nThis change just addresses the impo...
typescript
new_file
0
0
apache-2.0
95e97642971ee4b6c5189c41958599f23dcfc175
google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink,google/tink
javascript/signature/subtle/index.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add 2 failing table caption tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { DocumentNode } from '../../SyntaxNodes/DocumentNode'\nimport { TableNode } from '....
typescript
new_file
null
null
mit
851cc2aba5afbe076fbfc2bd66d0cc6b784f4d9a
start/up,start/up
src/Test/Ast/TableCaption.ts
rejected_code_smell
Internal duplication: ~159% of the file is inside repeated 12+ line blocks
null
[ { "role": "user", "content": "Write typescript code for the following: Add some tests forr good measure" }, { "role": "assistant", "content": "import { parseEnumValue } from '../../src/lib/enum'\n\nenum TestEnum {\n Foo = 'foo',\n Bar = 'bar is the thing',\n}\n\ndescribe('parseEnumValue', () =...
typescript
new_file
0
1
mit
28ef2fe2da17c644ee8991fba5b917a7418f7c5f
shiftkey/desktop,desktop/desktop,kactus-io/kactus,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,desktop/desktop,say25/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/for...
app/test/unit/enum-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create google play related constants" }, { "role": "assistant", "content": "export const GooglePlayConstants = {\n PLAY_STORE_ROOT_WEB: `https://play.google.com/store/apps/details?hl=en&id=`,\n PLAY_STORE_PACKAGE_NOT_PUBLIS...
typescript
new_file
0
0
apache-2.0
e9b2da97d237776e2879c33038cd16849a7727d5
chronogolf/nativescript-store-update,chronogolf/nativescript-store-update,chronogolf/nativescript-store-update,chronogolf/nativescript-store-update
src/constants/google-play.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for Quantity class" }, { "role": "assistant", "content": "import eventtypes = require('../lib/epcisevents');\nvar assert = require('assert');\n\ndescribe('Basic class functionality', () => {\n \n it('check the ...
typescript
new_file
0
1
mit
1a84384b3a464e162783745a7c9e0d7350a67ae0
matgnt/epcis-js,matgnt/epcis-js
tests/test_basic_classes.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add 2 passing table config tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../../index'\nimport { DocumentNode } from '../../../SyntaxNodes/DocumentNode'\nimport { TableNode } fr...
typescript
new_file
0
1
mit
a4be682d87b359713fe7f4f9fadeece6ed132ee0
start/up,start/up
src/Test/Ast/Config/Table.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test relating type predicates with and without this parameters" }, { "role": "assistant", "content": "// @strict: true\r\ninterface ListItem<TData> {\r\n prev: ListItem<TData> | null;\r\n next: ListItem<TData> | nul...
typescript
new_file
0
1
apache-2.0
b6aff98fd7fbb78532de718ff561f26fb7c43c61
kpreisser/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,microsoft/TypeScript,nojvek/TypeScript,minestarks/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,minestarks/TypeScript,nojvek/TypeScript,kpreisser/TypeScript,alexeagle/TypeScript,RyanCavanaugh/TypeScript,SaschaNa...
tests/cases/compiler/contravariantInferenceAndTypeGuard.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: improvement(withMap): Add HOC to access native map object." }, { "role": "assistant", "content": "import { MapRef, useMap } from 'react-map-gl'\nimport React, { Component, FC } from 'react'\n\n/**\n * Higher-order component t...
typescript
new_file
null
null
mit
01b8c8e9d68193a3f4044f5a0e7a148ba3b8cfd4
opentripplanner/otp-react-redux,opentripplanner/otp-react-redux,opentripplanner/otp-react-redux,opentripplanner/otp-react-redux
lib/components/map/with-map.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\ndeclare var beforeAll: (callback: () => void) => void;\ndeclare var beforeEach: (callback: () => void) => void;\ndeclare var afterAll: (callback: () => void) => void;\n\nimport * as detox from \"detox\";\nimport * as adapter from \"deto...
typescript
edit
0
1
mit
83f5cbe1e56d0c1fc8edb6fa2350c9eac26881aa
georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped
types/detox/test/detox-jest-setup-tests.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Type } from './type.model';\nimport { ItemTemplate } from '@core/game_master/gameMaster';\nimport { Util } from '@util';\n\nexport class TypeMapper {\n public static Map(rawType: ItemTemplate, typeIds: Map<number, string>): ...
typescript
edit
0
1
mit
de39f05e56364a34f00eb4ead9fe1bdbf0163e08
BrunnerLivio/pokemongo-data-normalizer,BrunnerLivio/pokemongo-json-pokedex,BrunnerLivio/pokemongo-json-pokedex,vfcp/pokemongo-json-pokedex,BrunnerLivio/pokemongo-data-normalizer,vfcp/pokemongo-json-pokedex
src/components/type/type.mapper.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test that StatBlock component renders its name" }, { "role": "assistant", "content": "import * as React from \"react\";\nimport * as renderer from \"react-test-renderer\";\nimport { StatBlock } from \"../../common/StatBlock\"...
typescript
new_file
null
null
mit
9360ca5ab0a653176ce3bd1794c8a4cc4fd0f316
cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative
client/Components/StatBlock.test.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: test: Test for dimensions service prepareTimeSteps" }, { "role": "assistant", "content": "import {\n BrowserDynamicTestingModule,\n platformBrowserDynamicTesting,\n} from '@angular/platform-browser-dynamic/testing';\nimport...
typescript
new_file
0
1
mit
4a7e0dc9602ebec4478ea0078eeb266a0b8763d8
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
projects/hslayers/src/common/dimension.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport styled from 'styled-components';\n\nimport { Draggable, DragMode, Unregister } from 'core/interactions/handlers/draggable';\n\ninterface Props {\n onDrag: (deltaY: number) => void;\n}\n\nexport c...
typescript
edit
null
null
mit
2266b78d831945bcb0966ed6564730032b3bb35b
cannoneyed/fiddle,cannoneyed/fiddle,cannoneyed/fiddle
app/features/SectionDivider/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add e2e test for test logout behaviour" }, { "role": "assistant", "content": "import { browser, element, by, ElementFinder, protractor, $, ExpectedConditions } from 'protractor';\r\nimport { LoginPageOjbect } from './login-pa...
typescript
new_file
0
1
mit
275ea9b18a262396500a4c66e3b13573082dbf70
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
e2e/logout.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add page size selector e2e test" }, { "role": "assistant", "content": "///<reference path=\"../node_modules/@types/jasmine/index.d.ts\"/>\n\nimport { browser, element, by } from '../node_modules/protractor/built';\n\ndescribe...
typescript
new_file
0
1
mit
8650a4129cb24a44c1f221bd877c6e375b52add0
unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2
src/Unosquare.Tubular2.Web/e2e/pageSizeSelector-test.e2e-spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add utility for getting tool homepages" }, { "role": "assistant", "content": "/**\n * Copyright 2020 Google Inc. All Rights Reserved.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use t...
typescript
new_file
0
0
apache-2.0
4696bc75849d4c62a9eba78007e35a1685e24b6b
GoogleChromeLabs/tooling.report,GoogleChromeLabs/tooling.report,GoogleChromeLabs/tooling.report
shared/utils/tool-homepages.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for schedule storage." }, { "role": "assistant", "content": "\nimport {expect} from \"chai\";\nimport {MemoryScheduleStorage} from \"../../../../main/Apha/Scheduling/Storage/MemoryScheduleStorage\";\nimport {Schedule...
typescript
new_file
0
1
mit
fc8052ec790b2fc43306e12ebf005d1160e2f544
martyn82/aphajs
src/test/Apha/Scheduling/Storage/MemoryScheduleStorage.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add first attempt at a declarative button group" }, { "role": "assistant", "content": "import * as React from 'react'\nimport * as classNames from 'classnames'\nimport { Button } from '../lib/button'\n\ninterface IOkCancelBut...
typescript
new_file
null
null
mit
ec07e4fbdce17062a137e6ee30d164831c6df0d9
artivilla/desktop,say25/desktop,desktop/desktop,desktop/desktop,say25/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,shiftkey/desktop...
app/src/ui/dialog/ok-cancel-button-group.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Create Maps utility comparison functions" }, { "role": "assistant", "content": "/*\nCopyright 2020 The Matrix.org Foundation C.I.C.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this fi...
typescript
new_file
0
1
apache-2.0
93b4ea5be43eda0d70963c54af80721cfa27b2ac
matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk,matrix-org/matrix-react-sdk
src/utils/maps.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Make function to make tokens from a sentence" }, { "role": "assistant", "content": "import { TokenisedPhrase } from '@/types'\nimport { tokeniseWord } from '@/functions/tokeniseWord'\n\nexport function tokeniseSentence(\n se...
typescript
new_file
0
3
mit
8900999afa75652f5e1a9ef656ba4b552dc861d3
rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo
src/functions/tokeniseSentence.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add empty file for footnote html config tests" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport { Up } from '../../../index'\nimport { FootnoteNode } from '../../../SyntaxNodes/FootnoteNode'\nimport...
typescript
new_file
0
0
mit
e2b8a8bb01b2c1b95202e03107db125c89e8332f
start/up,start/up
src/Test/Html/Config/Footnote.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add stub utility function for querying TO" }, { "role": "assistant", "content": "import axios from 'axios';\n\nexport const fetchRequesterTO = async (requesterIds: string[]) => {\n const x = await axios.get(`https://turkopti...
typescript
new_file
0
1
mit
0a3b928fef3fd05df5d3ddc7f45a549d14c79d82
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/turkopticon.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a helper function for converting time to milliseconds" }, { "role": "assistant", "content": "import { assertNever } from './fatal-error'\n\ntype Unit = 'year' | 'day' | 'hour' | 'minute' | 'second'\ntype Plural = `${Unit}...
typescript
new_file
0
11
mit
67894c08e837be1ee81af002ec534d8a8d5c73d2
desktop/desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop
app/src/lib/to-milliseconds.ts
rejected_complexity
Cyclomatic complexity too high: 11
true
[ { "role": "user", "content": "Write typescript code for the following: Test case for interface display parts" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts'/>\r\n\r\n////interface /*1*/i {\r\n////}\r\n////var /*2*/iInstance: /*3*/i;\r\n\r\ngoTo.marker('1');\r\nverify.ve...
typescript
new_file
0
0
apache-2.0
bd39fc72c6ea8304c00f7b469635b5bbbeeb1d17
kpreisser/TypeScript,HereSinceres/TypeScript,synaptek/TypeScript,HereSinceres/TypeScript,chuckjaz/TypeScript,OlegDokuka/TypeScript,Microsoft/TypeScript,donaldpipowitch/TypeScript,ziacik/TypeScript,shanexu/TypeScript,mihailik/TypeScript,OlegDokuka/TypeScript,chocolatechipui/TypeScript,AbubakerB/TypeScript,weswigham/Type...
tests/cases/fourslash/quicklInfoDisplayPartsInterface.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add months and days list" }, { "role": "assistant", "content": "export const MonthsList = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'N...
typescript
new_file
0
0
apache-2.0
292688119b54d0a9f404690d9d3ff5aa3419399a
Nersent/Wexond,Nersent/Wexond
src/renderer/constants/dictionary.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: test: Add test for <ControlPanel />" }, { "role": "assistant", "content": "import * as React from 'react';\nimport * as sinon from 'sinon';\nimport { expect } from 'chai';\nimport { shallow } from 'enzyme';\nimport { ControlP...
typescript
new_file
null
null
mit
f7e36f818b42bd84047d7c41a51b50341568980e
chengsieuly/devdecks,chengsieuly/devdecks,DevDecks/devdecks,DevDecks/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,Team-CHAD/DevDecks
test/components/ControlPanel.spec.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add currently unused Array.prototype.first extension" }, { "role": "assistant", "content": "declare global {\n interface Array<T> {\n first(): T | undefined\n }\n}\n\nArray.prototype.first = function first(): Element | u...
typescript
new_file
0
2
mit
0dca9096133632281cd91f65e0ecd3a8a8660509
JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk
helpers/Array+first.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add e2e test for fake eval 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-fake.js;drc=78e2bc9c2de...
typescript
new_file
0
1
bsd-3-clause
c8a1268df576cfcb92e068ec059d83e2a2f6f663
ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend
test/e2e/console/console-eval-fake_test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Support custom request handlers, and add a Google Cloud custom request handler that checks identity tokens" }, { "role": "assistant", "content": "import type {Request} from 'express';\n\n/**\n * Interface for custom request h...
typescript
new_file
0
0
apache-2.0
8b40723e0b301bf51a7a7f5d465bf65292e9cf8f
google/open-product-recovery,google/open-product-recovery,google/open-product-recovery
opr-core/src/server/customrequesthandler.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for ToUppercase decorator" }, { "role": "assistant", "content": "import { ToUppercase } from './../../src/';\n\ndescribe('ToUppercase decorator', () => {\n\n it('should throw an error when is applied over no...
typescript
new_file
0
1
mit
5ab573ae056e99f44c8d48f6548e80574fa744b1
semagarcia/typescript-decorators,semagarcia/typescript-decorators
test/property-decorators/to-uppercase.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add sample style object for Button" }, { "role": "assistant", "content": "const theme = {\n verticalAlign: '',\n background: '',\n textColor: '',\n fontFamily: '',\n horizontalMargin: '',\n verticalMargin: '',\n vertic...
typescript
new_file
0
0
mit
15082bcf9aee384a9b3e57b8b0736cffb120324e
maxdeviant/semantic-ui-css-in-js,maxdeviant/semantic-ui-css-in-js
src/styles/elements/button.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for min decorator" }, { "role": "assistant", "content": "import { Min } from './../../src/';\n\ndescribe('LoggerMethod decorator', () => {\n\n it('should assign a valid value (greater or equals than min valu...
typescript
new_file
0
1
mit
435fd38cb17645073f6f9d08ee3dc3fafa3769a9
semagarcia/typescript-decorators,semagarcia/typescript-decorators
test/property-decorators/min.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for EventListenerData" }, { "role": "assistant", "content": "import EventDispatcher from \"../src/lib/EventDispatcher\";\nimport EventListenerData from \"../src/lib/EventListenerData\";\nimport chai = require('c...
typescript
new_file
0
1
mit
c4c32b1e2b4138bfd4a1dcef80556baf30fa995e
mediamonks/seng-event,mediamonks/seng-event
test/EventListenerDataSpec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {SFC} from 'react'\nimport PropTypes from 'prop-types'\nimport _ from 'lodash'\nimport uuid from 'uuid'\n\nimport ReactTooltip from 'react-tooltip'\n\nimport {Source} from 'src/types'\n\ninterface Props {\n sourceOverride...
typescript
edit
null
null
mit
4f448a6ceefd850656ef35f5956ff59e21b860eb
nooproblem/influxdb,influxdb/influxdb,influxdata/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,...
ui/src/shared/components/SourceIndicator.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add pointer map data structure" }, { "role": "assistant", "content": "export interface PointerMapEntry<T> {\n id: number;\n value: T;\n}\n\nexport type PointerMap<T> = PointerMapEntry<T>[];\nexport type PointerMapList<T...
typescript
new_file
0
0
mit
ff53321059f0eb50c3b0ca9adf7d5d98fe88138b
ivijs/ivi,ivijs/ivi
src/events/gestures/pointer_map.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create test for disk strategy" }, { "role": "assistant", "content": "/// <reference path=\"../../../node_modules/@types/mocha/index.d.ts\" />\n/// <reference path=\"../../../node_modules/@types/chai/index.d.ts\" />\n\n/**\n* ...
typescript
new_file
0
2
mit
2b7c10cc0e2dddaf87cd652ea220950d9fecc613
robertmain/jukebox,robertmain/jukebox
test/media_providers/Disk/DiskStrategy.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create stub replacement for envForAuthentication" }, { "role": "assistant", "content": "import { envForAuthentication } from './authentication'\nimport { IGitAccount } from '../../models/git-account'\n\n/**\n * Create a set o...
typescript
new_file
0
1
mit
359d4626415ea07a11c1864a285bbc16ca85e888
say25/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,say25/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,kactus-io/k...
app/src/lib/git/environment.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add component to display file details\n\nCurrently displays the file name, but no reason this cannot be expanded to display additional info." }, { "role": "assistant", "content": "import * as React from 'react'\n\ninterface I...
typescript
new_file
null
null
mit
caa9467d8eadf5169f4239ca58da74a6d88e8993
hjobrien/desktop,BugTesterTest/desktops,shiftkey/desktop,BugTesterTest/desktops,BugTesterTest/desktops,gengjiawen/desktop,kactus-io/kactus,artivilla/desktop,say25/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,hjobrien/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,gengjiawen/desktop,shiftkey/desk...
app/src/ui/changes/changed-file-details.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {executable, sequence, decorate, string, noisySuggestions, runtime, choice} from \"../../shell/Parser\";\nimport {expandHistoricalDirectory} from \"../../Command\";\nimport {description, styles, style} from \"./Suggestions\";\nim...
typescript
edit
0
1
mit
31f47687feccbd4f6438668c0b63aabdaa7cb80f
j-allard/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,black-screen/black-screen,drew-gross/black-screen,vshatskyi/black-screen,drew-gross/black-screen,drew-gross/black-screen,shockone/black-screen,j-allard/black-screen,railsware/upterm,shockone/black-screen,vshatskyi/black-screen,j-allard/black-screen,rai...
src/plugins/autocompletion_providers/Cd.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add missing definition of Transfer." }, { "role": "assistant", "content": "import { Account } from \"./account\";\nimport { Balance } from \"./balance\";\nimport { Month } from \"./month\";\n\nexport interface Transfer {\n f...
typescript
new_file
0
0
apache-2.0
ce45813ce594495171ada31f62fcbf446ebb335b
cherba29/tally,cherba29/tally,cherba29/tally,cherba29/tally
server/apollo/src/core/transfer.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: [field] Fix nesting of fields in change list" }, { "role": "assistant", "content": "import {useState, useRef, useEffect} from 'react'\n\nexport function useHover<T extends HTMLElement>(): [React.MutableRefObject<T | null>, bo...
typescript
new_file
0
2
mit
0bd78503b9d90ecc0250fabc8423c006a30c9fe3
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
packages/@sanity/field/src/utils/useHover.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for ErrorMessageOverlay class" }, { "role": "assistant", "content": "import { UIInstanceManager } from './../../src/ts/uimanager';\nimport { ErrorMessageOverlay } from '../../src/ts/components/errormessageoverla...
typescript
new_file
0
1
mit
2ab033755b0756de6c95be0ce3da97abfcf0dc50
bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui,bitmovin/bitmovin-player-ui
spec/components/errormessageoverlay.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: test: Check if multiple apps can be loaded" }, { "role": "assistant", "content": "describe('Hslayers application', () => {\n beforeEach(() => {\n cy.visit('/multi-apps');\n });\n\n it('should display multiple hslayers e...
typescript
new_file
0
1
mit
db1c23f25c3d943bd5c04e04ab26066e536e5384
hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng
cypress/tests/multi-apps.cy.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Omit, Sizes, SelectCallback } from 'react-bootstrap';\nimport CarouselItem = require('./CarouselItem');\nimport CarouselCaption = require('./CarouselCaption');\n\ndeclare namespace Carousel {\n ...
typescript
edit
0
0
mit
f137b3e122354a6e651a65fa2325570a276bc4a9
AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyType...
types/react-bootstrap/lib/Carousel.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Introduce input component specifically for IFQL function selection" }, { "role": "assistant", "content": "import React, {SFC, ChangeEvent, KeyboardEvent} from 'react'\n\ntype OnFilterChangeHandler = (e: ChangeEvent<HTMLInputE...
typescript
new_file
null
null
mit
621227987b0faa7329c0f460102fe43f8bc49d50
nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdata/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/i...
ui/src/shared/components/FuncSelectorInput.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 Dygraph from 'dygraphs'\nimport {connect} from 'react-redux'\n\nimport {DYGRAPH_CONTAINER_XLABEL_MARGIN} from 'src/shared/constants'\n\ninterface Props {\n hoverTime: number\n dygraph...
typescript
edit
null
null
mit
5da9a00b93ad2c2a1b05a819dba75d562a14647d
nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,li-ang/influxdb,influxdb/influxdb,influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,in...
ui/src/shared/components/Crosshair.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add Angleworms II style collisions detection." }, { "role": "assistant", "content": "import IMap from '../interfaces/map.interface';\nimport IPlayerCollisionDetectorComponent from '../interfaces/player-collision-detector-comp...
typescript
new_file
0
1
isc
a9e55e1eee0d1df4fe59d2513067a21e59a5f111
kamsac/angleworms-game,kamsac/angleworms-game
src/classes/angleworms-collision-detector.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for AuthService class" }, { "role": "assistant", "content": "import { AuthService } from './auth.service';\r\n\r\ndescribe('Testing for AuthService Class', ()=>{\r\n let service : AuthService;\r\n\r\n befo...
typescript
new_file
0
1
mit
19f932748efcb2eb257be979e9705769623b18b8
fedorax/angular-basic,fedorax/angular-basic,fedorax/angular-basic
myFirstApps/src/app/class/auth.service.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add time based question loading algorithm" }, { "role": "assistant", "content": "///<reference path=\"../../../typings/globals/shuffle-array/index.d.ts\"/>\nimport * as shuffleArray from \"shuffle-array\";\n\nexport class Qui...
typescript
new_file
0
3
mit
cd2708fb0e8a0e3b820c5a6146d842625ba022cf
shavindraSN/examen,shavindraSN/examen,shavindraSN/examen
server/libs/api/quiz-functions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nclass $mol_build_server extends $mol_server {\n\t\n\texpressGenerator() {\n\t\treturn ( req : any , res : any , next : () => void )=> {\n\t\t\ttry {\n\t\t\t\treturn this.generator( req.url ) || next()\n\t\t\t} catch( error ) {\n\t\t\t\t...
typescript
edit
0
4
mit
569b304e794dfab0aefd5d837e88c42f3180faa8
nin-jin/mol,eigenmethod/mol,nin-jin/mol,eigenmethod/mol,eigenmethod/mol,nin-jin/mol
build/server/server.env=node.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: test: Add test for MOVE_SLIDE_UP on slides reducer" }, { "role": "assistant", "content": "import { expect } from 'chai';\nimport { MOVE_SLIDE_UP } from '../../../../app/constants/slides.constants';\n\nexport default function(...
typescript
new_file
0
1
mit
d0240ed204a02a5cd006295c3fa24b90bee75bf4
DevDecks/devdecks,DevDecks/devdecks,DevDecks/devdecks,chengsieuly/devdecks,chengsieuly/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks,Team-CHAD/DevDecks,Team-CHAD/DevDecks
test/reducers/slides/actions/moveSlideUp-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nexport interface DebounceProps {\n children: ((props: () => void) => React.ReactNode);\n debounceFn: (event: React.FormEvent<any>) => void;\n time?: number;\n}\n\nexport class Debounce extends Rea...
typescript
edit
0
2
bsd-3-clause
8b5bece6c7a1cefb09a5601dcd87944e91e0dfff
maferelo/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,UITools/saleor,mociepka/saleor
saleor/static/dashboard-next/components/Debounce.tsx
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Copy toChecksumAddress util from cardpay-subgraph" }, { "role": "assistant", "content": "import { crypto, ByteArray, Address } from '@graphprotocol/graph-ts';\n\nexport function toChecksumAddress(address: Address): string {\n...
typescript
new_file
0
4
mit
5dacd118f2ad04098fcdeff833f111b89a925307
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/safe-tools-subgraph/src/utils.ts
accepted
null
true