messages listlengths 2 2 | language stringclasses 8
values | prompt_type stringclasses 2
values | lint_errors int64 0 129 ⌀ | cyclomatic_complexity int64 0 32 ⌀ | license stringclasses 7
values | commit stringlengths 40 40 | repos stringlengths 5 116k | new_file stringlengths 4 220 | status stringclasses 6
values | error stringlengths 26 74 ⌀ | is_valid_syntax bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\n\nimport { NotFoundComponent } from './not-found.component';\n\ndescribe('Component: NotFound', () => {\n let c... | typescript | edit | 0 | 1 | mit | 37f9090435d5529f9de5497a265a2fa6b40c171d | DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack | client/app/not-found/not-found.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Geometry } from 'geojson';\nimport { ResultDocument } from './result';\n\n\nexport interface Document {\n created: ChangeEvent;\n modified: ChangeEvent[];\n project: string;\n resource: Resource;\n}\n\n\nexport inte... | typescript | edit | 0 | 2 | apache-2.0 | 53a6bb46b83d60dcd035079524e62ddb0843796b | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/api/document.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\n\nimport { IConverter } from '../converters';\n\nexport class AliasConverter<TDataType> implements IConverter<TDataType> {\n\tconstructor(private alias: string\n\t\t\t, private composedConverter?: IConverte... | typescript | edit | 0 | 3 | mit | b6ad38c0e666508196118b150c62578296b6f8bb | RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities | source/services/dataContracts/converters/aliasConverter/aliasConverter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Components, registerComponent } from '../../lib/vulcan-lib';\nimport { Posts } from '../../lib/collections/posts';\nimport { useLocation } from '../../lib/routeUtil';\nimport { useSingle } from '../.... | typescript | edit | null | null | mit | a26ff5411cff6383bd00186d3321e6e1d911af92 | Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope | packages/lesswrong/components/posts/PostsCompareRevisions.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 { UIView } from \"@uirouter/react\";\nimport ManifestProgress from './ManifestProgress';\nimport { $rootScope } from 'ngimport';\nimport { hotkeys } from '../ngimport-more';\nimport { t } from 'i1... | typescript | edit | null | null | mit | 486a33c886ebd022682737ef86fcf8f12910004d | bhollis/DIM,bhollis/DIM,chrisfried/DIM,delphiactual/DIM,chrisfried/DIM,chrisfried/DIM,delphiactual/DIM,DestinyItemManager/DIM,bhollis/DIM,DestinyItemManager/DIM,delphiactual/DIM,bhollis/DIM,delphiactual/DIM,DestinyItemManager/DIM,chrisfried/DIM,DestinyItemManager/DIM | src/app/shell/Destiny.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getEnvironment } from 'rt-util'\nimport { currencyFormatter } from './'\n\nconst name = 'Reactive Trader'\nconst prodEnvs = ['demo']\n\nexport const APP_PATHS = {\n LAUNCHER: '/launcher',\n TRADER: '/',\n STYLEGUIDE: '/style... | typescript | edit | 0 | 7 | apache-2.0 | 0f011e4c92c64347c3dae634bbb58eaac900ee84 | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | src/client/src/rt-util/getAppName.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { updatePollPeriod } from 'Actions/Settings';\n\n/**\n * @param {string} pollPeriod\n */\nexport function configurePollPeriod(pollPeriod: string)\n{\n return dispatch =>\n {\n dispatch(updatePollPeriod(pollPeriod));\n };\n... | typescript | edit | 0 | 1 | mit | 233a88eea11c71005aa03d8ffb6097520bf8a190 | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | src/js/Actions/UIActions/Settings.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ItemCollectionMock } from \"../../collection/itemcollection/itemcollection.mock\";\nimport { ControlMock } from \"../../controls/control/control.mock\";\nimport { StringControlMock } from \"../../controls/stringcontrol/stringco... | typescript | edit | 0 | 4 | mit | 69a01949b04827fcdae38b2bbea81420362755d5 | camelCaseDave/xrm-mock,camelCaseDave/xrm-mock | src/xrm-mock/attributes/stringattribute/stringattribute.mock.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport NowShowingFilter from \"./NowShowingFilter\";\n\nexport type ChangeFunction = () => any;\n\nexport interface IAppProps {\n model: ITodoModel;\n}\n\nexport interface IAppState {\n editing?: string;\n nowShowing?: NowShowingFilt... | typescript | edit | 0 | 0 | unlicense | 890361dff04f652f24da3ed3611bf123053ba3e6 | janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations | typescript-react/src/interfaces.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Constants = require(\"../../../../../shared/constants\");\nimport Express = require(\"express\");\nimport GetHeader from \"../../utils/GetHeader\";\nimport HasHeader from \"../..//utils/HasHeader\";\n\nexport class RequestUrlGett... | typescript | edit | 0 | 5 | mit | 617e929e1af5b949da3caacd6df281a8fc99303d | clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/two-factor-auth-server,clems4ever/authelia,clems4ever/authelia,clems4ever/authelia | server/src/lib/utils/RequestUrlGetter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// tslint:disable-next-line:no-require-imports\nimport open = require(\"open\");\n\nconst generateQuery = (params: { [key: string]: string }) =>\n Object.keys(params)\n .map((key: string) => key + \"=\" + params[key])\n ... | typescript | edit | 0 | 1 | mit | b6709a2153d0be4410963917392ad6ab914f2179 | dolanmiu/MMM-awesome-alexa,dolanmiu/MMM-awesome-alexa | src/aws-token-helper/aws-token-helper.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport Icon from '../icon/Icon';\nimport AppLink, { Props as LinkProps } from '../link/AppLink';\n\ninterface Props extends LinkProps {\n icon: string;\n info: string;\n}\nexport const SidebarListItemHe... | typescript | edit | null | null | mit | a0c2221847d97b3ed3e8ed604c319acff5b83c47 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/sidebar/SidebarListItemHeaderLink.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Make some initial type definitions"
},
{
"role": "assistant",
"content": "export type NodeId = number | string;\n\n\nexport interface Graph {\n nodes: Node[];\n edges: Edge[];\n}\n\nexport interface Node {\n id: Node... | typescript | new_file | 0 | 1 | mit | e3afa9992b81c7de03d9d9a7827ee39358a17484 | dphilipson/graphs-and-paths | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { TileTogglePin } from \"../tile_toggle_pin\";\nimport { mount } from \"enzyme\";\nimport { fakeSequence } from \"../../../__test_support__/fake_state/resources\";\nimport { TogglePin } from \"f... | typescript | edit | null | null | mit | 0d9bf3ccc55f4d643f8aed95065bb435ca91fa0c | gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/Farmbot-Web-API,FarmBot/Far... | frontend/sequences/step_tiles/__tests__/tile_toggle_pin_test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { commands } from \"vscode\";\n\nexport function setContext(key: string, value: any) {\n return commands.executeCommand(\"setContext\", key, value);\n}\n\nexport function executeCommand(cmd: string, args: any) {\n if (Array... | typescript | edit | 0 | 8 | mit | c71ff5707a9f543551d705d4f261448329063e51 | VSpaceCode/vscode-which-key,VSpaceCode/vscode-which-key | src/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\n\nexport interface IItem {\n value: number;\n name: string;\n display: string;\n}\n\nexport interface IItemList<TItemType extends IItem> {\n\tget(value: number | string): TItemType;\n\tall(): TItem... | typescript | edit | 0 | 1 | mit | bc0bbbce9c58f37f9a4fc9c49e8f97a4816719ee | RenovoSolutions/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,SamGraber/TypeScript-Angular-Utilities,RenovoSolutions/TypeScript-Angular-Utilities | source/types/itemList.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport { expect } from 'chai'\nimport * as Up from '../../index'\nimport { insideDocumentAndParagraph } from './Helpers'\nimport { LinkNode } from '../../SyntaxNodes/LinkNode'\nimport { DocumentNode } from '../../SyntaxNodes/DocumentN... | typescript | edit | 0 | 1 | mit | d765b09a5b71d361e2bb7ea4be31b4f15b6e2053 | start/up,start/up | src/Test/Ast/NakedUrl.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { ToolbarButton, ToolbarButtonStyle } from './button'\nimport { OcticonSymbol } from '../octicons'\nimport { IRevertProgress } from '../../lib/app-state'\n\ninterface IRevertProgressProps {\n /** ... | typescript | edit | null | null | mit | 6f20ef281fa9384ac93f94ca23f6cc79dda290a0 | shiftkey/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,say25/desktop,desktop/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,kactus-io/kac... | app/src/ui/toolbar/revert-progress.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"ftp.d.ts\" />\r\n/// <reference path=\"../node/node.d.ts\" />\r\n\r\nimport Client = require(\"ftp\");\r\nimport fs = require(\"fs\");\r\n\r\nvar c = new Client();\r\nc.on('ready', (): void => {\r\n\tc.get('foo.txt... | typescript | edit | 0 | 2 | mit | e8b85f0f4875496c710a5d4bc4ccad388d21915c | TrabacchinLuigi/DefinitelyTyped,olivierlemasle/DefinitelyTyped,RX14/DefinitelyTyped,nakakura/DefinitelyTyped,jesseschalken/DefinitelyTyped,Gmulti/DefinitelyTyped,scriby/DefinitelyTyped,rockclimber90/DefinitelyTyped,zuzusik/DefinitelyTyped,igorsechyn/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,Zenorbi/DefinitelyTyped,lb... | ftp/ftp-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Category } from 'hint/dist/src/lib/enums/category';\nimport { HintScope } from 'hint/dist/src/lib/enums/hintscope';\nimport { HintMetadata } from 'hint/dist/src/lib/types';\n\nimport * as Connections from './connections';\n\nco... | typescript | edit | 0 | 0 | apache-2.0 | 35ce084572b3da9103949de464c81a5c4cc348e5 | sonarwhal/sonar,sonarwhal/sonar,sonarwhal/sonar | packages/hint-performance-budget/src/meta.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {parseWordList} from '../lexical-model-compiler/build-trie';\nimport {assert} from 'chai';\nimport 'mocha';\n\nimport path = require('path');\n\nconst BOM = '\\ufeff';\n\ndescribe('parseWordList', function () {\n it('should remo... | typescript | edit | 0 | 1 | apache-2.0 | 1815ad7a1858625b543bc3f0bae9f1b4eb624d85 | tavultesoft/keymanweb,tavultesoft/keymanweb | developer/js/tests/test-parse-wordlist.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { Component } from 'react';\nimport window from 'global';\n\ninterface IFrameProps {\n id: string;\n key?: string;\n title: string;\n src: string;\n allowFullScreen: boolean;\n scale: number;\n style?: any;\n}\n\nin... | typescript | edit | null | null | mit | 23dedfcbd1b8aa94437078115604dabdd8efa563 | storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook | lib/components/src/blocks/IFrame.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typedefinitions/node.d.ts\" />\n/// <reference path=\"../core/JSUtilities.ts\" />\n\nconst fs = require(\"fs\");\n\nclass NodeUtilities {\n static argvWithoutProcessName() {\n return process.argv.sl... | typescript | edit | 0 | 1 | mit | 5ad1ba260be6eaee38c2b4a6e22b1db938ddbbf9 | paulymer/CRISP-8 | src/node/NodeUtilities.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport { Observable } from 'rxjs/Rx';\n\n@Injectable()\nexport class <%=jhiPrefixCapitalized%>ConfigurationService {\n\n constructor(privat... | typescript | edit | null | null | apache-2.0 | 886e31a451ac5b8659289c3bea5b88a6950b4866 | wmarques/generator-jhipster,PierreBesson/generator-jhipster,mraible/generator-jhipster,eosimosu/generator-jhipster,baskeboler/generator-jhipster,ruddell/generator-jhipster,JulienMrgrd/generator-jhipster,Tcharl/generator-jhipster,gmarziou/generator-jhipster,cbornet/generator-jhipster,liseri/generator-jhipster,nkolosnjaj... | generators/client/templates/angular/src/main/webapp/app/admin/configuration/_configuration.service.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input, Optional, OnInit } from '@angular/core';\nimport { AbstractControl } from '@angular/forms';\n\nimport { ValidationMessagesConfiguration, defaultConfig } from './config';\nimport { MessageProvider } from './me... | typescript | edit | 0 | 0 | mit | c9b380771adf25308913eab670740731be28c155 | d-kostov-dev/ng2-mdf-validation-messages,d-kostov-dev/ng2-mdf-validation-messages,d-kostov-dev/ng2-mdf-validation-messages | src/messages.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport store from './store';\nimport { API_URL } from './constants';\nimport {\n clearDom,\n createRootDiv,\n importBlu... | typescript | edit | null | null | mit | 5eea4756be6c9b44880b34e446832ffc3f5c4186 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SelectOption } from '../dependencies/cliffy.ts';\nimport { stoyle, theme } from '../dependencies/stoyle.ts';\n\nexport const COMMIT_TYPES: Record<string, SelectOption> = {\n FEAT: { value: 'feat', name: stoyle`${'feat'} when w... | typescript | edit | 0 | 0 | apache-2.0 | 66d8b0568e1f6e91fcc2914239f5385c58759f88 | quilicicf/Gut,quilicicf/Gut | src/lib/commitTypes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for Tether v0.6\n// Project: http://github.hubspot.com/tether/\n// Definitions by: Adi Dahiya <https://github.com/adidahiya>\n// Definitions: https://github.com/borisyankov/DefinitelyTyped\n\ndeclare module tether {\... | typescript | edit | 0 | 0 | mit | 88b4ec57704662a9d422aa3558890bd1751e9749 | paxibay/DefinitelyTyped,NCARalph/DefinitelyTyped,muenchdo/DefinitelyTyped,acepoblete/DefinitelyTyped,dmoonfire/DefinitelyTyped,michalczukm/DefinitelyTyped,sclausen/DefinitelyTyped,jacqt/DefinitelyTyped,AyaMorisawa/DefinitelyTyped,darkl/DefinitelyTyped,ecramer89/DefinitelyTyped,rcchen/DefinitelyTyped,QuatroCode/Definite... | tether/tether.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FC } from 'react';\nimport { Icon } from '@mdi/react';\n\ntype ButtonProps = {\n text: string;\n title?: string;\n icon?: string;\n size?: string | number;\n className?: string;\n onClick?: () => void;\n hr... | typescript | edit | null | null | mit | d2785ea12fbece9c2e50af1885f8f6021f5a9701 | benct/tomlin-web,benct/tomlin-web | components/page/Button.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport Helmet from 'react-helmet'\n\nexport const css = `\n body, #root {\n overflow: hidden;\n }\n\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n ::-webkit-scrollbar-thumb {\n bor... | typescript | edit | null | null | apache-2.0 | e12e40763503407c03c2face630afe70c24acf32 | AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud,AdaptiveConsulting/ReactiveTraderCloud | src/client/src/shell/GlobalScrollbarStyle.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\n\n/**\n * Entry point for CLI.\n * Validate args and kick off electron process so user doesn't have to invoke\n * electron directly.\n */\n\nimport * as Child from \"child_process\";\nimport * as Path from \"path\";... | typescript | edit | 0 | 1 | mit | 36d1df8c383002cdc75b66808e1b135607bd4883 | trodi/peer-review-cli,trodi/peer-review-cli | cli.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { helper } from '@ember/component/helper';\n\nexport function typedHelp(/*params, hash*/) {\n return 'my type of help';\n}\n\nexport default helper(typedHelp);\n\n```\n\nApply this change: Make the declaration emitter happy with... | typescript | edit | 0 | 1 | mit | b976adc747d62253e923ba1c658222425954468a | emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript,emberwatch/ember-cli-typescript | tests/dummy/app/helpers/typed-help.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Configuration} from \"@tsed/common\";\nimport {CalendarsCtrl} from \"./controllers/CalendarsCtrl\";\nimport {CalendarsService} from \"./services/CalendarsService\";\n\n@Configuration({\n mount: {\n \"/rest\": [CalendarsCtrl]... | typescript | edit | 0 | 0 | mit | b06f2510c00d064f5549fab9b735e36e3b4e2dbf | Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators,Romakita/ts-express-decorators | docs/docs/snippets/providers/getting-started-serverloader.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { ReactElement } from 'react'\n\nconst rssElement = (name: string) => p => {\n const { children, ...props } = p\n return React.createElement(name, props, children)\n}\n\nconst Item = rssElement('item'... | typescript | edit | null | null | mit | 5f0b62aa02972445938b24dc8f9f6855ee1af594 | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | src/v2/pages/rss/components/RssItem/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type Pair<K, V> = { Key: K, Value: V };\n\nexport function captureStack() {\n try { throw new Error(); } catch (e) { return e.stack; }\n}\n```\n\nApply this change: Check to see if we're in a test runner via dodgy af means"
},... | typescript | edit | 0 | 2 | bsd-3-clause | 4cbec0b06ad7f1f2e02eeab16b3e6b7c972b4316 | paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline,paulcbetts/trickline | src/lib/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport { registerMigration } from './migrationUtils';\nimport { Votes } from '../../lib/collections/votes';\nimport { Posts } from '../../lib/collections/posts';\nimport { Comments } from '../../lib/collections/comments';\n\nregisterM... | typescript | edit | 0 | 1 | mit | 0fb3786c132dffed970fa087f2958eca127caf84 | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/server/migrations/2020-09-19-afVoteMigration.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Affiliation, Household } from 'cmpd-common-api';\nimport { BaseEntity, Column, Entity, JoinColumn, OneToMany, OneToOne, PrimaryColumn } from 'typeorm';\n\n@Entity('nominators')\nexport class Nominator extends BaseEntity {\n pr... | typescript | edit | 0 | 1 | mit | 9636a6cacfbd6fc79ff8890878ba62fd1712e8f8 | CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/cmpd-holiday-gift-backend,CodeForCharlotte/CMPD-Holiday-Gift,CodeForCharlotte/CMPD-Holiday-Gift | backend/common/src/entities/nominator.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as rq from 'request-promise-native'\n\nconst sleep = ms => new Promise(resolve => setTimeout(resolve, ms))\n\nexport default function poll (bot) {\n return bot.api('messages.getLongPollServer')\n .then(res => {\n retur... | typescript | edit | 0 | 8 | mit | f3b59f939524708155930f17ba619185eb9bbb83 | vitalyavolyn/node-vk-bot,vitalyavolyn/node-vk-bot | src/functions/poll.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Q = require('q');\n\nimport crypto_worker = require('./crypto_worker');\nimport env = require('./base/env');\nimport rpc = require('./net/rpc');\nimport testLib = require('./test');\n\nif (env.isNodeJS()) {\n\tWorker = require('.... | typescript | edit | 0 | 1 | bsd-3-clause | 5cc9cb9da1ece1497309f151b2789d9f5c300afc | robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards | lib/crypto_worker_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Http } from '@angular/http';\n\nimport { BooksService } from './books.service';\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html'\n})\nexport class A... | typescript | edit | 0 | 1 | apache-2.0 | a1711158f3d3815c78f1b56ac133fe62efc489cb | bonigarcia/web-programming-examples,bonigarcia/web-programming-examples,bonigarcia/web-programming-examples,bonigarcia/web-programming-examples | angular-rest-services/src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as angular from 'angular';\nimport { <%= pAppName %>Config } from './<%= hAppName %>.config';\nimport { <%= pAppName %>Run } from './<%= hAppName %>.run';\nimport { ServicesModule } from './services/services.module';\n\nangular... | typescript | edit | null | null | mit | 061b3b7cb068a9928e18aedf696956a8231ef1c0 | Kurtz1993/ngts-cli,Kurtz1993/ngts-cli,Kurtz1993/ngts-cli | templates/app/src/_name.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CodeBlockWriter } from \"../../codeBlockWriter\";\nimport { AbstractableNodeStructure, AmbientableNodeStructure, AsyncableNodeStructure, ExportableNodeStructure, ReadonlyableNodeStructure,\n ScopeableNodeStructure, ScopedNod... | typescript | edit | 0 | 9 | mit | c7734dc035db4624b3919672546ce0829dd1e329 | dsherret/ts-simple-ast | src/structurePrinters/base/ModifierableNodeStructurePrinter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Permission} from '../_models';\n\nimport 'rxjs/add/observable/throw';\nimport 'rxjs/add/operator/catch';\nimport {Observable} from 'rxj... | typescript | edit | 0 | 1 | apache-2.0 | 7d3b9a5e92bfffdcd05a258935bc863d43dd3116 | K-Fet/K-App,K-Fet/K-App,K-Fet/K-App,K-Fet/K-App | client/src/app/_services/permission.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Dependument {\n private package: string;\n private templates: string;\n\n constructor(options: any) {\n \n }\n}\n\n```\n\nApply this change: Throw error if no path"
},
{
"role": "assistant",
"content": "e... | typescript | edit | 0 | 2 | unlicense | 84bf2db47ea1537471e3914db00d7f5ab6e3e337 | dependument/dependument,Jameskmonger/dependument,dependument/dependument,Jameskmonger/dependument | src/dependument.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ErrorMessage} from \"./Models/ErrorMessage\";\n\nexport const DEFAULT_ERRORS: ErrorMessage[] = [\n {\n error: 'required',\n format: label => `${label} is required`\n },\n {\n error: 'pattern',\n format: label => `... | typescript | edit | 0 | 1 | mit | 7837031fef54443651fe82dd533ecf91dbc422dc | third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation | src/lib/default-errors.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Page, Tabs, Stack, Banner } from '@shopify/polaris';\nimport { HitMap, RequesterMap, SearchOptions } from '../types';\nimport HitTable from './HitTable/HitTable';\nimport Search from '../contain... | typescript | edit | null | null | mit | 2de88ea3ad992097563f449ed5dc0a8c6fdcfdc4 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/App.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* --------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root fo... | typescript | edit | 0 | 1 | mit | 7adfba39f5239453c680ded5efbe2d6fc3f4b851 | chenxsan/vscode-standardjs | eslint/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Resource as HalfredResource, parse as halfredParse } from 'halfred';\n\nimport { Resource } from '../hal';\n\nimport { InternalResourceWrapper } from './internal-resource-wrapper';\n\n/**\n * Parser offers validation and normal... | typescript | edit | 0 | 2 | mit | dffded8e9360f0ff16e654fecc305f3825a44346 | dherges/ng-hal,dherges/ng-hal | src/lib/src/parser/parser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { useState } from 'react';\nimport { Nullable } from 'proton-shared/lib/interfaces/utils';\nimport { c } from 'ttag';\n\nimport { Alert, FormModal, Input } from '../../../components';\nimport { useLoading } from '../../../... | typescript | edit | null | null | mit | 807b8248fe41002632becb84277fe361d1f44972 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/calendar/shareURL/EditLinkModal.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport { default as matchTestFiles } from \"./matchTestFiles\";\nexport { default as globals } from \"./globals\";\nexport { default as specSyntax } from \"./specSyntax\";\nexport { default as suiteSyntax } from \"./suiteSyntax\";\nexpo... | typescript | edit | 0 | 0 | mit | 5943a3f32bf6779c36dc611c5ec2bd2140e46f10 | testingrequired/tf,testingrequired/tf | src/middleware/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { RootState, Hit } from '../types';\r\n\r\nimport { connect, Dispatch } from 'react-redux';\r\nimport * as actions from '../actions/turkopticon';\r\nimport HitTable, { Props, Handlers } from '../components/HitTable/HitTable';\r\n... | typescript | edit | 0 | 1 | mit | 357b44172be511b760024709080b61a4ea769569 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/containers/HitTable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Component,\n ElementRef,\n Input,\n Renderer2,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { toBoolean } from '../common/boolean-property';\n\n@Component({\n selector: '[mdc-list-divider], mdc-li... | typescript | edit | 0 | 2 | mit | e86194367f7d8e15acbc14ae254a0257c4340c4d | trimox/angular-mdc-web,trimox/angular-mdc-web | src/lib/list/list-divider.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport namespace MongooseApi { \n export class RunApi { \n public static readonly RUN = \"/run\";\n }\n\n export class LogsApi { \n public static readonly LOGS = \"/logs\";\n }\n}\n```\n\nApply this change: Add... | typescript | edit | 0 | 0 | mit | 4b74dfb769633072c1bd7a3f7bdf4571535790b9 | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | console/src/app/core/services/monitoring-api/MongooseApi.model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default {\n body: {\n margin: \"0\",\n },\n};\n\n```\n\nApply this change: Add font smoothing to docs"
},
{
"role": "assistant",
"content": "export default {\n body: {\n margin: \"0\",\n\n /* Support for a... | typescript | edit | 0 | 0 | mit | c76fdd2026edbfc0b565b0f73e24aa0c9a61171b | wikiwi/react-css-transition,wikiwi/react-css-transition | docs/src/global.css.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by Caleydo Team on 31.08.2016.\n */\n\nimport 'file-loader?name=index.html!extract-loader!html-loader?interpolate!./index.html';\nimport 'file-loader?name=404.html-loader!./404.html';\nimport 'file-loader?name=robots.txt... | typescript | edit | 0 | 0 | bsd-3-clause | 587e038831a107c6013e3e48237eb94b7388aeb3 | phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea,phovea/generator-phovea | generators/init-app/templates/sample_plain/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ConfigurationSchema } from '../editionConfig';\nimport { config as variableInstanceConfig } from './VariableInstance';\nexport const config: ConfigurationSchema<IQuestionInstance> = {\n ...variableInstanceConfig,\n active: {\... | typescript | edit | 0 | 0 | mit | ca921ef955ee1c80f8d521bd14af0fdafbb250c9 | Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas,Heigvd/Wegas | wegas-app/src/main/webapp/2/src/Editor/EntitiesConfig/QuestionInstance.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport Entity, {EntityState, EntityStateOptions} from \"../Engine/Entity\"\n\n/**\n * Spawns stuff.\n */\nexport default class Spawner extends Entity {\n\n static type = \"Nanoshooter/Entities/Spawner\"\n\n private mesh: BABYLON... | typescript | edit | 0 | 2 | mit | 6d5e21db305efbf31b9f888cf4168c2c4a90dd74 | ChaseMoskal/Nanoshooter,ChaseMoskal/Nanoshooter | src/Entities/Spawner.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from \"@angular/core\";\nimport { RacePart } from \"../../models/race-part.model\";\nimport { RACE_PARTS } from \"../../models/mocks\";\n\n@Component({\n selector: \"my-app-custom-component\",\n templateUrl: \"./a... | typescript | edit | 0 | 3 | mit | 4670f02918f700aa375e69ddb3624602a6e5e4e1 | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | A2/quickstart/src/app/components/app-custom/app.custom.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport * as classNames from 'classnames'\nimport { Octicon, OcticonSymbol } from '../octicons'\n\ninterface IDialogErrorProps {\n readonly className?: string\n}\n\n/**\n * A component used for displaying... | typescript | edit | null | null | mit | 31bab7edb0fdb6fd1598294a6dac637e6191cc43 | kactus-io/kactus,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,j-f1/forked-de... | app/src/ui/dialog/error.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n#!/usr/bin/env node\n\nimport minimist = require('minimist')\nimport extend = require('xtend')\nimport { loader, archifyDependencyTree } from '../utils/cli'\nimport { PROJECT_NAME } from '../utils/config'\nimport { resolveTypeDependenci... | typescript | edit | 0 | 1 | mit | c9e5c8a42ceb67787d060b8bc1e0235214c70891 | typings/typings,typings/typings | src/bin/typings-list.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Use function signatures with typings"
},
{
"role": "assistant",
"content": "declare function arity (arity: number, fn: (...args: any[]) => any): (...args: any[]) => any;\n\nexport = arity;\n"
}
] | typescript | new_file | 0 | 0 | mit | 80cad23dd09235470e80fdeb48db67b9bdd3b29b | blakeembrey/arity | arity.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n */\n\nimport styled from 'rea... | typescript | edit | null | null | mit | e99f2bcd8b3c091af57aeaf615c7cfff39c02f43 | facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper,facebook/flipper | src/ui/components/Link.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { openDB, type IDBPDatabase } from 'idb';\n\nexport async function getDB() {\n const db = await openDB('pokeapi.js', 1, {\n async upgrade(db) {\n const objectStore = db.createObjectStore('cachedResources', {\n key... | typescript | edit | 0 | 1 | apache-2.0 | b3fbdeff4ad2f343ed3244e6223c7ba676989f53 | 16patsle/pokeapi.js,16patsle/pokeapi.js | src/idbStorage.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {EnvConfig} from './env-config.interface';\n\nconst TestConfig: EnvConfig = {\n ENV: 'TEST',\n API: 'http://localhost:3000/api/n/songs'\n};\n\nexport = TestConfig;\n\n\n```\n\nApply this change: Add path to java backend"
},
... | typescript | edit | 0 | 0 | mit | 0cd18df0b6d8a1109592efe1a535c5bafa0ca5bc | rweekers/voornameninliedjes-frontend,rweekers/voornameninliedjes-frontend | tools/env/test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { Listable } from \"../../../common/Listable\";\nimport { useSubscription } from \"../../Combatant/linkComponentToObservables\";\nimport { Listing } from \"../Listing\";\nimport { SelectionConte... | typescript | edit | null | null | mit | d0b2386af2ac4f342a8aab1f59e4eb2110e404ff | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Library/Manager/LibraryManagerRow.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Cron from \"croner\";\n\n// Test basic\nconst test1 : Cron = new Cron(\"* * * * * *\", () => {\n\tconsole.log(\"This will run every second.\");\n});\n\n// With options\nconst test2 : Cron = new Cron(\"* * * * * *\", { timezone: \... | typescript | edit | 0 | 1 | mit | c7ca44a26878157abec91fc7989239c14117382e | Hexagon/croner,Hexagon/croner | test/ts/basics.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare class WeakMap< Key , Value > {\n\tget( key : Key ) : Value\n\tset( key : Key , value : Value ) : this\n}\n\nnamespace $ {\n\t\n\texport class $mol_view_dom extends $mol_object {\n\t\t\n\t\tstatic nodes = new ( WeakMap || $mol_di... | typescript | edit | 0 | 2 | mit | a314254dca646c1108221b1a611a84e39b84943d | nin-jin/mol,eigenmethod/mol,nin-jin/mol,eigenmethod/mol,nin-jin/mol,eigenmethod/mol | view/dom/dom.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface Constraint {\n value: string|string[];\n type: string; // add | subtract\n}\n\n\n/**\n * Companion object\n */\nexport class Constraint {\n\n public static convertTo(constraint: Constraint|string|string[]): C... | typescript | edit | 0 | 3 | apache-2.0 | 7f61513fed2b3dd2e653c76743fce4afa526dc24 | dainst/idai-components-2,dainst/idai-components-2,dainst/idai-components-2 | src/datastore/constraint.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable, Inject } from '@angular/core';\nimport { Action, ScannedActionsSubject } from '@ngrx/store';\nimport { Observable } from 'rxjs/Observable';\nimport { Operator } from 'rxjs/Operator';\nimport { filter } from 'rxjs/op... | typescript | edit | 0 | 1 | mit | d176a11222e1d650c848704c4c30d50ef3799f3c | brandonroberts/platform,brandonroberts/platform,brandonroberts/platform,brandonroberts/platform | modules/effects/src/actions.ts | rejected_duplicate | Near-duplicate of sample 112938 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.10.0',\n RELEASEVERSION: '... | typescript | edit | 0 | 0 | mit | 244682c2b385fc94d316c31a3fa7a77b3aeb324d | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | tools/env/base.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright 2016 underdolphin(masato sueda)\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 Li... | typescript | edit | 0 | 1 | apache-2.0 | bb396ca1ac6843cec22ad2310b2575fe63eac959 | underdolphin/SoundRebuild,underdolphin/SoundRebuild,underdolphin/SoundRebuild | src/main/io/settings-io.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getFirst } from '@waldur/core/api';\nimport { $rootScope, ENV, $q } from '@waldur/core/services';\n\nclass UsersServiceClass {\n public currentUser;\n\n setCurrentUser(user) {\n // TODO: Migrate to Redux and make code DRY\... | typescript | edit | 0 | 2 | mit | a30f15021b73cee8e4b12dafb114798533f4e2f4 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/user/UsersService.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {EditTrainingSummary} from '../../model/editTrainingSummary';\n\nexport const trainingContentMockData: EditTrainingSummary[] = [\n {\n id: 1,\n content: 'This is a test markdown sample using # H1',\n },\n {\n id: 2,\n... | typescript | edit | 0 | 0 | mit | f452e806b7bb1e8d776f95b8531cb598841e3bd0 | MasterLemon2016/LeanMood,Lemoncode/LeanMood,Lemoncode/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood,MasterLemon2016/LeanMood | src/rest-api/trainer/trainerMockData.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'my-app',\n templateUrl: \"tpl/app.component.tpl.html\"\n})\nexport class AppComponent { }\n\n```\n\nApply this change: Use full path of templateUrl"
},
{
... | typescript | edit | 0 | 0 | mit | 8501fd0b632f68ed23bb60bf893b3ef3393a1673 | ngako/angular2-poc,ngako/angular2-poc,ngako/angular2-poc | src/app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare namespace ಠ_ಠ.clutz {\n class module$exports$asyncawait {\n private noStructuralTyping_: any;\n bar ( ) : any ;\n foo ( ) : any ;\n }\n}\ndeclare module 'goog:asyncawait' {\n import asyncawait = ಠ_ಠ.clutz.module$expo... | typescript | edit | 0 | 1 | mit | 0e4dce9c7f07e6d7f02ebad75a81e864e5da2ed9 | angular/clutz,angular/clutz,angular/clutz | src/test/java/com/google/javascript/clutz/async_await_with_platform.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getAllAddresses, setupAddress as setupAddressRoute } from '../api/addresses';\nimport { queryAvailableDomains } from '../api/domains';\nimport { Address as tsAddress, Api } from '../interfaces';\nimport { handleSetupKeys } from... | typescript | edit | 0 | 2 | mit | 20d953132867d7856c24b417bcddd71a624df3e3 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/shared/lib/keys/setupAddressKeys.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport envPaths from 'env-paths';\nimport _debug from 'debug';\nimport { join } from './utils/path';\nimport getStaging from './utils/get-staging';\nimport { reporter } from './reporter';\n\nimport { Env } from './types';\n\nconst paths... | typescript | edit | 0 | 1 | mit | 8d1a88177812c65da1347798e33fb8dcd9f69d1e | vba-blocks/vba-blocks,vba-blocks/vba-blocks,vba-blocks/vba-blocks | src/env.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport xs, { Stream } from 'xstream';\nimport { VNode, div, span, img, a, h1, button } from '@cycle/dom';\n\nimport { Sources, Sinks } from './interfaces';\nimport Header from './components/header';\nimport Price from './components/pric... | typescript | edit | 0 | 1 | mit | dd2031cef5ccc6f06035d59b409c1cee127b705e | olpeh/meeting-price-calculator,olpeh/meeting-price-calculator,olpeh/meeting-price-calculator,olpeh/meeting-price-calculator | src/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { linter } from 'eslint'\n\n/// Header which might be appended on lint errors.\nexport const LINT_ERROR_HEADER \n = '[!] These are valid in JavaScript but not in Source'\n\n/// Rule indicator for missing semicolon\nexport const ... | typescript | edit | 0 | 1 | mit | 2b16f98175489356e8c5fb0e9e7944c753513d89 | evansb/source-toolchain,evansb/source-toolchain | src/toolchain/linter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {GetServerSidePropsContext, GetServerSidePropsResult} from \"next\"\nimport {useApolloClient} from \"@apollo/client\"\nimport {useRouter} from \"next/router\"\nimport {Fragment, FC} from \"react\"\n\nimport layout from \"lib/hoc/... | typescript | edit | null | null | mit | 49c667ad4ec59bb3225db2edafdc6a34824d793c | octet-stream/eri,octet-stream/eri | whisper/pages/new.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ElementRef, HostListener, Directive} from 'angular2/core';\n\n@Directive({\n selector: 'textarea[autosize]'\n})\n\nexport class Autosize {\n @HostListener('input',['$event.target'])\n onInput(textArea) {\n this.adjust();... | typescript | edit | 0 | 1 | mit | 464de5919623b540ec86a8a1007387976db04541 | stevepapa/angular2-autosize | src/autosize.directive.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {MigrationInterface, QueryRunner} from \"typeorm\";\n\nexport class ChartsIsIndexable1551312762103 implements MigrationInterface {\n\n public async up(queryRunner: QueryRunner): Promise<any> {\n queryRunner.query(\"alte... | typescript | edit | 0 | 3 | mit | 5a4abcf993fac75b7add47aa4ad3e901cf00752e | OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher | db/migration/1551312762103-ChartsIsIndexable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Namespace {\n\n\t/** @param uri Unique identifier for the namespace, should be a valid URI.\n\t * @param defaultPrefix Default xmlns prefix for serializing to XML. */\n\tconstructor(public defaultPrefix: string, public uri... | typescript | edit | 0 | 2 | mit | c43c196c0ce4c4599510f686d29f9eb017d05090 | charto/cxml,charto/cxml,charto/cxml | src/Namespace.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AppBar, IconButton, Toolbar, Typography } from \"@material-ui/core\";\nimport { createStyles, makeStyles } from \"@material-ui/core/styles\";\nimport { GitHub } from \"@material-ui/icons\";\nimport { useRouter } from \"next/rou... | typescript | edit | null | null | apache-2.0 | 40e7d012cf0f2e5df82595ec9b6d856ec81a2532 | GoogleCloudPlatform/appengine-cloud-demo-portal,GoogleCloudPlatform/appengine-cloud-demo-portal,GoogleCloudPlatform/appengine-cloud-demo-portal,GoogleCloudPlatform/appengine-cloud-demo-portal | web/components/Header/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { CircleLoader } from '../../../components';\n\nconst SubscriptionUpgrade = () => {\n return (\n <>\n <CircleLoader size=\"large\" className=\"center flex color-primary\" />\n ... | typescript | edit | null | null | mit | a25363bc700f5c9148344f28c44b7cb125fe15d2 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/payments/subscription/SubscriptionUpgrade.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Subject, BehaviorSubject, Observable } from 'rxjs';\n\n@Injectable()\nexport class StorageService {\n storageKey: string = 'marvel-readin-stats';\n currentStorage: Subject<any> = n... | typescript | edit | 0 | 2 | mit | 70c77a11f8d8fafb81668ecbbe108d6c83b98229 | SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend | src/app/shared/storage.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Store, Dispatch, Action } from \"redux\";\n\nconst crashReporter = (store: Store) => (next: Dispatch) => (\n action: Action\n) => {\n const { getState } = store;\n const beforeActionState = getState();\n const result = next... | typescript | edit | 0 | 1 | bsd-3-clause | 24006c946b8a6634a4116422acf912a820c7f238 | wakatime/desktop,wakatime/wakatime-desktop,wakatime/wakatime-desktop,wakatime/desktop,wakatime/desktop | src/middlewares/logger.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Watcher } from \"../watcher\";\n\nimport rootLogger from \"../../logger\";\nconst logger = rootLogger.child({ name: \"fetch-search\" });\n\nimport { actions } from \"../../actions\";\n\nexport default function(watcher: Watcher)... | typescript | edit | 0 | 2 | mit | 1511585939a7433702201f646fb32730e18ce98a | itchio/itch,itchio/itch,leafo/itchio-app,itchio/itch,itchio/itchio-app,leafo/itchio-app,itchio/itch,leafo/itchio-app,itchio/itchio-app,itchio/itchio-app,itchio/itch,itchio/itch | src/reactors/search/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Grid } from './definitions';\n\nexport function evaluate(grid: Grid): number {\n return evaluateRows(grid) + evaluateColumns(grid) + evaluateDiagonals(grid);\n}\n\nfunction evaluateRows(grid: Grid): number {\n return 0;\n}\n\... | typescript | edit | 0 | 1 | mit | a9c050cf8318e0f477071c71023cd6cf38a73aca | artfuldev/tictactoe-ai,artfuldev/tictactoe-ai | src/evaluation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { replace } from \"./resource.common\";\n\nconst Hashes = require(\"jshashes\");\nconst SHA1 = new Hashes.SHA1;\n\nexport function encodeKey(key: string): string {\n return \"_\" + SHA1.hex(key);\n}\n\nexport function encodeValu... | typescript | edit | 0 | 1 | mit | 44264635b7ad0eac22207f6f157231157d620d77 | lfabreges/nativescript-localize,lfabreges/nativescript-localize,lfabreges/nativescript-localize,lfabreges/nativescript-localize | sources/resource.android.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for semver-diff v2.1.0\n// Project: https://github.com/sindresorhus/semver-diff\n// Definitions by: Chris Barr <https://github.com/chrismbarr>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/... | typescript | edit | null | null | mit | 4203d0aebdcfecdd789b23338c5005c89db23aa5 | markogresak/DefinitelyTyped,smrq/DefinitelyTyped,jimthedev/DefinitelyTyped,pocesar/DefinitelyTyped,chrootsu/DefinitelyTyped,minodisk/DefinitelyTyped,alvarorahul/DefinitelyTyped,magny/DefinitelyTyped,arusakov/DefinitelyTyped,one-pieces/DefinitelyTyped,benishouga/DefinitelyTyped,YousefED/DefinitelyTyped,rolandzwaga/Defin... | semver-diff/index.d.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nclass CakeInput extends React.Component<any, void> {\n constructor(props: React.Props<any>) {\n super(props);\n\n // Required because of the ES6 class syntax decifiency\n this... | typescript | edit | null | null | mit | 3fcd9a4e44e2f8851a54d47558d814c512d76c19 | mieky/we-love-cake,mieky/we-love-cake | app/CakeInput.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Parser = require('./Parser');\nimport Ast = require('./Ast');\n\nfunction updateItemsField(node: Parser.Node, itemCount: number): void {\n var itemsField: Parser.Node[] = Ast.select(node, 'items');\n if (itemsField.length =... | typescript | edit | 0 | 4 | mit | 7b82e5a2c67375470fcd93d943b2b83432b37456 | kami-/config-parser | src/ts/Mission.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport {\n Accordion,\n AccordionItem,\n AccordionItemHeading,\n AccordionItemPanel,\n} from '../../src';\n\nReactDOM.render(\n <div id=\"classic-ac... | typescript | edit | null | null | mit | a6c566bd39644ceef66d2e638de62e656cf310db | springload/react-accessible-accordion,springload/react-accessible-accordion,springload/react-accessible-accordion | integration/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for prismic-dom 2.0\n// Project: https://github.com/prismicio/prismic-dom#readme\n// Definitions by: Nick Whyte <https://github.com/nickw444>\n// Siggy Bilstein <https://github.com/sbilstein>\n// Defi... | typescript | edit | 0 | 0 | mit | 3f2440063956259b4fb7b6de6fab0452890b61dc | georgemarshall/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,magny/DefinitelyTyped,... | types/prismic-dom/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst data = require('../data/users.json').users;\nimport { ElementFinder } from 'protractor';\n\nexport class User {\n alias: string;\n description: string;\n username: string;\n password: string;\n\n\n constructor(alias: string, ... | typescript | edit | 0 | 5 | apache-2.0 | 90ba781ac5dd33f6ef7a979fbc9ded311eee5f89 | kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client | e2e/common/common.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport {NavLink} from 'react-router-dom'\n\nexport const Header = () => (\n <nav>\n <NavLink to=\"/\" activeClassName=\"active\">Home</NavLink>\n {\" | \"}\n <NavLink to=\"about\"... | typescript | edit | null | null | mit | 218d124d7bac09d9b1c8bc2b88c91c79763b3ab7 | chunliu/typescript-react-hot-reload,chunliu/typescript-react-hot-reload,chunliu/typescript-react-hot-reload | src/components/common/Header.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport i = require('../Interfaces');\nimport _ = require('lodash');\nimport Utils = require('../Utils');\nimport Path = require('path');\nvar filter: any = require('fuzzaldrin').filter;\n\nclass File implements i.AutocompletionProvider ... | typescript | edit | 0 | 3 | mit | a243b48c80fe221238137f7921e2b961a40396fa | Cavitt/black-screen,Ribeiro/black-screen,Thundabrow/black-screen,Dangku/black-screen,smaty1/black-screen,Ribeiro/black-screen,Dangku/black-screen,w9jds/black-screen,Dangku/black-screen,geksilla/black-screen,drew-gross/black-screen,smaty1/black-screen,Young55555/black-screen,jacobmarshall/black-screen,noikiy/black-scree... | src/providers/File.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n* Copyright (c) Alessandro Fragnani. All rights reserved.\n* Licensed under the MIT License. See License.md in the project root for licen... | typescript | edit | 0 | 3 | mit | c996381b75d054cf569161924c12f6d26638a493 | alefragnani/vscode-read-only-indicator,alefragnani/vscode-read-only-indicator | src/statusBar/controller.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n template: `\n <span fxShow=\"false\" fxShow.xs> XS </span>\n <span fxShow=\"false\" fxShow.sm> SM </span>\n <span fxShow=\"false\" fxShow.md> MD <... | typescript | edit | 0 | 1 | mit | 39a1184178bcbc16bd7dba5c6a678c333d82ee14 | knowledgeplazza/knowledgeplazza,knowledgeplazza/knowledgeplazza,knowledgeplazza/knowledgeplazza | src/app/app.component.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.