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 { Whitespace } from '../whitespace/whitespace';\n\nexport class StringHelper {\n\n readonly whitespace = new Whitespace();\n\n /**\n * Assert supplied strings are equal. Shows line by line difference\n */\n asser... | typescript | edit | 0 | 2 | mit | 6c01fb92c84f2558bb4cc70207d1918a79a5634d | bvkatwijk/code-tools,bvkatwijk/code-tools,bvkatwijk/code-tools | src/app/classes/string/string-helper.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { DialogContent } from '../dialog'\nimport { Checkbox, CheckboxValue } from '../lib/checkbox'\n\ninterface IAdvancedPreferencesProps {\n readonly... | typescript | edit | null | null | mit | f7f09115bd49172f9869e2910eff055b544b63aa | shiftkey/desktop,hjobrien/desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,say25/desktop,j-f1/forked-desktop,BugTesterTest/desktops,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop,BugTesterTest/desktops,desktop/desktop,desktop/desktop,hjobrien/desktop,gengjiawen/desktop,kactus-io/kactus,j-f1/forked-de... | app/src/ui/preferences/advanced.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FC } from \"react\";\nimport { Button, Flex, Text, Spacer, Box } from \"@artsy/palette\"\nimport { FAQ } from \"../../MarketingLanding/Components/FAQ\"\nimport { SoldRecentlyQueryRenderer } from \"../../MarketingLanding/Compone... | typescript | edit | null | null | mit | 8b1e28d6e9a440ff1b1538d3754d0e43e02cc18a | artsy/force-public,artsy/force,artsy/force,artsy/force,artsy/force-public,artsy/force | src/v2/Apps/Consign/Routes/SubmissionFlow/ThankYou/ThankYou.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport games from \"../generated-ts/games\";\n\nimport AutoPeer from \"./AutoPeer\";\nimport { Applet } from \"./AppletShims\";\n\nwindow.onload = () => {\n const autoPeer = AutoPeer.Create(\"vxv7ldsv1h71ra4i\");\n const connect =... | typescript | edit | 0 | 1 | mit | 8c6e6416d44bf72421eacd1293f8eed78f805c23 | mmkal/slimejs,mmkal/slimejs,mmkal/slimejs,mmkal/slimejs | client-ts/slime.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport test from \"ava\"\nimport execa from \"execa\"\nimport * as path from \"path\"\nimport { rollup } from \"rollup\"\nimport config from \"./rollup.config\"\n\ntest(\"can be bundled using rollup\", async t => {\n const [appBundle, ... | typescript | edit | 0 | 2 | mit | 8353347b054c2b4c8df0af3f1ff8638869724d85 | andywer/threads.js,andywer/threads.js,andywer/thread.js | test/rollup/rollup.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {run} from \"enonic-fp/context\";\nimport {chain, IOEither} from \"fp-ts/IOEither\";\nimport {RunContext} from \"enonic-types/context\";\n\nexport function chainRun(runContext: RunContext)\n : <E, A, B>(f: (a: A) => IOEither<E, ... | typescript | edit | 0 | 1 | mit | 76df38c6df3bc93bec180507ffa89ec090f734f7 | ItemConsulting/wizardry | src/context.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Stream } from 'xstream';\nimport { DOMSource } from '@cycle/dom/xstream-typings';\nimport { VNode } from '@cycle/dom';\nimport { Style } from './../styles';\n\nexport interface UIComponent {\n (sources: UIComponentSources): UI... | typescript | edit | 0 | 0 | mit | 9552c9fd5b61b7bdda0dfd1a05e56c16b6669924 | cyclic-ui/cyclic-ui,cyclic-ui/cyclic-ui | src/components/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) 2016 The xterm.js authors. All rights reserved.\n * @license MIT\n */\n\n/**\n * Return if the given array contains the given element\n * @param {Array} array The array to search for the given element.\n * @param {... | typescript | edit | 0 | 7 | mit | 327b16ac2e038892a1bc1fa4ecf619f0f69f77d0 | sourcelair/xterm.js,akalipetis/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,Tyriar/xterm.js,sourcelair/xterm.js,Tyriar/xterm.js,Tyriar/xterm.js,sourcelair/xterm.js,akalipetis/xterm.js,xtermjs/xterm.js,akalipetis/xterm.js,sourcelair/xterm.js,xtermjs/xterm.js,xtermjs/xterm.js,akalipetis/xterm.js,Tyriar/xterm.js,Tyriar/xter... | src/utils/Generic.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Command} from '@heroku-cli/command'\nimport * as Heroku from '@heroku-cli/schema'\nimport ux from 'cli-ux'\n\nexport default class Auth2faGenerate extends Command {\n static description = 'disables 2fa on account'\n\n static a... | typescript | edit | null | null | isc | 49f815c4aa51326dc712815f540ef1b21291485d | heroku/cli,heroku/heroku-cli,heroku/cli,heroku/heroku-cli,heroku/cli,heroku/heroku-cli,heroku/heroku-cli,heroku/cli | packages/auth/src/commands/auth/2fa/disable.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport escapeStringRegexp = require('escape-string-regexp');\n\nimport { Command } from '../chat-service/command';\n\nexport function createCommandRegex(commands: string[], rootCommand = false): RegExp {\n let beginning = '';\n le... | typescript | edit | 0 | 3 | mit | 710179823c3c2056dd80e2c9cf610607c2acfeff | Ionaru/MarketBot | src/helpers/regex.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Head from 'next/head'\nimport Link from 'next/link'\n\nexport default function Layout({\n children,\n title\n}: {\n children: React.ReactNode\n title?: string\n}) {\n return (\n <>\n <Head>\n <title>{title && ... | typescript | edit | null | null | mit | f645ddb31ad034f672312713955d30964acf2ee7 | kplattret/kplattret.github.io,kplattret/kplattret.github.io | components/layout.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class OrganizationSettingsMock implements Xrm.OrganizationSettings {\n public baseCurrencyId: string;\n public defaultCountryCode: string;\n public isAutoSaveEnabled: boolean;\n public languageId: number;\n public organizati... | typescript | edit | 0 | 1 | mit | 713bc3281fe491dfafc65b2b15b497422a75d206 | camelCaseDave/xrm-mock,camelCaseDave/xrm-mock | src/xrm-mock/organizationsettings/organizationsettings.mock.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n UserProfileType,\n} from './GraphQLUserProfile'\nimport {\n CVType,\n} from './GraphQLCV'\nimport {\n GraphQLObjectType,\n} from 'graphql'\nimport {\n CVActions,\n CVActionsImpl,\n} from './../controllers'\n\nconst cvCtr... | typescript | edit | 0 | 2 | mit | 394ebd8b7ac2a8ee96475372fc458858c8e44974 | studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord,studieresan/overlord | src/graphql/GraphQLUser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface Tweet {\n id: string\n text: string\n createdAt: Date\n displayTextRange: [number, number]\n user: User\n entities: {\n hashtags: Hashtag[]\n media: Media[]\n urls: Url[]\n ... | typescript | edit | 0 | 0 | apache-2.0 | 62094499f6ad6b48229f06201b4c5fefee560c23 | squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase | functions/src/twitter/firestore-data.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Tag } from './tag';\nimport { Sport } from './sport';\nimport { Address } from './address';\nimport { Image } from './image';\n\nexport class Workout {\n public id: number;\n public startdate: Date;\n public enddate: D... | typescript | edit | 0 | 1 | mit | c456248294415fec6542897b7fddd7e5c491fffb | XavierGuichet/bemoove-front,XavierGuichet/bemoove-front,XavierGuichet/bemoove-front | src/app/models/workout.ts | rejected_duplicate | Near-duplicate of sample 112398 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useState } from 'react';\nimport { c } from 'ttag';\n\nimport Icon from '../../icon/Icon';\nimport InputTwo, { InputTwoProps } from './Input';\n\nconst PasswordInputTwo = ({ disabled, ...rest }: Omit<InputTwoProps, 'type'>) => ... | typescript | edit | null | null | mit | f92a95a7574d0196ac8f77bc07273212d7cb4225 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/v2/input/PasswordInput.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CombatantState } from \"../../common/CombatantState\";\nimport { EncounterState } from \"../../common/EncounterState\";\nimport { probablyUniqueString } from \"../../common/Toolbox\";\n\nfunction updateLegacySavedCreature(saved... | typescript | edit | 0 | 8 | mit | eb73d9d45efaa8f6daef2a6fbae7afd25b8dd378 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Encounter/UpdateLegacySavedEncounter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { ButtonGroup } from '../lib/button-group'\nimport { Button } from '../lib/button'\nimport { Ref } from '../lib/ref'\nimport { Octicon, OcticonSymbol } from '../octicons'\n\ninterface NewCommitsBan... | typescript | edit | null | null | mit | 9de7ea79edbfb770b46c8c48041a87e4fa836a9c | artivilla/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,desktop/desktop,artivilla/desktop,say25/desktop,shiftkey/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-des... | app/src/ui/notification/new-commits-banner.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright 2020 Simon Edwards <<EMAIL>>\n *\n * This source code is licensed under the MIT license which is detailed in the LICENSE.txt file.\n */\n\nimport { PageDatabase } from \"./PageDatabase.js\";\n\ntest(\"Scan\", async () =... | typescript | edit | 0 | 0 | mit | eb2dcd559d3af878626c261c07494270f5c12ff7 | sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm | extensions/TLDRPages/src/PageDatabase.jest.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 templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'app works!';\n}\n\n```\n\nApp... | typescript | edit | 0 | 1 | mit | b795d676b49e965c7902410dc15e96e063065728 | gottsohn/md-input-inline,gottsohn/md-input-inline,gottsohn/md-input-inline | src/app/app.component.ts | rejected_duplicate | Near-duplicate of sample 112843 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\";\n\ninterface ResponseRaceDetect {\n response: Response;\n json: any;\n raceOccurred: boolean;\n}\n\nconst fetchAndDetectRaces: (url: string) => Promise<ResponseRaceDetect> = (() => {\n let requestId = 0;... | typescript | edit | 0 | 4 | apache-2.0 | 293598303c9c92408f71e6bd13c4dde4c875398c | googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020,googleinterns/step250-2020 | coffee-chats/src/main/webapp/src/util/fetch.ts | rejected_duplicate | Near-duplicate of sample 114353 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nvar vmModule = require(\"./main-view-model\");\nfunction pageLoaded(args) {\n var page = args.object;\n page.getViewById(\"label\").text = \"æøå\";\n}\nexports.pageLoaded = pageLoaded;\n```\n\nApply this change: Remove unnecessar... | typescript | edit | 0 | 1 | mit | ac671654c98c60ae736db51dcaed3c7c073c1198 | NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript | apps/ui-tests-app/nordic/nordic.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nimport express = require('express');\nimport responseTime = require('response-time');\nvar app = express();\n\napp.use(responseTime());\napp.use(responseTime({\n digits: 3,\n header: 'X-Response-Time',\n suffix: true\n}));\n\... | typescript | edit | 0 | 2 | mit | b6b49f736fa3f4d72e3ec7909a2332562da0a436 | alexdresko/DefinitelyTyped,laurentiustamate94/DefinitelyTyped,georgemarshall/DefinitelyTyped,zuzusik/DefinitelyTyped,aciccarello/DefinitelyTyped,magny/DefinitelyTyped,martinduparc/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,QuatroCode/DefinitelyTyped,georgemarshall/DefinitelyTyped,AbraaoAlves... | response-time/response-time-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Min } from './../../src/';\n\ndescribe('LoggerMethod decorator', () => {\n\n it('should assign a valid value (greater or equals than min value)', () => {\n class TestClassMinValue {\n @Min(5)\n m... | typescript | edit | 0 | 1 | mit | 69dc47668310c9e3f6c4a78723d39fc047c55a2e | semagarcia/typescript-decorators,semagarcia/typescript-decorators | test/property-decorators/min.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"fourslash.ts\" />\r\n\r\n// @allowNonTsExtensions: true\r\n// @Filename: Foo.js\r\n//// /** @type {Array<number>} */\r\n//// var v;\r\n//// v[0]./**/\r\n\r\ngoTo.marker();\r\nverify.memberListContains(\"toFixed\", /... | typescript | edit | 0 | 0 | apache-2.0 | e347c3711cc4b85eda34f1aba844e1a6576ff40c | blakeembrey/TypeScript,plantain-00/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,nycdotnet/TypeScript,vilic/TypeScript,RyanCavanaugh/TypeScript,minestarks/TypeScript,erikmcc/TypeScript,kitsonk/TypeScript,vilic/TypeScript,synaptek/TypeScript,jwbay/TypeScript,Eyas/TypeScript,chuckjaz/TypeScript,TukekeSoft/TypeScript,... | tests/cases/fourslash/jsDocGenerics1.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { resolve } from \"path\";\nimport { runTests } from \"vscode-test\";\nimport { TestOptions } from \"vscode-test/out/runTest\";\n\n(async function main()\n{\n let environmentPath = resolve(__dirname, \"..\", \"..\", \"src\", \... | typescript | edit | 0 | 2 | mit | 1ed46d21d7b8847eeb13f410e9e8207d9d166f1c | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | src/test/runTests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {FunctionFuzzer} from \"../../fuzzer/FunctionFuzzer\";\nimport {fuzz} from \"../../index\";\nimport {sum} from \"../__mocks__/sum.mock\";\nimport {FunctionFuzzerFactory} from \"../FunctionFuzzerFactory\";\n\ndescribe(\"FunctionFu... | typescript | edit | 0 | 1 | mit | ec0bef50908f9c6dfd7de2bc5c02bf667c0fe452 | usehotkey/fuzzing | src/fuzzerFactory/__tests__/FunctionFuzzerFactory.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Error,\n Footer,\n FormContainer as Form,\n MobileContainer,\n MobileHeader,\n MobileInnerWrapper,\n SubmitButton,\n} from \"Components/Authentication/commonElements\"\nimport Input from \"Components/Input\"\nimport { ... | typescript | edit | null | null | mit | 696c27d0feb38072c54a231c5b960eef5c95a0bf | xtina-starr/reaction,artsy/reaction,artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction | src/Components/Authentication/Mobile/ForgotPasswordForm.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (C) 2020 The Android Open Source Project\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 ... | typescript | edit | 0 | 1 | apache-2.0 | 53fc0c68b23621b302b2d29d68a1e1fa4c3c76e7 | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | polygerrit-ui/app/services/flags/flags_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for ... | typescript | edit | 0 | 0 | mit | 67d35ad418c818ad7556f2d3d35ceaf13356b06c | microsoft/vscode,Microsoft/vscode,microsoft/vscode,eamodio/vscode,Microsoft/vscode,microsoft/vscode,Microsoft/vscode,microsoft/vscode,Microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,Microsoft/vscode,microsoft/vscode,Microsoft/vscode,Microsoft/vscode,Microsoft/vscode,eamodio/vscode,microsoft/vscode,eam... | build/azure-pipelines/common/computeNodeModulesCacheKey.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This module renders an element with an emoji using\n// a non system-default font to workaround an Chrome\n// issue that causes unexpected spacing on emojis.\n// More info:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=111... | typescript | edit | 0 | 0 | mit | 48ded60d03501333d9e2d1983e7808feeefff5b0 | shiftkey/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,say25/desktop,desktop/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,artivilla/desktop,kactus-io/kac... | app/src/lib/fix-emoji-spacing.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { useState } from 'react';\n\nimport { DayClickEventHandler, ModifierStatus, SelectMode } from '../../types';\nimport { DateRange } from '../../types/DateRange';\nimport { addToRange } from './utils/addToRange';\n\nexport type Ra... | typescript | edit | 0 | 3 | mit | 12bf19c5ce0d2737fe70a56be000cf2e5ed50885 | gpbl/react-day-picker,gpbl/react-day-picker,gpbl/react-day-picker | packages/react-day-picker/src/hooks/useSelection/useSelectRange.ts | rejected_duplicate | Near-duplicate of sample 112517 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../node/node.d.ts\" />\n/// <reference path=\"piwik-tracker.d.ts\" />\n\n// Example code taken from https://www.npmjs.com/package/piwik-tracker\n\nvar PiwikTracker = require('piwik-tracker');\n \n// Initialize with... | typescript | edit | 0 | 1 | mit | abee08ec189f0ea50e16d4b82c37fdf16a799517 | sergey-buturlakin/DefinitelyTyped,TildaLabs/DefinitelyTyped,ryan-codingintrigue/DefinitelyTyped,georgemarshall/DefinitelyTyped,lucyhe/DefinitelyTyped,forumone/DefinitelyTyped,timjk/DefinitelyTyped,manekovskiy/DefinitelyTyped,lekaha/DefinitelyTyped,robert-voica/DefinitelyTyped,Trapulo/DefinitelyTyped,Dominator008/Defini... | piwik-tracker/piwik-tracker-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { KnownForWebPage } from './app.po';\n\ndescribe('known-for-web App', function() {\n let page: KnownForWebPage;\n\n beforeEach(() => {\n page = new KnownForWebPage();\n });\n\n it('should display website title', () => {\n ... | typescript | edit | 0 | 1 | isc | 0cbb935ef133f176d5692ffe37c40e82b3c1aaa1 | textbook/known-for-web,textbook/known-for-web,textbook/known-for-web | e2e/app.e2e-spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// mocks.ts\n\nimport { RacePart } from \"./race-part.model\";\n\nexport const RACE_PARTS: RacePart[] = [{\n \"id\": 1,\n \"name\": \"Daytona Thunderdome\",\n \"date\": new Date('2512-01-04T14:00:00'),\n \"about\": \"Race through th... | typescript | edit | 0 | 0 | mit | 8eea0846157df029faf46759d2bf514240f363fd | var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training,var-bin/angularjs-training | A2/quickstart/src/app/models/mocks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport function getMoves(grid: boolean[]): number[] {\n return grid\n .map((value, index) => value == undefined ? index : undefined)\n .filter(value => value != undefined);\n}\n\n```\n\nApply this change: Make getMove... | typescript | edit | 0 | 2 | mit | 18c8be74d0f57490192ebcfb63400574e01adf87 | artfuldev/tictactoe-ai,artfuldev/tictactoe-ai | src/moves.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\nimport * as vscode from 'vscode';\nimport {PathAutocomplete} from './features/PathAutoCompleteProvider';\n\nexport function activate(context: vscode.ExtensionContext) {\n context.subscriptions.push(vscode.languages.reg... | typescript | edit | 0 | 1 | mit | f8fcadb47a0247427ee395d10f91db565a39efed | ionutvmi/path-autocomplete,ionutvmi/path-autocomplete | src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Flow } from './Flow';\nimport { Soak, completeSoak } from './Soak';\nimport { Observable, Subject } from 'rxjs';\n\n/**\n * The dispatch and state that comprises a dw Store.\n */\nexport type Store<State, Action> = {\n dispa... | typescript | edit | 0 | 1 | apache-2.0 | 2346c74bb6e5554dbb28daef304cfa79f59f025d | elhedran/rxjs-dew,elhedran/rxjs-dew | src/Store.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport * as moment from \"moment-timezone\";\nimport * as React from \"react\";\nimport ReactMoment from \"react-moment\";\n\nimport { LocaleConsumer } from \"../Locale\";\nimport { Ti... | typescript | edit | null | null | bsd-3-clause | afbc89ba69b86563653b9a314872b2e509b4c619 | mociepka/saleor,UITools/saleor,UITools/saleor,UITools/saleor,maferelo/saleor,UITools/saleor,maferelo/saleor,mociepka/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor | saleor/static/dashboard-next/components/DateFormatter/DateFormatter.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\nimport { TestBed, async } from '@angular/core/testing';\nimport { PatientDashboardComponent } from './patient-dashboard.component';\n\ndescribe('Component: PatientDashboard', () => {\n it('sho... | typescript | edit | null | null | mit | 3c01fce00cf8dc7ee2275cd4ae5c9b0cb401673c | AMPATH/ng2-amrs,AMPATH/ng2-amrs,AMPATH/ng2-amrs,AMPATH/ng2-amrs | src/app/patient-dashboard/patient-dashboard.component.spec.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport \"angular\";\nimport \"angular-animate\";\n\nimport \"angular-material\";\nimport \"../node_modules/angular-aria/angular-aria.js\";\n\n//import \"MainController\";\n\nimport {MainController} from \"./controllers/mainController.ts... | typescript | edit | 0 | 0 | mit | 65d411e510df73b98a5c27e035d74ec606d041da | rsparrow/angular-material-typescript-webpack,rsparrow/angular-material-typescript-webpack,rsparrow/angular-material-typescript-webpack | src/boot.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport {\n Table,\n TableHeaderColumn,\n TableRow,\n TableHeader,\n TableRowColumn,\n TableBody,\n CircularProgress,\n} from 'material-ui'\nimport {\n TableColumnData,\n DataTableState,\n} from... | typescript | edit | null | null | mit | 26de55028c0c54548e0546f62c02839efdcb2da4 | zhenwenc/rc-box,zhenwenc/rc-box,zhenwenc/rc-box | src/renderers/MuiTableRenderer.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Add info for several commands"
},
{
"role": "assistant",
"content": "export const CommandInfoById = {\n \"start-encounter\":\n \"The first combatant in the initiative order will become active.\",\n \"clear-encounter\":\n... | typescript | new_file | 0 | 0 | mit | 5e001c896a7d5f632b6cd9e9ce7447cad90f64d2 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Settings/components/CommandInfo.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nimport {reloadDevTools} from '../../shared/helper.js';\nimport {de... | typescript | edit | 0 | 1 | bsd-3-clause | 7a79953f0222dc033aafac70169477305d62fb5f | ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend | test/e2e/security/security_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { forwardRef, Ref } from 'react';\nimport Button, { ButtonProps } from '../button/Button';\nimport { classnames } from '../../helpers';\n\nconst SidebarPrimaryButton = ({ children, className = '', ...rest }: ButtonProps, ref: Ref... | typescript | edit | null | null | mit | 72f331790b3b4e3e4cff4addae8acd54281bba35 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/sidebar/SidebarPrimaryButton.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 {HttpClient} from '@angular/common/http';\nimport {MDInternal} from '../../../components/messages/md-internal';\n\n@Injectable()\n/**\n * @author Daniel de Oliveira\n * @author Thomas Kl... | typescript | edit | 0 | 1 | apache-2.0 | 0ee644c4ab9f17915e902cf16d68b63ee01322d4 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | src/app/core/configuration/boot/config-reader.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface Parameter {\n name: string;\n type: string;\n example_values: string[];\n comment: string;\n required: boolean;\n}\n\ninterface Action {\n name: string;\n method: string;\n path: string;\n comment: string;\n params?:... | typescript | edit | 0 | 0 | mit | c7e884d0544daaa55cba9aabdd11316d0f5a02c8 | Asana/api-explorer,Asana/api-explorer | src/resources/interfaces.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport path from 'path';\nimport Parser from 'web-tree-sitter';\n\nconst TREE_SITTER_RUBY_WASM = path.resolve(__dirname, 'tree-sitter-ruby.wasm');\n\nconst TreeSitterFactory = {\n\tlanguage: null,\n\n\tasync initalize(): Promise<void> {... | typescript | edit | 0 | 2 | mit | 1d390997f601ca78331ca844779a3a5ea73b38e0 | rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby,rubyide/vscode-ruby | packages/language-server-ruby/src/util/TreeSitterFactory.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { storiesOf } from \"storybook/storiesOf\"\nimport { Slider } from \"Styleguide/Components/LightboxSlider\"\nimport { Section } from \"Styleguide/Utils/Section\"\n\nstoriesOf(\"Styleguide/Components\"... | typescript | edit | null | null | mit | baac3ed2df638ff48f5eb0a45a72bdf5bbd506f3 | xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,xtina-starr/reaction | src/Styleguide/Components/__stories__/LightboxSlider.story.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Preact from 'preact';\nimport { createAddonDecorator, Render } from '../../index';\nimport { ContextsPreviewAPI } from '../ContextsPreviewAPI';\n\n/**\n * This is the framework specific bindings for Preact.\n * '@storybook/preact... | typescript | edit | 0 | 1 | mit | dc42be5a79e9dbd3056697351bd7e76d8fef6f59 | storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook | addons/contexts/src/preview/frameworks/preact.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {createState, createReducer} from \"./rxjs-redux\";\nimport {counterActions, counterReducer, CounterState} from \"./counter\";\nimport {nameActions, nameReducer, NameState} from \"./appName\";\n\n// our application state as a str... | typescript | edit | 0 | 1 | mit | 25c132b5193d7fbecd3317feb443a68ae5698b5d | Dynalon/redux-pattern-with-rx,Dynalon/redux-pattern-with-rx | src/main.ts | rejected_duplicate | Near-duplicate of sample 113523 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Top-down implementation with lists\n\nfunction merge<T>(left: T[], right: T[]): T[] {\n const merged = [];\n\n let firstLeft = left[0];\n let firstRight = right[0];\n\n while (left.length && right.length) {\n if (firstLeft <= ... | typescript | edit | 0 | 0 | mit | 86e2288e1a0288c8fd720f558693efa35ff8de7f | hAWKdv/DataStructures,hAWKdv/DataStructures | typescript/sorting/merge-sort.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {ViewDefinition} from 'idai-components-2/configuration';\n\n/**\n * @author Thomas Kleinke\n * @author Daniel de Oliveira\n */\nexport class OperationViews {\n\n\n constructor(\n private _: any\n ) {\n if (!_)... | typescript | edit | 0 | 2 | apache-2.0 | 5c22232fd949908963229409444f6893b169604d | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/components/resources/view/operation-views.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { Navbar } from 'components/navbar';\n\nexport class HomePage extends React.Component {\n render() {\n return (\n <div className=\"App\">\n <Navbar />\n <p className=\"App-i... | typescript | edit | null | null | mit | 6bfdcd6405c3e12dc8c74781fd7c6ebce3cb3d09 | patrick91/pycon,patrick91/pycon | frontend/src/pages/home/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"includes.ts\"/>\n/// <reference path=\"stringHelpers.ts\"/>\nnamespace Core {\n\n /**\n * Typescript interface that represents the UserDetails service\n */\n export interface UserDetails {\n username: Stri... | typescript | edit | 0 | 2 | apache-2.0 | 6d5da9d0b3a4d40ef432ce7edb4dcef432b5906a | hawtio/hawtio-utilities,hawtio/hawtio-utilities,hawtio/hawtio-utilities | helpers/coreInterfaces.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Document} from 'idai-components-2/core';\nimport {IdaiFieldDocument} from 'idai-components-2/field';\nimport {ViewContext} from './view-context';\nimport {to} from 'tsfun';\n\n\n/**\n * @author Thomas Kleinke\n * @author Daniel ... | typescript | edit | 0 | 3 | apache-2.0 | 8badf641563e20beb56eba24794caa70c457b24d | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/components/resources/view/state/navigation-path-segment.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TestBed, inject } from '@angular/core/testing';\n\nimport { ErrorMessageService } from './error-message.service';\n\ndescribe('ErrorMessageService', () => {\n beforeEach(() => {\n TestBed.configureTestingModule({\n pro... | typescript | edit | 0 | 1 | mit | b4186bb75b9a1663e69ef8efb9e5bd14ddff47c4 | third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation,third774/ng-bootstrap-form-validation | src/Services/error-message.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule BABYLON {\r\n export class ArcRotateCameraMouseWheelInput implements ICameraInput<ArcRotateCamera> {\r\n camera: ArcRotateCamera;\r\n\r\n private _wheel: (p: PointerInfo, s: EventState) => void;\r\n privat... | typescript | edit | 0 | 7 | apache-2.0 | 242edc1aa2ac62016b3dd03fee53a8983b362306 | abow/Babylon.js,Temechon/Babylon.js,BabylonJS/Babylon.js,jbousquie/Babylon.js,jbousquie/Babylon.js,Hersir88/Babylon.js,NicolasBuecher/Babylon.js,BabylonJS/Babylon.js,Temechon/Babylon.js,Hersir88/Babylon.js,abow/Babylon.js,BabylonJS/Babylon.js,NicolasBuecher/Babylon.js,sebavan/Babylon.js,RaananW/Babylon.js,RaananW/Babyl... | src/Cameras/Inputs/babylon.arcrotatecamera.input.mousewheel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Context } from \"../index\";\nimport { Rule } from \"../rule\";\nimport { isTransformedAmp } from \"../helper\";\n\n/**\n * Check if the AMP Optimizer removed the AMP Boilerplate.\n */\nexport class BoilerplateIsRemoved extends... | typescript | edit | 0 | 5 | apache-2.0 | 913534010dde9f54426286668fda36d3dfa42958 | ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox,ampproject/amp-toolbox | packages/linter/src/rules/BoilerplateIsRemoved.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by Reto Baumgartner (rfbaumgartner) on 05.07.17.\n */\n\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { FassungComponent } from './fassung.component';\n\n@NgModule({\... | typescript | edit | 0 | 0 | mit | 8164db0b5562ca3608efba0c2a8135dde7d07631 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | src/client/app/fassung/fassung-routing.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input } from '@angular/core';\nimport { Http, Response } from '@angular/http';\nimport { AppConfigService } from '../../services/app-config.service'\n\n@Component({\n selector: 'app-footer',\n templateUrl: './f... | typescript | edit | 0 | 1 | mit | ceae9deddc847d49983f57f01748d25f40bf85cc | BibliothecaTeam/Bibliotheca.Client,BibliothecaTeam/Bibliotheca.Client,BibliothecaTeam/Bibliotheca.Client | src/Bibliotheca.Client.Web/src/app/components/footer/footer.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport colors from './colors'\n\nexport const fonts = {\n primary: {\n name: 'Poppins',\n colors: {\n primary: colors.fonts.primary,\n secondary: colors.fonts.secondary,\n },\n weight... | typescript | edit | 0 | 0 | mit | 2ccd613433528b21025043f44ecad58ea8bf897b | WorldBrain/WebMemex,WorldBrain/WebMemex | src/dashboard-refactor/styleConstants.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class AuthService {\n static NAME = 'AuthService';\n\n constructor(\n private $http: ng.IHttpService,\n private $window: ng.IWindowService\n ) {\n 'ngInject';\n }\n\n isLoggedIn() {\n return this.$window.localSto... | typescript | edit | 0 | 1 | mit | 73e6100b9bc913b27b1739c4fac42a8ffb788402 | ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io,ibnumalik/ibnumalik.github.io | resources/app/auth/services/auth.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ipcRenderer } from 'electron';\n\nimport React, { MouseEventHandler } from 'react';\n\nimport './toolbar.css';\n\ninterface ToolbarProps {\n onUrlEnter: (url: string) => void;\n requestUpdate: (url: string) => void;\n}\n\nexp... | typescript | edit | null | null | mit | 3b28ee3da4279213820dac7d481dcf886a564eba | rikuba/conmai,rikuba/conmai,rikuba/conmai | src/renderer/components/toolbar/toolbar.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 { CakeProps } from \"./Cake.tsx\";\nimport { CakeListProps } from \"./CakeList.tsx\";\n\ninterface CakeCounterState {\n daysSinceLastCake: number;\n}\n\nclass CakeCounter extends React.Compon... | typescript | edit | null | null | mit | f9e395b27ef4b3d6cd957dd7e67bc2796152564b | mieky/we-love-cake,mieky/we-love-cake | app/CakeCounter.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema as NgComponentOptions } from '@schematics/angular/component/schema';\n\nexport interface ScamOptions extends NgComponentOptions {\n separat... | typescript | edit | 0 | 2 | mit | 4afee35d8713455949213866e15194c4b960b60a | wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/ng-steroids | packages/schematics/src/scam/index.ts | rejected_duplicate | Near-duplicate of sample 114494 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// TODO: Why does the compiler not complain when Marionette is missing?\nimport * as Marionette from \"backbone.marionette\"\nimport TodoCollection from \"./TodoCollection\"\nimport TodoModel from \"./TodoModel\"\nimport TodoView from \... | typescript | edit | 0 | 1 | unlicense | 304e3ee9c0e270364291b36eef859541f3291b4b | janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations,janaagaard75/framework-investigations | typescript-marionette-v2/src/TodosView.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { LogoutComponent } from './logout.component';\nimport { AuthService } from '../services/auth.service';\n\ndescribe('LogoutComponent', () => {\n let co... | typescript | edit | 0 | 1 | mit | 3c662b1ed2a788a9b0ac7cc6cbd80e77d93df331 | DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular-Full-Stack,DavideViolante/Angular2-Express-Mongoose,DavideViolante/Angular2-Express-Mongoose | client/app/logout/logout.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { RunningBlock } from \"../System/Documents/RunningBlock\";\n\n/**\n * Provides content for the different sections of a {@link RunningBlock `RunningBlock`}.\n */\nexp... | typescript | edit | 0 | 0 | mit | 80d68f31590ec3c70707373a38c5f2c8be0f5621 | manuth/MarkdownConverter,manuth/MarkdownConverter,manuth/MarkdownConverter | src/Properties/IRunningBlockContent.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { remote } from 'electron'\nimport { ApplicationTheme } from './application-theme'\nimport { IDisposable, Disposable, Emitter } from 'event-kit'\nimport { supportsDarkMode, isDarkModeEnabled } from './dark-theme'\n\nclass ThemeCh... | typescript | edit | 0 | 3 | mit | aa3b1b1bab2538576db2e3f99b944fe3776c9edd | say25/desktop,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,desktop/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,artivilla/desk... | app/src/ui/lib/theme-change-monitor.ts | rejected_duplicate | Near-duplicate of sample 112638 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { environment } from '../../../environments/environment';\n\n/**\n * A service for global logs.\n *\n * @author Damien Vitrac\n */\n@Injectable({\n providedIn: 'root'\n})\nexport clas... | typescript | edit | 0 | 2 | apache-2.0 | d743c75a8f4378cfaf75d4de172bf9bb2f90f2a5 | BoykoAlex/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,spring-cloud/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,cppwfs/spring-cloud-dataflow-ui,BoykoAlex/spring-cloud-dataflow-ui,sprin... | ui/src/app/shared/service/logger.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { observer } from 'mobx-react';\n\nimport store from '../../store';\nimport { HistoryItem } from '../../models';\nimport { formatTime } from '../../utils';\nimport { Favicon, Item, Remove, Title, ... | typescript | edit | null | null | apache-2.0 | 5adfda2e3598f29bf64e50a907301f339d11e367 | Nersent/Wexond,Nersent/Wexond | src/renderer/app/components/HistoryItem/index.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'\n\nimport { Repository } from '../../models/repository'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { WorkingDirectoryFileChange } from '../../models/status'\n\ninterface IDiscardChangesProp... | typescript | edit | null | null | mit | 2a727b9e4028073adc7549e36ff49a95933a14c3 | j-f1/forked-desktop,desktop/desktop,gengjiawen/desktop,gengjiawen/desktop,hjobrien/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,BugTesterTest/desktops,artivilla/desktop,BugTesterTest/desktops,artivilla/desktop,gengjiawen/desktop,j-f1/forked-desktop,hjobrien/desktop,artivilla/desktop,say25/desktop,desktop/desk... | app/src/ui/discard-changes/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { BehaviorSubject, Subject } from 'rxjs';\n\nexport type ResourceEvent = {lng, ns};\nexport type MissingKeyEvent = {lngs, namespace, key, res};\n\nexport interface ITranslationEvents {\n initialized: BehaviorSubject<any>;\n ... | typescript | edit | 0 | 0 | mit | 649b45f21f1aa0415e939867e87adf43d8786b50 | Romanchuk/angular-i18next,Romanchuk/angular-i18next,Romanchuk/angular-i18next,Romanchuk/angular-i18next | src/ITranslationEvents.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Http } from '@angular/http';\nimport { Observable } from 'rxjs/Observable';\nimport 'rxjs/add/operator/map';\nimport 'rxjs/add/operator/toPromise';\nimport { environment } from '../.... | typescript | edit | 0 | 3 | mit | c58ff87194f86351cbea32dd2da0234255233723 | fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training | client/app/heroes/services/hero.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {enableProdMode} from '@angular/core';\nimport {platformBrowserDynamic} from '@angular/platform-browser-dynamic';\n\nimport {Thread} from 'compiled_proto/src/proto/tagpost_pb';\nimport {TagpostServiceClient} from 'compiled_proto/... | typescript | edit | 0 | 3 | apache-2.0 | ca4022f1fe20d15ca71b1a9b4e8db1701ac53952 | googleinterns/tagpost,googleinterns/tagpost,googleinterns/tagpost,googleinterns/tagpost,googleinterns/tagpost | ui/src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ArgTypes } from '@storybook/api';\nimport { ArgTypesExtractor, hasDocgen, extractComponentProps } from '../../lib/docgen';\nimport { convert } from '../../lib/sbtypes';\nimport { trimQuotes } from '../../lib/sbtypes/utils';\n\n... | typescript | edit | 0 | 5 | mit | 4f5934e507956b80c82fdd7e82375b075f78ab0d | storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | addons/docs/src/frameworks/vue/extractArgTypes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { ProjectsComponent } from './projects.component';\nimport { ProjectComponent } from './project/project.component';\nimport { AuthGuard }... | typescript | edit | 0 | 0 | mit | 8e024f9731cd1510b47411985b855ff5529e2482 | todes1/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot,todes1/parrot,todes1/parrot,anthonynsimon/parrot,anthonynsimon/parrot,todes1/parrot,anthonynsimon/parrot | ngapp/src/app/projects/projects-routing.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for react-pointable 1.1\n// Project: https://github.com/MilllerTime/react-pointable\n// Definitions by: Stefan Fochler <https://github.com/istefo>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n... | typescript | edit | 0 | 0 | mit | 737f1613edec96a38c7d6e084c43cea779c2303a | mcliment/DefinitelyTyped,markogresak/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,rolandzwaga/DefinitelyTyped,AgentME/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,AgentME/DefinitelyTyped,arusakov/DefinitelyTyped,arusakov/DefinitelyTyped,benliddicott/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,AgentME/DefinitelyTyped,acic... | types/react-pointable/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path='../node_modules/immutable/dist/immutable.d.ts'/>\n///<reference path=\"../typings/jasmine/jasmine.d.ts\" />\n\nimport nishe = require('nishe');\nimport Immutable = require('immutable');\n\ndescribe('Partition', () =>... | typescript | edit | 0 | 1 | mit | faab1dc747ac139e7c6ac4160395a073276f9958 | b0ri5/nishe,b0ri5/nishe | src/nishe_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport { unescape } from 'underscore'\n\nimport Head from 'v2/components/UI/Head'\n\nexport const TITLE_TEMPLATE = 'Are.na / %s'\n\ninterface Props {\n children: string\n}\n\nexport const Title: React.FC<Prop... | typescript | edit | null | null | mit | 50fbdb41bed90381a2d048c9b18e2f45ccdd1021 | aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell,aredotna/ervell | src/v2/components/UI/Head/components/Title/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"kubernetesApiInterfaces.ts\"/>\n\ndeclare var smokesignals;\n\nmodule KubernetesAPI {\n\n export var pluginName = 'hawtio-k8s-api';\n export var pluginPath = 'plugins/kubernetes-api/';\n export var templatePath ... | typescript | edit | 0 | 0 | apache-2.0 | 7729f0c6821ca0d59b44da9aa70a7efc230da7c2 | hawtio/hawtio-kubernetes-api,hawtio/hawtio-kubernetes-api,hawtio/hawtio-kubernetes-api | plugins/kubernetes-api/ts/kubernetesApiGlobals.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nimport AppActionContext from \"../components/AppLayout/AppActionContext\";\nimport { Provider as DateProvider } from \"../components/Date/DateContext\";\nimport { FormProvider } from \"../components/... | typescript | edit | null | null | bsd-3-clause | cbbe9806d28df9a21f34bb30e5553721ed694d67 | maferelo/saleor,maferelo/saleor,mociepka/saleor,maferelo/saleor,mociepka/saleor,mociepka/saleor | saleor/static/dashboard-next/storybook/Decorator.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { CanDeactivate,\n ActivatedRouteSnapshot,\n RouterStateSnapshot } from '@angular/router';\nimport {DocumentEditChangeMonitor} from \"idai-components-2/documents\";\ni... | typescript | edit | 0 | 3 | apache-2.0 | 6ceaf2c238bceecb3453c5f6e207f6bf53617658 | codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client,codarchlab/idai-field-client | app/resources/resource-edit-can-deactivate-guard.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { MetaContainer } from './meta-container';\n\ntype RobotsTag = 'noindex' | 'nofollow';\ntype RobotsTags = Partial<{ [field in RobotsTag]: boolean }>;\n\nexport class SeoMetaContainer extends MetaContainer {\n\tprivate robotsTags:... | typescript | edit | 0 | 2 | mit | 44213dde8270a22aa87ba3b7ef835eb199e397a9 | gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt | src/_common/meta/seo-meta-container.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nexport class Home extends React.Component<any, any> {\n render() {\n return (\n <h1>Index</h1>\n );\n }\n}\n\n```\n\nApply this change: Update view to include Counter"
},
{
"role":... | typescript | edit | null | null | mit | 4374f4b114bf5b2d58a00b071684fbebe2e7acb5 | melxx001/redux-starter,melxx001/redux-starter | src/views/index.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 { MenuItemConstructorOptions } from 'electron';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\nimport { commonMenuLabels, NativeMenu } from '../../../ui/me... | typescript | edit | 0 | 2 | mit | e0d9764f81562e94eb66e4dff81fa29cab1379ad | seokju-na/geeks-diary,seokju-na/geeks-diary,seokju-na/geeks-diary | src/browser/note/note-collection/note-item/note-item-context-menu.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * defines the public API of Chevrotain.\n * changes here may require major version change. (semVer)\n */\n\ndeclare var CHEV_TEST_MODE\ndeclare var global\n\nvar testMode = (typeof global === \"object\" && global.CHEV_TEST_MODE) |... | typescript | edit | 0 | 0 | apache-2.0 | 45986caffe0564cef28a5b5ccd89a9a57eadbd78 | SAP/chevrotain,SAP/chevrotain,SAP/chevrotain,SAP/chevrotain | src/api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { NotFoundComponent } from './not-found.component';\n\nconst routes: Routes = [\n { path: '', redirectTo: '/tables', pathMat... | typescript | edit | 0 | 0 | mit | dbd8f2d1c433e306f17346214637f4f4a5116216 | mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium | client/app/app-routing.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getDotComAPIEndpoint, IAPIEmail } from '../lib/api'\n\n/**\n * A GitHub account, representing the user found on GitHub The Website or GitHub Enterprise Server.\n *\n * This contains a token that will be used for operations that... | typescript | edit | 0 | 1 | mit | 7431e7b7f62314135aeda6c6176f7ad80fc74e5f | artivilla/desktop,say25/desktop,kactus-io/kactus,say25/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,j-f1/forked-desktop,desktop/desktop,j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,artivilla/desktop,desktop/de... | app/src/models/account.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { createGitHubNotificationFilterSet } from 'Helpers/Models/GitHubNotificationFilterSet';\n\nimport NotificationFilterStringFilter from './NotificationFilterStringFilter';\nimport NotificationFil... | typescript | edit | null | null | mit | 12053a29dc699f14db4adc6c28eb86b4433d05b1 | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | src/js/View/Components/NotificationFilters/Index.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';\n\nexport interface ScoreBoxProps {\n score: number | null,\n bid: number | null,\n tricks: number | null\n};\n\nconst border = '1px solid black';\n\nexport default class extends React.Component<ScoreB... | typescript | edit | null | null | mit | e5da9ab12177da0da33cc18fe20c9dbc14ac5b2a | jeffcharles/wizard-scorekeeper,jeffcharles/wizard-scorekeeper,jeffcharles/wizard-scorekeeper,jeffcharles/wizard-scorekeeper | src/components/ScoreBox.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, createElement } from \"react\";\n\nimport { Carousel, Image } from \"./components/Carousel\";\nimport CarouselContainer, { CarouselContainerProps } from \"./components/CarouselContainer\";\n\n// tslint:disable class-... | typescript | edit | 0 | 7 | apache-2.0 | c74d17b8615d0f30bfd2784fdd5eac630dc16a62 | mendixlabs/carousel,FlockOfBirds/carousel,mendixlabs/carousel,FlockOfBirds/carousel | src/Carousel.webmodeler.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as $ from 'jquery';\nimport addFlashMessage from './addFlashMessage';\n\n$(() => {\n const flashUl = document.querySelector('.teams__flashMessages') as HTMLUListElement;\n const deleteLinks = document.querySelectorAll('.teams... | typescript | edit | 0 | 7 | apache-2.0 | c92014e32f6d1b8c3ec3840ba15e063353231851 | SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard,SURFnet/sp-dashboard | app/js/components/delete_member.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport '@blueprintjs/core/lib/css/blueprint.css';\nimport 'babel-polyfill';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from 'react-redux';\nimport { ConnectedRouter } from 'react-router-redux';\n... | typescript | edit | null | null | mit | 28e54447898f5eecfe46895066be845ecdca0833 | luxons/seven-wonders,luxons/seven-wonders,luxons/seven-wonders | frontend/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n////interface IFoo {\r\n//// method();\r\n////}\r\n////\r\n////class Foo {\r\n//// property: number;\r\n//// method() { }\r\n//// static staticMethod() { }\r\n////}\r\n\r\n////cla... | typescript | edit | 0 | 0 | apache-2.0 | 085cabf8e01f485aac6ce87b0427e0de92022483 | jteplitz602/TypeScript,AbubakerB/TypeScript,plantain-00/TypeScript,AbubakerB/TypeScript,chuckjaz/TypeScript,Mqgh2013/TypeScript,zmaruo/TypeScript,kimamula/TypeScript,MartyIX/TypeScript,DanielRosenwasser/TypeScript,HereSinceres/TypeScript,enginekit/TypeScript,OlegDokuka/TypeScript,ziacik/TypeScript,DLehenbauer/TypeScrip... | tests/cases/fourslash/completionListInExtendsClause.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// @flow\nimport * as Project from './project/index'\nimport Renderer from './renderer/renderer'\nimport * as Services from './services'\nimport * as Exceptions from './exceptions'\n\nimport ColorRGB from './struct/color-rgb'\nimport Co... | typescript | edit | 0 | 0 | mit | 69d43e25f97e377efa1f2a840d18e6de629dd2e0 | Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir | src/delir-core/src/index.ts | rejected_duplicate | Near-duplicate of sample 114836 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { gql } from \"apollo-server\";\nimport { createTestClient } from \"apollo-server-testing\";\nimport { server } from \"../src\";\n\ndescribe(\"Queries\", () => {\n it(\"returns a list of kernelspecs\", async () => {\n const {... | typescript | edit | 0 | 1 | bsd-3-clause | c8f77b9d9b0343270516ec591a53fd1853804125 | nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/composition | packages/kernel-relay/__tests__/index.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Store } from \"./Store\";\n\ninterface EventData {\n [key: string]: any;\n}\n\nexport class Metrics {\n public static TrackLoad(): void {\n const counts = {\n Encounters: Store.List(Store.SavedEncounters... | typescript | edit | 0 | 4 | mit | 626efa502acdfdc5a26b09d3a9f7b15240d5f5ba | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Utility/Metrics.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getHeaders } from './utils';\n\nexport const fetchImage = async (project: string,\n id: string,\n maxWidth: number,\n maxHeight: nu... | typescript | edit | 0 | 2 | apache-2.0 | 7fcd62b5adcce4ba83d28eacc276a4c9595f6deb | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/api/image.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.