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 vcs authentication info dummy" }, { "role": "assistant", "content": "import { Dummy, TextDummy, TypesDummy } from '../../test/helpers';\nimport { VcsAuthenticationInfo, VcsAuthenticationTypes } from './vcs';\n\n\nexport c...
typescript
new_file
0
2
mit
1fae391e07620a33381f14c61ebc4357deecf150
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
src/core/dummies.ts
rejected_duplicate
Near-duplicate of sample 116061
true
[ { "role": "user", "content": "Write typescript code for the following: Add some smoke tests for timeout()\n\nCo-Authored-By: Rafael Oleza <2cf5b502deae2e387c60721eb8244c243cb5c4e1@users.noreply.github.com>" }, { "role": "assistant", "content": "import { timeout, sleep } from '../../src/lib/promi...
typescript
new_file
0
1
mit
6f4372c2d950bdcaa83ebda070c3c0a92a13d7f6
artivilla/desktop,kactus-io/kactus,shiftkey/desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,say25/desktop,desktop/desktop,shiftkey/deskt...
app/test/unit/promise-test.ts
rejected_duplicate
Near-duplicate of sample 115980
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for renaming accorss modules using export=" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts' />\n\n////declare namespace N {\n//// export var x: number;\n////}\n////declare module \"mod\" {...
typescript
new_file
0
0
apache-2.0
9b01783e2d6cf94ec0aa720b6e1ef6f03c59e1ba
thr0w/Thr0wScript,jeremyepling/TypeScript,synaptek/TypeScript,microsoft/TypeScript,fabioparra/TypeScript,donaldpipowitch/TypeScript,yortus/TypeScript,AbubakerB/TypeScript,alexeagle/TypeScript,SaschaNaz/TypeScript,DLehenbauer/TypeScript,basarat/TypeScript,mmoskal/TypeScript,minestarks/TypeScript,weswigham/TypeScript,noj...
tests/cases/fourslash/renameImportOfExportEquals.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add fourslash test of jsdoc backtick parsing" }, { "role": "assistant", "content": "///<reference path=\"fourslash.ts\" />\n\n// @noEmit: true\n// @allowJs: true\n// @checkJs: true\n// @strict: true\n// @Filename: jsdocParseM...
typescript
new_file
0
0
apache-2.0
2362dd4facb2e2f55a663f1b2b556a1773490eb3
Microsoft/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,microsoft/TypeScript,SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,minestarks/TypeScript,SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,Sascha...
tests/cases/fourslash/quickInfoJSDocBackticks.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Set up importer test harness." }, { "role": "assistant", "content": "import {Importer} from \"../../app/import/importer\";\nimport {Parser, ParserResult} from \"../../app/import/parser\";\nimport {Observable} from \"rxjs/Obse...
typescript
new_file
0
2
apache-2.0
407c8df39bd4cb49d0c9982fbdf2f0c404392a72
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
test/browser/importer.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit tests for max decorator" }, { "role": "assistant", "content": "import { Max } from './../../src/';\n\ndescribe('LoggerMethod decorator', () => {\n\n it('should assign a valid value (less than max value)', () => {\...
typescript
new_file
0
1
mit
c5ac39421d664f5db895b7abc674a26a75caf427
semagarcia/typescript-decorators,semagarcia/typescript-decorators
test/property-decorators/max.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: [BF2020-57] Save BF modal state with API" }, { "role": "assistant", "content": "export const getFeature = (featureCode: string) => ({\n url: `core/v4/features/${featureCode}`,\n method: 'get',\n});\n\nexport const updat...
typescript
new_file
0
1
mit
e3289e2218d2566ce56baa50ec0561efd1a6cba0
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
packages/shared/lib/api/features.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for jsdoc syntactic classification for function declaration" }, { "role": "assistant", "content": "/// <reference path=\"fourslash.ts\"/>\r\n\r\n//// /** @param {number} p1 */\r\n//// function foo(p1) {}\r\n\r\nvar c...
typescript
new_file
0
0
apache-2.0
e445e012c4fe9a3673204988491266a41d56fd7a
jeremyepling/TypeScript,Eyas/TypeScript,weswigham/TypeScript,chuckjaz/TypeScript,vilic/TypeScript,chuckjaz/TypeScript,alexeagle/TypeScript,nojvek/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,kpreisser/TypeScript,Microsoft/TypeScript,mihailik/TypeScript,basarat/TypeScript,microsoft/TypeScript,DLehenbauer/TypeS...
tests/cases/fourslash/syntacticClassificationsDocComment4.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add El País Brasil website" }, { "role": "assistant", "content": "import * as cheerio from 'cheerio';\nimport * as prettyjson from 'prettyjson';\nimport * as requestPromise from 'request-promise';\nimport { ICrawlerInfo } fro...
typescript
new_file
0
1
mit
97957dff5b8b36da3c63a5b5c600d9a68b98888a
mateusduraes/crawler-br-news,mateusduraes/crawler-br-news
src/crawlers/elpaisbrasil.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for setting page" }, { "role": "assistant", "content": "import { TestBed, inject, async, ComponentFixture } from '@angular/core/testing';\nimport { SettingsPage } from './settings';\nimport { App, Config, Form, ...
typescript
new_file
0
1
mit
afcc5879000f3f56304f6d251cd16ec9bb006bc8
IMSmobile/app,IMSmobile/app,IMSmobile/app,IMSmobile/app
src/pages/settings/settings.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test coverage for WorkflowPostable" }, { "role": "assistant", "content": "import { module, test } from 'qunit';\nimport { setupTest } from 'ember-qunit';\nimport { Workflow } from '@cardstack/web-client/models/workfl...
typescript
new_file
0
1
mit
3dae6624fa5dccdb8785fd0bfb13dcb58f0fbb4a
cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack,cardstack/cardstack
packages/web-client/tests/unit/models/workflow/workflow-postable-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add passing table of contents test" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { DocumentNode } from '../../SyntaxNodes/DocumentNode'\nimport { PlainTextNode } fr...
typescript
new_file
0
1
mit
7ca5f08331c471d91b5c8f2bb85d81a9342e7110
start/up,start/up
src/Test/Ast/TableOfContents.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Move `IResult`, `ISearchProvider`, and `ISearchProviderDesc`\n\nto new folder _src/public/search/_ in tdp_core" }, { "role": "assistant", "content": "/*********************************************************\n * Copyright (c...
typescript
new_file
0
0
bsd-3-clause
5ba416897c98c20ae2b15e92a121032949496de5
datavisyn/tdp_core,datavisyn/tdp_core,datavisyn/tdp_core,datavisyn/tdp_core
src/public/search/SearchProviderInterfaces.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport fs = require(\"fs\");\nimport path = require(\"path\");\n\nexport module VORLON {\n export class LogConfig {\n public vorlonLogFile: string;\n public exceptionsLogFile: string;\n public enableConsole: boo...
typescript
edit
0
6
mit
89873454861b8941bd3e63d13fb670a3fece64a4
lahloumehdi/Vorlonjs,RaphaelLichan/Vorlonjs,gleborgne/Vorlonjs,SpencerRothschild/Vorlonjs,RaphaelLichan/Vorlonjs,SpencerRothschild/Vorlonjs,sayar/Vorlonjs,sayar/Vorlonjs,gleborgne/Vorlonjs,sayar/Vorlonjs,gleborgne/Vorlonjs,SpencerRothschild/Vorlonjs,lahloumehdi/Vorlonjs,lahloumehdi/Vorlonjs,SpencerRothschild/Vorlonjs,R...
Server/config/vorlon.logconfig.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a utility function for escaping regexes" }, { "role": "assistant", "content": "/**\n * Converts the input string by escaping characters that have special meaning in\n * regular expressions.\n *\n * From https://developer....
typescript
new_file
0
1
mit
b761c62095a0f44ddf70ea984b953263123b1df3
BugTesterTest/desktops,desktop/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,hjobrien/desktop,gengjiawen/desktop,shiftkey/desktop,hjobrien/desktop,artivilla/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,shiftkey/desktop,hjobrie...
app/src/ui/lib/escape-regex.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Implement S3 sync file helper" }, { "role": "assistant", "content": "// tslint:disable:no-any no-console\nimport * as AWS from 'aws-sdk';\n\nconst BUCKET_NAME = 'l4gg-timeline.ajhyndman.com';\nconst REGION = 'us-east-1';\ncon...
typescript
new_file
0
2
mit
20bd66d808c1ea5caa617d199e6b808b4f815a8d
L4GG/timeline,L4GG/timeline,L4GG/timeline
airtable-custom-form/src/syncFileToS3.tsx
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for deep cloning objects." }, { "role": "assistant", "content": "import {fdescribe,describe,expect,fit,it,xit, inject,beforeEach, beforeEachProviders} from 'angular2/testing';\nimport {provide} from \"angular2/core\"...
typescript
new_file
0
1
apache-2.0
40d9f58db76aa3aa1adf1f9e8eabba0c0ecf8c49
codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client
src/test/model-utils.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create re-usable pioneer plan banner component" }, { "role": "assistant", "content": "import * as React from 'react'\nimport styled from 'styled-components'\n\nimport { PrimaryAction } from 'src/common-ui/components/design-li...
typescript
new_file
null
null
mit
4cce2b54a5c7a4645937fc398c0c4b0d1d30d446
WorldBrain/WebMemex,WorldBrain/WebMemex
src/common-ui/components/pioneer-plan-banner.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add database schema for the metrics" }, { "role": "assistant", "content": "import { IDatabase } from \"pg-promise\";\n\n// tslint:disable-next-line: no-any\nexport async function runSchema(db: IDatabase<any>) {\n // Create...
typescript
new_file
0
1
apache-2.0
0442291ac04a0c62c5b8c63377b39bd4a60f5292
matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack,matrix-org/matrix-appservice-slack
src/datastore/postgres/schema/v5.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: test(Services): Check each provider and service is injected" }, { "role": "assistant", "content": "import * as angular from \"angular\";\nimport { UIRouter, trace } from \"ui-router-core\";\n\ndeclare var inject;\n\nvar modul...
typescript
new_file
0
1
mit
e429b1a131348670bb40f3b9ba65ac94c18b326e
angular-ui/ui-router,codersongs/codersongs.github.io,codersongs/codersongs.github.io,mattlewis92/ui-router,fpipita/ui-router,fpipita/ui-router,fpipita/ui-router,mattlewis92/ui-router,angular-ui/ui-router,angular-ui/ui-router
test/servicesSpec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for hash calculator" }, { "role": "assistant", "content": "import * as assert from \"assert\";\n\nimport { HashCalculator } from \"../../../src/Documents/Queries/HashCalculator\";\nimport { TypesAwareObjectMapper } ...
typescript
new_file
0
1
mit
be2ae055909b5dd2c2b8c87266ef42bec8f64ea9
ravendb/ravendb-nodejs-client,ravendb/ravendb-nodejs-client
test/Documents/Queries/HashCalculatorTest.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test file for settings model" }, { "role": "assistant", "content": "import { module, test } from 'qunit';\nimport { setupTest } from 'ember-qunit';\nimport { run } from '@ember/runloop';\n\nmodule('Unit | Model | setting'...
typescript
new_file
0
1
apache-2.0
1a5d5b758490f61e1163fdaf4f370bbc7dd1bf88
ExplorViz/explorviz-ui-frontend,ExplorViz/explorviz-ui-frontend,ExplorViz/explorviz-ui-frontend
tests/unit/models/setting-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add subject functions - Support API functions" }, { "role": "assistant", "content": "///<reference path=\"../../../typings/globals/mysql/index.d.ts\"/>\nimport * as mysql from 'mysql';\nimport { Subject } from '../../../clien...
typescript
new_file
0
2
mit
e45a98137ecc7363af36721046358e1da5331fad
shavindraSN/examen,shavindraSN/examen,shavindraSN/examen
server/libs/api/subject-functions.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a script which just dumps the path to the trickline exe" }, { "role": "assistant", "content": "import * as fs from 'fs';\nimport * as path from 'path';\n\nconst rootDir = path.dirname(require.resolve('../package.json'));\...
typescript
new_file
0
1
bsd-3-clause
4d247a4827340d71d549ebbd718b91c069b7110e
paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline
script/find-trickline-exe.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Include missing file and Fix build error" }, { "role": "assistant", "content": "class StudyEventArgs {\n constructor(study: StudyParams) {\n this._studyParams = study;\n }\n\n private _studyParams: StudyParams;\n\...
typescript
new_file
0
1
mit
97a54e6c5d8b7b13ad2865ccd9341d6594835e36
Zaid-Safadi/dicom-webJS
Demo/Types/StudyEventArgs.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for required validator" }, { "role": "assistant", "content": "import { required, failure, success } from '../../patch/validator'\n\ndescribe('validators', () => {\n describe('required', () => {\n it('failur...
typescript
new_file
0
1
apache-2.0
cacd7705f88a96ec62163ab78229e0479bb57e85
squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase
functions/src/__tests__/patch/validators.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a stub for comm tests" }, { "role": "assistant", "content": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n'use strict';\n\nimport expect = require('expect.js');\...
typescript
new_file
0
1
bsd-3-clause
76685240e688f6083d7a674f0cb25a959cf0e401
jupyter/jupyter-js-services,blink1073/jupyter-js-services,jupyterlab/services,minrk/jupyter-js-services,blink1073/services,blink1073/services,blink1073/jupyter-js-services,blink1073/jupyter-js-services,jupyter/jupyter-js-services,blink1073/services,jupyter/jupyter-js-services,jupyterlab/services,minrk/jupyter-js-servic...
test/src/testcomm.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Refactor gallery mock data for tests" }, { "role": "assistant", "content": "import { AlbumInfo } from '../album-info';\n\nexport const MOCK_ALBUMDATA: AlbumInfo = {\n albumId: 1,\n title: 'title',\n name: 'name',\n descri...
typescript
new_file
0
0
apache-2.0
eaf6a9651421405ea14a837fb39606de8814a32a
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/gallery/mocks/mock-data.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for import component" }, { "role": "assistant", "content": "import {ComponentFixture, TestBed, async} from \"@angular/core/testing\";\nimport { Observable } from \"rxjs\";\nimport {FormsModule} from \"@angular/forms...
typescript
new_file
0
1
mit
359b1d65810ddfb0bd8944682e50264c6b8115f3
UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CSci-3601-S17/digital-display-garden-iteration-4-dorfner-v2,UMM-CSci-3601-S17/digital-display-garden-iteration-3-dorfner,UMM-CS...
client/src/app/admin/import.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/** Component name resolver for unplugin-vue-components. */\n\nexport function CoalesceVuetifyResolver() {\n return {\n type: \"component\",\n resolve: (name: string) => {\n if (name.match(/^C[A-Z]/))\n return { name,...
typescript
edit
0
5
apache-2.0
6fe95608e0e629fae10fbdabc846554919c66d28
IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce,IntelliTect/Coalesce
src/coalesce-vue-vuetify2/src/build.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add pagination component for DatabaseFilter." }, { "role": "assistant", "content": "import * as React from 'react';\nimport { Pagination } from '@shopify/polaris';\n\nexport interface DatabaseFilterPaginationProps {\n readon...
typescript
new_file
null
null
mit
8cf29658baad9941267f44b51941cffb57598d7e
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/components/DatabaseFilter/DatabaseFilterPagination.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Add 2 config tests, 1 passing and 1 failing" }, { "role": "assistant", "content": "import { expect } from 'chai'\nimport { Up } from '../../../index'\nimport { insideDocumentAndParagraph } from '../Helpers'\nimport { VideoNod...
typescript
new_file
0
1
mit
7229192eaeee97f043626a75f88774dee6819d2f
start/up,start/up
src/Test/Ast/Config/Video.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a CollectionsComponent test suite." }, { "role": "assistant", "content": "import { Observable } from 'rxjs';\nimport { provide } from '@angular/core';\nimport {\n describe, it, inject, beforeEachProviders, expect\n} from...
typescript
new_file
0
1
bsd-2-clause
5f5096c9d1667e17c8ad5ff7dd0a3065b826b41b
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
src/collections/collections.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { getClosestElement } from './getClosestElement';\n\ndescribe('getClosestElement', () => {\n it('gets the closest ancestor matching the given selector', () => {\n const ANCESTOR_ID = 'foo';\n\n const ancestor = d...
typescript
edit
0
1
mit
e94aa8681316af490984ac256fac90f1b02cf377
springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion
src/helpers/getClosestElement.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Define crumpet data. Note the patch for a lack of string based enums to be fixed in a future version of TypeScript." }, { "role": "assistant", "content": "\ntype CrumpetType = \"English\" | \"Scottish\" | \"Square\" | \"Pikel...
typescript
new_file
0
0
unlicense
37089caa2777114ed2b350aa2468413daf2bbd1d
luketn/WonderCrumpet
app/data/Crumpet.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add the dup utility function." }, { "role": "assistant", "content": "import * as _ from 'lodash';\n\n/**\n * Makes an array filled with a value.\n *\n * @method dup\n * @param value {any} the array item value\n * @param n {nu...
typescript
new_file
0
1
bsd-2-clause
bb1ac7d58548f95d5553f93bac4e5b805dabdcc2
ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile,ohsu-qin/qiprofile
src/language/language.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport CssBaseline from \"@material-ui/core/CssBaseline\";\nimport MuiThemeProvider from \"@material-ui/core/styles/MuiThemeProvider\";\nimport * as React from \"react\";\n\nimport { Provider as DateProvider } from \"../components/Date/...
typescript
edit
null
null
bsd-3-clause
85108de728a86ef871ee1d76599ef6c94d07c4c9
UITools/saleor,mociepka/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,UITools/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 { ReadConverter } from '../types/index'\nimport { readName, readValue } from './converter'\n\ntype GetReturn<T, R> = [T] extends [undefined]\n ? object & { [property: string]: string }\n : R | undefined\n\nexport default functi...
typescript
edit
0
0
mit
626453312b2ddd7758bbe430ee2939c2ee978aca
carhartl/js-cookie,carhartl/js-cookie
src/get.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for notebook sub-module in commutable" }, { "role": "assistant", "content": "import Immutable from \"immutable\";\n\nimport { fromJS, parseNotebook, toJS } from \"../src/notebook\";\nimport { makeNotebookRecord } fr...
typescript
new_file
0
1
bsd-3-clause
8ba11eae235679b9373954119db4f99694f8ea48
nteract/composition,nteract/composition,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract
packages/commutable/__tests__/notebook.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add regression test for object literal member list" }, { "role": "assistant", "content": "/// <reference path=\"fourslash.ts\" />\r\n\r\n////interface point {\r\n//// x: number;\r\n//// y: number;\r\n////}\r\n////interf...
typescript
new_file
0
0
apache-2.0
e178e7852c209b362d4e3105c12d0cefa6e1d199
tarruda/typescript,rbirkby/typescript,mbrowne/typescript-dci,fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts,tarruda/typescript,popravich/typescript,hippich/typescript,guidobouman/typescript,guidobouman/typescript,mbrowne/typescript-dci,mbrowne/typescript-dci,rbirkby/typescript,vcsjones/typescript,turbulen...
tests/cases/fourslash/completionListInObjectLiteral.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';\r\nimport { TextContainer } from '@shopify/polaris';\r\nimport { AddWatcher, addW...
typescript
new_file
null
null
mit
2db90dbe629587965620b4b8e02f4f12f0efa08f
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: test: Add test for UPDATE_CURRENT_PLUGIN for slides reducer" }, { "role": "assistant", "content": "import { expect } from 'chai';\nimport { UPDATE_CURRENT_PLUGIN } from '../../../../app/constants/slides.constants';\n\nexport ...
typescript
new_file
0
1
mit
80a23effefd61a98d1a4a5e2bd46a5829c2bd61d
DevDecks/devdecks,DevDecks/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks,Team-CHAD/DevDecks,chengsieuly/devdecks,chengsieuly/devdecks
test/reducers/slides/actions/updateCurrentPlugin-spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { storiesOf } from \"@storybook/react\";\nimport * as React from \"react\";\n\nimport MenuDetailsPage, {\n MenuDetailsPageProps\n} from \"../../../navigation/components/MenuDetailsPage\";\nimport { menu } from \"../../../navigat...
typescript
edit
null
null
bsd-3-clause
4f46ad0c1ed3e6702cc372c28b92ed84a59af648
maferelo/saleor,maferelo/saleor,maferelo/saleor,mociepka/saleor,mociepka/saleor,mociepka/saleor
saleor/static/dashboard-next/storybook/stories/navigation/MenuDetailsPage.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Create function for letter retrieval" }, { "role": "assistant", "content": "import { Alphabet, Letter } from './types'\nimport alphabets from '!!raw-loader!./alphabets.toml'\n\nexport function getLetter(alphabets: string[], l...
typescript
new_file
0
1
mit
cf2889c63f16d36079eaa15d8d3cbe9459d70d3f
rossjrw/gallifreyo,rossjrw/gallifreyo,rossjrw/gallifreyo
src/functions/alphabets.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Split remote parsing into its own thing" }, { "role": "assistant", "content": "interface IGitRemoteURL {\n readonly hostname: string\n readonly owner: string | null\n readonly repositoryName: string | null\n}\n\nexport fun...
typescript
new_file
0
4
mit
9b237b98c049ffcd10162cc63d79871cabef1d7a
j-f1/forked-desktop,kactus-io/kactus,hjobrien/desktop,hjobrien/desktop,j-f1/forked-desktop,hjobrien/desktop,desktop/desktop,hjobrien/desktop,kactus-io/kactus,BugTesterTest/desktops,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,artivilla/desktop,kactus-io/kactus,artivilla/desktop,artivilla/d...
app/src/lib/repository-remote-parsing.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Move generating ResourceList.Item props to separate utility file." }, { "role": "assistant", "content": "import { Hit, Requester } from '../types';\r\nimport { calculateAllBadges } from './badges';\r\nimport { truncate } from...
typescript
new_file
0
2
mit
3d0b74a97b43d942d40742e80c01562291994460
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/utils/hitItem.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Fix the typescript compiler error" }, { "role": "assistant", "content": "/**\n * @license MIT License\n *\n * Copyright (c) 2015 Tetsuharu OHZEKI <<EMAIL>>\n * Copyright (c) 2015 Yusuke Suzuki <<EMAIL>>\n *\n * Permission is ...
typescript
new_file
0
0
mit
2bdebbf2bee19ab64a6b6f20d5c51177997b2667
karen-irc/karen,karen-irc/karen
client/script/output/view/ToggleItem.d.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add data for Sioux Falls" }, { "role": "assistant", "content": "import CSVParse = require('csv-parse/lib/sync');\n\nimport { Download } from '../../Download'\nimport { Picnic } from '../../../models/Picnic';\n\n// From https:...
typescript
new_file
0
3
mit
1c8307fd8d4c97c81d1d3417d948f7101d901aeb
earthiverse/picknic,earthiverse/picknic
source/data/US/SD/SiouxFalls_.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Test branch grouping and filtering" }, { "role": "assistant", "content": "import * as chai from 'chai'\nconst expect = chai.expect\n\nimport { groupedAndFilteredBranches } from '../src/ui/branches/grouped-and-filtered-branche...
typescript
new_file
0
1
mit
4e705c79fcd3cda0d1c1a2f9ed7dee93271d20ab
shiftkey/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,kactus-io/kactus,j-f1/forked-desktop,hjobrien/desktop,kactus-io/kactus,BugTesterTest/desktops,hjobrien/desktop,BugTesterTest/desktops,artivilla/desktop,artivilla/desktop,kactus-io/kactus,gengjiawen/desktop,desktop/desktop,say25/desktop,artivilla/desktop,...
app/test/grouped-and-filtered-branches-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a Type Injector Transformer" }, { "role": "assistant", "content": "import { transform as transformInternal, TransformerFactory, SourceFile, TypeChecker, visitEachChild, visitNode, Node, SyntaxKind, VariableDeclaration, cr...
typescript
new_file
0
3
mit
91d3286a1d08d1c39272ba7376fb649eb6deb38d
AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter
src/transformers/TypeInjectorTransformer.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add Control component tests outline" }, { "role": "assistant", "content": "describe(\"Control\", () => {\n\n xit(\"renders the structure correctly\", () => {\n //\n });\n\n xit(\"renders with class carousel-co...
typescript
new_file
0
1
apache-2.0
41a2670e16c1ae9e870807bec656406fbbff0862
FlockOfBirds/carousel,FlockOfBirds/carousel,mendixlabs/carousel,mendixlabs/carousel
src/com/mendix/widget/carousel/components/__tests__/Control.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add reducer to respond to UPDATE_DB_SEARCH_TERM." }, { "role": "assistant", "content": "import { UPDATE_DB_SEARCH_TERM } from '../constants';\nimport { DatabaseFilterSettings } from 'types';\nimport { UpdateDatabaseSearchTerm...
typescript
new_file
0
2
mit
5604ed0c49b74124b66df979183a1045046b9f93
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
src/reducers/databaseFilterSettings.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Create the base node filter interface" }, { "role": "assistant", "content": "export interface INodeFilter {\n /**\n * Creates a document tree walker filtered to the nodes relevant to the node filter.\n *\n * Examples:\...
typescript
new_file
0
0
mit
c5f778754f9e32fb59a1777dc2457e709c86b0fa
shiftkey/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,shiftkey/desktop
app/src/lib/markdown-filters/node-filter.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test case for codeFix" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts' />\r\n\r\n// @noUnusedLocals: true\r\n// @noUnusedParameters: true\r\n\r\n////export class Example {\r\n//// prop: any;\r\...
typescript
new_file
0
0
apache-2.0
d411fa34a7b771b9682ff6b39bec96f61ff16588
SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,donaldpipowitch/TypeScript,kitsonk/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,minestarks/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,nojvek/TypeScript,microsoft/TypeScript,wes...
tests/cases/fourslash/codeFixUnusedIdentifier_parameter_modifier.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Set global replacements in flipper-frontend-core\n\nSummary: Extract setting global replacements from plugin initialization\n\nReviewed By: mweststrate\n\nDifferential Revision: D36129749\n\nfbshipit-source-id: 6f5b3e27c1b798124b5f2772e9...
typescript
new_file
0
1
mit
ea6c293726e54c72f53f51708e9b1f2c22cb9c2e
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
desktop/flipper-frontend-core/src/globalObject.tsx
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a component for rendering template references" }, { "role": "assistant", "content": "import {\n\tDirective, Input, AfterContentInit,\n\tTemplateRef, ViewContainerRef, EmbeddedViewRef\n} from 'angular2/core';\n\n// Renders...
typescript
new_file
0
4
mit
e95bb8197f695159a55e65d980d09124e084148d
SonofNun15/conf-template-components,SonofNun15/conf-template-components,SonofNun15/conf-template-components
components/render-template/render-template.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add more test for 10426" }, { "role": "assistant", "content": "/// <reference path=\"../fourslash.ts\"/>\r\n\r\n// @allowNonTsExtensions: true\r\n// @Filename: a.js\r\n//// /**\r\n//// * Modify the parameter\r\n//// * @para...
typescript
new_file
0
0
apache-2.0
eeec775da0f3dabe9c73254c02b5254bab84c882
jwbay/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,donaldpipowitch/TypeScript,nojvek/TypeScript,basarat/TypeScript,DLehenbauer/TypeScript,basarat/TypeScript,SaschaNaz/TypeScript,microsoft/TypeScript,vilic/TypeScript,erikmcc/TypeScript,jeremyepling/TypeScript,Eyas/TypeS...
tests/cases/fourslash/server/completionEntryDetailAcrossFiles02.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add story for formatted text component" }, { "role": "assistant", "content": "import { NgxMdModule } from 'ngx-md';\n\nimport { HttpClientModule } from '@angular/common/http';\nimport { NgModule } from '@angular/core';\nimpor...
typescript
new_file
0
1
apache-2.0
34ba173e92924d7584700f38265bac709501c7be
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/shared/formatted-text/formatted-text.component.stories.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add notNull filter with type guard\n\nSummary: You need to use a type guard when narrowing types in a filter.\n\nReviewed By: danielbuechele\n\nDifferential Revision: D17163782\n\nfbshipit-source-id: aa78bdd392653ebf1080a04e62e131b607e51...
typescript
new_file
0
0
mit
16457e2adbfddaa1bc445df331a77f75b419b7a6
facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper
src/utils/typeUtils.tsx
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add garbage collect function from WebGL CTS" }, { "role": "assistant", "content": "// tslint:disable-next-line: no-any\ndeclare const Components: any;\n\nexport function attemptGarbageCollection(): void {\n // tslint:disable...
typescript
new_file
0
7
bsd-3-clause
5f1349ed0d7a13d9927cc3e8f1463d718e862b66
gpuweb/cts,gpuweb/cts,gpuweb/cts
src/framework/collect_garbage.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, {Component} from 'react'\nimport classnames from 'classnames'\nimport {ErrorHandling} from 'src/shared/decorators/errors'\nimport './slide-toggle.scss'\n\nimport {ComponentColor, ComponentSize} from 'src/reusable_ui/types'...
typescript
edit
null
null
mit
2e1e6eced75ed73bcb4671fb270df5f72da29ecf
mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,noopro...
ui/src/reusable_ui/components/slide_toggle/SlideToggle.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n////class C {\r\n////<<<<<<< HEAD\r\n//// v = 1;\r\n////=======\r\n////v = 2;\r\n////>>>>>>> Branch - a\r\n////}\r\n\r\nformat.document();\r\nverify.currentFileContentIs(\"class C {\\r\\n\...
typescript
edit
0
0
apache-2.0
0707350c7bcd41a7b0b30b1d71aaf43d8bfc2718
RyanCavanaugh/TypeScript,yortus/TypeScript,shiftkey/TypeScript,kumikumi/TypeScript,Raynos/TypeScript,nagyistoce/TypeScript,mihailik/TypeScript,thr0w/Thr0wScript,billti/TypeScript,nycdotnet/TypeScript,mszczepaniak/TypeScript,JohnZ622/TypeScript,mmoskal/TypeScript,blakeembrey/TypeScript,minestarks/TypeScript,MartyIX/Type...
tests/cases/fourslash/formatConflictMarker1.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: server: Add basic integration tests for chokidar" }, { "role": "assistant", "content": "import * as path from 'path';\nimport { tmpdir } from 'os';\n\nimport { expect } from 'chai';\n\nconst fs = require('fs-extra');\nconst c...
typescript
new_file
0
1
mit
763fe3ba33bbea919864bd765c3238f912a9d598
emberwatch/ember-language-server,emberwatch/ember-language-server
server/test/chokidar-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for time-series summarization utils" }, { "role": "assistant", "content": "import { groupPointsByXWeek } from './time-series';\r\n\r\ndescribe('groupPointsByXWeek', () => {\r\n let points;\r\n let groupedPoints;\r...
typescript
new_file
0
3
apache-2.0
c029aa6a051f47296137110114dc5d7dd527530c
googleinterns/guide-doge,googleinterns/guide-doge,googleinterns/guide-doge
src/datasets/summarizations/utils/time-series.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test does not generate compare function for nodes" }, { "role": "assistant", "content": "import * as chai from 'chai';\nimport { evaluateXPathToBoolean, ReturnType } from 'fontoxpath';\nimport * as slimdom from 'slim...
typescript
new_file
0
1
mit
d9556d5d7d3516bfdcf58a2621481ee47a71a448
FontoXML/fontoxpath,FontoXML/fontoxpath,FontoXML/fontoxpath
test/specs/expressions/jsCodegen/compare.tests.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for MethodStubCollection" }, { "role": "assistant", "content": "import {MethodStubCollection} from \"../src/MethodStubCollection\";\n\ndescribe(\"MethodStubCollection\", () => {\n describe(\"empty stub collec...
typescript
new_file
0
1
mit
beff83d3e8a414665ce9c582ef3eaf159a59e8b1
NagRock/ts-mockito,viman/ts-mockito,NagRock/ts-mockito,viman/ts-mockito
test/MethodStubCollection.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add helper to get/set the git default branch\n\nWe store that information in the global git config." }, { "role": "assistant", "content": "import { getGlobalConfigValue, setGlobalConfigValue } from '../git'\n\nconst DefaultBr...
typescript
new_file
0
3
mit
deb10803380f79326653f3cb6fd17d8d43a938ad
desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,desktop/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,artivilla/desktop...
app/src/lib/helpers/default-branch.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add fourslash test for contextually-typed `this`\n\nRegression test for #10972" }, { "role": "assistant", "content": "/// <reference path='fourslash.ts'/>\n////interface A {\n//// a: string;\n////}\n////declare function ct...
typescript
new_file
0
0
apache-2.0
8aa56c1ccedb4070a8d6d8f3f703cd80b9841317
thr0w/Thr0wScript,SaschaNaz/TypeScript,minestarks/TypeScript,jwbay/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,TukekeSoft/TypeScript,donaldpipowitch/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,minestarks/TypeScript,E...
tests/cases/fourslash/memberListOnContextualThis.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as SimpleDOM from 'simple-dom';\nimport { DOMTreeConstruction, Bounds, Simple, ConcreteBounds } from '@glimmer/runtime';\n\nexport default class NodeDOMTreeConstruction extends DOMTreeConstruction {\n protected document: Simpl...
typescript
edit
0
4
mit
70a57bf937ce382dd5afa799a578ef5e1c50fcdf
lbdm44/glimmer-vm,tildeio/glimmer,lbdm44/glimmer-vm,tildeio/glimmer,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,tildeio/glimmer
packages/@glimmer/node/lib/node-dom-helper.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add unit test for commans component" }, { "role": "assistant", "content": "/// <reference path=\"./../../../typings/index.d.ts\" />\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { By } from '@ang...
typescript
new_file
0
1
mit
027cd34855f10762a7000089313a3d229e07ceab
alvinmvbt/mirror-mirror,alvinmvbt/mirror-mirror,alvinmvbt/mirror-mirror
app/services/help/commands.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add story for art insights" }, { "role": "assistant", "content": "import { Component, Input, NgModule } from '@angular/core';\nimport { storiesOf } from '@storybook/angular';\n\nimport { InsightsComponent } from './insights.c...
typescript
new_file
0
1
apache-2.0
8323b2ee4878437229045e8464137b2aaa9f57ee
jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog
src/app/gallery/insights/insights.component.stories.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { styled } from '@storybook/theming';\nimport { transparentize, opacify } from 'polished';\nimport { rotate360 } from '../shared/animation';\n\nconst LoaderWrapper = styled.div(({ theme }) => ({\n bor...
typescript
edit
null
null
mit
e9adbe8f1929b8360f496df8afd13dfc177156cf
storybooks/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook
lib/components/src/Loader/Loader.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: Move oauth-callback to its own folder" }, { "role": "assistant", "content": "import { Component, OnInit, OnDestroy } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\nimport { AuthService } from '../...
typescript
new_file
0
2
bsd-3-clause
c15f82e7210e657fc94d0d3257fc22c6fbde634e
Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber
src/app/alveo/oauth-callback/oauth-callback.component.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add ProductService, which contains all logic for formatting products from the Drupal database." }, { "role": "assistant", "content": "import { Injectable } from '@angular/core';\nimport {Subject} from \"rxjs/Rx\";\nimport 'ma...
typescript
new_file
0
4
bsd-3-clause
6ce7b8df29501b35125f5909384872b402c80e63
UoA-eResearch/research-hub,UoA-eResearch/research-hub,UoA-eResearch/research-hub
src/app/app.product.service.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport React, { Component } from 'react'\nimport { Link } from 'react-router-dom'\n\nimport './Guilds.scss'\nimport API from '../api'\nimport Guild from './Guild'\nimport { Guild as GuildT } from '../types'\n\ntype State = {\n guilds: ...
typescript
edit
null
null
mit
9301bbd7fce13eeff4261f28318f1d09fc119d52
slice/dogbot,slice/dogbot,sliceofcode/dogbot,slice/dogbot,sliceofcode/dogbot
web/src/views/Guilds.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Write typescript code for the following: docs(showcase): Create a service to get data dynamic from github." }, { "role": "assistant", "content": "/*\n MIT License\n\n Copyright (c) 2017 Temainfo Sistemas\n\n Permission is hereby granted, free of charge, to any perso...
typescript
new_file
0
1
mit
0cc01b430ff912e09e09afca1cf4f949df43bdaf
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
demo/src/app/shared/services/githubapi.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Implement the ProjectionService API for OpenLayers" }, { "role": "assistant", "content": "import { Injectable } from '@angular/core';\nimport { ProjectionService } from '@ansyn/imagery/projection-service/projection.service';\...
typescript
new_file
0
1
mit
c79fde462e5d4e252dd42e25d3f9403e3ac4e7ab
AnSyn/ansyn,AnSyn/ansyn,AnSyn/ansyn,AnSyn/ansyn
src/app/packages/open-layers-map/open-layers-projection.service.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add note list sorting menu" }, { "role": "assistant", "content": "import { Injectable } from '@angular/core';\nimport { select, Store } from '@ngrx/store';\nimport { MenuItemConstructorOptions } from 'electron';\nimport { swi...
typescript
new_file
0
6
mit
132097e70b986b7b4ca39adc1072f047c66a4a23
seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary
package/src/browser/note/note-list-tools/note-list-sorting-menu.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add tests for table column" }, { "role": "assistant", "content": "import { expect } from \"chai\";\n\nimport { Formatter } from \"export/formatter\";\n\nimport { TableCell } from \"./table-cell\";\nimport { TableColumn } from...
typescript
new_file
0
1
mit
367518d5048993b3f640930f9271fa22b91eb3c2
dolanmiu/docx,dolanmiu/docx,dolanmiu/docx
src/file/table/table-column.spec.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add a test or two" }, { "role": "assistant", "content": "import { expect } from 'chai'\n\nimport { Repository, nameOf } from '../../src/models/repository'\nimport { GitHubRepository } from '../../src/models/github-repository'...
typescript
new_file
0
1
mit
fbd7ed7d66d104f5f005d14e575dfdfe114eb076
j-f1/forked-desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,kact...
app/test/unit/name-of-test.ts
accepted
null
true
[ { "role": "user", "content": "Write typescript code for the following: Add test for phone number pipe on front end." }, { "role": "assistant", "content": "import { PhoneNumberPipe } from './phoneNumber.pipe';\n\ndescribe('PhoneNumberPipe', () => {\n // This pipe is a pure, stateless function so...
typescript
new_file
0
1
bsd-2-clause
63e2f47c2cb6141fdfa2977f30f5423e706c0d63
crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin,crdschurch/crds-signin-checkin
front_end/src/app/shared/pipes/phoneNumber.pipe.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport {\n Directive,\n ElementRef,\n Inject,\n forwardRef,\n Input,\n Host,\n HostListener\n} from '@angular/core';\n\nimport { AngularDropdownDirective }\n from './angular-dropdown.directive';\n\n@Directive({\n selector: '[ng...
typescript
edit
0
2
mit
8dfe537377f5dfd7068720ea7522d983d7374b32
topaxi/angular-dropdown,topaxi/angular-dropdown,topaxi/angular-dropdown
angular-dropdown-control.directive.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n'use strict';\n\nimport * as fs from 'fs';\nimport * as os from 'os';\nimport * as path from 'path';\nimport * as vscode from 'vscode';\nimport {\n nREPLClient\n} from './nreplClient';\nimport {\n ClojureProvider\n} from './clojur...
typescript
edit
0
2
mit
f0852dbb589b2a99146d360e55a23ee5b942b622
avli/clojureVSCode,avli/clojureVSCode,anyayunli/clojureVSCode,alessandrod/clojureVSCode,fasfsfgs/clojureVSCode
src/clojureDefinition.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { schedule, danger } from \"danger\";\nimport { IncomingWebhook } from \"@slack/client\";\nimport { Issues } from \"github-webhook-event-types\"\n\ndeclare const peril: any // danger/danger#351\nconst gh = danger.github as any as...
typescript
edit
0
1
mit
44f4e038f2c4ca80c9985a029b8fa592510b2cdf
fastlane/peril-settings
danger/regressions.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n * Copyright 2014 Mozilla Foundation\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * ...
typescript
edit
0
2
apache-2.0
faa8f06c72d778afef9074757c937f2dba52c581
mozilla/shumway,tschneidereit/shumway,tschneidereit/shumway,yurydelendik/shumway,mbebenita/shumway,yurydelendik/shumway,tschneidereit/shumway,mbebenita/shumway,yurydelendik/shumway,mozilla/shumway,mbebenita/shumway,tschneidereit/shumway,tschneidereit/shumway,yurydelendik/shumway,mbebenita/shumway,mbebenita/shumway,tsch...
src/avm2/global.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport spacePen = require(\"atom-space-pen-views\");\nimport $ = require('jquery');\n\ninterface Rect {\n left: number;\n right: number;\n top: number;\n bottom: number;\n}\n\nclass TooltipView extends spacePen.View {\n\n ...
typescript
edit
0
4
mit
649361b1d4d963e301ae561dacf9906efd0af76a
hitesh97/omnisharp-atom,hitesh97/omnisharp-atom,joerter/omnisharp-atom,OmniSharp/omnisharp-atom,rambocoder/omnisharp-atom,RichiCoder1/omnisharp-atom,tmunro/omnisharp-atom,joerter/omnisharp-atom,RichiCoder1/omnisharp-atom,tmunro/omnisharp-atom,joerter/omnisharp-atom,joerter/omnisharp-atom,rambocoder/omnisharp-atom,OmniS...
lib/omnisharp-atom/views/tooltip-view.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// Copyright 2019 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://...
typescript
edit
0
1
apache-2.0
0b30811f14d62c1e6d8acf462d8aa8a0aa6d4c4b
google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath,google/peoplemath
src/main.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { IGitHubUser } from '../../lib/dispatcher'\n\ninterface IAvatarProps {\n readonly gitHubUser: IGitHubUser | null\n readonly title: string | null\n}\n\nconst DefaultAvatarURL = 'https://github.co...
typescript
edit
null
null
mit
17bbed90f19ff2c47f2aa01d95fe20532a158a4a
gengjiawen/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,BugTesterTest/desktops,j-f1/forked-desktop,shiftkey/desktop,BugTesterTest/desktops,desktop/desktop,kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,j-f1/forked-desktop,BugTesterTest/desktops,say25/desktop,desktop/desktop,shiftkey/desktop,artiv...
app/src/ui/lib/avatar.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { formatNumber } from '../shared/utils';\n\ninterface Props {\n total: number;\n goal: number;\n}\n\ninterface State {}\n\nexport class Donation extends React.Component<Props, State> {\n render...
typescript
edit
null
null
mit
0042f268b9ee8ccb2e1cfe75c32e93e19af7f4a7
5calls/react-dev,5calls/5calls,5calls/5calls,5calls/5calls,5calls/5calls,5calls/react-dev,5calls/react-dev
src/components/donation/Donation.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport const environment = {\n production: false,\n APP_NAME_VERSION: 'OpenRadiation app 2.0.0-beta.2',\n API_KEY: '50adef3bdec466edc25f40c8fedccbce',\n API_URI: 'https://submit.open-radiation.net/measurements',\n IN_APP_BROWSER_UR...
typescript
edit
0
0
apache-2.0
1722a8479cb0c181454563c4e2d2eed8285f39b9
openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile
src/environments/environment.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { buildClientApp } from \"reaction/Artsy/Router/client\"\nimport { routes } from \"reaction/Apps/Search/routes\"\nimport { data as sd } from \"sharify\"\nimport React from \"react\"\nimport ReactDOM from \"react-dom\"\n\nconst me...
typescript
edit
null
null
mit
841271843d8969197683c10ae75ed7bf6e76f68f
cavvia/force-1,anandaroop/force,cavvia/force-1,anandaroop/force,joeyAghion/force,oxaudo/force,erikdstock/force,artsy/force,eessex/force,damassi/force,yuki24/force,izakp/force,eessex/force,artsy/force-public,artsy/force-public,damassi/force,yuki24/force,oxaudo/force,oxaudo/force,erikdstock/force,artsy/force,izakp/force,...
src/desktop/apps/search2/client.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { Constants } from 'expo-constants';\n\nimport Logs from '../logs/Logs';\nimport RemoteLogging from '../logs/RemoteLogging';\n\nif (Constants.manifest && Constants.manifest.logUrl) {\n // Enable logging to the Expo dev tools onl...
typescript
edit
0
4
bsd-3-clause
39f9ea32ac9abc594ce0c3a89a6813ab857076e0
exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponen...
packages/expo/src/environment/logging.ts
rejected_duplicate
Near-duplicate of sample 114647
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { FileDb } from 'jovo-db-filedb';\nimport { App } from 'jovo-framework';\nimport { CorePlatform } from 'jovo-platform-core';\n\nimport { JovoDebugger } from 'jovo-plugin-debugger';\nimport { AmazonCredentials, LexSlu } from 'jovo...
typescript
edit
0
2
apache-2.0
e22157b4470843882e3d1879306b39dd9a66cd7c
jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs
examples/typescript/06_core/hello-world/src/app.ts
rejected_duplicate
Near-duplicate of sample 113338
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/* \ntslint:disable no-console \ntslint:disable max-classes-per-file\n*/\n\nimport React, {ComponentClass, PureComponent, Component} from 'react'\n\nclass DefaultError extends PureComponent {\n public render() {\n return (\n <p...
typescript
edit
null
null
mit
f81cd287bd71c6b4bb693d7a6fa523824deeffcf
influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdata/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,li-ang/influxdb,nooproblem/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark...
ui/src/shared/decorators/errors.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { PageFooterComponent } from './page-footer.component';\n\ndescribe('PageFooterComponent', () => {\n let component: PageFooterComponent;\n let fixture...
typescript
edit
0
1
bsd-3-clause
ee35f5dc968c699f2b3481cf91041bdf632fbba5
Saka7/word-kombat,Saka7/word-kombat,Saka7/word-kombat,Saka7/word-kombat
front/src/app/component/page-footer/page-footer.component.spec.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\n// This dangerfile is for running as an integration test on CI\n\nimport { DangerDSLType } from \"../../../dsl/DangerDSL\"\ndeclare var danger: DangerDSLType\ndeclare function markdown(params: string): void\n\nconst showArray = (array: ...
typescript
edit
null
null
mit
447796daeacbe99c3cfe0cae19fbc658f7ebfaf4
danger/danger-js,danger/danger-js,danger/danger-js,danger/danger-js
source/platforms/git/_tests/local_dangerfile_example.ts
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\n/*\n MIT License\n\n Copyright (c) 2017 Temainfo Sistemas\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Softwa...
typescript
edit
0
0
mit
4a5386e46a7006f3708a9c6c81bb87d673099823
TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui,TemainfoSistemas/truly-ui
src/dialog/dialog-info/info-options.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport * as React from \"react\"\nimport * as Relay from \"react-relay\"\nimport styled from \"styled-components/native\"\n\nimport { View } from \"react-native\"\nimport { LargeHeadline } from \"../Typography\"\nimport ActiveBid from \...
typescript
edit
null
null
mit
f054dfed3df3eeb2e89163266fe78cafa4edc810
artsy/eigen,artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/eigen
src/lib/Components/Inbox/Bids/index.tsx
rejected_syntax
Syntax error detected by tree-sitter
false
[ { "role": "user", "content": "Here is the current file:\n```typescript\nexport { default as a11yAudit } from './audit';\nexport { default as a11yAuditIf } from './audit-if';\nexport { setRunOptions, getRunOptions } from './run-options';\nexport { setEnableA11yAudit, shouldForceAudit } from './should-force-a...
typescript
edit
0
0
mit
d3fe167ba7b7eb37ca180a485bec223d8f86ce80
ember-a11y/ember-a11y-testing,ember-a11y/ember-a11y-testing,ember-a11y/ember-a11y-testing
addon-test-support/index.ts
accepted
null
true
[ { "role": "user", "content": "Here is the current file:\n```typescript\nimport Logger from './logger';\n\nlet alreadyWarned = false;\nexport function debugAssert(test, msg) {\n // if (!alreadyWarned) {\n // alreadyWarned = true;\n // Logger.warn(\"Don't leave debug assertions on in public builds\");\...
typescript
edit
0
3
mit
101945a15be76647885da6d37bd78a9833871151
chadhietala/glimmer,glimmerjs/glimmer-vm,chadhietala/glimmer,tildeio/glimmer,tildeio/glimmer,tildeio/glimmer,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,chadhietala/glimmer,lbdm44/glimmer-vm,chadhietala/glimmer
packages/glimmer-util/lib/assert.ts
rejected_duplicate
Near-duplicate of sample 115959
true