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 * as cors from 'cors';\nimport * as passport from 'passport';\nimport { Strategy as BearerStrategy } from 'passport-http-bearer';\n\nimport { OauthAccessToken } from 'server/models';\n\npassport.use(new BearerStrategy((token, don... | typescript | edit | 0 | 2 | mit | 647bb0cba533a9b58a062c7c31413e23b411bb5f | hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website,hackcambridge/hack-cambridge-website | src/server/routes/hc-api/auth.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as sinon from \"sinon\";\n\n// tslint:disable:max-classes-per-file\n\nexport class LoggerStub {\n public static create() {\n return {\n debug: () => {\n // ignore\n },\n ... | typescript | edit | 0 | 1 | mit | e8081b2b37a76050eed35273fb6251ede25ca8a6 | jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr,jp7677/hellocoreclr | ui/test/stubs.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n\nclass Visibility {\n\n private static isHidden: boolean;\n\n static changed = new Signal();\n\n static visible() {\n return !Visibility.isHidden;\n }\n\n static hidden() {\n return Visibility.isHidden;\n ... | typescript | edit | 0 | 2 | mit | 5915b48f6c719a51faf5baae5e7f057d2533b6cd | Rohansi/RohBot,arcaneex/hash,arcaneex/hash,Rohansi/RohBot,arcaneex/hash,Rohansi/RohBot,arcaneex/hash,Rohansi/RohBot | Web/js/Visibility.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { c } from 'ttag';\nimport { Referral, ReferralState } from '@proton/shared/lib/interfaces';\n\ninterface Props {\n referral: Referral;\n}\n\nconst ActivityCell = ({ referral }: Props) => {\n let message: React.ReactNode = ... | typescript | edit | null | null | mit | a1fa3d0be5b14070c35232180da861923306107f | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/referral/rewards/table/ActivityCell.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*\neslint\n@typescript-eslint/explicit-function-return-type: 0,\n@typescript-eslint/no-explicit-any: 0\n*/\nexport default function setupAuthState({ userService, serverAlias }) {\n const state = {\n accessToken: null, // The JWT\n ... | typescript | edit | 0 | 2 | mit | 57606db7ccb839e063f046527376f45defe50ea7 | feathers-plus/feathers-vuex,feathers-plus/feathers-vuex | src/auth-module/auth-module.state.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 | 025009b50f2b8ad20405e21652c610413411e0ad | gagangupt16/vscode,microsoft/vscode,bsmr-x-script/vscode,zyml/vscode,hungys/vscode,Zalastax/vscode,matthewshirley/vscode,ups216/vscode,DustinCampbell/vscode,zyml/vscode,williamcspace/vscode,zyml/vscode,KattMingMing/vscode,stringham/vscode,rishii7/vscode,stringham/vscode,the-ress/vscode,mjbvz/vscode,0xmohit/vscode,jchad... | src/vs/workbench/parts/terminal/electron-browser/terminalActions.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Main entrypoint for the public APIs handlers\n */\n\nimport { createAzureFunctionHandler } from \"azure-function-express\";\nimport * as express from \"express\";\n\nconst app = express();\n\nimport * as mongoose from \"mongoose... | typescript | edit | 0 | 0 | mit | d1e58637ec667b2108964b3d4d847b0c2f91bd6c | teamdigitale/digital-citizenship-functions,teamdigitale/digital-citizenship-functions,teamdigitale/digital-citizenship-functions | PublicApiV1/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass Texture {\n source: HTMLImageElement;\n\n constructor(source: HTMLImageElement = undefined) {\n this.source = source;\n }\n\n static fromImage(url: string): Texture {\n const image = new Image();\n ... | typescript | edit | 0 | 1 | apache-2.0 | fc1d833490d8cee11e9f271b100690f00bab81c6 | Dia6lo/Mechanism,Dia6lo/Mechanism,Dia6lo/Mechanism | Mechanism/Texture.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from \"react\";\n\nimport { CombatantState } from \"../../common/CombatantState\";\n\nexport function CombatantRow(props: {\n combatantState: CombatantState;\n isActive: boolean;\n isSelected: boolean;\n showIndexL... | typescript | edit | null | null | mit | ebb8d80d1182319ee49feb3e11f8fe45751b6034 | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/InitiativeList/CombatantRow.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Assignment, Class } from \"../models\";\n\nexport interface AppStore {\n CURRENT_ASSIGNMENT: Assignment,\n CURRENT_CLASS: Class\n}\n\n```\n\nApply this change: Add all classes property in AppStore interface"
},
{
"rol... | typescript | edit | 0 | 0 | mit | 883a5a9f69de89a554c9b3c7936023792e9fe777 | bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder,bryant-pham/brograder | src/app/shared/reducers/app.store.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Atom from './editors/atom'\nimport SublimeText2 from './editors/sublime-text2'\nimport SublimeText3 from './editors/sublime-text3'\nimport Vim from './editors/vim'\n\n\nexport default class EditorManager {\n\n editors: Object\n\... | typescript | edit | 0 | 1 | bsd-3-clause | 4c1af878eb19e18f52c911ba30fb11ce9070781e | wakatime/desktop,wakatime/wakatime-desktop,wakatime/wakatime-desktop,wakatime/desktop,wakatime/desktop | src/editorManager.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 '../style/index.css';\n\nexport * from './clientsession';\nexport * from './clipboard';\nexport * from './collapse';\nexpo... | typescript | edit | 0 | 0 | bsd-3-clause | 468801e4ebfe636095d637e3290dcfa74383f9f6 | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | packages/apputils/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport LexicalModelCompiler from '../';\nimport {assert} from 'chai';\nimport 'mocha';\n\nconst path = require('path');\n\n\ndescribe('LexicalModelCompiler', function () {\n describe('#generateLexicalModelCode', function () {\n cons... | typescript | edit | 0 | 1 | apache-2.0 | 9589778597f660d3f1fa78c347186c6d0931dd9a | tavultesoft/keymanweb,tavultesoft/keymanweb | developer/js/tests/test-punctuation.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nnamespace DashboardHome {\n angular.module(\"dashboard.login\",\n [\n \"auth0\",\n \"ui.router\"\n ])\n .config(function myAppConfig($stateProvider) {\n $stateProvider\n ... | typescript | edit | 0 | 1 | mit | f9e273739dc2604db47b3e67578aac3a78c8792e | MrHen/hen-auth,MrHen/hen-auth,MrHen/hen-auth | src/dashboard/login/login.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SecurePayment_artwork } from \"__generated__/SecurePayment_artwork.graphql\"\nimport React from \"react\"\nimport { storiesOf } from \"storybook/storiesOf\"\nimport { Section } from \"Utils/Section\"\nimport { SecurePayment } f... | typescript | edit | null | null | mit | 9a8153718990fbcdbacc4ea62c45b95762933a97 | xtina-starr/reaction,artsy/reaction,artsy/reaction,xtina-starr/reaction,artsy/reaction-force,xtina-starr/reaction,xtina-starr/reaction,artsy/reaction,artsy/reaction-force | src/Apps/Artwork/Components/TrustSignals/__stories__/TrustSignals.story.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ReturnStatement } from 'typescript';\nimport { Context } from '../contexts';\nimport { EmitResult, emit } from './';\n\nexport const emitReturnStatement = ({ expression }: ReturnStatement, context: Context): EmitResult => {\n ... | typescript | edit | 0 | 1 | mit | 57ea93dce4b45e2be02ca50f69aa056a6f66c4f0 | AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter | src/emitter/statements.ts | rejected_duplicate | Near-duplicate of sample 113940 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Service } from '@foal/core';\nimport { Sequelize, SequelizeConnectionService, SequelizeService } from '@foal/sequelize';\n\n@Service()\nexport class Connection extends SequelizeConnectionService {\n constructor() {\n super(... | typescript | edit | 0 | 1 | mit | 25659a79343ed5b7805427f697602e193d89ddf9 | FoalTS/foal,FoalTS/foal,FoalTS/foal,FoalTS/foal | packages/examples/src/app/my-module/services/user2.controller.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (C) 2020 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a ... | typescript | edit | 0 | 0 | apache-2.0 | c923621226e0b5626f00d0bb9d42b7477f321d83 | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | polygerrit-ui/app/services/flags/flags.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Component,\n ComponentElement,\n createContext,\n createElement as r,\n Props,\n ReactElement,\n ReactPortal,\n SFCElement,\n} from 'react'\nimport uniqueid = require('uniqueid')\n\nexport interface IIdProviderProps {... | typescript | edit | 0 | 2 | mit | c29ea6e4906c466f550c1bd12d27ceb1f12de10e | thirdhand/components,thirdhand/components | packages/react-sequential-id/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from '@angular/core';\nimport { Error } from './error/error';\nimport { Response } from '@angular/http';\nimport { Observable } from 'rxjs/Rx';\nimport { environment } from '../../environments/environment';\n\n@Inj... | typescript | edit | 0 | 5 | mit | 155f428f2debd2729eb0972a2795998095f431bf | Crunchy-Torch/coddy,Crunchy-Torch/coddy,Crunchy-Torch/coddy,Crunchy-Torch/coddy,Crunchy-Torch/coddy | front/src/app/shared/base.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n ActivatedRouteSnapshot,\n DetachedRouteHandle,\n RouteReuseStrategy,\n} from '@angular/router';\n\n/* reuse the SearchComponent instead of recreating it */\nexport class CustomRouteReuseStrategy implements RouteReuseStrate... | typescript | edit | 0 | 3 | mit | 4a96b42d61c9c08ac649d207557af04c96c990ad | ksmai/spotify-clone,ksmai/spotify-clone,ksmai/spotify-clone | src/app/reuse-strategy.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/*!\n * Leaflet Button Component\n *\n * Copyright(c) Exequiel Ceasar Navarrete <<EMAIL>>\n * Licensed under MIT\n */\n\nimport { Component, OnInit, Input, Output, ViewChild, EventEmitter } from '@angular/core';\n\n@Component({\n selec... | typescript | edit | 0 | 3 | mit | 5cf588a1b3dbc8cd8e479236e0228bb4044afc37 | ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2 | src/app/leaflet-button/leaflet-button.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse } from \"@angular/common/http\";\nimport { Injectable } from \"@angular/core\";\nimport { Observable, of } from \"rxjs\";\nimport { BlobAction } from \"./blob-a... | typescript | edit | 0 | 5 | apache-2.0 | f1a882a5dc8eff0f6efa8f302bfa0ee0beab4800 | googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020,googleinterns/step263-2020 | capstone-project/src/main/angular-webapp/src/app/mock-http-interceptor.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright (c) Martin Costello, 2017. All rights reserved.\n// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.\n\ndeclare var SwaggerUIBundle: any;\ndeclare var SwaggerUISt... | typescript | edit | 0 | 2 | apache-2.0 | d6b1a70910906aa2b2ea9004efffe1b456c39a35 | martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site,martincostello/alexa-london-travel-site | src/LondonTravel.Site/assets/scripts/ts/Swagger.ts | rejected_duplicate | Near-duplicate of sample 114036 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * angular2-cookie-law\n *\n * Copyright 2016-2018, @andreasonny83, All rights reserved.\n *\n * @author: @andreasonny83 <<EMAIL>>\n */\n\nimport { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexpo... | typescript | edit | 0 | 1 | mit | c4971f5d62cc09a3d1d6356822f494697d602776 | andreasonny83/angular2-cookie-law,andreasonny83/angular2-cookie-law,andreasonny83/angular2-cookie-law | projects/angular2-cookie-law/src/lib/angular2-cookie-law.service.ts | rejected_duplicate | Near-duplicate of sample 112921 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Resource as Res,\n ResourceName as Name,\n SpecialStatus,\n TaggedResource\n} from \"farmbot\";\nimport { generateUuid } from \"../resources/util\";\n\nlet ID_COUNTER = 0;\n\nexport function fakeResource<T extends Name,\n... | typescript | edit | 0 | 0 | mit | e85e9cc8c9e340c171c0ad871e635547c883611b | RickCarlino/farmbot-web-app,FarmBot/farmbot-web-app,gabrielburnworth/Farmbot-Web-App,RickCarlino/farmbot-web-app,FarmBot/Farmbot-Web-API,FarmBot/farmbot-web-app,FarmBot/Farmbot-Web-API,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,gabrielburnworth/Farmbot-Web-App,FarmBot/Farmbot-Web-API,FarmBot/farm... | webpack/__test_support__/fake_resource.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SearchResult, TOpticonMap } from '../types';\r\nimport { SearchSuccess } from '../actions/search';\r\n\r\nexport const updateTurkopticon = (data: TOpticonMap) => (\r\n hit: SearchResult\r\n): SearchResult => ({\r\n ...hit,\r\... | typescript | edit | 0 | 1 | mit | 96d9393e65ba50198632a39f35bb9293660ebb8d | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/search.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ExtensionContext, window } from \"vscode\";\nimport { getChannel } from \"../commands/channels\";\nimport { logError } from \"../utils/log\";\nimport { FlutterDaemon } from \"./flutter_daemon\";\nimport { LogMessage, ShowMessag... | typescript | edit | 0 | 5 | mit | 62d7f8370b73f5c353185eb763cbdae78fdbf73b | Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code | src/flutter/daemon_message_handler.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as messages from '@cucumber/messages'\n\nexport default function createLocation(props: {\n line?: number\n column?: number\n}): messages.Location {\n const location: messages.Location = { ...props }\n if (location.line === ... | typescript | edit | 0 | 1 | mit | b4c569e3df4ba7fd3402f79968421231dba1086c | cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin,cucumber/gherkin | javascript/src/createLocation.ts | rejected_duplicate | Near-duplicate of sample 113321 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { EmitResult, emit } from './';\nimport { Context } from '../contexts';\nimport { SourceFile } from 'typescript';\n\nexport const emitSourceFile = (node: SourceFile, context): EmitResult =>\n node.statements\n .reduce((result... | typescript | edit | 0 | 1 | mit | 3c4c67365c3857679d21c90c7c0c9de22b85bfd1 | AmnisIO/typewriter,AmnisIO/typewriter,AmnisIO/typewriter | src/emitter/source.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport chalk from 'chalk';\nimport path from 'path';\nimport { logger } from '@storybook/node-logger';\nimport { Stats } from 'webpack';\n\nimport fs from 'fs-extra';\n\nexport async function outputStats(directory: string, previewStats?... | typescript | edit | 0 | 3 | mit | d6df1876c805eebc765aa23c73dd1c356ef82531 | storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook | lib/core-server/src/utils/output-stats.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 { AuthenticationResult, AuthError, CommonEndSessionRequest } from \"@azure/msal-common\";\nimport { EventType } from \".... | typescript | edit | 0 | 0 | mit | 5afe9ca2752d8f92f099dd2e1c11a76b28a9c1ab | 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-browser/src/event/EventMessage.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit } from '@angular/core';\r\nimport { AppService } from '../../shared/app.service';\r\nimport { TranslateService } from '@ngx-translate/core';\r\n\r\nlet readme = require('html-loader!markdown-loader!./../../../... | typescript | edit | 0 | 1 | mit | 9678199ae0909d5ff7c3d82469ea46e8bbce968e | site15/rucken,site15/rucken,rucken/core,site15/rucken,site15/rucken,rucken/core,rucken/core,rucken/core | src/pages/home-page/home-page.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n* Types.ts\n* Author: David de Regt\n* Copyright: Microsoft 2016\n*\n* Shared basic types for ReSub.\n*/\n\nexport type SubscriptionCallbackFunction = { (keys?: string[]): void; }\nexport type SubscriptionCallbackBuildStateFunction... | typescript | edit | 0 | 0 | mit | f504fd07f880149161a7d20149ad13f9e2ff5d3f | berickson1/ReSub,berickson1/ReSub,berickson1/ReSub | src/Types.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport '../lib/gj-lib-client/utils/polyfills';\nimport './main.styl';\n\nimport { store } from './store/index';\nimport { router } from './views/index';\nimport { App } from './app';\nimport { bootstrapShortkey } from '../lib/gj-lib-cli... | typescript | edit | 0 | 1 | mit | 2e0142f8a9afb756c56211c9214880ed48bb6e1f | gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt,gamejolt/gamejolt | src/app/bootstrap.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {FirstLetterPipe} from './first-letter.pipe';\n\nfdescribe('FirstLetterPipe', () => {\n it('should return empty string for null', () => {\n const pipe = new FirstLetterPipe();\n const val = pipe.transform(null);\n expec... | typescript | edit | 0 | 1 | mit | ad843c6397a12db25539fea020156ed34c999fb1 | lukaszkostrzewa/graphy,lukaszkostrzewa/graphy,lukaszkostrzewa/graphy | src/app/common/first-letter.pipe.spec.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Dispatch } from 'react-redux';\r\nimport { Hit, Requester } from '../types';\r\nimport { Map } from 'immutable';\r\nimport {\r\n HitPageAction,\r\n getHitPageSuccess,\r\n getHitPageFailure\r\n} from '../actions/hits';\r\nimp... | typescript | edit | 0 | 3 | mit | 992a927d5dff73a8b8a4e80647edb7747a060b26 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/requests/fetchQueue.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Type definitions for async-retry 1.2\n// Project: https://github.com/zeit/async-retry#readme\n// Definitions by: Albert Wu <https://github.com/albertywu>\n// Pablo Rodríguez <https://github.com/MeLlamoPablo>\n// Defin... | typescript | edit | 0 | 1 | mit | 93d5d645d3c2dcf32f2d199d14e0208e9d85a889 | georgemarshall/DefinitelyTyped,one-pieces/DefinitelyTyped,magny/DefinitelyTyped,AgentME/DefinitelyTyped,AgentME/DefinitelyTyped,markogresak/DefinitelyTyped,AgentME/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,rolandzwaga/DefinitelyTyped,dsebastien/DefinitelyTyped,AgentME/DefinitelyTyped,georgema... | types/async-retry/index.d.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { hot } from 'react-hot-loader/root';\nimport React from 'react';\nimport { ProtonApp, useAuthentication, PublicAuthenticationStore, PrivateAuthenticationStore } from 'react-components';\nimport sentry from 'proton-shared/lib/hel... | typescript | edit | null | null | mit | 0be9d7a8ff62f5f8805108e377e12f41ee017a11 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/vpn-settings/src/app/App.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n Component,\n Input,\n Output,\n EventEmitter,\n OnInit,\n OnChanges,\n SimpleChange\n} from '@angular/core';\n\n@Component({\n selector: 'mrs-paginator',\n template: require('./paginator.component.html'),\n styles: ... | typescript | edit | 0 | 3 | mit | f2f518c4ed1312e96a97529f5e103d7e912f5869 | SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend,SBats/marvel-reading-stats-frontend | src/app/paginator/paginator.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport default () => [\n\t'(=^・・^=)',\n\t'v(\\'ω\\')v',\n\t'🐡( \\'-\\' 🐡 )フグパンチ!!!!',\n\t'🖕(´・_・`)🖕'\n][Math.floor(Math.random() * 4)];\n\n```\n\nApply this change: Use Array.prototype.length to avoid magic number"
},
{
"r... | typescript | edit | 0 | 1 | mit | fa95641f88df107abd17d8218272b40888e8535c | Tosuke/misskey,ha-dai/Misskey,syuilo/Misskey,syuilo/Misskey,Tosuke/misskey,Tosuke/misskey,ha-dai/Misskey,Tosuke/misskey,Tosuke/misskey | src/client/app/common/scripts/get-kao.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ConfigService } from './config.service';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nexport * from './log.service';\n\nexport function fatoryConfig(isProdu... | typescript | edit | 0 | 1 | mit | e5f0ee373b66063f9304cd93ae4875aed5346138 | nguyentk90/ngx-log,nguyentk90/ngx-log | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../../node_modules/tslint/typings/typescriptServices.d.ts\" />\r\n/// <reference path=\"../../node_modules/tslint/lib/tslint.d.ts\" />\r\n\r\n\r\nexport class Rule extends Lint.Rules.AbstractRule {\r\n public st... | typescript | edit | 0 | 6 | apache-2.0 | 9da964f019b60880516d549b39849caf23e97a89 | weswigham/TypeScript,donaldpipowitch/TypeScript,samuelhorwitz/typescript,alexeagle/TypeScript,vilic/TypeScript,alexeagle/TypeScript,TukekeSoft/TypeScript,donaldpipowitch/TypeScript,fabioparra/TypeScript,mihailik/TypeScript,thr0w/Thr0wScript,blakeembrey/TypeScript,kimamula/TypeScript,basarat/TypeScript,erikmcc/TypeScrip... | scripts/tslint/typeOperatorSpacingRule.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {Request} from '../libs/request';\n\nlet API_ROOT = 'ws.audioscrobbler.com'\nlet API_VERSION = '2.0'\nlet API_KEY = '59f553e943f2ea7c9e83f19e113b21b8'\n\nexport class LastFMClient {\n\n apiRoot: string\n protocol: string = 'htt... | typescript | edit | 0 | 1 | mit | bd7dc86c1252d4ecb623c5ad5638baf588edc214 | yadomi/lastagram,yadomi/lastagram,yadomi/lastagram | app/services/lastfm.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component } from '../infrastructure/component';\n\nexport class TestComponent extends Component {\n tag(): string {\n return 'test';\n }\n template(): string {\n return '<h1>This component is a little tes... | typescript | edit | 0 | 1 | mit | dfad6c77093888cb596a3e0f288891a764632980 | Vtek/frameworkless,Vtek/frameworkless,Vtek/frameworkless | src/app/components/test.component.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport type ParserInput = any;\nexport type ParseFn<T> = (x: ParserInput) => T;\n\nexport class ParserError extends Error {\n constructor(\n public readonly expected: string,\n public readonly found: string\n ) {\n super(`Exp... | typescript | edit | 0 | 1 | mit | 432958e814c7af4f5670f134b7a310adf47b44ce | swissmanu/spicery,swissmanu/spicery,swissmanu/spicery | src/parsers/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React from 'react';\nimport { c } from 'ttag';\nimport { LanguageSection, ThemesSection, SettingsPropsShared } from 'react-components';\nimport locales from 'proton-shared/lib/i18n/locales';\n\nimport PrivateMainSettingsAreaWithP... | typescript | edit | null | null | mit | bc9e3e31b0cf1fe3c8387c4e5b555ff3900b98f0 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/vpn-settings/src/app/containers/GeneralContainer.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { SearchItem, Requester } from '../types';\r\nimport { generateBadges } from './badges';\r\nimport { truncate } from './formatting';\r\n\r\ntype ExceptionStatus = 'neutral' | 'warning' | 'critical';\r\nexport interface ExceptionD... | typescript | edit | 0 | 2 | mit | 11542041993730cb75e652fd66980406ccc7592e | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/utils/hitItem.ts | rejected_duplicate | Near-duplicate of sample 112964 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ENV } from '@waldur/core/services';\n\n// Avoid to re-download the fonts every time pdfmake is used, useful for SPA.\nlet pdfMakeInstance: any = null;\n\nexport async function loadPdfMake() {\n if (!pdfMakeInstance) {\n con... | typescript | edit | 0 | 3 | mit | d2513fa18a86c3a179b42f046c6e6a0edaf02357 | opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport,opennode/waldur-homeport | src/shims/pdfmake.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\n\nimport { StyledSeparator } from './styles';\n\nexport interface IProps {\n i?: number;\n visible?: boolean;\n menuVisible: boolean;\n}\n\nexport default class MenuSeparator extends React.Component<I... | typescript | edit | null | null | apache-2.0 | 3bf1feb090378c2ed96f7c5317ca9e11a7078224 | Nersent/Wexond,Nersent/Wexond | src/shared/components/ContextMenu/Separator/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as firebase from \"firebase\";\nimport * as url from \"url\";\n\nconst config = require(\"../config.json\");\n\nfirebase.initializeApp({\n apiKey: config.firebase.apiKey,\n authDomain: `${config.firebase.projectId}.fireba... | typescript | edit | 0 | 3 | mit | 1dd399dbaed510088c4ddf9bcf0e5235e7ec9b80 | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | chrome-extension/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nnamespace Core {\n\n const DEFAULT_USER: string = 'public';\n\n /**\n * @deprecated TODO Temporal type alias to avoid breaking existing code\n */\n export type UserDetails = AuthService;\n\n /**\n * UserDetails service that re... | typescript | edit | 0 | 2 | apache-2.0 | 0255f2827d1e9b4de4aeef9b1ab9aaffa55b1ee1 | hawtio/hawtio-core,hawtio/hawtio-core,hawtio/hawtio-core | src/app/auth/auth.service.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport 'jest';\nimport { CommitBox } from '../../src/components/CommitBox';\nimport { classes } from 'typestyle';\nimport {\n stagedCommitButtonStyle,\n stagedCommitButtonReadyStyle,\n stagedCommitButtonDisabledStyle\n} from '../../s... | typescript | edit | null | null | bsd-3-clause | 53530f59565dda0e74f6b64971c7a8b6839a5f76 | jupyterlab/jupyterlab-git,jupyterlab/jupyterlab-git,jupyterlab/jupyterlab-git | tests/test-components/CommitBox.spec.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { useState } from 'react';\nimport { c } from 'ttag';\nimport { Member } from 'proton-shared/lib/interfaces/Member';\n\nimport { Alert, Input, ErrorButton, DeleteModal } from '../../components';\n\ninterface Props {\n m... | typescript | edit | null | null | mit | 2359ad4ad507406dff042a878632e20e6e9f02d6 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | packages/components/containers/members/DeleteMemberModal.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport function shuffle<T>(xs: T[]): T[] {\n\t'use strict';\n\tlet n = xs.length;\n\twhile (n) {\n\t\tconst i = Math.floor(Math.random() * n--);\n\t\tconst t = xs[n];\n\t\txs[n] = xs[i];\n\t\txs[i] = t;\n\t}\n\treturn xs;\n}\n\nexport f... | typescript | edit | 0 | 2 | mit | f7d91081831e85de1b93a4e8ce3da443a62924c9 | AyaMorisawa/node-powerful | src/list.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Routes, RouterModule } from '@angular/router';\nimport { Home } from './home';\nimport { About } from './about';\nimport { NoContent } from './no-content';\n\nimport { RacersComponent } from './racers';\nimport { TeamsComponent... | typescript | edit | 0 | 1 | mit | 2f5c54ee206d06e607074413fed8c5db2ead0937 | MarkProvanP/racetrack,MarkProvanP/racetrack,MarkProvanP/racetrack,MarkProvanP/racetrack | src/app/app.routes.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Component, OnInit, Input } from '@angular/core';\n\nimport { Mage } from '../model/mage.model';\nimport { EquipmentVault } from '../model/equipmentvault.model';\nimport { Equipment } from '../model/equipment.model';\n\n@Compone... | typescript | edit | 0 | 1 | mit | 5818c7c3290cce5d138441e29500f6c535c0bf14 | ChargerIIC/Frostgrave-WarRoster,ChargerIIC/Frostgrave-WarRoster,ChargerIIC/Frostgrave-WarRoster | src/app/item-dialog-modal/item-dialog-modal.component.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\nexport * from './panel';\nexport * from './chatbox';\nexport * from './entry'\n\n\n```\n\nApply this change: Update theme loading... | typescript | edit | 0 | 0 | bsd-3-clause | 742b2725245158bd5d9051ed00f6afcb593c5b7d | jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab,jupyter/jupyterlab | packages/chatbox/src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as fs from \"fs-extra\";\nimport {LocalRepository} from \"./types/local-repository\";\n\nexport function heal(repository: LocalRepository, key?: keyof LocalRepository): Promise<boolean> {\n\n const fixes = [] as Promise<any>... | typescript | edit | 0 | 8 | apache-2.0 | 3ef95e663fa12b2ceeed76e55367fcc03daec4bf | rabix/composer,rabix/cottontail-frontend,rabix/cottontail-frontend,rabix/cottontail-frontend,rabix/composer,rabix/cottontail-frontend,rabix/composer | electron/src/storage/repository-healer.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Field } from \"formik\";\nimport React = require(\"react\");\n\nexport const Dropdown = (props: {\n fieldName: string;\n options: {};\n children: any;\n}) => (\n <div className=\"c-dropdown\">\n <span>{props.children}</s... | typescript | edit | null | null | mit | 96c233d576d63aaa9669e52c05115ab6f4d7b44e | cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative,cynicaloptimist/improved-initiative | client/Settings/components/Dropdown.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport react = require(\"react\");\n\nimport Explorer = require(\"./components/explorer\");\n\n/**\n * Creates and renders the API Explorer component.\n */\nexport function run(): void {\n react.render(Explorer.create(), document.getEl... | typescript | edit | 0 | 1 | mit | 4839dd275adecbc8688151a5b0a17aa455fcfa39 | Asana/api-explorer,Asana/api-explorer | src/explorer.ts | rejected_duplicate | Near-duplicate of sample 114128 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as ts from 'typescript'\r\nimport { BaseTemplate } from './baseTemplates'\r\nimport { CompletionItemBuilder } from '../completionItemBuilder'\r\n\r\nexport class CustomTemplate extends BaseTemplate {\r\n private conditionsMap ... | typescript | edit | 0 | 3 | mit | c42e16edaaaa032ab64ef08ea3765dda2b19392f | ipatalas/vscode-postfix-ts,ipatalas/vscode-postfix-ts | src/templates/customTemplate.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {\n downloadAndUnzipVSCode,\n resolveCliPathFromVSCodeExecutablePath,\n runTests,\n} from \"@vscode/test-electron\";\nimport * as cp from \"child_process\";\nimport * as path from \"path\";\n\nasync function main() {\n try ... | typescript | edit | 0 | 2 | mit | 46df75d002cb7342423ec3fd5ce545db36ccf39c | ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters,ryanluker/vscode-coverage-gutters | test/runTest.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {emit_elements} from '../../helpers/emit-elements';\nimport {Stack} from '../../stack';\nimport {ImportExport} from '../import-export';\nimport {ImportMember} from '../members/import-member';\n\nexport interface IImportNamedRequi... | typescript | edit | 0 | 1 | mit | b4d591ca7e6364a4951bdc44e4365b7e28d7b60c | ikatyang/dts-element,ikatyang/dts-element | src/elements/import-exports/import-named.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"./../typings/index.d.ts\" />\n\nconst config: {[prop: string]: string} = process.env;\n\n// Grab secret keys\nconst apiKey = config[\"gearworks-apiKey\"] || config[\"apiKey\"] ;\nconst secretKey = config[\"g... | typescript | edit | 0 | 0 | mit | 97f2d9e79d97a11a50c6b7a42fbd0b8abd826c73 | nozzlegear/Shopify-Prime | tests/_utils.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IConfig } from \"@cfg/index.d\";\n\nexport const loadConfig = (url: string): Promise<IConfig<any>> =>\n new Promise((resolve, reject) => {\n fetch(url)\n .then(res => res.json())\n .then(parsedConfig => {\n ... | typescript | edit | 0 | 2 | mit | 4cf6e3423db960cb14fcc3a720a6b4d522f37355 | gyng/jsapp-boilerplate,gyng/jsapp-boilerplate,gyng/jsapp-boilerplate,gyng/jsapp-boilerplate | config/runtimeExamples/configLoader.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Request, Response } from \"express\";\nimport * as admin from \"firebase-admin\";\nimport * as msgpack from \"msgpack-lite\";\nimport nanoid = require(\"nanoid\");\nimport { parse } from \"url\";\n\nimport { convertUrlIntoArtic... | typescript | edit | 0 | 3 | mit | a3f4c8a843d4e66218b489865eaea656e71a3a0b | raviqqe/code2d,raviqqe/code2d,raviqqe/code2d,raviqqe/code2d | functions/add-item.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Request, Response, Router } from 'express';\nimport * as path from 'path';\n\nexport function front(): Router {\n const r = Router();\n\n r.get('*', (req: Request, res: Response) => {\n res.sendFile(path.join(__dir... | typescript | edit | 0 | 3 | mit | 3d925d72f8113a14c8a7e86db60825b937e2a944 | mattbdean/Helium,mattbdean/Helium,mattbdean/Helium,mattbdean/Helium | server/src/routes/front.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { IMessageExtend, IMessageRead, IRead } from '../accessors/index';\nimport { IRoom } from '../rooms/index';\nimport { IUser } from '../users/index';\nimport { IMessage } from './IMessage';\n\nexport interface IPreMessageSentHandl... | typescript | edit | 0 | 0 | mit | 65ff52fdfb8d6c424a722d6343f29fc49c255eb9 | graywolf336/temporary-rocketlets-ts-definition,graywolf336/temporary-rocketlets-ts-definition | src/messages/IPreMessageSentHandler.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/** Type of the drag and drop intro popover. Each value represents a feature. */\nexport enum DragAndDropIntroType {\n CherryPick = 'cherry-pick',\n Squash = 'squash',\n Reorder = 'reorder',\n}\n\n/** Structure to describe the drag a... | typescript | edit | 0 | 0 | mit | 66f1f5426d206652e748775ff1b0dc4530004fc6 | desktop/desktop,say25/desktop,say25/desktop,shiftkey/desktop,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,desktop/desktop,j-f1/forked-desktop,desktop/desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,say25/desktop,desktop/desktop,artivilla/deskt... | app/src/ui/history/drag-and-drop-intro.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { CreateDriveFile, UpdateFileRevision } from '../interfaces/file';\n\nexport const queryCreateFile = (shareId: string, data: CreateDriveFile) => {\n return {\n method: 'post',\n url: `drive/shares/${shareId}/file... | typescript | edit | 0 | 1 | mit | 5ad17c059c099f0afcc5f97d5c29fc6b45c48230 | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | applications/drive/src/app/api/files.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Presenter } from \"./presenter\";\n\nexport interface PagingEntity {\n before?: string | null;\n after?: string | null;\n}\n\nexport interface PaginatedInput<DataInput> {\n data: DataInput;\n paging: PagingEntity;\n}\n\nexp... | typescript | edit | 0 | 1 | mit | 98e6c2cd3c73ce7fb5661b691883428fc2ccfc39 | balmbees/corgi | src/route_factories/presenter_route/pageable_data_layout_presenter.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 DatePicker from 'react-datepicker'\nimport insertCss from 'insert-css'\nimport { IntlProvider, addLocaleData } from 'react-intl'\nimport de from 'react-intl/l... | typescript | edit | null | null | mit | 0db9ed24822374fcbfc4cd1a6d93b596a6f04531 | ikr/react-period-of-stay-input,ikr/react-period-of-stay-input,ikr/react-period-of-stay-input | src/demo.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\n\nimport { Dispatcher } from '../../lib/dispatcher'\nimport { Repository } from '../../models/repository'\nimport { Branch } from '../../models/branch'\nimport { Button } from '../lib/button'\nimport { Bu... | typescript | edit | null | null | mit | 81b6ca90909c72306e9640a4ce087d7fcf192806 | desktop/desktop,hjobrien/desktop,gengjiawen/desktop,say25/desktop,artivilla/desktop,hjobrien/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,artivilla/desktop,gengjiawen/desktop,kactus-io/kactus,j-f1/forked-desktop,gengjiawen/desktop,BugTesterTest/desktops,say25/desktop,shiftkey/desktop,j... | app/src/ui/delete-branch/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {NestFactory} from '@nestjs/core';\nimport {SwaggerModule, DocumentBuilder} from '@nestjs/swagger';\nimport {ValidationPipe, INestApplication} from '@nestjs/common';\nimport * as bodyParser from 'body-parser';\nimport * as cors f... | typescript | edit | 0 | 2 | mit | 29771cbecc3ef6043e29c4a64a92746e0052c35f | tsmean/tsmean,tsmean/tsmean,tsmean/tsmean,tsmean/tsmean | backend/src/server.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react';\r\nimport { connect, Dispatch } from 'react-redux';\r\nimport { changeTab } from '../../actions/updateValue';\r\nimport { Button } from '@shopify/polaris';\r\nimport { NonIdealState } from '@blueprintjs/c... | typescript | edit | null | null | mit | 5f1fe6835ddf51f4ea9155bde855e947e8063985 | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | src/components/BlockList/EmptyBlockList.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/* eslint-env jest */\n\nimport {\n NodePath as NodePathConstructor,\n astNodesAreEquivalent,\n ASTNode,\n} from 'ast-types';\nimport { NodePath } from 'ast-types/lib/node-path';\nimport diff from 'jest-diff';\nimport utils from 'jes... | typescript | edit | 0 | 4 | mit | 4a7e1619bf746e28665f93a50f9156c1f3bd2a51 | reactjs/react-docgen,reactjs/react-docgen,reactjs/react-docgen | tests/setupTestFramework.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @license\n * Copyright (C) 2020 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a ... | typescript | edit | 0 | 0 | apache-2.0 | 577ca4a636e10fcba64e7e0cee6a546c0676ceda | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | polygerrit-ui/app/services/flags/flags.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * @fileoverview Core API types for Gerrit.\n *\n * Core types are types used in many places in Gerrit, such as the Side enum.\n *\n * @license\n * Copyright (C) 2020 The Android Open Source Project\n *\n * Licensed under the Apach... | typescript | edit | 0 | 0 | apache-2.0 | ce92a0aa82af24077f5b07fbdb8fa45f55918cb6 | GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit | polygerrit-ui/app/api/core.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { ICache } from './ICache';\n\nexport class InMemoryCache implements ICache {\n\tprivate cache = {};\n\n\tpublic set(key: string, value: any): void {\n\t\tthis.cache[key] = value;\n\t}\n\n\tpublic get(key: string): any {\n\t\tret... | typescript | edit | 0 | 1 | mit | f5083e9074bc14a289c01a3e869a9635bbd3c458 | sygic-travel/js-sdk,sygic-travel/js-sdk,sygic-travel/js-sdk | src/Cache/InMemoryCache.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { Injectable } from \"@nestjs/common\";\nimport { HealthIndicator, HealthIndicatorResult, HealthCheckError } from \"@nestjs/terminus\";\n\nimport { TopologyService } from \"../districts/services/topology.service\";\n\n@Injectable... | typescript | edit | 0 | 2 | apache-2.0 | d5f285e74ed5d448d7f506b8a03610bcc8af9981 | PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder,PublicMapping/DistrictBuilder | src/server/src/healthcheck/topology-loaded.indicator.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nvar levels = {\n \"Entryway\": {\n\t\"map\": [ \"####E###\",\n\t\t \"#......#\",\n\t\t \"#.@....#\",\n\t\t \"#......#\",\n\t\t \"#......E\",\n\t\t \"#.#..#.#\",\n\t\t \"#......#\",\n\t\t \"########\"],\n\t\"n_to\": \"Kitchen\",\n\t\"... | typescript | edit | 0 | 0 | mit | 46b935bce68581f5e648c020d75bb374a3b07b87 | jmacarthur/ld37,jmacarthur/ld37 | leveldata.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { HandlerConfig } from './HandlerConfig';\n\n/**\n * Configuration settings for a Handler object.\n */\nexport interface ProxyHandlerConfig extends HandlerConfig {\n\n /**\n * Remote root path where the request will be red... | typescript | edit | 0 | 0 | mit | 40da9ada036a5692c9863cddd0d25e75d1430f4c | syrp-nz/ts-lambda-handler,syrp-nz/ts-lambda-handler | src/Config/ProxyHandlerConfig.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Copyright 2020 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\nconst {assert} = chai;\n\nimport {Issue, AggregatedIssue} from '..... | typescript | edit | 0 | 1 | bsd-3-clause | 7ac5d91a4892112fe8b041a39d3610764e32b02a | ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend | test/unittests/front_end/sdk/Issue_test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as auto from 'autocreate';\nimport * as debug from 'debug';\n\nimport { Client } from './client';\nimport { BasiqAPIOptions } from './interfaces';\nimport { Account } from './resources/accounts';\nimport { Connection } from './... | typescript | edit | 0 | 2 | bsd-2-clause | 0c5272ac6ad4f64f85ec49a331fd9c5d9a64ff18 | FluentDevelopment/basiq-api | lib/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as React from 'react'\nimport { filter } from 'lodash'\nimport { mount, ReactWrapper } from 'enzyme'\nimport { PluginConstructor, PluginConfig } from '../core/PluginConfig'\nimport { ApplicationContext } from '../core/Applicati... | typescript | edit | null | null | mit | 3b5c81d82ff6835a5a4d5d98a4c382ccb5898607 | brightinteractive/bright-js-framework,brightinteractive/bright-js-framework,brightinteractive/bright-js-framework | src/lib/entry/TestFixture.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nclass TalksCtrl{\n\n constructor() {\n // const favoriteButtons = document.getElementsByClassName('mxt-img--favorite');\n // Array.from(favoriteButtons).forEach((favoriteButton: HTMLElement) => favoriteButton.onclick= this.favori... | typescript | edit | 0 | 2 | apache-2.0 | 78fa7ce3c1bee3d040f7c193fd92b62871de8626 | mix-it/mixit,mixitconf/mixit,mixitconf/mixit,mixitconf/mixit,mix-it/mixit,mixitconf/mixit,mix-it/mixit,mix-it/mixit,mix-it/mixit | src/main/ts/talks.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport winston from 'winston';\nimport DeviceModel from '../models/device';\n\nexport default class DeviceService {\n // region public static methods\n public static async addDevice(platform: string, mail: string, token: string) {\n ... | typescript | edit | 0 | 3 | mit | 09816540072664c56b4874a947c41078f2513238 | schulcloud/node-notification-service,schulcloud/node-notification-service,schulcloud/node-notification-service | src/services/DeviceService.ts | rejected_duplicate | Near-duplicate of sample 113689 | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport LocalTimeElement from './local-time-element'\nimport RelativeTimeElement from './relative-time-element'\nimport TimeAgoElement from './time-ago-element'\nimport TimeUntilElement from './time-until-element'\n\nexport {LocalTimeEle... | typescript | edit | 0 | 0 | mit | d3cb7dd14cb91d379836c1e93226d1ac56942f0c | github/time-elements,github/time-elements | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport React, { CSSProperties, useContext } from 'react';\nimport { Navbar, Nav } from 'react-bootstrap';\nimport { useLocation, Link } from 'react-router-dom';\nimport { JwtContext } from './App';\n\nexport default () => {\n\n const... | typescript | edit | null | null | apache-2.0 | e2099c0a3a8cbb568797066a7374fffcdd3412ed | dainst/idai-field-web,dainst/idai-field-web,dainst/idai-field-web | ui/src/Navbar.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/// <reference path=\"../virtual-dom.d.ts\" />\n\nimport h = require('virtual-dom/h');\nimport patch = require('virtual-dom/patch');\nimport diff = require('virtual-dom/diff');\nimport VNode = require('virtual-dom/vnode/vnode');\nimport... | typescript | edit | 0 | 3 | mit | 5025b59b68d21384f5bdf7b48bd457b4fffbf94e | yysun/apprun,yysun/apprun,yysun/apprun | apprun-jsx/vdom.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport Component from 'inferno-component'\nimport h from 'inferno-hyperscript'\n\ninterface Props {}\n\nexport default class App extends Component<Props, {}> {\n render() {\n return h('p', 'hello')\n }\n}\n\n```\n\nApply this chang... | typescript | edit | 0 | 1 | mit | 1722da329195c797eb7a5a0def682edacc582de6 | y0za/typescript-inferno-todo,y0za/typescript-inferno-todo,y0za/typescript-inferno-todo | src/components/app.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport * as app from 'app';\nimport * as BrowserWindow from 'browser-window';\nimport * as Menu from 'menu';\n\napp.on('window-all-closed', () => {\n\tif (process.platform !== 'darwin') {\n\t\tapp.quit();\n\t}\n});\n\napp.on('ready', ()... | typescript | edit | 0 | 1 | mit | 2f4edc859e979dbb199d2cb1a97a3878dbfc7acf | AyaMorisawa/Disskey,AyaMorisawa/Disskey,AyaMorisawa/Disskey | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { NextPage } from \"next\"\nimport Page from \"../../layouts/main\"\nimport postsLoader from \"../../data/loaders/PostsLoader\"\nimport BlogPost from \"../../models/BlogPost\"\nimport BlogPostPreview from \"../../components/BlogP... | typescript | edit | null | null | mit | 0dafcfd44bce0edd261d3dfa1428cfef61587492 | JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk,JosephDuffy/josephduffy.co.uk | pages/posts/index.tsx | rejected_syntax | Syntax error detected by tree-sitter | false |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport { library } from '@fortawesome/fontawesome-svg-core';\nimport { faEyeSlash, faTrashAlt } from '@fortawesome/free-regular-svg-icons';\nimport { faEraser, faPencilAlt, faSort, faSortDown, faSortUp } from '@fortawesome/free-solid-sv... | typescript | edit | 0 | 0 | mit | c37a604b597ee4d47c3079cf3705b36dfea5ba61 | plotly/dash-table,plotly/dash-table,plotly/dash-table | src/dash-table/components/Table/style.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nimport {leafNodeAt, ASTNode} from \"./shell/Parser\";\nimport * as _ from \"lodash\";\nimport {Environment} from \"./shell/Environment\";\nimport {OrderedSet} from \"./utils/OrderedSet\";\nimport {Aliases} from \"./shell/Aliases\";\n\nt... | typescript | edit | 0 | 2 | mit | 1675ed3cfc83e5698ac33bef1dc54f8d4ea2a227 | shockone/black-screen,shockone/black-screen,railsware/upterm,railsware/upterm,black-screen/black-screen,vshatskyi/black-screen,black-screen/black-screen,black-screen/black-screen,vshatskyi/black-screen,vshatskyi/black-screen,vshatskyi/black-screen | src/Autocompletion.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport interface QueryFn {\n name: string\n flux: string\n aggregate: boolean\n}\n\nexport const FUNCTIONS: QueryFn[] = [\n {name: 'mean', flux: `|> mean()`, aggregate: true},\n {name: 'median', flux: '|> toFloat()\\n |> median()'... | typescript | edit | 0 | 0 | mit | 102530b1c86e014755696cebc7888c1620933967 | mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,mark-rushakoff/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,influxdb/influxdb,influxdata/influxdb,influxdb/influxdb,nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,nooproblem/influxdb,li-ang/influxdb,li-ang/influxdb,in... | ui/src/shared/constants/queryBuilder.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\nexport * from \"./beautifier\";\nexport * from \"./languages\";\nexport * from \"./options\";\n\nimport {Unibeautify} from \"./beautifier\";\nimport {Options} from \"./options\";\nimport {Languages} from \"./languages\";\nconst unibeaut... | typescript | edit | 0 | 1 | mit | 9c4b4ff5436b533b5ab15114455ea6b752688e0d | Unibeautify/unibeautify,Unibeautify/unibeautify | src/index.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n/**\n * Copyright 2019 Google LLC\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 * https... | typescript | edit | 0 | 0 | apache-2.0 | cd87279f44661cb390bb68b7e989667606b5e728 | google/ground-platform,google/ground-platform,google/ground-platform,google/ground-platform | web-ng/src/test.ts | accepted | null | true |
[
{
"role": "user",
"content": "Here is the current file:\n```typescript\n// Reference mocha-typescript's global definitions:\n/// <reference path=\"../node_modules/mocha-typescript/globals.d.ts\" />\n\nimport { Unit } from \"../src/index\";\nimport { assert } from \"chai\";\n\ndeclare var console;\n\nbefore(... | typescript | edit | 0 | 1 | mit | 057e1cfa9d184548d660437b457ff32cc511460f | pana-cc/mocha-typescript-seed | test/test.ts | accepted | null | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.