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 { Component, OnInit, AnimationTransitionEvent } from '@angular/core';\nimport { routerTransition } from '../app.routes.animations';\nimport { GameStateService } from \"../services/game-state.service\";\nimport { SoundService } fr... | typescript | edit | 0 | 2 | mit | 92a04a3e2731adfbfb742f4da72105ab67ccf8b6 | nmarsden/make-em-green,nmarsden/make-em-green,nmarsden/make-em-green | src/app/menu/menu.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass GameHandHistory {\n /**\n * Show game history with cards.\n */\n public showPictureHistory = true;\n\n /**\n * Show game history as text.\n */\n public showTextHistory = true;\n}\n\nclass GameActionBlo... | typescript | edit | 0 | 0 | apache-2.0 | e0dc82ab6565e06417cf4aad5a59a8fb80b70c2b | online-poker/poker-html-client,online-poker/poker-html-client,online-poker/poker-html-client | js/appconfig.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Dataset from \"../../../../../model/session/dataset\";\nimport {Component, Input, ChangeDetectorRef, ViewChild, AfterViewInit} from '@angular/core';\nimport {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';\nimport {UploadServi... | typescript | edit | 0 | 1 | mit | 1bca022b184abab90430ad092e1436c300eeb0e8 | chipster/chipster-web,chipster/chipster-web,chipster/chipster-web | src/app/views/sessions/session/leftpanel/adddatasetmodal/adddatasetmodal.content.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { onStartup } from '../lib/executionEnvironment';\nimport process from 'process';\nimport { DatabaseMetadata } from '../lib/collections/databaseMetadata/collection';\nimport { PublicInstanceSetting } from '../lib/instanceSettings... | typescript | edit | 0 | 5 | mit | 8c45898245072158e6ff0e70244fdf75739f46ab | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2 | packages/lesswrong/server/startupSanityChecks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class BasicTab {\n\n public isActive: boolean = false\n private name: String;\n private link: String;\n private id: String; \n\n // MARK: - Getters & Setters \n\n public getId(): String { \n return this.i... | typescript | edit | 0 | 1 | mit | 094c82b75a7c2ac0e56c6a340ddee51cbe1039b0 | emc-mongoose/console,emc-mongoose/console,emc-mongoose/console | console/src/app/common/BasicTab/BasicTab.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport { observer } from \"mobx-react\";\nimport style from \"./style.scss\";\nimport { WebsiteModel } from \"../../WebsiteModel\";\n\ninterface MainPageProps {\n websiteModel: WebsiteModel;\n}\n\n@ob... | typescript | edit | null | null | apache-2.0 | e8de26ff202e862da95d1c69dea5d0e7fafef761 | gamliela/starter-react-mobx-css-modules,gamliela/starter-react-mobx-css-modules,gamliela/starter-react-mobx-css-modules | src/website/pages/MainPage/MainPage.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as apac from \"apac\";\nimport * as functions from \"firebase-functions\";\n\nconst amazonClient = new apac.OperationHelper({\n assocId: functions.config().aws.tag,\n awsId: functions.config().aws.id,\n awsSecret: func... | typescript | edit | 0 | 2 | mit | 8e10cf1308dce3c6d8187bd9e702a62ac96d3d90 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | functions/amazon.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Copyright (C) 2016 wikiwi.io\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n */\n\nimport {Rule } from \"jss\";\nimport createHash = require(\"murm... | typescript | edit | 0 | 4 | mit | d1ac4df089ec54513c28dd9f4b9ae45ef6706384 | wikiwi/react-jss-theme,wikiwi/react-jss-theme,wikiwi/react-jss-theme | src/utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class HttpRequest {\n params: { [key: string]: any } = {};\n body: any = undefined;\n query: { [key: string]: any } = {};\n\n constructor(private expressRequest?) {\n if (expressRequest) {\n this.query = expressReques... | typescript | edit | 0 | 2 | mit | 9c7fd609d041a75c578e180c2fd46251f8b81dc4 | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | packages/core/src/classes/http-request.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as config from '../common/config';\n\nimport {Injectable, EventEmitter} from '@angular/core';\nimport {Subject} from 'rxjs/Subject';\nimport {UUID} from 'angular2-uuid';\n\n@Injectable()\nexport class AlertService {\n\n\tprivat... | typescript | edit | 0 | 2 | mit | f5a47bf4008068c34cb825af5777059adba48191 | MyMICDS/MyMICDS-v2-Angular,MyMICDS/MyMICDS-v2-Angular,MyMICDS/MyMICDS-v2-Angular,michaelgira23/MyMICDS-v2-Angular,michaelgira23/MyMICDS-v2-Angular,michaelgira23/MyMICDS-v2-Angular | app/services/alert.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as karma from 'karma';\nimport { join } from 'path';\n\nimport Config from '../../config';\n\nlet repeatableStartKarma = (done: any, config: any = {}) => {\n return new (<any>karma).Server(Object.assign({\n configFile: join... | typescript | edit | 0 | 1 | mit | 6b44626b784ab4446945216f6781c80642ed17fa | pratheekhegde/a2-redux,idready/Philosophers,fart-one/monitor-ngx,tiagomapmarques/angular-examples_books,alexmanning23/uafl-web,sanastasiadis/angular-seed-openlayers,pocmanu/angular2-seed-advanced,oblong-antelope/oblong-web,natarajanmca11/angular2-seed,arun-awnics/mesomeds-ng2,ppanthony/angular-seed-tutorial,Sn3b/angula... | tools/tasks/seed/karma.run.with_coverage.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NgModule } from '@angular/core';\r\n\r\nimport { BrowserModule } from '@angular/platform-browser';\r\n\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { AppC... | typescript | edit | 0 | 0 | mit | 91342f4eac48bc241764124f4883dc888e0a5665 | Urigo/angular-meteor | examples/MeteorCLI/all-in-one/imports/app/app.module.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n This is the main module, it exports the 'render' API.\n\n The compiled modules are bundled by Webpack into 'var' (script tag) and 'commonjs' (npm)\n formatted libraries.\n */\n\n/* tslint:disable */\nimport {renderSource} from '... | typescript | edit | 0 | 4 | mit | af2043c5592546b626ff1e75154cc77fc9650cea | srackham/rimu | src/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {bootstrap} from 'angular2/platform/browser'\nimport {AppComponent} from './app.component'\n\nbootstrap(AppComponent);\n```\n\nApply this change: Fix broken dependencies while compiling TS"
},
{
"role": "assistant",
... | typescript | edit | 0 | 0 | mit | 018af2378a70de0e0fec4c1430285bf48037e36f | bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrd/nau-timetable,bluebirrrrd/nau-timetable,bluebirrrrd/nau-timetable | ng2-timetable/app/main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\n// Copyright 2018 The Outline Authors\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// ... | typescript | edit | 0 | 0 | apache-2.0 | a4cef559aa13e3fbb3053c2683030105115c85ca | Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server,Jigsaw-Code/outline-server | src/shadowbox/model/access_key.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) 2016 Vadim Macagon\n// MIT License, see LICENSE file for full terms.\n\nimport * as React from 'react';\nimport { PolymerComponent } from './polymer';\nimport { omitOwnProps } from '../../../common/utils';\n\n/**\n * Re... | typescript | edit | null | null | mit | 0a4d0e5ea2c633f8e248d0d84a54b167edf40058 | debugworkbench/hydragon,debugworkbench/hydragon,debugworkbench/hydragon | app/src/renderer/components/paper/paper-button.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as request from 'request';\n\nfunction requestPromise(options: request.Options) {\n\t'use strict';\n\treturn new Promise<string>((resolve, reject) => {\n\t\trequest(options, (error, response, body) => {\n\t\t\terror ? reject(er... | typescript | edit | 0 | 2 | mit | 408cf6185ab8f81197f2d404c10fb1afa5caa87c | AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey | src/models/request-promise.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\n/**\n * This class represents the lazy loaded PlayComponent.\n */\n@Component({\n moduleId: module.id,\n selector: 'sd-play',\n templateUrl: 'play.component.html',\n styleUrls: ['play.co... | typescript | edit | 0 | 2 | mit | 52b94ad763575b3c67139ed5ed378e26ee104b94 | Ecafracs/flatthirteen,Ecafracs/flatthirteen,Ecafracs/flatthirteen | src/client/app/+play/play.component.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 { ProtocolMode } from \"./ProtocolMode\";\nimport { AzureRegionConfiguration } from \"./AzureRegionConfiguration\";\n\ne... | typescript | edit | 0 | 0 | mit | 784950cfdf5661b343341cefbe346357438e64b9 | 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-common/src/authority/AuthorityOptions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { Route, Redirect, Switch } from 'react-router-dom';\nimport { Login, Register, ConfirmEmail } from './Auth';\nimport { Landing } from './Landing';\nimport ... | typescript | edit | null | null | mit | 0a21fb633dc2ca6416857d4e5cee7ae0aaa72a52 | bradyholt/aspnet-core-react-template,bradyholt/aspnet-core-react-template,bradyholt/aspnet-core-react-template,bradyholt/aspnet-core-react-template,bradyholt/aspnet-core-react-template | client-react/components/Routes.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Write typescript code for the following: Fix issue with missing export"
},
{
"role": "assistant",
"content": "Cypress.Commands.add('login', (username = 'admin') => {\n window.localStorage.setItem('USER', JSON.stringify({ username }));\n});\n\nexport {};\n"
}
] | typescript | new_file | 0 | 1 | mit | 496af05201408614fdecabde5905b24eaf0948a7 | sheldarr/Votenger,sheldarr/Votenger | e2e/cypress/support/commands.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { PlayerView } from \"../common/PlayerView\";\nimport { probablyUniqueString } from \"../common/Toolbox\";\n\nexport class PlayerViewManager {\n private playerViews: { [encounterId: string]: PlayerView } = {};\n\n constructor()... | typescript | edit | 0 | 2 | mit | a524363a3eedd2e81e60bb0ad0f0c0380b076c1e | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | server/playerviewmanager.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IElement } from '../Element';\nimport { DomElementParent } from '../DomElementParent';\nexport default class ObjNode extends DomElementParent implements IElement {\n public data?: string;\n public form?: string;\n publ... | typescript | edit | 0 | 2 | mit | fbfffcfc8b6b9431bc345a797dd846d5d2625fb9 | Flatline4/Flatline4,Flatline4/Flatline4,Flatline4/Flatline4 | src/Generation/Elements/ObjectNode.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Licensed to Cloudera, Inc. under one\n// or more contributor license agreements. See the NOTICE file\n// distributed with this work for additional information\n// regarding copyright ownership. Cloudera, Inc. licenses this file\n//... | typescript | edit | 0 | 5 | apache-2.0 | 39ebbf87e6c54dabb0df4383de86fe76d946fcab | kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,kawamon/hue,kawamon/hue,kawamon/hue,cloudera/hue,kawamon/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloudera/hue,cloude... | desktop/core/src/desktop/js/apps/notebook2/apiUtils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* tslint:disable:no-unused-variable */\n\n/*!\n * Home Component Test\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Renderer } from '@angular/core';\nimport { TestBed, async, inject } ... | typescript | edit | 0 | 1 | mit | 84938c6001b7d7028498d4df9d01a254f37d5afa | ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-interactive-maps | src/app/map/home/home.component.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as _ from 'lodash';\nimport * as React from 'react';\n\nexport const ErrorsField = (errors: any) => {\n if (_.isArray(errors)) {\n return (\n <div className=\"has-error form-group\">\n <div className=\"col-sm-10... | typescript | edit | null | null | apache-2.0 | 56b12b46551f8e831ea65522bade14c73eb6d18c | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | client/src/components/forms/errorsField.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { MediaAliases, Media } from '../../media/types';\n\nexport type Breakpoints = { [key in Media]: number };\nexport type PartialBreakpoints = Partial<Breakpoints>;\n\ninterface GridTheme {\n breakpoints?: PartialBreakpoints;\n r... | typescript | edit | 0 | 0 | mit | c08c6f249c2136a9396866fe7b0d0f6d47c96077 | dragma/styled-bootstrap-grid,dragma/styled-bootstrap-grid,dragma/styled-bootstrap-grid,dragma/styled-bootstrap-grid | src/components/ThemeProvider/types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * @author Koya Sakuma\n * Adapted from MolQL implemtation of atom-set.ts\n *\n * Copyright (c) 2017 MolQL contributors, licensed und... | typescript | edit | 0 | 1 | mit | e0ca413c54538f979ecd416eb9f38c5e9f303751 | molstar/molstar,molstar/molstar,molstar/molstar | src/mol-model/structure/query/queries/atom-set.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ntype Dictionary<T> = { [key: string]: T };\n\n/**\n * @description This should be the vue router type but it causes a lot of issues with mismatching versions so create\n * a separate interface for the route\n */\ninterface IRoute {\n\tp... | typescript | edit | 0 | 0 | mit | 020cbbf358e54d55265d42086e7dbfe46f3d5123 | larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component,larsvanbraam/vue-transition-component | src/lib/interface/IRoute.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs/Observable';\nimport {\n ActivatedRouteSnapshot,\n CanActivate,\n Router,\n RouterStateSnapshot\n} from '@angular/router';\nimport { CurrentAccountService... | typescript | edit | 0 | 2 | mit | aef05e74b9e20ecceaa58bd019056e42991d27ae | fvilers/angular2-training,fvilers/angular2-training,fvilers/angular2-training | client/app/accounts/services/account-guard.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Created by Home on 1/1/2016.\n */\nimport Log = require('../api/RTSLog')\nimport RtsIo = require(\"../api/io\");\nexport class TestTask {\n//Constructor for task\n\n public name:string;\n\n constructor(public name:string, ... | typescript | edit | 0 | 3 | mit | ce5fe238ffa1fd7208bd7f2be05c5e217e0d142b | rtsjs/rts,rtsjs/rts,rtsjs/rts | src/server/lib/TestTask.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as toBuffer from 'blob-to-buffer'\nimport * as domtoimage from 'dom-to-image'\nimport { remote, shell } from 'electron'\nimport * as fs from 'fs'\n\nconst container = document.getElementById('app-container')\n\nexport function ... | typescript | edit | 0 | 3 | mit | cbb9209b9578ffbe23432bce6d16495b0cee50ef | nrlquaker/nfov,nrlquaker/nfov | src/utils/general-utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { remote } from 'electron'\nimport { ApplicationTheme } from './application-theme'\nimport { IDisposable, Disposable, Emitter } from 'event-kit'\nimport { supportsDarkMode, isDarkModeEnabled } from './dark-theme'\n\nclass ThemeCh... | typescript | edit | 0 | 2 | mit | 3183e39527e1c9008a2d9abdfe4db7486894c4cf | shiftkey/desktop,shiftkey/desktop,say25/desktop,say25/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,desktop/desktop,j-f1/forked-desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/de... | app/src/ui/lib/theme-change-monitor.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ko from \"knockout\";\n\nimport { env } from \"./Environment\";\nimport { Metrics } from \"./Utility/Metrics\";\nimport { Store } from \"./Utility/Store\";\n\nexport class LauncherViewModel {\n constructor() {\n co... | typescript | edit | 0 | 4 | mit | 65eb6747411bb48f314952c1f2b5a61c576d6435 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/LauncherViewModel.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Router } from 'express'\nimport * as hosts from './get'\nimport * as containers from './get-containers'\n\nconst router = Router()\n\nrouter.get('/', hosts.getAll)\nrouter.get('/containers', containers.getAll)\n\nrouter.get('/:... | typescript | edit | 0 | 0 | mit | 1a44445f9e1e82eb976a0bca424e9230c0e06a97 | paypac/node-concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,the-concierge/concierge,paypac/node-concierge,the-concierge/concierge | src/api/hosts/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'rxjs/add/observable/fromEvent';\nimport 'rxjs/add/operator/startWith';\nimport 'rxjs/add/operator/sampleTime';\nimport 'rxjs/add/operator/share';\nimport { Observable } from 'rxjs/Observable';\n\nconst scrollListeners = {};\n\n/... | typescript | edit | 0 | 2 | mit | 0cb83c5f629541838fdc5432fe6b3e5e48a06b77 | tjoskar/ng2-lazyload-image,tjoskar/ng-lazyload-image,tjoskar/ng-lazyload-image,tjoskar/ng2-lazyload-image,tjoskar/ng2-lazyload-image | src/scroll-listener.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { NgForm } from '@angular/forms';\n\nimport { IProduct } from './product';\n\n@Component({\n templateUrl: './app... | typescript | edit | 0 | 2 | mit | be2c7bb7ddf70132246cb04b6c338a1528fbf079 | DeborahK/Angular-Routing,DeborahK/Angular-Routing,DeborahK/Angular-Routing | APM-Final/src/app/products/product-edit-info.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SyntaxNode } from './SyntaxNode'\n\n\nexport interface InlineSyntaxNode extends SyntaxNode {\n // Represents the text of the syntax node as it should appear inline. Some inline conventions\n // don't have any e.g. (footnotes,... | typescript | edit | 0 | 0 | mit | 5092855a3d5552264d2d6f5c52da470267d0dba3 | start/up,start/up | src/SyntaxNodes/InlineSyntaxNode.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Workspace = require('../core/Workspace');\n\ndescribe(\"Workspace\", () => {\n context(\"input = 1\\r\\n\\2\", () => {\n it(\"should split to 2 lines\", () => {\n var workspace = new Workspace();\n ... | typescript | edit | 0 | 1 | mit | 62015fbd40cc15e8da471951854b79a525faf722 | arthot/calque,arthot/calque,arthot/calque | src/Calque/test/workspace-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {isPresent} from \"../utils/core\";\nimport {attribute} from \"../annotations\";\nimport {AttributesMetadata} from \"../metadata/AttributesMetadata\";\n\nexport abstract class AbstractEntity<T> {\n @attribute() id?:string;\n\n... | typescript | edit | 0 | 2 | mit | cfa1b339d3524659319f10aa6d681e9c74618d6f | robak86/neography | lib/model/AbstractEntity.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { MergeTreeResult } from '../../models/merge'\n\ninterface IPullRequestMergeStatusProps {\n /** The result of merging the pull request branch into the base branch */\n readonly mergeStatus: Merge... | typescript | edit | null | null | mit | 1c7623648e647218f02f2000402ff08c5e4b9f19 | shiftkey/desktop,shiftkey/desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop | app/src/ui/open-pull-request/pull-request-merge-status.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path='fourslash.ts' />\r\n\r\n// @noUnusedLocals: true\r\n// @Filename: file2.ts\r\n//// [| import /* 1 */ A /* 2 */, /* 3 */ { x } from './a'; |]\r\n//// console.log(A);\r\n\r\n// @Filename: file1.ts\r\n//// export defau... | typescript | edit | 0 | 0 | apache-2.0 | abb229e91b83c06799d2f51200ff364afdc989b3 | SaschaNaz/TypeScript,TukekeSoft/TypeScript,weswigham/TypeScript,basarat/TypeScript,TukekeSoft/TypeScript,chuckjaz/TypeScript,RyanCavanaugh/TypeScript,Eyas/TypeScript,kpreisser/TypeScript,Eyas/TypeScript,donaldpipowitch/TypeScript,microsoft/TypeScript,Eyas/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScript,micro... | tests/cases/fourslash/unusedImports14FS.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// This file includes polyfills needed by Angular 2 and is loaded before\n// the app. You can add your own extra polyfills to this file.\nimport 'core-js/es6/symbol';\nimport 'core-js/es6/object';\nimport 'core-js/es6/function';\nimport... | typescript | edit | 0 | 0 | mit | 3be0c86dc8dedb49a055b04b8dd6fbe329ba5ba3 | gund/ng-http-interceptor,gund/ng2-http-interceptor,gund/ng-http-interceptor,gund/ng2-http-interceptor,gund/ng-http-interceptor,gund/ng2-http-interceptor | src/polyfills.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\nimport Toggle, { ToggleIcons } from \"react-toggle\";\n\nclass Test extends React.Component {\n handleEvent = (e: any) => {};\n\n render() {\n const icons: ToggleIcons = {\n che... | typescript | edit | null | null | mit | 204ea22674a737f75babdf3c3488a5a814769131 | dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,one-pieces/DefinitelyTyped,amir-arad/DefinitelyTyped,arusakov/DefinitelyTyped,AbraaoAlves/DefinitelyTyped,magny/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,nycdotnet/DefinitelyTyped,chrootsu/DefinitelyTyped,abbasmhd/DefinitelyTyped,AbraaoAlves/Defini... | types/react-toggle/react-toggle-tests.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n///<reference path=\"../.d.ts\"/>\nimport helpers = require(\"./../common/helpers\");\nimport util = require(\"util\")\n\nexport class ListPlatformsCommand implements ICommand {\n\tconstructor(private $platformService: IPlatformService,... | typescript | edit | 0 | 3 | apache-2.0 | 9e8ac7765160161b02eb9a97d6fc66edec508aba | tsvetie/nativescript-cli,NathanaelA/nativescript-cli,tsvetie/nativescript-cli,jbristowe/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,lokilandon/nativescript-cli,e2l3n/nativescript-cli,lokilandon/nativescript-cli,NativeScript/nativescript-cli,NathanaelA/nativescript-cli,e2l3n/nativescript-c... | lib/commands/list-platforms.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from './base';\nexport * from './coins';\nexport * from './networks';\nexport * from './errors';\nexport * from './tokenConfig';\nexport { OfcCoin } from './ofc';\nexport { UtxoCoin } from './utxo';\nexport {\n AccountCoin,\n ... | typescript | edit | 0 | 0 | apache-2.0 | a4d573e816813280cf37b6b984bd2dd782c2e84d | BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS,BitGo/BitGoJS | modules/statics/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport skift from '../src/index';\nimport { SplitTest } from '../src/splittest';\n\ndescribe('Top-level api', () => {\n\n it('should export the object', () => {\n expect(typeof skift).toBe('object');\n expect(skift).toB... | typescript | edit | 0 | 1 | mit | 080e8bc364b06ea86f51711cccecf503a46628d3 | trustpilot/skift,trustpilot/skift | tests/api.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF lic... | typescript | edit | 0 | 0 | apache-2.0 | 64abbdd6f274333fbdc3d6a51b2876c3110986d6 | zentol/flink,rmetzger/flink,greghogan/flink,StephanEwen/incubator-flink,sunjincheng121/flink,zjureel/flink,kaibozhou/flink,kl0u/flink,GJL/flink,godfreyhe/flink,tony810430/flink,tillrohrmann/flink,apache/flink,xccui/flink,godfreyhe/flink,twalthr/flink,xccui/flink,greghogan/flink,zjureel/flink,clarkyzl/flink,hequn8128/fl... | flink-runtime-web/web-dashboard/src/app/app.config.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SandboxParameter } from './interfaces';\nimport nativeAddon from './nativeAddon';\nimport { SandboxProcess } from './sandboxProcess';\nimport { existsSync } from 'fs';\n\nif (!existsSync('/sys/fs/cgroup/memory/memory.memsw.usag... | typescript | edit | 0 | 2 | mit | 6c5336c41658381788ef0269a168eaa6e5cd6f8c | t123yh/simple-sandbox,t123yh/simple-sandbox | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport AJAX from 'src/utils/ajax'\nimport {Task} from 'src/types/v2/tasks'\n\nexport const submitNewTask = async (\n url,\n owner,\n org,\n flux: string\n): Promise<Task> => {\n const request = {\n flux,\n organizationId: org... | typescript | edit | 0 | 1 | mit | 5eaf2814894e53d7f32d53193989f55d51fe3273 | influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,... | ui/src/tasks/api/v2/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport const PAGE_SIZE = 30;\n\nexport function getOffset(page?: number): number | null {\n if (page == null || page <= 1) {\n return null;\n }\n return (page - 1) * PAGE_SIZE;\n}\n\nexport function paginate(count: number): boolea... | typescript | edit | 0 | 4 | apache-2.0 | 7ef9406a3024dc17e43ae4391b75a90b3c4dccab | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | client/src/constants/paginate.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n getType,\n mustGetType\n} from '../src';\n\n\nfunction UserDecorator(target: any) { }\n\nfunction OtherDecorator(target: any) { }\n\n@UserDecorator\nexport class MyClassA {\n a: string;\n}\n\n@OtherDecorator\nexport cl... | typescript | edit | 0 | 1 | mit | 0d8de7de0b4e847bfa2c3ea75af7493627f8f2d1 | goloveychuk/tsruntime,goloveychuk/tsruntime | tests/custom_decorator.spec.ts | accepted | null | true |
[
{
"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 const updateRemoteUrl = async (\n gitStore: GitStore,\n repository: Repository,\n ... | typescript | edit | 0 | 8 | mit | 04599bb207195ad126a51124d87a597825a3fa73 | j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,shiftkey/desktop,say25/desktop,desktop/desktop,desktop/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,desktop/de... | app/src/lib/stores/updates/update-remote-url.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Action, ActionReducer } from '@ngrx/store';\r\nimport { ProductActions } from './product.actions';\r\n\r\nexport const ProductReducer: ActionReducer<any> = (state: any = [], { payload, type }) => {\r\n switch (type) {\r\n c... | typescript | edit | 0 | 4 | mit | 7a09f4c63608995029caa8fa3fee644b05ea264a | dl988/quedro,dl988/quedro,dl988/quedro | src/app/product/product.reducer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { Button } from '../lib/button'\nimport { ButtonGroup } from '../lib/button-group'\nimport { Dialog, DialogContent, DialogFooter } from '../dialog'\nimport { InstalledCLIPath } from '../lib/install... | typescript | edit | null | null | mit | 1ef9d4fb03211f97c2ae342eb7ecfea67eff9502 | artivilla/desktop,say25/desktop,kactus-io/kactus,shiftkey/desktop,desktop/desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,desktop/desktop,say25/desktop,artivilla/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/des... | app/src/ui/cli-installed/cli-installed.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport when = require('saywhen');\n\nwhen(jasmine.createSpy('test')); // $ExpectType CallHandler<Spy>\nwhen(jasmine.createSpy('test')).isCalled; // $ExpectType Proxy<Spy>\n\nwhen.captor();\t// $ExpectType MatcherProxy<{}>\nwhen.captor(j... | typescript | edit | 0 | 0 | mit | 5befd67eabb90ec9bd3308ca4319aae6d3c6ac08 | georgemarshall/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped | types/saywhen/saywhen-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { EntityMap, NluData } from './interfaces';\nimport { JovoRequestType } from './Jovo';\nimport { JovoSession } from './JovoSession';\n\nexport abstract class JovoRequest {\n [key: string]: unknown;\n\n abstract getEntities(): E... | typescript | edit | 0 | 3 | apache-2.0 | e2d1e3ac48f8cc3b3bfc0193cacd8ee0a969f9af | jovotech/jovo-framework-nodejs,jovotech/jovo-framework-nodejs | framework/src/JovoRequest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Page numbers\n// Import from 'docx' rather than '../build' if you install from npm\nimport * as fs from \"fs\";\nimport { AlignmentType, Document, Header, Packer, PageBreak, PageNumber, Paragraph, TextRun } from \"../build\";\n\ncons... | typescript | edit | 0 | 1 | mit | 93ec9eed7ab041cb46b83d195b20632277da2aab | dolanmiu/docx,dolanmiu/docx,dolanmiu/docx | demo/14-page-numbers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Service } from 'typedi';\nimport { action } from 'mobx';\nimport { range } from 'lodash';\n\nimport { ClipActions } from 'core/actions/clip';\nimport { TrackStore } from 'core/state/stores/tracks';\nimport { TimelineVector } fr... | typescript | edit | 0 | 1 | mit | df4607827430b8d34323de25e4b0bca8f46d0958 | cannoneyed/fiddle,cannoneyed/fiddle,cannoneyed/fiddle | app/core/services/load/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { SFC } from \"react\"\nimport { Media } from \"Utils/Responsive\"\nimport { ArtistSearchPreviewQueryRenderer as ArtistSearchPreview } from \"./Grids/ArtistSearch\"\nimport { MerchandisableArtworksPreviewQueryRenderer as M... | typescript | edit | null | null | mit | 7a26032665522773672feb2cb8c2c89239619dc8 | xtina-starr/reaction,xtina-starr/reaction,artsy/reaction-force,artsy/reaction,artsy/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction | src/Components/Search/Previews/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as MathJax from \"@nteract/mathjax\";\nimport React from \"react\";\nimport ReactMarkdown from \"react-markdown\";\n\nimport RemarkMathPlugin from \"./remark-math\";\n\nconst math = (props: { value: string }): React.ReactNode =... | typescript | edit | null | null | bsd-3-clause | c1f1ca41081f9e569dda7da68ebaa8d51736922f | nteract/nteract,nteract/nteract,nteract/nteract,nteract/nteract,nteract/composition,nteract/nteract,nteract/composition,nteract/composition | packages/markdown/src/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type MenuIDs =\n | 'rename-branch'\n | 'delete-branch'\n | 'preferences'\n | 'update-branch'\n | 'merge-branch'\n | 'view-repository-on-github'\n | 'compare-on-github'\n | 'open-in-shell'\n | 'push'\n | 'pull'\n | 'bra... | typescript | edit | 0 | 0 | mit | cc2eec0dde8920fb68398cb9490237e5af791c59 | kactus-io/kactus,say25/desktop,desktop/desktop,shiftkey/desktop,artivilla/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,j-f1/forked-desktop,kactus-io/kactus,kactus-io/kactus,shiftkey/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,artivilla/desktop,shiftkey/desktop,desktop/des... | app/src/main-process/menu/menu-ids.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nconst defaults = {\r\n config: {\r\n \"app\": {\r\n \"environment\": \"prod\",\r\n \"port\": 3000\r\n },\r\n \"slack\": {\r\n \"token\": \"\"\r\n },\r\n \"cwmanage\"... | typescript | edit | 0 | 0 | mit | 3d89cf9acedf37c8d6c978cad684cc3a694b2268 | sgtoj/cw-manage-slack-bot,sgtoj/cw-manage-slack-bot | src/data/defaults.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {EnvConfig} from './env-config.interface';\n\nconst ProdConfig: EnvConfig = {\n ENV: 'PROD',\n API: 'https://kd32ih1imd.execute-api.us-east-1.amazonaws.com/dev'\n};\n\nexport = ProdConfig;\n\n```\n\nApply this change: Update Pr... | typescript | edit | 0 | 0 | mit | 60fe4b675e9cf78821f8646db479b9cc578a05ac | formigio/angular-frontend,formigio/angular-frontend,formigio/angular-frontend | tools/env/prod.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from \"react\"\nimport { RouterLink, RouterLinkProps } from \"v2/Artsy/Router/RouterLink\"\nimport { BaseTab, BaseTabs, BaseTabProps, BaseTabsProps } from \"@artsy/palette\"\nimport { useIsRouteActive } from \"v2/Artsy/Rout... | typescript | edit | null | null | mit | 0baf99f6842eb272f21a3b862612b2711ee15ce9 | artsy/force-public,artsy/force,artsy/force,artsy/force,joeyAghion/force,joeyAghion/force,artsy/force,joeyAghion/force,joeyAghion/force,artsy/force-public | src/v2/Components/RouteTabs.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class HsConfig {\n cesiumTime: any;\n componentsEnabled: any;\n mapInteractionsEnabled: boolean;\n allowAddExternalDatasets: boolean;\n sidebarClosed: boolean;\n layer_order: string;\n box_layers: Array<any>;\n senslog: a... | typescript | edit | 0 | 1 | mit | 2cd2b3acd327e4ac641acb124d9b0e8ab992a006 | hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng | config.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '@angular/core';\n\nexport class Hero{\n id:number;\n name:string;\n}\n@Component({\n selector: 'my-app',\n template:`\n <h1>{{title}}</h1>\n <h2>{{hero.name}} details!</h2>\n <div><label>id: </label>{{h... | typescript | edit | 0 | 0 | mit | b167115e743d00d6d62133e3ee84a5d082bc5ad9 | amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes,amalshehu/angular-tour-of-heroes | app/app.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\ntype SchemaLeaf = \"copy\" | \"convert\";\nexport interface SchemaProperty {\n required: boolean;\n schema: Schema;\n derive?(v: any): any;\n}\ninterface SchemaObject {\n [property: string]: SchemaProperty;\n}\ntype SchemaArray = [S... | typescript | edit | 0 | 0 | mit | 52bf60a0220746c97dd238f87682d3c929eb303d | github/webauthn-json,github/webauthn-json,github/webauthn-json | src/webauthn-json/schema-format.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SHA256, binaryStringToArray, arrayToHexString } from 'pmcrypto';\n\nconst DAY_IN_MILLISECONDS = 86400000;\nconst LOCALSTORAGE_TZ_KEY = 'tzSuggestion';\n\nexport const getTimezoneSuggestionKey = async (userID: string) => {\n ... | typescript | edit | 0 | 3 | mit | fe8225bbfcb63e6db0ecd4227a61dde226a369b7 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/calendar/src/app/helpers/timezoneSuggestion.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport config from '../../../config';\nimport { INote } from '../../../models/note';\n\nexport default (object: any, note: INote) => {\n\treturn {\n\t\tid: `${config.url}/notes/${note._id}/activity`,\n\t\tactor: `${config.url}/users/${n... | typescript | edit | 0 | 3 | mit | 68a7661f08b851999bb0c7deff1d7553af904fb4 | syuilo/Misskey,syuilo/Misskey | src/remote/activitypub/renderer/create.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for koa-html-minifier 1.0\n// Project: https://github.com/koajs/html-minifier\n// Definitions by: Romain Faust <https://github.com/romain-faust>\n// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\n//... | typescript | edit | 0 | 0 | mit | b3762241eee70539835c701a626182f07771f8ac | AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,AgentME/DefinitelyTyped,dsebastien/DefinitelyTyped,borisyankov/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyType... | types/koa-html-minifier/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport express = require('express');\nimport plugin = require('./core/plugin');\n\nlet app = express();\n\nplugin.initialize();\n\napp.get('/', function (req, res) {\n res.send('Hello World!');\n});\n\napp.get('/plugin/:name/:action', ... | typescript | edit | 0 | 2 | apache-2.0 | ce3fa746d1f00a4690fbab03932a49bf3e46c029 | murmur76/beyond.ts,sgkim126/beyond.ts,murmur76/beyond.js,murmur76/beyond.js,noraesae/beyond.ts,sgkim126/beyond.ts,SollmoStudio/beyond.ts,noraesae/beyond.ts,SollmoStudio/beyond.ts,murmur76/beyond.ts | main.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as Imagemin from 'imagemin';\n\nconst input = ['fileA.jpg', 'fileB.png'];\nconst output = 'output';\nconst options = { plugins: [] };\n\nImagemin(input);\nImagemin(input, output);\nImagemin(input, options);\nImagemin(input, out... | typescript | edit | 0 | 0 | mit | 5625e639ab00979014a0eea183c38607ebe73ac2 | AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,markogresak/DefinitelyTyped,georgemarshall/DefinitelyTyped,AgentME/DefinitelyTyped,borisyankov/DefinitelyTyped,dsebastien/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,magny/DefinitelyTyped,magny/DefinitelyTyped,georgemarshall/DefinitelyTyped,geo... | types/imagemin/imagemin-tests.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass Greeter {\n element: HTMLElement;\n span: any;\n timerToken: number;\n\n constructor(element: HTMLElement) {\n this.element = element;\n this.element.innerHTML += \"The time is: \";\n this.span = ... | typescript | edit | 0 | 1 | mit | 53d0a1d0d2ed6af3b84cff1ddf2f370ce10f18bf | BillWagner/WorkingWithTypeScript,BillWagner/WorkingWithTypeScript,BillWagner/WorkingWithTypeScript | WorkingWithTypeScript/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from \"@angular/core\";\n\nconst p = require(\"../../package.json\");\n\n@Injectable()\nexport class ConfigService {\n public cfgFilterLines: boolean = true;\n\n static overpassUrl = \"https://overpass-api.de/a... | typescript | edit | 0 | 0 | mit | 9fbb7e921fe7eaa5d8952028a48461cd15a34144 | dkocich/osm-pt-ngx-leaflet,dkocich/osm-pt-ngx-leaflet,dkocich/osm-pt-ngx-leaflet | public_src/services/config.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { chain, externalSchematic, Rule } from '@angular-devkit/schematics';\nimport { Schema as NgComponentOptions } from '@schematics/angular/component/schema';\n\nexport interface ScamOptions extends NgComponentOptions {\n separat... | typescript | edit | 0 | 2 | mit | f0f598e2037d0f28f95759b656243cb6cb4e0fa8 | wishtack/wishtack-steroids,wishtack/wishtack-steroids,wishtack/ng-steroids,wishtack/ng-steroids,wishtack/wishtack-steroids | packages/schematics/src/scam/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ParsedArgs } from \"minimist\";\nimport * as path from \"path\";\nimport * as shelljs from \"shelljs\";\n\nimport * as OptionsParserInterfaces from \"./OptionsParser.interfaces\";\n\nexport abstract class OptionsParser {\n p... | typescript | edit | 0 | 3 | isc | 3edc988395a7724e10f65ea8121c494cb7961c17 | thecjharries/slim-ace,thecjharries/slim-ace | src/OptionsParser.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Intercept the scroll event and kill it to prevent the\n * infinite scroll algorithm triggering.\n */\n\nimport isEnabled from './is-enabled';\n\nconst maybeBlock = ( event ) => {\n\tif ( isEnabled() ) {\n\t\tevent.stopImmediateP... | typescript | edit | 0 | 6 | mit | 25f95c40d65cf071d1e551c5185a008519ea3075 | jordwest/news-feed-eradicator,jordwest/news-feed-eradicator,jordwest/news-feed-eradicator | src/lib/disable-infinite-scroll.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from \"@angular/core\";\n\nimport { DEFAULT_BASE_URL } from \"./client-constants\";\nimport { TokenStorage } from \"../token/token-storage\";\nimport { TokenStorageProvider } from \"../token/token-storage-provider.... | typescript | edit | 0 | 2 | mit | 0269065a85d96d0e31f209fe87b86594149f7f9c | cookingfox/stibble-api-client-angular,cookingfox/stibble-api-client-angular,cookingfox/stibble-api-client-angular | src/client/client-config.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport ReactDOMServer from 'react-dom/server';\nimport SourceMapSupport from 'source-map-support';\n\nimport { I18nextProvider } from 'react-i18next';\nimport FormItemChangeGroup from '../app/javascript/FormPresenter/ItemChangeDisplays/... | typescript | edit | null | null | mit | 4a3df925c4d8195ffcf738c2888011f7b8836847 | neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode | script/renderFormResponseChangeGroup.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { getAll } from '@waldur/core/api';\nimport { translate } from '@waldur/i18n';\nimport { validateRuntimeState } from '@waldur/resource/actions/base';\nimport { ResourceAction, ActionContext } from '@waldur/resource/actions/types'... | typescript | edit | 0 | 1 | mit | d93376e74d695c3636ab81a2c3e4934ab3671ae0 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/openstack/openstack-volume/actions/AttachAction.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Dispatcher } from './index'\nimport { GitError } from '../git/core'\nimport { GitError as GitErrorType } from 'git-kitchen-sink'\nimport { PopupType as popupType } from '../app-state'\n\n/** Handle errors by presenting them. *... | typescript | edit | 0 | 3 | mit | 3192792ee3a823b23db40e69751cc65df7e9b862 | artivilla/desktop,shiftkey/desktop,artivilla/desktop,hjobrien/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,shiftkey/desktop,gengjiawen/desktop,j-f1/forked-desktop,gengjiawen/desktop,gengj... | app/src/lib/dispatcher/error-handlers.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport EventLoader from './event/event'\nimport $ from \"jquery\";\n\nlet eventLoader = new EventLoader();\n\nclass MixitApp{\n bootstrap(){\n eventLoader.loadEvent('mixit16')\n .then(response => response.json())\n ... | typescript | edit | 0 | 1 | apache-2.0 | 573657f6fe5c704f952bb5b41ceafc137c480775 | sdeleuze/mixit,sdeleuze/mixit,sdeleuze/mixit,sdeleuze/mixit,mixitconf/mixit,mixitconf/mixit,mix-it/mixit,mixitconf/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit,mixitconf/mixit | src/main/ts/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ErrorResponse } from \"./types\";\nimport { GLOBAL_OPTIONS, searchParams } from \"./utils\";\nimport { get } from \"https\";\n\nexport const fetchGet = <T>(\n url: string,\n data: { [x: string]: string } = {},\n signal: any ... | typescript | edit | 0 | 4 | mit | e7c8a816c24293a7f4e93ccd82de863d6abb15b2 | what3words/w3w-node-wrapper,OpenCageData/js-geo-what3words,what3words/w3w-node-wrapper | src/fetch.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Request, Response } from \"express\";\n\nexport function config() {\n return {\n cors: {\n origins: \"https://foo.com,http://bar.com\",\n },\n google: {\n analytics: {\n ... | typescript | edit | 0 | 1 | mit | 3ee7f529a99d924a5a448d22a5ada1361465a67d | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | functions/src/__mocks__/firebase-functions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { createStore, compose, applyMiddleware } from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport * as immutableTransform from 'redux-persist-transform-immutable';\r\nimport { autoRehydrate, persistStore } from ... | typescript | edit | 0 | 1 | mit | aa5e993e931fa3f9e0e77346cef4239302df1ae5 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/store.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Header from \"../components/Header\"\nimport { Fragment, PropsWithChildren, FunctionComponent } from \"react\"\nimport Footer from \"../components/Footer\"\n\nconst Index: FunctionComponent = ({ children }: PropsWithChildren<unkn... | typescript | edit | null | null | mit | cb9a6d55a39bdd855863884e9bc2602856a95ca4 | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | layouts/main.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react'\nimport {shallow} from 'enzyme'\n\nimport KapacitorRules from 'src/kapacitor/components/KapacitorRules'\n\nimport {source, kapacitorRules} from 'test/resources'\n\njest.mock('src/shared/apis', () => require('mo... | typescript | edit | null | null | mit | e0111010c7acd77602b8b33a9a19663f1bf61d0e | influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,li-ang/influxdb,influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,mark-rushakoff/influxdb,nooproblem/influxdb,influxdata/inf... | ui/test/kapacitor/components/KapacitorRules.test.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as uuid from 'uuid'\n\nimport AssetPointer from '../Values/AssetPointer'\nimport ColorRGB from '../Values/ColorRGB'\nimport ColorRGBA from '../Values/ColorRGBA'\nimport Expression from '../Values/Expression'\n\nexport type Keyf... | typescript | edit | 0 | 1 | mit | cc7d3a06402d05bb17582ebe02d0868fe7ab1395 | Ragg-/Delir,Ragg-/Delir,Ragg-/Delir,Ragg-/Delir | packages/delir-core/src/Entity/Keyframe.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Client, Message } from 'discord.js';\n\nimport { isHumanMessage } from './utils/message-utils';\nimport Dispatcher from './dispatcher';\n\nimport { Raider } from './modules/raider';\n\nimport config from './config/config';\n\n\... | typescript | edit | 0 | 2 | mit | 5e57d604cfb28b740bae7e56fe6f424b1c00e12d | jchakra/discord-raider | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as bootstrap from './bootstrap';\n\n//\n// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING\n//\n// This file is providing the test runner to use when running extension tests.\n// By default the test runner in u... | typescript | edit | 0 | 2 | mit | 74b148bab9c61510ca08b7b616cb92c84c291cfc | neild3r/vscode-php-docblocker | test/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport class Constants {\n public static latestExtensionVersion = \"~0.2\";\n public static extensionVersionAppSettingName = \"FUNCTIONS_EXTENSION_VERSION\";\n}\n\n```\n\nApply this change: Update latest extension version to \"~0.... | typescript | edit | 0 | 0 | apache-2.0 | 5649fad514542896d0911a7b13cdd34102ce5e91 | chunye/azure-functions-ux,projectkudu/WebJobsPortal,chunye/azure-functions-ux,projectkudu/WebJobsPortal,agruning/azure-functions-ux,agruning/azure-functions-ux,projectkudu/WebJobsPortal,projectkudu/WebJobsPortal,agruning/azure-functions-ux,projectkudu/AzureFunctions,chunye/azure-functions-ux,chunye/azure-functions-ux,a... | AzureFunctions.Client/app/models/constants.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { Collapsible, Card, Stack, TextStyle, Caption } from '@shopify/polaris';\r\nimport { HitDatabaseEntry } from '../../../types';\r\nimport EditBonusButton from './EditBonusButton';\r\n\r\nexport ... | typescript | edit | null | null | mit | 731a915baa665a9e2b06bc68c2c97d0c058a2454 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/Calendar/SelectedHitDate/HitDbEntryCollapsible.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport getFileMetadata from 'file-metadata'\n\n/**\n * Attempts to determine if the provided path is an application bundle or not.\n *\n * macOS differs from the other platforms we support in that a directory can\n * also be an applicat... | typescript | edit | 0 | 2 | mit | 89fe9e04064f76918d0a00084a16839c69b46861 | desktop/desktop,desktop/desktop,desktop/desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop,shiftkey/desktop | app/src/lib/is-application-bundle.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as algoliasearch from 'algoliasearch'\nimport { Request, Response } from 'express'\n\nimport { FirebaseApp } from '../firebase'\nimport { AlgoliaConfig } from './config'\nimport { indexEvents } from './index-events'\nimport { i... | typescript | edit | 0 | 2 | apache-2.0 | c774c4b5caea6173d73a2696ce8bfd537876212e | squanchy-dev/squanchy-firebase,squanchy-dev/squanchy-firebase | functions/src/search/index-contents.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { DiffMatchPatch, DiffOp } from './diffMatchPatch';\n\n@Injectable()\nexport class DiffMatchPatchService {\n\n constructor(private dmp: DiffMatchPatch) { }\n\n ngOnInit () {\n \... | typescript | edit | 0 | 1 | mit | 5fe79b3091558941cb2b94ef0882575cfaef21be | elliotforbes/ng-diff-match-patch,elliotforbes/ng-diff-match-patch,elliotforbes/ng-diff-match-patch | projects/ng-diff-match-patch/src/lib/diffMatchPatch.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { CommonNodeProps } from './commonNodeProps';\nimport {NodeRenderStrategy} from './nodeRenderStrategy';\nimport {TreeViewNavigationUtils} from './treeViewNavigationUtils';\n\nexport interface Le... | typescript | edit | null | null | mit | d4a8828dc669a2f4691031a57f90fa9aac9c040e | OneNoteDev/OneNotePicker-JS,OneNoteDev/OneNotePicker-JS,OneNoteDev/OneNotePicker-JS | src/components/treeView/leafNode.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Injectable} from '@angular/core';\nimport {Candidate} from '../models/Candidate';\nimport {Polygon} from '../models/Polygon';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CandidateService {\n cands: Map<string, Can... | typescript | edit | 0 | 1 | apache-2.0 | b4771305d32bbbb53099da8722e627f3421b39fb | googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020 | step-release-vis/src/app/services/candidate.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport ApolloClient from 'apollo-client';\nimport { InvariantError } from 'ts-invariant';\n\nimport { getApolloContext } from './ApolloContext';\n\nexport interface ApolloConsumerProps {\n children: (client:... | typescript | edit | null | null | mit | 2c66b19dd2fe5dccb41d4191d6c6c0a4a8380033 | apollostack/react-apollo,apollographql/react-apollo,apollographql/react-apollo,apollostack/react-apollo | packages/common/src/context/ApolloConsumer.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport { ArchitectCommand... | typescript | edit | 0 | 2 | mit | 123735eeb1d4d558fec9077257de5857ba786e62 | catull/angular-cli,angular/angular-cli,geofffilippi/angular-cli,catull/angular-cli,catull/angular-cli,ocombe/angular-cli,catull/angular-cli,ocombe/angular-cli,Brocco/angular-cli,angular/angular-cli,clydin/angular-cli,ocombe/angular-cli,ocombe/angular-cli,ocombe/angular-cli,angular/angular-cli,clydin/angular-cli,Brocco/... | packages/angular/cli/commands/e2e-impl.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.