messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport enum Opcodes {\n // Statements\n Text,\n Append,\n Comment,\n Modifier,\n Block,\n Component,\n OpenElement,\n FlushElement,\n CloseElement,\n StaticAttr,\n DynamicAttr,\n Yield,\n Partial,\n\n DynamicArg,\n Stati... | typescript | edit | 0 | 0 | mit | 2d561e9ba741feb93402dce62398c4f91e28d248 | tildeio/glimmer,lbdm44/glimmer-vm,glimmerjs/glimmer-vm,tildeio/glimmer,tildeio/glimmer,glimmerjs/glimmer-vm,lbdm44/glimmer-vm,lbdm44/glimmer-vm,glimmerjs/glimmer-vm | packages/@glimmer/wire-format/lib/opcodes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add selectors to filter blocked HITs, filter blocked requesters, and sort results."
},
{
"role": "assistant",
"content": "import { createSelector } from 'reselect';\nimport {\n RootState,\n SearchResult,\n SearchResults,\n... | typescript | new_file | 0 | 1 | mit | 001b91f9225ca8cde29d2222ec799337d9189866 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/selectors/searchTable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add initial setting service tests."
},
{
"role": "assistant",
"content": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport expect = require('expect.js');\n\nimp... | typescript | new_file | 0 | 1 | bsd-3-clause | aaf21cd2204e65bb79f7fc601ed9e2fab1df9799 | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | packages/services/test/src/setting/manager.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as express from \"express\";\nimport * as session from \"client-sessions\";\n\nconst secret = \"yolo\";\nconst app = express();\nconst options = { secret };\n\nlet middleware = session(options);\nmiddleware = session({ secret, ... | typescript | edit | 0 | 1 | mit | 894adbc6fdccd58313123a48dcd889be54035b1a | ashwinr/DefinitelyTyped,mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,ashwinr/DefinitelyTyped,georgemarshall/DefinitelyTyped,chrootsu/DefinitelyTyped,dsebastien/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,aciccarello/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,nyc... | types/client-sessions/client-sessions-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Implement basic integration tests Not ready for CircleCI, so they're commented out"
},
{
"role": "assistant",
"content": "// NOTE Running these tests requires the crossroads-education/eta-web-test module to be installed.\npro... | typescript | new_file | 0 | 0 | mit | aa69b34d04076272d83e398c64053ee27e1f9a51 | crossroads-education/eta,crossroads-education/eta | test/server/httpCodes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add function for the actual formatting of the title"
},
{
"role": "assistant",
"content": "import { Config, defaultConfig } from './config'\n\n/**\n * Formats raw title string and returns the formatted string.\n * @param {str... | typescript | new_file | 0 | 2 | mit | fcef3460bf9134dee6552bb95fe0fb8ec8772d63 | guywald1/vscode-prismo | src/utils/decorate.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add learning tests for webdriverio"
},
{
"role": "assistant",
"content": "import { describe, expect, it, loadFixture } from '../suite';\nimport fs from 'fs-extra';\nimport path from 'path';\nimport jimp from 'jimp';\n\ndescri... | typescript | new_file | 0 | 1 | mit | 6e617f7ebb32997ee206710ddb4dd6411fc26387 | uberVU/mugshot,uberVU/mugshot | tests/gui/specs/webdriverio.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add Search Resource Unit Test:\n\nAdded unit test for the resource."
},
{
"role": "assistant",
"content": "import { SearchResource } from './search.resource';\n\ndescribe('Resource Search', () => {\n beforeEach(angular.mock.... | typescript | new_file | 0 | 1 | mit | 087745ea3103ad964c825860822da5058b6402a2 | marksmall/mapuse,marksmall/mapuse,marksmall/mapuse | src/app/components/search/search.resource.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add unit tests for chatbot service\n\nSigned-off-by: Scar26 <<EMAIL>>"
},
{
"role": "assistant",
"content": "/*\n * Copyright (c) 2014-2020 Bjoern Kimminich.\n * SPDX-License-Identifier: MIT\n */\n\nimport { HttpClientTesting... | typescript | new_file | 0 | 1 | mit | 3a3cd78552f091ebc09ddaa2497fef0d3b3c0316 | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | frontend/src/app/Services/chatbot.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add requesting and parsing for returning a HIT."
},
{
"role": "assistant",
"content": "import axios from 'axios';\r\nimport { API_URL } from '../constants';\r\nimport { stringToDomElement } from './parsing';\r\n\r\nexport con... | typescript | new_file | 0 | 2 | mit | 2ccaa61888725040d612d0683fa457a0badc09d4 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/returnHit.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Test that combatant gets its HP from its statblock"
},
{
"role": "assistant",
"content": "import { StatBlock } from \"../../common/StatBlock\";\nimport { InitializeSettings } from \"../Settings/Settings\";\nimport { buildEnco... | typescript | new_file | 0 | 1 | mit | a353b56c2a803209804a5f0ff2f8daaa018c95a7 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/test/Combatant.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a notebook widget factory"
},
{
"role": "assistant",
"content": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n'use strict';\n\nimport {\n IKernelId\n} from 'jup... | typescript | new_file | 0 | 2 | bsd-3-clause | e2b75720a9f9392e3e04d508ca774020c6a702ae | jupyter/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,TypeFox/jupyt... | src/notebook/notebook/widgetfactory.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test for region spans"
},
{
"role": "assistant",
"content": "/// <reference path=\"fourslash.ts\"/>\r\n\r\n////// basic region\r\n////[|// #region\r\n////\r\n////// #endregion|]\r\n////\r\n////// region with label\r\n////... | typescript | new_file | 0 | 0 | apache-2.0 | 442bc56fc2b1a4ba862cd33895f3185dafc85044 | nojvek/TypeScript,kitsonk/TypeScript,synaptek/TypeScript,kpreisser/TypeScript,basarat/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,weswigham/TypeScript,minestarks/TypeScript,microsoft/TypeScript,alexeagle/TypeScript,Eyas/TypeScript,Eyas/TypeScript,nojvek/TypeScript,TukekeSoft/TypeScript... | tests/cases/fourslash/getOutliningSpansForRegions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add Template Index helper file"
},
{
"role": "assistant",
"content": "import { Overwrite } from '@terascope/utils';\n\nexport interface TemplateRecord {\n some_id: string;\n search_keyword: string;\n random_number: n... | typescript | new_file | 0 | 0 | apache-2.0 | 45d4a9aed53981bbd6d016b9e2d17c28eee54658 | terascope/teraslice,terascope/teraslice,terascope/teraslice,terascope/teraslice | packages/elasticsearch-store/test/helpers/template-index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Test consumes api new files"
},
{
"role": "assistant",
"content": "import { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/toPro... | typescript | new_file | 0 | 1 | mit | 2e16e330efe865f67e3595f28d1058c5cf6f5272 | fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course,fernandofraga109/ionic-2-course | src/providers/busca-produto-service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nnamespace $.$mol {\n\texport class $mol_meter extends $.$mol_meter {\n\t\t\n\t\trequest_id = 0;\n\t\t\n\t\tconstructor() {\n\t\t\tsuper()\n\t\t\tthis.defer_task()\n\t\t}\n\t\t\n\t\tdefer_task( next?: $mol_defer, force?: $mol_atom_force ... | typescript | edit | 0 | 2 | mit | 746b3c409981ba780078d89378445f46634f6a38 | eigenmethod/mol,nin-jin/mol,eigenmethod/mol,nin-jin/mol,eigenmethod/mol,nin-jin/mol | meter/meter.view.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add tests for element factories"
},
{
"role": "assistant",
"content": "import { elementFactory } from \"../src/vdom/element\";\nimport { render } from \"./utils\";\nimport * as h from \"./utils/html\";\n\ntest(`<div></div>`, ... | typescript | new_file | 0 | 1 | mit | 6e0df4d8bd7240cc38694c281337ab378b499d19 | ivijs/ivi,ivijs/ivi | packages/ivi/__tests__/render_element_factory.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add file for table of contents HTML tests"
},
{
"role": "assistant",
"content": "/*import { expect } from 'chai'\nimport Up from '../../index'\nimport { LinkNode } from '../../SyntaxNodes/LinkNode'\nimport { ImageNode } from ... | typescript | new_file | 0 | 0 | mit | 288c8e68562fe6633d868cccf178d7e5dfcc09fd | start/up,start/up | src/Test/Html/TableOfContents.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface AuditResult {\n displayValue: string;\n debugString: string;\n comingSoon?: boolean;\n score: number;\n description: string;\n extendedInfo?: {\n value: string;\n formatter: string;\n };\n}\n\ninterface Aggregatio... | typescript | edit | 0 | 0 | apache-2.0 | f5dc2fecb1ecaa7f0298d4c04e3b8acac1393985 | GoogleChrome/lighthouse,deepanjanroy/lighthouse,tommycli/lighthouse,mixed/lighthouse,tommycli/lighthouse,tkadlec/lighthouse,cedricbellet/lighthouse,deepanjanroy/lighthouse,umaar/lighthouse,mixed/lighthouse,deepanjanroy/lighthouse,ev1stensberg/lighthouse,tommycli/lighthouse,arturmiz/lighthouse,deepanjanroy/lighthouse,mi... | lighthouse-cli/types/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add unit tests for span.ts"
},
{
"role": "assistant",
"content": "import { Span } from '../src/trace/span';\nimport { Trace } from '../src/trace/trace';\n\nvar assert = require('assert');\n\ndescribe('Span creation', function... | typescript | new_file | 0 | 2 | apache-2.0 | 532819a062313d41c01a93f35f40c69668e4cea5 | census-instrumentation/opencensus-node,census-instrumentation/opencensus-node,census-instrumentation/opencensus-node | packages/opencensus-core/test/test-span.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add initial unit test starter file and code"
},
{
"role": "assistant",
"content": "import { AudiologistNavigationComponent } from './audiologist-navigation.component';\nimport { async, ComponentFixture, TestBed } from '@angul... | typescript | new_file | 0 | 1 | mit | 9fbc1e7f68ba1c1880fdce2fc4157608b8e2943c | marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website,marissa-hagglund/VA-Audiology-Website | src/app/audiologist-navigation/audiologist-navigation.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test for support of custom decorator names."
},
{
"role": "assistant",
"content": "import {\n getType,\n} from '../src';\n\n\nfunction UserDecorator(target: any) { }\n\nfunction OtherDecorator(target: any) { }\n\n@UserD... | typescript | new_file | 0 | 1 | mit | 0763774831bff6a22f3f578572109db408ff3e4b | goloveychuk/tsruntime,goloveychuk/tsruntime | test/custom_decorator.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add ControllerMountSpy plugin, allowing test cases to wait for async-loaded controllers to mount"
},
{
"role": "assistant",
"content": "import { PluginConfig, exportDependency, PluginConstructor } from '../../core/PluginConfi... | typescript | new_file | 0 | 2 | mit | 7c15168ce4ff08c75f3e5a8b3ac9599424825e1d | brightinteractive/bright-js-framework,brightinteractive/bright-js-framework,brightinteractive/bright-js-framework | src/lib/plugins/ControllerMountSpyPlugin/ControllerMountSpyPlugin.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a notebook widget factory"
},
{
"role": "assistant",
"content": "// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n'use strict';\n\nimport {\n IKernelId\n} from 'jup... | typescript | new_file | 0 | 2 | bsd-3-clause | e2b75720a9f9392e3e04d508ca774020c6a702ae | jupyter/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,TypeFox/jupyt... | src/notebook/notebook/widgetfactory.ts | rejected_duplicate | Near-duplicate of sample 115779 | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add failing code block test"
},
{
"role": "assistant",
"content": "/// <reference path=\"../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../typings/chai/chai.d.ts\" />\n\nimport { expect } from 'chai'\nimp... | typescript | new_file | 0 | 1 | mit | 26390cd46c4278b764317057710b0d241c20ed7f | start/up,start/up | src/Test/Ast/CodeBlock.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add first unit test for Executor."
},
{
"role": "assistant",
"content": "import Executor from '../src/executor';\nimport * as sinon from 'sinon';\nimport { expect } from 'chai';\n\ndescribe('executor', () => {\n\n const exec... | typescript | new_file | 0 | 2 | mit | 2a12e545a918a620e8496887d8991770accd2457 | antivanov/js-crawler,antivanov/js-crawler,antivanov/js-crawler,antivanov/js-crawler | spec/executor.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test for quoted constructors"
},
{
"role": "assistant",
"content": "class C {\n x: number;\n \"constructor\"() {\n this.x = 0;\n }\n}\n(new C).constructor(); // Error\n\nclass D {\n x: number;\n 'con... | typescript | new_file | 0 | 1 | apache-2.0 | 72f30a830825b6c4d9d5428e4eeb8eb8745680ae | weswigham/TypeScript,RyanCavanaugh/TypeScript,nojvek/TypeScript,kitsonk/TypeScript,RyanCavanaugh/TypeScript,minestarks/TypeScript,alexeagle/TypeScript,SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,kpreisser/TypeScript,Microsoft/TypeScript,kpreisser/TypeScript,weswigham/TypeScript,microsoft/TypeScript,Microsoft/TypeScri... | tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add support for saving photos to Google Drive"
},
{
"role": "assistant",
"content": "import { loadingIndicator } from './ui/loading';\nimport {\n getGoogleDriveKey,\n refreshGoogleDriveTokenApi,\n saveToGoogleDriveApi,\n} ... | typescript | new_file | 0 | 6 | mit | 930ff3e28df1ea550d25525b498a7af93dd88643 | ayoisaiah/stellar-photos,ayoisaiah/stellar-photos,ayoisaiah/stellar-photos,ayoisaiah/stellar-photos,ayoisaiah/stellar-photos | src/ts/googledrive.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add tests for settings reducer\n\nSummary: yiss_tests\n\nReviewed By: jknoxville\n\nDifferential Revision: D18851134\n\nfbshipit-source-id: 53ffb9b516773df19c258e7d819962e3cd523751"
},
{
"role": "assistant",
"content": "/**\n... | typescript | new_file | 0 | 1 | mit | 0c7b03cad321a84ac8832b1423543befc2efde0c | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | src/reducers/__tests__/settings.node.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a simple shim for the ContentRepo"
},
{
"role": "assistant",
"content": "import { MatrixClient } from \"matrix-bot-sdk\";\n\n/**\n * Get the HTTP URL for an MXC URI.\n * @param {string} baseUrl The base homeserver url whi... | typescript | new_file | 0 | 8 | apache-2.0 | ea52f695a6f9d7b013212bb93a9583b3a2f2534f | matrix-org/matrix-appservice-bridge,matrix-org/matrix-appservice-bridge,matrix-org/matrix-appservice-bridge | src/contentRepo.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add new StretchyFlatList in TS format"
},
{
"role": "assistant",
"content": "import React from 'react';\nimport { View, Animated } from 'react-native';\nimport { commonStyles as styles } from './styles';\nimport { StretchyFla... | typescript | new_file | null | null | mit | b7d600778f988784dd75bb6a130201d00f4f68b0 | hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy | lib/src/components/stretchyFlatList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Write MarkdownPreview wrapper with insert menu support\n\n- includes base YT timestamp implementation + link insertion"
},
{
"role": "assistant",
"content": "import React from 'react'\nimport styled from 'styled-components'\n... | typescript | new_file | null | null | mit | cc99b300b0e5742a15a7909e25309e1821130796 | WorldBrain/WebMemex,WorldBrain/WebMemex | src/common-ui/components/markdown-preview-insert-menu.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add base linter which emits diagnostics on document events"
},
{
"role": "assistant",
"content": "import URI from 'vscode-uri';\nimport { empty, iif, from, Observable } from 'rxjs';\nimport { map, mergeMap, switchMap } from '... | typescript | new_file | 0 | 2 | mit | 544be459c8f248354dfca600fb2f2201ffafc9d8 | rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby | server/src/Linter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add HTTP utils (validation, etc.)."
},
{
"role": "assistant",
"content": "export class HttpUtils {\n\n // NOTE: Checks if string matches an IP by pattern.\n public static isIpAddressValid(ipAddress: string): boolean {\n... | typescript | new_file | 0 | 1 | mit | b71710de9c05479ffc270c0c08be3ced1ee4534e | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | console/src/app/common/HttpUtils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add some smoke tests for formatCommitMessage"
},
{
"role": "assistant",
"content": "import * as chai from 'chai'\nconst expect = chai.expect\n\nimport { formatCommitMessage } from '../../src/lib/format-commit-message'\n\ndesc... | typescript | new_file | 0 | 1 | mit | 6bbe2ba52c8ce36df8db1343c36b2e0b39471fa6 | j-f1/forked-desktop,gengjiawen/desktop,j-f1/forked-desktop,hjobrien/desktop,gengjiawen/desktop,gengjiawen/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,say25/desktop,hjobrien/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,hjobrien/desktop,say25/desktop,kactus-io/kactus,j-f1/forked-d... | app/test/unit/format-commit-message.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add unit test for TtsService"
},
{
"role": "assistant",
"content": "/// <reference path=\"./../../../typings/index.d.ts\" />\nimport { inject, async, TestBed, fakeAsync, tick } from '@angular/core/testing';\nimport { TtsServi... | typescript | new_file | 0 | 1 | mit | a94a9b899e5e01d5aaba13be92340bac54e501b3 | alvinmvbt/mirror-mirror,alvinmvbt/mirror-mirror,alvinmvbt/mirror-mirror | app/services/tts/tts.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add tests for search term field validator\n\nRefs #195"
},
{
"role": "assistant",
"content": "/*!\n * @license\n * Copyright 2016 Alfresco Software, Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"... | typescript | new_file | 0 | 1 | apache-2.0 | 0f01e1b2cb6ba31720de6c4376d5298bc5e472e3 | Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components,Alfresco/alfresco-ng2-components | ng2-components/ng2-alfresco-search/src/forms/search-term-validator.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create css hexa color regex"
},
{
"role": "assistant",
"content": "'use strict'; \n \n// const COLOR_REGEX = /(#(?:[\\da-f]{3}){1,2}|rgb\\((?:\\d{1,3},\\s*){2}\\d{1,3}\\)|rgba\\((?:\\d{1,3},\\s*){3}\\d*\\.?\\d+\\)|hsl\\(\\d{1... | typescript | new_file | 0 | 0 | apache-2.0 | 054ad0b00c4472ec2d4ba4537fd13dc48aa2946f | KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize | src/color-regex.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Move helper funcs into file"
},
{
"role": "assistant",
"content": "import * as React from 'react';\n\nconst childrenToMap = (children: React.ReactNode): Map<string, React.ReactChild> => {\n const childrenArray = React.Chil... | typescript | new_file | 0 | 1 | mit | 28c57c3b68803818f62f44f364b803c9f062346e | bkazi/react-layout-transition,bkazi/react-layout-transition,bkazi/react-layout-transition | src/utils/children.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a shared value for the minimum supported Enterprise version"
},
{
"role": "assistant",
"content": "/**\n * The oldest officially supported version of GitHub Enterprise.\n * This information is used in user-facing text and... | typescript | new_file | 0 | 0 | mit | acb491ac38698bfa6d9d54bf177c70d05807b871 | BugTesterTest/desktops,BugTesterTest/desktops,desktop/desktop,hjobrien/desktop,hjobrien/desktop,kactus-io/kactus,BugTesterTest/desktops,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,j-f1/forked-desktop,say25... | app/src/lib/enterprise.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Fix case on TwitchUptime filename"
},
{
"role": "assistant",
"content": "import MessageHandler from \"../messageHandler\";\nimport ExtendedInfo from \"../extendedInfo\";\nimport TwitchExtendedInfo from \"../extendedInfos/twit... | typescript | new_file | 0 | 2 | mit | 285fb1fce59669b7e734765b1400a856dcf3d931 | Zogzer/Applebot,Zogzer/Applebot,Yen/Applebot | applebot-type-node/src/messageHandlers/twitchUptime.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getCurrentBranchName, getRemotes } from '../../lib/git.ts';\nimport { exec, OutputMode } from '../../dependencies/exec.ts';\nimport { getBranchRemote } from '../../lib/git/getBranchRemote.ts';\n\ninterface Args {\n force: bool... | typescript | edit | 0 | 4 | apache-2.0 | 08f726e09ffa757fdbd72e3f77c0fbab165f4054 | quilicicf/Gut,quilicicf/Gut | src/commands/simple/thrust.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add document to make sure lang is set correctly"
},
{
"role": "assistant",
"content": "import Document, {\n Html,\n Head,\n Main,\n NextScript,\n DocumentContext,\n} from \"next/document\";\n\nclass MyDocument extends Do... | typescript | new_file | null | null | apache-2.0 | 7eb891eac465593decd867286dbb8075b57847eb | thenickreynolds/popcorngif,thenickreynolds/popcorngif | app/pages/_document.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add type interface for old data structures"
},
{
"role": "assistant",
"content": "/**\n * Represent the data structure of a game in v1.0.0\n */\nexport interface IOldGameData {\n /**\n * Current round of the game\n */\n ... | typescript | new_file | 0 | 0 | mit | 85fc817cc7689b833a71755967b1a11124769cbe | Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc | src/migration/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create a data export script for a namespace"
},
{
"role": "assistant",
"content": "// Script to export the data_values for all variables attached to charts\n\nimport * as path from 'path'\nimport * as db from '../db'\nimport ... | typescript | new_file | 0 | 2 | mit | 47de35b0f37c90df47d9107d64b1614adbe6bafb | OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/our-world-in-data-grapher,OurWorld... | src/scripts/exportChartDataNamespace.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add jsdoc nullable union test case to fourslash"
},
{
"role": "assistant",
"content": "///<reference path=\"fourslash.ts\" />\r\n// @allowNonTsExtensions: true\r\n// @Filename: Foo.js\r\n////\r\n//// * @param {never | {x: str... | typescript | new_file | 0 | 0 | apache-2.0 | 2c814f4413cbc83a88c711823b0aea5125e8d343 | erikmcc/TypeScript,TukekeSoft/TypeScript,RyanCavanaugh/TypeScript,DLehenbauer/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,thr0w/Thr0wScript,SaschaNaz/TypeScript,basarat/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScript,vilic/TypeScript,vilic/TypeScript,RyanCavanaugh/TypeScript,erikmcc/TypeScript,Eyas/Typ... | tests/cases/fourslash/jsdocNullableUnion.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add incremental parsing LS test."
},
{
"role": "assistant",
"content": "/// <reference path='fourslash.ts' />\r\n\r\n////class C {\r\n//// public foo1() { }\r\n//// public foo2() {\r\n//// return 1/*1*/;\r\n//// ... | typescript | new_file | 0 | 0 | apache-2.0 | 3478099a853d53ea166e0467c6b19293bf5325b9 | tinganho/TypeScript,enginekit/TypeScript,plantain-00/TypeScript,jamesrmccallum/TypeScript,alexeagle/TypeScript,billti/TypeScript,matthewjh/TypeScript,DanielRosenwasser/TypeScript,Viromo/TypeScript,gonifade/TypeScript,webhost/TypeScript,chocolatechipui/TypeScript,msynk/TypeScript,SmallAiTT/TypeScript,nagyistoce/TypeScri... | tests/cases/fourslash/incrementalParsingInsertIntoMethod1.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create new types for drag&drop intros"
},
{
"role": "assistant",
"content": "/** Type of the drag and drop intro popover. Each value represents a feature. */\nexport enum DragAndDropIntroType {\n CherryPick = 'cherry-pick',\... | typescript | new_file | 0 | 0 | mit | ad6847c0adbf438c7342ff0a8a08ab8c77110b7c | shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,artivilla/desktop,artivilla/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,say25/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/deskt... | app/src/ui/history/drag-and-drop-intro.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add part of the frame config UI"
},
{
"role": "assistant",
"content": "/*\n * Copyright 2019 Simon Edwards <<EMAIL>>\n *\n * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.\n */\n... | typescript | new_file | 0 | 1 | mit | 28617b23fb93f3542fa8fc1208638c957403e876 | sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm | extraterm/src/render_process/settings/frames/FrameRuleConfigUi.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a test for contextual type in JSXAttributes"
},
{
"role": "assistant",
"content": "// @filename: file.tsx\r\n// @jsx: preserve\r\n// @module: amd\r\n// @noLib: true\r\n// @libFiles: react.d.ts,lib.d.ts\r\n\r\nimport Reac... | typescript | new_file | null | null | apache-2.0 | 70ca18e91c507fb3f088866109f04ac89f74d6ed | donaldpipowitch/TypeScript,basarat/TypeScript,kitsonk/TypeScript,kitsonk/TypeScript,Eyas/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,chuckjaz/TypeScript,mihailik/TypeScript,kpreisser/TypeScript,DLehenbauer/TypeScript,donaldpipowitch/TypeScript,donaldpipowitch/TypeScript,synaptek/TypeScript,synaptek/TypeScript,... | tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes02.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add ResourceList.Item as a connected component to display each completed HIT on a particular day."
},
{
"role": "assistant",
"content": "import * as React from 'react';\nimport { RootState, HitDatabaseEntry } from '../../type... | typescript | new_file | null | null | mit | dccc6f867f2e926c4ebd5b1ee5bc8d15d61a3382 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/CalendarHeatMap/CompletedHitItem.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: :sparkles: Implement SMAPI Skill Package Management functions"
},
{
"role": "assistant",
"content": "import { execAsync } from '@jovotech/cli-core';\nimport { UnknownObject } from '@jovotech/framework';\nimport { getAskError ... | typescript | new_file | 0 | 3 | apache-2.0 | ff1877a9406f74ece24810a1c42e989847adc8b3 | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | platforms/platform-alexa/src/cli/smapi/SkillPackageManagement.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: feat: Add ability to change font size"
},
{
"role": "assistant",
"content": "import * as React from 'react';\nimport { Menu, MenuDivider, MenuItem, Popover, Position } from \"@blueprintjs/core\";\n\ninterface FontSizeProps {\... | typescript | new_file | null | null | mit | e0e03a2a792c2f36b268d4d9cdcd95988fcb70e6 | chengsieuly/devdecks,chengsieuly/devdecks,chengsieuly/devdecks,DevDecks/devdecks,Team-CHAD/DevDecks,DevDecks/devdecks,DevDecks/devdecks,Team-CHAD/DevDecks,Team-CHAD/DevDecks | app/modules/OptionsBar/FontSize/FontSize.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport isEmpty from 'is-empty';\n\nisEmpty({});\nisEmpty(null);\nisEmpty(undefined);\nisEmpty(9);\nisEmpty(new Object());\nisEmpty(Array);\nisEmpty('');\nisEmpty(() => {});\n\n```\n\nApply this change: Change test to require isEmpty dep... | typescript | edit | 0 | 1 | mit | 11843a76f28167f56c3ae08102c492bc1d60a98c | dsebastien/DefinitelyTyped,rolandzwaga/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,one-... | types/is-empty/is-empty-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add failing inline overlapping test"
},
{
"role": "assistant",
"content": "/// <reference path=\"../../../../typings/mocha/mocha.d.ts\" />\n/// <reference path=\"../../../../typings/chai/chai.d.ts\" />\n\nimport { expect } fr... | typescript | new_file | 0 | 1 | mit | f759603a2b869aa7faf1559b11f10ae3355b838f | start/up,start/up | src/Test/Ast/EdgeCases/InlineOverlapping.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add some tests to sandboxed-module"
},
{
"role": "assistant",
"content": "// Type definitions for sandboxed-module v2.0.3\n// Project: https://github.com/felixge/node-sandboxed-module\n// Definitions by: Sven Reglitzki <https... | typescript | new_file | 0 | 1 | mit | 96a1146cdab67999add011ce79611b8544a9dcb2 | HPFOD/DefinitelyTyped,sclausen/DefinitelyTyped,markogresak/DefinitelyTyped,RX14/DefinitelyTyped,Dashlane/DefinitelyTyped,mcliment/DefinitelyTyped,isman-usoh/DefinitelyTyped,nakakura/DefinitelyTyped,raijinsetsu/DefinitelyTyped,Zzzen/DefinitelyTyped,stephenjelfs/DefinitelyTyped,flyfishMT/DefinitelyTyped,ryan10132/Definit... | sandboxed-module/sandboxed-module-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, {PureComponent} from 'react'\nimport classNames from 'classnames'\n\nimport {TemplateValue} from 'src/types'\n\ninterface Props {\n item: TemplateValue\n onClick: (item: TemplateValue) => void\n style: {\n height: st... | typescript | edit | null | null | mit | 4718ce3c11aef0c4858b52fd4d5a59b39e56af79 | mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,influxdata/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,influxdata/influxdb,... | ui/src/tempVars/components/TemplatePreviewListItem.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add Unit Test to ToolbarIcon\n\nSummary: per title\n\nReviewed By: mweststrate\n\nDifferential Revision: D21663253\n\nfbshipit-source-id: de1eff5a3500473082973a27d0b72479407cbebe"
},
{
"role": "assistant",
"content": "/**\n *... | typescript | new_file | null | null | mit | 8d8ed5e2ed383bda78866593b116e947a71732e5 | 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/ui/components/__tests__/ToolbarIcon.node.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Test scheduled messages publication when dst queue is deleted"
},
{
"role": "assistant",
"content": "import {\n getConsumer,\n getMessageManager,\n getProducer,\n getQueueManagerFrontend,\n} from '../common';\nimport { Me... | typescript | new_file | 0 | 1 | mit | 41055f98dd3b448c2307a11790575cd84a050cfa | weyoss/redis-smq,weyoss/redis-smq,weyoss/redis-smq | tests/scheduling-messages/test00008.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Rename directory and clean up"
},
{
"role": "assistant",
"content": "import express from 'express'\nimport redis from 'redis'\nimport apolloMiddleware from 'v2/apollo/middleware'\nimport withStaticRouter from 'v2/hocs/WithSta... | typescript | new_file | 0 | 4 | mit | 767ae358b41dea810ce14844b135540055c283f4 | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | src/apps/rss/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add 4 failing plus-minus tests"
},
{
"role": "assistant",
"content": "import { expect } from 'chai'\nimport Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { PlainTextNode } from '../../S... | typescript | new_file | 0 | 1 | mit | 43a2d9a4539e45e6438c17f5838d2e9d9db9bd2d | start/up,start/up | src/Test/Ast/PlusMinusSign.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* eslint-disable no-implicit-coercion */\n\n// These versions should be the version that the deprecation was _introduced_,\n// not the version that the feature will be removed.\n\nexport const SEND_ACTION = !!'3.4.0';\nexport const EMB... | typescript | edit | 0 | 0 | mit | a747a00ade018175d794cf7a94e43b06663c9059 | asakusuma/ember.js,miguelcobain/ember.js,stefanpenner/ember.js,givanse/ember.js,elwayman02/ember.js,givanse/ember.js,miguelcobain/ember.js,asakusuma/ember.js,tildeio/ember.js,mfeckie/ember.js,fpauser/ember.js,sandstrom/ember.js,GavinJoyce/ember.js,elwayman02/ember.js,cibernox/ember.js,sly7-7/ember.js,knownasilya/ember.... | packages/@ember/deprecated-features/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport Debounce from \"./Debounce\";\n\nexport interface DebounceFormProps {\n change: (event: React.ChangeEvent<any>) => void;\n children: ((\n props: (event: React.ChangeEvent<any>) => void\n )... | typescript | edit | null | null | bsd-3-clause | 2af7ccae6b0aff481100609dfd09f4a7776fab49 | UITools/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,mociepka/saleor | saleor/static/dashboard-next/components/DebounceForm.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"rethinkdb.d.ts\" />\n\nimport r = require(\"rethinkdb\")\n\nr.connect({host:\"localhost\", port: 28015}, function(err, conn) {\n console.log(\"HI\", err, conn)\n var testDb = r.db('test')\n testDb.tableCre... | typescript | edit | 0 | 1 | mit | 29bf3b2414e2a611ee98fda86b9256016a908fa1 | alexdresko/DefinitelyTyped,use-strict/DefinitelyTyped,YousefED/DefinitelyTyped,borisyankov/DefinitelyTyped,isman-usoh/DefinitelyTyped,GiedriusGrabauskas/DefinitelyTyped,slavomirvojacek/DefinitelyTyped,rolandzwaga/DefinitelyTyped,jimthedev/DefinitelyTyped,damianog/DefinitelyTyped,HPFOD/DefinitelyTyped,ashwinr/Definitely... | rethinkdb/rethinkdb-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create the message bus singleton"
},
{
"role": "assistant",
"content": "/**\n * A convenience singleton to convey messages around the system.\n * Typically the view will grab a handle on this and propogate\n * the messages to... | typescript | new_file | 0 | 2 | apache-2.0 | 89030a176258b6fe26903c7996c2dc1a8cb64ada | Tomella/cossap-3d,Tomella/cossap-3d,Tomella/cossap-3d,Tomella/cossap-3d | source/message/messagebus.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add Redis API for Eta"
},
{
"role": "assistant",
"content": "import * as eta from \"../../eta\";\nimport * as redis from \"redis\";\n\nconst client: redis.RedisClient = undefined;\nexport default client;\n\nexport function co... | typescript | new_file | 0 | 1 | mit | e3f2d8a9b3c5b685c923150ba4a2283e114cfc24 | crossroads-education/eta,crossroads-education/eta | server/api/redis.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a fetch progress parser"
},
{
"role": "assistant",
"content": "import { StepProgressParser } from './step-progress'\n\n/**\n * Highly approximate (some would say outright inaccurate) division\n * of the individual progres... | typescript | new_file | 0 | 1 | mit | cdc06ec8c611156a879deee78768ce3b1ec93d37 | say25/desktop,artivilla/desktop,hjobrien/desktop,desktop/desktop,desktop/desktop,artivilla/desktop,BugTesterTest/desktops,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,BugTesterTest/desktops,artivilla/desktop,shiftkey/desktop,gengjiawen/desktop,j-f1/forked-desktop,j-f1/forked-desktop,gengjiawen/de... | app/src/lib/progress/fetch-progress-parser.ts | rejected_duplicate | Near-duplicate of sample 112798 | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add basic interfaces about HotS elements (Hero, Build, Role, Skill)"
},
{
"role": "assistant",
"content": "export enum HeroRoles {\n Assassin,\n Warrior,\n Specialist,\n Support\n}\n\nexport interface Skill{\n name: stri... | typescript | new_file | 0 | 0 | mit | 9dfface8db1a19d367f1efc925590e7c754cadec | jchakra/hots-parser | src/utils/hots-commons.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add a ChannelMembersView that's just a collection of users."
},
{
"role": "assistant",
"content": "// tslint:disable-next-line:no-unused-variable\nimport * as React from 'react';\n\nimport { Api } from './lib/models/api-call'... | typescript | new_file | null | null | bsd-3-clause | 187332e26777bbd1e08c7c96c365c0b3e1f88482 | paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline | src/channel-members-view.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add service to handle updating PRs"
},
{
"role": "assistant",
"content": "import { PullRequestStore } from '../pull-request-store'\nimport { Repository } from '../../../models/repository'\nimport { Account } from '../../../mo... | typescript | new_file | 0 | 3 | mit | 9835651432a733c4b18f2d452ab8a00a07f8ac23 | say25/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,desktop/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-des... | app/src/lib/stores/helpers/pull-request-updater.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for iopipe__iopipe 1.12\n// Project: https://github.com/iopipe/iopipe (Does not have to be to GitHub, but prefer linking to a source code repository rather than to a project website.)\n// Definitions by: Javon Harper... | typescript | edit | 0 | 1 | mit | a538358862e0f4f0187a44a6227d6d092f5afe50 | dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,borisyankov/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/Defin... | types/iopipe__iopipe/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add zombie, copied from player."
},
{
"role": "assistant",
"content": "module Lowrezjam {\n\n export class Zombie extends Phaser.Sprite {\n game: Lowrezjam.Game;\n\n\n constructor() {\n this.game ... | typescript | new_file | 0 | 1 | mit | 7a02938e5bdb3566e8777a258f084b94b4000286 | bbqcode/lowrezjam-2014,bbqcode/lowrezjam-2014 | src/Zombie.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nimport { Provider } from \"./DateContext\";\n\ninterface DateProviderState {\n date: number;\n}\n\nexport class DateProvider extends React.Component<{}, DateProviderState> {\n static contextTypes =... | typescript | edit | null | null | bsd-3-clause | 799b78488d95996a67837ace1baf88830d3456c8 | UITools/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor,maferelo/saleor,mociepka/saleor,maferelo/saleor,UITools/saleor,UITools/saleor,UITools/saleor | saleor/static/dashboard-next/components/DateFormatter/DateProvider.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add unit tests for MRS Service"
},
{
"role": "assistant",
"content": "'use strict';\n\nimport {\n it,\n describe,\n expect,\n inject,\n beforeEachProviders,\n beforeEach,\n fakeAsync,\n tick\n} from '@angular/core/tes... | typescript | new_file | 0 | 1 | mit | 580245e33060fb3c93a0bf16c34ec3318bf06fa2 | SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend | src/app/shared/mrs.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport {shallow} from 'enzyme'\n\nimport KapacitorRulesTable from 'src/kapacitor/components/KapacitorRulesTable'\n\nimport {source, kapacitorRules} from 'test/resources'\n\nconst setup = () => {\n const props... | typescript | edit | null | null | mit | bd6674859cb23500fd24d4cfbdf5503aeef0c831 | influxdb/influxdb,li-ang/influxdb,li-ang/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxd... | ui/test/kapacitor/components/KapacitorRulesTable.test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n createStyles,\n Theme,\n withStyles,\n WithStyles\n} from \"@material-ui/core/styles\";\nimport Typography from \"@material-ui/core/Typography\";\nimport * as classNames from \"classnames\";\nimport * as React from \"reac... | typescript | edit | null | null | bsd-3-clause | f75499a7cb363279a2cce55d5fb5296851092259 | UITools/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor | saleor/static/dashboard-next/components/Tab/Tab.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add string-literal completion test for jsdoc"
},
{
"role": "assistant",
"content": "/// <reference path='fourslash.ts'/>\r\n// @allowJs: true\r\n// @Filename: in.js\r\n/////** I am documentation\r\n//// * @param {'literal'} p... | typescript | new_file | 0 | 0 | apache-2.0 | e5973b8daa325344cf55b4c2840dd235e5e4e4f4 | chuckjaz/TypeScript,weswigham/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,synaptek/TypeScript,erikmcc/TypeScript,mihailik/TypeScript,synaptek/TypeScript,thr0w/Thr0wScript,Eyas/TypeScript,minestarks/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,erikmcc/TypeScript,kpreisser/TypeScript,donaldpipowitch/TypeScrip... | tests/cases/fourslash/completionForStringLiteral4.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add basic test case for default item_store.Item properties"
},
{
"role": "assistant",
"content": "import item_store = require('./item_store');\nimport testLib = require('./test');\n\ntestLib.addTest('default item properties',... | typescript | new_file | 0 | 1 | bsd-3-clause | 7cfe7f8a0aaf5e3c1d42d5ca7766c1e3a0983780 | robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards | lib/item_store_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add implementation of Queue in TypeScript"
},
{
"role": "assistant",
"content": "interface Queue<T> {\n\treadonly length: number;\n\tenqueue(value: T): number;\n\tdequeue(): T | undefined;\n\tpeek(): T | undefined;\n\tisEmpty... | typescript | new_file | 0 | 2 | cc0-1.0 | da208c9e6da278ce358bdb779fbfbfe727367143 | ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovs... | data_structures/Queue/ts/queue.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add helper for excluding fancy outline lines"
},
{
"role": "assistant",
"content": "import { TextConsumer } from '../TextConsumer'\nimport { ParagraphNode } from '../../SyntaxNodes/ParagraphNode'\nimport { SyntaxNode } from '... | typescript | new_file | 0 | 2 | mit | e5261df82d291449d95de3d9de6a914e2bae4bc9 | start/up,start/up | src/Parsing/Outline/ParseInlineOnlyIfParagraph.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add simple update request for adding phrase to word-grid"
},
{
"role": "assistant",
"content": "/*\n * word-grid-update-request.ts\n *\n * Copyright (C) 2018 [ A Legge Up ]\n *\n * This software may be modified and distribute... | typescript | new_file | 0 | 0 | mit | d9fbf2fe9e0c2be51976539b393302729f15c58a | ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid,ALeggeUp/confagrid | application/confagrid-frontend/src/main/frontend/root/modules/main/models/mex/word-grid-update-request.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add svgOutput utility to combine svgs and output to blob or png"
},
{
"role": "assistant",
"content": "import { select } from 'd3-selection';\n\nexport type TOutputType = 'png' | 'blob';\n\n// Method to combine an svg specifi... | typescript | new_file | 0 | 3 | mit | 4b2cf4df1a1d1cef2fe14b9a48d8529f331185cc | cognitivelogic/cl-react-graph,cognitivelogic/cl-react-graph,cognitivelogic/cl-react-graph | src/utils/outputSvg.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create a list of technologies."
},
{
"role": "assistant",
"content": "import { Tech } from './tech';\n\nexport const techs: Tech[] = [\n {\n id: 1,\n name: 'Angular'\n },\n {\n id: 2,\n name: 'EcmaScript'\n },... | typescript | new_file | 0 | 0 | mit | aa0c43fed16b610195a351b8fab973d7b9575325 | EtienneMiret/angular-quickstart,EtienneMiret/angular-quickstart,EtienneMiret/angular-quickstart | src/app/tech-list.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create a routable page view for the main application page, which hosts the crumpet list view and an about page."
},
{
"role": "assistant",
"content": "/**\n * Created by lthompson on 28/05/2016.\n */\nimport {Component} from ... | typescript | new_file | 0 | 1 | unlicense | 8613f648bb75b234864c798064cbb93042263c7f | luketn/WonderCrumpet | app/ui/pages/crumpet-page.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add quick info test for type parameter in type alias"
},
{
"role": "assistant",
"content": "/// <reference path='fourslash.ts'/>\r\n\r\n////type /*0*/List</*1*/T> = /*2*/T[]\r\n\r\ntype L<T> = T[]\r\nlet typeAliashDisplayPar... | typescript | new_file | 0 | 0 | apache-2.0 | dddc76b15675621d6996a45549f386a5a8630831 | Mqgh2013/TypeScript,kimamula/TypeScript,DanielRosenwasser/TypeScript,fabioparra/TypeScript,Eyas/TypeScript,kimamula/TypeScript,fabioparra/TypeScript,nojvek/TypeScript,mcanthony/TypeScript,evgrud/TypeScript,chuckjaz/TypeScript,mmoskal/TypeScript,basarat/TypeScript,nojvek/TypeScript,moander/TypeScript,kimamula/TypeScript... | tests/cases/fourslash/quickInfoDisplayPartsTypeParameterInTypeAlias.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test file (to be implemented)"
},
{
"role": "assistant",
"content": "import * as DSLRouter from \"../../src/routes/dslRouter\";\nimport * as express from \"express\";\nimport * as Chai from \"chai\";\n\n/**\n * This is th... | typescript | new_file | 0 | 1 | mit | e563a663d95e499ccdc03c615722d530c7c7a2db | BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS,BugBusterSWE/MaaS | test/routes/dslRouterTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test for DTM packet decoding"
},
{
"role": "assistant",
"content": "import \"should\";\n\nimport { parseNmeaSentence } from \"../index\";\n\n\ndescribe(\"DTM\", (): void => {\n\n it(\"parser\", (): void => {\n const p... | typescript | new_file | 0 | 1 | mit | be2fb5c73379ff3dc7fb6924fa0c0f2fab4621ac | 101100/nmea-simple | tests/DTMtest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Test for indent formatting after x => y => z"
},
{
"role": "assistant",
"content": "/// <reference path=\"fourslash.ts\" />\r\n\r\n////var x = n => p => {\r\n//// while (true) {\r\n//// void 0;\r\n//// }/**/\r\n/... | typescript | new_file | 0 | 0 | apache-2.0 | 6231645016dc4bf46e5db5940be48c9c8802c9c2 | vcsjones/typescript,fdecampredon/jsx-typescript-old-version,hippich/typescript,tarruda/typescript,bolinfest/typescript,rbirkby/typescript,mbrowne/typescript-dci,mbebenita/shumway.ts,mbrowne/typescript-dci,hippich/typescript,bolinfest/typescript,mbrowne/typescript-dci,popravich/typescript,turbulenz/typescript,guidobouma... | tests/ls/fourslash/formattingAfterChainedFatArrow.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add the content editable typescript file"
},
{
"role": "assistant",
"content": "/// <reference path=\"../scripts/typings/angularjs/angular.d.ts\" />\n\nmodule LabelApplication {\n class ContentEditable implements ng.IDire... | typescript | new_file | 0 | 2 | apache-2.0 | 663791f844168c13ad2312e63f0923ad65ccca25 | BillWagner/TypeScriptAngular,BillWagner/TypeScriptAngular,BillWagner/TypeScriptAngular,BillWagner/TypeScriptAngular | ngLabels/App_Script/contenteditable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test for whatwg normalizer"
},
{
"role": "assistant",
"content": "'use strict';\nimport * as assert from 'power-assert';\nimport * as url from 'url';\nimport * as whatwg from '../rules/whatwg';\n\n//\ndescribe('whatwg', (... | typescript | new_file | 0 | 2 | mit | 1eda190dd7136fb387c2b6cccc84f8d42c3088f4 | takenspc/ps-url-normalizer | test/whatwgTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add test for memory version storage."
},
{
"role": "assistant",
"content": "\nimport {expect} from \"chai\";\nimport {MemoryVersionStorage} from \"../../../../main/Apha/Projections/Storage/MemoryVersionStorage\";\n\ndescribe(... | typescript | new_file | 0 | 1 | mit | 81aacb0ce7cf9f953590521d16f487cdc48d6ab2 | martyn82/aphajs | src/test/Apha/Projections/Storage/MemoryVersionStorage.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { MouseEvent } from \"react\";\nimport { Listing, Listable } from \"../Listing\";\nimport { Button } from \"./Button\";\n\nexport interface ListingProps<T extends Listable> {\n name: string;\... | typescript | edit | null | null | mit | e7730542be624cfb569aea201cbdc89101367a9f | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Library/Components/Listing.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Move ITab interface to panels."
},
{
"role": "assistant",
"content": "/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2015, S. Chris Colbert\n|\n| Distributed under the te... | typescript | new_file | 0 | 0 | bsd-3-clause | 1fc65b22c8f2f56025eddffc6a53bc89fa12b812 | Carreau/phosphor-notebook-old-orig,dwillmer/phosphor,KesterTong/phoshpor-notebook,blink1073/phosphor,KesterTong/phoshpor-notebook,phosphorjs/phosphor,KesterTong/phoshpor-notebook,dwillmer/phosphor,Carreau/phosphor-notebook-old-orig,Carreau/phosphor-notebook-old-orig,dwillmer/phosphor,phosphorjs/phosphor,blink1073/phosp... | src/panels/itab.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add story for error page"
},
{
"role": "assistant",
"content": "import { NgModule } from '@angular/core';\nimport { storiesOf } from '@storybook/angular';\n\nimport { TitleService } from '../shared/title.service';\nimport { E... | typescript | new_file | 0 | 1 | apache-2.0 | dda07d32cd6f7bbf0fd03423354974ed30d25095 | jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog,jbrowneuk/jblog | src/app/error/error.component.stories.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: chore(storybook): Add CTA button to storybook"
},
{
"role": "assistant",
"content": "import { storiesOf } from '@storybook/react'\nimport React from 'react'\nimport { Story } from 'rt-storybook'\nimport { styled } from 'rt-th... | typescript | new_file | null | null | apache-2.0 | 92ce9af47d45f57bae62f7d7be74ff0a10a9cbfa | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | src/client/src/apps/MainRoute/widgets/contact-us/ContactUs.stories.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add setElement directive (for HOE)"
},
{
"role": "assistant",
"content": "import { directive } from '../../../node_modules/lit-html/lit-html.js';\n\n/**\n * Sets the part to a new element of the type selector with the given p... | typescript | new_file | 0 | 3 | apache-2.0 | 5df7cf64f2c0f066fc150d1e0b1dbce726887d61 | DiiLord/lit-element,DiiLord/lit-element,DiiLord/lit-element | src/lib/directives/set-element.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Test AddListings and GetWithTemplate on localstorage"
},
{
"role": "assistant",
"content": "import { StatBlock } from \"../../common/StatBlock\";\nimport { AccountClient } from \"../Account/AccountClient\";\nimport { Store } ... | typescript | new_file | 0 | 1 | mit | 2cb45c47a5b22010e0343b515000128f013b6038 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Library/StatBlockLibrary.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add tests for nested destructuring"
},
{
"role": "assistant",
"content": "/// <reference path='fourslash.ts'/>\n\n////[[{foo: 'hello', bar: [1]}]]\n//// .map(([{foo, bar: [baz]}]) => /*1*/foo + /*2*/baz);\n\ngoTo.marker('1')... | typescript | new_file | 0 | 0 | apache-2.0 | f7f9bd1d2431c1b2cc2d80f6344d552f0230fb11 | Eyas/TypeScript,fabioparra/TypeScript,kimamula/TypeScript,RyanCavanaugh/TypeScript,mihailik/TypeScript,ziacik/TypeScript,weswigham/TypeScript,donaldpipowitch/TypeScript,ziacik/TypeScript,synaptek/TypeScript,synaptek/TypeScript,SaschaNaz/TypeScript,TukekeSoft/TypeScript,chuckjaz/TypeScript,alexeagle/TypeScript,TukekeSof... | tests/cases/fourslash/parameterWithNestedDestructuring.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create new abstract class for lists"
},
{
"role": "assistant",
"content": "import {ResourcesComponent} from './resources.component';\nimport {ViewFacade} from './view/view-facade';\nimport {Loading} from '../../widgets/loadin... | typescript | new_file | 0 | 6 | apache-2.0 | b9f4ae435cdacd83d7af7e21256a0f0c55ba015f | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/components/resources/base-list.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Create a 'dumb view' component which can render a list of crumpets"
},
{
"role": "assistant",
"content": "import {Component,Input,Output,EventEmitter} from \"@angular/core\";\nimport {Crumpet} from \"../../data/Crumpet\";\n\n... | typescript | new_file | 0 | 0 | unlicense | cf969e29d54fe0077c7114df07298ca2605c6b8c | luketn/WonderCrumpet | app/ui/views/crumpet-list-view.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.