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 { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\n\nimport { NotFoundComponent } from './not-found.component';\n\nconst routes: Routes = [\n { path: '', redirectTo: '/forms', pathMatc... | typescript | edit | 0 | 0 | mit | 4d941be083a990707df71118ecefa012d62237a2 | 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 {\n Component,\n ComponentElement,\n ConsumerProps,\n createContext,\n createElement as r,\n Props,\n ProviderProps,\n ReactElement,\n ReactPortal,\n SFC,\n SFCElement,\n} from 'react'\nimport uniqueid = require('uniqu... | typescript | edit | 0 | 1 | mit | c3cd88304f566d0f9caa6b6bb3ca91fad66de52f | thirdhand/components,thirdhand/components | packages/react-sequential-id/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { useMulti } from '../../lib/crud/withMulti';\nimport { Components, registerComponent } from '../../lib/vulcan-lib';\nimport { useCurrentUser } from '../common/withUser';\n\nexport const GardenCodesLis... | typescript | edit | null | null | mit | 898b3cb29e7bbebc0624dbea640abdf2ecdd1418 | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/components/walledGarden/GardenCodesList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { launch, launchSpec, LaunchedKernel, cleanup } from \"./spawnteract\";\nimport pidusage from \"pidusage\";\nimport { KernelSpec } from \"./kernelspecs\";\n\nexport default class Kernel {\n name?: string;\n kernelSpec?: KernelS... | typescript | edit | 0 | 5 | bsd-3-clause | 48caf8d9fc37b843db0acedd56e30b8b16a5ef62 | nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract | packages/fs-kernels/src/kernel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { credentialsToUri, DatabaseCredentials } from '@prisma/sdk'\n\nexport const printSchema = ({\n usePhoton,\n credentials,\n}: {\n usePhoton: boolean\n credentials: DatabaseCredentials\n}) => `${printCredentials(credentials)}\... | typescript | edit | 0 | 1 | apache-2.0 | c8e5746dded9b423f089043b3409d493de4e9793 | prisma/prisma,prisma/prisma,prisma/prisma | cli/introspection/src/prompt/utils/templates/printSchema.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface IOptions {\n debug?: boolean;\n}\n\nconst defaultOptions: IOptions = {\n debug: false,\n};\n\nexport function* sinergia(\n iterable: Iterable<any>,\n task: (accumulator: any, item: any) => any,\n initialValue: any,... | typescript | edit | 0 | 3 | mit | efb984912e8f3bf174b5d219951ab255c6913aa5 | jiayihu/sinergia,jiayihu/sinergia | index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\n\n@Injectable()\nexport class TubularSettingsService {\n\n constructor() {\n }\n\n public put(id: string, value: string) {\n localStorage.setItem(id, JSON.stringify(value));\n... | typescript | edit | 0 | 1 | mit | 82bd8b4ff27bb737e9787a45a61b61b4108ac99b | unosquare/tubular2,unosquare/tubular2,unosquare/tubular2,unosquare/tubular2 | src/lib/tubular-settings.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// @ts-ignore\n// import { ColorThemeActionsMixin } from 'vuestic-ui/src/services/ColorThemePlugin' // TODO\n// // import { ColorThemeMixin, ColorThemeActionsMixin } from 'vuestic-ui/src/services/ColorThemePlugin'\n// // import { getHov... | typescript | edit | 0 | 0 | mit | 0c0287a926ce7f720ddf09da72beeeac48cd122e | epicmaxco/vuestic-admin,epicmaxco/vuestic-admin,epicmaxco/vuestic-admin,epicmaxco/vuestic-admin | src/services/vuestic-ui/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { ITooltipProps, Tooltip } from './tooltip'\nimport { createObservableRef } from './observable-ref'\n\ninterface ITooltippedContentProps\n extends Omit<ITooltipProps<HTMLElement>, 'target'> {\n r... | typescript | edit | null | null | mit | 2e41410d61925a4eeca69bb6b348fb7664b8d585 | j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,artivilla/desktop,shiftkey/desktop,desktop/desktop,artivilla/desktop,artivilla/desktop,desktop/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desk... | app/src/ui/lib/tooltipped-content.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { connect } from 'react-redux';\nimport { compose } from 'redux';\n\nimport { withTranslation } from '@waldur/i18n';\nimport { showComponentsList } from '@waldur/marketplace/common/registry';\n\nimport { removeOfferingComponent, ... | typescript | edit | 0 | 3 | mit | e35355712396af740d94441419320d424db99a9f | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace/offerings/create/AccountingStepContainer.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { FunctionLikeDeclaration, Identifier, TypeReferenceNode } from 'typescript';\nimport { Context } from '../contexts';\nimport { EmitResult, emit } from './';\n\nconst emitFunctionDeclaration = (node: FunctionLikeDeclaration, cont... | typescript | edit | 0 | 1 | mit | ff74c2839477ef9e4836f4eebde037f2390338e4 | AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter | src/emitter/declarations.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport './App.css';\n\nconst logo = require('./logo.svg');\n\nclass App extends React.Component<null, null> {\n render() {\n return (\n <div className=\"App\">\n <div className=\"App-head... | typescript | edit | null | null | bsd-3-clause | 3a47a01c40396ce217c0d4825dc5018bd60d51ec | devex-web-frontend/create-react-app-dx,Place1/create-react-app-typescript,Place1/create-react-app-typescript,devex-web-frontend/create-react-app-dx,Place1/create-react-app-typescript,devex-web-frontend/create-react-app-dx,devex-web-frontend/create-react-app-dx,Place1/create-react-app-typescript | packages/react-scripts/template/src/App.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Directive,\n HostBinding,\n Input\n} from '@angular/core';\n\n@Directive({\n selector: '[mdc-card-title], mdc-card-title'\n})\nexport class CardTitleDirective {\n @Input() titleLarge: boolean = true;\n @HostBinding('cla... | typescript | edit | 0 | 2 | mit | dd96c06b027cd25d13c9529e9c577e0bc7b7efa3 | trimox/angular-mdc-web,trimox/angular-mdc-web | src/lib/card/card-title.directive.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { connect } from \"react-redux\";\n\nimport { actionCreators, Page, pages } from \"../redux/pages\";\nimport PageButton from \"./PageButton\";\nimport \"./style/PagesMenu.css\";\n\ninterface IPr... | typescript | edit | null | null | mit | b55cb6197ad81250d9f2dded25b74da2a2d2c587 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | app/src/component/PagesMenu.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Avatar, Chip } from \"@material-ui/core\";\nimport { useTranslation } from \"../../hooks/useTranslation\";\n\ntype Product = {\n name: string;\n icon: string;\n url: string;\n};\n\nconst products: { [key: string]: Product } ... | typescript | edit | null | null | apache-2.0 | 18cf1f85354d2e8069657b76628b4108da0a5787 | GoogleCloudPlatform/appengine-cloud-demo-portal,GoogleCloudPlatform/appengine-cloud-demo-portal,GoogleCloudPlatform/appengine-cloud-demo-portal,GoogleCloudPlatform/appengine-cloud-demo-portal | web/components/ProductChip/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'mocha'\nimport * as assert from 'assert'\nimport * as Bacon from 'baconjs'\nimport * as Bluebird from 'bluebird'\nimport {baconToReadable} from '../dist/index'\n\ndescribe('Converting Bacon streams to Node streams', function() {... | typescript | edit | 0 | 2 | mit | dc6cc1968a400de1d31ec316a40325918e456154 | jliuhtonen/bacon-node-stream | test/baconToNode.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from 'ng-metadata/core';\nimport { Model } from './../../model/model-service';\nimport { Comment } from './../comment-model';\n\nexport function Comment_VideoFactory( Model, $injector, Game )\n{\n\treturn Model.cre... | typescript | edit | 0 | 1 | mit | 51d27efb11de396fe5ca58e2008c38b3adfb2da7 | gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib,gamejolt/frontend-lib | components/comment/video/video-model.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TestBed, async } from '@angular/core/testing';\n\nimport { AboutComponent } from './about.component';\n\ndescribe('AboutComponent', () => {\n beforeEach(async(() => {\n TestBed.configureTestingModule({\n declarations: ... | typescript | edit | null | null | mit | 86cf5f813ab1513d546b3dac6e04211a1bc5fb47 | family-guy/mathdruck-ng1,family-guy/mathdruck-ng1,family-guy/mathdruck-ng1 | src/app/components/about.component.spec.ts | 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 { poller, IOptions } from '../lib/poller'\nimport * as argv from 'yargs'\n\nlet cliArgs = argv.demandOption(['organization','project','circle-token'])\n .argv\n\nconst options: IOptions = {... | typescript | edit | 0 | 0 | mit | 89bd7ceaa3bd47a3f697761c1f3f847550ae0eeb | riltsken/circleci-job-chain,riltsken/circleci-job-chain | src/bin/circleci-job-chain.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 | 259f4d28da141fa72dfd5f2b4abb0c1f30277a53 | Krzysztof-Cieslak/vscode,Microsoft/vscode,Microsoft/vscode,Microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vsco... | src/typings/node.processEnv-ext.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport dayjs, { Dayjs } from 'dayjs';\nimport moment, { Moment } from 'moment';\nimport { DateTime } from 'luxon';\n\nexport function cloneCrossUtils(date: Date | Moment | DateTime | Dayjs) {\n if (date instanceof dayjs) {\n return ... | typescript | edit | 0 | 5 | mit | dcdbd42f18faa07b96b4b3099c4f427c742e4254 | callemall/material-ui,rscnt/material-ui,mbrookes/material-ui,mui-org/material-ui,mui-org/material-ui,dmtrKovalenko/material-ui-pickers,dmtrKovalenko/material-ui-pickers,oliviertassinari/material-ui,callemall/material-ui,rscnt/material-ui,rscnt/material-ui,callemall/material-ui,oliviertassinari/material-ui,oliviertassin... | docs/utils/helpers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport date from \"./fields/date\"\nimport { GraphQLString, GraphQLObjectType } from \"graphql\"\nimport { ResolverContext } from \"types/graphql\"\nimport { exhibitionPeriod } from \"lib/date\"\n\nconst PartnerShowEventType = new Graph... | typescript | edit | 0 | 4 | mit | 01bce6ca39b7dc06ae342b8c0772136ff51ef671 | mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1 | src/schema/partner_show_event.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai';\nimport { shallow } from 'enzyme';\nimport * as React from 'react';\nimport { StudentSummary } from '../../../../../../model/studentSummary'\nimport { StudentRowComponent } from '../studentRow'\n\ndescribe... | typescript | edit | null | null | mit | 6dabfb452edf0015222b8d6a3f7712d36fb20a04 | Lemoncode/LeanMood,MasterLemon2016/LeanMood,Lemoncode/LeanMood,MasterLemon2016/LeanMood,MasterLemon2016/LeanMood,Lemoncode/LeanMood | src/pages/admin/student/list/components/spec/studentRow.spec.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Repository } from '../../../models/repository'\nimport { IAPIRepository } from '../../api'\nimport { GitStore } from '../git-store'\n\nexport async function updateRemoteUrl(\n gitStore: GitStore,\n repository: Repository,\n ... | typescript | edit | 0 | 7 | mit | 6d8bf659ef8b5561355ad69c4833d979530f79a8 | j-f1/forked-desktop,say25/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,kactus-io/k... | app/src/lib/stores/updates/update-remote-url.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Routes, RouterModule } from '@angular/router';\nimport { LandingComponent } from './landing';\nimport { NoContentComponent } from './no-content';\nimport { TimingComponent } from './time_entry';\n\nexport const ROUTES: Routes =... | typescript | edit | 0 | 0 | mit | dd1d7442abb399aca4ce4963f06b6b219b2ae0c3 | PloughingAByteField/tiatus,PloughingAByteField/tiatus,PloughingAByteField/tiatus,PloughingAByteField/tiatus,PloughingAByteField/tiatus | server/src/main/typescript/timing/app.routes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { spawnSync } from 'child_process';\n\nlet _isPythonInstalled: string | null | undefined;\n\nexport function getIsPythonInstalled() {\n if (_isPythonInstalled !== undefined) return _isPythonInstalled;\n\n try {\n const optio... | typescript | edit | 0 | 5 | mit | 889e0c80229a7f4810d0b1e26a1c40497130bd14 | felixrieseberg/windows-build-tools,felixrieseberg/windows-build-tools | src/utils/get-is-python-installed.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Animated,\n NativeScrollEvent,\n NativeSyntheticEvent,\n} from 'react-native';\nimport { useState, useCallback } from 'react';\n\nexport type UseStretchyAnimation = (\n listener?: (offsetY: number) => void,\n) => {\n ani... | typescript | edit | 0 | 2 | mit | 525f7b6faa71dce18b50e30c612344077270c1ad | hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy,hamidhadi/react-native-stretchy | lib/src/hooks/useStretchyAnimation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { Fragment, FunctionComponent } from 'react';\nimport { styled, Global } from '@storybook/theming';\n\nimport { OverlayScrollbarsComponent } from './OverlayScrollbarsComponent';\nimport { getScrollAreaStyles } from './Scro... | typescript | edit | null | null | mit | 8654a04de2480ad0971e9f51b508f6fe219cf957 | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook | lib/components/src/ScrollArea/ScrollArea.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Test: Pass null value to function\nfunction doesNotExpectNull(n: number) {}\n\nfunction passesNullValue() {\n const n: number | null = null;\n // Fix: doesNotExpectNull(n!);\n doesNotExpectNull(n);\n}\n\n// Test: Pass null and und... | typescript | edit | 0 | 1 | apache-2.0 | 5aab82b99476ceb92c8b7006cc1d50d3e5180867 | googleinterns/typescript-flag-upgrade,googleinterns/typescript-flag-upgrade,googleinterns/typescript-flag-upgrade | test/test_files/strict_null_checks/unassignable_argument_type.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare module '@webcomponents/custom-elements';\n\nfunction init() {\n require('./init-app.tsx');\n}\n\nif (!('customElements' in self)) {\n import(\n /* webpackChunkName: \"wc-polyfill\" */\n '@webcomponents/custom-elements').... | typescript | edit | 0 | 2 | apache-2.0 | 079e56f1e109a58f89d47edd2a386fb9450dd9ee | GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh,GoogleChromeLabs/squoosh | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nimport { ChartFileExporterService } from '../chart-file/exporter/chart-file-exporter.service';\n\n@Component({\n selector: 'app-exporter',\n templateUrl: './exporter.component.html',\n... | typescript | edit | 0 | 1 | mit | 0cb5f0b0e633e452cae1ec1eaf84796349e77acd | nb48/chart-hero,nb48/chart-hero,nb48/chart-hero | src/app/exporter/exporter.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PlatformService } from \"../platform\";\n// const path = require(\"path\");\nimport * as path from \"path\";\n\nexport class AVGNativePath {\n public static join(...paths: string[]): string {\n // if (PlatformService.isDesk... | typescript | edit | 0 | 9 | mit | ea4b0ea54f2669829c5cddad5131616039dafd93 | AngryPowman/avg.engine,AngryPowman/avg.engine | engine/core/native-modules/avg-native-path.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as moment from 'moment';\n\nimport { Raid } from './raids';\n\nexport const formatRaidToDisplay = (raid: Raid): string => (\n`\\n\\`\\`\\`css\n[${moment(raid.date).format('DD MMM, HH:mm')}] ${raid.name} (ID ${raid.id})\\norgani... | typescript | edit | 0 | 3 | mit | 45f229ef7c607376b307661d0fc1f319f6bfe33a | jchakra/discord-raider | src/modules/raider/raids-utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IconifyIconCustomisations } from '../customisations';\n\nconst separator = /[\\s,]+/;\n\n/**\n * Additional shorthand customisations\n */\nexport interface ShorthandIconCustomisations {\n\t// Sets both hFlip and vFlip\n\tflip?:... | typescript | edit | 0 | 10 | mit | 0c08b40043ac65458973bb10382ee31809bbf049 | simplesvg/simple-svg,simplesvg/simple-svg,simplesvg/simple-svg | packages/core/src/customisations/shorthand.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport {\n Widget\n} from 'phosphor/lib/ui/widget';\n\n\n/**\n * The class name added to an IFrame widget.\n */\nconst IFRAME_CL... | typescript | edit | 0 | 1 | bsd-3-clause | 3b9694412c3d065ad4d7e47b8ab9ac315bfac94c | jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,charnpreetsingh... | src/iframe/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ndeclare namespace Explorer3d {\n export class CameraPositioner {\n onCreate(z: number, radius: number, center: { x, y, z });\n onResize(z: number, radius: number, center: { x, y, z });\n onExtend(z: number, radius: numb... | typescript | edit | 0 | 1 | apache-2.0 | ac0a40e2e35b6b347db931b7b17389f06c2b55c9 | Tomella/cossap-3d,Tomella/cossap-3d,Tomella/cossap-3d,Tomella/cossap-3d | source/view/cossapcamerapositioner.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as path from 'path';\n\nimport {\n buildIncludePaths,\n resolveUrl,\n sassGlobPattern,\n} from 'node-sass-magic-importer/dist/toolbox';\n\nexport default function onceImporter() {\n const contextTemplate = {\n store: new... | typescript | edit | 0 | 3 | mit | b18f98d4bb193d1db2b4e0d228fccd92bf9c77f9 | maoberlehner/node-sass-magic-importer,maoberlehner/node-sass-magic-importer,maoberlehner/node-sass-magic-importer | packages/node-sass-once-importer/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Document, { Head, Html, Main, NextScript } from 'next/document';\n\nconst GaTag = ({ trackingId }: { trackingId: string | undefined }) => {\n if (!trackingId) return null;\n\n return (\n <>\n <script async src={`https:/... | typescript | edit | null | null | mit | 21866bcae3a6af6c14f68803303ee7916d5f60bf | Alxandr/alxandr.me,Alxandr/alxandr.me,Alxandr/alxandr.me | pages/_document.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This shouldn't be necessary, but without this CI fails on Windows. Seems to\n// be a bug in TS itself or ts-node.\n/// <reference types=\"node\" />\n\nimport { Application } from 'spectron'\nimport * as path from 'path'\n\ndescribe('... | typescript | edit | 0 | 3 | mit | 49178d4ab4be07295692ac7994a3124b76501ba4 | kactus-io/kactus,desktop/desktop,say25/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,say25/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,kactus-io/kactus,ar... | app/test/integration/launch-test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nexport const enum TabBarTab {\n Changes = 0,\n History,\n}\n\ninterface ITabBarProps {\n /** The currently selected tab. */\n selectedTab: TabBarTab\n\n /** A function which is called when a tab is... | typescript | edit | null | null | mit | ddf4e20d0e4d4201631fa83f04a9fe1528bf4f44 | j-f1/forked-desktop,hjobrien/desktop,say25/desktop,gengjiawen/desktop,artivilla/desktop,j-f1/forked-desktop,shiftkey/desktop,desktop/desktop,BugTesterTest/desktops,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,s... | app/src/ui/toolbar/tab-bar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport xs, {Stream, MemoryStream} from 'xstream';\nimport {div, span, input, VNode} from '@cycle/dom';\nimport {DOMSource} from '@cycle/dom/xstream-typings.d.ts';\n\nexport interface LabeledSliderProps {\n label: string;\n unit: strin... | typescript | edit | 0 | 1 | mit | 195672f182528c9081e7de102216cae855365367 | cyclejs/cycle-core,feliciousx-open-source/cyclejs,usm4n/cyclejs,cyclejs/cycle-core,cyclejs/cyclejs,ntilwalli/cyclejs,maskinoshita/cyclejs,usm4n/cyclejs,feliciousx-open-source/cyclejs,maskinoshita/cyclejs,maskinoshita/cyclejs,ntilwalli/cyclejs,staltz/cycle,ntilwalli/cyclejs,usm4n/cyclejs,usm4n/cyclejs,cyclejs/cyclejs,nt... | examples/bmi-typescript/src/LabeledSlider.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport function concat(xs: string[]): string {\n\treturn xs.reduce((a, b) => a + b, '');\n}\n\nexport function capitalize(s: string): string {\n\treturn toUpperCase(s.charAt(0)) + toLowerCase(s.slice(1));\n}\n\nexport function toUpperCa... | typescript | edit | 0 | 1 | mit | 0938ea3964013ec984118e96c7b126cf9db900a5 | syuilo/Misskey,syuilo/Misskey | src/prelude/string.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as chai from 'chai'\nconst expect = chai.expect\n\nimport { parsePorcelainStatus } from '../../src/lib/status-parser'\n\ndescribe('parsePorcelainStatus', () => {\n describe('name', () => {\n it('parses a standard status', a... | typescript | edit | 0 | 1 | mit | d19038ed92d6e3e0ca741655a61774dcec44eea6 | shiftkey/desktop,hjobrien/desktop,shiftkey/desktop,j-f1/forked-desktop,desktop/desktop,gengjiawen/desktop,gengjiawen/desktop,kactus-io/kactus,hjobrien/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,kactus-io/kactus,artivilla/desktop,BugTesterTest/desktops,gengjiawen/desktop,say25/desktop,kactus-io/kactu... | app/test/unit/status-parser-test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport tc from 'turbocolor';\nimport { SerializedTimings } from '../../../src/rollup/types';\n\nexport function printTimings(timings: SerializedTimings) {\n\tObject.keys(timings).forEach(label => {\n\t\tlet color = tc;\n\t\tif (label[0]... | typescript | edit | 0 | 3 | mit | 6c1d1e600b0e7557aed1a574abec8ad4e2b66f9f | corneliusweig/rollup | bin/src/run/timings.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from \"chai\";\nimport { FrameArg, FrameString } from \"../../src/frames\";\n\n\ndescribe(\"FrameArg\", () => {\n const frame_arg = FrameArg.here();\n\n it(\"is created from 'here'\", () => {\n expect(frame_arg).t... | typescript | edit | 0 | 1 | mit | 808dde3a81902bfac873382de53373d319b298a2 | TheSwanFactory/hclang,TheSwanFactory/maml,TheSwanFactory/maml,TheSwanFactory/hclang | test/frames/frame-arg-spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { parse, IGitProgress } from './parser'\n\nexport interface IProgressStep {\n title: string\n weight: number\n}\n\nexport interface ICombinedProgress {\n percent: number\n details: IGitProgress\n}\n\nexport class StepProgress... | typescript | edit | 0 | 5 | mit | 71881b4d970e9b85cc71e8bdac10bec80506273e | gengjiawen/desktop,desktop/desktop,artivilla/desktop,gengjiawen/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,BugTesterTest/desktops,j-f1/forked-desktop,hjobrien/desktop,hjobrien/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,BugTesterTest/desktops,j-f1/forked-desktop,hjobrie... | app/src/lib/progress/step-progress.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as path from 'path';\nimport { MarkdownPlugin } from '../../plugin';\n\nexport function relativeUrl(absolute: string) {\n const urlPrefix: RegExp = /^(http|ftp)s?:\\/\\//;\n if (!MarkdownPlugin.location || urlPrefix.test(abso... | typescript | edit | 0 | 4 | mit | 9f6085bdb58a7d023a3aafc2efc7bc03f3da42db | tgreyuk/typedoc-plugin-markdown,tgreyuk/typedoc-plugin-markdown | src/lib/theme/helpers/relative-url.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { commands } from \"./commands\";\nimport { configure, Logger, getLogger } from \"log4js\";\nimport { loggerConfig } from \"./defaults\";\nimport { configController } from \"./config\";\n\nexport const initiate = async (process: ... | typescript | edit | 0 | 2 | apache-2.0 | eea8946f80c9189cab049c5ac294ecd11ad40b37 | StBozov/Core | packages/cli-core/src/cli.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Component} from 'angular2/core';\nimport {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';\nimport {MATERIAL_DIRECTIVES, MATERIAL_PROVIDERS} from 'ng2-material/all';\n\nimport {EventsListComponent} from './events-list.com... | typescript | edit | 0 | 0 | mit | d8bde3d313194684b8dda6553200febdfe7663f3 | bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable | ng2-timetable/app/schedule/schedule.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport MiniCssExtractPlugin from 'mini-css-extract-plugin';\nimport { RuleSetRule } from 'webpack';\nimport { notBoolean } from '../../utils/not-boolean.js';\nimport { getCssLoaderOptions } from '../loader-options/css-loader-options.js'... | typescript | edit | 0 | 3 | mit | 613580140357144d052af492c071ec441bc9d6db | Atyantik/react-pwa,Atyantik/react-pwa | packages/core/src/webpack/rules/css-rule.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Constants {\n public static runtimeVersion = \"~0.4\";\n public static nodeVersion = \"5.9.1\";\n public static latest = \"latest\";\n public static runtimeVersionAppSettingName = \"FUNCTIONS_EXTENSION_VERSION\"... | typescript | edit | 0 | 0 | apache-2.0 | 025f167c45b8541d382c66473ba903a54949bfe1 | agruning/azure-functions-ux,projectkudu/WebJobsPortal,agruning/azure-functions-ux,chunye/azure-functions-ux,projectkudu/AzureFunctions,agruning/azure-functions-ux,chunye/azure-functions-ux,chunye/azure-functions-ux,projectkudu/AzureFunctions,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,agruning/azure-functions-u... | AzureFunctions.Client/app/models/constants.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: fix: Add toolbar panel container service to exports"
},
{
"role": "assistant",
"content": "export * from './toolbar.component';\nexport * from './toolbar.module';\nexport * from './toolbar-panel-base.component';\nexport * fro... | typescript | new_file | 0 | 0 | mit | 76b5a24ecb80653e85177fda2215d49e4914bec9 | hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng | projects/hslayers/src/components/toolbar/public-api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"../../.d.ts\"/>\n\"use strict\";\n\nexport class ProjectPropertyCommandBase {\n\tprotected projectSchema: any;\n\tpublic $project: Project.IProject;\n\n\tconstructor(private $staticConfig: IStaticConfig,\n\t\tprivat... | typescript | edit | 0 | 5 | apache-2.0 | 2dd78a9836ef88ae4e97274d0b706653c3bea658 | Icenium/icenium-cli,Icenium/icenium-cli | lib/commands/prop/prop-command-base.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport function delay (timeout) {\r\n return new Promise<void>(resolve => {\r\n setTimeout(resolve, timeout)\r\n })\r\n}\r\n\r\n// for some reason editor.action.triggerSuggest needs more delay at the beginning when the process is n... | typescript | edit | 0 | 2 | mit | 8c4038f9eca3e6aa6fcd858346bbebd4bf54ba3a | ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts | test/utils.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.\n */\n\nimport TelemetryEvent from \"./TelemetryEvent\";\nimport { prependEventNamePrefix } from \"./TelemetryUtils\";\n\nexport const ... | typescript | edit | 0 | 1 | mit | 98a31a04ad907976aeba96108c7c844890fcfcd1 | AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication... | lib/msal-core/src/telemetry/UiEvent.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 | 24c6f586ddc359b6fb3af6c63231618cbf3600ad | Microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,micr... | src/vs/workbench/contrib/comments/browser/comments.contribution.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst path = require('path');\nmodule.exports = {\n entry: \"./src/spec.ts\",\n output: {\n path: path.resolve(__dirname, 'build'),\n filename: 'integration-tests.js'\n },\n devtool: 'inline-source-map',\n module: {\n rule... | typescript | edit | 0 | 0 | apache-2.0 | 3e63676cb098ba08b1ba4fc650e0593eeeccc3fb | improbable-eng/grpc-web,MarcusLongmuir/grpc-web,improbable-eng/grpc-web,MarcusLongmuir/grpc-web,MarcusLongmuir/grpc-web,improbable-eng/grpc-web,MarcusLongmuir/grpc-web,improbable-eng/grpc-web,improbable-eng/grpc-web,MarcusLongmuir/grpc-web | test/ts/webpack.config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nexport class FullScreenInfo extends React.Component<any, any> {\n public render () {\n return (\n <div className='toast-notification-container'>\n <div className='toast-notification'>\n ... | typescript | edit | null | null | mit | 4525a4038885d6e54323b941e58571455e14a79a | j-f1/forked-desktop,desktop/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,say25/desktop,desktop/desktop,hjobrien/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,shiftkey/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,gengjiawen/desktop,hjobrien/desktop,gengjiawen/desktop,hjobrien/deskt... | app/src/ui/window/full-screen-info.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Pipe, PipeTransform } from '@angular/core';\nimport * as moment from 'moment';\n\n@Pipe({ name: 'duration' })\nexport class DurationPipe implements PipeTransform {\n\n transform(value: any, args?: any): any {\n if (!v... | typescript | edit | 0 | 4 | mit | 5667d5afa8c82c274c3166dbef030887757547a0 | radiium/turntable,radiium/turntable,radiium/turntable | src/app/_shared/pipes/duration.pipe.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SidebarExtensionService } from '@waldur/navigation/sidebar/SidebarExtensionService';\n\nimport { getMenuForProject, getMenuForSupport } from './utils';\n\nexport default function registerSidebarExtension() {\n SidebarExtension... | typescript | edit | 0 | 0 | mit | e6eec5a029e130d93803196c2edc0b55a220c8f7 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/marketplace-checklist/sidebar-extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { copy } from 'copy-paste-win32fix';\nimport * as path from 'path';\nimport { promisify } from 'util';\nimport { window } from 'vscode';\nimport { BaseCopyController } from './BaseCopyController';\n\nconst copyAsync = promisify(c... | typescript | edit | 0 | 3 | mit | a9b147e148a729e2e5930c655075711ec3c33e22 | sleistner/vscode-fileutils,sleistner/vscode-fileutils | src/controller/CopyFileNameController.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass DashboardApi {\n @Decorators.method\n static getDashboardPageData(callback?) {\n var user = ACL.getUserOrThrow(this);\n var today = new Date();\n today.setHours(0, 0, 0);\n var todayLeaders = Mete... | typescript | edit | 0 | 1 | mit | 19f061f4c8c5caaa57bbb229985b2247f1c83449 | andrei-markeev/finnlingo,andrei-markeev/finnlingo,andrei-markeev/finnlingo | app/components/dashboard/server/DashboardApi.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst _ss = require('simple-statistics');\n\nimport { Person } from './models';\n\nconst FENCE_FACTOR = 1.5;\nconst QUARTILES = [0.25, 0.5, 0.75];\n\nexport class Statistics {\n static calculateBoxPlotData(sample: number[]): number[] {... | typescript | edit | 0 | 2 | isc | bfd0a8931c094cb11d96fb90ef3d8e139f388a26 | textbook/salary-stats,beatrichartz/salary-stats,textbook/salary-stats,beatrichartz/salary-stats,textbook/salary-stats,textbook/salary-stats,beatrichartz/salary-stats | src/lib/statistics.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass UiEvent {\n private addFeedButton = document.querySelector(\"#add-feed-button\");\n private pinButton = document.querySelector(\"#pin-button\");\n\n constructor(){\n this.addFeedButton.addEventListener(\"click\", e... | typescript | edit | 0 | 1 | mit | f87dafb7fe5cd9f88428a5af9835c4bf024a438f | Xstoudi/alduin,Xstoudi/alduin,Xstoudi/alduin | src/app/js/ui-event.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface Device {\n\tid: string;\n\tname: string;\n\tplatform: string;\n\temulator: boolean;\n}\n\nexport interface DaemonConnected {\n\tversion: string;\n\tpid: number;\n}\n\nexport interface AppStart extends AppEvent {\n\tdevi... | typescript | edit | 0 | 0 | mit | 6f944614d0292357da7a7909832a18ebdaf31554 | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/extension/flutter/flutter_types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {bootstrap} from '@angular/platform-browser-dynamic';\nimport {LocationStrategy, HashLocationStrategy} from '@angular/common';\n\nimport {APP_ROUTER_PROVIDERS} from './app.routes';\n\nimport {AppComponent} from './app.componen... | typescript | edit | 0 | 1 | mit | f8435966e1f2e906a57764930eb70a8075d7ecc2 | zamboney/ng2-page-scroll,Nolanus/ng2-page-scroll,Nolanus/ng2-page-scroll,Nolanus/ng2-page-scroll,zamboney/ng2-page-scroll | example/app/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"../../typings/main.d.ts\" />\n\nimport expect = require('expect.js');\nimport { MustLaw } from 'courtroom/courtroom/laws/must';\n\ndescribe('MustLaw', () => {\n\n describe('constructor', () => {\n\n it('sh... | typescript | edit | 0 | 2 | mit | afba8988e26fc6978687ee915d218162b105eef7 | Jameskmonger/courtroom,Jameskmonger/courtroom | spec/laws/must.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Stuff that Shake generates and injects in\n\n// The version of Shake\ndeclare const version: string;\n\n/////////////////////////////////////////////////////////////////////\n// PROFILE DATA\n\ndeclare const profile: Profile2[];\n\nd... | typescript | edit | 0 | 0 | bsd-3-clause | bfba3e732f499b36c15f4bb9686a92f0ac3c9e5f | ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake | html/ts/generated.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ArtsyLogoBlackIcon, Box } from \"@artsy/palette\"\nimport { AppContainer } from \"Apps/Components/AppContainer\"\nimport { RouterLink } from \"Artsy/Router/RouterLink\"\nimport React from \"react\"\n\ninterface MinimalNavBarPro... | typescript | edit | null | null | mit | a91ecc63abd5a1d4b0aafd0f2f8a3f4ac4f29da6 | artsy/reaction,artsy/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction-force | src/Components/NavBar/MinimalNavBar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport PropTypes from 'prop-types'\nimport React from 'react'\nimport styled from 'styled-components'\nimport { CardLayer } from '../styles/colors'\nimport Button, { ButtonCommon, ButtonProps } from './button'\n\nexport const IconButton... | typescript | edit | null | null | mit | 1abf6ceefe52ed46b29c0b0ae0d4cfd78c620ff4 | ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery | client/material/icon-button.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport { ColorPalette, ColorItem, IconGallery, IconItem, Typeset } from '@storybook/components';\n\nexport * from './Anchor';\nexport * from './ArgsTable';\nexport * from './Canvas';\nexport * from './Description';\nexport * from './Doc... | typescript | edit | 0 | 0 | mit | 9f19407e3cad98126c8ae15aa1ddc45a26770ff4 | storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook | addons/docs/src/blocks/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nnamespace YJMCNT {\n /**\n * CounterView\n */\n export class CounterView extends Core.View {\n counter:Counter;\n \n constructor() {\n super();\n this.counter = new Counter();\n ... | typescript | edit | 0 | 1 | mit | a62c0a3d177d63e2d56205e69b58c3dea3f686ee | yajamon/chrome-ext-counter,yajamon/chrome-ext-counter,yajamon/chrome-ext-counter | src/ts/view/counter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../fourslash.ts\"/>\r\n\r\n// @Filename: test1.ts\r\n////t.\r\n\r\n// @Filename: test.ts\r\n////var t = '10';\r\n\r\n// @Filename: tsconfig.json\r\n////{ \"files\": [\"test.ts\", \"test1.ts\"] }\r\n\r\nvar overridi... | typescript | edit | 0 | 0 | apache-2.0 | fe9d73eb5bc08e752793f143c31c713c93ef85d0 | RyanCavanaugh/TypeScript,DLehenbauer/TypeScript,donaldpipowitch/TypeScript,jeremyepling/TypeScript,plantain-00/TypeScript,samuelhorwitz/typescript,weswigham/TypeScript,kimamula/TypeScript,ionux/TypeScript,synaptek/TypeScript,synaptek/TypeScript,erikmcc/TypeScript,kimamula/TypeScript,fabioparra/TypeScript,thr0w/Thr0wScr... | tests/cases/fourslash/server/openFile.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport styled from 'styled-components'\n\nimport { Nodes } from '../../types'\n\nconst List = styled.ul`\n list-style-type: none;\n`\n\nconst StyledCheckbox = styled.input`\n margin-right: 0.5rem;\n cursor:... | typescript | edit | null | null | mit | c0e61177175d1a0be831ec307e37ed4b13166cd4 | joelgeorgev/react-checkbox-tree,joelgeorgev/react-checkbox-tree | src/components/Checkbox/Checkbox.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ServerSelectorService } from './../server-selector.service';\nimport { injectable, inject } from 'inversify';\nimport { TYPES } from '../../ioc/types';\nimport { IClient } from '../../contracts';\n\nimport { IIntent } from 'ale... | typescript | edit | 0 | 1 | mit | fb2dd4620bf7689d32b30ec378abd0989ce1d48d | arijoon/vendaire-discord-bot,arijoon/vendaire-discord-bot | src/aleksa/intents/tachanka-bot-intent.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nasync function getOKResponse(url: string, mimeType?: string) {\n const response = await fetch(\n url,\n {\n cache: 'force-cache',\n credentials: 'omit',\n },\n );\n\n if (mimeType && !... | typescript | edit | 0 | 8 | mit | 511ba13c3d644552620c32f74a6815199886ea26 | darkreader/darkreader,alexanderby/darkreader,darkreader/darkreader,alexanderby/darkreader,darkreader/darkreader,alexanderby/darkreader | src/utils/network.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"PDF.D.TS\" />\n\nvar pdf: PDFPageProxy;\n\n//\n// Fetch the PDF document from the URL using promises\n//\nPDFJS.getDocument('helloworld.pdf').then(function (pdf) {\n\t// Using promise to fetch the page\n\tpdf.getPa... | typescript | edit | 0 | 1 | mit | 67f689ca905227c7f2656572d3bf0faba1588d6f | MugeSo/DefinitelyTyped,benishouga/DefinitelyTyped,wkrueger/DefinitelyTyped,xswordsx/DefinitelyTyped,MidnightDesign/DefinitelyTyped,bdukes/DefinitelyTyped,fishgoh0nk/DefinitelyTyped,jraymakers/DefinitelyTyped,mjjames/DefinitelyTyped,pocesar/DefinitelyTyped,Maplecroft/DefinitelyTyped,syuilo/DefinitelyTyped,Karabur/Defini... | pdf/pdf-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from \"fs\";\nimport * as child from \"child_process\";\nimport * as path from \"path\";\n\nexport function getWasmInstance(sourcePath: string, outputFile?:string): WebAssembly.Instance {\n outputFile = outputFile || s... | typescript | edit | 0 | 2 | apache-2.0 | aa8a178f96a6b2eeef84634d30cf32db64a3cad6 | 01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript,01alchemist/TurboScript | test/utils/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { DocHandler, jsPDFDocument } from './documentHandler'\nimport { createTable } from './inputParser'\nimport { calculateWidths } from './widthCalculator'\nimport { drawTable } from './tableDrawer'\nimport { UserOptions } from './c... | typescript | edit | 0 | 3 | mit | dab12e6749ea93eb11aab628ab9255bfc8075cc0 | simonbengtsson/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,simonbengtsson/jsPDF-AutoTable,someatoms/jsPDF-AutoTable | src/autoTable.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport t = require(\"unittest/unittest\");\n\nclass MyClass {\n field: string;\n\n MyClass(someVal: string) { this.field = someVal; }\n\n getField(): string { return this.field + \" world\"; }\n}\n\nfunction main(): void {\n t.test(... | typescript | edit | 0 | 1 | apache-2.0 | cd6409d4ef9b2ade14aebce140d8119c7f274356 | yjbanov/ts2dart,dart-archive/ts2dart,hterkelsen/ts2dart,caitp/ts2dart,dart-archive/ts2dart,hansl/ts2dart,jteplitz602/ts2dart,alfonso-presa/ts2dart,jacob314/ts2dart,jacob314/ts2dart,jteplitz602/ts2dart,vsavkin/ts2dart,alfonso-presa/ts2dart,hterkelsen/ts2dart,yjbanov/ts2dart,vsavkin/ts2dart,caitp/ts2dart,hansl/ts2dart,vi... | test/e2e/helloworld.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as firebase from \"firebase\";\n\nconst projectId = process.env.REACT_APP_FIREBASE_PROJECT_ID;\n\nexport function initialize(): void {\n firebase.initializeApp({\n apiKey: process.env.REACT_APP_FIREBASE_API_KEY,\n ... | typescript | edit | 0 | 1 | mit | 09a4e486ccb68906c71af315ef5783316d1ce9d5 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | app/src/lib/firebase.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Component, Directive, EventEmitter, Input, TemplateRef, ViewContainerRef\n} from '@angular/core';\n\n@Component({\n selector: 'toggle',\n template: `\n <div *ngIf=\"on\">\n <ng-content></ng-content>\n </div>\n ... | typescript | edit | 0 | 2 | mit | d3456c723d30377e42549219770a0ad62084d183 | jasonroyle/ng2-toggle | ng2-toggle.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as child_process from \"child_process\"\n\nimport jsonDatabase from \"../db/json\"\nimport { DATABASE_JSON_FILE } from \"../globals\"\n\nconst go = async () => {\n // Download settings\n const db = jsonDatabase(DATABASE_JSON_... | typescript | edit | 0 | 4 | mit | db8eb08bd4afdd55685fb1465b8b47b1680e7389 | danger/peril,danger/peril,danger/peril,danger/peril,danger/peril | source/scripts/setup-plugins.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Observable, of } from \"rxjs\"\nimport './BigInt-JSON-patch'\n\n/**\n * A function that sends the body asynchronously to the specified url.\n */\nexport default function sendBeacon(url: string, data: string | Blob | FormData | ... | typescript | edit | 0 | 3 | mit | 52b2882efaa4352cb99cf2fe739aef92d71b6e6d | logary/logary-js,logary/logary-js | packages/logary/src/utils/sendBeacon.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface DrawableObject {\n drawOn(canvas: HTMLCanvasElement): any;\n}\n\nexport type BlockType = \"Entry\" | \"Choice\" | \"Action\" | \"Exit\";\n\nexport interface Block extends DrawableObject {\n type: BlockType;\n}\n\n... | typescript | edit | 0 | 0 | mit | a8512997355abce17730486329ce7146d9b78fe3 | hckr/diagram-editor,hckr/diagram-editor | src/drawableObjects.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n covidCountryProfileSlug,\n covidLandingSlug,\n covidCountryProfileRootPath\n} from \"site/server/covid/CovidConstants\"\n\nexport type CountryProfileProject = \"coronavirus\" | \"co2\"\n\nexport interface CountryProf... | typescript | edit | 0 | 0 | mit | 28a9f9c6adb8aef3b9625d3c969bef522b67656d | owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid-grapher,owid/owid-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher | site/client/CountryProfileConstants.tsx | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HttpClient, HttpClientModule } from '@angular/common/http';\nimport { ErrorHandler, NgModule } from '@angular/core';\nimport { TranslateLoader, TranslateModule } from '@ngx-translate/core';\nimport { TranslateHttpLoader } from ... | typescript | edit | 0 | 1 | mit | 12a9584b386b8872b9541822b48067a9d4735e39 | NextFaze/ionic-manup,NextFaze/ionic-manup,NextFaze/ionic-manup | manup-demo/src/app/app.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { get } from 'lodash'\nimport { INotification, NotificationState, INotificationOptions } from './Contracts'\n\nexport default class Notification implements INotification {\n timestamp = new Date\n dismissed = false\n displayed... | typescript | edit | 0 | 2 | mit | c89e6974159cce89dbf1f076a99b32938ced6043 | tsarholdings/neutron | packages/notifications/src/Notification.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference types=\"node\" />\nimport * as path from 'path';\nimport * as fs from 'fs-extra';\n\nconst PACKAGE_JSON = 'package.json';\nconst LIB_PATH = './lib';\n\nfs.copySync(PACKAGE_JSON, path.join(LIB_PATH, PACKAGE_JSON));\n\n```\... | typescript | edit | 0 | 0 | mit | bdbb33be6314729b9ba921e15da5e17b9ca61f8a | kourge/ordering | prepare.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Promise = require('any-promise')\nimport { parse as parseQuery } from 'querystring'\nimport Request from './request'\n\nexport type TextTypes = 'text' | 'json' | 'urlencoded'\nexport const textTypes = ['text', 'json', 'urlencoded... | typescript | edit | 0 | 0 | mit | 4cd1e2a797d3c404077e3b929eeba238b5abb8f2 | blakeembrey/popsicle,blakeembrey/popsicle | lib/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport application = require(\"application\");\napplication.mainModule = \"app/main-page\";\n\n// Remove this in the AppBuilder templates\napplication.cssFile = \"app/template-blank/app.css\"\n\napplication.start();\n\n```\n\nApply thi... | typescript | edit | 0 | 0 | mit | 87b17d97efe8ca563569ea9b20d812bfd7f1ad64 | genexliu/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript,hdeshev/NativeScript,NativeScript/NativeScript,genexliu/NativeScript,NativeScript/NativeScript,NativeScript/NativeScript,genexliu/NativeScript | apps/template-blank/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Triggered when a user was logged in\n *\n * @factoryParam {User} user The user object that was logged in\n */\nexport const EP_PHOVEA_CORE_LOGIN = 'epPhoveaCoreLogin';\n\n/**\n * Triggered when a user was logged out. Does not pr... | typescript | edit | 0 | 0 | bsd-3-clause | e8f86407551aae79d5303e3ad19160256a4a3964 | phovea/phovea_core,Caleydo/caleydo_web,phovea/phovea_core,Caleydo/caleydo_web,Caleydo/caleydo_core | src/extensions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { visitWithStatusRetries } from \"../helpers/visitWithStatusRetries\"\n\ndescribe(\"Viewing rooms\", () => {\n it(\"/viewing-rooms\", () => {\n visitWithStatusRetries(\"viewing-rooms\")\n cy.get(\"h1\").should(\"contain\",... | typescript | edit | 0 | 1 | mit | 90699c8c31e0650973f319c1df72b4e1fff01682 | artsy/force,artsy/force,artsy/force-public,artsy/force,artsy/force,artsy/force-public | cypress/integration/viewingRooms.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Directive, ViewContainerRef, TemplateRef, HostListener, Renderer, OnInit, OnDestroy } from '@angular/core';\nimport { autorun } from 'mobx';\nimport { mobxAngularDebug } from '../utils/mobx-angular-debug';\n\n@Directive({ selec... | typescript | edit | 0 | 2 | mit | 3400cd9457bc8fe72913c2ace5e5f5f0e96d3280 | mobxjs/mobx-angular,500tech/ng2-mobx,500tech/ng2-mobx,500tech/ng2-mobx,mobxjs/mobx-angular,mobxjs/mobx-angular,mobxjs/mobx-angular | lib/directives/mobx-autorun.directive.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default class HelperObject {\n public static clone(obj: any): any {\n if (obj == null || typeof (obj) !== \"object\") {\n return obj; // any non-objects are passed by value, not reference\n }\n ... | typescript | edit | 0 | 4 | mit | d4e46c2612be52a81fc42bf7064bc81200876d4a | crossroads-education/eta,crossroads-education/eta | helpers/object.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fromRouter from '@ngrx/router-store'\nimport {\n ActionReducerMap,\n MetaReducer,\n createFeatureSelector,\n createSelector\n} from '@ngrx/store'\nimport { storeFreeze } from 'ngrx-store-freeze'\n\nimport { ENV } from '.... | typescript | edit | 0 | 3 | apache-2.0 | f9e084b619c8b511b937e1aa867ac09de264abfe | RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard,RADAR-CNS/RADAR-Dashboard | src/app/store/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\npage.meta {\n\t# tell mobile devices to initially scale the page to fit the devices screen width\n\t# viewport = width=device-width, initial-scale=1.0\n}\n```\n\nApply this change: [FEATURE] Set the 'no-js' class on the html-element by ... | typescript | edit | null | null | mit | c30821c7ef6cd8268ac7e66fa862e64590218bf5 | t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template | Configuration/TypoScript/Includes/Page.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';\nimport { Props } from '../index';\n\nexport interface CollapseProps extends Props {\n defaultStyle?: React.CSSProperties;\n collapsed: boolean;\n springConfig: Object;\n children?: React.ReactElement... | typescript | edit | 0 | 0 | mit | b6b47ac07a27f7b8c4b4d8c96c2c4f5c1858ec95 | mlaursen/react-md,mlaursen/react-md,mlaursen/react-md | src/js/Helpers/Collapse.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\ninterface INotificationFilterSet\n{\n read?: boolean;\n\n subjectType: string[];\n\n reasonType: string[];\n\n repository: number[];\n\n};\n```\n\nApply this change: Make Read on NotificationFilterSet required"
},
{
"role"... | typescript | edit | 0 | 0 | mit | 7c96785b5fdacdaae584cb2343f426e24eca1794 | harksys/HawkEye,harksys/HawkEye,harksys/HawkEye | src/js/Interfaces/Models/INotificationFilterSet.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as express from 'express';\n\nexport default function(app: express.Express) {\n\tconsole.log('Init Web router');\n\t\n}\n```\n\nApply this change: Add newline to end of file"
},
{
"role": "assistant",
"content": "im... | typescript | edit | 0 | 1 | mit | c92b6779f5f25dd21f3ccb888eb50644d551199a | misskey-delta/Misskey-Web,misskey-delta/Misskey-Web,MissKernel/Misskey-Web,MissKernel/Misskey-Web,Tosuke/Misskey-Web,MissKernel/Misskey-Web,Tosuke/Misskey-Web,Tosuke/Misskey-Web,armchair-philosophy/Misskey-Web,MissKernel/Misskey-Web,armchair-philosophy/Misskey-Web,misskey-delta/Misskey-Web,armchair-philosophy/Misskey-W... | src/web/main/router.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.