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 { IdrisController } from './idris-controller'\nimport { CompositeDisposable } from 'atom'\nimport * as url from 'url'\nimport { IdrisPanel } from './views/panel-view'\n\nlet controller: IdrisController | null = null\nlet subscrip... | typescript | edit | 0 | 5 | mit | 9e9e164267517d88420b79b83bcf8bc189602009 | idris-hackers/atom-language-idris | lib/language-idris.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { Input } from '../../components';\n\ninterface Props {\n totp: string;\n setTotp: (totp: string) => void;\n id: string;\n}\nconst LoginTotpInput = ({ totp, setTotp, id }: Props) => {\n ret... | typescript | edit | null | null | mit | 652c31e1c65a4cd6924adcf86ecebfcadc70a79b | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/login/LoginTotpInput.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class User {\n id?: string;\n userName: string;\n firstName: string;\n lastName: string;\n password: string;\n country: string;\n email: string;\n birthdate: string;\n avatar: any;\n contacts?: Arra... | typescript | edit | 0 | 0 | mit | a3eea8a2444dd93db3de190bec5b3398b3b762d7 | tallerify/admin-panel-ui,tallerify/admin-panel-ui,tallerify/admin-panel-ui | src/app/_models/user.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nconst childrenToMap = (children: React.ReactNode): Map<string, React.ReactChild> => {\n const childrenArray = React.Children.toArray(children);\n const childMap: Map<string, React.ReactChild> = n... | typescript | edit | 0 | 2 | mit | 76e8a56cee1955f50888e952f88e221932c9a3c1 | bkazi/react-layout-transition,bkazi/react-layout-transition,bkazi/react-layout-transition | src/utils/children.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by gpl on 15/11/30.\n */\nmodule App.Controllers {\n import Canvas = App.Services.Canvas;\n import Logger = App.Services.Logger;\n\n export class CanvasCtrl {\n static $inject = ['Logger', 'Canvas'];\n ... | typescript | edit | 0 | 1 | mit | 15d89334a191234cf735a0d783b407aaf76be7eb | at15/cadjs,at15/cadjs,at15/cadjs | app/ctrl/canvas-ctrl.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This file is part of cbuild, copyright (c) 2016 BusFaster Ltd.\n// Released under the MIT license, see LICENSE.\n\nimport * as path from 'path';\nimport * as cmd from 'commander';\n\nimport {build} from './cbuild';\n\ntype _ICommand ... | typescript | edit | 0 | 3 | mit | 4240fae07deae852b714b84098b0a9acff573de3 | charto/cbuild,charto/cbuild | src/cli.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Callback, Context, Handler, ProxyResult} from 'aws-lambda';\n\nexport interface IMiddy {\n use: IMiddyUseFunction;\n before: IMiddyMiddlewareFunction;\n after: IMiddyMiddlewareFunction;\n onError: IMiddyMiddlewareFunction;\n... | typescript | edit | 0 | 1 | mit | d0195c7a8749f24f7d9a6b370575aced4d524cc2 | middyjs/middy,middyjs/middy | typescript/middy.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { duration } from 'moment';\n\nimport { titleCase } from '@waldur/core/utils';\nimport { translate } from '@waldur/i18n';\n\nexport const formatUserStatus = user => {\n if (user.is_staff && !user.is_support) {\n return transl... | typescript | edit | 0 | 9 | mit | 950049c94d7f5b8dd62f2522265f132a55c562b4 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | app/scripts/components/user/support/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { AttributeTypesAction, AttributeTypesActions, setAttributeTypes, UpdateAttributeTypeAction } from \"./attributeTypes.actions\"\nimport { AttributeTypes } from \"../../../../codeCharta.model\"\nconst clone = require(\"rfdc\")()\n... | typescript | edit | 0 | 0 | bsd-3-clause | e5d2c6404fe8250bf18381af78d5e3ba5c94c224 | MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta | visualization/app/codeCharta/state/store/fileSettings/attributeTypes/attributeTypes.reducer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Import just the rxjs statics and operators needed for NG2D3\n// @credit John Papa\"s https://git.io/v14aZ\n\n// Observable class extensions\nimport \"rxjs/add/observable/fromevent\";\n\n// Observable operators\nimport \"rxjs/add/oper... | typescript | edit | 0 | 0 | mit | 8ccd95b8a7c9097196c6ea1262cd45aa0101a5dc | kylebulkley/ngx-charts,Luukschoen/ngx-frozen,kylebulkley/ngx-charts,Luukschoen/ngx-frozen | src/common/rxjs-extensions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { INVOICE_STATE } from '@proton/shared/lib/constants';\nimport { Badge } from '../../components';\nimport { Invoice } from './interface';\n\nconst TYPES = {\n [INVOICE_STATE.UNPAID]: 'error',\n [I... | typescript | edit | null | null | mit | 701ab3dd97235080692686b6188ceb1ed510e401 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/invoices/InvoiceState.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ClearMessage, DisplayMessage } from '../messages'\nimport { State } from './state'\nimport { charToCodePoint, stringToUtf8ByteArray } from '../util'\n\nexport function sendClear() {\n const message: ClearMessage = {\n actio... | typescript | edit | 0 | 5 | mit | 4e6d6720eebfab561dd17843a95a6c95692add90 | Alexendoo/utf,Alexendoo/utf,Alexendoo/utf,Alexendoo/utf | src/ts/worker/senders.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// <reference path=\"question_selectbase.ts\" />\n/// <reference path=\"questionfactory.ts\" />\n/// <reference path=\"jsonobject.ts\" />\nmodule Survey {\n<<<<<<< HEAD\n export class QuestionDropdownModel extends QuestionSelectBase... | typescript | edit | 0 | 2 | mit | 360e919fbf0cf532970cbe65ddac74a92e0be03e | mirmdasif/surveyjs,espadana/surveyjs,dmitrykurmanov/surveyjs,surveyjs/surveyjs,espadana/surveyjs,iFacts/surveyjs,andrewtelnov/surveyjs,dmitrykurmanov/surveyjs,surveyjs/surveyjs,surveyjs/surveyjs,andrewtelnov/surveyjs,dmitrykurmanov/surveyjs,iFacts/surveyjs,surveyjs/surveyjs,andrewtelnov/surveyjs,espadana/surveyjs,espad... | src/question_dropdown.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Axios from \"axios\";\nimport { Thunk } from \"../redux/interfaces\";\nimport { Point } from \"../farm_designer/interfaces\";\nimport { API } from \"../api\";\nimport { success, error } from \"../ui\";\nimport { t } from \"i... | typescript | edit | 0 | 3 | mit | 46d90cc4ebeb3a98a7afda6a91c53ef9c8e7d787 | RickCarlino/farmbot-web-frontend,RickCarlino/farmbot-web-frontend,FarmBot/farmbot-web-frontend,FarmBot/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend,MrChristofferson/farmbot-web-frontend | src/images/actions.tsx | rejected_duplicate | Near-duplicate of sample 115386 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport HelperObject from \"./object\";\n\nexport default class HelperDate {\n public static getDate(date: Date): Date {\n let temp: Date = HelperObject.clone(date);\n temp.setHours(0);\n temp.setMinutes(0);\n ... | typescript | edit | 0 | 2 | mit | 2a09617f8e2ab72e572272fd32107bb9f7e83a99 | crossroads-education/eta,crossroads-education/eta | helpers/date.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {memo, forwardRef} from 'react'\nimport Select, {Props} from 'react-select'\n\nimport {CB_HEX, CB_RGB} from 'lib/constants'\n\nexport const selectStyles = {\n option: (styles, state) => ({\n ...styles,\n color: state.isSel... | typescript | edit | null | null | mit | 4e21462e2d5b281f46fad623c955d16ad89f8023 | conveyal/analysis-ui,conveyal/analysis-ui,conveyal/analysis-ui | lib/components/select.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Delays, greeter } from '../src/main';\n\ndescribe('greeter function', () => {\n const name = 'John';\n let hello: string;\n\n // Act before assertions\n beforeAll(async () => {\n // Read more about fake timers\n // ht... | typescript | edit | 0 | 1 | apache-2.0 | 458a4f444aa05ce1c4e0f816f34b973e5cf67448 | jsynowiec/node-typescript-boilerplate,jsynowiec/node-typescript-boilerplate | __tests__/main.test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { expect } from 'chai';\nimport { suite, test, slow, timeout, skip, only } from \"mocha-typescript\";\nimport FakeRequests from '../common/fakeRequests';\nimport * as sinon from 'sinon';\n\n@suite \nclass SdkRestInputArgs extends... | typescript | edit | 0 | 1 | mit | 8261e4bdb784da87fe21645b531a3d3fd4356a60 | delegateas/XrmDefinitelyTyped,delegateas/XrmDefinitelyTyped,delegateas/Delegate.XrmDefinitelyTyped,delegateas/Delegate.XrmDefinitelyTyped | test/src/tests/SDK.REST/input-args.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'annotator',\n templateUrl: './annotator.component.html',\n styleUrls: ['./annotator.component.css'],\n})\n\nexport cla... | typescript | edit | 0 | 1 | bsd-3-clause | 4134926195e4cf6b109c72daf698da4d4f298411 | Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber,Alveo/alveo-transcriber | src/app/annotator/annotator.component.ts | rejected_duplicate | Near-duplicate of sample 115682 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.14.0',\n RELEASEVERSION: '... | typescript | edit | 0 | 0 | mit | c84f7ff458769620264b379e1694f4132c8aeca7 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | tools/env/base.ts | rejected_duplicate | Near-duplicate of sample 115535 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Error } from \"enonic-fp/lib/common\";\nimport { Either, map } from \"fp-ts/lib/Either\";\nimport { pipe } from \"fp-ts/lib/pipeable\";\nimport { Content, publish } from \"enonic-fp/lib/content\";\n\nexport function publishFrom... | typescript | edit | 0 | 1 | mit | d17175f69f55d5dab22cb27eeb7bc254d994f26b | ItemConsulting/wizardry | src/content.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { join } from \"path\";\n\nimport { Event, ipcMain as ipc } from \"electron\";\n\nimport { KernelspecInfo, Kernelspecs } from \"@nteract/types\";\n\nconst builtInNodeArgv: string[] = [\n process.execPath,\n join(__dirname, \"..... | typescript | edit | 0 | 1 | bsd-3-clause | 04c3fda4881aadbdf3cf8994d1bfd7c3cea47797 | nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/composition,nteract/composition | applications/desktop/src/main/kernel-specs.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ninterface LatLng {\n lat: number\n lng: number\n}\n\nconst EARTH_RADIUS_IN_METERS = 6371e3\n\nconst toRadians = (degrees: number): number => degrees * (Math.PI / 180)\n\nconst haversineDistance = (point1: LatLng, point2: LatLng): numb... | typescript | edit | 0 | 1 | mit | 2af048b05e93445097e6535ddf17ab1c31278bda | artsy/metaphysics,artsy/metaphysics,mzikherman/metaphysics-1,mzikherman/metaphysics-1,mzikherman/metaphysics-1,artsy/metaphysics,mzikherman/metaphysics-1 | src/lib/geospatial.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as vscode from 'vscode';\r\nimport {createDiagnostics} from './elmCheck';\r\n\r\n// this method is called when your extension is activated\r\nexport function activate(disposables: vscode.Disposable[]) {\r\n\tvscode.workspace.on... | typescript | edit | 0 | 1 | mit | 4fabe7f748a315e5ac6c720092aad7c3f43b888f | Krzysztof-Cieslak/vscode-elm,sbrink/vscode-elm | src/elmMain.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Sans, Serif, Spacer } from \"@artsy/palette\"\nimport { Genes_artist } from \"__generated__/Genes_artist.graphql\"\nimport React, { Component } from \"react\"\nimport { createFragmentContainer, graphql } from \"react-relay\"\ni... | typescript | edit | null | null | mit | de244f9ea30381d3af9187ec5467e149a3872ab0 | artsy/reaction,artsy/reaction-force,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction | src/Apps/Artist/Routes/Overview/Components/Genes.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\nimport * as Reflux from 'reflux';\nimport * as React from 'react';\nimport { RouteStore } from '../../stores/route-store';\nimport { ActiveLinkProps } from './props';\n\nconst Route = require('react-router'... | typescript | edit | null | null | apache-2.0 | 843e7634109766aab8d719ed62f1c45194204ce7 | lawrence0819/neptune-front,lawrence0819/neptune-front | src/components/shared/link.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\njest.mock(\"axios\", () => ({\n default: {\n interceptors: {\n response: { use: jest.fn() },\n request: { use: jest.fn() }\n },\n get() { return Promise.reject(\"NO\"); }\n }\n}));\n\njest.mock(\"../session\", () =>... | typescript | edit | 0 | 1 | mit | 23601375eb7a9ecb1074fca43832958124b47f3d | RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-Ap... | webpack/__tests__/refresh_token_no_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {WeatherService} from './workers/WeatherService';\nimport {IWeatherUpdate} from '../common/interfaces/WeatherInterfaces';\nimport {IAccident} from '../common/interfaces/TrafficInterfaces';\nimport {TrafficService} from './workers... | typescript | edit | 0 | 1 | mit | 8fa945e35f90d92016ba2029e8e5e4f0897e0d7f | AngularShowcase/angular2-seed-example-mashup,hpinsley/angular-mashup,hpinsley/angular-mashup,AngularShowcase/angular2-seed-example-mashup,AngularShowcase/angular2-seed-example-mashup,hpinsley/angular-mashup | app/server/RtBroker.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { useState } from 'react';\nimport { c } from 'ttag';\nimport markdownit from 'markdown-it';\n\nimport { FormModal } from '../modal';\nimport './ChangeLogModal.scss';\nimport { getAppVersion } from '../../helpers';\n\ncons... | typescript | edit | null | null | mit | 8e015966f959d04a6254fd9b5cd34826086be6f7 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/version/ChangelogModal.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport axios from \"axios\";\nimport { Request, Response } from \"express\";\nimport * as admin from \"firebase-admin\";\nimport * as functions from \"firebase-functions\";\nimport unfluff = require(\"unfluff\");\n\nimport * as amazon f... | typescript | edit | 0 | 1 | mit | 6583fec5d8edb6d3663115ab43e03aa61ee07083 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | functions/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/DefinitelyTyped/node/node.d.ts\" />\n\n// env.ts provides functions to query the host Javascript\n// environment\n\n// This module has no dependencies to facilitate easier re-use across\n// different ... | typescript | edit | 0 | 3 | bsd-3-clause | 55370c18ab9755e5586809054d8a4aed6c781ea3 | robertknight/passcards,robertknight/passcards,robertknight/passcards,robertknight/passcards | lib/base/env.ts | rejected_duplicate | Near-duplicate of sample 113802 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ipcMain, app, Menu } from 'electron';\nimport { resolve } from 'path';\nimport { platform, homedir } from 'os';\nimport { AppWindow } from './app-window';\n\nipcMain.setMaxListeners(0);\n\napp.setPath('userData', resolve(homedi... | typescript | edit | 0 | 3 | apache-2.0 | 0af8403c8afdcc1e851f0eed377fc53ffb94f250 | Nersent/Wexond,Nersent/Wexond | src/main/index.ts | rejected_duplicate | Near-duplicate of sample 113080 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { EnvConfig } from './env-config.interface';\n\nconst BaseConfig: EnvConfig = {\n // Sample API url\n API: 'https://demo.com',\n RELEASEURL: 'https://github.com/nie-ine/raeber-website/releases/tag/0.4.0',\n RELEASEVERSION: '0... | typescript | edit | 0 | 0 | mit | c51b74377aa7439f9f65974e0b10a06b0e3d7a93 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | tools/env/base.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\nimport {\n ILayoutRestorer,\n JupyterFrontEnd,\n JupyterFrontEndPlugin\n} from '@jupyterlab/application';\n\nimport { ILaunche... | typescript | edit | 0 | 2 | bsd-3-clause | f5358b19d23459fb0f9e8aad5c4126474535c1b4 | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Hapi from 'hapi';\n\nimport Logger from './helper/logger';\nimport * as Router from './router';\nimport Plugins from './plugins';\n\nclass Server {\n public static init() : void {\n try {\n const server ... | typescript | edit | 0 | 3 | mit | 842fd10982f039dbbaed6658754e034c0a756364 | BlackBoxVision/typescript-hapi-starter,BlackBoxVision/typescript-hapi-starter,BlackBoxVision/typescript-hapi-starter | src/index.ts | rejected_duplicate | Near-duplicate of sample 115523 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport SwitchInterface from '../../io/SwitchInterface';\n\nexport default class LatchedInput {\n\n constructor(private _switch: SwitchInterface) {\n this.reset();\n\n this._switch.stateChanged.addHandler((state: boolean... | typescript | edit | 0 | 3 | mit | 7a68bc1d5cd368f33a0da3d56096ef1ee47cb579 | 6502ts/6502.ts,DirtyHairy/6502.ts,DirtyHairy/6502.ts,6502ts/6502.ts,DirtyHairy/6502.ts,6502ts/6502.ts,6502ts/6502.ts,6502ts/6502.ts,DirtyHairy/6502.ts | src/machine/stella/tia/LatchedInput.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) Tiny Technologies, Inc. All rights reserved.\n * Licensed under the LGPL or a commercial license.\n * For LGPL see License.txt in the project root for license information.\n * For commercial licenses see https://ww... | typescript | edit | 0 | 1 | mit | 21dc1e5e263932fa869418e6cf223b27d09ef669 | tinymce/tinymce,TeamupCom/tinymce,tinymce/tinymce,FernCreek/tinymce,FernCreek/tinymce,tinymce/tinymce,TeamupCom/tinymce,FernCreek/tinymce | modules/tinymce/src/plugins/autosave/main/ts/api/Api.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Polyfill Element.remove on IE11\n// from:https://github.com/jserz/js_piece/blob/master/DOM/ChildNode/remove()/remove().md\n(function(arr) {\n arr.forEach(function(item) {\n if (Object.prototype.hasOwnProperty.call(item, 'remove')... | typescript | edit | 0 | 2 | mit | 46293ba938a5ceae786a8c777651d33f3969721a | ember-animation/ember-animated,ember-animation/ember-animated,ember-animation/ember-animated | addon/element-remove.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { FunctionComponent, ComponentProps } from 'react';\nimport { styled } from '@storybook/theming';\n\nimport { Brand } from './Brand';\nimport { SidebarMenu, MenuList } from './Menu';\n\nexport interface HeadingProps {\n m... | typescript | edit | null | null | mit | b1ed6cd8dabb4a8b77f1aa539eab6149e7ec7d83 | storybooks/react-storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | lib/ui/src/components/sidebar/Heading.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { TestBed, async } from '@angular/core/testing';\n\nimport { AppComponent } from './app.component';\nimport { RouterTestingModule } from '@angular/router/testing';\n\ndescribe('AppComponent', () => {\n beforeEach(async(() => {\n... | typescript | edit | 0 | 1 | mit | 275324fe3a1f12f4eacc77a6149b17d2b1172e29 | family-guy/mathdruck-ng1,family-guy/mathdruck-ng1,family-guy/mathdruck-ng1 | src/app/components/app.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NodeManager } from './node-manager';\n\nexport class Npm extends NodeManager {\n\n\tconstructor(cwd: string) {\n\t\tsuper(cwd, 'npm');\n\t}\n\n\tinstall(packageName: string, cwd?: string, stream?: (data: any, error?: boolean) =... | typescript | edit | 0 | 1 | apache-2.0 | 18741033ac03a72aa3feec8014c861143581e8c6 | webshell/materia-server,webshell/materia-server,webshell/materia-server,webshell/materia-server | src/lib/package-manager/npm.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getWorkspaces } from 'bolt';\nimport * as path from 'path';\nimport exec from './lib/exec';\nimport build from './build';\n\nfunction need(val, msg) {\n if (!val) {\n throw new Error(msg);\n }\n}\n\nexport default async fu... | typescript | edit | 0 | 3 | mit | 935c35298bf5f83a06fae43785bf6f0e9ec97e0e | skatejs/skatejs,skatejs/skatejs,skatejs/skatejs | build/release.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport net = require(\"net\");\n\n/**\n * Represents a given host and port. Handles checking whether a host \n * is up or not, as well as if it is accessible on the given port.\n */\nclass MonitoredSocket {\n /**\n * Returns whe... | typescript | edit | 0 | 1 | mit | 4816c933504541fd40c33c11cd459951606afceb | OzuYatamutsu/is-my-server-up,OzuYatamutsu/is-my-server-up,OzuYatamutsu/is-my-server-up | MonitoredSocket.ts | accepted | null | true |
[
{
"role": "user",
"content": "Write typescript code for the following: Add typings and preliminary output"
},
{
"role": "assistant",
"content": "import { ComponentClass, createElement as r, SFC } from 'react'\nimport { WrappedFieldProps } from 'redux-form'\n\nexport type Component<P> = string | ... | typescript | new_file | 0 | 3 | mit | ec77b80284577234fe4a4e4a8c70a67676c22c22 | thirdhand/components,thirdhand/components | packages/react-input-feedback/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HookDecorator } from '../core';\nimport { Login } from './login.hook';\n\nexport function LoginOptional(\n options: { redirect?: string, user: (id: number|string) => Promise<any> }): HookDecorator {\n return Login(false, op... | typescript | edit | 0 | 1 | mit | 42ba95e8bcf0ee802f432340b2a610479fef78b7 | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | packages/core/src/auth/login-optional.hook.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst EOL = `(?:$|\"|'|,| |;|\\\\)|\\\\r|\\\\n|\\})`;\n\nconst DOT_VALUE = `(?:\\\\.\\\\d+)`; // ['.x', '']\nconst ALPHA = `(?:1(:?\\\\.0+)?|0${DOT_VALUE}?|${DOT_VALUE})`; // ['0', '1', '0.x', '1.0', '.x']\nconst HEXA_VALUE = '[\\\\da-f... | typescript | edit | 0 | 0 | apache-2.0 | 6840e7d1491902a40faa1fb65e2039427861b274 | KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize | src/lib/util/regexp.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport type { ReactElement } from \"react\";\nimport { AppBarAction } from \"@react-md/app-bar\";\nimport {\n FormatAlignLeftSVGIcon,\n FormatAlignRightSVGIcon,\n} from \"@react-md/material-icons\";\nimport { MenuItem } from \"@react-... | typescript | edit | null | null | mit | ee9f34c2932dd2a8a34d7cbfc04ffc48b264574c | mlaursen/react-md,mlaursen/react-md,mlaursen/react-md | packages/documentation/src/components/Layout/ToggleRTL.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule.exports = function login () {\n function afterLogin (user, res, next) {\n models.Basket.findOrCreate({ where: { UserId: user.data.id }, defaults: {} })\n .then(([basket]) => {\n const token = security.authorize(us... | typescript | edit | null | null | mit | bf1fc44356ac654f48e019c343bac08a446b4922 | bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop,bkimminich/juice-shop | data/static/codefixes/loginJimChallenge_3.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SeedProvider } from './seed-provider';\n\nexport class IsaacGenerator {\n private _count: number;\n private _memory: any;\n\n constructor(seed: Array<number>) {\n this._count = 0;\n\n this._memory = SeedProvider.getMem... | typescript | edit | 0 | 2 | mit | c3e6c4dfa125198fddd50e84704026d73995846b | Jameskmonger/isaac-crypto | src/isaac-generator.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { FC } from 'react';\nimport { useGlobals } from '@storybook/api';\nimport { Icons, IconButton, WithTooltip, TooltipLinkList, TabButton } from '@storybook/components';\nimport { NormalizedToolbarArgType } from '../types';\... | typescript | edit | null | null | mit | 41fe5b071e5728c1111d9029e59099b43945b03f | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | addons/toolbars/src/components/MenuToolbar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\nimport * as vscode from 'vscode';\n\nexport function activate(context: vscode.ExtensionContext) {\n console.log('Dart-Code activated!');\n}\n\nexport function deactivate() {\n console.log('Dart-Code deactivated!');\... | typescript | edit | 0 | 3 | mit | 8ee39038c058eb53eda071196e957998de2ec3c1 | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/extension.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'babel-polyfill'\r\nimport React, { Component } from 'react'\r\nimport { render } from 'react-dom'\r\nimport { App } from './App'\r\nimport { AppContainer } from 'react-hot-loader'\r\n\r\nconst domElement = document.getElementByI... | typescript | edit | null | null | mit | 704d5d065808d9181a1054a901d7a3b4e13e2407 | olegstepura/awesome-typescript-loader-test,olegstepura/awesome-typescript-loader-test,olegstepura/awesome-typescript-loader-test,olegstepura/awesome-typescript-loader-test | src/main/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Tests {\n public static tests: any[] = [\n {\n input: \"#ffffff\",\n output: \"#000000\"\n },\n {\n input: \"#abcdef\",\n output: \"#543210\"\n },\n {\n input: \"#badcab\",\n ou... | typescript | edit | 0 | 1 | unlicense | 9121d7ec97f489f8aca490421424ad4f5b53af52 | Jameskmonger/challenges | problems/complementary-colours/tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\n\nimport { Button } from '../button';\n\ninterface Props {\n value: string;\n onChange: () => void;\n}\n\nconst ContactImageField = ({ value, onChange }: Props) => {\n retu... | typescript | edit | null | null | mit | 3452284971165e383bb745c4c5743f9826bdeae5 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/components/contacts/ContactImageField.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"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 | 7b88c453797dbb5f64ac052982c6162498ace2ae | AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter | src/emitter/functions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by Samuel Gratzl on 08.03.2017.\n */\nimport {IForm, IFormElementDesc,IFormElement} from '../interfaces';\nimport {list, IPluginDesc} from 'phovea_core/src/plugin';\nimport {FORM_EXTENSION_POINT} from '..';\n\n/**\n * Fa... | typescript | edit | 0 | 2 | bsd-3-clause | e8fa6808a5d0b2204173cf78537b9349048aa814 | datavisyn/tdp_core,datavisyn/tdp_core,datavisyn/tdp_core,datavisyn/tdp_core | src/form/elements/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport assert from 'assert';\n\n/**\n * A mutex lock for coordination across async functions\n */\nexport default class AwaitLock {\n private _acquired: boolean = false;\n private _waitingResolvers: (() => void)[] = [];\n\n /**\n *... | typescript | edit | 0 | 1 | mit | d14849be1bb825106a17a6e4ea4c0e9b6ae5a56c | ide/await-lock,ide/await-lock | src/AwaitLock.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass A {\n x: number = 42 // TS9209 - field initializers\n}\nclass B extends A { } // TS9228 - inheritence\ninterface C { } // Probably should emit some sort of error, just skips it at the moment\nclass D implements C { } // TS9228\... | typescript | edit | 0 | 0 | mit | 53202341e81a6011e1b8de2197336b46a2b5550f | switch-education/pxt,Microsoft/pxt,Microsoft/pxt,playi/pxt,Microsoft/pxt,switchinnovations/pxt,switchinnovations/pxt,Microsoft/pxt,switchinnovations/pxt,switch-education/pxt,switch-education/pxt,switch-education/pxt,Microsoft/pxt,playi/pxt,playi/pxt,switchinnovations/pxt,switch-education/pxt,playi/pxt | test-errors/classes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n'use strict';\r\n\r\nimport { RestClientSettings } from './models/configurationSettings';\r\nimport * as Constants from './constants';\r\nimport * as appInsights from \"applicationinsights\";\r\n\r\nappInsights.setup(Constants.AiKey)\r\... | typescript | edit | 0 | 3 | mit | c2783efb6d05f6d6759aeda57047e7b12d9107fa | Huachao/vscode-restclient,Huachao/vscode-restclient | src/telemetry.ts | rejected_duplicate | Near-duplicate of sample 114718 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {buildHelper as helper, taskRunner} from \"../Container\";\nconst gulp = require(\"gulp\");\nconst embedlr = require(\"gulp-embedlr\");\n\nexport default function CopyIndex() {\n let stream = gulp.src('index.html');\n if (h... | typescript | edit | 0 | 2 | mit | fcdff55b266f027cd3c361aaf2a391c88f1ea672 | mtfranchetto/smild,mtfranchetto/smild,mtfranchetto/smild | lib/tasks/CopyIndex.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as crypto from 'crypto'\n\nimport { getDotComAPIEndpoint } from './api'\n\n/**\n * Convert an email address to a Gravatar URL format\n *\n * @param email The email address associated with a user\n * @param size The size (in pix... | typescript | edit | 0 | 3 | mit | e77e31f352a41fc54a75af4c19a329025915848a | j-f1/forked-desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,kactus-io/kactus,desktop/desktop,shiftkey/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,artivilla/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,kactus-io/kactus,... | app/src/lib/gravatar.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport GuiObject from \"./GuiObject\";\nimport { unimplementedWarning } from \"../utils\";\n\nclass Text extends GuiObject {\n /**\n * getclassname()\n *\n * Returns the class name for the object.\n * @ret The class name.\n *... | typescript | edit | 0 | 1 | mit | 7666047927cac50b9da1196bd282f973ec945988 | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | modern/src/runtime/Text.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport './styles.css'\nimport {\n run,\n // DEV\n logFns,\n mergeStates,\n} from 'fractal-core'\nimport { viewHandler } from 'fractal-core/interfaces/view'\nimport { styleHandler } from 'fractal-core/groups/style'\nimport * as root ... | typescript | edit | 0 | 1 | mit | a8d851cc62788206852bd690bf577f51584a7cea | FractalBlocks/Fractal-quickstart,FractalBlocks/Fractal-quickstart,FractalBlocks/Fractal-quickstart | app/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Readable } from \"readable-stream\";\n\nimport { JSONSourceData, JSONSchemaSourceData } from \"quicktype-core\";\nimport { GraphQLSourceData } from \"../quicktype-graphql-input\";\n\nexport interface JSONTypeSource extends JSON... | typescript | edit | 0 | 0 | apache-2.0 | 12e87b7b353876e27a50acb452e0ebdfbc651087 | quicktype/quicktype,quicktype/quicktype,quicktype/quicktype,quicktype/quicktype,quicktype/quicktype | src/cli/TypeSource.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*eslint-disable */\n\nimport 'core-js/fn/reflect/own-keys'\n\nif (!String.prototype.startsWith) {\n String.prototype.startsWith = function (search, pos) {\n return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search\n... | typescript | edit | 0 | 0 | mit | ff53e2d9accc9d9d7b3abc272b2c12e7a11a23fc | revolver-app/vuex-orm,revolver-app/vuex-orm | src/polyfills/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { normalizeUrl } from '@worldbrain/memex-url-utils'\n\nimport { isLoggable } from 'src/activity-logger'\nimport { extractIdFromUrl, isUrlYTVideo } from 'src/util/youtube-url'\nimport { MenuItemProps } from './types'\n\nexport con... | typescript | edit | 0 | 3 | mit | e89539684ae48237c82b67938fcc18298308133c | WorldBrain/WebMemex,WorldBrain/WebMemex | src/markdown-preview/insert-menu-entries.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 maxSatisfying\n} from 'semver';\n\n\n/**\n * A cache using semver ranges to retrieve values.\n */\nexport\nclass SemV... | typescript | edit | 0 | 0 | bsd-3-clause | 6e5b7f030d13022ee3c0b26943bd9cd9f7a1e98f | ipython/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,SylvainCorlay/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,SylvainCorlay/ipywidgets | packages/jupyterlab-manager/src/semvercache.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nrequire('angular');\nrequire('angular-ui-router');\nrequire('angular-material');\nrequire('angular-material/angular-material.scss');\n\nconst appModule = angular.module('materialSample', ['ui.router', 'ngMaterial']);\nconst serviceModul... | typescript | edit | 0 | 1 | mit | fd9c7a336f946a8847e9eef89dc4839643b04b15 | locnguyen/webpack-angular-typescript,locnguyen/webpack-angular-typescript,locnguyen/webpack-angular-typescript | src/app/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// tslint:disable-next-line:no-require-imports\nimport open = require(\"open\");\n\nconst generateQuery = (params: { [key: string]: string }) =>\n Object.keys(params)\n .map((key: string) => key + \"=\" + params[key])\n ... | typescript | edit | 0 | 1 | mit | 7bf11a1b561fd19de14639bbcd657c4bd7bca5af | dolanmiu/MMM-awesome-alexa,dolanmiu/MMM-awesome-alexa | src/aws-token-helper/aws-token-helper.ts | rejected_duplicate | Near-duplicate of sample 114533 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { inject } from 'mobx-react'\nimport DataStore from './stores/DataStore'\n\ntype SideNavigatorProps = {\n data?: DataStore\n}\n\n@inject('data')\nexport default class SideNavigator extends React.C... | typescript | edit | null | null | mit | 816a48e17dda23af8cafd2b79453f7812ac5969e | Sarah-Seo/Inpad,Sarah-Seo/Inpad | src/main/SideNavigator.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { https, config } from 'firebase-functions'\nimport { initializeApp } from 'firebase-admin'\nimport { migrateToFirestore } from './migrateToFirestore'\nimport { generateSchedule } from './schedule-view/generate-schedule'\nimport ... | typescript | edit | 0 | 0 | apache-2.0 | 8bb822ebc414aeba7d975b5bba538c2d496796dd | squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase | functions/src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, Input, Output, EventEmitter } from '@angular/core';\nimport { SelectableItem } from '../selectable-item';\nimport { SelectService } from '../Services/select.service';\n\n@Component({\n selector: 'cra-select-item',... | typescript | edit | 0 | 3 | mit | c8ac045842e414d7b48fa02961f1da7b4b5da7df | Crazyht/ngx-tree-select,Crazyht/crazy-select,Crazyht/ngx-tree-select,Crazyht/ngx-tree-select,Crazyht/crazy-select,Crazyht/crazy-select | src/Components/select-item.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../node_modules/typescript/lib/lib.es6.d.ts\" />\n\n'use strict';\n\nexport const GEN3_ARG: LCGArg = Object.freeze({multiplier: 0x41C64E6D, increment: 0x6073});\nexport const GEN4_ARG: LCGArg ... | typescript | edit | 0 | 1 | mit | e75841d5872eb5d1d53bd10f32caed2a09ba7fde | mizdra/poke-lcg,mizdra/poke-lcg | src/pokeLCG.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { JournalEntriesService } from './journalEntries.service';\n\ndescribe('JournalEntriesService', () => {\n let service: JournalEntriesService;\n let firebaseService: any;\n\n beforeEach(() => {\n service = new JournalEntries... | typescript | edit | 0 | 1 | mit | a31457505ed790ee4e32763eb15552f860898dea | stefanamport/nuba,stefanamport/nuba,stefanamport/nuba | src/app/journal/journalEntries.service.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Order} from \"../app/lod/Order\";\nimport { Observable } from 'rxjs/Observable';\nimport {Product} from \"../app/lod/Product\";\n\ndescribe('Attributes', function() {\n it( \"should be flagged as created\", function() {\n ... | typescript | edit | 0 | 1 | apache-2.0 | 3522ec72314e02d973cd358b8ab5a7ebaccd03e5 | DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind,DeegC/Zeidon-Northwind | angular/src/tests/attribute-tests.ts | rejected_duplicate | Near-duplicate of sample 116293 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {CardResponse} from './CardResponse';\nimport {Status} from './Status';\nimport {Acquirer} from './Acquirer';\nimport {Revert} from './Revert';\nimport {Customer} from './Customer';\nimport {Splitting} from '../Splitting';\n\nexp... | typescript | edit | 0 | 0 | mit | 915886c1c393ce3e0187d1471e81cccf96fc3e18 | solinor/paymenthighway-javascript-lib | ts/src/model/response/TransactionStatus.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../node_modules/@types/node/index.d.ts\" />\n\nimport 'mocha'\nimport 'chai-datetime'\n\n// These constants are defined by Webpack at build time, but since tests aren't\n// built with Webpack we need to make sur... | typescript | edit | 0 | 0 | mit | 8ee4ac5239519218a1c1f47bca8fe91474c894d6 | shiftkey/desktop,desktop/desktop,artivilla/desktop,gengjiawen/desktop,hjobrien/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,hjobrien/desktop,desktop/desktop,gengjiawen/desktop,say25/desktop,artivilla/desktop,artivilla/desktop,hjobrien/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,BugTeste... | app/test/globals.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 | 1 | mit | 48f00daf9105f6e513f269a13662db521ec4c969 | OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode,OmniSharp/omnisharp-vscode | src/observers/BaseStatusBarItemObserver.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../references/references.d.ts\" />\n\nmodule flexportal {\n 'use strict';\n\n class Session extends FlexSearch.DuplicateDetection.Session {\n JobStartTimeString: string\n JobEndTimeString: string\n }\n\... | typescript | edit | 0 | 1 | apache-2.0 | 58e3fcf39298089b70333a664fdbd73f8cebd21a | FlexSearch/FlexSearch,FlexSearch/FlexSearch,FlexSearch/FlexSearch,FlexSearch/FlexSearch | src/app/views/sessions/sessions.controller.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by Roberta Padlina (<EMAIL>) on 27/10/17.\n */\n\nimport { Component } from '@angular/core';\n\n@Component({\n moduleId: module.id,\n selector: 'rae-werkliste-unselbst',\n templateUrl: 'werkliste-unselbst.component.ht... | typescript | edit | 0 | 1 | mit | 4e73d864bb2472e5c19fe8afb63c90b1ec8d6b73 | nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website,nie-ine/raeber-website | src/client/app/statisch/werkliste-unselbst.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../typings/jasmine/jasmine.d.ts\" />\n\nimport { Template } from '../../src/templates/template';\n\ndescribe('Template', () => {\n describe('getOpeningEscape', () => {\n it('should return \"{{\"', () => {\n ... | typescript | edit | 0 | 2 | unlicense | e437967f6b28b9142fb578a2f6963483e3bb2a50 | dependument/dependument,dependument/dependument,Jameskmonger/dependument,Jameskmonger/dependument | spec/templates/template.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HitStatus } from '../types';\r\nimport { BadgeDescriptor } from '@shopify/polaris/types/components/ResourceList/Item';\r\nimport { Status } from '@shopify/polaris/types/components/Badge/Badge';\r\n// import { BadgeProps } from ... | typescript | edit | 0 | 7 | mit | 5a6b0ba71060e127b7980e13b95334c253f63ad5 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/badges.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"marked.d.ts\" />\n\nimport marked = require('marked');\n\nvar options: MarkedOptions = {\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n sanitize: true,\n smartLists: true,\n ... | typescript | edit | 0 | 1 | mit | 98ae99347a60bbccd2bb61c05c56dbd81517edda | abbasmhd/DefinitelyTyped,georgemarshall/DefinitelyTyped,martinduparc/DefinitelyTyped,pocesar/DefinitelyTyped,danfma/DefinitelyTyped,isman-usoh/DefinitelyTyped,alvarorahul/DefinitelyTyped,schmuli/DefinitelyTyped,donnut/DefinitelyTyped,arusakov/DefinitelyTyped,donnut/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,newclear/D... | marked/marked-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { } from 'jasmine';\nimport { async, inject } from '@angular/core/testing';\n\nimport {\n ContentService, ContentSearchRequest,\n ShareContent, ShareBasicCreateRequest, ShareService, OutputAccess\n} from '@picturepark/sdk-v1-an... | typescript | edit | 0 | 1 | mit | 55fe9aee5b3fdd02b4c5af084e87f07e71b3cd4d | Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript,Picturepark/Picturepark.SDK.TypeScript | src/picturepark-sdk-v1-angular/src/tests/share-service.spec.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 Application\n} from 'phosphor/lib/ui/application';\n\nimport {\n ApplicationShell\n} from './shell';\n\nexport\nclas... | typescript | edit | 0 | 1 | bsd-3-clause | a9ac439c6add02096ffa56302eaec67bdd8d7dc0 | TypeFox/jupyterlab,TypeFox/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,eskirk/jupyterlab,TypeFox/jupyterlab,TypeFox/jupyterlab,charnpreetsingh185/jupyterlab,eskirk/jupyterlab,jupyter/jupyterlab,charnpreetsingh185/jupyterlab,charnpreetsingh185/jupyterlab,jupyter/jupyterlab,eskirk/jupyterlab,TypeFo... | src/application/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { browser } from 'protractor';\nimport * as support from '../specs/support';\nimport { LandingPage } from '../specs/page_objects';\n\ndescribe('Landing Page', () => {\n\n beforeEach( async () => {\n await support.desktopTestS... | typescript | edit | 0 | 1 | apache-2.0 | f49e20e47d22aa5f90becbfc94225f0c32f79ab6 | ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test | ee_tests/src/functional/screenshot.spec.ts | rejected_duplicate | Near-duplicate of sample 116064 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\nimport { async, ComponentFixture, TestBed } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { DebugElement } from '@angular/core';\nimport { RouterTestingMo... | typescript | edit | 0 | 1 | apache-2.0 | 00a45903a7a37e000c95461f5cb753ac1d546a91 | kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client | src/app/connections/list/list.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Leaflet Sidebar Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { TestBed, async, inject } from '@angular/core/testing';\ni... | typescript | edit | null | null | mit | 27ef040730026577a6f3a39d0ddb0bddabe20119 | ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2 | src/app/leaflet/leaflet-sidebar/leaflet-sidebar.component.spec.ts | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"../lib/d3.d.ts\" />\n\n///<reference path=\"../src/table.ts\" />\n///<reference path=\"../src/renderer.ts\" />\n///<reference path=\"../src/interaction.ts\" />\n///<reference path=\"../src/labelComponent.ts\" />\n//... | typescript | edit | 0 | 0 | mit | 2df8324ca6bdbacd543d4cb5adab6b706fb3acad | alyssaq/plottable,gdseller/plottable,danmane/plottable,iobeam/plottable,palantir/plottable,jacqt/plottable,jacqt/plottable,alyssaq/plottable,onaio/plottable,softwords/plottable,palantir/plottable,iobeam/plottable,NextTuesday/plottable,alyssaq/plottable,jacqt/plottable,softwords/plottable,gdseller/plottable,NextTuesday/... | examples/tscDemo.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { isObject } from '@boost/common';\n\ninterface Cloneable {\n clone?: () => unknown;\n}\n\nexport default class Context {\n /**\n * Create a new instance of the current context and shallow clone all properties.\n */\n clon... | typescript | edit | 0 | 8 | mit | 7858ac4af12995bc973867661e01d8854d43daf0 | milesj/boost,milesj/boost | packages/pipeline/src/Context.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { of } from 'rxjs';\nimport { NgProgressComponent } from './ng-progress.component';... | typescript | edit | 0 | 1 | mit | 7fd5d324925c8164757ff60b2dda60c45f5c77e6 | MurhafSousli/ngx-progressbar,MurhafSousli/ngx-progressbar,MurhafSousli/ngx-progressbar | projects/ngx-progressbar/src/lib/ng-progress.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport { AppStore } from './store';\nimport { Activities } from './containers/activities';\nimport { Video } from './containers/video';\nimport { observer } from 'mobx-react';\n\ninterface RouterProps {\... | typescript | edit | null | null | mit | 547a1fe10ffdab1035cc9c42e8825222f40e04f9 | misantronic/rbtv.ts.youtube,misantronic/rbtv.ts.youtube,misantronic/rbtv.ts.youtube | src/router.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Assign value to an object property\n *\n * @param value: What you are assigning\n * @param target: Target to assign value to\n * @param propertyPath Where to assign value to on target (path to assign. ie: \"baseTexture\" or \"m... | typescript | edit | 0 | 11 | mit | 7877c80a9b35c58cb63cb95789f731b31428278d | brianzinn/react-babylonJS,brianzinn/react-babylonJS | src/helper/property.ts | rejected_complexity | Cyclomatic complexity too high: 11 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Button } from '../lib/button'\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { updateStore } from '../lib/update-store'\nimport { ButtonGroup } from '../lib/button-group'\nimport { Di... | typescript | edit | null | null | mit | dd70134584c4ef9673826ce40905cda6e20b03aa | j-f1/forked-desktop,kactus-io/kactus,BugTesterTest/desktops,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,gengjiawen/desktop,BugTesterTest/desktops,desktop/desktop,gengjiawen/desktop,desktop/desktop,kactus-io/kactus,say25/desktop,shiftkey/desktop,hjobrien/desktop,say25/desktop,artivilla/deskto... | app/src/ui/updates/update-available.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ts from 'typescript';\nimport { ILinterOptions, LintResult } from 'tslint';\nimport { typescriptService } from './typescript-service';\nconst { Linter: TSLintLinter } = require('tslint');\n\nexport class CustomLinter extends... | typescript | edit | 0 | 2 | mit | 0fe933cf362ad3f674c12ef5c67934873280dd3c | JamesHenry/eslint-plugin-tslint,JamesHenry/eslint-plugin-tslint | src/custom-linter.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Box, Flex, Sans } from \"@artsy/palette\"\nimport InvertedButton from \"lib/Components/Buttons/InvertedButton\"\nimport React from \"react\"\n\ninterface Props {\n name: string\n isFollowed: boolean\n onPress: () => void\n ... | typescript | edit | null | null | mit | c065e7dfcc2374ec125180bbc558e3539e7a8ff1 | artsy/emission,artsy/eigen,artsy/eigen,artsy/eigen,artsy/emission,artsy/eigen,artsy/eigen,artsy/emission,artsy/emission,artsy/emission,artsy/eigen,artsy/emission,artsy/emission,artsy/eigen | src/lib/Scenes/Show/Components/Artists/Components/ArtistListItem.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { messages } from 'cucumber-messages'\nimport React from 'react'\nimport Feature from './Feature'\n\ninterface IProps {\n gherkinDocument: messages.IGherkinDocument\n}\n\nconst GherkinDocument: React.FunctionComponent<IProps> = ... | typescript | edit | null | null | mit | ddd3214b8fcf3e75bd30a654d09b5c53dfdf164c | cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber,cucumber/cucumber | cucumber-react/javascript/src/components/gherkin/GherkinDocument.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\n\nimport { TabsPage } from './tabs.page';\n\ndescribe('TabsPage', () => {\n let component: TabsPage;\n let fi... | typescript | edit | 0 | 1 | apache-2.0 | 62a97727d29a64a6aeba61c4acc6c84302734770 | openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile,openradiation/openradiation-mobile | src/app/pages/tabs/tabs.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// eslint-disable-next-line\nimport _temp from \"temp\";\nimport fs from \"fs\";\nimport fetch from \"node-fetch\";\nimport md5Buffer from \"md5\";\nimport * as S3 from \"../s3\";\nimport * as Skins from \"../data/skins\";\n\nconst Shoo... | typescript | edit | 0 | 4 | mit | f011818c12ffc5d4b1cd45e2147ffa0f1f8d4846 | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | packages/skin-database/tasks/screenshotSkin.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nmodule UI {\n\n export class EditableProperty {\n\n public restrict = 'E';\n public scope = true;\n public templateUrl = UI.templatePath + 'editableProperty.html';\n public require = 'ngModel';\n public link = null;\n\n ... | typescript | edit | 0 | 3 | apache-2.0 | 940d5f373f84cc93505aa3680fdd9d2258827afe | telefunken/hawtio,skarsaune/hawtio,andytaylor/hawtio,padmaragl/hawtio,jfbreault/hawtio,rajdavies/hawtio,rajdavies/hawtio,hawtio/hawtio,padmaragl/hawtio,skarsaune/hawtio,hawtio/hawtio,andytaylor/hawtio,tadayosi/hawtio,padmaragl/hawtio,hawtio/hawtio,uguy/hawtio,padmaragl/hawtio,rajdavies/hawtio,tadayosi/hawtio,andytaylor... | hawtio-web/src/main/webapp/app/ui/js/editablePropertyDirective.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.